@cngx/common 0.0.1-rc.0 → 0.1.0-rc.0

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 (61) hide show
  1. package/a11y/README.md +13 -16
  2. package/card/README.md +2 -21
  3. package/chart/README.md +5 -8
  4. package/data/README.md +45 -47
  5. package/dialog/README.md +12 -15
  6. package/display/README.md +5 -9
  7. package/fesm2022/cngx-common-a11y.mjs +140 -40
  8. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  9. package/fesm2022/cngx-common-card.mjs +157 -69
  10. package/fesm2022/cngx-common-card.mjs.map +1 -1
  11. package/fesm2022/cngx-common-chart.mjs +389 -92
  12. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  13. package/fesm2022/cngx-common-data.mjs +311 -151
  14. package/fesm2022/cngx-common-data.mjs.map +1 -1
  15. package/fesm2022/cngx-common-dialog.mjs +167 -29
  16. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  17. package/fesm2022/cngx-common-display.mjs +445 -110
  18. package/fesm2022/cngx-common-display.mjs.map +1 -1
  19. package/fesm2022/cngx-common-interactive.mjs +2025 -435
  20. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  21. package/fesm2022/cngx-common-layout.mjs +188 -31
  22. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  23. package/fesm2022/cngx-common-popover.mjs +711 -90
  24. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  25. package/fesm2022/cngx-common-stepper.mjs +1258 -60
  26. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  27. package/fesm2022/cngx-common-tabs.mjs +247 -41
  28. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  29. package/fesm2022/cngx-common.mjs +2 -2
  30. package/fesm2022/cngx-common.mjs.map +1 -1
  31. package/interactive/README.md +5 -5
  32. package/layout/README.md +2 -2
  33. package/package.json +5 -4
  34. package/popover/README.md +8 -34
  35. package/stepper/README.md +49 -8
  36. package/tabs/README.md +6 -6
  37. package/theming/components/cngx-async.css +74 -0
  38. package/theming/components/cngx-backdrop.css +73 -0
  39. package/theming/components/cngx-badge.css +340 -0
  40. package/theming/components/cngx-bottom-sheet.css +201 -0
  41. package/theming/components/cngx-button-toggle.css +99 -0
  42. package/theming/components/cngx-dialog.css +358 -0
  43. package/theming/components/cngx-divider.css +145 -0
  44. package/theming/components/cngx-listbox.css +220 -0
  45. package/theming/components/cngx-menu.css +371 -0
  46. package/theming/components/cngx-ripple.css +116 -0
  47. package/theming/components/cngx-tooltip.css +265 -0
  48. package/theming/system-tokens.css +24 -0
  49. package/types/cngx-common-a11y.d.ts +136 -36
  50. package/types/cngx-common-card.d.ts +137 -22
  51. package/types/cngx-common-chart.d.ts +337 -40
  52. package/types/cngx-common-data.d.ts +277 -45
  53. package/types/cngx-common-dialog.d.ts +162 -22
  54. package/types/cngx-common-display.d.ts +422 -78
  55. package/types/cngx-common-interactive.d.ts +1862 -305
  56. package/types/cngx-common-layout.d.ts +191 -28
  57. package/types/cngx-common-popover.d.ts +632 -87
  58. package/types/cngx-common-stepper.d.ts +1110 -38
  59. package/types/cngx-common-tabs.d.ts +306 -32
  60. package/types/cngx-common.d.ts +1 -1
  61. package/README.md +0 -18
@@ -7,8 +7,13 @@ import { CngxFormFieldControl } from '@cngx/core/tokens';
7
7
  import * as i1 from '@cngx/common/a11y';
8
8
  import { ActiveDescendantItem, CngxActiveDescendant, CngxAdItemHandle } from '@cngx/common/a11y';
9
9
  import { FlatTreeNode, CngxTreeNode } from '@cngx/utils';
10
+ import * as _cngx_common_interactive from '@cngx/common/interactive';
10
11
 
11
- /** Action function that returns a Promise or Observable. */
12
+ /**
13
+ * Action function that returns a Promise or Observable.
14
+ *
15
+ * @category common/interactive
16
+ */
12
17
  type AsyncAction = () => Promise<unknown> | Observable<unknown>;
13
18
  /**
14
19
  * Async action handler with loading state, auto-disable, and success/error feedback.
@@ -42,6 +47,15 @@ type AsyncAction = () => Promise<unknown> | Observable<unknown>;
42
47
  * ```html
43
48
  * <a role="button" [cngxAsyncClick]="navigate" #btn="cngxAsyncClick">Go</a>
44
49
  * ```
50
+ *
51
+ * @category common/interactive
52
+ * @docsKind primary
53
+ * @wcag AA
54
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/async-click/async-click.directive.ts
55
+ * @since 0.1.0
56
+ * @relatedTo CngxPending, CngxSucceeded, CngxFailed, CngxActionButton
57
+ * <example-url>http://localhost:4200/#/common/interactive/retry/optimistic-instant-like-toggle</example-url>
58
+ * <example-url>http://localhost:4200/#/common/interactive/retry/withretry-cngxasyncclick</example-url>
45
59
  */
46
60
  declare class CngxAsyncClick {
47
61
  private readonly el;
@@ -73,15 +87,15 @@ declare class CngxAsyncClick {
73
87
  readonly failed: Signal<boolean>;
74
88
  /** The error value from a failed action. Cleared on reset. */
75
89
  readonly error: Signal<unknown>;
76
- /** Current lifecycle status — use in `@switch` for template branching. */
90
+ /** Current lifecycle status - use in `@switch` for template branching. */
77
91
  readonly status: Signal<AsyncStatus>;
78
- /** Screen reader announcement for the current state — bind to an `aria-live` region. */
92
+ /** Screen reader announcement for the current state - bind to an `aria-live` region. */
79
93
  readonly announcement: Signal<string>;
80
94
  /**
81
95
  * Full `CngxAsyncState` view of this directive's lifecycle.
82
96
  *
83
97
  * Bind to any state consumer (`[state]="btn.state"`) to connect the
84
- * feedback system — toasts, alerts, skeletons, async containers.
98
+ * feedback system - toasts, alerts, skeletons, async containers.
85
99
  */
86
100
  readonly state: CngxAsyncState<unknown>;
87
101
  /** @internal */
@@ -103,6 +117,15 @@ declare class CngxAsyncClick {
103
117
  * ```html
104
118
  * <ng-template cngxPending>Saving...</ng-template>
105
119
  * ```
120
+ *
121
+ * @category common/interactive
122
+ * @wcag AA
123
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/async-click/async-status-templates.ts
124
+ * @since 0.1.0
125
+ * @relatedTo CngxSucceeded, CngxFailed, CngxAsyncClick
126
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/random-outcome</example-url>
127
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/string-labels</example-url>
128
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/template-slots</example-url>
106
129
  */
107
130
  declare class CngxPending {
108
131
  readonly templateRef: TemplateRef<any>;
@@ -115,6 +138,15 @@ declare class CngxPending {
115
138
  * ```html
116
139
  * <ng-template cngxSucceeded>Saved!</ng-template>
117
140
  * ```
141
+ *
142
+ * @category common/interactive
143
+ * @wcag AA
144
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/async-click/async-status-templates.ts
145
+ * @since 0.1.0
146
+ * @relatedTo CngxPending, CngxFailed, CngxAsyncClick
147
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/random-outcome</example-url>
148
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/string-labels</example-url>
149
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/template-slots</example-url>
118
150
  */
119
151
  declare class CngxSucceeded {
120
152
  readonly templateRef: TemplateRef<any>;
@@ -128,6 +160,15 @@ declare class CngxSucceeded {
128
160
  * ```html
129
161
  * <ng-template cngxFailed let-err>Failed: {{ err }}</ng-template>
130
162
  * ```
163
+ *
164
+ * @category common/interactive
165
+ * @wcag AA
166
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/async-click/async-status-templates.ts
167
+ * @since 0.1.0
168
+ * @relatedTo CngxPending, CngxSucceeded, CngxAsyncClick
169
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/random-outcome</example-url>
170
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/string-labels</example-url>
171
+ * <example-url>http://localhost:4200/#/ui/action-button/async-button/template-slots</example-url>
131
172
  */
132
173
  declare class CngxFailed {
133
174
  readonly templateRef: TemplateRef<any>;
@@ -136,7 +177,82 @@ declare class CngxFailed {
136
177
  }
137
178
 
138
179
  /**
139
- * Clipboard copy behavior — forms-free version for `@cngx/common`.
180
+ * Display bucket a reflector collapses an {@link CngxAsyncState} into.
181
+ * The `loading` / `refreshing` busy variants fold into `pending` for the
182
+ * visible status, while `isBusy` carries the full busy set for ARIA.
183
+ *
184
+ * @category common/interactive
185
+ */
186
+ type CngxAsyncDisplayStatus = 'idle' | 'pending' | 'success' | 'error';
187
+ /**
188
+ * Single source for collapsing a {@link CngxAsyncState} into its display
189
+ * bucket. Owned by the {@link CngxAsyncStatus} reflector so every consumer
190
+ * (the reflector directive, `CngxActionButton`'s `[externalState]` branch)
191
+ * maps an externally-owned state the same way - one reflection code path.
192
+ *
193
+ * @category common/interactive
194
+ */
195
+ declare function reflectAsyncDisplayStatus(state: CngxAsyncState<unknown> | null | undefined): CngxAsyncDisplayStatus;
196
+ /**
197
+ * Reflects an externally-owned {@link CngxAsyncState} onto its host -
198
+ * the read-only sibling of `CngxAsyncClick`. Where `CngxAsyncClick`
199
+ * *runs* an action and owns its own lifecycle, `CngxAsyncStatus` *reads*
200
+ * a state someone else produces (a presenter's `commitState`, a resource)
201
+ * and surfaces it as `aria-busy`, an optional disabled gate, and the
202
+ * pending / succeeded / failed slot markers.
203
+ *
204
+ * One responsibility - reflection - kept distinct from running an action
205
+ * (Pillar 3). `aria-busy` lives in the `computed()` graph (Pillar 2) and
206
+ * is owned here exclusively: never co-place this with `CngxAsyncClick` on
207
+ * the same element, since both bind `aria-busy` (dev mode warns).
208
+ *
209
+ * ```html
210
+ * <button [cngxAsyncStatus]="presenter.commitState" disableWhilePending>
211
+ * Continue
212
+ * <ng-template cngxPending>Saving…</ng-template>
213
+ * </button>
214
+ * ```
215
+ *
216
+ * @category common/interactive
217
+ * @docsKind primary
218
+ * @wcag AA
219
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/async-status/async-status.directive.ts
220
+ * @since 0.1.0
221
+ * @relatedTo CngxAsyncClick, CngxPending, CngxSucceeded, CngxFailed
222
+ */
223
+ declare class CngxAsyncStatus {
224
+ private readonly coPlacedAsyncClick;
225
+ constructor();
226
+ /** The externally-owned state to reflect. `null` reflects as idle. */
227
+ readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | null>;
228
+ /** When `true`, the host reflects `aria-disabled` / `disabled` while busy. */
229
+ readonly disableWhilePending: _angular_core.InputSignal<boolean>;
230
+ /** Display bucket of the reflected state (`loading`/`refreshing` → `pending`). */
231
+ readonly status: Signal<CngxAsyncDisplayStatus>;
232
+ /** `true` while the reflected state is busy (`loading` | `pending` | `refreshing`). */
233
+ readonly isBusy: Signal<boolean>;
234
+ /** The reflected error value, or `undefined`. */
235
+ readonly error: Signal<unknown>;
236
+ /** @internal */
237
+ protected readonly pendingTpl: Signal<CngxPending | undefined>;
238
+ /** @internal */
239
+ protected readonly succeededTpl: Signal<CngxSucceeded | undefined>;
240
+ /** @internal */
241
+ protected readonly failedTpl: Signal<CngxFailed | undefined>;
242
+ /**
243
+ * The projected slot marker matching the current display bucket, or
244
+ * `null` when none is projected. Bind via
245
+ * `*ngTemplateOutlet="status.activeTemplate()"`.
246
+ */
247
+ readonly activeTemplate: Signal<TemplateRef<unknown> | null>;
248
+ /** @internal - `''` (set) while gated-and-busy, else `null` (absent). */
249
+ protected readonly disabledAttr: Signal<"" | null>;
250
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAsyncStatus, never>;
251
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxAsyncStatus, "[cngxAsyncStatus]", ["cngxAsyncStatus"], { "state": { "alias": "cngxAsyncStatus"; "required": false; "isSignal": true; }; "disableWhilePending": { "alias": "disableWhilePending"; "required": false; "isSignal": true; }; }, {}, ["pendingTpl", "succeededTpl", "failedTpl"], never, true, never>;
252
+ }
253
+
254
+ /**
255
+ * Clipboard copy behavior - forms-free version for `@cngx/common`.
140
256
  *
141
257
  * Place on a button or any clickable element. Copies the provided text to the
142
258
  * clipboard. Shows a `copied` signal for visual feedback (auto-resets after
@@ -161,6 +277,15 @@ declare class CngxFailed {
161
277
  * {{ cp.copied() ? 'Link copied to clipboard' : '' }}
162
278
  * </span>
163
279
  * ```
280
+ *
281
+ * @category common/interactive
282
+ * @docsKind primary
283
+ * @wcag AA
284
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/copy/copy-text.directive.ts
285
+ * @since 0.1.0
286
+ * @relatedTo CngxCopyBlock, CngxCopyValue
287
+ * <example-url>http://localhost:4200/#/common/interactive/copy/text/copy-token</example-url>
288
+ * <example-url>http://localhost:4200/#/common/interactive/copy/text/copy-url-with-sr-announcement</example-url>
164
289
  */
165
290
  declare class CngxCopyText {
166
291
  private readonly destroyRef;
@@ -211,6 +336,15 @@ declare class CngxCopyText {
211
336
  * {{ apiKey() }}
212
337
  * </cngx-copy-block>
213
338
  * ```
339
+ *
340
+ * @category common/interactive
341
+ * @docsKind primary
342
+ * @wcag AA
343
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/copy/copy-block.ts
344
+ * @since 0.1.0
345
+ * @relatedTo CngxCopyText
346
+ * <example-url>http://localhost:4200/#/common/interactive/copy/block/api-key</example-url>
347
+ * <example-url>http://localhost:4200/#/common/interactive/copy/block/code-snippet</example-url>
214
348
  */
215
349
  declare class CngxCopyBlock {
216
350
  /** The text value to copy to clipboard. */
@@ -230,8 +364,8 @@ declare class CngxCopyBlock {
230
364
  *
231
365
  * Creates a `<span class="cngx-ripple__wave">` on pointer contact, positions it
232
366
  * via CSS custom properties (`--cngx-ripple-x`, `--cngx-ripple-y`, `--cngx-ripple-size`),
233
- * and removes it after the animation completes. ALL visual treatment — color, duration,
234
- * shape — is the consumer's CSS responsibility.
367
+ * and removes it after the animation completes. ALL visual treatment - color, duration,
368
+ * shape - is the consumer's CSS responsibility.
235
369
  *
236
370
  * Ships a companion `_ripple.scss` with sensible defaults.
237
371
  *
@@ -251,9 +385,17 @@ declare class CngxCopyBlock {
251
385
  * ```html
252
386
  * <button cngxRipple [rippleDisabled]="isReducedMotion()">Click</button>
253
387
  * ```
388
+ *
389
+ * @category common/interactive
390
+ * @docsKind primary
391
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/ripple/ripple.directive.ts
392
+ * @since 0.1.0
393
+ * @relatedTo CngxPressable, CngxPressRipple, CngxHoverable
394
+ * <example-url>http://localhost:4200/#/common/interactive/ripple/base/button-ripples</example-url>
395
+ * <example-url>http://localhost:4200/#/common/interactive/ripple/base/card-with-ripple</example-url>
254
396
  */
255
397
  declare class CngxRipple {
256
- /** Ripple color — passed as `--cngx-ripple-color` on the wave element. */
398
+ /** Ripple color - passed as `--cngx-ripple-color` on the wave element. */
257
399
  readonly color: _angular_core.InputSignal<string>;
258
400
  /** Whether the ripple originates from the center of the host. */
259
401
  readonly centered: _angular_core.InputSignal<boolean>;
@@ -275,7 +417,7 @@ declare class CngxRipple {
275
417
  /**
276
418
  * Provides instant press feedback via CSS class on `pointerdown`.
277
419
  *
278
- * Click feedback fires too late — press feedback is immediate (0ms latency).
420
+ * Click feedback fires too late - press feedback is immediate (0ms latency).
279
421
  * The class is removed on `pointerup` with an optional delay to prevent
280
422
  * a visual flash on quick taps.
281
423
  *
@@ -297,9 +439,17 @@ declare class CngxRipple {
297
439
  * Tappable card
298
440
  * </div>
299
441
  * ```
442
+ *
443
+ * @category common/interactive
444
+ * @docsKind primary
445
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/ripple/pressable.directive.ts
446
+ * @since 0.1.0
447
+ * @relatedTo CngxRipple, CngxPressRipple, CngxHoverable
448
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/pressable/press-feedback-on-buttons</example-url>
449
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/pressable/tappable-card</example-url>
300
450
  */
301
451
  declare class CngxPressable {
302
- /** Minimum time in ms the pressed class stays active — prevents flash on quick taps. */
452
+ /** Minimum time in ms the pressed class stays active - prevents flash on quick taps. */
303
453
  readonly releaseDelay: _angular_core.InputSignal<number>;
304
454
  private readonly pressedState;
305
455
  /** Whether the element is currently in the pressed state. */
@@ -307,11 +457,11 @@ declare class CngxPressable {
307
457
  /** Pending timer handle for the delayed release. */
308
458
  private releaseTimer;
309
459
  constructor();
310
- /** @internal — sets pressed state immediately on pointer contact (0ms latency). */
460
+ /** @internal - sets pressed state immediately on pointer contact (0ms latency). */
311
461
  protected handlePointerDown(): void;
312
- /** @internal — releases after `releaseDelay` ms to prevent flash on quick taps. */
462
+ /** @internal - releases after `releaseDelay` ms to prevent flash on quick taps. */
313
463
  protected handlePointerUp(): void;
314
- /** @internal — immediate release on cancel/leave (no delay). */
464
+ /** @internal - immediate release on cancel/leave (no delay). */
315
465
  protected handlePointerCancel(): void;
316
466
  private clearTimer;
317
467
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPressable, never>;
@@ -334,13 +484,24 @@ declare class CngxPressable {
334
484
  * ```html
335
485
  * <button cngxPressRipple [rippleColor]="'rgba(0,0,0,0.2)'">Click</button>
336
486
  * ```
487
+ *
488
+ * @category common/interactive
489
+ * @docsKind primary
490
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/ripple/press-ripple.directive.ts
491
+ * @since 0.1.0
492
+ * @relatedTo CngxPressable, CngxRipple
493
+ * <example-url>http://localhost:4200/#/common/interactive/ripple/press/buttons-with-press-ripple</example-url>
337
494
  */
338
495
  declare class CngxPressRipple {
339
496
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxPressRipple, never>;
340
497
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxPressRipple, "[cngxPressRipple]", ["cngxPressRipple"], {}, {}, never, never, true, [{ directive: typeof CngxPressable; inputs: { "pressableReleaseDelay": "pressableReleaseDelay"; }; outputs: {}; }, { directive: typeof CngxRipple; inputs: { "rippleColor": "rippleColor"; "rippleCentered": "rippleCentered"; "rippleDisabled": "rippleDisabled"; }; outputs: {}; }]>;
341
498
  }
342
499
 
343
- /** Configuration options for the cngx nav system. */
500
+ /**
501
+ * Configuration options for the cngx nav system.
502
+ *
503
+ * @category common/interactive
504
+ */
344
505
  interface CngxNavConfig {
345
506
  /**
346
507
  * Indentation in px per depth level.
@@ -361,7 +522,11 @@ interface CngxNavConfig {
361
522
  */
362
523
  animationDuration?: number;
363
524
  }
364
- /** A feature configuration function returned by `withXxx()` helpers. */
525
+ /**
526
+ * A feature configuration function returned by `withXxx()` helpers.
527
+ *
528
+ * @category common/interactive
529
+ */
365
530
  interface NavConfigFeature {
366
531
  /** @internal */
367
532
  readonly apply: (config: CngxNavConfig) => CngxNavConfig;
@@ -378,6 +543,10 @@ interface NavConfigFeature {
378
543
  * })
379
544
  * class SidebarComponent { }
380
545
  * ```
546
+ *
547
+ * @category common/interactive
548
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/nav-config.ts
549
+ * @since 0.1.0
381
550
  */
382
551
  declare const CNGX_NAV_CONFIG: InjectionToken<CngxNavConfig>;
383
552
  /**
@@ -390,23 +559,33 @@ declare const CNGX_NAV_CONFIG: InjectionToken<CngxNavConfig>;
390
559
  * ```typescript
391
560
  * providers: [provideNavConfig(withSingleAccordion(), withNavIndent(16))]
392
561
  * ```
562
+ *
563
+ * @category common/interactive
393
564
  */
394
565
  declare function provideNavConfig(...features: NavConfigFeature[]): Provider[];
395
566
  /**
396
- * Enables single-accordion mode — only one nav group can be open at a time.
567
+ * Enables single-accordion mode - only one nav group can be open at a time.
568
+ *
569
+ * @category common/interactive
397
570
  */
398
571
  declare function withSingleAccordion(): NavConfigFeature;
399
572
  /**
400
573
  * Sets the indentation per depth level in px.
574
+ *
575
+ * @category common/interactive
401
576
  */
402
577
  declare function withNavIndent(px: number): NavConfigFeature;
403
578
  /**
404
579
  * Sets the animation duration for nav group expand/collapse in ms.
580
+ *
581
+ * @category common/interactive
405
582
  */
406
583
  declare function withNavAnimation(ms: number): NavConfigFeature;
407
584
  /**
408
585
  * Injects the resolved nav config, merging provided values with defaults.
409
586
  * Must be called in an injection context.
587
+ *
588
+ * @category common/interactive
410
589
  */
411
590
  declare function injectNavConfig(): Readonly<Required<CngxNavConfig>>;
412
591
 
@@ -414,7 +593,7 @@ declare function injectNavConfig(): Readonly<Required<CngxNavConfig>>;
414
593
  * Generic expand/collapse (disclosure) behavior.
415
594
  *
416
595
  * Applied to the **trigger** element (button, heading, etc.). Manages
417
- * `aria-expanded` and `aria-controls` host attributes directly — no need
596
+ * `aria-expanded` and `aria-controls` host attributes directly - no need
418
597
  * to compose `CngxAriaExpanded` separately.
419
598
  *
420
599
  * Supports controlled (`[cngxDisclosureOpened]`) and uncontrolled modes,
@@ -452,6 +631,16 @@ declare function injectNavConfig(): Readonly<Required<CngxNavConfig>>;
452
631
  * <a href="/security">Security</a>
453
632
  * </div>
454
633
  * ```
634
+ *
635
+ * @category common/interactive
636
+ * @docsKind primary
637
+ * @wcag AA
638
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/disclosure.directive.ts
639
+ * @since 0.1.0
640
+ * @relatedTo CngxNavGroup, CngxExpandable
641
+ * <example-url>http://localhost:4200/#/common/interactive/disclosure/basic-uncontrolled</example-url>
642
+ * <example-url>http://localhost:4200/#/common/interactive/disclosure/controlled-mode</example-url>
643
+ * <example-url>http://localhost:4200/#/common/interactive/disclosure/faq-accordion</example-url>
455
644
  */
456
645
  declare class CngxDisclosure {
457
646
  /** Controlled opened state. When bound, takes precedence over internal state. */
@@ -459,7 +648,7 @@ declare class CngxDisclosure {
459
648
  /** The `id` of the controlled content element. Sets `aria-controls`. */
460
649
  readonly controls: _angular_core.InputSignal<string | undefined>;
461
650
  private readonly openedState;
462
- /** Resolved opened state — controlled input wins over internal state. */
651
+ /** Resolved opened state - controlled input wins over internal state. */
463
652
  readonly opened: _angular_core.Signal<boolean>;
464
653
  /** Emitted when the opened state changes. */
465
654
  readonly openedChange: _angular_core.OutputEmitterRef<boolean>;
@@ -474,7 +663,7 @@ declare class CngxDisclosure {
474
663
  }
475
664
 
476
665
  /**
477
- * Navigation accordion group — a collapsible section in a sidebar nav.
666
+ * Navigation accordion group - a collapsible section in a sidebar nav.
478
667
  *
479
668
  * Composes `CngxDisclosure` as a `hostDirective` for expand/collapse behavior.
480
669
  * Adds nav-specific semantics: depth tracking and CSS classes for styling.
@@ -510,9 +699,19 @@ declare class CngxDisclosure {
510
699
  * ],
511
700
  * })
512
701
  * ```
702
+ *
703
+ * @category common/interactive
704
+ * @docsKind primary
705
+ * @wcag AA
706
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/nav-group.directive.ts
707
+ * @since 0.1.0
708
+ * @relatedTo CngxNavLink, CngxDisclosure, CngxNavGroupRegistry, CngxNavLabel
709
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-badge-counts-and-dots</example-url>
710
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-group-accordion-sections</example-url>
711
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-links-active-state-depth</example-url>
513
712
  */
514
713
  declare class CngxNavGroup {
515
- /** The composed disclosure instance — use `disclosure.opened()` to read state. */
714
+ /** The composed disclosure instance - use `disclosure.opened()` to read state. */
516
715
  readonly disclosure: CngxDisclosure;
517
716
  /** Nesting depth for indentation. Consumer sets manually. */
518
717
  readonly depth: _angular_core.InputSignal<number>;
@@ -530,7 +729,7 @@ interface NavGroupRef {
530
729
  /**
531
730
  * Scoped registry for single-accordion coordination.
532
731
  *
533
- * Provided at the sidebar/nav container level — only groups within the
732
+ * Provided at the sidebar/nav container level - only groups within the
534
733
  * same provider scope coordinate. Not `providedIn: 'root'` on purpose.
535
734
  *
536
735
  * ```typescript
@@ -541,6 +740,12 @@ interface NavGroupRef {
541
740
  * ],
542
741
  * })
543
742
  * ```
743
+ *
744
+ * @category common/interactive
745
+ * @wcag AA
746
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/nav-group-registry.ts
747
+ * @since 0.1.0
748
+ * @relatedTo CngxNavGroup, CngxDisclosure
544
749
  */
545
750
  declare class CngxNavGroupRegistry {
546
751
  private readonly groups;
@@ -561,7 +766,7 @@ declare class CngxNavGroupRegistry {
561
766
  * Use `[heading]="true"` to opt in to `role="heading"` with `aria-level`
562
767
  * when the label genuinely represents a heading in the document outline.
563
768
  *
564
- * ### Section label (default — no heading role)
769
+ * ### Section label (default - no heading role)
565
770
  * ```html
566
771
  * <span cngxNavLabel>@cngx/common</span>
567
772
  * ```
@@ -570,6 +775,15 @@ declare class CngxNavGroupRegistry {
570
775
  * ```html
571
776
  * <span cngxNavLabel [heading]="true" [level]="3">Settings</span>
572
777
  * ```
778
+ *
779
+ * @category common/interactive
780
+ * @wcag AA
781
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/nav-label.directive.ts
782
+ * @since 0.1.0
783
+ * @relatedTo CngxNavLink, CngxNavGroup, CngxNavBadge
784
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-badge-counts-and-dots</example-url>
785
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-group-accordion-sections</example-url>
786
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-links-active-state-depth</example-url>
573
787
  */
574
788
  declare class CngxNavLabel {
575
789
  /** Whether to apply `role="heading"`. Off by default to avoid inflating the heading outline. */
@@ -585,7 +799,7 @@ declare class CngxNavLabel {
585
799
  * sidebar or nav menu.
586
800
  *
587
801
  * Sets a `--cngx-nav-depth` CSS custom property for indentation and
588
- * toggles an `active` class. Does NOT depend on `@angular/router` —
802
+ * toggles an `active` class. Does NOT depend on `@angular/router` -
589
803
  * the consumer wires `routerLinkActive` or binds `[active]` manually.
590
804
  *
591
805
  * ### With Router
@@ -609,6 +823,17 @@ declare class CngxNavLabel {
609
823
  * <a cngxNavLink [depth]="1">Nested</a>
610
824
  * <a cngxNavLink [depth]="2">Deep nested</a>
611
825
  * ```
826
+ *
827
+ * @category common/interactive
828
+ * @docsKind primary
829
+ * @wcag AA
830
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/nav-link.directive.ts
831
+ * @selector [cngxNavLink]
832
+ * @since 0.1.0
833
+ * @relatedTo CngxNavGroup, CngxNavLabel, CngxNavBadge, CngxDisclosure
834
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-badge-counts-and-dots</example-url>
835
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-group-accordion-sections</example-url>
836
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-links-active-state-depth</example-url>
612
837
  */
613
838
  declare class CngxNavLink {
614
839
  /**
@@ -632,16 +857,20 @@ declare class CngxNavLink {
632
857
  * Common values: `'page'` (default), `'step'`, `'location'`, `'true'`.
633
858
  */
634
859
  readonly ariaCurrent: _angular_core.InputSignal<string>;
635
- /** Nesting depth for indentation. Consumer sets manually — no ancestor injection. */
860
+ /** Nesting depth for indentation. Consumer sets manually - no ancestor injection. */
636
861
  readonly depth: _angular_core.InputSignal<number>;
637
862
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxNavLink, never>;
638
863
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxNavLink, "a[cngxNavLink], button[cngxNavLink]", ["cngxNavLink"], { "active": { "alias": "active"; "required": false; "isSignal": true; }; "scrollOnActive": { "alias": "scrollOnActive"; "required": false; "isSignal": true; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; "isSignal": true; }; "depth": { "alias": "depth"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
639
864
  }
640
865
 
641
- /** Visual variant for the nav badge. */
866
+ /**
867
+ * Visual variant for the nav badge.
868
+ *
869
+ * @category common/interactive
870
+ */
642
871
  type NavBadgeVariant = 'count' | 'dot' | 'status';
643
872
  /**
644
- * Inline badge for navigation items — shows counts, dots, or status indicators.
873
+ * Inline badge for navigation items - shows counts, dots, or status indicators.
645
874
  *
646
875
  * For generic in-place counter/dot indicators on arbitrary hosts (buttons,
647
876
  * avatars, icons), prefer `CngxBadge` from `@cngx/common/display`. `CngxNavBadge`
@@ -651,7 +880,7 @@ type NavBadgeVariant = 'count' | 'dot' | 'status';
651
880
  * Applies `aria-hidden="true"` by default because badges typically duplicate
652
881
  * information already conveyed by the link text. When the badge conveys
653
882
  * unique information (e.g., unread count), provide `[ariaLabel]` to make
654
- * it accessible — this removes `aria-hidden` and adds a visually-hidden label.
883
+ * it accessible - this removes `aria-hidden` and adds a visually-hidden label.
655
884
  *
656
885
  * ### Decorative badge (aria-hidden, default)
657
886
  * ```html
@@ -670,6 +899,15 @@ type NavBadgeVariant = 'count' | 'dot' | 'status';
670
899
  * ```html
671
900
  * <a cngxNavLink>Updates <span cngxNavBadge variant="dot" [value]="1"></span></a>
672
901
  * ```
902
+ *
903
+ * @category common/interactive
904
+ * @wcag AA
905
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/nav/nav-badge.directive.ts
906
+ * @since 0.1.0
907
+ * @relatedTo CngxNavLink, CngxNavGroup, CngxNavLabel, CngxBadge
908
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-badge-counts-and-dots</example-url>
909
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-group-accordion-sections</example-url>
910
+ * <example-url>http://localhost:4200/#/common/interactive/nav/nav-links-active-state-depth</example-url>
673
911
  */
674
912
  declare class CngxNavBadge {
675
913
  /** The badge value. Hidden when empty string, null, undefined, or 0. */
@@ -689,32 +927,42 @@ declare class CngxNavBadge {
689
927
 
690
928
  /**
691
929
  * Passive expand/collapse contract for elements whose open state is driven
692
- * from the outside — typically a `CngxTreeController` or any component that
930
+ * from the outside - typically a `CngxTreeController` or any component that
693
931
  * manages a shared expansion set. Mirrors `aria-expanded` and (optionally)
694
932
  * `aria-controls` into the host; carries no interaction of its own.
695
933
  *
696
934
  * Use `CngxDisclosure` instead for self-triggering expanders (FAQ, accordion
697
935
  * headings). The distinction is deliberate: a tree-item row is a selection
698
- * target, not a toggle — clicks, Enter, and Space belong to the selection
936
+ * target, not a toggle - clicks, Enter, and Space belong to the selection
699
937
  * flow, while expand/collapse is wired to ArrowLeft/Right via a sibling nav
700
938
  * directive or to a dedicated twisty button.
701
939
  *
702
940
  * ```html
703
- * <div
704
- * role="treeitem"
705
- * cngxExpandable
706
- * [cngxExpandableOpen]="ctrl.isExpanded(id)()"
707
- * [controls]="childrenId"
708
- * >
709
- * <button
710
- * type="button"
711
- * tabindex="-1"
712
- * (click)="ctrl.toggle(id)"
713
- * >▸</button>
714
- * <span>{{ label }}</span>
941
+ * <div role="tree" aria-label="Files">
942
+ * <div
943
+ * role="treeitem"
944
+ * aria-level="1"
945
+ * cngxExpandable
946
+ * [cngxExpandableOpen]="ctrl.isExpanded(id)()"
947
+ * [controls]="childrenId"
948
+ * >
949
+ * <button
950
+ * type="button"
951
+ * tabindex="-1"
952
+ * (click)="ctrl.toggle(id)"
953
+ * >▸</button>
954
+ * <span>{{ label }}</span>
955
+ * </div>
956
+ * <div [id]="childrenId" [hidden]="!ctrl.isExpanded(id)()">…</div>
715
957
  * </div>
716
- * <div [id]="childrenId" [hidden]="!ctrl.isExpanded(id)()">…</div>
717
958
  * ```
959
+ *
960
+ * @category common/interactive
961
+ * @docsKind primary
962
+ * @wcag AA
963
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/expandable/expandable.directive.ts
964
+ * @since 0.1.0
965
+ * @relatedTo CngxHierarchicalNav, CngxTreeController, CngxRovingTabindex
718
966
  */
719
967
  declare class CngxExpandable {
720
968
  /** Controlled expanded state. When bound, wins over internal state. */
@@ -748,9 +996,11 @@ declare class CngxExpandable {
748
996
  *
749
997
  * `disabled` stays a `WritableSignal<boolean>` because consumers
750
998
  * typically derive it externally (`computed(() => parentDisabled() ||
751
- * fieldDisabled())` and forward into the atom) — `model<boolean>()`
999
+ * fieldDisabled())` and forward into the atom) - `model<boolean>()`
752
1000
  * would force every implementer into a two-way binding they do not
753
1001
  * need.
1002
+ *
1003
+ * @category common/interactive
754
1004
  */
755
1005
  interface CngxControlValue<T = unknown> {
756
1006
  readonly value: ModelSignal<T>;
@@ -765,9 +1015,13 @@ interface CngxControlValue<T = unknown> {
765
1015
  * No `providedIn`, no factory: providing the token is the atom's
766
1016
  * responsibility. A surrounding consumer that wants a sane fallback
767
1017
  * (e.g. an inert read-only value) supplies one in its own `providers`
768
- * block — the token deliberately does not invent a default because
1018
+ * block - the token deliberately does not invent a default because
769
1019
  * "what is the value of an unbound control?" has no library-level
770
1020
  * answer.
1021
+ *
1022
+ * @category common/interactive
1023
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/control-value/control-value.token.ts
1024
+ * @since 0.1.0
771
1025
  */
772
1026
  declare const CNGX_CONTROL_VALUE: InjectionToken<CngxControlValue<unknown>>;
773
1027
 
@@ -778,7 +1032,7 @@ declare const CNGX_CONTROL_VALUE: InjectionToken<CngxControlValue<unknown>>;
778
1032
  * the element form (`<cngx-toggle>`) renders a track + thumb skin and
779
1033
  * accepts label content via `<ng-content>`.
780
1034
  *
781
- * `value` is a `ModelSignal<boolean>` — consumers two-way-bind via
1035
+ * `value` is a `ModelSignal<boolean>` - consumers two-way-bind via
782
1036
  * `[(value)]` and the directive emits `valueChange` on every flip.
783
1037
  * `disabled` is also a `ModelSignal<boolean>` so the
784
1038
  * `CngxFormBridge` (Phase 7) can drive it via `setDisabledState`
@@ -786,7 +1040,7 @@ declare const CNGX_CONTROL_VALUE: InjectionToken<CngxControlValue<unknown>>;
786
1040
  * one direction.
787
1041
  *
788
1042
  * `disabledReason` is consumer-supplied free text (no library default
789
- * per `feedback_en_default_locale`) — when present it lands in a hidden
1043
+ * per `feedback_en_default_locale`) - when present it lands in a hidden
790
1044
  * `<span>` referenced by the host's `aria-describedby`. Per Pillar 2,
791
1045
  * the description span is always in the DOM (visibility toggles via
792
1046
  * `aria-hidden`); the host's `aria-describedby` is only emitted when a
@@ -813,6 +1067,21 @@ declare const CNGX_CONTROL_VALUE: InjectionToken<CngxControlValue<unknown>>;
813
1067
  * <ng-template #icon><span aria-hidden="true">★</span></ng-template>
814
1068
  * <cngx-toggle [(value)]="featured" [thumbGlyph]="icon">Featured</cngx-toggle>
815
1069
  * ```
1070
+ *
1071
+ * @category common/interactive
1072
+ * @docsKind primary
1073
+ * @wcag AA
1074
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/toggle/toggle.component.ts
1075
+ * @selector cngx-toggle
1076
+ * @since 0.1.0
1077
+ * @relatedTo CngxCheckbox, CngxButtonToggle, CngxRadio
1078
+ * <example-url>http://localhost:4200/#/common/interactive/toggle/basic-two-way-binding</example-url>
1079
+ * <example-url>http://localhost:4200/#/common/interactive/toggle/custom-thumb-glyph</example-url>
1080
+ * <example-url>http://localhost:4200/#/common/interactive/toggle/disabled-with-reason</example-url>
1081
+ * <example-url>http://localhost:4200/#/common/interactive/toggle/label-position</example-url>
1082
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1083
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1084
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
816
1085
  */
817
1086
  declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldControl {
818
1087
  readonly value: _angular_core.ModelSignal<boolean>;
@@ -820,7 +1089,7 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
820
1089
  /**
821
1090
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
822
1091
  * so external integrations (RF/Signal-Forms bridges, custom validity
823
- * adapters) can drive it without a parallel API path — consumers
1092
+ * adapters) can drive it without a parallel API path - consumers
824
1093
  * typically read only.
825
1094
  */
826
1095
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -829,7 +1098,7 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
829
1098
  * rendered by `<cngx-form-field>` or a consumer-owned `<span>`).
830
1099
  * When set, the host emits `aria-errormessage="<id>"` so AT can
831
1100
  * locate the message; consumers MUST render an element with that id
832
- * — passing an id without a matching element produces a dangling
1101
+ * - passing an id without a matching element produces a dangling
833
1102
  * AT reference. Default `null` skips the attribute entirely.
834
1103
  * Note: WAI-ARIA dictates that AT ignores this attribute when
835
1104
  * `aria-invalid` is absent or `"false"`, so a stable always-emitted
@@ -846,7 +1115,7 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
846
1115
  private readonly focusedState;
847
1116
  /** Whether the host element currently has DOM focus. */
848
1117
  readonly focused: _angular_core.Signal<boolean>;
849
- /** True when the toggle is `false` (off) — boolean atom semantics. */
1118
+ /** True when the toggle is `false` (off) - boolean atom semantics. */
850
1119
  readonly empty: _angular_core.Signal<boolean>;
851
1120
  private readonly fieldHost;
852
1121
  private readonly aggregator;
@@ -871,7 +1140,7 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
871
1140
  * `role="checkbox"` semantics. Click, Space, and Enter all advance
872
1141
  * `value`; an indeterminate checkbox advances to `value=true`,
873
1142
  * `indeterminate=false` in a single step (per WAI-ARIA tristate
874
- * semantics — there is no path that lands the checkbox back in
1143
+ * semantics - there is no path that lands the checkbox back in
875
1144
  * `'mixed'` from a user click).
876
1145
  *
877
1146
  * `value` and `indeterminate` are both `ModelSignal<boolean>` so
@@ -883,9 +1152,10 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
883
1152
  * across the family.
884
1153
  *
885
1154
  * Visual indicator state is delegated to `<cngx-checkbox-indicator>`
886
- * from `@cngx/common/display`; the interactive atom owns role,
887
- * keyboard, and ARIA wiring. Per Pillar 3 (Komposition statt
888
- * Konfiguration), the visual atom is reused — never re-drawn here.
1155
+ * from `@cngx/common/display`; this interactive molecule owns role,
1156
+ * keyboard, and ARIA wiring and composes the display atom. Per
1157
+ * Pillar 3, the visual atom is
1158
+ * reused - never re-drawn here.
889
1159
  *
890
1160
  * `aria-checked` is a reactive computed: `indeterminate() ? 'mixed' :
891
1161
  * value() ? 'true' : 'false'`. The description span for
@@ -901,6 +1171,23 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
901
1171
  * (valueChange)="toggleAll($event)"
902
1172
  * >Select all</cngx-checkbox>
903
1173
  * ```
1174
+ *
1175
+ * @category common/interactive
1176
+ * @docsKind primary
1177
+ * @wcag AA
1178
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/checkbox/checkbox.component.ts
1179
+ * @selector cngx-checkbox
1180
+ * @since 0.1.0
1181
+ * @relatedTo CngxCheckboxGroup, CngxCheckboxIndicator, CngxToggle, CngxRadio
1182
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/group/basic-select-all-master-projected-leaves</example-url>
1183
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/group/disabled-cascade</example-url>
1184
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/base/basic-two-way-binding</example-url>
1185
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/base/custom-check-dash-glyphs</example-url>
1186
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/base/disabled</example-url>
1187
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/base/tri-state-select-all-pattern</example-url>
1188
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1189
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1190
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
904
1191
  */
905
1192
  declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldControl {
906
1193
  readonly value: _angular_core.ModelSignal<boolean>;
@@ -909,28 +1196,34 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
909
1196
  /**
910
1197
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
911
1198
  * so external integrations (RF/Signal-Forms bridges, custom validity
912
- * adapters) can drive it without a parallel API path — consumers
1199
+ * adapters) can drive it without a parallel API path - consumers
913
1200
  * typically read only.
914
1201
  */
915
1202
  readonly invalid: _angular_core.ModelSignal<boolean>;
916
1203
  /**
917
1204
  * Optional id of an external error message element (e.g. a sibling
918
1205
  * rendered by `<cngx-form-field>` or a consumer-owned `<span>`).
919
- * When set, the host emits `aria-errormessage="<id>"` so AT can
920
- * locate the message; consumers MUST render an element with that id
921
- * — passing an id without a matching element produces a dangling
922
- * AT reference. Default `null` skips the attribute entirely.
923
- * Note: WAI-ARIA dictates that AT ignores this attribute when
924
- * `aria-invalid` is absent or `"false"`, so a stable always-emitted
925
- * id is harmless when the field is valid.
1206
+ * The host emits `aria-errormessage="<id>"` only when
1207
+ * `aria-invalid="true"` — symmetric with the sibling `aria-invalid`
1208
+ * host binding (both gate on `invalid() || errorState()`). Consumers
1209
+ * MUST render an element with the supplied id; passing an id without
1210
+ * a matching element produces a dangling AT reference. Default
1211
+ * `null` skips the attribute entirely.
926
1212
  */
927
1213
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
928
1214
  readonly disabledReason: _angular_core.InputSignal<string>;
929
1215
  readonly checkGlyph: _angular_core.InputSignal<TemplateRef<void> | null>;
930
1216
  readonly dashGlyph: _angular_core.InputSignal<TemplateRef<void> | null>;
931
1217
  protected readonly describedId: string;
932
- protected readonly describedById: _angular_core.Signal<string | null>;
933
- protected readonly ariaChecked: _angular_core.Signal<"false" | "true" | "mixed">;
1218
+ private readonly rovingParent;
1219
+ /**
1220
+ * When inside a `CngxRovingTabindex` parent (typically `CngxCheckboxGroup`),
1221
+ * yields `null` so the roving controller owns the `tabindex` attribute
1222
+ * uncontested. Standalone, falls back to the WAI-ARIA default of
1223
+ * `0` (or `-1` when disabled). Mirrors `CngxCard.hostTabindex`.
1224
+ */
1225
+ protected readonly hostTabindex: _angular_core.Signal<number | null>;
1226
+ protected readonly ariaChecked: _angular_core.Signal<"true" | "false" | "mixed">;
934
1227
  readonly id: _angular_core.Signal<string>;
935
1228
  private readonly focusedState;
936
1229
  readonly focused: _angular_core.Signal<boolean>;
@@ -943,13 +1236,14 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
943
1236
  private readonly fieldHost;
944
1237
  private readonly aggregator;
945
1238
  readonly errorState: _angular_core.Signal<boolean>;
1239
+ protected readonly ariaInvalid: _angular_core.Signal<boolean>;
946
1240
  protected handleClick(): void;
947
1241
  protected handleKeydown(event: Event): void;
948
1242
  protected handleFocusIn(): void;
949
1243
  protected handleFocusOut(): void;
950
1244
  private advance;
951
1245
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCheckbox, never>;
952
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCheckbox, "cngx-checkbox, [cngxCheckbox]", ["cngxCheckbox"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "checkGlyph": { "alias": "checkGlyph"; "required": false; "isSignal": true; }; "dashGlyph": { "alias": "dashGlyph"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "indeterminate": "indeterminateChange"; "disabled": "disabledChange"; "invalid": "invalidChange"; }, never, ["*"], true, never>;
1246
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCheckbox, "cngx-checkbox, [cngxCheckbox]", ["cngxCheckbox"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorMessageId": { "alias": "errorMessageId"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "checkGlyph": { "alias": "checkGlyph"; "required": false; "isSignal": true; }; "dashGlyph": { "alias": "dashGlyph"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "indeterminate": "indeterminateChange"; "disabled": "disabledChange"; "invalid": "invalidChange"; }, never, ["*"], true, [{ directive: typeof i1.CngxRovingItem; inputs: { "cngxRovingItemDisabled": "disabled"; }; outputs: {}; }]>;
953
1247
  }
954
1248
 
955
1249
  /**
@@ -961,21 +1255,21 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
961
1255
  * checkbox to the group.
962
1256
  *
963
1257
  * Internals lean on `createSelectionController` from `@cngx/core/utils`
964
- * for membership tracking — the controller's structural-equality
1258
+ * for membership tracking - the controller's structural-equality
965
1259
  * `selected` snapshot prevents downstream computed cascades from
966
1260
  * thrashing when a re-emission produces the same logical contents
967
1261
  * with a different array reference.
968
1262
  *
969
1263
  * `value` is a structural alias of `selectedValues` so the group
970
1264
  * satisfies `CngxControlValue<T[]>` without owning two synchronised
971
- * models — both names point to the same `ModelSignal<T[]>` instance.
1265
+ * models - both names point to the same `ModelSignal<T[]>` instance.
972
1266
  *
973
1267
  * Per Pillar 1 (Ableitung statt Verwaltung), every derived flag is a
974
- * `computed()` — there is no manual sync between membership and the
1268
+ * `computed()` - there is no manual sync between membership and the
975
1269
  * exposed flags. Per Pillar 3 (Komposition statt Konfiguration), the
976
1270
  * group composes `CngxRovingTabindex` as a host directive and emits
977
- * no implicit children — consumers project `<cngx-checkbox>` instances
978
- * (or any other CNGX_CONTROL_VALUE-bearing atom) and bind each leaf's
1271
+ * no implicit children - consumers project `<cngx-checkbox>` instances
1272
+ * (or any other CNGX_CONTROL_VALUE-bearing leaf) and bind each leaf's
979
1273
  * value-tracking themselves.
980
1274
  *
981
1275
  * `[allValues]` is optional; when supplied, `allSelected` reflects
@@ -986,7 +1280,7 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
986
1280
  *
987
1281
  * `[keyFn]` lets consumers with object-typed values map each value
988
1282
  * to a stable membership key (typically `(v) => v.id`). Without it,
989
- * membership uses identity / primitive equality — which silently
1283
+ * membership uses identity / primitive equality - which silently
990
1284
  * breaks across re-emissions when the consumer refetches array
991
1285
  * elements with the same id but new references.
992
1286
  *
@@ -1007,6 +1301,19 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
1007
1301
  * >{{ opt }}</cngx-checkbox>
1008
1302
  * </cngx-checkbox-group>
1009
1303
  * ```
1304
+ *
1305
+ * @category common/interactive
1306
+ * @docsKind primary
1307
+ * @wcag AA
1308
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/checkbox-group/checkbox-group.component.ts
1309
+ * @selector cngx-checkbox-group
1310
+ * @since 0.1.0
1311
+ * @relatedTo CngxCheckbox, CngxRovingTabindex, CngxRadioGroup
1312
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/group/basic-select-all-master-projected-leaves</example-url>
1313
+ * <example-url>http://localhost:4200/#/common/interactive/checkbox/group/disabled-cascade</example-url>
1314
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1315
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1316
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1010
1317
  */
1011
1318
  declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, CngxFormFieldControl {
1012
1319
  readonly selectedValues: _angular_core.ModelSignal<T[]>;
@@ -1016,17 +1323,16 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
1016
1323
  /**
1017
1324
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1018
1325
  * so external integrations (RF/Signal-Forms bridges, custom validity
1019
- * adapters) can drive it without a parallel API path — consumers
1326
+ * adapters) can drive it without a parallel API path - consumers
1020
1327
  * typically read only.
1021
1328
  */
1022
1329
  readonly invalid: _angular_core.ModelSignal<boolean>;
1023
1330
  /**
1024
- * Optional id of an external error message element. When set, the
1025
- * host emits `aria-errormessage="<id>"`; consumers MUST render an
1026
- * element with that id. Default `null` skips the attribute.
1027
- * Note: WAI-ARIA dictates that AT ignores this attribute when
1028
- * `aria-invalid` is absent or `"false"`, so a stable always-emitted
1029
- * id is harmless when the field is valid.
1331
+ * Optional id of an external error message element. The host emits
1332
+ * `aria-errormessage="<id>"` only when `aria-invalid="true"` —
1333
+ * symmetric with the sibling `aria-invalid` host binding (both gate
1334
+ * on `invalid() || errorState()`). Consumers MUST render an element
1335
+ * with the supplied id. Default `null` skips the attribute.
1030
1336
  */
1031
1337
  readonly errorMessageId: _angular_core.InputSignal<string | null>;
1032
1338
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
@@ -1052,6 +1358,7 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
1052
1358
  private readonly fieldHost;
1053
1359
  private readonly aggregator;
1054
1360
  readonly errorState: _angular_core.Signal<boolean>;
1361
+ protected readonly ariaInvalid: _angular_core.Signal<boolean>;
1055
1362
  protected handleFocusIn(): void;
1056
1363
  protected handleFocusOut(): void;
1057
1364
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCheckboxGroup<any>, never>;
@@ -1061,8 +1368,8 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
1061
1368
  /**
1062
1369
  * Single-select parent contract every `CngxButtonToggleGroup` provides
1063
1370
  * via `useExisting`. `CngxButtonToggle` leaves inject this token (or
1064
- * `CNGX_BUTTON_MULTI_TOGGLE_GROUP` for the multi case) — never the
1065
- * concrete group class — so the leaf stays decompose-ready and free
1371
+ * `CNGX_BUTTON_MULTI_TOGGLE_GROUP` for the multi case) - never the
1372
+ * concrete group class - so the leaf stays decompose-ready and free
1066
1373
  * of cyclic type dependencies.
1067
1374
  *
1068
1375
  * `value` is a `ModelSignal<T | undefined>` because the group's
@@ -1071,13 +1378,15 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
1071
1378
  * pick. `disabled` is a read-only `Signal<boolean>` so the leaf can
1072
1379
  * combine it with its own per-toggle `disabled()` to compute
1073
1380
  * `toggleDisabled`.
1381
+ *
1382
+ * @category common/interactive
1074
1383
  */
1075
1384
  interface CngxButtonToggleGroupContract<T = unknown> {
1076
1385
  readonly value: ModelSignal<T | undefined>;
1077
1386
  readonly disabled: Signal<boolean>;
1078
1387
  /**
1079
1388
  * Consume the group's "last interaction was a roving-arrow keydown"
1080
- * flag. Called by a leaf's `(focus)` handler — when the flag is
1389
+ * flag. Called by a leaf's `(focus)` handler - when the flag is
1081
1390
  * true, the leaf forwards its value to the group's `value` model
1082
1391
  * (W3C APG auto-select-on-arrow-nav semantics, radiogroup variant)
1083
1392
  * and the flag is cleared so a subsequent Tab-into focus does not
@@ -1090,14 +1399,19 @@ interface CngxButtonToggleGroupContract<T = unknown> {
1090
1399
  * DI token a `CngxButtonToggle` leaf injects to find its single-mode
1091
1400
  * parent group. Always provided via
1092
1401
  * `{ provide: CNGX_BUTTON_TOGGLE_GROUP, useExisting:
1093
- * CngxButtonToggleGroup }` — never via concrete-class injection (per
1402
+ * CngxButtonToggleGroup }` - never via concrete-class injection (per
1094
1403
  * `reference_atomic_decompose` §4).
1095
1404
  *
1096
1405
  * The leaf injects this token AND `CNGX_BUTTON_MULTI_TOGGLE_GROUP`
1097
1406
  * with `{ optional: true }` on both; the present token determines the
1098
1407
  * leaf's keyboard semantics + ARIA pattern (`aria-checked` for single,
1099
1408
  * `aria-selected` for multi), chosen at injection time, NOT at
1100
- * runtime — there is no `[selectionMode]` flag.
1409
+ * runtime - there is no `[selectionMode]` flag.
1410
+ *
1411
+ * @category common/interactive
1412
+ * @wcag AA
1413
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/button-toggle/button-toggle-group.token.ts
1414
+ * @since 0.1.0
1101
1415
  */
1102
1416
  declare const CNGX_BUTTON_TOGGLE_GROUP: InjectionToken<CngxButtonToggleGroupContract<unknown>>;
1103
1417
 
@@ -1105,14 +1419,14 @@ declare const CNGX_BUTTON_TOGGLE_GROUP: InjectionToken<CngxButtonToggleGroupCont
1105
1419
  * Single-select button-toggle group. Owns a `value = model<T |
1106
1420
  * undefined>` (the canonical single-value source) and exposes the
1107
1421
  * parent contract via `CNGX_BUTTON_TOGGLE_GROUP`. Behaves as a W3C
1108
- * APG `radiogroup` — arrow keys move focus AND select (auto-select
1422
+ * APG `radiogroup` - arrow keys move focus AND select (auto-select
1109
1423
  * variant); Tab + programmatic focus do not select on focus alone;
1110
1424
  * Space and Enter select the currently-focused toggle.
1111
1425
  *
1112
1426
  * Mode is **static**: this component is the single-select half of a
1113
1427
  * deliberate split (per `feedback_select_family_split`). Consumers
1114
1428
  * pick `<cngx-button-toggle-group>` for radiogroup semantics or
1115
- * `<cngx-button-multi-toggle-group>` for toolbar semantics — never a
1429
+ * `<cngx-button-multi-toggle-group>` for toolbar semantics - never a
1116
1430
  * runtime `[selectionMode]` flag, never a shape-shifter. The leaf
1117
1431
  * `CngxButtonToggle` injects EITHER this token OR
1118
1432
  * `CNGX_BUTTON_MULTI_TOGGLE_GROUP` (`{ optional: true }` on both)
@@ -1123,7 +1437,7 @@ declare const CNGX_BUTTON_TOGGLE_GROUP: InjectionToken<CngxButtonToggleGroupCont
1123
1437
  * is raised on host `(keydown)` for any roving-relevant key
1124
1438
  * (Arrow*, Home, End); each focused leaf consumes the flag in its
1125
1439
  * `(focus)` handler via `consumePendingArrowSelect()`. The signal
1126
- * write happens inside a DOM event handler — never inside an
1440
+ * write happens inside a DOM event handler - never inside an
1127
1441
  * `effect()`.
1128
1442
  *
1129
1443
  * ```html
@@ -1133,6 +1447,20 @@ declare const CNGX_BUTTON_TOGGLE_GROUP: InjectionToken<CngxButtonToggleGroupCont
1133
1447
  * <button cngxButtonToggle value="table">Table</button>
1134
1448
  * </cngx-button-toggle-group>
1135
1449
  * ```
1450
+ *
1451
+ * @category common/interactive
1452
+ * @docsKind primary
1453
+ * @wcag AA
1454
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/button-toggle/button-toggle-group.component.ts
1455
+ * @selector cngx-button-toggle-group
1456
+ * @since 0.1.0
1457
+ * @relatedTo CngxButtonToggle, CngxRadioGroup
1458
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/group/basic-view-switcher</example-url>
1459
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/group/disabled-group-cascade-vs-per-toggle</example-url>
1460
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/group/vertical-orientation</example-url>
1461
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1462
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1463
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1136
1464
  */
1137
1465
  declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGroupContract<T>, CngxControlValue<T | undefined>, CngxFormFieldControl {
1138
1466
  readonly value: _angular_core.ModelSignal<T | undefined>;
@@ -1141,7 +1469,7 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
1141
1469
  /**
1142
1470
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1143
1471
  * so external integrations (RF/Signal-Forms bridges, custom validity
1144
- * adapters) can drive it without a parallel API path — consumers
1472
+ * adapters) can drive it without a parallel API path - consumers
1145
1473
  * typically read only.
1146
1474
  */
1147
1475
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -1181,7 +1509,7 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
1181
1509
  * a multi-mode parent (via `inject(CNGX_BUTTON_MULTI_TOGGLE_GROUP, {
1182
1510
  * optional: true })`) bind `aria-selected` (toolbar APG) instead of
1183
1511
  * `aria-checked` (radiogroup APG) AT INJECTION TIME. Mode is static
1184
- * per atom instance — there is no `[selectionMode]` flag.
1512
+ * per atom instance - there is no `[selectionMode]` flag.
1185
1513
  *
1186
1514
  * `selectedValues` is a `ModelSignal<T[]>` so the consumer can
1187
1515
  * two-way-bind via `[(selectedValues)]` and the leaves can mutate
@@ -1192,12 +1520,14 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
1192
1520
  * the group's internal `SelectionController` so the leaf can render
1193
1521
  * `aria-selected` reactively without re-querying the array on every
1194
1522
  * keystroke. The signal identity is stable per value (per
1195
- * `createSelectionController` contract) — safe to read inside a
1523
+ * `createSelectionController` contract) - safe to read inside a
1196
1524
  * `computed()` on the leaf.
1197
1525
  *
1198
1526
  * `toggle(value)` is the single mutation entry-point the leaf calls
1199
1527
  * on Space / Enter / click. The group routes it through its
1200
1528
  * controller and writes `selectedValues` accordingly.
1529
+ *
1530
+ * @category common/interactive
1201
1531
  */
1202
1532
  interface CngxButtonMultiToggleGroupContract<T = unknown> {
1203
1533
  readonly selectedValues: ModelSignal<T[]>;
@@ -1209,20 +1539,25 @@ interface CngxButtonMultiToggleGroupContract<T = unknown> {
1209
1539
  * DI token a `CngxButtonToggle` leaf injects to find its multi-mode
1210
1540
  * parent group. Always provided via
1211
1541
  * `{ provide: CNGX_BUTTON_MULTI_TOGGLE_GROUP, useExisting:
1212
- * CngxButtonMultiToggleGroup }` — never via concrete-class injection
1542
+ * CngxButtonMultiToggleGroup }` - never via concrete-class injection
1213
1543
  * (per `reference_atomic_decompose` §4).
1214
1544
  *
1215
1545
  * The leaf injects this token with `{ optional: true }` alongside
1216
1546
  * `CNGX_BUTTON_TOGGLE_GROUP` (also optional). Exactly one parent
1217
1547
  * must be present; the leaf throws a dev-mode error otherwise.
1548
+ *
1549
+ * @category common/interactive
1550
+ * @wcag AA
1551
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/button-toggle/button-multi-toggle-group.token.ts
1552
+ * @since 0.1.0
1218
1553
  */
1219
1554
  declare const CNGX_BUTTON_MULTI_TOGGLE_GROUP: InjectionToken<CngxButtonMultiToggleGroupContract<unknown>>;
1220
1555
 
1221
1556
  /**
1222
1557
  * Multi-select button-toggle group. Owns a `selectedValues =
1223
1558
  * model<T[]>([])` (the canonical multi-value source) and exposes the
1224
- * parent contract via `CNGX_BUTTON_MULTI_TOGGLE_GROUP`. Behaves as a
1225
- * W3C APG `toolbar` — arrow keys MOVE focus only (no auto-select);
1559
+ * parent contract via `CNGX_BUTTON_MULTI_TOGGLE_GROUP`.
1560
+ * Behaves as a W3C APG `toolbar` - arrow keys MOVE focus only (no auto-select);
1226
1561
  * Space and Enter on a focused leaf toggle that leaf's membership.
1227
1562
  *
1228
1563
  * Mode is **static**: this is the multi-select half of the
@@ -1234,14 +1569,14 @@ declare const CNGX_BUTTON_MULTI_TOGGLE_GROUP: InjectionToken<CngxButtonMultiTogg
1234
1569
  * AT INJECTION TIME, never at runtime.
1235
1570
  *
1236
1571
  * Internals lean on `createSelectionController` from
1237
- * `@cngx/core/utils` for membership tracking — the controller's
1572
+ * `@cngx/core/utils` for membership tracking - the controller's
1238
1573
  * stable per-value `isSelected` signals (memoised by key) let leaves
1239
1574
  * read membership inside their own `computed()` without triggering a
1240
1575
  * fresh array walk on every change-detection pass.
1241
1576
  *
1242
1577
  * `value` is a structural alias of `selectedValues` so the group
1243
1578
  * satisfies `CngxControlValue<T[]>` without owning two synchronised
1244
- * models — both names point to the same `ModelSignal<T[]>` instance.
1579
+ * models - both names point to the same `ModelSignal<T[]>` instance.
1245
1580
  *
1246
1581
  * ```html
1247
1582
  * <cngx-button-multi-toggle-group label="Filters" [(selectedValues)]="filters">
@@ -1250,6 +1585,19 @@ declare const CNGX_BUTTON_MULTI_TOGGLE_GROUP: InjectionToken<CngxButtonMultiTogg
1250
1585
  * <button cngxButtonToggle value="archived">Archived</button>
1251
1586
  * </cngx-button-multi-toggle-group>
1252
1587
  * ```
1588
+ *
1589
+ * @category common/interactive
1590
+ * @docsKind primary
1591
+ * @wcag AA
1592
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/button-toggle/button-multi-toggle-group.component.ts
1593
+ * @selector cngx-button-multi-toggle-group
1594
+ * @since 0.1.0
1595
+ * @relatedTo CngxButtonToggle, CngxButtonToggleGroup
1596
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/multi-group/basic-multi-filter-toolbar</example-url>
1597
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/multi-group/disabled-group-cascade-vs-per-toggle</example-url>
1598
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1599
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1600
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1253
1601
  */
1254
1602
  declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMultiToggleGroupContract<T>, CngxControlValue<T[]>, CngxFormFieldControl {
1255
1603
  readonly selectedValues: _angular_core.ModelSignal<T[]>;
@@ -1259,7 +1607,7 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
1259
1607
  /**
1260
1608
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1261
1609
  * so external integrations (RF/Signal-Forms bridges, custom validity
1262
- * adapters) can drive it without a parallel API path — consumers
1610
+ * adapters) can drive it without a parallel API path - consumers
1263
1611
  * typically read only.
1264
1612
  */
1265
1613
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -1303,9 +1651,10 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
1303
1651
  * disabled propagation to the form-submission engine).
1304
1652
  *
1305
1653
  * Injects EITHER `CNGX_BUTTON_TOGGLE_GROUP` (single, radiogroup) OR
1306
- * `CNGX_BUTTON_MULTI_TOGGLE_GROUP` (multi, toolbar) — never the
1307
- * concrete group class — both with `{ optional: true }`. Exactly one
1308
- * parent must be present; the constructor throws when both or
1654
+ * `CNGX_BUTTON_MULTI_TOGGLE_GROUP` (multi, toolbar) - never the
1655
+ * concrete group class - both with `{ optional: true }`.
1656
+ *
1657
+ * Exactly one parent must be present; the constructor throws when both or
1309
1658
  * neither resolve. The resolved parent is stored as a discriminated
1310
1659
  * union (`{ mode: 'single' | 'multi'; group }`) so every downstream
1311
1660
  * branch narrows without non-null assertions.
@@ -1317,11 +1666,11 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
1317
1666
  * - the activation contract (single: `group.value.set(...)`; multi:
1318
1667
  * `group.toggle(...)`),
1319
1668
  * - whether `(focus)` consumes the parent's pending arrow-select
1320
- * flag (single only — multi follows toolbar APG, which does not
1669
+ * flag (single only - multi follows toolbar APG, which does not
1321
1670
  * auto-select on arrow nav).
1322
1671
  *
1323
- * Mode is **static** per atom instance — there is no runtime
1324
- * `[selectionMode]` flag. Per `feedback_select_family_split`,
1672
+ * Mode is **static** per atom instance.
1673
+ * There is no runtime `[selectionMode]` flag. Per `feedback_select_family_split`,
1325
1674
  * single + multi are two distinct groups reusing this leaf; the
1326
1675
  * decision is made by the consumer at template-authoring time.
1327
1676
  *
@@ -1330,26 +1679,38 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
1330
1679
  * navigation in either parent group skips per-toggle-disabled leaves
1331
1680
  * automatically.
1332
1681
  *
1333
- * **Group-disabled cascade vs roving (accepted debt).** The
1334
- * group-level `[disabled]` cascade short-circuits `handleSelect` /
1682
+ * **Group-disabled cascade vs roving.**
1683
+ * Thev group-level `[disabled]` cascade short-circuits `handleSelect` /
1335
1684
  * `handleKeydown` / `handleFocus` (see `toggleDisabled` computed),
1336
- * but does NOT propagate into `CngxRovingItem.disabled` — Angular
1337
- * forbids re-binding a host-directive's read-only `InputSignal`
1685
+ * but does NOT propagate into `CngxRovingItem.disabled`.
1686
+ * Angular forbids re-binding a host-directive's read-only `InputSignal`
1338
1687
  * input from a wrapping host. As a result, a fully-disabled group
1339
1688
  * lets visual focus transit through its toggles via Arrow keys;
1340
- * every selection pathway short-circuits silently. Behaviour mirrors
1341
- * `CngxRadio`; tracked in `form-primitives-accepted-debt.md §4`.
1689
+ * every selection pathway short-circuits silently.
1342
1690
  * Re-evaluation is gated on `CngxRovingItem.disabled` becoming a
1343
1691
  * writable surface in `@cngx/common/a11y`.
1344
1692
  *
1345
1693
  * **Disabled "why" via aria-describedby.** Pillar 2 requires
1346
1694
  * disabled state to communicate a reason. The leaf exposes
1347
- * `[describedBy]` (alias `cngxDescribedBy`) — a reactive input that
1348
- * binds to the host's `aria-describedby`. Consumers render the
1695
+ * `[describedBy]` (alias `cngxDescribedBy`).
1696
+ * A reactive input that binds to the host's `aria-describedby`. Consumers render the
1349
1697
  * description element themselves and pass its id; the directive does
1350
1698
  * not own a sr-only span (it is a `@Directive` on a native
1351
- * `<button>` — no template to inject siblings into). Native
1352
- * `<button aria-describedby>` semantics apply.
1699
+ * `<button>` - no template to inject siblings into).
1700
+ * Native `<button aria-describedby>` semantics apply.
1701
+ *
1702
+ * @category common/interactive
1703
+ * @docsKind primary
1704
+ * @wcag AA
1705
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/button-toggle/button-toggle.directive.ts
1706
+ * @selector button[cngxButtonToggle]
1707
+ * @since 0.1.0
1708
+ * @relatedTo CngxButtonToggleGroup, CngxButtonMultiToggleGroup, CngxRadio
1709
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/multi-group/basic-multi-filter-toolbar</example-url>
1710
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/multi-group/disabled-group-cascade-vs-per-toggle</example-url>
1711
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/group/basic-view-switcher</example-url>
1712
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/group/disabled-group-cascade-vs-per-toggle</example-url>
1713
+ * <example-url>http://localhost:4200/#/common/interactive/button-toggle/group/vertical-orientation</example-url>
1353
1714
  */
1354
1715
  declare class CngxButtonToggle<T = unknown> {
1355
1716
  private readonly resolved;
@@ -1358,8 +1719,8 @@ declare class CngxButtonToggle<T = unknown> {
1358
1719
  readonly describedBy: _angular_core.InputSignal<string | null>;
1359
1720
  protected readonly toggleChecked: _angular_core.Signal<boolean>;
1360
1721
  protected readonly toggleDisabled: _angular_core.Signal<boolean>;
1361
- protected readonly ariaChecked: _angular_core.Signal<"false" | "true" | null>;
1362
- protected readonly ariaSelected: _angular_core.Signal<"false" | "true" | null>;
1722
+ protected readonly ariaChecked: _angular_core.Signal<"true" | "false" | null>;
1723
+ protected readonly ariaSelected: _angular_core.Signal<"true" | "false" | null>;
1363
1724
  protected handleFocus(): void;
1364
1725
  protected handleSelect(): void;
1365
1726
  protected handleKeydown(event: Event): void;
@@ -1375,6 +1736,10 @@ declare class CngxButtonToggle<T = unknown> {
1375
1736
  * value-equality check (`group.value() === radio.value()`) both
1376
1737
  * have access to the leaf without injecting the concrete radio
1377
1738
  * class.
1739
+ *
1740
+ * @category common/interactive
1741
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/radio/radio-group.token.ts
1742
+ * @since 0.1.0
1378
1743
  */
1379
1744
  interface CngxRadioRegistration<T = unknown> {
1380
1745
  readonly id: string;
@@ -1394,9 +1759,13 @@ interface CngxRadioRegistration<T = unknown> {
1394
1759
  * read-only `Signal<boolean>` projected from the group's own
1395
1760
  * `model<boolean>`; leaves combine it with their own per-radio
1396
1761
  * `disabled()` to compute `radioDisabled`. `name` is the HTML
1397
- * `name` attribute applied to all radio inputs in this group —
1762
+ * `name` attribute applied to all radio inputs in this group -
1398
1763
  * defaults to a `nextUid('cngx-radio-group')` value when the
1399
1764
  * consumer does not supply one.
1765
+ *
1766
+ * @category common/interactive
1767
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/radio/radio-group.token.ts
1768
+ * @since 0.1.0
1400
1769
  */
1401
1770
  interface CngxRadioGroupContract<T = unknown> {
1402
1771
  readonly value: ModelSignal<T | undefined>;
@@ -1406,7 +1775,7 @@ interface CngxRadioGroupContract<T = unknown> {
1406
1775
  unregister(id: string): void;
1407
1776
  /**
1408
1777
  * Consume the group's "last interaction was a roving-arrow keydown"
1409
- * flag. Called by a leaf's `(focus)` handler — when the flag is
1778
+ * flag. Called by a leaf's `(focus)` handler - when the flag is
1410
1779
  * true, the leaf forwards its value to the group's `value` model
1411
1780
  * (W3C APG auto-select-on-arrow-nav semantics) and the flag is
1412
1781
  * cleared so a subsequent Tab-into focus does not double-select.
@@ -1419,8 +1788,13 @@ interface CngxRadioGroupContract<T = unknown> {
1419
1788
  * DI token a `CngxRadio` leaf injects to find its parent group.
1420
1789
  * Always provided via
1421
1790
  * `{ provide: CNGX_RADIO_GROUP, useExisting: CngxRadioGroup }`
1422
- * — never via concrete-class injection (per
1791
+ * - never via concrete-class injection (per
1423
1792
  * `reference_atomic_decompose` §4).
1793
+ *
1794
+ * @category common/interactive
1795
+ * @wcag AA
1796
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/radio/radio-group.token.ts
1797
+ * @since 0.1.0
1424
1798
  */
1425
1799
  declare const CNGX_RADIO_GROUP: InjectionToken<CngxRadioGroupContract<unknown>>;
1426
1800
 
@@ -1430,7 +1804,7 @@ declare const CNGX_RADIO_GROUP: InjectionToken<CngxRadioGroupContract<unknown>>;
1430
1804
  * `CNGX_RADIO_GROUP`. The group composes `CngxRovingTabindex` as a
1431
1805
  * host directive (with `inputs: ['orientation']` exposed) so arrow-
1432
1806
  * key navigation across radios is wired from day one. Leaf
1433
- * registration is imperative — `register()` / `unregister()` keep a
1807
+ * registration is imperative - `register()` / `unregister()` keep a
1434
1808
  * Map in declaration order so the group can resolve the active
1435
1809
  * radio by id without re-querying content children on every change
1436
1810
  * detection cycle.
@@ -1453,7 +1827,7 @@ declare const CNGX_RADIO_GROUP: InjectionToken<CngxRadioGroupContract<unknown>>;
1453
1827
  * (plain field write) and value-set (signal write inside a DOM
1454
1828
  * event handler, not an effect) are both legal under the pillar
1455
1829
  * rules. Tab-into-group fires focus without a preceding arrow
1456
- * keydown, so the flag stays false and no auto-select happens —
1830
+ * keydown, so the flag stays false and no auto-select happens -
1457
1831
  * Tab leaves the consumer's `value` untouched.
1458
1832
  *
1459
1833
  * ```html
@@ -1463,6 +1837,21 @@ declare const CNGX_RADIO_GROUP: InjectionToken<CngxRadioGroupContract<unknown>>;
1463
1837
  * <cngx-radio value="invoice" disabled>Invoice</cngx-radio>
1464
1838
  * </cngx-radio-group>
1465
1839
  * ```
1840
+ *
1841
+ * @category common/interactive
1842
+ * @docsKind primary
1843
+ * @wcag AA
1844
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/radio/radio-group.component.ts
1845
+ * @selector cngx-radio-group
1846
+ * @since 0.1.0
1847
+ * @relatedTo CngxRadio, CngxButtonToggleGroup, CngxChipGroup
1848
+ * <example-url>http://localhost:4200/#/common/interactive/radio/basic-vertical-group</example-url>
1849
+ * <example-url>http://localhost:4200/#/common/interactive/radio/custom-dot-glyph</example-url>
1850
+ * <example-url>http://localhost:4200/#/common/interactive/radio/disabled-group-cascades-per-radio-overrides</example-url>
1851
+ * <example-url>http://localhost:4200/#/common/interactive/radio/orientation-horizontal</example-url>
1852
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1853
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1854
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1466
1855
  */
1467
1856
  declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>, CngxControlValue<T | undefined>, CngxFormFieldControl {
1468
1857
  readonly value: _angular_core.ModelSignal<T | undefined>;
@@ -1471,7 +1860,7 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
1471
1860
  /**
1472
1861
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1473
1862
  * so external integrations (RF/Signal-Forms bridges, custom validity
1474
- * adapters) can drive it without a parallel API path — consumers
1863
+ * adapters) can drive it without a parallel API path - consumers
1475
1864
  * typically read only.
1476
1865
  */
1477
1866
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -1501,6 +1890,7 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
1501
1890
  private readonly fieldHost;
1502
1891
  private readonly aggregator;
1503
1892
  readonly errorState: _angular_core.Signal<boolean>;
1893
+ constructor();
1504
1894
  register(radio: CngxRadioRegistration<T>): void;
1505
1895
  unregister(id: string): void;
1506
1896
  consumePendingArrowSelect(value: T): boolean;
@@ -1508,35 +1898,35 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
1508
1898
  protected handleFocusIn(): void;
1509
1899
  protected handleFocusOut(): void;
1510
1900
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRadioGroup<any>, never>;
1511
- 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: { "orientation": "orientation"; }; outputs: {}; }]>;
1901
+ 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: {}; }]>;
1512
1902
  }
1513
1903
 
1514
1904
  /**
1515
1905
  * Single radio leaf. Injects the parent group via `CNGX_RADIO_GROUP`
1516
1906
  * (token, never the concrete `CngxRadioGroup` class) and writes
1517
1907
  * `group.value.set(this.value())` when the user picks it. The leaf
1518
- * does not own a value of its own — `value` is a required `input<T>`
1908
+ * does not own a value of its own - `value` is a required `input<T>`
1519
1909
  * supplied by the consumer; checked-ness is derived from
1520
1910
  * `group.value() === this.value()`.
1521
1911
  *
1522
1912
  * Composes `CngxRovingItem` as a host directive with input
1523
1913
  * forwarding (`'cngxRovingItemDisabled: disabled'`) so the
1524
1914
  * consumer's `[disabled]` binding flows into both the radio's
1525
- * own `disabled` model AND the roving directive's skip-test —
1915
+ * own `disabled` model AND the roving directive's skip-test -
1526
1916
  * arrow-key navigation in the parent group (driven by
1527
1917
  * `CngxRovingTabindex`) skips per-radio-disabled leaves
1528
1918
  * automatically. Group-level `[disabled]` is a separate cascade
1529
1919
  * via `radioDisabled = computed(() => group.disabled() ||
1530
1920
  * disabled())`; it blocks click + Space/Enter + auto-select
1531
1921
  * (`consumePendingArrowSelect` returns false when the group is
1532
- * disabled) but is NOT forwarded to roving — a fully-disabled
1922
+ * disabled) but is NOT forwarded to roving - a fully-disabled
1533
1923
  * group lets focus transit visually while every selection
1534
1924
  * pathway short-circuits.
1535
1925
  *
1536
1926
  * Selection on click, Space, or Enter (auto-select also fires
1537
1927
  * on arrow nav via `consumePendingArrowSelect`); Tab and
1538
1928
  * programmatic focus do not select on focus alone (W3C APG
1539
- * variant — the parent group's keyboard contract makes this
1929
+ * variant - the parent group's keyboard contract makes this
1540
1930
  * explicit).
1541
1931
  *
1542
1932
  * The `[attr.name]` host binding is **cosmetic** (parity with
@@ -1544,6 +1934,21 @@ declare class CngxRadioGroup<T = unknown> implements CngxRadioGroupContract<T>,
1544
1934
  * the `<div role="radio">` host does not participate in HTML
1545
1935
  * form submission, so the attribute carries no functional
1546
1936
  * weight.
1937
+ *
1938
+ * @category common/interactive
1939
+ * @docsKind primary
1940
+ * @wcag AA
1941
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/radio/radio.component.ts
1942
+ * @selector cngx-radio
1943
+ * @since 0.1.0
1944
+ * @relatedTo CngxRadioGroup, CngxButtonToggle, CngxChipInGroup
1945
+ * <example-url>http://localhost:4200/#/common/interactive/radio/basic-vertical-group</example-url>
1946
+ * <example-url>http://localhost:4200/#/common/interactive/radio/custom-dot-glyph</example-url>
1947
+ * <example-url>http://localhost:4200/#/common/interactive/radio/disabled-group-cascades-per-radio-overrides</example-url>
1948
+ * <example-url>http://localhost:4200/#/common/interactive/radio/orientation-horizontal</example-url>
1949
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
1950
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
1951
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1547
1952
  */
1548
1953
  declare class CngxRadio<T = unknown> {
1549
1954
  protected readonly group: CngxRadioGroupContract<T>;
@@ -1567,8 +1972,8 @@ declare class CngxRadio<T = unknown> {
1567
1972
  /**
1568
1973
  * Parent contract every chip-group molecule (`CngxChipGroup` single,
1569
1974
  * `CngxMultiChipGroup` multi) provides via `useExisting`.
1570
- * `CngxChipInGroup` leaves inject this token (NOT optional) — never
1571
- * the concrete group class — so the leaf stays decompose-ready and
1975
+ * `CngxChipInGroup` leaves inject this token (NOT optional) - never
1976
+ * the concrete group class - so the leaf stays decompose-ready and
1572
1977
  * free of cyclic type dependencies, and the Phase 5 split between
1573
1978
  * single + multi groups can share the same leaf implementation.
1574
1979
  *
@@ -1576,7 +1981,7 @@ declare class CngxRadio<T = unknown> {
1576
1981
  * `toggle(value)` / `remove(value)`. `isDisabled` is a
1577
1982
  * `Signal<boolean>` so the leaf's reactive `aria-disabled` and the
1578
1983
  * disabled-cascade derivation track it without re-injection. Per
1579
- * `reference_atomic_decompose` §4 — leaf communicates with its
1984
+ * `reference_atomic_decompose` §4 - leaf communicates with its
1580
1985
  * parent via DI token, never via concrete parent-class injection.
1581
1986
  *
1582
1987
  * Mode (single vs multi) is intentionally NOT exposed on this
@@ -1584,6 +1989,10 @@ declare class CngxRadio<T = unknown> {
1584
1989
  * consumer / bridge surface in scope reads it. A future feature
1585
1990
  * that needs mode discovery can extend the interface then; until
1586
1991
  * then the field stays out of the public surface.
1992
+ *
1993
+ * @category common/interactive
1994
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/chip-group/chip-group-host.token.ts
1995
+ * @since 0.1.0
1587
1996
  */
1588
1997
  interface CngxChipGroupHost<T = unknown> {
1589
1998
  isSelected(value: T): boolean;
@@ -1594,20 +2003,25 @@ interface CngxChipGroupHost<T = unknown> {
1594
2003
  /**
1595
2004
  * DI token a `CngxChipInGroup` leaf injects to find its parent chip
1596
2005
  * group. Always provided via
1597
- * `{ provide: CNGX_CHIP_GROUP_HOST, useExisting: <Self> }` — never
2006
+ * `{ provide: CNGX_CHIP_GROUP_HOST, useExisting: <Self> }` - never
1598
2007
  * via concrete-class injection. Required (NOT optional) on the leaf
1599
2008
  * side: a leaf without a parent throws `NullInjectorError` at
1600
- * construction (fail-fast — silent dual-source-of-truth would be
2009
+ * construction (fail-fast - silent dual-source-of-truth would be
1601
2010
  * worse).
1602
2011
  *
1603
2012
  * Standalone chips outside any group use `[cngxChipInteraction]`
1604
2013
  * instead, which provides `CNGX_CONTROL_VALUE` directly without ever
1605
2014
  * touching this token.
2015
+ *
2016
+ * @category common/interactive
2017
+ * @wcag AA
2018
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/chip-group/chip-group-host.token.ts
2019
+ * @since 0.1.0
1606
2020
  */
1607
2021
  declare const CNGX_CHIP_GROUP_HOST: InjectionToken<CngxChipGroupHost<unknown>>;
1608
2022
 
1609
2023
  /**
1610
- * Standalone interactive chip — applies onto `<cngx-chip>` from
2024
+ * Standalone interactive chip - applies onto `<cngx-chip>` from
1611
2025
  * `@cngx/common/display` and wires `role="option"` selection
1612
2026
  * semantics with a local-owned form-bound boolean. Provides
1613
2027
  * `CNGX_CONTROL_VALUE` so `CngxFormBridge` (Phase 7) can adapt it
@@ -1617,7 +2031,7 @@ declare const CNGX_CHIP_GROUP_HOST: InjectionToken<CngxChipGroupHost<unknown>>;
1617
2031
  * **Use this when** the chip stands alone (e.g. a removable filter
1618
2032
  * tag, a single suggestion chip outside any chip-group). For chips
1619
2033
  * inside a `<cngx-chip-group>` / `<cngx-multi-chip-group>`, use
1620
- * `[cngxChipInGroup]` instead — that variant derives `selected`
2034
+ * `[cngxChipInGroup]` instead - that variant derives `selected`
1621
2035
  * from the parent's selection controller as a `computed()`,
1622
2036
  * eliminating the dual-source-of-truth a local model would create.
1623
2037
  * A dev-mode guard (via `afterNextRender`) throws if a standalone
@@ -1636,7 +2050,7 @@ declare const CNGX_CHIP_GROUP_HOST: InjectionToken<CngxChipGroupHost<unknown>>;
1636
2050
  * **A11y.** `role="option"` + reactive `aria-selected`,
1637
2051
  * `aria-disabled`, and `tabindex` (-1 when disabled, 0 otherwise).
1638
2052
  * Click + Space + Enter toggle. Backspace + Delete fire
1639
- * `removeRequest` — an output, NOT a state mutation. The consumer
2053
+ * `removeRequest` - an output, NOT a state mutation. The consumer
1640
2054
  * decides whether removing the chip means dropping it from a list,
1641
2055
  * deselecting, or something else.
1642
2056
  *
@@ -1649,7 +2063,7 @@ declare const CNGX_CHIP_GROUP_HOST: InjectionToken<CngxChipGroupHost<unknown>>;
1649
2063
  *
1650
2064
  * **Disabled "why".** When `disabledReason` is set, the directive
1651
2065
  * appends a hidden span to the host via `Renderer2` (always-in-DOM
1652
- * per Pillar 2 — the id stays stable across renders). When
2066
+ * per Pillar 2 - the id stays stable across renders). When
1653
2067
  * `disabledReason` is empty, consumers may still pass a custom id
1654
2068
  * via `cngxDescribedBy` and the `aria-describedby` host binding
1655
2069
  * routes to that. The two paths are mutually exclusive: a non-empty
@@ -1671,15 +2085,28 @@ declare const CNGX_CHIP_GROUP_HOST: InjectionToken<CngxChipGroupHost<unknown>>;
1671
2085
  * cngxDescribedBy="chip-locked-reason"
1672
2086
  * >{{ tag }}</cngx-chip>
1673
2087
  * ```
2088
+ *
2089
+ * @category common/interactive
2090
+ * @docsKind primary
2091
+ * @wcag AA
2092
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/chip-interaction/chip-interaction.directive.ts
2093
+ * @since 0.1.0
2094
+ * @relatedTo CngxChipInGroup, CngxChipGroup, CngxMultiChipGroup, CngxChipInput
2095
+ * <example-url>http://localhost:4200/#/common/interactive/chip/interaction/basic-toggle-on-click-space-or-enter</example-url>
2096
+ * <example-url>http://localhost:4200/#/common/interactive/chip/interaction/disabled-state</example-url>
2097
+ * <example-url>http://localhost:4200/#/common/interactive/chip/interaction/removable-with-removerequest-on-backspace-delete</example-url>
2098
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
2099
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
2100
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1674
2101
  */
1675
2102
  declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boolean>, CngxFormFieldControl {
1676
2103
  /**
1677
- * Chip payload — required identifier the consumer associates with
2104
+ * Chip payload - required identifier the consumer associates with
1678
2105
  * this chip (e.g. a tag string, filter id, entity reference). The
1679
2106
  * directive does not inspect or compare it; it is forwarded to
1680
2107
  * `(removeRequest)` listeners and visible in the DOM via the
1681
2108
  * consumer's own bindings. Aliased so consumers write `[value]="x"`
1682
- * — see naming note in the class JSDoc.
2109
+ * - see naming note in the class JSDoc.
1683
2110
  */
1684
2111
  readonly chipValue: _angular_core.InputSignal<T>;
1685
2112
  /**
@@ -1693,7 +2120,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1693
2120
  /**
1694
2121
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1695
2122
  * so external integrations (RF/Signal-Forms bridges, custom validity
1696
- * adapters) can drive it without a parallel API path — consumers
2123
+ * adapters) can drive it without a parallel API path - consumers
1697
2124
  * typically read only.
1698
2125
  */
1699
2126
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -1702,7 +2129,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1702
2129
  * rendered by `<cngx-form-field>` or a consumer-owned `<span>`).
1703
2130
  * When set, the host emits `aria-errormessage="<id>"` so AT can
1704
2131
  * locate the message; consumers MUST render an element with that id
1705
- * — passing an id without a matching element produces a dangling
2132
+ * - passing an id without a matching element produces a dangling
1706
2133
  * AT reference. Default `null` skips the attribute entirely.
1707
2134
  * Note: WAI-ARIA dictates that AT ignores this attribute when
1708
2135
  * `aria-invalid` is absent or `"false"`, so a stable always-emitted
@@ -1720,14 +2147,14 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1720
2147
  * internal disabled-reason id when `disabledReason` is set.
1721
2148
  */
1722
2149
  readonly describedBy: _angular_core.InputSignal<string | null>;
1723
- /** Fires on Backspace/Delete keydown — consumer owns the removal. */
2150
+ /** Fires on Backspace/Delete keydown - consumer owns the removal. */
1724
2151
  readonly removeRequest: _angular_core.OutputEmitterRef<void>;
1725
2152
  private readonly describedId;
1726
2153
  protected readonly resolvedDescribedBy: _angular_core.Signal<string | null>;
1727
2154
  readonly id: _angular_core.Signal<string>;
1728
2155
  private readonly focusedState;
1729
2156
  readonly focused: _angular_core.Signal<boolean>;
1730
- /** Empty when the chip is unselected — boolean atom semantics. */
2157
+ /** Empty when the chip is unselected - boolean atom semantics. */
1731
2158
  readonly empty: _angular_core.Signal<boolean>;
1732
2159
  private readonly fieldHost;
1733
2160
  private readonly errorAggregator;
@@ -1743,7 +2170,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1743
2170
  }
1744
2171
 
1745
2172
  /**
1746
- * In-group chip leaf — applies onto `<cngx-chip>` from
2173
+ * In-group chip leaf - applies onto `<cngx-chip>` from
1747
2174
  * `@cngx/common/display` and wires `role="option"` semantics that
1748
2175
  * defer all selection mutations to the surrounding chip-group via
1749
2176
  * `CNGX_CHIP_GROUP_HOST`. Required parent (NOT optional): a
@@ -1754,7 +2181,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1754
2181
  * **No local model.** `selected` is a `computed()` reading
1755
2182
  * `parent.isSelected(value())`; the chip never holds its own
1756
2183
  * selection state. This is the fix for the dual-source-of-truth
1757
- * problem flagged in `cngx-plan-review` (form-primitives §1) — a
2184
+ * problem flagged in `cngx-plan-review` (form-primitives §1) - a
1758
2185
  * single value-flow per directive: the parent's selection
1759
2186
  * controller is canonical, the leaf is a pure projection of it.
1760
2187
  *
@@ -1773,7 +2200,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1773
2200
  * **Group-disabled cascade vs roving (accepted debt §4).** The
1774
2201
  * group-level `[disabled]` cascade short-circuits `handleSelect` /
1775
2202
  * `handleRemove` (see `chipDisabled` computed), but does NOT
1776
- * propagate into `CngxRovingItem.disabled` — Angular forbids
2203
+ * propagate into `CngxRovingItem.disabled` - Angular forbids
1777
2204
  * re-binding a host-directive's read-only `InputSignal`. As a
1778
2205
  * result, a fully-disabled group lets visual focus transit through
1779
2206
  * its chips via Arrow keys; every selection / remove pathway
@@ -1782,7 +2209,7 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1782
2209
  * Re-evaluation is gated on `CngxRovingItem.disabled` becoming a
1783
2210
  * writable surface in `@cngx/common/a11y`.
1784
2211
  *
1785
- * **Disabled "why".** No internal sr-only span — the directive
2212
+ * **Disabled "why".** No internal sr-only span - the directive
1786
2213
  * applies onto a projected `<cngx-chip>` and has no template.
1787
2214
  * Consumers wanting a reason announcement render the description
1788
2215
  * element themselves and pass its id via `[describedBy]`. Same
@@ -1805,6 +2232,18 @@ declare class CngxChipInteraction<T = unknown> implements CngxControlValue<boole
1805
2232
  * }
1806
2233
  * </cngx-multi-chip-group>
1807
2234
  * ```
2235
+ *
2236
+ * @category common/interactive
2237
+ * @docsKind primary
2238
+ * @wcag AA
2239
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/chip-in-group/chip-in-group.directive.ts
2240
+ * @since 0.1.0
2241
+ * @relatedTo CngxChipGroup, CngxMultiChipGroup, CngxChipInteraction
2242
+ * <example-url>http://localhost:4200/#/common/interactive/chip/group/basic-pick-exactly-one-size</example-url>
2243
+ * <example-url>http://localhost:4200/#/common/interactive/chip/multi-group/multi-select-chips-with-selection-count</example-url>
2244
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
2245
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
2246
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1808
2247
  */
1809
2248
  declare class CngxChipInGroup<T = unknown> {
1810
2249
  protected readonly parent: CngxChipGroupHost<T>;
@@ -1831,19 +2270,19 @@ declare class CngxChipInGroup<T = unknown> {
1831
2270
  * Mode is **static** per `feedback_select_family_split`: this is the
1832
2271
  * single-select half of a deliberate split. Consumers pick
1833
2272
  * `<cngx-chip-group>` for single-pick semantics or
1834
- * `<cngx-multi-chip-group>` for multi-pick semantics — never a
2273
+ * `<cngx-multi-chip-group>` for multi-pick semantics - never a
1835
2274
  * runtime `[selectionMode]` flag.
1836
2275
  *
1837
2276
  * `value` is a structural alias of `selected` so the group satisfies
1838
2277
  * `CngxControlValue<T | undefined>` without owning two synchronised
1839
- * models — both names point to the same `ModelSignal<T | undefined>`
2278
+ * models - both names point to the same `ModelSignal<T | undefined>`
1840
2279
  * instance. Mirrors `CngxCheckboxGroup`'s `selectedValues` / `value`
1841
2280
  * pairing.
1842
2281
  *
1843
2282
  * `[state]` accepts `CngxAsyncState<unknown>` for async-loaded chip
1844
2283
  * lists; reactively drives `aria-busy` so AT announces the busy
1845
2284
  * moment without consumer wiring. Slot directives for
1846
- * skeleton/empty/error are deferred — the harmonized Phase 3-4 group
2285
+ * skeleton/empty/error are deferred - the harmonized Phase 3-4 group
1847
2286
  * surface ships only the `aria-busy` projection of `[state]`, and
1848
2287
  * chip-group follows that precedent for cross-family consistency
1849
2288
  * (plan deviation 2026-05-01: skeleton/empty/error slot directives
@@ -1851,9 +2290,9 @@ declare class CngxChipInGroup<T = unknown> {
1851
2290
  * cross-family harmonization pass).
1852
2291
  *
1853
2292
  * Per Pillar 1 (Ableitung statt Verwaltung), `aria-busy` is a
1854
- * `computed()` from `state.status()` — never a manual write. Per
2293
+ * `computed()` from `state.status()` - never a manual write. Per
1855
2294
  * Pillar 3 (Komposition statt Konfiguration), the group composes
1856
- * `CngxRovingTabindex` and emits no implicit children — consumers
2295
+ * `CngxRovingTabindex` and emits no implicit children - consumers
1857
2296
  * project chip rows themselves.
1858
2297
  *
1859
2298
  * ```html
@@ -1863,6 +2302,18 @@ declare class CngxChipInGroup<T = unknown> {
1863
2302
  * <cngx-chip cngxChipInGroup [value]="'lg'">Large</cngx-chip>
1864
2303
  * </cngx-chip-group>
1865
2304
  * ```
2305
+ *
2306
+ * @category common/interactive
2307
+ * @docsKind primary
2308
+ * @wcag AA
2309
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/chip-group/chip-group.component.ts
2310
+ * @selector cngx-chip-group
2311
+ * @since 0.1.0
2312
+ * @relatedTo CngxMultiChipGroup, CngxChipInGroup, CngxChipInteraction, CngxRadioGroup
2313
+ * <example-url>http://localhost:4200/#/common/interactive/chip/group/basic-pick-exactly-one-size</example-url>
2314
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
2315
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
2316
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1866
2317
  */
1867
2318
  declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefined>, CngxChipGroupHost<T>, CngxFormFieldControl {
1868
2319
  readonly selected: _angular_core.ModelSignal<T | undefined>;
@@ -1872,7 +2323,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1872
2323
  /**
1873
2324
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1874
2325
  * so external integrations (RF/Signal-Forms bridges, custom validity
1875
- * adapters) can drive it without a parallel API path — consumers
2326
+ * adapters) can drive it without a parallel API path - consumers
1876
2327
  * typically read only.
1877
2328
  */
1878
2329
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -1888,7 +2339,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1888
2339
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
1889
2340
  readonly label: _angular_core.InputSignal<string | undefined>;
1890
2341
  readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
1891
- /** CngxChipGroupHost — leaf-side cascade source. */
2342
+ /** CngxChipGroupHost - leaf-side cascade source. */
1892
2343
  readonly isDisabled: _angular_core.ModelSignal<boolean>;
1893
2344
  protected readonly ariaBusy: _angular_core.Signal<boolean>;
1894
2345
  isSelected(value: T): boolean;
@@ -1921,7 +2372,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1921
2372
  * multi-select half of the chip-group split.
1922
2373
  *
1923
2374
  * Internals lean on `createSelectionController` from `@cngx/core/utils`
1924
- * for membership tracking — the controller's structural-equality
2375
+ * for membership tracking - the controller's structural-equality
1925
2376
  * `selected` snapshot prevents downstream computed cascades from
1926
2377
  * thrashing when a re-emission produces the same logical contents
1927
2378
  * with a different array reference. Mirrors `CngxCheckboxGroup`'s
@@ -1929,7 +2380,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1929
2380
  *
1930
2381
  * `value` is a structural alias of `selectedValues` so the group
1931
2382
  * satisfies `CngxControlValue<T[]>` without owning two synchronised
1932
- * models — both names point to the same `ModelSignal<T[]>` instance.
2383
+ * models - both names point to the same `ModelSignal<T[]>` instance.
1933
2384
  *
1934
2385
  * `[keyFn]` lets consumers with object-typed values map each value
1935
2386
  * to a stable membership key (typically `(v) => v.id`). Without it,
@@ -1937,7 +2388,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1937
2388
  *
1938
2389
  * `[state]` accepts `CngxAsyncState<unknown>` for async-loaded chip
1939
2390
  * lists; reactively drives `aria-busy`. Slot directives for
1940
- * skeleton/empty/error are deferred — the harmonized Phase 3-4 group
2391
+ * skeleton/empty/error are deferred - the harmonized Phase 3-4 group
1941
2392
  * surface ships only the `aria-busy` projection of `[state]`, and
1942
2393
  * chip-group follows that precedent for cross-family consistency
1943
2394
  * (plan deviation 2026-05-01: see `CngxChipGroup` JSDoc).
@@ -1947,7 +2398,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1947
2398
  * NOT `createChipStripRoving`. The strip-roving controller would solve
1948
2399
  * clamp-on-removal automatically but its tabindex contract requires
1949
2400
  * the parent to bind `[attr.tabindex]` per chip wrapper at the
1950
- * template level — which a content-projected `CngxChipInGroup` leaf
2401
+ * template level - which a content-projected `CngxChipInGroup` leaf
1951
2402
  * model does not allow. Tracked in `form-primitives-accepted-debt §5`;
1952
2403
  * UX consequence is a one-shot focus reset to index 0 after
1953
2404
  * mid-strip removal, instead of clamping to the next valid sibling.
@@ -1956,7 +2407,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1956
2407
  * `createChipRemovalHandler` from `@cngx/forms/select` would drive
1957
2408
  * the remove path. That import is a layer violation
1958
2409
  * (`@cngx/common/interactive` is Level 2; `@cngx/forms/select` is
1959
- * Level 3). Removal here is a thin `controller.deselect(value)` —
2410
+ * Level 3). Removal here is a thin `controller.deselect(value)` -
1960
2411
  * the WeakMap-closure-cache machinery in the select-family handler
1961
2412
  * targets `ngTemplateOutlet` chip-slot stability, which content-
1962
2413
  * projected chip-in-group leaves do not exhibit.
@@ -1964,7 +2415,7 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1964
2415
  * Per Pillar 1 (Ableitung statt Verwaltung), `aria-busy` is a
1965
2416
  * `computed()` from `state.status()`. Per Pillar 3 (Komposition
1966
2417
  * statt Konfiguration), the group composes `CngxRovingTabindex` and
1967
- * emits no implicit children — consumers project chip rows themselves.
2418
+ * emits no implicit children - consumers project chip rows themselves.
1968
2419
  *
1969
2420
  * ```html
1970
2421
  * <cngx-multi-chip-group label="Tags" [(selectedValues)]="tags">
@@ -1973,6 +2424,18 @@ declare class CngxChipGroup<T = unknown> implements CngxControlValue<T | undefin
1973
2424
  * }
1974
2425
  * </cngx-multi-chip-group>
1975
2426
  * ```
2427
+ *
2428
+ * @category common/interactive
2429
+ * @docsKind primary
2430
+ * @wcag AA
2431
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/multi-chip-group/multi-chip-group.component.ts
2432
+ * @selector cngx-multi-chip-group
2433
+ * @since 0.1.0
2434
+ * @relatedTo CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction
2435
+ * <example-url>http://localhost:4200/#/common/interactive/chip/multi-group/multi-select-chips-with-selection-count</example-url>
2436
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/coming-in-a-follow-up</example-url>
2437
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/reactive-forms-same-atom-just-bind-formcontrol</example-url>
2438
+ * <example-url>http://localhost:4200/#/forms/field/form-primitives/signal-forms-drop-the-atom-into-cngx-form-field</example-url>
1976
2439
  */
1977
2440
  declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>, CngxChipGroupHost<T>, CngxFormFieldControl {
1978
2441
  readonly selectedValues: _angular_core.ModelSignal<T[]>;
@@ -1982,7 +2445,7 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
1982
2445
  /**
1983
2446
  * Bridge-writable invalid state. `model<boolean>` mirrors `disabled`
1984
2447
  * so external integrations (RF/Signal-Forms bridges, custom validity
1985
- * adapters) can drive it without a parallel API path — consumers
2448
+ * adapters) can drive it without a parallel API path - consumers
1986
2449
  * typically read only.
1987
2450
  */
1988
2451
  readonly invalid: _angular_core.ModelSignal<boolean>;
@@ -1999,11 +2462,11 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
1999
2462
  readonly label: _angular_core.InputSignal<string | undefined>;
2000
2463
  readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
2001
2464
  readonly keyFn: _angular_core.InputSignal<(value: T) => unknown>;
2002
- /** CngxChipGroupHost — leaf-side cascade source. */
2465
+ /** CngxChipGroupHost - leaf-side cascade source. */
2003
2466
  readonly isDisabled: _angular_core.ModelSignal<boolean>;
2004
2467
  private readonly controller;
2005
2468
  protected readonly ariaBusy: _angular_core.Signal<boolean>;
2006
- /** Public membership count — useful for label hints + announcements. */
2469
+ /** Public membership count - useful for label hints + announcements. */
2007
2470
  readonly selectedCount: _angular_core.Signal<number>;
2008
2471
  constructor();
2009
2472
  isSelected(value: T): boolean;
@@ -2029,7 +2492,7 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
2029
2492
  * and on multi-token paste. Pairs naturally with
2030
2493
  * `<cngx-multi-chip-group>` or any consumer-managed chip list.
2031
2494
  *
2032
- * **Validation slot — async-state producer.** The directive provides
2495
+ * **Validation slot - async-state producer.** The directive provides
2033
2496
  * `CNGX_STATEFUL` via `useExisting`, exposing a
2034
2497
  * `ManualAsyncState<string>` slot driven by `[validateToken]`
2035
2498
  * invocations. Bridge directives (`<cngx-toast-on />`,
@@ -2038,20 +2501,20 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
2038
2501
  *
2039
2502
  * State machine: `idle → pending → success | error` per separator-key
2040
2503
  * invocation. Concurrent validations supersede via a monotonic
2041
- * `validationId` — when a second token is entered before the first
2504
+ * `validationId` - when a second token is entered before the first
2042
2505
  * resolves, the first's resolution is dropped and only the latest
2043
2506
  * outcome touches the slot. Mirrors `createCommitController`'s
2044
2507
  * supersede contract.
2045
2508
  *
2046
2509
  * **Removal contract.** `(tokenRemoved)` fires on Backspace at empty
2047
- * input — semantically "user wants to remove the last chip". The
2510
+ * input - semantically "user wants to remove the last chip". The
2048
2511
  * directive does not own the chip list; the consumer drops the last
2049
2512
  * entry from their state in response.
2050
2513
  *
2051
2514
  * **Duplicates.** `[existingTokens]` is read on every separator-key
2052
2515
  * invocation; when `allowDuplicates` is `false` (default), a token
2053
2516
  * already present in the list is silently dropped. The directive
2054
- * does not track a private "previously emitted" set — that would be
2517
+ * does not track a private "previously emitted" set - that would be
2055
2518
  * an unbounded memory leak. Consumers pass their canonical chip
2056
2519
  * list as `[existingTokens]`.
2057
2520
  *
@@ -2073,6 +2536,15 @@ declare class CngxMultiChipGroup<T = unknown> implements CngxControlValue<T[]>,
2073
2536
  * />
2074
2537
  * <cngx-toast-on />
2075
2538
  * ```
2539
+ *
2540
+ * @category common/interactive
2541
+ * @docsKind primary
2542
+ * @wcag AA
2543
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/chip-input/chip-input.directive.ts
2544
+ * @since 0.1.0
2545
+ * @relatedTo CngxMultiChipGroup, CngxChipInteraction, CngxChipInGroup
2546
+ * <example-url>http://localhost:4200/#/common/interactive/chip/input/async-validation-with-supersede-semantics</example-url>
2547
+ * <example-url>http://localhost:4200/#/common/interactive/chip/input/synchronous-tokenization</example-url>
2076
2548
  */
2077
2549
  declare class CngxChipInput implements CngxStateful<string> {
2078
2550
  readonly separators: _angular_core.InputSignal<readonly string[]>;
@@ -2088,7 +2560,7 @@ declare class CngxChipInput implements CngxStateful<string> {
2088
2560
  private readonly errorState;
2089
2561
  private readonly hadSuccess;
2090
2562
  /**
2091
- * Validation slot — `CngxStateful<string>` contract surface. The
2563
+ * Validation slot - `CngxStateful<string>` contract surface. The
2092
2564
  * view is built from raw signals via `buildAsyncStateView` rather
2093
2565
  * than `createManualState` (which lives in `@cngx/common/data`)
2094
2566
  * because `@cngx/common/data → @cngx/common/interactive` already
@@ -2118,16 +2590,20 @@ declare class CngxChipInput implements CngxStateful<string> {
2118
2590
  * `expandedIds`, to selection memoization (`keyFn` consumers), and to the
2119
2591
  * stable-identity `isExpanded(id)` signal cache. A non-stable id (e.g. the
2120
2592
  * path-based fallback from `flattenTree`) silently breaks all three the
2121
- * moment the tree is sorted or filtered — exactly the Sort/Filter
2593
+ * moment the tree is sorted or filtered - exactly the Sort/Filter
2122
2594
  * integration pattern this stack is designed to support. Forcing the
2123
2595
  * caller to think about identity at construction eliminates that whole
2124
2596
  * class of heisenbugs.
2597
+ *
2598
+ * @category common/interactive/tree
2599
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-controller.ts
2600
+ * @since 0.1.0
2125
2601
  */
2126
2602
  interface CngxTreeControllerOptions<T> {
2127
- /** Source tree — the controller re-derives on every change. */
2603
+ /** Source tree - the controller re-derives on every change. */
2128
2604
  readonly nodes: Signal<readonly CngxTreeNode<T>[]>;
2129
2605
  /**
2130
- * Derives a stable id per flat node — must survive re-ordering and
2606
+ * Derives a stable id per flat node - must survive re-ordering and
2131
2607
  * filtering of the source tree. Use a domain id (`(v) => v.id`)
2132
2608
  * rather than a positional fallback.
2133
2609
  *
@@ -2168,8 +2644,8 @@ interface CngxTreeControllerOptions<T> {
2168
2644
  * - No `effect()`, no subscriptions. The only writable slot is the internal
2169
2645
  * expandedIds set; every other accessor is a `computed()` or pure fn.
2170
2646
  * - `isExpanded(id)` returns the SAME `Signal` instance per id across the
2171
- * controller's lifetime — safe to pass into OnPush children without churn.
2172
- * - Controller is a11y-agnostic — adapters like `createTreeAdItems` live
2647
+ * controller's lifetime - safe to pass into OnPush children without churn.
2648
+ * - Controller is a11y-agnostic - adapters like `createTreeAdItems` live
2173
2649
  * in sibling files so `@cngx/core`-level reuse stays clean.
2174
2650
  *
2175
2651
  * ## Reactivity contract
@@ -2177,14 +2653,14 @@ interface CngxTreeControllerOptions<T> {
2177
2653
  *
2178
2654
  * - **Reactive** (`Signal<…>` returners): `flatNodes`, `visibleNodes`,
2179
2655
  * `expandedIds`, `isExpanded(id)`. Bind these in templates and wrap in
2180
- * `computed()` freely — Angular tracks their dependencies automatically.
2656
+ * `computed()` freely - Angular tracks their dependencies automatically.
2181
2657
  *
2182
2658
  * - **Snapshot** (plain-return methods): `findById`, `parentOf`,
2183
2659
  * `firstChildOf`, `childrenOfValue`, `descendantsOfValue`. These read
2184
2660
  * the underlying indexes reactively when called inside a tracked
2185
2661
  * context, but intentionally return raw values rather than signals.
2186
- * They are intended for imperative call-sites — keydown handlers,
2187
- * commit flows, AD-activation dispatch — where the caller wants a
2662
+ * They are intended for imperative call-sites - keydown handlers,
2663
+ * commit flows, AD-activation dispatch - where the caller wants a
2188
2664
  * one-shot lookup, not a subscription. If you *do* call them from
2189
2665
  * inside an `effect()` that should NOT re-fire on tree changes, wrap
2190
2666
  * the call in `untracked(() => ctrl.parentOf(id))`.
@@ -2193,6 +2669,10 @@ interface CngxTreeControllerOptions<T> {
2193
2669
  * All mutators (`expand`, `collapse`, `toggle`, `expandAll`, `collapseAll`)
2194
2670
  * peek at the expansion set via `untracked()` so invoking them from
2195
2671
  * inside an `effect()` never latches that effect onto the expansion set.
2672
+ *
2673
+ * @category common/interactive/tree
2674
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-controller.ts
2675
+ * @since 0.1.0
2196
2676
  */
2197
2677
  interface CngxTreeController<T> {
2198
2678
  /** Flat DFS projection with ARIA metadata + backref to the source node. */
@@ -2208,7 +2688,7 @@ interface CngxTreeController<T> {
2208
2688
  *
2209
2689
  * Returns a fresh array per call. SelectionController's cascade
2210
2690
  * `isIndeterminate` walk invokes `childrenFn` once per tree node on
2211
- * every membership change — a cascade-toggle on a 10k-descendant root
2691
+ * every membership change - a cascade-toggle on a 10k-descendant root
2212
2692
  * triggers O(n) fresh allocations per recompute. Tracked as a perf
2213
2693
  * follow-up: memoize by (tree-version, value-key) if the 10k demo
2214
2694
  * surfaces measurable jitter; spec `tree-controller.spec.ts` carries
@@ -2217,7 +2697,7 @@ interface CngxTreeController<T> {
2217
2697
  childrenOfValue(value: T): T[];
2218
2698
  /**
2219
2699
  * All descendant values (DFS, exclusive of self), for cascade-select.
2220
- * Same allocation caveat as `childrenOfValue` — returns a fresh array;
2700
+ * Same allocation caveat as `childrenOfValue` - returns a fresh array;
2221
2701
  * cascade-select on wide subtrees allocates O(descendants) per call.
2222
2702
  */
2223
2703
  descendantsOfValue(value: T): T[];
@@ -2238,10 +2718,10 @@ interface CngxTreeController<T> {
2238
2718
  parentOf(id: string): FlatTreeNode<T> | undefined;
2239
2719
  firstChildOf(id: string): FlatTreeNode<T> | undefined;
2240
2720
  /**
2241
- * Release the `isExpanded(id)` signal-cache. **Soft contract** — matches
2721
+ * Release the `isExpanded(id)` signal-cache. **Soft contract** - matches
2242
2722
  * `createSelectionController`'s destroy semantics:
2243
2723
  * - New `isExpanded(id)` queries return a shared `Signal<false>` constant.
2244
- * - Existing signal bindings created before destroy keep working — the
2724
+ * - Existing signal bindings created before destroy keep working - the
2245
2725
  * underlying `expandedIds` signal is still live, so downstream updates
2246
2726
  * continue to propagate.
2247
2727
  * - Mutators (`expand` / `collapse` / `toggle` / `expandAll` /
@@ -2254,7 +2734,13 @@ interface CngxTreeController<T> {
2254
2734
  */
2255
2735
  destroy(): void;
2256
2736
  }
2257
- /** Factory signature carried by the DI token. */
2737
+ /**
2738
+ * Factory signature carried by the DI token.
2739
+ *
2740
+ * @category common/interactive/tree
2741
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-controller.ts
2742
+ * @since 0.1.0
2743
+ */
2258
2744
  type CngxTreeControllerFactory = <T>(opts: CngxTreeControllerOptions<T>) => CngxTreeController<T>;
2259
2745
  /**
2260
2746
  * Injection token that resolves the factory used to instantiate a
@@ -2262,8 +2748,12 @@ type CngxTreeControllerFactory = <T>(opts: CngxTreeControllerOptions<T>) => Cngx
2262
2748
  * override via `providers`/`viewProviders` for telemetry wrappers, audit
2263
2749
  * logging, or server-synced expansion state.
2264
2750
  *
2265
- * Symmetrical to `CNGX_SELECTION_CONTROLLER_FACTORY` in `@cngx/core/utils` —
2751
+ * Symmetrical to `CNGX_SELECTION_CONTROLLER_FACTORY` in `@cngx/core/utils` -
2266
2752
  * same override surface, one concern below: tree-aware derived views.
2753
+ *
2754
+ * @category common/interactive/tree
2755
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-controller.ts
2756
+ * @since 0.1.0
2267
2757
  */
2268
2758
  declare const CNGX_TREE_CONTROLLER_FACTORY: InjectionToken<CngxTreeControllerFactory>;
2269
2759
  /**
@@ -2274,6 +2764,10 @@ declare const CNGX_TREE_CONTROLLER_FACTORY: InjectionToken<CngxTreeControllerFac
2274
2764
  *
2275
2765
  * See {@link CngxTreeController} for the returned surface and
2276
2766
  * {@link CngxTreeControllerOptions} for the configuration cascade.
2767
+ *
2768
+ * @category common/interactive/tree
2769
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-controller.ts
2770
+ * @since 0.1.0
2277
2771
  */
2278
2772
  declare function createTreeController<T>(opts: CngxTreeControllerOptions<T>): CngxTreeController<T>;
2279
2773
 
@@ -2284,9 +2778,13 @@ declare function createTreeController<T>(opts: CngxTreeControllerOptions<T>): Cn
2284
2778
  * `CngxTreeController` stays free of the `@cngx/common/a11y` import and
2285
2779
  * can be reused from contexts that do not render through AD.
2286
2780
  *
2287
- * Returns a structurally-equal memoized computed — consumers can pass the
2781
+ * Returns a structurally-equal memoized computed - consumers can pass the
2288
2782
  * signal straight into `[items]="adItems()"` without worrying about cascade
2289
2783
  * re-renders on irrelevant tree re-emissions.
2784
+ *
2785
+ * @category common/interactive/tree
2786
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-ad-items.ts
2787
+ * @since 0.1.0
2290
2788
  */
2291
2789
  declare function createTreeAdItems<T>(ctrl: CngxTreeController<T>): Signal<ActiveDescendantItem[]>;
2292
2790
 
@@ -2308,17 +2806,21 @@ declare function createTreeAdItems<T>(ctrl: CngxTreeController<T>): Signal<Activ
2308
2806
  * Library default (createTreeController / flattenTree)
2309
2807
  * ```
2310
2808
  *
2311
- * All fields are optional — omit the ones you don't need. Typed with
2809
+ * All fields are optional - omit the ones you don't need. Typed with
2312
2810
  * `unknown` T-parameters because config values flow through the DI
2313
2811
  * system where per-instance generics can't be preserved; per-
2314
2812
  * controller options are still properly typed via the call site's
2315
2813
  * `CngxTreeControllerOptions<T>`.
2814
+ *
2815
+ * @category common/interactive/tree
2816
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2817
+ * @since 0.1.0
2316
2818
  */
2317
2819
  interface CngxTreeConfig {
2318
2820
  /**
2319
2821
  * Fallback for `nodeIdFn` when a caller omits it. With a config
2320
2822
  * default set, `CngxTreeControllerOptions.nodeIdFn` becomes
2321
- * effectively optional — the factory throws in dev mode only when
2823
+ * effectively optional - the factory throws in dev mode only when
2322
2824
  * neither place provides a function.
2323
2825
  */
2324
2826
  readonly defaultNodeIdFn?: (value: unknown, path: readonly number[]) => string;
@@ -2327,7 +2829,7 @@ interface CngxTreeConfig {
2327
2829
  /** Fallback for `keyFn`. Library default is identity. */
2328
2830
  readonly defaultKeyFn?: (value: unknown) => unknown;
2329
2831
  /**
2330
- * Bound the `isExpanded(id)` signal cache. Default: unlimited —
2832
+ * Bound the `isExpanded(id)` signal cache. Default: unlimited -
2331
2833
  * keeps the stable-identity guarantee (`isExpanded(v) === isExpanded(v)`
2332
2834
  * always holds for the lifetime of the controller). When set, the
2333
2835
  * cache FIFO-evicts its oldest entry as soon as the size exceeds
@@ -2344,11 +2846,19 @@ interface CngxTreeConfig {
2344
2846
  * DI token carrying the merged {@link CngxTreeConfig}. Defaults to an
2345
2847
  * empty object so consumers who never call {@link provideTreeConfig}
2346
2848
  * see library-default behaviour unchanged.
2849
+ *
2850
+ * @category common/interactive/tree
2851
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2852
+ * @since 0.1.0
2347
2853
  */
2348
2854
  declare const CNGX_TREE_CONFIG: InjectionToken<CngxTreeConfig>;
2349
2855
  /**
2350
- * Feature returned by a `with*` function — merged by
2856
+ * Feature returned by a `with*` function - merged by
2351
2857
  * {@link provideTreeConfig}.
2858
+ *
2859
+ * @category common/interactive/tree
2860
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2861
+ * @since 0.1.0
2352
2862
  */
2353
2863
  interface CngxTreeConfigFeature {
2354
2864
  readonly config: Partial<CngxTreeConfig>;
@@ -2358,23 +2868,43 @@ interface CngxTreeConfigFeature {
2358
2868
  * Use this to enforce a domain id convention across the whole app
2359
2869
  * (e.g. `(v) => (v as { uuid: string }).uuid`) without repeating it
2360
2870
  * at every call site.
2871
+ *
2872
+ * @category common/interactive/tree
2873
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2874
+ * @since 0.1.0
2361
2875
  */
2362
2876
  declare function withDefaultNodeIdFn<T>(fn: (value: T, path: readonly number[]) => string): CngxTreeConfigFeature;
2363
2877
  /**
2364
2878
  * App-wide default `labelFn`. Library default is `String(value)`.
2879
+ *
2880
+ * @category common/interactive/tree
2881
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2882
+ * @since 0.1.0
2365
2883
  */
2366
2884
  declare function withDefaultLabelFn<T>(fn: (value: T) => string): CngxTreeConfigFeature;
2367
2885
  /**
2368
2886
  * App-wide default `keyFn`. Library default is identity.
2887
+ *
2888
+ * @category common/interactive/tree
2889
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2890
+ * @since 0.1.0
2369
2891
  */
2370
2892
  declare function withDefaultKeyFn<T>(fn: (value: T) => unknown): CngxTreeConfigFeature;
2371
2893
  /**
2372
2894
  * Bound the `isExpanded(id)` signal cache. See
2373
2895
  * {@link CngxTreeConfig.cacheLimit} for the trade-off.
2896
+ *
2897
+ * @category common/interactive/tree
2898
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2899
+ * @since 0.1.0
2374
2900
  */
2375
2901
  declare function withTreeCacheLimit(limit: number): CngxTreeConfigFeature;
2376
2902
  /**
2377
2903
  * App-wide default `initiallyExpanded` seed.
2904
+ *
2905
+ * @category common/interactive/tree
2906
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2907
+ * @since 0.1.0
2378
2908
  */
2379
2909
  declare function withDefaultInitiallyExpanded(mode: 'all' | 'none' | readonly string[]): CngxTreeConfigFeature;
2380
2910
  /**
@@ -2392,16 +2922,28 @@ declare function withDefaultInitiallyExpanded(mode: 'all' | 'none' | readonly st
2392
2922
  * ],
2393
2923
  * });
2394
2924
  * ```
2925
+ *
2926
+ * @category common/interactive/tree
2927
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2928
+ * @since 0.1.0
2395
2929
  */
2396
2930
  declare function provideTreeConfig(...features: CngxTreeConfigFeature[]): Provider[];
2397
2931
  /**
2398
- * Sub-tree / component-scoped variant — use in `viewProviders` so the
2932
+ * Sub-tree / component-scoped variant - use in `viewProviders` so the
2399
2933
  * tree config only applies to descendants of this component.
2934
+ *
2935
+ * @category common/interactive/tree
2936
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2937
+ * @since 0.1.0
2400
2938
  */
2401
2939
  declare function provideTreeConfigAt(...features: CngxTreeConfigFeature[]): Provider[];
2402
2940
  /**
2403
2941
  * Inject the currently-resolved config. Safe to call in any injection
2404
2942
  * context; returns `{}` if no `provideTreeConfig` is registered.
2943
+ *
2944
+ * @category common/interactive/tree
2945
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/tree-controller/tree-config.ts
2946
+ * @since 0.1.0
2405
2947
  */
2406
2948
  declare function injectTreeConfig(): CngxTreeConfig;
2407
2949
 
@@ -2425,7 +2967,7 @@ declare function injectTreeConfig(): CngxTreeConfig;
2425
2967
  * Attaches on the same element as `CngxActiveDescendant`; injects the AD
2426
2968
  * instance (`host: true`, optional) and leaves vertical `ArrowUp`/`Down`,
2427
2969
  * `Home`/`End`, and typeahead to AD's own handler. The two directives
2428
- * coexist without conflict — in vertical orientation AD's `isNavKey`
2970
+ * coexist without conflict - in vertical orientation AD's `isNavKey`
2429
2971
  * branches for `ArrowLeft`/`ArrowRight` are already no-ops.
2430
2972
  *
2431
2973
  * Outputs are informational and state-change-truthful: `expand` /
@@ -2444,10 +2986,17 @@ declare function injectTreeConfig(): CngxTreeConfig;
2444
2986
  * tabindex="0"
2445
2987
  * ></ul>
2446
2988
  * ```
2989
+ *
2990
+ * @category common/interactive/tree
2991
+ * @docsKind primary
2992
+ * @wcag AA
2993
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/hierarchical-nav/hierarchical-nav.directive.ts
2994
+ * @since 0.1.0
2995
+ * @relatedTo CngxActiveDescendant, CngxTreeController, CngxRovingTabindex
2447
2996
  */
2448
2997
  declare class CngxHierarchicalNav<T = unknown> {
2449
2998
  /**
2450
- * The tree controller that owns expansion state. Required — without it
2999
+ * The tree controller that owns expansion state. Required - without it
2451
3000
  * the directive has nothing to reason about.
2452
3001
  */
2453
3002
  readonly controller: _angular_core.InputSignal<CngxTreeController<T>>;
@@ -2478,6 +3027,8 @@ declare class CngxHierarchicalNav<T = unknown> {
2478
3027
  * output, calls `event.preventDefault()` for anything non-`noop`, and
2479
3028
  * (for move actions) relies on the strategy having already called
2480
3029
  * `ad.highlightByValue` on the context.
3030
+ *
3031
+ * @category common/interactive/tree
2481
3032
  */
2482
3033
  type CngxHierarchicalNavAction = {
2483
3034
  readonly kind: 'expand';
@@ -2498,6 +3049,8 @@ type CngxHierarchicalNavAction = {
2498
3049
  * Context passed to every strategy step. `ad` is guaranteed non-null
2499
3050
  * (the directive checks before invoking the strategy); `activeId` is
2500
3051
  * the current `ad.activeId()` snapshot captured at key-press time.
3052
+ *
3053
+ * @category common/interactive/tree
2501
3054
  */
2502
3055
  interface CngxHierarchicalNavContext<T> {
2503
3056
  readonly controller: CngxTreeController<T>;
@@ -2512,10 +3065,12 @@ interface CngxHierarchicalNavContext<T> {
2512
3065
  * "ArrowLeft collapses but never jumps to parent") can register their
2513
3066
  * own strategy via `CNGX_HIERARCHICAL_NAV_STRATEGY`.
2514
3067
  *
2515
- * Strategy steps are synchronous, side-effect-allowed functions —
3068
+ * Strategy steps are synchronous, side-effect-allowed functions -
2516
3069
  * they may call `ctrl.expand()` / `ctrl.collapse()` / `ad.highlightByValue()`
2517
3070
  * before returning the corresponding action. The directive then emits
2518
3071
  * the informational output + prevents default key handling.
3072
+ *
3073
+ * @category common/interactive/tree
2519
3074
  */
2520
3075
  interface CngxHierarchicalNavStrategy {
2521
3076
  onArrowRight<T>(ctx: CngxHierarchicalNavContext<T>): CngxHierarchicalNavAction;
@@ -2533,8 +3088,10 @@ interface CngxHierarchicalNavStrategy {
2533
3088
  *
2534
3089
  * Move actions internally verify that `ad.highlightByValue` actually
2535
3090
  * changed `activeId` (e.g. disabled skip rejection), and downgrade to
2536
- * `'noop'` when it didn't — so consumers bound to `(movedToChild)` /
3091
+ * `'noop'` when it didn't - so consumers bound to `(movedToChild)` /
2537
3092
  * `(movedToParent)` only see state-change-truthful emissions.
3093
+ *
3094
+ * @category common/interactive/tree
2538
3095
  */
2539
3096
  declare function createW3CTreeStrategy(): CngxHierarchicalNavStrategy;
2540
3097
  /**
@@ -2562,10 +3119,19 @@ declare function createW3CTreeStrategy(): CngxHierarchicalNavStrategy;
2562
3119
  * ],
2563
3120
  * });
2564
3121
  * ```
3122
+ *
3123
+ * @category common/interactive/tree
3124
+ * @wcag AA
3125
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/hierarchical-nav/hierarchical-nav-strategy.ts
3126
+ * @since 0.1.0
2565
3127
  */
2566
3128
  declare const CNGX_HIERARCHICAL_NAV_STRATEGY: InjectionToken<CngxHierarchicalNavStrategy>;
2567
3129
 
2568
- /** Configuration for `withRetry()`. */
3130
+ /**
3131
+ * Configuration for `withRetry()`.
3132
+ *
3133
+ * @category common/interactive/retry
3134
+ */
2569
3135
  interface RetryConfig {
2570
3136
  /** Maximum number of attempts (including the first). Default: `3`. */
2571
3137
  maxAttempts?: number;
@@ -2574,7 +3140,11 @@ interface RetryConfig {
2574
3140
  /** Backoff strategy. `'exponential'` doubles the delay each attempt. Default: `'exponential'`. */
2575
3141
  backoff?: 'linear' | 'exponential';
2576
3142
  }
2577
- /** State exposed by the retryable action — read-only signals for UI feedback. */
3143
+ /**
3144
+ * State exposed by the retryable action — read-only signals for UI feedback.
3145
+ *
3146
+ * @category common/interactive/retry
3147
+ */
2578
3148
  interface RetryState {
2579
3149
  /** Current attempt number (1-based). `0` before first invocation. */
2580
3150
  readonly attempt: Signal<number>;
@@ -2617,10 +3187,16 @@ interface RetryState {
2617
3187
  * <ng-container [cngxToastOn]="retryState.state"
2618
3188
  * toastSuccess="Saved" toastError="All retries failed" />
2619
3189
  * ```
3190
+ *
3191
+ * @category common/interactive/retry
2620
3192
  */
2621
3193
  declare function withRetry(action: AsyncAction, config?: RetryConfig): [AsyncAction, RetryState];
2622
3194
 
2623
- /** State exposed by the optimistic action. */
3195
+ /**
3196
+ * State exposed by the optimistic action.
3197
+ *
3198
+ * @category common/interactive/optimistic
3199
+ */
2624
3200
  interface OptimisticState {
2625
3201
  /** Whether a rollback occurred on the last invocation. */
2626
3202
  readonly rolledBack: Signal<boolean>;
@@ -2665,12 +3241,16 @@ interface OptimisticState {
2665
3241
  * @param current - The writable signal to update optimistically.
2666
3242
  * @param action - Async action that confirms the value. Should return the confirmed value.
2667
3243
  * @returns Tuple of `[applyFn, state]`.
3244
+ *
3245
+ * @category common/interactive/optimistic
2668
3246
  */
2669
3247
  declare function optimistic<T>(current: WritableSignal<T>, action: (value: T) => Observable<T>): [(newValue: T) => void, OptimisticState];
2670
3248
 
2671
3249
  /**
2672
3250
  * Detects long-press gestures via Pointer Events.
2673
3251
  *
3252
+ * @category common/interactive/gestures
3253
+ *
2674
3254
  * Fires `longPressed` after the pointer is held down for the `threshold` duration
2675
3255
  * without moving more than 10px. Cancels on pointer move (prevents accidental
2676
3256
  * triggers during scrolling), pointer up, pointer cancel, and pointer leave.
@@ -2691,6 +3271,13 @@ declare function optimistic<T>(current: WritableSignal<T>, action: (value: T) =>
2691
3271
  * Hold for action
2692
3272
  * </div>
2693
3273
  * ```
3274
+ * @docsKind primary
3275
+ * @wcag AA
3276
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/gestures/long-press.directive.ts
3277
+ * @since 0.1.0
3278
+ * @relatedTo CngxSwipeDismiss, CngxPressable
3279
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/long-press/custom-threshold</example-url>
3280
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/long-press/long-press-with-visual-feedback</example-url>
2694
3281
  */
2695
3282
  declare class CngxLongPress {
2696
3283
  /** Time in ms the pointer must be held to trigger. */
@@ -2709,11 +3296,87 @@ declare class CngxLongPress {
2709
3296
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxLongPress, "[cngxLongPress]", ["cngxLongPress"], { "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; "moveThreshold": { "alias": "moveThreshold"; "required": false; "isSignal": true; }; }, { "longPressed": "longPressed"; }, never, never, true, never>;
2710
3297
  }
2711
3298
 
2712
- /** Swipe direction — matches drawer positions for natural composition. */
3299
+ /**
3300
+ * Swipe direction - matches drawer positions for natural composition.
3301
+ *
3302
+ * @category common/interactive/gestures
3303
+ */
2713
3304
  type SwipeDirection = 'left' | 'right' | 'up' | 'down';
3305
+ /**
3306
+ * Axis a swipe gesture is allowed to register on. `'x'` accepts
3307
+ * left/right, `'y'` accepts up/down, `'both'` accepts any dominant axis.
3308
+ *
3309
+ * @category common/interactive/gestures
3310
+ */
3311
+ type SwipeAxis = 'x' | 'y' | 'both';
3312
+
3313
+ /**
3314
+ * Detects directional swipe gestures via Pointer Events and reports the
3315
+ * resolved direction.
3316
+ *
3317
+ * @category common/interactive/gestures
3318
+ *
3319
+ * Generic navigation atom: unlike {@link CngxSwipeDismiss} (one fixed
3320
+ * direction, dismiss intent), this emits `swiped` with the dominant
3321
+ * direction so a single host can drive bidirectional flows - carousels,
3322
+ * paged views, prev/next steppers. The `axis` input pins the gesture to
3323
+ * horizontal or vertical so an orthogonal scroll never fires it.
3324
+ * Exposes `swiping`, `swipeProgress`, and `swipeDirection` signals for
3325
+ * real-time feedback mid-gesture.
3326
+ *
3327
+ * ### Carousel: route left/right into a presenter
3328
+ * ```html
3329
+ * <section cngxSwipe axis="x" (swiped)="onSwipe($event)">…</section>
3330
+ * ```
3331
+ * ```ts
3332
+ * onSwipe(direction: SwipeDirection): void {
3333
+ * if (direction === 'left') {
3334
+ * this.next();
3335
+ * } else if (direction === 'right') {
3336
+ * this.previous();
3337
+ * }
3338
+ * }
3339
+ * ```
3340
+ * @docsKind primary
3341
+ * @wcag AA
3342
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/gestures/swipe.directive.ts
3343
+ * @since 0.1.0
3344
+ * @relatedTo CngxSwipeDismiss, CngxLongPress
3345
+ * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
3346
+ */
3347
+ declare class CngxSwipe {
3348
+ /** Minimum distance in px on the dominant axis to register a swipe. */
3349
+ readonly threshold: _angular_core.InputSignal<number>;
3350
+ /** Axis the gesture is allowed to register on. */
3351
+ readonly axis: _angular_core.InputSignal<SwipeAxis>;
3352
+ /** Whether the directive is active. */
3353
+ readonly enabled: _angular_core.InputSignal<boolean>;
3354
+ /** Emitted with the dominant direction when a swipe passes the threshold. */
3355
+ readonly swiped: _angular_core.OutputEmitterRef<SwipeDirection>;
3356
+ private readonly swipingState;
3357
+ private readonly swipeProgressState;
3358
+ private readonly swipeDirectionState;
3359
+ /** Whether a swipe gesture is currently in progress. */
3360
+ readonly swiping: _angular_core.Signal<boolean>;
3361
+ /** Progress of the current swipe from 0 to 1 (clamped). */
3362
+ readonly swipeProgress: _angular_core.Signal<number>;
3363
+ /** Dominant direction of the in-flight gesture, or `null` when idle. */
3364
+ readonly swipeDirection: _angular_core.Signal<SwipeDirection | null>;
3365
+ constructor();
3366
+ /**
3367
+ * Resolve the dominant-axis direction + distance for a pointer delta,
3368
+ * or `null` when the gesture runs against the configured `axis`.
3369
+ */
3370
+ private read;
3371
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSwipe, never>;
3372
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSwipe, "[cngxSwipe]", ["cngxSwipe"], { "threshold": { "alias": "threshold"; "required": false; "isSignal": true; }; "axis": { "alias": "axis"; "required": false; "isSignal": true; }; "enabled": { "alias": "enabled"; "required": false; "isSignal": true; }; }, { "swiped": "swiped"; }, never, never, true, never>;
3373
+ }
3374
+
2714
3375
  /**
2715
3376
  * Detects directional swipe gestures via Pointer Events.
2716
3377
  *
3378
+ * @category common/interactive/gestures
3379
+ *
2717
3380
  * Generic atom usable for drawers (swipe-to-close), bottom sheets,
2718
3381
  * carousels, and dismissible cards. Emits `swiped` when the gesture
2719
3382
  * completes past the threshold. Exposes `swiping` and `swipeProgress`
@@ -2734,6 +3397,12 @@ type SwipeDirection = 'left' | 'right' | 'up' | 'down';
2734
3397
  * …
2735
3398
  * </div>
2736
3399
  * ```
3400
+ * @docsKind primary
3401
+ * @wcag AA
3402
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/gestures/swipe-dismiss.directive.ts
3403
+ * @since 0.1.0
3404
+ * @relatedTo CngxLongPress, CngxDrawer
3405
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/swipe-dismiss/directional-swipe</example-url>
2737
3406
  */
2738
3407
  declare class CngxSwipeDismiss {
2739
3408
  /** Direction of the swipe that triggers dismissal. */
@@ -2758,18 +3427,26 @@ declare class CngxSwipeDismiss {
2758
3427
 
2759
3428
  /**
2760
3429
  * Modifier key that arms the keyboard-reorder handler. Plain arrow keys
2761
- * keep their default meaning (focus navigation) — only the configured
3430
+ * keep their default meaning (focus navigation) - only the configured
2762
3431
  * modifier + arrow produces a move.
3432
+ *
3433
+ * @category common/interactive/reorder
3434
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/reorder.directive.ts
3435
+ * @since 0.1.0
2763
3436
  */
2764
3437
  type CngxReorderModifier = 'ctrl' | 'alt' | 'meta';
2765
3438
  /**
2766
3439
  * Payload emitted by `(reordered)` whenever a pointer drag or a modifier +
2767
3440
  * arrow keyboard move settles on a new position.
2768
3441
  *
2769
- * `next` is a fresh array — the source signal is never mutated in place,
3442
+ * `next` is a fresh array - the source signal is never mutated in place,
2770
3443
  * so downstream `computed()` graphs see a new reference and re-evaluate.
2771
3444
  * Consumers own the write back to the source signal (directly, or via a
2772
3445
  * commit controller for optimistic / pessimistic policies).
3446
+ *
3447
+ * @category common/interactive/reorder
3448
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/reorder.directive.ts
3449
+ * @since 0.1.0
2773
3450
  */
2774
3451
  interface CngxReorderEvent<T> {
2775
3452
  readonly fromIndex: number;
@@ -2785,7 +3462,7 @@ interface CngxReorderEvent<T> {
2785
3462
  * tracking when the user drifts outside the container. The drop target is
2786
3463
  * resolved from `document.elementFromPoint` on every `pointermove`. The
2787
3464
  * drag ends on `pointerup`, `pointercancel`, or a top-level `Escape`
2788
- * press — only the first two emit `reordered`; Escape cancels the drag
3465
+ * press - only the first two emit `reordered`; Escape cancels the drag
2789
3466
  * without a mutation.
2790
3467
  *
2791
3468
  * **Keyboard flow.** When the focused element is inside an item and the
@@ -2810,12 +3487,24 @@ interface CngxReorderEvent<T> {
2810
3487
  * }
2811
3488
  * </span>
2812
3489
  * ```
3490
+ *
3491
+ * @category common/interactive/reorder
3492
+ * @docsKind primary
3493
+ * @wcag AA
3494
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/reorder.directive.ts
3495
+ * @since 0.1.0
3496
+ * @relatedTo CngxReorderableMultiSelect, CngxChipStripRovingController
3497
+ * <example-url>http://localhost:4200/#/forms/select/reorderable-multi-select/basic-drag-chips-via-mouse-touch</example-url>
3498
+ * <example-url>http://localhost:4200/#/forms/select/reorderable-multi-select/commit-action-optimistic-pessimistic-with-supersede</example-url>
3499
+ * <example-url>http://localhost:4200/#/forms/select/reorderable-multi-select/keyboard-reorder-alt-arrow-home-end</example-url>
3500
+ * <example-url>http://localhost:4200/#/forms/select/reorderable-multi-select/optional-drag-handle-glyph</example-url>
3501
+ * <example-url>http://localhost:4200/#/forms/select/reorderable-multi-select/pre-seeded-values-reorder-log</example-url>
2813
3502
  */
2814
3503
  declare class CngxReorder<T = unknown> {
2815
3504
  /**
2816
3505
  * Signal describing the current, authoritative order. The directive
2817
3506
  * reads it lazily at drag-start and at keyboard-move time so drag
2818
- * sessions always resolve against the freshest value — consumers that
3507
+ * sessions always resolve against the freshest value - consumers that
2819
3508
  * mutate the source signal during a drag (rare) still get consistent
2820
3509
  * results.
2821
3510
  */
@@ -2839,7 +3528,7 @@ declare class CngxReorder<T = unknown> {
2839
3528
  /**
2840
3529
  * Optional escape-hatch selector for drag targets. When set and the
2841
3530
  * `pointerdown` target matches `ignoreSelector` (via `closest`), the
2842
- * gesture is dropped — useful when the whole item is draggable but
3531
+ * gesture is dropped - useful when the whole item is draggable but
2843
3532
  * interactive children (close buttons, inline edit fields, menu
2844
3533
  * triggers) must keep their own click semantics. Applied after
2845
3534
  * `handleSelector`, so the two can overlap: e.g.
@@ -2847,19 +3536,19 @@ declare class CngxReorder<T = unknown> {
2847
3536
  * `ignoreSelector = 'button, a, [contenteditable]'` yields
2848
3537
  * whole-row drag with interactive child exemptions.
2849
3538
  *
2850
- * `null` (default) disables the filter — the `handleSelector` alone
3539
+ * `null` (default) disables the filter - the `handleSelector` alone
2851
3540
  * decides whether a drag starts.
2852
3541
  */
2853
3542
  readonly ignoreSelector: _angular_core.InputSignal<string | null>;
2854
- /** Modifier key required for keyboard-driven reorder. Defaults to `'ctrl'`. */
3543
+ /** Modifier key required for keyboard-driven reorder. Defaults to `'alt'`. */
2855
3544
  readonly keyboardModifier: _angular_core.InputSignal<CngxReorderModifier>;
2856
3545
  /** Disables both pointer and keyboard flows. */
2857
3546
  readonly disabled: _angular_core.InputSignal<boolean>;
2858
3547
  /** Emitted once a drag or keyboard move settles on a new position. */
2859
3548
  readonly reordered: _angular_core.OutputEmitterRef<CngxReorderEvent<T>>;
2860
- /** Informational — index of the item picked up by pointer drag. */
3549
+ /** Informational - index of the item picked up by pointer drag. */
2861
3550
  readonly dragStart: _angular_core.OutputEmitterRef<number>;
2862
- /** Informational — fires after `reordered` (or alone, if Escape cancelled). */
3551
+ /** Informational - fires after `reordered` (or alone, if Escape cancelled). */
2863
3552
  readonly dragEnd: _angular_core.OutputEmitterRef<void>;
2864
3553
  private readonly activeDrag;
2865
3554
  /** `true` while a pointer drag is in progress. */
@@ -2905,6 +3594,10 @@ declare class CngxReorder<T = unknown> {
2905
3594
 
2906
3595
  /**
2907
3596
  * Configuration for {@link createChipStripRoving}.
3597
+ *
3598
+ * @category common/interactive/reorder
3599
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/chip-strip-roving.ts
3600
+ * @since 0.1.0
2908
3601
  */
2909
3602
  interface CngxChipStripRovingOptions {
2910
3603
  /**
@@ -2916,7 +3609,7 @@ interface CngxChipStripRovingOptions {
2916
3609
  /**
2917
3610
  * Element hosting the chip wrappers. Read lazily at `focusAt()` time
2918
3611
  * so the controller doesn't depend on view-init timing. `null` is a
2919
- * legitimate idle state — the controller becomes a no-op focuser.
3612
+ * legitimate idle state - the controller becomes a no-op focuser.
2920
3613
  */
2921
3614
  readonly container: Signal<HTMLElement | null | undefined>;
2922
3615
  /**
@@ -2933,6 +3626,10 @@ interface CngxChipStripRovingOptions {
2933
3626
  * `activeIndex` signal the consumer binds into
2934
3627
  * `[attr.tabindex]="i === roving.activeIndex() ? 0 : -1"`, plus a
2935
3628
  * keyboard handler and imperative focus helpers.
3629
+ *
3630
+ * @category common/interactive/reorder
3631
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/chip-strip-roving.ts
3632
+ * @since 0.1.0
2936
3633
  */
2937
3634
  interface CngxChipStripRovingController {
2938
3635
  /**
@@ -2941,7 +3638,7 @@ interface CngxChipStripRovingController {
2941
3638
  */
2942
3639
  readonly activeIndex: Signal<number>;
2943
3640
  /**
2944
- * Announce that a chip at `index` received focus — typically wired
3641
+ * Announce that a chip at `index` received focus - typically wired
2945
3642
  * on the chip wrapper's `(focus)`. Idempotent; keeps the active
2946
3643
  * index in sync with whatever the user's focus sequence did (mouse
2947
3644
  * click, Tab into the strip, etc.).
@@ -2950,7 +3647,7 @@ interface CngxChipStripRovingController {
2950
3647
  /**
2951
3648
  * Keyboard handler for the chip-strip container. Handles plain
2952
3649
  * `ArrowLeft` / `ArrowRight` / `ArrowUp` / `ArrowDown` / `Home` /
2953
- * `End` — moves `activeIndex` and focuses the chip at the new
3650
+ * `End` - moves `activeIndex` and focuses the chip at the new
2954
3651
  * position. Events carrying any of `Ctrl` / `Alt` / `Meta` are
2955
3652
  * ignored (modifier-gated keys belong to the paired
2956
3653
  * {@link CngxReorder} directive).
@@ -2971,6 +3668,10 @@ interface CngxChipStripRovingController {
2971
3668
  }
2972
3669
  /**
2973
3670
  * Signature of the factory behind {@link CNGX_CHIP_STRIP_ROVING_FACTORY}.
3671
+ *
3672
+ * @category common/interactive/reorder
3673
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/chip-strip-roving.ts
3674
+ * @since 0.1.0
2974
3675
  */
2975
3676
  type CngxChipStripRovingFactory = (opts: CngxChipStripRovingOptions) => CngxChipStripRovingController;
2976
3677
  /**
@@ -2984,13 +3685,16 @@ type CngxChipStripRovingFactory = (opts: CngxChipStripRovingOptions) => CngxChip
2984
3685
  * `(keydown)` listener that doesn't check modifier keys. Co-located
2985
3686
  * with {@link CngxReorder} on the same chip-strip element it
2986
3687
  * double-fires on `Ctrl+Arrow` (the reorder emits, then roving also
2987
- * moves focus — racy). This controller deliberately skips
3688
+ * moves focus - racy). This controller deliberately skips
2988
3689
  * modifier-pressed events so the paired reorder directive owns that
2989
3690
  * gesture.
2990
3691
  *
2991
3692
  * **Injection context.** Must be called in an injection context
2992
- * (component constructor / field init) because it installs an
2993
- * `effect()` for the active-index clamp on count shrink.
3693
+ * (component constructor / field init) because it installs an * `effect()` for the active-index clamp on count shrink.
3694
+ *
3695
+ * @category common/interactive/reorder
3696
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/chip-strip-roving.ts
3697
+ * @since 0.1.0
2994
3698
  */
2995
3699
  declare function createChipStripRoving(opts: CngxChipStripRovingOptions): CngxChipStripRovingController;
2996
3700
  /**
@@ -3004,12 +3708,19 @@ declare function createChipStripRoving(opts: CngxChipStripRovingOptions): CngxCh
3004
3708
  *
3005
3709
  * Symmetrical to {@link CNGX_TREE_CONTROLLER_FACTORY} /
3006
3710
  * `CNGX_SELECTION_CONTROLLER_FACTORY`.
3711
+ *
3712
+ * @category common/interactive/reorder
3713
+ * @wcag AA
3714
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/reorder/chip-strip-roving.ts
3715
+ * @since 0.1.0
3007
3716
  */
3008
3717
  declare const CNGX_CHIP_STRIP_ROVING_FACTORY: InjectionToken<CngxChipStripRovingFactory>;
3009
3718
 
3010
3719
  /**
3011
3720
  * Declarative keyboard shortcut handler.
3012
3721
  *
3722
+ * @category common/interactive/keyboard
3723
+ *
3013
3724
  * Binds a keyboard shortcut to the host element without global event listeners
3014
3725
  * in a service. Supports `mod` as a platform-aware modifier (`Meta` on macOS,
3015
3726
  * `Ctrl` elsewhere).
@@ -3033,6 +3744,13 @@ declare const CNGX_CHIP_STRIP_ROVING_FACTORY: InjectionToken<CngxChipStripRoving
3033
3744
  * Press Escape to close
3034
3745
  * </div>
3035
3746
  * ```
3747
+ * @docsKind primary
3748
+ * @wcag AA
3749
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/keyboard/keyboard-shortcut.directive.ts
3750
+ * @since 0.1.0
3751
+ * @relatedTo CngxClickOutside, CngxSearch
3752
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/keyboard-shortcut/global-shortcut</example-url>
3753
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/keyboard-shortcut/self-scoped-shortcut</example-url>
3036
3754
  */
3037
3755
  declare class CngxKeyboardShortcut {
3038
3756
  /** Shortcut combo string, e.g. `'mod+s'`, `'ctrl+shift+k'`, `'escape'`. */
@@ -3062,14 +3780,21 @@ declare class CngxKeyboardShortcut {
3062
3780
  /**
3063
3781
  * Debounced search term tracker for `<input>` elements.
3064
3782
  *
3783
+ * @category common/interactive/keyboard
3784
+ *
3065
3785
  * Converts the DOM `input` event stream into a debounced Signal. The raw
3066
- * Observable is never exposed — signal at the API boundary.
3786
+ * Observable is never exposed - signal at the API boundary.
3067
3787
  *
3068
3788
  * ### Basic usage
3069
3789
  * ```html
3070
3790
  * <input cngxSearch #search="cngxSearch" placeholder="Search..." />
3071
3791
  * <button (click)="search.clear()">Clear</button>
3072
3792
  * ```
3793
+ *
3794
+ * @docsKind primary
3795
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/keyboard/search.directive.ts
3796
+ * @since 0.1.0
3797
+ * @relatedTo CngxKeyboardShortcut, CngxListboxSearch
3073
3798
  */
3074
3799
  declare class CngxSearch {
3075
3800
  /** Debounce delay in milliseconds. @defaultValue 300 */
@@ -3094,6 +3819,8 @@ declare class CngxSearch {
3094
3819
  /**
3095
3820
  * Emits when the user interacts outside the host element.
3096
3821
  *
3822
+ * @category common/interactive/keyboard
3823
+ *
3097
3824
  * Listens for a configurable DOM event on the document and checks whether
3098
3825
  * the event target is outside the host element's subtree. Useful for closing
3099
3826
  * dropdowns, popovers, modals, and any overlay that should dismiss on
@@ -3113,6 +3840,12 @@ declare class CngxSearch {
3113
3840
  * ```html
3114
3841
  * <div cngxClickOutside [eventType]="'click'" (clickOutside)="dismiss()">…</div>
3115
3842
  * ```
3843
+ * @docsKind primary
3844
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/keyboard/click-outside.directive.ts
3845
+ * @since 0.1.0
3846
+ * @relatedTo CngxKeyboardShortcut, CngxPopover
3847
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/click-outside/dropdown</example-url>
3848
+ * <example-url>http://localhost:4200/#/common/interactive/gestures/click-outside/enabled-toggle</example-url>
3116
3849
  */
3117
3850
  declare class CngxClickOutside {
3118
3851
  /** The DOM event type to listen for. `'pointerdown'` covers both mouse and touch. */
@@ -3131,9 +3864,11 @@ declare class CngxClickOutside {
3131
3864
  /**
3132
3865
  * Prevents accidental page navigation when there are unsaved changes.
3133
3866
  *
3867
+ * @category common/interactive/guard
3868
+ *
3134
3869
  * Sets a `beforeunload` event handler that shows the browser's native
3135
3870
  * confirmation dialog when `enabled` is `true`. Does NOT integrate with
3136
- * the Angular Router — for route guard protection, use `canDeactivateWhenClean()`.
3871
+ * the Angular Router - for route guard protection, use `canDeactivateWhenClean()`.
3137
3872
  *
3138
3873
  * ### Protect a form
3139
3874
  * ```html
@@ -3150,6 +3885,11 @@ declare class CngxClickOutside {
3150
3885
  * // In template:
3151
3886
  * <form [cngxBeforeUnload]="editForm.dirty()">…</form>
3152
3887
  * ```
3888
+ *
3889
+ * @docsKind primary
3890
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/guard/before-unload.directive.ts
3891
+ * @since 0.1.0
3892
+ * @relatedTo canDeactivateWhenClean
3153
3893
  */
3154
3894
  declare class CngxBeforeUnload {
3155
3895
  /** Whether the beforeunload guard is active. */
@@ -3182,44 +3922,63 @@ declare class CngxBeforeUnload {
3182
3922
  * @param isDirty - Callback that returns `true` when there are unsaved changes.
3183
3923
  * @param message - Confirmation message. Default: `'You have unsaved changes. Leave anyway?'`
3184
3924
  * @returns A functional guard compatible with Angular's `canDeactivate`.
3925
+ *
3926
+ * @category common/interactive/guard
3185
3927
  */
3186
3928
  declare function canDeactivateWhenClean(isDirty: () => boolean, message?: string): () => boolean;
3187
3929
 
3188
3930
  /**
3189
3931
  * Injection token for a custom close icon component.
3190
3932
  * Set via `provideFeedback(withCloseIcon(MyIcon))` which forwards to this token.
3933
+ *
3934
+ * @category common/interactive
3935
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/close-button/close-button.ts
3936
+ * @since 0.1.0
3191
3937
  */
3192
3938
  declare const CNGX_CLOSE_ICON: InjectionToken<Type<unknown>>;
3193
3939
  /**
3194
- * Shared close/dismiss button atom.
3940
+ * Shared close/dismiss button molecule.
3195
3941
  *
3196
- * Renders a configurable X-icon button with consistent styling, ARIA,
3197
- * focus ring, and density support across all cngx components.
3942
+ * Composes the native `<button>` shell with an optional projected icon
3943
+ * and the `CNGX_CLOSE_ICON` DI swap; owns ARIA wiring, focus ring,
3944
+ * density, and a default X glyph as the projection fallback.
3198
3945
  *
3199
3946
  * Used internally by `CngxAlert`, `CngxToastOutlet`, and `CngxPopoverPanel`.
3200
3947
  * Can also be used standalone by consumers for dialogs, drawers, chips, etc.
3201
3948
  *
3202
- * All visual properties are CSS Custom Properties — density is controlled
3949
+ * All visual properties are CSS Custom Properties - density is controlled
3203
3950
  * via the `feedback.density()` SCSS mixin or direct overrides.
3204
3951
  *
3205
3952
  * ### Standalone
3206
3953
  * ```html
3207
- * <cngx-close-button (pressed)="close()" label="Close dialog" />
3954
+ * <cngx-close-button label="Close dialog" (click)="close()" />
3208
3955
  * ```
3209
3956
  *
3210
3957
  * ### Inside a component (click handled by parent)
3211
3958
  * ```html
3212
- * <cngx-close-button />
3959
+ * <cngx-close-button label="Close" />
3213
3960
  * ```
3961
+ *
3962
+ * @category common/interactive
3963
+ * @docsKind primary
3964
+ * @wcag AA
3965
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/close-button/close-button.ts
3966
+ * @since 0.1.0
3967
+ * @relatedTo CNGX_CLOSE_ICON, CngxAlert, CngxToastOutlet, CngxPopover
3968
+ * <example-url>http://localhost:4200/#/common/interactive/close-button/basic</example-url>
3969
+ * <example-url>http://localhost:4200/#/common/interactive/close-button/projected-icon</example-url>
3970
+ * <example-url>http://localhost:4200/#/common/interactive/close-button/contextual-labels</example-url>
3971
+ * <example-url>http://localhost:4200/#/common/interactive/close-button/inside-a-dismissible-card</example-url>
3214
3972
  */
3215
3973
  declare class CngxCloseButton {
3216
3974
  /**
3217
- * Accessible label for the button.
3218
- * Default `"Close"` is generic — provide a contextual label for standalone use
3219
- * (e.g. `"Close dialog"`, `"Dismiss notification"`).
3975
+ * Required accessible label for the inner `<button>` (`aria-label`).
3976
+ * Describe the dismissable artifact, not the affordance:
3977
+ * `"Close session-expired alert"`, not `"Close"`. A bare `"Close"`
3978
+ * reads identically across every dismiss target on the page.
3220
3979
  */
3221
3980
  readonly label: _angular_core.InputSignal<string>;
3222
- /** @internal — global icon from CNGX_CLOSE_ICON token. */
3981
+ /** @internal - global icon from CNGX_CLOSE_ICON token. */
3223
3982
  protected readonly customIcon: Type<unknown> | null;
3224
3983
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxCloseButton, never>;
3225
3984
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxCloseButton, "cngx-close-button", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
@@ -3228,7 +3987,9 @@ declare class CngxCloseButton {
3228
3987
  /**
3229
3988
  * Tracks whether the host element is currently hovered via mouse pointer.
3230
3989
  *
3231
- * Designed as a `hostDirective` composition primitive — attach it to
3990
+ * @category common/interactive
3991
+ *
3992
+ * Designed as a `hostDirective` composition primitive - attach it to
3232
3993
  * components that need hover state without implementing their own
3233
3994
  * mouseenter/mouseleave logic. The `hovered` signal is writable so
3234
3995
  * host components can read it via `inject(CngxHoverable, { host: true })`.
@@ -3252,6 +4013,11 @@ declare class CngxCloseButton {
3252
4013
  * Hover me
3253
4014
  * </div>
3254
4015
  * ```
4016
+ *
4017
+ * @docsKind primary
4018
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/hoverable/hoverable.directive.ts
4019
+ * @since 0.1.0
4020
+ * @relatedTo CngxPressable, CngxRipple
3255
4021
  */
3256
4022
  declare class CngxHoverable {
3257
4023
  /** `true` while the pointer is over the host element. */
@@ -3263,7 +4029,9 @@ declare class CngxHoverable {
3263
4029
  /**
3264
4030
  * Headless text-to-speech directive using the browser's SpeechSynthesis API.
3265
4031
  *
3266
- * A read-aloud feature for cognitive accessibility — dyslexia support, reading
4032
+ * @category common/interactive
4033
+ *
4034
+ * A read-aloud feature for cognitive accessibility - dyslexia support, reading
3267
4035
  * assistance, or convenience. Not a screen reader replacement (use
3268
4036
  * `CngxLiveRegion` for ARIA live regions).
3269
4037
  *
@@ -3273,7 +4041,7 @@ declare class CngxHoverable {
3273
4041
  *
3274
4042
  * Pair with `CngxSpeakButton` (`@cngx/ui`) for a ready-made speaker button.
3275
4043
  *
3276
- * ### Headless — consumer-owned button
4044
+ * ### Headless - consumer-owned button
3277
4045
  * ```html
3278
4046
  * <p [cngxSpeak]="text" #tts="cngxSpeak">
3279
4047
  * {{ text }}
@@ -3299,6 +4067,16 @@ declare class CngxHoverable {
3299
4067
  * <button (click)="tts.speak(liveCounter().toString())">Read current value</button>
3300
4068
  * </div>
3301
4069
  * ```
4070
+ * @docsKind primary
4071
+ * @wcag AAA
4072
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/speak/speak.directive.ts
4073
+ * @since 0.1.0
4074
+ * @relatedTo CngxSpeakButton, CngxLiveRegion
4075
+ * <example-url>http://localhost:4200/#/common/interactive/speak/form-error-read-aloud-on-demand</example-url>
4076
+ * <example-url>http://localhost:4200/#/common/interactive/speak/headless-read-aloud</example-url>
4077
+ * <example-url>http://localhost:4200/#/ui/speak/speak-button/material-integration-theme-scss-mat-icon-button</example-url>
4078
+ * <example-url>http://localhost:4200/#/ui/speak/speak-button/styled-speaker-icon</example-url>
4079
+ * <example-url>http://localhost:4200/#/ui/speak/speak-button/theming-css-custom-properties</example-url>
3302
4080
  */
3303
4081
  declare class CngxSpeak {
3304
4082
  /** Text to speak. When `enabled` is `true`, speech triggers on every change to a non-empty value. */
@@ -3340,8 +4118,10 @@ declare class CngxSpeak {
3340
4118
  * `kind` separates pending (in-flight commit) from error (failed commit) so
3341
4119
  * styling can branch on the host attribute `[attr.data-status]`. `tpl`
3342
4120
  * carries the actual glyph; the host MAY return `tpl: null` to reserve
3343
- * layout space without rendering anything (rare — used for force-revealing
4121
+ * layout space without rendering anything (rare - used for force-revealing
3344
4122
  * the slot during animation transitions).
4123
+ *
4124
+ * @category common/interactive/listbox
3345
4125
  */
3346
4126
  interface CngxOptionStatus {
3347
4127
  readonly kind: 'pending' | 'error';
@@ -3357,6 +4137,8 @@ interface CngxOptionStatus {
3357
4137
  * the option calls `host.statusFor(value)` once and consumes the returned
3358
4138
  * `Signal<CngxOptionStatus | null>` reactively; the host owns the policy
3359
4139
  * for resolving which value gets which status at any given commit-id.
4140
+ *
4141
+ * @category common/interactive/listbox
3360
4142
  */
3361
4143
  interface CngxOptionStatusHost {
3362
4144
  /**
@@ -3370,9 +4152,13 @@ interface CngxOptionStatusHost {
3370
4152
  * itself when commit-driven status indicators should reach individual
3371
4153
  * options without invading the consumer-authored option template.
3372
4154
  *
3373
- * `CngxOption` injects this token with `{ optional: true }` — standalone
4155
+ * `CngxOption` injects this token with `{ optional: true }` - standalone
3374
4156
  * use (no host provides the token) results in a stable `null` status with
3375
4157
  * no DOM cost.
4158
+ *
4159
+ * @category common/interactive/listbox
4160
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/option-status-host.ts
4161
+ * @since 0.1.0
3376
4162
  */
3377
4163
  declare const CNGX_OPTION_STATUS_HOST: InjectionToken<CngxOptionStatusHost>;
3378
4164
 
@@ -3385,6 +4171,23 @@ declare const CNGX_OPTION_STATUS_HOST: InjectionToken<CngxOptionStatusHost>;
3385
4171
  * Selection state (`isSelected`) is driven externally by the enclosing listbox.
3386
4172
  * In V1 of the stack, `CngxListbox` reads `value()` via the AD item list and
3387
4173
  * exposes its own selection through `CngxOption.isSelected()`.
4174
+ *
4175
+ * @category common/interactive/listbox
4176
+ * @docsKind primary
4177
+ * @wcag AA
4178
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/option.directive.ts
4179
+ * @since 0.1.0
4180
+ * @relatedTo CngxListbox, CngxOptionGroup, CngxActiveDescendant
4181
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
4182
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/trigger/select-dropdown</example-url>
4183
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/base/multi-select</example-url>
4184
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/base/single-select</example-url>
4185
+ * <example-url>http://localhost:4200/#/common/interactive/option/flat-options-with-ad</example-url>
4186
+ * <example-url>http://localhost:4200/#/common/interactive/option/grouped-options</example-url>
4187
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/material-mat-select-via-cngxbindfield</example-url>
4188
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/reactive-forms-adapted-via-adaptformcontrol</example-url>
4189
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/signal-forms-multi-select-min-2</example-url>
4190
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/signal-forms-single-select</example-url>
3388
4191
  */
3389
4192
  declare class CngxOption implements CngxAdItemHandle {
3390
4193
  /** Discriminator for `CNGX_OPTION_CONTAINER` consumers. */
@@ -3439,11 +4242,11 @@ declare class CngxOption implements CngxAdItemHandle {
3439
4242
  * provided or the term is empty; `true` only when the host's policy
3440
4243
  * explicitly rejects the option for the current term.
3441
4244
  *
3442
- * Boolean — default `Object.is` equality is sufficient.
4245
+ * Boolean - default `Object.is` equality is sufficient.
3443
4246
  */
3444
4247
  readonly hidden: Signal<boolean>;
3445
4248
  /**
3446
- * Resolved label as a Signal — explicit `label` input wins, falling back to
4249
+ * Resolved label as a Signal - explicit `label` input wins, falling back to
3447
4250
  * the host element's trimmed `textContent` (the W3C-defined plain-text
3448
4251
  * projection of the subtree). Plain text by construction; never reads
3449
4252
  * `innerHTML`. Consumers can text-interpolate this safely on a closed
@@ -3457,7 +4260,7 @@ declare class CngxOption implements CngxAdItemHandle {
3457
4260
  */
3458
4261
  readonly label: Signal<string>;
3459
4262
  /**
3460
- * Back-compat callable alias — `CngxAdItemHandle.label` accepts both
4263
+ * Back-compat callable alias - `CngxAdItemHandle.label` accepts both
3461
4264
  * `Signal<string>` and `() => string`, so this arrow keeps any
3462
4265
  * consumer that called `option.resolvedLabel()` imperatively working
3463
4266
  * unchanged.
@@ -3475,14 +4278,23 @@ declare class CngxOption implements CngxAdItemHandle {
3475
4278
  /**
3476
4279
  * Groups related `CngxOption`s under a visual and semantic header.
3477
4280
  *
3478
- * Renders `role="group"` and `aria-label` — children stay flat in the AD item
4281
+ * Renders `role="group"` and `aria-label` - children stay flat in the AD item
3479
4282
  * list; grouping is purely presentational and for ATs that render group labels.
3480
4283
  *
3481
4284
  * Hierarchy-aware projection roots (e.g. `CngxSelectShell`) query
3482
4285
  * `CNGX_OPTION_CONTAINER` to walk the direct children in DOM order and read
3483
4286
  * each group's `options` to populate `CngxSelectOptionGroupDef.options`.
3484
- * Nested option groups are unsupported — a dev-warning fires when one is
4287
+ * Nested option groups are unsupported - a dev-warning fires when one is
3485
4288
  * detected.
4289
+ *
4290
+ * @category common/interactive/listbox
4291
+ * @docsKind primary
4292
+ * @wcag AA
4293
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/option-group.directive.ts
4294
+ * @since 0.1.0
4295
+ * @relatedTo CngxOption, CngxListbox
4296
+ * <example-url>http://localhost:4200/#/common/interactive/option/flat-options-with-ad</example-url>
4297
+ * <example-url>http://localhost:4200/#/common/interactive/option/grouped-options</example-url>
3486
4298
  */
3487
4299
  declare class CngxOptionGroup {
3488
4300
  /** Discriminator for `CNGX_OPTION_CONTAINER` consumers. */
@@ -3509,6 +4321,8 @@ declare class CngxOptionGroup {
3509
4321
  * `{ kind: 'group' }`. Both providers expose `useExisting` so consumers
3510
4322
  * can `inject(CNGX_OPTION_CONTAINER)` and reach the directive instance
3511
4323
  * through the discriminator.
4324
+ *
4325
+ * @category common/interactive/listbox
3512
4326
  */
3513
4327
  type CngxOptionContainer = (CngxOptionContainerOption & {
3514
4328
  readonly kind: 'option';
@@ -3519,6 +4333,8 @@ type CngxOptionContainer = (CngxOptionContainerOption & {
3519
4333
  * Public surface a `CngxOption` exposes when registered under
3520
4334
  * `CNGX_OPTION_CONTAINER`. Kept structural so consumers can walk the
3521
4335
  * projection tree without importing the directive class directly.
4336
+ *
4337
+ * @category common/interactive/listbox
3522
4338
  */
3523
4339
  interface CngxOptionContainerOption {
3524
4340
  readonly id: string;
@@ -3541,6 +4357,9 @@ interface CngxOptionContainerGroup {
3541
4357
  * { descendants: false })` and walk the result preserving DOM order.
3542
4358
  * The discriminated `kind` field separates leaves from groups without
3543
4359
  * forcing the consumer to import either directive class.
4360
+ *
4361
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/option-container.ts
4362
+ * @since 0.1.0
3544
4363
  */
3545
4364
  declare const CNGX_OPTION_CONTAINER: InjectionToken<CngxOptionContainer>;
3546
4365
 
@@ -3551,9 +4370,11 @@ declare const CNGX_OPTION_CONTAINER: InjectionToken<CngxOptionContainer>;
3551
4370
  * `searchTerm` signal and a host-owned `matches` policy.
3552
4371
  *
3553
4372
  * Splitting policy from visibility keeps the option agnostic about HOW
3554
- * filtering decides — substring, fuzzy, server-driven — and gives the
4373
+ * filtering decides - substring, fuzzy, server-driven - and gives the
3555
4374
  * host a single point of control. Empty search term ALWAYS resolves to
3556
4375
  * "show everything"; the option short-circuits before calling `matches`.
4376
+ *
4377
+ * @category common/interactive/listbox
3557
4378
  */
3558
4379
  interface CngxOptionFilterHost {
3559
4380
  /** Current search term. Empty string means "no filter active". */
@@ -3569,9 +4390,13 @@ interface CngxOptionFilterHost {
3569
4390
  * `hidden` visibility through a reactive search term and a `matches`
3570
4391
  * policy.
3571
4392
  *
3572
- * `CngxOption` injects this token with `{ optional: true }` — standalone
4393
+ * `CngxOption` injects this token with `{ optional: true }` - standalone
3573
4394
  * use (no host provides the token) leaves every option visible at all
3574
4395
  * times with no DOM cost.
4396
+ *
4397
+ * @category common/interactive/listbox
4398
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/option-filter-host.ts
4399
+ * @since 0.1.0
3575
4400
  */
3576
4401
  declare const CNGX_OPTION_FILTER_HOST: InjectionToken<CngxOptionFilterHost>;
3577
4402
 
@@ -3583,15 +4408,17 @@ declare const CNGX_OPTION_FILTER_HOST: InjectionToken<CngxOptionFilterHost>;
3583
4408
  *
3584
4409
  * The need arises with content-projected options: at construction time,
3585
4410
  * the option's element-injector chain anchors in the consumer's
3586
- * authoring view — which has no surrounding `CngxActiveDescendant`. The
4411
+ * authoring view - which has no surrounding `CngxActiveDescendant`. The
3587
4412
  * shell that owns the listbox + AD provides this token via `useExisting`,
3588
4413
  * and projected options consult it as a fallback.
3589
4414
  *
3590
4415
  * Splitting the contract into a narrow surface (`activeId` /
3591
4416
  * `activate` / `highlight`) keeps the option agnostic about HOW the
3592
- * host wires its AD — the shell forwards to its inner listbox's AD,
4417
+ * host wires its AD - the shell forwards to its inner listbox's AD,
3593
4418
  * a hypothetical custom host could route through telemetry / multi-AD
3594
4419
  * coordination / etc. without changing the option directive.
4420
+ *
4421
+ * @category common/interactive/listbox
3595
4422
  */
3596
4423
  interface CngxOptionInteractionHost {
3597
4424
  /**
@@ -3621,22 +4448,39 @@ interface CngxOptionInteractionHost {
3621
4448
  * (`CNGX_OPTION_CONTAINER`, `CNGX_OPTION_STATUS_HOST`,
3622
4449
  * `CNGX_OPTION_FILTER_HOST`, `CNGX_SELECT_SHELL_SEARCH_HOST`).
3623
4450
  *
3624
- * `CngxOption` injects this token with `{ optional: true }` —
4451
+ * `CngxOption` injects this token with `{ optional: true }` -
3625
4452
  * standalone use (no host provides the token) leaves option behaviour
3626
4453
  * unchanged because the option's own AD inject takes precedence when
3627
4454
  * available.
4455
+ *
4456
+ * @category common/interactive/listbox
4457
+ * @wcag AA
4458
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/option-interaction-host.ts
4459
+ * @since 0.1.0
3628
4460
  */
3629
4461
  declare const CNGX_OPTION_INTERACTION_HOST: InjectionToken<CngxOptionInteractionHost>;
3630
4462
 
3631
- /** Matcher function used by CngxListboxSearch to filter options. */
4463
+ /**
4464
+ * Matcher function used by CngxListboxSearch to filter options.
4465
+ *
4466
+ * @category common/interactive/listbox
4467
+ */
3632
4468
  type ListboxMatchFn = (option: ActiveDescendantItem, term: string) => boolean;
3633
4469
  /**
3634
4470
  * Search input for a `CngxListbox`.
3635
4471
  *
3636
- * Builds on `CngxSearch` via `hostDirectives` — inherits debounce, term
4472
+ * Builds on `CngxSearch` via `hostDirectives` - inherits debounce, term
3637
4473
  * tracking, and clear semantics. Adds a `matchFn` input that listboxes read
3638
4474
  * to filter their options. A listbox that has a `CngxListboxSearch` injected
3639
4475
  * ancestor reads `term` and `matchFn` from it reactively.
4476
+ *
4477
+ * @category common/interactive/listbox
4478
+ * @docsKind primary
4479
+ * @wcag AA
4480
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox-search.directive.ts
4481
+ * @since 0.1.0
4482
+ * @relatedTo CngxListbox, CngxSearch, CngxListboxTrigger
4483
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
3640
4484
  */
3641
4485
  declare class CngxListboxSearch {
3642
4486
  /** Custom matcher. Defaults to case-insensitive substring match on `label`. */
@@ -3659,10 +4503,10 @@ declare class CngxListboxSearch {
3659
4503
  * selection state via two-way `[(value)]` / `[(selectedValues)]` bindings, and
3660
4504
  * drives `aria-selected` / `aria-multiselectable` reactively.
3661
4505
  *
3662
- * `value` and `selectedValues` are `model()` signals — `[value]`,
4506
+ * `value` and `selectedValues` are `model()` signals - `[value]`,
3663
4507
  * `(valueChange)`, and `[(value)]` bindings all work identically. Forms
3664
4508
  * integration (`<cngx-form-field>`) is bolted on via the sibling
3665
- * `CngxListboxFieldBridge` directive from `@cngx/forms/field` — this atom
4509
+ * `CngxListboxFieldBridge` directive from `@cngx/forms/field` - this atom
3666
4510
  * stays Forms-agnostic.
3667
4511
  *
3668
4512
  * ### Material / CDK equivalent
@@ -3674,10 +4518,25 @@ declare class CngxListboxSearch {
3674
4518
  *
3675
4519
  * 1. Single source of truth for ARIA: every attribute is a `computed()`.
3676
4520
  * 2. Selection shares the same `CngxActiveDescendant` used by menus and
3677
- * comboboxes — one mental model for all typeahead widgets.
4521
+ * comboboxes - one mental model for all typeahead widgets.
3678
4522
  * 3. `isAllSelected` and `selectedLabels` are derived signals, not manual
3679
4523
  * callbacks.
3680
4524
  * 4. Forms integration is decoupled: the listbox never imports `@angular/forms`.
4525
+ *
4526
+ * @category common/interactive/listbox
4527
+ * @docsKind primary
4528
+ * @wcag AA
4529
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox.directive.ts
4530
+ * @since 0.1.0
4531
+ * @relatedTo CngxListboxSearch, CngxListboxTrigger, CngxOption, CngxOptionGroup, CngxActiveDescendant
4532
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/search/command-palette</example-url>
4533
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/trigger/select-dropdown</example-url>
4534
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/base/multi-select</example-url>
4535
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/base/single-select</example-url>
4536
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/material-mat-select-via-cngxbindfield</example-url>
4537
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/reactive-forms-adapted-via-adaptformcontrol</example-url>
4538
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/signal-forms-multi-select-min-2</example-url>
4539
+ * <example-url>http://localhost:4200/#/forms/field/listbox-forms/signal-forms-single-select</example-url>
3681
4540
  */
3682
4541
  declare class CngxListbox<T = unknown> {
3683
4542
  /** Accessible label for the listbox region. */
@@ -3694,7 +4553,7 @@ declare class CngxListbox<T = unknown> {
3694
4553
  * Optional explicit reference to a `CngxListboxSearch` whose term drives
3695
4554
  * `filteredOptions`. Consumers wire this up with a template reference:
3696
4555
  * `[cngxSearchRef]="search"` and `#search="cngxListboxSearch"`. No ancestor
3697
- * injection — orthogonal composition, like `CngxSortHeader` + `CngxSortRef`.
4556
+ * injection - orthogonal composition, like `CngxSortHeader` + `CngxSortRef`.
3698
4557
  */
3699
4558
  readonly cngxSearchRef: _angular_core.InputSignal<CngxListboxSearch | null>;
3700
4559
  /**
@@ -3705,7 +4564,7 @@ declare class CngxListbox<T = unknown> {
3705
4564
  *
3706
4565
  * **Why this exists.**
3707
4566
  * The commit flow needs to snapshot the pre-pick value synchronously when
3708
- * the user clicks an option — to roll back to it on error. Without this
4567
+ * the user clicks an option - to roll back to it on error. Without this
3709
4568
  * flag, CngxListbox writes `value` via two-way binding BEFORE the consumer's
3710
4569
  * own `ad.activated` subscriber runs, and the pre-pick value is already
3711
4570
  * gone by the time we try to snapshot it. Flipping this flag lets the
@@ -3762,7 +4621,7 @@ declare class CngxListbox<T = unknown> {
3762
4621
  /** Clear all selections. */
3763
4622
  clear(): void;
3764
4623
  /**
3765
- * Select every non-disabled option. Only valid in multi mode — in single
4624
+ * Select every non-disabled option. Only valid in multi mode - in single
3766
4625
  * mode this is a no-op.
3767
4626
  */
3768
4627
  selectAll(): void;
@@ -3791,7 +4650,7 @@ interface PopoverController$3 {
3791
4650
  * Trigger atom for listbox dropdowns.
3792
4651
  *
3793
4652
  * Pairs a focusable element (button) with a `CngxListbox` and a `CngxPopover`
3794
- * through explicit template references — no ancestor injection, consistent
4653
+ * through explicit template references - no ancestor injection, consistent
3795
4654
  * with the `CngxSortHeader` / `CngxSortRef` orthogonal composition pattern.
3796
4655
  *
3797
4656
  * Implements the WAI-ARIA combobox-less listbox trigger keyboard model:
@@ -3803,6 +4662,14 @@ interface PopoverController$3 {
3803
4662
  * | open | ArrowDown / ArrowUp / Home / End | delegate to AD primitives |
3804
4663
  * | open | Enter / Space | activate; close if `closeOnSelect()` |
3805
4664
  * | any | Escape | close and restore focus to trigger |
4665
+ *
4666
+ * @category common/interactive/listbox
4667
+ * @docsKind primary
4668
+ * @wcag AA
4669
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/listbox/listbox-trigger.directive.ts
4670
+ * @since 0.1.0
4671
+ * @relatedTo CngxListbox, CngxListboxSearch, CngxPopoverTrigger, CngxActiveDescendant
4672
+ * <example-url>http://localhost:4200/#/common/interactive/listbox/trigger/select-dropdown</example-url>
3806
4673
  */
3807
4674
  declare class CngxListboxTrigger<T = unknown> {
3808
4675
  /** Listbox controlled by this trigger. */
@@ -3816,7 +4683,7 @@ declare class CngxListboxTrigger<T = unknown> {
3816
4683
  /**
3817
4684
  * Fires when the user presses Backspace on an empty input. Only
3818
4685
  * emitted when the host element is an `<input>` with a co-located
3819
- * `CngxListboxSearch` — the tag-input convention "Backspace on empty
4686
+ * `CngxListboxSearch` - the tag-input convention "Backspace on empty
3820
4687
  * deletes the trailing chip" lives at the trigger, so consumers only
3821
4688
  * wire one subscription to own the delete path. On non-input hosts
3822
4689
  * (classic button triggers) the event never fires.
@@ -3847,9 +4714,11 @@ declare class CngxListboxTrigger<T = unknown> {
3847
4714
  * arrow-right / arrow-left keyboard semantics through a focus-stack
3848
4715
  * model. The trigger looks up a submenu by matching the active item's
3849
4716
  * `id` against this contract's `id`.
4717
+ *
4718
+ * @category common/interactive/menu
3850
4719
  */
3851
4720
  interface CngxMenuSubmenuLike {
3852
- /** Host element id — matches the surrounding `CngxMenuItem` id. */
4721
+ /** Host element id - matches the surrounding `CngxMenuItem` id. */
3853
4722
  readonly id: string;
3854
4723
  /** Reactive open state, mirrored from the wrapped popover. */
3855
4724
  readonly isOpen: Signal<boolean>;
@@ -3862,6 +4731,11 @@ interface CngxMenuSubmenuLike {
3862
4731
  * DI token a submenu-companion directive provides. The surrounding menu
3863
4732
  * collects every provider via `contentChildren(CNGX_MENU_SUBMENU_ITEM,
3864
4733
  * { descendants: true })` and exposes the array on `CngxMenuHost.submenuItems`.
4734
+ *
4735
+ * @category common/interactive/menu
4736
+ * @wcag AA
4737
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-submenu.token.ts
4738
+ * @since 0.1.0
3865
4739
  */
3866
4740
  declare const CNGX_MENU_SUBMENU_ITEM: InjectionToken<CngxMenuSubmenuLike>;
3867
4741
 
@@ -3870,6 +4744,8 @@ declare const CNGX_MENU_SUBMENU_ITEM: InjectionToken<CngxMenuSubmenuLike>;
3870
4744
  * host) exposes to composers. Triggers and submenu directives depend on
3871
4745
  * this interface rather than on the concrete `CngxMenu` class so the
3872
4746
  * coupling stays substitutable.
4747
+ *
4748
+ * @category common/interactive/menu
3873
4749
  */
3874
4750
  interface CngxMenuHost {
3875
4751
  readonly ad: CngxActiveDescendant;
@@ -3880,13 +4756,25 @@ interface CngxMenuHost {
3880
4756
  * `submenuItems`.
3881
4757
  */
3882
4758
  readonly submenuItems: Signal<readonly CngxMenuSubmenuLike[]>;
4759
+ /**
4760
+ * Move DOM focus to the menu container element. Triggers that need to
4761
+ * transfer focus into the menu after open call this. Consumers must
4762
+ * ensure the host element carries a non-negative tabindex; see
4763
+ * `CngxMenu.focus()`.
4764
+ */
4765
+ focus(): void;
3883
4766
  }
3884
4767
  /**
3885
4768
  * DI token a menu host provides for sub-component composers (e.g. an
3886
4769
  * inside-the-menu submenu trigger) that resolve the host via `inject()`.
3887
4770
  * Triggers that live on a different element pass a template-ref through
3888
- * an input typed against `CngxMenuHost` instead — DI across element
4771
+ * an input typed against `CngxMenuHost` instead - DI across element
3889
4772
  * boundaries cannot reach the menu.
4773
+ *
4774
+ * @category common/interactive/menu
4775
+ * @wcag AA
4776
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-host.token.ts
4777
+ * @since 0.1.0
3890
4778
  */
3891
4779
  declare const CNGX_MENU_HOST: InjectionToken<CngxMenuHost>;
3892
4780
 
@@ -3895,13 +4783,25 @@ declare const CNGX_MENU_HOST: InjectionToken<CngxMenuHost>;
3895
4783
  *
3896
4784
  * Uses `CngxActiveDescendant` as a `hostDirective` so items rendered with
3897
4785
  * `CngxMenuItem` (or its sub-roles) are tracked automatically. No selection
3898
- * state — menus fire actions through the `itemActivated` output.
4786
+ * state - menus fire actions through the `itemActivated` output.
4787
+ *
4788
+ * @category common/interactive/menu
4789
+ * @docsKind primary
4790
+ * @wcag AA
4791
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu.directive.ts
4792
+ * @since 0.1.0
4793
+ * @relatedTo CngxMenuTrigger, CngxMenuItem, CngxMenuGroup, CngxContextMenuTrigger, CngxActiveDescendant
4794
+ * <example-url>http://localhost:4200/#/common/interactive/context-menu/right-click-target-zone</example-url>
4795
+ * <example-url>http://localhost:4200/#/common/interactive/menu/submenu/two-level-submenu</example-url>
4796
+ * <example-url>http://localhost:4200/#/common/interactive/menu/trigger/dropdown-menu</example-url>
4797
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
3899
4798
  */
3900
4799
  declare class CngxMenu implements CngxMenuHost {
3901
4800
  /** Accessible label. */
3902
4801
  readonly label: _angular_core.InputSignal<string>;
3903
- /** Underlying `CngxActiveDescendant` — exposed for trigger composition. */
4802
+ /** Underlying `CngxActiveDescendant` - exposed for trigger composition. */
3904
4803
  readonly ad: CngxActiveDescendant;
4804
+ private readonly elementRef;
3905
4805
  private readonly announcer;
3906
4806
  private readonly menuConfig;
3907
4807
  /**
@@ -3913,17 +4813,40 @@ declare class CngxMenu implements CngxMenuHost {
3913
4813
  /** Emits the activated item's value on Enter/Space/click. */
3914
4814
  readonly itemActivated: _angular_core.OutputRef<unknown>;
3915
4815
  constructor();
4816
+ /**
4817
+ * Move DOM focus to the menu container so its host
4818
+ * `CngxActiveDescendant` receives keyboard input. Consumers (notably
4819
+ * `CngxContextMenuTrigger`) call this after open to transfer focus
4820
+ * from the trigger zone into the menu. The host element MUST carry a
4821
+ * non-negative `tabindex` for focus to land - the menu's stories use
4822
+ * `tabindex="0"` and consumers should mirror that.
4823
+ *
4824
+ * `preventScroll: true` keeps the popover anchored when focusing into
4825
+ * a menu that lives outside the visual viewport edge.
4826
+ */
4827
+ focus(): void;
3916
4828
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenu, never>;
3917
4829
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenu, "[cngxMenu]", ["cngxMenu"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; }, { "itemActivated": "itemActivated"; }, ["submenuItems"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; }; outputs: {}; }]>;
3918
4830
  }
3919
4831
 
3920
4832
  /**
3921
4833
  * A single action menuitem registered with a surrounding `CngxActiveDescendant`.
3922
- * Unlike `CngxOption`, menu items carry no selection state — activation fires
4834
+ * Unlike `CngxOption`, menu items carry no selection state - activation fires
3923
4835
  * the AD's `activated` output and the consumer dispatches the action.
3924
4836
  *
3925
4837
  * Click activates (honouring the disabled state). `pointerenter` highlights
3926
4838
  * without activating, matching native menu behaviour.
4839
+ *
4840
+ * @category common/interactive/menu
4841
+ * @docsKind primary
4842
+ * @wcag AA
4843
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item.directive.ts
4844
+ * @since 0.1.0
4845
+ * @relatedTo CngxMenu, CngxMenuItemCheckbox, CngxMenuItemRadio, CngxMenuItemSubmenu
4846
+ * <example-url>http://localhost:4200/#/common/interactive/context-menu/right-click-target-zone</example-url>
4847
+ * <example-url>http://localhost:4200/#/common/interactive/menu/submenu/two-level-submenu</example-url>
4848
+ * <example-url>http://localhost:4200/#/common/interactive/menu/trigger/dropdown-menu</example-url>
4849
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
3927
4850
  */
3928
4851
  declare class CngxMenuItem<T = unknown> implements CngxAdItemHandle {
3929
4852
  readonly value: _angular_core.InputSignal<T | undefined>;
@@ -3944,9 +4867,17 @@ declare class CngxMenuItem<T = unknown> implements CngxAdItemHandle {
3944
4867
 
3945
4868
  /**
3946
4869
  * Marker directive for the leading icon position inside a `[cngxMenuItem]`.
3947
- * Applies the BEM class `cngx-menu-item__icon` to the host element. Pure
3948
- * presentational hook — no inputs, no behaviour. Consumers style the
3949
- * position via the BEM selector.
4870
+ * Applies `cngx-menu-item__icon` to the host element and defaults the host
4871
+ * to `aria-hidden="true"` - the slot is decorative, the item's accessible
4872
+ * name comes from the projected label. Consumers needing a screen-reader
4873
+ * label on the icon override the default with `[attr.aria-hidden]="null"`.
4874
+ *
4875
+ * @category common/interactive/menu
4876
+ * @wcag AA
4877
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-slot.directives.ts
4878
+ * @since 0.1.0
4879
+ * @relatedTo CngxMenuItem, CngxMenuItemLabel, CngxMenuItemSuffix, CngxMenuItemKbd
4880
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
3950
4881
  */
3951
4882
  declare class CngxMenuItemIcon {
3952
4883
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuItemIcon, never>;
@@ -3954,7 +4885,16 @@ declare class CngxMenuItemIcon {
3954
4885
  }
3955
4886
  /**
3956
4887
  * Marker directive for the primary label position inside a
3957
- * `[cngxMenuItem]`. Applies `cngx-menu-item__label`.
4888
+ * `[cngxMenuItem]`. Applies `cngx-menu-item__label`. No `aria-hidden`
4889
+ * default - the label is the menu item's accessible name and must reach
4890
+ * assistive technology.
4891
+ *
4892
+ * @category common/interactive/menu
4893
+ * @wcag AA
4894
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-slot.directives.ts
4895
+ * @since 0.1.0
4896
+ * @relatedTo CngxMenuItem, CngxMenuItemIcon, CngxMenuItemSuffix, CngxMenuItemKbd
4897
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
3958
4898
  */
3959
4899
  declare class CngxMenuItemLabel {
3960
4900
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuItemLabel, never>;
@@ -3962,8 +4902,19 @@ declare class CngxMenuItemLabel {
3962
4902
  }
3963
4903
  /**
3964
4904
  * Marker directive for a trailing detail slot inside a `[cngxMenuItem]`
3965
- * — secondary text or a status pill that sits between the label and the
3966
- * keyboard-shortcut hint. Applies `cngx-menu-item__suffix`.
4905
+ * - secondary text or a status pill that sits between the label and the
4906
+ * keyboard-shortcut hint. Applies `cngx-menu-item__suffix` and defaults
4907
+ * the host to `aria-hidden="true"`. The slot is supplemental, the
4908
+ * primary name belongs to the label. Override with
4909
+ * `[attr.aria-hidden]="null"` when the suffix carries meaning AT needs
4910
+ * (status text, semantic badge).
4911
+ *
4912
+ * @category common/interactive/menu
4913
+ * @wcag AA
4914
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-slot.directives.ts
4915
+ * @since 0.1.0
4916
+ * @relatedTo CngxMenuItem, CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemKbd
4917
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
3967
4918
  */
3968
4919
  declare class CngxMenuItemSuffix {
3969
4920
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuItemSuffix, never>;
@@ -3971,15 +4922,26 @@ declare class CngxMenuItemSuffix {
3971
4922
  }
3972
4923
  /**
3973
4924
  * Marker directive for the keyboard-shortcut hint position inside a
3974
- * `[cngxMenuItem]`. Applies `cngx-menu-item__kbd`. Typically placed on
3975
- * a `<kbd>` element rendering text like `⌘X`.
4925
+ * `[cngxMenuItem]`. Applies `cngx-menu-item__kbd` and defaults the host
4926
+ * to `aria-hidden="true"` - the visual hint duplicates the underlying
4927
+ * accelerator already wired to the consumer's command, AT readout of the
4928
+ * hint would just repeat the label. Typically placed on a `<kbd>`.
4929
+ * Override with `[attr.aria-hidden]="null"` if the hint is a consumer's
4930
+ * primary affordance.
4931
+ *
4932
+ * @category common/interactive/menu
4933
+ * @wcag AA
4934
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-slot.directives.ts
4935
+ * @since 0.1.0
4936
+ * @relatedTo CngxMenuItem, CngxMenuItemIcon, CngxMenuItemLabel, CngxMenuItemSuffix
4937
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
3976
4938
  */
3977
4939
  declare class CngxMenuItemKbd {
3978
4940
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuItemKbd, never>;
3979
4941
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenuItemKbd, "[cngxMenuItemKbd]", ["cngxMenuItemKbd"], {}, {}, never, never, true, never>;
3980
4942
  }
3981
4943
 
3982
- /** See `CngxListboxTrigger` — same structural contract. */
4944
+ /** See `CngxListboxTrigger` - same structural contract. */
3983
4945
  interface PopoverController$2 {
3984
4946
  readonly isVisible: () => boolean;
3985
4947
  show(): void;
@@ -3988,19 +4950,19 @@ interface PopoverController$2 {
3988
4950
  set(el: HTMLElement | null): void;
3989
4951
  };
3990
4952
  /**
3991
- * Popover unique id signal — used to compose the `anchor-name` CSS value
4953
+ * Popover unique id signal - used to compose the `anchor-name` CSS value
3992
4954
  * the browser's CSS Anchor Positioning expects on the anchor element.
3993
4955
  */
3994
4956
  readonly id: () => string;
3995
4957
  /**
3996
- * Popover host element — the submenu directive attaches hover listeners to
4958
+ * Popover host element - the submenu directive attaches hover listeners to
3997
4959
  * it so the submenu stays open while the user mouses over its items.
3998
4960
  */
3999
4961
  readonly elementRef: ElementRef<HTMLElement>;
4000
4962
  }
4001
4963
  /**
4002
4964
  * Companion directive applied to a `[cngxMenuItem]` that opens a nested
4003
- * submenu. The directive itself does NOT render `role="menuitem"` — that
4965
+ * submenu. The directive itself does NOT render `role="menuitem"` - that
4004
4966
  * stays on `CngxMenuItem`. Adds `aria-haspopup="menu"` and reactive
4005
4967
  * `aria-expanded`, registers itself with the surrounding menu as a
4006
4968
  * submenu source so the menu trigger can drive arrow-right / arrow-left
@@ -4014,6 +4976,14 @@ interface PopoverController$2 {
4014
4976
  * The submenu's `<div cngxPopover>` MUST set `[exclusive]="false"` so that
4015
4977
  * opening it does not light-dismiss the parent popover. This is the only
4016
4978
  * extra wiring the consumer needs beyond the two inputs.
4979
+ *
4980
+ * @category common/interactive/menu
4981
+ * @docsKind primary
4982
+ * @wcag AA
4983
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-submenu.directive.ts
4984
+ * @since 0.1.0
4985
+ * @relatedTo CngxMenuItem, CngxMenu, CngxMenuTrigger
4986
+ * <example-url>http://localhost:4200/#/common/interactive/menu/submenu/two-level-submenu</example-url>
4017
4987
  */
4018
4988
  declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
4019
4989
  /** Popover wrapping the submenu. Required. */
@@ -4028,12 +4998,12 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
4028
4998
  * activeId)`. When applied alongside `[cngxMenuItem]` the directive
4029
4999
  * mirrors the sibling's id so the trigger's lookup matches the AD's
4030
5000
  * `activeId`. When applied alone (no sibling), falls back to a fresh
4031
- * `nextUid` — the AD will never highlight this element so the trigger
5001
+ * `nextUid` - the AD will never highlight this element so the trigger
4032
5002
  * lookup is moot, but the host element still receives a valid id.
4033
5003
  */
4034
5004
  get id(): string;
4035
5005
  readonly isOpen: _angular_core.Signal<boolean>;
4036
- /** CSS Anchor Positioning name — matches the popover's `position-anchor`. */
5006
+ /** CSS Anchor Positioning name - matches the popover's `position-anchor`. */
4037
5007
  protected readonly cssAnchorName: _angular_core.Signal<string>;
4038
5008
  get inner(): CngxMenuHost;
4039
5009
  open(): void;
@@ -4060,10 +5030,52 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
4060
5030
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenuItemSubmenu, "[cngxMenuItemSubmenu]", ["cngxMenuItemSubmenu"], { "popover": { "alias": "cngxMenuItemSubmenu"; "required": true; "isSignal": true; }; "submenuMenu": { "alias": "submenuMenu"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
4061
5031
  }
4062
5032
 
5033
+ /**
5034
+ * Recommended `position-try-fallbacks` chain for menu submenu popovers.
5035
+ *
5036
+ * Consumers wire the const on the submenu's `cngxPopover` element:
5037
+ * ```html
5038
+ * <div cngxPopover [positionTryFallbacks]="CNGX_SUBMENU_TRY_FALLBACKS">
5039
+ * <!-- submenu items -->
5040
+ * </div>
5041
+ * ```
5042
+ *
5043
+ * The chain matches the
5044
+ * `projects/forms/select/shared/select-base.css:759` precedent
5045
+ * (`flip-block, flip-inline, flip-block flip-inline`) — `flip-inline`
5046
+ * is the dominant submenu clip case (right submenu hits the viewport
5047
+ * right edge → flips to the left side of its parent item),
5048
+ * `flip-block` covers the vertical case, and the composed form
5049
+ * covers diagonal clipping.
5050
+ *
5051
+ * `CngxMenuItemSubmenu` emits a one-shot dev-mode warning when a
5052
+ * submenu popover ships without `positionTryFallbacks` — the const
5053
+ * is documented as the canonical opt-in.
5054
+ *
5055
+ * Typed as a string-literal tuple via `as const` rather than the
5056
+ * `PopoverPositionTryFallback` union from `@cngx/common/popover` —
5057
+ * the cross-entry-point import would reverse the existing
5058
+ * `popover -> interactive` dependency direction and break ng-packagr.
5059
+ * Consumers binding the const to `[positionTryFallbacks]` get
5060
+ * compile-time type checking from the input's typed signature on the
5061
+ * popover side.
5062
+ *
5063
+ * @category common/interactive/menu
5064
+ */
5065
+ declare const CNGX_SUBMENU_TRY_FALLBACKS: readonly ["flip-inline", "flip-block", "flip-block flip-inline"];
5066
+
4063
5067
  /**
4064
5068
  * Checkable menu item (`role="menuitemcheckbox"`). Activation toggles
4065
5069
  * `checked` and emits `checkedChange`. Unlike `CngxMenuItem`, the item
4066
5070
  * carries its own selection state.
5071
+ *
5072
+ * @category common/interactive/menu
5073
+ * @docsKind primary
5074
+ * @wcag AA
5075
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-checkbox.directive.ts
5076
+ * @since 0.1.0
5077
+ * @relatedTo CngxMenuItem, CngxMenuItemRadio, CngxMenu
5078
+ * <example-url>http://localhost:4200/#/common/interactive/menu/checkable/text-formatting-menu</example-url>
4067
5079
  */
4068
5080
  declare class CngxMenuItemCheckbox<T = unknown> implements CngxAdItemHandle {
4069
5081
  readonly value: _angular_core.InputSignal<T | undefined>;
@@ -4085,8 +5097,16 @@ declare class CngxMenuItemCheckbox<T = unknown> implements CngxAdItemHandle {
4085
5097
 
4086
5098
  /**
4087
5099
  * Radio-style menu item (`role="menuitemradio"`). Mutual exclusion is scoped
4088
- * to the enclosing `CngxMenuGroup` — only one radio per group is checked at
5100
+ * to the enclosing `CngxMenuGroup` - only one radio per group is checked at
4089
5101
  * a time.
5102
+ *
5103
+ * @category common/interactive/menu
5104
+ * @docsKind primary
5105
+ * @wcag AA
5106
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-item-radio.directive.ts
5107
+ * @since 0.1.0
5108
+ * @relatedTo CngxMenuItem, CngxMenuItemCheckbox, CngxMenuGroup
5109
+ * <example-url>http://localhost:4200/#/common/interactive/menu/checkable/text-formatting-menu</example-url>
4090
5110
  */
4091
5111
  declare class CngxMenuItemRadio<T = unknown> implements CngxAdItemHandle {
4092
5112
  readonly value: _angular_core.InputSignal<T>;
@@ -4113,6 +5133,8 @@ declare class CngxMenuItemRadio<T = unknown> implements CngxAdItemHandle {
4113
5133
  * `CngxMenuItemRadio` children. Children read `selectedValue()` to compute
4114
5134
  * `aria-checked` and call `select(value)` to update on click; the host owns
4115
5135
  * the writable signal so consumers two-way bind through it.
5136
+ *
5137
+ * @category common/interactive/menu
4116
5138
  */
4117
5139
  interface CngxMenuRadioGroup<T> {
4118
5140
  readonly selectedValue: ModelSignal<T | undefined>;
@@ -4120,8 +5142,10 @@ interface CngxMenuRadioGroup<T> {
4120
5142
  select(value: T): void;
4121
5143
  }
4122
5144
  /**
4123
- * Factory shape — pass into a custom DI provider to wrap selection in
5145
+ * Factory shape - pass into a custom DI provider to wrap selection in
4124
5146
  * telemetry, server-sync, or audit logging without forking `CngxMenuGroup`.
5147
+ *
5148
+ * @category common/interactive/menu
4125
5149
  */
4126
5150
  type CngxMenuRadioGroupFactory = <T>(deps: {
4127
5151
  readonly selectedValue: ModelSignal<T | undefined>;
@@ -4132,12 +5156,19 @@ type CngxMenuRadioGroupFactory = <T>(deps: {
4132
5156
  * signals. `CngxMenuGroup` implements the contract directly; this factory
4133
5157
  * exists for hand-built menu hosts that do not declare a directive but
4134
5158
  * still need to provide `CNGX_MENU_RADIO_GROUP`.
5159
+ *
5160
+ * @category common/interactive/menu
4135
5161
  */
4136
5162
  declare const createMenuRadioController: CngxMenuRadioGroupFactory;
4137
5163
  /**
4138
5164
  * DI token a radio-grouping menu host provides for `CngxMenuItemRadio` to
4139
5165
  * resolve. Items inject with `{ optional: true }` so a radio item rendered
4140
5166
  * outside any group still works (it just reports `aria-checked="false"`).
5167
+ *
5168
+ * @category common/interactive/menu
5169
+ * @wcag AA
5170
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-radio-controller.ts
5171
+ * @since 0.1.0
4141
5172
  */
4142
5173
  declare const CNGX_MENU_RADIO_GROUP: InjectionToken<CngxMenuRadioGroup<unknown>>;
4143
5174
 
@@ -4146,6 +5177,14 @@ declare const CNGX_MENU_RADIO_GROUP: InjectionToken<CngxMenuRadioGroup<unknown>>
4146
5177
  * label. For radio groups, the host owns the selected value and exposes it
4147
5178
  * to enclosed `CngxMenuItemRadio` children through the
4148
5179
  * `CNGX_MENU_RADIO_GROUP` contract.
5180
+ *
5181
+ * @category common/interactive/menu
5182
+ * @docsKind primary
5183
+ * @wcag AA
5184
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-group.directive.ts
5185
+ * @since 0.1.0
5186
+ * @relatedTo CngxMenu, CngxMenuItemRadio, CngxMenuItem
5187
+ * <example-url>http://localhost:4200/#/common/interactive/menu/checkable/text-formatting-menu</example-url>
4149
5188
  */
4150
5189
  declare class CngxMenuGroup implements CngxMenuRadioGroup<unknown> {
4151
5190
  /** Accessible group label. */
@@ -4163,8 +5202,16 @@ declare class CngxMenuGroup implements CngxMenuRadioGroup<unknown> {
4163
5202
  * Visual + semantic separator inside a `CngxMenu`. Renders `role="separator"`
4164
5203
  * with `aria-orientation="horizontal"`. Does **not** register `CNGX_AD_ITEM`,
4165
5204
  * so the surrounding `CngxActiveDescendant` skips it during arrow-key
4166
- * navigation and typeahead — required for action-menu and dropdown-menu
5205
+ * navigation and typeahead - required for action-menu and dropdown-menu
4167
5206
  * patterns where separators visually group items but are not selectable.
5207
+ *
5208
+ * @category common/interactive/menu
5209
+ * @wcag AA
5210
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-separator.directive.ts
5211
+ * @since 0.1.0
5212
+ * @relatedTo CngxMenu, CngxMenuItem, CngxMenuGroup
5213
+ * <example-url>http://localhost:4200/#/common/interactive/menu/submenu/two-level-submenu</example-url>
5214
+ * <example-url>http://localhost:4200/#/common/interactive/menu/base/action-menu-with-separator</example-url>
4168
5215
  */
4169
5216
  declare class CngxMenuSeparator {
4170
5217
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuSeparator, never>;
@@ -4176,6 +5223,8 @@ declare class CngxMenuSeparator {
4176
5223
  * menu trigger or a future menubar directive) interpret the action: fire
4177
5224
  * the matching side effect (open/close a popover, hand focus to a parent
4178
5225
  * menu) and `event.preventDefault()` for anything non-`noop`.
5226
+ *
5227
+ * @category common/interactive/menu
4179
5228
  */
4180
5229
  type CngxMenuNavAction = {
4181
5230
  readonly kind: 'open-submenu';
@@ -4192,6 +5241,8 @@ type CngxMenuNavAction = {
4192
5241
  * `CngxActiveDescendant.activeId()` snapshot at key-press time;
4193
5242
  * `hasSubmenu`/`submenuOpen` describe whatever submenu state the consumer
4194
5243
  * tracks for the active item.
5244
+ *
5245
+ * @category common/interactive/menu
4195
5246
  */
4196
5247
  interface CngxMenuNavContext {
4197
5248
  readonly activeId: string | null;
@@ -4205,9 +5256,11 @@ interface CngxMenuNavContext {
4205
5256
  * always opens, never traverses into the submenu") register their own
4206
5257
  * via `CNGX_MENU_NAV_STRATEGY`.
4207
5258
  *
4208
- * Strategy steps are pure decisions — they do not call popover.show() or
5259
+ * Strategy steps are pure decisions - they do not call popover.show() or
4209
5260
  * touch any signal directly. The directive that consults the strategy
4210
5261
  * acts on the returned action.
5262
+ *
5263
+ * @category common/interactive/menu
4211
5264
  */
4212
5265
  interface CngxMenuNavStrategy {
4213
5266
  onArrowRight(ctx: CngxMenuNavContext): CngxMenuNavAction;
@@ -4223,6 +5276,8 @@ interface CngxMenuNavStrategy {
4223
5276
  * - **ArrowLeft** when a submenu is open at the current level →
4224
5277
  * `close-submenu`. Otherwise → `move-to-parent` (an enclosing menubar
4225
5278
  * interprets that; a standalone menu trigger treats it as noop).
5279
+ *
5280
+ * @category common/interactive/menu
4226
5281
  */
4227
5282
  declare function createW3CMenuStrategy(): CngxMenuNavStrategy;
4228
5283
  /**
@@ -4230,24 +5285,34 @@ declare function createW3CMenuStrategy(): CngxMenuNavStrategy;
4230
5285
  * directives consult on every ArrowLeft/ArrowRight press. Defaults to
4231
5286
  * {@link createW3CMenuStrategy}; override via `providers` /
4232
5287
  * `viewProviders` for alternative keyboard semantics.
5288
+ *
5289
+ * @category common/interactive/menu
5290
+ * @wcag AA
5291
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-nav-strategy.ts
5292
+ * @since 0.1.0
4233
5293
  */
4234
5294
  declare const CNGX_MENU_NAV_STRATEGY: InjectionToken<CngxMenuNavStrategy>;
4235
5295
 
4236
5296
  /**
4237
5297
  * Localised UI strings the menu announces or otherwise renders. English by
4238
5298
  * default; consumers override via {@link withAriaLabels}.
5299
+ *
5300
+ * @category common/interactive/menu
4239
5301
  */
4240
5302
  interface CngxMenuAriaLabels {
4241
5303
  readonly submenuOpened: string;
4242
5304
  readonly submenuClosed: string;
4243
5305
  readonly itemActivated: string;
4244
5306
  readonly itemDisabled: string;
5307
+ readonly menuDismissed: string;
4245
5308
  }
4246
5309
  /**
4247
5310
  * Resolved configuration consumed by every menu directive in the family.
4248
5311
  * Default values live in {@link DEFAULT_MENU_CONFIG}; override at app
4249
5312
  * scope via {@link provideMenuConfig} or per-component via
4250
5313
  * {@link provideMenuConfigAt}.
5314
+ *
5315
+ * @category common/interactive/menu
4251
5316
  */
4252
5317
  interface CngxMenuConfig {
4253
5318
  readonly ariaLabels: CngxMenuAriaLabels;
@@ -4255,6 +5320,31 @@ interface CngxMenuConfig {
4255
5320
  readonly submenuOpenDelay: number;
4256
5321
  readonly submenuCloseDelay: number;
4257
5322
  readonly closeOnSelect: boolean;
5323
+ /**
5324
+ * Whether `pointerdown` outside both the menu's popover and the
5325
+ * trigger host dismisses the menu. Native context menus, browser
5326
+ * right-click menus, and major web apps all close on outside click.
5327
+ * Default `true`.
5328
+ */
5329
+ readonly dismissOnOutsideClick: boolean;
5330
+ /**
5331
+ * Whether window `scroll` while the menu is open dismisses it. Default
5332
+ * `false` - consumers with scrollable menu panels (long lists,
5333
+ * treeselect-style) often want the menu to remain anchored during
5334
+ * scroll. Opt in via {@link withDismissOnScroll}.
5335
+ */
5336
+ readonly dismissOnScroll: boolean;
5337
+ /**
5338
+ * Whether the "context lost" bundle dismisses the menu. The bundle
5339
+ * covers BOTH window `blur` (system notification, OS-native menu
5340
+ * overlaying, tab switch) AND document `pointercancel` outside the
5341
+ * popover and trigger host (palm rejection on touch devices,
5342
+ * gesture cancelled by the browser). The two sources share one
5343
+ * toggle by design; consumers needing one without the other replace
5344
+ * the entire handler via {@link CNGX_MENU_DISMISS_HANDLER_FACTORY}.
5345
+ * Default `true`.
5346
+ */
5347
+ readonly dismissOnBlur: boolean;
4258
5348
  }
4259
5349
  /**
4260
5350
  * Single feature-flag function consumed by {@link provideMenuConfig} and
@@ -4262,14 +5352,18 @@ interface CngxMenuConfig {
4262
5352
  * future config surfaces (e.g. submenu-only or announcer overrides) can
4263
5353
  * compose through the same `provideCngxMenu` aggregator without breaking
4264
5354
  * the public API of existing `with*` features.
5355
+ *
5356
+ * @category common/interactive/menu
4265
5357
  */
4266
5358
  type CngxMenuConfigFeature = ((config: CngxMenuConfig) => CngxMenuConfig) & {
4267
5359
  readonly _target?: 'config';
4268
5360
  };
4269
5361
  /**
4270
- * Library-default menu configuration. **English-only** — German (or any
5362
+ * Library-default menu configuration. **English-only** - German (or any
4271
5363
  * other locale) is consumer-supplied via `withAriaLabels` per the
4272
5364
  * `feedback_en_default_locale` rule.
5365
+ *
5366
+ * @category common/interactive/menu
4273
5367
  */
4274
5368
  declare const DEFAULT_MENU_CONFIG: CngxMenuConfig;
4275
5369
  /**
@@ -4277,6 +5371,10 @@ declare const DEFAULT_MENU_CONFIG: CngxMenuConfig;
4277
5371
  * {@link DEFAULT_MENU_CONFIG} at root; override via {@link provideMenuConfig}
4278
5372
  * (app-wide) or {@link provideMenuConfigAt} (component scope via
4279
5373
  * `viewProviders`).
5374
+ *
5375
+ * @category common/interactive/menu
5376
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-config.ts
5377
+ * @since 0.1.0
4280
5378
  */
4281
5379
  declare const CNGX_MENU_CONFIG: InjectionToken<CngxMenuConfig>;
4282
5380
  /**
@@ -4293,17 +5391,23 @@ declare const CNGX_MENU_CONFIG: InjectionToken<CngxMenuConfig>;
4293
5391
  * ],
4294
5392
  * });
4295
5393
  * ```
5394
+ *
5395
+ * @category common/interactive/menu
4296
5396
  */
4297
5397
  declare function provideMenuConfig(...features: CngxMenuConfigFeature[]): EnvironmentProviders;
4298
5398
  /**
4299
5399
  * Component-scoped menu configuration override. Pass into a directive or
4300
5400
  * component's `viewProviders`; features merge on top of the parent
4301
5401
  * config (root or an enclosing scope).
5402
+ *
5403
+ * @category common/interactive/menu
4302
5404
  */
4303
5405
  declare function provideMenuConfigAt(...features: CngxMenuConfigFeature[]): Provider[];
4304
5406
  /**
4305
5407
  * Resolves the {@link CngxMenuConfig} from the current injection scope.
4306
5408
  * Must run inside an injection context.
5409
+ *
5410
+ * @category common/interactive/menu
4307
5411
  */
4308
5412
  declare function injectMenuConfig(): CngxMenuConfig;
4309
5413
 
@@ -4311,36 +5415,301 @@ declare function injectMenuConfig(): CngxMenuConfig;
4311
5415
  * Override one or more ARIA strings (English defaults). Unset keys keep
4312
5416
  * their default value, so consumers can supply only the locale strings
4313
5417
  * they care about.
5418
+ *
5419
+ * @category common/interactive/menu
4314
5420
  */
4315
5421
  declare function withAriaLabels(partial: Partial<CngxMenuAriaLabels>): CngxMenuConfigFeature;
4316
5422
  /**
4317
5423
  * Override the typeahead debounce window (milliseconds) for menu
4318
5424
  * navigation. Default: `300`.
5425
+ *
5426
+ * @category common/interactive/menu
4319
5427
  */
4320
5428
  declare function withTypeaheadDebounce(ms: number): CngxMenuConfigFeature;
4321
5429
  /**
4322
5430
  * Override the delay between hovering a submenu parent and opening the
4323
5431
  * submenu (milliseconds). Default: `0` (open immediately on activation).
4324
5432
  * Reserved for hover-driven menubar implementations.
5433
+ *
5434
+ * @category common/interactive/menu
4325
5435
  */
4326
5436
  declare function withSubmenuOpenDelay(ms: number): CngxMenuConfigFeature;
4327
5437
  /**
4328
5438
  * Override the delay between leaving a submenu parent and closing the
4329
5439
  * submenu (milliseconds). Default: `0`. Reserved for hover-driven
4330
5440
  * menubar implementations.
5441
+ *
5442
+ * @category common/interactive/menu
4331
5443
  */
4332
5444
  declare function withSubmenuCloseDelay(ms: number): CngxMenuConfigFeature;
4333
5445
  /**
4334
5446
  * Whether activating a leaf item closes the menu. Default: `true`
4335
5447
  * (menu semantics — distinct from listbox/combobox which stay open).
5448
+ *
5449
+ * @category common/interactive/menu
4336
5450
  */
4337
5451
  declare function withCloseOnSelect(close: boolean): CngxMenuConfigFeature;
5452
+ /**
5453
+ * Whether `pointerdown` outside the menu's popover and the trigger host
5454
+ * dismisses the menu. Default: `true`. Pass `false` for ESC-only
5455
+ * semantics (e.g. a tutorial overlay that wants to keep the menu open
5456
+ * while the user clicks through other UI).
5457
+ *
5458
+ * @category common/interactive/menu
5459
+ */
5460
+ declare function withDismissOnOutsideClick(dismiss: boolean): CngxMenuConfigFeature;
5461
+ /**
5462
+ * Whether window `scroll` while the menu is open dismisses it. Default:
5463
+ * `false`. Opt in when the menu should follow native context-menu
5464
+ * behaviour and close as soon as the page scrolls. Scroll-dismiss
5465
+ * listens to `window` only - the nearest scrollable ancestor is not
5466
+ * traversed.
5467
+ *
5468
+ * @category common/interactive/menu
5469
+ */
5470
+ declare function withDismissOnScroll(dismiss: boolean): CngxMenuConfigFeature;
5471
+ /**
5472
+ * Whether the "context lost" bundle dismisses the menu. The bundle
5473
+ * covers BOTH window `blur` (system notification, OS-native menu
5474
+ * overlaying, tab switch) AND document `pointercancel` outside the
5475
+ * popover and trigger host (palm rejection on touch, gesture cancelled
5476
+ * by the browser). The two sources share one toggle because consumers
5477
+ * who want one rarely want the other off; consumers needing one
5478
+ * without the other replace the entire handler via
5479
+ * {@link CNGX_MENU_DISMISS_HANDLER_FACTORY}. Set to `false` to keep
5480
+ * both listeners off; `lastDismissSource` will then never report
5481
+ * `'blur'` or `'pointer-cancel'`.
5482
+ *
5483
+ * Default: `true`.
5484
+ *
5485
+ * @category common/interactive/menu
5486
+ */
5487
+ declare function withDismissOnBlur(dismiss: boolean): CngxMenuConfigFeature;
5488
+
5489
+ /**
5490
+ * Structural contract the menu dismiss handler reads from the popover.
5491
+ * Mirrors the inline `PopoverController` shape in
5492
+ * `menu-trigger.directive.ts` / `context-menu-trigger.directive.ts` to keep
5493
+ * `@cngx/common/interactive` free of `@cngx/common/popover` imports - the
5494
+ * popover module already depends on this entry-point and the reverse
5495
+ * import would close a circular ng-packagr dependency.
5496
+ *
5497
+ * @category common/interactive/menu
5498
+ */
5499
+ interface CngxMenuDismissPopoverRef {
5500
+ readonly isVisible: () => boolean;
5501
+ hide(): void;
5502
+ readonly elementRef: {
5503
+ readonly nativeElement: HTMLElement;
5504
+ };
5505
+ }
5506
+ /**
5507
+ * Identifier for the dismissal path that fired most recently.
5508
+ *
5509
+ * - `outside-click` - pointerdown outside both the popover and the trigger
5510
+ * host.
5511
+ * - `scroll` - window scroll while the menu is open.
5512
+ * - `blur` - window blur (system notification, OS-native context menu
5513
+ * overlaying the cngx menu).
5514
+ * - `pointer-cancel` - document pointercancel originating OUTSIDE the
5515
+ * popover and host (palm rejection from outside the menu, gesture
5516
+ * cancelled by the browser). In-menu palm rejections do not dismiss.
5517
+ * - `escape` - document `keydown` matching the `Escape` key while the
5518
+ * popover is visible. Detected by the factory's capture-phase keydown
5519
+ * listener so the source is recorded regardless of where DOM focus
5520
+ * sits (trigger button, menu container, or elsewhere).
5521
+ *
5522
+ * **Intent, not effect.** The factory records `'escape'` synchronously
5523
+ * on the keystroke and does NOT call `popover.hide()`. Whether the
5524
+ * menu actually closes is owned by `CngxPopover.closeOnEscape`:
5525
+ * consumers who set `[closeOnEscape]="false"` keep their menu open
5526
+ * even though `lastSource` reports `'escape'`. The other sources
5527
+ * (`outside-click`, `scroll`, `blur`, `pointer-cancel`) call
5528
+ * `popover.hide()` themselves and so always coincide with an actual
5529
+ * close - `'escape'` is the one source where intent and effect can
5530
+ * diverge.
5531
+ *
5532
+ * @category common/interactive/menu
5533
+ */
5534
+ type CngxMenuDismissSource = 'outside-click' | 'scroll' | 'blur' | 'pointer-cancel' | 'escape';
5535
+ /**
5536
+ * Options for {@link createMenuDismissHandler}.
5537
+ *
5538
+ * Each boolean toggles its listener (pair) independently. When
5539
+ * `dismissOnBlur` is `true`, both window `blur` and document
5540
+ * `pointercancel` listeners install together - they represent the same
5541
+ * "context lost" semantic and consumers who want one rarely want the
5542
+ * other off.
5543
+ *
5544
+ * @category common/interactive/menu
5545
+ */
5546
+ interface CngxMenuDismissHandlerOptions {
5547
+ /** Popover whose `.hide()` runs when any dismissal source fires. */
5548
+ readonly popover: CngxMenuDismissPopoverRef;
5549
+ /**
5550
+ * Trigger host element. Pointerdown / pointercancel events whose
5551
+ * target lies inside this element are NOT treated as dismissal -
5552
+ * interactions with the trigger itself should never close the menu
5553
+ * it just opened.
5554
+ */
5555
+ readonly hostElement: HTMLElement;
5556
+ /** Install document `pointerdown` outside-click listener. */
5557
+ readonly dismissOnOutsideClick: boolean;
5558
+ /** Install window `scroll` listener (capture, passive). */
5559
+ readonly dismissOnScroll: boolean;
5560
+ /**
5561
+ * Install window `blur` AND document `pointercancel` listeners.
5562
+ * Bundled together because both signal context loss. `pointercancel`
5563
+ * events whose target lies inside the popover or trigger host are
5564
+ * filtered out (in-menu palm rejection must not dismiss).
5565
+ */
5566
+ readonly dismissOnBlur: boolean;
5567
+ /**
5568
+ * Synchronous callback invoked from the DOM event handler whenever a
5569
+ * dismissal source fires. Runs AFTER `popover.hide()` so consumers
5570
+ * observing the source see the post-close state. Used by
5571
+ * {@link createMenuTriggerDismissBinding} to write a reactive
5572
+ * `lastSource` signal from outside any Angular `effect()` context.
5573
+ */
5574
+ readonly onDismiss?: (source: CngxMenuDismissSource) => void;
5575
+ /**
5576
+ * Sources whose listeners should NOT install even when their toggle
5577
+ * is `true`. Lets a consumer keep `dismissOnBlur: true` but skip the
5578
+ * bundled `pointer-cancel` listener (or vice versa) with a one-line
5579
+ * factory wrapper:
5580
+ *
5581
+ * ```ts
5582
+ * providers: [{
5583
+ * provide: CNGX_MENU_DISMISS_HANDLER_FACTORY,
5584
+ * useValue: (opts) => createMenuDismissHandler({
5585
+ * ...opts,
5586
+ * skipSources: new Set(['pointer-cancel']),
5587
+ * }),
5588
+ * }]
5589
+ * ```
5590
+ *
5591
+ * `'escape'` may be skipped too; the popover's global Escape listener
5592
+ * still owns the close path, so skipping only stops the source from
5593
+ * being recorded on `lastSource`.
5594
+ */
5595
+ readonly skipSources?: ReadonlySet<CngxMenuDismissSource>;
5596
+ }
5597
+ /**
5598
+ * Handler returned by {@link createMenuDismissHandler}. Call `attach()`
5599
+ * once per menu open; invoke the returned teardown on close.
5600
+ *
5601
+ * Source observation runs through
5602
+ * {@link CngxMenuDismissHandlerOptions.onDismiss}; the handler exposes
5603
+ * no reactive state of its own so the trigger directive can store it as
5604
+ * a plain field rather than a signal (avoids a signal write inside the
5605
+ * `isOpen` effect).
5606
+ *
5607
+ * @category common/interactive/menu
5608
+ */
5609
+ interface CngxMenuDismissHandler {
5610
+ /**
5611
+ * Install the listeners enabled by the options. Returns a teardown
5612
+ * closure that removes every installed listener. Each `attach()` must
5613
+ * be balanced by exactly one teardown call.
5614
+ */
5615
+ attach(): () => void;
5616
+ }
5617
+ /**
5618
+ * Factory signature for {@link CNGX_MENU_DISMISS_HANDLER_FACTORY}.
5619
+ *
5620
+ * @category common/interactive/menu
5621
+ */
5622
+ type CngxMenuDismissHandlerFactory = (opts: CngxMenuDismissHandlerOptions) => CngxMenuDismissHandler;
5623
+ /**
5624
+ * Default factory. Pure closure over `opts` - no Angular DI. Mirrors the
5625
+ * shape of `@cngx/forms/select`'s `createDismissHandler` so future
5626
+ * cross-family consolidation has a clean target.
5627
+ *
5628
+ * Override via {@link CNGX_MENU_DISMISS_HANDLER_FACTORY} for
5629
+ * telemetry-wrapped or test-doubled dismissal.
5630
+ *
5631
+ * @category common/interactive/menu
5632
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/dismiss-handler.ts
5633
+ * @since 0.1.0
5634
+ */
5635
+ declare function createMenuDismissHandler(opts: CngxMenuDismissHandlerOptions): CngxMenuDismissHandler;
5636
+ /**
5637
+ * Factory token for {@link CngxMenuDismissHandler}. Default
5638
+ * {@link createMenuDismissHandler}. Override via
5639
+ * `{ provide: CNGX_MENU_DISMISS_HANDLER_FACTORY, useFactory: () => myHandler }`
5640
+ * at app root for telemetry instrumentation, or in `viewProviders` for a
5641
+ * single feature scope.
5642
+ *
5643
+ * @category common/interactive/menu
5644
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/dismiss-handler.ts
5645
+ * @since 0.1.0
5646
+ */
5647
+ declare const CNGX_MENU_DISMISS_HANDLER_FACTORY: InjectionToken<CngxMenuDismissHandlerFactory>;
5648
+ /**
5649
+ * Options for {@link createMenuTriggerDismissBinding}. The popover is
5650
+ * passed as a thunk because trigger directives resolve their popover
5651
+ * input lazily (after Angular binds inputs) - the binding cannot capture
5652
+ * the concrete reference at construction time.
5653
+ *
5654
+ * @category common/interactive/menu
5655
+ */
5656
+ interface CngxMenuTriggerDismissBindingOptions {
5657
+ readonly popover: () => CngxMenuDismissPopoverRef;
5658
+ readonly hostElement: HTMLElement;
5659
+ readonly menuConfig: CngxMenuConfig;
5660
+ readonly factory: CngxMenuDismissHandlerFactory;
5661
+ /**
5662
+ * Synchronous notification invoked from the DOM event handler after
5663
+ * the binding's `lastSource` signal is updated. Trigger directives
5664
+ * use it to call `CngxMenuAnnouncer.announce(...)` so screen readers
5665
+ * hear which path closed the menu. Runs from the same call stack as
5666
+ * the source DOM event - safe for signal reads.
5667
+ */
5668
+ readonly onDismiss?: (source: CngxMenuDismissSource) => void;
5669
+ }
5670
+ /**
5671
+ * Trigger-side dismiss lifecycle. Owns the reactive `lastSource` signal
5672
+ * and the attach/detach pair both trigger directives invoke from their
5673
+ * `isOpen` effect. Extracted so `CngxMenuTrigger` and
5674
+ * `CngxContextMenuTrigger` share the same wiring without forking it.
5675
+ *
5676
+ * @category common/interactive/menu
5677
+ */
5678
+ interface CngxMenuTriggerDismissBinding {
5679
+ /**
5680
+ * Resolve the popover thunk, instantiate the handler on first call,
5681
+ * and install its listeners. Idempotent within a single open cycle.
5682
+ */
5683
+ attach(): void;
5684
+ /** Remove the listeners installed by the last `attach()`. Idempotent. */
5685
+ detach(): void;
5686
+ /**
5687
+ * The dismissal source that closed the menu most recently. `null`
5688
+ * before the first close. Read by templates / telemetry sinks.
5689
+ */
5690
+ readonly lastSource: Signal<CngxMenuDismissSource | null>;
5691
+ }
5692
+ /**
5693
+ * Build the dismiss lifecycle for a menu-bearing trigger directive.
5694
+ * Lazily instantiates the handler on first `attach()` so the trigger's
5695
+ * popover input is bound before the factory reads it. The returned
5696
+ * `lastSource` signal is owned by this binding - the factory writes it
5697
+ * via its `onDismiss` callback, which runs from DOM event handlers
5698
+ * (never inside an Angular `effect()`).
5699
+ *
5700
+ * @category common/interactive/menu
5701
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/dismiss-handler.ts
5702
+ * @since 0.1.0
5703
+ */
5704
+ declare function createMenuTriggerDismissBinding(opts: CngxMenuTriggerDismissBindingOptions): CngxMenuTriggerDismissBinding;
4338
5705
 
4339
5706
  /**
4340
5707
  * Public surface every menu-side consumer talks to. The class
4341
5708
  * `CngxMenuAnnouncer` is the default implementation; consumers wire a
4342
5709
  * custom (telemetry-wrapping, locale-aware, test-doubled) one by
4343
5710
  * overriding `CNGX_MENU_ANNOUNCER_FACTORY`.
5711
+ *
5712
+ * @category common/interactive/menu
4344
5713
  */
4345
5714
  interface CngxMenuAnnouncerLike {
4346
5715
  announce(message: string): void;
@@ -4349,6 +5718,8 @@ interface CngxMenuAnnouncerLike {
4349
5718
  * Factory shape consumed by `CNGX_MENU_ANNOUNCER_FACTORY`. The default
4350
5719
  * factory is {@link createMenuAnnouncer}; override returns any object
4351
5720
  * that satisfies {@link CngxMenuAnnouncerLike}.
5721
+ *
5722
+ * @category common/interactive/menu
4352
5723
  */
4353
5724
  type CngxMenuAnnouncerFactory = () => CngxMenuAnnouncerLike;
4354
5725
  /**
@@ -4363,6 +5734,12 @@ type CngxMenuAnnouncerFactory = () => CngxMenuAnnouncerLike;
4363
5734
  * Default factory output for {@link CNGX_MENU_ANNOUNCER_FACTORY}.
4364
5735
  * Consumers obtain the announcer via the factory token, never by
4365
5736
  * `inject(CngxMenuAnnouncer)` directly, so a swap is enterprise-wide.
5737
+ *
5738
+ * @category common/interactive/menu
5739
+ * @wcag AA
5740
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-announcer.ts
5741
+ * @since 0.1.0
5742
+ * @relatedTo CngxMenu, CngxMenuTrigger, CngxMenuItemSubmenu
4366
5743
  */
4367
5744
  declare class CngxMenuAnnouncer implements CngxMenuAnnouncerLike {
4368
5745
  private readonly doc;
@@ -4384,6 +5761,8 @@ declare class CngxMenuAnnouncer implements CngxMenuAnnouncerLike {
4384
5761
  * {@link CNGX_MENU_ANNOUNCER_FACTORY}.
4385
5762
  *
4386
5763
  * Must run inside an injection context.
5764
+ *
5765
+ * @category common/interactive/menu
4387
5766
  */
4388
5767
  declare function createMenuAnnouncer(): CngxMenuAnnouncerLike;
4389
5768
  /**
@@ -4404,24 +5783,29 @@ declare function createMenuAnnouncer(): CngxMenuAnnouncerLike;
4404
5783
  * ],
4405
5784
  * });
4406
5785
  * ```
5786
+ *
5787
+ * @category common/interactive/menu
5788
+ * @wcag AA
5789
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-announcer.ts
5790
+ * @since 0.1.0
4407
5791
  */
4408
5792
  declare const CNGX_MENU_ANNOUNCER_FACTORY: InjectionToken<CngxMenuAnnouncerFactory>;
4409
5793
  /**
4410
5794
  * Resolve the {@link CngxMenuAnnouncerLike} from the current injection
4411
5795
  * scope via the factory token. Must run inside an injection context.
5796
+ *
5797
+ * @category common/interactive/menu
4412
5798
  */
4413
5799
  declare function injectMenuAnnouncer(): CngxMenuAnnouncerLike;
4414
5800
 
4415
- /** See `CngxListboxTrigger` — same structural contract. */
4416
- interface PopoverController$1 {
4417
- readonly isVisible: () => boolean;
5801
+ /** See `CngxListboxTrigger` - same structural contract. */
5802
+ interface PopoverController$1 extends CngxMenuDismissPopoverRef {
4418
5803
  show(): void;
4419
- hide(): void;
4420
5804
  readonly anchorElement: {
4421
5805
  set(el: HTMLElement | null): void;
4422
5806
  };
4423
5807
  /**
4424
- * Popover unique id signal — used to compose the `anchor-name` CSS value
5808
+ * Popover unique id signal - used to compose the `anchor-name` CSS value
4425
5809
  * the browser's CSS Anchor Positioning expects on the anchor element.
4426
5810
  */
4427
5811
  readonly id: () => string;
@@ -4438,13 +5822,35 @@ interface PopoverController$1 {
4438
5822
  * any other popover.
4439
5823
  *
4440
5824
  * Anchoring uses a transient zero-size DOM element positioned at the
4441
- * pointer coords, set on the popover's `anchorElement` signal — see
4442
- * `menu-accepted-debt.md` §1 for the rationale (virtual `getBoundingClientRect`
4443
- * objects are not yet supported as anchors).
5825
+ * pointer coords, set on the popover's `anchorElement` signal - virtual
5826
+ * `getBoundingClientRect` objects are not yet supported as anchors, so
5827
+ * the transient div is the workaround.
4444
5828
  *
4445
5829
  * Touch-driven opening via long-press is deliberately out of scope for the
4446
5830
  * initial commit; consumers can compose `CngxLongPress` against the same
4447
5831
  * popover anchor pattern as a follow-up.
5832
+ *
5833
+ * ### Dismissal
5834
+ *
5835
+ * Four sources close the menu by default: `Escape`, `pointerdown` outside
5836
+ * both the popover and the trigger host, window `blur`, and document
5837
+ * `pointercancel`. Window `scroll` is opt-in via
5838
+ * {@link withDismissOnScroll}. Touch users get backdrop dismissal through
5839
+ * the same `pointerdown` listener - no ESC dependency. The dismissal
5840
+ * source that fired most recently is readable through
5841
+ * {@link lastDismissSource}.
5842
+ *
5843
+ * Override individual sources at app root with `withDismissOnOutsideClick`,
5844
+ * `withDismissOnScroll`, `withDismissOnBlur`, or swap the whole handler via
5845
+ * {@link CNGX_MENU_DISMISS_HANDLER_FACTORY}.
5846
+ *
5847
+ * @category common/interactive/menu
5848
+ * @docsKind primary
5849
+ * @wcag AA
5850
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/context-menu-trigger.directive.ts
5851
+ * @since 0.1.0
5852
+ * @relatedTo CngxMenu, CngxMenuTrigger, CngxPopover
5853
+ * <example-url>http://localhost:4200/#/common/interactive/context-menu/right-click-target-zone</example-url>
4448
5854
  */
4449
5855
  declare class CngxContextMenuTrigger {
4450
5856
  /** Menu controlled by this trigger. */
@@ -4455,8 +5861,17 @@ declare class CngxContextMenuTrigger {
4455
5861
  readonly isOpen: _angular_core.Signal<boolean>;
4456
5862
  private readonly doc;
4457
5863
  private readonly hostElRef;
5864
+ private readonly menuConfig;
5865
+ private readonly announcer;
5866
+ private readonly dismissBinding;
4458
5867
  private virtualAnchor;
4459
5868
  private savedFocus;
5869
+ /**
5870
+ * The dismissal source that closed the menu most recently. `null`
5871
+ * before the first close. Surface for demos, telemetry, and audit
5872
+ * sinks - reads which path fired without re-installing listeners.
5873
+ */
5874
+ readonly lastDismissSource: _angular_core.Signal<_cngx_common_interactive.CngxMenuDismissSource | null>;
4460
5875
  constructor();
4461
5876
  protected handleContextMenu(event: MouseEvent): void;
4462
5877
  protected handleKeydown(event: KeyboardEvent): void;
@@ -4474,6 +5889,8 @@ declare class CngxContextMenuTrigger {
4474
5889
  * (e.g. submenu-only or announcer overrides) will widen this union and
4475
5890
  * `provideCngxMenu` will dispatch to the matching `provide*Config` based on
4476
5891
  * each feature's hidden `_target` discriminator.
5892
+ *
5893
+ * @category common/interactive/menu
4477
5894
  */
4478
5895
  type CngxMenuFeature = CngxMenuConfigFeature;
4479
5896
  /**
@@ -4497,20 +5914,20 @@ type CngxMenuFeature = CngxMenuConfigFeature;
4497
5914
  * ],
4498
5915
  * });
4499
5916
  * ```
5917
+ *
5918
+ * @category common/interactive/menu
4500
5919
  */
4501
5920
  declare function provideCngxMenu(...features: CngxMenuFeature[]): EnvironmentProviders;
4502
5921
 
4503
- /** See `CngxListboxTrigger` — same structural contract. */
4504
- interface PopoverController {
4505
- readonly isVisible: () => boolean;
5922
+ /** See `CngxListboxTrigger` - same structural contract. */
5923
+ interface PopoverController extends CngxMenuDismissPopoverRef {
4506
5924
  show(): void;
4507
- hide(): void;
4508
5925
  }
4509
5926
  /**
4510
5927
  * Trigger atom for dropdown menus.
4511
5928
  *
4512
5929
  * Pairs a focusable element with a `CngxMenu` and a `CngxPopover` through
4513
- * explicit template references — identical keyboard model to
5930
+ * explicit template references - identical keyboard model to
4514
5931
  * `CngxListboxTrigger` except `closeOnSelect` is hardcoded `true` (menu
4515
5932
  * semantics: activating an item dismisses the menu).
4516
5933
  *
@@ -4519,6 +5936,38 @@ interface PopoverController {
4519
5936
  * Up / Home / End / Enter target the submenu's items via its own
4520
5937
  * `CngxActiveDescendant`. ArrowLeft / Escape pop the stack and close the
4521
5938
  * top submenu.
5939
+ *
5940
+ * ### Focus model
5941
+ *
5942
+ * The dropdown trigger deliberately keeps DOM focus on the trigger
5943
+ * button while the menu is open - WAI-ARIA APG Menu Button Pattern -
5944
+ * and drives the menu's `CngxActiveDescendant` from there via host
5945
+ * keydown. It does NOT call {@link CngxMenuHost.focus} after open;
5946
+ * that path is reserved for {@link CngxContextMenuTrigger}, where the
5947
+ * trigger zone is non-focusable consumer content and the menu
5948
+ * container itself must take focus to receive keyboard input.
5949
+ *
5950
+ * ### Dismissal
5951
+ *
5952
+ * Four dismissal sources close the menu by default: `Escape`, `pointerdown`
5953
+ * outside both the popover and the trigger host, window `blur`, and
5954
+ * document `pointercancel`. Window `scroll` is opt-in via
5955
+ * {@link withDismissOnScroll}. The source that fired most recently is
5956
+ * readable through {@link lastDismissSource}.
5957
+ *
5958
+ * Override individual sources at app root with `withDismissOnOutsideClick`,
5959
+ * `withDismissOnScroll`, `withDismissOnBlur`, or swap the whole handler via
5960
+ * {@link CNGX_MENU_DISMISS_HANDLER_FACTORY} for telemetry-wrapped or
5961
+ * test-doubled dismissal.
5962
+ *
5963
+ * @category common/interactive/menu
5964
+ * @docsKind primary
5965
+ * @wcag AA
5966
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-trigger.directive.ts
5967
+ * @since 0.1.0
5968
+ * @relatedTo CngxMenu, CngxContextMenuTrigger, CngxMenuItemSubmenu, CngxPopoverTrigger
5969
+ * <example-url>http://localhost:4200/#/common/interactive/menu/submenu/two-level-submenu</example-url>
5970
+ * <example-url>http://localhost:4200/#/common/interactive/menu/trigger/dropdown-menu</example-url>
4522
5971
  */
4523
5972
  declare class CngxMenuTrigger {
4524
5973
  /** Menu controlled by this trigger. */
@@ -4529,7 +5978,7 @@ declare class CngxMenuTrigger {
4529
5978
  readonly isOpen: _angular_core.Signal<boolean>;
4530
5979
  private readonly nav;
4531
5980
  /**
4532
- * Active submenu chain — empty when only the outer menu is open. Each
5981
+ * Active submenu chain - empty when only the outer menu is open. Each
4533
5982
  * entry is the `inner` host of an open submenu, top entry being the
4534
5983
  * deepest. Keystrokes target the top entry's AD.
4535
5984
  */
@@ -4543,6 +5992,16 @@ declare class CngxMenuTrigger {
4543
5992
  */
4544
5993
  private savedFocus;
4545
5994
  private readonly doc;
5995
+ private readonly hostElRef;
5996
+ private readonly menuConfig;
5997
+ private readonly announcer;
5998
+ private readonly dismissBinding;
5999
+ /**
6000
+ * The dismissal source that closed the menu most recently. `null`
6001
+ * before the first close. Surface for demos, telemetry, and audit
6002
+ * sinks - reads which path fired without re-installing listeners.
6003
+ */
6004
+ readonly lastDismissSource: _angular_core.Signal<_cngx_common_interactive.CngxMenuDismissSource | null>;
4546
6005
  constructor();
4547
6006
  private effectiveMenu;
4548
6007
  protected handleKeydown(event: KeyboardEvent): void;
@@ -4561,14 +6020,14 @@ declare class CngxMenuTrigger {
4561
6020
  /**
4562
6021
  * Marks any DOM element as carrying an error state.
4563
6022
  *
4564
- * Generic host-element marker — works on cngx, Material, CDK, native HTML,
6023
+ * Generic host-element marker - works on cngx, Material, CDK, native HTML,
4565
6024
  * and third-party hosts. Toggles the `.cngx-error` class hook plus reactive
4566
6025
  * `aria-invalid` / `aria-errormessage` attributes when the bound boolean is
4567
6026
  * true. The directive is purely presentational; it does not own the error
4568
6027
  * state itself, it only reflects it.
4569
6028
  *
4570
6029
  * The `cngxErrorState` input takes a plain `boolean`. Consumers binding a
4571
- * signal write `[cngxErrorState]="form.email().invalid()"` — the signal is
6030
+ * signal write `[cngxErrorState]="form.email().invalid()"` - the signal is
4572
6031
  * invoked at the binding site (canonical Angular pattern), not detected at
4573
6032
  * runtime.
4574
6033
  *
@@ -4579,15 +6038,24 @@ declare class CngxMenuTrigger {
4579
6038
  * />
4580
6039
  * <span id="email-error" role="alert">Please enter a valid email.</span>
4581
6040
  * ```
6041
+ *
6042
+ * @category common/interactive/error
6043
+ * @docsKind primary
6044
+ * @wcag AA
6045
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-state/error-state.directive.ts
6046
+ * @since 0.1.0
6047
+ * @relatedTo CngxErrorAggregator, CngxErrorSource, CngxErrorScope
6048
+ * <example-url>http://localhost:4200/#/common/interactive/error/state/basic-boolean-flag-flips-aria-invalid-aria-errormessage</example-url>
6049
+ * <example-url>http://localhost:4200/#/common/interactive/error/state/without-message-id-class-hook-aria-invalid-only</example-url>
4582
6050
  */
4583
6051
  declare class CngxErrorState {
4584
6052
  readonly cngxErrorState: _angular_core.InputSignal<boolean>;
4585
6053
  /** Optional id of the element rendering the error message text. */
4586
6054
  readonly cngxErrorMessageId: _angular_core.InputSignal<string | null>;
4587
- /** @internal — explicit boolean, always present in the DOM (cngx ARIA convention). */
4588
- protected readonly ariaInvalid: _angular_core.Signal<"false" | "true">;
6055
+ /** @internal - explicit boolean, always present in the DOM (cngx ARIA convention). */
6056
+ protected readonly ariaInvalid: _angular_core.Signal<"true" | "false">;
4589
6057
  /**
4590
- * @internal — emitted whenever a non-empty message id is bound, regardless
6058
+ * @internal - emitted whenever a non-empty message id is bound, regardless
4591
6059
  * of the error flag. cngx convention: ID-bearing ARIA attributes stay in
4592
6060
  * the DOM; visibility of the message element is controlled by the
4593
6061
  * consumer via `aria-hidden` on the message itself.
@@ -4602,15 +6070,17 @@ declare class CngxErrorState {
4602
6070
  *
4603
6071
  * The scope encapsulates the "should errors be visible right now?"
4604
6072
  * decision. A scope starts hidden (`showErrors === false`) and reveals
4605
- * when {@link reveal} is called — typically on form submit, on route
6073
+ * when {@link reveal} is called - typically on form submit, on route
4606
6074
  * navigation, or on programmatic error trigger.
4607
6075
  *
4608
6076
  * Descendant directives (`CngxErrorAggregator`, `CngxErrorState`) read
4609
6077
  * the scope's `showErrors` signal to gate their own visibility, so a
4610
6078
  * single `reveal()` propagates atomically through the subtree.
6079
+ *
6080
+ * @category common/interactive/error
4611
6081
  */
4612
6082
  interface CngxErrorScopeContract {
4613
- /** Reactive flag — `true` when errors should be visible to the user. */
6083
+ /** Reactive flag - `true` when errors should be visible to the user. */
4614
6084
  readonly showErrors: Signal<boolean>;
4615
6085
  /** Reveals errors in this scope (idempotent). */
4616
6086
  reveal(): void;
@@ -4625,13 +6095,20 @@ interface CngxErrorScopeContract {
4625
6095
  * Provided by {@link CngxErrorScope} via `useExisting`; descendants inject
4626
6096
  * with `{ optional: true }` and fall back gracefully when no scope is
4627
6097
  * present (no-op).
6098
+ *
6099
+ * @category common/interactive/error
6100
+ * @wcag AA
6101
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-scope/error-scope.token.ts
6102
+ * @since 0.1.0
4628
6103
  */
4629
6104
  declare const CNGX_ERROR_SCOPE: InjectionToken<CngxErrorScopeContract>;
4630
6105
 
4631
6106
  /**
4632
6107
  * Marks a DOM subtree as an error visibility scope.
4633
6108
  *
4634
- * The scope starts hidden — descendant aggregators and error states do
6109
+ * @category common/interactive/error
6110
+ *
6111
+ * The scope starts hidden - descendant aggregators and error states do
4635
6112
  * not reveal until the consumer calls {@link reveal}, typically via a
4636
6113
  * `(submit)` handler, a route guard, or an HTTP interceptor reveal-on-422
4637
6114
  * pattern.
@@ -4647,6 +6124,16 @@ declare const CNGX_ERROR_SCOPE: InjectionToken<CngxErrorScopeContract>;
4647
6124
  * <input [cngxErrorState]="email().invalid()" />
4648
6125
  * </form>
4649
6126
  * ```
6127
+ *
6128
+ * @docsKind primary
6129
+ * @wcag AA
6130
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-scope/error-scope.directive.ts
6131
+ * @since 0.1.0
6132
+ * @relatedTo CngxErrorAggregator, CngxErrorState, CngxErrorSource
6133
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/cngx-card-host-no-scope-errors-visible-immediately</example-url>
6134
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/cngx-popover-panel-host</example-url>
6135
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/material-mat-tab-label-with-error-count-badge</example-url>
6136
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/native-form-scope-reveal-on-submit</example-url>
4650
6137
  */
4651
6138
  declare class CngxErrorScope implements CngxErrorScopeContract {
4652
6139
  /** Optional name; enables programmatic lookup via {@link CngxErrorRegistry}. */
@@ -4669,6 +6156,8 @@ declare class CngxErrorScope implements CngxErrorScopeContract {
4669
6156
  * `key` uniquely identifies the source within its aggregator. `condition`
4670
6157
  * is the live signal the aggregator reads on every recompute. `label` is
4671
6158
  * an optional human-readable string included in announcements.
6159
+ *
6160
+ * @category common/interactive/error
4672
6161
  */
4673
6162
  interface CngxErrorAggregatorSourceEntry {
4674
6163
  readonly key: string;
@@ -4678,11 +6167,13 @@ interface CngxErrorAggregatorSourceEntry {
4678
6167
  /**
4679
6168
  * Contract every {@link CngxErrorAggregator} (or external override) fulfils.
4680
6169
  *
4681
- * The aggregator is the live A11y surface — it computes `hasError` /
6170
+ * The aggregator is the live A11y surface - it computes `hasError` /
4682
6171
  * `errorCount` / `activeErrors` / `errorLabels` / `shouldShow` /
4683
6172
  * `announcement` from its registered sources and exposes them to the
4684
6173
  * surrounding host. Sources register via {@link addSource} on init and
4685
6174
  * deregister via {@link removeSource} on teardown.
6175
+ *
6176
+ * @category common/interactive/error
4686
6177
  */
4687
6178
  interface CngxErrorAggregatorContract {
4688
6179
  /** `true` when at least one registered source's condition is `true`. */
@@ -4693,9 +6184,9 @@ interface CngxErrorAggregatorContract {
4693
6184
  readonly activeErrors: Signal<readonly string[]>;
4694
6185
  /** Labels of currently active error sources (only entries with non-null labels). */
4695
6186
  readonly errorLabels: Signal<readonly string[]>;
4696
- /** `true` when errors should be visible — `hasError` AND scope reveal-state. */
6187
+ /** `true` when errors should be visible - `hasError` AND scope reveal-state. */
4697
6188
  readonly shouldShow: Signal<boolean>;
4698
- /** SR-friendly announcement text — joins active labels into one phrase. */
6189
+ /** SR-friendly announcement text - joins active labels into one phrase. */
4699
6190
  readonly announcement: Signal<string>;
4700
6191
  /** Registers (or replaces) a source by `key`. */
4701
6192
  addSource(entry: CngxErrorAggregatorSourceEntry): void;
@@ -4709,6 +6200,11 @@ interface CngxErrorAggregatorContract {
4709
6200
  * Provided by {@link CngxErrorAggregator} via `useExisting`; descendant
4710
6201
  * `CngxErrorSource` directives inject with `{ optional: true }` so they
4711
6202
  * function as no-ops outside an aggregator.
6203
+ *
6204
+ * @category common/interactive/error
6205
+ * @wcag AA
6206
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-aggregator/error-aggregator.token.ts
6207
+ * @since 0.1.0
4712
6208
  */
4713
6209
  declare const CNGX_ERROR_AGGREGATOR: InjectionToken<CngxErrorAggregatorContract>;
4714
6210
 
@@ -4716,14 +6212,16 @@ declare const CNGX_ERROR_AGGREGATOR: InjectionToken<CngxErrorAggregatorContract>
4716
6212
  * Registers a single error condition with the nearest
4717
6213
  * {@link CngxErrorAggregator} ancestor.
4718
6214
  *
4719
- * Pure DI propagation — no DOM output. The directive is a no-op when no
6215
+ * @category common/interactive/error
6216
+ *
6217
+ * Pure DI propagation - no DOM output. The directive is a no-op when no
4720
6218
  * aggregator is present (the optional injection returns `null`).
4721
6219
  * Useful for surfacing errors that live outside the form-field
4722
6220
  * presenter, e.g. server-side validation, async availability checks,
4723
6221
  * or business-rule conflicts.
4724
6222
  *
4725
6223
  * The `when` input takes a plain `boolean`. Consumers binding a signal
4726
- * write `[when]="form.email().invalid()"` — the signal is invoked at the
6224
+ * write `[when]="form.email().invalid()"` - the signal is invoked at the
4727
6225
  * binding site (canonical Angular pattern), mirroring `CngxErrorState`
4728
6226
  * discipline.
4729
6227
  *
@@ -4735,6 +6233,17 @@ declare const CNGX_ERROR_AGGREGATOR: InjectionToken<CngxErrorAggregatorContract>
4735
6233
  * label="Email already in use"></span>
4736
6234
  * </fieldset>
4737
6235
  * ```
6236
+ *
6237
+ * @docsKind primary
6238
+ * @wcag AA
6239
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-source/error-source.directive.ts
6240
+ * @since 0.1.0
6241
+ * @relatedTo CngxErrorAggregator, CngxErrorScope, CngxErrorState
6242
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/cngx-card-host-no-scope-errors-visible-immediately</example-url>
6243
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/cngx-popover-panel-host</example-url>
6244
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/material-mat-tab-label-with-error-count-badge</example-url>
6245
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/native-form-scope-reveal-on-submit</example-url>
6246
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
4738
6247
  */
4739
6248
  declare class CngxErrorSource {
4740
6249
  /** Unique key within the parent aggregator. Required. */
@@ -4753,33 +6262,81 @@ declare class CngxErrorSource {
4753
6262
  * Aggregates one-or-more {@link CngxErrorSource} children into a single
4754
6263
  * live A11y surface.
4755
6264
  *
6265
+ * @category common/interactive/error
6266
+ *
4756
6267
  * Each registered source contributes a key + a live `Signal<boolean>` +
4757
6268
  * an optional label. Derived signals (`hasError`, `errorCount`,
4758
6269
  * `activeErrors`, `errorLabels`, `shouldShow`, `announcement`) are
4759
6270
  * `computed()` with structural `equal` fns so unrelated re-emissions
4760
6271
  * upstream do not cascade through descendants.
4761
6272
  *
4762
- * Consumers render the SR live region themselves to keep the directive
4763
- * template-free:
6273
+ * ### Live region
6274
+ *
6275
+ * By default the directive appends a visually-hidden `<span>` to the
6276
+ * host element and writes {@link announcement} into its `textContent`
6277
+ * reactively, so an `aria-live` announcement fires the moment a source
6278
+ * toggles. The span carries `role="status"` (or `role="alert"` when
6279
+ * politeness is `'assertive'`), `aria-live`, `aria-atomic="true"`, and
6280
+ * `aria-relevant="additions text"`. Visually-hidden styling is applied
6281
+ * inline via `--cngx-sr-only-*` CSS custom properties — no global
6282
+ * stylesheet required.
6283
+ *
6284
+ * Set `[autoAnnounce]="false"` to take ownership of the live region in
6285
+ * consumer markup (for example, when routing announcements through
6286
+ * CDK's `LiveAnnouncer` service). Use `[announcePoliteness]` to switch
6287
+ * to `'assertive'` for safety-critical errors or `'off'` to suppress
6288
+ * announcements entirely while keeping the visual error surface.
4764
6289
  *
4765
6290
  * ```html
4766
6291
  * <fieldset cngxErrorAggregator #agg="cngxErrorAggregator">
4767
6292
  * <span cngxErrorSource="format" [when]="email().invalid()" label="Format"></span>
4768
6293
  * <span cngxErrorSource="taken" [when]="taken()" label="Already used"></span>
6294
+ *
6295
+ * @if (agg.shouldShow()) {
6296
+ * <ul role="alert">
6297
+ * @for (label of agg.errorLabels(); track label) {
6298
+ * <li>{{ label }}</li>
6299
+ * }
6300
+ * </ul>
6301
+ * }
4769
6302
  * </fieldset>
4770
- * <span class="cngx-sr-only" aria-live="polite" aria-atomic="true">
4771
- * {{ agg.announcement() }}
4772
- * </span>
4773
6303
  * ```
6304
+ *
6305
+ * @docsKind primary
6306
+ * @wcag AA
6307
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/error-aggregator/error-aggregator.directive.ts
6308
+ * @since 0.1.0
6309
+ * @relatedTo CngxErrorSource, CngxErrorScope, CngxErrorState, CngxErrorRegistry
6310
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/cngx-card-host-no-scope-errors-visible-immediately</example-url>
6311
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/cngx-popover-panel-host</example-url>
6312
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/material-mat-tab-label-with-error-count-badge</example-url>
6313
+ * <example-url>http://localhost:4200/#/common/interactive/error/aggregator/native-form-scope-reveal-on-submit</example-url>
6314
+ * <example-url>http://localhost:4200/#/ui/stepper/stepper-error-aggregation/per-step-error-badges</example-url>
6315
+ * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
4774
6316
  */
4775
6317
  declare class CngxErrorAggregator implements CngxErrorAggregatorContract {
4776
6318
  /** External scope override; falls back to ancestor `CNGX_ERROR_SCOPE`. */
4777
6319
  readonly scope: _angular_core.InputSignal<CngxErrorScopeContract | undefined>;
4778
6320
  /** Optional name; enables programmatic lookup via {@link CngxErrorRegistry}. */
4779
6321
  readonly aggregatorName: _angular_core.InputSignal<string | undefined>;
6322
+ /**
6323
+ * When `true` (default), the directive appends its own visually-hidden
6324
+ * `<span>` to the host element and writes {@link announcement} into its
6325
+ * `textContent`. Set to `false` to take ownership of the live region in
6326
+ * consumer markup (e.g. when routing announcements through CDK's
6327
+ * `LiveAnnouncer`).
6328
+ */
6329
+ readonly autoAnnounce: _angular_core.InputSignal<boolean>;
6330
+ /**
6331
+ * Politeness of the auto-rendered live region. Mirrors the WAI-ARIA
6332
+ * `aria-live` value. `'polite'` queues after the current utterance,
6333
+ * `'assertive'` interrupts, `'off'` disables announcement (the span is
6334
+ * still rendered but is not announced).
6335
+ */
6336
+ readonly announcePoliteness: _angular_core.InputSignal<"polite" | "assertive" | "off">;
4780
6337
  private readonly ancestorScope;
4781
6338
  private readonly sourcesState;
4782
- /** @internal — the resolved scope (input wins, else ancestor, else `null`). */
6339
+ /** @internal - the resolved scope (input wins, else ancestor, else `null`). */
4783
6340
  protected readonly effectiveScope: _angular_core.Signal<CngxErrorScopeContract | null>;
4784
6341
  private readonly contract;
4785
6342
  readonly hasError: _angular_core.Signal<boolean>;
@@ -4792,7 +6349,7 @@ declare class CngxErrorAggregator implements CngxErrorAggregatorContract {
4792
6349
  removeSource(key: string): void;
4793
6350
  constructor();
4794
6351
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxErrorAggregator, never>;
4795
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxErrorAggregator, "[cngxErrorAggregator]", ["cngxErrorAggregator"], { "scope": { "alias": "scope"; "required": false; "isSignal": true; }; "aggregatorName": { "alias": "cngxErrorAggregatorName"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
6352
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxErrorAggregator, "[cngxErrorAggregator]", ["cngxErrorAggregator"], { "scope": { "alias": "scope"; "required": false; "isSignal": true; }; "aggregatorName": { "alias": "cngxErrorAggregatorName"; "required": false; "isSignal": true; }; "autoAnnounce": { "alias": "autoAnnounce"; "required": false; "isSignal": true; }; "announcePoliteness": { "alias": "announcePoliteness"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
4796
6353
  }
4797
6354
 
4798
6355
  /**
@@ -4900,7 +6457,7 @@ declare function injectErrorScope(name?: string): CngxErrorScopeContract;
4900
6457
  * Creates a programmatic {@link CngxErrorAggregatorContract}, optionally
4901
6458
  * registered under `name` in the ambient {@link CngxErrorRegistry}.
4902
6459
  *
4903
- * Positional arguments — NOT a config-options-bag — per Pillar 3
6460
+ * Positional arguments - NOT a config-options-bag - per Pillar 3
4904
6461
  * (Komposition statt Konfiguration). When `name` is set and a registry is
4905
6462
  * provided, auto-registers and auto-deregisters on the surrounding
4906
6463
  * `DestroyRef`.
@@ -4922,7 +6479,7 @@ declare function injectErrorScope(name?: string): CngxErrorScopeContract;
4922
6479
  * ({@link `@cngx/common/interactive`#CngxErrorAggregator}) and the
4923
6480
  * function form share a single source of truth.
4924
6481
  *
4925
- * @internal Staged API — single-consumer.
6482
+ * @internal Staged API - single-consumer.
4926
6483
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
4927
6484
  * and collapse plan.
4928
6485
  */
@@ -5009,5 +6566,5 @@ declare function withGlobalRevealOnSubmit(): ErrorRegistryFeature;
5009
6566
  */
5010
6567
  declare function withRevealOnNavigate(): ErrorRegistryFeature;
5011
6568
 
5012
- export { 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_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_HOST, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAsyncClick, CngxBeforeUnload, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, 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, CngxReorder, CngxRipple, CngxSearch, CngxSpeak, CngxSucceeded, CngxSwipeDismiss, CngxToggle, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, createChipStripRoving, createMenuAnnouncer, createMenuRadioController, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectMenuAnnouncer, injectMenuConfig, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideTreeConfig, provideTreeConfigAt, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withGlobalRevealOnSubmit, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
5013
- export type { AsyncAction, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxMenuAnnouncerFactory, CngxMenuAnnouncerLike, CngxMenuAriaLabels, CngxMenuConfig, CngxMenuConfigFeature, CngxMenuFeature, CngxMenuHost, CngxMenuNavAction, CngxMenuNavContext, CngxMenuNavStrategy, CngxMenuRadioGroup, CngxMenuRadioGroupFactory, CngxMenuSubmenuLike, CngxNavConfig, CngxOptionContainer, CngxOptionContainerGroup, CngxOptionContainerOption, CngxOptionFilterHost, CngxOptionInteractionHost, CngxOptionStatus, CngxOptionStatusHost, CngxRadioGroupContract, CngxRadioRegistration, CngxReorderEvent, CngxReorderModifier, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeDirection };
6569
+ export { 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_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_HOST, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, 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, CngxReorder, CngxRipple, CngxSearch, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, createChipStripRoving, createMenuAnnouncer, createMenuDismissHandler, createMenuRadioController, createMenuTriggerDismissBinding, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectMenuAnnouncer, injectMenuConfig, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideTreeConfig, provideTreeConfigAt, reflectAsyncDisplayStatus, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withDismissOnBlur, withDismissOnOutsideClick, withDismissOnScroll, withGlobalRevealOnSubmit, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
6570
+ export type { AsyncAction, CngxAsyncDisplayStatus, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxMenuAnnouncerFactory, CngxMenuAnnouncerLike, CngxMenuAriaLabels, CngxMenuConfig, CngxMenuConfigFeature, CngxMenuDismissHandler, CngxMenuDismissHandlerFactory, CngxMenuDismissHandlerOptions, CngxMenuDismissPopoverRef, CngxMenuDismissSource, CngxMenuFeature, CngxMenuHost, CngxMenuNavAction, CngxMenuNavContext, CngxMenuNavStrategy, CngxMenuRadioGroup, CngxMenuRadioGroupFactory, CngxMenuSubmenuLike, CngxMenuTriggerDismissBinding, CngxMenuTriggerDismissBindingOptions, CngxNavConfig, CngxOptionContainer, CngxOptionContainerGroup, CngxOptionContainerOption, CngxOptionFilterHost, CngxOptionInteractionHost, CngxOptionStatus, CngxOptionStatusHost, CngxRadioGroupContract, CngxRadioRegistration, CngxReorderEvent, CngxReorderModifier, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeAxis, SwipeDirection };