@indigina/ui-kit 1.1.132 → 1.1.133
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/fesm2022/indigina-ui-kit.mjs +275 -8
- package/fesm2022/indigina-ui-kit.mjs.map +1 -1
- package/lib/const/date-time.const.d.ts +2 -0
- package/lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.component.d.ts +10 -0
- package/lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.model.d.ts +2 -0
- package/lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.service.d.ts +17 -0
- package/lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.component.d.ts +50 -0
- package/lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.const.d.ts +8 -0
- package/lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.model.d.ts +2 -0
- package/lib/widgets/kit-grid-management/kit-grid-management.model.d.ts +5 -0
- package/package.json +2 -1
- package/public-api.d.ts +6 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KitGridCellDataItem } from './kit-grid-cell.model';
|
|
2
|
+
import { KitGridColumn } from '../kit-grid-management.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KitGridCellComponent {
|
|
5
|
+
column: KitGridColumn;
|
|
6
|
+
dataItem: KitGridCellDataItem;
|
|
7
|
+
readonly dateformat: string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridCellComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridCellComponent, "kit-grid-cell", never, { "column": { "alias": "column"; "required": false; }; "dataItem": { "alias": "dataItem"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DatePipe, DecimalPipe } from '@angular/common';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { KitGridCellTranslationMap } from './kit-grid-cell.model';
|
|
4
|
+
import { KIT_DATE_FORMAT, KIT_DATETIME_FORMAT_LONG } from '../../../const/date-time.const';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class KitGridCellService {
|
|
7
|
+
private readonly translateService;
|
|
8
|
+
private readonly decimalPipe;
|
|
9
|
+
private readonly datePipe;
|
|
10
|
+
readonly dateFormat: typeof KIT_DATE_FORMAT;
|
|
11
|
+
readonly dateTimeFormat: typeof KIT_DATETIME_FORMAT_LONG;
|
|
12
|
+
constructor(translateService: TranslateService, decimalPipe: DecimalPipe, datePipe: DatePipe);
|
|
13
|
+
createCellValue<T>(columnType: string, columnField: string, dataItem: T, translationMap?: KitGridCellTranslationMap): string;
|
|
14
|
+
private getNestedGridCellValue;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridCellService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KitGridCellService>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ElementRef, InputSignal, Signal, WritableSignal } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { GridExportOptions } from './kit-grid-export.const';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { Store } from '@ngxs/store';
|
|
6
|
+
import { KitKendoDrawPdf } from './kit-grid-export.model';
|
|
7
|
+
import { KitPopupComponent } from '../../../components/kit-popup/kit-popup.component';
|
|
8
|
+
import { KitSvgIcon } from '../../../components/kit-svg-icon/kit-svg-icon.const';
|
|
9
|
+
import { KitButtonKind, KitButtonType } from '../../../components/kit-button/kit-button.const';
|
|
10
|
+
import { KitRadioButtonType } from '../../../components/kit-radio-button/kit-radio-button.const';
|
|
11
|
+
import { KitRadioButton } from '../../../components/kit-radio-button/kit-radio-button.model';
|
|
12
|
+
import { KitGridColumnConfig } from '../store/kit-grid.model';
|
|
13
|
+
import { KitNotificationService } from '../../../components/kit-notification/kit-notification.service';
|
|
14
|
+
import { KitGridCellService } from '../kit-grid-cell/kit-grid-cell.service';
|
|
15
|
+
import * as i0 from "@angular/core";
|
|
16
|
+
export declare class KitGridExportComponent<T> {
|
|
17
|
+
private readonly translateService;
|
|
18
|
+
private readonly notificationService;
|
|
19
|
+
private readonly gridCellService;
|
|
20
|
+
private readonly store;
|
|
21
|
+
readonly getExportedData: InputSignal<() => Observable<{
|
|
22
|
+
data: T[];
|
|
23
|
+
total: number;
|
|
24
|
+
}>>;
|
|
25
|
+
readonly translationMap: InputSignal<Record<string, (value: string) => string>>;
|
|
26
|
+
readonly exportedFileName: InputSignal<string>;
|
|
27
|
+
readonly drawPdf: InputSignal<(KitKendoDrawPdf<T>) | undefined>;
|
|
28
|
+
readonly gridHasData: InputSignal<boolean>;
|
|
29
|
+
readonly popup: Signal<KitPopupComponent | undefined>;
|
|
30
|
+
readonly anchor: Signal<ElementRef>;
|
|
31
|
+
readonly kitSvgIcon: typeof KitSvgIcon;
|
|
32
|
+
readonly kitButtonType: typeof KitButtonType;
|
|
33
|
+
readonly kitButtonKind: typeof KitButtonKind;
|
|
34
|
+
readonly kitRadioButtonType: typeof KitRadioButtonType;
|
|
35
|
+
gridExportOptions: KitRadioButton<GridExportOptions>[];
|
|
36
|
+
isGridExporting: WritableSignal<boolean>;
|
|
37
|
+
get visibleColumns(): KitGridColumnConfig[];
|
|
38
|
+
constructor(translateService: TranslateService, notificationService: KitNotificationService, gridCellService: KitGridCellService, store: Store);
|
|
39
|
+
onPopupToggle(): void;
|
|
40
|
+
onExport({ value }: KitRadioButton<GridExportOptions>): Promise<void>;
|
|
41
|
+
private onExportPDF;
|
|
42
|
+
private onExportExcel;
|
|
43
|
+
private getExportedExcelRows;
|
|
44
|
+
private onExportCSV;
|
|
45
|
+
private onExportXML;
|
|
46
|
+
private convertToXML;
|
|
47
|
+
private wrapWithElement;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KitGridExportComponent<any>, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KitGridExportComponent<any>, "kit-grid-export", never, { "getExportedData": { "alias": "getExportedData"; "required": true; "isSignal": true; }; "translationMap": { "alias": "translationMap"; "required": true; "isSignal": true; }; "exportedFileName": { "alias": "exportedFileName"; "required": true; "isSignal": true; }; "drawPdf": { "alias": "drawPdf"; "required": true; "isSignal": true; }; "gridHasData": { "alias": "gridHasData"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KitRadioButton } from '../../../components/kit-radio-button/kit-radio-button.model';
|
|
2
|
+
export declare enum GridExportOptions {
|
|
3
|
+
PDF = "pdf",
|
|
4
|
+
CSV = "csv",
|
|
5
|
+
EXCEL = "excel",
|
|
6
|
+
XML = "xml"
|
|
7
|
+
}
|
|
8
|
+
export declare const gridExportOptions: KitRadioButton<GridExportOptions>[];
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"components",
|
|
8
8
|
"shared"
|
|
9
9
|
],
|
|
10
|
-
"version": "1.1.
|
|
10
|
+
"version": "1.1.133",
|
|
11
11
|
"peerDependencies": {
|
|
12
12
|
"@angular/common": "^19.1.4",
|
|
13
13
|
"@angular/core": "^19.1.4"
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@progress/kendo-svg-icons": "4.0.0",
|
|
42
42
|
"@progress/kendo-theme-default": "10.2.0",
|
|
43
43
|
"initials": "3.1.2",
|
|
44
|
+
"json-2-csv": "5.5.9",
|
|
44
45
|
"ngx-toastr": "19.0.0",
|
|
45
46
|
"tslib": "2.8.1"
|
|
46
47
|
},
|
package/public-api.d.ts
CHANGED
|
@@ -135,10 +135,6 @@ export { KitGridSortSettingsMode } from './lib/components/kit-grid/kit-grid.cons
|
|
|
135
135
|
export { KitGridColumnComponent } from './lib/components/kit-grid/kit-grid-column/kit-grid-column.component';
|
|
136
136
|
export { KitGridCellTemplateDirective } from './lib/components/kit-grid/kit-grid-cell-template.directive';
|
|
137
137
|
export { KitGridDetailTemplateDirective } from './lib/components/kit-grid/kit-grid-detail-template.directive';
|
|
138
|
-
export { saveAs, encodeBase64 } from '@progress/kendo-file-saver';
|
|
139
|
-
export { Workbook, WorkbookOptions, WorkbookSheetColumn, WorkbookSheetRow, WorkbookSheetRowCell, WorkbookSheet, } from '@progress/kendo-ooxml';
|
|
140
|
-
export { ExcelExportEvent } from '@progress/kendo-angular-grid';
|
|
141
|
-
export { pdf } from '@progress/kendo-drawing';
|
|
142
138
|
export { KitTileLayoutComponent } from './lib/components/kit-tilelayout/kit-tilelayout.component';
|
|
143
139
|
export { KitTileLayoutModule } from './lib/components/kit-tilelayout/kit-tilelayout.module';
|
|
144
140
|
export { KitTileLayoutItemComponent } from './lib/components/kit-tilelayout/kit-tilelayout-item.component';
|
|
@@ -172,6 +168,7 @@ export { KIT_BASE_PATH } from './lib/token/kit-base-path.token';
|
|
|
172
168
|
export { KitTranslateService } from './lib/services/kit-translate/kit-translate.service';
|
|
173
169
|
export { KitGridState, KIT_GRID_STATE_TOKEN } from './lib/widgets/kit-grid-management/store/kit-grid.state';
|
|
174
170
|
export { kitBuildGridColumn } from './lib/widgets/kit-grid-management/kit-grid-management.util';
|
|
171
|
+
export { KitGridColumn, KitGridColumns } from './lib/widgets/kit-grid-management/kit-grid-management.model';
|
|
175
172
|
export { KitGridDataState, KitGridColumnConfig } from './lib/widgets/kit-grid-management/store/kit-grid.model';
|
|
176
173
|
export { AddGridFilter, RemoveGridFilter, SetGridSkip, SetGridSort, SetGridColumns, UpdateGridFilter, } from './lib/widgets/kit-grid-management/store/kit-grid.action';
|
|
177
174
|
export { KitGridViewsComponent } from './lib/widgets/kit-grid-management/kit-grid-views/kit-grid-views.component';
|
|
@@ -183,3 +180,8 @@ export { KitFilterItem, KitFilterType, KitFilterValue, KitFilterCheckboxConfig,
|
|
|
183
180
|
export { kitBuildCheckboxFilterItems, kitBuildOdataFilter, kitBuildFilters, } from './lib/widgets/kit-grid-management/kit-grid-filters/kit-grid-filters.util';
|
|
184
181
|
export { kitNoValueRequiredFilterOperators, } from './lib/widgets/kit-grid-management/kit-grid-filters/kit-filter-text/kit-filter-text.const';
|
|
185
182
|
export { KitFilterCheckboxItem } from './lib/widgets/kit-grid-management/kit-grid-filters/kit-filter-checkbox/kit-filter-checkbox.model';
|
|
183
|
+
export { KitGridExportComponent } from './lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.component';
|
|
184
|
+
export { KitKendoDrawPdf } from './lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.model';
|
|
185
|
+
export { KitGridCellComponent } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.component';
|
|
186
|
+
export { KitGridCellService } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.service';
|
|
187
|
+
export { KIT_DATE_FORMAT, KIT_DATETIME_FORMAT_LONG } from './lib/const/date-time.const';
|