@syncfusion/ej2-querybuilder 27.1.50 → 27.1.53

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 : 27.1.50
3
+ * version : 27.1.53
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-querybuilder@*",
3
- "_id": "@syncfusion/ej2-querybuilder@27.1.48",
3
+ "_id": "@syncfusion/ej2-querybuilder@27.1.52",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-cEvKWeSdVntNvWyDXiEhGGU4awcZgYtmp4BbVp6FZNU8HjIXUndWhxF7/QoDfk0e0y1/cgm/7NeLNc0Uh/9NUQ==",
5
+ "_integrity": "sha512-h903jDT30MYDJYZ9uCoZPyiWCzGMLnDREpe/mS08xb/DRs3eeA0HoeE4n1Qd3ehNJmnEL8QZW/Bj6zgSgkpYUw==",
6
6
  "_location": "/@syncfusion/ej2-querybuilder",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-querybuilder",
24
24
  "/@syncfusion/ej2-vue-querybuilder"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-27.1.48.tgz",
27
- "_shasum": "8508368e8dd760cdbd07ae932d9ac2d6f12262dc",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-querybuilder/-/ej2-querybuilder-27.1.52.tgz",
27
+ "_shasum": "fa6f6e45a38c16ac33c9ba4fe8a89454e71a8d73",
28
28
  "_spec": "@syncfusion/ej2-querybuilder@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
30
30
  "author": {
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "bundleDependencies": false,
34
34
  "dependencies": {
35
- "@syncfusion/ej2-base": "~27.1.50",
36
- "@syncfusion/ej2-buttons": "~27.1.50",
37
- "@syncfusion/ej2-calendars": "~27.1.50",
38
- "@syncfusion/ej2-dropdowns": "~27.1.50",
35
+ "@syncfusion/ej2-base": "~27.1.53",
36
+ "@syncfusion/ej2-buttons": "~27.1.53",
37
+ "@syncfusion/ej2-calendars": "~27.1.52",
38
+ "@syncfusion/ej2-dropdowns": "~27.1.53",
39
39
  "@syncfusion/ej2-inputs": "~27.1.50",
40
40
  "@syncfusion/ej2-splitbuttons": "~27.1.50"
41
41
  },
@@ -66,7 +66,7 @@
66
66
  "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/querybuilder"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "27.1.50",
69
+ "version": "27.1.53",
70
70
  "sideEffects": false,
71
71
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
72
72
  }
@@ -325,7 +325,7 @@ var QueryBuilder = /** @class */ (function (_super) {
325
325
  categories.push(columns[i].category);
326
326
  }
327
327
  if (!columns[i].operators ||
328
- (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
328
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
329
329
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
330
330
  }
331
331
  }
@@ -365,8 +365,9 @@ var QueryBuilder = /** @class */ (function (_super) {
365
365
  else {
366
366
  columns[i].category = this.l10n.getConstant('OtherFields');
367
367
  }
368
- this.updateCustomOperator(columns[i]);
369
- if (!columns[i].operators || this.isLocale) {
368
+ this.updateCustomOperator(columns[i], 'initial');
369
+ if (!columns[i].operators ||
370
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
370
371
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
371
372
  }
372
373
  }
@@ -2097,7 +2098,9 @@ var QueryBuilder = /** @class */ (function (_super) {
2097
2098
  if (isNaN(value) && elem.value.indexOf(decimalSeparator) !== -1) {
2098
2099
  value = this.intl.getNumberParser({ format: 'n' })(elem.value);
2099
2100
  }
2100
- numericTextBoxObj.value = value;
2101
+ if (!isNaN(value)) {
2102
+ numericTextBoxObj.value = value;
2103
+ }
2101
2104
  this.isNumInput = true;
2102
2105
  }
2103
2106
  }
@@ -3263,6 +3266,10 @@ var QueryBuilder = /** @class */ (function (_super) {
3263
3266
  }
3264
3267
  target.nextElementSibling.innerHTML = '';
3265
3268
  }
3269
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3270
+ if (this.isAngular && !isNullOrUndefined(prevItemData.key) && this.fieldMode === 'DropdownTree') {
3271
+ delete prevItemData.template;
3272
+ }
3266
3273
  }
3267
3274
  if (isRender) {
3268
3275
  this.validateValue(rule, closest(target, '.e-rule-container'));
@@ -3302,6 +3309,10 @@ var QueryBuilder = /** @class */ (function (_super) {
3302
3309
  }
3303
3310
  }
3304
3311
  this.renderControls(target, itemData, rule, tempRule, isTempRendered);
3312
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3313
+ if (this.isAngular && !isNullOrUndefined(itemData.key) && itemData.template && this.fieldMode === 'DropdownTree') {
3314
+ delete itemData.template;
3315
+ }
3305
3316
  }
3306
3317
  }
3307
3318
  else {