@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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.2.45
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.43",
3
+ "_id": "@syncfusion/ej2-querybuilder@20.2.45",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-mz1P4+CfgRWSgT5TCLOtROgOMko0rSCtNFLA0SdLbM7jCsETip9zYevgsgiby391ub9GdEgMlAm559v3oQPcTg==",
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.43.tgz",
27
- "_shasum": "59b9dd8ca7f697c8afeb4e066cac2e529e23b627",
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.45",
36
- "@syncfusion/ej2-buttons": "~20.2.45",
37
- "@syncfusion/ej2-calendars": "~20.2.45",
38
- "@syncfusion/ej2-dropdowns": "~20.2.45",
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.45",
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 && type !== "insertRule") {
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 && type !== "insertRule") {
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 && args.type !== "insertRule") {
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) || (column && (column.ruleTemplate && args.type == "insertRule"))) {
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
- rule.value = numVal;
4838
- rule.type = 'number';
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 = [];