datatables.net-searchbuilder-bs 1.1.0 → 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/Readme.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SearchBuilder for DataTables with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/)
|
|
2
2
|
|
|
3
|
-
This package contains a built distribution of the [SearchBuilder extension](https://datatables.net/extensions/
|
|
3
|
+
This package contains a built distribution of the [SearchBuilder extension](https://datatables.net/extensions/searchbuilder) for [DataTables](https://datatables.net/) with styling for [Bootstrap](https://getbootstrap.com/docs/3.3/).
|
|
4
4
|
|
|
5
5
|
SearchBuilder adds user defined complex search to the DataTable with the capability to search the DataTable by creating groups and conditions.
|
|
6
6
|
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
div.dt-button-collection {
|
|
2
2
|
overflow: visible !important;
|
|
3
|
+
z-index: 2002 !important;
|
|
3
4
|
}
|
|
4
5
|
div.dt-button-collection div.dtsb-searchBuilder {
|
|
5
|
-
width:
|
|
6
|
+
width: 99% !important;
|
|
7
|
+
padding-left: 10px !important;
|
|
8
|
+
padding-right: 10px !important;
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
.dtsb-greyscale {
|
|
@@ -66,6 +69,7 @@ div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input {
|
|
|
66
69
|
padding: 0.4em;
|
|
67
70
|
margin-right: 0.8em;
|
|
68
71
|
max-width: 20em;
|
|
72
|
+
background-color: rgba(200, 200, 200, 0.3);
|
|
69
73
|
}
|
|
70
74
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown option.dtsb-notItalic,
|
|
71
75
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input option.dtsb-notItalic {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
div.dt-button-collection{overflow:visible !important}div.dt-button-collection div.dtsb-searchBuilder{width:
|
|
1
|
+
div.dt-button-collection{overflow:visible !important;z-index:2002 !important}div.dt-button-collection div.dtsb-searchBuilder{width:99% !important;padding-left:10px !important;padding-right:10px !important}.dtsb-greyscale{border:1px solid #cecece !important}div.dtsb-logicContainer .dtsb-greyscale{border:none !important}div.dtsb-searchBuilder{justify-content:space-evenly;cursor:default;margin-bottom:1em;text-align:left}div.dtsb-searchBuilder button.dtsb-button,div.dtsb-searchBuilder select{font-size:1em}div.dtsb-searchBuilder div.dtsb-titleRow{justify-content:space-evenly;margin-bottom:.5em}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title{display:inline-block;padding-top:6px}div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll{float:right;margin-bottom:.333em}div.dtsb-searchBuilder div.dtsb-vertical .dtsb-value,div.dtsb-searchBuilder div.dtsb-vertical .dtsb-data,div.dtsb-searchBuilder div.dtsb-vertical .dtsb-condition{display:block}div.dtsb-searchBuilder div.dtsb-group{position:relative;clear:both;margin-bottom:.8em}div.dtsb-searchBuilder div.dtsb-group button.dtsb-clearGroup{margin:2px;text-align:center;padding:0}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);position:absolute;margin-top:.8em;margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria{margin-bottom:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input{padding:.4em;margin-right:.8em;max-width:20em;background-color:rgba(200, 200, 200, 0.3)}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown option.dtsb-notItalic,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input option.dtsb-notItalic{font-style:normal}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-italic{font-style:italic}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer{float:right;display:inline-block}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-delete,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-right,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-left{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-delete:last-child,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-right:last-child,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-left:last-child{margin-right:0}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria span.dtsp-joiner{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-titleRow{height:40px}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title{padding-top:10px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer{border:1px solid #ccc;border-radius:4px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;margin-top:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic{border:none;border-radius:0px;flex-grow:1;flex-shrink:0;flex-basis:3em;margin:0px;padding:6px 9px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup{border:none;border-radius:0px;min-width:2em;margin:0px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-condition{border-color:#4cae4c}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-data{border-color:#d43f3a}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-value,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-value{border-color:#2e6da4}
|
|
@@ -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($, window, document);
|
|
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($, root, root.document);
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
// Browser
|
|
30
|
-
factory(jQuery, window, document);
|
|
31
|
-
}
|
|
32
|
-
}(function ($, window, document) {
|
|
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
|
+
}());
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Bootstrap ui integration for DataTables' SearchBuilder
|
|
3
3
|
©2016 SpryMedia Ltd - datatables.net/license
|
|
4
4
|
*/
|
|
5
|
-
(function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-searchbuilder"],function(a){return b(a
|
|
6
|
-
|
|
5
|
+
(function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs","datatables.net-searchbuilder"],function(a){return b(a)}):"object"===typeof exports?module.exports=function(a,c){a||(a=window);c&&c.fn.dataTable||(c=require("datatables.net-bs")(a,c).$);c.fn.dataTable.searchBuilder||require("datatables.net-searchbuilder")(a,c);return b(c)}:b(jQuery)})(function(b){var a=b.fn.dataTable;b.extend(!0,a.SearchBuilder.classes,{clearAll:"btn btn-default dtsb-clearAll"});b.extend(!0,a.Group.classes,
|
|
6
|
+
{add:"btn btn-default dtsb-add",clearGroup:"btn btn-default dtsb-clearGroup",logic:"btn btn-default dtsb-logic"});b.extend(!0,a.Criteria.classes,{condition:"form-control dtsb-condition",data:"form-control dtsb-data","delete":"btn btn-default dtsb-delete",left:"btn btn-default dtsb-left",right:"btn btn-default dtsb-right",value:"form-control dtsb-value"});return a.searchPanes});
|
package/package.json
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
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
|
-
"js/**/*.js"
|
|
10
|
+
"js/**/*.js",
|
|
11
|
+
"types/**/*.d.ts"
|
|
11
12
|
],
|
|
12
13
|
"keywords": [
|
|
13
14
|
"SearchBuilder",
|
|
@@ -21,9 +22,9 @@
|
|
|
21
22
|
"sort"
|
|
22
23
|
],
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"
|
|
25
|
-
"datatables.net-bs": "
|
|
26
|
-
"
|
|
25
|
+
"datatables.net-searchbuilder": ">=1.2.2",
|
|
26
|
+
"datatables.net-bs": ">=1.11.3",
|
|
27
|
+
"jquery": ">=1.7"
|
|
27
28
|
},
|
|
28
29
|
"moduleType": [
|
|
29
30
|
"globals",
|
|
File without changes
|