@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.
@@ -266,7 +266,7 @@ let QueryBuilder = class QueryBuilder extends Component {
266
266
  categories.push(columns[i].category);
267
267
  }
268
268
  if (!columns[i].operators ||
269
- (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
269
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
270
270
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
271
271
  }
272
272
  }
@@ -306,8 +306,9 @@ let QueryBuilder = class QueryBuilder extends Component {
306
306
  else {
307
307
  columns[i].category = this.l10n.getConstant('OtherFields');
308
308
  }
309
- this.updateCustomOperator(columns[i]);
310
- if (!columns[i].operators || this.isLocale) {
309
+ this.updateCustomOperator(columns[i], 'initial');
310
+ if (!columns[i].operators ||
311
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
311
312
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
312
313
  }
313
314
  }
@@ -2027,7 +2028,9 @@ let QueryBuilder = class QueryBuilder extends Component {
2027
2028
  if (isNaN(value) && elem.value.indexOf(decimalSeparator) !== -1) {
2028
2029
  value = this.intl.getNumberParser({ format: 'n' })(elem.value);
2029
2030
  }
2030
- numericTextBoxObj.value = value;
2031
+ if (!isNaN(value)) {
2032
+ numericTextBoxObj.value = value;
2033
+ }
2031
2034
  this.isNumInput = true;
2032
2035
  }
2033
2036
  }
@@ -3185,6 +3188,10 @@ let QueryBuilder = class QueryBuilder extends Component {
3185
3188
  }
3186
3189
  target.nextElementSibling.innerHTML = '';
3187
3190
  }
3191
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3192
+ if (this.isAngular && !isNullOrUndefined(prevItemData.key) && this.fieldMode === 'DropdownTree') {
3193
+ delete prevItemData.template;
3194
+ }
3188
3195
  }
3189
3196
  if (isRender) {
3190
3197
  this.validateValue(rule, closest(target, '.e-rule-container'));
@@ -3224,6 +3231,10 @@ let QueryBuilder = class QueryBuilder extends Component {
3224
3231
  }
3225
3232
  }
3226
3233
  this.renderControls(target, itemData, rule, tempRule, isTempRendered);
3234
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3235
+ if (this.isAngular && !isNullOrUndefined(itemData.key) && itemData.template && this.fieldMode === 'DropdownTree') {
3236
+ delete itemData.template;
3237
+ }
3227
3238
  }
3228
3239
  }
3229
3240
  else {