ud-components 0.11.0 → 0.11.1

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.
@@ -3250,7 +3250,7 @@ class CustomTableComponent {
3250
3250
  if (Array.isArray(value))
3251
3251
  return value.length === 0;
3252
3252
  if (value && typeof value === 'object' && 'values' in value) {
3253
- return !value.values || value.values.length === 0;
3253
+ return Array.isArray(value.values) ? value.values.length === 0 : !value.values;
3254
3254
  }
3255
3255
  return false;
3256
3256
  }
@@ -3567,7 +3567,10 @@ class CustomTableComponent {
3567
3567
  };
3568
3568
  }
3569
3569
  else {
3570
- formValue[key] = criteria.value;
3570
+ formValue[key] = {
3571
+ values: criteria.value,
3572
+ mode: criteria.operator,
3573
+ };
3571
3574
  }
3572
3575
  return;
3573
3576
  }
@@ -3765,7 +3768,10 @@ class CustomTableComponent {
3765
3768
  // Multi-select filter ({ values, mode }) is only "active" when values are selected;
3766
3769
  // the always-present mode must not count as a value on its own.
3767
3770
  if (value && typeof value === 'object' && 'values' in value) {
3768
- return Array.isArray(value.values) && value.values.length > 0;
3771
+ const selected = value.values;
3772
+ return Array.isArray(selected)
3773
+ ? selected.length > 0
3774
+ : selected !== null && selected !== undefined && selected !== '';
3769
3775
  }
3770
3776
  if (typeof value === 'object') {
3771
3777
  return Object.values(value).some(v => v !== null && v !== '' && v !== undefined);