@ithouse-bd/ngx-table 1.0.0 → 1.1.1

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
@@ -16,6 +16,10 @@ type TableSortDirection = 'asc' | 'desc';
16
16
  type TableFilterType = 'text' | 'number' | 'date' | 'select';
17
17
  /** Row height mode toggled from the toolbar. */
18
18
  type TableDensity = 'comfortable' | 'compact';
19
+ /** Runtime pinning of a column to the start or end edge. */
20
+ type TablePin = 'start' | 'end';
21
+ /** Built-in footer aggregation for a column. */
22
+ type TableAggregateType = 'sum' | 'avg' | 'min' | 'max' | 'count';
19
23
  /** Option of a `select` filter. */
20
24
  interface TableFilterOption {
21
25
  label: string;
@@ -81,7 +85,57 @@ interface TableColumn<T = any> {
81
85
  * Keep the column at the start/end edge while the table scrolls horizontally.
82
86
  * Sticky columns should declare a `width` so the next sticky column can be offset.
83
87
  */
84
- sticky?: 'start' | 'end';
88
+ sticky?: TablePin;
89
+ /** Allow pinning / unpinning this column from the header menu. Defaults to `true`. */
90
+ pinnable?: boolean;
91
+ /** Allow hiding this column from the header menu. Defaults to `true`. */
92
+ hideable?: boolean;
93
+ /** Footer aggregation shown when the column declares `aggregate`. */
94
+ aggregate?: TableAggregateType | TableAggregate<T>;
95
+ }
96
+ /** Column aggregate: a bare type (`'sum'`) or a type plus custom label/format. */
97
+ interface TableAggregate<T = any> {
98
+ type: TableAggregateType;
99
+ /** Text drawn before the value, e.g. `'Total'`. Defaults to the type name. */
100
+ label?: string;
101
+ /** Custom number formatter; overrides the default locale formatting. */
102
+ format?: (value: number, column: TableColumn<T>) => string;
103
+ }
104
+ /** One bulk action rendered in the selection bar. */
105
+ interface TableSelectionAction<T = any> {
106
+ /** Identifies the action in `(selectionAction)` events. */
107
+ id: string;
108
+ label: string;
109
+ icon?: string;
110
+ class?: string;
111
+ title?: string;
112
+ }
113
+ /** Emitted when a selection bar action is clicked. */
114
+ interface TableSelectionActionEvent<T = any> {
115
+ action: TableSelectionAction<T>;
116
+ rows: T[];
117
+ }
118
+ /** Emitted when the toolbar export is used. */
119
+ interface TableExportEvent<T = any> {
120
+ format: 'csv' | 'xlsx';
121
+ fileName: string;
122
+ blob: Blob;
123
+ /** Rows that were written (the selection when there is one). */
124
+ rows: T[];
125
+ }
126
+ /** Everything the user can change at runtime and that `storageKey` remembers. */
127
+ interface TablePresetState {
128
+ hidden: string[];
129
+ density: TableDensity;
130
+ /** Column keys in display order (hidden columns keep their slot). */
131
+ order: string[];
132
+ /** Runtime widths in px, keyed by column key. */
133
+ widths: Record<string, number>;
134
+ /**
135
+ * Runtime pinning, keyed by column key. `null` is a deliberate unpin: it overrides
136
+ * a `sticky` declared on the column so the header menu can unpin it again.
137
+ */
138
+ pinned: Record<string, TablePin | null>;
85
139
  }
86
140
  /** Declarative row action button rendered in the actions column. */
87
141
  interface TableRowAction<T = any> {
@@ -155,6 +209,14 @@ interface TableRowMenuContext<T = any> {
155
209
  row: T;
156
210
  index: number;
157
211
  }
212
+ /** Context of the projected `#ithTableRowDetail` template. */
213
+ interface TableRowDetailContext<T = any> {
214
+ $implicit: T;
215
+ row: T;
216
+ index: number;
217
+ /** Closes the detail panel for this row. */
218
+ close: () => void;
219
+ }
158
220
  interface TableToolbarContext<T = any> {
159
221
  rows: T[];
160
222
  total: number;
@@ -167,6 +229,22 @@ interface TableFooterContext<T = any> extends TableToolbarContext<T> {
167
229
  pageCount: number;
168
230
  }
169
231
 
232
+ /** Where a floating menu should be drawn (viewport coordinates). */
233
+ interface FloatingPosition {
234
+ x: number;
235
+ y: number;
236
+ }
237
+ /** Column menu state. */
238
+ interface ColumnMenuState extends FloatingPosition {
239
+ key: string;
240
+ }
241
+ /** One removable filter chip. */
242
+ interface FilterChip {
243
+ kind: 'search' | 'filter';
244
+ key: string;
245
+ label: string;
246
+ value: string;
247
+ }
170
248
  /**
171
249
  * Generic, standalone data table.
172
250
  *
@@ -181,6 +259,7 @@ interface TableFooterContext<T = any> extends TableToolbarContext<T> {
181
259
  * ```
182
260
  */
183
261
  declare class TableComponent<T = any> {
262
+ private readonly host;
184
263
  /** Unique prefix for generated DOM ids. */
185
264
  readonly idBase: string;
186
265
  /** Rows to render. In `server` mode this is the current page. */
@@ -222,12 +301,16 @@ declare class TableComponent<T = any> {
222
301
  /** How many numbered page buttons are rendered. */
223
302
  readonly maxPageButtons: _angular_core.InputSignal<number>;
224
303
  readonly showFooter: _angular_core.InputSignal<boolean>;
304
+ /** Render removable chips for the active search term and column filters. */
305
+ readonly showFilterChips: _angular_core.InputSignal<boolean>;
225
306
  readonly selectionMode: _angular_core.InputSignal<TableSelectionMode>;
226
307
  readonly selectAllScope: _angular_core.InputSignal<TableSelectAllScope>;
227
308
  /** Selected rows, two-way bindable. */
228
309
  readonly selected: _angular_core.ModelSignal<T[]>;
229
310
  /** Selecting a row by clicking anywhere on it (not only the checkbox). */
230
311
  readonly selectOnRowClick: _angular_core.InputSignal<boolean>;
312
+ /** Bulk actions rendered in the selection bar once rows are selected. */
313
+ readonly selectionActions: _angular_core.InputSignal<TableSelectionAction<T>[]>;
231
314
  readonly rowActions: _angular_core.InputSignal<TableRowAction<T>[]>;
232
315
  readonly actionsHeader: _angular_core.InputSignal<string>;
233
316
  readonly actionsWidth: _angular_core.InputSignal<string>;
@@ -248,6 +331,20 @@ declare class TableComponent<T = any> {
248
331
  readonly showColumnPicker: _angular_core.InputSignal<boolean>;
249
332
  /** Show the comfortable/compact density toggle in the toolbar. */
250
333
  readonly showDensityToggle: _angular_core.InputSignal<boolean>;
334
+ /** Show the per-column header menu (sort, pin, autosize, hide). */
335
+ readonly showColumnMenu: _angular_core.InputSignal<boolean>;
336
+ /** Show the toolbar "Export" button (CSV download). */
337
+ readonly showExport: _angular_core.InputSignal<boolean>;
338
+ /** Base file name used by `downloadCsv()`. */
339
+ exportFileName: _angular_core.InputSignal<string>;
340
+ /** Show the toolbar "Views" menu for saving/loading named presets. */
341
+ readonly showViews: _angular_core.InputSignal<boolean>;
342
+ /** Allow dragging the column separator to resize a column. */
343
+ readonly resizable: _angular_core.InputSignal<boolean>;
344
+ /** Allow dragging a header onto another header to reorder columns. */
345
+ readonly reorderable: _angular_core.InputSignal<boolean>;
346
+ /** Arrow-key navigation across cells with a single tab stop. */
347
+ readonly keyboardNavigation: _angular_core.InputSignal<boolean>;
251
348
  /**
252
349
  * localStorage key for the saved column/density preset. When set, the user's
253
350
  * choice is restored on the next visit.
@@ -255,10 +352,18 @@ declare class TableComponent<T = any> {
255
352
  readonly storageKey: _angular_core.InputSignal<string>;
256
353
  /** Number of placeholder rows rendered while `loading` and there are no rows. */
257
354
  readonly skeletonRows: _angular_core.InputSignal<number>;
355
+ /**
356
+ * Minimum number of body rows the grid keeps in view. Rows stay at their natural
357
+ * height, the spare space stays empty, so a table with one row does not collapse
358
+ * into a single line. `0` lets the grid shrink to its content.
359
+ */
360
+ readonly minRows: _angular_core.InputSignal<number>;
258
361
  /** Stick the checkbox column to the start edge. */
259
362
  readonly stickySelection: _angular_core.InputSignal<boolean>;
260
363
  /** Stick the actions column to the end edge. */
261
364
  readonly stickyActions: _angular_core.InputSignal<boolean>;
365
+ /** How the `#ithTableRowDetail` template is expanded. */
366
+ readonly rowDetailTrigger: _angular_core.InputSignal<"none" | "button" | "row">;
262
367
  readonly actionClick: _angular_core.OutputEmitterRef<TableActionEvent<T>>;
263
368
  readonly rowClick: _angular_core.OutputEmitterRef<TableRowEvent<T>>;
264
369
  /** Emitted after a cell or row was copied to the clipboard. */
@@ -268,6 +373,14 @@ declare class TableComponent<T = any> {
268
373
  /** Visible column keys, emitted whenever the user changes column visibility. */
269
374
  readonly columnsChange: _angular_core.OutputEmitterRef<string[]>;
270
375
  readonly densityChange: _angular_core.OutputEmitterRef<TableDensity>;
376
+ /** Full user-chosen layout (hidden, density, order, widths, pinned). */
377
+ readonly columnStateChange: _angular_core.OutputEmitterRef<TablePresetState>;
378
+ /** Bulk action clicked in the selection bar. */
379
+ readonly selectionAction: _angular_core.OutputEmitterRef<TableSelectionActionEvent<T>>;
380
+ /** Emitted with the generated CSV text after `downloadCsv()` / the toolbar button. */
381
+ readonly csvExport: _angular_core.OutputEmitterRef<string>;
382
+ /** Emitted for both downloads (CSV and XLSX) with the produced file. */
383
+ readonly exportFile: _angular_core.OutputEmitterRef<TableExportEvent<T>>;
271
384
  private readonly cellDirectives;
272
385
  private readonly headerDirectives;
273
386
  private readonly filterDirectives;
@@ -276,6 +389,7 @@ declare class TableComponent<T = any> {
276
389
  private readonly footerDirectives;
277
390
  private readonly emptyDirectives;
278
391
  private readonly rowMenuDirectives;
392
+ private readonly rowDetailDirectives;
279
393
  readonly cellTemplates: _angular_core.Signal<Map<string, TemplateRef<TableCellContext<T>>>>;
280
394
  readonly headerTemplates: _angular_core.Signal<Map<string, TemplateRef<any>>>;
281
395
  readonly filterTemplates: _angular_core.Signal<Map<string, TemplateRef<TableFilterContext<T>>>>;
@@ -284,13 +398,36 @@ declare class TableComponent<T = any> {
284
398
  readonly footerTemplate: _angular_core.Signal<TemplateRef<any>>;
285
399
  readonly emptyTemplate: _angular_core.Signal<TemplateRef<any>>;
286
400
  readonly rowMenuTemplate: _angular_core.Signal<TemplateRef<TableRowMenuContext<T>>>;
401
+ readonly rowDetailTemplate: _angular_core.Signal<TemplateRef<TableRowDetailContext<T>>>;
287
402
  readonly filters: _angular_core.ModelSignal<Record<string, string>>;
288
403
  private skipInitialReset;
289
404
  /** Columns hidden at runtime (on top of `column.hidden`), persisted via `storageKey`. */
290
405
  private readonly hiddenColumnKeys;
291
406
  private readonly density;
407
+ /** Runtime column order (all column keys, hidden ones included). */
408
+ private readonly columnOrder;
409
+ /** Runtime widths in px, keyed by column key. */
410
+ private readonly columnWidths;
411
+ /**
412
+ * Runtime pinning, keyed by column key. A `null` value records an explicit unpin so
413
+ * a column that declares `sticky` in its definition can still be unpinned at runtime.
414
+ */
415
+ private readonly pinnedKeys;
416
+ /** Measured header widths, used to offset stacked sticky columns. */
417
+ private readonly measuredWidths;
418
+ /** Saved named views. */
419
+ private readonly views;
420
+ private readonly activeView;
292
421
  readonly compact: _angular_core.Signal<boolean>;
293
422
  readonly columnPickerOpen: _angular_core.WritableSignal<boolean>;
423
+ readonly columnsMenuPos: _angular_core.WritableSignal<FloatingPosition>;
424
+ readonly viewsOpen: _angular_core.WritableSignal<boolean>;
425
+ readonly viewsMenuPos: _angular_core.WritableSignal<FloatingPosition>;
426
+ /** Export-format menu; `null` when closed. */
427
+ readonly exportMenuPos: _angular_core.WritableSignal<FloatingPosition>;
428
+ readonly viewNameDraft: _angular_core.WritableSignal<string>;
429
+ /** Header menu state; `null` when closed. */
430
+ readonly columnMenu: _angular_core.WritableSignal<ColumnMenuState>;
294
431
  /** Right-click menu position; `null` when closed. */
295
432
  readonly menuState: _angular_core.WritableSignal<{
296
433
  row: T;
@@ -300,13 +437,34 @@ declare class TableComponent<T = any> {
300
437
  }>;
301
438
  /** `${rowIndex}:${columnKey}` of the cell that was just copied (shows a check icon). */
302
439
  readonly copiedCell: _angular_core.WritableSignal<string>;
303
- readonly skeletonIndexes: _angular_core.Signal<number[]>;
440
+ /** Row keys whose detail panel is open. */
441
+ private readonly expandedKeys;
442
+ /** Cell that owns the single tab stop of the grid. */
443
+ readonly focusedCell: _angular_core.WritableSignal<{
444
+ row: number;
445
+ col: number;
446
+ }>;
447
+ /** Column key being dragged, and the header it hovers. */
448
+ readonly dragKey: _angular_core.WritableSignal<string>;
449
+ readonly dragOverKey: _angular_core.WritableSignal<string>;
450
+ /** `true` once the scroll container is scrolled away from the top. */
451
+ readonly scrolled: _angular_core.WritableSignal<boolean>;
452
+ private resizing;
304
453
  private copyTimer?;
454
+ private measureHandle?;
455
+ /** `storageKey` whose preset was already loaded (or `''` when none is used). */
456
+ private presetKey;
457
+ readonly skeletonIndexes: _angular_core.Signal<number[]>;
305
458
  constructor();
306
459
  readonly isServer: _angular_core.Signal<boolean>;
460
+ /** Columns in the user's order (hidden columns keep their slot in the list). */
461
+ readonly orderedColumns: _angular_core.Signal<TableColumn<T>[]>;
307
462
  readonly visibleColumns: _angular_core.Signal<TableColumn<T>[]>;
308
463
  readonly selectable: _angular_core.Signal<boolean>;
309
464
  readonly hasActionsColumn: _angular_core.Signal<boolean>;
465
+ readonly hasRowDetail: _angular_core.Signal<boolean>;
466
+ /** Expander cell rendered as the first cell of every row. */
467
+ readonly hasExpander: _angular_core.Signal<boolean>;
310
468
  /** Rows that match the global search and the per-column filters (client mode). */
311
469
  readonly matchingRows: _angular_core.Signal<T[]>;
312
470
  /** Matching rows in the active sort order (client mode). */
@@ -324,6 +482,13 @@ declare class TableComponent<T = any> {
324
482
  readonly somePageSelected: _angular_core.Signal<boolean>;
325
483
  readonly emptyColspan: _angular_core.Signal<number>;
326
484
  readonly hasQuery: _angular_core.Signal<boolean>;
485
+ /** Removable chips for the active search term and filters. */
486
+ readonly filterChips: _angular_core.Signal<FilterChip[]>;
487
+ /** Columns that declare a footer aggregate. */
488
+ readonly hasAggregates: _angular_core.Signal<boolean>;
489
+ /** Full user layout, the shape that `storageKey` stores. */
490
+ readonly state: _angular_core.Signal<TablePresetState>;
491
+ readonly savedViewNames: _angular_core.Signal<string[]>;
327
492
  isSortable(column: TableColumn<T>): boolean;
328
493
  ariaSort(column: TableColumn<T>): 'ascending' | 'descending' | 'none';
329
494
  sortDirection(column: TableColumn<T>): TableSortDirection | null;
@@ -335,13 +500,15 @@ declare class TableComponent<T = any> {
335
500
  filterValue(key: string): string;
336
501
  /** Control rendered in the filter row for this column. */
337
502
  filterTypeFor(column: TableColumn<T>): TableFilterType;
338
- filterOptionsFor(column: TableColumn<T>): TableFilterOption[];
503
+ filterOptionsFor(column: Pick<TableColumn<T>, 'key'> & Partial<TableColumn<T>>): TableFilterOption[];
339
504
  filterPlaceholderFor(column: TableColumn<T>): string;
340
505
  filterTemplate(column: TableColumn<T>): TemplateRef<TableFilterContext<T>> | undefined;
341
506
  /** Context handed to a custom `#ithTableFilter` template. */
342
507
  filterContext(column: TableColumn<T>): TableFilterContext<T>;
343
508
  clearFilters(): void;
344
509
  clearQuery(): void;
510
+ /** Remove one chip from the chip row. */
511
+ removeChip(chip: FilterChip): void;
345
512
  goToPage(page: number): void;
346
513
  nextPage(): void;
347
514
  previousPage(): void;
@@ -357,6 +524,8 @@ declare class TableComponent<T = any> {
357
524
  clearSelection(): void;
358
525
  selectRow(row: T): void;
359
526
  deselectRow(row: T): void;
527
+ /** Click on a selection-bar action. */
528
+ onSelectionAction(action: TableSelectionAction<T>, event: MouseEvent): void;
360
529
  isActionVisible(action: TableRowAction<T>, row: T, index: number): boolean;
361
530
  isActionDisabled(action: TableRowAction<T>, row: T, index: number): boolean;
362
531
  onActionClick(action: TableRowAction<T>, row: T, index: number, event: MouseEvent): void;
@@ -365,6 +534,11 @@ declare class TableComponent<T = any> {
365
534
  onRowKeydown(row: T, index: number, event: KeyboardEvent): void;
366
535
  /** Shared by mouse and keyboard activation. */
367
536
  private activateRow;
537
+ private togglesDetailOnRow;
538
+ isRowExpanded(row: T): boolean;
539
+ toggleRowDetail(row: T, event?: Event): void;
540
+ /** `close` callback handed to the `#ithTableRowDetail` template. */
541
+ rowDetailContext(row: T, index: number): TableRowDetailContext<T>;
368
542
  cellValue(row: T, column: TableColumn<T>): unknown;
369
543
  cellText(row: T, column: TableColumn<T>, index?: number): string;
370
544
  cellContext(row: T, column: TableColumn<T>, index: number): TableCellContext<T>;
@@ -378,27 +552,108 @@ declare class TableComponent<T = any> {
378
552
  /** Flat class list for a body cell, including dynamic `cellClass` output. */
379
553
  cellClasses(row: T, column: TableColumn<T>, index: number): unknown[];
380
554
  columnStyle(column: TableColumn<T>): Record<string, string>;
555
+ /** Runtime pin, falling back to the declared `column.sticky`. */
556
+ pinOf(column: TableColumn<T>): TablePin | null;
381
557
  stickyClassFor(column: TableColumn<T>): string;
558
+ /**
559
+ * Left/right offsets for stacked sticky columns. Depends on measured widths, so it
560
+ * stays correct for auto-sized and resized columns.
561
+ */
562
+ readonly stickyOffsets: _angular_core.Signal<Map<string, number>>;
382
563
  /** Full text for the native tooltip; `null` disables it for a column. */
383
564
  tooltipText(row: T, column: TableColumn<T>, index: number): string | null;
384
- private stickyStartOffset;
385
- private columnWidthPx;
565
+ private declaredWidthPx;
566
+ private actionsWidthPx;
386
567
  copyCell(row: T, column: TableColumn<T>, index: number, event?: Event): void;
387
568
  copyRow(row: T, index: number, event?: Event): void;
388
569
  isCellCopied(index: number, column: TableColumn<T>): boolean;
389
- /** Ctrl/Cmd+C while a cell has focus copies that cell. */
390
- onCellKeydown(row: T, column: TableColumn<T>, index: number, event: KeyboardEvent): void;
391
570
  onRowContextMenu(row: T, index: number, event: MouseEvent): void;
392
571
  /** Keyboard path for the same menu (context-menu key / Shift+F10). */
393
572
  onRowContextMenuKey(row: T, index: number, event: KeyboardEvent): void;
394
573
  closeRowMenu(): void;
574
+ /** `tabindex` of a body cell: one tab stop for the whole grid. */
575
+ cellTabIndex(rowIndex: number, colIndex: number): number | null;
576
+ onCellFocus(rowIndex: number, colIndex: number): void;
577
+ /** Copy shortcut plus arrow/Home/End/Page navigation for the cell grid. */
578
+ onCellKeydown(column: TableColumn<T>, rowIndex: number, colIndex: number, event: KeyboardEvent): void;
579
+ /** Move DOM focus to a cell, updating the single tab stop. */
580
+ private focusCell;
395
581
  isColumnVisible(column: TableColumn<T>): boolean;
396
582
  setColumnVisible(key: string, visible: boolean): void;
397
583
  resetColumns(): void;
398
- toggleColumnPicker(): void;
584
+ /** A column can be hidden when it is hideable and at least one other stays visible. */
585
+ canHide(key: string): boolean;
586
+ private emitColumns;
587
+ /**
588
+ * A manual layout change (pin, hide, resize, reorder, density) means the table no longer
589
+ * matches the view that was applied last, so drop its highlight instead of lying about it.
590
+ */
591
+ private markViewDirty;
592
+ toggleColumnPicker(event?: Event): void;
593
+ toggleViews(event?: Event): void;
594
+ /** Set the row density explicitly (the toolbar segmented control). */
595
+ setDensity(density: TableDensity): void;
399
596
  toggleDensity(): void;
597
+ openColumnMenu(column: TableColumn<T>, event: Event): void;
598
+ columnMenuColumn(): TableColumn<T> | undefined;
599
+ closeColumnMenu(): void;
600
+ menuSort(direction: TableSortDirection): void;
601
+ menuClearSort(): void;
602
+ menuPin(pin: TablePin | null): void;
603
+ menuHide(): void;
604
+ menuAutosize(): void;
605
+ canPin(column: TableColumn<T>): boolean;
606
+ pinColumn(key: string, pin: TablePin | null): void;
607
+ startResize(column: TableColumn<T>, event: PointerEvent): void;
608
+ onDocumentPointerMove(event: PointerEvent): void;
609
+ onDocumentPointerUp(): void;
610
+ /** Shrink/grow a column to its widest rendered value. */
611
+ autosizeColumn(key: string): void;
612
+ onHeaderDragStart(column: TableColumn<T>, event: DragEvent): void;
613
+ onHeaderDragOver(column: TableColumn<T>, event: DragEvent): void;
614
+ onHeaderDrop(column: TableColumn<T>, event: DragEvent): void;
615
+ onHeaderDragEnd(): void;
616
+ /** Move `from` onto the slot of `to`, keeping hidden columns in the list. */
617
+ moveColumn(from: string, to: string): void;
618
+ /** Rows an export writes: the selection when there is one, else every match. */
619
+ exportRows(): T[];
620
+ toggleExportMenu(event?: Event): void;
621
+ exportAs(format: 'csv' | 'xlsx'): void;
622
+ /** CSV text of the current view: selected rows when there are any, else all matches. */
623
+ toCsv(): string;
624
+ /** Download the current view as a UTF-8 CSV file. */
625
+ downloadCsv(): void;
626
+ /** Real Excel workbook (`.xlsx`) of the current view, built without dependencies. */
627
+ toExcel(): Blob;
628
+ /** Download the current view as an `.xlsx` workbook. */
629
+ downloadExcel(): void;
630
+ private saveFile;
631
+ /** Footer cell text for a column that declares an `aggregate`. */
632
+ aggregateText(column: TableColumn<T>): string;
633
+ aggregateLabel(column: TableColumn<T>): string;
634
+ applyView(name: string): void;
635
+ saveView(): void;
636
+ deleteView(name: string, event: MouseEvent): void;
637
+ onViewNameInput(value: string): void;
638
+ onScroll(event: Event): void;
639
+ /**
640
+ * Copy `value` and show the check icon only when the browser really took it.
641
+ */
400
642
  private copyText;
401
- private restorePreset;
643
+ /**
644
+ * The async Clipboard API only exists in a secure context (https / localhost) and can
645
+ * still be blocked by permissions or a sandboxed iframe. Plain-HTTP intranets get no
646
+ * `navigator.clipboard` at all, so fall back to a hidden textarea + `execCommand`.
647
+ */
648
+ private writeClipboard;
649
+ /** Deprecated but the only synchronous copy available outside a secure context. */
650
+ private legacyCopy;
651
+ /** Screen position for a menu anchored to `anchor`, kept inside the viewport. */
652
+ private floatPosition;
653
+ /** Read header widths so stacked sticky columns line up. */
654
+ private measureHeaderWidths;
655
+ private scheduleMeasure;
656
+ private applyState;
402
657
  private readPreset;
403
658
  private persistPreset;
404
659
  onDocumentClick(): void;
@@ -415,7 +670,7 @@ declare class TableComponent<T = any> {
415
670
  private searchText;
416
671
  private filterText;
417
672
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
418
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ith-table", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "countSuffix": { "alias": "countSuffix"; "required": false; "isSignal": true; }; "totalLabel": { "alias": "totalLabel"; "required": false; "isSignal": true; }; "showToolbar": { "alias": "showToolbar"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filterAllLabel": { "alias": "filterAllLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; "isSignal": true; }; "maxPageButtons": { "alias": "maxPageButtons"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectAllScope": { "alias": "selectAllScope"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selectOnRowClick": { "alias": "selectOnRowClick"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "actionsHeader": { "alias": "actionsHeader"; "required": false; "isSignal": true; }; "actionsWidth": { "alias": "actionsWidth"; "required": false; "isSignal": true; }; "rowClickable": { "alias": "rowClickable"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "hoverable": { "alias": "hoverable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "dense": { "alias": "dense"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "copyable": { "alias": "copyable"; "required": false; "isSignal": true; }; "showColumnPicker": { "alias": "showColumnPicker"; "required": false; "isSignal": true; }; "showDensityToggle": { "alias": "showDensityToggle"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "stickySelection": { "alias": "stickySelection"; "required": false; "isSignal": true; }; "stickyActions": { "alias": "stickyActions"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; }, { "sort": "sortChange"; "search": "searchChange"; "filterChange": "filterChange"; "page": "pageChange"; "pageSize": "pageSizeChange"; "selected": "selectedChange"; "actionClick": "actionClick"; "rowClick": "rowClick"; "cellCopy": "cellCopy"; "rowContextMenu": "rowContextMenu"; "columnsChange": "columnsChange"; "densityChange": "densityChange"; "filters": "filtersChange"; }, ["cellDirectives", "headerDirectives", "filterDirectives", "rowActionsDirectives", "toolbarDirectives", "footerDirectives", "emptyDirectives", "rowMenuDirectives"], never, true, never>;
673
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ith-table", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "keyField": { "alias": "keyField"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "countSuffix": { "alias": "countSuffix"; "required": false; "isSignal": true; }; "totalLabel": { "alias": "totalLabel"; "required": false; "isSignal": true; }; "showToolbar": { "alias": "showToolbar"; "required": false; "isSignal": true; }; "searchable": { "alias": "searchable"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "showFilters": { "alias": "showFilters"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "filterAllLabel": { "alias": "filterAllLabel"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "sort": { "alias": "sort"; "required": false; "isSignal": true; }; "sortable": { "alias": "sortable"; "required": false; "isSignal": true; }; "search": { "alias": "search"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showFirstLast": { "alias": "showFirstLast"; "required": false; "isSignal": true; }; "maxPageButtons": { "alias": "maxPageButtons"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "showFilterChips": { "alias": "showFilterChips"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "selectAllScope": { "alias": "selectAllScope"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "selectOnRowClick": { "alias": "selectOnRowClick"; "required": false; "isSignal": true; }; "selectionActions": { "alias": "selectionActions"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "actionsHeader": { "alias": "actionsHeader"; "required": false; "isSignal": true; }; "actionsWidth": { "alias": "actionsWidth"; "required": false; "isSignal": true; }; "rowClickable": { "alias": "rowClickable"; "required": false; "isSignal": true; }; "rowClass": { "alias": "rowClass"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingText": { "alias": "loadingText"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "hoverable": { "alias": "hoverable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "dense": { "alias": "dense"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "copyable": { "alias": "copyable"; "required": false; "isSignal": true; }; "showColumnPicker": { "alias": "showColumnPicker"; "required": false; "isSignal": true; }; "showDensityToggle": { "alias": "showDensityToggle"; "required": false; "isSignal": true; }; "showColumnMenu": { "alias": "showColumnMenu"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; "exportFileName": { "alias": "exportFileName"; "required": false; "isSignal": true; }; "showViews": { "alias": "showViews"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "reorderable": { "alias": "reorderable"; "required": false; "isSignal": true; }; "keyboardNavigation": { "alias": "keyboardNavigation"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "minRows": { "alias": "minRows"; "required": false; "isSignal": true; }; "stickySelection": { "alias": "stickySelection"; "required": false; "isSignal": true; }; "stickyActions": { "alias": "stickyActions"; "required": false; "isSignal": true; }; "rowDetailTrigger": { "alias": "rowDetailTrigger"; "required": false; "isSignal": true; }; "filters": { "alias": "filters"; "required": false; "isSignal": true; }; }, { "sort": "sortChange"; "search": "searchChange"; "filterChange": "filterChange"; "page": "pageChange"; "pageSize": "pageSizeChange"; "selected": "selectedChange"; "actionClick": "actionClick"; "rowClick": "rowClick"; "cellCopy": "cellCopy"; "rowContextMenu": "rowContextMenu"; "columnsChange": "columnsChange"; "densityChange": "densityChange"; "columnStateChange": "columnStateChange"; "selectionAction": "selectionAction"; "csvExport": "csvExport"; "exportFile": "exportFile"; "filters": "filtersChange"; }, ["cellDirectives", "headerDirectives", "filterDirectives", "rowActionsDirectives", "toolbarDirectives", "footerDirectives", "emptyDirectives", "rowMenuDirectives", "rowDetailDirectives"], never, true, never>;
419
674
  }
420
675
 
421
676
  /**
@@ -494,6 +749,21 @@ declare class TableRowMenuDirective {
494
749
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableRowMenuDirective, never>;
495
750
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableRowMenuDirective, "[ithTableRowMenu]", never, {}, {}, never, never, true, never>;
496
751
  }
752
+ /**
753
+ * Expandable row content, rendered on its own full-width row under the row.
754
+ *
755
+ * ```html
756
+ * <ng-template ithTableRowDetail let-row let-close="close">
757
+ * <div class="detail">{{ row.email }}</div>
758
+ * </ng-template>
759
+ * ```
760
+ */
761
+ declare class TableRowDetailDirective {
762
+ readonly template: TemplateRef<TableRowDetailContext>;
763
+ constructor(template: TemplateRef<TableRowDetailContext>);
764
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableRowDetailDirective, never>;
765
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableRowDetailDirective, "[ithTableRowDetail]", never, {}, {}, never, never, true, never>;
766
+ }
497
767
 
498
768
  /** Read a dot-path value (`'a.b.c'`) from an object; `undefined` when a link is missing. */
499
769
  declare function getPathValue(source: unknown, path: string | null | undefined): unknown;
@@ -511,6 +781,26 @@ declare function buildPageWindow(current: number, pageCount: number, maxButtons?
511
781
  /** `true` when the event target is a text field, so row-selection should be skipped. */
512
782
  declare function isInteractiveTarget(target: EventTarget | null): boolean;
513
783
 
514
- export { TableCellDirective, TableComponent, TableEmptyDirective, TableFilterDirective, TableFooterDirective, TableHeaderDirective, TableRowActionsDirective, TableRowMenuDirective, TableToolbarDirective, buildPageWindow, compareWithDirection, defaultCompare, getPathValue, isInteractiveTarget, toDisplay };
515
- export type { TableActionEvent, TableAlign, TableCellContext, TableCellCopyEvent, TableColumn, TableDensity, TableFilterContext, TableFilterOption, TableFilterType, TableFooterContext, TableHeaderContext, TableMode, TableRowAction, TableRowActionsContext, TableRowEvent, TableRowMenuContext, TableRowMenuEvent, TableSelectAllScope, TableSelectionMode, TableSort, TableSortDirection, TableToolbarContext };
784
+ /**
785
+ * Tiny, dependency-free `.xlsx` writer.
786
+ *
787
+ * An xlsx file is a ZIP container with a handful of XML parts. Everything here is
788
+ * written with STORE (no compression), which is valid and keeps the code small, so the
789
+ * table can offer real Excel output without pulling in a spreadsheet library.
790
+ */
791
+ interface XlsxSheetOptions {
792
+ /** Sheet/tab name shown in Excel. */
793
+ sheetName: string;
794
+ /** Bold header cell per column. */
795
+ header: string[];
796
+ /** Already formatted cell text, row by row. */
797
+ rows: string[][];
798
+ /** Optional fixed column widths (Excel character units). */
799
+ columnWidths?: number[];
800
+ }
801
+ /** Build an `.xlsx` workbook (single sheet, frozen + filtered header row). */
802
+ declare function buildXlsxBlob(options: XlsxSheetOptions): Blob;
803
+
804
+ export { TableCellDirective, TableComponent, TableEmptyDirective, TableFilterDirective, TableFooterDirective, TableHeaderDirective, TableRowActionsDirective, TableRowDetailDirective, TableRowMenuDirective, TableToolbarDirective, buildPageWindow, buildXlsxBlob, compareWithDirection, defaultCompare, getPathValue, isInteractiveTarget, toDisplay };
805
+ export type { TableActionEvent, TableAggregate, TableAggregateType, TableAlign, TableCellContext, TableCellCopyEvent, TableColumn, TableDensity, TableExportEvent, TableFilterContext, TableFilterOption, TableFilterType, TableFooterContext, TableHeaderContext, TableMode, TablePin, TablePresetState, TableRowAction, TableRowActionsContext, TableRowDetailContext, TableRowEvent, TableRowMenuContext, TableRowMenuEvent, TableSelectAllScope, TableSelectionAction, TableSelectionActionEvent, TableSelectionMode, TableSort, TableSortDirection, TableToolbarContext, XlsxSheetOptions };
516
806
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../libs/ngx-table/src/lib/models/table.models.ts","../../../libs/ngx-table/src/lib/components/table/table.component.ts","../../../libs/ngx-table/src/lib/directives/table-template.directives.ts","../../../libs/ngx-table/src/lib/utils/table.utils.ts"],"mappings":";;;AAAA;;AAEG;AAEH;AACA,KAAA,SAAY;AAEZ;AACA,KAAA;AAEA;AACA,KAAA,mBAAY;AAEZ,KAAA;AAEA,KAAA,kBAAY;AAEZ;AACA,KAAA,eAAY;AAEZ;AACA,KAAA,YAAY;AAEZ;AACA,2BAAiB;;;AAGhB;AAED;AACA,mBAAi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BAAA;AACG,wBAAQ,aAAa,CAAC,WAAA;wDAFhC;wEAAA;AAGZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,oBAAA;AAED;AACA;AAGc,cAAS,oBAAqB;uBADxB,WAAA,CAAA,kBAAA;AACG,wBAAQ,aAAa,CAAC,WAAA;wDAFhC;wEAAA;AAGZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,oBAAA;AAED;AACA;AAEc,cAAS;AAAA,uBAAA,WAAU,CAAA,sBAAY;4DADhC;4EAAA;AAEZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,wBAAA;AAED;AACA;AAEc,cAAS,qBAAsB;AAAtB,uBAAA,WAAU,CAAA,mBAAY;yDADhC;yEAAA;AAEZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,qBAAA;AAED;AACA;AAEc,cAAS,oBAAqB;AAArB,uBAAA,WAAU,CAAA,kBAAY;wDADhC;wEAAA;AAEZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,oBAAA;AAED;AACA;AAEc,cAAS,mBAAU;AAAV,uBAAA,WAAU,CAAA,mBAAY;yDADhC;uEAAA;AAEZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,mBAAA;AAED;;;;;;;;AAQG;AACH;AAEc,cAAS,qBAAsB;AAAtB,uBAAA,WAAU,CAAA,mBAAY;yDADhC;yEAAA;AAEZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,qBAAA;;;AC5ED;AACA,iBAAA,YAAgB;AAQhB;AACA,iBAAA;AAQA;AACA,iBAAA,cAAgB;AAUhB;AACA,iBAAA,oBAAgB,4BAAqC,kBAAW;AAIhE;;;AAGG;AACH,iBAAA,eAAgB;AAWhB;AACA,iBAAA,mBAAgB,SAAoB;;;;","names":["i0"]}
1
+ {"version":3,"file":"index.d.ts","sources":["../../../libs/ngx-table/src/lib/models/table.models.ts","../../../libs/ngx-table/src/lib/components/table/table.component.ts","../../../libs/ngx-table/src/lib/directives/table-template.directives.ts","../../../libs/ngx-table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sBAAA,CAAA,qBAAA;AAED;;;;;;;;AAQG;AACH;AAEc,cAAS;AAAA,uBAAA,WAAU,CAAA,qBAAY;2DADhC;2EAAA;AAEZ,iBAAAA,aAAA,CAAA,sBAAA,CAAA,uBAAA;;;AC3FD;AACA,iBAAA,YAAgB;AAQhB;AACA,iBAAA;AAQA;AACA,iBAAA,cAAgB;AAUhB;AACA,iBAAA,oBAAgB,4BAAqC,kBAAW;AAIhE;;;AAGG;AACH,iBAAA,eAAgB;AAWhB;AACA,iBAAA,mBAAgB,SAAoB;;ACpDpC;;;;;;AAMG;AAgHH,0BAAiB;;;;;;AAMf;;AAEA;AACD;AAED;AACA,iBAAA,uBAA8B,gBAAS,GAAA,IAAgB;;;;","names":["i0"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ithouse-bd/ngx-table",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Generic, fully themeable Angular data table: sorting, searching, per-column filters, pagination, row selection, row actions, custom cell/header/footer templates and a server-side mode.",
5
5
  "keywords": [
6
6
  "angular",