@indigina/ui-kit 1.0.148 → 1.0.150
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/esm2020/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +22 -5
- package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.directive.mjs +25 -0
- package/esm2020/lib/components/kit-autocomplete/kit-autocomplete.module.mjs +8 -3
- package/esm2020/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +1 -1
- package/esm2020/lib/components/kit-dropdown/kit-dropdown.component.mjs +29 -10
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/indigina-ui-kit.mjs +82 -17
- package/fesm2015/indigina-ui-kit.mjs.map +1 -1
- package/fesm2020/indigina-ui-kit.mjs +79 -17
- package/fesm2020/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-autocomplete/kit-autocomplete.component.d.ts +10 -1
- package/lib/components/kit-autocomplete/kit-autocomplete.directive.d.ts +9 -0
- package/lib/components/kit-autocomplete/kit-autocomplete.module.d.ts +10 -9
- package/lib/components/kit-dropdown/kit-dropdown.component.d.ts +8 -4
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -68,6 +68,11 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
68
68
|
* An action which is emitted when input lost focus
|
|
69
69
|
*/
|
|
70
70
|
blured: EventEmitter<void>;
|
|
71
|
+
/**
|
|
72
|
+
* An action which is emitted when input field got focus
|
|
73
|
+
*/
|
|
74
|
+
focused: EventEmitter<void>;
|
|
75
|
+
private combobox;
|
|
71
76
|
/**
|
|
72
77
|
* Function that emit normalized selected dropdown list item in case when
|
|
73
78
|
* inputted data changed and component lost focus
|
|
@@ -98,6 +103,10 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
98
103
|
* Function that is called when input field get focus
|
|
99
104
|
*/
|
|
100
105
|
onFocus(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Toggles the visibility of the popup
|
|
108
|
+
*/
|
|
109
|
+
togglePopup(): void;
|
|
101
110
|
/**
|
|
102
111
|
* Function that should be called every time the form control value changes
|
|
103
112
|
*/
|
|
@@ -111,5 +120,5 @@ export declare class KitAutocompleteComponent<T> implements ControlValueAccessor
|
|
|
111
120
|
registerOnTouched(fn: () => void): void;
|
|
112
121
|
setDisabledState(disabled: boolean): void;
|
|
113
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitAutocompleteComponent<any>, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitAutocompleteComponent<any>, "kit-autocomplete", never, { "label": "label"; "placeholder": "placeholder"; "items": "items"; "selectedValue": "selectedValue"; "disabled": "disabled"; "loaderVisible": "loaderVisible"; "messageIcon": "messageIcon"; "messageText": "messageText"; "messageType": "messageType"; "state": "state"; }, { "changed": "changed"; "selected": "selected"; "blured": "blured"; }, never, never, false>;
|
|
123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitAutocompleteComponent<any>, "kit-autocomplete", never, { "label": "label"; "placeholder": "placeholder"; "items": "items"; "selectedValue": "selectedValue"; "disabled": "disabled"; "loaderVisible": "loaderVisible"; "messageIcon": "messageIcon"; "messageText": "messageText"; "messageType": "messageType"; "state": "state"; }, { "changed": "changed"; "selected": "selected"; "blured": "blured"; "focused": "focused"; }, never, never, false>;
|
|
115
124
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KitAutocompleteComponent } from './kit-autocomplete.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KitAutocompleteDirective<T> {
|
|
4
|
+
private kitAutocompleteComponent;
|
|
5
|
+
constructor(kitAutocompleteComponent: KitAutocompleteComponent<T>);
|
|
6
|
+
togglePopup(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitAutocompleteDirective<any>, [{ host: true; self: true; }]>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KitAutocompleteDirective<any>, "[kitAutocomplete]", ["kitAutocomplete"], {}, {}, never, never, false>;
|
|
9
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./kit-autocomplete.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "@angular
|
|
6
|
-
import * as i5 from "@
|
|
7
|
-
import * as i6 from "@progress/kendo-angular-
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "../kit-
|
|
10
|
-
import * as i9 from "../kit-
|
|
3
|
+
import * as i2 from "./kit-autocomplete.directive";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@progress/kendo-angular-dropdowns";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "@progress/kendo-angular-label";
|
|
8
|
+
import * as i7 from "@progress/kendo-angular-inputs";
|
|
9
|
+
import * as i8 from "../kit-input-message/kit-input-message.module";
|
|
10
|
+
import * as i9 from "../kit-loader/kit-loader.module";
|
|
11
|
+
import * as i10 from "../kit-svg-icon/kit-svg-icon.module";
|
|
11
12
|
export declare class KitAutocompleteModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitAutocompleteModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitAutocompleteModule, [typeof i1.KitAutocompleteComponent], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitAutocompleteModule, [typeof i1.KitAutocompleteComponent, typeof i2.KitAutocompleteDirective], [typeof i3.CommonModule, typeof i4.DropDownsModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.LabelModule, typeof i7.InputsModule, typeof i8.KitInputMessageModule, typeof i9.KitLoaderModule, typeof i10.KitSvgIconModule], [typeof i1.KitAutocompleteComponent, typeof i2.KitAutocompleteDirective]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitAutocompleteModule>;
|
|
15
16
|
}
|
|
@@ -57,15 +57,19 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
57
57
|
* Defines dropdown popup list height. By default, listHeight is 200px.
|
|
58
58
|
*/
|
|
59
59
|
listHeight: number;
|
|
60
|
+
/**
|
|
61
|
+
* Whether the default item will be hidden. "true" by default
|
|
62
|
+
*/
|
|
63
|
+
hideDefaultItem: boolean;
|
|
60
64
|
/**
|
|
61
65
|
* occurs once an item in the dropdown is selected
|
|
62
66
|
*/
|
|
63
67
|
selected: EventEmitter<KitDropdownItem<T>>;
|
|
68
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
64
69
|
/**
|
|
65
|
-
*
|
|
70
|
+
* Build an object with appropriate options, based on hiding default item state
|
|
66
71
|
*/
|
|
67
|
-
|
|
68
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
72
|
+
buildPopupSettings(): PopupSettings;
|
|
69
73
|
/**
|
|
70
74
|
* Function that should be called every time the form control value changes
|
|
71
75
|
*/
|
|
@@ -85,5 +89,5 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
85
89
|
setDisabledState(disabled: boolean): void;
|
|
86
90
|
reset(value: T): void;
|
|
87
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDropdownComponent<any>, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDropdownComponent<any>, "kit-dropdown", never, { "items": "items"; "selectedItem": "selectedItem"; "label": "label"; "disabled": "disabled"; "messageIcon": "messageIcon"; "messageText": "messageText"; "messageType": "messageType"; "state": "state"; "defaultItem": "defaultItem"; "listHeight": "listHeight"; }, { "selected": "selected"; }, never, never, false>;
|
|
92
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDropdownComponent<any>, "kit-dropdown", never, { "items": "items"; "selectedItem": "selectedItem"; "label": "label"; "disabled": "disabled"; "messageIcon": "messageIcon"; "messageText": "messageText"; "messageType": "messageType"; "state": "state"; "defaultItem": "defaultItem"; "listHeight": "listHeight"; "hideDefaultItem": "hideDefaultItem"; }, { "selected": "selected"; }, never, never, false>;
|
|
89
93
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { KitNotificationModule } from './lib/components/kit-notification/kit-not
|
|
|
33
33
|
export { KitLocationStepperComponent, KitLocationStepperItem, KitLocationStepperItemDate, } from './lib/components/kit-location-stepper/kit-location-stepper.component';
|
|
34
34
|
export { KitLocationStepperModule } from './lib/components/kit-location-stepper/kit-location-stepper.module';
|
|
35
35
|
export { KitAutocompleteComponent, KitAutocompleteItem, KitAutocompleteState, } from './lib/components/kit-autocomplete/kit-autocomplete.component';
|
|
36
|
+
export { KitAutocompleteDirective } from './lib/components/kit-autocomplete/kit-autocomplete.directive';
|
|
36
37
|
export { KitAutocompleteModule } from './lib/components/kit-autocomplete/kit-autocomplete.module';
|
|
37
38
|
export { KitCheckboxComponent, KitCheckboxState } from './lib/components/kit-checkbox/kit-checkbox.component';
|
|
38
39
|
export { KitCheckboxModule } from './lib/components/kit-checkbox/kit-checkbox.module';
|