@syncfusion/ej2-querybuilder 30.1.37 → 30.1.39

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 : 30.1.37
3
+ * version : 30.1.39
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-querybuilder",
3
- "version": "30.1.37",
3
+ "version": "30.1.39",
4
4
  "description": "Essential JS 2 QueryBuilder",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,12 +8,12 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-querybuilder.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~30.1.37",
11
+ "@syncfusion/ej2-base": "~30.1.38",
12
12
  "@syncfusion/ej2-buttons": "~30.1.37",
13
13
  "@syncfusion/ej2-calendars": "~30.1.37",
14
- "@syncfusion/ej2-dropdowns": "~30.1.37",
15
- "@syncfusion/ej2-inputs": "~30.1.37",
16
- "@syncfusion/ej2-splitbuttons": "~30.1.37"
14
+ "@syncfusion/ej2-dropdowns": "~30.1.39",
15
+ "@syncfusion/ej2-inputs": "~30.1.38",
16
+ "@syncfusion/ej2-splitbuttons": "~30.1.39"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -3477,6 +3477,9 @@ var QueryBuilder = /** @class */ (function (_super) {
3477
3477
  (rule.type === 'string' ? textboxValue.split(',').map(function (val) { return val.trim(); }) :
3478
3478
  textboxValue.split(',').map(Number)) : [];
3479
3479
  }
3480
+ else {
3481
+ rule.value = textboxValue;
3482
+ }
3480
3483
  break;
3481
3484
  case 'dropdownlist':
3482
3485
  rule.value = getComponent(element, controlName).value;
@@ -4804,7 +4807,9 @@ var QueryBuilder = /** @class */ (function (_super) {
4804
4807
  EventHandler.add(wrapper, 'focusout', this.focusEventHandler, this);
4805
4808
  EventHandler.add(wrapper, 'focusin', this.focusEventHandler, this);
4806
4809
  EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);
4807
- EventHandler.add(document, 'keydown', this.keyBoardHandler, this);
4810
+ if (this.allowDragAndDrop) {
4811
+ EventHandler.add(document, 'keydown', this.keyBoardHandler, this);
4812
+ }
4808
4813
  window.addEventListener('resize', this.windowResizeHandler.bind(this));
4809
4814
  };
4810
4815
  QueryBuilder.prototype.unWireEvents = function () {
@@ -5175,6 +5180,10 @@ var QueryBuilder = /** @class */ (function (_super) {
5175
5180
  var orGroup = groupElem.parentElement.querySelectorAll('.e-btngroup-or');
5176
5181
  andElem = andGroup[andGroup.length - (1 + index)];
5177
5182
  orElem = orGroup[orGroup.length - (1 + index)];
5183
+ if (this.isImportRules) {
5184
+ andElem = groupElem.parentElement.querySelector('.e-btn-group.e-multi-connector .e-btngroup-and');
5185
+ orElem = groupElem.parentElement.querySelector('.e-btn-group.e-multi-connector .e-btngroup-or');
5186
+ }
5178
5187
  element = andGroup[andGroup.length - (1 + index)];
5179
5188
  if (element && element.parentElement && element.parentElement.style.display === 'none') {
5180
5189
  index++;
@@ -5894,6 +5903,9 @@ var QueryBuilder = /** @class */ (function (_super) {
5894
5903
  var tglBtnElem = parentElem.querySelector('.e-qb-toggle');
5895
5904
  if (rule.not) {
5896
5905
  addClass([tglBtnElem], 'e-active-toggle');
5906
+ if (this.enableSeparateConnector) {
5907
+ getComponent(tglBtnElem.querySelector('.e-checkbox'), 'checkbox').checked = rule.not;
5908
+ }
5897
5909
  }
5898
5910
  else {
5899
5911
  removeClass([tglBtnElem], 'e-active-toggle');