@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
@@ -1,8 +1,9 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, Signal, InjectionToken, EnvironmentProviders, Provider } from '@angular/core';
3
3
  import * as i1 from '@cngx/common/data';
4
4
  import { CngxPaginate, AsyncView } from '@cngx/common/data';
5
5
  export { CNGX_PAGINATOR_HOST, CngxPaginatorHost, CngxPaginatorInfinite, CngxPaginatorLoadMore } from '@cngx/ui/paginator';
6
+ import { CngxMessage } from '@cngx/core/i18n';
6
7
 
7
8
  /**
8
9
  * Context exposed to a projected item template - the accumulated item and its
@@ -26,8 +27,8 @@ interface CngxIncrementalItemContext<T> {
26
27
  declare class CngxIncrementalItem<T = unknown> {
27
28
  readonly templateRef: TemplateRef<CngxIncrementalItemContext<T>>;
28
29
  static ngTemplateContextGuard<T>(_dir: CngxIncrementalItem<T>, ctx: unknown): ctx is CngxIncrementalItemContext<T>;
29
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxIncrementalItem<any>, never>;
30
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxIncrementalItem<any>, "ng-template[cngxIncrementalItem]", ["cngxIncrementalItem"], {}, {}, never, never, true, never>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxIncrementalItem<any>, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxIncrementalItem<any>, "ng-template[cngxIncrementalItem]", ["cngxIncrementalItem"], {}, {}, never, never, true, never>;
31
32
  }
32
33
  /**
33
34
  * Empty slot. Project `<ng-template cngxIncrementalEmpty>` to replace the
@@ -38,8 +39,8 @@ declare class CngxIncrementalItem<T = unknown> {
38
39
  */
39
40
  declare class CngxIncrementalEmpty {
40
41
  readonly templateRef: TemplateRef<any>;
41
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxIncrementalEmpty, never>;
42
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxIncrementalEmpty, "ng-template[cngxIncrementalEmpty]", ["cngxIncrementalEmpty"], {}, {}, never, never, true, never>;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxIncrementalEmpty, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxIncrementalEmpty, "ng-template[cngxIncrementalEmpty]", ["cngxIncrementalEmpty"], {}, {}, never, never, true, never>;
43
44
  }
44
45
  /**
45
46
  * Context exposed to a projected error template - a `retry` callback that
@@ -63,8 +64,8 @@ interface CngxIncrementalErrorContext {
63
64
  declare class CngxIncrementalError {
64
65
  readonly templateRef: TemplateRef<CngxIncrementalErrorContext>;
65
66
  static ngTemplateContextGuard(_dir: CngxIncrementalError, ctx: unknown): ctx is CngxIncrementalErrorContext;
66
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxIncrementalError, never>;
67
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxIncrementalError, "ng-template[cngxIncrementalError]", ["cngxIncrementalError"], {}, {}, never, never, true, never>;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxIncrementalError, never>;
68
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxIncrementalError, "ng-template[cngxIncrementalError]", ["cngxIncrementalError"], {}, {}, never, never, true, never>;
68
69
  }
69
70
  /**
70
71
  * End-reached slot. Project `<ng-template cngxIncrementalEnd>` to replace the
@@ -75,8 +76,8 @@ declare class CngxIncrementalError {
75
76
  */
76
77
  declare class CngxIncrementalEnd {
77
78
  readonly templateRef: TemplateRef<any>;
78
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxIncrementalEnd, never>;
79
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxIncrementalEnd, "ng-template[cngxIncrementalEnd]", ["cngxIncrementalEnd"], {}, {}, never, never, true, never>;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxIncrementalEnd, never>;
80
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxIncrementalEnd, "ng-template[cngxIncrementalEnd]", ["cngxIncrementalEnd"], {}, {}, never, never, true, never>;
80
81
  }
81
82
  /**
82
83
  * Loading slot. Project `<ng-template cngxIncrementalLoading>` to replace the
@@ -88,8 +89,8 @@ declare class CngxIncrementalEnd {
88
89
  */
89
90
  declare class CngxIncrementalLoading {
90
91
  readonly templateRef: TemplateRef<any>;
91
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxIncrementalLoading, never>;
92
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxIncrementalLoading, "ng-template[cngxIncrementalLoading]", ["cngxIncrementalLoading"], {}, {}, never, never, true, never>;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxIncrementalLoading, never>;
93
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxIncrementalLoading, "ng-template[cngxIncrementalLoading]", ["cngxIncrementalLoading"], {}, {}, never, never, true, never>;
93
94
  }
94
95
 
95
96
  /**
@@ -115,12 +116,18 @@ type CngxIncrementalListSkin = 'plain' | 'divided' | 'card';
115
116
  * same contract when projected - the trigger stays a swappable terminal unit,
116
117
  * the rich async experience lives here.
117
118
  *
118
- * Two-way `[(pageIndex)]` / `[(pageSize)]` mirror the paginator shell: the
119
- * brain's controlled inputs are aliased through `hostDirectives` and this
120
- * component is the single emitter of the matching outputs.
119
+ * Page bindings mirror the paginator shell and are longhand pairs -
120
+ * `[pageIndex]` + `(pageIndexChange)`, `[pageSize]` + `(pageSizeChange)`:
121
+ * the brain's controlled inputs are aliased through `hostDirectives` and this
122
+ * component is the single emitter of the matching outputs. The two-way
123
+ * shorthand (banana-in-a-box) fails NG8007 under `strictTemplates` because
124
+ * the two halves resolve to different directive instances - same limitation,
125
+ * same reason, as `CngxPaginator`.
121
126
  *
122
- * All ARIA is signal-driven: `aria-busy` reflects the brain busy signal and a
123
- * polite live region communicates every settle (empty / error / end-reached).
127
+ * All ARIA is signal-driven: `aria-busy` reflects the brain busy signal on the
128
+ * items container (scoped there so the polite live region never sits inside a
129
+ * busy container) and the live region communicates every settle
130
+ * (empty / error / end-reached).
124
131
  *
125
132
  * @category ui/collection
126
133
  * @docsKind primary
@@ -128,10 +135,15 @@ type CngxIncrementalListSkin = 'plain' | 'divided' | 'card';
128
135
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list.component.ts
129
136
  * @since 0.1.0
130
137
  * @relatedTo CngxPaginate, CngxPaginator, CngxAsyncState
138
+ * @slot cngxIncrementalItem Renders one row; gets the item and its index.
139
+ * @slot cngxIncrementalLoading Rendered while a page is being fetched.
140
+ * @slot cngxIncrementalEmpty Rendered when the list resolves to nothing.
141
+ * @slot cngxIncrementalError Rendered when a page fetch fails; gets the error and a retry callback.
142
+ * @slot cngxIncrementalEnd Rendered once after the last page, e.g. an end-of-results marker.
131
143
  */
132
144
  declare class CngxIncrementalList<T = unknown> {
133
145
  /** Visual skin; reflected onto `[data-skin]`. Paint-only. */
134
- readonly skin: _angular_core.InputSignal<CngxIncrementalListSkin>;
146
+ readonly skin: i0.InputSignal<CngxIncrementalListSkin>;
135
147
  /**
136
148
  * Opt into DOM recycling. When set, the accumulated content branch renders
137
149
  * only the visible window of rows through an internal virtualized body inside
@@ -139,75 +151,98 @@ declare class CngxIncrementalList<T = unknown> {
139
151
  * (default) keeps the render-all path - the recycler never constructs, so a
140
152
  * small list pays nothing. Reflected onto `[data-virtualize]`.
141
153
  */
142
- readonly virtualize: _angular_core.InputSignalWithTransform<boolean, unknown>;
154
+ readonly virtualize: i0.InputSignalWithTransform<boolean, unknown>;
143
155
  /**
144
156
  * Initial per-row height estimate (px) for the virtualized window - the first
145
157
  * guess before a row is measured. Ignored unless `[virtualize]` is set.
146
158
  */
147
- readonly estimateSize: _angular_core.InputSignal<number>;
148
- /** Emits the effective page index on every change - navigation or `total`-shrink clamp. */
149
- readonly pageIndexChange: _angular_core.OutputEmitterRef<number>;
159
+ readonly estimateSize: i0.InputSignal<number>;
160
+ /**
161
+ * Emits the effective page index on every change - navigation or
162
+ * `total`-shrink clamp. Clamp emits are held back while the brain is busy or
163
+ * `total` is 0, so a transient total drop during a refetch never writes a
164
+ * page-0 clamp into the consumer's two-way state.
165
+ */
166
+ readonly pageIndexChange: i0.OutputEmitterRef<number>;
150
167
  /** Emits the effective page size on every change. */
151
- readonly pageSizeChange: _angular_core.OutputEmitterRef<number>;
168
+ readonly pageSizeChange: i0.OutputEmitterRef<number>;
152
169
  /**
153
170
  * Emits when the error view's retry affordance is activated (the built-in
154
171
  * button or a projected error slot's `retry()` context). The consumer re-runs
155
172
  * its data source; the organism owns no fetch of its own.
156
173
  */
157
- readonly retry: _angular_core.OutputEmitterRef<void>;
174
+ readonly retry: i0.OutputEmitterRef<void>;
158
175
  /**
159
176
  * Item identity for the accumulated `@for`. Defaults to the row index
160
177
  * (append-safe: appended rows keep their position). Supply a key fn when the
161
178
  * bound `[state]` data can be replaced or reordered, so a projected item
162
179
  * template keeps its per-row state instead of being reused by position.
163
180
  */
164
- readonly trackBy: _angular_core.InputSignal<(index: number, item: T) => unknown>;
181
+ readonly trackBy: i0.InputSignal<(index: number, item: T) => unknown>;
165
182
  protected readonly paginate: CngxPaginate;
166
183
  private readonly host;
167
184
  private readonly config;
185
+ private readonly ariaLabels;
186
+ private readonly locale;
187
+ private readonly formatters;
168
188
  private readonly itemSlot;
169
189
  private readonly emptySlot;
170
190
  private readonly errorSlot;
171
191
  private readonly endSlot;
172
192
  private readonly loadingSlot;
173
- protected readonly itemTemplate: _angular_core.Signal<TemplateRef<any> | null>;
174
- protected readonly emptyTemplate: _angular_core.Signal<TemplateRef<any> | null>;
175
- protected readonly errorTemplate: _angular_core.Signal<TemplateRef<any> | null>;
176
- protected readonly endTemplate: _angular_core.Signal<TemplateRef<any> | null>;
177
- protected readonly loadingTemplate: _angular_core.Signal<TemplateRef<any> | null>;
193
+ protected readonly itemTemplate: Signal<TemplateRef<any> | null>;
194
+ protected readonly emptyTemplate: Signal<TemplateRef<any> | null>;
195
+ protected readonly errorTemplate: Signal<TemplateRef<any> | null>;
196
+ protected readonly endTemplate: Signal<TemplateRef<any> | null>;
197
+ protected readonly loadingTemplate: Signal<TemplateRef<any> | null>;
178
198
  /**
179
199
  * Which region renders, resolved from the single `[state]` source through the
180
200
  * shared `resolveAsyncView` switch - no local state machine. With no bound
181
201
  * state the organism is a plain content list.
182
202
  */
183
- protected readonly view: _angular_core.Signal<AsyncView>;
184
- /** `true` on the last page - every accumulated item has been revealed. */
185
- protected readonly exhausted: _angular_core.Signal<boolean>;
203
+ protected readonly view: Signal<AsyncView>;
204
+ /**
205
+ * `true` on the last page of a KNOWN total - every accumulated item has been
206
+ * revealed. With `total` unset or not yet arrived (0), the end state never
207
+ * renders ("All 0 loaded" would be a lie); the load-more trigger stays until
208
+ * the consumer supplies the count.
209
+ */
210
+ protected readonly exhausted: Signal<boolean>;
186
211
  /**
187
212
  * The accumulated slice: every page revealed so far, sliced from the top of
188
213
  * the bound data. Pure derivation of the brain `cumulativeRange()` and the
189
214
  * state's `data()`; the explicit `equal` stops a fresh-array identity from
190
215
  * cascading downstream.
191
216
  */
192
- protected readonly items: _angular_core.Signal<readonly T[]>;
193
- protected readonly loadingLabel: _angular_core.Signal<string>;
194
- protected readonly emptyLabel: _angular_core.Signal<string>;
195
- protected readonly errorLabel: _angular_core.Signal<string>;
196
- protected readonly pageErrorLabel: _angular_core.Signal<string>;
197
- protected readonly retryLabel: _angular_core.Signal<string>;
198
- protected readonly endLabel: _angular_core.Signal<string>;
217
+ protected readonly items: Signal<readonly T[]>;
218
+ protected readonly loadingLabel: Signal<string>;
219
+ /**
220
+ * The empty view renders `cngx-empty-state`, itself a polite status region, so
221
+ * its title is read untracked and keyed on the view: a language switch does
222
+ * not re-announce it, the next settle speaks the new language.
223
+ */
224
+ protected readonly emptyLabel: Signal<string>;
225
+ protected readonly errorLabel: Signal<string>;
226
+ protected readonly pageErrorLabel: Signal<string>;
227
+ protected readonly retryLabel: Signal<string>;
228
+ protected readonly endLabel: Signal<string>;
199
229
  /**
200
230
  * Error text for the active error view - the distinct `pageError` phrasing
201
231
  * when a subsequent page failed with the list still visible (`content+error`),
202
232
  * the first-load `error` phrasing otherwise. Drives both the built-in visible
203
233
  * text and the live-region announcement so the two never diverge.
204
234
  */
205
- protected readonly errorViewLabel: _angular_core.Signal<string>;
235
+ protected readonly errorViewLabel: Signal<string>;
206
236
  /**
207
237
  * Polite live-region message - communicated on every settle through the same
208
238
  * labels the visible views use, so a config or slot override stays in sync.
239
+ * The view state is tracked, the labels are read untracked: a language switch
240
+ * does not re-speak the current message, the next settle speaks the new
241
+ * language.
209
242
  */
210
- protected readonly statusMessage: _angular_core.Signal<string>;
243
+ protected readonly statusMessage: Signal<string>;
244
+ /** Which message the live region speaks for the current view, if any. */
245
+ private readonly statusKey;
211
246
  /** Stable retry callback - emits the `retry` output; shared by the built-in button and the error slot context. */
212
247
  protected readonly retryFn: () => void;
213
248
  /**
@@ -218,19 +253,22 @@ declare class CngxIncrementalList<T = unknown> {
218
253
  */
219
254
  protected handleFocusEscaped(): void;
220
255
  /** Context handed to a projected error slot: the retry callback and the raw error. */
221
- protected readonly errorContext: _angular_core.Signal<CngxIncrementalErrorContext>;
256
+ protected readonly errorContext: Signal<CngxIncrementalErrorContext>;
222
257
  /** `@for` track expression - delegates to the `trackBy` input (index by default). */
223
258
  protected readonly trackItem: (index: number, item: T) => unknown;
259
+ /** Built-in row text without an item slot: numbers and dates in the locale. */
260
+ protected itemText(item: T): unknown;
224
261
  constructor();
225
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxIncrementalList<any>, never>;
226
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxIncrementalList<any>, "cngx-incremental-list", ["cngxIncrementalList"], { "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "virtualize": { "alias": "virtualize"; "required": false; "isSignal": true; }; "estimateSize": { "alias": "estimateSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "pageIndexChange": "pageIndexChange"; "pageSizeChange": "pageSizeChange"; "retry": "retry"; }, ["itemSlot", "emptySlot", "errorSlot", "endSlot", "loadingSlot"], ["[cngxIncrementalTrigger]"], true, [{ directive: typeof i1.CngxPaginate; inputs: { "cngxPageIndex": "pageIndex"; "cngxPageSize": "pageSize"; "total": "total"; "state": "state"; }; outputs: {}; }]>;
262
+ static ɵfac: i0.ɵɵFactoryDeclaration<CngxIncrementalList<any>, never>;
263
+ static ɵcmp: i0.ɵɵComponentDeclaration<CngxIncrementalList<any>, "cngx-incremental-list", ["cngxIncrementalList"], { "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "virtualize": { "alias": "virtualize"; "required": false; "isSignal": true; }; "estimateSize": { "alias": "estimateSize"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "pageIndexChange": "pageIndexChange"; "pageSizeChange": "pageSizeChange"; "retry": "retry"; }, ["itemSlot", "emptySlot", "errorSlot", "endSlot", "loadingSlot"], ["[cngxIncrementalTrigger]"], true, [{ directive: typeof i1.CngxPaginate; inputs: { "cngxPageIndex": "pageIndex"; "cngxPageSize": "pageSize"; "total": "total"; "state": "state"; }; outputs: {}; }]>;
227
264
  }
228
265
 
229
266
  /**
230
267
  * Accessible-name / visible-label strings for the incremental-list view states.
231
268
  * Each doubles as the live-region announcement and the built-in view text, so
232
- * an override stays in sync across both surfaces. Library defaults are English;
233
- * consumers localise via {@link withIncrementalListAriaLabels}.
269
+ * an override stays in sync across both surfaces. The defaults come from the
270
+ * `collection` section of the language pack (English without one); override
271
+ * single keys via {@link withIncrementalListAriaLabels}.
234
272
  *
235
273
  * @category ui/collection
236
274
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
@@ -285,20 +323,25 @@ interface CngxIncrementalListTemplates {
285
323
  readonly loading?: TemplateRef<unknown>;
286
324
  }
287
325
  /**
288
- * Resolved incremental-list configuration - the accessible-name strings plus an
289
- * optional `templates` slot tree, each merged independently by the reducer in
290
- * {@link provideIncrementalListConfig}.
326
+ * Resolved incremental-list configuration - the accessible-name overrides plus
327
+ * an optional `templates` slot tree, each merged independently by the reducer
328
+ * in {@link provideIncrementalListConfig}.
329
+ *
330
+ * `ariaLabels` holds overrides only: unset by default, a value or a `Signal`
331
+ * once {@link withIncrementalListAriaLabels} ran. Every key it leaves out reads
332
+ * the `collection` section of the language pack, so the list follows a
333
+ * runtime language switch. Read the labels through
334
+ * {@link injectIncrementalListAriaLabels}, inside a `computed()`, a template or
335
+ * a handler.
291
336
  *
292
337
  * @category ui/collection
293
338
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
294
339
  * @since 0.1.0
295
340
  */
296
341
  interface CngxIncrementalListConfig {
297
- readonly ariaLabels: CngxIncrementalListAriaLabels;
342
+ readonly ariaLabels?: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>;
298
343
  readonly templates?: CngxIncrementalListTemplates;
299
344
  }
300
- /** Library defaults - English. Override via {@link provideIncrementalListConfig}. */
301
- declare const CNGX_INCREMENTAL_LIST_DEFAULTS: CngxIncrementalListConfig;
302
345
  /**
303
346
  * Configuration cascade token. Resolution priority (high to low):
304
347
  * per-instance projected slot, then `provideIncrementalListConfigAt(...)` at
@@ -321,14 +364,16 @@ declare const CNGX_INCREMENTAL_LIST_CONFIG: InjectionToken<CngxIncrementalListCo
321
364
  */
322
365
  type CngxIncrementalListConfigFeature = {
323
366
  readonly kind: 'ariaLabels';
324
- readonly payload: Partial<CngxIncrementalListAriaLabels>;
367
+ readonly payload: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>;
325
368
  } | {
326
369
  readonly kind: 'templates';
327
370
  readonly payload: Partial<CngxIncrementalListTemplates>;
328
371
  };
329
372
  /**
330
373
  * Override any subset of the incremental-list labels. The override applies to
331
- * both the visible built-in views and the live-region announcements.
374
+ * both the visible built-in views and the live-region announcements. Pass a
375
+ * `Signal` to switch the language at runtime; the live region speaks the new
376
+ * phrasing with its next change.
332
377
  *
333
378
  * ```ts
334
379
  * provideIncrementalListConfig(
@@ -343,7 +388,7 @@ type CngxIncrementalListConfigFeature = {
343
388
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
344
389
  * @since 0.1.0
345
390
  */
346
- declare function withIncrementalListAriaLabels(payload: Partial<CngxIncrementalListAriaLabels>): CngxIncrementalListConfigFeature;
391
+ declare function withIncrementalListAriaLabels(payload: Partial<CngxIncrementalListAriaLabels> | Signal<Partial<CngxIncrementalListAriaLabels>>): CngxIncrementalListConfigFeature;
347
392
  /**
348
393
  * Supply application-wide template-slot defaults. A per-instance projected slot
349
394
  * still wins over this tier; it only applies where no instance slot is present.
@@ -391,6 +436,62 @@ declare function provideIncrementalListConfigAt(...features: CngxIncrementalList
391
436
  * @since 0.1.0
392
437
  */
393
438
  declare function injectIncrementalListConfig(): CngxIncrementalListConfig;
439
+ /**
440
+ * The resolved labels of the incremental-list config in scope, as a Signal that
441
+ * follows a runtime language switch: the config overrides over the
442
+ * `collection` section of the active pack, formatted for the reading site's
443
+ * locale. A key the config leaves unset, `null` or `undefined` reads the
444
+ * section. Read it untracked where it builds
445
+ * live-region text, so a language switch does not re-speak the current
446
+ * message. Runs in injection context.
447
+ *
448
+ * @category ui/collection
449
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/collection/incremental-list-config.ts
450
+ * @since 0.1.0
451
+ */
452
+ declare function injectIncrementalListAriaLabels(): Signal<CngxIncrementalListAriaLabels>;
453
+
454
+ /**
455
+ * The collection section of a {@link CngxLanguagePack}: the copy of
456
+ * `CngxIncrementalList`, its built-in views and its live region. It feeds the
457
+ * `ariaLabels` of `CNGX_INCREMENTAL_LIST_CONFIG`; a key set through
458
+ * `withIncrementalListAriaLabels` still wins. Messages use `{name}`
459
+ * placeholders, numbers are formatted for the locale.
460
+ *
461
+ * @category ui/collection/i18n
462
+ * @since 0.1.0
463
+ * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG, withIncrementalListAriaLabels
464
+ */
465
+ interface CngxCollectionLanguageSection {
466
+ /** Busy indicator label while the first load runs. */
467
+ readonly loading: string;
468
+ /** Empty-view text when the list settles with no data. */
469
+ readonly empty: string;
470
+ /** Error-view text when the first load fails. */
471
+ readonly error: string;
472
+ /** Error text when a later page fails and the loaded rows stay visible. */
473
+ readonly pageError: string;
474
+ /** Label of the retry button on the built-in error view. */
475
+ readonly retry: string;
476
+ /** `{count}`: the number of items once every page is loaded. */
477
+ readonly endReached: CngxMessage;
478
+ /** `{count}`: rows newly loaded, `{total}`: rows loaded so far. Announced under `[virtualize]`. */
479
+ readonly loadedMore: CngxMessage;
480
+ }
481
+ /**
482
+ * The English collection section: the single source of the incremental
483
+ * list's English copy. The `CNGX_INCREMENTAL_LIST_CONFIG` labels default to it.
484
+ *
485
+ * @category ui/collection/i18n
486
+ * @since 0.1.0
487
+ * @relatedTo CNGX_INCREMENTAL_LIST_CONFIG
488
+ */
489
+ declare const CNGX_COLLECTION_LANGUAGE_EN: CngxCollectionLanguageSection;
490
+ declare module '@cngx/core/i18n' {
491
+ interface CngxLanguagePack {
492
+ readonly collection: CngxCollectionLanguageSection;
493
+ }
494
+ }
394
495
 
395
- export { CNGX_INCREMENTAL_LIST_CONFIG, CNGX_INCREMENTAL_LIST_DEFAULTS, CngxIncrementalEmpty, CngxIncrementalEnd, CngxIncrementalError, CngxIncrementalItem, CngxIncrementalList, CngxIncrementalLoading, injectIncrementalListConfig, provideIncrementalListConfig, provideIncrementalListConfigAt, withIncrementalListAriaLabels, withIncrementalListTemplates };
396
- export type { CngxIncrementalErrorContext, CngxIncrementalItemContext, CngxIncrementalListAriaLabels, CngxIncrementalListConfig, CngxIncrementalListConfigFeature, CngxIncrementalListSkin, CngxIncrementalListTemplates };
496
+ export { CNGX_COLLECTION_LANGUAGE_EN, CNGX_INCREMENTAL_LIST_CONFIG, CngxIncrementalEmpty, CngxIncrementalEnd, CngxIncrementalError, CngxIncrementalItem, CngxIncrementalList, CngxIncrementalLoading, injectIncrementalListAriaLabels, injectIncrementalListConfig, provideIncrementalListConfig, provideIncrementalListConfigAt, withIncrementalListAriaLabels, withIncrementalListTemplates };
497
+ export type { CngxCollectionLanguageSection, CngxIncrementalErrorContext, CngxIncrementalItemContext, CngxIncrementalListAriaLabels, CngxIncrementalListConfig, CngxIncrementalListConfigFeature, CngxIncrementalListSkin, CngxIncrementalListTemplates };