2020-03-31 03:08:46 +00:00
|
|
|
(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) {
|
|
|
|
$ = require('datatables.net-bs4')(root, $).$;
|
|
|
|
}
|
|
|
|
if (!$.fn.dataTable.searchPanes) {
|
|
|
|
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 col justify-content-end',
|
|
|
|
disabledButton: 'disabled',
|
|
|
|
dull: '',
|
|
|
|
narrow: 'col',
|
|
|
|
pane: {
|
|
|
|
container: 'table'
|
|
|
|
},
|
|
|
|
paneButton: 'btn btn-light',
|
|
|
|
pill: 'pill badge badge-pill badge-secondary',
|
|
|
|
search: 'col-sm form-control search',
|
|
|
|
searchCont: 'input-group col-sm',
|
|
|
|
searchLabelCont: 'input-group-append',
|
|
|
|
subRow1: 'dtsp-subRow1',
|
|
|
|
subRow2: 'dtsp-subRow2',
|
|
|
|
table: 'table table-sm table-borderless',
|
|
|
|
topRow: 'dtsp-topRow row'
|
|
|
|
});
|
|
|
|
$.extend(true, DataTable.SearchPanes.classes, {
|
2020-05-20 23:49:50 +00:00
|
|
|
clearAll: 'dtsp-clearAll col-auto btn btn-light',
|
2020-03-31 03:08:46 +00:00
|
|
|
container: 'dtsp-searchPanes',
|
|
|
|
panes: 'dtsp-panes dtsp-container',
|
2020-05-20 23:49:50 +00:00
|
|
|
title: 'dtsp-title col',
|
2020-03-31 03:08:46 +00:00
|
|
|
titleRow: 'dtsp-titleRow row'
|
|
|
|
});
|
|
|
|
return DataTable.searchPanes;
|
|
|
|
}));
|