@dragonmastery/zinia-forms-core 0.5.0 → 0.5.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.
package/dist/index.js CHANGED
@@ -10267,6 +10267,16 @@ function formatFilterValue(field, filter, column, fieldsMetadata, filterOptionsS
10267
10267
  if (filter.operator === "between" && filter.values.length === 2) {
10268
10268
  return `${filter.values[0]} - ${filter.values[1]}`;
10269
10269
  }
10270
+ if (filter.operator === "in" || filter.operator === "notIn") {
10271
+ const options2 = getFilterOptions(field, column, fieldsMetadata, filterOptionsState);
10272
+ if (options2.length > 0) {
10273
+ const labels = filter.values.map((val) => {
10274
+ const option = options2.find((opt) => opt.value === val);
10275
+ return option ? option.label : String(val);
10276
+ });
10277
+ return labels.join(", ");
10278
+ }
10279
+ }
10270
10280
  return filter.values.join(", ");
10271
10281
  }
10272
10282
  const value = filter.value;