1 | (function (factory) {
|
---|
2 | if (typeof define === 'function' && define.amd) {
|
---|
3 | // AMD
|
---|
4 | define(['jquery', 'datatables.net-bs', '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-bs')(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',
|
---|
32 | disabledButton: 'disabled',
|
---|
33 | dull: 'disabled',
|
---|
34 | narrow: 'col narrow',
|
---|
35 | narrowSub: 'row',
|
---|
36 | pane: {
|
---|
37 | container: 'table'
|
---|
38 | },
|
---|
39 | paneButton: 'btn btn-light',
|
---|
40 | pill: 'badge badge-pill badge-light pill',
|
---|
41 | search: 'col-sm form-control search',
|
---|
42 | searchCont: 'input-group dtsp-searchCont',
|
---|
43 | searchLabelCont: 'input-group-btn',
|
---|
44 | show: 'col',
|
---|
45 | subRow1: 'dtsp-subRow1 text-right',
|
---|
46 | subRow2: 'dtsp-subRow2 text-right',
|
---|
47 | table: 'table table-condensed',
|
---|
48 | topRow: 'dtsp-topRow'
|
---|
49 | });
|
---|
50 | $.extend(true, DataTable.SearchPanes.classes, {
|
---|
51 | clearAll: 'dtsp-clearAll col-1 btn btn-light',
|
---|
52 | container: 'dtsp-searchPanes row',
|
---|
53 | panes: 'dtsp-panesContainer',
|
---|
54 | title: 'dtsp-title col-10',
|
---|
55 | titleRow: 'row'
|
---|
56 | });
|
---|
57 | return DataTable.searchPanes;
|
---|
58 | }));
|
---|