datatables.net-searchbuilder-bm 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.
|
@@ -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;
|
|
@@ -159,6 +159,12 @@ div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer
|
|
|
159
159
|
div.dtsb-searchBuilder div.dtsb-titleRow {
|
|
160
160
|
margin-bottom: 1.5em;
|
|
161
161
|
}
|
|
162
|
+
div.dtsb-searchBuilder div.dtsb-group {
|
|
163
|
+
margin-left: 50px;
|
|
164
|
+
}
|
|
165
|
+
div.dtsb-searchBuilder div.dtsb-group > button:first-child {
|
|
166
|
+
margin-left: -50px;
|
|
167
|
+
}
|
|
162
168
|
div.dtsb-searchBuilder div.dtsb-group button.dtsb-clearGroup {
|
|
163
169
|
margin-right: 8px;
|
|
164
170
|
}
|
|
@@ -186,7 +192,6 @@ div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer {
|
|
|
186
192
|
justify-content: flex-start;
|
|
187
193
|
align-content: flex-start;
|
|
188
194
|
align-items: flex-start;
|
|
189
|
-
margin-top: 10px;
|
|
190
195
|
overflow: hidden;
|
|
191
196
|
}
|
|
192
197
|
div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic {
|
|
@@ -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:1.5em}div.dtsb-searchBuilder div.dtsb-group{margin-left:50px}div.dtsb-searchBuilder div.dtsb-group>button:first-child{margin-left:-50px}div.dtsb-searchBuilder div.dtsb-group button.dtsb-clearGroup{margin-right:8px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown{height:2.5em;border-radius:var(--bulma-control-radius);background-color:hsl(var(--bulma-scheme-h), var(--bulma-scheme-s), var(--bulma-scheme-main-l));padding-right:2.5em;border-width:1px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-condition{border-color:#48c78e}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-data{border-color:#ef2e55}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:#3e8ed0}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;overflow:hidden}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic{border-top-right-radius:0px;border-bottom-right-radius:0px;flex-grow:1;flex-shrink:0;flex-basis:3em;margin:0px;padding:.375rem 0rem}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup{border-left:none;border-top-left-radius:0px;border-bottom-left-radius:0px;width:2em;margin:0px}div.dt-button-collection div.dtsb-searchBuilder{padding-left:10px;padding-right:10px}
|
|
@@ -1,69 +1,63 @@
|
|
|
1
|
-
/*! Bulma
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Bulma 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-bm', '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-bm')(root, $);
|
|
14
|
+
var cjsRequires = function (root) {
|
|
15
|
+
if (! root.DataTable) {
|
|
16
|
+
require('datatables.net-bm')(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 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
|
container: 'dtsb-criteria',
|
|
66
|
-
|
|
60
|
+
delete: 'button dtsb-delete',
|
|
67
61
|
left: 'button dtsb-left',
|
|
68
62
|
right: 'button dtsb-right',
|
|
69
63
|
input: 'input dtsb-input'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Bulma
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Bulma styling 2.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
(
|
|
4
|
+
(e=>{var n;"function"==typeof define&&define.amd?define(["datatables.net-bm","datatables.net-searchbuilder"],function(t){return e(window,document,t)}):"object"==typeof exports?(n=function(t){t.DataTable||require("datatables.net-bm")(t),window.DataTable.SearchBuilder||require("datatables.net-searchbuilder")(t)},"undefined"==typeof window?module.exports=function(t){return t=t||window,n(t),e(0,t.document,t.DataTable)}:(n(window),module.exports=e(window,window.document,window.DataTable))):e(window,document,window.DataTable)})(function(t,e,n){return Object.assign(n.SearchBuilder.classes,{clearAll:"button dtsb-clearAll"}),Object.assign(n.Group.classes,{add:"button dtsb-add",clearGroup:"button dtsb-clearGroup",logic:"button dtsb-logic",search:"button dtsb-search"}),Object.assign(n.Criteria.classes,{container:"dtsb-criteria",delete:"button dtsb-delete",left:"button dtsb-left",right:"button dtsb-right",input:"input dtsb-input"}),n});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Bulma
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Bulma styling 2.0.0 for DataTables
|
|
2
|
+
* Copyright (c) SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import DataTable from"datatables.net-bm";import SearchBuilder from"datatables.net-searchbuilder";Object.assign(DataTable.SearchBuilder.classes,{clearAll:"button 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,{container:"dtsb-criteria",delete:"button dtsb-delete",left:"button dtsb-left",right:"button dtsb-right",input:"input dtsb-input"});export default DataTable;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
/*! Bulma
|
|
2
|
-
*
|
|
1
|
+
/*! SearchBuilder Bulma 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-bm';
|
|
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 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
|
container: 'dtsb-criteria',
|
|
23
|
-
|
|
19
|
+
delete: 'button dtsb-delete',
|
|
24
20
|
left: 'button dtsb-left',
|
|
25
21
|
right: 'button dtsb-right',
|
|
26
22
|
input: 'input dtsb-input'
|
|
@@ -28,3 +24,4 @@ $.extend(true, DataTable.Criteria.classes, {
|
|
|
28
24
|
|
|
29
25
|
|
|
30
26
|
export default DataTable;
|
|
27
|
+
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"module": "js/searchBuilder.bulma.mjs",
|
|
6
6
|
"style": "css/searchBuilder.bulma.css",
|
|
7
7
|
"types": "./types/searchBuilder.bulma.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
|
"Bulma",
|
|
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-bm": "^
|
|
29
|
-
"jquery": ">=1.7"
|
|
26
|
+
"datatables.net-searchbuilder": "2.0.0",
|
|
27
|
+
"datatables.net-bm": "^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
|
}
|