@indigina/ui-kit 1.1.18 → 1.1.20
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/caret-down.svg +3 -0
- package/assets/icons/user.svg +3 -0
- package/esm2022/lib/components/kit-autocomplete/kit-autocomplete.component.mjs +2 -2
- package/esm2022/lib/components/kit-avatar/kit-avatar.component.mjs +32 -0
- package/esm2022/lib/components/kit-avatar/kit-avatar.const.mjs +7 -0
- package/esm2022/lib/components/kit-avatar/kit-avatar.module.mjs +28 -0
- package/esm2022/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +1 -1
- package/esm2022/lib/components/kit-dropdown/kit-dropdown.component.mjs +32 -6
- 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/public-api.mjs +5 -1
- package/fesm2022/indigina-ui-kit.mjs +99 -15
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-avatar/kit-avatar.component.d.ts +21 -0
- package/lib/components/kit-avatar/kit-avatar.const.d.ts +5 -0
- package/lib/components/kit-avatar/kit-avatar.module.d.ts +9 -0
- package/lib/components/kit-dropdown/kit-dropdown.component.d.ts +16 -3
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/package.json +4 -3
- package/public-api.d.ts +3 -0
- package/styles/theming.scss +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { KitAvatarSize } from './kit-avatar.const';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitAvatarComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Defines the name that is going to be used to set initials to the avatar
|
|
7
|
+
*/
|
|
8
|
+
name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the image source of the avatar
|
|
11
|
+
*/
|
|
12
|
+
imageSrc?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the size of the avatar
|
|
15
|
+
*/
|
|
16
|
+
size: KitAvatarSize;
|
|
17
|
+
readonly userIcon: KitSvgIcon;
|
|
18
|
+
getInitialsByName(name: string): string;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitAvatarComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitAvatarComponent, "kit-avatar", never, { "name": { "alias": "name"; "required": false; }; "imageSrc": { "alias": "imageSrc"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-avatar.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../kit-svg-icon/kit-svg-icon.module";
|
|
5
|
+
export declare class KitAvatarModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitAvatarModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitAvatarModule, [typeof i1.KitAvatarComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule], [typeof i1.KitAvatarComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitAvatarModule>;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, Predicate, TemplateRef } from '@angular/core';
|
|
2
|
-
import { ItemDisabledFn, PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, Predicate, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { DropDownListComponent, ItemDisabledFn, PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
3
3
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
4
|
import { KitInputMessageType } from '../kit-input-message/kit-input-message.component';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -62,15 +62,25 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
62
62
|
* Whether the default item will be hidden. "true" by default
|
|
63
63
|
*/
|
|
64
64
|
hideDefaultItem: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Defines the icon which going to be the icon for the dropdown toggle button
|
|
67
|
+
*/
|
|
68
|
+
toggleIcon: KitSvgIcon;
|
|
65
69
|
/**
|
|
66
70
|
* occurs once an item in the dropdown is selected
|
|
67
71
|
*/
|
|
68
72
|
selected: EventEmitter<KitDropdownItem<T>>;
|
|
73
|
+
/**
|
|
74
|
+
* Defines template for a dropdown value
|
|
75
|
+
*/
|
|
76
|
+
kitDropdownValueTemplate?: TemplateRef<HTMLTemplateElement>;
|
|
69
77
|
/**
|
|
70
78
|
* Defines template for a dropdown list item
|
|
71
79
|
*/
|
|
72
80
|
kitDropdownItemTemplate?: TemplateRef<HTMLTemplateElement>;
|
|
81
|
+
dropdown: DropDownListComponent | null;
|
|
73
82
|
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
83
|
+
readonly isPopupExpanded: WritableSignal<boolean>;
|
|
74
84
|
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
75
85
|
/**
|
|
76
86
|
* Build an object with appropriate options, based on hiding default item state
|
|
@@ -94,6 +104,9 @@ export declare class KitDropdownComponent<T> implements ControlValueAccessor {
|
|
|
94
104
|
registerOnTouched(fn: () => void): void;
|
|
95
105
|
setDisabledState(disabled: boolean): void;
|
|
96
106
|
reset(value: T): void;
|
|
107
|
+
onOpen(): void;
|
|
108
|
+
onClose(): void;
|
|
109
|
+
getCssClasses(): Record<string, boolean>;
|
|
97
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDropdownComponent<any>, never>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDropdownComponent<any>, "kit-dropdown", never, { "items": { "alias": "items"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "messageType": { "alias": "messageType"; "required": false; }; "state": { "alias": "state"; "required": false; }; "defaultItem": { "alias": "defaultItem"; "required": false; }; "listHeight": { "alias": "listHeight"; "required": false; }; "hideDefaultItem": { "alias": "hideDefaultItem"; "required": false; }; }, { "selected": "selected"; }, ["kitDropdownItemTemplate"], never, false, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDropdownComponent<any>, "kit-dropdown", never, { "items": { "alias": "items"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "messageType": { "alias": "messageType"; "required": false; }; "state": { "alias": "state"; "required": false; }; "defaultItem": { "alias": "defaultItem"; "required": false; }; "listHeight": { "alias": "listHeight"; "required": false; }; "hideDefaultItem": { "alias": "hideDefaultItem"; "required": false; }; "toggleIcon": { "alias": "toggleIcon"; "required": false; }; }, { "selected": "selected"; }, ["kitDropdownValueTemplate", "kitDropdownItemTemplate"], never, false, never>;
|
|
99
112
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"components",
|
|
8
8
|
"shared"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.1.
|
|
10
|
+
"version": "1.1.20",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@angular/common": "^17.0.7",
|
|
13
13
|
"@angular/core": "^17.0.7"
|
|
@@ -36,8 +36,9 @@
|
|
|
36
36
|
"@progress/kendo-licensing": "1.3.5",
|
|
37
37
|
"@progress/kendo-svg-icons": "2.1.0",
|
|
38
38
|
"@progress/kendo-theme-default": "6.7.0",
|
|
39
|
-
"
|
|
40
|
-
"ngx-toastr": "18.0.0"
|
|
39
|
+
"initials": "3.1.2",
|
|
40
|
+
"ngx-toastr": "18.0.0",
|
|
41
|
+
"tslib": "2.6.2"
|
|
41
42
|
},
|
|
42
43
|
"module": "fesm2022/indigina-ui-kit.mjs",
|
|
43
44
|
"typings": "index.d.ts",
|
package/public-api.d.ts
CHANGED
|
@@ -89,3 +89,6 @@ export { KitNavigationMenuItem } from './lib/components/kit-navigation-menu/kit-
|
|
|
89
89
|
export { KitBadgeModule } from './lib/directives/kit-badge/kit-badge.module';
|
|
90
90
|
export { KitBadgeDirective } from './lib/directives/kit-badge/kit-badge.directive';
|
|
91
91
|
export { KitBadgeTheme } from './lib/directives/kit-badge/kit-badge.const';
|
|
92
|
+
export { KitAvatarModule } from './lib/components/kit-avatar/kit-avatar.module';
|
|
93
|
+
export { KitAvatarComponent } from './lib/components/kit-avatar/kit-avatar.component';
|
|
94
|
+
export { KitAvatarSize } from './lib/components/kit-avatar/kit-avatar.const';
|