@indigina/ui-kit 1.1.39 → 1.1.41
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-autocomplete/kit-autocomplete.component.mjs +2 -2
- package/esm2022/lib/components/kit-cta-panel-abstract-confirmation/kit-cta-panel-abstract-confirmation.component.mjs +2 -2
- package/esm2022/lib/components/kit-cta-panel-confirmation/kit-cta-panel-confirmation.component.mjs +2 -2
- package/esm2022/lib/components/kit-cta-panel-item/kit-cta-panel-item.component.mjs +2 -2
- package/esm2022/lib/components/kit-daterange/kit-daterange.component.mjs +2 -2
- package/esm2022/lib/components/kit-datetimepicker/kit-datetimepicker.component.mjs +2 -2
- package/esm2022/lib/components/kit-grid/kit-grid-column/kit-grid-column.component.mjs +2 -2
- package/esm2022/lib/components/kit-grid/kit-grid.component.mjs +41 -8
- package/esm2022/lib/components/kit-grid/kit-grid.const.mjs +6 -1
- package/esm2022/lib/components/kit-grid/kit-grid.model.mjs +1 -1
- package/esm2022/lib/components/kit-location-stepper/kit-location-stepper.component.mjs +2 -2
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-base.component.mjs +42 -0
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.mjs +33 -0
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.module.mjs +32 -0
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.component.mjs +28 -19
- 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 +7 -7
- package/esm2022/lib/components/kit-navigation-menu/kit-navigation-menu.util.mjs +20 -0
- package/esm2022/lib/components/kit-notification/kit-notification.component.mjs +2 -2
- 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/lib/components/kit-units-textbox/kit-units-textbox.component.mjs +2 -2
- package/esm2022/public-api.mjs +3 -2
- package/fesm2022/indigina-ui-kit.mjs +210 -53
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-grid/kit-grid.component.d.ts +25 -7
- package/lib/components/kit-grid/kit-grid.const.d.ts +4 -0
- package/lib/components/kit-grid/kit-grid.model.d.ts +6 -1
- package/lib/components/kit-navigation-menu/kit-navigation-menu-base.component.d.ts +15 -0
- package/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component.d.ts +9 -0
- package/lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.module.d.ts +10 -0
- package/lib/components/kit-navigation-menu/kit-navigation-menu.component.d.ts +9 -11
- package/lib/components/kit-navigation-menu/kit-navigation-menu.model.d.ts +2 -1
- package/lib/components/kit-navigation-menu/kit-navigation-menu.module.d.ts +4 -4
- package/lib/components/kit-navigation-menu/kit-navigation-menu.util.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/styles/common.scss +5 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { KitGridColumnComponent } from './kit-grid-column/kit-grid-column.component';
|
|
3
|
-
import { DataStateChangeEvent, DetailCollapseEvent, DetailExpandEvent, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
3
|
+
import { DataStateChangeEvent, DetailCollapseEvent, DetailExpandEvent, PageChangeEvent, PagerSettings, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
4
4
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
5
5
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
6
|
-
import { KitGridDataStateChangeEvent, KitGridNestedData, KitGridSortDescriptor } from './kit-grid.model';
|
|
6
|
+
import { KitGridDataStateChangeEvent, KitGridNestedData, KitGridSortDescriptor, KitGridSortSettings, KitGridPageChangeEvent } from './kit-grid.model';
|
|
7
7
|
import { KitGridSortDirection } from './kit-grid.const';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknown> {
|
|
@@ -14,13 +14,29 @@ export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknow
|
|
|
14
14
|
/**
|
|
15
15
|
* Enables the sorting of the grid columns
|
|
16
16
|
*/
|
|
17
|
-
sortable: boolean;
|
|
17
|
+
sortable: KitGridSortSettings | boolean;
|
|
18
18
|
/**
|
|
19
19
|
* The descriptors by which the data will be sorted
|
|
20
20
|
*/
|
|
21
21
|
sort: KitGridSortDescriptor[];
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Enables the pager of the grid
|
|
24
|
+
*/
|
|
25
|
+
pageable: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the page size
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Defines the number of records to be skipped by the pager
|
|
32
|
+
*/
|
|
33
|
+
skip: number;
|
|
34
|
+
/**
|
|
35
|
+
* An action which is emitted when the page of the grid is changed
|
|
36
|
+
*/
|
|
37
|
+
pageChanged: EventEmitter<KitGridPageChangeEvent>;
|
|
38
|
+
/**
|
|
39
|
+
* An action which is emitted once the sorting of the grid is changed
|
|
24
40
|
*/
|
|
25
41
|
sortChanged: EventEmitter<KitGridSortDescriptor[]>;
|
|
26
42
|
/**
|
|
@@ -31,16 +47,18 @@ export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknow
|
|
|
31
47
|
kitGridDetailTemplate: TemplateRef<HTMLElement> | null;
|
|
32
48
|
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
33
49
|
readonly KitGridSortDirection: typeof KitGridSortDirection;
|
|
34
|
-
private state;
|
|
35
50
|
private expandedRows;
|
|
36
51
|
onDataStateChange(event: DataStateChangeEvent): void;
|
|
37
52
|
onSortChange(event: SortDescriptor[]): void;
|
|
38
|
-
getSortingDirection(): string | null;
|
|
53
|
+
getSortingDirection(columnField: string): string | null;
|
|
39
54
|
isDetailTemplateVisible(dataItem: T): boolean;
|
|
40
55
|
hasDetailColumn(): boolean;
|
|
56
|
+
isColumnSortable(column: KitGridColumnComponent): boolean;
|
|
41
57
|
onDetailExpand(event: DetailExpandEvent): void;
|
|
42
58
|
onDetailCollapse(event: DetailCollapseEvent): void;
|
|
59
|
+
onPageChange(event: PageChangeEvent): void;
|
|
43
60
|
getCssRowClass: (context: RowClassArgs) => Record<string, boolean>;
|
|
61
|
+
getPagerSettings(): boolean | PagerSettings;
|
|
44
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridComponent<any, any>, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any, any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; }, { "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; }, ["kitGridDetailTemplate", "columns"], never, false, never>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any, any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "pageable": { "alias": "pageable"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "skip": { "alias": "skip"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; }, ["kitGridDetailTemplate", "columns"], never, false, never>;
|
|
46
64
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { DataStateChangeEvent } from '@progress/kendo-angular-grid';
|
|
1
|
+
import { DataStateChangeEvent, PageChangeEvent } from '@progress/kendo-angular-grid';
|
|
2
2
|
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
3
|
+
import { KitGridSortSettingsMode } from './kit-grid.const';
|
|
3
4
|
export interface KitGridNestedData<U> {
|
|
4
5
|
children?: U[];
|
|
5
6
|
}
|
|
7
|
+
export interface KitGridSortSettings {
|
|
8
|
+
mode: KitGridSortSettingsMode;
|
|
9
|
+
}
|
|
6
10
|
export type KitGridSortDescriptor = SortDescriptor;
|
|
7
11
|
export type KitGridDataStateChangeEvent = DataStateChangeEvent;
|
|
12
|
+
export type KitGridPageChangeEvent = PageChangeEvent;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { KitNavigationMenuItem } from './kit-navigation-menu.model';
|
|
2
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitNavigationMenuBaseComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Defines whether menu will be collapsed
|
|
7
|
+
*/
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
10
|
+
collapseAll(items: KitNavigationMenuItem[]): void;
|
|
11
|
+
handleClick(item: KitNavigationMenuItem): void;
|
|
12
|
+
handleHover(item: KitNavigationMenuItem, isHovering: boolean): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuBaseComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuBaseComponent, "ng-component", never, { "collapsed": { "alias": "collapsed"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { KitNavigationMenuItem } from '../kit-navigation-menu.model';
|
|
2
|
+
import { KitNavigationMenuBaseComponent } from '../kit-navigation-menu-base.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitNavigationMenuSubmenuComponent extends KitNavigationMenuBaseComponent {
|
|
5
|
+
item: KitNavigationMenuItem | null;
|
|
6
|
+
collapseMenu(item: KitNavigationMenuItem | null): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuSubmenuComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuSubmenuComponent, "kit-navigation-menu-submenu", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-navigation-menu-submenu.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/router";
|
|
5
|
+
import * as i4 from "../../kit-svg-icon/kit-svg-icon.module";
|
|
6
|
+
export declare class KitNavigationMenuSubmenuModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuSubmenuModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitNavigationMenuSubmenuModule, [typeof i1.KitNavigationMenuSubmenuComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.KitSvgIconModule], [typeof i1.KitNavigationMenuSubmenuComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitNavigationMenuSubmenuModule>;
|
|
10
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { KitNavigationMenuItem } from './kit-navigation-menu.model';
|
|
2
|
-
import {
|
|
3
|
+
import { KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
3
4
|
import { Router } from '@angular/router';
|
|
4
|
-
import {
|
|
5
|
+
import { KitNavigationMenuBaseComponent } from './kit-navigation-menu-base.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class KitNavigationMenuComponent {
|
|
7
|
+
export declare class KitNavigationMenuComponent extends KitNavigationMenuBaseComponent implements OnInit, OnChanges {
|
|
7
8
|
private router;
|
|
9
|
+
private changeDetectorRef;
|
|
8
10
|
/**
|
|
9
11
|
* An items list which is going to be rendered as menu items
|
|
10
12
|
*/
|
|
@@ -13,16 +15,12 @@ export declare class KitNavigationMenuComponent {
|
|
|
13
15
|
* Defines whether the component will have an animation when collapsing/expanding the menu
|
|
14
16
|
*/
|
|
15
17
|
animate: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
collapsed: boolean;
|
|
20
|
-
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
21
|
-
readonly PanelBarExpandMode: typeof PanelBarExpandMode;
|
|
22
|
-
constructor(router: Router);
|
|
18
|
+
readonly KitSvgIconType: typeof KitSvgIconType;
|
|
19
|
+
constructor(router: Router, changeDetectorRef: ChangeDetectorRef);
|
|
23
20
|
ngOnInit(): void;
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
22
|
private setExpandedStateOnRouterChange;
|
|
25
23
|
private setExpandedState;
|
|
26
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "items": { "alias": "items"; "required": false; }; "animate": { "alias": "animate"; "required": false; };
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitNavigationMenuComponent, "kit-navigation-menu", never, { "items": { "alias": "items"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; }, {}, never, never, false, never>;
|
|
28
26
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
1
|
+
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
2
2
|
export interface KitNavigationMenuItem {
|
|
3
3
|
title: string;
|
|
4
4
|
link?: string;
|
|
5
5
|
cssClass?: string;
|
|
6
6
|
icon?: KitSvgIcon;
|
|
7
|
+
iconType?: KitSvgIconType;
|
|
7
8
|
expanded?: boolean;
|
|
8
9
|
items?: KitNavigationMenuItem[];
|
|
9
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./kit-navigation-menu.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
4
|
+
import * as i3 from "../kit-svg-icon/kit-svg-icon.module";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "./kit-navigation-menu-submenu/kit-navigation-menu-submenu.module";
|
|
7
7
|
export declare class KitNavigationMenuModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitNavigationMenuModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitNavigationMenuModule, [typeof i1.KitNavigationMenuComponent], [typeof i2.CommonModule, typeof i3.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitNavigationMenuModule, [typeof i1.KitNavigationMenuComponent], [typeof i2.CommonModule, typeof i3.KitSvgIconModule, typeof i4.RouterModule, typeof i5.KitNavigationMenuSubmenuModule], [typeof i1.KitNavigationMenuComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitNavigationMenuModule>;
|
|
11
11
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export { KitCopyTextModule } from './lib/components/kit-copy-text/kit-copy-text.
|
|
|
88
88
|
export { KitCopyTextComponent } from './lib/components/kit-copy-text/kit-copy-text.component';
|
|
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
|
+
export { KitNavigationMenuSubmenuComponent, } from './lib/components/kit-navigation-menu/kit-navigation-menu-submenu/kit-navigation-menu-submenu.component';
|
|
91
92
|
export { KitNavigationMenuItem } from './lib/components/kit-navigation-menu/kit-navigation-menu.model';
|
|
92
93
|
export { KitBadgeModule } from './lib/directives/kit-badge/kit-badge.module';
|
|
93
94
|
export { KitBadgeDirective } from './lib/directives/kit-badge/kit-badge.directive';
|
|
@@ -123,5 +124,5 @@ export { KitBreadcrumbsItem } from './lib/components/kit-breadcrumbs/kit-breadcr
|
|
|
123
124
|
export { KitGridModule } from './lib/components/kit-grid/kit-grid.module';
|
|
124
125
|
export { KitGridComponent } from './lib/components/kit-grid/kit-grid.component';
|
|
125
126
|
export { KitGridDataStateChangeEvent, KitGridSortDescriptor, KitGridNestedData } from './lib/components/kit-grid/kit-grid.model';
|
|
126
|
-
export { KitGridSortDirection } from './lib/components/kit-grid/kit-grid.const';
|
|
127
|
+
export { KitGridSortDirection, KitGridSortSettingsMode } from './lib/components/kit-grid/kit-grid.const';
|
|
127
128
|
export { KitGridColumnComponent } from './lib/components/kit-grid/kit-grid-column/kit-grid-column.component';
|