@acorex/data-grid 16.19.59 → 16.20.1

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/index.d.ts CHANGED
@@ -1,19 +1,543 @@
1
- export * from './lib/data-grid/columns/check-column.component';
2
- export * from './lib/data-grid/columns/column-groups.component';
3
- export * from './lib/data-grid/columns/column.component';
4
- export * from './lib/data-grid/columns/command-column.component';
5
- export * from './lib/data-grid/columns/date-column.component';
6
- export * from './lib/data-grid/columns/selection-column.component';
7
- export * from './lib/data-grid/columns/text-column.component';
8
- export * from './lib/data-grid/columns/row-number-column.component';
9
- export * from './lib/data-grid/datagrid.component';
10
- export * from './lib/data-grid/datagrid.token';
11
- export * from './lib/data-grid/datagrid.events';
12
- export * from './lib/data-grid/datagrid.module';
13
- export * from './lib/data-grid/filters/filter.component';
14
- export * from './lib/data-grid/templates/cell-template.component';
15
- export * from './lib/data-grid/templates/detail-template.component';
16
- export * from './lib/data-grid/templates/row-template.component';
17
- export * from './lib/data-lov/data-lov-popup/data-lov-popup.component';
18
- export * from './lib/data-lov/data-lov.component';
19
- export * from './lib/data-lov/data-lov.module';
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, QueryList, EventEmitter, ElementRef, ChangeDetectorRef } from '@angular/core';
3
+ import * as i17 from 'ag-grid-angular';
4
+ import { ICellRendererAngularComp, IFilterAngularComp } from 'ag-grid-angular';
5
+ import { ICellRendererParams, IDoesFilterPassParams, IAfterGuiAttachedParams, GridOptions, GetMainMenuItemsParams, CellClickedEvent, RowClickedEvent, GridSizeChangedEvent, FirstDataRenderedEvent, FilterChangedEvent } from 'ag-grid-community';
6
+ import * as i14 from '@acorex/core';
7
+ import { AXMenuItem, AXCalendarType, AXButtonItem } from '@acorex/core';
8
+ import * as i16 from '@acorex/components';
9
+ import { AXDatePickerComponent, AXValueEvent, AXToolbarSearchComponent, AXToolbarComponent, AXDataSourceComponent, AXDataEvent, AXBasePopupPageComponent, AXMenuItemClickEvent, AXValidatableComponent, AXBaseSizableComponent, AXBaseInputComponent, AXValidation, AXPopupService, AXSelectBoxComponent, AXElementSize } from '@acorex/components';
10
+ import * as i13 from '@angular/common';
11
+ import * as i15 from '@angular/forms';
12
+
13
+ interface AXGridRowEvent {
14
+ data: any;
15
+ rowIndex: number;
16
+ rowLevel: number;
17
+ }
18
+ interface AXGridRowCommandEvent extends AXGridRowEvent {
19
+ command: string;
20
+ htmlEvent: UIEvent;
21
+ }
22
+ interface AXGridCellEvent extends AXGridRowEvent {
23
+ column: any;
24
+ value: any;
25
+ }
26
+ interface AXGridRowParams extends AXGridRowEvent {
27
+ }
28
+ interface AXGridCellParams extends AXGridCellEvent {
29
+ }
30
+ interface AXGridRowSelectionEvent {
31
+ items: AXGridRowEvent[];
32
+ }
33
+
34
+ declare class AXDataGridCellTemplateComponent {
35
+ templateRef: TemplateRef<any>;
36
+ renderer: any;
37
+ params: any;
38
+ constructor();
39
+ ngOnInit(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridCellTemplateComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridCellTemplateComponent, "ax-cell-template", never, {}, {}, ["templateRef"], ["*"], false, never>;
42
+ }
43
+ declare class AXDataGridCellTemplateRenderer implements ICellRendererAngularComp {
44
+ rowData: any;
45
+ templateRef: TemplateRef<any>;
46
+ constructor();
47
+ agInit(params: ICellRendererParams): void;
48
+ refresh(params: ICellRendererParams): boolean;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridCellTemplateRenderer, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridCellTemplateRenderer, "ng-component", never, {}, {}, never, never, false, never>;
51
+ }
52
+
53
+ interface AXDataGridFilterPharams {
54
+ values: any[];
55
+ suppressMiniFilter: boolean;
56
+ suppressSelectAll: boolean;
57
+ applyMiniFilterWhileTyping: boolean;
58
+ debounceMs: number;
59
+ }
60
+ type AXFilterType = boolean | 'columnFilter' | 'textColumnFilter' | 'numberColumnFilter' | 'dateColumnFilter';
61
+
62
+ declare abstract class AXGridDataColumn {
63
+ cellTemplate: AXDataGridCellTemplateComponent;
64
+ width: number;
65
+ maxWidth: number;
66
+ minWidth: number;
67
+ pinned: 'start' | 'end' | null;
68
+ allowSorting: boolean;
69
+ allowFiltering: boolean;
70
+ cellClass: (params: AXGridCellParams) => (string | string[]) | (string | string[]);
71
+ sort: 'asc' | 'desc' | null;
72
+ field: string;
73
+ caption: string;
74
+ cellRendererParams: any;
75
+ checkbox: boolean;
76
+ groupIndex: number;
77
+ treeIndex: number;
78
+ enableRowGroup: boolean;
79
+ hide: boolean;
80
+ floatingFilter: boolean;
81
+ disableMenu: boolean;
82
+ resizable: boolean;
83
+ menuColumnDisable: boolean;
84
+ menuItemDisable: boolean;
85
+ columnGroupShow: 'open' | 'closed';
86
+ wrapText: boolean;
87
+ cellStyle: Object;
88
+ filter: i0.InputSignal<AXFilterType>;
89
+ filterParams: i0.InputSignal<AXDataGridFilterPharams>;
90
+ constructor();
91
+ render(): any;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridDataColumn, never>;
93
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AXGridDataColumn, never, never, { "width": { "alias": "width"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "pinned": { "alias": "pinned"; "required": false; }; "allowSorting": { "alias": "allowSorting"; "required": false; }; "allowFiltering": { "alias": "allowFiltering"; "required": false; }; "cellClass": { "alias": "cellClass"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "field": { "alias": "field"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "cellRendererParams": { "alias": "cellRendererParams"; "required": false; }; "checkbox": { "alias": "checkbox"; "required": false; }; "groupIndex": { "alias": "groupIndex"; "required": false; }; "treeIndex": { "alias": "treeIndex"; "required": false; }; "enableRowGroup": { "alias": "enableRowGroup"; "required": false; }; "hide": { "alias": "hide"; "required": false; }; "floatingFilter": { "alias": "floatingFilter"; "required": false; }; "disableMenu": { "alias": "disableMenu"; "required": false; }; "resizable": { "alias": "resizable"; "required": false; }; "menuColumnDisable": { "alias": "menuColumnDisable"; "required": false; }; "menuItemDisable": { "alias": "menuItemDisable"; "required": false; }; "columnGroupShow": { "alias": "columnGroupShow"; "required": false; }; "wrapText": { "alias": "wrapText"; "required": false; }; "cellStyle": { "alias": "cellStyle"; "required": false; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterParams": { "alias": "filterParams"; "required": false; "isSignal": true; }; }, {}, ["cellTemplate"], never, true, never>;
94
+ }
95
+
96
+ declare class AXGridCheckColumn extends AXGridDataColumn {
97
+ constructor();
98
+ render(): any;
99
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridCheckColumn, never>;
100
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXGridCheckColumn, "ax-check-column", never, {}, {}, never, never, false, never>;
101
+ }
102
+ declare class BooleanRenderer implements ICellRendererAngularComp {
103
+ value: boolean;
104
+ constructor();
105
+ agInit(params: ICellRendererParams): void;
106
+ refresh(params: ICellRendererParams): boolean;
107
+ static ɵfac: i0.ɵɵFactoryDeclaration<BooleanRenderer, never>;
108
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanRenderer, "ng-component", never, {}, {}, never, never, false, never>;
109
+ }
110
+ declare class BooleanFilterRenderer implements IFilterAngularComp {
111
+ value?: boolean;
112
+ private params;
113
+ private valueGetter;
114
+ input: any;
115
+ selectItem: {
116
+ value: number;
117
+ label: string;
118
+ }[];
119
+ agInit(params: any): void;
120
+ isFilterActive(): boolean;
121
+ doesFilterPass(params: IDoesFilterPassParams | any): boolean;
122
+ getModel(): any;
123
+ setModel(model: any): void;
124
+ ngAfterViewInit(params: IAfterGuiAttachedParams): void;
125
+ onChange(newValue: any): void;
126
+ static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFilterRenderer, never>;
127
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanFilterRenderer, "ng-component", never, {}, {}, never, never, false, never>;
128
+ }
129
+
130
+ declare class AXColumnGroupComponent extends AXGridDataColumn {
131
+ columns: QueryList<AXGridDataColumn>;
132
+ render(): any;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXColumnGroupComponent, never>;
134
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXColumnGroupComponent, "ax-column-group", never, {}, {}, ["columns"], ["*"], false, never>;
135
+ }
136
+
137
+ type AXGridRowCommandFunction = (row: any) => AXMenuItem[];
138
+ declare class AXGridCommandColumn extends AXGridDataColumn {
139
+ items: AXMenuItem[] | AXGridRowCommandFunction;
140
+ onItemClick: EventEmitter<AXGridRowCommandEvent>;
141
+ render(): any;
142
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridCommandColumn, never>;
143
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXGridCommandColumn, "ax-command-column", never, { "items": { "alias": "items"; "required": false; }; }, { "onItemClick": "onItemClick"; }, never, never, false, never>;
144
+ }
145
+ declare class CommandRenderer implements ICellRendererAngularComp {
146
+ items: AXMenuItem[] | AXGridRowCommandFunction | any;
147
+ node: any;
148
+ private clickCallback;
149
+ constructor();
150
+ agInit(params: ICellRendererParams): void;
151
+ refresh(params: ICellRendererParams): boolean;
152
+ private mapParams;
153
+ onClick(item: AXMenuItem, e: MouseEvent): void;
154
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommandRenderer, never>;
155
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommandRenderer, "ax-command-cell", never, {}, {}, never, never, false, never>;
156
+ }
157
+
158
+ declare class AXGridDateColumn extends AXGridDataColumn {
159
+ constructor();
160
+ format: string;
161
+ type: AXCalendarType;
162
+ render(): any;
163
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridDateColumn, never>;
164
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXGridDateColumn, "ax-date-column", never, { "format": { "alias": "format"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
165
+ }
166
+ declare class AXDatePickerFilterComponent {
167
+ datePicker: AXDatePickerComponent;
168
+ div: ElementRef;
169
+ selectableHoliday: boolean;
170
+ type: string;
171
+ date: Date;
172
+ params: any;
173
+ picker: any;
174
+ agInit(params: any): void;
175
+ ngAfterViewInit(): void;
176
+ ngOnDestroy(): void;
177
+ onDateChanged(selectedDates: any): void;
178
+ getDate(): Date;
179
+ setDate(date: Date): void;
180
+ setInputPlaceholder(placeholder: string): void;
181
+ onValueChanged(e: any): void;
182
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDatePickerFilterComponent, never>;
183
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDatePickerFilterComponent, "ax-data-picker-filter", never, {}, {}, never, never, false, never>;
184
+ }
185
+
186
+ declare class AXGridSelectionColumn extends AXGridDataColumn {
187
+ constructor();
188
+ condition: (params: any) => boolean;
189
+ headerCheckbox: boolean;
190
+ pinned: 'start' | 'end';
191
+ width: number;
192
+ rowSelectableConditionField: string;
193
+ render(): any;
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridSelectionColumn, never>;
195
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXGridSelectionColumn, "ax-selection-column", never, { "condition": { "alias": "condition"; "required": false; }; "headerCheckbox": { "alias": "headerCheckbox"; "required": false; }; "pinned": { "alias": "pinned"; "required": false; }; "width": { "alias": "width"; "required": false; }; "rowSelectableConditionField": { "alias": "rowSelectableConditionField"; "required": false; }; }, {}, never, never, false, never>;
196
+ }
197
+
198
+ declare class AXGridTextColumn extends AXGridDataColumn {
199
+ constructor();
200
+ render(): any;
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridTextColumn, never>;
202
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXGridTextColumn, "ax-text-column", never, {}, {}, never, never, false, never>;
203
+ }
204
+ declare class TextFilterRenderer implements IFilterAngularComp {
205
+ value?: string;
206
+ private params;
207
+ private valueGetter;
208
+ private input;
209
+ agInit(params: any): void;
210
+ isFilterActive(): boolean;
211
+ doesFilterPass(params: IDoesFilterPassParams | any): boolean;
212
+ getModel(): any;
213
+ setModel(model: any): void;
214
+ ngAfterViewInit(params: IAfterGuiAttachedParams): void;
215
+ onChange(newValue: any): void;
216
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextFilterRenderer, never>;
217
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextFilterRenderer, "ng-component", never, {}, {}, never, never, false, never>;
218
+ }
219
+
220
+ declare class AXGridRowNumberColumn extends AXGridDataColumn {
221
+ constructor();
222
+ condition: (params: any) => boolean;
223
+ render(): any;
224
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXGridRowNumberColumn, never>;
225
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXGridRowNumberColumn, "ax-row-number-column", never, { "condition": { "alias": "condition"; "required": false; }; }, {}, never, never, false, never>;
226
+ }
227
+
228
+ declare class AXDataGridDetailTemplateComponent {
229
+ templateRef: TemplateRef<any>;
230
+ renderer: typeof AXDataGridDetailTemplateRenderer;
231
+ height: number;
232
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridDetailTemplateComponent, never>;
233
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridDetailTemplateComponent, "ax-grid-detail-template", never, { "height": { "alias": "height"; "required": false; }; }, {}, ["templateRef"], ["*"], false, never>;
234
+ }
235
+ declare class AXDataGridDetailTemplateRenderer implements ICellRendererAngularComp {
236
+ templateRef: TemplateRef<any>;
237
+ data: any;
238
+ customData: any;
239
+ agInit(params: any): void;
240
+ refresh(): boolean;
241
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridDetailTemplateRenderer, never>;
242
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridDetailTemplateRenderer, "ng-component", never, {}, {}, never, never, false, never>;
243
+ }
244
+
245
+ declare class AXDataGridRowTemplateComponent {
246
+ templateRef: TemplateRef<any>;
247
+ renderer: any;
248
+ params: any;
249
+ constructor();
250
+ ngOnInit(): void;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridRowTemplateComponent, never>;
252
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridRowTemplateComponent, "ax-row-template", never, {}, {}, ["templateRef"], ["*"], false, never>;
253
+ }
254
+ declare class AXDataGridRowTemplateRenderer implements ICellRendererAngularComp {
255
+ templateRef: TemplateRef<any>;
256
+ data: any;
257
+ refresh(params: any): boolean;
258
+ agInit(params: any): void;
259
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridRowTemplateRenderer, never>;
260
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridRowTemplateRenderer, "ng-component", never, {}, {}, never, never, false, never>;
261
+ }
262
+
263
+ declare class AXDataGridColumnsChangeEvent extends AXValueEvent<AXGridDataColumn[]> {
264
+ component: AXDataGridComponent;
265
+ }
266
+ declare class AXDataGridCellEvent extends AXDataEvent<AXGridCellEvent> {
267
+ component: AXDataGridComponent;
268
+ }
269
+ declare class AXDaagridRowClickEvent extends AXDataEvent<AXGridRowEvent> {
270
+ component: AXDataGridComponent;
271
+ }
272
+ declare class AXDataGridSelectionChangeEvent extends AXDataEvent<AXGridRowSelectionEvent> {
273
+ component: AXDataGridComponent;
274
+ }
275
+ declare class AXDataGridRowSelectionChangeEvent extends AXDataEvent<any> {
276
+ component: AXDataGridComponent;
277
+ selected: boolean;
278
+ }
279
+ declare class AXDataGridComponent {
280
+ private ref;
281
+ private cdr;
282
+ private saveSatate$;
283
+ private saveStateSubscription;
284
+ private stateService;
285
+ private settings;
286
+ load(): Promise<void>;
287
+ save(): Promise<void>;
288
+ private gridApi;
289
+ private dataSourceSuccessCallback;
290
+ localeText: any;
291
+ private isInitialLoad;
292
+ gridOptions: GridOptions;
293
+ columnDefs: any[];
294
+ rowModelType: string;
295
+ fullWidthCellRendererFramework: any;
296
+ fullWidthCellRendererParams: any;
297
+ frameworkComponents: any;
298
+ isFullWidthCell: Function;
299
+ internalHeight: string;
300
+ detailCellRenderer: any;
301
+ detailCellRendererParams: any;
302
+ detailRowHeight: number;
303
+ masterDetail: boolean;
304
+ treeData: boolean;
305
+ enabelSelect: boolean;
306
+ gridView: boolean;
307
+ oldSelectionNodes: any[];
308
+ autoGroupColumnDef: any;
309
+ currentPage: number;
310
+ id: string;
311
+ paginationPageSizeSelector: number[] | boolean;
312
+ paginationAutoPageSize: boolean;
313
+ paginationPageSize: number;
314
+ cacheBlockSize: number;
315
+ remoteOperation: boolean;
316
+ rowMultiSelectWithClick: boolean;
317
+ suppressRowClickSelection: boolean;
318
+ suppressCellSelection: boolean;
319
+ sizeColumnsToFit: boolean;
320
+ showCheckBox: boolean;
321
+ floatingFilter: boolean;
322
+ autoExpand: boolean;
323
+ rowSelectableConditionField: string;
324
+ hideDisabledCheckboxes: boolean;
325
+ selectionMode: 'single' | 'multiple';
326
+ pagination: boolean;
327
+ selectRow: any[];
328
+ rowGroupPanelShow: 'always' | 'never';
329
+ loadOnInit: boolean;
330
+ enableRangeSelection: boolean;
331
+ keyField: string;
332
+ hasChildField: string;
333
+ rowHeight: number;
334
+ groupHideOpenParents: boolean;
335
+ maxConcurrentDatasourceRequests: number;
336
+ blockLoadDebounceMillis: number;
337
+ showRefreshButton: boolean;
338
+ autoNavigatePage: boolean;
339
+ isRowMasterField: string;
340
+ onFilterChanged: i0.OutputEmitterRef<any>;
341
+ rowClass?: (params: AXGridRowParams) => (string | string[]) | (string | string[]);
342
+ rtl: boolean;
343
+ private _searchText;
344
+ get searchText(): string;
345
+ set searchText(v: string);
346
+ private _filter;
347
+ get filter(): any[];
348
+ set filter(v: any[]);
349
+ rowSelection: {
350
+ mode: string;
351
+ groupSelects: string;
352
+ enableSelectionWithoutKeys: boolean;
353
+ enableClickSelection: boolean;
354
+ checkboxes: boolean;
355
+ headerCheckbox: boolean;
356
+ copySelectedRows: boolean;
357
+ hideDisabledCheckboxes: boolean;
358
+ isRowSelectable: (rowData: any) => any;
359
+ };
360
+ private _inlineColumns;
361
+ columnsChange: EventEmitter<AXDataGridColumnsChangeEvent>;
362
+ private _columns;
363
+ get columns(): AXGridDataColumn[];
364
+ set columns(val: AXGridDataColumn[]);
365
+ defaultColDef: any;
366
+ searchInput: AXToolbarSearchComponent;
367
+ toolbar: AXToolbarComponent;
368
+ rowTemplate: AXDataGridRowTemplateComponent;
369
+ gridDetailTemplate: AXDataGridDetailTemplateComponent;
370
+ private _contentDataSource;
371
+ private _dataSource;
372
+ get dataSource(): AXDataSourceComponent;
373
+ set dataSource(v: AXDataSourceComponent);
374
+ cellClick: EventEmitter<AXDataGridCellEvent>;
375
+ cellDbClick: EventEmitter<AXDataGridCellEvent>;
376
+ cellFocuse: EventEmitter<AXDataGridCellEvent>;
377
+ rowClick: EventEmitter<AXDaagridRowClickEvent>;
378
+ rowDbClick: EventEmitter<AXDaagridRowClickEvent>;
379
+ selectionChanged: EventEmitter<AXDataGridSelectionChangeEvent>;
380
+ rowSelectionChange: EventEmitter<AXDataGridSelectionChangeEvent>;
381
+ onRowSelectionChanged: EventEmitter<AXDataGridRowSelectionChangeEvent>;
382
+ constructor(ref: ElementRef<HTMLDivElement>, cdr: ChangeDetectorRef);
383
+ private calcHeight;
384
+ private get intenalGridDataSource();
385
+ ngOnDestroy(): void;
386
+ isServerSideGroup: (e: any) => any;
387
+ getColumnDefs: () => any;
388
+ getCurrentPageNumber: () => {
389
+ current: any;
390
+ total: any;
391
+ };
392
+ paginationGoToPage(number: any): void;
393
+ getServerSideGroupKey: (e: any) => any;
394
+ internalGridReady(gridOptions: any): void;
395
+ ngAfterContentInit(): void;
396
+ ngOnInit(): void;
397
+ gridSelectRow(): void;
398
+ rebuildGrid(): void;
399
+ getMainMenuItems: (params: GetMainMenuItemsParams) => string[];
400
+ ngAfterViewInit(): void;
401
+ mapColumns(): void;
402
+ displayedColumnsChanged(e: any): void;
403
+ refresh(route?: any[]): void;
404
+ internalGridCellClicked(e: CellClickedEvent): void;
405
+ internalGridCellDoubleClicked(e: CellClickedEvent): void;
406
+ internalGridCellFocused(e: CellClickedEvent): void;
407
+ internalGridRowClicked(e: RowClickedEvent): void;
408
+ internalGridRowDoubleClicked(e: CellClickedEvent): void;
409
+ differenceOf2Arrays(array1: any, array2: any): any[];
410
+ rowSelectionChanged(e: any): void;
411
+ internalGridSelectionChanged(e: any): void;
412
+ private mapCellEvent;
413
+ private mapRowEvent;
414
+ deselectAll(): void;
415
+ deselectByKeyField(keyField: any): void;
416
+ internalGetRowClass: (p: any) => string | string[];
417
+ showLoading(value: boolean): void;
418
+ hideLoading(): void;
419
+ internalGridSizeChanged(e: GridSizeChangedEvent): void;
420
+ internalGridFirstDataRendered(e: FirstDataRenderedEvent): void;
421
+ handleColumnResized(e: any): void;
422
+ private performSizeColumnsToFit;
423
+ private headerHeightSetter;
424
+ private headerHeightGetter;
425
+ private makeRefreshBtn;
426
+ private handleNodeSelected;
427
+ protected handleFilterChanged(event: FilterChangedEvent): Promise<void>;
428
+ onPaginationChanged(e: any): void;
429
+ isRowMaster: (data: any) => any;
430
+ emitState(): void;
431
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridComponent, never>;
432
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridComponent, "ax-data-grid", never, { "id": { "alias": "id"; "required": false; }; "paginationPageSizeSelector": { "alias": "paginationPageSizeSelector"; "required": false; }; "paginationAutoPageSize": { "alias": "paginationAutoPageSize"; "required": false; }; "paginationPageSize": { "alias": "paginationPageSize"; "required": false; }; "remoteOperation": { "alias": "remoteOperation"; "required": false; }; "rowMultiSelectWithClick": { "alias": "rowMultiSelectWithClick"; "required": false; }; "suppressRowClickSelection": { "alias": "suppressRowClickSelection"; "required": false; }; "suppressCellSelection": { "alias": "suppressCellSelection"; "required": false; }; "sizeColumnsToFit": { "alias": "sizeColumnsToFit"; "required": false; }; "showCheckBox": { "alias": "showCheckBox"; "required": false; }; "floatingFilter": { "alias": "floatingFilter"; "required": false; }; "autoExpand": { "alias": "autoExpand"; "required": false; }; "rowSelectableConditionField": { "alias": "rowSelectableConditionField"; "required": false; }; "hideDisabledCheckboxes": { "alias": "hideDisabledCheckboxes"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "selectRow": { "alias": "selectRow"; "required": false; }; "rowGroupPanelShow": { "alias": "rowGroupPanelShow"; "required": false; }; "loadOnInit": { "alias": "loadOnInit"; "required": false; }; "enableRangeSelection": { "alias": "enableRangeSelection"; "required": false; }; "keyField": { "alias": "keyField"; "required": false; }; "hasChildField": { "alias": "hasChildField"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "groupHideOpenParents": { "alias": "groupHideOpenParents"; "required": false; }; "maxConcurrentDatasourceRequests": { "alias": "maxConcurrentDatasourceRequests"; "required": false; }; "blockLoadDebounceMillis": { "alias": "blockLoadDebounceMillis"; "required": false; }; "showRefreshButton": { "alias": "showRefreshButton"; "required": false; }; "autoNavigatePage": { "alias": "autoNavigatePage"; "required": false; }; "isRowMasterField": { "alias": "isRowMasterField"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "searchText": { "alias": "searchText"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "onFilterChanged": "onFilterChanged"; "columnsChange": "columnsChange"; "cellClick": "cellClick"; "cellDbClick": "cellDbClick"; "cellFocuse": "cellFocuse"; "rowClick": "rowClick"; "rowDbClick": "rowDbClick"; "selectionChanged": "selectionChanged"; "rowSelectionChange": "rowSelectionChange"; "onRowSelectionChanged": "onRowSelectionChanged"; }, ["searchInput", "toolbar", "rowTemplate", "gridDetailTemplate", "_contentDataSource", "_inlineColumns"], ["ax-toolbar"], false, never>;
433
+ }
434
+
435
+ declare abstract class AXDataGridStateService {
436
+ abstract save(gridId: string, settings: Record<string, unknown>): Promise<void>;
437
+ abstract load(gridId: string): Promise<Record<string, unknown>>;
438
+ }
439
+
440
+ declare class AXDataGridFilterComponent {
441
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridFilterComponent, never>;
442
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataGridFilterComponent, "ax-data-grid-filter", never, {}, {}, never, ["*"], false, never>;
443
+ }
444
+
445
+ declare class AXDataGridModule {
446
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataGridModule, never>;
447
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXDataGridModule, [typeof AXDataGridComponent, typeof AXGridTextColumn, typeof AXGridCheckColumn, typeof AXGridSelectionColumn, typeof AXGridDateColumn, typeof AXGridRowNumberColumn, typeof AXGridCommandColumn, typeof BooleanRenderer, typeof BooleanFilterRenderer, typeof TextFilterRenderer, typeof AXDataGridFilterComponent, typeof AXDataGridRowTemplateComponent, typeof AXDataGridDetailTemplateComponent, typeof AXDataGridRowTemplateRenderer, typeof AXDataGridDetailTemplateRenderer, typeof AXDataGridCellTemplateComponent, typeof AXDataGridCellTemplateRenderer, typeof AXDatePickerFilterComponent, typeof CommandRenderer, typeof AXColumnGroupComponent], [typeof i13.CommonModule, typeof i14.AXCoreModule, typeof i15.FormsModule, typeof i16.AXTextBoxModule, typeof i16.AXCheckBoxModule, typeof i16.AXSelectBoxModule, typeof i16.AXDataSourceModule, typeof i16.AXButtonModule, typeof i16.AXDatePickerModule, typeof i17.AgGridModule], [typeof AXColumnGroupComponent, typeof AXDataGridComponent, typeof AXDataGridFilterComponent, typeof AXDataGridRowTemplateComponent, typeof AXDataGridDetailTemplateComponent, typeof AXDataGridRowTemplateRenderer, typeof AXDataGridDetailTemplateRenderer, typeof AXDataGridCellTemplateComponent, typeof AXDataGridCellTemplateRenderer, typeof AXGridTextColumn, typeof AXGridRowNumberColumn, typeof AXGridCheckColumn, typeof AXGridDateColumn, typeof AXGridSelectionColumn, typeof AXGridCommandColumn, typeof BooleanRenderer, typeof BooleanFilterRenderer, typeof CommandRenderer]>;
448
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXDataGridModule>;
449
+ }
450
+
451
+ declare class AXDataLovPopupComponent extends AXBasePopupPageComponent {
452
+ private cdr;
453
+ private ref;
454
+ grid: AXDataGridComponent;
455
+ searchBox: AXToolbarSearchComponent;
456
+ columns: AXGridDataColumn[];
457
+ selectedItems: any[];
458
+ keyField: string;
459
+ allowNull: boolean;
460
+ hasChildField: string;
461
+ rtl: boolean;
462
+ selectedRows: any[];
463
+ pagination: boolean;
464
+ paginationAutoPageSize: boolean;
465
+ paginationPageSize: number;
466
+ maxConcurrentDatasourceRequests: number;
467
+ blockLoadDebounceMillis: number;
468
+ paginationPageSizeSelector: number[] | boolean;
469
+ suppressRowClickSelection: boolean;
470
+ remoteOperation: boolean;
471
+ headerCheckbox: boolean;
472
+ constructor(cdr: ChangeDetectorRef, ref: ElementRef);
473
+ dataSource: AXDataSourceComponent;
474
+ selectionMode: string;
475
+ ngOnInit(): void;
476
+ onDoneClick(): void;
477
+ rowDoubleClicked(e: any): void;
478
+ onCancelClick(): void;
479
+ rowSelectionChange(e: any): void;
480
+ ngAfterViewInit(): void;
481
+ getFooterButtons(): AXButtonItem[];
482
+ onFooterButtonClick(e: AXMenuItemClickEvent): void;
483
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXDataLovPopupComponent, never>;
484
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXDataLovPopupComponent, "ng-component", never, {}, {}, never, never, false, never>;
485
+ }
486
+
487
+ declare class AXLOVComponent extends AXValidatableComponent implements AXBaseSizableComponent, AXBaseInputComponent {
488
+ private popup;
489
+ private ref;
490
+ private _contentValidation;
491
+ private _validation;
492
+ get validation(): AXValidation;
493
+ set validation(v: AXValidation);
494
+ componentName: string;
495
+ constructor(popup: AXPopupService, ref: ElementRef);
496
+ selectBox: AXSelectBoxComponent;
497
+ dataSource: AXDataSourceComponent;
498
+ private columns;
499
+ rowTemplate: TemplateRef<any>;
500
+ textField: string;
501
+ allowSearch: boolean;
502
+ valueField: string;
503
+ hasChildField: string;
504
+ allowNull: boolean;
505
+ popupSize: 'sm' | 'md' | 'lg' | 'full';
506
+ pagination: boolean;
507
+ selectedItems: any[];
508
+ paginationAutoPageSize: boolean;
509
+ paginationPageSize: number;
510
+ maxConcurrentDatasourceRequests: number;
511
+ blockLoadDebounceMillis: number;
512
+ readonly: boolean;
513
+ disabled: boolean;
514
+ chipsWidth: string;
515
+ size: AXElementSize;
516
+ caption: string;
517
+ mode: 'single' | 'multiple';
518
+ placeholder: string;
519
+ onSelectionChange: EventEmitter<AXDataEvent<any>>;
520
+ rtl: boolean;
521
+ multiLine: boolean;
522
+ paginationPageSizeSelector: number[] | boolean;
523
+ remoteOperation: boolean;
524
+ headerCheckbox: boolean;
525
+ focus(): void;
526
+ refresh(): void;
527
+ handleButtonClick(): void;
528
+ ngOnInit(): void;
529
+ ngAfterContentInit(): void;
530
+ handleSelectChange(e: any): void;
531
+ open(): Promise<any>;
532
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXLOVComponent, never>;
533
+ static ɵcmp: i0.ɵɵComponentDeclaration<AXLOVComponent, "ax-lov", never, { "validation": { "alias": "validation"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "allowSearch": { "alias": "allowSearch"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "hasChildField": { "alias": "hasChildField"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "popupSize": { "alias": "popupSize"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "paginationAutoPageSize": { "alias": "paginationAutoPageSize"; "required": false; }; "paginationPageSize": { "alias": "paginationPageSize"; "required": false; }; "maxConcurrentDatasourceRequests": { "alias": "maxConcurrentDatasourceRequests"; "required": false; }; "blockLoadDebounceMillis": { "alias": "blockLoadDebounceMillis"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "chipsWidth": { "alias": "chipsWidth"; "required": false; }; "size": { "alias": "size"; "required": false; }; "caption": { "alias": "caption"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "multiLine": { "alias": "multiLine"; "required": false; }; "paginationPageSizeSelector": { "alias": "paginationPageSizeSelector"; "required": false; }; "remoteOperation": { "alias": "remoteOperation"; "required": false; }; "headerCheckbox": { "alias": "headerCheckbox"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, ["_contentValidation", "dataSource", "rowTemplate", "columns"], ["[start]", "[end]"], false, never>;
534
+ }
535
+
536
+ declare class AXLOVModule {
537
+ static ɵfac: i0.ɵɵFactoryDeclaration<AXLOVModule, never>;
538
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXLOVModule, [typeof AXLOVComponent, typeof AXDataLovPopupComponent], [typeof i13.CommonModule, typeof i15.FormsModule, typeof AXDataGridModule, typeof i16.AXDataSourceModule, typeof i16.AXButtonModule, typeof i16.AXToolbarModule, typeof i16.AXSelectBoxModule, typeof i16.AXSearchBoxModule], [typeof AXLOVComponent, typeof AXDataLovPopupComponent]>;
539
+ static ɵinj: i0.ɵɵInjectorDeclaration<AXLOVModule>;
540
+ }
541
+
542
+ export { AXColumnGroupComponent, AXDaagridRowClickEvent, AXDataGridCellEvent, AXDataGridCellTemplateComponent, AXDataGridCellTemplateRenderer, AXDataGridColumnsChangeEvent, AXDataGridComponent, AXDataGridDetailTemplateComponent, AXDataGridDetailTemplateRenderer, AXDataGridFilterComponent, AXDataGridModule, AXDataGridRowSelectionChangeEvent, AXDataGridRowTemplateComponent, AXDataGridRowTemplateRenderer, AXDataGridSelectionChangeEvent, AXDataGridStateService, AXDataLovPopupComponent, AXDatePickerFilterComponent, AXGridCheckColumn, AXGridCommandColumn, AXGridDataColumn, AXGridDateColumn, AXGridRowNumberColumn, AXGridSelectionColumn, AXGridTextColumn, AXLOVComponent, AXLOVModule, BooleanFilterRenderer, BooleanRenderer, CommandRenderer, TextFilterRenderer };
543
+ export type { AXGridCellEvent, AXGridCellParams, AXGridRowCommandEvent, AXGridRowCommandFunction, AXGridRowEvent, AXGridRowParams, AXGridRowSelectionEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/data-grid",
3
- "version": "16.19.59",
3
+ "version": "16.20.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.0.5",
6
6
  "@angular/core": "^19.0.5",
@@ -1,37 +0,0 @@
1
- import { AXGridDataColumn } from './column.component';
2
- import { ICellRendererAngularComp, IFilterAngularComp } from 'ag-grid-angular';
3
- import { ICellRendererParams, IDoesFilterPassParams, IAfterGuiAttachedParams } from 'ag-grid-community';
4
- import * as i0 from "@angular/core";
5
- export declare class AXGridCheckColumn extends AXGridDataColumn {
6
- constructor();
7
- render(): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<AXGridCheckColumn, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<AXGridCheckColumn, "ax-check-column", never, {}, {}, never, never, false, never>;
10
- }
11
- export declare class BooleanRenderer implements ICellRendererAngularComp {
12
- value: boolean;
13
- constructor();
14
- agInit(params: ICellRendererParams): void;
15
- refresh(params: ICellRendererParams): boolean;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanRenderer, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanRenderer, "ng-component", never, {}, {}, never, never, false, never>;
18
- }
19
- export declare class BooleanFilterRenderer implements IFilterAngularComp {
20
- value?: boolean;
21
- private params;
22
- private valueGetter;
23
- input: any;
24
- selectItem: {
25
- value: number;
26
- label: string;
27
- }[];
28
- agInit(params: any): void;
29
- isFilterActive(): boolean;
30
- doesFilterPass(params: IDoesFilterPassParams | any): boolean;
31
- getModel(): any;
32
- setModel(model: any): void;
33
- ngAfterViewInit(params: IAfterGuiAttachedParams): void;
34
- onChange(newValue: any): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<BooleanFilterRenderer, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<BooleanFilterRenderer, "ng-component", never, {}, {}, never, never, false, never>;
37
- }
@@ -1,9 +0,0 @@
1
- import { QueryList } from '@angular/core';
2
- import { AXGridDataColumn } from './column.component';
3
- import * as i0 from "@angular/core";
4
- export declare class AXColumnGroupComponent extends AXGridDataColumn {
5
- columns: QueryList<AXGridDataColumn>;
6
- render(): any;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AXColumnGroupComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<AXColumnGroupComponent, "ax-column-group", never, {}, {}, ["columns"], ["*"], false, never>;
9
- }