Release of v4.0.2-beta2
Fix dynamicGet so that the table values will load again. #1155.
This commit is contained in:
parent
59da3fa120
commit
ab59720c50
@ -1,4 +1,8 @@
|
||||
# v4.0.2-beta1
|
||||
# v4.0.2-beta2
|
||||
|
||||
- Fix dynamicGet so that the table values will load again. #1155
|
||||
|
||||
# v4.0.2-beta
|
||||
|
||||
- Fix abstract schema class function check default index warring
|
||||
|
||||
|
@ -3270,7 +3270,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
||||
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||
</a>
|
||||
<h3>Upgrade to Version 4.0.2-beta1 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||
<h3>Upgrade to Version 4.0.2-beta2 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||
|
||||
// Add/Update component in the action logs extensions table.
|
||||
$this->setActionLogsExtensions();
|
||||
|
10
README.md
10
README.md
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
||||
|
||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||
|
||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.2-beta1) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.2-beta2) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
|
||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||
|
||||
@ -145,13 +145,13 @@ TODO
|
||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 1st August, 2024
|
||||
+ *Version*: 4.0.2-beta1
|
||||
+ *Version*: 4.0.2-beta2
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **791490**
|
||||
+ *Line count*: **791516**
|
||||
+ *Field count*: **2093**
|
||||
+ *File count*: **5500**
|
||||
+ *Folder count*: **540**
|
||||
+ *File count*: **5505**
|
||||
+ *Folder count*: **544**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
||||
|
||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||
|
||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.2-beta1) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.2-beta2) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
|
||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||
|
||||
@ -145,13 +145,13 @@ TODO
|
||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 1st August, 2024
|
||||
+ *Version*: 4.0.2-beta1
|
||||
+ *Version*: 4.0.2-beta2
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **791490**
|
||||
+ *Line count*: **791516**
|
||||
+ *Field count*: **2093**
|
||||
+ *File count*: **5500**
|
||||
+ *Folder count*: **540**
|
||||
+ *File count*: **5505**
|
||||
+ *Folder count*: **544**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
45
admin/compiler/joomla_4/API_VIEWS_CONTROLLER.php
Normal file
45
admin/compiler/joomla_4/API_VIEWS_CONTROLLER.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this JCB template file (EVER)
|
||||
defined('_JCB_TEMPLATE') or die;
|
||||
?>
|
||||
###BOM###
|
||||
namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Api\Controller;
|
||||
|
||||
###API_VIEWS_CONTROLLER_HEADER###
|
||||
|
||||
// No direct access to this file
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* ###Views### Api Controller
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class ###Views###Controller extends ApiController
|
||||
{
|
||||
/**
|
||||
* The content type of the item.
|
||||
*
|
||||
* @var string
|
||||
* @since 4.0.0
|
||||
*/
|
||||
protected $contentType = '###views###';
|
||||
|
||||
/**
|
||||
* The default view for the display method.
|
||||
*
|
||||
* @var string
|
||||
* @since 3.0
|
||||
*/
|
||||
protected $default_view = '###views###';
|
||||
}
|
30
admin/compiler/joomla_4/API_VIEWS_JSON.php
Normal file
30
admin/compiler/joomla_4/API_VIEWS_JSON.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this JCB template file (EVER)
|
||||
defined('_JCB_TEMPLATE') or die;
|
||||
?>
|
||||
###BOM###
|
||||
namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Api\View\###Views###;
|
||||
|
||||
###API_VIEWS_JSON_HEADER###
|
||||
|
||||
// No direct access to this file
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* ###Component### Json View class for the ###Views###
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class JsonapiView extends BaseApiView
|
||||
{
|
||||
}
|
72
admin/compiler/joomla_4/API_VIEW_CONTROLLER.php
Normal file
72
admin/compiler/joomla_4/API_VIEW_CONTROLLER.php
Normal file
@ -0,0 +1,72 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this JCB template file (EVER)
|
||||
defined('_JCB_TEMPLATE') or die;
|
||||
?>
|
||||
###BOM###
|
||||
namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Api\Controller;
|
||||
|
||||
###API_VIEW_CONTROLLER_HEADER###
|
||||
|
||||
// No direct access to this file
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* ###View### Api Controller
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class ###View###Controller extends ApiController
|
||||
{
|
||||
/**
|
||||
* The content type of the item.
|
||||
*
|
||||
* @var string
|
||||
* @since 4.0.0
|
||||
*/
|
||||
protected $contentType = '###view###';
|
||||
|
||||
/**
|
||||
* The default view for the display method.
|
||||
*
|
||||
* @var string
|
||||
* @since 3.0
|
||||
*/
|
||||
protected $default_view = '###view###';
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowAdd($data = [])
|
||||
{###JCONTROLLERFORM_ALLOWADD###
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can edit an existing record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowEdit($data = [], $key = 'id')
|
||||
{###JCONTROLLERFORM_ALLOWEDIT###
|
||||
}
|
||||
}
|
30
admin/compiler/joomla_4/API_VIEW_JSON.php
Normal file
30
admin/compiler/joomla_4/API_VIEW_JSON.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this JCB template file (EVER)
|
||||
defined('_JCB_TEMPLATE') or die;
|
||||
?>
|
||||
###BOM###
|
||||
namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Api\View\###View###;
|
||||
|
||||
###API_VIEW_JSON_HEADER###
|
||||
|
||||
// No direct access to this file
|
||||
\defined('_JEXEC') or die;
|
||||
|
||||
/**
|
||||
* ###View### Json View class
|
||||
*
|
||||
* @since 4.0.0
|
||||
*/
|
||||
class JsonapiView extends BaseApiView
|
||||
{
|
||||
}
|
@ -33,6 +33,12 @@
|
||||
},
|
||||
"tmpl": "tmpl"
|
||||
},
|
||||
"api": {
|
||||
"src": {
|
||||
"Controller": "Controller",
|
||||
"View": "View"
|
||||
}
|
||||
},
|
||||
"site": {
|
||||
"assets": {
|
||||
"css": "css",
|
||||
@ -564,6 +570,32 @@
|
||||
"type": "javascript_file"
|
||||
}
|
||||
},
|
||||
"api": {
|
||||
"API_VIEW_CONTROLLER.php": {
|
||||
"path": "c0mp0n3nt/api/src/Controller",
|
||||
"rename": "new",
|
||||
"newName": "[[[Name]]]Controller.php",
|
||||
"type": "single"
|
||||
},
|
||||
"API_VIEW_JSON.php": {
|
||||
"path": "c0mp0n3nt/api/src/View/[[[Name]]]",
|
||||
"rename": "new",
|
||||
"newName": "JsonapiView.php",
|
||||
"type": "single"
|
||||
},
|
||||
"API_VIEWS_CONTROLLER.php": {
|
||||
"path": "c0mp0n3nt/api/src/Controller",
|
||||
"rename": "new",
|
||||
"newName": "[[[Name]]]Controller.php",
|
||||
"type": "list"
|
||||
},
|
||||
"API_VIEWS_JSON.php": {
|
||||
"path": "c0mp0n3nt/api/src/View/[[[Name]]]",
|
||||
"rename": "new",
|
||||
"newName": "JsonapiView.php",
|
||||
"type": "list"
|
||||
}
|
||||
},
|
||||
"site": {
|
||||
"SITE_VIEWS_HTML.php": {
|
||||
"path": "c0mp0n3nt/site/src/View/[[[Name]]]",
|
||||
|
1
admin/sql/updates/mysql/4.0.2-beta.sql
Normal file
1
admin/sql/updates/mysql/4.0.2-beta.sql
Normal file
@ -0,0 +1 @@
|
||||
|
@ -641,7 +641,7 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
<?php $fieldNrs = range(0, 50, 1); ?>
|
||||
<?php $fieldNames = array('db' => 'Db', 'view' => 'View'); ?>
|
||||
// for the vlaues already set
|
||||
jQuery(document).ready(function(){
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
<?php foreach($fieldNames as $fieldName => $funcName): ?>
|
||||
<?php foreach($fieldNrs as $fieldNr): ?>
|
||||
updateSubItems('<?php echo $fieldName ?>', <?php echo $fieldNr ?>, '_', '_');
|
||||
@ -649,33 +649,36 @@ jQuery(document).ready(function(){
|
||||
<?php endforeach; ?>
|
||||
});
|
||||
// for the values the will still be set
|
||||
jQuery(document).ready(function(){
|
||||
jQuery(document).on('subform-row-add', function(event, row){
|
||||
var groupName = jQuery(row).data('group');
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.addEventListener('subform-row-add', function(event) {
|
||||
var row = event.detail.row;
|
||||
var groupName = row.getAttribute('data-group');
|
||||
var fieldName = groupName.replace('join_', '').replace('_table', '').replace(/([0-9])/g, '');
|
||||
var fieldNr = groupName.replace(/([A-z_])/g, '');
|
||||
updateSubItems(fieldName, fieldNr, '_', '_');
|
||||
});
|
||||
|
||||
});
|
||||
<?php foreach($fieldNames as $fieldName => $funcName): ?>jQuery('#adminForm').on('change', '#jform_<?php echo $fieldName ?>_table_main',function (e) {
|
||||
// get options
|
||||
var value_<?php echo $fieldName ?> = jQuery("#jform_<?php echo $fieldName ?>_table_main option:selected").val();
|
||||
|
||||
<?php foreach($fieldNames as $fieldName => $funcName): ?>
|
||||
document.getElementById('adminForm').addEventListener('change', function(e) {
|
||||
if (e.target && e.target.id === 'jform_<?php echo $fieldName ?>_table_main') {
|
||||
let value_<?php echo $fieldName ?> = e.target.options[e.target.selectedIndex].value;
|
||||
get<?php echo $funcName; ?>TableColumns(value_<?php echo $fieldName ?>, 'a', '<?php echo $fieldName ?>', 3, true, '', '');
|
||||
}
|
||||
});
|
||||
<?php endforeach; ?>
|
||||
// #jform_add_php_router_parse listeners
|
||||
jQuery('#jform_add_php_router_parse').on('change',function() {
|
||||
var valueSwitch = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
|
||||
document.getElementById('jform_add_php_router_parse').addEventListener('change', function() {
|
||||
var valueSwitch = document.querySelector("#jform_add_php_router_parse input[type='radio']:checked").value;
|
||||
getDynamicScripts(valueSwitch);
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_select_all',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
// get the selected value
|
||||
var select_all = jQuery("#jform_select_all input[type='radio']:checked").val();
|
||||
setSelectAll(select_all);
|
||||
|
||||
document.getElementById('adminForm').addEventListener('change', function(e) {
|
||||
if (e.target && e.target.matches('#jform_select_all input[type="radio"]')) {
|
||||
e.preventDefault();
|
||||
var selectAll = e.target.value;
|
||||
setSelectAll(selectAll);
|
||||
}
|
||||
});
|
||||
|
||||
<?php
|
||||
|
1
api/index.html
Normal file
1
api/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
api/src/Controller/index.html
Normal file
1
api/src/Controller/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
api/src/View/index.html
Normal file
1
api/src/View/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
api/src/index.html
Normal file
1
api/src/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
@ -7,9 +7,9 @@
|
||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<version>4.0.2-beta1</version>
|
||||
<version>4.0.2-beta2</version>
|
||||
<description><![CDATA[
|
||||
<h1>Component Builder (v.4.0.2-beta1)</h1>
|
||||
<h1>Component Builder (v.4.0.2-beta2)</h1>
|
||||
<div style="clear: both;"></div>
|
||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||
|
||||
|
@ -77,10 +77,28 @@
|
||||
<element>pkg_component_builder</element>
|
||||
<type>package</type>
|
||||
<client>site</client>
|
||||
<version>4.0.2-beta1</version>
|
||||
<version>4.0.2-beta</version>
|
||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta1.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta2.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>beta</tag>
|
||||
</tags>
|
||||
<maintainer>Llewellyn van der Merwe</maintainer>
|
||||
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
||||
<targetplatform name="joomla" version="4\.[01234]"/>
|
||||
</update>
|
||||
<update>
|
||||
<name>Component Builder</name>
|
||||
<description>Builds Complex Joomla Components</description>
|
||||
<element>pkg_component_builder</element>
|
||||
<type>package</type>
|
||||
<client>site</client>
|
||||
<version>4.0.2-beta2</version>
|
||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v4.0.2-beta2.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>beta</tag>
|
||||
|
Loading…
Reference in New Issue
Block a user