@indigina/ui-kit 1.1.32 → 1.1.34
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/esm2022/lib/components/kit-navigation-tabs/kit-navigation-tabs.component.mjs +12 -9
- package/esm2022/lib/components/kit-navigation-tabs/kit-navigation-tabs.const.mjs +6 -0
- package/esm2022/lib/components/kit-navigation-tabs/kit-navigation-tabs.model.mjs +2 -0
- package/esm2022/lib/components/kit-popup/kit-popup.component.mjs +5 -1
- package/esm2022/lib/components/kit-profile-menu/kit-profile-menu.component.mjs +44 -0
- package/esm2022/lib/components/kit-profile-menu/kit-profile-menu.model.mjs +2 -0
- package/esm2022/lib/components/kit-profile-menu/kit-profile-menu.module.mjs +39 -0
- package/esm2022/lib/components/kit-svg-icon/kit-svg-icon.const.mjs +6 -1
- package/esm2022/lib/components/kit-tabs/kit-tab/kit-tab.component.mjs +47 -0
- package/esm2022/lib/components/kit-tabs/kit-tabs.component.mjs +49 -0
- package/esm2022/lib/components/kit-tabs/kit-tabs.const.mjs +6 -0
- package/esm2022/lib/components/kit-tabs/kit-tabs.model.mjs +2 -0
- package/esm2022/lib/components/kit-tabs/kit-tabs.module.mjs +37 -0
- package/esm2022/public-api.mjs +13 -4
- package/fesm2022/indigina-ui-kit.mjs +216 -14
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-navigation-tabs/kit-navigation-tabs.component.d.ts +9 -16
- package/lib/components/kit-navigation-tabs/kit-navigation-tabs.const.d.ts +4 -0
- package/lib/components/kit-navigation-tabs/kit-navigation-tabs.model.d.ts +10 -0
- package/lib/components/kit-popup/kit-popup.component.d.ts +1 -0
- package/lib/components/kit-profile-menu/kit-profile-menu.component.d.ts +31 -0
- package/lib/components/kit-profile-menu/kit-profile-menu.model.d.ts +8 -0
- package/lib/components/kit-profile-menu/kit-profile-menu.module.d.ts +12 -0
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +4 -0
- package/lib/components/kit-tabs/kit-tab/kit-tab.component.d.ts +31 -0
- package/lib/components/kit-tabs/kit-tabs.component.d.ts +27 -0
- package/lib/components/kit-tabs/kit-tabs.const.d.ts +4 -0
- package/lib/components/kit-tabs/kit-tabs.model.d.ts +4 -0
- package/lib/components/kit-tabs/kit-tabs.module.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +12 -2
|
@@ -1,25 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { KitNavigationTabsType } from './kit-navigation-tabs.const';
|
|
2
|
+
import { KitNavigationTabsItem, KitNavigationTabsItemLink } from './kit-navigation-tabs.model';
|
|
3
|
+
import { KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export type KitNavigationTabsItemLink = string | number;
|
|
5
|
-
export interface KitNavigationTabsItem {
|
|
6
|
-
title: string;
|
|
7
|
-
link: string | KitNavigationTabsItemLink[];
|
|
8
|
-
icon?: KitSvgIcon;
|
|
9
|
-
iconType?: KitNavigationTabsItemIconType;
|
|
10
|
-
disabled?: Predicate<KitNavigationTabsItem>;
|
|
11
|
-
}
|
|
12
|
-
export declare enum KitNavigationTabsItemIconType {
|
|
13
|
-
FILL = "fill",
|
|
14
|
-
STROKE = "stroke"
|
|
15
|
-
}
|
|
16
5
|
export declare class KitNavigationTabsComponent {
|
|
17
6
|
/**
|
|
18
7
|
* Items which are going to be rendered as tabs navigation items
|
|
19
8
|
*/
|
|
20
9
|
items: KitNavigationTabsItem[];
|
|
10
|
+
/**
|
|
11
|
+
* Defines the type of tabs
|
|
12
|
+
*/
|
|
13
|
+
type: KitNavigationTabsType;
|
|
21
14
|
getRouterLink(item: KitNavigationTabsItem): string | KitNavigationTabsItemLink[] | null;
|
|
22
|
-
getItemIconCssClass(item: KitNavigationTabsItem):
|
|
15
|
+
getItemIconCssClass(item: KitNavigationTabsItem): KitSvgIconType;
|
|
23
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationTabsComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationTabsComponent, "kit-navigation-tabs", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationTabsComponent, "kit-navigation-tabs", never, { "items": { "alias": "items"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
18
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
2
|
+
import { Predicate } from '@angular/core';
|
|
3
|
+
export type KitNavigationTabsItemLink = string | number;
|
|
4
|
+
export interface KitNavigationTabsItem {
|
|
5
|
+
title: string;
|
|
6
|
+
link: KitNavigationTabsItemLink[] | string | null;
|
|
7
|
+
icon?: KitSvgIcon;
|
|
8
|
+
iconType?: KitSvgIconType;
|
|
9
|
+
disabled?: Predicate<KitNavigationTabsItem>;
|
|
10
|
+
}
|
|
@@ -23,6 +23,7 @@ export declare class KitPopupComponent {
|
|
|
23
23
|
readonly anchorAlign: KitPopupAlign;
|
|
24
24
|
readonly popupAlign: KitPopupAlign;
|
|
25
25
|
constructor(elementRef: ElementRef);
|
|
26
|
+
ngOnInit(): void;
|
|
26
27
|
documentClick(event: Event): void;
|
|
27
28
|
openPopup(): void;
|
|
28
29
|
closePopup(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { KitAvatarSize } from '../kit-avatar/kit-avatar.const';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import { KitProfileMenuItem } from '../kit-profile-menu/kit-profile-menu.model';
|
|
4
|
+
import { KitPopupComponent } from '../kit-popup/kit-popup.component';
|
|
5
|
+
import { KitPopupAlignHorizontal } from '../kit-popup/kit-popup.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class KitProfileMenuComponent {
|
|
8
|
+
/**
|
|
9
|
+
* Defines a list of menu items
|
|
10
|
+
*/
|
|
11
|
+
menuItems: KitProfileMenuItem[];
|
|
12
|
+
/**
|
|
13
|
+
* Defines username that going to be displayed next to avatar and used in avatar as initials
|
|
14
|
+
*/
|
|
15
|
+
userName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Defines company name that going to be displayed next to avatar
|
|
18
|
+
*/
|
|
19
|
+
companyName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the image source of the avatar
|
|
22
|
+
*/
|
|
23
|
+
avatarImageSrc?: string;
|
|
24
|
+
userMenu: KitPopupComponent;
|
|
25
|
+
readonly KitAvatarSize: typeof KitAvatarSize;
|
|
26
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
27
|
+
readonly KitPopupAlignHorizontal: typeof KitPopupAlignHorizontal;
|
|
28
|
+
onClick(item: KitProfileMenuItem): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitProfileMenuComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitProfileMenuComponent, "kit-profile-menu", never, { "menuItems": { "alias": "menuItems"; "required": false; }; "userName": { "alias": "userName"; "required": false; }; "companyName": { "alias": "companyName"; "required": false; }; "avatarImageSrc": { "alias": "avatarImageSrc"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-profile-menu.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../kit-avatar/kit-avatar.module";
|
|
5
|
+
import * as i4 from "../kit-popup/kit-popup.module";
|
|
6
|
+
import * as i5 from "../kit-svg-icon/kit-svg-icon.module";
|
|
7
|
+
import * as i6 from "@angular/router";
|
|
8
|
+
export declare class KitProfileMenuModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitProfileMenuModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitProfileMenuModule, [typeof i1.KitProfileMenuComponent], [typeof i2.CommonModule, typeof i3.KitAvatarModule, typeof i4.KitPopupModule, typeof i5.KitSvgIconModule, typeof i6.RouterLink], [typeof i1.KitProfileMenuComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitProfileMenuModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { KitSvgIcon, KitSvgIconType } from '../../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitTabComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Defines the tab title
|
|
7
|
+
*/
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the icon which will be used with the tab title
|
|
11
|
+
*/
|
|
12
|
+
icon?: KitSvgIcon;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the icon type
|
|
15
|
+
*/
|
|
16
|
+
iconType: KitSvgIconType;
|
|
17
|
+
/**
|
|
18
|
+
* Defines which tab will be selected when tabs are initially loaded
|
|
19
|
+
*/
|
|
20
|
+
selected: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Defines which tab will be disabled
|
|
23
|
+
*/
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Defines a reference to the tab content
|
|
27
|
+
*/
|
|
28
|
+
kitTabContent: TemplateRef<HTMLElement> | null;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitTabComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitTabComponent, "kit-tab", never, { "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconType": { "alias": "iconType"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["kitTabContent"], never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { KitTabComponent } from './kit-tab/kit-tab.component';
|
|
3
|
+
import { KitTabsType } from './kit-tabs.const';
|
|
4
|
+
import { KitTabsSelectEvent } from './kit-tabs.model';
|
|
5
|
+
import { SelectEvent } from '@progress/kendo-angular-layout';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class KitTabsComponent {
|
|
8
|
+
/**
|
|
9
|
+
* Defines the type of tabs
|
|
10
|
+
*/
|
|
11
|
+
type: KitTabsType;
|
|
12
|
+
/**
|
|
13
|
+
* Enables the tab animation
|
|
14
|
+
*/
|
|
15
|
+
animate: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* An action which is emitted when tab is selected
|
|
18
|
+
*/
|
|
19
|
+
tabSelected: EventEmitter<KitTabsSelectEvent>;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the reference to the tabs content
|
|
22
|
+
*/
|
|
23
|
+
tabs: QueryList<KitTabComponent> | null;
|
|
24
|
+
onTabSelect(event: SelectEvent): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitTabsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitTabsComponent, "kit-tabs", never, { "type": { "alias": "type"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; }, { "tabSelected": "tabSelected"; }, ["tabs"], never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-tabs.component";
|
|
3
|
+
import * as i2 from "./kit-tab/kit-tab.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@progress/kendo-angular-layout";
|
|
6
|
+
import * as i5 from "../kit-svg-icon/kit-svg-icon.module";
|
|
7
|
+
export declare class KitTabsModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitTabsModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitTabsModule, [typeof i1.KitTabsComponent, typeof i2.KitTabComponent], [typeof i3.CommonModule, typeof i4.LayoutModule, typeof i5.KitSvgIconModule], [typeof i1.KitTabsComponent, typeof i2.KitTabComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitTabsModule>;
|
|
11
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { KitSvgSpriteModule } from './lib/components/kit-svg-sprite/kit-svg-spri
|
|
|
5
5
|
export { KitSvgSpriteComponent } from './lib/components/kit-svg-sprite/kit-svg-sprite.component';
|
|
6
6
|
export { KitSvgIconComponent } from './lib/components/kit-svg-icon/kit-svg-icon.component';
|
|
7
7
|
export { KitSvgIconModule } from './lib/components/kit-svg-icon/kit-svg-icon.module';
|
|
8
|
-
export { KitSvgIcon } from './lib/components/kit-svg-icon/kit-svg-icon.const';
|
|
8
|
+
export { KitSvgIcon, KitSvgIconType } from './lib/components/kit-svg-icon/kit-svg-icon.const';
|
|
9
9
|
export { KitLoaderComponent } from './lib/components/kit-loader/kit-loader.component';
|
|
10
10
|
export { KitLoaderModule } from './lib/components/kit-loader/kit-loader.module';
|
|
11
11
|
export { KitSwitchComponent, KitSwitchMode, KitSwitchItemSelection, KitSwitchState, } from './lib/components/kit-switch/kit-switch.component';
|
|
@@ -66,8 +66,10 @@ export { KitRadioButtonComponent } from './lib/components/kit-radio-button/kit-r
|
|
|
66
66
|
export { KitRadioButtonModule } from './lib/components/kit-radio-button/kit-radio-button.module';
|
|
67
67
|
export { KitRadioButton } from './lib/components/kit-radio-button/kit-radio-button.model';
|
|
68
68
|
export { buildRandomUUID } from './lib/utils/random.util';
|
|
69
|
-
export { KitNavigationTabsComponent
|
|
69
|
+
export { KitNavigationTabsComponent } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.component';
|
|
70
70
|
export { KitNavigationTabsModule } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.module';
|
|
71
|
+
export { KitNavigationTabsItem, KitNavigationTabsItemLink } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.model';
|
|
72
|
+
export { KitNavigationTabsType } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.const';
|
|
71
73
|
export { KitDialogComponent } from './lib/components/kit-dialog/kit-dialog.component';
|
|
72
74
|
export { KitDialogModule } from './lib/components/kit-dialog/kit-dialog.module';
|
|
73
75
|
export { KitDialog, KitDialogService } from './lib/components/kit-dialog/kit-dialog.service';
|
|
@@ -103,3 +105,11 @@ export { KitInputLabelModule } from './lib/components/kit-input-label/kit-input-
|
|
|
103
105
|
export { KitInputLabelComponent } from './lib/components/kit-input-label/kit-input-label.component';
|
|
104
106
|
export { KitDatepickerModule } from './lib/components/kit-datepicker/kit-datepicker.module';
|
|
105
107
|
export { KitDatepickerComponent } from './lib/components/kit-datepicker/kit-datepicker.component';
|
|
108
|
+
export { KitProfileMenuModule } from './lib/components/kit-profile-menu/kit-profile-menu.module';
|
|
109
|
+
export { KitProfileMenuComponent } from './lib/components/kit-profile-menu/kit-profile-menu.component';
|
|
110
|
+
export { KitProfileMenuItem } from './lib/components/kit-profile-menu/kit-profile-menu.model';
|
|
111
|
+
export { KitTabsModule } from './lib/components/kit-tabs/kit-tabs.module';
|
|
112
|
+
export { KitTabsComponent } from './lib/components/kit-tabs/kit-tabs.component';
|
|
113
|
+
export { KitTabsType } from './lib/components/kit-tabs/kit-tabs.const';
|
|
114
|
+
export { KitTabsSelectEvent } from './lib/components/kit-tabs/kit-tabs.model';
|
|
115
|
+
export { KitTabComponent } from './lib/components/kit-tabs/kit-tab/kit-tab.component';
|