diff options
Diffstat (limited to 'src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js')
-rw-r--r-- | src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js b/src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js new file mode 100644 index 0000000..a936bca --- /dev/null +++ b/src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js @@ -0,0 +1,63 @@ +/*! Bootstrap integration for DataTables' SearchPanes + * ©2016 SpryMedia Ltd - datatables.net/license + */ +(function (factory) { + if (typeof define === 'function' && define.amd) { + // AMD + define(['jquery', 'datatables.net-bs4', 'datatables.net-searchpanes'], function ($) { + return factory($, window, document); + }); + } + else if (typeof exports === 'object') { + // CommonJS + module.exports = function (root, $) { + if (!root) { + root = window; + } + if (!$ || !$.fn.dataTable) { + // eslint-disable-next-line @typescript-eslint/no-var-requires + $ = require('datatables.net-bs4')(root, $).$; + } + if (!$.fn.dataTable.SearchPanes) { + // eslint-disable-next-line @typescript-eslint/no-var-requires + require('datatables.net-searchpanes')(root, $); + } + return factory($, root, root.document); + }; + } + else { + // Browser + factory(jQuery, window, document); + } +}(function ($, window, document) { + 'use strict'; + var dataTable = $.fn.dataTable; + $.extend(true, dataTable.SearchPane.classes, { + buttonGroup: 'btn-group', + disabledButton: 'disabled', + narrow: 'col', + pane: { + container: 'table' + }, + paneButton: 'btn btn-light', + pill: 'pill badge badge-pill badge-secondary', + search: 'form-control search', + searchCont: 'input-group', + searchLabelCont: 'input-group-append', + subRow1: 'dtsp-subRow1', + subRow2: 'dtsp-subRow2', + table: 'table table-sm table-borderless', + topRow: 'dtsp-topRow' + }); + $.extend(true, dataTable.SearchPanes.classes, { + clearAll: 'dtsp-clearAll btn btn-light', + collapseAll: 'dtsp-collapseAll btn btn-light', + container: 'dtsp-searchPanes', + disabledButton: 'disabled', + panes: 'dtsp-panes dtsp-panesContainer', + showAll: 'dtsp-showAll btn btn-light', + title: 'dtsp-title', + titleRow: 'dtsp-titleRow' + }); + return dataTable.searchPanes; +})); |