eru-grid 0.0.70 → 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.70",
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, {
@@ -274,6 +276,10 @@ interface DynamicDataRequest {
274
276
  limit?: number;
275
277
  skip?: number;
276
278
  filter?: Record<string, any>;
279
+ storage_name?: string;
280
+ folder_name?: string;
281
+ file?: string;
282
+ file_name?: string;
277
283
  }
278
284
  interface Field {
279
285
  name: string;
@@ -294,7 +300,6 @@ interface Field {
294
300
  entity_name?: string;
295
301
  api_field?: string;
296
302
  api_name?: string;
297
- show_mobile?: boolean;
298
303
  show_grid?: string;
299
304
  field_name?: string;
300
305
  decimal?: number;
@@ -331,6 +336,7 @@ interface Field {
331
336
  max_file_size?: number;
332
337
  storage_name?: string;
333
338
  folder_name?: string;
339
+ show_delete?: boolean;
334
340
  default_upload?: boolean;
335
341
  default_country?: string;
336
342
  date_format?: string;
@@ -2165,7 +2171,8 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2165
2171
  * Height in pixels of each board card slot.
2166
2172
  * Must match the fixed height of the card rendered by boardCardTemplate (or the default card).
2167
2173
  * CDK virtual scroll uses this to position items — mismatches cause overlap or gaps.
2168
- * 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.
2169
2176
  */
2170
2177
  boardCardHeight: number;
2171
2178
  /**
@@ -2302,6 +2309,11 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2302
2309
  * to work against, so it falls back to the same default an unset height uses.
2303
2310
  */
2304
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>;
2305
2317
  showColumnLines: _angular_core.Signal<boolean>;
2306
2318
  showRowLines: _angular_core.Signal<boolean>;
2307
2319
  maxDepth: _angular_core.Signal<number>;
@@ -2755,15 +2767,22 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2755
2767
  */
2756
2768
  readonly boardWrapColumns: _angular_core.Signal<boolean>;
2757
2769
  readonly visibleBoardFields: _angular_core.Signal<Field[]>;
2758
- 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;
2759
2785
  readonly isEmptyTable: _angular_core.Signal<boolean>;
2760
- readonly hiddenColumns: _angular_core.Signal<Field[]>;
2761
- readonly hasHiddenColumns: _angular_core.Signal<boolean>;
2762
- readonly expandedRows: _angular_core.WritableSignal<Set<string>>;
2763
- rowExpandKey(row: any, index: number): string;
2764
- isRowExpanded(row: any, index: number): boolean;
2765
- toggleRowExpand(row: any, index: number, event?: Event): void;
2766
- rowDetailColspan(): number;
2767
2786
  /**
2768
2787
  * Height the column's card viewport asks for: exactly the loaded cards.
2769
2788
  * The column's max-height clamps it (the viewport is a shrinkable flex item),
@@ -2773,6 +2792,7 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
2773
2792
  */
2774
2793
  boardColumnBodyHeight(group: RowGroup): number;
2775
2794
  onBoardScrolledIndexChange(firstVisibleIndex: number, group: RowGroup): void;
2795
+ onBoardFlowScroll(event: Event, group: RowGroup): void;
2776
2796
  requestBoardRowsForGroup(group: RowGroup): void;
2777
2797
  loadBoardAll(): void;
2778
2798
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EruGridComponent, never>;
@@ -2871,6 +2891,7 @@ interface AttachmentConfig {
2871
2891
  storageName?: string;
2872
2892
  folderName?: string;
2873
2893
  defaultUpload?: boolean;
2894
+ showDelete?: boolean;
2874
2895
  }
2875
2896
  declare class AttachmentComponent implements OnInit {
2876
2897
  private el;
@@ -2883,6 +2904,7 @@ declare class AttachmentComponent implements OnInit {
2883
2904
  columnWidth: _angular_core.InputSignal<number>;
2884
2905
  eruGridStore: _angular_core.InputSignal<EruGridStore | null>;
2885
2906
  private pendingViewRequests;
2907
+ private pending_upload_requests;
2886
2908
  valueChange: EventEmitter<string[] | null>;
2887
2909
  blur: EventEmitter<string[] | null>;
2888
2910
  focus: EventEmitter<void>;
@@ -2931,6 +2953,7 @@ declare class AttachmentComponent implements OnInit {
2931
2953
  onUploadClick(): void;
2932
2954
  processFile(file: File): void;
2933
2955
  uploadFile(base64String: string, fileName: string): void;
2956
+ private applyUploadResponse;
2934
2957
  viewFile(file: string, event?: Event): void;
2935
2958
  private openBase64InNewTab;
2936
2959
  deleteFile(file: string, event?: Event): void;