@sinequa/atomic-angular 1.0.12 → 1.0.13

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.
@@ -8990,6 +8990,24 @@ class AggregationListComponent {
8990
8990
  }
8991
8991
  });
8992
8992
  }
8993
+ else if (Array.isArray(activeFilters.values) && activeFilters.values.length) {
8994
+ // multiple values stored as a string array, e.g. { values: ["alice_martin", "caroline_dubois"] }
8995
+ // (no `filters` sub-array and no single `value`) — mark each matching item as selected
8996
+ activeFilters.values.forEach((value) => {
8997
+ const found = aggItems.find(item => item.value?.toString().toLocaleLowerCase() === value?.toLocaleLowerCase());
8998
+ if (!found) {
8999
+ // value not in the loaded items — add it so it shows up as selected
9000
+ aggItems.unshift({
9001
+ value,
9002
+ display: value,
9003
+ $selected: true
9004
+ });
9005
+ }
9006
+ else {
9007
+ found.$selected = true;
9008
+ }
9009
+ });
9010
+ }
8993
9011
  else {
8994
9012
  // single filter
8995
9013
  const found = aggItems.find(item => item.value?.toString().toLocaleLowerCase() === activeFilters.value?.toLocaleLowerCase());