@indigina/ui-kit 1.1.57 → 1.1.59
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/app-arrow-circle.svg +15 -0
- package/assets/icons/four-square.svg +3 -0
- package/esm2022/lib/components/kit-datepicker/kit-datepicker.component.mjs +3 -6
- package/esm2022/lib/components/kit-daterange/kit-daterange.component.mjs +3 -3
- package/esm2022/lib/components/kit-datetimepicker/kit-datetimepicker.component.mjs +24 -17
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.mjs +10 -7
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.component.mjs +43 -34
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.model.mjs +1 -1
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.module.mjs +8 -2
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.service.mjs +19 -0
- 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/public-api.mjs +2 -1
- package/fesm2022/indigina-ui-kit.mjs +95 -55
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-datepicker/kit-datepicker.component.d.ts +0 -2
- package/lib/components/kit-datetimepicker/kit-datetimepicker.component.d.ts +13 -8
- package/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.d.ts +4 -3
- package/lib/components/kit-navigation-menu/kit-navigation-menu.component.d.ts +14 -12
- package/lib/components/kit-navigation-menu/kit-navigation-menu.model.d.ts +5 -0
- package/lib/components/kit-navigation-menu/kit-navigation-menu.service.d.ts +9 -0
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { PreventableEvent } from '@progress/kendo-angular-common';
|
|
5
4
|
import { PopupSettings } from '@progress/kendo-angular-dropdowns';
|
|
6
5
|
import { DatePickerComponent } from '@progress/kendo-angular-dateinputs';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
@@ -65,7 +64,6 @@ export declare class KitDatepickerComponent implements ControlValueAccessor {
|
|
|
65
64
|
onValueChange(value: Date): void;
|
|
66
65
|
onPopupToggle(): void;
|
|
67
66
|
onBlur(): void;
|
|
68
|
-
onClose(event: PreventableEvent): void;
|
|
69
67
|
onChange: (value: Date) => void;
|
|
70
68
|
onTouched: () => void;
|
|
71
69
|
writeValue(value: string): void;
|
|
@@ -27,9 +27,9 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
|
|
|
27
27
|
*/
|
|
28
28
|
messageText?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Defines a state whether the component will be
|
|
30
|
+
* Defines a state whether the component will be invalid
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
invalid?: boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Defines a value that is going to be applied as a datetimepicker format
|
|
35
35
|
*/
|
|
@@ -46,6 +46,14 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
|
|
|
46
46
|
* Specifies the biggest valid date
|
|
47
47
|
*/
|
|
48
48
|
max?: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the text of the Apply button in the popup footer of the component, "Apply" by default
|
|
51
|
+
*/
|
|
52
|
+
applyButtonText: string;
|
|
53
|
+
/**
|
|
54
|
+
* Defines the text of the Cancel button in the popup footer of the component, "Cancel" by default
|
|
55
|
+
*/
|
|
56
|
+
cancelButtonText: string;
|
|
49
57
|
/**
|
|
50
58
|
* An action which is emitted when datetimepicker value changed
|
|
51
59
|
*/
|
|
@@ -57,11 +65,12 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
|
|
|
57
65
|
/**
|
|
58
66
|
* An icon which will be used in a datetimepicker toggle button
|
|
59
67
|
*/
|
|
60
|
-
icon: KitSvgIcon;
|
|
68
|
+
readonly icon: KitSvgIcon;
|
|
61
69
|
/**
|
|
62
70
|
* Settings for datetimepicker popup that will be opened
|
|
63
71
|
*/
|
|
64
72
|
readonly datetimepickerPopupSettings: PopupSettings;
|
|
73
|
+
readonly nowButtonText: string;
|
|
65
74
|
constructor(cdr: ChangeDetectorRef);
|
|
66
75
|
/**
|
|
67
76
|
* Function used to toggle visibility of the datetimepicker popup
|
|
@@ -71,10 +80,6 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
|
|
|
71
80
|
* Function that is called when datetimepicker lost focus
|
|
72
81
|
*/
|
|
73
82
|
onBlur(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Function that is called when datetimepicker popup closes
|
|
76
|
-
*/
|
|
77
|
-
onClose(): void;
|
|
78
83
|
/**
|
|
79
84
|
* Function that should be called every time datetimepicker value changes
|
|
80
85
|
*/
|
|
@@ -92,5 +97,5 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
|
|
|
92
97
|
registerOnTouched(fn: () => void): void;
|
|
93
98
|
setDisabledState(disabled: boolean): void;
|
|
94
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitDatetimepickerComponent, never>;
|
|
95
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitDatetimepickerComponent, "kit-datetimepicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitDatetimepickerComponent, "kit-datetimepicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "format": { "alias": "format"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "applyButtonText": { "alias": "applyButtonText"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
96
101
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { KitNavigationMenuItem } from '../kit-navigation-menu.model';
|
|
2
|
+
import { KitNavigationMenuAppItem, KitNavigationMenuItem } from '../kit-navigation-menu.model';
|
|
3
3
|
import { KitSvgIcon } from '../../kit-svg-icon/kit-svg-icon.const';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class KitNavigationMenuSubmenuComponent {
|
|
6
|
-
|
|
6
|
+
menuItem: KitNavigationMenuItem | null;
|
|
7
|
+
appsMenuItems: KitNavigationMenuAppItem[] | null;
|
|
7
8
|
logoClicked: EventEmitter<void>;
|
|
8
9
|
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
9
10
|
readonly rootPath: string;
|
|
10
11
|
handleClick(item: KitNavigationMenuItem): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuSubmenuComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuSubmenuComponent, "kit-navigation-menu-submenu", never, { "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuSubmenuComponent, "kit-navigation-menu-submenu", never, { "menuItem": { "alias": "menuItem"; "required": false; }; "appsMenuItems": { "alias": "appsMenuItems"; "required": false; }; }, { "logoClicked": "logoClicked"; }, never, never, false, never>;
|
|
13
14
|
}
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KitNavigationMenuItem } from './kit-navigation-menu.model';
|
|
3
|
-
import { KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
1
|
+
import { OnInit, WritableSignal } from '@angular/core';
|
|
2
|
+
import { KitNavigationMenuAppItem, KitNavigationMenuItem } from './kit-navigation-menu.model';
|
|
3
|
+
import { KitSvgIconType, KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
4
4
|
import { Router } from '@angular/router';
|
|
5
5
|
import { KitTooltipPosition } from '../../directives/kit-tooltip/kit-tooltip.directive';
|
|
6
|
+
import { KitNavigationMenuService } from './kit-navigation-menu.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class KitNavigationMenuComponent implements OnInit {
|
|
8
9
|
private router;
|
|
10
|
+
private kitNavigationMenuService;
|
|
9
11
|
/**
|
|
10
12
|
* An items list which is going to be rendered as menu items
|
|
11
13
|
*/
|
|
12
|
-
|
|
14
|
+
menuItems: KitNavigationMenuItem[];
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* An items list which is going to be rendered as apps menu items
|
|
15
17
|
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* An action which is emitted when the collapse state changes
|
|
19
|
-
*/
|
|
20
|
-
collapseChanged: EventEmitter<boolean>;
|
|
18
|
+
appsMenuItems: KitNavigationMenuAppItem[];
|
|
21
19
|
readonly selectedItem: WritableSignal<KitNavigationMenuItem | null>;
|
|
20
|
+
readonly selectedAppsItems: WritableSignal<KitNavigationMenuAppItem[] | null>;
|
|
21
|
+
readonly collapsed: WritableSignal<boolean>;
|
|
22
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
22
23
|
readonly KitSvgIconType: typeof KitSvgIconType;
|
|
23
24
|
readonly KitTooltipPosition: typeof KitTooltipPosition;
|
|
24
|
-
constructor(router: Router);
|
|
25
|
+
constructor(router: Router, kitNavigationMenuService: KitNavigationMenuService);
|
|
25
26
|
ngOnInit(): void;
|
|
26
27
|
handleClick(item: KitNavigationMenuItem): void;
|
|
27
28
|
handleLogoClick(): void;
|
|
29
|
+
onAppsMenuButtonClick(): void;
|
|
28
30
|
private setExpandedStateOnRouterChange;
|
|
29
31
|
private updateNavigationState;
|
|
30
32
|
private collapseAllItems;
|
|
31
33
|
private toggleItem;
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "appsMenuItems": { "alias": "appsMenuItems"; "required": false; }; }, {}, never, never, false, never>;
|
|
34
36
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WritableSignal } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KitNavigationMenuService {
|
|
4
|
+
private readonly collapsed;
|
|
5
|
+
getCollapsedState(): WritableSignal<boolean>;
|
|
6
|
+
setCollapsedState(collapsed: boolean): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KitNavigationMenuService>;
|
|
9
|
+
}
|
|
@@ -94,7 +94,9 @@ export declare enum KitSvgIcon {
|
|
|
94
94
|
ANALYTICS = "analytics",
|
|
95
95
|
CONTROL_PANEL = "control-panel",
|
|
96
96
|
SEKO = "seko",
|
|
97
|
-
SEKO_360 = "seko-360"
|
|
97
|
+
SEKO_360 = "seko-360",
|
|
98
|
+
FOUR_SQUARE = "four-square",
|
|
99
|
+
APP_ARROW_CIRCLE = "app-arrow-circle"
|
|
98
100
|
}
|
|
99
101
|
export declare enum KitSvgIconType {
|
|
100
102
|
FILL = "fill",
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -89,7 +89,8 @@ export { KitCopyTextComponent } from './lib/components/kit-copy-text/kit-copy-te
|
|
|
89
89
|
export { KitNavigationMenuModule } from './lib/components/kit-navigation-menu/kit-navigation-menu.module';
|
|
90
90
|
export { KitNavigationMenuComponent } from './lib/components/kit-navigation-menu/kit-navigation-menu.component';
|
|
91
91
|
export { KitNavigationMenuSubmenuComponent, } from './lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component';
|
|
92
|
-
export { KitNavigationMenuItem } from './lib/components/kit-navigation-menu/kit-navigation-menu.model';
|
|
92
|
+
export { KitNavigationMenuItem, KitNavigationMenuAppItem } from './lib/components/kit-navigation-menu/kit-navigation-menu.model';
|
|
93
|
+
export { KitNavigationMenuService } from './lib/components/kit-navigation-menu/kit-navigation-menu.service';
|
|
93
94
|
export { KitBadgeModule } from './lib/directives/kit-badge/kit-badge.module';
|
|
94
95
|
export { KitBadgeDirective } from './lib/directives/kit-badge/kit-badge.directive';
|
|
95
96
|
export { KitBadgeTheme } from './lib/directives/kit-badge/kit-badge.const';
|