@syncfusion/ej2-querybuilder 32.2.7 → 32.2.8

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.7
3
+ * version : 32.2.8
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.7",
3
+ "version": "32.2.8",
4
4
  "description": "Essential JS 2 QueryBuilder",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -10,9 +10,9 @@
10
10
  "dependencies": {
11
11
  "@syncfusion/ej2-base": "~32.2.6",
12
12
  "@syncfusion/ej2-buttons": "~32.2.7",
13
- "@syncfusion/ej2-calendars": "~32.2.7",
14
- "@syncfusion/ej2-dropdowns": "~32.2.7",
15
- "@syncfusion/ej2-inputs": "~32.2.7",
13
+ "@syncfusion/ej2-calendars": "~32.2.8",
14
+ "@syncfusion/ej2-dropdowns": "~32.2.8",
15
+ "@syncfusion/ej2-inputs": "~32.2.8",
16
16
  "@syncfusion/ej2-splitbuttons": "~32.2.7"
17
17
  },
18
18
  "devDependencies": {},
@@ -707,6 +707,7 @@ export declare class QueryBuilder extends Component<HTMLDivElement> implements I
707
707
  private getDistinctValues;
708
708
  private renderMultiSelect;
709
709
  private multiSelectOpen;
710
+ private areQueriesSame;
710
711
  private bindMultiSelectData;
711
712
  private getMultiSelectData;
712
713
  private createSpinner;
@@ -2989,7 +2989,7 @@ var QueryBuilder = /** @class */ (function (_super) {
2989
2989
  value = dataSource[i]["" + field].toString();
2990
2990
  }
2991
2991
  var data = {};
2992
- if (!(value in original)) {
2992
+ if (!(value in original) && value) {
2993
2993
  original["" + value] = 1;
2994
2994
  if (isNested === 0) {
2995
2995
  data["" + field] = value;
@@ -3081,7 +3081,26 @@ var QueryBuilder = /** @class */ (function (_super) {
3081
3081
  args.cancel = true;
3082
3082
  this.bindMultiSelectData(element, value);
3083
3083
  }
3084
+ var multiselectObj = getComponent(element, 'multiselect');
3085
+ if (!multiselectObj) {
3086
+ return;
3087
+ }
3088
+ var incomingQuery = (args.query) ? args.query : null;
3089
+ var existingQuery = multiselectObj.query ? multiselectObj.query : null;
3090
+ if (!this.areQueriesSame(existingQuery, incomingQuery)) {
3091
+ multiselectObj.query = null;
3092
+ args.query = null;
3093
+ }
3094
+ }
3095
+ };
3096
+ QueryBuilder.prototype.areQueriesSame = function (query1, query2) {
3097
+ if ((query1 === null || query1 === undefined) && (query2 === null || query2 === undefined)) {
3098
+ return true;
3099
+ }
3100
+ if ((query1 === null || query1 === undefined) || (query2 === null || query2 === undefined)) {
3101
+ return false;
3084
3102
  }
3103
+ return JSON.stringify(query1) === JSON.stringify(query2);
3085
3104
  };
3086
3105
  QueryBuilder.prototype.bindMultiSelectData = function (element, value) {
3087
3106
  this.getMultiSelectData(element, value);
@@ -667,7 +667,6 @@
667
667
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
668
668
  }
669
669
  .e-query-builder .e-dragclone.e-cloneproperties .e-group-container, .e-query-builder .e-dragclone.e-cloneproperties .e-rule-container {
670
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
671
670
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
672
671
  }
673
672
  .e-query-builder .e-dragclone.e-cloneproperties .e-rule-value-delete {
@@ -1265,7 +1264,6 @@
1265
1264
  border-color: rgba(var(--color-sf-outline-variant));
1266
1265
  }
1267
1266
  .e-query-builder .e-rule-container {
1268
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
1269
1267
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
1270
1268
  border-color: rgba(var(--color-sf-outline-variant));
1271
1269
  }
@@ -667,7 +667,6 @@
667
667
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
668
668
  }
669
669
  .e-query-builder .e-dragclone.e-cloneproperties .e-group-container, .e-query-builder .e-dragclone.e-cloneproperties .e-rule-container {
670
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
671
670
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
672
671
  }
673
672
  .e-query-builder .e-dragclone.e-cloneproperties .e-rule-value-delete {
@@ -1265,7 +1264,6 @@
1265
1264
  border-color: rgba(var(--color-sf-outline-variant));
1266
1265
  }
1267
1266
  .e-query-builder .e-rule-container {
1268
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
1269
1267
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
1270
1268
  border-color: rgba(var(--color-sf-outline-variant));
1271
1269
  }
@@ -671,7 +671,6 @@
671
671
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
672
672
  }
673
673
  .e-query-builder .e-dragclone.e-cloneproperties .e-group-container, .e-query-builder .e-dragclone.e-cloneproperties .e-rule-container {
674
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
675
674
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
676
675
  }
677
676
  .e-query-builder .e-dragclone.e-cloneproperties .e-rule-value-delete {
@@ -1271,7 +1270,6 @@
1271
1270
  border-color: rgba(var(--color-sf-outline-variant));
1272
1271
  }
1273
1272
  .e-query-builder .e-rule-container {
1274
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
1275
1273
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
1276
1274
  border-color: rgba(var(--color-sf-outline-variant));
1277
1275
  }
@@ -671,7 +671,6 @@
671
671
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
672
672
  }
673
673
  .e-query-builder .e-dragclone.e-cloneproperties .e-group-container, .e-query-builder .e-dragclone.e-cloneproperties .e-rule-container {
674
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
675
674
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
676
675
  }
677
676
  .e-query-builder .e-dragclone.e-cloneproperties .e-rule-value-delete {
@@ -1271,7 +1270,6 @@
1271
1270
  border-color: rgba(var(--color-sf-outline-variant));
1272
1271
  }
1273
1272
  .e-query-builder .e-rule-container {
1274
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
1275
1273
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
1276
1274
  border-color: rgba(var(--color-sf-outline-variant));
1277
1275
  }
@@ -667,7 +667,6 @@
667
667
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
668
668
  }
669
669
  .e-query-builder .e-dragclone.e-cloneproperties .e-group-container, .e-query-builder .e-dragclone.e-cloneproperties .e-rule-container {
670
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
671
670
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
672
671
  }
673
672
  .e-query-builder .e-dragclone.e-cloneproperties .e-rule-value-delete {
@@ -1265,7 +1264,6 @@
1265
1264
  border-color: rgba(var(--color-sf-outline-variant));
1266
1265
  }
1267
1266
  .e-query-builder .e-rule-container {
1268
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
1269
1267
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
1270
1268
  border-color: rgba(var(--color-sf-outline-variant));
1271
1269
  }
@@ -671,7 +671,6 @@
671
671
  padding: 0 !important; /* stylelint-disable-line declaration-no-important */
672
672
  }
673
673
  .e-query-builder .e-dragclone.e-cloneproperties .e-group-container, .e-query-builder .e-dragclone.e-cloneproperties .e-rule-container {
674
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
675
674
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
676
675
  }
677
676
  .e-query-builder .e-dragclone.e-cloneproperties .e-rule-value-delete {
@@ -1271,7 +1270,6 @@
1271
1270
  border-color: rgba(var(--color-sf-outline-variant));
1272
1271
  }
1273
1272
  .e-query-builder .e-rule-container {
1274
- background: -webkit-gradient(linear, left bottom, left top, from(rgba(var(--color-sf-primary), 0.05)), to(rgba(var(--color-sf-primary), 0.05))), rgba(var(--color-sf-surface));
1275
1273
  background: linear-gradient(0deg, rgba(var(--color-sf-primary), 0.05), rgba(var(--color-sf-primary), 0.05)), rgba(var(--color-sf-surface));
1276
1274
  border-color: rgba(var(--color-sf-outline-variant));
1277
1275
  }