@indigina/ui-kit 1.1.97 → 1.1.99
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/csv-file.svg +26 -0
- package/assets/icons/xml-file.svg +18 -0
- package/esm2022/lib/components/kit-grid/kit-grid.component.mjs +24 -4
- package/esm2022/lib/components/kit-grid/kit-grid.model.mjs +1 -1
- package/esm2022/lib/components/kit-grid/kit-grid.module.mjs +10 -4
- package/esm2022/lib/components/kit-popup/kit-popup.component.mjs +29 -5
- package/esm2022/lib/components/kit-profile-menu/kit-profile-menu.component.mjs +2 -2
- package/esm2022/lib/components/kit-radio-button/kit-radio-button.component.mjs +27 -8
- package/esm2022/lib/components/kit-radio-button/kit-radio-button.const.mjs +6 -0
- package/esm2022/lib/components/kit-radio-button/kit-radio-button.model.mjs +1 -1
- package/esm2022/lib/components/kit-radio-button/kit-radio-button.module.mjs +7 -3
- 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 +6 -1
- package/fesm2022/indigina-ui-kit.mjs +95 -19
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/components/kit-grid/kit-grid.component.d.ts +10 -3
- package/lib/components/kit-grid/kit-grid.model.d.ts +7 -0
- package/lib/components/kit-grid/kit-grid.module.d.ts +1 -1
- package/lib/components/kit-popup/kit-popup.component.d.ts +11 -2
- package/lib/components/kit-radio-button/kit-radio-button.component.d.ts +9 -2
- package/lib/components/kit-radio-button/kit-radio-button.const.d.ts +4 -0
- package/lib/components/kit-radio-button/kit-radio-button.model.d.ts +2 -0
- package/lib/components/kit-radio-button/kit-radio-button.module.d.ts +2 -1
- package/lib/components/kit-svg-icon/kit-svg-icon.const.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { EventEmitter, Signal, TemplateRef } from '@angular/core';
|
|
2
2
|
import { KitGridColumnComponent } from './kit-grid-column/kit-grid-column.component';
|
|
3
|
-
import { PagerSettings, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
3
|
+
import { ExcelExportEvent, GridComponent, PagerSettings, RowClassArgs } from '@progress/kendo-angular-grid';
|
|
4
4
|
import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
|
|
5
|
-
import { KitGridCellClickEvent, KitGridDataStateChangeEvent, KitGridDetailCollapseEvent, KitGridDetailExpandEvent, KitGridPageChangeEvent, KitGridSortSettings } from './kit-grid.model';
|
|
5
|
+
import { KitGridCellClickEvent, KitGridDataStateChangeEvent, KitGridDetailCollapseEvent, KitGridDetailExpandEvent, KitGridPageChangeEvent, KitGridSortSettings, KitPDFOptions } from './kit-grid.model';
|
|
6
6
|
import { KitDataResult, KitSortDescriptor } from '../../utils/kit-data-query/kit-data-query.model';
|
|
7
7
|
import { KitSortDirection } from '../../utils/kit-data-query/kit-data-query.const';
|
|
8
|
+
import { PDFExportEvent } from '@progress/kendo-angular-grid/pdf/pdf-export-event';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class KitGridComponent<T> {
|
|
10
11
|
/**
|
|
@@ -59,6 +60,7 @@ export declare class KitGridComponent<T> {
|
|
|
59
60
|
* Data to display in the footer row
|
|
60
61
|
*/
|
|
61
62
|
footerData?: Partial<Record<keyof T, T[keyof T]>>;
|
|
63
|
+
pdfOptions: KitPDFOptions;
|
|
62
64
|
/**
|
|
63
65
|
* An action which is emitted when the page of the grid is changed
|
|
64
66
|
*/
|
|
@@ -83,7 +85,10 @@ export declare class KitGridComponent<T> {
|
|
|
83
85
|
* An action which is emitted when user clicks a cell
|
|
84
86
|
*/
|
|
85
87
|
cellClicked: EventEmitter<KitGridCellClickEvent>;
|
|
88
|
+
excelExport: EventEmitter<ExcelExportEvent>;
|
|
89
|
+
pdfExport: EventEmitter<PDFExportEvent>;
|
|
86
90
|
kitGridDetailTemplate: TemplateRef<HTMLElement> | null;
|
|
91
|
+
gridComponent: GridComponent | null;
|
|
87
92
|
readonly columns: Signal<readonly KitGridColumnComponent[]>;
|
|
88
93
|
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
89
94
|
readonly kitSortDirection: typeof KitSortDirection;
|
|
@@ -98,7 +103,9 @@ export declare class KitGridComponent<T> {
|
|
|
98
103
|
onCellClick(event: KitGridCellClickEvent): void;
|
|
99
104
|
getCssRowClass: (context: RowClassArgs) => Record<string, boolean>;
|
|
100
105
|
getPagerSettings(): boolean | PagerSettings;
|
|
106
|
+
saveAsPDF(): void;
|
|
107
|
+
saveAsExcel(): void;
|
|
101
108
|
private collapseAllRows;
|
|
102
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridComponent<any>, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "gridDataBinding": { "alias": "gridDataBinding"; "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; }; "loading": { "alias": "loading"; "required": false; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; "detailTemplateExpandDisableIf": { "alias": "detailTemplateExpandDisableIf"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerTitle": { "alias": "footerTitle"; "required": false; }; "footerData": { "alias": "footerData"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; "cellClicked": "cellClicked"; }, ["columns", "kitGridDetailTemplate"], never, false, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridComponent<any>, "kit-grid", never, { "data": { "alias": "data"; "required": false; }; "gridDataBinding": { "alias": "gridDataBinding"; "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; }; "loading": { "alias": "loading"; "required": false; }; "detailTemplateShowIf": { "alias": "detailTemplateShowIf"; "required": false; }; "detailTemplateExpandDisableIf": { "alias": "detailTemplateExpandDisableIf"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "footerTitle": { "alias": "footerTitle"; "required": false; }; "footerData": { "alias": "footerData"; "required": false; }; "pdfOptions": { "alias": "pdfOptions"; "required": false; }; }, { "pageChanged": "pageChanged"; "sortChanged": "sortChanged"; "dataStateChanged": "dataStateChanged"; "detailExpanded": "detailExpanded"; "detailCollapsed": "detailCollapsed"; "cellClicked": "cellClicked"; "excelExport": "excelExport"; "pdfExport": "pdfExport"; }, ["columns", "kitGridDetailTemplate"], never, false, never>;
|
|
104
111
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CellClickEvent, DetailCollapseEvent, DetailExpandEvent, PageChangeEvent } from '@progress/kendo-angular-grid';
|
|
2
2
|
import { KitGridSortSettingsMode } from './kit-grid.const';
|
|
3
3
|
import { KitSortDescriptor } from '../../utils/kit-data-query/kit-data-query.model';
|
|
4
|
+
import { PaperSize, PDFOptions } from '@progress/kendo-drawing/dist/npm/pdf';
|
|
4
5
|
export interface KitGridSortSettings {
|
|
5
6
|
mode: KitGridSortSettingsMode;
|
|
6
7
|
}
|
|
@@ -13,3 +14,9 @@ export type KitGridPageChangeEvent = PageChangeEvent;
|
|
|
13
14
|
export type KitGridDetailExpandEvent = DetailExpandEvent;
|
|
14
15
|
export type KitGridDetailCollapseEvent = DetailCollapseEvent;
|
|
15
16
|
export type KitGridCellClickEvent = CellClickEvent;
|
|
17
|
+
export interface KitPDFOptions extends PDFOptions {
|
|
18
|
+
fileName?: string;
|
|
19
|
+
allPages?: boolean;
|
|
20
|
+
scale?: number;
|
|
21
|
+
paperSize?: PaperSize;
|
|
22
|
+
}
|
|
@@ -8,6 +8,6 @@ import * as i6 from "./kit-grid-cell-template.directive";
|
|
|
8
8
|
import * as i7 from "./kit-grid-detail-template.directive";
|
|
9
9
|
export declare class KitGridModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitGridModule, [typeof i1.KitGridComponent, typeof i2.KitGridColumnComponent], [typeof i3.CommonModule, typeof i4.GridModule, typeof i5.KitSvgIconModule, typeof i6.KitGridCellTemplateDirective, typeof i7.KitGridDetailTemplateDirective], [typeof i1.KitGridComponent, typeof i2.KitGridColumnComponent, typeof i6.KitGridCellTemplateDirective, typeof i7.KitGridDetailTemplateDirective]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitGridModule, [typeof i1.KitGridComponent, typeof i2.KitGridColumnComponent], [typeof i3.CommonModule, typeof i4.GridModule, typeof i5.KitSvgIconModule, typeof i6.KitGridCellTemplateDirective, typeof i7.KitGridDetailTemplateDirective, typeof i4.ExcelModule, typeof i4.PDFModule], [typeof i1.KitGridComponent, typeof i2.KitGridColumnComponent, typeof i6.KitGridCellTemplateDirective, typeof i7.KitGridDetailTemplateDirective]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitGridModule>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ElementRef, OnInit, WritableSignal } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit, WritableSignal } from '@angular/core';
|
|
2
2
|
import { KitPopupAlign, KitPopupAlignHorizontal } from './kit-popup.model';
|
|
3
|
+
import { KitButtonKind, KitButtonType } from '../kit-button/kit-button.const';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class KitPopupComponent implements OnInit {
|
|
5
6
|
private elementRef;
|
|
@@ -19,9 +20,17 @@ export declare class KitPopupComponent implements OnInit {
|
|
|
19
20
|
* Defines the horizontal position of the popup
|
|
20
21
|
*/
|
|
21
22
|
popupHorizontalAlign: KitPopupAlignHorizontal;
|
|
23
|
+
showFooter: boolean;
|
|
24
|
+
cancelButtonLabel: string;
|
|
25
|
+
applyButtonLabel: string;
|
|
26
|
+
isApplyButtonDisabled: boolean;
|
|
27
|
+
cancel: EventEmitter<void>;
|
|
28
|
+
apply: EventEmitter<void>;
|
|
22
29
|
readonly visible: WritableSignal<boolean>;
|
|
23
30
|
readonly anchorAlign: KitPopupAlign;
|
|
24
31
|
readonly popupAlign: KitPopupAlign;
|
|
32
|
+
readonly kitButtonKind: typeof KitButtonKind;
|
|
33
|
+
readonly kitButtonType: typeof KitButtonType;
|
|
25
34
|
constructor(elementRef: ElementRef);
|
|
26
35
|
documentClick(event: Event): void;
|
|
27
36
|
ngOnInit(): void;
|
|
@@ -29,5 +38,5 @@ export declare class KitPopupComponent implements OnInit {
|
|
|
29
38
|
toggle(): void;
|
|
30
39
|
hide(): void;
|
|
31
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitPopupComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitPopupComponent, "kit-popup", never, { "anchor": { "alias": "anchor"; "required": false; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; }; "anchorHorizontalAlign": { "alias": "anchorHorizontalAlign"; "required": false; }; "popupHorizontalAlign": { "alias": "popupHorizontalAlign"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitPopupComponent, "kit-popup", never, { "anchor": { "alias": "anchor"; "required": false; }; "closeOnOutsideClick": { "alias": "closeOnOutsideClick"; "required": false; }; "anchorHorizontalAlign": { "alias": "anchorHorizontalAlign"; "required": false; }; "popupHorizontalAlign": { "alias": "popupHorizontalAlign"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "cancelButtonLabel": { "alias": "cancelButtonLabel"; "required": false; }; "applyButtonLabel": { "alias": "applyButtonLabel"; "required": false; }; "isApplyButtonDisabled": { "alias": "isApplyButtonDisabled"; "required": false; }; }, { "cancel": "cancel"; "apply": "apply"; }, never, ["*"], true, never>;
|
|
33
42
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { KitRadioButton } from './kit-radio-button.model';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { KitSvgIcon, KitSvgIconType } from '../kit-svg-icon/kit-svg-icon.const';
|
|
5
|
+
import { KitRadioButtonType } from './kit-radio-button.const';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
export declare class KitRadioButtonComponent<T> implements ControlValueAccessor {
|
|
6
8
|
items: KitRadioButton<T>[];
|
|
@@ -8,9 +10,14 @@ export declare class KitRadioButtonComponent<T> implements ControlValueAccessor
|
|
|
8
10
|
name: string;
|
|
9
11
|
readonly: boolean;
|
|
10
12
|
disabled: boolean;
|
|
13
|
+
type: KitRadioButtonType;
|
|
11
14
|
changed: EventEmitter<KitRadioButton<T>>;
|
|
15
|
+
readonly kitRadioButtonType: typeof KitRadioButtonType;
|
|
16
|
+
readonly KitSvgIcon: typeof KitSvgIcon;
|
|
17
|
+
readonly KitSvgIconType: typeof KitSvgIconType;
|
|
18
|
+
get isIconListType(): boolean;
|
|
12
19
|
buildLabelId(index: number): string;
|
|
13
|
-
handleClick(event: MouseEvent,
|
|
20
|
+
handleClick(event: MouseEvent, clickedItem: KitRadioButton<T>): void;
|
|
14
21
|
onChange(value: T): void;
|
|
15
22
|
onTouched(): void;
|
|
16
23
|
writeValue(value: T): void;
|
|
@@ -22,5 +29,5 @@ export declare class KitRadioButtonComponent<T> implements ControlValueAccessor
|
|
|
22
29
|
private getFirstPartOfUUID;
|
|
23
30
|
private needToPrevent;
|
|
24
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitRadioButtonComponent<any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KitRadioButtonComponent<any>, "kit-radio-button", never, { "items": { "alias": "items"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitRadioButtonComponent<any>, "kit-radio-button", never, { "items": { "alias": "items"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
|
|
26
33
|
}
|
|
@@ -3,8 +3,9 @@ import * as i1 from "./kit-radio-button.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@progress/kendo-angular-inputs";
|
|
5
5
|
import * as i4 from "../kit-input-label/kit-input-label.module";
|
|
6
|
+
import * as i5 from "../kit-svg-icon/kit-svg-icon.module";
|
|
6
7
|
export declare class KitRadioButtonModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<KitRadioButtonModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KitRadioButtonModule, [typeof i1.KitRadioButtonComponent], [typeof i2.CommonModule, typeof i3.RadioButtonModule, typeof i4.KitInputLabelModule], [typeof i1.KitRadioButtonComponent]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KitRadioButtonModule, [typeof i1.KitRadioButtonComponent], [typeof i2.CommonModule, typeof i3.RadioButtonModule, typeof i4.KitInputLabelModule, typeof i5.KitSvgIconModule], [typeof i1.KitRadioButtonComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<KitRadioButtonModule>;
|
|
10
11
|
}
|
|
@@ -128,6 +128,8 @@ export declare enum KitSvgIcon {
|
|
|
128
128
|
WORD_FILE = "word-file",
|
|
129
129
|
PDF_FILE = "pdf-file",
|
|
130
130
|
IMAGE_FILE = "image-file",
|
|
131
|
+
XML_FILE = "xml-file",
|
|
132
|
+
CSV_FILE = "csv-file",
|
|
131
133
|
EMPTY = "empty",
|
|
132
134
|
PRODUCT = "product",
|
|
133
135
|
NOTIFICATION = "notification",
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export { KitQueryParamsService, KitQueryParams, KitQueryParamsName } from './lib
|
|
|
69
69
|
export { KitRadioButtonComponent } from './lib/components/kit-radio-button/kit-radio-button.component';
|
|
70
70
|
export { KitRadioButtonModule } from './lib/components/kit-radio-button/kit-radio-button.module';
|
|
71
71
|
export { KitRadioButton } from './lib/components/kit-radio-button/kit-radio-button.model';
|
|
72
|
+
export { KitRadioButtonType } from './lib/components/kit-radio-button/kit-radio-button.const';
|
|
72
73
|
export { buildRandomUUID } from './lib/utils/random.util';
|
|
73
74
|
export { KitNavigationTabsComponent } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.component';
|
|
74
75
|
export { KitNavigationTabsModule } from './lib/components/kit-navigation-tabs/kit-navigation-tabs.module';
|
|
@@ -125,11 +126,15 @@ export { KitBreadcrumbsComponent } from './lib/components/kit-breadcrumbs/kit-br
|
|
|
125
126
|
export { KitBreadcrumbsItem } from './lib/components/kit-breadcrumbs/kit-breadcrumbs.model';
|
|
126
127
|
export { KitGridModule } from './lib/components/kit-grid/kit-grid.module';
|
|
127
128
|
export { KitGridComponent } from './lib/components/kit-grid/kit-grid.component';
|
|
128
|
-
export { KitGridDataStateChangeEvent, KitGridPageChangeEvent, KitGridDetailExpandEvent, KitGridDetailCollapseEvent, KitGridSortSettings, KitGridCellClickEvent, } from './lib/components/kit-grid/kit-grid.model';
|
|
129
|
+
export { KitGridDataStateChangeEvent, KitGridPageChangeEvent, KitGridDetailExpandEvent, KitGridDetailCollapseEvent, KitGridSortSettings, KitGridCellClickEvent, KitPDFOptions, } from './lib/components/kit-grid/kit-grid.model';
|
|
129
130
|
export { KitGridSortSettingsMode } from './lib/components/kit-grid/kit-grid.const';
|
|
130
131
|
export { KitGridColumnComponent } from './lib/components/kit-grid/kit-grid-column/kit-grid-column.component';
|
|
131
132
|
export { KitGridCellTemplateDirective } from './lib/components/kit-grid/kit-grid-cell-template.directive';
|
|
132
133
|
export { KitGridDetailTemplateDirective } from './lib/components/kit-grid/kit-grid-detail-template.directive';
|
|
134
|
+
export { saveAs } from '@progress/kendo-file-saver';
|
|
135
|
+
export { Workbook, WorkbookOptions, WorkbookSheetColumn, WorkbookSheetRow, WorkbookSheetRowCell, WorkbookSheet, } from '@progress/kendo-ooxml';
|
|
136
|
+
export { ExcelExportEvent } from '@progress/kendo-angular-grid';
|
|
137
|
+
export { pdf } from '@progress/kendo-drawing';
|
|
133
138
|
export { KitTileLayoutComponent } from './lib/components/kit-tilelayout/kit-tilelayout.component';
|
|
134
139
|
export { KitTileLayoutModule } from './lib/components/kit-tilelayout/kit-tilelayout.module';
|
|
135
140
|
export { KitTileLayoutItemComponent } from './lib/components/kit-tilelayout/kit-tilelayout-item.component';
|