@syncfusion/ej2-querybuilder 32.2.9 → 33.1.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 : 32.2.9
3
+ * version : 33.1.46
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. 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": "32.2.9",
3
+ "version": "33.1.46",
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": "~32.2.9",
12
- "@syncfusion/ej2-buttons": "~32.2.9",
13
- "@syncfusion/ej2-calendars": "~32.2.9",
14
- "@syncfusion/ej2-dropdowns": "~32.2.9",
15
- "@syncfusion/ej2-inputs": "~32.2.8",
16
- "@syncfusion/ej2-splitbuttons": "~32.2.7"
11
+ "@syncfusion/ej2-base": "~33.1.45",
12
+ "@syncfusion/ej2-buttons": "~33.1.44",
13
+ "@syncfusion/ej2-calendars": "~33.1.44",
14
+ "@syncfusion/ej2-dropdowns": "~33.1.46",
15
+ "@syncfusion/ej2-inputs": "~33.1.44",
16
+ "@syncfusion/ej2-splitbuttons": "~33.1.44"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -1433,10 +1433,9 @@ var QueryBuilder = /** @class */ (function (_super) {
1433
1433
  if (rule.rules[index].value instanceof Array) {
1434
1434
  valArray = rule.rules[index].value;
1435
1435
  }
1436
- if (excludeOprs.indexOf(rule.rules[index].operator) < -1 &&
1437
- (isNullOrUndefined(rule.rules[index].value) &&
1438
- rule.rules[index].type !== 'date') || rule.rules[index].value === '' || rule.rules[index].value === null ||
1439
- (rule.rules[index].value instanceof Array && valArray.length < 1)) {
1436
+ if (excludeOprs.indexOf(rule.rules[index].operator) < 0 && ((isNullOrUndefined(rule.rules[index].value) &&
1437
+ rule.rules[index].type !== 'date') || rule.rules[index].value === '' || rule.rules[index].value === null ||
1438
+ (rule.rules[index].value instanceof Array && valArray.length < 1))) {
1440
1439
  var valElem = tempElem.querySelectorAll('.e-rule-value .e-control');
1441
1440
  if (excludeOprs.indexOf(rule.rules[index].operator) < 0) {
1442
1441
  isValid = false;
@@ -4218,30 +4217,32 @@ var QueryBuilder = /** @class */ (function (_super) {
4218
4217
  this.clearQBTemplate();
4219
4218
  }
4220
4219
  var qbDdlElems = this.element.querySelectorAll('.qb-dropdownlist');
4221
- if (!qbDdlElems || qbDdlElems.length === 0) {
4222
- qbDdlElems = document.querySelectorAll('.qb-dropdownlist');
4223
- }
4224
- for (i = 0; i < qbDdlElems.length; i++) {
4225
- var ddlElem = qbDdlElems[i];
4226
- var targetInput = ddlElem.tagName === 'INPUT' ? ddlElem : ddlElem.querySelector('input');
4227
- if (targetInput) {
4228
- var ddlInst = getComponent(targetInput, 'dropdownlist');
4229
- if (ddlInst) {
4230
- if (ddlInst.close) {
4231
- ddlInst.close = null;
4232
- }
4233
- if (ddlInst.open) {
4234
- ddlInst.open = null;
4235
- }
4236
- if (ddlInst.change) {
4237
- ddlInst.change = null;
4220
+ if (qbDdlElems && qbDdlElems.length > 0) {
4221
+ for (i = 0; i < qbDdlElems.length; i++) {
4222
+ var ddlElem = qbDdlElems[i];
4223
+ if (this.element.contains(ddlElem)) {
4224
+ var targetInput = ddlElem.tagName === 'INPUT' ? ddlElem : ddlElem.querySelector('input');
4225
+ if (targetInput) {
4226
+ var ddlInst = getComponent(targetInput, 'dropdownlist');
4227
+ if (ddlInst) {
4228
+ if (ddlInst.close) {
4229
+ ddlInst.close = null;
4230
+ }
4231
+ if (ddlInst.open) {
4232
+ ddlInst.open = null;
4233
+ }
4234
+ if (ddlInst.change) {
4235
+ ddlInst.change = null;
4236
+ }
4237
+ ddlInst.destroy();
4238
+ }
4238
4239
  }
4239
- ddlInst.destroy();
4240
4240
  }
4241
4241
  }
4242
4242
  }
4243
- var popupElement = document.querySelectorAll('.qb-dropdownlist.e-popup');
4244
- if (popupElement) {
4243
+ // Cleanup orphaned popup elements
4244
+ var popupElement = this.element.querySelectorAll('.e-popup.e-dropdownlist');
4245
+ if (popupElement && popupElement.length > 0) {
4245
4246
  for (i = 0; i < popupElement.length; i++) {
4246
4247
  popupElement[i].remove();
4247
4248
  }