eru-grid 0.0.71 → 0.0.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eru-grid",
3
- "version": "0.0.71",
3
+ "version": "0.0.72",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.1.2",
6
6
  "@angular/core": "^21.1.2",
@@ -64,6 +64,7 @@ interface GridFeatures {
64
64
  sortBar?: boolean;
65
65
  replaceZeroValue?: string;
66
66
  gridHeight?: number;
67
+ fillHeight?: boolean;
67
68
  allowSelection?: boolean;
68
69
  actionColumn?: boolean;
69
70
  actionColumnPosition?: 'before' | 'after';
@@ -110,6 +111,7 @@ interface GridFeatures {
110
111
  boardColumnMaxWidth?: number;
111
112
  boardColumnHeight?: number;
112
113
  boardWrapColumns?: boolean;
114
+ boardCardStyle?: 'compact' | 'classic';
113
115
  }
114
116
  interface ExcelDownloadPayload {
115
117
  columns: Record<string, {
@@ -298,7 +300,6 @@ interface Field {
298
300
  entity_name?: string;
299
301
  api_field?: string;
300
302
  api_name?: string;
301
- show_mobile?: boolean;
302
303
  show_grid?: string;
303
304
  field_name?: string;
304
305
  decimal?: number;
@@ -2170,7 +2171,8 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2170
2171
  * Height in pixels of each board card slot.
2171
2172
  * Must match the fixed height of the card rendered by boardCardTemplate (or the default card).
2172
2173
  * CDK virtual scroll uses this to position items — mismatches cause overlap or gaps.
2173
- * Default: 208 (matches the built-in default card height).
2174
+ * Unset or 0: the compact built-in card sizes itself from its fields; a
2175
+ * custom template or the classic card gets 208.
2174
2176
  */
2175
2177
  boardCardHeight: number;
2176
2178
  /**
@@ -2307,6 +2309,11 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2307
2309
  * to work against, so it falls back to the same default an unset height uses.
2308
2310
  */
2309
2311
  private layoutGridHeight;
2312
+ /**
2313
+ * Fill Height sizes the grid to the box its container gives it rather than
2314
+ * to gridHeight, so viewport maths work against the measured host height.
2315
+ */
2316
+ fillHeight: _angular_core.Signal<boolean>;
2310
2317
  showColumnLines: _angular_core.Signal<boolean>;
2311
2318
  showRowLines: _angular_core.Signal<boolean>;
2312
2319
  maxDepth: _angular_core.Signal<number>;
@@ -2760,15 +2767,22 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2760
2767
  */
2761
2768
  readonly boardWrapColumns: _angular_core.Signal<boolean>;
2762
2769
  readonly visibleBoardFields: _angular_core.Signal<Field[]>;
2763
- readonly visibleColumns: _angular_core.Signal<Field[]>;
2770
+ readonly compactBoardCard: _angular_core.Signal<boolean>;
2771
+ readonly compactCardDetailFields: _angular_core.Signal<Field[]>;
2772
+ readonly compactCardPageFields: _angular_core.Signal<Field[]>;
2773
+ readonly compactCardHasActions: _angular_core.Signal<boolean>;
2774
+ readonly compactCardTitleHeight: _angular_core.Signal<number>;
2775
+ readonly compactCardFieldRowHeight: _angular_core.Signal<36 | 52>;
2776
+ readonly compactCardHeight: _angular_core.Signal<number>;
2777
+ usesCompactBoardCard(): boolean;
2778
+ /**
2779
+ * A page cell is as tall as the record it renders, so a compact card that
2780
+ * shows one has no height to give virtual scroll: its cards size to their
2781
+ * content and the column scrolls them as a plain list.
2782
+ */
2783
+ compactCardSizesToContent(): boolean;
2784
+ boardCardInnerHeight(): number;
2764
2785
  readonly isEmptyTable: _angular_core.Signal<boolean>;
2765
- readonly hiddenColumns: _angular_core.Signal<Field[]>;
2766
- readonly hasHiddenColumns: _angular_core.Signal<boolean>;
2767
- readonly expandedRows: _angular_core.WritableSignal<Set<string>>;
2768
- rowExpandKey(row: any, index: number): string;
2769
- isRowExpanded(row: any, index: number): boolean;
2770
- toggleRowExpand(row: any, index: number, event?: Event): void;
2771
- rowDetailColspan(): number;
2772
2786
  /**
2773
2787
  * Height the column's card viewport asks for: exactly the loaded cards.
2774
2788
  * The column's max-height clamps it (the viewport is a shrinkable flex item),
@@ -2778,6 +2792,7 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2778
2792
  */
2779
2793
  boardColumnBodyHeight(group: RowGroup): number;
2780
2794
  onBoardScrolledIndexChange(firstVisibleIndex: number, group: RowGroup): void;
2795
+ onBoardFlowScroll(event: Event, group: RowGroup): void;
2781
2796
  requestBoardRowsForGroup(group: RowGroup): void;
2782
2797
  loadBoardAll(): void;
2783
2798
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EruGridComponent, never>;