eru-grid 0.0.27 → 0.0.28
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/fesm2022/eru-grid.mjs +79 -5
- package/fesm2022/eru-grid.mjs.map +1 -1
- package/package.json +1 -1
- package/types/eru-grid.d.ts +17 -2
package/package.json
CHANGED
package/types/eru-grid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as eru_grid from 'eru-grid';
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit, AfterViewInit, OnDestroy, QueryList, ElementRef, TemplateRef, ChangeDetectorRef, Provider
|
|
3
|
+
import { OnInit, AfterViewInit, OnDestroy, QueryList, ElementRef, TemplateRef, EventEmitter, ChangeDetectorRef, Provider } from '@angular/core';
|
|
4
4
|
import { FixedSizeVirtualScrollStrategy, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
5
5
|
import { MatDatepicker } from '@angular/material/datepicker';
|
|
6
6
|
|
|
@@ -71,6 +71,7 @@ interface GridFeatures {
|
|
|
71
71
|
groupBar?: boolean;
|
|
72
72
|
headerRowHeight?: number;
|
|
73
73
|
dataRowHeight?: number;
|
|
74
|
+
cursorOnHover?: string;
|
|
74
75
|
}
|
|
75
76
|
interface GridStyles {
|
|
76
77
|
subTotalStyle?: 'bold' | 'italic' | 'highlighted';
|
|
@@ -119,6 +120,8 @@ interface Field {
|
|
|
119
120
|
num_val?: number;
|
|
120
121
|
num_val_check?: 'MAX' | 'MIN';
|
|
121
122
|
seperator?: 'thousands' | 'millions' | 'none';
|
|
123
|
+
dynamic_number?: boolean;
|
|
124
|
+
display_number_as?: 'lacs' | 'mn';
|
|
122
125
|
isLeaf?: boolean;
|
|
123
126
|
parentPath?: string[];
|
|
124
127
|
children?: Field[];
|
|
@@ -954,6 +957,17 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
954
957
|
* Default: 208 (matches the built-in default card height).
|
|
955
958
|
*/
|
|
956
959
|
boardCardHeight: number;
|
|
960
|
+
/**
|
|
961
|
+
* Fires when a user clicks a row (table mode) or card (board mode).
|
|
962
|
+
* Consumers can subscribe to drive navigation, side-panel detail views,
|
|
963
|
+
* or trigger configured studio actions on row selection.
|
|
964
|
+
*/
|
|
965
|
+
rowSelect: EventEmitter<{
|
|
966
|
+
row: Row;
|
|
967
|
+
mode: "table" | "board";
|
|
968
|
+
group?: RowGroup;
|
|
969
|
+
}>;
|
|
970
|
+
emitRowSelect(row: Row, mode: 'table' | 'board', group?: RowGroup): void;
|
|
957
971
|
initialMinHeight: number;
|
|
958
972
|
initialTotalWidth: number;
|
|
959
973
|
viewport: CdkVirtualScrollViewport;
|
|
@@ -987,6 +1001,7 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
987
1001
|
showGroupBar: _angular_core.Signal<boolean>;
|
|
988
1002
|
headerRowHeight: _angular_core.Signal<number>;
|
|
989
1003
|
dataRowHeight: _angular_core.Signal<number>;
|
|
1004
|
+
cursorOnHover: _angular_core.Signal<string>;
|
|
990
1005
|
freezeHeader: _angular_core.Signal<boolean>;
|
|
991
1006
|
freezeGrandTotal: _angular_core.Signal<boolean>;
|
|
992
1007
|
grandTotalPosition: _angular_core.Signal<"before" | "after">;
|
|
@@ -1268,7 +1283,7 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
1268
1283
|
requestBoardRowsForGroup(group: RowGroup): void;
|
|
1269
1284
|
loadBoardAll(): void;
|
|
1270
1285
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EruGridComponent, never>;
|
|
1271
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EruGridComponent, "eru-grid", never, { "gridConfig": { "alias": "gridConfig"; "required": false; }; "boardCardTemplate": { "alias": "boardCardTemplate"; "required": false; }; "boardCardHeight": { "alias": "boardCardHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
1286
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EruGridComponent, "eru-grid", never, { "gridConfig": { "alias": "gridConfig"; "required": false; }; "boardCardTemplate": { "alias": "boardCardTemplate"; "required": false; }; "boardCardHeight": { "alias": "boardCardHeight"; "required": false; }; }, { "rowSelect": "rowSelect"; }, never, never, true, never>;
|
|
1272
1287
|
}
|
|
1273
1288
|
interface GroupItem {
|
|
1274
1289
|
type: 'header' | 'row' | 'table-header' | 'row-place-holder' | 'ghost-loading';
|