@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.
@@ -312,7 +312,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
312
312
  categories.push(columns[i].category);
313
313
  }
314
314
  if (!columns[i].operators ||
315
- (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
315
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
316
316
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
317
317
  }
318
318
  }
@@ -352,8 +352,9 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
352
352
  else {
353
353
  columns[i].category = this.l10n.getConstant('OtherFields');
354
354
  }
355
- this.updateCustomOperator(columns[i]);
356
- if (!columns[i].operators || this.isLocale) {
355
+ this.updateCustomOperator(columns[i], 'initial');
356
+ if (!columns[i].operators ||
357
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
357
358
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
358
359
  }
359
360
  }
@@ -2084,7 +2085,9 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2084
2085
  if (isNaN(value) && elem.value.indexOf(decimalSeparator) !== -1) {
2085
2086
  value = this.intl.getNumberParser({ format: 'n' })(elem.value);
2086
2087
  }
2087
- numericTextBoxObj.value = value;
2088
+ if (!isNaN(value)) {
2089
+ numericTextBoxObj.value = value;
2090
+ }
2088
2091
  this.isNumInput = true;
2089
2092
  }
2090
2093
  }
@@ -3250,6 +3253,10 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
3250
3253
  }
3251
3254
  target.nextElementSibling.innerHTML = '';
3252
3255
  }
3256
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3257
+ if (this.isAngular && !isNullOrUndefined(prevItemData.key) && this.fieldMode === 'DropdownTree') {
3258
+ delete prevItemData.template;
3259
+ }
3253
3260
  }
3254
3261
  if (isRender) {
3255
3262
  this.validateValue(rule, closest(target, '.e-rule-container'));
@@ -3289,6 +3296,10 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
3289
3296
  }
3290
3297
  }
3291
3298
  this.renderControls(target, itemData, rule, tempRule, isTempRendered);
3299
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3300
+ if (this.isAngular && !isNullOrUndefined(itemData.key) && itemData.template && this.fieldMode === 'DropdownTree') {
3301
+ delete itemData.template;
3302
+ }
3292
3303
  }
3293
3304
  }
3294
3305
  else {