ms-data-grid 0.0.94 → 0.0.95

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[];
@@ -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,11 +144,11 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
139
144
  enableCut: boolean;
140
145
  tabs: string[];
141
146
  showCheckboxes: boolean;
142
- consumerFont: string | null;
143
- defaultConfig: DataGridConfig | null;
147
+ pageSizeOptions: number[];
144
148
  resetAllFilters: {
145
149
  resetAll: boolean;
146
150
  };
151
+ defaultConfig: DataGridConfig | null;
147
152
  columnThreedotsMunuConfig: {
148
153
  showPinleft: boolean;
149
154
  showPinright: boolean;
@@ -156,8 +161,8 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
156
161
  showChoseColumns: boolean;
157
162
  showResetColumns: boolean;
158
163
  };
164
+ validateIcon: boolean;
159
165
  cellHosts: QueryList<CellHostDirective>;
160
- globalSearchInput: ElementRef<HTMLInputElement>;
161
166
  changeLayout: EventEmitter<any>;
162
167
  customCellEvent: EventEmitter<any>;
163
168
  filterOptions: EventEmitter<any>;
@@ -165,6 +170,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
165
170
  tablePresetConfig: EventEmitter<any>;
166
171
  sortingOrderOptions: EventEmitter<any>;
167
172
  createUpdateConfigListing: EventEmitter<any>;
173
+ storePresetName: string;
168
174
  isFullScreen: boolean;
169
175
  activeTab: string | null;
170
176
  groupedColumns: any[];
@@ -182,7 +188,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
182
188
  filterColumnsList: any[];
183
189
  groupBoxPadding: number;
184
190
  presetName: string;
185
- storePresetName: string;
186
191
  presetFilter: boolean;
187
192
  searchTextPresetTable: string;
188
193
  addFilterColumnInput: string;
@@ -198,13 +203,14 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
198
203
  fontFamilies: string[];
199
204
  fontSizes: string[];
200
205
  hasScroll: boolean;
201
- 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);
202
207
  cellText: any;
203
208
  nestedHeader: ElementRef;
204
- ngAfterViewInit(): void;
209
+ ngAfterViewInit(): Promise<void>;
205
210
  private injector;
206
211
  createCellInjector(row: any, col: any): Injector;
207
212
  private renderCustomCells;
213
+ shouldRestoreScroll: boolean;
208
214
  ngAfterViewChecked(): void;
209
215
  ngOnInit(): void;
210
216
  dataSetLoading: boolean;
@@ -228,6 +234,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
228
234
  leftPinnedHeader: ElementRef<HTMLDivElement>;
229
235
  centerPinnedHeader: ElementRef<HTMLDivElement>;
230
236
  rightPinnedHeader: ElementRef<HTMLDivElement>;
237
+ globalSearchInput: ElementRef<HTMLInputElement>;
231
238
  columnsGroupedBox: ElementRef<HTMLDivElement>;
232
239
  centerFakeScrollbar: ElementRef<HTMLDivElement>;
233
240
  updateColumnWidthsAndGroups(columns?: any): Promise<void>;
@@ -239,6 +246,25 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
239
246
  isNestedValueArray(obj: any, field: string): boolean;
240
247
  onResizeGroup(event: MouseEvent, col: any, isRightPinned?: boolean): void;
241
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 | undefined;
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
+ };
242
268
  cleanColumns(columns: any[]): any[];
243
269
  onResizeColumn(event: MouseEvent, col: any): void;
244
270
  onResizeGroupBox(event: MouseEvent): void;
@@ -253,8 +279,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
253
279
  closeFilterDropdowns(event: MouseEvent): void;
254
280
  private hasParentWithClass;
255
281
  isMenueHidden: boolean;
256
- clickedOnSortIcon: boolean;
257
- openThreeDotsMenu(event: MouseEvent, child: any, clickedOnSortIcon?: boolean): void;
282
+ openThreeDotsMenu(event: MouseEvent, child: any, keepOriginalPosition?: boolean): void;
258
283
  sortAsc(col: any): void;
259
284
  sortDesc(col: any): void;
260
285
  resetSort(col: any): void;
@@ -382,7 +407,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
382
407
  toggleActionsDropdown(): void;
383
408
  changeTableLayout(event: Event, layoutType: string): Promise<void>;
384
409
  setTableLayout(layoutType: string): void;
385
- pageSizeOptions: number[];
386
410
  get startIndexData(): number;
387
411
  get endIndex(): number;
388
412
  get visiblePages(): (number | string)[];
@@ -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[];
@@ -415,7 +439,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
415
439
  isAllSideFilterOptionsSelected(col: any): boolean;
416
440
  onOptionToggle(col: any, option: any): void;
417
441
  resetSideFilter(col: any): void;
418
- clearAllFilters(): void;
442
+ clearAllFilters(shouldUpdateConfigListing?: boolean): void;
419
443
  applySideFilter(column: any): void;
420
444
  removeSideFilter(column: any): void;
421
445
  collapseAllExpandedCells(): void;
@@ -580,7 +604,6 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
580
604
  hasAnyDefaultView(): boolean;
581
605
  get isTablePresetNotChanged(): any;
582
606
  onActionButtonClick(button: string): void;
583
- createCustomColumn(): void;
584
607
  setActiveTab(tab: string | null): void;
585
608
  getBackgroundColor(row: any, isEven: boolean, section: 'left' | 'center' | 'right'): string | undefined;
586
609
  hasHorizontalScrollbar(): boolean;
@@ -601,8 +624,10 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
601
624
  selectGroupRow(e: Event, row: any): void;
602
625
  getGroupCheckedState(row: any): boolean | undefined;
603
626
  getCellTitle(row: any, col: any): string;
604
- activeFilterType: string;
605
- activeFilter(type: string): void;
627
+ finishEdit(event: any): void;
628
+ getDynamicRight(col: any, section: string, colIndex: number, subColIndex: number): number | null;
629
+ blurInput(event: Event, row: any, col: any): void;
630
+ getValidActions(element: any): string[];
606
631
  static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
607
- 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; }; "columnThreedotsMunuConfig": { "alias": "columnThreedotsMunuConfig"; "required": false; }; }, { "changeLayout": "changeLayout"; "customCellEvent": "customCellEvent"; "filterOptions": "filterOptions"; "genericEvent": "genericEvent"; "tablePresetConfig": "tablePresetConfig"; "sortingOrderOptions": "sortingOrderOptions"; "createUpdateConfigListing": "createUpdateConfigListing"; }, never, never, false, never>;
632
+ 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>;
608
633
  }
@@ -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.94",
3
+ "version": "0.0.95",
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",
@@ -1,34 +0,0 @@
1
- @font-face {
2
- font-family: "Inter";
3
- src: url("../assets/fonts/Inter/static/Inter_18pt-Regular.ttf") format("truetype");
4
- font-weight: 400;
5
- font-style: normal;
6
- font-display: swap;
7
- }
8
-
9
- /* medium */
10
- @font-face {
11
- font-family: "Inter";
12
- src: url("../assets/fonts/Inter/static/Inter_18pt-Medium.ttf") format("truetype");
13
- font-weight: 500;
14
- font-style: normal;
15
- font-display: swap;
16
- }
17
-
18
- /* bold */
19
- @font-face {
20
- font-family: "Inter";
21
- src: url("../assets/fonts/Inter/static/Inter_18pt-Bold.ttf") format("truetype");
22
- font-weight: 700;
23
- font-style: normal;
24
- font-display: swap;
25
- }
26
-
27
- /* semi bold */
28
- @font-face {
29
- font-family: "Inter";
30
- src: url("../assets/fonts/Inter/static/Inter_18pt-SemiBold.ttf") format("truetype");
31
- font-weight: 600;
32
- font-style: normal;
33
- font-display: swap;
34
- }