@syncfusion/ej2-querybuilder 22.2.5 → 22.2.8
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 +6 -0
- package/dist/ej2-querybuilder.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es2015.js +7 -3
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +7 -3
- package/dist/es6/ej2-querybuilder.es5.js.map +1 -1
- package/dist/global/ej2-querybuilder.min.js +2 -2
- package/dist/global/ej2-querybuilder.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/query-builder/query-builder.d.ts +1 -0
- package/src/query-builder/query-builder.js +7 -3
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
3
|
+
* version : 22.2.8
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-querybuilder@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-querybuilder@22.
|
|
3
|
+
"_id": "@syncfusion/ej2-querybuilder@22.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-pQdz9bohFRkMJoTbcLmoYakmMvScFw5vdRR/zg9PBb08/e8Te5TE6pQX2RVnVEnc7X1zyUrz427I2uFxOFk52w==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-querybuilder",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-querybuilder",
|
|
24
24
|
"/@syncfusion/ej2-vue-querybuilder"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-22.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-22.2.5.tgz",
|
|
27
|
+
"_shasum": "d033be8e3c560f1fbda82027b3241a28c81250c1",
|
|
28
28
|
"_spec": "@syncfusion/ej2-querybuilder@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@syncfusion/ej2-base": "~22.2.5",
|
|
36
|
-
"@syncfusion/ej2-buttons": "~22.2.
|
|
37
|
-
"@syncfusion/ej2-calendars": "~22.2.
|
|
38
|
-
"@syncfusion/ej2-dropdowns": "~22.2.
|
|
39
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
40
|
-
"@syncfusion/ej2-splitbuttons": "~22.2.
|
|
36
|
+
"@syncfusion/ej2-buttons": "~22.2.8",
|
|
37
|
+
"@syncfusion/ej2-calendars": "~22.2.8",
|
|
38
|
+
"@syncfusion/ej2-dropdowns": "~22.2.8",
|
|
39
|
+
"@syncfusion/ej2-inputs": "~22.2.7",
|
|
40
|
+
"@syncfusion/ej2-splitbuttons": "~22.2.8"
|
|
41
41
|
},
|
|
42
42
|
"deprecated": false,
|
|
43
43
|
"description": "Essential JS 2 QueryBuilder",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
|
|
67
67
|
},
|
|
68
68
|
"typings": "index.d.ts",
|
|
69
|
-
"version": "22.2.
|
|
69
|
+
"version": "22.2.8",
|
|
70
70
|
"sideEffects": false,
|
|
71
71
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
72
72
|
}
|
|
@@ -192,6 +192,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
192
192
|
_this.isFieldClose = false;
|
|
193
193
|
_this.isDestroy = false;
|
|
194
194
|
_this.isGetNestedData = false;
|
|
195
|
+
_this.isCustomOprCols = [];
|
|
195
196
|
MultiSelect.Inject(CheckBoxSelection);
|
|
196
197
|
return _this;
|
|
197
198
|
}
|
|
@@ -261,7 +262,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
261
262
|
this.columnSort();
|
|
262
263
|
var columns = this.columns;
|
|
263
264
|
for (var i = 0, len = columns.length; i < len; i++) {
|
|
264
|
-
this.updateCustomOperator(columns[i]);
|
|
265
|
+
this.updateCustomOperator(columns[i], "initial");
|
|
265
266
|
if (!columns[i].type) {
|
|
266
267
|
if (columnKeys.indexOf(columns[i].field) > -1) {
|
|
267
268
|
value = this.dataColl[0][columns[i].field];
|
|
@@ -290,7 +291,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
290
291
|
if (categories.indexOf(columns[i].category) < 0) {
|
|
291
292
|
categories.push(columns[i].category);
|
|
292
293
|
}
|
|
293
|
-
if (!columns[i].operators || this.isLocale) {
|
|
294
|
+
if (!columns[i].operators || (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
|
|
294
295
|
columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
|
|
295
296
|
}
|
|
296
297
|
}
|
|
@@ -388,8 +389,11 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
388
389
|
}
|
|
389
390
|
}
|
|
390
391
|
};
|
|
391
|
-
QueryBuilder.prototype.updateCustomOperator = function (column) {
|
|
392
|
+
QueryBuilder.prototype.updateCustomOperator = function (column, from) {
|
|
392
393
|
if (column.operators) {
|
|
394
|
+
if (!this.isLocale && from === "initial" && !isNullOrUndefined(this.isCustomOprCols)) {
|
|
395
|
+
this.isCustomOprCols.push(column.field);
|
|
396
|
+
}
|
|
393
397
|
var _loop_1 = function (j) {
|
|
394
398
|
var sqlIdx = Object.keys(column.operators[j]).indexOf('sqlOperator');
|
|
395
399
|
if (sqlIdx > -1) {
|