Release of v4.1.1-beta2

Adds new JCB package engine. Fix issue with loading the Component Builder Wiki. Adds advanced version update notice to the Component Builder Dashboard. Completely refactors the class that builds the Component Dashboard. #1134. Adds Initialize, Reset, and Push functionality to the Repository entities. Completely refactors the SQL teaks and SQL dump classes. Changes J4 fields to allow NULL. Fix a bug in Dynamic Get JavaScript that causes table columns to not load.
This commit is contained in:
2025-06-27 10:36:15 +00:00
parent d11860ae1a
commit 64bc4327eb
883 changed files with 63212 additions and 27462 deletions

View File

@@ -49,3 +49,55 @@ if ($this->saveOrder)
<input type="hidden" name="task" value="" />
<?php echo Html::_('form.token'); ?>
</form>
<script type="text/javascript">
// snippets footer script
// get page body
var outerBodyDiv = document.querySelector('body');
// start loading spinner
var loadingDiv = document.createElement('div');
loadingDiv.id = 'loading';
// Set CSS properties individually
loadingDiv.style.background = "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/ajax.gif') 50% 35% no-repeat";
loadingDiv.style.top = (outerBodyDiv.getBoundingClientRect().top + window.pageYOffset) + "px";
loadingDiv.style.left = (outerBodyDiv.getBoundingClientRect().left + window.pageXOffset) + "px";
loadingDiv.style.width = outerBodyDiv.offsetWidth + "px";
loadingDiv.style.height = outerBodyDiv.offsetHeight + "px";
loadingDiv.style.position = 'fixed';
loadingDiv.style.opacity = '0.80';
loadingDiv.style.msFilter = "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
loadingDiv.style.filter = "alpha(opacity=80)";
loadingDiv.style.display = 'none';
// add to page body
outerBodyDiv.appendChild(loadingDiv);
document.addEventListener('DOMContentLoaded', function () {
const pushButton = document.getElementById('toolbar-share-custom-button-pushpowers');
const resetButton = document.getElementById('toolbar-joomla-custom-button-resetpowers');
// Set confirmation messages
if (pushButton) {
const pushText = Joomla.Text._('COM_COMPONENTBUILDER_HTHREEKEEP_THIS_WIDOW_OPENHTHREEPTHIS_IS_A_BVERY_LARGE_TASKB_AND_MAY_TAKE_A_BLONG_TIMEB_TO_COMPLETEBRBRIT_WILL_BPUSH_ALLB_ENTITIES_LINKED_TO_EACH_SELECTED_BSNIPPETBBRBRDO_YOU_WANT_TO_PROCEEDP');
pushButton.setAttribute('confirm-message', pushText);
}
if (resetButton) {
const resetText = Joomla.Text._('COM_COMPONENTBUILDER_HTHREEKEEP_THIS_WIDOW_OPENHTHREEPTHIS_IS_A_BVERY_LARGE_TASKB_AND_MAY_TAKE_A_BLONG_TIMEB_TO_COMPLETEBRBRIT_WILL_BRESET_ALLB_ENTITIES_LINKED_TO_EACH_SELECTED_BSNIPPETBBRBRDO_YOU_WANT_TO_CONTINUEP');
resetButton.setAttribute('confirm-message', resetText);
}
const form = document.adminForm;
// Hook into the form's submit event
if (form && loadingDiv) {
form.addEventListener('submit', function () {
loadingDiv.style.display = 'block';
});
}
});
<?php
// some language strings for JS in this area
Text::script('COM_COMPONENTBUILDER_HTHREEKEEP_THIS_WIDOW_OPENHTHREEPTHIS_IS_A_BVERY_LARGE_TASKB_AND_MAY_TAKE_A_BLONG_TIMEB_TO_COMPLETEBRBRIT_WILL_BPUSH_ALLB_ENTITIES_LINKED_TO_EACH_SELECTED_BSNIPPETBBRBRDO_YOU_WANT_TO_PROCEEDP');
Text::script('COM_COMPONENTBUILDER_HTHREEKEEP_THIS_WIDOW_OPENHTHREEPTHIS_IS_A_BVERY_LARGE_TASKB_AND_MAY_TAKE_A_BLONG_TIMEB_TO_COMPLETEBRBRIT_WILL_BRESET_ALLB_ENTITIES_LINKED_TO_EACH_SELECTED_BSNIPPETBBRBRDO_YOU_WANT_TO_CONTINUEP');
?>
</script>

View File

@@ -31,7 +31,7 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
?>
<tr class="row<?php echo $i % 2; ?>">
<td class="order nowrap center hidden-phone">
<?php if ($canDo->get('core.edit.state')): ?>
<?php if (!$this->isModal && $canDo->get('core.edit.state')): ?>
<?php
$iconClass = '';
if (!$this->saveOrder)
@@ -51,7 +51,7 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
<?php endif; ?>
</td>
<td class="nowrap center">
<?php if ($canDo->get('core.edit')): ?>
<?php if (!$this->isModal && $canDo->get('core.edit')): ?>
<?php if ($item->checked_out) : ?>
<?php if ($canCheckin) : ?>
<?php echo Html::_('grid.id', $i, $item->id); ?>
@@ -67,13 +67,29 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
</td>
<td class="nowrap">
<div class="name">
<?php if ($canDo->get('core.edit')): ?>
<?php if (!$this->isModal && $canDo->get('core.edit')): ?>
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
<?php if ($item->checked_out): ?>
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'snippets.', $canCheckin); ?>
<?php endif; ?>
<?php else: ?>
<?php echo $this->escape($item->name); ?>
<?php if (!$this->isModal): ?>
<?php echo $this->escape($item->name); ?>
<?php else: ?>
<?php
$link = "{$edit}&id={$item->id}";
$dataId = $item->{$this->getModalTitleKey()} ?? 0;
$itemHtml = '<a href="' . $this->escape($link, false) . '">' . $this->escape($item->name, false) . '</a>';
$attribs = 'data-content-select data-content-type="com_componentbuilder.snippet"'
. ' data-id="' . $dataId . '"'
. ' data-title="' . $this->escape($item->name, false) . '"'
. ' data-uri="' . $this->escape($link, false) . '"'
. ' data-html="' . $this->escape($itemHtml, false) . '"';
?>
<a class="select-link" href="javascript:void(0)" <?php echo $attribs; ?>>
<?php echo $this->escape($item->name); ?>
</a>
<?php endif; ?>
<?php endif; ?>
</div>
</td>
@@ -88,7 +104,7 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
</td>
<td class="nowrap">
<div class="name">
<?php if ($this->user->authorise('library.edit', 'com_componentbuilder.library.' . (int) $item->library_id)): ?>
<?php if (!$this->isModal && $this->user->authorise('library.edit', 'com_componentbuilder.library.' . (int) $item->library_id)): ?>
<a href="index.php?option=com_componentbuilder&view=libraries&task=library.edit&id=<?php echo $item->library_id; ?>&return=<?php echo $this->return_here; ?>"><?php echo $this->escape($item->library_name); ?></a>
<?php else: ?>
<?php echo $this->escape($item->library_name); ?>
@@ -96,7 +112,7 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
</div>
</td>
<td class="center">
<?php if ($canDo->get('core.edit.state')) : ?>
<?php if (!$this->isModal && $canDo->get('core.edit.state')) : ?>
<?php if ($item->checked_out) : ?>
<?php if ($canCheckin) : ?>
<?php echo Html::_('jgrid.published', $item->published, $i, 'snippets.', true, 'cb'); ?>

View File

@@ -17,7 +17,7 @@ defined('_JEXEC') or die;
?>
<tr>
<?php if ($this->canEdit&& $this->canState): ?>
<?php if (!$this->isModal && $this->canEdit && $this->canState): ?>
<th width="1%" class="nowrap center hidden-phone">
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
</th>