@cngx/common 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 (63) hide show
  1. package/card/README.md +2 -1
  2. package/data/README.md +10 -1
  3. package/dialog/README.md +23 -1
  4. package/fesm2022/cngx-common-a11y.mjs +125 -111
  5. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  6. package/fesm2022/cngx-common-audio.mjs +47 -5
  7. package/fesm2022/cngx-common-audio.mjs.map +1 -1
  8. package/fesm2022/cngx-common-card.mjs +300 -46
  9. package/fesm2022/cngx-common-card.mjs.map +1 -1
  10. package/fesm2022/cngx-common-chart.mjs +1176 -453
  11. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  12. package/fesm2022/cngx-common-command.mjs +37 -10
  13. package/fesm2022/cngx-common-command.mjs.map +1 -1
  14. package/fesm2022/cngx-common-data.mjs +1318 -469
  15. package/fesm2022/cngx-common-data.mjs.map +1 -1
  16. package/fesm2022/cngx-common-dialog.mjs +151 -14
  17. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  18. package/fesm2022/cngx-common-display.mjs +340 -73
  19. package/fesm2022/cngx-common-display.mjs.map +1 -1
  20. package/fesm2022/cngx-common-interactive.mjs +1744 -952
  21. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  22. package/fesm2022/cngx-common-layout.mjs +841 -114
  23. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  24. package/fesm2022/cngx-common-popover.mjs +350 -60
  25. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  26. package/fesm2022/cngx-common-stepper.mjs +727 -317
  27. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  28. package/fesm2022/cngx-common-tabs.mjs +1601 -1243
  29. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  30. package/fesm2022/cngx-common-timeline.mjs +137 -53
  31. package/fesm2022/cngx-common-timeline.mjs.map +1 -1
  32. package/fesm2022/cngx-common.mjs +1 -1
  33. package/interactive/README.md +15 -4
  34. package/layout/README.md +21 -1
  35. package/package.json +3 -3
  36. package/popover/README.md +18 -2
  37. package/stepper/README.md +6 -4
  38. package/theming/components/cngx-accordion.css +1 -1
  39. package/theming/components/cngx-backdrop.css +12 -0
  40. package/theming/components/cngx-button-toggle.css +29 -3
  41. package/theming/components/cngx-data-grid.css +168 -1
  42. package/theming/components/cngx-dialog.css +13 -0
  43. package/theming/components/cngx-listbox.css +21 -12
  44. package/theming/components/cngx-menu.css +56 -16
  45. package/theming/components/cngx-popover.css +24 -0
  46. package/theming/components/cngx-recycler-placeholder.css +196 -0
  47. package/theming/components/cngx-ripple.css +1 -1
  48. package/theming/components/cngx-slider.css +32 -1
  49. package/theming/components/cngx-tooltip.css +12 -0
  50. package/timeline/README.md +155 -0
  51. package/types/cngx-common-a11y.d.ts +42 -18
  52. package/types/cngx-common-card.d.ts +201 -17
  53. package/types/cngx-common-chart.d.ts +343 -47
  54. package/types/cngx-common-command.d.ts +31 -8
  55. package/types/cngx-common-data.d.ts +581 -68
  56. package/types/cngx-common-dialog.d.ts +158 -3
  57. package/types/cngx-common-display.d.ts +356 -142
  58. package/types/cngx-common-interactive.d.ts +859 -210
  59. package/types/cngx-common-layout.d.ts +567 -28
  60. package/types/cngx-common-popover.d.ts +262 -39
  61. package/types/cngx-common-stepper.d.ts +366 -116
  62. package/types/cngx-common-tabs.d.ts +214 -50
  63. package/types/cngx-common-timeline.d.ts +82 -16
@@ -3,6 +3,7 @@ import { Signal, TemplateRef, InjectionToken, Provider, ModelSignal, WritableSig
3
3
  import { AsyncStatus, CngxAsyncState, CngxStateful } from '@cngx/core/utils';
4
4
  export { AsyncStatus, CngxAsyncState } from '@cngx/core/utils';
5
5
  import { Observable } from 'rxjs';
6
+ import { CngxMessage } from '@cngx/core/i18n';
6
7
  import * as _cngx_common_interactive from '@cngx/common/interactive';
7
8
  import { CngxFormFieldControl } from '@cngx/core/tokens';
8
9
  import * as i1 from '@cngx/common/a11y';
@@ -20,9 +21,17 @@ type AsyncAction = () => Promise<unknown> | Observable<unknown>;
20
21
  * Async action handler with loading state, auto-disable, and success/error feedback.
21
22
  *
22
23
  * Place on any clickable element (button, link, div). Executes the provided
23
- * async action on click, tracks the full lifecycle as a state machine, auto-disables
24
- * during execution, announces state changes to screen readers, and guards against
25
- * double-clicks.
24
+ * async action on click, tracks the full lifecycle as a state machine, and
25
+ * guards against double-clicks. While pending it communicates busy via
26
+ * `aria-busy` + `aria-disabled` and swallows clicks WITHOUT the hard
27
+ * `disabled` attribute, so keyboard focus stays on the control instead of
28
+ * dropping to `<body>` mid-action. Note: the guard prevents the ACTION from
29
+ * re-running and calls `preventDefault()`, but a consumer `(click)` handler
30
+ * on the same element still fires while pending - gate it on `pending()`
31
+ * when it must not. Success and failure are announced through
32
+ * an auto-rendered polite live region (sibling of the host - inside a
33
+ * `<button>` the text would pollute the accessible name); opt out with
34
+ * `[autoAnnounce]="false"` and bind `announcement` to your own region.
26
35
  *
27
36
  * ### Basic usage
28
37
  * ```html
@@ -56,7 +65,7 @@ type AsyncAction = () => Promise<unknown> | Observable<unknown>;
56
65
  * @since 0.1.0
57
66
  * @relatedTo CngxPending, CngxSucceeded, CngxFailed, CngxActionButton
58
67
  * <example-url>http://localhost:4200/#/common/interactive/retry/optimistic-instant-like-toggle</example-url>
59
- * <example-url>http://localhost:4200/#/common/interactive/retry/withretry-cngxasyncclick</example-url>
68
+ * <example-url>http://localhost:4200/#/common/interactive/retry/createretry-cngxasyncclick</example-url>
60
69
  */
61
70
  declare class CngxAsyncClick {
62
71
  private readonly el;
@@ -65,21 +74,46 @@ declare class CngxAsyncClick {
65
74
  readonly action: _angular_core.InputSignal<AsyncAction>;
66
75
  /** Duration in ms to show success/error state before reset. */
67
76
  readonly feedbackDuration: _angular_core.InputSignal<number>;
68
- /** When `false`, clicks are ignored (does not set `disabled` attribute). */
77
+ /**
78
+ * When `false`, clicks are ignored and the element is marked `aria-disabled`
79
+ * (never the hard `disabled` attribute, so focus survives). Communicates the
80
+ * "why" to assistive tech instead of silently swallowing the click.
81
+ */
69
82
  readonly enabled: _angular_core.InputSignal<boolean>;
70
- /** Label announced to screen readers on success. */
71
- readonly succeededAnnouncement: _angular_core.InputSignal<string>;
72
- /** Label announced to screen readers on failure. */
73
- readonly failedAnnouncement: _angular_core.InputSignal<string>;
83
+ /**
84
+ * External busy override. When `true`, the element is `aria-busy` even though
85
+ * this directive is not running its own action - for a wrapper that tracks an
86
+ * operation outside the click (e.g. an `[externalState]`). Purely an ARIA
87
+ * hint: it does not block clicks (gate those with `[enabled]`).
88
+ */
89
+ readonly busy: _angular_core.InputSignal<boolean>;
90
+ private readonly i18n;
91
+ /**
92
+ * Label announced to screen readers on success. Unbound, it resolves to
93
+ * `CNGX_INTERACTIVE_I18N.asyncClickSucceeded` at announcement time.
94
+ */
95
+ readonly succeededAnnouncement: _angular_core.InputSignal<string | undefined>;
96
+ /**
97
+ * Label announced to screen readers on failure. Unbound, it resolves to
98
+ * `CNGX_INTERACTIVE_I18N.asyncClickFailed` at announcement time.
99
+ */
100
+ readonly failedAnnouncement: _angular_core.InputSignal<string | undefined>;
101
+ /**
102
+ * Auto-render the polite live region announcing success/failure.
103
+ * Opt out (`false`) to wire {@link announcement} to your own region -
104
+ * also when a toast/alert bridge (`cngxToastOn`, `cngxAlertOn`) on the
105
+ * same element already announces the settle, or the user hears it twice.
106
+ */
107
+ readonly autoAnnounce: _angular_core.InputSignal<boolean>;
74
108
  private readonly pendingState;
75
109
  private readonly succeededState;
76
110
  private readonly failedState;
77
111
  private readonly errorState;
78
112
  private readonly lastUpdatedState;
79
113
  private feedbackTimer;
80
- private readonly supportsDisabled;
81
114
  private destroyed;
82
115
  constructor();
116
+ private installAnnounceRegion;
83
117
  /** `true` while the action is executing. */
84
118
  readonly pending: Signal<boolean>;
85
119
  /** `true` for `feedbackDuration` ms after a successful action. */
@@ -90,7 +124,11 @@ declare class CngxAsyncClick {
90
124
  readonly error: Signal<unknown>;
91
125
  /** Current lifecycle status - use in `@switch` for template branching. */
92
126
  readonly status: Signal<AsyncStatus>;
93
- /** Screen reader announcement for the current state - bind to an `aria-live` region. */
127
+ /**
128
+ * Screen reader announcement for the current state. Rendered automatically
129
+ * into the auto polite region; only needs manual wiring when
130
+ * `autoAnnounce` is `false`.
131
+ */
94
132
  readonly announcement: Signal<string>;
95
133
  /**
96
134
  * Full `CngxAsyncState` view of this directive's lifecycle.
@@ -100,13 +138,11 @@ declare class CngxAsyncClick {
100
138
  */
101
139
  readonly state: CngxAsyncState<unknown>;
102
140
  /** @internal */
103
- protected readonly shouldDisable: Signal<"" | null>;
104
- /** @internal */
105
141
  protected handleClick(event: Event): Promise<void>;
106
142
  private scheduleFeedbackReset;
107
143
  private clearFeedback;
108
144
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAsyncClick, never>;
109
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAsyncClick, "[cngxAsyncClick]", ["cngxAsyncClick"], { "action": { "alias": "cngxAsyncClick"; "required": true; "isSignal": true; }; "feedbackDuration": { "alias": "feedbackDuration"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "succeededAnnouncement": { "alias": "succeededAnnouncement"; "required": false; "isSignal": true; }; "failedAnnouncement": { "alias": "failedAnnouncement"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
145
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAsyncClick, "[cngxAsyncClick]", ["cngxAsyncClick"], { "action": { "alias": "cngxAsyncClick"; "required": true; "isSignal": true; }; "feedbackDuration": { "alias": "feedbackDuration"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "busy": { "alias": "busy"; "required": false; "isSignal": true; }; "succeededAnnouncement": { "alias": "succeededAnnouncement"; "required": false; "isSignal": true; }; "failedAnnouncement": { "alias": "failedAnnouncement"; "required": false; "isSignal": true; }; "autoAnnounce": { "alias": "autoAnnounce"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
110
146
  }
111
147
 
112
148
  /**
@@ -177,6 +213,182 @@ declare class CngxFailed {
177
213
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxFailed, "ng-template[cngxFailed]", never, {}, {}, never, never, true, never>;
178
214
  }
179
215
 
216
+ /**
217
+ * Interactive i18n surface. Library defaults are English; consumers override
218
+ * via {@link provideInteractiveI18n}. Reactive from birth: the token carries a
219
+ * `Signal`, and {@link withInteractiveI18nLabels} accepts a `Signal` of a
220
+ * partial bundle, so a runtime language switch re-derives every read.
221
+ *
222
+ * `asyncClickSucceeded` / `asyncClickFailed` are live-region copy:
223
+ * `CngxAsyncClick` (and `CngxActionButton`, which wraps it) announces the
224
+ * settle it just made, spent once per transition. The other keys are the
225
+ * fallback of string inputs (`CngxCopyBlock`, `CngxRangeSlider`,
226
+ * `CngxBreadcrumb`), resolved in a `computed()`: a bound input wins, and an
227
+ * unbound one follows a language switch. They are optional so a bundle
228
+ * built before they existed keeps compiling; the active language pack (or
229
+ * its English section) fills them at the reading site.
230
+ *
231
+ * @category common/interactive/i18n
232
+ */
233
+ interface CngxInteractiveI18n {
234
+ /** Announced when an async click action resolves. */
235
+ readonly asyncClickSucceeded: string;
236
+ /** Announced when an async click action rejects. */
237
+ readonly asyncClickFailed: string;
238
+ /** Default of the `CngxCopyBlock` `buttonLabel` input. */
239
+ readonly copy?: string;
240
+ /** Default of the `CngxCopyBlock` `copiedLabel` input. */
241
+ readonly copied?: string;
242
+ /** Default of the `CngxCopyBlock` `srAnnouncement` input (live region). */
243
+ readonly copiedAnnouncement?: string;
244
+ /** Default of the `CngxRangeSlider` `startLabel` input. */
245
+ readonly rangeMinimum?: string;
246
+ /** Default of the `CngxRangeSlider` `endLabel` input. */
247
+ readonly rangeMaximum?: string;
248
+ /** Default of the `CngxBreadcrumb` `label` input (landmark name). */
249
+ readonly breadcrumb?: string;
250
+ /** Default confirmation of `canDeactivateWhenClean`. */
251
+ readonly unsavedChanges?: string;
252
+ /**
253
+ * Visible `start - end` value of `CngxRangeSlider`. Receives both values
254
+ * already formatted; one message, so a locale owns the order and the joiner.
255
+ */
256
+ readonly rangeValue?: (start: string, end: string) => string;
257
+ }
258
+ /**
259
+ * DI token for the interactive i18n bundle. `providedIn: 'root'`: the
260
+ * interactive section of the active language pack over the English defaults;
261
+ * the value is a `Signal`, shared by every reader under one injector.
262
+ *
263
+ * @category common/interactive/i18n
264
+ * @wcag AA
265
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/i18n/interactive-i18n.ts
266
+ * @since 0.1.0
267
+ * @relatedTo CngxAsyncClick
268
+ */
269
+ declare const CNGX_INTERACTIVE_I18N: InjectionToken<Signal<CngxInteractiveI18n>>;
270
+ /**
271
+ * Branded feature-fn for {@link provideInteractiveI18n}.
272
+ *
273
+ * @category common/interactive/i18n
274
+ * @since 0.1.0
275
+ */
276
+ type CngxInteractiveI18nFeature = ((bundle: Signal<CngxInteractiveI18n>) => Signal<CngxInteractiveI18n>) & {
277
+ readonly _target: 'i18n';
278
+ };
279
+ /**
280
+ * Override i18n labels via a partial bundle - unset keys keep the language
281
+ * pack's copy, or the English default. Pass a `Signal` of a partial bundle to switch languages at
282
+ * runtime.
283
+ *
284
+ * @category common/interactive/i18n
285
+ * @since 0.1.0
286
+ */
287
+ declare function withInteractiveI18nLabels(overrides: Partial<CngxInteractiveI18n> | Signal<Partial<CngxInteractiveI18n>>): CngxInteractiveI18nFeature;
288
+ /**
289
+ * Provider for the interactive i18n bundle. Returns a plain `Provider`, so it
290
+ * also scopes a subtree through `viewProviders`. The features apply on top of
291
+ * the active language pack.
292
+ *
293
+ * ```ts
294
+ * bootstrapApplication(AppComponent, {
295
+ * providers: [
296
+ * provideInteractiveI18n(
297
+ * withInteractiveI18nLabels({ asyncClickSucceeded: 'Erledigt', asyncClickFailed: 'Fehlgeschlagen' }),
298
+ * ),
299
+ * ],
300
+ * });
301
+ * ```
302
+ *
303
+ * @category common/interactive/i18n
304
+ * @since 0.1.0
305
+ */
306
+ declare function provideInteractiveI18n(...features: readonly CngxInteractiveI18nFeature[]): Provider;
307
+ /**
308
+ * Inject the resolved interactive i18n bundle signal. Read it inside a
309
+ * `computed()` or template so a runtime override flip re-derives.
310
+ *
311
+ * @category common/interactive/i18n
312
+ * @since 0.1.0
313
+ */
314
+ declare function injectInteractiveI18n(): Signal<CngxInteractiveI18n>;
315
+
316
+ /**
317
+ * The interactive section of a {@link CngxLanguagePack}: the copy of the
318
+ * `@cngx/common/interactive` atoms (async click, copy block, range slider,
319
+ * breadcrumb, the unsaved-changes guard). It feeds `CNGX_INTERACTIVE_I18N`.
320
+ *
321
+ * @category common/interactive/i18n
322
+ * @since 0.1.0
323
+ * @relatedTo CNGX_INTERACTIVE_I18N
324
+ */
325
+ interface CngxInteractiveLanguageSection {
326
+ /** Announced when an async click action resolves. */
327
+ readonly asyncClickSucceeded: string;
328
+ /** Announced when an async click action rejects. */
329
+ readonly asyncClickFailed: string;
330
+ /** Label of the copy-block button. */
331
+ readonly copy: string;
332
+ /** Label of the copy-block button after a copy. */
333
+ readonly copied: string;
334
+ /** Announced after a copy. */
335
+ readonly copiedAnnouncement: string;
336
+ /** Accessible name of the range slider's start thumb. */
337
+ readonly rangeMinimum: string;
338
+ /** Accessible name of the range slider's end thumb. */
339
+ readonly rangeMaximum: string;
340
+ /** Accessible name of the breadcrumb landmark. */
341
+ readonly breadcrumb: string;
342
+ /** Confirmation of `canDeactivateWhenClean` before leaving unsaved changes. */
343
+ readonly unsavedChanges: string;
344
+ /** `{start}`, `{end}`: the visible value of a range slider. */
345
+ readonly rangeValue: CngxMessage;
346
+ }
347
+ /**
348
+ * The English interactive section: the single source of the interactive
349
+ * atoms' English copy. `CNGX_INTERACTIVE_I18N` defaults to it.
350
+ *
351
+ * @category common/interactive/i18n
352
+ * @since 0.1.0
353
+ * @relatedTo CNGX_INTERACTIVE_I18N
354
+ */
355
+ declare const CNGX_INTERACTIVE_LANGUAGE_EN: CngxInteractiveLanguageSection;
356
+ declare module '@cngx/core/i18n' {
357
+ interface CngxLanguagePack {
358
+ readonly interactive: CngxInteractiveLanguageSection;
359
+ }
360
+ }
361
+
362
+ /**
363
+ * The menu section of a {@link CngxLanguagePack}: what the menu family
364
+ * announces. It feeds the `ariaLabels` of `CNGX_MENU_CONFIG`.
365
+ *
366
+ * @category common/interactive/i18n
367
+ * @since 0.1.0
368
+ * @relatedTo CNGX_MENU_CONFIG
369
+ */
370
+ interface CngxMenuLanguageSection {
371
+ readonly submenuOpened: string;
372
+ readonly submenuClosed: string;
373
+ readonly itemActivated: string;
374
+ readonly itemDisabled: string;
375
+ readonly menuDismissed: string;
376
+ }
377
+ /**
378
+ * The English menu section: the single source of the menu's English copy.
379
+ * `CNGX_MENU_CONFIG` defaults its `ariaLabels` to it.
380
+ *
381
+ * @category common/interactive/i18n
382
+ * @since 0.1.0
383
+ * @relatedTo CNGX_MENU_CONFIG
384
+ */
385
+ declare const CNGX_MENU_LANGUAGE_EN: CngxMenuLanguageSection;
386
+ declare module '@cngx/core/i18n' {
387
+ interface CngxLanguagePack {
388
+ readonly menu: CngxMenuLanguageSection;
389
+ }
390
+ }
391
+
180
392
  /**
181
393
  * Display bucket a reflector collapses an {@link CngxAsyncState} into.
182
394
  * The `loading` / `refreshing` busy variants fold into `pending` for the
@@ -312,6 +524,11 @@ declare class CngxCopyText {
312
524
  /** Emitted when a copy attempt fails. */
313
525
  readonly copyFailed: _angular_core.OutputEmitterRef<unknown>;
314
526
  constructor();
527
+ /**
528
+ * Host click handler - fire-and-forget wrapper so the event binding
529
+ * does not leak the promise the public {@link copy} API returns.
530
+ */
531
+ protected handleClick(): void;
315
532
  /** Copies the text to the clipboard. */
316
533
  copy(): Promise<void>;
317
534
  /** execCommand fallback for environments without Clipboard API. */
@@ -351,14 +568,26 @@ declare class CngxCopyText {
351
568
  * <example-url>http://localhost:4200/#/common/interactive/copy/block/code-snippet</example-url>
352
569
  */
353
570
  declare class CngxCopyBlock {
571
+ private readonly i18n;
354
572
  /** The text value to copy to clipboard. */
355
573
  readonly value: _angular_core.InputSignal<string>;
356
- /** Label for the copy button. */
357
- readonly buttonLabel: _angular_core.InputSignal<string>;
358
- /** Label shown after successful copy. */
359
- readonly copiedLabel: _angular_core.InputSignal<string>;
360
- /** Screen reader announcement on copy. */
361
- readonly srAnnouncement: _angular_core.InputSignal<string>;
574
+ /** Label for the copy button. Unbound, it follows `CNGX_INTERACTIVE_I18N.copy`. */
575
+ readonly buttonLabel: _angular_core.InputSignal<string | undefined>;
576
+ /** Label shown after successful copy. Unbound, it follows `CNGX_INTERACTIVE_I18N.copied`. */
577
+ readonly copiedLabel: _angular_core.InputSignal<string | undefined>;
578
+ /**
579
+ * Screen reader announcement on copy. Unbound, it follows
580
+ * `CNGX_INTERACTIVE_I18N.copiedAnnouncement`.
581
+ */
582
+ readonly srAnnouncement: _angular_core.InputSignal<string | undefined>;
583
+ private readonly copyText;
584
+ protected readonly resolvedButtonLabel: _angular_core.Signal<string>;
585
+ protected readonly resolvedCopiedLabel: _angular_core.Signal<string>;
586
+ /**
587
+ * Live-region text. Only the copied state is tracked: a language switch
588
+ * never re-voices the region; the next copy speaks the new language.
589
+ */
590
+ protected readonly liveAnnouncement: _angular_core.Signal<string>;
362
591
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCopyBlock, never>;
363
592
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCopyBlock, "cngx-copy-block", ["cngxCopyBlock"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; "isSignal": true; }; "copiedLabel": { "alias": "copiedLabel"; "required": false; "isSignal": true; }; "srAnnouncement": { "alias": "srAnnouncement"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
364
593
  }
@@ -410,7 +639,14 @@ declare class CngxRipple {
410
639
  readonly active: _angular_core.Signal<boolean>;
411
640
  private readonly el;
412
641
  private readonly doc;
413
- private prefersReducedMotion;
642
+ private readonly destroyRef;
643
+ private readonly prefersReducedMotion;
644
+ /**
645
+ * Cleanups of waves whose animation has not finished yet. Flushed on
646
+ * destroy so the 1s fallback timer never outlives the directive and
647
+ * detached hosts do not keep orphaned wave elements alive.
648
+ */
649
+ private readonly pendingCleanups;
414
650
  constructor();
415
651
  /** @internal */
416
652
  protected handlePointerDown(event: PointerEvent): void;
@@ -509,8 +745,13 @@ declare class CngxPressRipple {
509
745
  interface CngxNavConfig {
510
746
  /**
511
747
  * Indentation in px per depth level.
512
- * Applied via `--cngx-nav-indent` CSS custom property.
513
- * @default 12
748
+ *
749
+ * When set, `CngxNavGroup` / `CngxNavLink` hosts in the provider scope
750
+ * emit it as the `--cngx-nav-indent` CSS custom property. When absent,
751
+ * the hosts emit nothing - consumer stylesheets keep full control via
752
+ * the cascade and the documented `var(--cngx-nav-indent, 12px)`
753
+ * fallback.
754
+ * @default 12 (CSS fallback; not written to the DOM)
514
755
  */
515
756
  indent?: number;
516
757
  /**
@@ -521,8 +762,15 @@ interface CngxNavConfig {
521
762
  singleAccordion?: boolean;
522
763
  /**
523
764
  * Default animation duration in ms for disclosure transitions.
524
- * Applied via `--cngx-nav-transition` CSS custom property.
525
- * @default 150
765
+ *
766
+ * When set, `CngxNavGroup` / `CngxNavLink` hosts in the provider scope
767
+ * emit it as the `--cngx-nav-transition` CSS custom property. When
768
+ * absent, the hosts emit nothing - the cascade and the documented
769
+ * `var(--cngx-nav-transition, 150ms)` fallback apply. Content panels
770
+ * are consumer-rendered siblings, so panel transitions read the token
771
+ * from the consumer's own container (set it there or scope the
772
+ * provider around a styled wrapper).
773
+ * @default 150 (CSS fallback; not written to the DOM)
526
774
  */
527
775
  animationDuration?: number;
528
776
  }
@@ -567,6 +815,14 @@ declare const CNGX_NAV_CONFIG: InjectionToken<CngxNavConfig>;
567
815
  * @category common/interactive
568
816
  */
569
817
  declare function provideNavConfig(...features: NavConfigFeature[]): Provider[];
818
+ /**
819
+ * Component-scoped variant - use in `viewProviders` so the nav config
820
+ * only applies to descendants of this component. Same feature merge as
821
+ * {@link provideNavConfig}.
822
+ *
823
+ * @category common/interactive
824
+ */
825
+ declare function provideNavConfigAt(...features: NavConfigFeature[]): Provider[];
570
826
  /**
571
827
  * Enables single-accordion mode - only one nav group can be open at a time.
572
828
  *
@@ -656,7 +912,7 @@ declare class CngxDisclosure {
656
912
  readonly opened: _angular_core.Signal<boolean>;
657
913
  /** Emitted when the opened state changes. */
658
914
  readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
659
- /** Opens the disclosure. */
915
+ /** Opens the disclosure. No-op when already open (parity with `close()`). */
660
916
  open(): void;
661
917
  /** Closes the disclosure. */
662
918
  close(): void;
@@ -721,6 +977,8 @@ declare class CngxNavGroup {
721
977
  readonly depth: _angular_core.InputSignal<number>;
722
978
  private readonly registry;
723
979
  private readonly config;
980
+ protected readonly navIndent: string | null;
981
+ protected readonly navTransition: string | null;
724
982
  constructor();
725
983
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxNavGroup, never>;
726
984
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxNavGroup, "[cngxNavGroup]", ["cngxNavGroup"], { "depth": { "alias": "depth"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxDisclosure; inputs: { "cngxDisclosureOpened": "cngxDisclosureOpened"; "controls": "controls"; }; outputs: { "openedChange": "openedChange"; }; }]>;
@@ -840,6 +1098,9 @@ declare class CngxNavLabel {
840
1098
  * <example-url>http://localhost:4200/#/common/interactive/nav/nav-links-active-state-depth</example-url>
841
1099
  */
842
1100
  declare class CngxNavLink {
1101
+ private readonly config;
1102
+ protected readonly navIndent: string | null;
1103
+ protected readonly navTransition: string | null;
843
1104
  /**
844
1105
  * `true` when the host `<a>` lacks an `href` attribute and needs `tabindex="0"`
845
1106
  * + `role="link"` for keyboard focusability.
@@ -849,6 +1110,11 @@ declare class CngxNavLink {
849
1110
  */
850
1111
  readonly needsFocusFix: _angular_core.WritableSignal<boolean>;
851
1112
  private readonly initialized;
1113
+ private readonly locale;
1114
+ /** Link text read after the first render; `null` when the consumer set `data-initial`. */
1115
+ private readonly initialSource;
1116
+ /** First character of the link text, uppercased with the app locale. */
1117
+ private readonly initial;
852
1118
  constructor();
853
1119
  /** Whether this link is the currently active route/item. */
854
1120
  readonly active: _angular_core.InputSignal<boolean>;
@@ -1159,9 +1425,16 @@ interface CngxSliderCoreOptions {
1159
1425
  readonly boundedMax?: Signal<number>;
1160
1426
  /**
1161
1427
  * Maps the current value to an `aria-valuetext` string (currency, dates,
1162
- * t-shirt sizes). When omitted, `aria-valuetext` mirrors the numeric value.
1428
+ * t-shirt sizes). When omitted, `aria-valuetext` mirrors the numeric value,
1429
+ * formatted in {@link CngxSliderCoreOptions.locale} when one is given.
1163
1430
  */
1164
1431
  readonly valueText?: (value: number) => string;
1432
+ /**
1433
+ * Locale of the default `aria-valuetext` (no grouping, locale decimal
1434
+ * separator). The slider directives pass `injectLocale()`. When omitted,
1435
+ * the default is `String(value)`.
1436
+ */
1437
+ readonly locale?: Signal<string>;
1165
1438
  }
1166
1439
  /**
1167
1440
  * Derived view and write surface produced by {@link createSliderCore}. All
@@ -1216,6 +1489,192 @@ interface CngxSliderCore {
1216
1489
  */
1217
1490
  declare function createSliderCore(options: CngxSliderCoreOptions): CngxSliderCore;
1218
1491
 
1492
+ /**
1493
+ * Options for {@link injectInteractiveGroupHost}.
1494
+ *
1495
+ * @category common/interactive
1496
+ */
1497
+ interface CngxInteractiveGroupHostOptions {
1498
+ /**
1499
+ * Prefix handed to `nextUid()` for the stable host id, e.g.
1500
+ * `'cngx-checkbox-group-'`.
1501
+ */
1502
+ readonly uidPrefix: string;
1503
+ /**
1504
+ * The host's `invalid` model. `ariaInvalid` ORs it with the resolved
1505
+ * `errorState` so bridge-driven validity and the field-host/aggregator
1506
+ * cascade share one derivation.
1507
+ */
1508
+ readonly invalid: Signal<boolean>;
1509
+ /**
1510
+ * Optional explicit `[state]` input of the host. When it holds a value,
1511
+ * it wins over a discovered ancestor `CNGX_STATEFUL`; when absent or
1512
+ * `undefined`, the discovered fallback applies.
1513
+ */
1514
+ readonly state?: Signal<CngxAsyncState<unknown> | undefined>;
1515
+ /**
1516
+ * Optional explicit accessible-name input of the host (emitted as
1517
+ * `aria-label`). While it holds a non-empty value,
1518
+ * {@link CngxInteractiveGroupHost.ariaLabelledBy} yields `null` so the
1519
+ * explicit name is not overridden - `aria-labelledby` beats
1520
+ * `aria-label` in accname precedence.
1521
+ */
1522
+ readonly label?: Signal<string | undefined>;
1523
+ /**
1524
+ * Optional explicit `aria-labelledby` input of the host. When set, it
1525
+ * wins over the automatic field-label reference - the consumer decides
1526
+ * which element names the group.
1527
+ */
1528
+ readonly labelledBy?: Signal<string | undefined>;
1529
+ }
1530
+ /**
1531
+ * The scaffolding bundle {@link injectInteractiveGroupHost} returns. Hosts
1532
+ * re-export the fields they surface publicly (`id`, `focused`,
1533
+ * `errorState`) and delegate their `focusin`/`focusout` host listeners to
1534
+ * the handler pair.
1535
+ *
1536
+ * @category common/interactive
1537
+ */
1538
+ interface CngxInteractiveGroupHost {
1539
+ /** Stable unique host id, prefixed per {@link CngxInteractiveGroupHostOptions.uidPrefix}. */
1540
+ readonly id: Signal<string>;
1541
+ /** `true` while focus is inside the host subtree. */
1542
+ readonly focused: Signal<boolean>;
1543
+ /**
1544
+ * Field-host to aggregator cascade. Inside `<cngx-form-field>` the
1545
+ * form-field's `showError()` decides; outside a form-field but inside
1546
+ * an `CngxErrorAggregator` the aggregator's `shouldShow()` decides;
1547
+ * standalone it stays `false`.
1548
+ */
1549
+ readonly errorState: Signal<boolean>;
1550
+ /** `invalid() || errorState()` - the shared `aria-invalid` gate. */
1551
+ readonly ariaInvalid: Signal<boolean>;
1552
+ /**
1553
+ * Resolved `aria-labelledby` reference. An explicit `labelledBy` option
1554
+ * always wins; otherwise the surrounding field's `labelId` applies -
1555
+ * only inside a `cngx-form-field` whose host exposes it and while the
1556
+ * explicit `label` option is empty. Group roles take no name from
1557
+ * content - this channel names them inside a field.
1558
+ */
1559
+ readonly ariaLabelledBy: Signal<string | null>;
1560
+ /**
1561
+ * Effective async state: the explicit `state` option wins over a
1562
+ * discovered ancestor `CNGX_STATEFUL`.
1563
+ */
1564
+ readonly resolvedState: Signal<CngxAsyncState<unknown> | undefined>;
1565
+ /** `true` while the resolved state reports `status() === 'loading'`. */
1566
+ readonly ariaBusy: Signal<boolean>;
1567
+ /** Bind to the host's `(focusin)` listener. */
1568
+ handleFocusIn(): void;
1569
+ /** Bind to the host's `(focusout)` listener; marks the surrounding field as touched. */
1570
+ handleFocusOut(): void;
1571
+ }
1572
+ /**
1573
+ * Shared scaffolding for the interactive form-control hosts (toggle,
1574
+ * checkbox, the standalone interactive chip, and the value groups):
1575
+ * stable uid, focus tracking, the
1576
+ * field-host/aggregator error cascade, the `aria-invalid` gate, and
1577
+ * `[state]`-wins-over-`CNGX_STATEFUL` async-state resolution for
1578
+ * `aria-busy`.
1579
+ *
1580
+ * Call from a field initializer (injection context required - the factory
1581
+ * injects `CNGX_FORM_FIELD_HOST`, `CNGX_ERROR_AGGREGATOR`, and
1582
+ * `CNGX_STATEFUL`, each optional). Declare the `invalid` model and the
1583
+ * `state` input above the call site so the option signals exist when the
1584
+ * initializer runs.
1585
+ *
1586
+ * The factory is wiring, not a swap point: it deliberately has no DI
1587
+ * factory token. Consumers authoring their own form-control atoms get the
1588
+ * same field-host, aggregator, and stateful integration by calling it
1589
+ * directly.
1590
+ *
1591
+ * All host communication stays reactive (Pillar 2): `errorState`,
1592
+ * `ariaInvalid`, and `ariaBusy` are `computed()` members of the returned
1593
+ * bundle. `resolvedState` forwards a stable reference (the bound input
1594
+ * value or the provider's `state` field, never a fresh literal), so
1595
+ * `Object.is` dedupes without an `equal` fn.
1596
+ *
1597
+ * ```ts
1598
+ * private readonly groupHost = injectInteractiveGroupHost({
1599
+ * uidPrefix: 'cngx-checkbox-group-',
1600
+ * invalid: this.invalid,
1601
+ * state: this.state,
1602
+ * });
1603
+ * readonly id = this.groupHost.id;
1604
+ * readonly focused = this.groupHost.focused;
1605
+ * readonly errorState = this.groupHost.errorState;
1606
+ * protected readonly ariaBusy = this.groupHost.ariaBusy;
1607
+ * ```
1608
+ *
1609
+ * @category common/interactive
1610
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/group-host/group-host.ts
1611
+ * @since 0.1.0
1612
+ * @relatedTo CngxToggle, CngxCheckbox, CngxChipInteraction, CngxCheckboxGroup, CngxRadioGroup, CngxButtonToggleGroup, CngxButtonMultiToggleGroup, CngxChipGroup, CngxMultiChipGroup
1613
+ */
1614
+ declare function injectInteractiveGroupHost(options: CngxInteractiveGroupHostOptions): CngxInteractiveGroupHost;
1615
+
1616
+ /**
1617
+ * Options for {@link injectMenuItemCore}.
1618
+ *
1619
+ * @category common/interactive/menu
1620
+ */
1621
+ interface CngxMenuItemCoreOptions<T = unknown> {
1622
+ /** The item's payload value, forwarded to `highlightByValue`. */
1623
+ readonly value: Signal<T | undefined>;
1624
+ /** Disabled state - gates click activation and pointer highlight. */
1625
+ readonly disabled: Signal<boolean>;
1626
+ /** Explicit label input; `label()` falls back to the host's text content. */
1627
+ readonly labelInput: Signal<string | undefined>;
1628
+ /**
1629
+ * Variant activation step, run between `highlightByValue` and
1630
+ * `activateCurrent` on the active-descendant path only (checkbox:
1631
+ * toggle `checked`; radio: select in the group; plain item: omitted).
1632
+ */
1633
+ readonly onActivate?: () => void;
1634
+ }
1635
+ /**
1636
+ * The shared interaction bundle {@link injectMenuItemCore} returns. Menu
1637
+ * item variants re-export `id`/`isHighlighted`/`label` (their
1638
+ * `CngxAdItemHandle` surface) and delegate their host listeners to the
1639
+ * handler pair.
1640
+ *
1641
+ * @category common/interactive/menu
1642
+ */
1643
+ interface CngxMenuItemCore {
1644
+ /** Stable unique item id used for `aria-activedescendant` targeting. */
1645
+ readonly id: string;
1646
+ /** `true` while the surrounding active-descendant highlights this item. */
1647
+ readonly isHighlighted: Signal<boolean>;
1648
+ /** Label accessor: explicit input wins over the host's trimmed text content. */
1649
+ label(): string;
1650
+ /** Bind to the host's `(click)` listener. */
1651
+ handleClick(): void;
1652
+ /** Bind to the host's `(pointerenter)` listener. */
1653
+ handlePointerEnter(): void;
1654
+ }
1655
+ /**
1656
+ * Shared interaction core of the three menu item variants
1657
+ * (`CngxMenuItem`, `CngxMenuItemCheckbox`, `CngxMenuItemRadio`) -
1658
+ * previously a tripled block. Owns the AD registration surface
1659
+ * (`id`, `isHighlighted`, `label`), the disabled-aware click handler with
1660
+ * the announcer's `itemDisabled` phrase, and the pointer-highlight
1661
+ * handler; only the activation step stays per-variant via `onActivate`.
1662
+ *
1663
+ * Call from a field initializer (injection context required - the core
1664
+ * injects `ElementRef`, the optional surrounding `CngxActiveDescendant`,
1665
+ * the announcer factory, and the menu config). Interaction contract,
1666
+ * preserved verbatim from the variants: a disabled click announces and
1667
+ * stops; without a surrounding active-descendant a click is a complete
1668
+ * no-op (no `onActivate` either); on the AD path the order is
1669
+ * `highlightByValue` -> `onActivate` -> `activateCurrent`.
1670
+ *
1671
+ * @category common/interactive/menu
1672
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-core.ts
1673
+ * @since 0.1.0
1674
+ * @relatedTo CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemRadio, CngxMenu
1675
+ */
1676
+ declare function injectMenuItemCore<T = unknown>(options: CngxMenuItemCoreOptions<T>): CngxMenuItemCore;
1677
+
1219
1678
  /**
1220
1679
  * Tick stops from `min` to `max` stepping by `step`, for rendering tick marks +
1221
1680
  * labels. Returns `[]` when the step grid is invalid or denser than `maxCount`
@@ -1326,6 +1785,7 @@ declare class CngxSliderTrack {
1326
1785
  /** Optional `aria-valuetext` formatter (currency, dates, named stops). */
1327
1786
  readonly valueText: _angular_core.InputSignal<((value: number) => string) | undefined>;
1328
1787
  private readonly el;
1788
+ private readonly locale;
1329
1789
  /** Disabled-"why" span + gated `aria-describedby` resolution. */
1330
1790
  protected readonly reason: CngxSliderDisabledReason;
1331
1791
  /** Shared value/step/aria derivation. */
@@ -1386,7 +1846,11 @@ declare class CngxSlider {
1386
1846
  protected readonly brain: CngxSliderTrack;
1387
1847
  /** Tick marks + labels derivation (shared factory). */
1388
1848
  protected readonly ticks: CngxSliderTicksView;
1389
- /** Format a value through the bound `valueText` (so tick labels match the thumb). */
1849
+ private readonly locale;
1850
+ /**
1851
+ * Format a value through the bound `valueText` (so tick labels match the
1852
+ * thumb), else with the app locale's number format.
1853
+ */
1390
1854
  protected format(value: number): string;
1391
1855
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSlider, never>;
1392
1856
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxSlider, "cngx-slider", ["cngxSlider"], { "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "disabledReason": "disabledReason"; "cngxDescribedBy": "cngxDescribedBy"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
@@ -1560,10 +2024,20 @@ declare class CngxRangeSliderTrack implements CngxSliderRangeHost {
1560
2024
  * @relatedTo CngxRangeSliderTrack, CngxSlider, CngxSliderThumb
1561
2025
  */
1562
2026
  declare class CngxRangeSlider {
1563
- /** Accessible name of the start (minimum) thumb. EN default. */
1564
- readonly startLabel: _angular_core.InputSignal<string>;
1565
- /** Accessible name of the end (maximum) thumb. EN default. */
1566
- readonly endLabel: _angular_core.InputSignal<string>;
2027
+ private readonly i18n;
2028
+ private readonly locale;
2029
+ /**
2030
+ * Accessible name of the start (minimum) thumb. Unbound, it follows
2031
+ * `CNGX_INTERACTIVE_I18N.rangeMinimum`.
2032
+ */
2033
+ readonly startLabel: _angular_core.InputSignal<string | undefined>;
2034
+ /**
2035
+ * Accessible name of the end (maximum) thumb. Unbound, it follows
2036
+ * `CNGX_INTERACTIVE_I18N.rangeMaximum`.
2037
+ */
2038
+ readonly endLabel: _angular_core.InputSignal<string | undefined>;
2039
+ protected readonly resolvedStartLabel: _angular_core.Signal<string>;
2040
+ protected readonly resolvedEndLabel: _angular_core.Signal<string>;
1567
2041
  /** Render the formatted `start - end` values centred between the thumbs (visual only). */
1568
2042
  readonly showValue: _angular_core.InputSignalWithTransform<boolean, unknown>;
1569
2043
  /** Show the combined `start - end` value as a bubble only while focused / dragged. */
@@ -1580,6 +2054,12 @@ declare class CngxRangeSlider {
1580
2054
  protected readonly midFraction: _angular_core.Signal<number>;
1581
2055
  /** Tick marks + labels derivation (shared factory). */
1582
2056
  protected readonly ticks: CngxSliderTicksView;
2057
+ /** The visible `start - end` value, ordered and joined by the `rangeValue` message. */
2058
+ protected readonly rangeValueText: _angular_core.Signal<string>;
2059
+ /**
2060
+ * Format a value through the bound `valueText` (so tick labels match the
2061
+ * thumbs), else with the app locale's number format.
2062
+ */
1583
2063
  protected format(value: number): string;
1584
2064
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRangeSlider, never>;
1585
2065
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRangeSlider, "cngx-range-slider", ["cngxRangeSlider"], { "startLabel": { "alias": "startLabel"; "required": false; "isSignal": true; }; "endLabel": { "alias": "endLabel"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxRangeSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "disabledReason": "disabledReason"; "cngxDescribedBy": "cngxDescribedBy"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
@@ -1607,6 +2087,7 @@ declare class CngxSliderThumb {
1607
2087
  readonly position: _angular_core.InputSignal<CngxSliderThumbPosition>;
1608
2088
  protected readonly range: CngxSliderRangeHost;
1609
2089
  private readonly el;
2090
+ private readonly locale;
1610
2091
  /** Sibling-clamped bounds for this thumb, selected reactively by position. */
1611
2092
  protected readonly bounds: Signal<_cngx_common_interactive.CngxSliderThumbBounds>;
1612
2093
  private readonly value;
@@ -1861,7 +2342,7 @@ declare class CngxAccordionPanel implements OnInit {
1861
2342
  protected readonly tabindex: _angular_core.Signal<0 | -1>;
1862
2343
  ngOnInit(): void;
1863
2344
  protected handleKeydown(event: KeyboardEvent): void;
1864
- protected toggle(): void;
2345
+ protected handleClick(): void;
1865
2346
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAccordionPanel, never>;
1866
2347
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAccordionPanel, "[cngxAccordionPanel]", ["cngxAccordionPanel"], { "panelId": { "alias": "panelId"; "required": true; "isSignal": true; }; "controls": { "alias": "controls"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1867
2348
  }
@@ -1963,8 +2444,13 @@ declare const CNGX_BREADCRUMB: InjectionToken<CngxBreadcrumbHost>;
1963
2444
  * <example-url>http://localhost:4200/#/common/interactive/breadcrumb/basic-trail</example-url>
1964
2445
  */
1965
2446
  declare class CngxBreadcrumb implements CngxBreadcrumbHost {
1966
- /** Accessible name of the navigation landmark. EN default. */
1967
- readonly label: _angular_core.InputSignal<string>;
2447
+ private readonly i18n;
2448
+ /**
2449
+ * Accessible name of the navigation landmark. Unbound, it follows
2450
+ * `CNGX_INTERACTIVE_I18N.breadcrumb`, including a runtime language switch.
2451
+ */
2452
+ readonly label: _angular_core.InputSignal<string | undefined>;
2453
+ protected readonly resolvedLabel: _angular_core.Signal<string>;
1968
2454
  /** Maximum crumbs to show before the middle collapses. Unset = never collapse. */
1969
2455
  readonly maxVisible: _angular_core.InputSignal<number | undefined>;
1970
2456
  /** Swappable collapse rule; defaults to keep-first + last (max - 1). */
@@ -2043,41 +2529,6 @@ declare function createBreadcrumbCollapse(): CngxBreadcrumbCollapseStrategy;
2043
2529
  */
2044
2530
  declare const CNGX_BREADCRUMB_COLLAPSE_STRATEGY: InjectionToken<CngxBreadcrumbCollapseStrategy>;
2045
2531
 
2046
- /**
2047
- * One width breakpoint for the responsive breadcrumb collapse: at `minWidth`
2048
- * pixels and above, show at most `maxVisible` crumbs before the middle folds
2049
- * into the overflow menu. A tier list is resolved by {@link resolveBreadcrumbTier}.
2050
- */
2051
- interface CngxBreadcrumbWidthTier {
2052
- /** Lower bound (inclusive, px) at which this tier's `maxVisible` applies. */
2053
- readonly minWidth: number;
2054
- /** Crumb cap once this tier is the active one. Fed to the count-based collapse. */
2055
- readonly maxVisible: number;
2056
- }
2057
- /**
2058
- * Default width tiers, matching the headless `responsive-collapse` recipe: 640px
2059
- * and up shows 6, 440px and up shows 4, anything narrower shows 2. The `0` floor
2060
- * guarantees a match for every non-negative width.
2061
- */
2062
- declare const DEFAULT_BREADCRUMB_WIDTH_TIERS: readonly CngxBreadcrumbWidthTier[];
2063
- /**
2064
- * Pure width->count resolver: returns the `maxVisible` of the tier with the
2065
- * highest `minWidth` that is still `<= width`. Order-independent - the tier list
2066
- * is normalised (sorted by descending `minWidth`) before matching, so a consumer
2067
- * may pass tiers in any order. When `width` sits below every tier's `minWidth`
2068
- * the narrowest tier's `maxVisible` is the floor; an empty tier list yields
2069
- * `Number.POSITIVE_INFINITY` (never collapse), leaving the trail intact.
2070
- *
2071
- * No DOM, no Angular - the width source (a `CngxResizeObserver`) lives in the
2072
- * bar; this stays jsdom-testable and shared by the bar and the headless recipe.
2073
- *
2074
- * @category common/interactive/breadcrumb
2075
- * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/breadcrumb/breadcrumb-responsive.ts
2076
- * @since 0.1.0
2077
- * @relatedTo CngxBreadcrumb, CngxBreadcrumbWidthTier, DEFAULT_BREADCRUMB_WIDTH_TIERS
2078
- */
2079
- declare function resolveBreadcrumbTier(width: number, tiers: readonly CngxBreadcrumbWidthTier[]): number;
2080
-
2081
2532
  /**
2082
2533
  * Single-value boolean switch with W3C `role="switch"` semantics. Click,
2083
2534
  * Space, and Enter all flip `value`; the directive form (`[cngxToggle]`)
@@ -2179,15 +2630,13 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
2179
2630
  */
2180
2631
  protected readonly hasProjectedLabel: _angular_core.Signal<boolean>;
2181
2632
  constructor();
2633
+ private readonly groupHost;
2182
2634
  /** Stable per-instance id used for `<label for>` wiring. */
2183
2635
  readonly id: _angular_core.Signal<string>;
2184
- private readonly focusedState;
2185
2636
  /** Whether the host element currently has DOM focus. */
2186
2637
  readonly focused: _angular_core.Signal<boolean>;
2187
2638
  /** True when the toggle is `false` (off) - boolean atom semantics. */
2188
2639
  readonly empty: _angular_core.Signal<boolean>;
2189
- private readonly fieldHost;
2190
- private readonly aggregator;
2191
2640
  /**
2192
2641
  * Field-host→aggregator cascade. Inside `<cngx-form-field>` the
2193
2642
  * presenter governs visibility (touched / strategy / scope). Outside
@@ -2303,8 +2752,8 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
2303
2752
  */
2304
2753
  protected readonly hostTabindex: _angular_core.Signal<number | null>;
2305
2754
  protected readonly ariaChecked: _angular_core.Signal<"true" | "false" | "mixed">;
2755
+ private readonly groupHost;
2306
2756
  readonly id: _angular_core.Signal<string>;
2307
- private readonly focusedState;
2308
2757
  readonly focused: _angular_core.Signal<boolean>;
2309
2758
  /**
2310
2759
  * Empty when value is `false` AND not in tri-state intermediate. An
@@ -2312,8 +2761,6 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
2312
2761
  * count as empty for forms purposes.
2313
2762
  */
2314
2763
  readonly empty: _angular_core.Signal<boolean>;
2315
- private readonly fieldHost;
2316
- private readonly aggregator;
2317
2764
  readonly errorState: _angular_core.Signal<boolean>;
2318
2765
  protected readonly ariaInvalid: _angular_core.Signal<boolean>;
2319
2766
  protected handleClick(): void;
@@ -2366,7 +2813,9 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
2366
2813
  * `[state]` is an optional `CngxAsyncState<unknown>` input; when bound,
2367
2814
  * `aria-busy` reflects `state.status() === 'loading'` reactively so AT
2368
2815
  * announces the busy moment without the consumer wiring the attribute
2369
- * by hand.
2816
+ * by hand. Without an explicit binding the group discovers an ancestor
2817
+ * `CNGX_STATEFUL` provider as fallback - the input always wins when
2818
+ * both are present.
2370
2819
  *
2371
2820
  * ```html
2372
2821
  * <cngx-checkbox-group
@@ -2416,8 +2865,20 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
2416
2865
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
2417
2866
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
2418
2867
  readonly label: _angular_core.InputSignal<string | undefined>;
2868
+ /**
2869
+ * Explicit `aria-labelledby` target id. Wins over the automatic
2870
+ * field-label reference applied inside a `cngx-form-field`.
2871
+ */
2872
+ readonly labelledBy: _angular_core.InputSignal<string | undefined>;
2419
2873
  readonly allValues: _angular_core.InputSignal<readonly T[] | undefined>;
2420
- readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
2874
+ /**
2875
+ * Optional async state driving `aria-busy`. An explicit binding wins;
2876
+ * when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
2877
+ * provider is discovered as fallback. A bare `state` attribute (empty
2878
+ * string) is treated as unset. `aria-busy` reflects
2879
+ * `status() === 'loading'`.
2880
+ */
2881
+ readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
2421
2882
  readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
2422
2883
  private readonly controller;
2423
2884
  constructor();
@@ -2425,23 +2886,22 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
2425
2886
  readonly noneSelected: _angular_core.Signal<boolean>;
2426
2887
  readonly allSelected: _angular_core.Signal<boolean>;
2427
2888
  readonly someSelected: _angular_core.Signal<boolean>;
2889
+ private readonly groupHost;
2890
+ protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
2428
2891
  protected readonly ariaBusy: _angular_core.Signal<boolean>;
2429
2892
  toggleAll(): void;
2430
2893
  select(value: T): void;
2431
2894
  deselect(value: T): void;
2432
2895
  readonly id: _angular_core.Signal<string>;
2433
- private readonly focusedState;
2434
2896
  readonly focused: _angular_core.Signal<boolean>;
2435
2897
  /** Empty when no values selected. */
2436
2898
  readonly empty: _angular_core.Signal<boolean>;
2437
- private readonly fieldHost;
2438
- private readonly aggregator;
2439
2899
  readonly errorState: _angular_core.Signal<boolean>;
2440
2900
  protected readonly ariaInvalid: _angular_core.Signal<boolean>;
2441
2901
  protected handleFocusIn(): void;
2442
2902
  protected handleFocusOut(): void;
2443
2903
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCheckboxGroup<any>, never>;
2444
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCheckboxGroup<any>, "cngx-checkbox-group, [cngxCheckboxGroup]", ["cngxCheckboxGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "allValues": { "alias": "allValues"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
2904
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCheckboxGroup<any>, "cngx-checkbox-group, [cngxCheckboxGroup]", ["cngxCheckboxGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "allValues": { "alias": "allValues"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
2445
2905
  }
2446
2906
 
2447
2907
  /**
@@ -2561,22 +3021,33 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
2561
3021
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
2562
3022
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
2563
3023
  readonly label: _angular_core.InputSignal<string | undefined>;
2564
- readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
2565
- protected readonly ariaBusy: _angular_core.Signal<boolean>;
3024
+ /**
3025
+ * Explicit `aria-labelledby` target id. Wins over the automatic
3026
+ * field-label reference applied inside a `cngx-form-field`.
3027
+ */
3028
+ readonly labelledBy: _angular_core.InputSignal<string | undefined>;
3029
+ /**
3030
+ * Optional async state driving `aria-busy`. An explicit binding wins;
3031
+ * when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
3032
+ * provider is discovered as fallback. A bare `state` attribute (empty
3033
+ * string) is treated as unset. `aria-busy` reflects
3034
+ * `status() === 'loading'`.
3035
+ */
3036
+ readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
2566
3037
  private readonly roving;
2567
3038
  consumePendingArrowSelect(value: T): boolean;
3039
+ private readonly groupHost;
3040
+ protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
3041
+ protected readonly ariaBusy: _angular_core.Signal<boolean>;
2568
3042
  readonly id: _angular_core.Signal<string>;
2569
- private readonly focusedState;
2570
3043
  readonly focused: _angular_core.Signal<boolean>;
2571
3044
  /** Empty when no toggle is selected. */
2572
3045
  readonly empty: _angular_core.Signal<boolean>;
2573
- private readonly fieldHost;
2574
- private readonly aggregator;
2575
3046
  readonly errorState: _angular_core.Signal<boolean>;
2576
3047
  protected handleFocusIn(): void;
2577
3048
  protected handleFocusOut(): void;
2578
3049
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxButtonToggleGroup<any>, never>;
2579
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonToggleGroup<any>, "cngx-button-toggle-group, [cngxButtonToggleGroup]", ["cngxButtonToggleGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
3050
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonToggleGroup<any>, "cngx-button-toggle-group, [cngxButtonToggleGroup]", ["cngxButtonToggleGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
2580
3051
  }
2581
3052
 
2582
3053
  /**
@@ -2698,25 +3169,36 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
2698
3169
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
2699
3170
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
2700
3171
  readonly label: _angular_core.InputSignal<string | undefined>;
2701
- readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
3172
+ /**
3173
+ * Explicit `aria-labelledby` target id. Wins over the automatic
3174
+ * field-label reference applied inside a `cngx-form-field`.
3175
+ */
3176
+ readonly labelledBy: _angular_core.InputSignal<string | undefined>;
3177
+ /**
3178
+ * Optional async state driving `aria-busy`. An explicit binding wins;
3179
+ * when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
3180
+ * provider is discovered as fallback. A bare `state` attribute (empty
3181
+ * string) is treated as unset. `aria-busy` reflects
3182
+ * `status() === 'loading'`.
3183
+ */
3184
+ readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
2702
3185
  readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
2703
- protected readonly ariaBusy: Signal<boolean>;
2704
3186
  private readonly controller;
2705
3187
  constructor();
2706
3188
  isSelected(value: T): Signal<boolean>;
2707
3189
  toggle(value: T): void;
3190
+ private readonly groupHost;
3191
+ protected readonly ariaLabelledBy: Signal<string | null>;
3192
+ protected readonly ariaBusy: Signal<boolean>;
2708
3193
  readonly id: Signal<string>;
2709
- private readonly focusedState;
2710
3194
  readonly focused: Signal<boolean>;
2711
3195
  /** Empty when no toggles are selected. */
2712
3196
  readonly empty: Signal<boolean>;
2713
- private readonly fieldHost;
2714
- private readonly aggregator;
2715
3197
  readonly errorState: Signal<boolean>;
2716
3198
  protected handleFocusIn(): void;
2717
3199
  protected handleFocusOut(): void;
2718
3200
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxButtonMultiToggleGroup<any>, never>;
2719
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonMultiToggleGroup<any>, "cngx-button-multi-toggle-group, [cngxButtonMultiToggleGroup]", ["cngxButtonMultiToggleGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
3201
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxButtonMultiToggleGroup<any>, "cngx-button-multi-toggle-group, [cngxButtonMultiToggleGroup]", ["cngxButtonMultiToggleGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
2720
3202
  }
2721
3203
 
2722
3204
  /**
@@ -2954,20 +3436,31 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
2954
3436
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
2955
3437
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
2956
3438
  readonly label: _angular_core.InputSignal<string | undefined>;
2957
- readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
3439
+ /**
3440
+ * Explicit `aria-labelledby` target id. Wins over the automatic
3441
+ * field-label reference applied inside a `cngx-form-field`.
3442
+ */
3443
+ readonly labelledBy: _angular_core.InputSignal<string | undefined>;
3444
+ /**
3445
+ * Optional async state driving `aria-busy`. An explicit binding wins;
3446
+ * when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
3447
+ * provider is discovered as fallback. A bare `state` attribute (empty
3448
+ * string) is treated as unset. `aria-busy` reflects
3449
+ * `status() === 'loading'`.
3450
+ */
3451
+ readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
2958
3452
  readonly nameInput: _angular_core.InputSignal<string | undefined>;
2959
- protected readonly ariaBusy: _angular_core.Signal<boolean>;
2960
3453
  private readonly fallbackName;
2961
3454
  readonly name: _angular_core.Signal<string>;
2962
3455
  private readonly registry;
2963
3456
  private readonly roving;
3457
+ private readonly groupHost;
3458
+ protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
3459
+ protected readonly ariaBusy: _angular_core.Signal<boolean>;
2964
3460
  readonly id: _angular_core.Signal<string>;
2965
- private readonly focusedState;
2966
3461
  readonly focused: _angular_core.Signal<boolean>;
2967
3462
  /** Empty when no radio is selected. */
2968
3463
  readonly empty: _angular_core.Signal<boolean>;
2969
- private readonly fieldHost;
2970
- private readonly aggregator;
2971
3464
  readonly errorState: _angular_core.Signal<boolean>;
2972
3465
  constructor();
2973
3466
  register(radio: CngxRadioRegistration<T>): void;
@@ -2976,7 +3469,7 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
2976
3469
  protected handleFocusIn(): void;
2977
3470
  protected handleFocusOut(): void;
2978
3471
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRadioGroup<any>, never>;
2979
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRadioGroup<any>, "cngx-radio-group, [cngxRadioGroup]", ["cngxRadioGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: {}; outputs: {}; }]>;
3472
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRadioGroup<any>, "cngx-radio-group, [cngxRadioGroup]", ["cngxRadioGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: {}; outputs: {}; }]>;
2980
3473
  }
2981
3474
 
2982
3475
  /**
@@ -3242,13 +3735,11 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
3242
3735
  readonly removeRequest: _angular_core.OutputEmitterRef<void>;
3243
3736
  private readonly describedId;
3244
3737
  protected readonly resolvedDescribedBy: _angular_core.Signal<string | null>;
3738
+ private readonly groupHost;
3245
3739
  readonly id: _angular_core.Signal<string>;
3246
- private readonly focusedState;
3247
3740
  readonly focused: _angular_core.Signal<boolean>;
3248
3741
  /** Empty when the chip is unselected - boolean atom semantics. */
3249
3742
  readonly empty: _angular_core.Signal<boolean>;
3250
- private readonly fieldHost;
3251
- private readonly errorAggregator;
3252
3743
  readonly errorState: _angular_core.Signal<boolean>;
3253
3744
  constructor();
3254
3745
  protected handleClick(event: MouseEvent): void;
@@ -3429,25 +3920,36 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
3429
3920
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
3430
3921
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
3431
3922
  readonly label: _angular_core.InputSignal<string | undefined>;
3432
- readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
3923
+ /**
3924
+ * Explicit `aria-labelledby` target id. Wins over the automatic
3925
+ * field-label reference applied inside a `cngx-form-field`.
3926
+ */
3927
+ readonly labelledBy: _angular_core.InputSignal<string | undefined>;
3928
+ /**
3929
+ * Optional async state driving `aria-busy`. An explicit binding wins;
3930
+ * when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
3931
+ * provider is discovered as fallback. A bare `state` attribute (empty
3932
+ * string) is treated as unset. `aria-busy` reflects
3933
+ * `status() === 'loading'`.
3934
+ */
3935
+ readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
3433
3936
  /** CngxChipGroupHost - leaf-side cascade source. */
3434
3937
  readonly isDisabled: _angular_core.ModelSignal<boolean>;
3938
+ private readonly groupHost;
3939
+ protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
3435
3940
  protected readonly ariaBusy: _angular_core.Signal<boolean>;
3436
3941
  isSelected(value: T): boolean;
3437
3942
  toggle(value: T): void;
3438
3943
  remove(value: T): void;
3439
3944
  readonly id: _angular_core.Signal<string>;
3440
- private readonly focusedState;
3441
3945
  readonly focused: _angular_core.Signal<boolean>;
3442
3946
  /** Empty when no chip is selected. */
3443
3947
  readonly empty: _angular_core.Signal<boolean>;
3444
- private readonly fieldHost;
3445
- private readonly errorAggregator;
3446
3948
  readonly errorState: _angular_core.Signal<boolean>;
3447
3949
  protected handleFocusIn(): void;
3448
3950
  protected handleFocusOut(): void;
3449
3951
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxChipGroup<any>, never>;
3450
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxChipGroup<any>, "cngx-chip-group, [cngxChipGroup]", ["cngxChipGroup"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
3952
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxChipGroup<any>, "cngx-chip-group, [cngxChipGroup]", ["cngxChipGroup"], { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, { "selected": "selectedChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
3451
3953
  }
3452
3954
 
3453
3955
  /**
@@ -3551,11 +4053,25 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
3551
4053
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
3552
4054
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
3553
4055
  readonly label: _angular_core.InputSignal<string | undefined>;
3554
- readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
4056
+ /**
4057
+ * Explicit `aria-labelledby` target id. Wins over the automatic
4058
+ * field-label reference applied inside a `cngx-form-field`.
4059
+ */
4060
+ readonly labelledBy: _angular_core.InputSignal<string | undefined>;
4061
+ /**
4062
+ * Optional async state driving `aria-busy`. An explicit binding wins;
4063
+ * when it is absent or `undefined`, an ancestor `CNGX_STATEFUL`
4064
+ * provider is discovered as fallback. A bare `state` attribute (empty
4065
+ * string) is treated as unset. `aria-busy` reflects
4066
+ * `status() === 'loading'`.
4067
+ */
4068
+ readonly state: _angular_core.InputSignalWithTransform<CngxAsyncState<unknown> | undefined, "" | CngxAsyncState<unknown> | undefined>;
3555
4069
  readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
3556
4070
  /** CngxChipGroupHost - leaf-side cascade source. */
3557
4071
  readonly isDisabled: _angular_core.ModelSignal<boolean>;
3558
4072
  private readonly controller;
4073
+ private readonly groupHost;
4074
+ protected readonly ariaLabelledBy: _angular_core.Signal<string | null>;
3559
4075
  protected readonly ariaBusy: _angular_core.Signal<boolean>;
3560
4076
  /** Public membership count - useful for label hints + announcements. */
3561
4077
  readonly selectedCount: _angular_core.Signal<number>;
@@ -3564,17 +4080,14 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
3564
4080
  toggle(value: T): void;
3565
4081
  remove(value: T): void;
3566
4082
  readonly id: _angular_core.Signal<string>;
3567
- private readonly focusedState;
3568
4083
  readonly focused: _angular_core.Signal<boolean>;
3569
4084
  /** Empty when no chips are selected. */
3570
4085
  readonly empty: _angular_core.Signal<boolean>;
3571
- private readonly fieldHost;
3572
- private readonly errorAggregator;
3573
4086
  readonly errorState: _angular_core.Signal<boolean>;
3574
4087
  protected handleFocusIn(): void;
3575
4088
  protected handleFocusOut(): void;
3576
4089
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMultiChipGroup<any>, never>;
3577
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxMultiChipGroup<any>, "cngx-multi-chip-group, [cngxMultiChipGroup]", ["cngxMultiChipGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
4090
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxMultiChipGroup<any>, "cngx-multi-chip-group, [cngxMultiChipGroup]", ["cngxMultiChipGroup"], { "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labelledBy": { "alias": "labelledBy"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "keyFn": { "alias": "keyFn"; "required": false; "isSignal": true; }; }, { "selectedValues": "selectedValuesChange"; "disabled": "disabledChange"; "required": "requiredChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }]>;
3578
4091
  }
3579
4092
 
3580
4093
  /**
@@ -3757,8 +4270,9 @@ interface CngxTreeControllerOptions<T> {
3757
4270
  * the call in `untracked(() => ctrl.parentOf(id))`.
3758
4271
  *
3759
4272
  * ## Mutations
3760
- * All mutators (`expand`, `collapse`, `toggle`, `expandAll`, `collapseAll`)
3761
- * peek at the expansion set via `untracked()` so invoking them from
4273
+ * All mutators (`expand`, `collapse`, `toggle`, `reveal`, `expandAll`,
4274
+ * `collapseAll`) peek at the expansion set via `untracked()` so invoking
4275
+ * them from
3762
4276
  * inside an `effect()` never latches that effect onto the expansion set.
3763
4277
  *
3764
4278
  * @category common/interactive/tree
@@ -3795,6 +4309,13 @@ interface CngxTreeController<T> {
3795
4309
  expand(id: string): void;
3796
4310
  collapse(id: string): void;
3797
4311
  toggle(id: string): void;
4312
+ /**
4313
+ * Expand every ancestor of `id` so the node becomes visible. The node's
4314
+ * own expansion state stays untouched. No-op for unknown ids, for
4315
+ * root-level nodes, and when every ancestor is already expanded (the
4316
+ * expansion set keeps its reference in that case).
4317
+ */
4318
+ reveal(id: string): void;
3798
4319
  /** Expand every node that has children. No-op when already fully expanded. */
3799
4320
  expandAll(): void;
3800
4321
  collapseAll(): void;
@@ -3815,9 +4336,9 @@ interface CngxTreeController<T> {
3815
4336
  * - Existing signal bindings created before destroy keep working - the
3816
4337
  * underlying `expandedIds` signal is still live, so downstream updates
3817
4338
  * continue to propagate.
3818
- * - Mutators (`expand` / `collapse` / `toggle` / `expandAll` /
3819
- * `collapseAll`) continue to function; post-destroy writes do NOT
3820
- * repopulate the cache.
4339
+ * - Mutators (`expand` / `collapse` / `toggle` / `reveal` /
4340
+ * `expandAll` / `collapseAll`) continue to function; post-destroy
4341
+ * writes do NOT repopulate the cache.
3821
4342
  *
3822
4343
  * Idempotent. Prefer this over a hard teardown so long-lived consumer
3823
4344
  * bindings that outlive the controller's active phase degrade
@@ -4233,7 +4754,7 @@ declare function createW3CTreeStrategy(): CngxHierarchicalNavStrategy;
4233
4754
  declare const CNGX_HIERARCHICAL_NAV_STRATEGY: InjectionToken<CngxHierarchicalNavStrategy>;
4234
4755
 
4235
4756
  /**
4236
- * Configuration for `withRetry()`.
4757
+ * Configuration for `createRetry()`.
4237
4758
  *
4238
4759
  * @category common/interactive/retry
4239
4760
  */
@@ -4282,7 +4803,7 @@ interface RetryState {
4282
4803
  * Composes naturally with `CngxAsyncClick` and `CngxActionButton`:
4283
4804
  *
4284
4805
  * ```typescript
4285
- * const [saveWithRetry, retryState] = withRetry(
4806
+ * const [saveWithRetry, retryState] = createRetry(
4286
4807
  * () => this.http.post('/api/save', data),
4287
4808
  * { maxAttempts: 3, delay: 1000, backoff: 'exponential' }
4288
4809
  * );
@@ -4295,7 +4816,15 @@ interface RetryState {
4295
4816
  *
4296
4817
  * @category common/interactive/retry
4297
4818
  */
4298
- declare function withRetry(action: AsyncAction, config?: RetryConfig): [AsyncAction, RetryState];
4819
+ declare function createRetry(action: AsyncAction, config?: RetryConfig): [AsyncAction, RetryState];
4820
+ /**
4821
+ * Alias of {@link createRetry} under the pre-convention name.
4822
+ *
4823
+ * @deprecated Use `createRetry` - this name is removed at the v1.0 cut
4824
+ * (`with*` is reserved for provider feature functions).
4825
+ * @category common/interactive/retry
4826
+ */
4827
+ declare const withRetry: typeof createRetry;
4299
4828
 
4300
4829
  /**
4301
4830
  * State exposed by the optimistic action.
@@ -4327,7 +4856,7 @@ interface OptimisticState {
4327
4856
  *
4328
4857
  * ```typescript
4329
4858
  * readonly name = signal('Alice');
4330
- * readonly [updateName, nameState] = optimistic(
4859
+ * readonly [updateName, nameState] = createOptimistic(
4331
4860
  * this.name,
4332
4861
  * (value) => this.http.put('/api/name', { name: value })
4333
4862
  * );
@@ -4349,7 +4878,15 @@ interface OptimisticState {
4349
4878
  *
4350
4879
  * @category common/interactive/optimistic
4351
4880
  */
4352
- declare function optimistic<T>(current: WritableSignal<T>, action: (value: T) => Observable<T>): [(newValue: T) => void, OptimisticState];
4881
+ declare function createOptimistic<T>(current: WritableSignal<T>, action: (value: T) => Observable<T>): [(newValue: T) => void, OptimisticState];
4882
+ /**
4883
+ * Alias of {@link createOptimistic} under the pre-convention name.
4884
+ *
4885
+ * @deprecated Use `createOptimistic` - this name is removed at the
4886
+ * v1.0 cut (exported factories carry the `create` prefix).
4887
+ * @category common/interactive/optimistic
4888
+ */
4889
+ declare const optimistic: typeof createOptimistic;
4353
4890
 
4354
4891
  /**
4355
4892
  * Detects long-press gestures via Pointer Events.
@@ -4542,7 +5079,14 @@ declare class CngxSwipeDismiss {
4542
5079
  readonly swiping: _angular_core.Signal<boolean>;
4543
5080
  /** Progress of the current swipe from 0 to 1 (clamped). */
4544
5081
  readonly swipeProgress: _angular_core.Signal<number>;
5082
+ /**
5083
+ * The `touch-action` the host should advertise, derived from the dismiss
5084
+ * direction: a horizontal dismiss hands vertical panning back to native
5085
+ * scrolling and vice versa. No value is written while disabled.
5086
+ */
5087
+ protected readonly touchAction: _angular_core.Signal<string | null>;
4545
5088
  constructor();
5089
+ /** Signed delta along the dismiss direction; movement away from it is negative. */
4546
5090
  private getDelta;
4547
5091
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSwipeDismiss, never>;
4548
5092
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSwipeDismiss, "[cngxSwipeDismiss]", ["cngxSwipeDismiss"], { "direction": { "alias": "cngxSwipeDismiss"; "required": true; "isSignal": true; }; "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; }, { "swiped": "swiped"; }, never, never, true, never>;
@@ -4604,7 +5148,7 @@ interface CngxReorderEvent<T> {
4604
5148
  * <span class="chip-strip" [cngxReorder]="values" (reordered)="apply($event)">
4605
5149
  * @for (v of values(); track v; let i = $index) {
4606
5150
  * <span class="chip" [attr.data-reorder-index]="i">
4607
- * <button cngxReorderHandle aria-label="Verschieben">⋮⋮</button>
5151
+ * <button cngxReorderHandle aria-label="Move item">⋮⋮</button>
4608
5152
  * {{ v.label }}
4609
5153
  * </span>
4610
5154
  * }
@@ -4692,6 +5236,14 @@ declare class CngxReorder<T = unknown> {
4692
5236
  private readonly doc;
4693
5237
  private readonly direction;
4694
5238
  private readonly destroyRef;
5239
+ /**
5240
+ * Cleanups of click suppressors whose window is still open. Routed
5241
+ * through ONE destroy hook (below) instead of a fresh
5242
+ * `DestroyRef.onDestroy` registration per completed drag - those
5243
+ * registrations were never released and accumulated over the
5244
+ * directive's lifetime.
5245
+ */
5246
+ private readonly pendingSuppressorCleanups;
4695
5247
  constructor();
4696
5248
  private wirePointer;
4697
5249
  private wireKeyboard;
@@ -4708,8 +5260,8 @@ declare class CngxReorder<T = unknown> {
4708
5260
  * itself after the first event, after a short watchdog timeout if
4709
5261
  * no click ever fires (browsers skip the click when mouse travel
4710
5262
  * exceeds the platform drag threshold), and on directive destroy
4711
- * so test fixtures never leak a document-level handler across
4712
- * iterations.
5263
+ * (via the routed `pendingSuppressorCleanups` set) so test fixtures
5264
+ * never leak a document-level handler across iterations.
4713
5265
  */
4714
5266
  private installClickSuppressor;
4715
5267
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxReorder<any>, never>;
@@ -4888,7 +5440,7 @@ declare class CngxKeyboardShortcut {
4888
5440
  /** Shortcut combo string, e.g. `'mod+s'`, `'ctrl+shift+k'`, `'escape'`. */
4889
5441
  readonly shortcut: _angular_core.InputSignal<string>;
4890
5442
  /** `'global'` listens on document; `'self'` listens only on the host element. */
4891
- readonly scope: _angular_core.InputSignal<"global" | "self">;
5443
+ readonly scope: _angular_core.InputSignal<"self" | "global">;
4892
5444
  /** Whether the shortcut is active. */
4893
5445
  readonly enabled: _angular_core.InputSignal<boolean>;
4894
5446
  /** Emitted when the shortcut fires. */
@@ -5052,7 +5604,9 @@ declare class CngxBeforeUnload {
5052
5604
  * ```
5053
5605
  *
5054
5606
  * @param isDirty - Callback that returns `true` when there are unsaved changes.
5055
- * @param message - Confirmation message. Default: `'You have unsaved changes. Leave anyway?'`
5607
+ * @param message - Confirmation message. Unset, it reads `unsavedChanges` of
5608
+ * `CNGX_INTERACTIVE_I18N` (English `'You have unsaved changes. Leave anyway?'`)
5609
+ * when the guard runs, so it follows the active language.
5056
5610
  * @returns A functional guard compatible with Angular's `canDeactivate`.
5057
5611
  *
5058
5612
  * @category common/interactive/guard
@@ -5123,8 +5677,9 @@ declare class CngxCloseButton {
5123
5677
  *
5124
5678
  * Designed as a `hostDirective` composition primitive - attach it to
5125
5679
  * components that need hover state without implementing their own
5126
- * mouseenter/mouseleave logic. The `hovered` signal is writable so
5127
- * host components can read it via `inject(CngxHoverable, { host: true })`.
5680
+ * mouseenter/mouseleave logic. Host components read the read-only
5681
+ * `hovered` signal via `inject(CngxHoverable, { host: true })`; the
5682
+ * pointer events are the only writers.
5128
5683
  *
5129
5684
  * Used internally by `CngxTreetableRow` for row highlight-on-hover.
5130
5685
  *
@@ -5152,8 +5707,12 @@ declare class CngxCloseButton {
5152
5707
  * @relatedTo CngxPressable, CngxRipple
5153
5708
  */
5154
5709
  declare class CngxHoverable {
5710
+ /** Backing state for {@link hovered}. */
5711
+ private readonly hoveredState;
5155
5712
  /** `true` while the pointer is over the host element. */
5156
- readonly hovered: _angular_core.WritableSignal<boolean>;
5713
+ readonly hovered: _angular_core.Signal<boolean>;
5714
+ protected handleMouseEnter(): void;
5715
+ protected handleMouseLeave(): void;
5157
5716
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxHoverable, never>;
5158
5717
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxHoverable, "[cngxHoverable]", ["cngxHoverable"], {}, {}, never, never, true, never>;
5159
5718
  }
@@ -5219,14 +5778,30 @@ declare class CngxSpeak {
5219
5778
  readonly pitch: _angular_core.InputSignal<number>;
5220
5779
  /** Speech volume (0–1, default 1). */
5221
5780
  readonly volume: _angular_core.InputSignal<number>;
5222
- /** BCP 47 language tag (e.g. `'de-DE'`). Empty string uses the browser default. */
5781
+ /**
5782
+ * BCP 47 language tag (e.g. `'de-DE'`). Empty string uses the app locale,
5783
+ * in the order cngx formatters read it: a provided `CNGX_LOCALE`
5784
+ * (`provideLocale`, `provideCngxI18n`), else a `LOCALE_ID` other than
5785
+ * `'en-US'`, else `<html lang>`, else the browser's default voice language.
5786
+ *
5787
+ * `'en-US'` is Angular's implicit `LOCALE_ID` when an app sets none, and an
5788
+ * explicit `'en-US'` cannot be told apart from it. A voice is chosen by its
5789
+ * language, so treating that default as a choice would read German page
5790
+ * text with an English voice; it falls through to `<html lang>` instead.
5791
+ * An app that wants American English speech says so with `provideLocale`,
5792
+ * `<html lang>` or this input.
5793
+ */
5223
5794
  readonly lang: _angular_core.InputSignal<string>;
5795
+ private readonly appLocale;
5796
+ private readonly locale;
5797
+ private readonly documentElement;
5224
5798
  /** Controls auto-speak on text changes. Does NOT affect `speak()` or `cancel()`. */
5225
5799
  readonly enabled: _angular_core.InputSignal<boolean>;
5226
5800
  private readonly speakingState;
5227
5801
  private readonly supportedState;
5228
5802
  private readonly synth;
5229
5803
  private readonly initialized;
5804
+ private activeUtterance;
5230
5805
  /** Whether the browser supports the SpeechSynthesis API. */
5231
5806
  readonly supported: boolean;
5232
5807
  /** `true` while an utterance is being spoken. */
@@ -5234,11 +5809,20 @@ declare class CngxSpeak {
5234
5809
  constructor();
5235
5810
  /** Speak arbitrary text. Always works regardless of `enabled`. */
5236
5811
  speak(text: string): void;
5237
- /** Cancel any ongoing speech. */
5812
+ /**
5813
+ * Cancel this directive's ongoing speech. A no-op while no own utterance
5814
+ * is live, so an idle instance never clears the shared synthesis queue.
5815
+ * (Starting a new utterance still interrupts whatever is playing -
5816
+ * `SpeechSynthesis` is a single audio channel.)
5817
+ */
5238
5818
  cancel(): void;
5239
5819
  /** Toggle speech: speak text if idle, cancel if speaking. */
5240
5820
  toggle(): void;
5821
+ private resolveAppLanguage;
5241
5822
  private performSpeak;
5823
+ private cancelOwn;
5824
+ /** Ignores stale callbacks of a replaced utterance so a new one keeps `speaking` intact. */
5825
+ private finishUtterance;
5242
5826
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSpeak, never>;
5243
5827
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSpeak, "[cngxSpeak]", ["cngxSpeak"], { "text": { "alias": "cngxSpeak"; "required": true; "isSignal": true; }; "rate": { "alias": "rate"; "required": false; "isSignal": true; }; "pitch": { "alias": "pitch"; "required": false; "isSignal": true; }; "volume": { "alias": "volume"; "required": false; "isSignal": true; }; "lang": { "alias": "lang"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
5244
5828
  }
@@ -5370,7 +5954,8 @@ declare class CngxOption implements CngxAdItemHandle {
5370
5954
  readonly isSelected: Signal<boolean>;
5371
5955
  /**
5372
5956
  * Reactive visibility derived from the optional `CNGX_OPTION_FILTER_HOST`
5373
- * host's `searchTerm` and `matches` policy. `false` when no host is
5957
+ * host's `searchTerm` and `matches` policy (called with this option as the
5958
+ * fourth argument). `false` when no host is
5374
5959
  * provided or the term is empty; `true` only when the host's policy
5375
5960
  * explicitly rejects the option for the current term.
5376
5961
  *
@@ -5513,9 +6098,13 @@ interface CngxOptionFilterHost {
5513
6098
  readonly searchTerm: Signal<string>;
5514
6099
  /**
5515
6100
  * Decides whether the option is a match for the active term. Receives the
5516
- * option's value, its resolved plain-text label, and the current term.
6101
+ * option's value, its resolved plain-text label, the current term, and the
6102
+ * calling `CngxOption` instance. The option is a stable identity across
6103
+ * filter runs, so a host can key per-option caches (a folded label, a
6104
+ * stable `{ value, label }` record) on it; a host that only needs value and
6105
+ * label leaves the parameter out.
5517
6106
  */
5518
- matches<T>(value: T, label: string, term: string): boolean;
6107
+ matches<T>(value: T, label: string, term: string, option?: CngxOption): boolean;
5519
6108
  }
5520
6109
  /**
5521
6110
  * DI token a host provides on itself when it wants to drive per-option
@@ -5598,6 +6187,34 @@ declare const CNGX_OPTION_INTERACTION_HOST: InjectionToken<CngxOptionInteraction
5598
6187
  * @category common/interactive/listbox
5599
6188
  */
5600
6189
  type ListboxMatchFn = (option: ActiveDescendantItem, term: string) => boolean;
6190
+ /**
6191
+ * The default listbox matcher: an accent- and case-tolerant substring match
6192
+ * of `option.label` against the term in the locale `locale` holds, built on
6193
+ * {@link createLabelMatcher}. It accepts any object with a `label`, so the
6194
+ * same function serves as a `ListboxMatchFn` and as a select-family matcher
6195
+ * over stable option definitions. The option object is the cache key, so each
6196
+ * label is folded once per label text and locale; the cache is a `WeakMap`
6197
+ * owned by the returned function and never outlives the options. An empty
6198
+ * term matches every option.
6199
+ *
6200
+ * Reach for it when a component filters `ActiveDescendantItem`s and wants the
6201
+ * same match a `CngxListboxSearch` applies by default, e.g. as the last arm
6202
+ * of an `input() ?? config ?? default` cascade. Create it once per host in an
6203
+ * injection context (field initializer) so the cache lives as long as the host.
6204
+ *
6205
+ * ```typescript
6206
+ * private readonly labelMatch = createListboxLabelMatch(injectLocale());
6207
+ * protected readonly matchFn = computed(() => this.matchFnInput() ?? this.labelMatch);
6208
+ * ```
6209
+ *
6210
+ * @category common/interactive
6211
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox-search.directive.ts
6212
+ * @since 0.1.0
6213
+ * @relatedTo createLabelMatcher, CngxListboxSearch
6214
+ */
6215
+ declare function createListboxLabelMatch(locale: Signal<string>): (option: {
6216
+ readonly label: string;
6217
+ }, term: string) => boolean;
5601
6218
  /**
5602
6219
  * Search input for a `CngxListbox`.
5603
6220
  *
@@ -5615,13 +6232,16 @@ type ListboxMatchFn = (option: ActiveDescendantItem, term: string) => boolean;
5615
6232
  * <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
5616
6233
  */
5617
6234
  declare class CngxListboxSearch {
5618
- /** Custom matcher. Defaults to case-insensitive substring match on `label`. */
6235
+ /**
6236
+ * Custom matcher. Defaults to a substring match on `label` that ignores
6237
+ * case and accents in the app locale.
6238
+ */
5619
6239
  readonly matchFn: _angular_core.InputSignal<ListboxMatchFn>;
5620
6240
  private readonly search;
5621
6241
  /** Current debounced search term (proxied from CngxSearch). */
5622
- readonly term: _angular_core.Signal<string>;
6242
+ readonly term: Signal<string>;
5623
6243
  /** True when term is non-empty. */
5624
- readonly hasValue: _angular_core.Signal<boolean>;
6244
+ readonly hasValue: Signal<boolean>;
5625
6245
  /** Clears the input. */
5626
6246
  clear(): void;
5627
6247
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxListboxSearch, never>;
@@ -5661,7 +6281,7 @@ declare class CngxListboxSearch {
5661
6281
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox.directive.ts
5662
6282
  * @since 0.1.0
5663
6283
  * @relatedTo CngxListboxSearch, CngxListboxTrigger, CngxOption, CngxOptionGroup, CngxActiveDescendant
5664
- * @playground Two synced listboxes ./examples/synced-listboxes/synced-listboxes.component.ts
6284
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/base/synced-listboxes</example-url>
5665
6285
  * <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
5666
6286
  * <example-url>http://localhost:4200/#/common/interactive/listbox/trigger/select-dropdown</example-url>
5667
6287
  * <example-url>http://localhost:4200/#/common/interactive/listbox/base/multi-select</example-url>
@@ -5765,7 +6385,7 @@ declare class CngxListbox<T = unknown> {
5765
6385
  private hasOption;
5766
6386
  private handleActivation;
5767
6387
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxListbox<any>, never>;
5768
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxListbox<any>, "[cngxListbox]", ["cngxListbox"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "cngxSearchRef": { "alias": "cngxSearchRef"; "required": false; "isSignal": true; }; "externalActivation": { "alias": "externalActivation"; "required": false; "isSignal": true; }; "explicitOptions": { "alias": "explicitOptions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedValues": "selectedValuesChange"; }, ["contentOptions"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "items": "items"; "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; "virtualCount": "virtualCount"; "windowStart": "windowStart"; }; outputs: {}; }]>;
6388
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxListbox<any>, "[cngxListbox]", ["cngxListbox"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "cngxSearchRef": { "alias": "cngxSearchRef"; "required": false; "isSignal": true; }; "externalActivation": { "alias": "externalActivation"; "required": false; "isSignal": true; }; "explicitOptions": { "alias": "explicitOptions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedValues": "selectedValuesChange"; }, ["contentOptions"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "items": "items"; "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; "virtualCount": "virtualCount"; "windowStart": "windowStart"; }; outputs: { "activated": "activated"; }; }]>;
5769
6389
  }
5770
6390
 
5771
6391
  /**
@@ -5903,9 +6523,8 @@ interface CngxMenuSubmenuPopoverRef {
5903
6523
  readonly isVisible: () => boolean;
5904
6524
  show(): void;
5905
6525
  hide(): void;
5906
- readonly anchorElement: {
5907
- set(el: HTMLElement | null): void;
5908
- };
6526
+ /** Register the submenu parent item as the popover's anchor, or clear it. */
6527
+ setAnchorElement(el: HTMLElement | null): void;
5909
6528
  /** Popover unique id signal - composes the `anchor-name` CSS value. */
5910
6529
  readonly id: () => string;
5911
6530
  /** Popover host element - submenu hover listeners attach here. */
@@ -6014,7 +6633,7 @@ declare class CngxMenu implements CngxMenuHost {
6014
6633
  readonly ad: CngxActiveDescendant;
6015
6634
  private readonly elementRef;
6016
6635
  private readonly announcer;
6017
- private readonly menuConfig;
6636
+ private readonly ariaLabels;
6018
6637
  /** Internal registry backing {@link submenuItems}. */
6019
6638
  private readonly _submenuItems;
6020
6639
  /**
@@ -6073,11 +6692,8 @@ declare class CngxMenuItem<T = unknown> implements CngxAdItemHandle {
6073
6692
  readonly value: _angular_core.InputSignal<T | undefined>;
6074
6693
  readonly disabled: _angular_core.InputSignal<boolean>;
6075
6694
  readonly labelInput: _angular_core.InputSignal<string | undefined>;
6695
+ private readonly core;
6076
6696
  readonly id: string;
6077
- private readonly elementRef;
6078
- private readonly ad;
6079
- private readonly announcer;
6080
- private readonly menuConfig;
6081
6697
  readonly isHighlighted: _angular_core.Signal<boolean>;
6082
6698
  readonly label: () => string;
6083
6699
  protected handleClick(): void;
@@ -6208,7 +6824,7 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
6208
6824
  private readonly menuHost;
6209
6825
  private readonly wiring;
6210
6826
  private readonly announcer;
6211
- private readonly menuConfig;
6827
+ private readonly ariaLabels;
6212
6828
  private readonly destroyRef;
6213
6829
  private readonly ownId;
6214
6830
  /** Popover resolved from the input, else the DI wiring fallback. */
@@ -6314,11 +6930,8 @@ declare class CngxMenuItemCheckbox<T = unknown> implements CngxAdItemHandle {
6314
6930
  readonly disabled: _angular_core.InputSignal<boolean>;
6315
6931
  readonly labelInput: _angular_core.InputSignal<string | undefined>;
6316
6932
  readonly checked: _angular_core.ModelSignal<boolean>;
6933
+ private readonly core;
6317
6934
  readonly id: string;
6318
- private readonly elementRef;
6319
- private readonly ad;
6320
- private readonly announcer;
6321
- private readonly menuConfig;
6322
6935
  readonly isHighlighted: _angular_core.Signal<boolean>;
6323
6936
  readonly label: () => string;
6324
6937
  protected handleClick(): void;
@@ -6344,12 +6957,9 @@ declare class CngxMenuItemRadio<T = unknown> implements CngxAdItemHandle {
6344
6957
  readonly value: _angular_core.InputSignal<T>;
6345
6958
  readonly disabled: _angular_core.InputSignal<boolean>;
6346
6959
  readonly labelInput: _angular_core.InputSignal<string | undefined>;
6347
- readonly id: string;
6348
- private readonly elementRef;
6349
- private readonly ad;
6350
6960
  private readonly group;
6351
- private readonly announcer;
6352
- private readonly menuConfig;
6961
+ private readonly core;
6962
+ readonly id: string;
6353
6963
  readonly isHighlighted: _angular_core.Signal<boolean>;
6354
6964
  /** Whether this radio is the currently selected value in its group. */
6355
6965
  readonly checked: _angular_core.Signal<boolean>;
@@ -6583,6 +7193,12 @@ interface CngxMenuFocusStack {
6583
7193
  captureFocus(): void;
6584
7194
  /** Restore focus to the captured element after the close DOM settles. */
6585
7195
  restoreFocus(): void;
7196
+ /**
7197
+ * Drop the captured element without focusing it. For ownership handoffs
7198
+ * where another opener now owns focus and a restore would yank it away.
7199
+ * Optional so custom factory implementations stay assignable.
7200
+ */
7201
+ discardFocus?(): void;
6586
7202
  /** Escape: pop the innermost submenu, or hide the popover at the root. */
6587
7203
  handleEscape(event: KeyboardEvent): void;
6588
7204
  /** ArrowRight: open the active item's submenu when the policy allows. */
@@ -6731,17 +7347,13 @@ declare const CNGX_MENU_FOCUS_STACK_FACTORY: InjectionToken<CngxMenuFocusStackFa
6731
7347
 
6732
7348
  /**
6733
7349
  * Localised UI strings the menu announces or otherwise renders. English by
6734
- * default; consumers override via {@link withAriaLabels}.
7350
+ * default; consumers override via {@link withAriaLabels}. The same shape as
7351
+ * the menu section of a language pack, declared once as
7352
+ * {@link CngxMenuLanguageSection}.
6735
7353
  *
6736
7354
  * @category common/interactive/menu
6737
7355
  */
6738
- interface CngxMenuAriaLabels {
6739
- readonly submenuOpened: string;
6740
- readonly submenuClosed: string;
6741
- readonly itemActivated: string;
6742
- readonly itemDisabled: string;
6743
- readonly menuDismissed: string;
6744
- }
7356
+ type CngxMenuAriaLabels = CngxMenuLanguageSection;
6745
7357
  /**
6746
7358
  * Resolved configuration consumed by every menu directive in the family.
6747
7359
  * Default values live in {@link DEFAULT_MENU_CONFIG}; override at app
@@ -6751,7 +7363,7 @@ interface CngxMenuAriaLabels {
6751
7363
  * @category common/interactive/menu
6752
7364
  */
6753
7365
  interface CngxMenuConfig {
6754
- readonly ariaLabels: CngxMenuAriaLabels;
7366
+ readonly ariaLabels: CngxMenuAriaLabels | Signal<CngxMenuAriaLabels>;
6755
7367
  readonly typeaheadDebounce: number;
6756
7368
  /** Hover dwell (ms) before a hovered submenu parent opens. Default `0`. */
6757
7369
  readonly submenuOpenDelay: number;
@@ -6800,18 +7412,18 @@ type CngxMenuConfigFeature = ((config: CngxMenuConfig) => CngxMenuConfig) & {
6800
7412
  readonly _target?: 'config';
6801
7413
  };
6802
7414
  /**
6803
- * Library-default menu configuration. **English-only** - German (or any
6804
- * other locale) is consumer-supplied via `withAriaLabels` per the
6805
- * `feedback_en_default_locale` rule.
7415
+ * Library-default menu configuration with the English labels. The token's
7416
+ * default reads `ariaLabels` from the menu section of the active language
7417
+ * pack instead; `withAriaLabels` overrides single labels on top.
6806
7418
  *
6807
7419
  * @category common/interactive/menu
6808
7420
  */
6809
7421
  declare const DEFAULT_MENU_CONFIG: CngxMenuConfig;
6810
7422
  /**
6811
7423
  * DI token carrying the resolved {@link CngxMenuConfig}. Defaults to
6812
- * {@link DEFAULT_MENU_CONFIG} at root; override via {@link provideMenuConfig}
6813
- * (app-wide) or {@link provideMenuConfigAt} (component scope via
6814
- * `viewProviders`).
7424
+ * {@link DEFAULT_MENU_CONFIG} with the language pack's labels at root;
7425
+ * override via {@link provideMenuConfig} (app-wide) or
7426
+ * {@link provideMenuConfigAt} (component scope via `viewProviders`).
6815
7427
  *
6816
7428
  * @category common/interactive/menu
6817
7429
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-config.ts
@@ -6859,7 +7471,7 @@ declare function injectMenuConfig(): CngxMenuConfig;
6859
7471
  *
6860
7472
  * @category common/interactive/menu
6861
7473
  */
6862
- declare function withAriaLabels(partial: Partial<CngxMenuAriaLabels>): CngxMenuConfigFeature;
7474
+ declare function withAriaLabels(partial: Partial<CngxMenuAriaLabels> | Signal<Partial<CngxMenuAriaLabels>>): CngxMenuConfigFeature;
6863
7475
  /**
6864
7476
  * Override the typeahead debounce window (milliseconds) for menu
6865
7477
  * navigation. Default: `300`.
@@ -7249,9 +7861,8 @@ declare function injectMenuAnnouncer(): CngxMenuAnnouncerLike;
7249
7861
  */
7250
7862
  interface CngxContextMenuTriggerPopoverRef extends CngxMenuDismissPopoverRef {
7251
7863
  show(): void;
7252
- readonly anchorElement: {
7253
- set(el: HTMLElement | null): void;
7254
- };
7864
+ /** Register the virtual pointer-coordinate anchor, or clear it. */
7865
+ setAnchorElement(el: HTMLElement | null): void;
7255
7866
  /**
7256
7867
  * Popover unique id signal - used to compose the `anchor-name` CSS value
7257
7868
  * the browser's CSS Anchor Positioning expects on the anchor element.
@@ -7313,6 +7924,14 @@ interface CngxContextMenuTriggerCoreDeps {
7313
7924
  * right-click-always-opens behaviour.
7314
7925
  */
7315
7926
  readonly resolveOpen?: (event: MouseEvent) => CngxContextMenuOpenDecision;
7927
+ /**
7928
+ * Veto/datum seam for the keyboard open gesture (`Shift+F10`). Evaluated
7929
+ * before `preventDefault()`, mirroring {@link resolveOpen}; the resolved
7930
+ * context goes through {@link commitContext} exactly like a pointer open,
7931
+ * so a keyboard open never serves a stale datum from an earlier
7932
+ * right-click. Defaults to always-open with `undefined` context.
7933
+ */
7934
+ readonly resolveKeyboardOpen?: (event: KeyboardEvent) => CngxContextMenuOpenDecision;
7316
7935
  /** Receives the resolved context on a successful open. No-op by default. */
7317
7936
  readonly commitContext?: (context: unknown) => void;
7318
7937
  }
@@ -7361,6 +7980,14 @@ interface CngxContextMenuTriggerCore {
7361
7980
  noteActiveSubmenuOpened(): void;
7362
7981
  /** Drive from the directive's `isOpen` effect (inside `untracked`). */
7363
7982
  syncOpenState(open: boolean): void;
7983
+ /**
7984
+ * Relinquish an open WITHOUT restoring focus: detach the dismiss binding,
7985
+ * clear the submenu stack, and discard the saved pre-open focus. For the
7986
+ * shared-panel handoff - when a sibling trigger claims the still-visible
7987
+ * panel, the losing core must stand down silently; a `syncOpenState(false)`
7988
+ * would yank focus out of the menu the new owner just opened.
7989
+ */
7990
+ standDown(): void;
7364
7991
  /** Teardown - call from the directive's `DestroyRef.onDestroy`. */
7365
7992
  destroy(): void;
7366
7993
  }
@@ -7394,7 +8021,7 @@ declare function createContextMenuTriggerCore(deps: CngxContextMenuTriggerCoreDe
7394
8021
  * the always-open, always-`preventDefault` behaviour.
7395
8022
  *
7396
8023
  * Anchoring uses a transient zero-size DOM element positioned at the
7397
- * pointer coords, set on the popover's `anchorElement` signal - virtual
8024
+ * pointer coords, installed via the popover's `setAnchorElement` - virtual
7398
8025
  * `getBoundingClientRect` objects are not yet supported as anchors, so
7399
8026
  * the transient div is the workaround.
7400
8027
  *
@@ -7544,6 +8171,7 @@ declare class CngxMenuTrigger {
7544
8171
  private readonly direction;
7545
8172
  private readonly hostElRef;
7546
8173
  private readonly menuConfig;
8174
+ private readonly ariaLabels;
7547
8175
  private readonly announcer;
7548
8176
  /**
7549
8177
  * Submenu focus-stack model - the active submenu chain, the saved-focus
@@ -7908,16 +8536,18 @@ declare class CngxErrorAggregator implements CngxErrorAggregatorContract {
7908
8536
  * test harnesses) can inspect or drive form-error state without traversing
7909
8537
  * the DOM. Directives with `cngxErrorScopeName` / `cngxErrorAggregatorName`
7910
8538
  * inputs auto-register here when the registry is provided in the host
7911
- * environment (via {@link provideErrorRegistry}, ships in commit 3).
8539
+ * environment via {@link provideErrorRegistry}.
7912
8540
  *
7913
8541
  * Not `providedIn: 'root'` - consumers opt in by including
7914
8542
  * `provideErrorRegistry()` in their `bootstrapApplication` providers. When
7915
8543
  * the registry is absent, the directives skip registration and keep their
7916
8544
  * pure DOM behaviour.
7917
8545
  *
7918
- * @internal Staged API - single-consumer.
7919
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7920
- * and collapse plan.
8546
+ * @category common/interactive/error
8547
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/error-registry.ts
8548
+ * @since 0.1.0
8549
+ * @relatedTo CngxErrorScope, CngxErrorAggregator, CngxErrorSource
8550
+ * <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
7921
8551
  */
7922
8552
  declare class CngxErrorRegistry {
7923
8553
  private readonly scopesState;
@@ -7951,8 +8581,12 @@ declare class CngxErrorRegistry {
7951
8581
  * value.
7952
8582
  */
7953
8583
  registerScope(name: string, scope: CngxErrorScopeContract): void;
7954
- /** Removes the named scope. No-op if absent. */
7955
- unregisterScope(name: string): void;
8584
+ /**
8585
+ * Removes the named scope, but only when `scope` is the stored instance.
8586
+ * No-op if absent or if a different instance holds the name - a late
8587
+ * destroy of a swap-absorbed duplicate must not evict the live winner.
8588
+ */
8589
+ unregisterScope(name: string, scope: CngxErrorScopeContract): void;
7956
8590
  /** Returns the named scope, or `undefined` when not registered. */
7957
8591
  getScope(name: string): CngxErrorScopeContract | undefined;
7958
8592
  /**
@@ -7967,8 +8601,12 @@ declare class CngxErrorRegistry {
7967
8601
  * for a true swap.
7968
8602
  */
7969
8603
  registerAggregator(name: string, aggregator: CngxErrorAggregatorContract): void;
7970
- /** Removes the named aggregator. No-op if absent. */
7971
- unregisterAggregator(name: string): void;
8604
+ /**
8605
+ * Removes the named aggregator, but only when `aggregator` is the stored
8606
+ * instance. No-op if absent or if a different instance holds the name - a
8607
+ * late destroy of a swap-absorbed duplicate must not evict the live winner.
8608
+ */
8609
+ unregisterAggregator(name: string, aggregator: CngxErrorAggregatorContract): void;
7972
8610
  /** Returns the named aggregator, or `undefined` when not registered. */
7973
8611
  getAggregator(name: string): CngxErrorAggregatorContract | undefined;
7974
8612
  /** Reveals the named scope. Idempotent; no-op if name not registered. */
@@ -7996,9 +8634,11 @@ declare class CngxErrorRegistry {
7996
8634
  * Must be called in an injection context (constructor, factory provider,
7997
8635
  * `runInInjectionContext`).
7998
8636
  *
7999
- * @internal Staged API - single-consumer.
8000
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8001
- * and collapse plan.
8637
+ * @category common/interactive/error
8638
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/inject-error-scope.ts
8639
+ * @since 0.1.0
8640
+ * @relatedTo CngxErrorScope
8641
+ * <example-url>http://localhost:4200/#/common/interactive/error/registry/inject-error-scope-programmatic</example-url>
8002
8642
  */
8003
8643
  declare function injectErrorScope(name?: string): CngxErrorScopeContract;
8004
8644
 
@@ -8028,25 +8668,30 @@ declare function injectErrorScope(name?: string): CngxErrorScopeContract;
8028
8668
  * ({@link `@cngx/common/interactive`#CngxErrorAggregator}) and the
8029
8669
  * function form share a single source of truth.
8030
8670
  *
8031
- * @internal Staged API - single-consumer.
8032
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8033
- * and collapse plan.
8671
+ * @category common/interactive/error
8672
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/inject-error-aggregator.ts
8673
+ * @since 0.1.0
8674
+ * @relatedTo CngxErrorAggregator
8675
+ * <example-url>http://localhost:4200/#/common/interactive/error/registry/inject-error-aggregator-programmatic</example-url>
8034
8676
  */
8035
8677
  declare function injectErrorAggregator(name?: string, sources?: Record<string, Signal<boolean>>, scope?: CngxErrorScopeContract, labels?: Record<string, string>): CngxErrorAggregatorContract;
8036
8678
 
8037
8679
  /**
8038
- * @internal Staged API - single-consumer.
8039
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8040
- * and collapse plan.
8680
+ * Feature-composition accumulator for {@link provideErrorRegistry}.
8681
+ *
8682
+ * @internal
8041
8683
  */
8042
8684
  interface _ErrorRegistryConfig {
8043
8685
  revealOnSubmit?: boolean;
8044
8686
  revealOnNavigate?: boolean;
8045
8687
  }
8046
8688
  /**
8047
- * @internal Staged API - single-consumer.
8048
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8049
- * and collapse plan.
8689
+ * A feature configuration function accepted by {@link provideErrorRegistry},
8690
+ * returned by the `with*` helpers. Mirrors the `NavConfigFeature` shape.
8691
+ *
8692
+ * @category common/interactive/error
8693
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
8694
+ * @since 0.1.0
8050
8695
  */
8051
8696
  interface ErrorRegistryFeature {
8052
8697
  /** @internal */
@@ -8071,9 +8716,11 @@ interface ErrorRegistryFeature {
8071
8716
  * });
8072
8717
  * ```
8073
8718
  *
8074
- * @internal Staged API - single-consumer.
8075
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8076
- * and collapse plan.
8719
+ * @category common/interactive/error
8720
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
8721
+ * @since 0.1.0
8722
+ * @relatedTo CngxErrorScope, CngxErrorAggregator
8723
+ * <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
8077
8724
  */
8078
8725
  declare function provideErrorRegistry(...features: ErrorRegistryFeature[]): EnvironmentProviders;
8079
8726
  /**
@@ -8091,9 +8738,10 @@ declare function provideErrorRegistry(...features: ErrorRegistryFeature[]): Envi
8091
8738
  * instead - the scope-name registration path stays available without
8092
8739
  * the global listener.
8093
8740
  *
8094
- * @internal Staged API - single-consumer.
8095
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8096
- * and collapse plan.
8741
+ * @category common/interactive/error
8742
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
8743
+ * @since 0.1.0
8744
+ * <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
8097
8745
  */
8098
8746
  declare function withGlobalRevealOnSubmit(): ErrorRegistryFeature;
8099
8747
  /**
@@ -8109,11 +8757,12 @@ declare function withGlobalRevealOnSubmit(): ErrorRegistryFeature;
8109
8757
  * the common pattern (reveal-all on attempted navigation) but surface
8110
8758
  * the implication when wiring a guard that cancels based on form errors.
8111
8759
  *
8112
- * @internal Staged API - single-consumer.
8113
- * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
8114
- * and collapse plan.
8760
+ * @category common/interactive/error
8761
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-registry/provide-error-registry.ts
8762
+ * @since 0.1.0
8763
+ * <example-url>http://localhost:4200/#/common/interactive/error/registry/provider-and-reveal-features</example-url>
8115
8764
  */
8116
8765
  declare function withRevealOnNavigate(): ErrorRegistryFeature;
8117
8766
 
8118
- export { CNGX_ACCORDION, CNGX_BREADCRUMB, CNGX_BREADCRUMB_COLLAPSE_STRATEGY, CNGX_BUTTON_MULTI_TOGGLE_GROUP, CNGX_BUTTON_TOGGLE_GROUP, CNGX_CHIP_GROUP_HOST, CNGX_CHIP_STRIP_ROVING_FACTORY, CNGX_CLOSE_ICON, CNGX_CONTROL_VALUE, CNGX_ERROR_AGGREGATOR, CNGX_ERROR_SCOPE, CNGX_HIERARCHICAL_NAV_STRATEGY, CNGX_HOVER_INTENT_DEFAULTS, CNGX_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_FOCUS_STACK_FACTORY, CNGX_MENU_HOST, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_MENU_SUBMENU_WIRING, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_SLIDER_RANGE, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAccordion, CngxAccordionPanel, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, CngxHoverIntent, CngxHoverable, CngxKeyboardShortcut, CngxListbox, CngxListboxSearch, CngxListboxTrigger, CngxLongPress, CngxMenu, CngxMenuAnnouncer, CngxMenuGroup, CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemIcon, CngxMenuItemKbd, CngxMenuItemLabel, CngxMenuItemRadio, CngxMenuItemSubmenu, CngxMenuItemSuffix, CngxMenuSeparator, CngxMenuTrigger, CngxMultiChipGroup, CngxNavBadge, CngxNavGroup, CngxNavGroupRegistry, CngxNavLabel, CngxNavLink, CngxOption, CngxOptionGroup, CngxPending, CngxPressRipple, CngxPressable, CngxRadio, CngxRadioGroup, CngxRangeSlider, CngxRangeSliderTrack, CngxReorder, CngxRipple, CngxSearch, CngxSlider, CngxSliderThumb, CngxSliderTrack, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle, DEFAULT_BREADCRUMB_WIDTH_TIERS, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, connectSubmenuHoverToFocusStack, createAccordionKeyboardNav, createBreadcrumbCollapse, createChipStripRoving, createContextMenuTriggerCore, createMenuAnnouncer, createMenuDismissHandler, createMenuFocusStack, createMenuRadioController, createMenuTriggerDismissBinding, createSliderCore, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectMenuAnnouncer, injectMenuConfig, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideTreeConfig, provideTreeConfigAt, reflectAsyncDisplayStatus, resolveBreadcrumbTier, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withDismissOnBlur, withDismissOnOutsideClick, withDismissOnScroll, withGlobalRevealOnSubmit, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
8119
- export type { AsyncAction, CngxAccordionHeaderHandle, CngxAccordionHost, CngxAccordionKeyboardNav, CngxAccordionKeyboardNavHost, CngxAccordionKeyboardNavOptions, CngxAsyncDisplayStatus, CngxBreadcrumbCollapseStrategy, CngxBreadcrumbHost, CngxBreadcrumbWidthTier, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxContextMenuOpenDecision, CngxContextMenuTriggerCore, CngxContextMenuTriggerCoreDeps, CngxContextMenuTriggerPopoverRef, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxHoverIntentDefaults, CngxMenuAnnouncerFactory, CngxMenuAnnouncerLike, CngxMenuAriaLabels, CngxMenuConfig, CngxMenuConfigFeature, CngxMenuDismissHandler, CngxMenuDismissHandlerFactory, CngxMenuDismissHandlerOptions, CngxMenuDismissPopoverRef, CngxMenuDismissSource, CngxMenuFeature, CngxMenuFocusStack, CngxMenuFocusStackDeps, CngxMenuFocusStackFactory, CngxMenuFocusStackPopoverRef, CngxMenuHost, CngxMenuNavAction, CngxMenuNavContext, CngxMenuNavStrategy, CngxMenuRadioGroup, CngxMenuRadioGroupFactory, CngxMenuSubmenuLike, CngxMenuSubmenuPopoverRef, CngxMenuSubmenuWiring, CngxMenuTriggerDismissBinding, CngxMenuTriggerDismissBindingOptions, CngxNavConfig, CngxOptionContainer, CngxOptionContainerGroup, CngxOptionContainerOption, CngxOptionFilterHost, CngxOptionInteractionHost, CngxOptionStatus, CngxOptionStatusHost, CngxRadioGroupContract, CngxRadioRegistration, CngxReorderEvent, CngxReorderModifier, CngxSliderCore, CngxSliderCoreOptions, CngxSliderRangeHost, CngxSliderThumbBounds, CngxSliderThumbPosition, CngxSubmenuHoverRoutingDeps, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeAxis, SwipeDirection };
8767
+ export { CNGX_ACCORDION, CNGX_BREADCRUMB, CNGX_BREADCRUMB_COLLAPSE_STRATEGY, CNGX_BUTTON_MULTI_TOGGLE_GROUP, CNGX_BUTTON_TOGGLE_GROUP, CNGX_CHIP_GROUP_HOST, CNGX_CHIP_STRIP_ROVING_FACTORY, CNGX_CLOSE_ICON, CNGX_CONTROL_VALUE, CNGX_ERROR_AGGREGATOR, CNGX_ERROR_SCOPE, CNGX_HIERARCHICAL_NAV_STRATEGY, CNGX_HOVER_INTENT_DEFAULTS, CNGX_INTERACTIVE_I18N, CNGX_INTERACTIVE_LANGUAGE_EN, CNGX_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_FOCUS_STACK_FACTORY, CNGX_MENU_HOST, CNGX_MENU_LANGUAGE_EN, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_MENU_SUBMENU_WIRING, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_SLIDER_RANGE, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAccordion, CngxAccordionPanel, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, CngxHoverIntent, CngxHoverable, CngxKeyboardShortcut, CngxListbox, CngxListboxSearch, CngxListboxTrigger, CngxLongPress, CngxMenu, CngxMenuAnnouncer, CngxMenuGroup, CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemIcon, CngxMenuItemKbd, CngxMenuItemLabel, CngxMenuItemRadio, CngxMenuItemSubmenu, CngxMenuItemSuffix, CngxMenuSeparator, CngxMenuTrigger, CngxMultiChipGroup, CngxNavBadge, CngxNavGroup, CngxNavGroupRegistry, CngxNavLabel, CngxNavLink, CngxOption, CngxOptionGroup, CngxPending, CngxPressRipple, CngxPressable, CngxRadio, CngxRadioGroup, CngxRangeSlider, CngxRangeSliderTrack, CngxReorder, CngxRipple, CngxSearch, CngxSlider, CngxSliderThumb, CngxSliderTrack, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, connectSubmenuHoverToFocusStack, createAccordionKeyboardNav, createBreadcrumbCollapse, createChipStripRoving, createContextMenuTriggerCore, createListboxLabelMatch, createMenuAnnouncer, createMenuDismissHandler, createMenuFocusStack, createMenuRadioController, createMenuTriggerDismissBinding, createOptimistic, createRetry, createSliderCore, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectInteractiveGroupHost, injectInteractiveI18n, injectMenuAnnouncer, injectMenuConfig, injectMenuItemCore, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideInteractiveI18n, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideNavConfigAt, provideTreeConfig, provideTreeConfigAt, reflectAsyncDisplayStatus, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withDismissOnBlur, withDismissOnOutsideClick, withDismissOnScroll, withGlobalRevealOnSubmit, withInteractiveI18nLabels, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
8768
+ export type { AsyncAction, CngxAccordionHeaderHandle, CngxAccordionHost, CngxAccordionKeyboardNav, CngxAccordionKeyboardNavHost, CngxAccordionKeyboardNavOptions, CngxAsyncDisplayStatus, CngxBreadcrumbCollapseStrategy, CngxBreadcrumbHost, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxContextMenuOpenDecision, CngxContextMenuTriggerCore, CngxContextMenuTriggerCoreDeps, CngxContextMenuTriggerPopoverRef, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxHoverIntentDefaults, CngxInteractiveGroupHost, CngxInteractiveGroupHostOptions, CngxInteractiveI18n, CngxInteractiveI18nFeature, CngxInteractiveLanguageSection, CngxMenuAnnouncerFactory, CngxMenuAnnouncerLike, CngxMenuAriaLabels, CngxMenuConfig, CngxMenuConfigFeature, CngxMenuDismissHandler, CngxMenuDismissHandlerFactory, CngxMenuDismissHandlerOptions, CngxMenuDismissPopoverRef, CngxMenuDismissSource, CngxMenuFeature, CngxMenuFocusStack, CngxMenuFocusStackDeps, CngxMenuFocusStackFactory, CngxMenuFocusStackPopoverRef, CngxMenuHost, CngxMenuItemCore, CngxMenuItemCoreOptions, CngxMenuLanguageSection, CngxMenuNavAction, CngxMenuNavContext, CngxMenuNavStrategy, CngxMenuRadioGroup, CngxMenuRadioGroupFactory, CngxMenuSubmenuLike, CngxMenuSubmenuPopoverRef, CngxMenuSubmenuWiring, CngxMenuTriggerDismissBinding, CngxMenuTriggerDismissBindingOptions, CngxNavConfig, CngxOptionContainer, CngxOptionContainerGroup, CngxOptionContainerOption, CngxOptionFilterHost, CngxOptionInteractionHost, CngxOptionStatus, CngxOptionStatusHost, CngxRadioGroupContract, CngxRadioRegistration, CngxReorderEvent, CngxReorderModifier, CngxSliderCore, CngxSliderCoreOptions, CngxSliderRangeHost, CngxSliderThumbBounds, CngxSliderThumbPosition, CngxSubmenuHoverRoutingDeps, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeAxis, SwipeDirection };