suis 1.4.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/esm2022/lib/components/suis-input-image/suis-input-image.component.mjs +14 -8
  2. package/esm2022/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.mjs +1 -1
  3. package/esm2022/lib/modules/suis-select/classes/suis-select.base.mjs +15 -4
  4. package/esm2022/lib/modules/suis-select/components/suis-select/suis-select.component.mjs +3 -3
  5. package/esm2022/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.mjs +5 -3
  6. package/esm2022/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.mjs +1 -1
  7. package/esm2022/lib/modules/suis-select/components/suis-select-multi/suis-select-multi.component.mjs +3 -3
  8. package/esm2022/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.mjs +5 -3
  9. package/esm2022/lib/modules/suis-select/components/suis-select-option/suis-select-option.component.mjs +15 -3
  10. package/esm2022/lib/modules/suis-select/directives/suis-select-group-option.directive.mjs +1 -1
  11. package/esm2022/lib/modules/suis-select/directives/suis-select-option.directive.mjs +1 -1
  12. package/esm2022/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.mjs +1 -1
  13. package/esm2022/lib/modules/suis-select/interfaces/suis-select-option.interfaces.mjs +1 -1
  14. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.mjs +5 -3
  15. package/esm2022/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.mjs +5 -3
  16. package/esm2022/lib/modules/suis-select/pipes/suis-select-group-label.pipe.mjs +5 -5
  17. package/esm2022/lib/modules/suis-select/pipes/suis-select-label.pipe.mjs +4 -4
  18. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-chips.pipe.mjs +5 -5
  19. package/esm2022/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.mjs +5 -5
  20. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-group-options.pipe.mjs +17 -0
  21. package/esm2022/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.mjs +3 -3
  22. package/fesm2022/suis.mjs +90 -40
  23. package/fesm2022/suis.mjs.map +1 -1
  24. package/lib/components/suis-input-image/suis-input-image.component.d.ts +6 -2
  25. package/lib/components/suis-pagination/suis-pagination-per-page-options.pipe.d.ts +1 -1
  26. package/lib/modules/suis-select/classes/suis-select.base.d.ts +12 -4
  27. package/lib/modules/suis-select/components/suis-select-group/suis-select-group.component.d.ts +2 -2
  28. package/lib/modules/suis-select/components/suis-select-group-option/suis-select-group-option.component.d.ts +6 -6
  29. package/lib/modules/suis-select/components/suis-select-multi-group/suis-select-multi-group.component.d.ts +2 -2
  30. package/lib/modules/suis-select/components/suis-select-option/suis-select-option.component.d.ts +14 -6
  31. package/lib/modules/suis-select/directives/suis-select-group-option.directive.d.ts +3 -3
  32. package/lib/modules/suis-select/directives/suis-select-option.directive.d.ts +3 -3
  33. package/lib/modules/suis-select/interfaces/suis-select-group-option.interfaces.d.ts +2 -2
  34. package/lib/modules/suis-select/interfaces/suis-select-option.interfaces.d.ts +1 -3
  35. package/lib/modules/suis-select/pipes/suis-select-filter-group-options.pipe.d.ts +4 -4
  36. package/lib/modules/suis-select/pipes/suis-select-filter-options.pipe.d.ts +4 -4
  37. package/lib/modules/suis-select/pipes/suis-select-group-label.pipe.d.ts +1 -1
  38. package/lib/modules/suis-select/pipes/suis-select-label.pipe.d.ts +1 -1
  39. package/lib/modules/suis-select/pipes/suis-select-multi-chips.pipe.d.ts +1 -1
  40. package/lib/modules/suis-select/pipes/suis-select-multi-group-chips.pipe.d.ts +1 -1
  41. package/lib/modules/suis-select/pipes/suis-select-sort-group-options.pipe.d.ts +8 -0
  42. package/lib/modules/suis-select/pipes/suis-select-sort-options.pipe.d.ts +4 -4
  43. package/package.json +1 -1
@@ -1,9 +1,13 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { SuisInputBase } from '../../shared/classes/suis-input.base';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisInputImageComponent extends SuisInputBase {
5
5
  /** @internal */
6
6
  fileInput?: ElementRef;
7
+ /**
8
+ * Emits value on FileList upload.
9
+ */
10
+ uploaded: EventEmitter<FileList>;
7
11
  /** @internal */
8
12
  value: FileList | null;
9
13
  /** @internal */
@@ -12,5 +16,5 @@ export declare class SuisInputImageComponent extends SuisInputBase {
12
16
  onChange(event: Event): void;
13
17
  onRemove(): void;
14
18
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisInputImageComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputImageComponent, "suis-input-image", never, {}, {}, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisInputImageComponent, "suis-input-image", never, {}, { "uploaded": "uploaded"; }, never, never, true, never>;
16
20
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectOption } from '../../modules/suis-select/interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisPaginationPerPageOptionsPipe implements PipeTransform {
5
- transform(options: number[]): SuisSelectOption<number>[];
5
+ transform(options: number[]): SuisSelectOption[];
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisPaginationPerPageOptionsPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SuisPaginationPerPageOptionsPipe, "suisPaginationPerPageOptions", true>;
8
8
  }
@@ -5,7 +5,7 @@ import { SuisSelectOptionDirective } from '../directives/suis-select-option.dire
5
5
  import * as i0 from "@angular/core";
6
6
  export declare abstract class SuisSelectBase<T> extends SuisInputBase {
7
7
  /** @internal */
8
- suisSelectOption?: SuisSelectOptionDirective<T>;
8
+ suisSelectOption?: SuisSelectOptionDirective;
9
9
  /** @internal */
10
10
  searchInput?: ElementRef;
11
11
  /** @internal */
@@ -15,7 +15,7 @@ export declare abstract class SuisSelectBase<T> extends SuisInputBase {
15
15
  /**
16
16
  * Options displayed in dropdown list. Type of SuisSelectOption[].
17
17
  */
18
- options: SuisSelectOption<T>[];
18
+ options: SuisSelectOption[];
19
19
  /**
20
20
  * Displays search input above options. By default set to true.
21
21
  */
@@ -28,6 +28,14 @@ export declare abstract class SuisSelectBase<T> extends SuisInputBase {
28
28
  * Placeholder text displayed when value is not selected. By default set to 'Select option...'.
29
29
  */
30
30
  placeholder: string;
31
+ /**
32
+ * Option value property name in options. By default set to 'value'.
33
+ */
34
+ optionValue: string;
35
+ /**
36
+ * Option label property name in options. By default set to 'label'.
37
+ */
38
+ optionLabel: string;
31
39
  /**
32
40
  * Emits on search phrase changed.
33
41
  */
@@ -41,7 +49,7 @@ export declare abstract class SuisSelectBase<T> extends SuisInputBase {
41
49
  toggle(value: boolean): void;
42
50
  onDocumentClick(event: Event): void;
43
51
  /** @internal */
44
- optionTrackBy(index: number, option: SuisSelectOption<any>): string;
52
+ optionTrackBy(index: number, option: SuisSelectOption): string;
45
53
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectBase<any>, never>;
46
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectBase<any>, never, never, { "options": { "alias": "options"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "searchPhraseChanged": "searchPhraseChanged"; }, ["suisSelectOption"], never, false, never>;
54
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectBase<any>, never, never, { "options": { "alias": "options"; "required": false; }; "search": { "alias": "search"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; }, { "searchPhraseChanged": "searchPhraseChanged"; }, ["suisSelectOption"], never, false, never>;
47
55
  }
@@ -4,11 +4,11 @@ import { SuisSelectGroupOption } from '../../interfaces/suis-select-group-option
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SuisSelectGroupComponent<T> extends SuisSelectSingleBase<T> {
6
6
  /** @internal */
7
- suisSelectGroupOption?: SuisSelectGroupOptionDirective<T>;
7
+ suisSelectGroupOption?: SuisSelectGroupOptionDirective;
8
8
  /**
9
9
  * Group options displayed in dropdown list. Type of SuisSelectGroupOption[].
10
10
  */
11
- groupOptions: SuisSelectGroupOption<T>[];
11
+ groupOptions: SuisSelectGroupOption[];
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupComponent<any>, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectGroupComponent<any>, "suis-select-group", never, { "groupOptions": { "alias": "groupOptions"; "required": false; }; }, {}, ["suisSelectGroupOption"], never, true, never>;
14
14
  }
@@ -1,17 +1,17 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import { SuisSelectGroupOption } from '../../interfaces/suis-select-group-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SuisSelectGroupOptionComponent<T> {
4
+ export declare class SuisSelectGroupOptionComponent {
5
5
  /**
6
- * Item data. Type of SuisSelectGroupOption<T>. Required input.
6
+ * Item data. Type of SuisSelectGroupOption. Required input.
7
7
  */
8
- option?: SuisSelectGroupOption<T>;
8
+ option?: SuisSelectGroupOption;
9
9
  /**
10
10
  * Template to be displayed instead of item's label.
11
11
  */
12
12
  templateRef?: TemplateRef<{
13
- $implicit: SuisSelectGroupOption<T>;
13
+ $implicit: SuisSelectGroupOption;
14
14
  }>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupOptionComponent<any>, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectGroupOptionComponent<any>, "suis-select-group-option", never, { "option": { "alias": "option"; "required": true; }; "templateRef": { "alias": "templateRef"; "required": false; }; }, {}, never, never, true, never>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupOptionComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectGroupOptionComponent, "suis-select-group-option", never, { "option": { "alias": "option"; "required": true; }; "templateRef": { "alias": "templateRef"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -4,11 +4,11 @@ import { SuisSelectGroupOptionDirective } from '../../directives/suis-select-gro
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class SuisSelectMultiGroupComponent<T> extends SuisSelectMultiBase<T> {
6
6
  /** @internal */
7
- suisSelectGroupOption?: SuisSelectGroupOptionDirective<T>;
7
+ suisSelectGroupOption?: SuisSelectGroupOptionDirective;
8
8
  /**
9
9
  * Group options displayed in dropdown list. Type of SuisSelectGroupOption[].
10
10
  */
11
- groupOptions: SuisSelectGroupOption<T>[];
11
+ groupOptions: SuisSelectGroupOption[];
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiGroupComponent<any>, never>;
13
13
  static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectMultiGroupComponent<any>, "suis-select-multi-group", never, { "groupOptions": { "alias": "groupOptions"; "required": false; }; }, {}, ["suisSelectGroupOption"], never, true, never>;
14
14
  }
@@ -1,17 +1,25 @@
1
1
  import { EventEmitter, TemplateRef } from '@angular/core';
2
2
  import { SuisSelectOption } from '../../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SuisSelectOptionComponent<T> {
4
+ export declare class SuisSelectOptionComponent {
5
5
  /**
6
- * Option data. Type of SuisSelectOption<T>. Required input.
6
+ * Option data. Type of SuisSelectOption. Required input.
7
7
  */
8
- option?: SuisSelectOption<T>;
8
+ option?: SuisSelectOption;
9
9
  /**
10
10
  * Template to be displayed instead of option's label.
11
11
  */
12
12
  templateRef?: TemplateRef<{
13
- $implicit: SuisSelectOption<T>;
13
+ $implicit: SuisSelectOption;
14
14
  }>;
15
+ /**
16
+ * Option value property name in options. By default set to 'value'.
17
+ */
18
+ optionValue: string;
19
+ /**
20
+ * Option label property name in options. By default set to 'label'.
21
+ */
22
+ optionLabel: string;
15
23
  /**
16
24
  * Adds checkmark icon to checkbox (if checkbox input set to true). By default set to false.
17
25
  */
@@ -26,6 +34,6 @@ export declare class SuisSelectOptionComponent<T> {
26
34
  clicked: EventEmitter<void>;
27
35
  /** @internal */
28
36
  onClick(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectOptionComponent<any>, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectOptionComponent<any>, "suis-select-option", never, { "option": { "alias": "option"; "required": true; }; "templateRef": { "alias": "templateRef"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectOptionComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SuisSelectOptionComponent, "suis-select-option", never, { "option": { "alias": "option"; "required": true; }; "templateRef": { "alias": "templateRef"; "required": false; }; "optionValue": { "alias": "optionValue"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; }, { "clicked": "clicked"; }, never, never, true, never>;
31
39
  }
@@ -1,10 +1,10 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class SuisSelectGroupOptionDirective<T> {
3
+ export declare class SuisSelectGroupOptionDirective {
4
4
  /**
5
5
  * Custom template of the group option.
6
6
  */
7
7
  readonly templateRef: TemplateRef<any>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupOptionDirective<any>, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectGroupOptionDirective<any>, "[suisSelectGroupOption]", never, {}, {}, never, never, true, never>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupOptionDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectGroupOptionDirective, "[suisSelectGroupOption]", never, {}, {}, never, never, true, never>;
10
10
  }
@@ -1,10 +1,10 @@
1
1
  import { TemplateRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class SuisSelectOptionDirective<T> {
3
+ export declare class SuisSelectOptionDirective {
4
4
  /**
5
5
  * Custom template of the option.
6
6
  */
7
7
  readonly templateRef: TemplateRef<any>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectOptionDirective<any>, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectOptionDirective<any>, "[suisSelectOption]", never, {}, {}, never, never, true, never>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectOptionDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SuisSelectOptionDirective, "[suisSelectOption]", never, {}, {}, never, never, true, never>;
10
10
  }
@@ -1,6 +1,6 @@
1
1
  import { SuisSelectOption } from './suis-select-option.interfaces';
2
- export interface SuisSelectGroupOption<T> {
2
+ export interface SuisSelectGroupOption {
3
3
  label: string;
4
- children: SuisSelectOption<T>[];
4
+ children: SuisSelectOption[];
5
5
  [key: string]: any;
6
6
  }
@@ -1,5 +1,3 @@
1
- export interface SuisSelectOption<T> {
2
- label: string;
3
- value: T;
1
+ export interface SuisSelectOption {
4
2
  [key: string]: any;
5
3
  }
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SuisSelectFilterGroupOptionsPipe<T> implements PipeTransform {
5
- transform(groupOptions: SuisSelectGroupOption<T>[], phrase: string): SuisSelectGroupOption<T>[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectFilterGroupOptionsPipe<any>, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectFilterGroupOptionsPipe<any>, "suisSelectFilterGroupOptions", true>;
4
+ export declare class SuisSelectFilterGroupOptionsPipe implements PipeTransform {
5
+ transform(groupOptions: SuisSelectGroupOption[], phrase: string, optionLabel: string): SuisSelectGroupOption[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectFilterGroupOptionsPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectFilterGroupOptionsPipe, "suisSelectFilterGroupOptions", true>;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SuisSelectFilterOptionsPipe<T> implements PipeTransform {
5
- transform(options: SuisSelectOption<T>[], phrase: string): SuisSelectOption<T>[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectFilterOptionsPipe<any>, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectFilterOptionsPipe<any>, "suisSelectFilterOptions", true>;
4
+ export declare class SuisSelectFilterOptionsPipe implements PipeTransform {
5
+ transform(options: SuisSelectOption[], phrase: string, optionLabel: string): SuisSelectOption[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectFilterOptionsPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectFilterOptionsPipe, "suisSelectFilterOptions", true>;
8
8
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectGroupLabelPipe<T> implements PipeTransform {
5
- transform(value: T, groupOptions: SuisSelectGroupOption<T>[], placeholder: string): string;
5
+ transform(value: T, groupOptions: SuisSelectGroupOption[], placeholder: string, optionValue: string, optionLabel: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectGroupLabelPipe<any>, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectGroupLabelPipe<any>, "suisSelectGroupLabel", true>;
8
8
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectLabelPipe<T> implements PipeTransform {
5
- transform(value: T, options: SuisSelectOption<T>[], placeholder: string): string;
5
+ transform(value: T, options: SuisSelectOption[], placeholder: string, optionValue: string, optionLabel: string): string;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectLabelPipe<any>, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectLabelPipe<any>, "suisSelectLabel", true>;
8
8
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectMultiChipsPipe<T> implements PipeTransform {
5
- transform(values: T[], options: SuisSelectOption<T>[]): string[];
5
+ transform(values: T[], options: SuisSelectOption[], optionValue: string, optionLabel: string): string[];
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiChipsPipe<any>, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectMultiChipsPipe<any>, "suisSelectMultiChips", true>;
8
8
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SuisSelectMultiGroupChipsPipe<T> implements PipeTransform {
5
- transform(values: T[], groupOptions: SuisSelectGroupOption<T>[]): string[];
5
+ transform(values: T[], groupOptions: SuisSelectGroupOption[], optionValue: string, optionLabel: string): string[];
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectMultiGroupChipsPipe<any>, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectMultiGroupChipsPipe<any>, "suisSelectMultiGroupChips", true>;
8
8
  }
@@ -0,0 +1,8 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SuisSelectGroupOption } from '../interfaces/suis-select-group-option.interfaces';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SuisSelectSortGroupOptionsPipe implements PipeTransform {
5
+ transform(options: SuisSelectGroupOption[]): SuisSelectGroupOption[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectSortGroupOptionsPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectSortGroupOptionsPipe, "suisSelectSortGroupOptions", true>;
8
+ }
@@ -1,8 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { SuisSelectOption } from '../interfaces/suis-select-option.interfaces';
3
3
  import * as i0 from "@angular/core";
4
- export declare class SuisSelectSortOptionsPipe<T> implements PipeTransform {
5
- transform(options: SuisSelectOption<T>[]): SuisSelectOption<T>[];
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectSortOptionsPipe<any>, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectSortOptionsPipe<any>, "suisSelectSortOptions", true>;
4
+ export declare class SuisSelectSortOptionsPipe implements PipeTransform {
5
+ transform(options: SuisSelectOption[], optionLabel: string): SuisSelectOption[];
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SuisSelectSortOptionsPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<SuisSelectSortOptionsPipe, "suisSelectSortOptions", true>;
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suis",
3
- "version": "1.4.0",
3
+ "version": "1.6.0",
4
4
  "main": "src/index.ts",
5
5
  "author": "Karol Jaskółka",
6
6
  "description": "Angular 16+ Component Library",