datatables.net-searchbuilder-bs 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/searchBuilder.bootstrap.js +57 -50
- package/package.json +3 -3
|
@@ -1,52 +1,59 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* ©
|
|
1
|
+
/*! SearchBuilder 1.3.0
|
|
2
|
+
* ©SpryMedia Ltd - datatables.net/license/mit
|
|
3
3
|
*/
|
|
4
|
-
(function (
|
|
5
|
-
if (typeof define === 'function' && define.amd) {
|
|
6
|
-
// AMD
|
|
7
|
-
define(['jquery', 'datatables.net-bs', 'datatables.net-searchbuilder'], function ($) {
|
|
8
|
-
return factory($);
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
else if (typeof exports === 'object') {
|
|
12
|
-
// CommonJS
|
|
13
|
-
module.exports = function (root, $) {
|
|
14
|
-
if (!root) {
|
|
15
|
-
root = window;
|
|
16
|
-
}
|
|
17
|
-
if (!$ || !$.fn.dataTable) {
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
19
|
-
$ = require('datatables.net-bs')(root, $).$;
|
|
20
|
-
}
|
|
21
|
-
if (!$.fn.dataTable.searchBuilder) {
|
|
22
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
23
|
-
require('datatables.net-searchbuilder')(root, $);
|
|
24
|
-
}
|
|
25
|
-
return factory($);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
// Browser
|
|
30
|
-
factory(jQuery);
|
|
31
|
-
}
|
|
32
|
-
}(function ($) {
|
|
4
|
+
(function () {
|
|
33
5
|
'use strict';
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
6
|
+
|
|
7
|
+
/*! Bootstrap ui integration for DataTables' SearchBuilder
|
|
8
|
+
* ©2016 SpryMedia Ltd - datatables.net/license
|
|
9
|
+
*/
|
|
10
|
+
(function (factory) {
|
|
11
|
+
if (typeof define === 'function' && define.amd) {
|
|
12
|
+
// AMD
|
|
13
|
+
define(['jquery', 'datatables.net-bs', 'datatables.net-searchbuilder'], function ($) {
|
|
14
|
+
return factory($);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
else if (typeof exports === 'object') {
|
|
18
|
+
// CommonJS
|
|
19
|
+
module.exports = function (root, $) {
|
|
20
|
+
if (!root) {
|
|
21
|
+
root = window;
|
|
22
|
+
}
|
|
23
|
+
if (!$ || !$.fn.dataTable) {
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
25
|
+
$ = require('datatables.net-bs')(root, $).$;
|
|
26
|
+
}
|
|
27
|
+
if (!$.fn.dataTable.searchBuilder) {
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
29
|
+
require('datatables.net-searchbuilder')(root, $);
|
|
30
|
+
}
|
|
31
|
+
return factory($);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
// Browser
|
|
36
|
+
factory(jQuery);
|
|
37
|
+
}
|
|
38
|
+
}(function ($) {
|
|
39
|
+
var dataTable = $.fn.dataTable;
|
|
40
|
+
$.extend(true, dataTable.SearchBuilder.classes, {
|
|
41
|
+
clearAll: 'btn btn-default dtsb-clearAll'
|
|
42
|
+
});
|
|
43
|
+
$.extend(true, dataTable.Group.classes, {
|
|
44
|
+
add: 'btn btn-default dtsb-add',
|
|
45
|
+
clearGroup: 'btn btn-default dtsb-clearGroup',
|
|
46
|
+
logic: 'btn btn-default dtsb-logic'
|
|
47
|
+
});
|
|
48
|
+
$.extend(true, dataTable.Criteria.classes, {
|
|
49
|
+
condition: 'form-control dtsb-condition',
|
|
50
|
+
data: 'form-control dtsb-data',
|
|
51
|
+
"delete": 'btn btn-default dtsb-delete',
|
|
52
|
+
left: 'btn btn-default dtsb-left',
|
|
53
|
+
right: 'btn btn-default dtsb-right',
|
|
54
|
+
value: 'form-control dtsb-value'
|
|
55
|
+
});
|
|
56
|
+
return dataTable.searchPanes;
|
|
57
|
+
}));
|
|
58
|
+
|
|
59
|
+
}());
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"main": "js/searchBuilder.bootstrap.js",
|
|
5
5
|
"style": "css/searchBuilder.bootstrap.css",
|
|
6
6
|
"types": "./types/searchBuilder.bootstrap.d.ts",
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.3.0",
|
|
8
8
|
"files": [
|
|
9
9
|
"css/**/*.css",
|
|
10
10
|
"js/**/*.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"sort"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"datatables.net-searchbuilder": ">=1.
|
|
26
|
-
"datatables.net-bs": ">=1.
|
|
25
|
+
"datatables.net-searchbuilder": ">=1.2.2",
|
|
26
|
+
"datatables.net-bs": ">=1.11.3",
|
|
27
27
|
"jquery": ">=1.7"
|
|
28
28
|
},
|
|
29
29
|
"moduleType": [
|