ms-data-grid 0.0.122 → 0.0.124

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.
@@ -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[];
@@ -92,6 +95,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
92
95
  tableSearch: string;
93
96
  actions: any[];
94
97
  config: any;
98
+ selectedTab: string;
95
99
  showTaskbar: boolean;
96
100
  tableName: boolean;
97
101
  listingType: string | boolean;
@@ -115,6 +119,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
115
119
  nestedTablerowFontsize: number;
116
120
  nestedTableHeaderRowHeight: number;
117
121
  nestedTablerowHeight: number;
122
+ packageData: boolean;
123
+ showUnLink: any;
118
124
  gridType: string;
119
125
  currencySymbol: string;
120
126
  currencyFormat: string;
@@ -139,12 +145,11 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
139
145
  enableCut: boolean;
140
146
  tabs: string[];
141
147
  showCheckboxes: boolean;
142
- consumerFont: string | null;
143
- defaultConfig: DataGridConfig | null;
148
+ pageSizeOptions: number[];
144
149
  resetAllFilters: {
145
150
  resetAll: boolean;
146
151
  };
147
- pageSizeOptions: number[];
152
+ defaultConfig: DataGridConfig | null;
148
153
  columnThreedotsMunuConfig: {
149
154
  showPinleft: boolean;
150
155
  showPinright: boolean;
@@ -157,8 +162,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
157
162
  showChoseColumns: boolean;
158
163
  showResetColumns: boolean;
159
164
  };
165
+ validateIcon: boolean;
160
166
  cellHosts: QueryList<CellHostDirective>;
161
- globalSearchInput: ElementRef<HTMLInputElement>;
162
167
  changeLayout: EventEmitter<any>;
163
168
  customCellEvent: EventEmitter<any>;
164
169
  filterOptions: EventEmitter<any>;
@@ -166,6 +171,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
166
171
  tablePresetConfig: EventEmitter<any>;
167
172
  sortingOrderOptions: EventEmitter<any>;
168
173
  createUpdateConfigListing: EventEmitter<any>;
174
+ storePresetName: string;
169
175
  isFullScreen: boolean;
170
176
  activeTab: string | null;
171
177
  groupedColumns: any[];
@@ -183,7 +189,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
183
189
  filterColumnsList: any[];
184
190
  groupBoxPadding: number;
185
191
  presetName: string;
186
- storePresetName: string;
187
192
  presetFilter: boolean;
188
193
  searchTextPresetTable: string;
189
194
  addFilterColumnInput: string;
@@ -196,16 +201,18 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
196
201
  editinDropdownSearch: string;
197
202
  isThreeDotsFilterOpen: boolean;
198
203
  confirmDelete: boolean;
204
+ private originalActions;
199
205
  fontFamilies: string[];
200
206
  fontSizes: string[];
201
207
  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);
208
+ 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
209
  cellText: any;
204
210
  nestedHeader: ElementRef;
205
211
  ngAfterViewInit(): Promise<void>;
206
212
  private injector;
207
213
  createCellInjector(row: any, col: any): Injector;
208
214
  private renderCustomCells;
215
+ shouldRestoreScroll: boolean;
209
216
  ngAfterViewChecked(): void;
210
217
  ngOnInit(): void;
211
218
  dataSetLoading: boolean;
@@ -229,6 +236,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
229
236
  leftPinnedHeader: ElementRef<HTMLDivElement>;
230
237
  centerPinnedHeader: ElementRef<HTMLDivElement>;
231
238
  rightPinnedHeader: ElementRef<HTMLDivElement>;
239
+ globalSearchInput: ElementRef<HTMLInputElement>;
232
240
  columnsGroupedBox: ElementRef<HTMLDivElement>;
233
241
  centerFakeScrollbar: ElementRef<HTMLDivElement>;
234
242
  updateColumnWidthsAndGroups(columns?: any): Promise<void>;
@@ -240,6 +248,25 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
240
248
  isNestedValueArray(obj: any, field: string): boolean;
241
249
  onResizeGroup(event: MouseEvent, col: any, isRightPinned?: boolean): void;
242
250
  private updateColumnWidthInSourceByField;
251
+ get createUpdateColumnConfig(): {
252
+ columns: any[];
253
+ filters: any[];
254
+ no_of_records: any;
255
+ table_config: {
256
+ rowShadingEnabled: boolean;
257
+ showVerticalBorder: boolean;
258
+ fontFaimly: string;
259
+ headerTextFontsSize: number;
260
+ selectedTableLayout: any;
261
+ bodyTextFontsSize: number;
262
+ globalSearch: string;
263
+ filterNames: string;
264
+ totalCount: number;
265
+ activeFilters: boolean;
266
+ oddRowsBackgroundColor: string;
267
+ };
268
+ type: string;
269
+ };
243
270
  cleanColumns(columns: any[]): any[];
244
271
  onResizeColumn(event: MouseEvent, col: any): void;
245
272
  onResizeGroupBox(event: MouseEvent): void;
@@ -254,11 +281,10 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
254
281
  closeFilterDropdowns(event: MouseEvent): void;
255
282
  private hasParentWithClass;
256
283
  isMenueHidden: boolean;
257
- clickedOnSortIcon: boolean;
258
- openThreeDotsMenu(event: MouseEvent, child: any, clickedOnSortIcon?: boolean): void;
284
+ openThreeDotsMenu(event: MouseEvent, child: any, keepOriginalPosition?: boolean): void;
259
285
  sortAsc(col: any): void;
260
286
  sortDesc(col: any): void;
261
- resetSort(col?: any): void;
287
+ resetSort(col: any): void;
262
288
  updateColumnPinInSourceByField(column: any, pinned: 'left' | 'right' | null, isNestedTable?: any, columns?: any): Promise<void>;
263
289
  private getVisibleLeafColumns;
264
290
  autosizeColumn(cols: any | any[]): void;
@@ -401,8 +427,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
401
427
  firstValue: any;
402
428
  firstCondition: string;
403
429
  secondValue: any;
404
- secondCondition: null;
405
- condition: string;
430
+ secondCondition: string | null;
431
+ condition: string | null;
406
432
  resetTextFilterChanges(): void;
407
433
  toggleAllValusSelectionInDropdownFilter(column: any): void;
408
434
  selectedFilterOptions: any[];
@@ -410,12 +436,13 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
410
436
  toggleSelectionInFilter(option: any): void;
411
437
  resetFilterChanges(): void;
412
438
  applyDropdownFilter(): void;
439
+ private findColumn;
413
440
  isFilterAppliedOnColumn(column: any): boolean;
414
441
  toggleSelectAllSideFilters(col: any, event: Event): void;
415
442
  isAllSideFilterOptionsSelected(col: any): boolean;
416
443
  onOptionToggle(col: any, option: any): void;
417
444
  resetSideFilter(col: any): void;
418
- clearAllFilters(): void;
445
+ clearAllFilters(shouldUpdateConfigListing?: boolean): void;
419
446
  applySideFilter(column: any): void;
420
447
  removeSideFilter(column: any): void;
421
448
  collapseAllExpandedCells(): void;
@@ -427,6 +454,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
427
454
  setActiveCell(row: any, column: any): void;
428
455
  isActiveCell(row: any, col: any): boolean;
429
456
  textAreadInput: ElementRef<HTMLTextAreaElement>;
457
+ menuReady: boolean;
430
458
  enableEdit(row: any, column: any, clickedFromDetailsBox?: boolean, cellContainer?: HTMLElement): void;
431
459
  disableEdit(row: any, column: any, control?: any): void;
432
460
  emailRegex: RegExp;
@@ -435,6 +463,18 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
435
463
  checkRowEditAndEmitValue(row: any, column: any, value?: any): void;
436
464
  isEditing(row: any, col: any): boolean;
437
465
  setNestedValue(obj: any, column: any, option: any, calledFromInput?: boolean): void;
466
+ arrayTempMap: Map<string, any[]>;
467
+ private arrayKey;
468
+ getArrayOptionId(option: any): any;
469
+ getArrayOptionLabel(option: any): string;
470
+ getArrayTemp(row: any, col: any): any[];
471
+ isArraySelected(row: any, col: any, option: any): boolean;
472
+ toggleArrayTemp(row: any, col: any, option: any): void;
473
+ commitArray(row: any, col: any): void;
474
+ onArrayBlur(row: any, col: any): void;
475
+ cleanupArray(row: any, col: any): void;
476
+ displayArrayValues(ids: any[], col?: any): string;
477
+ displayArrayLabels(row: any, col: any): string;
438
478
  goToPage(page: any): void;
439
479
  onPageSizeChange(): void;
440
480
  actionPreset(data: any, type: any): void;
@@ -444,8 +484,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
444
484
  id: string;
445
485
  is_temp: boolean;
446
486
  };
447
- activeIndex: number | null | undefined;
448
- selectFilter(data: any, index?: any): Promise<void>;
487
+ selectFilter(data: any): Promise<void>;
449
488
  savePreset(control?: any): void;
450
489
  getFilterHeaders(filters: any[], columns: any[]): string;
451
490
  toggleRowShading(): void;
@@ -581,7 +620,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
581
620
  hasAnyDefaultView(): boolean;
582
621
  get isTablePresetNotChanged(): any;
583
622
  onActionButtonClick(button: string): void;
584
- createCustomColumn(): void;
585
623
  setActiveTab(tab: string | null): void;
586
624
  getBackgroundColor(row: any, isEven: boolean, section: 'left' | 'center' | 'right'): string | undefined;
587
625
  hasHorizontalScrollbar(): boolean;
@@ -602,11 +640,30 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
602
640
  selectGroupRow(e: Event, row: any): void;
603
641
  getGroupCheckedState(row: any): boolean | undefined;
604
642
  getCellTitle(row: any, col: any): string;
605
- activeFilterType: string;
606
- activeFilter(type: string): void;
607
- duplicateFilter(): void;
608
- renameFilter(filter: any): void;
609
- deleteFilter(filter: any): void;
643
+ finishEdit(event: any): void;
644
+ getDynamicRight(col: any, section: string, colIndex: number, subColIndex: number): number | null;
645
+ blurInput(event: Event, row: any, col: any): void;
646
+ getValidActions(element: any): string[];
647
+ private isStatusField;
648
+ /**
649
+ * Capitalizes the first letter of each word in a string
650
+ * Handles: spaced words, camelCase, snake_case, kebab-case, and compound words
651
+ */
652
+ private capitalizeStatus;
653
+ gridContext: {
654
+ applyFilter: (col: any) => void;
655
+ clearFilter: (col: any) => void;
656
+ };
657
+ private closeAllFilterMenus;
658
+ private emitFilters;
659
+ applyFilterOnColumn(col: any): void;
660
+ removeFilterFromColumn(col: any): void;
661
+ private replaceColumnQuery;
662
+ getFormatedDate(val: any): string;
663
+ /**
664
+ * Closes all expanded detail rows
665
+ */
666
+ closeAllExpandedRows(): void;
610
667
  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; }; "consumerFont": { "alias": "consumerFont"; "required": false; }; "defaultConfig": { "alias": "defaultConfig"; "required": false; }; "resetAllFilters": { "alias": "resetAllFilters"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "columnThreedotsMunuConfig": { "alias": "columnThreedotsMunuConfig"; "required": false; }; }, { "changeLayout": "changeLayout"; "customCellEvent": "customCellEvent"; "filterOptions": "filterOptions"; "genericEvent": "genericEvent"; "tablePresetConfig": "tablePresetConfig"; "sortingOrderOptions": "sortingOrderOptions"; "createUpdateConfigListing": "createUpdateConfigListing"; }, never, never, false, never>;
668
+ 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; }; "selectedTab": { "alias": "selectedTab"; "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
669
  }
@@ -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.122",
3
+ "version": "0.0.124",
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",