ms-data-grid 0.0.64 → 0.0.67
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/esm2022/lib/data-grid/data-grid.component.mjs +180 -93
- package/esm2022/lib/data-grid.module.mjs +7 -7
- package/esm2022/lib/directives/cell-editor.directive.mjs +75 -0
- package/esm2022/lib/services/common.service.mjs +74 -4
- package/fesm2022/ms-data-grid.mjs +380 -153
- package/fesm2022/ms-data-grid.mjs.map +1 -1
- package/lib/data-grid/data-grid.component.d.ts +5 -2
- package/lib/data-grid.module.d.ts +8 -7
- package/lib/directives/cell-editor.directive.d.ts +18 -0
- package/lib/services/common.service.d.ts +6 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
|
8
8
|
import { ExportService } from '../services/export.service';
|
|
9
9
|
import { CellHostDirective } from '../directives/cellHost.directive';
|
|
10
10
|
import { DatePipe } from '@angular/common';
|
|
11
|
+
import { FormatCurrencyPipe } from '../pipes/format-currency.pipe';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare enum RowAnimationType {
|
|
13
14
|
None = "none",
|
|
@@ -30,6 +31,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
30
31
|
private sanitizer;
|
|
31
32
|
private exportService;
|
|
32
33
|
private datePipe;
|
|
34
|
+
private formatCurrency;
|
|
33
35
|
rowAnimation: RowAnimationType;
|
|
34
36
|
paginationConfig: any;
|
|
35
37
|
dataSet: any[];
|
|
@@ -179,7 +181,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
179
181
|
fontFamilies: string[];
|
|
180
182
|
fontSizes: string[];
|
|
181
183
|
hasScroll: boolean;
|
|
182
|
-
constructor(columnService: SplitColumnsService, cdr: ChangeDetectorRef, commonSevice: CommonService, elementRef: ElementRef, ngZone: NgZone, copyService: CopyServiceService, renderer: Renderer2, sanitizer: DomSanitizer, exportService: ExportService, datePipe: DatePipe);
|
|
184
|
+
constructor(columnService: SplitColumnsService, cdr: ChangeDetectorRef, commonSevice: CommonService, elementRef: ElementRef, ngZone: NgZone, copyService: CopyServiceService, renderer: Renderer2, sanitizer: DomSanitizer, exportService: ExportService, datePipe: DatePipe, formatCurrency: FormatCurrencyPipe);
|
|
183
185
|
cellText: any;
|
|
184
186
|
nestedHeader: ElementRef;
|
|
185
187
|
ngAfterViewInit(): void;
|
|
@@ -359,6 +361,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
359
361
|
toggleSubActions(type: string): void;
|
|
360
362
|
toggleActionsDropdown(): void;
|
|
361
363
|
changeTableLayout(event: Event, layoutType: string): Promise<void>;
|
|
364
|
+
setTableLayout(layoutType: string): void;
|
|
362
365
|
pageSizeOptions: number[];
|
|
363
366
|
get startIndexData(): number;
|
|
364
367
|
get endIndex(): number;
|
|
@@ -571,7 +574,7 @@ export declare class DataGridComponent implements OnChanges, AfterViewInit, OnIn
|
|
|
571
574
|
selectGroupRow(e: Event, row: any): void;
|
|
572
575
|
getGroupCheckedState(row: any): boolean | undefined;
|
|
573
576
|
getCellTitle(row: any, col: any): string;
|
|
574
|
-
|
|
577
|
+
finishEdit(event: any): void;
|
|
575
578
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent, never>;
|
|
576
579
|
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; }; "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>;
|
|
577
580
|
}
|
|
@@ -3,14 +3,15 @@ import * as i1 from "./data-grid/data-grid.component";
|
|
|
3
3
|
import * as i2 from "./pipes/filter.pipe";
|
|
4
4
|
import * as i3 from "./directives/cellHost.directive";
|
|
5
5
|
import * as i4 from "./directives/cell-render-init.directive";
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "@angular/
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
6
|
+
import * as i5 from "./directives/cell-editor.directive";
|
|
7
|
+
import * as i6 from "./pipes/format-currency.pipe";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "@angular/cdk/drag-drop";
|
|
11
|
+
import * as i10 from "ng-inline-svg";
|
|
12
|
+
import * as i11 from "@angular/cdk/scrolling";
|
|
12
13
|
export declare class DataGridModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DataGridModule, [typeof i1.DataGridComponent, typeof i2.FilterPipe, typeof i3.CellHostDirective, typeof i4.CellRenderInitDirective, typeof i5.FormatCurrencyPipe], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DataGridModule, [typeof i1.DataGridComponent, typeof i2.FilterPipe, typeof i3.CellHostDirective, typeof i4.CellRenderInitDirective, typeof i5.CellEditorDirective, typeof i6.FormatCurrencyPipe], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.DragDropModule, typeof i10.InlineSVGModule, typeof i11.ScrollingModule], [typeof i1.DataGridComponent]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<DataGridModule>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnInit, ViewContainerRef, Injector, Type, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CellEditorDirective implements OnInit {
|
|
4
|
+
private vcr;
|
|
5
|
+
private injector;
|
|
6
|
+
componentType: Type<any>;
|
|
7
|
+
rowData: any;
|
|
8
|
+
colData: any;
|
|
9
|
+
cellValue: any;
|
|
10
|
+
editorEvent: EventEmitter<{
|
|
11
|
+
eventName: string;
|
|
12
|
+
data: any;
|
|
13
|
+
}>;
|
|
14
|
+
constructor(vcr: ViewContainerRef, injector: Injector);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CellEditorDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CellEditorDirective, "[cellEditor]", never, { "componentType": { "alias": "cellEditor"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "colData": { "alias": "colData"; "required": false; }; "cellValue": { "alias": "cellValue"; "required": false; }; }, { "editorEvent": "editorEvent"; }, never, never, false, never>;
|
|
18
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class CommonService {
|
|
3
|
-
|
|
4
|
+
private datePipe;
|
|
5
|
+
constructor(datePipe: DatePipe);
|
|
4
6
|
gethasVisibleColumns(columns: any[]): boolean;
|
|
5
7
|
gethasInVisibleColumns(columns: any[]): boolean;
|
|
6
8
|
getTotalColumnsLength(columns: any[]): number;
|
|
@@ -13,6 +15,9 @@ export declare class CommonService {
|
|
|
13
15
|
updateActiveFilteredColumns(columns: any[]): any[];
|
|
14
16
|
hasFieldChanged(current: any, original: any, type: string): boolean;
|
|
15
17
|
copyDropdownDataRecursively(columns: any[]): Promise<any[]>;
|
|
18
|
+
formatDateValue(value: any, momentFormat?: string): string;
|
|
19
|
+
private convertMomentToAngularDateFormat;
|
|
20
|
+
private parseDDMMYYYY;
|
|
16
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonService, never>;
|
|
17
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<CommonService>;
|
|
18
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ms-data-grid",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
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",
|