@syncfusion/ej2-querybuilder 20.2.45 → 20.2.46
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.umd.min.js +2 -2
- package/dist/ej2-querybuilder.umd.min.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es2015.js +12 -9
- package/dist/es6/ej2-querybuilder.es2015.js.map +1 -1
- package/dist/es6/ej2-querybuilder.es5.js +12 -9
- 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 +9 -9
- package/src/query-builder/query-builder.js +12 -9
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.2.
|
|
3
|
+
* version : 20.2.46
|
|
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@20.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-querybuilder@20.2.45",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-+8wefA+f9I8+vWl0lfrsVoWK71t8HIV7VdRdRY48U2DH28WZrWNlMa1RxhMlrJHrhN6sucwKfo9GEFvmZGHekA==",
|
|
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": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-20.2.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-20.2.45.tgz",
|
|
27
|
+
"_shasum": "58762707ad7524dd5ffabda7b6f075182869d740",
|
|
28
28
|
"_spec": "@syncfusion/ej2-querybuilder@*",
|
|
29
29
|
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"bundleDependencies": false,
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@syncfusion/ej2-base": "~20.2.
|
|
36
|
-
"@syncfusion/ej2-buttons": "~20.2.
|
|
37
|
-
"@syncfusion/ej2-calendars": "~20.2.
|
|
38
|
-
"@syncfusion/ej2-dropdowns": "~20.2.
|
|
35
|
+
"@syncfusion/ej2-base": "~20.2.46",
|
|
36
|
+
"@syncfusion/ej2-buttons": "~20.2.46",
|
|
37
|
+
"@syncfusion/ej2-calendars": "~20.2.46",
|
|
38
|
+
"@syncfusion/ej2-dropdowns": "~20.2.46",
|
|
39
39
|
"@syncfusion/ej2-inputs": "~20.2.45",
|
|
40
40
|
"@syncfusion/ej2-splitbuttons": "~20.2.45"
|
|
41
41
|
},
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
|
|
70
70
|
},
|
|
71
71
|
"typings": "index.d.ts",
|
|
72
|
-
"version": "20.2.
|
|
72
|
+
"version": "20.2.46",
|
|
73
73
|
"sideEffects": false
|
|
74
74
|
}
|
|
@@ -557,7 +557,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
557
557
|
ruleListElem.appendChild(ruleElem);
|
|
558
558
|
this.ruleIdCounter++;
|
|
559
559
|
}
|
|
560
|
-
if (column && column.ruleTemplate
|
|
560
|
+
if (column && column.ruleTemplate) {
|
|
561
561
|
args = { requestType: 'template-initialize', ruleID: ruleElem.id, action: action, fields: this.fields, rule: rule };
|
|
562
562
|
this.trigger('actionBegin', args);
|
|
563
563
|
this.ruleTemplateFn = this.templateParser(column.ruleTemplate);
|
|
@@ -589,7 +589,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
589
589
|
elem = this.ruleElem.querySelector('.e-rule-field').cloneNode(true);
|
|
590
590
|
}
|
|
591
591
|
ruleElem.appendChild(elem);
|
|
592
|
-
if (column && column.ruleTemplate
|
|
592
|
+
if (column && column.ruleTemplate) {
|
|
593
593
|
this.renderReactTemplates();
|
|
594
594
|
}
|
|
595
595
|
return ruleElem;
|
|
@@ -619,7 +619,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
619
619
|
var ruleElem;
|
|
620
620
|
var newRule = { 'label': '', 'field': '', 'type': '', 'operator': '' };
|
|
621
621
|
if (!args.cancel) {
|
|
622
|
-
if (column && column.ruleTemplate
|
|
622
|
+
if (column && column.ruleTemplate) {
|
|
623
623
|
this.selectedColumn = column;
|
|
624
624
|
operators = this.selectedColumn.operators;
|
|
625
625
|
newRule = { 'label': column.label, 'field': column.field, 'type': column.type, 'operator': operators[0].value };
|
|
@@ -630,9 +630,6 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
630
630
|
this.trigger('actionBegin', args_1);
|
|
631
631
|
}
|
|
632
632
|
else {
|
|
633
|
-
if (column && column.ruleTemplate) {
|
|
634
|
-
act = args.type;
|
|
635
|
-
}
|
|
636
633
|
ruleElem = this.appendRuleElem(trgt, column, act, pId, 'field');
|
|
637
634
|
ruleElem.querySelector('.e-filter-input').setAttribute('id', ruleElem.id + '_filterkey');
|
|
638
635
|
var element = ruleElem.querySelector('button');
|
|
@@ -670,7 +667,7 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
670
667
|
if (!this.isImportRules) {
|
|
671
668
|
this.updateAddedRule(trgt, rule, newRule, isRlTmp, pId);
|
|
672
669
|
}
|
|
673
|
-
if (!column || (column && !column.ruleTemplate)
|
|
670
|
+
if (!column || (column && !column.ruleTemplate)) {
|
|
674
671
|
if (this.fieldMode === 'Default') {
|
|
675
672
|
var ddlField = void 0;
|
|
676
673
|
var ddlValue = this.isImportRules ? this.GetRootColumnName(rule.field) : rule.field;
|
|
@@ -4834,8 +4831,14 @@ var QueryBuilder = /** @class */ (function (_super) {
|
|
|
4834
4831
|
rule.type = 'string';
|
|
4835
4832
|
}
|
|
4836
4833
|
else if (operator.indexOf('between') > -1 && parser[j - 1][0] === 'Conditions') {
|
|
4837
|
-
|
|
4838
|
-
|
|
4834
|
+
if (strVal.length !== 0) {
|
|
4835
|
+
rule.value = strVal;
|
|
4836
|
+
rule.type = 'string';
|
|
4837
|
+
}
|
|
4838
|
+
else {
|
|
4839
|
+
rule.value = numVal;
|
|
4840
|
+
rule.type = 'number';
|
|
4841
|
+
}
|
|
4839
4842
|
}
|
|
4840
4843
|
numVal = [];
|
|
4841
4844
|
strVal = [];
|