eru-grid 0.0.2 → 0.0.3

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/index.d.ts CHANGED
@@ -51,6 +51,7 @@ interface GridFeatures {
51
51
  freezeField?: string;
52
52
  gridLineColor?: string;
53
53
  gridLineWidth?: number;
54
+ replaceZeroValue?: string;
54
55
  }
55
56
  interface GridStyles {
56
57
  gridLineColor?: string;
@@ -87,6 +88,7 @@ interface Field {
87
88
  rowspan?: number;
88
89
  showSubtotals?: boolean;
89
90
  aggregationFunction?: AggregationFunction;
91
+ enableDrilldown?: boolean;
90
92
  }
91
93
  type DataTypes = 'number' | 'textbox' | 'currency' | 'date' | 'dropdown_single_select' | 'dropdown_multi_select' | 'location' | 'email' | 'people' | 'checkbox' | 'phone' | 'priority' | 'status' | 'progress' | 'attachment' | 'tags';
92
94
  type AggregationFunction = 'sum' | 'count' | 'avg' | 'min' | 'max';
@@ -151,6 +153,12 @@ interface PivotResult {
151
153
  headerStructure?: PivotHeaderStructure;
152
154
  columnGroupState?: PivotColumnGroupState;
153
155
  }
156
+ interface PivotDrilldown {
157
+ columnName: string;
158
+ rowId: string;
159
+ rowData?: any;
160
+ columnValue: any;
161
+ }
154
162
 
155
163
  declare class PivotTransformService {
156
164
  private columnGroupState;
@@ -329,7 +337,7 @@ declare class PivotTransformService {
329
337
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<PivotTransformService>;
330
338
  }
331
339
 
332
- declare class GridStore {
340
+ declare class EruGridStore {
333
341
  private readonly gridConfigService;
334
342
  private readonly pivotTransformService;
335
343
  private readonly _columns;
@@ -342,6 +350,7 @@ declare class GridStore {
342
350
  private readonly _activeCell;
343
351
  private readonly _pivotConfiguration;
344
352
  private readonly _pivotResult;
353
+ private readonly _pivotDrilldown;
345
354
  readonly columns: _angular_core.Signal<Field[]>;
346
355
  readonly groups: _angular_core.Signal<RowGroup[]>;
347
356
  readonly rows: _angular_core.Signal<Row[]>;
@@ -352,6 +361,7 @@ declare class GridStore {
352
361
  readonly activeCell: _angular_core.Signal<any>;
353
362
  readonly pivotConfiguration: _angular_core.Signal<PivotConfiguration | null>;
354
363
  readonly pivotResult: _angular_core.Signal<PivotResult | null>;
364
+ readonly pivotDrilldown: _angular_core.Signal<PivotDrilldown | null>;
355
365
  readonly selectedRows: _angular_core.Signal<Row[]>;
356
366
  readonly totalSelectedCount: _angular_core.Signal<number>;
357
367
  readonly hasSelection: _angular_core.Signal<boolean>;
@@ -366,6 +376,7 @@ declare class GridStore {
366
376
  readonly pivotDisplayData: _angular_core.Signal<eru_grid.PivotRow[]>;
367
377
  readonly tableDisplayData: _angular_core.Signal<Row[]>;
368
378
  setColumns(columns: Field[]): void;
379
+ getConfiguration(): GridConfiguration;
369
380
  reorderColumns(fromIndex: number, toIndex: number): void;
370
381
  updateColumnWidth(columnName: string, field_size: number): void;
371
382
  setGroups(groups: RowGroup[]): void;
@@ -427,8 +438,10 @@ declare class GridStore {
427
438
  * Get the freeze field name
428
439
  */
429
440
  getFreezeField(): string | null;
430
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<GridStore, never>;
431
- static ɵprov: _angular_core.ɵɵInjectableDeclaration<GridStore>;
441
+ setPivotDrilldown(drilldown: PivotDrilldown, columnValues: string): void;
442
+ clearPivotDrilldown(): void;
443
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EruGridStore, never>;
444
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<EruGridStore>;
432
445
  }
433
446
 
434
447
  type Theme = 'light' | 'dark' | 'high-contrast' | 'auto';
@@ -478,10 +491,10 @@ declare class ColumnConstraintsService {
478
491
  }
479
492
 
480
493
  declare class EruGridService {
481
- private gridStore;
494
+ private eruGridStore;
482
495
  private themeService;
483
496
  private columnConstraintsService;
484
- constructor(gridStore: GridStore, themeService: ThemeService, columnConstraintsService: ColumnConstraintsService);
497
+ constructor(eruGridStore: EruGridStore, themeService: ThemeService, columnConstraintsService: ColumnConstraintsService);
485
498
  set_table_configuration(data: GridConfiguration): void;
486
499
  set_table_group(data: RowGroup[]): void;
487
500
  get columns(): _angular_core.Signal<Field[]>;
@@ -541,14 +554,14 @@ declare class EruGridService {
541
554
  /**
542
555
  * Get direct access to grid store (for debugging purposes)
543
556
  */
544
- getGridStore(): GridStore;
557
+ getGridStore(): EruGridStore;
545
558
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EruGridService, never>;
546
559
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<EruGridService>;
547
560
  }
548
561
 
549
562
  declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
550
563
  private changeDetectorRef;
551
- gridStore: GridStore;
564
+ gridStore: EruGridStore;
552
565
  private resizeObserver;
553
566
  isColumnReordering: _angular_core.WritableSignal<boolean>;
554
567
  viewport?: CdkVirtualScrollViewport;
@@ -786,5 +799,5 @@ declare class ThemeToggleComponent {
786
799
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeToggleComponent, "eru-theme-toggle", never, {}, {}, never, never, true, never>;
787
800
  }
788
801
 
789
- export { ColumnConstraintsService, EruGridComponent, EruGridService, GridStore, ThemeService, ThemeToggleComponent };
790
- export type { AggregationFunction, ColumnWidthConstraints, DataTypes, Field, GridConfiguration, GridFeatures, GridMode, GridStyles, GroupItem$1 as GroupItem, PivotColumnGroupState, PivotColumnHeader, PivotConfiguration, PivotHeaderStructure, PivotMetadata, PivotResult, PivotRow, Row, RowGroup, Theme };
802
+ export { ColumnConstraintsService, EruGridComponent, EruGridService, EruGridStore, ThemeService, ThemeToggleComponent };
803
+ export type { AggregationFunction, ColumnWidthConstraints, DataTypes, Field, GridConfiguration, GridFeatures, GridMode, GridStyles, GroupItem$1 as GroupItem, PivotColumnGroupState, PivotColumnHeader, PivotConfiguration, PivotDrilldown, PivotHeaderStructure, PivotMetadata, PivotResult, PivotRow, Row, RowGroup, Theme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eru-grid",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.3",
6
6
  "@angular/core": "^20.1.3"