@cngx/ui 0.1.0-rc.6 → 0.1.0-rc.8

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 (102) hide show
  1. package/README.md +112 -1
  2. package/a11y/README.md +87 -0
  3. package/accordion/README.md +4 -2
  4. package/breadcrumb/README.md +262 -0
  5. package/collection/README.md +6 -0
  6. package/command-palette/README.md +224 -0
  7. package/context-menu/README.md +98 -0
  8. package/data-grid-accordion/README.md +103 -2
  9. package/feedback/README.md +42 -0
  10. package/fesm2022/cngx-ui-a11y.mjs +452 -0
  11. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  12. package/fesm2022/cngx-ui-accordion.mjs +116 -38
  13. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-action-button.mjs +115 -50
  15. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  16. package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
  17. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
  19. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-collection.mjs +207 -66
  21. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  22. package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
  23. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  24. package/fesm2022/cngx-ui-context-menu.mjs +857 -0
  25. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
  27. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-empty-state.mjs +16 -6
  29. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-feedback.mjs +1095 -521
  31. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-layout.mjs +18 -9
  33. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
  35. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
  37. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
  39. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
  41. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  42. package/fesm2022/cngx-ui-overlay.mjs +69 -13
  43. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-paginator.mjs +501 -182
  45. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-sidenav.mjs +327 -106
  47. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  48. package/fesm2022/cngx-ui-skeleton.mjs +22 -21
  49. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  50. package/fesm2022/cngx-ui-speak.mjs +107 -8
  51. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  52. package/fesm2022/cngx-ui-stat-card.mjs +718 -0
  53. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  54. package/fesm2022/cngx-ui-stepper.mjs +217 -76
  55. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  56. package/fesm2022/cngx-ui-tabs.mjs +40 -19
  57. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  58. package/fesm2022/cngx-ui-timeline.mjs +548 -0
  59. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  60. package/fesm2022/cngx-ui-toc.mjs +748 -0
  61. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  62. package/fesm2022/cngx-ui.mjs +16 -21
  63. package/fesm2022/cngx-ui.mjs.map +1 -1
  64. package/mat-accordion/README.md +1 -1
  65. package/mat-paginator/README.md +9 -2
  66. package/mat-tabs/styles/mat-tabs.css +29 -27
  67. package/overlay/README.md +9 -4
  68. package/package.json +32 -1
  69. package/paginator/README.md +8 -4
  70. package/sidenav/README.md +33 -11
  71. package/skeleton/README.md +2 -0
  72. package/speak/README.md +3 -2
  73. package/stepper/README.md +15 -3
  74. package/timeline/README.md +350 -0
  75. package/toc/README.md +186 -0
  76. package/types/cngx-ui-a11y.d.ts +394 -0
  77. package/types/cngx-ui-accordion.d.ts +100 -30
  78. package/types/cngx-ui-action-button.d.ts +47 -3
  79. package/types/cngx-ui-breadcrumb.d.ts +159 -58
  80. package/types/cngx-ui-chart-panel.d.ts +382 -0
  81. package/types/cngx-ui-collection.d.ts +159 -58
  82. package/types/cngx-ui-command-palette.d.ts +565 -0
  83. package/types/cngx-ui-context-menu.d.ts +559 -0
  84. package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
  85. package/types/cngx-ui-empty-state.d.ts +9 -2
  86. package/types/cngx-ui-feedback.d.ts +664 -73
  87. package/types/cngx-ui-layout.d.ts +8 -3
  88. package/types/cngx-ui-mat-accordion.d.ts +32 -4
  89. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  90. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  91. package/types/cngx-ui-mat-tabs.d.ts +218 -23
  92. package/types/cngx-ui-overlay.d.ts +56 -10
  93. package/types/cngx-ui-paginator.d.ts +416 -132
  94. package/types/cngx-ui-sidenav.d.ts +248 -74
  95. package/types/cngx-ui-skeleton.d.ts +18 -7
  96. package/types/cngx-ui-speak.d.ts +118 -5
  97. package/types/cngx-ui-stat-card.d.ts +411 -0
  98. package/types/cngx-ui-stepper.d.ts +81 -29
  99. package/types/cngx-ui-tabs.d.ts +22 -6
  100. package/types/cngx-ui-timeline.d.ts +495 -0
  101. package/types/cngx-ui-toc.d.ts +581 -0
  102. package/types/cngx-ui.d.ts +8 -5
@@ -3,8 +3,10 @@ import { InjectionToken, Signal, WritableSignal, TemplateRef, EnvironmentProvide
3
3
  import * as i2 from '@cngx/common/data';
4
4
  import { CngxSort, CngxFilter } from '@cngx/common/data';
5
5
  import * as i1 from '@cngx/common/interactive';
6
+ import * as i3 from '@cngx/common/layout';
6
7
  import * as _cngx_ui_data_grid_accordion from '@cngx/ui/data-grid-accordion';
7
8
  import { AsyncStatus, CngxAsyncState } from '@cngx/core/utils';
9
+ import { CngxMessage } from '@cngx/core/i18n';
8
10
 
9
11
  /**
10
12
  * UI-local context a {@link CngxDataGridAccordion} exposes so each
@@ -116,6 +118,58 @@ interface CngxDataGridAccordionConfig {
116
118
  * only moves the cascade default. Override via {@link withDataGridSkin}.
117
119
  */
118
120
  readonly skin?: CngxDataGridSkin;
121
+ /**
122
+ * App-wide copy for the grid's count, sort, filter and row surfaces. Reactive
123
+ * from birth: pass a partial bundle or a `Signal` of one; unset keys read the
124
+ * `dataGridAccordion` section of the language pack. Override via
125
+ * {@link withDataGridAccordionLabels}.
126
+ */
127
+ readonly labels?: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>;
128
+ }
129
+ /**
130
+ * User-facing copy of the data-grid-accordion family. The defaults come from
131
+ * the `dataGridAccordion` section of the language pack (English without one).
132
+ * Every key follows a live bundle and a language switch; live regions (the
133
+ * count, a row's load error) read it untracked and speak the new language with
134
+ * their next change.
135
+ *
136
+ * @category ui/data-grid-accordion
137
+ * @since 0.1.0
138
+ */
139
+ interface CngxDataGridAccordionLabels {
140
+ /** Text of the `CngxDgaCount` live region for a visible-row count. */
141
+ readonly count: (count: number) => string;
142
+ /** Default of `[cngxDgaCountSingular]`. */
143
+ readonly countSingular: string;
144
+ /** Default of `[cngxDgaCountPlural]`. */
145
+ readonly countPlural: string;
146
+ /** Text of the `CngxDgaCount` live region when a noun is bound: the count and the noun. */
147
+ readonly countWithNoun: (count: number, noun: string) => string;
148
+ /** Default of `[cngxDgaSortStatusNotSorted]`, the described sort status while unsorted. */
149
+ readonly sortNone: string;
150
+ /** Default of `[cngxDgaSortStatusAscending]`. */
151
+ readonly sortAscending: string;
152
+ /** Default of `[cngxDgaSortStatusDescending]`. */
153
+ readonly sortDescending: string;
154
+ /** Default of `[cngxDgaSortAnnounceAscending]`; `{label}` is replaced by the column name. */
155
+ readonly sortAnnouncedAscending: string;
156
+ /** Default of `[cngxDgaSortAnnounceDescending]`; `{label}` is replaced by the column name. */
157
+ readonly sortAnnouncedDescending: string;
158
+ /** Default of `[cngxDgaSortAnnounceCleared]`; `{label}` is replaced by the column name. */
159
+ readonly sortAnnouncedCleared: string;
160
+ /** Column name of a sort announcement when the header has no `[cngxDgaSortLabel]` and no text. */
161
+ readonly unlabeledColumn: string;
162
+ /** Default of the `CngxDgaFilterField` visible `[label]`. */
163
+ readonly filter: string;
164
+ /** Default of `[cngxDgaFilterLabel]`, the filter box accessible name. */
165
+ readonly filterRows: string;
166
+ /** Default of the `CngxDataGridRow` `[errorMessage]`. */
167
+ readonly rowLoadFailed: string;
168
+ /**
169
+ * Tag the skins draw before a row's detail region (CSS `content`), read from the
170
+ * region's `data-note-label`. Decorative: it never enters the accessible name.
171
+ */
172
+ readonly note: string;
119
173
  }
120
174
 
121
175
  /**
@@ -146,10 +200,39 @@ interface CngxDataGridAccordionConfig {
146
200
  * visible + ordered rows via a `computed()` and owns the `@for`; the open set is keyed
147
201
  * by row value so a sorted or filtered row stays open while it moves.
148
202
  *
203
+ * `injectSmartDataSource` cannot inject the group's hosted atoms: injection
204
+ * resolves upward, and `sort` / `filter` live on this element below the
205
+ * consumer's injector. Two routes reach them: derive the rows yourself from a
206
+ * `viewChild` + `computed()` (the group's prescribed shape), or hand the atoms
207
+ * to the source through its options thunks -
208
+ * `injectSmartDataSource(rows, { sort: () => grid()?.sort, filter: () => grid()?.filter })`.
209
+ *
149
210
  * The column widths are declared on the header cells via `col`
150
211
  * (`grow` / `fit` / `sm` / `md` / `lg`); the group derives the shared template from
151
212
  * them, so no `grid-template-columns` string is needed for the common case.
152
213
  *
214
+ * For a **bounded-height** grid, bind `[maxBlockSize]` (a number is `px`, a string is
215
+ * any CSS length): the grid becomes its own vertical scrollport, the column head pins
216
+ * to the top and the footer to the bottom, and only the rows scroll between them - the
217
+ * sum footer stays visible, not just the head. The input reflects onto
218
+ * `--cngx-dga-max-block-size`, the same token a skin may set directly. This is the only
219
+ * way to pin the head - `[cngxStickyHeader]` from `@cngx/common/layout` is the wrong
220
+ * tool here: the group is its own scrollport, so a header would resolve its sticky
221
+ * against that scrollport, and an unbounded (content-height) grid has nothing to stick
222
+ * to. Leave `[maxBlockSize]` unbound and the grid stays content-height, byte-identical.
223
+ * While rows are scrolled away above or remain below, the pinned head / foot cast a
224
+ * shadow (`--cngx-dga-head-shadow` / `--cngx-dga-foot-shadow`); with no hidden rows in
225
+ * that direction there is none. Keyboard focus lands clear of both bands: the host pads
226
+ * its scrollport by the measured head / foot size plus `--cngx-dga-focus-clearance`.
227
+ *
228
+ * A grid narrower than its columns (`--cngx-dga-min-width`) scrolls sideways; the host
229
+ * then fades the inline edge that still hides columns (`--cngx-dga-edge-fade-size`,
230
+ * never below `--cngx-dga-edge-fade-min` opacity), mirrored under `dir="rtl"`. Both
231
+ * affordances come from the composed {@link CngxScrollEdges} atom, whose
232
+ * `data-scroll-block-start` / `-block-end` / `-inline-start` / `-inline-end` host
233
+ * attributes are present only while content is hidden toward that edge; under forced
234
+ * colors the fade is dropped and the shadows are forced away.
235
+ *
153
236
  * ```html
154
237
  * <cngx-data-grid-accordion [multi]="true">
155
238
  * <cngx-dga-header>
@@ -174,9 +257,12 @@ interface CngxDataGridAccordionConfig {
174
257
  * @wcag AA
175
258
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.component.ts
176
259
  * @since 0.1.0
177
- * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount
260
+ * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount, CngxScrollEdges
178
261
  *
179
262
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
263
+ * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sticky-head</example-url>
264
+ * <example-url>http://localhost:4200/#/ui/data-grid-accordion/scroll-edges-bounded</example-url>
265
+ * <example-url>http://localhost:4200/#/ui/data-grid-accordion/scroll-edges-narrow</example-url>
180
266
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>
181
267
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>
182
268
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/spreadsheet</example-url>
@@ -218,6 +304,22 @@ declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
218
304
  * (unlike `[skin]`).
219
305
  */
220
306
  readonly columns: _angular_core.InputSignal<string | undefined>;
307
+ /**
308
+ * Opt-in maximum block size that turns the grid into a bounded vertical scrollport:
309
+ * the column head pins to the top and the footer to the bottom while the rows scroll
310
+ * between them. A number is taken as `px`; a string is any CSS length (`'40rem'`).
311
+ * Unset leaves the grid content-height - no scrollport, no pinning - byte-identical
312
+ * to before. Reflects onto `--cngx-dga-max-block-size`, the same token a skin may set
313
+ * directly: the input is the ergonomic front door, the token the escape hatch.
314
+ */
315
+ readonly maxBlockSize: _angular_core.InputSignal<string | number | undefined>;
316
+ /**
317
+ * `[maxBlockSize]` resolved to a CSS length for the host binding. A bare number (or
318
+ * a unit-less numeric string via attribute binding) becomes `px`; any other string
319
+ * passes through untouched. `null` removes the inline property so the registered
320
+ * `none` initial wins and the grid stays unbounded. Primitive, so `Object.is` dedupes.
321
+ */
322
+ protected readonly maxBlockSizeVar: Signal<string | null>;
221
323
  /**
222
324
  * Heading level (2-6) every row's `role="heading"` wrapper reflects via
223
325
  * `aria-level`. Clamped into the valid ARIA range so a stray `0`/`9` can never
@@ -235,8 +337,11 @@ declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
235
337
  */
236
338
  readonly skin: _angular_core.InputSignal<CngxDataGridSkin | undefined>;
237
339
  /** `[skin]` input over the config default. `null` host binding when unset. */
238
- protected readonly resolvedSkin: _angular_core.Signal<CngxDataGridSkin | undefined>;
340
+ protected readonly resolvedSkin: Signal<CngxDataGridSkin | undefined>;
239
341
  private readonly header;
342
+ private readonly headerEl;
343
+ private readonly footerEl;
344
+ private readonly rows;
240
345
  private readonly firstRow;
241
346
  /** Index of the primary column, read from the first row's `primary` cell (-1 = none). */
242
347
  private readonly primaryIndex;
@@ -255,9 +360,34 @@ declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
255
360
  * the header-derived template, else a single `1fr`. Primitive string, so
256
361
  * `Object.is` dedupes with no `equal` fn.
257
362
  */
258
- protected readonly resolvedColumns: _angular_core.Signal<string>;
363
+ protected readonly resolvedColumns: Signal<string>;
364
+ /** Window surface for the band observers; `null` off the browser (SSR). */
365
+ private readonly resizeHost;
366
+ /**
367
+ * Measured border-box block size of the projected head / foot band in px, `null`
368
+ * when the band is absent or not observed yet. Written only by the observer callback.
369
+ */
370
+ private readonly headBlockSize;
371
+ private readonly footBlockSize;
372
+ /**
373
+ * The measured head / foot sizes as CSS lengths for `--cngx-dga-head-block-size` /
374
+ * `--cngx-dga-foot-block-size`. `null` removes the inline property, so the CSS falls
375
+ * back to `0px` plus the focus clearance. Primitive, so `Object.is` dedupes.
376
+ */
377
+ protected readonly headBlockSizeVar: Signal<string | null>;
378
+ protected readonly footBlockSizeVar: Signal<string | null>;
379
+ constructor();
380
+ /**
381
+ * Observe the block size of a late-resolving content child. The effect only
382
+ * subscribes: it tracks the `contentChild` read, wires `observeResize` inside
383
+ * `untracked`, and tears it down via `onCleanup` when the child changes (an `@if`
384
+ * toggling the head). The size write happens in the observer callback, never in
385
+ * the effect body. `createResizeSignal` needs a static element, so the low-level
386
+ * `observeResize` is the documented route for a reactive target.
387
+ */
388
+ private measureBlockSize;
259
389
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDataGridAccordion, never>;
260
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDataGridAccordion, "cngx-data-grid-accordion", ["cngxDataGridAccordion"], { "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; }, { "filterTerm": "filterTermChange"; }, ["header", "firstRow"], ["*"], true, [{ directive: typeof i1.CngxAccordion; inputs: { "multi": "multi"; "openIds": "openIds"; }; outputs: { "openIdsChange": "openIdsChange"; }; }, { directive: typeof i2.CngxSort; inputs: { "cngxSortActive": "sortActive"; "cngxSortDirection": "sortDirection"; "cngxSortInitial": "initialSort"; "multiSort": "multiSort"; }; outputs: { "sortChange": "sortChange"; }; }, { directive: typeof i2.CngxFilter; inputs: { "cngxFilter": "filterPredicate"; }; outputs: { "filterChange": "filterChange"; }; }]>;
390
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDataGridAccordion, "cngx-data-grid-accordion", ["cngxDataGridAccordion"], { "filterTerm": { "alias": "filterTerm"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "maxBlockSize": { "alias": "maxBlockSize"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; }, { "filterTerm": "filterTermChange"; }, ["header", "headerEl", "footerEl", "rows"], ["*"], true, [{ directive: typeof i1.CngxAccordion; inputs: { "multi": "multi"; "openIds": "openIds"; }; outputs: { "openIdsChange": "openIdsChange"; }; }, { directive: typeof i2.CngxSort; inputs: { "cngxSortActive": "sortActive"; "cngxSortDirection": "sortDirection"; "cngxSortInitial": "initialSort"; "multiSort": "multiSort"; }; outputs: { "sortChange": "sortChange"; }; }, { directive: typeof i2.CngxFilter; inputs: { "cngxFilter": "filterPredicate"; }; outputs: { "filterChange": "filterChange"; }; }, { directive: typeof i3.CngxScrollEdges; inputs: {}; outputs: {}; }]>;
261
391
  }
262
392
 
263
393
  /** Inline alignment of a data-grid cell within its column track. */
@@ -415,16 +545,22 @@ declare class CngxDgaRowError {
415
545
  /**
416
546
  * A disclosure row in a {@link CngxDataGridAccordion}. Renders the APG-correct
417
547
  * trio: a `role="heading"` wrapper carrying the group's `aria-level`, a
418
- * `cngxAccordionPanel` summary `<button>` laid out on the shared
419
- * `--cngx-dga-columns` grid, and a `role="region"` detail zone named back at the
420
- * primary cell via `aria-labelledby`. Expansion is derived from the coordinator
421
- * (Pillar 1); the button self-wires keyboard nav through the registration brain,
422
- * so arrow keys rove across rows even though each summary lives in its own
423
- * component view.
424
- *
425
- * The projected `cngxDgaCell`s fill the summary grid; the one marked `primary`
426
- * supplies the row's accessible name, so a screen reader hears a list of
427
- * expandable sections rather than a wall of cell text.
548
+ * `cngxAccordionPanel` summary `<button>` that is the full-row disclosure
549
+ * trigger, and a `role="region"` detail zone named back at the primary cell via
550
+ * `aria-labelledby`. Expansion is derived from the coordinator (Pillar 1); the
551
+ * button self-wires keyboard nav through the registration brain, so arrow keys
552
+ * rove across rows even though each summary lives in its own component view.
553
+ *
554
+ * The projected `cngxDgaCell`s are laid OVER the trigger, not inside it: a
555
+ * `<button>` accepts phrasing content only, so a cell holding flow content (a
556
+ * chart, a table, a nested list) could never live in the button. The cells share
557
+ * the button's grid row, painted above it, and are `pointer-events: none`, so a
558
+ * click on a passive cell falls through to the trigger and toggles the row, while
559
+ * interactive cell content (a link, a control) re-enables its own clicks. The
560
+ * cell marked `primary` supplies the row's accessible name through the button's
561
+ * `aria-labelledby` (falling back to the whole cells row when none is marked), so
562
+ * a screen reader hears a list of expandable sections rather than a wall of cell
563
+ * text.
428
564
  *
429
565
  * @category ui/data-grid-accordion
430
566
  * @docsKind primary
@@ -432,12 +568,15 @@ declare class CngxDgaRowError {
432
568
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-row.component.ts
433
569
  * @since 0.1.0
434
570
  * @relatedTo CngxDataGridAccordion, CngxDgCell, CngxAccordionPanel
571
+ * @slot cngxDgaRowBusy Rendered over the row while its detail loads.
572
+ * @slot cngxDgaRowError Rendered when the row's detail failed to load.
435
573
  *
436
574
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>
437
575
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/report</example-url>
438
576
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/lazy-row</example-url>
439
577
  */
440
578
  declare class CngxDataGridRow {
579
+ protected readonly labels: _angular_core.Signal<_cngx_ui_data_grid_accordion.CngxDataGridAccordionLabels>;
441
580
  /**
442
581
  * Stable id this row registers under in the coordinator's open-set. Defaults to
443
582
  * a generated id; bind `[panelId]` to a stable row value to address the row
@@ -462,12 +601,16 @@ declare class CngxDataGridRow {
462
601
  * communicates the state it is handed.
463
602
  */
464
603
  readonly state: _angular_core.InputSignal<AsyncStatus | CngxAsyncState<unknown> | undefined>;
465
- /** Error message announced in the error state. English default; override per locale. */
466
- readonly errorMessage: _angular_core.InputSignal<string>;
604
+ /**
605
+ * Error message announced in the error state. Unbound, the `rowLoadFailed`
606
+ * label applies.
607
+ */
608
+ readonly errorMessage: _angular_core.InputSignal<string | undefined>;
467
609
  private readonly accordion;
468
610
  protected readonly grid: _cngx_ui_data_grid_accordion.CngxDataGridAccordionContext;
469
611
  protected readonly regionId: string;
470
612
  protected readonly headerId: string;
613
+ protected readonly cellsId: string;
471
614
  /**
472
615
  * Projected cells; the `primary` one supplies the row's accessible name. Public
473
616
  * so {@link CngxDataGridAccordion} can read the primary-column index (for the
@@ -475,11 +618,21 @@ declare class CngxDataGridRow {
475
618
  */
476
619
  readonly cells: _angular_core.Signal<readonly CngxDgCell[]>;
477
620
  /**
478
- * IDREF of the primary cell, bound to the summary button's and the region's
479
- * `aria-labelledby`. `null` when no cell is marked `primary` - then the button
480
- * names itself from its projected content. A primitive, so `Object.is` dedupes.
621
+ * IDREF of the cell marked `primary`, or `null` when none is. Feeds
622
+ * {@link summaryLabelledBy}, the single name source both the summary button and the
623
+ * detail region reference. A primitive, so `Object.is` dedupes.
481
624
  */
482
625
  protected readonly primaryId: _angular_core.Signal<string | null>;
626
+ /**
627
+ * Accessible name source for the summary button AND the detail region. The cells are
628
+ * laid over the button rather than inside it, so the button has no intrinsic text to
629
+ * name itself from - this points at the `primary` cell when one exists, else at the
630
+ * whole cells row (`cellsId`), reproducing the old name-from-projected-content
631
+ * fallback. Both surfaces read it so they stay symmetric: a no-primary row names both
632
+ * by the cells row rather than naming the button and leaving the region blank. A
633
+ * primitive, so `Object.is` dedupes.
634
+ */
635
+ protected readonly summaryLabelledBy: _angular_core.Signal<string>;
483
636
  /** Whether this row's region is open, derived from the coordinator's open-set. */
484
637
  protected readonly expanded: _angular_core.Signal<boolean>;
485
638
  /** Per-instance busy slot; absent means the CSS skeleton default renders. */
@@ -496,6 +649,13 @@ declare class CngxDataGridRow {
496
649
  * primitive, so `Object.is` dedupes - no `equal`. Mirrors `CngxAccordionItem`.
497
650
  */
498
651
  protected readonly status: _angular_core.Signal<AsyncStatus | undefined>;
652
+ /**
653
+ * @internal - text of the `role="alert"` error region. A bound `errorMessage`
654
+ * applies at once; the label default is read untracked and keyed on the status,
655
+ * so a language switch never re-speaks a shown error and the next error speaks
656
+ * the new language.
657
+ */
658
+ protected readonly resolvedErrorMessage: _angular_core.Signal<string>;
499
659
  /**
500
660
  * `aria-busy` driver. Mirrors `CngxAsyncState.isBusy` (loading|refreshing|pending)
501
661
  * so the string and object input forms agree. Boolean, no `equal`.
@@ -596,23 +756,35 @@ declare class CngxDataGridHeader {
596
756
  declare class CngxDgaSortHeader {
597
757
  /** The field key this header cell sorts by. */
598
758
  readonly field: _angular_core.InputSignal<string>;
599
- /** SR status while unsorted. English default; override for other locales. */
600
- readonly notSortedLabel: _angular_core.InputSignal<string>;
601
- /** SR status while sorted ascending. English default; override for other locales. */
602
- readonly ascendingLabel: _angular_core.InputSignal<string>;
603
- /** SR status while sorted descending. English default; override for other locales. */
604
- readonly descendingLabel: _angular_core.InputSignal<string>;
759
+ private readonly labels;
760
+ private readonly locale;
761
+ /** SR status while unsorted. Unbound, the `sortNone` label applies. */
762
+ readonly notSortedLabel: _angular_core.InputSignal<string | undefined>;
763
+ /** SR status while sorted ascending. Unbound, the `sortAscending` label applies. */
764
+ readonly ascendingLabel: _angular_core.InputSignal<string | undefined>;
765
+ /** SR status while sorted descending. Unbound, the `sortDescending` label applies. */
766
+ readonly descendingLabel: _angular_core.InputSignal<string | undefined>;
605
767
  /**
606
768
  * Human column name spoken in the live sort announcement (`{label}` placeholder
607
- * of the announcement templates). Defaults to the field key.
769
+ * of the announcement templates). Defaults to the header's own text, then to the
770
+ * `unlabeledColumn` label - never to the field key.
608
771
  */
609
772
  readonly label: _angular_core.InputSignal<string | undefined>;
610
- /** Live announcement fired when this column becomes sorted ascending. `{label}` is replaced. */
611
- readonly ascendingAnnouncement: _angular_core.InputSignal<string>;
612
- /** Live announcement fired when this column becomes sorted descending. `{label}` is replaced. */
613
- readonly descendingAnnouncement: _angular_core.InputSignal<string>;
614
- /** Live announcement fired when this column's sort is cleared. `{label}` is replaced. */
615
- readonly clearedAnnouncement: _angular_core.InputSignal<string>;
773
+ /**
774
+ * Live announcement fired when this column becomes sorted ascending. `{label}` is
775
+ * replaced. Unbound, the `sortAnnouncedAscending` label applies.
776
+ */
777
+ readonly ascendingAnnouncement: _angular_core.InputSignal<string | undefined>;
778
+ /**
779
+ * Live announcement fired when this column becomes sorted descending. `{label}` is
780
+ * replaced. Unbound, the `sortAnnouncedDescending` label applies.
781
+ */
782
+ readonly descendingAnnouncement: _angular_core.InputSignal<string | undefined>;
783
+ /**
784
+ * Live announcement fired when this column's sort is cleared. `{label}` is replaced.
785
+ * Unbound, the `sortAnnouncedCleared` label applies.
786
+ */
787
+ readonly clearedAnnouncement: _angular_core.InputSignal<string | undefined>;
616
788
  private readonly grid;
617
789
  private readonly announcer;
618
790
  private readonly host;
@@ -637,6 +809,12 @@ declare class CngxDgaSortHeader {
637
809
  private createStatusElement;
638
810
  protected handleSort(event?: Event): void;
639
811
  private announcementText;
812
+ private announcementTemplate;
813
+ /**
814
+ * The header's text as assistive tech reads it: `aria-hidden` subtrees (the sort
815
+ * status node, decorative icons and badges) are left out.
816
+ */
817
+ private headerText;
640
818
  protected handleActivateKey(event: Event): void;
641
819
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaSortHeader, never>;
642
820
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxDgaSortHeader, "[cngxDgaSortHeader]", ["cngxDgaSortHeader"], { "field": { "alias": "cngxDgaSortHeader"; "required": true; "isSignal": true; }; "notSortedLabel": { "alias": "cngxDgaSortStatusNotSorted"; "required": false; "isSignal": true; }; "ascendingLabel": { "alias": "cngxDgaSortStatusAscending"; "required": false; "isSignal": true; }; "descendingLabel": { "alias": "cngxDgaSortStatusDescending"; "required": false; "isSignal": true; }; "label": { "alias": "cngxDgaSortLabel"; "required": false; "isSignal": true; }; "ascendingAnnouncement": { "alias": "cngxDgaSortAnnounceAscending"; "required": false; "isSignal": true; }; "descendingAnnouncement": { "alias": "cngxDgaSortAnnounceDescending"; "required": false; "isSignal": true; }; "clearedAnnouncement": { "alias": "cngxDgaSortAnnounceCleared"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -648,12 +826,13 @@ declare class CngxDgaSortHeader {
648
826
  * keystroke it writes the value into `grid.filterTerm` after a debounce (owned here -
649
827
  * {@link CngxFilter} has none), so the consumer's `computed()` re-derives the visible
650
828
  * rows only once typing settles. An external term change (a programmatic clear) reflects
651
- * back into the box, but never while it is focused - that would fight the caret.
829
+ * back into the box, but never while it is focused - that would fight the caret; the
830
+ * deferred reconciliation lands when the box loses focus.
652
831
  *
653
832
  * The debounce lives in this slot, not in the group, because it is an input-UX concern;
654
833
  * a consumer driving the term programmatically writes `grid.filterTerm` directly with no
655
- * debounce. The default `aria-label` is English (a consumer overrides via
656
- * `cngxDgaFilterLabel`).
834
+ * debounce. The default `aria-label` is the `filterRows` label of the language pack (a
835
+ * consumer overrides via `cngxDgaFilterLabel`).
657
836
  *
658
837
  * ```html
659
838
  * <cngx-data-grid-accordion>
@@ -674,15 +853,20 @@ declare class CngxDgaSortHeader {
674
853
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
675
854
  */
676
855
  declare class CngxDgaFilter {
677
- /** Accessible name for the filter box. English default; override for other locales. */
678
- readonly ariaLabel: _angular_core.InputSignal<string>;
856
+ private readonly labels;
857
+ /** Accessible name for the filter box. Unbound, the `filterRows` label applies. */
858
+ readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
679
859
  /** Debounce in ms between the last keystroke and writing `grid.filterTerm`. */
680
860
  readonly debounce: _angular_core.InputSignal<number>;
861
+ /** @internal */
862
+ protected readonly resolvedAriaLabel: _angular_core.Signal<string>;
681
863
  private readonly grid;
864
+ private readonly document;
682
865
  private readonly element;
683
866
  private timer;
684
867
  constructor();
685
868
  protected handleInput(event: Event): void;
869
+ protected handleBlur(): void;
686
870
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaFilter, never>;
687
871
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxDgaFilter, "input[cngxDgaFilter]", ["cngxDgaFilter"], { "ariaLabel": { "alias": "cngxDgaFilterLabel"; "required": false; "isSignal": true; }; "debounce": { "alias": "cngxDgaFilterDebounce"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
688
872
  }
@@ -719,8 +903,14 @@ declare class CngxDgaFilter {
719
903
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
720
904
  */
721
905
  declare class CngxDgaFilterField {
722
- /** Visible label text; also drives the input's accessible name. English default. */
723
- readonly label: _angular_core.InputSignal<string>;
906
+ private readonly labels;
907
+ /**
908
+ * Visible label text; also drives the input's accessible name. Unbound, the
909
+ * `filter` label applies.
910
+ */
911
+ readonly label: _angular_core.InputSignal<string | undefined>;
912
+ /** @internal */
913
+ protected readonly resolvedLabel: _angular_core.Signal<string>;
724
914
  /** Optional placeholder shown inside the input. */
725
915
  readonly placeholder: _angular_core.InputSignal<string | undefined>;
726
916
  /** Debounce in ms forwarded to the hosted `cngxDgaFilter`. */
@@ -744,12 +934,20 @@ declare class CngxDgaFilterField {
744
934
  *
745
935
  * ```html
746
936
  * <cngx-dga-footer>
747
- * <span [cngxDgaCount]="visibleRows().length"></span>
937
+ * <span cngxDgaCell [cngxDgaCount]="visibleRows().length"></span>
748
938
  * </cngx-dga-footer>
749
939
  * ```
750
940
  *
751
- * The noun is English by default (`result` / `results`); a consumer localises via
752
- * `cngxDgaCountSingular` / `cngxDgaCountPlural`.
941
+ * `cngxDgaCell` puts the count in the first content column alongside every other
942
+ * grid cell. It is not required - the footer already places a bare first child in
943
+ * that column - but it is the consistent form the rest of the grid's cells use.
944
+ *
945
+ * The text comes from the `dataGridAccordion` section of the language pack
946
+ * (`3 results`, a plural message with a locale-formatted count). Override it app-wide
947
+ * through `withDataGridAccordionLabels`: a `count` formatter owns word order and plural
948
+ * rules, the `countSingular` / `countPlural` nouns alone compose through `countWithNoun`.
949
+ * Binding `cngxDgaCountSingular` / `cngxDgaCountPlural` per instance always composes
950
+ * through `countWithNoun`.
753
951
  *
754
952
  * @category ui/data-grid-accordion
755
953
  * @wcag AA
@@ -762,13 +960,26 @@ declare class CngxDgaFilterField {
762
960
  declare class CngxDgaCount {
763
961
  /** The visible-row count the consumer derived. */
764
962
  readonly count: _angular_core.InputSignal<number>;
765
- /** Singular noun for a count of 1. English default. */
766
- readonly singular: _angular_core.InputSignal<string>;
767
- /** Plural noun for any other count. English default. */
768
- readonly plural: _angular_core.InputSignal<string>;
963
+ private readonly labels;
964
+ private readonly overrides;
965
+ /**
966
+ * Singular noun for a count of 1. Unbound, the `countSingular` label applies;
967
+ * binding either noun switches to `<count> <noun>` composition.
968
+ */
969
+ readonly singular: _angular_core.InputSignal<string | undefined>;
970
+ /**
971
+ * Plural noun for any other count. Unbound, the `countPlural` label applies;
972
+ * binding either noun switches to `<count> <noun>` composition.
973
+ */
974
+ readonly plural: _angular_core.InputSignal<string | undefined>;
769
975
  private readonly element;
770
976
  private readonly renderer;
771
977
  constructor();
978
+ /**
979
+ * `true` when the config overrides a noun but not the `count` formatter: the
980
+ * nouns then compose, so a nouns-only override still reaches assistive tech.
981
+ */
982
+ private nounsOnlyOverride;
772
983
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaCount, never>;
773
984
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxDgaCount, "[cngxDgaCount]", ["cngxDgaCount"], { "count": { "alias": "cngxDgaCount"; "required": true; "isSignal": true; }; "singular": { "alias": "cngxDgaCountSingular"; "required": false; "isSignal": true; }; "plural": { "alias": "cngxDgaCountPlural"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
774
985
  }
@@ -812,7 +1023,8 @@ declare class CngxDataGridFooter {
812
1023
  declare const CNGX_DATA_GRID_ACCORDION_CONFIG: InjectionToken<CngxDataGridAccordionConfig>;
813
1024
 
814
1025
  /**
815
- * Discriminated-union shape returned by `withDataGridSkin`. The reducer in
1026
+ * Discriminated-union shape returned by `withDataGridSkin` and
1027
+ * `withDataGridAccordionLabels`. The reducer in
816
1028
  * `provideDataGridAccordionConfig` / `provideDataGridAccordionConfigAt` matches
817
1029
  * on `kind` and writes `payload` onto the corresponding config key. Mirrors
818
1030
  * `CngxAccordionConfigFeature` from `@cngx/ui/accordion` so the consumer's mental
@@ -821,12 +1033,17 @@ declare const CNGX_DATA_GRID_ACCORDION_CONFIG: InjectionToken<CngxDataGridAccord
821
1033
  * @category ui/data-grid-accordion
822
1034
  * @since 0.1.0
823
1035
  */
824
- interface CngxDataGridAccordionConfigFeature {
1036
+ type CngxDataGridAccordionConfigFeature = {
825
1037
  readonly kind: 'skin';
826
1038
  readonly payload: {
827
1039
  readonly skin: CngxDataGridSkin;
828
1040
  };
829
- }
1041
+ } | {
1042
+ readonly kind: 'labels';
1043
+ readonly payload: {
1044
+ readonly labels: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>;
1045
+ };
1046
+ };
830
1047
  /**
831
1048
  * Application-root configuration cascade for the data-grid-accordion. Pass a
832
1049
  * `withDataGridSkin` feature in `bootstrapApplication`'s providers array to move
@@ -887,6 +1104,24 @@ declare function provideDataGridAccordionConfigAt(...features: CngxDataGridAccor
887
1104
  * @since 0.1.0
888
1105
  */
889
1106
  declare function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordionConfigFeature;
1107
+ /**
1108
+ * Set the app-wide copy of the grid's count, sort, filter and row surfaces.
1109
+ * Unset keys read the `dataGridAccordion` section of the language pack. Pass a
1110
+ * `Signal` of a partial bundle to switch languages at runtime; every part follows
1111
+ * it, live regions with their next change. A later call (or a nested
1112
+ * `provideDataGridAccordionConfigAt`) replaces the whole bundle rather than
1113
+ * merging with it.
1114
+ *
1115
+ * ```ts
1116
+ * provideDataGridAccordionConfig(
1117
+ * withDataGridAccordionLabels({ filterRows: 'Zeilen filtern', count: (n) => `${n} Treffer` }),
1118
+ * );
1119
+ * ```
1120
+ *
1121
+ * @category ui/data-grid-accordion
1122
+ * @since 0.1.0
1123
+ */
1124
+ declare function withDataGridAccordionLabels(labels: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>): CngxDataGridAccordionConfigFeature;
890
1125
 
891
1126
  /**
892
1127
  * Convenience accessor for the data-grid-accordion configuration cascade. Runs in
@@ -908,5 +1143,63 @@ declare function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordion
908
1143
  */
909
1144
  declare function injectDataGridAccordionConfig(): CngxDataGridAccordionConfig;
910
1145
 
911
- export { CNGX_DATA_GRID_ACCORDION, CNGX_DATA_GRID_ACCORDION_CONFIG, CngxDataGridAccordion, CngxDataGridFooter, CngxDataGridHeader, CngxDataGridRow, CngxDgCell, CngxDgaCount, CngxDgaFilter, CngxDgaFilterField, CngxDgaRowBusy, CngxDgaRowError, CngxDgaSortHeader, injectDataGridAccordionConfig, provideDataGridAccordionConfig, provideDataGridAccordionConfigAt, withDataGridSkin };
912
- export type { CngxDataGridAccordionConfig, CngxDataGridAccordionConfigFeature, CngxDataGridAccordionContext, CngxDataGridSeverity, CngxDataGridSkin, CngxDgCellAlign, CngxDgCellTrack, CngxDgaRowStateContext };
1146
+ /**
1147
+ * The data-grid-accordion section of a {@link CngxLanguagePack}: the copy of
1148
+ * every `@cngx/ui/data-grid-accordion` part. It feeds the `labels` of
1149
+ * `CNGX_DATA_GRID_ACCORDION_CONFIG`; a key set through
1150
+ * `withDataGridAccordionLabels` still wins. Messages use `{name}`
1151
+ * placeholders, numbers are formatted for the locale.
1152
+ *
1153
+ * @category ui/data-grid-accordion/i18n
1154
+ * @since 0.1.0
1155
+ * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG, withDataGridAccordionLabels
1156
+ */
1157
+ interface CngxDataGridAccordionLanguageSection {
1158
+ /** `{count}`: the `CngxDgaCount` live-region text for a visible-row count. */
1159
+ readonly count: CngxMessage;
1160
+ /** Default of `[cngxDgaCountSingular]`. */
1161
+ readonly countSingular: string;
1162
+ /** Default of `[cngxDgaCountPlural]`. */
1163
+ readonly countPlural: string;
1164
+ /** `{count}`, `{noun}`: the count with a noun bound on `CngxDgaCount`. */
1165
+ readonly countWithNoun: CngxMessage;
1166
+ /** Default of `[cngxDgaSortStatusNotSorted]`, the described sort status while unsorted. */
1167
+ readonly sortNone: string;
1168
+ /** Default of `[cngxDgaSortStatusAscending]`. */
1169
+ readonly sortAscending: string;
1170
+ /** Default of `[cngxDgaSortStatusDescending]`. */
1171
+ readonly sortDescending: string;
1172
+ /** `{label}`: default of `[cngxDgaSortAnnounceAscending]`, `{label}` is the column name. */
1173
+ readonly sortAnnouncedAscending: string;
1174
+ /** `{label}`: default of `[cngxDgaSortAnnounceDescending]`. */
1175
+ readonly sortAnnouncedDescending: string;
1176
+ /** `{label}`: default of `[cngxDgaSortAnnounceCleared]`. */
1177
+ readonly sortAnnouncedCleared: string;
1178
+ /** The column name of a sort announcement when the header has no label and no text. */
1179
+ readonly unlabeledColumn: string;
1180
+ /** Default of the `CngxDgaFilterField` visible `[label]`. */
1181
+ readonly filter: string;
1182
+ /** Default of `[cngxDgaFilterLabel]`, the filter box accessible name. */
1183
+ readonly filterRows: string;
1184
+ /** Default of the `CngxDataGridRow` `[errorMessage]`. */
1185
+ readonly rowLoadFailed: string;
1186
+ /** Decorative tag the skins draw before a row's detail region. */
1187
+ readonly note: string;
1188
+ }
1189
+ /**
1190
+ * The English data-grid-accordion section: the single source of the entry's
1191
+ * English copy. The `CNGX_DATA_GRID_ACCORDION_CONFIG` labels default to it.
1192
+ *
1193
+ * @category ui/data-grid-accordion/i18n
1194
+ * @since 0.1.0
1195
+ * @relatedTo CNGX_DATA_GRID_ACCORDION_CONFIG
1196
+ */
1197
+ declare const CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN: CngxDataGridAccordionLanguageSection;
1198
+ declare module '@cngx/core/i18n' {
1199
+ interface CngxLanguagePack {
1200
+ readonly dataGridAccordion: CngxDataGridAccordionLanguageSection;
1201
+ }
1202
+ }
1203
+
1204
+ export { CNGX_DATA_GRID_ACCORDION, CNGX_DATA_GRID_ACCORDION_CONFIG, CNGX_DATA_GRID_ACCORDION_LANGUAGE_EN, CngxDataGridAccordion, CngxDataGridFooter, CngxDataGridHeader, CngxDataGridRow, CngxDgCell, CngxDgaCount, CngxDgaFilter, CngxDgaFilterField, CngxDgaRowBusy, CngxDgaRowError, CngxDgaSortHeader, injectDataGridAccordionConfig, provideDataGridAccordionConfig, provideDataGridAccordionConfigAt, withDataGridAccordionLabels, withDataGridSkin };
1205
+ export type { CngxDataGridAccordionConfig, CngxDataGridAccordionConfigFeature, CngxDataGridAccordionContext, CngxDataGridAccordionLabels, CngxDataGridAccordionLanguageSection, CngxDataGridSeverity, CngxDataGridSkin, CngxDgCellAlign, CngxDgCellTrack, CngxDgaRowStateContext };
@@ -38,9 +38,16 @@ declare class CngxEmptyState {
38
38
  readonly title: _angular_core.InputSignal<string>;
39
39
  /** Supporting detail - clarifies context and suggests next steps. */
40
40
  readonly description: _angular_core.InputSignal<string | undefined>;
41
- /** Bind an async state - auto-hides when data is not empty. */
41
+ /**
42
+ * Bind an async state - auto-hides when data is not empty, while an
43
+ * operation is running, or on error status. Error communication belongs
44
+ * to error surfaces (alert, async container). The component shows in two
45
+ * cases: a settled empty result ("loaded, nothing there") and an idle
46
+ * state with no data - the first-use onboarding surface, where nothing
47
+ * has been asked for yet.
48
+ */
42
49
  readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
43
- /** @internal - hidden when state is bound and data is not empty or still loading. */
50
+ /** @internal - hidden when state is bound and the view is not a settled empty result. */
44
51
  protected readonly shouldHide: _angular_core.Signal<boolean>;
45
52
  /** @internal */
46
53
  protected readonly titleId: string;