summaryrefslogtreecommitdiff
path: root/src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js
diff options
context:
space:
mode:
authorAlisaLinUwU <alisalinuwu@gmail.com>2025-01-26 10:42:28 +0500
committerAlisaLinUwU <alisalinuwu@gmail.com>2025-01-26 10:42:28 +0500
commit0225bdb772d1334cc1aa7ab0fc3678df0864df6b (patch)
tree85a8c8e4fcf1d935fcbad54886b73410c8cb2e26 /src/main/resources/static/plugins/datatables-searchpanes/js/searchPanes.bootstrap4.js
Initializemain
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.js63
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;
+}));