ms-data-grid 0.0.0-watch

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 ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ms-data-grid" />
5
+ export * from './public-api';
@@ -0,0 +1,514 @@
1
+ import { OnInit, OnChanges, SimpleChanges, ElementRef, AfterViewInit, ChangeDetectorRef, EventEmitter, NgZone } from '@angular/core';
2
+ import { SplitColumnsService } from '../services/split-columns.service';
3
+ import { CommonService } from '../services/common.service';
4
+ import { SwapColumnsService } from '../services/swap-columns.service';
5
+ import { CdkDrag, CdkDragDrop, CdkDragEnter, CdkDragExit, CdkDragMove, CdkDragSortEvent } from '@angular/cdk/drag-drop';
6
+ import { CdkDropList } from '@angular/cdk/drag-drop';
7
+ import { CopyServiceService } from '../services/copy-service.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare const sortingAnimation: import("@angular/animations").AnimationTriggerMetadata;
10
+ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnInit {
11
+ private columnService;
12
+ private cdr;
13
+ commonSevice: CommonService;
14
+ private swapColumnService;
15
+ private elementRef;
16
+ private ngZone;
17
+ private copyService;
18
+ paginationConfig: any;
19
+ dataSet: any[];
20
+ columns: any[];
21
+ rowHeight: number;
22
+ headerRowHeight: number;
23
+ showVerticalBorder: boolean;
24
+ evenRowsBackgroundColor: string | undefined;
25
+ oddRowsBackgroundColor: string | undefined;
26
+ headerBackgroundColor: string;
27
+ checkboxesBackgroundColor: string;
28
+ showColumnsGrouping: boolean;
29
+ rowHoverColor: string | undefined;
30
+ leftPinnedBackgroundColor: string | undefined;
31
+ bodyBackgroundColor: string | undefined;
32
+ rightPinnedBackgroundColor: string | undefined;
33
+ sidemenuBackgroundColor: string | undefined;
34
+ bodyTextColor: string | undefined;
35
+ headerTextColor: string | undefined;
36
+ headerTextFontsSize: number | undefined;
37
+ bodyTextFontsSize: number | undefined;
38
+ headerFontWeight: number | undefined;
39
+ bodyFontWeight: number | undefined;
40
+ checkedRowBackgroundColor: string | undefined;
41
+ dropdownsBackgroundColor: string | undefined;
42
+ footerRowHeight: number;
43
+ topGroupedBadgesBackgroundColor: string | undefined;
44
+ showRowsGrouping: boolean | undefined;
45
+ showFilterRow: boolean | undefined;
46
+ fontFaimly: string | undefined;
47
+ showSideMenu: boolean;
48
+ footerPadding: number;
49
+ topFilterRowHeight: number;
50
+ rowShadingEnabled: boolean;
51
+ showSerialNumber: boolean;
52
+ singleSpaAssetsPath: string;
53
+ filtersConfig: any[];
54
+ loading: boolean;
55
+ verticalScrollbarWidth: 'auto' | 'thin';
56
+ horizintalScrollbarWidth: 'auto' | 'thin';
57
+ showCellDetailsBox: boolean;
58
+ dateFormat: string;
59
+ tableSearch: string;
60
+ actions: any[];
61
+ config: any;
62
+ showTaskbar: boolean;
63
+ tableName: boolean;
64
+ listingType: string | boolean;
65
+ checkboxState: {
66
+ reset: boolean;
67
+ };
68
+ taskbarActions: any[];
69
+ sortingConfig: {
70
+ field: string;
71
+ order_by: string;
72
+ } | null;
73
+ tableFilterViewId: any;
74
+ selectedTableLayout: any;
75
+ closeDropdown: {
76
+ preset: {
77
+ closed: boolean;
78
+ loading: boolean;
79
+ };
80
+ };
81
+ globalSearchText: string;
82
+ nestedTablerowFontsize: number;
83
+ nestedTableHeaderRowHeight: number;
84
+ nestedTablerowHeight: number;
85
+ gridType: string;
86
+ currencySymbol: string;
87
+ leftPinnedBoxshadow: string;
88
+ rightPinnedBoxshadow: string;
89
+ selectedRowsBackgroundColor: string;
90
+ nestedTableHeaderBAckgroundColor: string;
91
+ tableView: any[];
92
+ buttons: {
93
+ name: string;
94
+ is_showIcon: boolean;
95
+ icon: string;
96
+ }[];
97
+ keepMultipleExpandedDetails: boolean;
98
+ showTotalAmountRow: boolean;
99
+ enableGlobalSearch: boolean;
100
+ tableType: string;
101
+ widgets: any[];
102
+ enableCut: boolean;
103
+ tabs: string[];
104
+ resetAllFilters: {
105
+ resetAll: boolean;
106
+ };
107
+ columnThreedotsMunuConfig: {
108
+ showPinleft: boolean;
109
+ showPinright: boolean;
110
+ showAscending: boolean;
111
+ showDescending: boolean;
112
+ showFilter: boolean;
113
+ showRowsGrouping: boolean | undefined;
114
+ showAutosizeAllColumns: boolean;
115
+ showAutosizeThisColumn: boolean;
116
+ showChoseColumns: boolean;
117
+ showResetColumns: boolean;
118
+ };
119
+ changeLayout: EventEmitter<any>;
120
+ filterOptions: EventEmitter<any>;
121
+ genericEvent: EventEmitter<any>;
122
+ tablePresetConfig: EventEmitter<any>;
123
+ sortingOrderOptions: EventEmitter<any>;
124
+ createUpdateConfigListing: EventEmitter<any>;
125
+ activeTab: string | null;
126
+ groupedColumns: any[];
127
+ activeCol: any;
128
+ activeFilterCell: any;
129
+ showActionsDropDown: boolean;
130
+ sideMenuVisible: boolean;
131
+ pivotMode: boolean;
132
+ columnSearch: string;
133
+ expandAllAccordians: boolean;
134
+ currentOpenedSideMenue: 'cols' | 'filtrs' | null;
135
+ originalColumns: any[];
136
+ originalDataSet: any[];
137
+ activeTopButton: string | null;
138
+ filterColumnsList: any[];
139
+ groupBoxPadding: number;
140
+ presetName: string;
141
+ presetFilter: boolean;
142
+ searchTextPresetTable: string;
143
+ addFilterColumnInput: string;
144
+ searchInDropdown: string;
145
+ addFilterDropdownSearch: string;
146
+ topShowHideColumns: string;
147
+ choseColumnsSearch: string;
148
+ sideNestedFilterSearch: string;
149
+ editinDropdownSearch: string;
150
+ isThreeDotsFilterOpen: boolean;
151
+ confirmDelete: boolean;
152
+ fontFamilies: string[];
153
+ fontSizes: string[];
154
+ constructor(columnService: SplitColumnsService, cdr: ChangeDetectorRef, commonSevice: CommonService, swapColumnService: SwapColumnsService, elementRef: ElementRef, ngZone: NgZone, copyService: CopyServiceService);
155
+ cellText: ElementRef;
156
+ nestedHeader: ElementRef;
157
+ ngAfterViewInit(): void;
158
+ ngOnInit(): void;
159
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
160
+ applyRowsSelectionState(): void;
161
+ clearSelectionState(tableType: string): void;
162
+ applyFilteroptionList(): Promise<void>;
163
+ leftPinnedColumns: any[];
164
+ centerColumns: any[];
165
+ rightPinnedColumns: any[];
166
+ previewLeftPinnedColumns: any[];
167
+ previewCenterColumns: any[];
168
+ previewRightPinnedColumns: any[];
169
+ dataGridContainer: ElementRef<HTMLDivElement>;
170
+ leftPinnedBody: ElementRef<HTMLDivElement>;
171
+ centerPinnedBody: ElementRef<HTMLDivElement>;
172
+ rightPinnedBody: ElementRef<HTMLDivElement>;
173
+ leftPinnedHeader: ElementRef<HTMLDivElement>;
174
+ centerPinnedHeader: ElementRef<HTMLDivElement>;
175
+ rightPinnedHeader: ElementRef<HTMLDivElement>;
176
+ columnsGroupedBox: ElementRef<HTMLDivElement>;
177
+ centerFakeScrollbar: ElementRef<HTMLDivElement>;
178
+ updateColumnWidthsAndGroups(columns?: any): Promise<void>;
179
+ refreshPreviewColumns(columns?: any): Promise<void>;
180
+ SetColumnsDefaultWidth(): Promise<void>;
181
+ setSectionsWidth(): void;
182
+ onLeftBodyScroll(): void;
183
+ onRightBodyScroll(): void;
184
+ fakeScrollbarScrollLeft: number;
185
+ onFakeScroll(event: Event): void;
186
+ getNestedValue(obj: any, field: string): any;
187
+ isNestedValueArray(obj: any, field: string): boolean;
188
+ onResizeGroup(event: MouseEvent, col: any, isRightPinned?: boolean): void;
189
+ private updateColumnWidthInSourceByField;
190
+ onResizeColumn(event: MouseEvent, col: any): void;
191
+ onResizeGroupBox(event: MouseEvent): void;
192
+ onPasteInFilterRowSearch(event: ClipboardEvent, col: any): void;
193
+ onFilterChange(col: any): void;
194
+ get bodyWrapperHeight(): string;
195
+ hoveredRowId: string | number | null;
196
+ onRowHover(row: any): void;
197
+ onRowLeave(): void;
198
+ onDocumentClick(event: MouseEvent): void;
199
+ closeThreeDotsMenuFilter(): void;
200
+ closeFilterDropdowns(event: MouseEvent): void;
201
+ private hasParentWithClass;
202
+ isMenueHidden: boolean;
203
+ openThreeDotsMenu(event: MouseEvent, child: any, keepOriginalPosition?: boolean): void;
204
+ sortAsc(col: any): void;
205
+ sortDesc(col: any): void;
206
+ resetSort(col: any): void;
207
+ updateColumnPinInSourceByField(column: any, pinned: 'left' | 'right' | null, isNestedTable?: any, columns?: any): Promise<void>;
208
+ autosizeColumn(cols: any | any[]): void;
209
+ getGroupWidth(group: any): number;
210
+ autosizeAllColumns(): void;
211
+ private markColumnAsGrouped;
212
+ groupBy(col: any): Promise<void>;
213
+ groupDataAsync(data: any[], groupFields: string[]): Promise<any[]>;
214
+ chooseColumns(): void;
215
+ resetColumns(): void;
216
+ clearFilter(col: any): void;
217
+ applyFilter(col: any): void;
218
+ selectedRows: Set<string>;
219
+ /**
220
+ * Get normalized ID from row.
221
+ */
222
+ private getRowId;
223
+ /**
224
+ * Toggle a single row selection.
225
+ */
226
+ toggleRowSelection(row: any): void;
227
+ toggleSelectAll(data: any[]): void;
228
+ isRowSelected(row: any): boolean;
229
+ isAllSelected(data: any[]): boolean;
230
+ isIndeterminateState(data: any[]): boolean;
231
+ toggleSideMenu(clickedOn: 'cols' | 'filtrs'): void;
232
+ toggleGroupVisibility(col: any): void;
233
+ isColumnVisible(columns: any): any;
234
+ allColumnsSelected(): boolean;
235
+ private findColumnByField;
236
+ toggleColumnVisibility(column: any, isVisible: boolean): Promise<void>;
237
+ toggleAllColumnsVisibility(): void;
238
+ flattenColumns(cols: any[]): any[];
239
+ filteredColumns(cols: any[]): any[];
240
+ get accordionState(): 'all' | 'none' | 'some';
241
+ get filterAccordionState(): 'all' | 'none' | 'some';
242
+ private getAllGroupColumns;
243
+ toggleAllAccordions(): void;
244
+ toggleAllFilterAccordions(): void;
245
+ private setAccordionState;
246
+ private setFilterAccordionState;
247
+ showColumnPanel: boolean;
248
+ closeModalColumnPanel(): void;
249
+ onEscape(event: KeyboardEvent): void;
250
+ get hasRightPinnedColumns(): boolean;
251
+ get hasLeftPinnedColumns(): boolean;
252
+ get dataSetLength(): number;
253
+ onResize(event: UIEvent): void;
254
+ refreshHeaders(): Promise<void>;
255
+ get hasAnyVisibleColumn(): boolean;
256
+ get hasAnyInVisibleColumn(): boolean;
257
+ get columnsCount(): number;
258
+ tableHeaderAndBodyHeight(): string;
259
+ draggingInGroupArea: boolean;
260
+ centerScroll: ElementRef<HTMLDivElement>;
261
+ visibleRowCount: number;
262
+ startIndex: number;
263
+ visibleRows: any[];
264
+ private flattenGroupedRows;
265
+ assignVirtualIndexes(data: any[]): any[];
266
+ updateVisibleRows(scrollTop: number): void;
267
+ trackByRenderedIndex: (i: number, _row: any) => number;
268
+ private isSyncingFromMain;
269
+ private isSyncingFromFake;
270
+ private mainScrollRaf;
271
+ trackById(index: number, item: any): any;
272
+ flattenedData: any[];
273
+ updateFlattenedData(): void;
274
+ private fakeScrollRaf;
275
+ translateY: number;
276
+ lastScrollTop: number;
277
+ pendingAnimationFrame: number | null;
278
+ onMainScroll(event: Event): void;
279
+ get isScrollbarVisible(): boolean;
280
+ toggleExpand(row: any): void;
281
+ onMainFakeScroll(event: Event): void;
282
+ viewportRows: number;
283
+ firstIndex: number;
284
+ renderStart: number;
285
+ private scrollRaf;
286
+ private pendingScrollTop;
287
+ mainScroll: ElementRef<HTMLDivElement>;
288
+ fakeScroll: ElementRef<HTMLDivElement>;
289
+ horizintalFakeScroll: ElementRef<HTMLDivElement>;
290
+ centerScrollableBody: ElementRef<any>;
291
+ private overscan;
292
+ computeViewportRows(): void;
293
+ onHorizintalFakeScroll(event: Event): void;
294
+ onCenterBodyScroll(event: Event): void;
295
+ onCenterHeaderScroll(event: Event): void;
296
+ draggingColumn: any;
297
+ dragStartIndex: any;
298
+ canEnterToRowsGrouping: (drag: CdkDrag<any>, drop: CdkDropList<any>) => any;
299
+ enterToTopRowGrouping(dropList: CdkDragEnter<any>): void;
300
+ onDropListEnter(dropList: CdkDragEnter<any>, section: 'left' | 'center' | 'right'): void;
301
+ exitedFromTheTopRow(dropList: CdkDragExit<any>): void;
302
+ shouldDisableDroplistSorting: boolean;
303
+ isDisableColumnGrouping: boolean;
304
+ checkColumnGroupingStatus(col: any): void;
305
+ currentDraggingColumn: any;
306
+ dragStartOnGroup(col: any): void;
307
+ onSortGroup: (event: CdkDragSortEvent<any>, section: string) => Promise<void>;
308
+ onDropGroup(): void;
309
+ onDropTopGroup(event: CdkDragDrop<any>): Promise<void>;
310
+ onGroupReorder(event: CdkDragDrop<any[]>): Promise<void>;
311
+ ungroupColumn(column: any): Promise<void>;
312
+ shouldTheGroupHeaderShow(group: any): any;
313
+ onChildDroplistSorted: (event: CdkDragSortEvent<any>, section: string) => Promise<void>;
314
+ onChildDroplistDroped(cdkDragDropevent: CdkDragDrop<any>): void;
315
+ groupData(data: any[], groupFields: string[]): any[];
316
+ countLeafRows(group: any): number;
317
+ isActiveFilterOpen: boolean;
318
+ toggleActiveFilter(): void;
319
+ toggleActions(type: string): void;
320
+ activeSubButton: string;
321
+ toggleSubActions(type: string): void;
322
+ toggleActionsDropdown(): void;
323
+ changeTableLayout(event: Event, layoutType: string): Promise<void>;
324
+ pageSizeOptions: number[];
325
+ get startIndexData(): number;
326
+ get endIndex(): number;
327
+ get visiblePages(): (number | string)[];
328
+ searchTextForFilterDropDown: string;
329
+ toggleColumnInFilterDropdown(col: any): void;
330
+ removeColumnFromFilter(option: any): void;
331
+ handleBackspace(event: Event): void;
332
+ filterMenueSearchInput: ElementRef<HTMLInputElement>;
333
+ filterMenueTextchInput: ElementRef<HTMLInputElement>;
334
+ openFilteronThreeDotsClick(col: any): void;
335
+ isFilterOpen: boolean;
336
+ selectedColumnForFilter: any;
337
+ showFilters: boolean;
338
+ openFilterFromDisabledSearchedInput(col: any): void;
339
+ openFilter(col: any): void;
340
+ firstValue: any;
341
+ firstCondition: string;
342
+ secondValue: any;
343
+ secondCondition: null;
344
+ condition: string;
345
+ resetTextFilterChanges(): void;
346
+ toggleAllValusSelectionInDropdownFilter(column: any): void;
347
+ selectedFilterOptions: any[];
348
+ currentFilterSelectedIds: Set<string>;
349
+ toggleSelectionInFilter(option: any): void;
350
+ resetFilterChanges(): void;
351
+ applyDropdownFilter(): void;
352
+ isFilterAppliedOnColumn(column: any): boolean;
353
+ toggleSelectAllSideFilters(col: any, event: Event): void;
354
+ isAllSideFilterOptionsSelected(col: any): boolean;
355
+ onOptionToggle(col: any, option: any): void;
356
+ resetSideFilter(col: any): void;
357
+ clearAllFilters(): void;
358
+ applySideFilter(column: any): void;
359
+ removeSideFilter(column: any): void;
360
+ collapseAllExpandedCells(): void;
361
+ trackByField(index: number, col: any): string;
362
+ get activeFilteredColumns(): any[];
363
+ toggleOpenFilter(): void;
364
+ editingKey: string | null;
365
+ activeCell: string | null;
366
+ setActiveCell(row: any, column: any): void;
367
+ isActiveCell(row: any, col: any): boolean;
368
+ enableEdit(row: any, column: any): void;
369
+ disableEdit(row: any, column: any, control?: any): void;
370
+ emailRegex: RegExp;
371
+ validateEmail(value: string): boolean;
372
+ allowOnlyNumbers(event: KeyboardEvent): void;
373
+ checkRowEditAndEmitValue(row: any, column: any, value?: any): void;
374
+ isEditing(row: any, col: any): boolean;
375
+ setNestedValue(obj: any, column: any, option: any, calledFromInput?: boolean): void;
376
+ goToPage(page: any): void;
377
+ onPageSizeChange(): void;
378
+ actionPreset(data: any, type: any): void;
379
+ currentIdForUpdatePreset: string;
380
+ curretaTablePresetForUpdate: any;
381
+ temp_state: {
382
+ id: string;
383
+ is_temp: boolean;
384
+ };
385
+ selectFilter(data: any): Promise<void>;
386
+ savePreset(control?: any): void;
387
+ getFilterHeaders(filters: any[], columns: any[]): string;
388
+ toggleRowShading(): void;
389
+ trackByTable(index: number): number;
390
+ activeRow: any;
391
+ activeRowCol: any;
392
+ getCellKey(row: any, col: any): string;
393
+ expandedCells: Map<string, number>;
394
+ private zCounter;
395
+ toggleExpandOfLongCellText(row: any, col: any, columns: any[], expandWholeRow?: boolean): void;
396
+ isExpanded(row: any, col: any): boolean;
397
+ getZIndex(row: any, col: any): number;
398
+ isOverflowing(element: HTMLElement | null): boolean;
399
+ colorCombination: string[];
400
+ getDynamicClass(name: string): string;
401
+ getInitials(name: string): string;
402
+ actionHide: boolean;
403
+ xPos: number;
404
+ yPos: number;
405
+ isVisible: boolean;
406
+ deatilsList: any;
407
+ openExpendIndex: any;
408
+ positionedYet: boolean;
409
+ onRightClick(event: MouseEvent | TouchEvent | any, deatilsList: any): boolean;
410
+ onActionClick(action: string): void;
411
+ onVerifyClick(type: string): void;
412
+ getCellClasses(column: any, value: any): string;
413
+ removeColumnFilterFromColumn(column: any): void;
414
+ onSideMenuColumnsVisibilityChange(): void;
415
+ downloadCsv(): void;
416
+ onFontChange(): void;
417
+ onGlobalSearch(): void;
418
+ onSearchInput(event: Event): void;
419
+ checkFilterChangesEffect(): any;
420
+ selectedCells: any[];
421
+ selectedKeys: Set<string>;
422
+ selectionStart: any;
423
+ isSelecting: boolean;
424
+ startSelection(rowIndex: number, colIndex: number, subColIndex: number | null, field: string, event: MouseEvent, section: string): void;
425
+ extendSelection(rowIndex: number, colIndex: number, subColIndex: number | null, field: string, event: MouseEvent, section: string): void;
426
+ getColumnSelectionRange(startCol: number, endCol: number, startSub: number, endSub: number): {
427
+ colIndex: number;
428
+ subColIndex: number;
429
+ }[];
430
+ getSubColumnCount(colIndex: number): number;
431
+ isGroupColumn(colIndex: number): boolean;
432
+ endSelection(): void;
433
+ isSelected(rowIndex: number, colIndex: number, subColIndex: number | null, field: string, section: string): boolean;
434
+ private selectionBounds;
435
+ updateSelectionBoundaries(): void;
436
+ findLeftMostCell(): {
437
+ colIndex: number;
438
+ subColIndex: number;
439
+ } | null;
440
+ findRightMostCell(): {
441
+ colIndex: number;
442
+ subColIndex: number;
443
+ } | null;
444
+ isTopBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
445
+ isBottomBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
446
+ isLeftBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
447
+ isRightBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
448
+ isTopLeftCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
449
+ isTopRightCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
450
+ isBottomLeftCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
451
+ isBottomRightCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
452
+ cellSelectionAutoScrollInterval: any;
453
+ private scrollSpeed;
454
+ private scrollMargin;
455
+ handleCellAutoScroll(event: MouseEvent): void;
456
+ stopAutoScroll(): void;
457
+ rowSelectedIndexes: Set<number>;
458
+ rowSelecting: boolean;
459
+ rowSelectionStartIndex: number | null;
460
+ autoScrollInterval: any;
461
+ get firstSelectedRow(): number | null;
462
+ get lastSelectedRow(): number | null;
463
+ onRowMouseDown(index: number, event: MouseEvent): void;
464
+ onRowMouseOver(index: number, event: MouseEvent): void;
465
+ onRowMouseUp(): void;
466
+ handleAutoScroll(e: MouseEvent): void;
467
+ undoStack: any[][];
468
+ redoStack: any[][];
469
+ private cloneData;
470
+ performCut(selectedData: any[][]): void;
471
+ getSelectedDataForCopy(): any[][];
472
+ onKeyDown(event: KeyboardEvent): void;
473
+ undo(): void;
474
+ redo(): void;
475
+ onPaste: (event: ClipboardEvent) => Promise<void>;
476
+ isDate(value: any): boolean;
477
+ expandededDetailRows: (string | number)[] | string | number;
478
+ toggleDetailRowExpand(row: any): void;
479
+ isDetailsExpanded(row: any): boolean;
480
+ getFilterValue(option: any): any;
481
+ openIndex: number | null;
482
+ toggleMenu(i: number, event?: MouseEvent): void;
483
+ nestedTable: ElementRef<HTMLDivElement>;
484
+ get hasVerticalScroll(): boolean;
485
+ get hasHorizontalScroll(): boolean;
486
+ getTotalAmount(column: any): string | undefined;
487
+ dropColumn(event: CdkDragDrop<any[]>, row: any): void;
488
+ currentSubSortColumn: string | null;
489
+ currentSortDirection: 'asc' | 'desc';
490
+ sortNestedCol(col: any, row: any): void;
491
+ getColumnWidthPx(row: any, col: any): string;
492
+ fullscreenImage: string | null;
493
+ openFullScreenImage(src: string): void;
494
+ pinUnpinColum(col: any, value: 'left' | 'right' | null, columns: any[]): void;
495
+ getLeftPinnedCount(columns: any[]): number;
496
+ getRightPinnedCount(columns: any[]): number;
497
+ getStickyLeft(columns: any[], index: number): string;
498
+ previewNestedCols: any[];
499
+ onNestedColSort(event: CdkDragSortEvent<any[]>, columns: any[]): void;
500
+ saveSelection(selectedIds: string[], tableType: string): void;
501
+ restoreSelection(tableType: string): Set<string>;
502
+ isOutsideContainer: boolean;
503
+ private containerRect;
504
+ onDragStarted(col: any): void;
505
+ onDragMoved(event: CdkDragMove): void;
506
+ onDragEnded(): void;
507
+ getStartIndex(): number;
508
+ hasAnyDefaultView(): boolean;
509
+ get isTablePresetNotChanged(): any;
510
+ onActionButtonClick(button: string): void;
511
+ setActiveTab(tab: string): void;
512
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
513
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "data-grid", never, { "paginationConfig": { "alias": "paginationConfig"; "required": false; }; "dataSet": { "alias": "dataSet"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "headerRowHeight": { "alias": "headerRowHeight"; "required": false; }; "showVerticalBorder": { "alias": "showVerticalBorder"; "required": false; }; "evenRowsBackgroundColor": { "alias": "evenRowsBackgroundColor"; "required": false; }; "oddRowsBackgroundColor": { "alias": "oddRowsBackgroundColor"; "required": false; }; "headerBackgroundColor": { "alias": "headerBackgroundColor"; "required": false; }; "checkboxesBackgroundColor": { "alias": "checkboxesBackgroundColor"; "required": false; }; "showColumnsGrouping": { "alias": "showColumnsGrouping"; "required": false; }; "rowHoverColor": { "alias": "rowHoverColor"; "required": false; }; "leftPinnedBackgroundColor": { "alias": "leftPinnedBackgroundColor"; "required": false; }; "bodyBackgroundColor": { "alias": "bodyBackgroundColor"; "required": false; }; "rightPinnedBackgroundColor": { "alias": "rightPinnedBackgroundColor"; "required": false; }; "sidemenuBackgroundColor": { "alias": "sidemenuBackgroundColor"; "required": false; }; "bodyTextColor": { "alias": "bodyTextColor"; "required": false; }; "headerTextColor": { "alias": "headerTextColor"; "required": false; }; "headerTextFontsSize": { "alias": "headerTextFontsSize"; "required": false; }; "bodyTextFontsSize": { "alias": "bodyTextFontsSize"; "required": false; }; "headerFontWeight": { "alias": "headerFontWeight"; "required": false; }; "bodyFontWeight": { "alias": "bodyFontWeight"; "required": false; }; "checkedRowBackgroundColor": { "alias": "checkedRowBackgroundColor"; "required": false; }; "dropdownsBackgroundColor": { "alias": "dropdownsBackgroundColor"; "required": false; }; "footerRowHeight": { "alias": "footerRowHeight"; "required": false; }; "topGroupedBadgesBackgroundColor": { "alias": "topGroupedBadgesBackgroundColor"; "required": false; }; "showRowsGrouping": { "alias": "showRowsGrouping"; "required": false; }; "showFilterRow": { "alias": "showFilterRow"; "required": false; }; "fontFaimly": { "alias": "fontFaimly"; "required": false; }; "showSideMenu": { "alias": "showSideMenu"; "required": false; }; "footerPadding": { "alias": "footerPadding"; "required": false; }; "topFilterRowHeight": { "alias": "topFilterRowHeight"; "required": false; }; "rowShadingEnabled": { "alias": "rowShadingEnabled"; "required": false; }; "showSerialNumber": { "alias": "showSerialNumber"; "required": false; }; "singleSpaAssetsPath": { "alias": "singleSpaAssetsPath"; "required": false; }; "filtersConfig": { "alias": "filtersConfig"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "verticalScrollbarWidth": { "alias": "verticalScrollbarWidth"; "required": false; }; "horizintalScrollbarWidth": { "alias": "horizintalScrollbarWidth"; "required": false; }; "showCellDetailsBox": { "alias": "showCellDetailsBox"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "tableSearch": { "alias": "tableSearch"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "config": { "alias": "config"; "required": false; }; "showTaskbar": { "alias": "showTaskbar"; "required": false; }; "tableName": { "alias": "tableName"; "required": false; }; "listingType": { "alias": "listingType"; "required": false; }; "checkboxState": { "alias": "checkboxState"; "required": false; }; "taskbarActions": { "alias": "taskbarActions"; "required": false; }; "sortingConfig": { "alias": "sortingConfig"; "required": false; }; "tableFilterViewId": { "alias": "tableFilterViewId"; "required": false; }; "selectedTableLayout": { "alias": "selectedTableLayout"; "required": false; }; "closeDropdown": { "alias": "closeDropdown"; "required": false; }; "globalSearchText": { "alias": "globalSearchText"; "required": false; }; "nestedTablerowFontsize": { "alias": "nestedTablerowFontsize"; "required": false; }; "nestedTableHeaderRowHeight": { "alias": "nestedTableHeaderRowHeight"; "required": false; }; "nestedTablerowHeight": { "alias": "nestedTablerowHeight"; "required": false; }; "gridType": { "alias": "gridType"; "required": false; }; "currencySymbol": { "alias": "currencySymbol"; "required": false; }; "leftPinnedBoxshadow": { "alias": "leftPinnedBoxshadow"; "required": false; }; "rightPinnedBoxshadow": { "alias": "rightPinnedBoxshadow"; "required": false; }; "selectedRowsBackgroundColor": { "alias": "selectedRowsBackgroundColor"; "required": false; }; "nestedTableHeaderBAckgroundColor": { "alias": "nestedTableHeaderBAckgroundColor"; "required": false; }; "tableView": { "alias": "tableView"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "keepMultipleExpandedDetails": { "alias": "keepMultipleExpandedDetails"; "required": false; }; "showTotalAmountRow": { "alias": "showTotalAmountRow"; "required": false; }; "enableGlobalSearch": { "alias": "enableGlobalSearch"; "required": false; }; "tableType": { "alias": "tableType"; "required": false; }; "widgets": { "alias": "widgets"; "required": false; }; "enableCut": { "alias": "enableCut"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "resetAllFilters": { "alias": "resetAllFilters"; "required": false; }; "columnThreedotsMunuConfig": { "alias": "columnThreedotsMunuConfig"; "required": false; }; }, { "changeLayout": "changeLayout"; "filterOptions": "filterOptions"; "genericEvent": "genericEvent"; "tablePresetConfig": "tablePresetConfig"; "sortingOrderOptions": "sortingOrderOptions"; "createUpdateConfigListing": "createUpdateConfigListing"; }, never, never, false, never>;
514
+ }
@@ -0,0 +1,3 @@
1
+ export declare const STATUSES_BADGE_MAP: {
2
+ [key: string]: string;
3
+ };
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./data-grid/data-grid.component";
3
+ import * as i2 from "./pipes/filter.pipe";
4
+ import * as i3 from "./directives/draggable-header.directive";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "@angular/cdk/drag-drop";
8
+ import * as i7 from "ng-inline-svg";
9
+ import * as i8 from "@angular/cdk/scrolling";
10
+ export declare class DataGridModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DataGridModule, [typeof i1.DataGridComponent, typeof i2.FilterPipe, typeof i3.DraggableHeaderDirective], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.DragDropModule, typeof i7.InlineSVGModule, typeof i8.ScrollingModule], [typeof i1.DataGridComponent, typeof i3.DraggableHeaderDirective]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<DataGridModule>;
14
+ }
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DataGridService {
3
+ constructor();
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridService, never>;
5
+ static ɵprov: i0.ɵɵInjectableDeclaration<DataGridService>;
6
+ }
@@ -0,0 +1,31 @@
1
+ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface DragMoveEvent {
4
+ event: MouseEvent;
5
+ data: any;
6
+ }
7
+ export declare class DraggableHeaderDirective {
8
+ private el;
9
+ private renderer;
10
+ column: any;
11
+ headerName: string;
12
+ dragStart: EventEmitter<any>;
13
+ dragMove: EventEmitter<any>;
14
+ dragEnd: EventEmitter<any>;
15
+ private isDragging;
16
+ private placeholderEl;
17
+ private previewEl;
18
+ constructor(el: ElementRef, renderer: Renderer2);
19
+ startX: number;
20
+ startY: number;
21
+ onMouseDown(event: MouseEvent): void;
22
+ onMouseMove: (event: MouseEvent) => void;
23
+ onMouseUp: (event: MouseEvent) => void;
24
+ private originalCursor;
25
+ private setCursor;
26
+ private resetCursor;
27
+ private startDragging;
28
+ overrideCursor(style: string): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<DraggableHeaderDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DraggableHeaderDirective, "[appDraggableHeader]", never, { "column": { "alias": "column"; "required": false; }; "headerName": { "alias": "headerName"; "required": false; }; }, { "dragStart": "dragStart"; "dragMove": "dragMove"; "dragEnd": "dragEnd"; }, never, never, false, never>;
31
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FilterPipe implements PipeTransform {
4
+ transform(items: any[], searchText: string, key?: string): any[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterPipe, "filter", false>;
7
+ }
@@ -0,0 +1,17 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CommonService {
3
+ constructor();
4
+ gethasVisibleColumns(columns: any[]): boolean;
5
+ gethasInVisibleColumns(columns: any[]): boolean;
6
+ getTotalColumnsLength(columns: any[]): number;
7
+ gethasRightPinnedColumns(columns: any[]): boolean;
8
+ gethasLeftPinnedColumns(columns: any[]): boolean;
9
+ getExpandedRowCount(data: any[]): number;
10
+ getFiltersFromColumns(columns: any[], filtersConfig: any[]): any[];
11
+ applyFiltersToColumns(columns: any[], filters: any[]): Promise<any[]>;
12
+ activeFilteredColumns: any[];
13
+ updateActiveFilteredColumns(columns: any[]): any[];
14
+ hasFieldChanged(current: any, original: any, type: string): boolean;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
17
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CopyServiceService {
3
+ constructor();
4
+ getSelectedDataForCopy(dataSet: any[], columns: any[], rowSelectedIndexes: Set<number>, selectedCells: any[], getNestedValue: (obj: any, path: string) => any): any[][];
5
+ copyToClipboard(selectedData: any[][], selector?: string): void;
6
+ updateRows: any[];
7
+ currentColums: any;
8
+ pasteFromClipboardText(text: string, dataSet: any[], columns: any[], startRowIndex: number, startColIndex: number, startSubColIndex?: number): Promise<any>;
9
+ setNestedValue(obj: any, column: any, option: any, calledFromInput?: boolean): void;
10
+ cutSelectedSelectedData(dataSet: any[], rowSelectedIndexes: Set<number>, selectedCells: any[], columns: any[], setNestedValue: (obj: any, column: any, value: any) => void): any;
11
+ cutWithAnimation(selectedData: any[][], selector?: string): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CopyServiceService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<CopyServiceService>;
14
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SplitColumnsService {
3
+ prepareColumns(columns: any[], containerWidth: number): any;
4
+ setColumnsQuery(columns: any[]): any[];
5
+ assignDefaultWidths(columns: any[], containerWidth: number): any[];
6
+ private getVisibleLeafColumns;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<SplitColumnsService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<SplitColumnsService>;
9
+ }
@@ -0,0 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class SwapColumnsService {
3
+ constructor();
4
+ deepClone(obj: any): any;
5
+ flattenColumnsWithPaths(columns: any[]): {
6
+ col: any;
7
+ path: number[];
8
+ }[];
9
+ findColumnByIndex(columns: any[], index: number, flat: any[], _path?: number[][], currentPath?: number[]): {
10
+ column: any;
11
+ parent: any[];
12
+ path: number[];
13
+ } | null;
14
+ insertAtPath(columns: any[], path: number[], newColumn: any): any[];
15
+ removeAtPath(columns: any[], path: number[]): any[];
16
+ swapColumnsInTree(currentColumn: any, columns: any[], fromIndex: number, toIndex: number): any[];
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SwapColumnsService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<SwapColumnsService>;
19
+ }