@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.
@@ -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,5 @@
1
+ export declare enum KitAvatarSize {
2
+ LARGE = "large",
3
+ DEFAULT = "default",
4
+ SMALL = "small"
5
+ }
@@ -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
  }
@@ -77,5 +77,7 @@ export declare enum KitSvgIcon {
77
77
  MESSAGE = "message",
78
78
  RELOAD = "reload",
79
79
  WINDOW_RESTORE = "window-restore",
80
- BACK_ARROW = "back-arrow"
80
+ BACK_ARROW = "back-arrow",
81
+ USER = "user",
82
+ CARET_DOWN = "caret-down"
81
83
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.18",
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
- "tslib": "2.6.2",
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';
@@ -11,6 +11,7 @@
11
11
  --ui-kit-color-hover: #3678c3;
12
12
  --ui-kit-color-selected: #3678c366;
13
13
  --ui-kit-color-active: #002a3a;
14
+ --ui-lit-color-focus: #56a2f733;
14
15
 
15
16
  --ui-kit-color-grey-0: #252b30;
16
17
  --ui-kit-color-grey-2: #a7b2c3;