@syncfusion/ej2-querybuilder 33.1.46 → 33.1.49

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 : 33.1.46
3
+ * version : 33.1.49
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": "33.1.46",
3
+ "version": "33.1.49",
4
4
  "description": "Essential JS 2 QueryBuilder",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -9,11 +9,11 @@
9
9
  "es2015": "./dist/es6/ej2-querybuilder.es5.js",
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~33.1.45",
12
- "@syncfusion/ej2-buttons": "~33.1.44",
12
+ "@syncfusion/ej2-buttons": "~33.1.49",
13
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"
14
+ "@syncfusion/ej2-dropdowns": "~33.1.49",
15
+ "@syncfusion/ej2-inputs": "~33.1.49",
16
+ "@syncfusion/ej2-splitbuttons": "~33.1.49"
17
17
  },
18
18
  "devDependencies": {},
19
19
  "keywords": [
@@ -352,6 +352,7 @@ export declare class QueryBuilder extends Component<HTMLDivElement> implements I
352
352
  private isRuleClicked;
353
353
  private groupCloned;
354
354
  private isRequestSent;
355
+ private initialID;
355
356
  private ddTree;
356
357
  private boundResizeHandler;
357
358
  /**
@@ -4305,7 +4305,7 @@ var QueryBuilder = /** @class */ (function (_super) {
4305
4305
  var parent_1 = this.element.querySelector('#' + groupID);
4306
4306
  var allContainers = parent_1.querySelectorAll(':scope > .e-group-body > .e-rule-list > [class*="-container"]');
4307
4307
  var topLevelGroups = parent_1.querySelectorAll(':scope > .e-group-body > .e-rule-list > .e-group-container');
4308
- if (topLevelGroups.length > 0 && groupID !== 'querybuilder_group0' && !(this.isAngular && groupID === 'ej2-querybuilder_0_group0')) {
4308
+ if (topLevelGroups.length > 0 && groupID !== 'querybuilder_group0' && !(this.isAngular && groupID === this.initialID + '_group0')) {
4309
4309
  var lastGroupIndex = -1;
4310
4310
  var lastGroup = topLevelGroups[topLevelGroups.length - 1];
4311
4311
  for (var i = 0; i < allContainers.length; i++) {
@@ -4649,6 +4649,7 @@ var QueryBuilder = /** @class */ (function (_super) {
4649
4649
  };
4650
4650
  QueryBuilder.prototype.preRender = function () {
4651
4651
  this.element.id = this.element.id || getUniqueID('ej2-querybuilder');
4652
+ this.initialID = this.element.id;
4652
4653
  this.defaultLocale = {
4653
4654
  StartsWith: 'Starts With',
4654
4655
  DoesNotStartWith: 'Does Not Start With',
@@ -5456,6 +5457,7 @@ var QueryBuilder = /** @class */ (function (_super) {
5456
5457
  if (this.headerTemplate && isRoot) {
5457
5458
  this.isRoot = true;
5458
5459
  }
5460
+ this.clearQBTemplate();
5459
5461
  this.reset();
5460
5462
  this.groupIdCounter = 1;
5461
5463
  this.ruleIdCounter = 0;