Improve dataTables integration within the app:

- Manage lib through NPM
- Move portal / Bootstrap files back to the itop-portal-base module (not managed through NPM yet)
- Fix SCSS classes for the backoffice as it was based on the bootstrap CSS classes which are not there anymore

Note: jQuery is included as a dependency, will check with the team if we can force it not to be retrieved
This commit is contained in:
Molkobain
2021-03-26 17:46:13 +01:00
parent 2e8c0346d3
commit 6f659a3431
183 changed files with 115480 additions and 395 deletions

View File

@@ -27,12 +27,11 @@ class DataTable extends UIContentBlock
public const DEFAULT_JS_ON_READY_TEMPLATE_REL_PATH = 'base/components/datatable/layout';
public const DEFAULT_JS_LIVE_TEMPLATE_REL_PATH = 'base/components/datatable/layout';
public const DEFAULT_JS_FILES_REL_PATH = [
'lib/datatables/js/jquery.dataTables.min.js',
'lib/datatables/js/dataTables.bootstrap.min.js',
'lib/datatables/js/dataTables.fixedHeader.min.js',
'lib/datatables/js/dataTables.responsive.min.js',
'lib/datatables/js/dataTables.scroller.min.js',
'lib/datatables/js/dataTables.select.min.js',
'node_modules/datatables.net/js/jquery.dataTables.js',
'node_modules/datatables.net-fixedheader/js/dataTables.fixedHeader.js',
'node_modules/datatables.net-responsive/js/dataTables.responsive.js',
'node_modules/datatables.net-scroller/js/dataTables.scroller.js',
'node_modules/datatables.net-select/js/dataTables.select.js',
'js/dataTables.main.js',
'js/dataTables.settings.js',
'js/dataTables.pipeline.js',