@agility-workbench/angular-grid 1.4.0 → 1.5.0

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.
@@ -328,6 +328,7 @@ class NgAdapters {
328
328
  valueComponent: this.adaptSetFilterComponent(filterParams.valueComponent),
329
329
  selectAllComponent: this.adaptSetFilterComponent(filterParams.selectAllComponent),
330
330
  blanksComponent: this.adaptSetFilterComponent(filterParams.blanksComponent),
331
+ groupComponent: this.adaptSetFilterComponent(filterParams.groupComponent),
331
332
  };
332
333
  }
333
334
  // --- column defs -----------------------------------------------------------------------------
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _agility_workbench_grid from '@agility-workbench/grid';
2
- import { ColDef, CellRenderer, CellEditor, TooltipComponent, ActionFrameComponent, FilterParams, SetFilterValueComponent, SetFilterSpecialValueComponent, NON_DEFAULTABLE_COLDEF_KEYS, RowPresentationParams, RowPresentation, RowTooltipPresentation, ActionFrameComponentParams, ICellEditorParams, CellRendererParams, SetFilterSpecialValueComponentParams, SetFilterValueComponentParams, TooltipComponentParams, MenuItem, ColumnMenuContext, BodyMenuContext, IGridAPI, GridEventCellClickedParams, GridEventRowClickedParams, CellValueChangedParams, GridEventSelectionChangedParams, SortChangedParams, GridEventFilterChangedParams, GridEventQuickFilterFindChangedParams, GridEventHistoryChangedParams } from '@agility-workbench/grid';
2
+ import { ColDef, CellRenderer, CellEditor, TooltipComponent, ActionFrameComponent, FilterParams, SetFilterValueComponent, SetFilterSpecialValueComponent, SetFilterGroupComponent, NON_DEFAULTABLE_COLDEF_KEYS, RowPresentationParams, RowPresentation, RowTooltipPresentation, ActionFrameComponentParams, ICellEditorParams, CellRendererParams, SetFilterGroupComponentParams, SetFilterSpecialValueComponentParams, SetFilterValueComponentParams, TooltipComponentParams, MenuItem, ColumnMenuContext, BodyMenuContext, IGridAPI, GridEventCellClickedParams, GridEventRowClickedParams, CellValueChangedParams, GridEventSelectionChangedParams, SortChangedParams, GridEventFilterChangedParams, GridEventQuickFilterFindChangedParams, GridEventHistoryChangedParams } from '@agility-workbench/grid';
3
3
  export * from '@agility-workbench/grid';
4
4
  import * as _angular_core from '@angular/core';
5
5
  import { Type, TemplateRef, OnDestroy } from '@angular/core';
@@ -30,6 +30,11 @@ interface ISetFilterValueNgComp<P extends SetFilterValueComponentParams = SetFil
30
30
  awbInit(params: P): void;
31
31
  awbRefresh?(params: P): boolean;
32
32
  }
33
+ /** Angular component contract for a tree-layout group row's label. */
34
+ interface ISetFilterGroupNgComp<P extends SetFilterGroupComponentParams = SetFilterGroupComponentParams> {
35
+ awbInit(params: P): void;
36
+ awbRefresh?(params: P): boolean;
37
+ }
33
38
  /** Angular component contract for the dedicated Select All and Blanks labels. */
34
39
  interface ISetFilterSpecialValueNgComp<P extends SetFilterSpecialValueComponentParams = SetFilterSpecialValueComponentParams> {
35
40
  awbInit(params: P): void;
@@ -54,10 +59,11 @@ interface ICellEditorNgComp<P extends ICellEditorParams = ICellEditorParams> {
54
59
  }
55
60
  /** An Angular component class usable as a cell renderer / tooltip / ActionFrame / editor. */
56
61
  type NgComponent = Type<unknown>;
57
- type NgFilterParams = Omit<FilterParams, "valueComponent" | "selectAllComponent" | "blanksComponent"> & {
62
+ type NgFilterParams = Omit<FilterParams, "valueComponent" | "selectAllComponent" | "blanksComponent" | "groupComponent"> & {
58
63
  valueComponent?: SetFilterValueComponent | NgComponent;
59
64
  selectAllComponent?: SetFilterSpecialValueComponent | NgComponent;
60
65
  blanksComponent?: SetFilterSpecialValueComponent | NgComponent;
66
+ groupComponent?: SetFilterGroupComponent | NgComponent;
61
67
  };
62
68
  type NgRowTooltipPresentation = Omit<RowTooltipPresentation, "component"> & {
63
69
  component?: TooltipComponent | NgComponent;
@@ -275,4 +281,4 @@ declare class AwbGrid implements OnDestroy {
275
281
  }
276
282
 
277
283
  export { AwbGrid };
278
- export type { IActionFrameNgComp, ICellEditorNgComp, ICellRendererNgComp, ISetFilterSpecialValueNgComp, ISetFilterValueNgComp, ITooltipNgComp, NgColDef, NgComponent, NgDefaultColDef, NgFilterParams, NgGetRowPresentation, NgMenuItem, NgMenuSlot, NgRowPresentation, NgRowTooltipPresentation };
284
+ export type { IActionFrameNgComp, ICellEditorNgComp, ICellRendererNgComp, ISetFilterGroupNgComp, ISetFilterSpecialValueNgComp, ISetFilterValueNgComp, ITooltipNgComp, NgColDef, NgComponent, NgDefaultColDef, NgFilterParams, NgGetRowPresentation, NgMenuItem, NgMenuSlot, NgRowPresentation, NgRowTooltipPresentation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility-workbench/angular-grid",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Angular bindings for @agility-workbench/grid — a high-performance data grid. Supports Angular 20.3 through 22.",
5
5
  "license": "MIT",
6
6
  "author": "Himanshu M",
@@ -33,7 +33,7 @@
33
33
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@agility-workbench/grid": "^1.4.0",
36
+ "@agility-workbench/grid": "^1.5.0",
37
37
  "tslib": "^2.3.0"
38
38
  },
39
39
  "peerDependencies": {