suis 1.5.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +1 -1
  2. package/esm2022/lib/modules/suis-select/classes/suis-select.base.mjs +15 -4
  3. package/esm2022/lib/modules/suis-select/components/suis-select/suis-select.component.mjs +3 -3
  4. package/esm2022/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.mjs +5 -3
  5. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.mjs +1 -1
  6. package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
  7. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.mjs +5 -3
  8. package/esm2022/lib/modules/suis-select/components/suis-select-option/suis-select-option.component.mjs +15 -3
  9. package/esm2022/lib/modules/suis-select/directives/suis-select-group-option.directive.mjs +1 -1
  10. package/esm2022/lib/modules/suis-select/directives/suis-select-option.directive.mjs +1 -1
  11. package/esm2022/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.mjs +1 -1
  12. package/esm2022/lib/modules/suis-select/interfaces/suis-select-option.interfaces.mjs +1 -1
  13. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.mjs +5 -3
  14. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.mjs +5 -3
  15. package/esm2022/lib/modules/suis-select/pipes/suis-select-group-label.pipe.mjs +5 -5
  16. package/esm2022/lib/modules/suis-select/pipes/suis-select-label.pipe.mjs +4 -4
  17. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-chips.pipe.mjs +5 -5
  18. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.mjs +5 -5
  19. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-group-options.pipe.mjs +17 -0
  20. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.mjs +3 -3
  21. package/fesm2022/suis.mjs +78 -34
  22. package/fesm2022/suis.mjs.map +1 -1
  23. package/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.d.ts +1 -1
  24. package/lib/modules/suis-select/classes/suis-select.base.d.ts +12 -4
  25. package/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.d.ts +2 -2
  26. package/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.d.ts +6 -6
  27. package/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.d.ts +2 -2
  28. package/lib/modules/suis-select/components/suis-select-option/suis-select-option.component.d.ts +14 -6
  29. package/lib/modules/suis-select/directives/suis-select-group-option.directive.d.ts +3 -3
  30. package/lib/modules/suis-select/directives/suis-select-option.directive.d.ts +3 -3
  31. package/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.d.ts +2 -2
  32. package/lib/modules/suis-select/interfaces/suis-select-option.interfaces.d.ts +1 -3
  33. package/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.d.ts +4 -4
  34. package/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.d.ts +4 -4
  35. package/lib/modules/suis-select/pipes/suis-select-group-label.pipe.d.ts +1 -1
  36. package/lib/modules/suis-select/pipes/suis-select-label.pipe.d.ts +1 -1
  37. package/lib/modules/suis-select/pipes/suis-select-multi-chips.pipe.d.ts +1 -1
  38. package/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.d.ts +1 -1
  39. package/lib/modules/suis-select/pipes/suis-select-sort-group-options.pipe.d.ts +8 -0
  40. package/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.d.ts +4 -4
  41. package/package.json +1 -1
@@ -17,4 +17,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
17
17
  standalone: true,
18
18
  }]
19
19
  }] });
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmRpcmVjdGl2ZS5qcy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bnk7XG59XG4iXX0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZ3JvdXAtb3B0aW9uLmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2ludGVyZmFjZXMvc3Vpcy1zZWxlY3QtZ3JvdXAtb3B0aW9uLmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFN1aXNTZWxlY3RPcHRpb24gfSBmcm9tICcuL3N1aXMtc2VsZWN0LW9wdGlvbi5pbnRlcmZhY2VzJztcblxuZXhwb3J0IGludGVyZmFjZSBTdWlzU2VsZWN0R3JvdXBPcHRpb24ge1xuICBsYWJlbDogc3RyaW5nO1xuICBjaGlsZHJlbjogU3Vpc1NlbGVjdE9wdGlvbltdO1xuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICBba2V5OiBzdHJpbmddOiBhbnk7XG59XG4iXX0=
@@ -1,2 +1,2 @@
1
1
  export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2ludGVyZmFjZXMvc3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU3Vpc1NlbGVjdE9wdGlvbjxUPiB7XG4gIGxhYmVsOiBzdHJpbmc7XG4gIHZhbHVlOiBUO1xuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLWV4cGxpY2l0LWFueVxuICBba2V5OiBzdHJpbmddOiBhbnk7XG59XG4iXX0=
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L2ludGVyZmFjZXMvc3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgU3Vpc1NlbGVjdE9wdGlvbiB7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZXhwbGljaXQtYW55XG4gIFtrZXk6IHN0cmluZ106IGFueTtcbn1cbiJdfQ==
@@ -1,10 +1,12 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectFilterGroupOptionsPipe {
4
- transform(groupOptions, phrase) {
4
+ transform(groupOptions, phrase, optionLabel) {
5
5
  if (!phrase)
6
6
  return groupOptions;
7
- return groupOptions.filter((groupOption) => groupOption.children.some((option) => option.label.toLocaleLowerCase().includes(phrase.toLocaleLowerCase())));
7
+ return groupOptions.filter((groupOption) => groupOption.children.some((option) => option[optionLabel]
8
+ .toLocaleLowerCase()
9
+ .includes(phrase.toLocaleLowerCase())));
8
10
  }
9
11
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterGroupOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
12
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterGroupOptionsPipe, isStandalone: true, name: "suisSelectFilterGroupOptions" }); }
@@ -16,4 +18,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
16
18
  name: 'suisSelectFilterGroupOptions',
17
19
  }]
18
20
  }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZmlsdGVyLWdyb3VwLW9wdGlvbnMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtZmlsdGVyLWdyb3VwLW9wdGlvbnMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLGdDQUFnQztJQUMzQyxTQUFTLENBQ1AsWUFBd0MsRUFDeEMsTUFBYztRQUVkLElBQUksQ0FBQyxNQUFNO1lBQUUsT0FBTyxZQUFZLENBQUM7UUFDakMsT0FBTyxZQUFZLENBQUMsTUFBTSxDQUFDLENBQUMsV0FBVyxFQUFFLEVBQUUsQ0FDekMsV0FBVyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUNuQyxNQUFNLENBQUMsS0FBSyxDQUFDLGlCQUFpQixFQUF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sOEJBQThCO2lCQUNyQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IFN1aXNTZWxlY3RHcm91cE9wdGlvbiB9IGZyb20gJy4uL2ludGVyZmFjZXMvc3Vpcy1zZWxlY3QtZ3JvdXAtb3B0aW9uLmludGVyZmFjZXMnO1xuXG5AUGlwZSh7XG4gIHN0YW5kYWxvbmU6IHRydWUsXG4gIG5hbWU6ICdzdWlzU2VsZWN0RmlsdGVyR3JvdXBPcHRpb25zJyxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc1NlbGVjdEZpbHRlckdyb3VwT3B0aW9uc1BpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKFxuICAgIGdyb3VwT3B0aW9uczogU3Vpc1NlbGVjdEdyb3VwT3B0aW9uW10sXG4gICAgcGhyYXNlOiBzdHJpbmcsXG4gICAgb3B0aW9uTGFiZWw6IHN0cmluZ1xuICApOiBTdWlzU2VsZWN0R3JvdXBPcHRpb25bXSB7XG4gICAgaWYgKCFwaHJhc2UpIHJldHVybiBncm91cE9wdGlvbnM7XG4gICAgcmV0dXJuIGdyb3VwT3B0aW9ucy5maWx0ZXIoKGdyb3VwT3B0aW9uKSA9PlxuICAgICAgZ3JvdXBPcHRpb24uY2hpbGRyZW4uc29tZSgob3B0aW9uKSA9PlxuICAgICAgICBvcHRpb25bb3B0aW9uTGFiZWxdXG4gICAgICAgICAgLnRvTG9jYWxlTG93ZXJDYXNlKClcbiAgICAgICAgICAuaW5jbHVkZXMocGhyYXNlLnRvTG9jYWxlTG93ZXJDYXNlKCkpXG4gICAgICApXG4gICAgKTtcbiAgfVxufVxuIl19
@@ -1,10 +1,12 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectFilterOptionsPipe {
4
- transform(options, phrase) {
4
+ transform(options, phrase, optionLabel) {
5
5
  if (!phrase)
6
6
  return options;
7
- return options.filter((option) => option.label.toLocaleLowerCase().includes(phrase.toLocaleLowerCase()));
7
+ return options.filter((option) => option[optionLabel]
8
+ .toLocaleLowerCase()
9
+ .includes(phrase.toLocaleLowerCase()));
8
10
  }
9
11
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
12
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectFilterOptionsPipe, isStandalone: true, name: "suisSelectFilterOptions" }); }
@@ -16,4 +18,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
16
18
  name: 'suisSelectFilterOptions',
17
19
  }]
18
20
  }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZmlsdGVyLW9wdGlvbnMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtZmlsdGVyLW9wdGlvbnMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLDJCQUEyQjtJQUN0QyxTQUFTLENBQ1AsT0FBOEIsRUFDOUIsTUFBYztRQUVkLElBQUksQ0FBQyxNQUFNO1lBQUUsT0FBTyxPQUFPLENBQUM7UUFDNUIsT0FBTyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUMsTU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FjZXMvc3Vpcy1zZWxlY3Qtb3B0aW9uLmludGVyZmFjZXMnO1xuXG5AUGlwZSh7XG4gIHN0YW5kYWxvbmU6IHRydWUsXG4gIG5hbWU6ICdzdWlzU2VsZWN0RmlsdGVyT3B0aW9ucycsXG59KVxuZXhwb3J0IGNsYXNzIFN1aXNTZWxlY3RGaWx0ZXJPcHRpb25zUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0oXG4gICAgb3B0aW9uczogU3Vpc1NlbGVjdE9wdGlvbltdLFxuICAgIHBocmFzZTogc3RyaW5nLFxuICAgIG9wdGlvbkxhYmVsOiBzdHJpbmdcbiAgKTogU3Vpc1NlbGVjdE9wdGlvbltdIHtcbiAgICBpZiAoIXBocmFzZSkgcmV0dXJuIG9wdGlvbnM7XG4gICAgcmV0dXJuIG9wdGlvbnMuZmlsdGVyKChvcHRpb24pID0+XG4gICAgICBvcHRpb25bb3B0aW9uTGFiZWxdXG4gICAgICAgIC50b0xvY2FsZUxvd2VyQ2FzZSgpXG4gICAgICAgIC5pbmNsdWRlcyhwaHJhc2UudG9Mb2NhbGVMb3dlckNhc2UoKSlcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -1,14 +1,14 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectGroupLabelPipe {
4
- transform(value, groupOptions, placeholder) {
4
+ transform(value, groupOptions, placeholder, optionValue, optionLabel) {
5
5
  if (!value)
6
6
  return placeholder;
7
7
  const options = groupOptions.map((go) => go.children).flat();
8
- const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
8
+ const selectedOption = options.find((option) => JSON.stringify(option[optionValue]) === JSON.stringify(value));
9
9
  if (!selectedOption)
10
- throw Error('[SuisSelectLabelPipe] Provided value does not belong to valid values');
11
- return selectedOption.label;
10
+ throw Error('[SuisSelectGroupLabelPipe] Provided value does not belong to valid values');
11
+ return selectedOption[optionLabel];
12
12
  }
13
13
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectGroupLabelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
14
14
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectGroupLabelPipe, isStandalone: true, name: "suisSelectGroupLabel" }); }
@@ -20,4 +20,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
20
20
  name: 'suisSelectGroupLabel',
21
21
  }]
22
22
  }] });
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtZ3JvdXAtbGFiZWwucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtZ3JvdXAtbGFiZWwucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLHdCQUF3QjtJQUNuQyxTQUFTLENBQ1AsS0FBUSxFQUNSLFlBQXdDLEVBQ3hDLFdBQW1CO1FBRW5CLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxXQUFXLENBQUM7UUFDL0IsTUFBTSxPQUFPLEdBQUcsWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDLFFBQVEsQ0FBQyxDQUFDLElBQUksRUFBRSxDQUFDO1FBQzdELE1BQU0sY0FBYyxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQ2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AgdmFsdWU6IFQsXG4gICAgZ3JvdXBPcHRpb25zOiBTdWlzU2VsZWN0R3JvdXBPcHRpb25bXSxcbiAgICBwbGFjZWhvbGRlcjogc3RyaW5nLFxuICAgIG9wdGlvblZhbHVlOiBzdHJpbmcsXG4gICAgb3B0aW9uTGFiZWw6IHN0cmluZ1xuICApOiBzdHJpbmcge1xuICAgIGlmICghdmFsdWUpIHJldHVybiBwbGFjZWhvbGRlcjtcbiAgICBjb25zdCBvcHRpb25zID0gZ3JvdXBPcHRpb25zLm1hcCgoZ28pID0+IGdvLmNoaWxkcmVuKS5mbGF0KCk7XG4gICAgY29uc3Qgc2VsZWN0ZWRPcHRpb24gPSBvcHRpb25zLmZpbmQoXG4gICAgICAob3B0aW9uKSA9PiBKU09OLnN0cmluZ2lmeShvcHRpb25bb3B0aW9uVmFsdWVdKSA9PT0gSlNPTi5zdHJpbmdpZnkodmFsdWUpXG4gICAgKTtcbiAgICBpZiAoIXNlbGVjdGVkT3B0aW9uKVxuICAgICAgdGhyb3cgRXJyb3IoXG4gICAgICAgICdbU3Vpc1NlbGVjdEdyb3VwTGFiZWxQaXBlXSBQcm92aWRlZCB2YWx1ZSBkb2VzIG5vdCBiZWxvbmcgdG8gdmFsaWQgdmFsdWVzJ1xuICAgICAgKTtcbiAgICByZXR1cm4gc2VsZWN0ZWRPcHRpb25bb3B0aW9uTGFiZWxdO1xuICB9XG59XG4iXX0=
@@ -1,13 +1,13 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectLabelPipe {
4
- transform(value, options, placeholder) {
4
+ transform(value, options, placeholder, optionValue, optionLabel) {
5
5
  if (!value)
6
6
  return placeholder;
7
- const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
7
+ const selectedOption = options.find((option) => JSON.stringify(option[optionValue]) === JSON.stringify(value));
8
8
  if (!selectedOption)
9
9
  throw Error('[SuisSelectLabelPipe] Provided value does not belong to valid values');
10
- return selectedOption.label;
10
+ return selectedOption[optionLabel];
11
11
  }
12
12
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectLabelPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
13
13
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectLabelPipe, isStandalone: true, name: "suisSelectLabel" }); }
@@ -19,4 +19,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
19
19
  name: 'suisSelectLabel',
20
20
  }]
21
21
  }] });
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbGFiZWwucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtbGFiZWwucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLG1CQUFtQjtJQUM5QixTQUFTLENBQ1AsS0FBUSxFQUNSLE9BQThCLEVBQzlCLFdBQW1CO1FBRW5CLElBQUksQ0FBQyxLQUFLO1lBQUUsT0FBTyxXQUFXLENBQUM7UUFDL0IsTUFBTSxjQUFjLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FDakMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFLLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQ25FLENBQUM7UUFDRixJQU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JvdmlkZWQgdmFsdWUgZG9lcyBub3QgYmVsb25nIHRvIHZhbGlkIHZhbHVlcydcbiAgICAgICk7XG4gICAgcmV0dXJuIHNlbGVjdGVkT3B0aW9uW29wdGlvbkxhYmVsXTtcbiAgfVxufVxuIl19
@@ -1,13 +1,13 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectMultiChipsPipe {
4
- transform(values, options) {
4
+ transform(values, options, optionValue, optionLabel) {
5
5
  const selectedOptions = [];
6
6
  values.forEach((value) => {
7
- const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
7
+ const selectedOption = options.find((option) => JSON.stringify(option[optionValue]) === JSON.stringify(value));
8
8
  if (!selectedOption)
9
- throw Error('[SuisSelectMultiLabelPipe] Provided value does not belong to valid values');
10
- selectedOptions.push(selectedOption.label);
9
+ throw Error('[SuisSelectMultiChips] Provided value does not belong to valid values');
10
+ selectedOptions.push(selectedOption[optionLabel]);
11
11
  });
12
12
  return selectedOptions;
13
13
  }
@@ -21,4 +21,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
21
21
  name: 'suisSelectMultiChips',
22
22
  }]
23
23
  }] });
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktY2hpcHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtbXVsdGktY2hpcHMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLHdCQUF3QjtJ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kBQaXBlKHtcbiAgc3RhbmRhbG9uZTogdHJ1ZSxcbiAgbmFtZTogJ3N1aXNTZWxlY3RNdWx0aUNoaXBzJyxcbn0pXG5leHBvcnQgY2xhc3MgU3Vpc1NlbGVjdE11bHRpQ2hpcHNQaXBlPFQ+IGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShcbiAgICB2YWx1ZXM6IFRbXSxcbiAgICBvcHRpb25zOiBTdWlzU2VsZWN0T3B0aW9uW10sXG4gICAgb3B0aW9uVmFsdWU6IHN0cmluZyxcbiAgICBvcHRpb25MYWJlbDogc3RyaW5nXG4gICk6IHN0cmluZ1tdIHtcbiAgICBjb25zdCBzZWxlY3RlZE9wdGlvbnM6IHN0cmluZ1tdID0gW107XG5cbiAgICB2YWx1ZXMuZm9yRWFjaCgodmFsdWUpID0+IHtcbiAgICAgIGNvbnN0IHNlbGVjdGVkT3B0aW9uID0gb3B0aW9ucy5maW5kKFxuICAgICAgICAob3B0aW9uKSA9PlxuICAgICAgICAgIEpTT04uc3RyaW5naWZ5KG9wdGlvbltvcHRpb25WYWx1ZV0pID09PSBKU09OLnN0cmluZ2lmeSh2YWx1ZSlcbiAgICAgICk7XG4gICAgICBpZiAoIXNlbGVjdGVkT3B0aW9uKVxuICAgICAgICB0aHJvdyBFcnJvcihcbiAgICAgICAgICAnW1N1aXNTZWxlY3RNdWx0aUNoaXBzXSBQcm92aWRlZCB2YWx1ZSBkb2VzIG5vdCBiZWxvbmcgdG8gdmFsaWQgdmFsdWVzJ1xuICAgICAgICApO1xuICAgICAgc2VsZWN0ZWRPcHRpb25zLnB1c2goc2VsZWN0ZWRPcHRpb25bb3B0aW9uTGFiZWxdKTtcbiAgICB9KTtcblxuICAgIHJldHVybiBzZWxlY3RlZE9wdGlvbnM7XG4gIH1cbn1cbiJdfQ==
@@ -1,14 +1,14 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectMultiGroupChipsPipe {
4
- transform(values, groupOptions) {
4
+ transform(values, groupOptions, optionValue, optionLabel) {
5
5
  const selectedOptions = [];
6
6
  const options = groupOptions.map((go) => go.children).flat();
7
7
  values.forEach((value) => {
8
- const selectedOption = options.find((option) => JSON.stringify(option.value) === JSON.stringify(value));
8
+ const selectedOption = options.find((option) => JSON.stringify(option[optionValue]) === JSON.stringify(value));
9
9
  if (!selectedOption)
10
- throw Error('[SuisSelectMultiLabelPipe] Provided value does not belong to valid values');
11
- selectedOptions.push(selectedOption.label);
10
+ throw Error('[SuisSelectMultiGroupChips] Provided value does not belong to valid values');
11
+ selectedOptions.push(selectedOption[optionLabel]);
12
12
  });
13
13
  return selectedOptions;
14
14
  }
@@ -22,4 +22,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
22
22
  name: 'suisSelectMultiGroupChips',
23
23
  }]
24
24
  }] });
25
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAtY2hpcHMucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc3Vpcy9zcmMvbGliL21vZHVsZXMvc3Vpcy1zZWxlY3QvcGlwZXMvc3Vpcy1zZWxlY3QtbXVsdGktZ3JvdXAtY2hpcHMucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQzs7QUFPcEQsTUFBTSxPQUFPLDZCQUE2QjtJQUN4QyxTQUFTLENBQUMsTUFBVyxFQUFFLFlBQXdDO1FBQzdELE1BQU0sZUFBZSxHQUFhLEVBQUUsQ0FBQztRQUNyQyxNQUFNLE9BQU8sR0FBRyxZQUFZLENBQUMsR0FBRyxDQUFDLENBQUMsRUFBRSxFQ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meSh2YWx1ZSlcbiAgICAgICk7XG4gICAgICBpZiAoIXNlbGVjdGVkT3B0aW9uKVxuICAgICAgICB0aHJvdyBFcnJvcihcbiAgICAgICAgICAnW1N1aXNTZWxlY3RNdWx0aUdyb3VwQ2hpcHNdIFByb3ZpZGVkIHZhbHVlIGRvZXMgbm90IGJlbG9uZyB0byB2YWxpZCB2YWx1ZXMnXG4gICAgICAgICk7XG4gICAgICBzZWxlY3RlZE9wdGlvbnMucHVzaChzZWxlY3RlZE9wdGlvbltvcHRpb25MYWJlbF0pO1xuICAgIH0pO1xuXG4gICAgcmV0dXJuIHNlbGVjdGVkT3B0aW9ucztcbiAgfVxufVxuIl19
@@ -0,0 +1,17 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class SuisSelectSortGroupOptionsPipe {
4
+ transform(options) {
5
+ return options.sort((a, b) => a.label.localeCompare(b.label));
6
+ }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortGroupOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortGroupOptionsPipe, isStandalone: true, name: "suisSelectSortGroupOptions" }); }
9
+ }
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortGroupOptionsPipe, decorators: [{
11
+ type: Pipe,
12
+ args: [{
13
+ standalone: true,
14
+ name: 'suisSelectSortGroupOptions',
15
+ }]
16
+ }] });
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtc29ydC1ncm91cC1vcHRpb25zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi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NlbGVjdEdyb3VwT3B0aW9uW10pOiBTdWlzU2VsZWN0R3JvdXBPcHRpb25bXSB7XG4gICAgcmV0dXJuIG9wdGlvbnMuc29ydCgoYSwgYikgPT4gYS5sYWJlbC5sb2NhbGVDb21wYXJlKGIubGFiZWwpKTtcbiAgfVxufVxuIl19
@@ -1,8 +1,8 @@
1
1
  import { Pipe } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export class SuisSelectSortOptionsPipe {
4
- transform(options) {
5
- return options.sort((a, b) => a.label.localeCompare(b.label));
4
+ transform(options, optionLabel) {
5
+ return options.sort((a, b) => a[optionLabel].localeCompare(b[optionLabel]));
6
6
  }
7
7
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
8
8
  static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SuisSelectSortOptionsPipe, isStandalone: true, name: "suisSelectSortOptions" }); }
@@ -14,4 +14,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
14
14
  name: 'suisSelectSortOptions',
15
15
  }]
16
16
  }] });
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Vpcy1zZWxlY3Qtc29ydC1vcHRpb25zLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3N1aXMvc3JjL2xpYi9tb2R1bGVzL3N1aXMtc2VsZWN0L3BpcGVzL3N1aXMtc2VsZWN0LXNvcnQtb3B0aW9ucy5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQU9wRCxNQU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