@cngx/ui 0.1.0-rc.7 → 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 (96) hide show
  1. package/README.md +0 -1
  2. package/a11y/README.md +11 -5
  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/data-grid-accordion/README.md +76 -2
  8. package/feedback/README.md +40 -0
  9. package/fesm2022/cngx-ui-a11y.mjs +189 -57
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +102 -35
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +112 -50
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +176 -96
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +194 -62
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +395 -119
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +149 -34
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +415 -98
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +16 -6
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +1022 -439
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-mat-accordion.mjs +75 -7
  32. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
  34. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
  36. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-tabs.mjs +314 -141
  38. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-overlay.mjs +69 -13
  40. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-paginator.mjs +487 -178
  42. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  43. package/fesm2022/cngx-ui-sidenav.mjs +327 -106
  44. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-skeleton.mjs +4 -16
  46. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-speak.mjs +107 -8
  48. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-stat-card.mjs +146 -46
  50. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-stepper.mjs +191 -68
  52. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-tabs.mjs +10 -6
  54. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-timeline.mjs +74 -21
  56. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-toc.mjs +70 -26
  58. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  59. package/fesm2022/cngx-ui.mjs +15 -20
  60. package/fesm2022/cngx-ui.mjs.map +1 -1
  61. package/mat-paginator/README.md +9 -2
  62. package/mat-tabs/styles/mat-tabs.css +9 -10
  63. package/overlay/README.md +9 -4
  64. package/package.json +4 -4
  65. package/paginator/README.md +8 -4
  66. package/sidenav/README.md +33 -11
  67. package/speak/README.md +3 -2
  68. package/stepper/README.md +13 -1
  69. package/timeline/README.md +1 -1
  70. package/toc/README.md +4 -1
  71. package/types/cngx-ui-a11y.d.ts +121 -30
  72. package/types/cngx-ui-accordion.d.ts +91 -26
  73. package/types/cngx-ui-action-button.d.ts +44 -3
  74. package/types/cngx-ui-breadcrumb.d.ts +154 -58
  75. package/types/cngx-ui-chart-panel.d.ts +122 -18
  76. package/types/cngx-ui-collection.d.ts +147 -55
  77. package/types/cngx-ui-command-palette.d.ts +297 -183
  78. package/types/cngx-ui-context-menu.d.ts +98 -6
  79. package/types/cngx-ui-data-grid-accordion.d.ts +274 -38
  80. package/types/cngx-ui-empty-state.d.ts +9 -2
  81. package/types/cngx-ui-feedback.d.ts +594 -56
  82. package/types/cngx-ui-mat-accordion.d.ts +29 -1
  83. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  84. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  85. package/types/cngx-ui-mat-tabs.d.ts +207 -14
  86. package/types/cngx-ui-overlay.d.ts +56 -10
  87. package/types/cngx-ui-paginator.d.ts +403 -129
  88. package/types/cngx-ui-sidenav.d.ts +248 -74
  89. package/types/cngx-ui-skeleton.d.ts +6 -7
  90. package/types/cngx-ui-speak.d.ts +118 -5
  91. package/types/cngx-ui-stat-card.d.ts +117 -33
  92. package/types/cngx-ui-stepper.d.ts +66 -27
  93. package/types/cngx-ui-tabs.d.ts +2 -2
  94. package/types/cngx-ui-timeline.d.ts +23 -7
  95. package/types/cngx-ui-toc.d.ts +80 -13
  96. package/types/cngx-ui.d.ts +7 -4
@@ -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
  /**
@@ -166,6 +220,18 @@ interface CngxDataGridAccordionConfig {
166
220
  * tool here: the group is its own scrollport, so a header would resolve its sticky
167
221
  * against that scrollport, and an unbounded (content-height) grid has nothing to stick
168
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.
169
235
  *
170
236
  * ```html
171
237
  * <cngx-data-grid-accordion [multi]="true">
@@ -191,10 +257,12 @@ interface CngxDataGridAccordionConfig {
191
257
  * @wcag AA
192
258
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/data-grid-accordion/data-grid-accordion.component.ts
193
259
  * @since 0.1.0
194
- * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount
260
+ * @relatedTo CngxDataGridRow, CngxDgCell, CngxDataGridHeader, CngxDataGridFooter, CngxAccordion, CngxSort, CngxFilter, CngxDgaSortHeader, CngxDgaFilter, CngxDgaCount, CngxScrollEdges
195
261
  *
196
262
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
197
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>
198
266
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/bound-sort-filter</example-url>
199
267
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/master-detail</example-url>
200
268
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/spreadsheet</example-url>
@@ -251,7 +319,7 @@ declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
251
319
  * passes through untouched. `null` removes the inline property so the registered
252
320
  * `none` initial wins and the grid stays unbounded. Primitive, so `Object.is` dedupes.
253
321
  */
254
- protected readonly maxBlockSizeVar: _angular_core.Signal<string | null>;
322
+ protected readonly maxBlockSizeVar: Signal<string | null>;
255
323
  /**
256
324
  * Heading level (2-6) every row's `role="heading"` wrapper reflects via
257
325
  * `aria-level`. Clamped into the valid ARIA range so a stray `0`/`9` can never
@@ -269,8 +337,11 @@ declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
269
337
  */
270
338
  readonly skin: _angular_core.InputSignal<CngxDataGridSkin | undefined>;
271
339
  /** `[skin]` input over the config default. `null` host binding when unset. */
272
- protected readonly resolvedSkin: _angular_core.Signal<CngxDataGridSkin | undefined>;
340
+ protected readonly resolvedSkin: Signal<CngxDataGridSkin | undefined>;
273
341
  private readonly header;
342
+ private readonly headerEl;
343
+ private readonly footerEl;
344
+ private readonly rows;
274
345
  private readonly firstRow;
275
346
  /** Index of the primary column, read from the first row's `primary` cell (-1 = none). */
276
347
  private readonly primaryIndex;
@@ -289,9 +360,34 @@ declare class CngxDataGridAccordion implements CngxDataGridAccordionContext {
289
360
  * the header-derived template, else a single `1fr`. Primitive string, so
290
361
  * `Object.is` dedupes with no `equal` fn.
291
362
  */
292
- 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;
293
389
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDataGridAccordion, never>;
294
- 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", "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: {}; }]>;
295
391
  }
296
392
 
297
393
  /** Inline alignment of a data-grid cell within its column track. */
@@ -480,6 +576,7 @@ declare class CngxDgaRowError {
480
576
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/lazy-row</example-url>
481
577
  */
482
578
  declare class CngxDataGridRow {
579
+ protected readonly labels: _angular_core.Signal<_cngx_ui_data_grid_accordion.CngxDataGridAccordionLabels>;
483
580
  /**
484
581
  * Stable id this row registers under in the coordinator's open-set. Defaults to
485
582
  * a generated id; bind `[panelId]` to a stable row value to address the row
@@ -504,8 +601,11 @@ declare class CngxDataGridRow {
504
601
  * communicates the state it is handed.
505
602
  */
506
603
  readonly state: _angular_core.InputSignal<AsyncStatus | CngxAsyncState<unknown> | undefined>;
507
- /** Error message announced in the error state. English default; override per locale. */
508
- 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>;
509
609
  private readonly accordion;
510
610
  protected readonly grid: _cngx_ui_data_grid_accordion.CngxDataGridAccordionContext;
511
611
  protected readonly regionId: string;
@@ -549,6 +649,13 @@ declare class CngxDataGridRow {
549
649
  * primitive, so `Object.is` dedupes - no `equal`. Mirrors `CngxAccordionItem`.
550
650
  */
551
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>;
552
659
  /**
553
660
  * `aria-busy` driver. Mirrors `CngxAsyncState.isBusy` (loading|refreshing|pending)
554
661
  * so the string and object input forms agree. Boolean, no `equal`.
@@ -649,23 +756,35 @@ declare class CngxDataGridHeader {
649
756
  declare class CngxDgaSortHeader {
650
757
  /** The field key this header cell sorts by. */
651
758
  readonly field: _angular_core.InputSignal<string>;
652
- /** SR status while unsorted. English default; override for other locales. */
653
- readonly notSortedLabel: _angular_core.InputSignal<string>;
654
- /** SR status while sorted ascending. English default; override for other locales. */
655
- readonly ascendingLabel: _angular_core.InputSignal<string>;
656
- /** SR status while sorted descending. English default; override for other locales. */
657
- 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>;
658
767
  /**
659
768
  * Human column name spoken in the live sort announcement (`{label}` placeholder
660
- * 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.
661
771
  */
662
772
  readonly label: _angular_core.InputSignal<string | undefined>;
663
- /** Live announcement fired when this column becomes sorted ascending. `{label}` is replaced. */
664
- readonly ascendingAnnouncement: _angular_core.InputSignal<string>;
665
- /** Live announcement fired when this column becomes sorted descending. `{label}` is replaced. */
666
- readonly descendingAnnouncement: _angular_core.InputSignal<string>;
667
- /** Live announcement fired when this column's sort is cleared. `{label}` is replaced. */
668
- 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>;
669
788
  private readonly grid;
670
789
  private readonly announcer;
671
790
  private readonly host;
@@ -690,6 +809,12 @@ declare class CngxDgaSortHeader {
690
809
  private createStatusElement;
691
810
  protected handleSort(event?: Event): void;
692
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;
693
818
  protected handleActivateKey(event: Event): void;
694
819
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaSortHeader, never>;
695
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>;
@@ -701,12 +826,13 @@ declare class CngxDgaSortHeader {
701
826
  * keystroke it writes the value into `grid.filterTerm` after a debounce (owned here -
702
827
  * {@link CngxFilter} has none), so the consumer's `computed()` re-derives the visible
703
828
  * rows only once typing settles. An external term change (a programmatic clear) reflects
704
- * 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.
705
831
  *
706
832
  * The debounce lives in this slot, not in the group, because it is an input-UX concern;
707
833
  * a consumer driving the term programmatically writes `grid.filterTerm` directly with no
708
- * debounce. The default `aria-label` is English (a consumer overrides via
709
- * `cngxDgaFilterLabel`).
834
+ * debounce. The default `aria-label` is the `filterRows` label of the language pack (a
835
+ * consumer overrides via `cngxDgaFilterLabel`).
710
836
  *
711
837
  * ```html
712
838
  * <cngx-data-grid-accordion>
@@ -727,15 +853,20 @@ declare class CngxDgaSortHeader {
727
853
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
728
854
  */
729
855
  declare class CngxDgaFilter {
730
- /** Accessible name for the filter box. English default; override for other locales. */
731
- 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>;
732
859
  /** Debounce in ms between the last keystroke and writing `grid.filterTerm`. */
733
860
  readonly debounce: _angular_core.InputSignal<number>;
861
+ /** @internal */
862
+ protected readonly resolvedAriaLabel: _angular_core.Signal<string>;
734
863
  private readonly grid;
864
+ private readonly document;
735
865
  private readonly element;
736
866
  private timer;
737
867
  constructor();
738
868
  protected handleInput(event: Event): void;
869
+ protected handleBlur(): void;
739
870
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaFilter, never>;
740
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>;
741
872
  }
@@ -772,8 +903,14 @@ declare class CngxDgaFilter {
772
903
  * <example-url>http://localhost:4200/#/ui/data-grid-accordion/sortable-ledger</example-url>
773
904
  */
774
905
  declare class CngxDgaFilterField {
775
- /** Visible label text; also drives the input's accessible name. English default. */
776
- 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>;
777
914
  /** Optional placeholder shown inside the input. */
778
915
  readonly placeholder: _angular_core.InputSignal<string | undefined>;
779
916
  /** Debounce in ms forwarded to the hosted `cngxDgaFilter`. */
@@ -805,8 +942,12 @@ declare class CngxDgaFilterField {
805
942
  * grid cell. It is not required - the footer already places a bare first child in
806
943
  * that column - but it is the consistent form the rest of the grid's cells use.
807
944
  *
808
- * The noun is English by default (`result` / `results`); a consumer localises via
809
- * `cngxDgaCountSingular` / `cngxDgaCountPlural`.
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`.
810
951
  *
811
952
  * @category ui/data-grid-accordion
812
953
  * @wcag AA
@@ -819,13 +960,26 @@ declare class CngxDgaFilterField {
819
960
  declare class CngxDgaCount {
820
961
  /** The visible-row count the consumer derived. */
821
962
  readonly count: _angular_core.InputSignal<number>;
822
- /** Singular noun for a count of 1. English default. */
823
- readonly singular: _angular_core.InputSignal<string>;
824
- /** Plural noun for any other count. English default. */
825
- 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>;
826
975
  private readonly element;
827
976
  private readonly renderer;
828
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;
829
983
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDgaCount, never>;
830
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>;
831
985
  }
@@ -869,7 +1023,8 @@ declare class CngxDataGridFooter {
869
1023
  declare const CNGX_DATA_GRID_ACCORDION_CONFIG: InjectionToken<CngxDataGridAccordionConfig>;
870
1024
 
871
1025
  /**
872
- * Discriminated-union shape returned by `withDataGridSkin`. The reducer in
1026
+ * Discriminated-union shape returned by `withDataGridSkin` and
1027
+ * `withDataGridAccordionLabels`. The reducer in
873
1028
  * `provideDataGridAccordionConfig` / `provideDataGridAccordionConfigAt` matches
874
1029
  * on `kind` and writes `payload` onto the corresponding config key. Mirrors
875
1030
  * `CngxAccordionConfigFeature` from `@cngx/ui/accordion` so the consumer's mental
@@ -878,12 +1033,17 @@ declare const CNGX_DATA_GRID_ACCORDION_CONFIG: InjectionToken<CngxDataGridAccord
878
1033
  * @category ui/data-grid-accordion
879
1034
  * @since 0.1.0
880
1035
  */
881
- interface CngxDataGridAccordionConfigFeature {
1036
+ type CngxDataGridAccordionConfigFeature = {
882
1037
  readonly kind: 'skin';
883
1038
  readonly payload: {
884
1039
  readonly skin: CngxDataGridSkin;
885
1040
  };
886
- }
1041
+ } | {
1042
+ readonly kind: 'labels';
1043
+ readonly payload: {
1044
+ readonly labels: Partial<CngxDataGridAccordionLabels> | Signal<Partial<CngxDataGridAccordionLabels>>;
1045
+ };
1046
+ };
887
1047
  /**
888
1048
  * Application-root configuration cascade for the data-grid-accordion. Pass a
889
1049
  * `withDataGridSkin` feature in `bootstrapApplication`'s providers array to move
@@ -944,6 +1104,24 @@ declare function provideDataGridAccordionConfigAt(...features: CngxDataGridAccor
944
1104
  * @since 0.1.0
945
1105
  */
946
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;
947
1125
 
948
1126
  /**
949
1127
  * Convenience accessor for the data-grid-accordion configuration cascade. Runs in
@@ -965,5 +1143,63 @@ declare function withDataGridSkin(skin: CngxDataGridSkin): CngxDataGridAccordion
965
1143
  */
966
1144
  declare function injectDataGridAccordionConfig(): CngxDataGridAccordionConfig;
967
1145
 
968
- 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 };
969
- 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;