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

@@ -87,6 +87,22 @@ class HtmlView extends BaseHtmlView
*/
public string $return_here;
/**
* The title key used in modal
*
* @var string
* @since 5.2.1
*/
public string $modalTitleKey;
/**
* The modal state
*
* @var bool
* @since 5.2.1
*/
public bool $isModal;
/**
* The user object.
*
@@ -138,8 +154,10 @@ class HtmlView extends BaseHtmlView
}
// We don't need toolbar in the modal window.
$this->isModal = true;
if ($this->getLayout() !== 'modal')
{
$this->isModal = false;
$this->addToolbar();
}
@@ -200,10 +218,20 @@ class HtmlView extends BaseHtmlView
ToolbarHelper::trash('site_views.trash');
}
}
if ($this->user->authorise('site_view.get_snippets', 'com_componentbuilder'))
if ($this->user->authorise('site_view.init', 'com_componentbuilder'))
{
// add Get Snippets button.
ToolbarHelper::custom('site_views.getSnippets', 'search custom-button-getsnippets', '', 'COM_COMPONENTBUILDER_GET_SNIPPETS', false);
// add Init button.
ToolbarHelper::custom('site_views.getSnippets', 'health custom-button-getsnippets', '', 'COM_COMPONENTBUILDER_INIT', false);
}
if ($this->user->authorise('site_view.reset', 'com_componentbuilder'))
{
// add Reset button.
ToolbarHelper::custom('site_views.resetPowers', 'joomla custom-button-resetpowers', '', 'COM_COMPONENTBUILDER_RESET', false);
}
if ($this->user->authorise('site_view.push', 'com_componentbuilder'))
{
// add Push button.
ToolbarHelper::custom('site_views.pushPowers', 'share custom-button-pushpowers', '', 'COM_COMPONENTBUILDER_PUSH', false);
}
// set help url for this view if found
@@ -263,6 +291,17 @@ class HtmlView extends BaseHtmlView
return StringHelper::html($var, $this->_charset ?? 'UTF-8', $shorten, $length);
}
/**
* Get the modal data/title key
*
* @return string The key value.
* @since 5.2.1
*/
public function getModalTitleKey(): string
{
return $this->modalTitleKey ?? 'id';
}
/**
* Returns an array of fields the table can be sorted by
*