@indigina/ui-kit 1.1.21 → 1.1.22
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.
- package/esm2022/lib/components/kit-dropdown/kit-dropdown.component.mjs +2 -2
- package/esm2022/lib/components/kit-multiselect/kit-multiselect.component.mjs +106 -0
- package/esm2022/lib/components/kit-multiselect/kit-multiselect.model.mjs +2 -0
- package/esm2022/lib/components/kit-multiselect/kit-multiselect.module.mjs +47 -0
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/indigina-ui-kit.mjs +171 -35
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-multiselect/kit-multiselect.component.d.ts +73 -0
- package/lib/components/kit-multiselect/kit-multiselect.model.d.ts +6 -0
- package/lib/components/kit-multiselect/kit-multiselect.module.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { KitMultiselectItem } from './kit-multiselect.model';
|
|
3
|
+
import { ItemDisabledFn, PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
6
|
+
import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class KitMultiselectComponent<T> implements ControlValueAccessor {
|
|
9
|
+
private elementRef;
|
|
10
|
+
/**
|
|
11
|
+
* An items list which is going to be rendered as multiselect items
|
|
12
|
+
*/
|
|
13
|
+
items: KitMultiselectItem<T>[];
|
|
14
|
+
/**
|
|
15
|
+
* An items which need to be selected as a default value
|
|
16
|
+
*/
|
|
17
|
+
selectedItems?: T[];
|
|
18
|
+
/**
|
|
19
|
+
* Defines a value that is going to be applied as a multiselect label
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Defines whether the component will be in disabled state
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Defines a value that is going to be applied as a multiselect placeholder
|
|
28
|
+
*/
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether to close the popup of the multiSelect after the item selection, false by default
|
|
32
|
+
*/
|
|
33
|
+
autoClose: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Defines an icon which will be used to the left of the info message
|
|
36
|
+
*/
|
|
37
|
+
messageIcon?: KitSvgIcon;
|
|
38
|
+
/**
|
|
39
|
+
* Defines a value which going to be an info message text
|
|
40
|
+
*/
|
|
41
|
+
messageText?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Defines a value which going to be an info message type
|
|
44
|
+
*/
|
|
45
|
+
messageType: KitInputMessageType;
|
|
46
|
+
/**
|
|
47
|
+
* An action which is emitted when value is changed
|
|
48
|
+
*/
|
|
49
|
+
changed: EventEmitter<T[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Settings for the multiselect popup
|
|
52
|
+
*/
|
|
53
|
+
readonly popupSettings: PopupSettings;
|
|
54
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
55
|
+
constructor(elementRef: ElementRef);
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
onItemDisabled(): ItemDisabledFn;
|
|
58
|
+
onValueChange(value: T[]): void;
|
|
59
|
+
/**
|
|
60
|
+
* Function that should be called every time the form control value changes
|
|
61
|
+
*/
|
|
62
|
+
onChange: (value: T[]) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Function that should be called when input lost focus and changed form control state to "touched"
|
|
65
|
+
*/
|
|
66
|
+
onTouched: () => void;
|
|
67
|
+
writeValue(value: T[]): void;
|
|
68
|
+
registerOnChange(fn: (_: T[]) => void): void;
|
|
69
|
+
registerOnTouched(fn: () => void): void;
|
|
70
|
+
setDisabledState(disabled: boolean): void;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitMultiselectComponent<any>, never>;
|
|
72
|
+
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; }; "messageType": { "alias": "messageType"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
73
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-multiselect.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@progress/kendo-angular-dropdowns";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "projects/ui-kit/src/lib/components/kit-svg-icon/kit-svg-icon.module";
|
|
7
|
+
import * as i6 from "@progress/kendo-angular-label";
|
|
8
|
+
import * as i7 from "projects/ui-kit/src/lib/components/kit-input-message/kit-input-message.module";
|
|
9
|
+
export declare class KitMultiselectModule {
|
|
10
|
+
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.LabelModule, typeof i7.KitInputMessageModule], [typeof i1.KitMultiselectComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitMultiselectModule>;
|
|
13
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -92,3 +92,6 @@ export { KitBadgeTheme } from './lib/directives/kit-badge/kit-badge.const';
|
|
|
92
92
|
export { KitAvatarModule } from './lib/components/kit-avatar/kit-avatar.module';
|
|
93
93
|
export { KitAvatarComponent } from './lib/components/kit-avatar/kit-avatar.component';
|
|
94
94
|
export { KitAvatarSize } from './lib/components/kit-avatar/kit-avatar.const';
|
|
95
|
+
export { KitMultiselectModule } from './lib/components/kit-multiselect/kit-multiselect.module';
|
|
96
|
+
export { KitMultiselectComponent } from './lib/components/kit-multiselect/kit-multiselect.component';
|
|
97
|
+
export { KitMultiselectItem } from './lib/components/kit-multiselect/kit-multiselect.model';
|