@indigina/ui-kit 1.1.141 → 1.1.142

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.
@@ -1,11 +1,13 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
1
+ import { ElementRef, EventEmitter, InputSignal, Signal, SimpleChanges } from '@angular/core';
2
2
  import { KitMultiselectItem } from './kit-multiselect.model';
3
- import { ItemDisabledFn, PopupSettings } from '@progress/kendo-angular-dropdowns';
3
+ import { ItemDisabledFn, MultiSelectComponent, PopupSettings } from '@progress/kendo-angular-dropdowns';
4
4
  import { ControlValueAccessor } from '@angular/forms';
5
5
  import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
6
+ import { TranslateService } from '@ngx-translate/core';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class KitMultiselectComponent<T> implements ControlValueAccessor {
8
9
  private elementRef;
10
+ private readonly translateService;
9
11
  /**
10
12
  * An items list which is going to be rendered as multiselect items
11
13
  */
@@ -38,17 +40,28 @@ export declare class KitMultiselectComponent<T> implements ControlValueAccessor
38
40
  * Defines a value which going to be an info message text
39
41
  */
40
42
  messageText?: string;
43
+ readonly shouldAddAllAsOption: InputSignal<boolean>;
44
+ readonly allOptionLabel: InputSignal<string | undefined>;
41
45
  /**
42
46
  * An action which is emitted when value is changed
43
47
  */
44
48
  changed: EventEmitter<T[]>;
49
+ readonly multiselect: Signal<MultiSelectComponent>;
45
50
  /**
46
51
  * Settings for the multiselect popup
47
52
  */
48
53
  readonly popupSettings: PopupSettings;
49
54
  readonly KitSvgIcon: typeof KitSvgIcon;
50
- constructor(elementRef: ElementRef);
55
+ readonly allOption: Signal<KitMultiselectItem<T>>;
56
+ private readonly destroy$;
57
+ get canAddAllAsOption(): boolean;
58
+ get isAllAsOptionAdded(): boolean;
59
+ get hasSelectedAllOption(): boolean;
60
+ get allEnabledItems(): T[];
61
+ constructor(elementRef: ElementRef, translateService: TranslateService);
51
62
  ngOnInit(): void;
63
+ ngOnChanges({ items, selectedItems, shouldAddAllAsOption }: SimpleChanges): void;
64
+ ngOnDestroy(): void;
52
65
  onItemDisabled(): ItemDisabledFn;
53
66
  onValueChange(value: T[]): void;
54
67
  /**
@@ -63,6 +76,9 @@ export declare class KitMultiselectComponent<T> implements ControlValueAccessor
63
76
  registerOnChange(fn: (_: T[]) => void): void;
64
77
  registerOnTouched(fn: () => void): void;
65
78
  setDisabledState(disabled: boolean): void;
79
+ private addAllAsOption;
80
+ private removeAllAsOption;
81
+ private subscribeToValueChanges;
66
82
  static ɵfac: i0.ɵɵFactoryDeclaration<KitMultiselectComponent<any>, never>;
67
- static ɵcmp: i0.ɵɵComponentDeclaration<KitMultiselectComponent<any>, "kit-multiselect", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitMultiselectComponent<any>, "kit-multiselect", never, { "items": { "alias": "items"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "shouldAddAllAsOption": { "alias": "shouldAddAllAsOption"; "required": false; "isSignal": true; }; "allOptionLabel": { "alias": "allOptionLabel"; "required": false; "isSignal": true; }; }, { "changed": "changed"; }, never, never, false, never>;
68
84
  }
@@ -6,8 +6,9 @@ import * as i4 from "@angular/forms";
6
6
  import * as i5 from "../kit-svg-icon/kit-svg-icon.module";
7
7
  import * as i6 from "../kit-input-message/kit-input-message.module";
8
8
  import * as i7 from "../kit-input-label/kit-input-label.module";
9
+ import * as i8 from "@ngx-translate/core";
9
10
  export declare class KitMultiselectModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<KitMultiselectModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitMultiselectModule, [typeof i1.KitMultiselectComponent], [typeof i2.CommonModule, typeof i3.MultiSelectModule, typeof i3.DropDownListModule, typeof i4.FormsModule, typeof i5.KitSvgIconModule, typeof i6.KitInputMessageModule, typeof i7.KitInputLabelModule], [typeof i1.KitMultiselectComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitMultiselectModule, [typeof i1.KitMultiselectComponent], [typeof i2.CommonModule, typeof i3.MultiSelectModule, typeof i3.DropDownListModule, typeof i4.FormsModule, typeof i5.KitSvgIconModule, typeof i6.KitInputMessageModule, typeof i7.KitInputLabelModule, typeof i8.TranslateModule], [typeof i1.KitMultiselectComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<KitMultiselectModule>;
13
14
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.141",
10
+ "version": "1.1.142",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^19.1.4",
13
13
  "@angular/core": "^19.1.4"