@ids-group-ltd/ids-design-system 0.12.0 → 0.12.2

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.
Files changed (169) hide show
  1. package/CHANGELOG.md +568 -52
  2. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
  3. package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
  4. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
  5. package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
  6. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +2 -2
  7. package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
  8. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
  9. package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
  10. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +10 -13
  11. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  12. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs +2 -2
  13. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar-group.mjs.map +1 -1
  14. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
  15. package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
  16. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +2 -2
  17. package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
  18. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
  19. package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
  20. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +2 -2
  21. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  22. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +2 -2
  23. package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
  24. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +2 -2
  25. package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
  26. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
  27. package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs.map +1 -1
  28. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs +2 -2
  29. package/fesm2022/ids-group-ltd-ids-design-system-components-card.mjs.map +1 -1
  30. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
  31. package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +10 -7
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +13 -9
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +2 -2
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +2 -2
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs +2 -2
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs +2 -2
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-field-message.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs +2 -2
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-filter-bar.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +2 -2
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs +2 -2
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-loading-overlay.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +12 -5
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +6 -6
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +10 -13
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +2 -2
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +2 -2
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs +2 -2
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-password-rules.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs +15 -7
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs +2 -2
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-progress.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +21 -8
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +2 -2
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +2 -2
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +10 -13
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +2 -2
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +15 -8
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
  87. package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
  89. package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +15 -5
  91. package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
  92. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +2 -2
  93. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  94. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
  95. package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
  96. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
  97. package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
  98. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +428 -0
  99. package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -0
  100. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs +186 -0
  101. package/fesm2022/ids-group-ltd-ids-design-system-components-table-export.mjs.map +1 -0
  102. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs +227 -0
  103. package/fesm2022/ids-group-ltd-ids-design-system-components-table-resize.mjs.map +1 -0
  104. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +304 -437
  105. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  106. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +2 -2
  107. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  108. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
  109. package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
  110. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +2 -2
  111. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  112. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +12 -9
  113. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  114. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +2 -2
  115. package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
  116. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +9 -7
  117. package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
  118. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
  119. package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
  120. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +2 -2
  121. package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
  122. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
  123. package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
  124. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +27 -1
  125. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  126. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +12 -4
  127. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  128. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs +2 -38
  129. package/fesm2022/ids-group-ltd-ids-design-system-icons.mjs.map +1 -1
  130. package/fesm2022/ids-group-ltd-ids-design-system.mjs +3 -0
  131. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  132. package/migrations/0.10.0.json +1 -1
  133. package/migrations/0.10.1.json +1 -1
  134. package/migrations/0.10.2.json +1 -30
  135. package/migrations/0.11.1.json +0 -23
  136. package/migrations/0.11.3.json +1 -1
  137. package/migrations/0.11.4.json +27 -7
  138. package/migrations/0.12.0.json +30 -2
  139. package/migrations/0.12.1.json +341 -0
  140. package/migrations/0.12.2.json +291 -0
  141. package/migrations/0.5.0.json +0 -54
  142. package/migrations/0.5.1.json +3 -1
  143. package/migrations/0.7.0.json +0 -11
  144. package/migrations/0.9.0.json +22 -3
  145. package/migrations/0.9.1.json +1 -1
  146. package/package.json +25 -1
  147. package/styles/_check-box.scss +91 -0
  148. package/styles/_check-mark.scss +59 -0
  149. package/styles/_clear-button.scss +28 -0
  150. package/styles/_dropdown-overlay.scss +12 -2
  151. package/styles/_field-group-segment.scss +4 -1
  152. package/styles/_focus.scss +103 -50
  153. package/styles/_link.scss +4 -2
  154. package/styles/_table-controls.scss +66 -0
  155. package/styles/_tokens.scss +20 -0
  156. package/styles/_typography.scss +6 -0
  157. package/themes/_semantic.scss +7 -8
  158. package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
  159. package/types/ids-group-ltd-ids-design-system-components-menu.d.ts +3 -0
  160. package/types/ids-group-ltd-ids-design-system-components-radio-group.d.ts +8 -4
  161. package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +9 -2
  162. package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +3 -2
  163. package/types/ids-group-ltd-ids-design-system-components-table-columns.d.ts +43 -0
  164. package/types/ids-group-ltd-ids-design-system-components-table-export.d.ts +48 -0
  165. package/types/ids-group-ltd-ids-design-system-components-table-resize.d.ts +79 -0
  166. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +196 -155
  167. package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
  168. package/types/ids-group-ltd-ids-design-system-core.d.ts +17 -4
  169. package/types/ids-group-ltd-ids-design-system.d.ts +3 -0
@@ -1,6 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { TemplateRef } from '@angular/core';
3
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
+ import { TemplateRef, Signal, ViewContainerRef } from '@angular/core';
4
3
  import { IconName } from '@ids-group-ltd/ids-design-system/core';
5
4
 
6
5
  /**
@@ -142,8 +141,9 @@ interface TableColumn<T = unknown> {
142
141
  /** Double-click the cell to edit it inline; the committed value is emitted
143
142
  * via the table's `cellEdited` output (the consumer owns the data update). */
144
143
  editable?: boolean;
145
- /** Let the user toggle the column in the header column picker — the picker
146
- * button appears once at least one column is hideable. */
144
+ /** Let the user toggle the column in the header column picker. Needs the
145
+ * `dsTableColumns` directive on the table: that is what renders the picker,
146
+ * and without it this flag does nothing. */
147
147
  hideable?: boolean;
148
148
  /** Marks the cell whose TEXT tells the reader what the row opens, so it takes a link
149
149
  * colour and underline while the row is hovered. Only has an effect on a
@@ -169,9 +169,10 @@ interface TableColumn<T = unknown> {
169
169
  * row, so the row handler fires for the rest of the row and the link navigates
170
170
  * once. Style it with the same `--ds-table-cell-link-*` tokens as `interactive`. */
171
171
  link?: (row: T) => string | readonly unknown[] | null | undefined;
172
- /** Initial visibility: start hidden. The column picker (or a bound
173
- * `hiddenKeys` set) owns the state from then on; a hidden column stays
174
- * available to `filterable` matching and sorting. */
172
+ /** Initial visibility: start hidden. Needs the `dsTableColumns` directive on
173
+ * the table — visibility is its stage, so without it the column renders. The
174
+ * picker (or a bound `hiddenKeys` set) owns the state from then on; a hidden
175
+ * column stays available to `filterable` matching and sorting. */
175
176
  hidden?: boolean;
176
177
  }
177
178
  type SortDir = 'asc' | 'desc' | null;
@@ -210,6 +211,153 @@ interface TableCellEditEvent<T = unknown> {
210
211
  value: string;
211
212
  }
212
213
 
214
+ /** A stage in the column pipeline: ordering, hiding, widths. */
215
+ type DsTableColumnStage<T> = (columns: readonly TableColumn<T>[]) => readonly TableColumn<T>[];
216
+ /** A stage in the row pipeline: the set filters, ahead of the substring search. */
217
+ type DsTableRowStage<T> = (rows: readonly T[]) => readonly T[];
218
+ /**
219
+ * Where in the table a feature may put markup.
220
+ *
221
+ * Three, because the column picker needs three: a trigger in the utility header cell, and its
222
+ * popover and bottom sheet at the end of the host where an overlay belongs. One
223
+ * `ViewContainerRef` was enough for the export button and is not enough for anything else.
224
+ */
225
+ type DsTableAnchor = 'toolbar' | 'header-utility' | 'overlays';
226
+ /** Everything a resize feature hands the table: the width it overrides, and the handlers the
227
+ * header's separator calls. The markup stays in the table because a directive has no view to
228
+ * declare it in, so the table needs somewhere to send the events. */
229
+ interface DsTableResizeContribution<T> {
230
+ readonly widthOverride: (key: string) => number | undefined;
231
+ readonly range: (column: TableColumn<T>) => {
232
+ now: number;
233
+ min: number;
234
+ max: number;
235
+ } | null;
236
+ readonly onStart: (column: TableColumn<T>, event: PointerEvent) => void;
237
+ readonly onMove: (event: PointerEvent) => void;
238
+ readonly onEnd: () => void;
239
+ readonly onFocus: (column: TableColumn<T>, event: FocusEvent) => void;
240
+ readonly onBlur: () => void;
241
+ readonly onKey: (column: TableColumn<T>, event: KeyboardEvent) => void;
242
+ readonly step: (column: TableColumn<T>, delta: number | 'auto') => void;
243
+ }
244
+ /**
245
+ * What a feature is allowed to read back out of the table, and where it may put markup.
246
+ *
247
+ * A feature needs the table's derived state — the export serialises `visibleColumns` and
248
+ * `sortedRows` through `cellText`. Those live on the component as `protected`, which a directive
249
+ * cannot reach, so the contract is published here rather than by widening the component's surface:
250
+ * this way the table's public API does not grow one member per feature.
251
+ */
252
+ interface DsTableView<T> {
253
+ /** As declared, before any feature reorders or hides. A feature that OWNS the order needs the
254
+ * unfolded list - reading `visibleColumns` would fold its own stage back in. */
255
+ readonly declaredColumns: Signal<readonly TableColumn<T>[]>;
256
+ readonly visibleColumns: Signal<readonly TableColumn<T>[]>;
257
+ readonly sortedRows: Signal<readonly T[]>;
258
+ readonly cellText: (row: T, column: TableColumn<T>) => string;
259
+ /** A directive cannot insert markup into another component's template, so a feature with a
260
+ * control of its own creates it in one of these. Undefined until the view exists. */
261
+ readonly anchor: (name: DsTableAnchor) => Signal<ViewContainerRef | undefined>;
262
+ /** The scroll container. A width ceiling has to be the viewport, and the header cells are
263
+ * looked up inside it. */
264
+ readonly scrollViewport: Signal<HTMLElement | undefined>;
265
+ }
266
+ /**
267
+ * One named piece of the persisted column layout.
268
+ *
269
+ * The stored shape stays `{ order, widths, hidden }`, so a layout saved by an earlier version
270
+ * still restores — the key IS the JSON key. Persistence walks whatever is registered instead of
271
+ * naming the three inputs, which is what lets reorder, the picker and resize move out from under
272
+ * it without the storage code changing.
273
+ */
274
+ interface DsTablePersistedSlice {
275
+ readonly key: string;
276
+ /** Serialisable. Read inside the caller's effect, so whatever it touches is tracked. */
277
+ readonly read: () => unknown;
278
+ readonly write: (value: unknown) => void;
279
+ /** Back to the declared layout. "Reset to default" has to reach every slice, and only the
280
+ * slice knows what its own default is. */
281
+ readonly reset: () => void;
282
+ }
283
+ /** What an export feature hands the table, so `runExport()` and `exporting()` stay public API
284
+ * while the implementation lives outside the component. */
285
+ interface DsTableExportContribution<T> {
286
+ readonly run: () => Promise<void>;
287
+ readonly csv: (filename?: string, rows?: readonly T[]) => void;
288
+ readonly exporting: Signal<boolean>;
289
+ }
290
+ /**
291
+ * The seam an opt-in table feature writes into, so the table never names the feature.
292
+ *
293
+ * The ablation that priced this split (`docs/basic-advanced-split-audit.md` §9) kept hitting the
294
+ * same shape: the table owns a derived value and a feature wants to contribute to it —
295
+ * `visibleColumns` is the chain the column picker writes to, `filteredData` folds the set filters
296
+ * into the substring search, the live region folds in the export state. Moving methods out one at a
297
+ * time cannot express that; a registry of contributions can.
298
+ *
299
+ * @internal Not API. Provided by `ds-table` on itself, so a directive on the same element injects
300
+ * the instance it belongs to and two tables on one screen stay independent.
301
+ */
302
+ declare class DsTableLayout<T = unknown> {
303
+ private readonly columnStages;
304
+ private readonly rowStages;
305
+ private readonly statusFragments;
306
+ /** Registered once, at the contributing directive's construction — never per change
307
+ * detection. A stage may read signals of its own: the fold runs inside the table's
308
+ * `computed`, so whatever the stage touches is tracked by that computed rather than by
309
+ * this service, which is what lets a feature stay reactive without the table knowing it
310
+ * exists. */
311
+ addColumnStage(stage: DsTableColumnStage<T>): void;
312
+ addRowStage(stage: DsTableRowStage<T>): void;
313
+ private readonly utilityColumnWanted;
314
+ /** The utility column carries the row-action kebab and the picker trigger. The table knows
315
+ * about the first and must be told about the second, or the cell it anchors into is never
316
+ * rendered and the feature has nowhere to go. */
317
+ requestUtilityColumn(): void;
318
+ wantsUtilityColumn(): boolean;
319
+ private readonly slices;
320
+ addPersistedSlice(slice: DsTablePersistedSlice): void;
321
+ persistedSlices(): readonly DsTablePersistedSlice[];
322
+ resetPersisted(): void;
323
+ private readonly rowTemplate;
324
+ /** A per-column control in the column panel, for a feature the panel must not name - resize
325
+ * puts its width buttons there. */
326
+ registerPanelRowTemplate(template: TemplateRef<{
327
+ $implicit: TableColumn<T>;
328
+ }>): void;
329
+ panelRowTemplate(): TemplateRef<{
330
+ $implicit: TableColumn<T>;
331
+ }> | null;
332
+ /** A line for the live region, folded in ahead of the table's own events. */
333
+ addStatusFragment(fragment: Signal<string>): void;
334
+ foldColumns(columns: readonly TableColumn<T>[]): readonly TableColumn<T>[];
335
+ foldRows(rows: readonly T[]): readonly T[];
336
+ /** Empty when nothing contributes, so the table's own message is unchanged. */
337
+ status(): string;
338
+ private published;
339
+ private readonly exportContribution;
340
+ /** Called by the table itself, before any directive can ask for it: a directive on the same
341
+ * element is constructed after the component that provides this service. */
342
+ publish(view: DsTableView<T>): void;
343
+ view(): DsTableView<T>;
344
+ /** The table keeps `runExport()` and `exporting()` as public API, because their docblocks
345
+ * promise a button outside the table can drive them. The implementation is the feature's, so
346
+ * the table asks here and can tell the difference between "no export directive" and "nothing
347
+ * to export" — which is the one silent failure this whole shape is prone to. */
348
+ setExport(contribution: DsTableExportContribution<T>): void;
349
+ runExport(): Promise<void> | null;
350
+ /** True when it ran, so the caller can tell "no feature" from "nothing to export". */
351
+ exportCsv(filename?: string, rows?: readonly T[]): boolean;
352
+ exporting(): boolean;
353
+ private readonly resizeContribution;
354
+ setResize(contribution: DsTableResizeContribution<T>): void;
355
+ /** Null when no resize feature is present, which is what the header's `@if` reads. */
356
+ resize(): DsTableResizeContribution<T> | null;
357
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DsTableLayout<any>, never>;
358
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<DsTableLayout<any>>;
359
+ }
360
+
213
361
  declare class TableComponent<T extends object> {
214
362
  /** Rows to render. */
215
363
  readonly data: _angular_core.InputSignal<readonly T[]>;
@@ -314,22 +462,7 @@ declare class TableComponent<T extends object> {
314
462
  /** Two-way per-column set-filters: column key → the still-checked values.
315
463
  * A column absent from the map (or with every value checked) is unfiltered. */
316
464
  readonly columnFilters: _angular_core.ModelSignal<Map<string, ReadonlySet<string>>>;
317
- /** Two-way set of hidden column keys. `null` (default) derives the set from
318
- * each column's `hidden` flag; the column picker then owns it. Binding a
319
- * Set takes over — `hidden` flags are ignored. */
320
- readonly hiddenKeys: _angular_core.ModelSignal<Set<string> | null>;
321
- /** Enables drag-to-resize handles on each column header. */
322
- readonly resizableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
323
- /** Two-way per-column pixel width overrides (keyed by column key), set by
324
- * dragging a resize handle. Seeded from `column.width` where unset. */
325
- readonly columnWidths: _angular_core.ModelSignal<Map<string, number>>;
326
- /** Enables drag + up/down reordering in the column panel. */
327
- readonly reorderableColumns: _angular_core.InputSignalWithTransform<boolean, unknown>;
328
- /** Two-way column order as a list of keys. `null` (default) keeps declaration
329
- * order; the column panel owns it once the user reorders. Keys absent from
330
- * the list fall back to declaration order after the listed ones. */
331
- readonly columnOrder: _angular_core.ModelSignal<string[] | null>;
332
- /** Round-trip `columnOrder`, `columnWidths` and `hiddenKeys` through
465
+ /** Round-trip whatever the column features persist (order, widths, hidden keys) through
333
466
  * `localStorage`, so a reader's column layout survives a reload. Needs
334
467
  * `storageKey` — without one there is nothing to key a screen by, and two
335
468
  * tables would overwrite each other. Off by default. */
@@ -337,34 +470,9 @@ declare class TableComponent<T extends object> {
337
470
  /** Screen id the persisted layout is stored under. Pick something stable per
338
471
  * table, not per route instance. */
339
472
  readonly storageKey: _angular_core.InputSignal<string>;
340
- /** Render an export button in the table's toolbar row. Off by default. Leave it
341
- * off and drive `runExport()` from your own button — in a page header, a filter
342
- * bar, the `[toolbar]` slot — reading `exporting()` for its loading state. */
343
- readonly exportButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
344
- /** Filename the export button downloads as. */
345
- readonly exportFilename: _angular_core.InputSignal<string>;
346
- /**
347
- * Where the export button gets its data. A server-paged table only HAS the
348
- * current page, so exporting without this silently exports one page.
349
- *
350
- * Return ROWS and the table serializes them the same way it serializes its
351
- * own. Return a `Blob` (or a URL string) and the table just downloads it —
352
- * which is what you want when the backend already formatted the file with its
353
- * own number formats, its own columns, or a sheet the table never held.
354
- */
355
- readonly exportFetcher: _angular_core.InputSignal<(() => Promise<readonly T[] | Blob | string>) | null>;
356
- /** Fires when `exportFetcher` rejects. Without it a failed export is silent —
357
- * the button simply re-enables and no file arrives. */
358
- readonly exportFailed: _angular_core.OutputEmitterRef<unknown>;
359
- private readonly exportingState;
360
- /** True while `exportFetcher` is in flight. Public so a button OUTSIDE the table
361
- * can show the same in-flight state as the built-in one. */
473
+ /** True while an export is in flight. Public so a button OUTSIDE the table can show the same
474
+ * state as the built-in one. `false` when no export directive is present. */
362
475
  readonly exporting: _angular_core.Signal<boolean>;
363
- private readonly exportStatusState;
364
- private readonly eventsAtExport;
365
- /** Announced in the table's live region while an export is running or after it
366
- * failed, so the button's own disabled state is not the only signal. */
367
- readonly exportStatus: _angular_core.Signal<string>;
368
476
  /** Keeps the horizontal scrollbar reachable on tall tables: the scroll
369
477
  * container's native bar is hidden and a proxy stuck to the bottom of the
370
478
  * nearest scroll ancestor mirrors it both ways. Off by default. Unset falls
@@ -410,6 +518,17 @@ declare class TableComponent<T extends object> {
410
518
  protected readonly sortModeResolved: _angular_core.Signal<TableSortMode>;
411
519
  readonly borderedResolved: _angular_core.Signal<boolean>;
412
520
  readonly stickyScrollbarResolved: _angular_core.Signal<boolean>;
521
+ /**
522
+ * Where the sticky horizontal scrollbar comes to rest, as any CSS length.
523
+ *
524
+ * Unset, the table measures its scroll container's bottom padding and cancels it, so the bar
525
+ * sits on the edge the reader can see. Set it for a scrollport whose reachable edge is not its
526
+ * padding edge. Falls back to `DS_CONFIG.table.stickyScrollbarOffset`;
527
+ * `--ds-table-sticky-scrollbar-offset` still wins over both, for a rule that has to reach one
528
+ * table from a stylesheet.
529
+ */
530
+ readonly stickyScrollbarOffset: _angular_core.InputSignal<string | null>;
531
+ readonly stickyScrollbarOffsetResolved: _angular_core.Signal<string | null>;
413
532
  /** Pin the first data column (and the select column) on horizontal scroll. */
414
533
  readonly stickyFirstColumn: _angular_core.InputSignalWithTransform<boolean, unknown>;
415
534
  /**
@@ -511,27 +630,30 @@ declare class TableComponent<T extends object> {
511
630
  * what a list uses on every read after the first, so suppressing only under
512
631
  * `skeleton` paints "No rows yet" under the spinner on a zero-row reload. */
513
632
  protected readonly showsEmptyRow: _angular_core.Signal<boolean>;
514
- protected readonly effectiveHiddenKeys: _angular_core.Signal<ReadonlySet<string>>;
515
- protected readonly orderedColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
633
+ /** Loading, nothing to show yet, and not the skeleton mode which draws its own rows. */
634
+ protected readonly showsLoadingSpace: _angular_core.Signal<boolean>;
635
+ protected readonly layout: DsTableLayout<T>;
636
+ private readonly toolbarAnchor;
637
+ private readonly headerUtilityAnchor;
638
+ private readonly overlaysAnchor;
639
+ private readonly columnWidthControls;
516
640
  protected readonly visibleColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
517
- protected readonly hideableColumns: _angular_core.Signal<readonly TableColumn<T>[]>;
518
- protected readonly hasColumnPicker: _angular_core.Signal<boolean>;
641
+ /** `'content'` is not a pixel value — it is carried by a class instead, see `fitsContent`. */
642
+ protected columnWidth(col: TableColumn<T>): number | null;
643
+ /** Shrink-to-content mode, unless the reader has dragged this column — a drag is a deliberate
644
+ * pixel width and must win over the declared intent. */
645
+ protected fitsContent(col: TableColumn<T>): boolean;
519
646
  protected readonly hasUtilityColumn: _angular_core.Signal<boolean>;
520
- protected isColumnVisible(col: TableColumn<T>): boolean;
521
- /** The last visible column can't be hidden — an all-hidden grid is useless. */
522
- protected isColumnLocked(col: TableColumn<T>): boolean;
523
- protected toggleColumn(col: TableColumn<T>): void;
524
- protected moveColumn(col: TableColumn<T>, delta: -1 | 1): void;
525
- protected onColumnDrop(event: CdkDragDrop<unknown>): void;
526
- protected resetColumns(): void;
527
647
  private readonly columnFilterPopover;
528
648
  /** The column whose filter menu is open — drives the distinct-value list. */
649
+ protected readonly hasAnyColumnFilter: _angular_core.Signal<boolean>;
529
650
  protected readonly filterColumn: _angular_core.WritableSignal<TableColumn<T> | null>;
530
651
  protected readonly filterSearch: _angular_core.WritableSignal<string>;
531
652
  private readonly headerFilters;
532
653
  private readonly headerFilterByKey;
533
654
  protected headerFilterFor(col: TableColumn<T>): HeaderFilterDirective | undefined;
534
655
  protected hasColumnFilter(col: TableColumn<T>): boolean;
656
+ protected isFilterPanelOpen(col: TableColumn<T>): boolean;
535
657
  protected isColumnFiltered(col: TableColumn<T>): boolean;
536
658
  private optionsFor;
537
659
  protected readonly filterValues: _angular_core.Signal<readonly string[]>;
@@ -559,77 +681,9 @@ declare class TableComponent<T extends object> {
559
681
  protected onEditInput(event: Event): void;
560
682
  protected commitEdit(row: T, col: TableColumn<T>): void;
561
683
  protected cancelEdit(): void;
562
- private static readonly RESIZE_STEP;
563
- private static readonly RESIZE_PAGE;
564
- private static readonly MIN_COLUMN_WIDTH;
565
- private resizeState;
566
- /** `'content'` is not a pixel value — it is carried by a class instead, see
567
- * `fitsContent`. */
568
- protected columnWidth(col: TableColumn<T>): number | null;
569
- /** Shrink-to-content mode, unless the user has dragged this column — a drag is a
570
- * deliberate pixel width and must win over the declared intent. */
571
- protected fitsContent(col: TableColumn<T>): boolean;
572
684
  /** Clip width for `truncate`. `'content'` has no clip width — the column is as
573
685
  * wide as its widest cell, so there is nothing to ellipsis against. */
574
686
  protected clipWidth(col: TableColumn<T>): number | null;
575
- protected onResizeStart(col: TableColumn<T>, event: PointerEvent): void;
576
- /**
577
- * Freeze the columns at what they currently measure, once, before the first
578
- * drag moves anything.
579
- *
580
- * Without it only the dragged column has a width and the rest are still
581
- * auto-sized, so the browser redistributes the remainder across them and
582
- * columns the reader never touched visibly jump. Measuring first means the
583
- * drag changes one column and leaves the others where they were — the
584
- * auto-sized geometry is kept rather than lost at the first grab.
585
- *
586
- * Reads the header row that is actually on screen rather than assuming a
587
- * column order.
588
- */
589
- private lockMeasuredWidths;
590
- protected onResizeMove(event: PointerEvent): void;
591
- protected onResizeEnd(): void;
592
- private readonly resizeFocus;
593
- /**
594
- * The widest a single column may be dragged: the scroll viewport.
595
- *
596
- * A column wider than the viewport can never be seen whole, and long text has
597
- * its own affordance here — `truncate` clips it and the clip popover shows the
598
- * rest — so nothing is lost by stopping at the edge. The ceiling exists at all
599
- * because `aria-valuemax` has to be TRUE: a focusable `role="separator"` is a
600
- * range widget, and announcing a bound that neither resize path applies is
601
- * worse than announcing none.
602
- */
603
- private columnWidthCeiling;
604
- private clampColumnWidth;
605
- protected onResizeFocus(col: TableColumn<T>, event: FocusEvent): void;
606
- protected onResizeBlur(): void;
607
- /**
608
- * The separator's range, and only while it holds focus — that is when a range
609
- * widget is announced, and an auto-sized column has no width to report until
610
- * something measures one. Measuring on every change detection to fill an
611
- * attribute nothing is reading would force layout once per resizable column.
612
- *
613
- * `now` prefers `columnWidth`, which the first arrow key makes known and keeps
614
- * live; the focus measurement only covers the moment before that.
615
- */
616
- protected resizeRange(col: TableColumn<T>): {
617
- now: number;
618
- min: number;
619
- max: number;
620
- } | null;
621
- protected resolvedColumnWidth(col: TableColumn<T>, from?: HTMLElement): number;
622
- protected onResizeKey(col: TableColumn<T>, event: KeyboardEvent): void;
623
- /**
624
- * The header cell is passed when the caller has it — the column panel does
625
- * not, so it is looked up by `data-col-key`, and the measurement matters:
626
- * stepping an auto-sized column has to start from what it currently RENDERS,
627
- * not from the minimum.
628
- */
629
- private stepColumnWidth;
630
- private headerCellFor;
631
- protected onColumnWidthStep(col: TableColumn<T>, delta: number | 'auto'): void;
632
- protected readonly resizeStep = 16;
633
687
  protected readonly filteredData: _angular_core.Signal<readonly T[]>;
634
688
  protected readonly sortedData: _angular_core.Signal<readonly T[]>;
635
689
  protected readonly pagedData: _angular_core.Signal<readonly T[]>;
@@ -684,6 +738,7 @@ declare class TableComponent<T extends object> {
684
738
  protected isStriped(absoluteIndex: number): boolean;
685
739
  protected readonly allSelected: _angular_core.Signal<boolean>;
686
740
  protected readonly someSelected: _angular_core.Signal<boolean>;
741
+ protected readonly anySelected: _angular_core.Signal<boolean>;
687
742
  protected readonly selectAllLabel: _angular_core.Signal<"Select all rows on this page" | "Select all rows">;
688
743
  protected readonly allExpanded: _angular_core.Signal<boolean>;
689
744
  protected readonly expandAllVisible: _angular_core.Signal<boolean>;
@@ -694,14 +749,6 @@ declare class TableComponent<T extends object> {
694
749
  protected readonly menuRow: _angular_core.WritableSignal<T | null>;
695
750
  private readonly rowMenuPopover;
696
751
  private readonly columnPickerPopover;
697
- protected readonly columnSheetOpen: _angular_core.WritableSignal<boolean>;
698
- private readonly coarsePointerState;
699
- /** Whether the column panel opens as a sheet and the drag handle stands down.
700
- * Keyed on the pointer, not the viewport — see the matching media query in
701
- * `table.component.scss`. */
702
- protected readonly coarsePointer: _angular_core.Signal<boolean>;
703
- protected readonly columnPickerOpened: _angular_core.Signal<boolean>;
704
- protected onColumnPickerClick(event: Event): void;
705
752
  protected readonly hasTruncate: _angular_core.Signal<boolean>;
706
753
  private readonly cellTextPopover;
707
754
  protected readonly cellPopoverText: _angular_core.WritableSignal<string>;
@@ -719,7 +766,9 @@ declare class TableComponent<T extends object> {
719
766
  private readonly scrollWrap;
720
767
  private readonly hscrollProxy;
721
768
  private readonly tableHead;
769
+ private publishHeadHeight;
722
770
  private readonly hostElement;
771
+ private scrollAncestor;
723
772
  protected readonly hscrollContentWidth: _angular_core.WritableSignal<number>;
724
773
  protected readonly hscrollNeeded: _angular_core.WritableSignal<boolean>;
725
774
  private readonly scrollTop;
@@ -760,32 +809,24 @@ declare class TableComponent<T extends object> {
760
809
  protected sortIcon(col: TableColumn<T>): 'sortAsc' | 'sortDesc' | 'sort';
761
810
  protected cellValue(row: T, col: TableColumn<T>): string;
762
811
  protected cellLink(row: T, col: TableColumn<T>): string | readonly unknown[] | null;
763
- /** Serialises the visible columns of the rows the TABLE HOLDS as a CSV download.
764
- * On a server-paged table that is one page — prefer `runExport()`, which goes
765
- * through `exportFetcher` and exports the whole set. Pass `rows` to serialise a
766
- * set you fetched yourself. */
767
- exportCsv(filename?: string, rows?: readonly T[]): void;
768
812
  private layoutKey;
769
813
  private layoutRestored;
770
814
  private restoreLayout;
771
815
  private saveLayout;
772
- /** Runs the export the built-in button runs: awaits `exportFetcher` when one is
773
- * given — so a server-paged table exports the whole set rather than the page it
774
- * holds — downloads the result, drives `exporting`, writes the live region and
775
- * emits `exportFailed`. Public so the button can live anywhere:
776
- * `<ds-button [loading]="table.exporting()" (pressed)="table.runExport()">`. */
816
+ /** Serialises the visible columns as a CSV download, through whichever export feature is on the
817
+ * table. Pass `rows` to serialise a set you fetched yourself. Needs `dsTableExport`. */
818
+ exportCsv(filename?: string, rows?: readonly T[]): void;
819
+ /** Runs the export: awaits the feature's `exportFetcher` when one is given, downloads the
820
+ * result, drives `exporting()` and emits its `exportFailed`. Public so the button can live
821
+ * anywhere: `<ds-button [loading]="table.exporting()" (pressed)="table.runExport()">`. */
777
822
  runExport(): Promise<void>;
778
- private announceExport;
779
- /** Hands a ready-made file to the browser. Only a Blob gets its object URL
780
- * revoked — a URL the caller supplied is theirs to manage. */
781
- private downloadFile;
823
+ private warnNoExport;
782
824
  /** Deterministic per-cell width so skeleton rows look organic but stable
783
825
  * across re-renders. */
784
826
  protected skeletonWidth(col: TableColumn<T>, rowIndex: number): string;
785
- private watchPointer;
786
827
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableComponent<any>, never>;
787
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDir": { "alias": "sortDir"; "required": false; "isSignal": true; }; "sortingOrder": { "alias": "sortingOrder"; "required": false; "isSignal": true; }; "sortAnnouncement": { "alias": "sortAnnouncement"; "required": false; "isSignal": true; }; "rangeAnnouncement": { "alias": "rangeAnnouncement"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "hiddenKeys": { "alias": "hiddenKeys"; "required": false; "isSignal": true; }; "resizableColumns": { "alias": "resizableColumns"; "required": false; "isSignal": true; }; "columnWidths": { "alias": "columnWidths"; "required": false; "isSignal": true; }; "reorderableColumns": { "alias": "reorderableColumns"; "required": false; "isSignal": true; }; "columnOrder": { "alias": "columnOrder"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "exportButton": { "alias": "exportButton"; "required": false; "isSignal": true; }; "exportFilename": { "alias": "exportFilename"; "required": false; "isSignal": true; }; "exportFetcher": { "alias": "exportFetcher"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "columnFilterOptions": { "alias": "columnFilterOptions"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualRowSize": { "alias": "virtualRowSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandMode": { "alias": "expandMode"; "required": false; "isSignal": true; }; "expandAllToggle": { "alias": "expandAllToggle"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKeyChange": "sortKeyChange"; "sortDirChange": "sortDirChange"; "columnFilters": "columnFiltersChange"; "hiddenKeys": "hiddenKeysChange"; "columnWidths": "columnWidthsChange"; "columnOrder": "columnOrderChange"; "exportFailed": "exportFailed"; "pageSize": "pageSizeChange"; "page": "pageChange"; "lazyLoad": "lazyLoad"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["cellTemplateDirectives", "headerFilters"], ["[toolbar]", "[empty]", "[bulk-actions]"], true, never>;
828
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableComponent<any>, "ds-table", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "density": { "alias": "density"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "animateHeight": { "alias": "animateHeight"; "required": false; "isSignal": true; }; "selectedIds": { "alias": "selectedIds"; "required": false; "isSignal": true; }; "sortKey": { "alias": "sortKey"; "required": false; "isSignal": true; }; "sortDir": { "alias": "sortDir"; "required": false; "isSignal": true; }; "sortingOrder": { "alias": "sortingOrder"; "required": false; "isSignal": true; }; "sortAnnouncement": { "alias": "sortAnnouncement"; "required": false; "isSignal": true; }; "rangeAnnouncement": { "alias": "rangeAnnouncement"; "required": false; "isSignal": true; }; "skeletonRows": { "alias": "skeletonRows"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "rowInteractive": { "alias": "rowInteractive"; "required": false; "isSignal": true; }; "activeRowId": { "alias": "activeRowId"; "required": false; "isSignal": true; }; "filterQuery": { "alias": "filterQuery"; "required": false; "isSignal": true; }; "columnFilters": { "alias": "columnFilters"; "required": false; "isSignal": true; }; "persistLayout": { "alias": "persistLayout"; "required": false; "isSignal": true; }; "storageKey": { "alias": "storageKey"; "required": false; "isSignal": true; }; "stickyScrollbar": { "alias": "stickyScrollbar"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "showPageSize": { "alias": "showPageSize"; "required": false; "isSignal": true; }; "showLabel": { "alias": "showLabel"; "required": false; "isSignal": true; }; "total": { "alias": "total"; "required": false; "isSignal": true; }; "scrollToTopOnPageChange": { "alias": "scrollToTopOnPageChange"; "required": false; "isSignal": true; }; "sortMode": { "alias": "sortMode"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "columnFilterOptions": { "alias": "columnFilterOptions"; "required": false; "isSignal": true; }; "stickyScrollbarOffset": { "alias": "stickyScrollbarOffset"; "required": false; "isSignal": true; }; "stickyFirstColumn": { "alias": "stickyFirstColumn"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualRowSize": { "alias": "virtualRowSize"; "required": false; "isSignal": true; }; "lazy": { "alias": "lazy"; "required": false; "isSignal": true; }; "rowActions": { "alias": "rowActions"; "required": false; "isSignal": true; }; "cellTemplateMap": { "alias": "cellTemplateMap"; "required": false; "isSignal": true; }; "emptyTemplate": { "alias": "emptyTemplate"; "required": false; "isSignal": true; }; "expandableRows": { "alias": "expandableRows"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "expandMode": { "alias": "expandMode"; "required": false; "isSignal": true; }; "expandAllToggle": { "alias": "expandAllToggle"; "required": false; "isSignal": true; }; "rowExpandTemplate": { "alias": "rowExpandTemplate"; "required": false; "isSignal": true; }; }, { "selectedIds": "selectedIdsChange"; "sortKeyChange": "sortKeyChange"; "sortDirChange": "sortDirChange"; "columnFilters": "columnFiltersChange"; "pageSize": "pageSizeChange"; "page": "pageChange"; "lazyLoad": "lazyLoad"; "rowClicked": "rowClicked"; "sortChange": "sortChange"; "rowActionSelected": "rowActionSelected"; "cellEdited": "cellEdited"; "expandedIds": "expandedIdsChange"; "rowExpanded": "rowExpanded"; "rowCollapsed": "rowCollapsed"; }, ["cellTemplateDirectives", "headerFilters"], ["[toolbar]", "[empty]", "[bulk-actions]"], true, never>;
788
829
  }
789
830
 
790
- export { CellTemplateDirective, HeaderFilterDirective, TableComponent };
791
- export type { HeaderFilterContext, SortChangeEvent, SortDir, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
831
+ export { CellTemplateDirective, DsTableLayout, HeaderFilterDirective, TableComponent };
832
+ export type { DsTableColumnStage, DsTableExportContribution, DsTableRowStage, DsTableView, HeaderFilterContext, SortChangeEvent, SortDir, TableCellEditEvent, TableColumn, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode };
@@ -448,6 +448,31 @@ declare function closeOnOutsidePointer(overlayRef: OverlayRef, isInsideTrigger:
448
448
  * @internal
449
449
  */
450
450
  declare function closeOnScroll(overlayRef: OverlayRef, close: () => void): () => void;
451
+ /**
452
+ * Sync a component's "which overlay is mine, and is it open" state when THIS overlay detaches,
453
+ * skipping the write when a newer one has already taken over.
454
+ *
455
+ * `disposeWithLeave` defers the dispose of a dismissed overlay until its exit animation ends, so a
456
+ * dismiss followed by a re-open inside that window makes the OLD overlay's detachment arrive while
457
+ * the NEW one is live. Clearing unconditionally then left that new panel on screen with its
458
+ * component believing it was closed — no `aria-expanded`, and `close()` declining to run because
459
+ * the ref it checks was already null, which is to say the panel could not be dismissed at all.
460
+ * Measured in ds-date-picker, ds-color-picker, ds-time-picker and ds-popover; ds-select,
461
+ * ds-autocomplete and ds-multi-select each carried the check by hand, and the four that did not
462
+ * are why it lives here instead.
463
+ *
464
+ * A detachment of the CURRENT overlay always clears, whatever caused it — so a stray CDK detach
465
+ * still releases a reopen guard that keys off the stored ref rather than wedging it.
466
+ * @internal
467
+ */
468
+ declare function clearOnDetach(overlayRef: OverlayRef, { current, clear, always, }: {
469
+ /** Reads the ref the component considers live right now. */
470
+ current: () => OverlayRef | null;
471
+ /** Drops the stored ref and marks the component closed. */
472
+ clear: () => void;
473
+ /** Teardown that must run for every detachment, current or superseded. */
474
+ always?: () => void;
475
+ }): void;
451
476
  /** True when keyboard focus currently sits inside the overlay pane. Read it
452
477
  * BEFORE disposing, to decide whether the close has to refocus the trigger
453
478
  * rather than strand focus on `<body>`. An outside-pointer close leaves focus on
@@ -600,5 +625,5 @@ interface DsTypeAhead {
600
625
  /** @internal */
601
626
  declare function createTypeAhead(): DsTypeAhead;
602
627
 
603
- export { DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, chipFit, closeOnOutsidePointer, closeOnScroll, createTypeAhead, disposeWithLeave, dropdownOverlay, focusIsInside, forwardOverlayTokens, nextControlId, overlayPlacementOf, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, trimmedText, valueControlBridge };
628
+ export { DS_FIELD_WARNING_KIND, DsBooleanControlValueAccessor, DsChipTemplateDirective, DsControlValueAccessor, DsCreateTemplateDirective, DsEmptyTemplateDirective, DsFieldBase, DsGroupLabelTemplateDirective, DsMessageBase, DsOptionTemplateDirective, DsPanelFooterTemplateDirective, DsPanelHeaderTemplateDirective, DsPickerTriggerDirective, DsStaticPreview, FieldClickFocusDirective, ProjectionDroppedDirective, announceOptionCount, chipFit, clearOnDetach, closeOnOutsidePointer, closeOnScroll, createTypeAhead, disposeWithLeave, dropdownOverlay, focusIsInside, forwardOverlayTokens, nextControlId, overlayPlacementOf, prepareOverlayEnter, resolveBrandValue, resolveFieldMessage, scrollActiveOptionIntoView, trimmedText, valueControlBridge };
604
629
  export type { DsFieldError, DsFieldErrorsInput, DsFieldMessage, DsOverlayCloseCause };
@@ -223,6 +223,11 @@ interface DsConfig {
223
223
  /** Default for `ds-table`'s `bordered` — the outer border and radius.
224
224
  * Default `false`. */
225
225
  bordered?: boolean;
226
+ /** Default for `ds-table`'s `stickyScrollbarOffset` — where the sticky horizontal bar comes
227
+ * to rest, as any CSS length. Unset, each table measures its own scroll container's bottom
228
+ * padding and cancels it, which puts the bar on the edge the reader sees; set this for an app
229
+ * whose scrollports end somewhere else, so every table agrees without a binding each. */
230
+ stickyScrollbarOffset?: string;
226
231
  };
227
232
  icon?: {
228
233
  /** Default pixel `size` for `ds-icon`. Default `16`. */
@@ -278,16 +283,24 @@ declare function inheritDsConfig(config: DsConfig): DsConfig;
278
283
  declare function resolveWithConfig<T>(value: Signal<T | null>, pick: (config: DsConfig) => T | undefined, fallback: T): Signal<T>;
279
284
 
280
285
  /**
281
- * Once per message, not once per recomputation: the hand-written copies of this
282
- * re-ran whenever ANY signal they read changed, so a warning about a static
283
- * misconfiguration could log again on every keystroke, and a console repeating
284
- * one line is a console people stop reading.
286
+ * Warns once per distinct message, not once per recomputation: the effect re-runs whenever any
287
+ * signal the condition reads changes, so without that a static misconfiguration would log again
288
+ * on every keystroke.
285
289
  *
286
290
  * Returning the message from the condition keeps the two together — a condition
287
291
  * that drifts from its message is how a warning ends up describing a state that
288
292
  * cannot happen any more.
289
293
  *
290
294
  * Must be called from an injection context.
295
+ *
296
+ * Callers wrap this in `if (typeof ngDevMode === 'undefined' || ngDevMode)`. That is
297
+ * a BUILD-time expression, not a repeat of the `isDevMode()` below: the intent is for
298
+ * a minifier to fold it and drop the message with it, which `isDevMode()` — an opaque
299
+ * call — can never allow. It cannot become a helper function for the same reason.
300
+ *
301
+ * It does work: `ds-stat` and `ds-split-button` compile to `constructor(){}` in the
302
+ * shipped bundle. `ds-toast-region`'s strip is UNVERIFIED — the bundle came out
303
+ * byte-identical after adding the guard, so re-check on a clean `.angular/cache`.
291
304
  * @internal
292
305
  */
293
306
  declare function devWarn(message: () => string | null): void;
@@ -55,6 +55,9 @@ export { StatusDotComponent } from '@ids-group-ltd/ids-design-system/components/
55
55
  export { StepperComponent, StepperLabelPosition, StepperOrientation } from '@ids-group-ltd/ids-design-system/components/stepper';
56
56
  export { SwitchComponent } from '@ids-group-ltd/ids-design-system/components/switch';
57
57
  export { CellTemplateDirective, HeaderFilterContext, HeaderFilterDirective, SortChangeEvent, SortDir, TableCellEditEvent, TableColumn, TableComponent, TableExpandMode, TableFilterMode, TableRowAction, TableRowActionEvent, TableSortMode } from '@ids-group-ltd/ids-design-system/components/table';
58
+ export { DsTableColumns } from '@ids-group-ltd/ids-design-system/components/table-columns';
59
+ export { DsTableExport } from '@ids-group-ltd/ids-design-system/components/table-export';
60
+ export { DsTableResize } from '@ids-group-ltd/ids-design-system/components/table-resize';
58
61
  export { TabComponent, TabsComponent, TabsOrientation, TabsVariant } from '@ids-group-ltd/ids-design-system/components/tabs';
59
62
  export { TagComponent, TagVariant } from '@ids-group-ltd/ids-design-system/components/tag';
60
63
  export { TextareaComponent, TextareaResize } from '@ids-group-ltd/ids-design-system/components/textarea';