1 | (function (factory) {
|
---|
2 | if (typeof define === 'function' && define.amd) {
|
---|
3 | // AMD
|
---|
4 | define(['jquery', 'datatables.net-bs4', 'datatables.net-searchPanes'], function ($) {
|
---|
5 | return factory($, window, document);
|
---|
6 | });
|
---|
7 | }
|
---|
8 | else if (typeof exports === 'object') {
|
---|
9 | // CommonJS
|
---|
10 | module.exports = function (root, $) {
|
---|
11 | if (!root) {
|
---|
12 | root = window;
|
---|
13 | }
|
---|
14 | if (!$ || !$.fn.dataTable) {
|
---|
15 | $ = require('datatables.net-bs4')(root, $).$;
|
---|
16 | }
|
---|
17 | if (!$.fn.dataTable.searchPanes) {
|
---|
18 | require('datatables.net-searchPanes')(root, $);
|
---|
19 | }
|
---|
20 | return factory($, root, root.document);
|
---|
21 | };
|
---|
22 | }
|
---|
23 | else {
|
---|
24 | // Browser
|
---|
25 | factory(jQuery, window, document);
|
---|
26 | }
|
---|
27 | }(function ($, window, document) {
|
---|
28 | 'use strict';
|
---|
29 | var DataTable = $.fn.dataTable;
|
---|
30 | $.extend(true, DataTable.SearchPane.classes, {
|
---|
31 | buttonGroup: 'btn-group col justify-content-end',
|
---|
32 | disabledButton: 'disabled',
|
---|
33 | dull: '',
|
---|
34 | narrow: 'col',
|
---|
35 | pane: {
|
---|
36 | container: 'table'
|
---|
37 | },
|
---|
38 | paneButton: 'btn btn-light',
|
---|
39 | pill: 'pill badge badge-pill badge-secondary',
|
---|
40 | search: 'col-sm form-control search',
|
---|
41 | searchCont: 'input-group col-sm',
|
---|
42 | searchLabelCont: 'input-group-append',
|
---|
43 | subRow1: 'dtsp-subRow1',
|
---|
44 | subRow2: 'dtsp-subRow2',
|
---|
45 | table: 'table table-sm table-borderless',
|
---|
46 | topRow: 'dtsp-topRow row'
|
---|
47 | });
|
---|
48 | $.extend(true, DataTable.SearchPanes.classes, {
|
---|
49 | clearAll: 'dtsp-clearAll col-1 btn btn-light',
|
---|
50 | container: 'dtsp-searchPanes',
|
---|
51 | panes: 'dtsp-panes dtsp-container',
|
---|
52 | title: 'dtsp-title col-10',
|
---|
53 | titleRow: 'dtsp-titleRow row'
|
---|
54 | });
|
---|
55 | return DataTable.searchPanes;
|
---|
56 | }));
|
---|