@indigina/ui-kit 1.1.101 → 1.1.103
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/assets/icons/diskette.svg +2 -4
- package/assets/icons/warning-circle-filled.svg +2 -2
- package/esm2022/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +39 -33
- package/esm2022/lib/components/kit-button/kit-button.component.mjs +2 -2
- package/esm2022/lib/components/kit-notification/kit-notification.component.mjs +5 -11
- package/esm2022/lib/components/kit-profile-menu/kit-profile-menu.component.mjs +3 -3
- package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +3 -1
- package/esm2022/lib/components/kit-svg-sprite/kit-svg-sprite.component.mjs +3 -3
- package/esm2022/lib/components/kit-switch/kit-switch.component.mjs +2 -2
- package/esm2022/lib/components/kit-text-label/kit-text-label.component.mjs +2 -2
- package/esm2022/lib/components/kit-tilelayout/kit-tilelayout.component.mjs +2 -2
- package/fesm2022/indigina-ui-kit.mjs +64 -61
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-autocomplete/kit-autocomplete.component.d.ts +23 -22
- package/lib/components/kit-notification/kit-notification.component.d.ts +4 -5
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/package.json +1 -1
- package/styles/theming.scss +1 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, InputSignal, OutputEmitterRef } from '@angular/core';
|
|
2
2
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
4
|
import { PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface KitAutocompleteItem<T> {
|
|
@@ -26,7 +25,7 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
26
25
|
/**
|
|
27
26
|
* An item which is going to be an autocomplete selected value
|
|
28
27
|
*/
|
|
29
|
-
selectedValue
|
|
28
|
+
selectedValue: T | null;
|
|
30
29
|
/**
|
|
31
30
|
* Defines whether the component will be in disabled state
|
|
32
31
|
*/
|
|
@@ -48,13 +47,25 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
48
47
|
*/
|
|
49
48
|
invalid?: boolean;
|
|
50
49
|
/**
|
|
51
|
-
*
|
|
50
|
+
* Specifies whether the autocomplete allows user-defined values
|
|
52
51
|
*/
|
|
53
|
-
|
|
52
|
+
readonly allowCustom: InputSignal<boolean>;
|
|
53
|
+
/**
|
|
54
|
+
* Specifies whether the autocomplete popup will be closed if no filter data found
|
|
55
|
+
*/
|
|
56
|
+
readonly closePopupIfDataNotFound: InputSignal<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* An action which is emitted each time the user types in the input field
|
|
59
|
+
*/
|
|
60
|
+
readonly filterChanged: OutputEmitterRef<string>;
|
|
61
|
+
/**
|
|
62
|
+
* An action which is emitted each time when value is changed and component is blurred
|
|
63
|
+
*/
|
|
64
|
+
readonly valueChanged: OutputEmitterRef<string>;
|
|
54
65
|
/**
|
|
55
66
|
* An action which is emitted once an item in the dropdown is selected
|
|
56
67
|
*/
|
|
57
|
-
|
|
68
|
+
readonly selectionChanged: OutputEmitterRef<T | null>;
|
|
58
69
|
/**
|
|
59
70
|
* An action which is emitted when input lost focus
|
|
60
71
|
*/
|
|
@@ -64,11 +75,6 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
64
75
|
*/
|
|
65
76
|
focused: EventEmitter<void>;
|
|
66
77
|
private combobox;
|
|
67
|
-
/**
|
|
68
|
-
* Function that emit normalized selected dropdown list item in case when
|
|
69
|
-
* inputted data changed and component lost focus
|
|
70
|
-
*/
|
|
71
|
-
readonly normalizedSelectedValue$: (text$: Observable<string>) => Observable<KitAutocompleteItem<T> | null>;
|
|
72
78
|
/**
|
|
73
79
|
* Settings for popup that will be opened as dropdown options list
|
|
74
80
|
*/
|
|
@@ -78,14 +84,9 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
78
84
|
* Callback function that return dropdown list item text
|
|
79
85
|
*/
|
|
80
86
|
getOptionText(item: KitAutocompleteItem<T>): string;
|
|
81
|
-
|
|
82
|
-
* Function that is called when input value changed
|
|
83
|
-
*/
|
|
87
|
+
onValueChange(value: string): void;
|
|
84
88
|
onFilterChange(value: string): void;
|
|
85
|
-
|
|
86
|
-
* Function that is called when dropdown list item selected
|
|
87
|
-
*/
|
|
88
|
-
onValueSelect(item: KitAutocompleteItem<T> | null): void;
|
|
89
|
+
onSelectionChange(item: KitAutocompleteItem<T> | null): void;
|
|
89
90
|
/**
|
|
90
91
|
* Function that is called when input field lost focus
|
|
91
92
|
*/
|
|
@@ -101,15 +102,15 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
101
102
|
/**
|
|
102
103
|
* Function that should be called every time the form control value changes
|
|
103
104
|
*/
|
|
104
|
-
onChange: (value:
|
|
105
|
+
onChange: (value: T | null) => void;
|
|
105
106
|
/**
|
|
106
107
|
* Function that should be called when input lost focus and changed form control state to "touched"
|
|
107
108
|
*/
|
|
108
109
|
onTouched: () => void;
|
|
109
|
-
writeValue(value:
|
|
110
|
-
registerOnChange(fn: (_:
|
|
110
|
+
writeValue(value: T): void;
|
|
111
|
+
registerOnChange(fn: (_: T | null) => void): void;
|
|
111
112
|
registerOnTouched(fn: () => void): void;
|
|
112
113
|
setDisabledState(disabled: boolean): void;
|
|
113
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitAutocompleteComponent<any>, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitAutocompleteComponent<any>, "kit-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "items": { "alias": "items"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loaderVisible": { "alias": "loaderVisible"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; }, { "
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitAutocompleteComponent<any>, "kit-autocomplete", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "items": { "alias": "items"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loaderVisible": { "alias": "loaderVisible"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "allowCustom": { "alias": "allowCustom"; "required": false; "isSignal": true; }; "closePopupIfDataNotFound": { "alias": "closePopupIfDataNotFound"; "required": false; "isSignal": true; }; }, { "filterChanged": "filterChanged"; "valueChanged": "valueChanged"; "selectionChanged": "selectionChanged"; "blured": "blured"; "focused": "focused"; }, never, never, false, never>;
|
|
115
116
|
}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, Signal } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Renderer2, Signal } from '@angular/core';
|
|
2
2
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
-
import {
|
|
3
|
+
import { KitNotification } from './kit-notification.const';
|
|
4
4
|
import { KitNotificationService } from './kit-notification.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class KitNotificationComponent {
|
|
6
|
+
export declare class KitNotificationComponent implements OnInit, OnDestroy {
|
|
7
7
|
private readonly renderer;
|
|
8
8
|
private readonly el;
|
|
9
9
|
private readonly notificationService;
|
|
10
10
|
appendTo: string;
|
|
11
11
|
readonly notifications: Signal<KitNotification[]>;
|
|
12
|
-
readonly
|
|
12
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
13
13
|
private appendedElement;
|
|
14
14
|
constructor(renderer: Renderer2, el: ElementRef, notificationService: KitNotificationService);
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
removeNotification(id: number): void;
|
|
18
|
-
getNotificationType(type: KitNotificationType): string;
|
|
19
18
|
private appendToTarget;
|
|
20
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNotificationComponent, never>;
|
|
21
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<KitNotificationComponent, "kit-notification", never, { "appendTo": { "alias": "appendTo"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
@@ -135,7 +135,9 @@ export declare enum KitSvgIcon {
|
|
|
135
135
|
NOTIFICATION = "notification",
|
|
136
136
|
COLUMNS = "columns",
|
|
137
137
|
DETAILS = "details",
|
|
138
|
-
FILTER = "filter"
|
|
138
|
+
FILTER = "filter",
|
|
139
|
+
NOTIFICATION_SUCCESS = "notification-success",
|
|
140
|
+
NOTIFICATION_WARNING = "notification-warning"
|
|
139
141
|
}
|
|
140
142
|
export declare enum KitSvgIconType {
|
|
141
143
|
FILL = "fill",
|
package/package.json
CHANGED