Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.1] User defined Hide Table Columns #36591

Merged
merged 53 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7a60ab5
from phil
brianteeman Dec 22, 2021
2f79440
disable checkbox not remove it
brianteeman Dec 23, 2021
3132419
prepare column count
brianteeman Dec 23, 2021
aa0ac93
lang
brianteeman Dec 23, 2021
5958db4
attribs
brianteeman Dec 23, 2021
93a5624
comments
brianteeman Dec 23, 2021
0d93c22
fix column count
brianteeman Dec 23, 2021
7fe4182
updatecheck
brianteeman Dec 23, 2021
357404f
using object instead of multiple setattribute
brianteeman Dec 24, 2021
3afbf44
minus
brianteeman Dec 24, 2021
0640f1d
breakpoint
brianteeman Dec 24, 2021
82dc916
cs
brianteeman Dec 24, 2021
079424b
use web assets
brianteeman Jan 6, 2022
1236207
lint
brianteeman Jan 6, 2022
3eedadf
Fix table-columns.js (#153)
Fedik Jan 6, 2022
c09474c
lint
brianteeman Jan 6, 2022
b20804b
more lint
brianteeman Jan 6, 2022
8db8e9a
disable
brianteeman Jan 6, 2022
c5db502
classes
brianteeman Jan 6, 2022
f436feb
tables
brianteeman Jan 6, 2022
bbac16e
Merge branch '4.1-dev' into table_columns
brianteeman Jan 6, 2022
5e557b1
Update build/media_source/system/js/table-columns.es6.js
brianteeman Jan 6, 2022
f9a6bd0
fix js error on table heading (#154)
Fedik Jan 7, 2022
e8bee96
Merge branch '4.1-dev' into table_columns
brianteeman Jan 8, 2022
367d550
Merge branch '4.1-dev' into table_columns
brianteeman Jan 9, 2022
9b0d5c9
Protected columns (#157)
Fedik Jan 9, 2022
cb10bde
title column is checked and disabled
brianteeman Jan 9, 2022
b255e0d
missing tables
brianteeman Jan 9, 2022
99fbf39
Merge branch '4.1-dev' into table_columns
brianteeman Jan 9, 2022
e9fc22d
oops
brianteeman Jan 9, 2022
41f5647
Merge branch '4.1-dev' into table_columns
brianteeman Jan 10, 2022
c6532af
Merge branch '4.1-dev' into table_columns
brianteeman Jan 15, 2022
21ac46e
Fix multiselect, clean a table name, prevent incorrect index (#165)
Fedik Jan 16, 2022
c350517
Revert "Fix multiselect, clean a table name, prevent incorrect index …
brianteeman Jan 16, 2022
7304348
Revert "Revert "Fix multiselect, clean a table name, prevent incorrec…
brianteeman Jan 16, 2022
05a6a8b
Merge branch '4.1-dev' into table_columns
brianteeman Jan 16, 2022
05e998f
Merge branch '4.1-dev' into table_columns
brianteeman Jan 19, 2022
08afbd9
Merge branch '4.1-dev' into table_columns
brianteeman Jan 23, 2022
cb3622c
add dropdown-toggle class
brianteeman Jan 23, 2022
e923a20
Update build/media_source/system/js/table-columns.es6.js
brianteeman Jan 25, 2022
ee66b1a
Merge branch '4.1-dev' into table_columns
brianteeman Jan 25, 2022
50a8824
tweak
brianteeman Jan 26, 2022
0ecc8af
add workflows
brianteeman Jan 26, 2022
f86a320
Merge branch '4.1-dev' into table_columns
brianteeman Jan 26, 2022
385b7fd
'
brianteeman Jan 26, 2022
c0c3caa
Merge branch '4.1-dev' into table_columns
brianteeman Jan 31, 2022
126f7cf
Update default.php
brianteeman Jan 31, 2022
3874028
Update default.php
brianteeman Jan 31, 2022
f9f6e02
Update default.php
brianteeman Jan 31, 2022
e6b54ae
Update default.php
brianteeman Jan 31, 2022
9fca3b1
Update default.php
brianteeman Jan 31, 2022
a0043c4
conflicts
brianteeman Jan 31, 2022
ec81ab9
Merge branch '4.2-dev' into table_columns
roland-d Feb 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('table.columns')
->useScript('multiselect')
->useScript('com_actionlogs.admin-actionlogs');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('multiselect')
->useScript('com_associations.admin-associations-default');
$wa->useScript('com_associations.admin-associations-default')
->useScript('table.columns')
->useScript('multiselect');

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@

/** @var \Joomla\Component\Banners\Administrator\View\Banners\HtmlView $this */

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$userId = $user->get('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

/** @var \Joomla\Component\Banners\Administrator\View\Clients\HtmlView $this */

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$purchaseTypes = [
'1' => 'UNLIMITED',
Expand Down
4 changes: 4 additions & 0 deletions administrator/components/com_banners/tmpl/tracks/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns');

/** @var \Joomla\Component\Banners\Administrator\View\Tracks\HtmlView $this */

$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
1 change: 1 addition & 0 deletions administrator/components/com_cache/tmpl/cache/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('table.columns')
->useScript('multiselect')
->useScript('com_cache.admin-cache');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Session\Session;
use Joomla\String\Inflector;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$userId = $user->get('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$userId = $user->get('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
use Joomla\Component\Content\Administrator\Helper\ContentHelper;
use Joomla\Utilities\ArrayHelper;

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$app = Factory::getApplication();
$user = Factory::getUser();
$userId = $user->get('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
use Joomla\Component\Content\Administrator\Helper\ContentHelper;
use Joomla\Utilities\ArrayHelper;

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$app = Factory::getApplication();
$user = Factory::getUser();
$userId = $user->get('id');
Expand Down
5 changes: 4 additions & 1 deletion administrator/components/com_fields/tmpl/fields/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Session\Session;
use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$app = Factory::getApplication();
$user = Factory::getUser();
Expand Down
5 changes: 4 additions & 1 deletion administrator/components/com_fields/tmpl/groups/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
use Joomla\CMS\Session\Session;
use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$app = Factory::getApplication();
$user = Factory::getUser();
Expand Down
5 changes: 3 additions & 2 deletions administrator/components/com_finder/tmpl/filters/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('multiselect')
->useScript('com_finder.filters');
$wa->useScript('com_finder.filters')
->useScript('table.columns')
->useScript('multiselect');

?>
<form action="<?php echo Route::_('index.php?option=com_finder&view=filters'); ?>" method="post" name="adminForm" id="adminForm">
Expand Down
5 changes: 3 additions & 2 deletions administrator/components/com_finder/tmpl/index/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('multiselect')
->useScript('com_finder.index');
$wa->useScript('com_finder.index')
->useScript('multiselect')
->useScript('table.columns');

?>
<form action="<?php echo Route::_('index.php?option=com_finder&view=index'); ?>" method="post" name="adminForm" id="adminForm">
Expand Down
5 changes: 3 additions & 2 deletions administrator/components/com_finder/tmpl/maps/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('multiselect')
->useScript('com_finder.maps');
$wa->useScript('com_finder.maps')
->useScript('table.columns')
->useScript('multiselect');

?>
<form action="<?php echo Route::_('index.php?option=com_finder&view=maps'); ?>" method="post" name="adminForm" id="adminForm">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirection = $this->escape($this->state->get('list.direction'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Version;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('multiselect')
->useScript('com_installer.changelog');
$wa->useScript('com_installer.changelog')
->useScript('table.columns')
->useScript('multiselect');

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;

HTMLHelper::_('behavior.multiselect');
HTMLHelper::_('bootstrap.popover', 'span.hasPopover', ['trigger' => 'hover focus']);
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect')
->useScript('bootstrap.popover');

$user = Factory::getApplication()->getIdentity();
$userId = $user->get('id');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
use Joomla\CMS\String\PunycodeHelper;
use Joomla\CMS\Version;

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$client = $this->state->get('filter.client') == 'site' ? Text::_('JSITE') : Text::_('JADMINISTRATOR');
$language = $this->state->get('filter.language');
Expand Down
4 changes: 4 additions & 0 deletions administrator/components/com_mails/tmpl/templates/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

HTMLHelper::_('bootstrap.dropdown', '.dropdown-toggle');

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns');

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
?>
Expand Down
5 changes: 4 additions & 1 deletion administrator/components/com_menus/tmpl/items/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$app = Factory::getApplication();
Expand Down
5 changes: 5 additions & 0 deletions administrator/components/com_menus/tmpl/menus/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$uri = Uri::getInstance();
$return = base64_encode($uri);
$user = Factory::getUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$clientId = (int) $this->state->get('client_id', 0);
$user = Factory::getUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@

/** @var \Joomla\Component\Privacy\Administrator\View\Consents\HtmlView $this */

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@

/** @var \Joomla\Component\Privacy\Administrator\View\Request\HtmlView $this */

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
5 changes: 4 additions & 1 deletion administrator/components/com_redirect/tmpl/links/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$listOrder = $this->escape($this->state->get('list.ordering'));
Expand Down
5 changes: 5 additions & 0 deletions administrator/components/com_scheduler/tmpl/tasks/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@

/** @var HtmlView $this*/

/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

Text::script('COM_SCHEDULER_TEST_RUN_TITLE');
Text::script('COM_SCHEDULER_TEST_RUN_TASK');
Text::script('COM_SCHEDULER_TEST_RUN_DURATION');
Expand Down
5 changes: 4 additions & 1 deletion administrator/components/com_tags/tmpl/tags/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
use Joomla\CMS\Session\Session;
use Joomla\String\Inflector;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$app = Factory::getApplication();
$user = Factory::getUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
use Joomla\CMS\Router\Route;
use Joomla\CMS\Session\Session;

HTMLHelper::_('behavior.multiselect');
/** @var \Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('table.columns')
->useScript('multiselect');

$user = Factory::getUser();
$clientId = (int) $this->state->get('client_id', 0);
Expand Down
Loading