datatables.net-searchbuilder-zf 1.8.4 → 2.0.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/css/searchBuilder.foundation.css +13 -8
- package/css/searchBuilder.foundation.min.css +1 -1
- package/js/searchBuilder.foundation.js +25 -31
- package/js/searchBuilder.foundation.min.js +3 -3
- package/js/searchBuilder.foundation.min.mjs +3 -3
- package/js/searchBuilder.foundation.mjs +7 -10
- package/package.json +4 -16
|
@@ -53,6 +53,10 @@ div.dtsb-searchBuilder div.dtsb-group {
|
|
|
53
53
|
position: relative;
|
|
54
54
|
clear: both;
|
|
55
55
|
margin-bottom: 0.8em;
|
|
56
|
+
margin-left: 46px;
|
|
57
|
+
}
|
|
58
|
+
div.dtsb-searchBuilder div.dtsb-group > button:first-child {
|
|
59
|
+
margin-left: -46px;
|
|
56
60
|
}
|
|
57
61
|
div.dtsb-searchBuilder div.dtsb-group button.dtsb-search {
|
|
58
62
|
float: right;
|
|
@@ -63,14 +67,10 @@ div.dtsb-searchBuilder div.dtsb-group button.dtsb-clearGroup {
|
|
|
63
67
|
padding: 0;
|
|
64
68
|
}
|
|
65
69
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer {
|
|
66
|
-
-webkit-transform: rotate(90deg);
|
|
67
|
-
-moz-transform: rotate(90deg);
|
|
68
|
-
-o-transform: rotate(90deg);
|
|
69
|
-
-ms-transform: rotate(90deg);
|
|
70
|
-
transform: rotate(90deg);
|
|
71
70
|
position: absolute;
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
left: -0.8em;
|
|
72
|
+
transform: rotate(90deg);
|
|
73
|
+
transform-origin: top left;
|
|
74
74
|
}
|
|
75
75
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria {
|
|
76
76
|
margin-bottom: 0.8em;
|
|
@@ -166,6 +166,12 @@ div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title {
|
|
|
166
166
|
div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll {
|
|
167
167
|
margin-bottom: 0px;
|
|
168
168
|
}
|
|
169
|
+
div.dtsb-searchBuilder div.dtsb-group {
|
|
170
|
+
margin-left: 52px;
|
|
171
|
+
}
|
|
172
|
+
div.dtsb-searchBuilder div.dtsb-group > button:first-child {
|
|
173
|
+
margin-left: -52px;
|
|
174
|
+
}
|
|
169
175
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown {
|
|
170
176
|
width: auto !important;
|
|
171
177
|
margin-bottom: 0px;
|
|
@@ -192,7 +198,6 @@ div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer {
|
|
|
192
198
|
justify-content: flex-start;
|
|
193
199
|
align-content: flex-start;
|
|
194
200
|
align-items: flex-start;
|
|
195
|
-
margin-top: 0.8em;
|
|
196
201
|
}
|
|
197
202
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic {
|
|
198
203
|
border: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
div.dt-button-collection{overflow:visible !important;z-index:2002 !important}div.dt-button-collection div.dtsb-searchBuilder{box-sizing:border-box;padding-left:1em !important;padding-right:1em !important}div.dt-button-collection.dtb-collection-closeable div.dtsb-titleRow{padding-right:40px}.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;width:100%}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:14px}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title:empty{display:inline}div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll{float:right;margin-bottom:.8em}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-search{float:right}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{
|
|
1
|
+
div.dt-button-collection{overflow:visible !important;z-index:2002 !important}div.dt-button-collection div.dtsb-searchBuilder{box-sizing:border-box;padding-left:1em !important;padding-right:1em !important}div.dt-button-collection.dtb-collection-closeable div.dtsb-titleRow{padding-right:40px}.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;width:100%}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:14px}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title:empty{display:inline}div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll{float:right;margin-bottom:.8em}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;margin-left:46px}div.dtsb-searchBuilder div.dtsb-group>button:first-child{margin-left:-46px}div.dtsb-searchBuilder div.dtsb-group button.dtsb-search{float:right}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{position:absolute;left:-0.8em;transform:rotate(90deg);transform-origin:top left}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria{margin-bottom:.8em;display:flex;justify-content:start;flex-flow:row wrap}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;min-width:5em;max-width:20em;color:inherit;font-size:1em}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-inputCont{flex:1;white-space:nowrap}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont span.dtsb-joiner{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont input.dtsb-value{width:33%}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont select,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont input{height:100%;box-sizing:border-box}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer{margin-left:auto;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}@media screen and (max-width: 550px){div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria{display:flex;flex-flow:none;flex-direction:column;justify-content:start;padding-right:calc(35px + .8em);margin-bottom:0px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:not(:first-child),div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:not(:nth-child(2)),div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:not(:last-child){padding-top:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:first-child,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:nth-child(2),div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:last-child{padding-top:0em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input{max-width:none;width:100%;margin-bottom:.8em;margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer{position:absolute;width:35px;display:flex;flex-wrap:wrap-reverse;right:0}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button{margin-right:0px !important}}div.dtsb-searchBuilder div.dtsb-titleRow{margin-bottom:1em}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title{padding-top:10px;font-size:1.4375rem}div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll{margin-bottom:0px}div.dtsb-searchBuilder div.dtsb-group{margin-left:52px}div.dtsb-searchBuilder div.dtsb-group>button:first-child{margin-left:-52px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown{width:auto !important;margin-bottom:0px;padding-left:.5rem;padding-right:1.5rem}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input{height:2.4375rem}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-condition{border-color:#3adb76}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-data{border-color:#cc4b37}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:#1779ba}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer{border-radius:4px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}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 !important;margin:0px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup{border:none;border-radius:0px;flex-basis:2em !important;width:2em;margin:0px}div.dtsb-searchBuilder div.dtsb-group button{margin-bottom:0px}
|
|
@@ -1,70 +1,64 @@
|
|
|
1
|
-
/*! Foundation
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Foundation styling 2.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
(function(
|
|
6
|
-
if (
|
|
5
|
+
(function(factory){
|
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
|
7
7
|
// AMD
|
|
8
|
-
define(
|
|
9
|
-
return factory(
|
|
10
|
-
}
|
|
8
|
+
define(['datatables.net-zf', 'datatables.net-searchbuilder'], function (dt) {
|
|
9
|
+
return factory(window, document, dt);
|
|
10
|
+
});
|
|
11
11
|
}
|
|
12
|
-
else if (
|
|
12
|
+
else if (typeof exports === 'object') {
|
|
13
13
|
// CommonJS
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
require('datatables.net-zf')(root, $);
|
|
14
|
+
var cjsRequires = function (root) {
|
|
15
|
+
if (! root.DataTable) {
|
|
16
|
+
require('datatables.net-zf')(root);
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
if (
|
|
21
|
-
require('datatables.net-searchbuilder')(root
|
|
19
|
+
if (! window.DataTable.SearchBuilder) {
|
|
20
|
+
require('datatables.net-searchbuilder')(root);
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
if (typeof window === 'undefined') {
|
|
26
|
-
module.exports = function (root
|
|
27
|
-
if (
|
|
25
|
+
module.exports = function (root) {
|
|
26
|
+
if (! root) {
|
|
28
27
|
// CommonJS environments without a window global must pass a
|
|
29
28
|
// root. This will give an error otherwise
|
|
30
29
|
root = window;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
cjsRequires( root, $ );
|
|
38
|
-
return factory( $, root, root.document );
|
|
32
|
+
cjsRequires(root);
|
|
33
|
+
return factory(root, root.document, root.DataTable);
|
|
39
34
|
};
|
|
40
35
|
}
|
|
41
36
|
else {
|
|
42
|
-
cjsRequires(
|
|
43
|
-
module.exports = factory(
|
|
37
|
+
cjsRequires(window);
|
|
38
|
+
module.exports = factory(window, window.document, window.DataTable);
|
|
44
39
|
}
|
|
45
40
|
}
|
|
46
41
|
else {
|
|
47
42
|
// Browser
|
|
48
|
-
factory(
|
|
43
|
+
factory(window, document, window.DataTable);
|
|
49
44
|
}
|
|
50
|
-
}(function(
|
|
45
|
+
}(function(window, document, DataTable) {
|
|
51
46
|
'use strict';
|
|
52
|
-
var DataTable = $.fn.dataTable;
|
|
53
47
|
|
|
54
48
|
|
|
55
|
-
|
|
49
|
+
Object.assign(DataTable.SearchBuilder.classes, {
|
|
56
50
|
clearAll: 'button alert dtsb-clearAll'
|
|
57
51
|
});
|
|
58
|
-
|
|
52
|
+
Object.assign(DataTable.Group.classes, {
|
|
59
53
|
add: 'button dtsb-add',
|
|
60
54
|
clearGroup: 'button dtsb-clearGroup',
|
|
61
55
|
logic: 'button dtsb-logic',
|
|
62
56
|
search: 'button dtsb-search'
|
|
63
57
|
});
|
|
64
|
-
|
|
58
|
+
Object.assign(DataTable.Criteria.classes, {
|
|
65
59
|
condition: 'form-control dtsb-condition',
|
|
66
60
|
data: 'form-control dtsb-data',
|
|
67
|
-
|
|
61
|
+
delete: 'button alert dtsb-delete',
|
|
68
62
|
left: 'button dtsb-left',
|
|
69
63
|
right: 'button dtsb-right',
|
|
70
64
|
value: 'form-control dtsb-value'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Foundation
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Foundation styling 2.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
(
|
|
4
|
+
(e=>{var a;"function"==typeof define&&define.amd?define(["datatables.net-zf","datatables.net-searchbuilder"],function(t){return e(window,document,t)}):"object"==typeof exports?(a=function(t){t.DataTable||require("datatables.net-zf")(t),window.DataTable.SearchBuilder||require("datatables.net-searchbuilder")(t)},"undefined"==typeof window?module.exports=function(t){return t=t||window,a(t),e(0,t.document,t.DataTable)}:(a(window),module.exports=e(window,window.document,window.DataTable))):e(window,document,window.DataTable)})(function(t,e,a){return Object.assign(a.SearchBuilder.classes,{clearAll:"button alert dtsb-clearAll"}),Object.assign(a.Group.classes,{add:"button dtsb-add",clearGroup:"button dtsb-clearGroup",logic:"button dtsb-logic",search:"button dtsb-search"}),Object.assign(a.Criteria.classes,{condition:"form-control dtsb-condition",data:"form-control dtsb-data",delete:"button alert dtsb-delete",left:"button dtsb-left",right:"button dtsb-right",value:"form-control dtsb-value"}),a});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Foundation
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Foundation styling 2.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import DataTable from"datatables.net-zf";import SearchBuilder from"datatables.net-searchbuilder";Object.assign(DataTable.SearchBuilder.classes,{clearAll:"button alert dtsb-clearAll"}),Object.assign(DataTable.Group.classes,{add:"button dtsb-add",clearGroup:"button dtsb-clearGroup",logic:"button dtsb-logic",search:"button dtsb-search"}),Object.assign(DataTable.Criteria.classes,{condition:"form-control dtsb-condition",data:"form-control dtsb-data",delete:"button alert dtsb-delete",left:"button dtsb-left",right:"button dtsb-right",value:"form-control dtsb-value"});export default DataTable;
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
/*! Foundation
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Foundation styling 2.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import jQuery from 'jquery';
|
|
6
5
|
import DataTable from 'datatables.net-zf';
|
|
7
6
|
import SearchBuilder from 'datatables.net-searchbuilder';
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
let $ = jQuery;
|
|
11
|
-
|
|
12
|
-
$.extend(true, DataTable.SearchBuilder.classes, {
|
|
8
|
+
Object.assign(DataTable.SearchBuilder.classes, {
|
|
13
9
|
clearAll: 'button alert dtsb-clearAll'
|
|
14
10
|
});
|
|
15
|
-
|
|
11
|
+
Object.assign(DataTable.Group.classes, {
|
|
16
12
|
add: 'button dtsb-add',
|
|
17
13
|
clearGroup: 'button dtsb-clearGroup',
|
|
18
14
|
logic: 'button dtsb-logic',
|
|
19
15
|
search: 'button dtsb-search'
|
|
20
16
|
});
|
|
21
|
-
|
|
17
|
+
Object.assign(DataTable.Criteria.classes, {
|
|
22
18
|
condition: 'form-control dtsb-condition',
|
|
23
19
|
data: 'form-control dtsb-data',
|
|
24
|
-
|
|
20
|
+
delete: 'button alert dtsb-delete',
|
|
25
21
|
left: 'button dtsb-left',
|
|
26
22
|
right: 'button dtsb-right',
|
|
27
23
|
value: 'form-control dtsb-value'
|
|
@@ -29,3 +25,4 @@ $.extend(true, DataTable.Criteria.classes, {
|
|
|
29
25
|
|
|
30
26
|
|
|
31
27
|
export default DataTable;
|
|
28
|
+
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"module": "js/searchBuilder.foundation.mjs",
|
|
6
6
|
"style": "css/searchBuilder.foundation.css",
|
|
7
7
|
"types": "./types/searchBuilder.foundation.d.ts",
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "2.0.0",
|
|
9
9
|
"files": [
|
|
10
10
|
"css/**/*.css",
|
|
11
11
|
"js/**/*.js",
|
|
@@ -18,26 +18,14 @@
|
|
|
18
18
|
"Search",
|
|
19
19
|
"Foundation",
|
|
20
20
|
"Datatables",
|
|
21
|
-
"jQuery",
|
|
22
21
|
"table",
|
|
23
22
|
"filter",
|
|
24
23
|
"sort"
|
|
25
24
|
],
|
|
26
25
|
"dependencies": {
|
|
27
|
-
"datatables.net-searchbuilder": "
|
|
28
|
-
"datatables.net-zf": "^
|
|
29
|
-
"jquery": ">=1.7"
|
|
26
|
+
"datatables.net-searchbuilder": "2.0.0",
|
|
27
|
+
"datatables.net-zf": "^3"
|
|
30
28
|
},
|
|
31
|
-
"moduleType": [
|
|
32
|
-
"globals",
|
|
33
|
-
"amd",
|
|
34
|
-
"node"
|
|
35
|
-
],
|
|
36
|
-
"ignore": [
|
|
37
|
-
"composer.json",
|
|
38
|
-
"datatables.json",
|
|
39
|
-
"package.json"
|
|
40
|
-
],
|
|
41
29
|
"author": {
|
|
42
30
|
"name": "SpryMedia Ltd",
|
|
43
31
|
"url": "http://datatables.net"
|
|
@@ -47,6 +35,6 @@
|
|
|
47
35
|
"license": "MIT",
|
|
48
36
|
"repository": {
|
|
49
37
|
"type": "git",
|
|
50
|
-
"url": "https://github.com/DataTables/
|
|
38
|
+
"url": "git+https://github.com/DataTables/SearchBuilder.git"
|
|
51
39
|
}
|
|
52
40
|
}
|