@indigina/ui-kit 1.1.37 → 1.1.39
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/sort-ascending.svg +3 -0
- package/assets/icons/sort-descending.svg +3 -0
- package/esm2022/lib/components/kit-breadcrumbs/kit-breadcrumbs.component.mjs +20 -0
- package/esm2022/lib/components/kit-breadcrumbs/kit-breadcrumbs.model.mjs +2 -0
- package/esm2022/lib/components/kit-breadcrumbs/kit-breadcrumbs.module.mjs +27 -0
- package/esm2022/lib/components/kit-grid/kit-grid-column/kit-grid-column.component.mjs +49 -0
- package/esm2022/lib/components/kit-grid/kit-grid.component.mjs +90 -0
- package/esm2022/lib/components/kit-grid/kit-grid.const.mjs +6 -0
- package/esm2022/lib/components/kit-grid/kit-grid.model.mjs +2 -0
- package/esm2022/lib/components/kit-grid/kit-grid.module.mjs +37 -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 +9 -1
- package/fesm2022/indigina-ui-kit.mjs +210 -3
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-breadcrumbs/kit-breadcrumbs.component.d.ts +10 -0
- package/lib/components/kit-breadcrumbs/kit-breadcrumbs.model.d.ts +4 -0
- package/lib/components/kit-breadcrumbs/kit-breadcrumbs.module.d.ts +9 -0
- package/lib/components/kit-grid/kit-grid-column/kit-grid-column.component.d.ts +35 -0
- package/lib/components/kit-grid/kit-grid.component.d.ts +46 -0
- package/lib/components/kit-grid/kit-grid.const.d.ts +4 -0
- package/lib/components/kit-grid/kit-grid.model.d.ts +7 -0
- package/lib/components/kit-grid/kit-grid.module.d.ts +11 -0
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +3 -1
- package/package.json +5 -3
- package/public-api.d.ts +8 -0
- package/styles/styles.scss +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KitBreadcrumbsItem } from './kit-breadcrumbs.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class KitBreadcrumbsComponent {
|
|
4
|
+
/**
|
|
5
|
+
* Defines items that will be rendered as breadcrumbs
|
|
6
|
+
*/
|
|
7
|
+
items: KitBreadcrumbsItem[];
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitBreadcrumbsComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitBreadcrumbsComponent, "kit-breadcrumbs", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-breadcrumbs.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/router";
|
|
5
|
+
export declare class KitBreadcrumbsModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitBreadcrumbsModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitBreadcrumbsModule, [typeof i1.KitBreadcrumbsComponent], [typeof i2.CommonModule, typeof i3.RouterLink], [typeof i1.KitBreadcrumbsComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitBreadcrumbsModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 KitGridColumnComponent {
|
|
5
|
+
/**
|
|
6
|
+
* Defines the field to which the column is bound
|
|
7
|
+
*/
|
|
8
|
+
field: string;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the title of the column
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the column title icon
|
|
15
|
+
*/
|
|
16
|
+
titleIcon?: KitSvgIcon;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the column title icon type
|
|
19
|
+
*/
|
|
20
|
+
titleIconType: KitSvgIconType;
|
|
21
|
+
/**
|
|
22
|
+
* Defines whether the column can be sorted by clicking on its title
|
|
23
|
+
*/
|
|
24
|
+
sortable: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Defines the width of the column (in pixels)
|
|
27
|
+
*/
|
|
28
|
+
width?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the column cell template
|
|
31
|
+
*/
|
|
32
|
+
cellTemplate?: TemplateRef<HTMLElement>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridColumnComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridColumnComponent, "kit-grid-column", never, { "field": { "alias": "field"; "required": false; }; "title": { "alias": "title"; "required": false; }; "titleIcon": { "alias": "titleIcon"; "required": false; }; "titleIconType": { "alias": "titleIconType"; "required": false; }; "sortable": { "alias": "sortable"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, ["cellTemplate"], never, false, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EventEmitter, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { KitGridColumnComponent } from './kit-grid-column/kit-grid-column.component';
|
|
3
|
+
import { DataStateChangeEvent, DetailCollapseEvent, DetailExpandEvent, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
4
|
+
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
5
|
+
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
6
|
+
import { KitGridDataStateChangeEvent, KitGridNestedData, KitGridSortDescriptor } from './kit-grid.model';
|
|
7
|
+
import { KitGridSortDirection } from './kit-grid.const';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class KitGridComponent<T extends KitGridNestedData<U>, U = unknown> {
|
|
10
|
+
/**
|
|
11
|
+
* Sets the data of the grid
|
|
12
|
+
*/
|
|
13
|
+
data: T[];
|
|
14
|
+
/**
|
|
15
|
+
* Enables the sorting of the grid columns
|
|
16
|
+
*/
|
|
17
|
+
sortable: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The descriptors by which the data will be sorted
|
|
20
|
+
*/
|
|
21
|
+
sort: KitGridSortDescriptor[];
|
|
22
|
+
/**
|
|
23
|
+
* An action which is emitted once the sorting of the grid changed
|
|
24
|
+
*/
|
|
25
|
+
sortChanged: EventEmitter<KitGridSortDescriptor[]>;
|
|
26
|
+
/**
|
|
27
|
+
* An action which is emitted when the data state of the grid is changed
|
|
28
|
+
*/
|
|
29
|
+
dataStateChanged: EventEmitter<KitGridDataStateChangeEvent>;
|
|
30
|
+
columns: QueryList<KitGridColumnComponent> | null;
|
|
31
|
+
kitGridDetailTemplate: TemplateRef<HTMLElement> | null;
|
|
32
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
33
|
+
readonly KitGridSortDirection: typeof KitGridSortDirection;
|
|
34
|
+
private state;
|
|
35
|
+
private expandedRows;
|
|
36
|
+
onDataStateChange(event: DataStateChangeEvent): void;
|
|
37
|
+
onSortChange(event: SortDescriptor[]): void;
|
|
38
|
+
getSortingDirection(): string | null;
|
|
39
|
+
isDetailTemplateVisible(dataItem: T): boolean;
|
|
40
|
+
hasDetailColumn(): boolean;
|
|
41
|
+
onDetailExpand(event: DetailExpandEvent): void;
|
|
42
|
+
onDetailCollapse(event: DetailCollapseEvent): void;
|
|
43
|
+
getCssRowClass: (context: RowClassArgs) => Record<string, boolean>;
|
|
44
|
+
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>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DataStateChangeEvent } from '@progress/kendo-angular-grid';
|
|
2
|
+
import { SortDescriptor } from '@progress/kendo-data-query';
|
|
3
|
+
export interface KitGridNestedData<U> {
|
|
4
|
+
children?: U[];
|
|
5
|
+
}
|
|
6
|
+
export type KitGridSortDescriptor = SortDescriptor;
|
|
7
|
+
export type KitGridDataStateChangeEvent = DataStateChangeEvent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./kit-grid.component";
|
|
3
|
+
import * as i2 from "./kit-grid-column/kit-grid-column.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@progress/kendo-angular-grid";
|
|
6
|
+
import * as i5 from "../kit-svg-icon/kit-svg-icon.module";
|
|
7
|
+
export declare class KitGridModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitGridModule, [typeof i1.KitGridComponent, typeof i2.KitGridColumnComponent], [typeof i3.CommonModule, typeof i4.GridModule, typeof i5.KitSvgIconModule], [typeof i1.KitGridComponent, typeof i2.KitGridColumnComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KitGridModule>;
|
|
11
|
+
}
|
|
@@ -86,7 +86,9 @@ export declare enum KitSvgIcon {
|
|
|
86
86
|
WARNING_CIRCLE_FILLED = "warning-circle-filled",
|
|
87
87
|
CLOSE_CIRCLE_FILLED = "close-circle-filled",
|
|
88
88
|
QUESTION_CIRCLE = "question-circle",
|
|
89
|
-
STAR = "star"
|
|
89
|
+
STAR = "star",
|
|
90
|
+
SORT_ASCENDING = "sort-ascending",
|
|
91
|
+
SORT_DESCENDING = "sort-descending"
|
|
90
92
|
}
|
|
91
93
|
export declare enum KitSvgIconType {
|
|
92
94
|
FILL = "fill",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"components",
|
|
8
8
|
"shared"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.1.
|
|
10
|
+
"version": "1.1.39",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@angular/common": "^17.0.7",
|
|
13
13
|
"@angular/core": "^17.0.7"
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"@progress/kendo-angular-buttons": "15.0.1",
|
|
17
17
|
"@progress/kendo-angular-common": "15.0.1",
|
|
18
18
|
"@progress/kendo-angular-dateinputs": "15.0.1",
|
|
19
|
+
"@progress/kendo-angular-dialog": "15.0.1",
|
|
19
20
|
"@progress/kendo-angular-dropdowns": "15.0.1",
|
|
21
|
+
"@progress/kendo-angular-grid": "15.0.1",
|
|
20
22
|
"@progress/kendo-angular-icons": "15.0.1",
|
|
21
23
|
"@progress/kendo-angular-indicators": "15.0.1",
|
|
22
24
|
"@progress/kendo-angular-inputs": "15.0.1",
|
|
@@ -28,10 +30,10 @@
|
|
|
28
30
|
"@progress/kendo-angular-navigation": "15.0.1",
|
|
29
31
|
"@progress/kendo-angular-popup": "15.0.1",
|
|
30
32
|
"@progress/kendo-angular-progressbar": "15.0.1",
|
|
31
|
-
"@progress/kendo-angular-treeview": "15.0.1",
|
|
32
33
|
"@progress/kendo-angular-tooltip": "15.0.1",
|
|
33
|
-
"@progress/kendo-angular-
|
|
34
|
+
"@progress/kendo-angular-treeview": "15.0.1",
|
|
34
35
|
"@progress/kendo-angular-upload": "15.0.1",
|
|
36
|
+
"@progress/kendo-data-query": "1.7.0",
|
|
35
37
|
"@progress/kendo-drawing": "1.19.0",
|
|
36
38
|
"@progress/kendo-licensing": "1.3.5",
|
|
37
39
|
"@progress/kendo-svg-icons": "2.1.0",
|
package/public-api.d.ts
CHANGED
|
@@ -117,3 +117,11 @@ export { KitCardModule } from './lib/components/kit-card/kit-card.module';
|
|
|
117
117
|
export { KitCardComponent } from './lib/components/kit-card/kit-card.component';
|
|
118
118
|
export { KitCard, KitCardItem } from './lib/components/kit-card/kit-card.model';
|
|
119
119
|
export { KitCardTheme } from './lib/components/kit-card/kit-card.const';
|
|
120
|
+
export { KitBreadcrumbsModule } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.module';
|
|
121
|
+
export { KitBreadcrumbsComponent } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.component';
|
|
122
|
+
export { KitBreadcrumbsItem } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.model';
|
|
123
|
+
export { KitGridModule } from './lib/components/kit-grid/kit-grid.module';
|
|
124
|
+
export { KitGridComponent } from './lib/components/kit-grid/kit-grid.component';
|
|
125
|
+
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 { KitGridColumnComponent } from './lib/components/kit-grid/kit-grid-column/kit-grid-column.component';
|
package/styles/styles.scss
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
@import "@progress/kendo-theme-default/scss/upload";
|
|
14
14
|
@import "@progress/kendo-theme-default/scss/panelbar";
|
|
15
15
|
@import "@progress/kendo-theme-default/scss/popup";
|
|
16
|
+
@import "@progress/kendo-theme-default/scss/grid";
|
|
16
17
|
@import "ngx-toastr/toastr";
|
|
17
18
|
|
|
18
19
|
/* styles which need to be included by default into app styles */
|