@indigina/ui-kit 1.1.33 → 1.1.35
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-menu/kit-navigation-menu.component.mjs +9 -3
- 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-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 +10 -4
- package/fesm2022/indigina-ui-kit.mjs +154 -14
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-navigation-menu/kit-navigation-menu.component.d.ts +5 -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-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 +9 -2
|
@@ -13,6 +13,10 @@ export declare class KitNavigationMenuComponent {
|
|
|
13
13
|
* Defines whether the component will have an animation when collapsing/expanding the menu
|
|
14
14
|
*/
|
|
15
15
|
animate: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Defines whether menu will be collapsed
|
|
18
|
+
*/
|
|
19
|
+
collapsed: boolean;
|
|
16
20
|
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
17
21
|
readonly PanelBarExpandMode: typeof PanelBarExpandMode;
|
|
18
22
|
constructor(router: Router);
|
|
@@ -20,5 +24,5 @@ export declare class KitNavigationMenuComponent {
|
|
|
20
24
|
private setExpandedStateOnRouterChange;
|
|
21
25
|
private setExpandedState;
|
|
22
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "items": { "alias": "items"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; }, {}, never, never, false, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "items": { "alias": "items"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, never, false, never>;
|
|
24
28
|
}
|
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -106,3 +108,8 @@ export { KitDatepickerComponent } from './lib/components/kit-datepicker/kit-date
|
|
|
106
108
|
export { KitProfileMenuModule } from './lib/components/kit-profile-menu/kit-profile-menu.module';
|
|
107
109
|
export { KitProfileMenuComponent } from './lib/components/kit-profile-menu/kit-profile-menu.component';
|
|
108
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';
|