@ecodev/natural 42.1.0 → 42.3.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.
@@ -36,6 +36,7 @@ export declare class AvatarComponent implements OnChanges {
36
36
  * Initialize the avatar component and its fallback system
37
37
  */
38
38
  private initializeAvatar;
39
+ private clearAvatar;
39
40
  private buildTextAvatar;
40
41
  private buildImageAvatar;
41
42
  /**
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
4
4
  import { IEnum, NaturalEnumService } from '../../../services/enum.service';
5
5
  import { AbstractSelect } from '../abstract-select.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class NaturalSelectEnumComponent extends AbstractSelect<IEnum['value']> implements OnInit, ControlValueAccessor {
7
+ export declare class NaturalSelectEnumComponent extends AbstractSelect<IEnum['value'] | IEnum['value'][]> implements OnInit, ControlValueAccessor {
8
8
  private readonly enumService;
9
9
  readonly ngControl: NgControl | null;
10
10
  /**
@@ -19,10 +19,14 @@ export declare class NaturalSelectEnumComponent extends AbstractSelect<IEnum['va
19
19
  * Functions that receives an enum value and returns whether that value is disabled
20
20
  */
21
21
  optionDisabled?: (item: IEnum) => boolean;
22
+ /**
23
+ * Whether the user should be allowed to select multiple options
24
+ */
25
+ multiple: boolean;
22
26
  items?: Observable<IEnum[]>;
23
27
  constructor(enumService: NaturalEnumService, ngControl: NgControl | null);
24
28
  ngOnInit(): void;
25
- getDisplayFn(): (item: IEnum['value'] | null) => string;
29
+ getDisplayFn(): (item: IEnum['value'] | IEnum['value'][] | null) => string;
26
30
  static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectEnumComponent, [null, { optional: true; self: true; }]>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectEnumComponent, "natural-select-enum", never, { "enumName": "enumName"; "nullLabel": "nullLabel"; "optionDisabled": "optionDisabled"; }, {}, never, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectEnumComponent, "natural-select-enum", never, { "enumName": "enumName"; "nullLabel": "nullLabel"; "optionDisabled": "optionDisabled"; "multiple": "multiple"; }, {}, never, never>;
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "42.1.0",
3
+ "version": "42.3.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,