@syncfusion/ej2-querybuilder 28.1.33 → 28.1.35

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.
@@ -2000,7 +2000,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2000
2000
  var element;
2001
2001
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2002
2002
  if ((this.isNumInput && typeof args.value === 'number') || (args.type === 'input' && args.target && args.target.classList.contains('e-numerictextbox'))
2003
- && (this.selectedColumn.validation.max !== Number.MAX_VALUE || this.selectedColumn.validation.min > 0)) {
2003
+ && (this.selectedColumn.validation && (this.selectedColumn.validation.max !== Number.MAX_VALUE || this.selectedColumn.validation.min > 0))) {
2004
2004
  this.isNumInput = false;
2005
2005
  return;
2006
2006
  }
@@ -2678,6 +2678,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2678
2678
  var value = '';
2679
2679
  var isNested = field.indexOf(this.separator);
2680
2680
  var _loop_2 = function (i, iLen) {
2681
+ value = '';
2681
2682
  if (isNested === 0) {
2682
2683
  value = dataSource[i]["" + field];
2683
2684
  }
@@ -2753,8 +2754,13 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
2753
2754
  QueryBuilder.prototype.multiSelectOpen = function (parentId, args) {
2754
2755
  if (this.dataSource instanceof DataManager) {
2755
2756
  var element = document.getElementById(parentId);
2756
- var dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
2757
- this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
2757
+ var dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), this.fieldMode === 'DropdownTree' ? 'dropdowntree' : 'dropdownlist');
2758
+ if (this.fieldMode === 'DropdownTree') {
2759
+ this.selectedColumn = this.getColumn(dropDownObj.value[0]);
2760
+ }
2761
+ else {
2762
+ this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
2763
+ }
2758
2764
  var value = this.selectedColumn.field;
2759
2765
  var isFetched = false;
2760
2766
  if (this.dataColl[1]) {
@@ -3412,13 +3418,24 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
3412
3418
  var selectedDate;
3413
3419
  var value;
3414
3420
  var radioBtnObj;
3421
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3422
+ var textboxValue;
3415
3423
  switch (controlName) {
3416
3424
  case 'checkbox':
3417
3425
  value = getComponent(element, controlName).value;
3418
3426
  rule.value = (value !== '') ? value : undefined;
3419
3427
  break;
3420
3428
  case 'textbox':
3421
- rule.value = getComponent(element, controlName).value;
3429
+ textboxValue = getComponent(element, controlName).value;
3430
+ if (rule.operator.indexOf('between') > -1) {
3431
+ if (typeof rule.value === 'string') {
3432
+ rule.value = [];
3433
+ }
3434
+ rule.value[i] = textboxValue;
3435
+ }
3436
+ else {
3437
+ rule.value = textboxValue;
3438
+ }
3422
3439
  break;
3423
3440
  case 'dropdownlist':
3424
3441
  rule.value = getComponent(element, controlName).value;