ms-data-grid 0.0.117 → 0.0.118
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/README.md +323 -323
- package/esm2022/lib/data-grid/data-grid.component.mjs +598 -304
- package/esm2022/lib/data-grid/statuses.mjs +1 -1
- package/esm2022/lib/data-grid.module.mjs +1 -1
- package/esm2022/lib/directives/cell-editor.directive.mjs +1 -1
- package/esm2022/lib/directives/cell-render-init.directive.mjs +28 -8
- package/esm2022/lib/directives/cellHost.directive.mjs +1 -1
- package/esm2022/lib/pipes/filter.pipe.mjs +1 -1
- package/esm2022/lib/pipes/format-currency.pipe.mjs +1 -1
- package/esm2022/lib/pipes/format-index.pipe.mjs +1 -1
- package/esm2022/lib/services/common.service.mjs +1 -1
- package/esm2022/lib/services/copy-service.service.mjs +1 -1
- package/esm2022/lib/services/export.service.mjs +1 -1
- package/esm2022/lib/services/row-action.service.mjs +145 -0
- package/esm2022/lib/services/split-columns.service.mjs +1 -1
- package/esm2022/public-api.mjs +1 -1
- package/fesm2022/ms-data-grid.mjs +837 -382
- package/fesm2022/ms-data-grid.mjs.map +1 -1
- package/lib/data-grid/data-grid.component.d.ts +68 -30
- package/lib/directives/cell-render-init.directive.d.ts +7 -3
- package/lib/services/row-action.service.d.ts +21 -0
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OnInit, OnChanges, SimpleChanges, ElementRef, AfterViewInit, ChangeDetectorRef, EventEmitter, NgZone, Renderer2, AfterViewChecked, TemplateRef, QueryList, Injector } from '@angular/core';
|
|
2
2
|
import { SplitColumnsService } from '../services/split-columns.service';
|
|
3
|
+
import { RowActionService } from '../services/row-action.service';
|
|
3
4
|
import { CommonService } from '../services/common.service';
|
|
4
5
|
import { CdkDrag, CdkDragDrop, CdkDragEnter, CdkDragExit, CdkDragMove, CdkDragSortEvent } from '@angular/cdk/drag-drop';
|
|
5
6
|
import { CdkDropList } from '@angular/cdk/drag-drop';
|
|
@@ -9,16 +10,8 @@ import { ExportService } from '../services/export.service';
|
|
|
9
10
|
import { CellHostDirective } from '../directives/cellHost.directive';
|
|
10
11
|
import { DatePipe } from '@angular/common';
|
|
11
12
|
import { FormatCurrencyPipe } from '../pipes/format-currency.pipe';
|
|
13
|
+
import 'bootstrap/dist/js/bootstrap.bundle.min.js';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare enum RowAnimationType {
|
|
14
|
-
None = "none",
|
|
15
|
-
Spread = "spreadAnimation",
|
|
16
|
-
Bounce = "bounceAnimation",
|
|
17
|
-
SlideUp = "slideUpFromBottom",
|
|
18
|
-
Flip = "flipAnimation",
|
|
19
|
-
Skew = "skewAnimation",
|
|
20
|
-
SlideRight = "slideFromRight"
|
|
21
|
-
}
|
|
22
15
|
export interface DataGridConfig {
|
|
23
16
|
fontFaimly: string;
|
|
24
17
|
bodyTextFontsSize: number;
|
|
@@ -32,6 +25,15 @@ export interface DataGridConfig {
|
|
|
32
25
|
rowShadingEnabled: boolean;
|
|
33
26
|
activeFilters: boolean;
|
|
34
27
|
}
|
|
28
|
+
export declare enum RowAnimationType {
|
|
29
|
+
None = "none",
|
|
30
|
+
Spread = "spreadAnimation",
|
|
31
|
+
Bounce = "bounceAnimation",
|
|
32
|
+
SlideUp = "slideUpFromBottom",
|
|
33
|
+
Flip = "flipAnimation",
|
|
34
|
+
Skew = "skewAnimation",
|
|
35
|
+
SlideRight = "slideFromRight"
|
|
36
|
+
}
|
|
35
37
|
export declare const sortingAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
36
38
|
export declare class DataGridComponent implements OnChanges, AfterViewInit, OnInit, AfterViewChecked {
|
|
37
39
|
private columnService;
|
|
@@ -45,6 +47,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
45
47
|
private exportService;
|
|
46
48
|
private datePipe;
|
|
47
49
|
private formatCurrency;
|
|
50
|
+
private actionValidator;
|
|
48
51
|
rowAnimation: RowAnimationType;
|
|
49
52
|
paginationConfig: any;
|
|
50
53
|
dataSet: any[];
|
|
@@ -115,6 +118,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
115
118
|
nestedTablerowFontsize: number;
|
|
116
119
|
nestedTableHeaderRowHeight: number;
|
|
117
120
|
nestedTablerowHeight: number;
|
|
121
|
+
packageData: boolean;
|
|
122
|
+
showUnLink: any;
|
|
118
123
|
gridType: string;
|
|
119
124
|
currencySymbol: string;
|
|
120
125
|
currencyFormat: string;
|
|
@@ -139,12 +144,11 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
139
144
|
enableCut: boolean;
|
|
140
145
|
tabs: string[];
|
|
141
146
|
showCheckboxes: boolean;
|
|
142
|
-
|
|
143
|
-
defaultConfig: DataGridConfig | null;
|
|
147
|
+
pageSizeOptions: number[];
|
|
144
148
|
resetAllFilters: {
|
|
145
149
|
resetAll: boolean;
|
|
146
150
|
};
|
|
147
|
-
|
|
151
|
+
defaultConfig: DataGridConfig | null;
|
|
148
152
|
columnThreedotsMunuConfig: {
|
|
149
153
|
showPinleft: boolean;
|
|
150
154
|
showPinright: boolean;
|
|
@@ -157,8 +161,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
157
161
|
showChoseColumns: boolean;
|
|
158
162
|
showResetColumns: boolean;
|
|
159
163
|
};
|
|
164
|
+
validateIcon: boolean;
|
|
160
165
|
cellHosts: QueryList<CellHostDirective>;
|
|
161
|
-
globalSearchInput: ElementRef<HTMLInputElement>;
|
|
162
166
|
changeLayout: EventEmitter<any>;
|
|
163
167
|
customCellEvent: EventEmitter<any>;
|
|
164
168
|
filterOptions: EventEmitter<any>;
|
|
@@ -166,6 +170,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
166
170
|
tablePresetConfig: EventEmitter<any>;
|
|
167
171
|
sortingOrderOptions: EventEmitter<any>;
|
|
168
172
|
createUpdateConfigListing: EventEmitter<any>;
|
|
173
|
+
storePresetName: string;
|
|
169
174
|
isFullScreen: boolean;
|
|
170
175
|
activeTab: string | null;
|
|
171
176
|
groupedColumns: any[];
|
|
@@ -183,7 +188,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
183
188
|
filterColumnsList: any[];
|
|
184
189
|
groupBoxPadding: number;
|
|
185
190
|
presetName: string;
|
|
186
|
-
storePresetName: string;
|
|
187
191
|
presetFilter: boolean;
|
|
188
192
|
searchTextPresetTable: string;
|
|
189
193
|
addFilterColumnInput: string;
|
|
@@ -199,13 +203,14 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
199
203
|
fontFamilies: string[];
|
|
200
204
|
fontSizes: string[];
|
|
201
205
|
hasScroll: boolean;
|
|
202
|
-
constructor(columnService: SplitColumnsService, cdr: ChangeDetectorRef, commonSevice: CommonService, elementRef: ElementRef, ngZone: NgZone, copyService: CopyServiceService, renderer: Renderer2, sanitizer: DomSanitizer, exportService: ExportService, datePipe: DatePipe, formatCurrency: FormatCurrencyPipe);
|
|
206
|
+
constructor(columnService: SplitColumnsService, cdr: ChangeDetectorRef, commonSevice: CommonService, elementRef: ElementRef, ngZone: NgZone, copyService: CopyServiceService, renderer: Renderer2, sanitizer: DomSanitizer, exportService: ExportService, datePipe: DatePipe, formatCurrency: FormatCurrencyPipe, actionValidator: RowActionService);
|
|
203
207
|
cellText: any;
|
|
204
208
|
nestedHeader: ElementRef;
|
|
205
209
|
ngAfterViewInit(): Promise<void>;
|
|
206
210
|
private injector;
|
|
207
211
|
createCellInjector(row: any, col: any): Injector;
|
|
208
212
|
private renderCustomCells;
|
|
213
|
+
shouldRestoreScroll: boolean;
|
|
209
214
|
ngAfterViewChecked(): void;
|
|
210
215
|
ngOnInit(): void;
|
|
211
216
|
dataSetLoading: boolean;
|
|
@@ -229,6 +234,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
229
234
|
leftPinnedHeader: ElementRef<HTMLDivElement>;
|
|
230
235
|
centerPinnedHeader: ElementRef<HTMLDivElement>;
|
|
231
236
|
rightPinnedHeader: ElementRef<HTMLDivElement>;
|
|
237
|
+
globalSearchInput: ElementRef<HTMLInputElement>;
|
|
232
238
|
columnsGroupedBox: ElementRef<HTMLDivElement>;
|
|
233
239
|
centerFakeScrollbar: ElementRef<HTMLDivElement>;
|
|
234
240
|
updateColumnWidthsAndGroups(columns?: any): Promise<void>;
|
|
@@ -240,6 +246,25 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
240
246
|
isNestedValueArray(obj: any, field: string): boolean;
|
|
241
247
|
onResizeGroup(event: MouseEvent, col: any, isRightPinned?: boolean): void;
|
|
242
248
|
private updateColumnWidthInSourceByField;
|
|
249
|
+
get createUpdateColumnConfig(): {
|
|
250
|
+
columns: any[];
|
|
251
|
+
filters: any[];
|
|
252
|
+
no_of_records: any;
|
|
253
|
+
table_config: {
|
|
254
|
+
rowShadingEnabled: boolean;
|
|
255
|
+
showVerticalBorder: boolean;
|
|
256
|
+
fontFaimly: string;
|
|
257
|
+
headerTextFontsSize: number;
|
|
258
|
+
selectedTableLayout: any;
|
|
259
|
+
bodyTextFontsSize: number;
|
|
260
|
+
globalSearch: string;
|
|
261
|
+
filterNames: string;
|
|
262
|
+
totalCount: number;
|
|
263
|
+
activeFilters: boolean;
|
|
264
|
+
oddRowsBackgroundColor: string;
|
|
265
|
+
};
|
|
266
|
+
type: string;
|
|
267
|
+
};
|
|
243
268
|
cleanColumns(columns: any[]): any[];
|
|
244
269
|
onResizeColumn(event: MouseEvent, col: any): void;
|
|
245
270
|
onResizeGroupBox(event: MouseEvent): void;
|
|
@@ -254,11 +279,10 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
254
279
|
closeFilterDropdowns(event: MouseEvent): void;
|
|
255
280
|
private hasParentWithClass;
|
|
256
281
|
isMenueHidden: boolean;
|
|
257
|
-
|
|
258
|
-
openThreeDotsMenu(event: MouseEvent, child: any, clickedOnSortIcon?: boolean): void;
|
|
282
|
+
openThreeDotsMenu(event: MouseEvent, child: any, keepOriginalPosition?: boolean): void;
|
|
259
283
|
sortAsc(col: any): void;
|
|
260
284
|
sortDesc(col: any): void;
|
|
261
|
-
resetSort(col
|
|
285
|
+
resetSort(col: any): void;
|
|
262
286
|
updateColumnPinInSourceByField(column: any, pinned: 'left' | 'right' | null, isNestedTable?: any, columns?: any): Promise<void>;
|
|
263
287
|
private getVisibleLeafColumns;
|
|
264
288
|
autosizeColumn(cols: any | any[]): void;
|
|
@@ -401,8 +425,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
401
425
|
firstValue: any;
|
|
402
426
|
firstCondition: string;
|
|
403
427
|
secondValue: any;
|
|
404
|
-
secondCondition: null;
|
|
405
|
-
condition: string;
|
|
428
|
+
secondCondition: string | null;
|
|
429
|
+
condition: string | null;
|
|
406
430
|
resetTextFilterChanges(): void;
|
|
407
431
|
toggleAllValusSelectionInDropdownFilter(column: any): void;
|
|
408
432
|
selectedFilterOptions: any[];
|
|
@@ -410,12 +434,13 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
410
434
|
toggleSelectionInFilter(option: any): void;
|
|
411
435
|
resetFilterChanges(): void;
|
|
412
436
|
applyDropdownFilter(): void;
|
|
437
|
+
private findColumn;
|
|
413
438
|
isFilterAppliedOnColumn(column: any): boolean;
|
|
414
439
|
toggleSelectAllSideFilters(col: any, event: Event): void;
|
|
415
440
|
isAllSideFilterOptionsSelected(col: any): boolean;
|
|
416
441
|
onOptionToggle(col: any, option: any): void;
|
|
417
442
|
resetSideFilter(col: any): void;
|
|
418
|
-
clearAllFilters(): void;
|
|
443
|
+
clearAllFilters(shouldUpdateConfigListing?: boolean): void;
|
|
419
444
|
applySideFilter(column: any): void;
|
|
420
445
|
removeSideFilter(column: any): void;
|
|
421
446
|
collapseAllExpandedCells(): void;
|
|
@@ -444,8 +469,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
444
469
|
id: string;
|
|
445
470
|
is_temp: boolean;
|
|
446
471
|
};
|
|
447
|
-
|
|
448
|
-
selectFilter(data: any, index?: any): Promise<void>;
|
|
472
|
+
selectFilter(data: any): Promise<void>;
|
|
449
473
|
savePreset(control?: any): void;
|
|
450
474
|
getFilterHeaders(filters: any[], columns: any[]): string;
|
|
451
475
|
toggleRowShading(): void;
|
|
@@ -581,7 +605,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
581
605
|
hasAnyDefaultView(): boolean;
|
|
582
606
|
get isTablePresetNotChanged(): any;
|
|
583
607
|
onActionButtonClick(button: string): void;
|
|
584
|
-
createCustomColumn(): void;
|
|
585
608
|
setActiveTab(tab: string | null): void;
|
|
586
609
|
getBackgroundColor(row: any, isEven: boolean, section: 'left' | 'center' | 'right'): string | undefined;
|
|
587
610
|
hasHorizontalScrollbar(): boolean;
|
|
@@ -602,11 +625,26 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
602
625
|
selectGroupRow(e: Event, row: any): void;
|
|
603
626
|
getGroupCheckedState(row: any): boolean | undefined;
|
|
604
627
|
getCellTitle(row: any, col: any): string;
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
628
|
+
finishEdit(event: any): void;
|
|
629
|
+
getDynamicRight(col: any, section: string, colIndex: number, subColIndex: number): number | null;
|
|
630
|
+
blurInput(event: Event, row: any, col: any): void;
|
|
631
|
+
getValidActions(element: any): string[];
|
|
632
|
+
private isStatusField;
|
|
633
|
+
/**
|
|
634
|
+
* Capitalizes the first letter of each word in a string
|
|
635
|
+
* Handles: spaced words, camelCase, snake_case, kebab-case, and compound words
|
|
636
|
+
*/
|
|
637
|
+
private capitalizeStatus;
|
|
638
|
+
gridContext: {
|
|
639
|
+
applyFilter: (col: any) => void;
|
|
640
|
+
clearFilter: (col: any) => void;
|
|
641
|
+
};
|
|
642
|
+
private closeAllFilterMenus;
|
|
643
|
+
private emitFilters;
|
|
644
|
+
applyFilterOnColumn(col: any): void;
|
|
645
|
+
removeFilterFromColumn(col: any): void;
|
|
646
|
+
private replaceColumnQuery;
|
|
647
|
+
getFormatedDate(val: any): string;
|
|
610
648
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
|
|
611
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "data-grid", never, { "rowAnimation": { "alias": "rowAnimation"; "required": false; }; "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; }; "currencyFormat": { "alias": "currencyFormat"; "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; }; "
|
|
649
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent, "data-grid", never, { "rowAnimation": { "alias": "rowAnimation"; "required": false; }; "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; }; "packageData": { "alias": "packageData"; "required": false; }; "showUnLink": { "alias": "showUnLink"; "required": false; }; "gridType": { "alias": "gridType"; "required": false; }; "currencySymbol": { "alias": "currencySymbol"; "required": false; }; "currencyFormat": { "alias": "currencyFormat"; "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; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "resetAllFilters": { "alias": "resetAllFilters"; "required": false; }; "defaultConfig": { "alias": "defaultConfig"; "required": false; }; "columnThreedotsMunuConfig": { "alias": "columnThreedotsMunuConfig"; "required": false; }; "validateIcon": { "alias": "validateIcon"; "required": false; }; }, { "changeLayout": "changeLayout"; "customCellEvent": "customCellEvent"; "filterOptions": "filterOptions"; "genericEvent": "genericEvent"; "tablePresetConfig": "tablePresetConfig"; "sortingOrderOptions": "sortingOrderOptions"; "createUpdateConfigListing": "createUpdateConfigListing"; }, never, never, false, never>;
|
|
612
650
|
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
-
import { OnInit, ViewContainerRef, Injector, Type, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, ViewContainerRef, Injector, ComponentRef, Type, EventEmitter, OnDestroy, SimpleChanges, OnChanges } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CellRenderInitDirective implements OnInit {
|
|
3
|
+
export declare class CellRenderInitDirective implements OnInit, OnChanges, OnDestroy {
|
|
4
4
|
private vcr;
|
|
5
5
|
private injector;
|
|
6
6
|
componentType: Type<any>;
|
|
7
7
|
rowData: any;
|
|
8
8
|
colData: any;
|
|
9
9
|
cellValue: any;
|
|
10
|
+
context: any;
|
|
10
11
|
cellEvent: EventEmitter<{
|
|
11
12
|
eventName: string;
|
|
12
13
|
data: any;
|
|
13
14
|
}>;
|
|
14
15
|
constructor(vcr: ViewContainerRef, injector: Injector);
|
|
16
|
+
componentRef: ComponentRef<any>;
|
|
15
17
|
ngOnInit(): void;
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
16
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<CellRenderInitDirective, never>;
|
|
17
|
-
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; }; }, { "cellEvent": "cellEvent"; }, never, never, false, never>;
|
|
21
|
+
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; }; "context": { "alias": "context"; "required": false; }; }, { "cellEvent": "cellEvent"; }, never, never, false, never>;
|
|
18
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface ActionContext {
|
|
3
|
+
tableType?: string;
|
|
4
|
+
packageData?: boolean;
|
|
5
|
+
showUnLink?: boolean;
|
|
6
|
+
currentUserId?: string | number;
|
|
7
|
+
}
|
|
8
|
+
export declare class RowActionService {
|
|
9
|
+
private readonly STATUS_SETS;
|
|
10
|
+
private readonly ACTION_ALIASES;
|
|
11
|
+
private readonly rules;
|
|
12
|
+
private normalizeRow;
|
|
13
|
+
private normalizeAction;
|
|
14
|
+
private canArchiveOrDelete;
|
|
15
|
+
private canEdit;
|
|
16
|
+
isActionValid(action: string, element: any, ctx?: ActionContext): boolean;
|
|
17
|
+
getValidActions(actions: string[], element: any, ctx?: ActionContext): string[];
|
|
18
|
+
private applyRecruitmentFilters;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowActionService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RowActionService>;
|
|
21
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-data-grid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.118",
|
|
4
4
|
"description": "A powerful, customizable Angular data grid component with advanced features like sorting, filtering, pagination, column pinning, and taskbar actions. Perfect for enterprise applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -48,4 +48,4 @@
|
|
|
48
48
|
"default": "./fesm2022/ms-data-grid.mjs"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|