@syncfusion/ej2-querybuilder 30.1.37 → 30.1.40

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.40
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.40",
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.40",
15
+ "@syncfusion/ej2-inputs": "~30.1.40",
16
+ "@syncfusion/ej2-splitbuttons": "~30.1.39"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -2449,6 +2449,12 @@ var QueryBuilder = /** @class */ (function (_super) {
2449
2449
  if (tooltipElem) {
2450
2450
  getComponent(tooltipElem, 'tooltip').destroy();
2451
2451
  }
2452
+ else if (prevOper.indexOf('in') > -1) {
2453
+ tooltipElem = parentElem.querySelector('.e-tooltip');
2454
+ if (tooltipElem) {
2455
+ getComponent(tooltipElem, 'tooltip').destroy();
2456
+ }
2457
+ }
2452
2458
  removeClass([parentElem], 'e-show');
2453
2459
  addClass([parentElem], 'e-hide');
2454
2460
  }
@@ -3477,6 +3483,9 @@ var QueryBuilder = /** @class */ (function (_super) {
3477
3483
  (rule.type === 'string' ? textboxValue.split(',').map(function (val) { return val.trim(); }) :
3478
3484
  textboxValue.split(',').map(Number)) : [];
3479
3485
  }
3486
+ else {
3487
+ rule.value = textboxValue;
3488
+ }
3480
3489
  break;
3481
3490
  case 'dropdownlist':
3482
3491
  rule.value = getComponent(element, controlName).value;
@@ -4804,7 +4813,9 @@ var QueryBuilder = /** @class */ (function (_super) {
4804
4813
  EventHandler.add(wrapper, 'focusout', this.focusEventHandler, this);
4805
4814
  EventHandler.add(wrapper, 'focusin', this.focusEventHandler, this);
4806
4815
  EventHandler.add(this.element, 'keydown', this.keyBoardHandler, this);
4807
- EventHandler.add(document, 'keydown', this.keyBoardHandler, this);
4816
+ if (this.allowDragAndDrop) {
4817
+ EventHandler.add(document, 'keydown', this.keyBoardHandler, this);
4818
+ }
4808
4819
  window.addEventListener('resize', this.windowResizeHandler.bind(this));
4809
4820
  };
4810
4821
  QueryBuilder.prototype.unWireEvents = function () {
@@ -5175,6 +5186,10 @@ var QueryBuilder = /** @class */ (function (_super) {
5175
5186
  var orGroup = groupElem.parentElement.querySelectorAll('.e-btngroup-or');
5176
5187
  andElem = andGroup[andGroup.length - (1 + index)];
5177
5188
  orElem = orGroup[orGroup.length - (1 + index)];
5189
+ if (this.isImportRules) {
5190
+ andElem = groupElem.parentElement.querySelector('.e-btn-group.e-multi-connector .e-btngroup-and');
5191
+ orElem = groupElem.parentElement.querySelector('.e-btn-group.e-multi-connector .e-btngroup-or');
5192
+ }
5178
5193
  element = andGroup[andGroup.length - (1 + index)];
5179
5194
  if (element && element.parentElement && element.parentElement.style.display === 'none') {
5180
5195
  index++;
@@ -5894,6 +5909,9 @@ var QueryBuilder = /** @class */ (function (_super) {
5894
5909
  var tglBtnElem = parentElem.querySelector('.e-qb-toggle');
5895
5910
  if (rule.not) {
5896
5911
  addClass([tglBtnElem], 'e-active-toggle');
5912
+ if (this.enableSeparateConnector) {
5913
+ getComponent(tglBtnElem.querySelector('.e-checkbox'), 'checkbox').checked = rule.not;
5914
+ }
5897
5915
  }
5898
5916
  else {
5899
5917
  removeClass([tglBtnElem], 'e-active-toggle');