@porscheinformatik/clr-addons 15.6.0 → 15.6.2

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.
@@ -5735,13 +5735,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
5735
5735
  ClarityIcons.addIcons(trashIcon);
5736
5736
  class ClrEnumFilterComponent {
5737
5737
  set value(values) {
5738
- const converted = values.map(filtered => ({ value: filtered, displayValue: filtered }));
5739
5738
  if (this.possibleValues?.length) {
5740
- this.filteredValues = converted.filter(filtered => this.possibleValues.includes(filtered));
5739
+ this.filteredValues = this.possibleValues.filter(possibleValue => values?.includes(possibleValue.value));
5741
5740
  this.clrFilterValuesChange.emit(this.getDisplayValues(this.filteredValues));
5742
5741
  }
5743
5742
  else {
5744
- this.filteredValues = converted;
5743
+ this.filteredValues = values.map(filtered => ({ value: filtered, displayValue: filtered }));
5745
5744
  }
5746
5745
  this.changes.emit(true);
5747
5746
  }