ms-data-grid 0.0.47 → 0.0.49

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 +4841 -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 +259 -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 +5760 -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 +550 -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 +18 -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,550 @@
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
+ showCheckboxes: boolean;
114
+ resetAllFilters: {
115
+ resetAll: boolean;
116
+ };
117
+ columnThreedotsMunuConfig: {
118
+ showPinleft: boolean;
119
+ showPinright: boolean;
120
+ showAscending: boolean;
121
+ showDescending: boolean;
122
+ showFilter: boolean;
123
+ showRowsGrouping: boolean | undefined;
124
+ showAutosizeAllColumns: boolean;
125
+ showAutosizeThisColumn: boolean;
126
+ showChoseColumns: boolean;
127
+ showResetColumns: boolean;
128
+ };
129
+ cellHosts: QueryList<CellHostDirective>;
130
+ changeLayout: EventEmitter<any>;
131
+ filterOptions: EventEmitter<any>;
132
+ genericEvent: EventEmitter<any>;
133
+ tablePresetConfig: EventEmitter<any>;
134
+ sortingOrderOptions: EventEmitter<any>;
135
+ createUpdateConfigListing: EventEmitter<any>;
136
+ isFullScreen: boolean;
137
+ activeTab: string | null;
138
+ groupedColumns: any[];
139
+ activeCol: any;
140
+ activeFilterCell: any;
141
+ showActionsDropDown: boolean;
142
+ sideMenuVisible: boolean;
143
+ pivotMode: boolean;
144
+ columnSearch: string;
145
+ expandAllAccordians: boolean;
146
+ currentOpenedSideMenue: 'cols' | 'filtrs' | null;
147
+ originalColumns: any[];
148
+ originalDataSet: any[];
149
+ activeTopButton: string | null;
150
+ filterColumnsList: any[];
151
+ groupBoxPadding: number;
152
+ presetName: string;
153
+ presetFilter: boolean;
154
+ searchTextPresetTable: string;
155
+ addFilterColumnInput: string;
156
+ searchInDropdown: string;
157
+ addFilterDropdownSearch: string;
158
+ topShowHideColumns: string;
159
+ choseColumnsSearch: string;
160
+ sideNestedFilterSearch: string;
161
+ editinDropdownSearch: string;
162
+ isThreeDotsFilterOpen: boolean;
163
+ confirmDelete: boolean;
164
+ fontFamilies: string[];
165
+ fontSizes: string[];
166
+ hasScroll: boolean;
167
+ constructor(columnService: SplitColumnsService, cdr: ChangeDetectorRef, commonSevice: CommonService, elementRef: ElementRef, ngZone: NgZone, copyService: CopyServiceService, renderer: Renderer2, sanitizer: DomSanitizer, exportService: ExportService);
168
+ cellText: any;
169
+ nestedHeader: ElementRef;
170
+ ngAfterViewInit(): void;
171
+ private injector;
172
+ createCellInjector(row: any, col: any): Injector;
173
+ private renderCustomCells;
174
+ ngAfterViewChecked(): void;
175
+ ngOnInit(): void;
176
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
177
+ setColumnsColumnDropdownValus(): Promise<void>;
178
+ applyRowsSelectionState(): void;
179
+ clearSelectionState(tableType: string): void;
180
+ applyFilteroptionList(): Promise<void>;
181
+ leftPinnedColumns: any[];
182
+ centerColumns: any[];
183
+ rightPinnedColumns: any[];
184
+ previewLeftPinnedColumns: any[];
185
+ previewCenterColumns: any[];
186
+ previewRightPinnedColumns: any[];
187
+ dataGridContainer: ElementRef<HTMLDivElement>;
188
+ taskManagementContainer: ElementRef<HTMLDivElement>;
189
+ nestedTableContainer: ElementRef<HTMLDivElement>;
190
+ leftPinnedBody: ElementRef<HTMLDivElement>;
191
+ centerPinnedBody: ElementRef<HTMLDivElement>;
192
+ rightPinnedBody: ElementRef<HTMLDivElement>;
193
+ leftPinnedHeader: ElementRef<HTMLDivElement>;
194
+ centerPinnedHeader: ElementRef<HTMLDivElement>;
195
+ rightPinnedHeader: ElementRef<HTMLDivElement>;
196
+ columnsGroupedBox: ElementRef<HTMLDivElement>;
197
+ centerFakeScrollbar: ElementRef<HTMLDivElement>;
198
+ updateColumnWidthsAndGroups(columns?: any): Promise<void>;
199
+ refreshPreviewColumns(columns?: any): Promise<void>;
200
+ SetColumnsDefaultWidth(): Promise<void>;
201
+ setSectionsWidth(): void;
202
+ fakeScrollbarScrollLeft: number;
203
+ getNestedValue(obj: any, field: string): any;
204
+ isNestedValueArray(obj: any, field: string): boolean;
205
+ onResizeGroup(event: MouseEvent, col: any, isRightPinned?: boolean): void;
206
+ private updateColumnWidthInSourceByField;
207
+ cleanColumns(columns: any[]): any[];
208
+ onResizeColumn(event: MouseEvent, col: any): void;
209
+ onResizeGroupBox(event: MouseEvent): void;
210
+ onPasteInFilterRowSearch(event: ClipboardEvent, col: any): void;
211
+ onFilterChange(col: any): void;
212
+ get bodyWrapperHeight(): string;
213
+ hoveredRowId: string | number | null;
214
+ onRowHover(row: any): void;
215
+ onRowLeave(): void;
216
+ onDocumentClick(event: MouseEvent): void;
217
+ closeThreeDotsMenuFilter(): void;
218
+ closeFilterDropdowns(event: MouseEvent): void;
219
+ private hasParentWithClass;
220
+ isMenueHidden: boolean;
221
+ openThreeDotsMenu(event: MouseEvent, child: any, keepOriginalPosition?: boolean): void;
222
+ sortAsc(col: any): void;
223
+ sortDesc(col: any): void;
224
+ resetSort(col: any): void;
225
+ updateColumnPinInSourceByField(column: any, pinned: 'left' | 'right' | null, isNestedTable?: any, columns?: any): Promise<void>;
226
+ autosizeColumn(cols: any | any[]): void;
227
+ getGroupWidth(group: any): number;
228
+ autosizeAllColumns(): void;
229
+ private markColumnAsGrouped;
230
+ groupBy(col: any): Promise<void>;
231
+ groupDataAsync(data: any[], groupFields: string[]): Promise<any[]>;
232
+ chooseColumns(): void;
233
+ resetColumns(): void;
234
+ clearFilter(col: any): void;
235
+ applyFilter(col: any): void;
236
+ selectedRows: Set<string>;
237
+ /**
238
+ * Get normalized ID from row.
239
+ */
240
+ private getRowId;
241
+ /**
242
+ * Toggle a single row selection.
243
+ */
244
+ toggleRowSelection(row: any): void;
245
+ toggleSelectAll(data: any[]): void;
246
+ isRowSelected(row: any): boolean;
247
+ isAllSelected(data: any[]): boolean;
248
+ isIndeterminateState(data: any[]): boolean;
249
+ toggleSideMenu(clickedOn: 'cols' | 'filtrs'): void;
250
+ toggleGroupVisibility(col: any): void;
251
+ isColumnVisible(columns: any): any;
252
+ allColumnsSelected(): boolean;
253
+ private findColumnByField;
254
+ toggleColumnVisibility(column: any, isVisible: boolean): Promise<void>;
255
+ toggleAllColumnsVisibility(): void;
256
+ flattenColumns(cols: any[]): any[];
257
+ filteredColumns(cols: any[]): any[];
258
+ get accordionState(): 'all' | 'none' | 'some';
259
+ get filterAccordionState(): 'all' | 'none' | 'some';
260
+ private getAllGroupColumns;
261
+ toggleAllAccordions(): void;
262
+ toggleAllFilterAccordions(): void;
263
+ private setAccordionState;
264
+ private setFilterAccordionState;
265
+ showColumnPanel: boolean;
266
+ closeModalColumnPanel(): void;
267
+ onEscape(event: KeyboardEvent): void;
268
+ get hasRightPinnedColumns(): boolean;
269
+ get hasLeftPinnedColumns(): boolean;
270
+ get dataSetLength(): number;
271
+ onResize(event: UIEvent): void;
272
+ refreshHeaders(): Promise<void>;
273
+ get hasAnyVisibleColumn(): boolean;
274
+ get hasAnyInVisibleColumn(): boolean;
275
+ get columnsCount(): number;
276
+ tableHeaderAndBodyHeight(): string;
277
+ draggingInGroupArea: boolean;
278
+ centerScroll: ElementRef<HTMLDivElement>;
279
+ visibleRowCount: number;
280
+ startIndex: number;
281
+ visibleRows: any[];
282
+ private flattenGroupedRows;
283
+ assignVirtualIndexes(data: any[]): any[];
284
+ updateVisibleRows(scrollTop: number): void;
285
+ trackByRenderedIndex: (i: number, _row: any) => number;
286
+ private isSyncingFromMain;
287
+ private isSyncingFromFake;
288
+ private mainScrollRaf;
289
+ trackById(index: number, item: any): any;
290
+ flattenedData: any[];
291
+ updateFlattenedData(): void;
292
+ private fakeScrollRaf;
293
+ translateY: number;
294
+ lastScrollTop: number;
295
+ pendingAnimationFrame: number | null;
296
+ onMainScroll(event: Event): void;
297
+ get isScrollbarVisible(): boolean;
298
+ toggleExpand(row: any): void;
299
+ viewportRows: number;
300
+ firstIndex: number;
301
+ renderStart: number;
302
+ private scrollRaf;
303
+ private pendingScrollTop;
304
+ mainScroll: ElementRef<HTMLDivElement>;
305
+ fakeScroll: ElementRef<HTMLDivElement>;
306
+ horizintalFakeScroll: ElementRef<HTMLDivElement>;
307
+ centerScrollableBody: ElementRef<HTMLDivElement>;
308
+ private overscan;
309
+ computeViewportRows(): void;
310
+ onHorizontalFakeScroll(event: Event): void;
311
+ onCenterBodyScroll(event: Event): void;
312
+ onCenterHeaderScroll(event: Event): void;
313
+ draggingColumn: any;
314
+ dragStartIndex: any;
315
+ canEnterToRowsGrouping: (drag: CdkDrag<any>, drop: CdkDropList<any>) => any;
316
+ enterToTopRowGrouping(dropList: CdkDragEnter<any>): void;
317
+ onDropListEnter(dropList: CdkDragEnter<any>, section: 'left' | 'center' | 'right'): void;
318
+ exitedFromTheTopRow(dropList: CdkDragExit<any>): void;
319
+ shouldDisableDroplistSorting: boolean;
320
+ isDisableColumnGrouping: boolean;
321
+ checkColumnGroupingStatus(col: any): void;
322
+ currentDraggingColumn: any;
323
+ dragStartOnGroup(col: any): void;
324
+ onSortGroup: (event: CdkDragSortEvent<any>, section: string) => Promise<void>;
325
+ onDropGroup(): void;
326
+ private deepCloneColumns;
327
+ onDropTopGroup(event: CdkDragDrop<any>): Promise<void>;
328
+ onGroupReorder(event: CdkDragDrop<any[]>): Promise<void>;
329
+ ungroupColumn(column: any): Promise<void>;
330
+ shouldTheGroupHeaderShow(group: any): any;
331
+ onChildDroplistSorted: (event: CdkDragSortEvent<any>, section: string) => Promise<void>;
332
+ onChildDroplistDroped(cdkDragDropevent: CdkDragDrop<any>): void;
333
+ groupData(data: any[], groupFields: string[]): any[];
334
+ countLeafRows(group: any): number;
335
+ isActiveFilterOpen: boolean;
336
+ toggleActiveFilter(): void;
337
+ toggleActions(type: string): void;
338
+ activeSubButton: string;
339
+ toggleSubActions(type: string): void;
340
+ toggleActionsDropdown(): void;
341
+ changeTableLayout(event: Event, layoutType: string): Promise<void>;
342
+ pageSizeOptions: number[];
343
+ get startIndexData(): number;
344
+ get endIndex(): number;
345
+ get visiblePages(): (number | string)[];
346
+ searchTextForFilterDropDown: string;
347
+ toggleColumnInFilterDropdown(col: any): void;
348
+ removeColumnFromFilter(option: any): void;
349
+ handleBackspace(event: Event): void;
350
+ filterMenueSearchInput: ElementRef<HTMLInputElement>;
351
+ filterMenueTextchInput: ElementRef<HTMLInputElement>;
352
+ openFilteronThreeDotsClick(col: any): void;
353
+ isFilterOpen: boolean;
354
+ selectedColumnForFilter: any;
355
+ showFilters: boolean;
356
+ openFilterFromDisabledSearchedInput(col: any): void;
357
+ openFilter(col: any): void;
358
+ firstValue: any;
359
+ firstCondition: string;
360
+ secondValue: any;
361
+ secondCondition: null;
362
+ condition: string;
363
+ resetTextFilterChanges(): void;
364
+ toggleAllValusSelectionInDropdownFilter(column: any): void;
365
+ selectedFilterOptions: any[];
366
+ currentFilterSelectedIds: Set<string>;
367
+ toggleSelectionInFilter(option: any): void;
368
+ resetFilterChanges(): void;
369
+ applyDropdownFilter(): void;
370
+ isFilterAppliedOnColumn(column: any): boolean;
371
+ toggleSelectAllSideFilters(col: any, event: Event): void;
372
+ isAllSideFilterOptionsSelected(col: any): boolean;
373
+ onOptionToggle(col: any, option: any): void;
374
+ resetSideFilter(col: any): void;
375
+ clearAllFilters(): void;
376
+ applySideFilter(column: any): void;
377
+ removeSideFilter(column: any): void;
378
+ collapseAllExpandedCells(): void;
379
+ trackByField(index: number, col: any): string;
380
+ get activeFilteredColumns(): any[];
381
+ toggleOpenFilter(): void;
382
+ editingKey: string | null;
383
+ activeCell: string | null;
384
+ setActiveCell(row: any, column: any): void;
385
+ isActiveCell(row: any, col: any): boolean;
386
+ textAreadInput: ElementRef<HTMLTextAreaElement>;
387
+ enableEdit(row: any, column: any, clickedFromDetailsBox?: boolean, cellContainer?: HTMLElement): void;
388
+ disableEdit(row: any, column: any, control?: any): void;
389
+ emailRegex: RegExp;
390
+ validateEmail(value: string): boolean;
391
+ allowOnlyNumbers(event: KeyboardEvent): void;
392
+ checkRowEditAndEmitValue(row: any, column: any, value?: any): void;
393
+ isEditing(row: any, col: any): boolean;
394
+ setNestedValue(obj: any, column: any, option: any, calledFromInput?: boolean): void;
395
+ goToPage(page: any): void;
396
+ onPageSizeChange(): void;
397
+ actionPreset(data: any, type: any): void;
398
+ currentIdForUpdatePreset: string;
399
+ curretaTablePresetForUpdate: any;
400
+ temp_state: {
401
+ id: string;
402
+ is_temp: boolean;
403
+ };
404
+ selectFilter(data: any): Promise<void>;
405
+ savePreset(control?: any): void;
406
+ toggleRowShading(): void;
407
+ trackByTable(index: number): number;
408
+ activeRow: any;
409
+ activeRowCol: any;
410
+ getCellKey(row: any, col: any): string;
411
+ expandedCells: Map<string, number>;
412
+ private zCounter;
413
+ showDetailsBox: boolean;
414
+ toggleExpandOfLongCellText(row: any, col: any, columns: any[], expandWholeRow?: boolean): void;
415
+ isOpenToTop(row: any): boolean;
416
+ isExpanded(row: any, col: any): boolean;
417
+ getZIndex(row: any, col: any): number;
418
+ isOverflowing(element: HTMLElement | null): boolean;
419
+ colorCombination: string[];
420
+ getDynamicClass(name: string): string;
421
+ getInitials(name: string): string;
422
+ actionHide: boolean;
423
+ xPos: number;
424
+ yPos: number;
425
+ isVisible: boolean;
426
+ deatilsList: any;
427
+ openExpendIndex: any;
428
+ positionedYet: boolean;
429
+ onRightClick(event: MouseEvent | TouchEvent | any, deatilsList: any): boolean;
430
+ onActionClick(action: string): void;
431
+ onVerifyClick(type: string): void;
432
+ getCellClasses(column: any, value: any): string;
433
+ removeColumnFilterFromColumn(column: any): void;
434
+ onSideMenuColumnsVisibilityChange(): void;
435
+ cleanFilterdColumns(): any[];
436
+ downloadCsv(type: 'csv' | 'xlsx'): void;
437
+ onFontChange(): void;
438
+ onGlobalSearch(): void;
439
+ onSearchInput(event: Event): void;
440
+ checkFilterChangesEffect(): any;
441
+ selectedCells: any[];
442
+ selectedKeys: Set<string>;
443
+ selectionStart: any;
444
+ isSelecting: boolean;
445
+ startSelection(rowIndex: number, colIndex: number, subColIndex: number | null, field: string, event: MouseEvent, section: string): void;
446
+ extendSelection(rowIndex: number, colIndex: number, subColIndex: number | null, field: string, event: MouseEvent, section: string): void;
447
+ getColumnSelectionRange(startCol: number, endCol: number, startSub: number, endSub: number): {
448
+ colIndex: number;
449
+ subColIndex: number;
450
+ }[];
451
+ getSubColumnCount(colIndex: number): number;
452
+ isGroupColumn(colIndex: number): boolean;
453
+ endSelection(): void;
454
+ isSelected(rowIndex: number, colIndex: number, subColIndex: number | null, field: string, section: string): boolean;
455
+ private selectionBounds;
456
+ updateSelectionBoundaries(): void;
457
+ findLeftMostCell(): {
458
+ colIndex: number;
459
+ subColIndex: number;
460
+ } | null;
461
+ findRightMostCell(): {
462
+ colIndex: number;
463
+ subColIndex: number;
464
+ } | null;
465
+ isTopBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
466
+ isBottomBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
467
+ isLeftBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
468
+ isRightBorder(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
469
+ isTopLeftCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
470
+ isTopRightCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
471
+ isBottomLeftCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
472
+ isBottomRightCorner(rowIndex: number, colIndex: number, subColIndex: number | null, section: string): boolean;
473
+ cellSelectionAutoScrollInterval: any;
474
+ private scrollSpeed;
475
+ private scrollMargin;
476
+ handleCellAutoScroll(event: MouseEvent): void;
477
+ stopAutoScroll(): void;
478
+ rowSelectedIndexes: Set<number>;
479
+ rowSelecting: boolean;
480
+ rowSelectionStartIndex: number | null;
481
+ autoScrollInterval: any;
482
+ get firstSelectedRow(): number | null;
483
+ get lastSelectedRow(): number | null;
484
+ onRowMouseDown(index: number, event: MouseEvent): void;
485
+ onRowMouseOver(index: number, event: MouseEvent): void;
486
+ onRowMouseUp(): void;
487
+ handleAutoScroll(e: MouseEvent): void;
488
+ undoStack: any[][];
489
+ redoStack: any[][];
490
+ private cloneData;
491
+ performCut(selectedData: any[][]): void;
492
+ getSelectedDataForCopy(): any[][];
493
+ onKeyDown(event: KeyboardEvent): void;
494
+ selectAllCells(): void;
495
+ undo(): void;
496
+ redo(): void;
497
+ onPaste(event: ClipboardEvent): Promise<void>;
498
+ showConfirmationModal(message: string): Promise<boolean>;
499
+ isDate(value: any): boolean;
500
+ expandededDetailRows: (string | number)[] | string | number;
501
+ toggleDetailRowExpand(row: any): void;
502
+ isDetailsExpanded(row: any): boolean;
503
+ getFilterValue(option: any): any;
504
+ openIndex: number | null;
505
+ toggleMenu(i: number, event?: MouseEvent): void;
506
+ nestedTable: ElementRef<HTMLDivElement>;
507
+ get hasVerticalScroll(): boolean;
508
+ get hasHorizontalScroll(): boolean;
509
+ getTotalAmount(column: any): string | undefined;
510
+ dropColumn(event: CdkDragDrop<any[]>, row: any): void;
511
+ currentSubSortColumn: string | null;
512
+ currentSortDirection: 'asc' | 'desc';
513
+ sortNestedCol(col: any, row: any): void;
514
+ getColumnWidthPx(row: any, col: any): string;
515
+ fullscreenImage: string | null;
516
+ pinUnpinColum(col: any, value: 'left' | 'right' | null, columns: any[]): void;
517
+ getLeftPinnedCount(columns: any[]): number;
518
+ getRightPinnedCount(columns: any[]): number;
519
+ getStickyLeft(columns: any[], index: number): string;
520
+ previewNestedCols: any[];
521
+ onNestedColSort(event: CdkDragSortEvent<any[]>, columns: any[]): void;
522
+ saveSelection(selectedIds: string[], tableType: string): void;
523
+ restoreSelection(tableType: string): Set<string>;
524
+ isOutsideContainer: boolean;
525
+ private containerRect;
526
+ onDragStarted(col: any): void;
527
+ onDragMoved(event: CdkDragMove): void;
528
+ onDragEnded(): void;
529
+ getStartIndex(): number;
530
+ hasAnyDefaultView(): boolean;
531
+ get isTablePresetNotChanged(): any;
532
+ onActionButtonClick(button: string): void;
533
+ setActiveTab(tab: string): void;
534
+ getBackgroundColor(row: any, isEven: boolean, section: 'left' | 'center' | 'right'): string | undefined;
535
+ hasHorizontalScrollbar(): boolean;
536
+ getSafeComment(description: string): SafeHtml;
537
+ cleanEditorContent(content: string): SafeHtml;
538
+ getExtention(url: string | string[] | null | undefined): string | undefined;
539
+ downloadAttchment(url: any, file?: any): void;
540
+ fullImageSrc: string | null;
541
+ openFullImage(event: Event): void;
542
+ addStylesToImages(): void;
543
+ onImageClick(src: string): void;
544
+ fullscreenImageTemplate: TemplateRef<any>;
545
+ private fullscreenViewRef;
546
+ iconMap: Record<string, (row: any, col: any) => string>;
547
+ toggleFullscreen(): void;
548
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
549
+ 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; }; "showCheckboxes": { "alias": "showCheckboxes"; "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>;
550
+ }
@@ -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,18 @@
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
+ copyDropdownDataRecursively(columns: any[]): Promise<any[]>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
18
+ }
@@ -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
+ }