@syncfusion/ej2-querybuilder 20.2.40 → 20.2.43

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.40
3
+ * version : 20.2.43
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.38",
3
+ "_id": "@syncfusion/ej2-querybuilder@20.2.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-PWhJtEaU2h/F+rAYhFk/+OyY9mRmAVwovdo6AcvB4yCMyTv+v+dJEr8i9y2W3yAPP9NMLUYTiC7ZjkoMMtNV3g==",
5
+ "_integrity": "sha512-knqSxGptcMNn4CE6c1xkEhCxb3EYm3uo3BlHtm6RDNfkvLY0urVvo9Hta8EGgDNbKFPqhsO78wlX6qN1mvR9Lw==",
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.38.tgz",
27
- "_shasum": "ee5e422fb1ed1849df995ee0d1a2e94c86a44581",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-20.2.40.tgz",
27
+ "_shasum": "5c79b8cacfe9a5c85d76d4f53ba12204b5ba2990",
28
28
  "_spec": "@syncfusion/ej2-querybuilder@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~20.2.39",
36
- "@syncfusion/ej2-buttons": "~20.2.38",
37
- "@syncfusion/ej2-calendars": "~20.2.40",
38
- "@syncfusion/ej2-dropdowns": "~20.2.40",
39
- "@syncfusion/ej2-inputs": "~20.2.38",
40
- "@syncfusion/ej2-splitbuttons": "~20.2.38"
35
+ "@syncfusion/ej2-base": "~20.2.43",
36
+ "@syncfusion/ej2-buttons": "~20.2.43",
37
+ "@syncfusion/ej2-calendars": "~20.2.43",
38
+ "@syncfusion/ej2-dropdowns": "~20.2.43",
39
+ "@syncfusion/ej2-inputs": "~20.2.43",
40
+ "@syncfusion/ej2-splitbuttons": "~20.2.43"
41
41
  },
42
42
  "deprecated": false,
43
43
  "description": "Essential JS 2 QueryBuilder",
@@ -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.40",
72
+ "version": "20.2.43",
73
73
  "sideEffects": false
74
74
  }
@@ -521,7 +521,7 @@ var QueryBuilder = /** @class */ (function (_super) {
521
521
  };
522
522
  QueryBuilder.prototype.selectBtn = function (target, event) {
523
523
  if (event.name === 'beforeOpen') {
524
- if (this.showButtons.groupInsert) {
524
+ if (this.showButtons.groupInsert || isNullOrUndefined(this.showButtons.groupInsert)) {
525
525
  if (this.element.querySelectorAll('.e-group-container').length >= this.maxGroupCount + 1) {
526
526
  addClass([event.element.querySelector('li span.e-addgroup').parentElement], 'e-button-hide');
527
527
  }
@@ -966,7 +966,7 @@ var QueryBuilder = /** @class */ (function (_super) {
966
966
  tempElem = this.createElement('div', { attrs: { class: 'e-rule-value' } });
967
967
  fieldElem.appendChild(tempElem);
968
968
  tempElem = this.createElement('div', { attrs: { class: 'e-rule-value-delete' } });
969
- if (this.showButtons.ruleDelete) {
969
+ if (this.showButtons.ruleDelete || isNullOrUndefined(this.showButtons.ruleDelete)) {
970
970
  clsName = 'e-removerule e-rule-delete e-css e-btn e-small';
971
971
  }
972
972
  else {
@@ -1023,7 +1023,13 @@ var QueryBuilder = /** @class */ (function (_super) {
1023
1023
  this.btnGroupId++;
1024
1024
  }
1025
1025
  if (isGroup) {
1026
- var clsName = this.showButtons.groupDelete ? 'e-deletegroup' : 'e-deletegroup e-button-hide';
1026
+ var clsName = void 0;
1027
+ if (this.showButtons.groupDelete || isNullOrUndefined(this.showButtons.groupDelete)) {
1028
+ clsName = 'e-deletegroup';
1029
+ }
1030
+ else {
1031
+ clsName = 'e-deletegroup e-button-hide';
1032
+ }
1027
1033
  dltGroupBtn = this.createElement('button', { attrs: { type: 'button', class: clsName } });
1028
1034
  var button = new Button({ iconCss: 'e-icons e-delete-icon', cssClass: 'e-small e-round' });
1029
1035
  button.appendTo(dltGroupBtn);