datatables.net-searchbuilder-bm 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 [Bulma](https://bulma.io/)
|
|
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 [Bulma](https://bulma.io/).
|
|
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 {
|
|
@@ -135,3 +139,8 @@ div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearG
|
|
|
135
139
|
width: 2em;
|
|
136
140
|
margin: 0px;
|
|
137
141
|
}
|
|
142
|
+
|
|
143
|
+
div.dt-button-collection div.dtsb-searchBuilder {
|
|
144
|
+
padding-left: 10px;
|
|
145
|
+
padding-right: 10px;
|
|
146
|
+
}
|
|
@@ -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{margin-bottom:1.5em}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:.375em;background-color:#fff;padding-right:2.5em}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;margin-top:10px;overflow:hidden}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:.375rem 0rem}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup{border:none;border-radius:0px;width:2em;margin:0px}div.dt-button-collection div.dtsb-searchBuilder{padding-left:10px;padding-right:10px}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
if (typeof define === 'function' && define.amd) {
|
|
6
6
|
// AMD
|
|
7
7
|
define(['jquery', 'datatables.net-bs5', 'datatables.net-searchbuilder'], function ($) {
|
|
8
|
-
return factory(
|
|
8
|
+
return factory($);
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
else if (typeof exports === 'object') {
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
23
23
|
require('datatables.net-searchbuilder')(root, $);
|
|
24
24
|
}
|
|
25
|
-
return factory(
|
|
25
|
+
return factory($);
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
29
|
// Browser
|
|
30
|
-
factory(jQuery
|
|
30
|
+
factory(jQuery);
|
|
31
31
|
}
|
|
32
|
-
}(function (
|
|
32
|
+
}(function ($) {
|
|
33
33
|
'use strict';
|
|
34
34
|
var dataTable = $.fn.dataTable;
|
|
35
35
|
$.extend(true, dataTable.SearchBuilder.classes, {
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Bulma 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-bs5","datatables.net-searchbuilder"],function(a){return b(a
|
|
6
|
-
|
|
5
|
+
(function(b){"function"===typeof define&&define.amd?define(["jquery","datatables.net-bs5","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-bs5")(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:"button dtsb-clearAll"});b.extend(!0,a.Group.classes,
|
|
6
|
+
{add:"button dtsb-add",clearGroup:"button dtsb-clearGroup is-light",logic:"button dtsb-logic is-light"});b.extend(!0,a.Criteria.classes,{container:"dtsb-criteria","delete":"button dtsb-delete",left:"button dtsb-left",right:"button dtsb-right"});return a.searchPanes});
|
package/package.json
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
"main": "js/searchBuilder.bulma.js",
|
|
5
5
|
"style": "css/searchBuilder.bulma.css",
|
|
6
6
|
"types": "./types/searchBuilder.bulma.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,6 +22,8 @@
|
|
|
21
22
|
"sort"
|
|
22
23
|
],
|
|
23
24
|
"dependencies": {
|
|
25
|
+
"datatables.net-searchbuilder": ">=1.2.2",
|
|
26
|
+
"datatables.net-bm": ">=1.11.3",
|
|
24
27
|
"jquery": ">=1.7"
|
|
25
28
|
},
|
|
26
29
|
"moduleType": [
|
|
File without changes
|