@syncfusion/ej2-querybuilder 19.3.44 → 19.4.40
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/CHANGELOG.md +9 -0
- package/dist/ej2-querybuilder.umd.min.js +11 -2
- package/dist/ej2-querybuilder.umd.min.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es2015.js +11 -12
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +11 -12
- package/dist/es6/ej2-querybuilder.es5.js.map +1 -1
- package/dist/global/ej2-querybuilder.min.js +11 -2
- package/dist/global/ej2-querybuilder.min.js.map +1 -1
- package/dist/global/index.d.ts +10 -1
- package/package.json +17 -13
- package/src/query-builder/query-builder.js +11 -12
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 19.
|
|
3
|
+
* version : 19.4.40
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
10
|
+
/*!
|
|
11
|
+
* filename: index.d.ts
|
|
12
|
+
* version : 19.3.53
|
|
4
13
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
14
|
* Use of this code is subject to the terms of our license.
|
|
6
15
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-querybuilder@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-querybuilder@
|
|
3
|
+
"_id": "@syncfusion/ej2-querybuilder@19.3.53",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-mNLWl/HVA7Puoc6JI++8ofSnIVgIfMK+ncFg3SOFvAdAfj0r7Nz0hGeJfKL7p+2yU75Ila1dIQ8T/pbwAYcVmQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-querybuilder",
|
|
7
|
-
"_phantomChildren": {
|
|
7
|
+
"_phantomChildren": {
|
|
8
|
+
"@syncfusion/ej2-icons": "19.4.38",
|
|
9
|
+
"@syncfusion/ej2-lists": "19.3.53",
|
|
10
|
+
"@syncfusion/ej2-popups": "19.3.53"
|
|
11
|
+
},
|
|
8
12
|
"_requested": {
|
|
9
13
|
"type": "range",
|
|
10
14
|
"registry": true,
|
|
@@ -23,8 +27,8 @@
|
|
|
23
27
|
"/@syncfusion/ej2-react-querybuilder",
|
|
24
28
|
"/@syncfusion/ej2-vue-querybuilder"
|
|
25
29
|
],
|
|
26
|
-
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-
|
|
27
|
-
"_shasum": "
|
|
30
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-19.3.53.tgz",
|
|
31
|
+
"_shasum": "a3b528db30e5b0c67ed6174ff167a113e96b7a25",
|
|
28
32
|
"_spec": "@syncfusion/ej2-querybuilder@*",
|
|
29
33
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
34
|
"author": {
|
|
@@ -32,12 +36,12 @@
|
|
|
32
36
|
},
|
|
33
37
|
"bundleDependencies": false,
|
|
34
38
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~19.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~19.
|
|
37
|
-
"@syncfusion/ej2-calendars": "~19.
|
|
38
|
-
"@syncfusion/ej2-dropdowns": "~19.
|
|
39
|
-
"@syncfusion/ej2-inputs": "~19.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~19.
|
|
39
|
+
"@syncfusion/ej2-base": "~19.4.38",
|
|
40
|
+
"@syncfusion/ej2-buttons": "~19.4.38",
|
|
41
|
+
"@syncfusion/ej2-calendars": "~19.4.38",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~19.4.40",
|
|
43
|
+
"@syncfusion/ej2-inputs": "~19.4.38",
|
|
44
|
+
"@syncfusion/ej2-splitbuttons": "~19.4.40"
|
|
41
45
|
},
|
|
42
46
|
"deprecated": false,
|
|
43
47
|
"description": "Essential JS 2 QueryBuilder",
|
|
@@ -68,7 +72,7 @@
|
|
|
68
72
|
"type": "git",
|
|
69
73
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
|
|
70
74
|
},
|
|
75
|
+
"sideEffects": false,
|
|
71
76
|
"typings": "index.d.ts",
|
|
72
|
-
"version": "19.
|
|
73
|
-
"sideEffects": false
|
|
77
|
+
"version": "19.4.40"
|
|
74
78
|
}
|
|
@@ -939,7 +939,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
939
939
|
else {
|
|
940
940
|
clsName = 'e-removerule e-rule-delete e-css e-btn e-small e-button-hide';
|
|
941
941
|
}
|
|
942
|
-
var delBtnElem = this.createElement('button', { attrs: { class: clsName } });
|
|
942
|
+
var delBtnElem = this.createElement('button', { attrs: { type: 'button', class: clsName } });
|
|
943
943
|
tempElem.appendChild(delBtnElem);
|
|
944
944
|
fieldElem.appendChild(tempElem);
|
|
945
945
|
ruleElem.appendChild(fieldElem);
|
|
@@ -991,7 +991,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
991
991
|
}
|
|
992
992
|
if (isGroup) {
|
|
993
993
|
var clsName = this.showButtons.groupDelete ? 'e-deletegroup' : 'e-deletegroup e-button-hide';
|
|
994
|
-
dltGroupBtn = this.createElement('button', { attrs: { class: clsName } });
|
|
994
|
+
dltGroupBtn = this.createElement('button', { attrs: { type: 'button', class: clsName } });
|
|
995
995
|
var button = new Button({ iconCss: 'e-icons e-delete-icon', cssClass: 'e-small e-round' });
|
|
996
996
|
button.appendTo(dltGroupBtn);
|
|
997
997
|
dltGroupBtn.setAttribute('title', this.l10n.getConstant('DeleteGroup'));
|
|
@@ -2909,7 +2909,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
2909
2909
|
}
|
|
2910
2910
|
});
|
|
2911
2911
|
var textElem = this.createElement('textarea', { attrs: { class: 'e-summary-text', readonly: 'true' }, styles: 'max-height:500px' });
|
|
2912
|
-
var editElem = this.createElement('button', { attrs: { class: 'e-edit-rule e-css e-btn e-small e-flat e-primary' } });
|
|
2912
|
+
var editElem = this.createElement('button', { attrs: { type: 'button', class: 'e-edit-rule e-css e-btn e-small e-flat e-primary' } });
|
|
2913
2913
|
var divElem = this.createElement('div', { attrs: { class: 'e-summary-btndiv' } });
|
|
2914
2914
|
contentElem.appendChild(textElem);
|
|
2915
2915
|
textElem.textContent = this.getSqlFromRules(this.rule);
|
|
@@ -4521,14 +4521,8 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
4521
4521
|
return operators[operator];
|
|
4522
4522
|
};
|
|
4523
4523
|
QueryBuilder.prototype.getTypeFromColumn = function (rules) {
|
|
4524
|
-
var columnData = this.
|
|
4525
|
-
|
|
4526
|
-
if (columnData[i].field === rules.field) {
|
|
4527
|
-
rules.type = columnData[i].type;
|
|
4528
|
-
break;
|
|
4529
|
-
}
|
|
4530
|
-
}
|
|
4531
|
-
return rules.type;
|
|
4524
|
+
var columnData = this.getColumn(rules.field);
|
|
4525
|
+
return columnData.type;
|
|
4532
4526
|
};
|
|
4533
4527
|
QueryBuilder.prototype.processParser = function (parser, rules, levelColl) {
|
|
4534
4528
|
var j;
|
|
@@ -4543,6 +4537,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
4543
4537
|
var lLen;
|
|
4544
4538
|
var grpCount;
|
|
4545
4539
|
var operator;
|
|
4540
|
+
var isLeftOpened = false;
|
|
4546
4541
|
for (var i = 0, iLen = parser.length; i < iLen; i++) {
|
|
4547
4542
|
if (parser[i][0] === 'Literal') {
|
|
4548
4543
|
rule = { label: parser[i][1], field: parser[i][1] };
|
|
@@ -4561,8 +4556,12 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
4561
4556
|
j = i + 1;
|
|
4562
4557
|
jLen = iLen;
|
|
4563
4558
|
for (j = i + 1; j < jLen; j++) {
|
|
4564
|
-
if (parser[j][0] === '
|
|
4559
|
+
if (operator.indexOf('between') < 0 && parser[j][0] === 'Left') {
|
|
4560
|
+
isLeftOpened = true;
|
|
4561
|
+
}
|
|
4562
|
+
else if (parser[j][0] === 'Right' && isLeftOpened) {
|
|
4565
4563
|
i = j;
|
|
4564
|
+
isLeftOpened = false;
|
|
4566
4565
|
break;
|
|
4567
4566
|
}
|
|
4568
4567
|
else {
|