@cauca-911/datagrid 22.1.6 → 22.2.2
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/package.json
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cauca-911/datagrid",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.2.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=22.1.0",
|
|
6
6
|
"@angular/core": ">=22.1.0",
|
|
7
7
|
"@angular/material": ">=22.1.0",
|
|
8
8
|
"@cauca-911/material": ">=22.0.0",
|
|
9
|
-
"odata-data-source": ">=16.4.0"
|
|
9
|
+
"odata-data-source": ">=16.4.0",
|
|
10
|
+
"exceljs": ">=4.4.0",
|
|
11
|
+
"jspdf": ">=4.2.0",
|
|
12
|
+
"jspdf-autotable": ">=5.0.0"
|
|
13
|
+
},
|
|
14
|
+
"peerDependenciesMeta": {
|
|
15
|
+
"exceljs": {
|
|
16
|
+
"optional": true
|
|
17
|
+
},
|
|
18
|
+
"jspdf": {
|
|
19
|
+
"optional": true
|
|
20
|
+
},
|
|
21
|
+
"jspdf-autotable": {
|
|
22
|
+
"optional": true
|
|
23
|
+
}
|
|
10
24
|
},
|
|
11
25
|
"dependencies": {
|
|
12
26
|
"tslib": ">=2.6.2"
|
|
@@ -24,6 +24,7 @@ declare class DataGridRowDropEvent {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
type ExportCell = string | number | boolean | Date | null;
|
|
27
28
|
declare abstract class BaseGridColumnComponent implements OnDestroy, OnInit {
|
|
28
29
|
table: MatTable<unknown>;
|
|
29
30
|
readonly prop: _angular_core.InputSignal<string>;
|
|
@@ -32,6 +33,7 @@ declare abstract class BaseGridColumnComponent implements OnDestroy, OnInit {
|
|
|
32
33
|
readonly isInColumnChooser: _angular_core.InputSignal<boolean>;
|
|
33
34
|
readonly width: _angular_core.InputSignal<string>;
|
|
34
35
|
readonly showToolTip: _angular_core.InputSignal<boolean>;
|
|
36
|
+
readonly exportable: _angular_core.InputSignal<boolean>;
|
|
35
37
|
ariaHidden: true;
|
|
36
38
|
classes: 'column-template cdk-visually-hidden';
|
|
37
39
|
columnDef: MatColumnDef;
|
|
@@ -43,10 +45,14 @@ declare abstract class BaseGridColumnComponent implements OnDestroy, OnInit {
|
|
|
43
45
|
ngOnInit(): void;
|
|
44
46
|
ngOnDestroy(): void;
|
|
45
47
|
capitalize(value: string): string;
|
|
48
|
+
getExportValue(row: Record<string, unknown>): ExportCell;
|
|
49
|
+
getExportHeader(): string;
|
|
46
50
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseGridColumnComponent, [{ optional: true; }]>;
|
|
47
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseGridColumnComponent, "ng-component", never, { "prop": { "alias": "prop"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isInColumnChooser": { "alias": "isInColumnChooser"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "showToolTip": { "alias": "showToolTip"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
51
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseGridColumnComponent, "ng-component", never, { "prop": { "alias": "prop"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "isInColumnChooser": { "alias": "isInColumnChooser"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "showToolTip": { "alias": "showToolTip"; "required": false; "isSignal": true; }; "exportable": { "alias": "exportable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
type GridExportFormat = 'excel' | 'pdf';
|
|
55
|
+
|
|
50
56
|
declare class DataGridHeaderComponent implements OnInit, OnDestroy {
|
|
51
57
|
filterControl: FormControl<string>;
|
|
52
58
|
/** Written from the debounced valueChanges subscription and by OdataGridComponent when it
|
|
@@ -55,12 +61,14 @@ declare class DataGridHeaderComponent implements OnInit, OnDestroy {
|
|
|
55
61
|
readonly showClearButton: _angular_core.WritableSignal<boolean>;
|
|
56
62
|
readonly showAddButton: _angular_core.InputSignal<boolean>;
|
|
57
63
|
readonly showRefreshButton: _angular_core.InputSignal<boolean>;
|
|
64
|
+
readonly showExportButton: _angular_core.InputSignal<boolean>;
|
|
58
65
|
readonly addButtonLabel: _angular_core.InputSignal<string>;
|
|
59
66
|
readonly searchPlaceholder: _angular_core.InputSignal<string>;
|
|
60
67
|
readonly disableAddButton: _angular_core.InputSignal<boolean>;
|
|
61
68
|
readonly filterChange: _angular_core.OutputEmitterRef<string>;
|
|
62
69
|
readonly addButtonClick: _angular_core.OutputEmitterRef<void>;
|
|
63
70
|
readonly refreshRequest: _angular_core.OutputEmitterRef<void>;
|
|
71
|
+
readonly exportRequest: _angular_core.OutputEmitterRef<GridExportFormat>;
|
|
64
72
|
protected _onDestroy: Subject<void>;
|
|
65
73
|
ngOnInit(): void;
|
|
66
74
|
ngOnDestroy(): void;
|
|
@@ -68,7 +76,7 @@ declare class DataGridHeaderComponent implements OnInit, OnDestroy {
|
|
|
68
76
|
clearSearchValue(): void;
|
|
69
77
|
onAddButtonClick(): void;
|
|
70
78
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridHeaderComponent, never>;
|
|
71
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGridHeaderComponent, "cauca-data-grid-header", never, { "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; "isSignal": true; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "disableAddButton": { "alias": "disableAddButton"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; "addButtonClick": "addButtonClick"; "refreshRequest": "refreshRequest"; }, never, ["[filterRow]"], true, never>;
|
|
79
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGridHeaderComponent, "cauca-data-grid-header", never, { "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; "isSignal": true; }; "showExportButton": { "alias": "showExportButton"; "required": false; "isSignal": true; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "disableAddButton": { "alias": "disableAddButton"; "required": false; "isSignal": true; }; }, { "filterChange": "filterChange"; "addButtonClick": "addButtonClick"; "refreshRequest": "refreshRequest"; "exportRequest": "exportRequest"; }, never, ["[filterRow]"], true, never>;
|
|
72
80
|
}
|
|
73
81
|
|
|
74
82
|
declare enum Density {
|
|
@@ -109,6 +117,9 @@ declare abstract class BaseDataGridComponent implements AfterContentInit {
|
|
|
109
117
|
readonly showPaginator: _angular_core.InputSignal<boolean>;
|
|
110
118
|
readonly hidePageSize: _angular_core.InputSignal<boolean>;
|
|
111
119
|
readonly showExpandButton: _angular_core.InputSignal<boolean>;
|
|
120
|
+
readonly allowExport: _angular_core.InputSignal<boolean>;
|
|
121
|
+
readonly exportFileName: _angular_core.InputSignal<string>;
|
|
122
|
+
readonly exportRows: _angular_core.InputSignal<() => Promise<unknown[]>>;
|
|
112
123
|
readonly addButtonClick: _angular_core.OutputEmitterRef<void>;
|
|
113
124
|
expandedElement: _angular_core.WritableSignal<any>;
|
|
114
125
|
header: DataGridHeaderComponent;
|
|
@@ -129,6 +140,7 @@ declare abstract class BaseDataGridComponent implements AfterContentInit {
|
|
|
129
140
|
readonly allDisplayedColumns: _angular_core.WritableSignal<string[]>;
|
|
130
141
|
preference: Preference;
|
|
131
142
|
protected sort: MatSort;
|
|
143
|
+
private readonly exportService;
|
|
132
144
|
get density(): typeof Density;
|
|
133
145
|
constructor(translateService: TranslateService, preferenceService: BasePreferenceService);
|
|
134
146
|
ngAfterContentInit(): void;
|
|
@@ -137,9 +149,12 @@ declare abstract class BaseDataGridComponent implements AfterContentInit {
|
|
|
137
149
|
renderRows(): void;
|
|
138
150
|
onDensityChanged(density: Density): void;
|
|
139
151
|
abstract getData(): unknown[];
|
|
152
|
+
/** The rows to export when the caller supplies no `exportRows` provider; may be fetched. */
|
|
153
|
+
protected abstract getExportSourceRows(): unknown[] | Promise<unknown[]>;
|
|
140
154
|
protected abstract setUpFilterPredicate(): void;
|
|
141
155
|
protected abstract setUpSort(sort: MatSort): void;
|
|
142
156
|
protected abstract forceReloadFilter(): void;
|
|
157
|
+
protected onExportRequest(format: GridExportFormat): Promise<void>;
|
|
143
158
|
/** The set of columns to render, before the user's own column selection is applied. */
|
|
144
159
|
protected computeDisplayedColumns(): string[];
|
|
145
160
|
protected setUpPaginator(_paginator: MatPaginator, _showPaginator: boolean): void;
|
|
@@ -147,7 +162,7 @@ declare abstract class BaseDataGridComponent implements AfterContentInit {
|
|
|
147
162
|
protected applyColumns(): void;
|
|
148
163
|
private removeMandatoryColumns;
|
|
149
164
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BaseDataGridComponent, never>;
|
|
150
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseDataGridComponent, "ng-component", never, { "resourceName": { "alias": "resourceName"; "required": true; "isSignal": true; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; "disableAddButton": { "alias": "disableAddButton"; "required": false; "isSignal": true; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "searchableColumns": { "alias": "searchableColumns"; "required": false; "isSignal": true; }; "showTableOptions": { "alias": "showTableOptions"; "required": false; "isSignal": true; }; "showColumnViewer": { "alias": "showColumnViewer"; "required": false; "isSignal": true; }; "showPaginator": { "alias": "showPaginator"; "required": false; "isSignal": true; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; "isSignal": true; }; "showExpandButton": { "alias": "showExpandButton"; "required": false; "isSignal": true; }; }, { "addButtonClick": "addButtonClick"; }, ["headerRowDef", "footerRowDef", "noDataRow", "regularColumns", "columnDefs", "rowDefs"], never, true, never>;
|
|
165
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseDataGridComponent, "ng-component", never, { "resourceName": { "alias": "resourceName"; "required": true; "isSignal": true; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; "isSignal": true; }; "showAddButton": { "alias": "showAddButton"; "required": false; "isSignal": true; }; "disableAddButton": { "alias": "disableAddButton"; "required": false; "isSignal": true; }; "addButtonLabel": { "alias": "addButtonLabel"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "searchableColumns": { "alias": "searchableColumns"; "required": false; "isSignal": true; }; "showTableOptions": { "alias": "showTableOptions"; "required": false; "isSignal": true; }; "showColumnViewer": { "alias": "showColumnViewer"; "required": false; "isSignal": true; }; "showPaginator": { "alias": "showPaginator"; "required": false; "isSignal": true; }; "hidePageSize": { "alias": "hidePageSize"; "required": false; "isSignal": true; }; "showExpandButton": { "alias": "showExpandButton"; "required": false; "isSignal": true; }; "allowExport": { "alias": "allowExport"; "required": false; "isSignal": true; }; "exportFileName": { "alias": "exportFileName"; "required": false; "isSignal": true; }; "exportRows": { "alias": "exportRows"; "required": false; "isSignal": true; }; }, { "addButtonClick": "addButtonClick"; }, ["headerRowDef", "footerRowDef", "noDataRow", "regularColumns", "columnDefs", "rowDefs"], never, true, never>;
|
|
151
166
|
}
|
|
152
167
|
|
|
153
168
|
declare class DataGridComponent extends BaseDataGridComponent implements AfterContentInit, AfterViewInit {
|
|
@@ -175,6 +190,7 @@ declare class DataGridComponent extends BaseDataGridComponent implements AfterCo
|
|
|
175
190
|
getFilteredData(): unknown[];
|
|
176
191
|
refreshDisplayedColumns(columns: string[]): void;
|
|
177
192
|
rowDropped(event: CdkDragDrop<unknown>): void;
|
|
193
|
+
protected getExportSourceRows(): unknown[];
|
|
178
194
|
protected setUpPaginator(paginator: MatPaginator, showPaginator: boolean): void;
|
|
179
195
|
protected computeDisplayedColumns(): string[];
|
|
180
196
|
protected onColumnsChanged(columns: string[]): void;
|
|
@@ -224,11 +240,14 @@ declare class OdataListingService<T = any> {
|
|
|
224
240
|
get data(): T[] | null;
|
|
225
241
|
constructor(httpClient: HttpClient);
|
|
226
242
|
initialize({ baseUrl, resourceName, paginator, sort, initialSort, filters }: Props): ODataDataSource;
|
|
243
|
+
fetchAllForExport(maxRows: number): Observable<T[]>;
|
|
227
244
|
updateFilters(filters: ODataFilter[]): void;
|
|
228
245
|
forceReloadFilter(): void;
|
|
229
246
|
isInitialized(): boolean;
|
|
230
247
|
refresh(): void;
|
|
231
248
|
destroy(): void;
|
|
249
|
+
/** Mirrors how ODataDataSource reads the active sort, single or multi. */
|
|
250
|
+
private sortedBy;
|
|
232
251
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OdataListingService<any>, never>;
|
|
233
252
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<OdataListingService<any>>;
|
|
234
253
|
}
|
|
@@ -246,6 +265,7 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnDest
|
|
|
246
265
|
readonly selectedRowId: _angular_core.InputSignal<any>;
|
|
247
266
|
readonly idField: _angular_core.InputSignal<string>;
|
|
248
267
|
readonly showRefreshButton: _angular_core.InputSignal<boolean>;
|
|
268
|
+
readonly maxExportRows: _angular_core.InputSignal<number>;
|
|
249
269
|
readonly itemClick: EventEmitter<any>;
|
|
250
270
|
readonly refreshRequested: _angular_core.OutputEmitterRef<void>;
|
|
251
271
|
rowDetailTemplate: TemplateRef<any>;
|
|
@@ -267,6 +287,7 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnDest
|
|
|
267
287
|
refreshFilter(): void;
|
|
268
288
|
setUpFilterPredicate(): void;
|
|
269
289
|
setUpSort(sort: MatSort): void;
|
|
290
|
+
protected getExportSourceRows(): Promise<unknown[]>;
|
|
270
291
|
protected forceReloadFilter(): void;
|
|
271
292
|
protected computeDisplayedColumns(): string[];
|
|
272
293
|
protected onColumnsChanged(columns: string[]): void;
|
|
@@ -283,7 +304,7 @@ declare class OdataGridComponent extends BaseDataGridComponent implements OnDest
|
|
|
283
304
|
private applyUrlStateToGrid;
|
|
284
305
|
private hasRestoredState;
|
|
285
306
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OdataGridComponent, never>;
|
|
286
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OdataGridComponent, "cauca-odata-grid", never, { "showTableHeader": { "alias": "showTableHeader"; "required": false; "isSignal": true; }; "persistState": { "alias": "persistState"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "baseSort": { "alias": "baseSort"; "required": false; "isSignal": true; }; "filterPredicate": { "alias": "filterPredicate"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "selectedRowId": { "alias": "selectedRowId"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "refreshRequested": "refreshRequested"; }, ["rowDetailTemplate"], ["[filterRow]", "[customHeader]", "[customFilter]", "*"], true, never>;
|
|
307
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OdataGridComponent, "cauca-odata-grid", never, { "showTableHeader": { "alias": "showTableHeader"; "required": false; "isSignal": true; }; "persistState": { "alias": "persistState"; "required": false; "isSignal": true; }; "stateKey": { "alias": "stateKey"; "required": false; "isSignal": true; }; "baseSort": { "alias": "baseSort"; "required": false; "isSignal": true; }; "filterPredicate": { "alias": "filterPredicate"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "selectedRowId": { "alias": "selectedRowId"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; "isSignal": true; }; "maxExportRows": { "alias": "maxExportRows"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; "refreshRequested": "refreshRequested"; }, ["rowDetailTemplate"], ["[filterRow]", "[customHeader]", "[customFilter]", "*"], true, never>;
|
|
287
308
|
}
|
|
288
309
|
|
|
289
310
|
interface GridUrlState {
|
|
@@ -330,6 +351,23 @@ declare class GridStateRestorationService {
|
|
|
330
351
|
*/
|
|
331
352
|
declare function provideGridStateRestoration(): EnvironmentProviders;
|
|
332
353
|
|
|
354
|
+
interface ExportMatrix {
|
|
355
|
+
headers: string[];
|
|
356
|
+
rows: ExportCell[][];
|
|
357
|
+
}
|
|
358
|
+
declare const GRID_OWNED_COLUMNS: readonly string[];
|
|
359
|
+
declare function buildExportMatrix(columnOrder: readonly string[], columns: readonly BaseGridColumnComponent[], rows: readonly Record<string, unknown>[]): ExportMatrix;
|
|
360
|
+
|
|
361
|
+
declare class GridExportService {
|
|
362
|
+
private readonly locale;
|
|
363
|
+
toExcel(matrix: ExportMatrix, fileName: string): Promise<void>;
|
|
364
|
+
toPdf(matrix: ExportMatrix, fileName: string): Promise<void>;
|
|
365
|
+
private stringify;
|
|
366
|
+
private download;
|
|
367
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridExportService, never>;
|
|
368
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GridExportService>;
|
|
369
|
+
}
|
|
370
|
+
|
|
333
371
|
declare class ColorDataGridColumnComponent extends BaseGridColumnComponent implements OnDestroy, OnInit {
|
|
334
372
|
readonly odata: OdataGridComponent;
|
|
335
373
|
readonly grid: DataGridComponent;
|
|
@@ -428,6 +466,7 @@ declare class DateGridColumnComponent extends BaseGridColumnComponent implements
|
|
|
428
466
|
maxDate: _angular_core.InputSignal<Date>;
|
|
429
467
|
minDate: _angular_core.InputSignal<Date>;
|
|
430
468
|
constructor(odata: OdataGridComponent, grid: DataGridComponent);
|
|
469
|
+
getExportValue(row: Record<string, unknown>): ExportCell;
|
|
431
470
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateGridColumnComponent, [{ optional: true; }, { optional: true; }]>;
|
|
432
471
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateGridColumnComponent, "cauca-date-grid-column", never, { "showWithTime": { "alias": "showWithTime"; "required": false; "isSignal": true; }; "showSecond": { "alias": "showSecond"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
433
472
|
}
|
|
@@ -451,6 +490,7 @@ declare class SortableDataGridColumnComponent extends BaseGridColumnComponent im
|
|
|
451
490
|
isInitialized: boolean;
|
|
452
491
|
private readonly grid;
|
|
453
492
|
constructor(odata: OdataGridComponent, grid: DataGridComponent);
|
|
493
|
+
getExportValue(row: Record<string, unknown>): ExportCell;
|
|
454
494
|
calculateSummary(): string;
|
|
455
495
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SortableDataGridColumnComponent, [{ optional: true; }, { optional: true; }]>;
|
|
456
496
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SortableDataGridColumnComponent, "cauca-sortable-data-grid-column", never, { "summaryType": { "alias": "summaryType"; "required": false; "isSignal": true; }; "summaryLabel": { "alias": "summaryLabel"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "sortProp": { "alias": "sortProp"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -460,7 +500,9 @@ declare class TranslationGridColumnComponent extends BaseGridColumnComponent imp
|
|
|
460
500
|
readonly odata: OdataGridComponent;
|
|
461
501
|
readonly grid: DataGridComponent;
|
|
462
502
|
readonly prefix: _angular_core.InputSignal<string>;
|
|
503
|
+
private readonly translateService;
|
|
463
504
|
constructor(odata: OdataGridComponent, grid: DataGridComponent);
|
|
505
|
+
getExportValue(row: Record<string, unknown>): ExportCell;
|
|
464
506
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TranslationGridColumnComponent, [{ optional: true; }, { optional: true; }]>;
|
|
465
507
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TranslationGridColumnComponent, "cauca-translation-grid-column", never, { "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
466
508
|
}
|
|
@@ -469,6 +511,7 @@ declare class TimeSpanDataGridColumnComponent extends BaseGridColumnComponent {
|
|
|
469
511
|
readonly odata: OdataGridComponent;
|
|
470
512
|
readonly grid: DataGridComponent;
|
|
471
513
|
constructor(odata: OdataGridComponent, grid: DataGridComponent);
|
|
514
|
+
getExportValue(row: Record<string, unknown>): ExportCell;
|
|
472
515
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimeSpanDataGridColumnComponent, [{ optional: true; }, { optional: true; }]>;
|
|
473
516
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimeSpanDataGridColumnComponent, "cauca-time-span-data-grid-column", never, {}, {}, never, never, true, never>;
|
|
474
517
|
}
|
|
@@ -480,5 +523,5 @@ interface CaucaGridOptions {
|
|
|
480
523
|
declare const PREFERENCE_SERVICE_TOKEN: InjectionToken<BasePreferenceService>;
|
|
481
524
|
declare function provideCaucaGrid(options?: CaucaGridOptions): (Provider | EnvironmentProviders);
|
|
482
525
|
|
|
483
|
-
export { BaseGridColumnComponent, ColorDataGridColumnComponent, DataGridCheckColumnComponent, DataGridColumnComponent, DataGridCommandIconColumnComponent, DataGridCommandsColumnComponent, DataGridComponent, DataGridHeaderComponent, DataGridIconColumnComponent, DataGridMenuColumnComponent, DataGridRowDropEvent, DateGridColumnComponent, Density, GridConfiguration, GridStateRestorationService, OdataGridComponent, OdataListingService, PREFERENCE_SERVICE_TOKEN, Preference, SortableDataGridCheckColumnComponent, SortableDataGridColumnComponent, TimeSpanDataGridColumnComponent, TranslationGridColumnComponent, emptyQueryParams, fromQueryParams, paramsEqual, provideCaucaGrid, provideGridStateRestoration, toQueryParams };
|
|
484
|
-
export type { BasePreferenceService, CaucaGridOptions, GridUrlState, Paginator, Sort };
|
|
526
|
+
export { BaseGridColumnComponent, ColorDataGridColumnComponent, DataGridCheckColumnComponent, DataGridColumnComponent, DataGridCommandIconColumnComponent, DataGridCommandsColumnComponent, DataGridComponent, DataGridHeaderComponent, DataGridIconColumnComponent, DataGridMenuColumnComponent, DataGridRowDropEvent, DateGridColumnComponent, Density, GRID_OWNED_COLUMNS, GridConfiguration, GridExportService, GridStateRestorationService, OdataGridComponent, OdataListingService, PREFERENCE_SERVICE_TOKEN, Preference, SortableDataGridCheckColumnComponent, SortableDataGridColumnComponent, TimeSpanDataGridColumnComponent, TranslationGridColumnComponent, buildExportMatrix, emptyQueryParams, fromQueryParams, paramsEqual, provideCaucaGrid, provideGridStateRestoration, toQueryParams };
|
|
527
|
+
export type { BasePreferenceService, CaucaGridOptions, ExportCell, ExportMatrix, GridUrlState, Paginator, Sort };
|