ms-data-grid 0.0.47 → 0.0.48

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