@cngx/common 0.1.0-rc.6 → 0.1.0-rc.7

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 (62) hide show
  1. package/chart/README.md +85 -0
  2. package/command/README.md +157 -0
  3. package/data/README.md +23 -0
  4. package/fesm2022/cngx-common-a11y.mjs +247 -85
  5. package/fesm2022/cngx-common-a11y.mjs.map +1 -1
  6. package/fesm2022/cngx-common-audio.mjs +37 -37
  7. package/fesm2022/cngx-common-audio.mjs.map +1 -1
  8. package/fesm2022/cngx-common-card.mjs +13 -9
  9. package/fesm2022/cngx-common-card.mjs.map +1 -1
  10. package/fesm2022/cngx-common-chart.mjs +3404 -1392
  11. package/fesm2022/cngx-common-chart.mjs.map +1 -1
  12. package/fesm2022/cngx-common-command.mjs +144 -0
  13. package/fesm2022/cngx-common-command.mjs.map +1 -0
  14. package/fesm2022/cngx-common-data.mjs +304 -213
  15. package/fesm2022/cngx-common-data.mjs.map +1 -1
  16. package/fesm2022/cngx-common-dialog.mjs +369 -100
  17. package/fesm2022/cngx-common-dialog.mjs.map +1 -1
  18. package/fesm2022/cngx-common-display.mjs +138 -24
  19. package/fesm2022/cngx-common-display.mjs.map +1 -1
  20. package/fesm2022/cngx-common-interactive.mjs +1089 -459
  21. package/fesm2022/cngx-common-interactive.mjs.map +1 -1
  22. package/fesm2022/cngx-common-layout.mjs +113 -61
  23. package/fesm2022/cngx-common-layout.mjs.map +1 -1
  24. package/fesm2022/cngx-common-popover.mjs +430 -54
  25. package/fesm2022/cngx-common-popover.mjs.map +1 -1
  26. package/fesm2022/cngx-common-stepper.mjs +107 -49
  27. package/fesm2022/cngx-common-stepper.mjs.map +1 -1
  28. package/fesm2022/cngx-common-tabs.mjs +1170 -752
  29. package/fesm2022/cngx-common-tabs.mjs.map +1 -1
  30. package/fesm2022/cngx-common-timeline.mjs +1086 -0
  31. package/fesm2022/cngx-common-timeline.mjs.map +1 -0
  32. package/fesm2022/cngx-common.mjs +2 -2
  33. package/fesm2022/cngx-common.mjs.map +1 -1
  34. package/package.json +11 -1
  35. package/stepper/README.md +1 -1
  36. package/theming/components/cngx-accordion.css +3 -0
  37. package/theming/components/cngx-badge.css +22 -0
  38. package/theming/components/cngx-bottom-sheet.css +14 -2
  39. package/theming/components/cngx-breadcrumb.css +8 -0
  40. package/theming/components/cngx-button-toggle.css +44 -2
  41. package/theming/components/cngx-data-grid.css +66 -0
  42. package/theming/components/cngx-dialog.css +12 -0
  43. package/theming/components/cngx-divider.css +12 -0
  44. package/theming/components/cngx-listbox.css +27 -0
  45. package/theming/components/cngx-menu.css +36 -0
  46. package/theming/components/cngx-ripple.css +1 -1
  47. package/theming/components/cngx-tooltip.css +11 -0
  48. package/types/cngx-common-a11y.d.ts +63 -17
  49. package/types/cngx-common-audio.d.ts +32 -32
  50. package/types/cngx-common-card.d.ts +10 -3
  51. package/types/cngx-common-chart.d.ts +1281 -141
  52. package/types/cngx-common-command.d.ts +167 -0
  53. package/types/cngx-common-data.d.ts +264 -98
  54. package/types/cngx-common-dialog.d.ts +214 -25
  55. package/types/cngx-common-display.d.ts +83 -13
  56. package/types/cngx-common-interactive.d.ts +708 -174
  57. package/types/cngx-common-layout.d.ts +48 -1
  58. package/types/cngx-common-popover.d.ts +120 -3
  59. package/types/cngx-common-stepper.d.ts +55 -5
  60. package/types/cngx-common-tabs.d.ts +386 -25
  61. package/types/cngx-common-timeline.d.ts +1059 -0
  62. package/types/cngx-common.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { Signal, TemplateRef, InjectionToken, Provider, ModelSignal, WritableSignal, OnInit, Type, ElementRef, EnvironmentProviders } from '@angular/core';
2
+ import { Signal, TemplateRef, InjectionToken, Provider, ModelSignal, WritableSignal, OnInit, Type, EnvironmentProviders } from '@angular/core';
3
3
  import { AsyncStatus, CngxAsyncState, CngxStateful } from '@cngx/core/utils';
4
4
  export { AsyncStatus, CngxAsyncState } from '@cngx/core/utils';
5
5
  import { Observable } from 'rxjs';
@@ -8,6 +8,7 @@ import { CngxFormFieldControl } from '@cngx/core/tokens';
8
8
  import * as i1 from '@cngx/common/a11y';
9
9
  import { ActiveDescendantItem, CngxActiveDescendant, CngxAdItemHandle } from '@cngx/common/a11y';
10
10
  import { FlatTreeNode, CngxTreeNode } from '@cngx/utils';
11
+ import { CngxDirection } from '@cngx/core';
11
12
 
12
13
  /**
13
14
  * Action function that returns a Promise or Observable.
@@ -219,6 +220,9 @@ declare function reflectAsyncDisplayStatus(state: CngxAsyncState<unknown> | null
219
220
  * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/async-status/async-status.directive.ts
220
221
  * @since 0.1.0
221
222
  * @relatedTo CngxAsyncClick, CngxPending, CngxSucceeded, CngxFailed
223
+ * @slot cngxPending Rendered while the tracked operation is in flight.
224
+ * @slot cngxSucceeded Rendered after the operation resolves successfully.
225
+ * @slot cngxFailed Rendered when the operation rejects; gets the error.
222
226
  */
223
227
  declare class CngxAsyncStatus {
224
228
  private readonly coPlacedAsyncClick;
@@ -1067,6 +1071,17 @@ declare class CngxHoverIntent {
1067
1071
  constructor();
1068
1072
  protected handleEnter(): void;
1069
1073
  protected handleLeave(): void;
1074
+ /**
1075
+ * Feed a satellite element's `pointerenter` into the debounce. For hosts
1076
+ * whose hover surface spans more than the directive's own element (a submenu
1077
+ * parent item plus its popover panel), forward the extra element's pointer
1078
+ * events here so ONE debounced intent covers the combined surface: an enter
1079
+ * on either element cancels a pending leave timer exactly like the host's
1080
+ * own listeners, so crossing the gap between the elements never flickers.
1081
+ */
1082
+ notifyEnter(): void;
1083
+ /** Satellite counterpart to {@link notifyEnter} for `pointerleave`. */
1084
+ notifyLeave(): void;
1070
1085
  private schedule;
1071
1086
  private clearPending;
1072
1087
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxHoverIntent, never>;
@@ -1229,6 +1244,16 @@ interface CngxSliderInteraction {
1229
1244
  handlePointerUp(event: PointerEvent): void;
1230
1245
  }
1231
1246
 
1247
+ /** Reactive surface {@link createSliderDisabledReason} hands back to the track. */
1248
+ interface CngxSliderDisabledReason {
1249
+ /**
1250
+ * `aria-describedby` value for the track host: the internal reason id
1251
+ * while `disabled && reason` applies, else the consumer passthrough id,
1252
+ * else `null`.
1253
+ */
1254
+ readonly resolvedDescribedBy: Signal<string | null>;
1255
+ }
1256
+
1232
1257
  /**
1233
1258
  * Headless single-thumb slider brain. Put `cngxSliderTrack` on your own track
1234
1259
  * element and the directive turns it into an APG-conformant `role="slider"`:
@@ -1276,13 +1301,33 @@ declare class CngxSliderTrack {
1276
1301
  * larger of one step and a tenth of the range.
1277
1302
  */
1278
1303
  readonly largeStep: _angular_core.InputSignal<number | undefined>;
1279
- /** Whether the slider is disabled (blocks keyboard and pointer, `tabindex=-1`). */
1280
- readonly disabled: _angular_core.InputSignal<boolean>;
1304
+ /**
1305
+ * Whether the slider is disabled (blocks keyboard and pointer, `tabindex=-1`).
1306
+ * A `ModelSignal` so form-field bridges can drive it programmatically,
1307
+ * mirroring the checkbox/toggle family's bridge write path.
1308
+ */
1309
+ readonly disabled: _angular_core.ModelSignal<boolean>;
1310
+ /**
1311
+ * Consumer-supplied "why" for the disabled state (no library default per
1312
+ * the EN-defaults rule). Announced via an sr-only span the directive
1313
+ * appends to the host; both the span's visibility and the host's
1314
+ * `aria-describedby` reference are gated on `disabled() &&
1315
+ * disabledReason()` (Toggle/Radio convergence).
1316
+ */
1317
+ readonly disabledReason: _angular_core.InputSignal<string>;
1318
+ /**
1319
+ * Optional consumer-supplied id of an external description element.
1320
+ * Consumers bind via `[cngxDescribedBy]="someId"` - same surface as
1321
+ * `CngxChipInteraction`. The active disabled-reason wins.
1322
+ */
1323
+ readonly describedBy: _angular_core.InputSignal<string | null>;
1281
1324
  /** Track axis. Drives `aria-orientation` and the pointer-to-fraction math. */
1282
1325
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
1283
1326
  /** Optional `aria-valuetext` formatter (currency, dates, named stops). */
1284
1327
  readonly valueText: _angular_core.InputSignal<((value: number) => string) | undefined>;
1285
1328
  private readonly el;
1329
+ /** Disabled-"why" span + gated `aria-describedby` resolution. */
1330
+ protected readonly reason: CngxSliderDisabledReason;
1286
1331
  /** Shared value/step/aria derivation. */
1287
1332
  protected readonly core: _cngx_common_interactive.CngxSliderCore;
1288
1333
  /** Thumb position along the track in `[0, 1]`. For a skin to read. */
@@ -1295,7 +1340,7 @@ declare class CngxSliderTrack {
1295
1340
  /** Shared keyboard + pointer-drag handlers (same factory the range thumb uses). */
1296
1341
  protected readonly interaction: CngxSliderInteraction;
1297
1342
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSliderTrack, never>;
1298
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSliderTrack, "[cngxSliderTrack]", ["cngxSliderTrack"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "largeStep": { "alias": "largeStep"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
1343
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxSliderTrack, "[cngxSliderTrack]", ["cngxSliderTrack"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "largeStep": { "alias": "largeStep"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "describedBy": { "alias": "cngxDescribedBy"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; }, never, never, true, never>;
1299
1344
  }
1300
1345
 
1301
1346
  /**
@@ -1344,7 +1389,7 @@ declare class CngxSlider {
1344
1389
  /** Format a value through the bound `valueText` (so tick labels match the thumb). */
1345
1390
  protected format(value: number): string;
1346
1391
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxSlider, never>;
1347
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxSlider, "cngx-slider", ["cngxSlider"], { "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
1392
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxSlider, "cngx-slider", ["cngxSlider"], { "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "disabledReason": "disabledReason"; "cngxDescribedBy": "cngxDescribedBy"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
1348
1393
  }
1349
1394
 
1350
1395
  /** Which end of a range slider a {@link CngxSliderThumb} drives. */
@@ -1451,12 +1496,32 @@ declare class CngxRangeSliderTrack implements CngxSliderRangeHost {
1451
1496
  * Defaults to the larger of one step and a tenth of the range.
1452
1497
  */
1453
1498
  readonly largeStep: _angular_core.InputSignal<number | undefined>;
1454
- /** Whether the range slider is disabled. */
1455
- readonly disabled: _angular_core.InputSignal<boolean>;
1499
+ /**
1500
+ * Whether the range slider is disabled. A `ModelSignal` so form-field
1501
+ * bridges can drive it programmatically, mirroring the checkbox/toggle
1502
+ * family's bridge write path.
1503
+ */
1504
+ readonly disabled: _angular_core.ModelSignal<boolean>;
1505
+ /**
1506
+ * Consumer-supplied "why" for the disabled state (no library default per
1507
+ * the EN-defaults rule). Announced via an sr-only span the directive
1508
+ * appends to the group host; both the span's visibility and the host's
1509
+ * `aria-describedby` reference are gated on `disabled() &&
1510
+ * disabledReason()` (Toggle/Radio convergence).
1511
+ */
1512
+ readonly disabledReason: _angular_core.InputSignal<string>;
1513
+ /**
1514
+ * Optional consumer-supplied id of an external description element.
1515
+ * Consumers bind via `[cngxDescribedBy]="someId"` - same surface as
1516
+ * `CngxChipInteraction`. The active disabled-reason wins.
1517
+ */
1518
+ readonly describedBy: _angular_core.InputSignal<string | null>;
1456
1519
  /** Track axis shared by both thumbs. */
1457
1520
  readonly orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
1458
1521
  /** Optional `aria-valuetext` formatter shared across both thumbs. */
1459
1522
  readonly valueText: _angular_core.InputSignal<((value: number) => string) | undefined>;
1523
+ /** Disabled-"why" span + gated `aria-describedby` resolution. */
1524
+ protected readonly reason: CngxSliderDisabledReason;
1460
1525
  private readonly startBounds;
1461
1526
  private readonly endBounds;
1462
1527
  private readonly el;
@@ -1467,7 +1532,7 @@ declare class CngxRangeSliderTrack implements CngxSliderRangeHost {
1467
1532
  commit(position: CngxSliderThumbPosition, value: number): void;
1468
1533
  fractionFromPointer(clientX: number, clientY: number): number;
1469
1534
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRangeSliderTrack, never>;
1470
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxRangeSliderTrack, "[cngxRangeSliderTrack]", ["cngxRangeSliderTrack"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "largeStep": { "alias": "largeStep"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
1535
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxRangeSliderTrack, "[cngxRangeSliderTrack]", ["cngxRangeSliderTrack"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "largeStep": { "alias": "largeStep"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "describedBy": { "alias": "cngxDescribedBy"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "disabled": "disabledChange"; }, never, never, true, never>;
1471
1536
  }
1472
1537
 
1473
1538
  /**
@@ -1517,7 +1582,7 @@ declare class CngxRangeSlider {
1517
1582
  protected readonly ticks: CngxSliderTicksView;
1518
1583
  protected format(value: number): string;
1519
1584
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxRangeSlider, never>;
1520
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRangeSlider, "cngx-range-slider", ["cngxRangeSlider"], { "startLabel": { "alias": "startLabel"; "required": false; "isSignal": true; }; "endLabel": { "alias": "endLabel"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxRangeSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
1585
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxRangeSlider, "cngx-range-slider", ["cngxRangeSlider"], { "startLabel": { "alias": "startLabel"; "required": false; "isSignal": true; }; "endLabel": { "alias": "endLabel"; "required": false; "isSignal": true; }; "showValue": { "alias": "showValue"; "required": false; "isSignal": true; }; "showValueBubble": { "alias": "showValueBubble"; "required": false; "isSignal": true; }; "showTicks": { "alias": "showTicks"; "required": false; "isSignal": true; }; "showTickLabels": { "alias": "showTickLabels"; "required": false; "isSignal": true; }; "thumbGlyph": { "alias": "thumbGlyph"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxRangeSliderTrack; inputs: { "value": "value"; "min": "min"; "max": "max"; "step": "step"; "largeStep": "largeStep"; "disabled": "disabled"; "disabledReason": "disabledReason"; "cngxDescribedBy": "cngxDescribedBy"; "orientation": "orientation"; "valueText": "valueText"; }; outputs: { "valueChange": "valueChange"; }; }]>;
1521
1586
  }
1522
1587
 
1523
1588
  /**
@@ -2028,11 +2093,13 @@ declare function resolveBreadcrumbTier(width: number, tiers: readonly CngxBreadc
2028
2093
  * one direction.
2029
2094
  *
2030
2095
  * `disabledReason` is consumer-supplied free text (no library default
2031
- * per `feedback_en_default_locale`) - when present it lands in a hidden
2032
- * `<span>` referenced by the host's `aria-describedby`. Per Pillar 2,
2033
- * the description span is always in the DOM (visibility toggles via
2034
- * `aria-hidden`); the host's `aria-describedby` is only emitted when a
2035
- * reason is set so AT does not announce an empty description.
2096
+ * per `feedback_en_default_locale`). Per Pillar 2 the description span is
2097
+ * always in the DOM, but both its `aria-hidden` and the host's
2098
+ * `aria-describedby` reference are gated on `disabled() && disabledReason()`,
2099
+ * so a reason set on an enabled control announces nothing and stays out of
2100
+ * reading order. Gating the reference alone is not enough: accname 1.2 §2A
2101
+ * traverses a directly-referenced hidden node, so the span's visibility must
2102
+ * track the same condition as the reference.
2036
2103
  *
2037
2104
  * Typical usage prefers the `<div>`/`<cngx-toggle>` element form because
2038
2105
  * `role="switch"` on a native `<button>` would conflict with the
@@ -2161,8 +2228,11 @@ declare class CngxToggle implements CngxControlValue<boolean>, CngxFormFieldCont
2161
2228
  *
2162
2229
  * `aria-checked` is a reactive computed: `indeterminate() ? 'mixed' :
2163
2230
  * value() ? 'true' : 'false'`. The description span for
2164
- * `disabledReason` follows the same always-in-DOM rule as
2165
- * `CngxToggle`.
2231
+ * `disabledReason` follows the same rule as `CngxToggle`: always in the
2232
+ * DOM, but both its `aria-hidden` and the host's `aria-describedby`
2233
+ * reference are gated on `disabled() && disabledReason()`, so a reason
2234
+ * set on an enabled checkbox announces nothing and stays out of reading
2235
+ * order.
2166
2236
  *
2167
2237
  * ```html
2168
2238
  * <cngx-checkbox [(value)]="acceptTerms">I accept the terms</cngx-checkbox>
@@ -2206,7 +2276,7 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
2206
2276
  * Optional id of an external error message element (e.g. a sibling
2207
2277
  * rendered by `<cngx-form-field>` or a consumer-owned `<span>`).
2208
2278
  * The host emits `aria-errormessage="<id>"` only when
2209
- * `aria-invalid="true"` — symmetric with the sibling `aria-invalid`
2279
+ * `aria-invalid="true"` - symmetric with the sibling `aria-invalid`
2210
2280
  * host binding (both gate on `invalid() || errorState()`). Consumers
2211
2281
  * MUST render an element with the supplied id; passing an id without
2212
2282
  * a matching element produces a dangling AT reference. Default
@@ -2217,6 +2287,13 @@ declare class CngxCheckbox implements CngxControlValue<boolean>, CngxFormFieldCo
2217
2287
  readonly checkGlyph: _angular_core.InputSignal<TemplateRef<void> | null>;
2218
2288
  readonly dashGlyph: _angular_core.InputSignal<TemplateRef<void> | null>;
2219
2289
  protected readonly describedId: string;
2290
+ /**
2291
+ * `aria-describedby` reference, gated on `disabled() && disabledReason()`
2292
+ * (Toggle/Radio convergence): accname 1.2 §2A traverses a directly
2293
+ * referenced hidden node, so the id must only be emitted while the
2294
+ * description applies.
2295
+ */
2296
+ protected readonly describedById: _angular_core.Signal<string | null>;
2220
2297
  private readonly rovingParent;
2221
2298
  /**
2222
2299
  * When inside a `CngxRovingTabindex` parent (typically `CngxCheckboxGroup`),
@@ -2331,7 +2408,7 @@ declare class CngxCheckboxGroup<T = unknown> implements CngxControlValue<T[]>, C
2331
2408
  readonly invalid: _angular_core.ModelSignal<boolean>;
2332
2409
  /**
2333
2410
  * Optional id of an external error message element. The host emits
2334
- * `aria-errormessage="<id>"` only when `aria-invalid="true"` —
2411
+ * `aria-errormessage="<id>"` only when `aria-invalid="true"` -
2335
2412
  * symmetric with the sibling `aria-invalid` host binding (both gate
2336
2413
  * on `invalid() || errorState()`). Consumers MUST render an element
2337
2414
  * with the supplied id. Default `null` skips the attribute.
@@ -2407,7 +2484,7 @@ interface CngxButtonToggleGroupContract<T = unknown> {
2407
2484
  * The leaf injects this token AND `CNGX_BUTTON_MULTI_TOGGLE_GROUP`
2408
2485
  * with `{ optional: true }` on both; the present token determines the
2409
2486
  * leaf's keyboard semantics + ARIA pattern (`aria-checked` for single,
2410
- * `aria-selected` for multi), chosen at injection time, NOT at
2487
+ * `aria-pressed` for multi), chosen at injection time, NOT at
2411
2488
  * runtime - there is no `[selectionMode]` flag.
2412
2489
  *
2413
2490
  * @category common/interactive
@@ -2506,7 +2583,7 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
2506
2583
  * Multi-select parent contract every `CngxButtonMultiToggleGroup`
2507
2584
  * provides via `useExisting`. `CngxButtonToggle` leaves that detect
2508
2585
  * a multi-mode parent (via `inject(CNGX_BUTTON_MULTI_TOGGLE_GROUP, {
2509
- * optional: true })`) bind `aria-selected` (toolbar APG) instead of
2586
+ * optional: true })`) bind `aria-pressed` (toolbar APG) instead of
2510
2587
  * `aria-checked` (radiogroup APG) AT INJECTION TIME. Mode is static
2511
2588
  * per atom instance - there is no `[selectionMode]` flag.
2512
2589
  *
@@ -2517,7 +2594,7 @@ declare class CngxButtonToggleGroup<T = unknown> implements CngxButtonToggleGrou
2517
2594
  *
2518
2595
  * `isSelected(value)` returns the per-value membership signal from
2519
2596
  * the group's internal `SelectionController` so the leaf can render
2520
- * `aria-selected` reactively without re-querying the array on every
2597
+ * `aria-pressed` reactively without re-querying the array on every
2521
2598
  * keystroke. The signal identity is stable per value (per
2522
2599
  * `createSelectionController` contract) - safe to read inside a
2523
2600
  * `computed()` on the leaf.
@@ -2564,7 +2641,7 @@ declare const CNGX_BUTTON_MULTI_TOGGLE_GROUP: InjectionToken<CngxButtonMultiTogg
2564
2641
  * `feedback_select_family_split`). Consumers pick this component or
2565
2642
  * `<cngx-button-toggle-group>` at template authoring time. Leaves
2566
2643
  * (`CngxButtonToggle`) inject EITHER token with `{ optional: true }`
2567
- * and choose `aria-checked` (single) vs `aria-selected` (multi)
2644
+ * and choose `aria-checked` (single) vs `aria-pressed` (multi)
2568
2645
  * AT INJECTION TIME, never at runtime.
2569
2646
  *
2570
2647
  * Internals lean on `createSelectionController` from
@@ -2660,8 +2737,12 @@ declare class CngxButtonMultiToggleGroup<T = unknown> implements CngxButtonMulti
2660
2737
  *
2661
2738
  * The present token determines:
2662
2739
  *
2663
- * - the ARIA pattern (`aria-checked` for single, `aria-selected` for
2664
- * multi), bound on the host AT INJECTION TIME,
2740
+ * - the ARIA pattern, bound on the host AT INJECTION TIME: a single leaf
2741
+ * takes `role="radio"` + `aria-checked` (radiogroup APG); a multi leaf
2742
+ * stays a native `role="button"` toggle with `aria-pressed` (toolbar
2743
+ * APG). Both `aria-checked` and the listbox `selected` state are
2744
+ * undefined for `role="button"` in ARIA 1.2, so the single leaf carries
2745
+ * the radio role that makes `aria-checked` valid rather than dropped,
2665
2746
  * - the activation contract (single: `group.value.set(...)`; multi:
2666
2747
  * `group.toggle(...)`),
2667
2748
  * - whether `(focus)` consumes the parent's pending arrow-select
@@ -2718,8 +2799,9 @@ declare class CngxButtonToggle<T = unknown> {
2718
2799
  readonly describedBy: _angular_core.InputSignal<string | null>;
2719
2800
  protected readonly toggleChecked: _angular_core.Signal<boolean>;
2720
2801
  protected readonly toggleDisabled: _angular_core.Signal<boolean>;
2802
+ protected readonly hostRole: _angular_core.Signal<"radio" | null>;
2721
2803
  protected readonly ariaChecked: _angular_core.Signal<"true" | "false" | null>;
2722
- protected readonly ariaSelected: _angular_core.Signal<"true" | "false" | null>;
2804
+ protected readonly ariaPressed: _angular_core.Signal<"true" | "false" | null>;
2723
2805
  protected handleFocus(): void;
2724
2806
  protected handleSelect(): void;
2725
2807
  protected handleKeydown(event: Event): void;
@@ -2956,6 +3038,16 @@ declare class CngxRadio<T = unknown> {
2956
3038
  protected readonly describedId: string;
2957
3039
  protected readonly radioChecked: _angular_core.Signal<boolean>;
2958
3040
  protected readonly radioDisabled: _angular_core.Signal<boolean>;
3041
+ /**
3042
+ * `aria-describedby` reference to the reason span, gated on
3043
+ * `radioDisabled() && disabledReason()` - the effective disabled state
3044
+ * (`aria-disabled` reflects the same signal), so a reason set on an
3045
+ * enabled leaf announces nothing while a group-disabled leaf still
3046
+ * surfaces its reason. Gating on the per-leaf `disabled()` alone would
3047
+ * drop the announcement when the parent group disables the leaf. accname
3048
+ * 1.2 §2A traverses a directly-referenced hidden node, so the span's
3049
+ * `aria-hidden` tracks the same condition.
3050
+ */
2959
3051
  protected readonly describedById: _angular_core.Signal<string | null>;
2960
3052
  constructor();
2961
3053
  protected handleFocus(): void;
@@ -3057,13 +3149,16 @@ declare const CNGX_CHIP_GROUP_HOST: InjectionToken<CngxChipGroupHost<unknown>>;
3057
3149
  * toggle does not double-fire alongside the chip's `(remove)`
3058
3150
  * output.
3059
3151
  *
3060
- * **Disabled "why".** When `disabledReason` is set, the directive
3061
- * appends a hidden span to the host via `Renderer2` (always-in-DOM
3062
- * per Pillar 2 - the id stays stable across renders). When
3063
- * `disabledReason` is empty, consumers may still pass a custom id
3064
- * via `cngxDescribedBy` and the `aria-describedby` host binding
3065
- * routes to that. The two paths are mutually exclusive: a non-empty
3066
- * `disabledReason` wins.
3152
+ * **Disabled "why".** The directive appends a hidden span to the host
3153
+ * via `Renderer2` (always-in-DOM per Pillar 2 - the id stays stable
3154
+ * across renders). Both the span's `aria-hidden` and the host's
3155
+ * `aria-describedby` reference are gated on `disabled() &&
3156
+ * disabledReason()` (Toggle/Radio convergence): a reason set on an
3157
+ * enabled chip announces nothing and stays out of reading order.
3158
+ * Outside that state, consumers may still pass a custom id via
3159
+ * `cngxDescribedBy` and the `aria-describedby` host binding routes to
3160
+ * that. The two paths are mutually exclusive: the active
3161
+ * disabled-reason wins.
3067
3162
  *
3068
3163
  * ```html
3069
3164
  * <cngx-chip cngxChipInteraction [value]="'red'" [(selected)]="redOn">
@@ -3998,6 +4093,7 @@ declare class CngxHierarchicalNav<T = unknown> {
3998
4093
  readonly controller: _angular_core.InputSignal<CngxTreeController<T>>;
3999
4094
  private readonly ad;
4000
4095
  private readonly strategy;
4096
+ private readonly direction;
4001
4097
  /** Emitted with the id that was just expanded via ArrowRight. */
4002
4098
  readonly expand: _angular_core.OutputEmitterRef<string>;
4003
4099
  /** Emitted with the id that was just collapsed via ArrowLeft. */
@@ -4006,8 +4102,14 @@ declare class CngxHierarchicalNav<T = unknown> {
4006
4102
  readonly movedToParent: _angular_core.OutputEmitterRef<string>;
4007
4103
  /** Emitted with the id of the child the active-descendant moved to. */
4008
4104
  readonly movedToChild: _angular_core.OutputEmitterRef<string>;
4009
- handleRight(event: Event): void;
4010
- handleLeft(event: Event): void;
4105
+ protected handleRight(event: Event): void;
4106
+ protected handleLeft(event: Event): void;
4107
+ /**
4108
+ * Resolve the physical arrow to its inline-logical intent before routing:
4109
+ * under `rtl` physical ArrowLeft expands / moves-to-child and physical
4110
+ * ArrowRight collapses / moves-to-parent. The strategy stays direction-naive.
4111
+ */
4112
+ private handlePhysicalArrow;
4011
4113
  /**
4012
4114
  * Shared guard + action-dispatch wrapper. Degrades silently when AD
4013
4115
  * isn't composed on the host or nothing is highlighted.
@@ -4087,6 +4189,13 @@ interface CngxHierarchicalNavStrategy {
4087
4189
  * `'noop'` when it didn't - so consumers bound to `(movedToChild)` /
4088
4190
  * `(movedToParent)` only see state-change-truthful emissions.
4089
4191
  *
4192
+ * `onArrowRight` / `onArrowLeft` are the inline-forward / inline-back
4193
+ * intents, not physical keys. `CngxHierarchicalNav` resolves the physical
4194
+ * arrow to its logical intent by writing direction (`resolveInlineArrowKey`)
4195
+ * before calling the strategy, so under `rtl` physical ArrowLeft routes to
4196
+ * `onArrowRight`. Custom strategies stay direction-naive and inherit correct
4197
+ * RTL behaviour for free.
4198
+ *
4090
4199
  * @category common/interactive/tree
4091
4200
  */
4092
4201
  declare function createW3CTreeStrategy(): CngxHierarchicalNavStrategy;
@@ -4137,7 +4246,7 @@ interface RetryConfig {
4137
4246
  backoff?: 'linear' | 'exponential';
4138
4247
  }
4139
4248
  /**
4140
- * State exposed by the retryable action — read-only signals for UI feedback.
4249
+ * State exposed by the retryable action - read-only signals for UI feedback.
4141
4250
  *
4142
4251
  * @category common/interactive/retry
4143
4252
  */
@@ -4156,11 +4265,11 @@ interface RetryState {
4156
4265
  * Full `CngxAsyncState` view of the retry lifecycle.
4157
4266
  *
4158
4267
  * Bind to any `[state]` consumer to connect the feedback system.
4159
- * `retrying` (delay between retries) maps to `'pending'` — the feedback
4268
+ * `retrying` (delay between retries) maps to `'pending'` - the feedback
4160
4269
  * system sees "still working" during retry delays.
4161
4270
  */
4162
4271
  readonly state: CngxAsyncState<unknown>;
4163
- /** Manually reset — clears exhausted state, resets attempt counter. */
4272
+ /** Manually reset - clears exhausted state, resets attempt counter. */
4164
4273
  reset(): void;
4165
4274
  }
4166
4275
  /**
@@ -4214,7 +4323,7 @@ interface OptimisticState {
4214
4323
  * On success, applies the server-confirmed value. On failure, rolls back to the
4215
4324
  * previous value.
4216
4325
  *
4217
- * This is a utility function, not a directive — it composes with any signal.
4326
+ * This is a utility function, not a directive - it composes with any signal.
4218
4327
  *
4219
4328
  * ```typescript
4220
4329
  * readonly name = signal('Alice');
@@ -4229,7 +4338,7 @@ interface OptimisticState {
4229
4338
  * @if (nameState.rolledBack()) { <span>Reverted</span> }
4230
4339
  * ```
4231
4340
  *
4232
- * **Note:** The internal subscription is unmanaged — there is no `DestroyRef` available
4341
+ * **Note:** The internal subscription is unmanaged - there is no `DestroyRef` available
4233
4342
  * in a plain factory function. If the component is destroyed mid-flight, the subscription
4234
4343
  * completes silently. For long-running actions, ensure the component outlives the action
4235
4344
  * or cancel via the Observable itself.
@@ -4581,6 +4690,7 @@ declare class CngxReorder<T = unknown> {
4581
4690
  readonly dragOverIndex: Signal<number | null>;
4582
4691
  private readonly hostEl;
4583
4692
  private readonly doc;
4693
+ private readonly direction;
4584
4694
  private readonly destroyRef;
4585
4695
  constructor();
4586
4696
  private wirePointer;
@@ -4626,6 +4736,14 @@ interface CngxChipStripRovingOptions {
4626
4736
  * legitimate idle state - the controller becomes a no-op focuser.
4627
4737
  */
4628
4738
  readonly container: Signal<HTMLElement | null | undefined>;
4739
+ /**
4740
+ * Document writing direction. Omit to read the ambient
4741
+ * {@link injectDirection} signal (the common case); pass an explicit
4742
+ * signal to force a direction for this strip. Mirrors the `direction`
4743
+ * option the tab / stepper / slider keyboard factories take, so under
4744
+ * `rtl` plain ArrowLeft roves forward and ArrowRight back on the inline axis.
4745
+ */
4746
+ readonly direction?: Signal<CngxDirection>;
4629
4747
  /**
4630
4748
  * Attribute name used to identify each chip wrapper. Combined with
4631
4749
  * the active index into a `[attr="index"]` query. Defaults to
@@ -4919,7 +5037,7 @@ declare class CngxBeforeUnload {
4919
5037
  * Works with Angular's `CanDeactivateFn`. The `isDirty` callback is evaluated
4920
5038
  * on each navigation attempt. When dirty, shows a `confirm` dialog.
4921
5039
  *
4922
- * Uses `DOCUMENT` injection for SSR safety — returns `true` (allow) when
5040
+ * Uses `DOCUMENT` injection for SSR safety - returns `true` (allow) when
4923
5041
  * no window is available.
4924
5042
  *
4925
5043
  * Pair with `CngxBeforeUnload` for full coverage (browser close + route change):
@@ -5647,7 +5765,7 @@ declare class CngxListbox<T = unknown> {
5647
5765
  private hasOption;
5648
5766
  private handleActivation;
5649
5767
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxListbox<any>, never>;
5650
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxListbox<any>, "[cngxListbox]", ["cngxListbox"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "cngxSearchRef": { "alias": "cngxSearchRef"; "required": false; "isSignal": true; }; "externalActivation": { "alias": "externalActivation"; "required": false; "isSignal": true; }; "explicitOptions": { "alias": "explicitOptions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedValues": "selectedValuesChange"; }, ["contentOptions"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "items": "items"; "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; "virtualCount": "virtualCount"; }; outputs: {}; }]>;
5768
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxListbox<any>, "[cngxListbox]", ["cngxListbox"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selectedValues": { "alias": "selectedValues"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "cngxSearchRef": { "alias": "cngxSearchRef"; "required": false; "isSignal": true; }; "externalActivation": { "alias": "externalActivation"; "required": false; "isSignal": true; }; "explicitOptions": { "alias": "explicitOptions"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedValues": "selectedValuesChange"; }, ["contentOptions"], never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "items": "items"; "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; "virtualCount": "virtualCount"; "windowStart": "windowStart"; }; outputs: {}; }]>;
5651
5769
  }
5652
5770
 
5653
5771
  /**
@@ -5656,7 +5774,7 @@ declare class CngxListbox<T = unknown> {
5656
5774
  * entry-point circular dependency (popover already imports from interactive
5657
5775
  * for `CngxCloseButton`).
5658
5776
  */
5659
- interface PopoverController$3 {
5777
+ interface PopoverController$1 {
5660
5778
  readonly isVisible: () => boolean;
5661
5779
  show(): void;
5662
5780
  hide(): void;
@@ -5690,7 +5808,7 @@ declare class CngxListboxTrigger<T = unknown> {
5690
5808
  /** Listbox controlled by this trigger. */
5691
5809
  readonly listbox: _angular_core.InputSignal<CngxListbox<T>>;
5692
5810
  /** Popover that wraps the listbox panel. */
5693
- readonly popover: _angular_core.InputSignal<PopoverController$3>;
5811
+ readonly popover: _angular_core.InputSignal<PopoverController$1>;
5694
5812
  /** Whether activating an option closes the popover. */
5695
5813
  readonly closeOnSelect: _angular_core.InputSignal<boolean>;
5696
5814
  /** Mirrors `CngxPopover.isVisible()` for host binding and external read. */
@@ -5737,15 +5855,36 @@ interface CngxMenuSubmenuLike {
5737
5855
  readonly id: string;
5738
5856
  /** Reactive open state, mirrored from the wrapped popover. */
5739
5857
  readonly isOpen: Signal<boolean>;
5740
- /** The submenu's inner menu host (its `CngxMenu` instance). */
5741
- readonly inner: CngxMenuHost;
5858
+ /**
5859
+ * The submenu's inner menu host (its `CngxMenu` instance), or `null` while
5860
+ * unwired. An inert companion never resolves one - the context-menu
5861
+ * organism applies the directive to every item, so leaf items register a
5862
+ * brain whose `inner` stays `null`; the focus stack treats those as inert.
5863
+ */
5864
+ readonly inner: CngxMenuHost | null;
5865
+ /**
5866
+ * Debounced pointer intent over the submenu's combined hover surface
5867
+ * (parent item plus popover panel). The companion only DERIVES this signal;
5868
+ * it never opens or closes anything off it - the surrounding trigger routes
5869
+ * intent edges through the focus stack via
5870
+ * `connectSubmenuHoverToFocusStack`, so a hover-opened submenu is
5871
+ * keyboard-visible exactly like a keyboard-opened one. Optional: a
5872
+ * companion without a pointer surface omits it and stays keyboard-only.
5873
+ */
5874
+ readonly hoverIntent?: Signal<boolean>;
5742
5875
  open(): void;
5743
5876
  close(): void;
5744
5877
  }
5745
5878
  /**
5746
- * DI token a submenu-companion directive provides. The surrounding menu
5747
- * collects every provider via `contentChildren(CNGX_MENU_SUBMENU_ITEM,
5748
- * { descendants: true })` and exposes the array on `CngxMenuHost.submenuItems`.
5879
+ * DI token a submenu-companion directive provides so composers can resolve
5880
+ * its {@link CngxMenuSubmenuLike} contract via `inject(CNGX_MENU_SUBMENU_ITEM)`
5881
+ * from within the submenu subtree.
5882
+ *
5883
+ * Note: the surrounding `CngxMenu` does NOT discover submenus through this
5884
+ * token. Discovery is DI registration via
5885
+ * {@link CngxMenuHost.registerSubmenuItem} (which crosses component view
5886
+ * boundaries a content query cannot), and the result is exposed on
5887
+ * `CngxMenuHost.submenuItems`.
5749
5888
  *
5750
5889
  * @category common/interactive/menu
5751
5890
  * @wcag AA
@@ -5753,6 +5892,53 @@ interface CngxMenuSubmenuLike {
5753
5892
  * @since 0.1.0
5754
5893
  */
5755
5894
  declare const CNGX_MENU_SUBMENU_ITEM: InjectionToken<CngxMenuSubmenuLike>;
5895
+ /**
5896
+ * Structural popover surface the submenu brain drives. Typed structurally so
5897
+ * `@cngx/common/interactive` stays free of a `@cngx/common/popover` import
5898
+ * (menu-accepted-debt §7) - a concrete `CngxPopover` satisfies it.
5899
+ *
5900
+ * @category common/interactive/menu
5901
+ */
5902
+ interface CngxMenuSubmenuPopoverRef {
5903
+ readonly isVisible: () => boolean;
5904
+ show(): void;
5905
+ hide(): void;
5906
+ readonly anchorElement: {
5907
+ set(el: HTMLElement | null): void;
5908
+ };
5909
+ /** Popover unique id signal - composes the `anchor-name` CSS value. */
5910
+ readonly id: () => string;
5911
+ /** Popover host element - submenu hover listeners attach here. */
5912
+ readonly elementRef: {
5913
+ readonly nativeElement: HTMLElement;
5914
+ };
5915
+ }
5916
+ /**
5917
+ * Wiring a component shell provides so `CngxMenuItemSubmenu` resolves its
5918
+ * popover and inner menu from DI instead of from `[cngxMenuItemSubmenu]` /
5919
+ * `[submenuMenu]` inputs. Lets `@cngx/ui/context-menu` wire the submenu
5920
+ * brain internally (Bridge-Input-Regel) - the brain stays inert (no
5921
+ * `aria-haspopup` / `aria-expanded`) until one source is present.
5922
+ *
5923
+ * @category common/interactive/menu
5924
+ */
5925
+ interface CngxMenuSubmenuWiring {
5926
+ /** The submenu popover surface, or `undefined` while no submenu is wired. */
5927
+ popover(): CngxMenuSubmenuPopoverRef | undefined;
5928
+ /** The inner menu host, or `undefined` while no submenu is wired. */
5929
+ menu(): CngxMenuHost | undefined;
5930
+ }
5931
+ /**
5932
+ * DI token a component shell provides to wire `CngxMenuItemSubmenu`'s popover
5933
+ * and inner menu without template inputs. Resolution order in the brain:
5934
+ * explicit input first, then this token, else inert.
5935
+ *
5936
+ * @category common/interactive/menu
5937
+ * @wcag AA
5938
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-submenu.token.ts
5939
+ * @since 0.1.0
5940
+ */
5941
+ declare const CNGX_MENU_SUBMENU_WIRING: InjectionToken<CngxMenuSubmenuWiring>;
5756
5942
 
5757
5943
  /**
5758
5944
  * Structural contract a `CngxMenu` (or a future menu-bar / nested menu
@@ -5778,6 +5964,16 @@ interface CngxMenuHost {
5778
5964
  * `CngxMenu.focus()`.
5779
5965
  */
5780
5966
  focus(): void;
5967
+ /**
5968
+ * Register a submenu companion with this menu so ArrowRight / ArrowLeft
5969
+ * focus-stack routing can discover it. Returns a deregister callback the
5970
+ * companion invokes on destroy. Preferred over a content query because DI
5971
+ * registration crosses the component view boundaries that
5972
+ * `contentChildren` cannot see (a `[cngxMenuItemSubmenu]` declared inside a
5973
+ * wrapper component's own template is invisible to the surrounding menu's
5974
+ * content query, but its element injector still resolves `CNGX_MENU_HOST`).
5975
+ */
5976
+ registerSubmenuItem(item: CngxMenuSubmenuLike): () => void;
5781
5977
  }
5782
5978
  /**
5783
5979
  * DI token a menu host provides for sub-component composers (e.g. an
@@ -5819,12 +6015,22 @@ declare class CngxMenu implements CngxMenuHost {
5819
6015
  private readonly elementRef;
5820
6016
  private readonly announcer;
5821
6017
  private readonly menuConfig;
6018
+ /** Internal registry backing {@link submenuItems}. */
6019
+ private readonly _submenuItems;
5822
6020
  /**
5823
- * Submenu directives registered inside this menu's content tree. Empty
5824
- * when the menu has no submenus. Drives the trigger's focus-stack
5825
- * arrow-right / arrow-left semantics.
6021
+ * Submenu directives registered against this menu via DI. Empty when the
6022
+ * menu has no submenus. Drives the trigger's focus-stack arrow-right /
6023
+ * arrow-left semantics. Registration (not a content query) so a
6024
+ * `[cngxMenuItemSubmenu]` declared inside a wrapper component's template
6025
+ * is still discovered - see {@link registerSubmenuItem}.
5826
6026
  */
5827
6027
  readonly submenuItems: _angular_core.Signal<readonly CngxMenuSubmenuLike[]>;
6028
+ /**
6029
+ * Register a submenu companion (a {@link CngxMenuSubmenuLike}) and return
6030
+ * its deregister callback. Called from `CngxMenuItemSubmenu`'s constructor;
6031
+ * the companion invokes the returned callback on destroy.
6032
+ */
6033
+ registerSubmenuItem(item: CngxMenuSubmenuLike): () => void;
5828
6034
  /** Emits the activated item's value on Enter/Space/click. */
5829
6035
  readonly itemActivated: _angular_core.OutputRef<unknown>;
5830
6036
  constructor();
@@ -5841,7 +6047,7 @@ declare class CngxMenu implements CngxMenuHost {
5841
6047
  */
5842
6048
  focus(): void;
5843
6049
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenu, never>;
5844
- 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: {}; }]>;
6050
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenu, "[cngxMenu]", ["cngxMenu"], { "label": { "alias": "label"; "required": true; "isSignal": true; }; }, { "itemActivated": "itemActivated"; }, never, never, true, [{ directive: typeof i1.CngxActiveDescendant; inputs: { "orientation": "orientation"; "loop": "loop"; "typeahead": "typeahead"; "autoHighlightFirst": "autoHighlightFirst"; }; outputs: {}; }]>;
5845
6051
  }
5846
6052
 
5847
6053
  /**
@@ -5956,25 +6162,6 @@ declare class CngxMenuItemKbd {
5956
6162
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenuItemKbd, "[cngxMenuItemKbd]", ["cngxMenuItemKbd"], {}, {}, never, never, true, never>;
5957
6163
  }
5958
6164
 
5959
- /** See `CngxListboxTrigger` - same structural contract. */
5960
- interface PopoverController$2 {
5961
- readonly isVisible: () => boolean;
5962
- show(): void;
5963
- hide(): void;
5964
- readonly anchorElement: {
5965
- set(el: HTMLElement | null): void;
5966
- };
5967
- /**
5968
- * Popover unique id signal - used to compose the `anchor-name` CSS value
5969
- * the browser's CSS Anchor Positioning expects on the anchor element.
5970
- */
5971
- readonly id: () => string;
5972
- /**
5973
- * Popover host element - the submenu directive attaches hover listeners to
5974
- * it so the submenu stays open while the user mouses over its items.
5975
- */
5976
- readonly elementRef: ElementRef<HTMLElement>;
5977
- }
5978
6165
  /**
5979
6166
  * Companion directive applied to a `[cngxMenuItem]` that opens a nested
5980
6167
  * submenu. The directive itself does NOT render `role="menuitem"` - that
@@ -5983,14 +6170,20 @@ interface PopoverController$2 {
5983
6170
  * submenu source so the menu trigger can drive arrow-right / arrow-left
5984
6171
  * focus-stack semantics.
5985
6172
  *
5986
- * Two inputs:
5987
- * - `cngxMenuItemSubmenu`: the popover wrapping the submenu.
5988
- * - `submenuMenu`: the inner `CngxMenu` (or any `CngxMenuHost`) the
5989
- * trigger transfers focus to when the submenu opens.
6173
+ * Wiring, two ways (Bridge-Input-Regel):
6174
+ * - `cngxMenuItemSubmenu` + `submenuMenu` inputs bind the popover and the
6175
+ * inner `CngxMenu` directly, or
6176
+ * - a component shell provides `CNGX_MENU_SUBMENU_WIRING` and omits both
6177
+ * inputs, so the brain resolves them from DI.
6178
+ *
6179
+ * Until one source is present the brain stays inert: it renders neither
6180
+ * `aria-haspopup` nor `aria-expanded` and opens nothing.
5990
6181
  *
5991
- * The submenu's `<div cngxPopover>` MUST set `[exclusive]="false"` so that
5992
- * opening it does not light-dismiss the parent popover. This is the only
5993
- * extra wiring the consumer needs beyond the two inputs.
6182
+ * The submenu popover needs no `[exclusive]` binding: a popover nested
6183
+ * inside another never evicts its ancestor, so opening the submenu leaves
6184
+ * the parent popover open by default. An explicit `[exclusive]="false"`
6185
+ * remains valid (it additionally opts the submenu out of evicting
6186
+ * unrelated sibling popovers) but is no longer required for nesting.
5994
6187
  *
5995
6188
  * @category common/interactive/menu
5996
6189
  * @docsKind primary
@@ -6001,39 +6194,63 @@ interface PopoverController$2 {
6001
6194
  * <example-url>http://localhost:4200/#/common/interactive/menu/submenu/two-level-submenu</example-url>
6002
6195
  */
6003
6196
  declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
6004
- /** Popover wrapping the submenu. Required. */
6005
- readonly popover: _angular_core.InputSignal<PopoverController$2>;
6006
- /** Inner `CngxMenuHost` (the submenu's own `CngxMenu`). Required. */
6007
- readonly submenuMenu: _angular_core.InputSignal<CngxMenuHost>;
6197
+ /**
6198
+ * Popover wrapping the submenu. Optional - a component shell can instead
6199
+ * provide `CNGX_MENU_SUBMENU_WIRING` (Bridge-Input-Regel: an optional DI
6200
+ * fallback forbids `input.required`; the empty-string transform keeps a
6201
+ * bare `cngxMenuItemSubmenu` attribute from binding `''`).
6202
+ */
6203
+ readonly popover: _angular_core.InputSignalWithTransform<CngxMenuSubmenuPopoverRef | undefined, "" | CngxMenuSubmenuPopoverRef | undefined>;
6204
+ /** Inner `CngxMenuHost` (the submenu's own `CngxMenu`). Optional; resolved from DI wiring when omitted. */
6205
+ readonly submenuMenu: _angular_core.InputSignalWithTransform<CngxMenuHost | undefined, "" | CngxMenuHost | undefined>;
6008
6206
  private readonly elementRef;
6009
6207
  private readonly menuItem;
6208
+ private readonly menuHost;
6209
+ private readonly wiring;
6210
+ private readonly announcer;
6211
+ private readonly menuConfig;
6212
+ private readonly destroyRef;
6010
6213
  private readonly ownId;
6011
- /**
6012
- * Effective id used by `CngxMenuTrigger.submenuItems().find(s => s.id ===
6214
+ /** Popover resolved from the input, else the DI wiring fallback. */
6215
+ private readonly resolvedPopover;
6216
+ /** Inner menu resolved from the input, else the DI wiring fallback. */
6217
+ private readonly resolvedMenu;
6218
+ /** True once both the popover and inner menu are wired (input or DI). */
6219
+ private readonly wired;
6220
+ /**
6221
+ * Effective id used by `CngxMenuHost.submenuItems().find(s => s.id ===
6013
6222
  * activeId)`. When applied alongside `[cngxMenuItem]` the directive
6014
6223
  * mirrors the sibling's id so the trigger's lookup matches the AD's
6015
6224
  * `activeId`. When applied alone (no sibling), falls back to a fresh
6016
- * `nextUid` - the AD will never highlight this element so the trigger
6017
- * lookup is moot, but the host element still receives a valid id.
6225
+ * `nextUid`.
6018
6226
  */
6019
6227
  get id(): string;
6020
6228
  readonly isOpen: _angular_core.Signal<boolean>;
6021
- /** CSS Anchor Positioning name - matches the popover's `position-anchor`. */
6022
- protected readonly cssAnchorName: _angular_core.Signal<string>;
6023
- get inner(): CngxMenuHost;
6229
+ /** `aria-haspopup="menu"` only while wired; `null` keeps the brain inert. */
6230
+ protected readonly ariaHaspopup: _angular_core.Signal<string | null>;
6231
+ /** `aria-expanded` mirrors open state while wired; `null` otherwise. */
6232
+ protected readonly ariaExpanded: _angular_core.Signal<boolean | null>;
6233
+ /** CSS Anchor Positioning name - `null` while unwired. */
6234
+ protected readonly cssAnchorName: _angular_core.Signal<string | null>;
6235
+ get inner(): CngxMenuHost | null;
6024
6236
  open(): void;
6025
6237
  close(): void;
6026
- private readonly parentHovered;
6027
- private readonly popoverHovered;
6028
- private readonly anyHovered;
6029
- private closeTimer;
6030
- protected handleParentEnter(): void;
6031
- protected handleParentLeave(): void;
6032
- private cancelCloseTimer;
6033
- private scheduleClose;
6034
- private readonly announcer;
6035
- private readonly menuConfig;
6036
- private readonly destroyRef;
6238
+ /**
6239
+ * Composed hover-intent atom (hostDirective). Its own host listeners cover
6240
+ * the parent item; the constructor effect feeds the popover panel in as a
6241
+ * satellite surface, so `active()` settles `true` after `submenuOpenDelay`
6242
+ * ms over either element and back `false` after `submenuCloseDelay` ms off
6243
+ * both. The atom owns every timer (and its destroy cleanup).
6244
+ */
6245
+ private readonly intent;
6246
+ /**
6247
+ * `CngxMenuSubmenuLike.hoverIntent` - the debounced combined-surface hover
6248
+ * state. Derivation only: the brain never opens or closes anything off it.
6249
+ * The surrounding trigger routes the edges through its focus stack
6250
+ * (`connectSubmenuHoverToFocusStack`), so a hover-opened submenu is
6251
+ * stack-tracked and keyboard-visible exactly like a keyboard-opened one.
6252
+ */
6253
+ readonly hoverIntent: _angular_core.Signal<boolean>;
6037
6254
  /**
6038
6255
  * Transition tracker for `isOpen`. `linkedSignal` carries an explicit
6039
6256
  * structural `equal` so the effect below only fires on a real
@@ -6042,7 +6259,7 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
6042
6259
  private readonly transition;
6043
6260
  constructor();
6044
6261
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuItemSubmenu, never>;
6045
- 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>;
6262
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenuItemSubmenu, "[cngxMenuItemSubmenu]", ["cngxMenuItemSubmenu"], { "popover": { "alias": "cngxMenuItemSubmenu"; "required": false; "isSignal": true; }; "submenuMenu": { "alias": "submenuMenu"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof CngxHoverIntent; inputs: {}; outputs: {}; }]>;
6046
6263
  }
6047
6264
 
6048
6265
  /**
@@ -6057,18 +6274,18 @@ declare class CngxMenuItemSubmenu implements CngxMenuSubmenuLike {
6057
6274
  *
6058
6275
  * The chain matches the
6059
6276
  * `projects/forms/select/shared/select-base.css:759` precedent
6060
- * (`flip-block, flip-inline, flip-block flip-inline`) — `flip-inline`
6277
+ * (`flip-block, flip-inline, flip-block flip-inline`) - `flip-inline`
6061
6278
  * is the dominant submenu clip case (right submenu hits the viewport
6062
6279
  * right edge → flips to the left side of its parent item),
6063
6280
  * `flip-block` covers the vertical case, and the composed form
6064
6281
  * covers diagonal clipping.
6065
6282
  *
6066
6283
  * `CngxMenuItemSubmenu` emits a one-shot dev-mode warning when a
6067
- * submenu popover ships without `positionTryFallbacks` — the const
6284
+ * submenu popover ships without `positionTryFallbacks` - the const
6068
6285
  * is documented as the canonical opt-in.
6069
6286
  *
6070
6287
  * Typed as a string-literal tuple via `as const` rather than the
6071
- * `PopoverPositionTryFallback` union from `@cngx/common/popover` —
6288
+ * `PopoverPositionTryFallback` union from `@cngx/common/popover` -
6072
6289
  * the cross-entry-point import would reverse the existing
6073
6290
  * `popover -> interactive` dependency direction and break ng-packagr.
6074
6291
  * Consumers binding the const to `[positionTryFallbacks]` get
@@ -6292,6 +6509,13 @@ interface CngxMenuNavStrategy {
6292
6509
  * `close-submenu`. Otherwise → `move-to-parent` (an enclosing menubar
6293
6510
  * interprets that; a standalone menu trigger treats it as noop).
6294
6511
  *
6512
+ * `onArrowRight` / `onArrowLeft` are the inline-forward / inline-back
6513
+ * intents, not physical keys. The dispatch site resolves the physical
6514
+ * arrow to its logical intent by writing direction before calling the
6515
+ * strategy (`resolveInlineArrowKey`), so under `rtl` physical ArrowLeft
6516
+ * routes to `onArrowRight`. Custom strategies therefore stay
6517
+ * direction-naive and inherit correct RTL behaviour for free.
6518
+ *
6295
6519
  * @category common/interactive/menu
6296
6520
  */
6297
6521
  declare function createW3CMenuStrategy(): CngxMenuNavStrategy;
@@ -6308,6 +6532,203 @@ declare function createW3CMenuStrategy(): CngxMenuNavStrategy;
6308
6532
  */
6309
6533
  declare const CNGX_MENU_NAV_STRATEGY: InjectionToken<CngxMenuNavStrategy>;
6310
6534
 
6535
+ /**
6536
+ * Minimal popover surface the focus stack hides when the outermost menu
6537
+ * level closes. Typed structurally to keep `@cngx/common/interactive` free
6538
+ * of a `@cngx/common/popover` import (menu-accepted-debt §7).
6539
+ *
6540
+ * @category common/interactive/menu
6541
+ */
6542
+ interface CngxMenuFocusStackPopoverRef {
6543
+ hide(): void;
6544
+ }
6545
+ /**
6546
+ * Dependencies for {@link createMenuFocusStack}. The caller injects the
6547
+ * keyboard policy and `Document` and passes them in, so the factory itself
6548
+ * stays pure and swappable via {@link CNGX_MENU_FOCUS_STACK_FACTORY}.
6549
+ *
6550
+ * @category common/interactive/menu
6551
+ */
6552
+ interface CngxMenuFocusStackDeps {
6553
+ /** Root menu host - the bottom of the submenu chain. */
6554
+ readonly rootMenu: () => CngxMenuHost;
6555
+ /** Popover to hide when the outermost level closes. */
6556
+ readonly popover: () => CngxMenuFocusStackPopoverRef;
6557
+ /** Keyboard policy consulted on ArrowRight / ArrowLeft. */
6558
+ readonly nav: CngxMenuNavStrategy;
6559
+ /** Document used to capture the pre-open focus target. */
6560
+ readonly document: Document;
6561
+ }
6562
+ /**
6563
+ * Submenu focus-stack model shared by `CngxMenuTrigger` and the
6564
+ * context-menu trigger core. Owns the active submenu chain, the
6565
+ * saved-focus slot restored after close, and the W3C APG
6566
+ * ArrowRight / ArrowLeft / Escape / activation routing.
6567
+ *
6568
+ * @category common/interactive/menu
6569
+ */
6570
+ interface CngxMenuFocusStack {
6571
+ /** Active submenu chain - empty when only the root menu is open. */
6572
+ readonly stack: Signal<readonly CngxMenuHost[]>;
6573
+ /** Top-of-stack menu host, or the root when the stack is empty. */
6574
+ effectiveMenu(): CngxMenuHost;
6575
+ /**
6576
+ * The submenu companion of the effective menu's active item, or `undefined`
6577
+ * when the active item is a leaf (or nothing is active). The single lookup
6578
+ * shared by keyboard, click, and hover activation - callers guard on the
6579
+ * result and route it to {@link openSubmenuFor} / {@link noteSubmenuOpened}.
6580
+ */
6581
+ activeSubmenu(): CngxMenuSubmenuLike | undefined;
6582
+ /** Capture the currently focused element (once) for post-close restore. */
6583
+ captureFocus(): void;
6584
+ /** Restore focus to the captured element after the close DOM settles. */
6585
+ restoreFocus(): void;
6586
+ /** Escape: pop the innermost submenu, or hide the popover at the root. */
6587
+ handleEscape(event: KeyboardEvent): void;
6588
+ /** ArrowRight: open the active item's submenu when the policy allows. */
6589
+ handleArrowRight(menu: CngxMenuHost, event: KeyboardEvent): void;
6590
+ /** ArrowLeft: pop the current submenu level when one is open. */
6591
+ handleArrowLeft(menu: CngxMenuHost, event: KeyboardEvent): void;
6592
+ /** Enter/Space: open a submenu parent, else activate the leaf and close. */
6593
+ handleActivation(menu: CngxMenuHost, event: KeyboardEvent): void;
6594
+ /**
6595
+ * Open a specific submenu through the stack - the single open-only primitive
6596
+ * shared by keyboard activation, pointer click, and hover. Delegates to the
6597
+ * same private open the ArrowRight path uses: opens the submenu popover
6598
+ * (flipping its `aria-expanded`), pushes the inner menu onto the stack, and
6599
+ * highlights the inner menu's first item. Idempotent - a no-op when the
6600
+ * submenu's inner menu is already on the stack, so repeated activation or
6601
+ * hover never double-pushes. Chain-correcting: hover can target a submenu
6602
+ * whose parent menu is not the top of the stack (a sibling parent while
6603
+ * another branch is open), so any levels above the submenu's parent menu
6604
+ * are popped first and the stack stays a strict chain. A no-op on an inert
6605
+ * brain (`inner` never resolved - an organism leaf item): there is nothing
6606
+ * to open and the open branch must survive a sweep across a leaf row. Also
6607
+ * a no-op when the submenu's parent menu is not part of the open chain
6608
+ * (its branch was popped since the caller resolved the submenu) - opening
6609
+ * there would show an orphaned popover and fork the stack.
6610
+ */
6611
+ openSubmenuFor(submenu: CngxMenuSubmenuLike): void;
6612
+ /**
6613
+ * Close a specific submenu through the stack - the close counterpart to
6614
+ * {@link openSubmenuFor} shared by hover leave and programmatic close.
6615
+ * Pops the stack innermost-first until the submenu's inner menu is off it
6616
+ * (closing any open descendants on the way), so keyboard routing falls
6617
+ * back to the parent level. When the submenu is not stack-tracked (already
6618
+ * popped by a sibling's chain-correcting open) it only ensures the popover
6619
+ * is hidden. Idempotent on a closed submenu; a no-op on an inert brain.
6620
+ */
6621
+ closeSubmenuFor(submenu: CngxMenuSubmenuLike): void;
6622
+ /**
6623
+ * Record that a submenu is already open, pushing its inner menu onto the
6624
+ * stack and highlighting the first item WITHOUT calling `submenu.open()`.
6625
+ * Safety net for opens the stack did not perform itself - e.g. the
6626
+ * organism's programmatic `openAsSubmenu` seam - so an externally opened
6627
+ * submenu is stack-tracked (ArrowLeft / Escape pop it) exactly like a
6628
+ * keyboard-opened one, with no risk of re-entering the open path. Hover
6629
+ * does not need it: it routes through {@link openSubmenuFor} via
6630
+ * `connectSubmenuHoverToFocusStack`, and this call is then an idempotent
6631
+ * no-op because the submenu is already on the stack.
6632
+ */
6633
+ noteSubmenuOpened(submenu: CngxMenuSubmenuLike): void;
6634
+ /** Close every open submenu innermost-first, then hide the popover. */
6635
+ closeAll(): void;
6636
+ /**
6637
+ * Close every open submenu innermost-first and clear the stack WITHOUT
6638
+ * hiding the root popover. Called on the trigger's close path so a stale
6639
+ * submenu chain never survives a non-Escape dismissal (outside-click, blur,
6640
+ * scroll): the root popover is already closing, and a reopened menu must
6641
+ * start from the root, not a submenu that no longer exists.
6642
+ */
6643
+ reset(): void;
6644
+ }
6645
+ /**
6646
+ * Factory that builds a {@link CngxMenuFocusStack} from its dependencies.
6647
+ * Matches the token {@link CNGX_MENU_FOCUS_STACK_FACTORY} so consumers can
6648
+ * swap the focus-stack model (alternative keyboard pattern, telemetry
6649
+ * wrapping, test double) enterprise-wide.
6650
+ *
6651
+ * @category common/interactive/menu
6652
+ */
6653
+ type CngxMenuFocusStackFactory = (deps: CngxMenuFocusStackDeps) => CngxMenuFocusStack;
6654
+ /**
6655
+ * Default focus-stack implementation. Behaviour matches the W3C APG Menu
6656
+ * Button pattern that `CngxMenuTrigger` shipped inline before extraction.
6657
+ *
6658
+ * @category common/interactive/menu
6659
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-focus-stack.ts
6660
+ * @since 0.1.0
6661
+ */
6662
+ declare function createMenuFocusStack(deps: CngxMenuFocusStackDeps): CngxMenuFocusStack;
6663
+ /**
6664
+ * Dependencies for {@link connectSubmenuHoverToFocusStack}.
6665
+ *
6666
+ * @category common/interactive/menu
6667
+ */
6668
+ interface CngxSubmenuHoverRoutingDeps {
6669
+ /** The trigger's focus-stack model that owns the open submenu chain. */
6670
+ readonly focusStack: CngxMenuFocusStack;
6671
+ /** Root menu host - the bottom of the submenu chain. */
6672
+ readonly rootMenu: () => CngxMenuHost;
6673
+ /**
6674
+ * Open-state of the root popover. When provided, a settled hover intent
6675
+ * opens only while the root menu is open: a dwell timer can outlive a
6676
+ * dismissal (hidden elements do not reliably fire `pointerleave`), and its
6677
+ * late true edge must not show an orphaned submenu popover. The edge is
6678
+ * still consumed, so reopening the root never retroactively opens a
6679
+ * submenu from a stale dwell. Close edges route regardless - closing is
6680
+ * always safe. Absent: opens are not gated.
6681
+ */
6682
+ readonly rootOpen?: () => boolean;
6683
+ }
6684
+ /**
6685
+ * Route submenu hover intent through the focus stack. Watches the
6686
+ * {@link CngxMenuSubmenuLike.hoverIntent} signal of every submenu companion
6687
+ * registered anywhere in the menu tree and routes its edges through the same
6688
+ * primitives keyboard and click use: a settled hover opens via
6689
+ * {@link CngxMenuFocusStack.openSubmenuFor} (stack-tracked, first item
6690
+ * highlighted, keyboard-visible), a settled un-hover closes via
6691
+ * {@link CngxMenuFocusStack.closeSubmenuFor} (stack popped innermost-first).
6692
+ * The submenu companion itself owns NO open/close mechanics for hover - it
6693
+ * only derives intent.
6694
+ *
6695
+ * The walk covers the WHOLE registered tree, not just the open chain: a
6696
+ * submenu whose menu drops out of the chain (popped by a chain-correcting
6697
+ * open, cleared by `reset()`) still decays its intent afterwards, and that
6698
+ * false edge must be observed or the bookkeeping would go stale and fire a
6699
+ * spurious close when the menu re-enters the chain. Items in a hidden menu
6700
+ * cannot produce real pointer events, so the extra tracking never opens
6701
+ * anything on its own.
6702
+ *
6703
+ * Edge-driven, not state-reconciling: a keyboard-opened submenu whose intent
6704
+ * never settled `true` is left alone, so pointer-less operation is unchanged.
6705
+ *
6706
+ * Must run in an injection context (constructor / field initializer) - it
6707
+ * installs an `effect`. Every focus-stack owner wires it once:
6708
+ * `CngxMenuTrigger`, `CngxContextMenuTrigger`, and `CngxContextMenuFor`.
6709
+ *
6710
+ * @category common/interactive/menu
6711
+ * @wcag AA
6712
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-focus-stack.ts
6713
+ * @since 0.1.0
6714
+ * @relatedTo CngxMenuItemSubmenu, CngxMenuTrigger, CngxContextMenuTrigger, CNGX_MENU_FOCUS_STACK_FACTORY
6715
+ */
6716
+ declare function connectSubmenuHoverToFocusStack(deps: CngxSubmenuHoverRoutingDeps): void;
6717
+ /**
6718
+ * DI token carrying the {@link CngxMenuFocusStackFactory}. Defaults to
6719
+ * {@link createMenuFocusStack}; override via `providers` / `viewProviders`
6720
+ * to swap the submenu focus-stack model (non-W3C keyboard routing,
6721
+ * telemetry-wrapped traversal, test-doubled stack) without forking the
6722
+ * trigger.
6723
+ *
6724
+ * @category common/interactive/menu
6725
+ * @wcag AA
6726
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/menu-focus-stack.ts
6727
+ * @since 0.1.0
6728
+ * @relatedTo CngxMenuTrigger, CngxContextMenuTrigger, CNGX_MENU_NAV_STRATEGY
6729
+ */
6730
+ declare const CNGX_MENU_FOCUS_STACK_FACTORY: InjectionToken<CngxMenuFocusStackFactory>;
6731
+
6311
6732
  /**
6312
6733
  * Localised UI strings the menu announces or otherwise renders. English by
6313
6734
  * default; consumers override via {@link withAriaLabels}.
@@ -6332,7 +6753,12 @@ interface CngxMenuAriaLabels {
6332
6753
  interface CngxMenuConfig {
6333
6754
  readonly ariaLabels: CngxMenuAriaLabels;
6334
6755
  readonly typeaheadDebounce: number;
6756
+ /** Hover dwell (ms) before a hovered submenu parent opens. Default `0`. */
6335
6757
  readonly submenuOpenDelay: number;
6758
+ /**
6759
+ * Hover dwell (ms) before a hover-opened submenu closes once the pointer
6760
+ * has left both the parent item and the popover. Default `150`.
6761
+ */
6336
6762
  readonly submenuCloseDelay: number;
6337
6763
  readonly closeOnSelect: boolean;
6338
6764
  /**
@@ -6442,24 +6868,28 @@ declare function withAriaLabels(partial: Partial<CngxMenuAriaLabels>): CngxMenuC
6442
6868
  */
6443
6869
  declare function withTypeaheadDebounce(ms: number): CngxMenuConfigFeature;
6444
6870
  /**
6445
- * Override the delay between hovering a submenu parent and opening the
6446
- * submenu (milliseconds). Default: `0` (open immediately on activation).
6447
- * Reserved for hover-driven menubar implementations.
6871
+ * Override the hover dwell (milliseconds) before a hovered submenu parent
6872
+ * opens its submenu. Feeds the enter delay of the hover intent
6873
+ * `CngxMenuItemSubmenu` composes - a pointer that merely sweeps across the
6874
+ * parent never opens. Default: `0` (open on the first settled hover tick).
6875
+ * Keyboard and click open paths are unaffected.
6448
6876
  *
6449
6877
  * @category common/interactive/menu
6450
6878
  */
6451
6879
  declare function withSubmenuOpenDelay(ms: number): CngxMenuConfigFeature;
6452
6880
  /**
6453
- * Override the delay between leaving a submenu parent and closing the
6454
- * submenu (milliseconds). Default: `0`. Reserved for hover-driven
6455
- * menubar implementations.
6881
+ * Override the hover dwell (milliseconds) before a hover-opened submenu
6882
+ * closes after the pointer has left both the parent item and the submenu
6883
+ * popover. Feeds the leave delay of the hover intent `CngxMenuItemSubmenu`
6884
+ * composes - the grace window for crossing the gap between parent and
6885
+ * popover. Default: `150`.
6456
6886
  *
6457
6887
  * @category common/interactive/menu
6458
6888
  */
6459
6889
  declare function withSubmenuCloseDelay(ms: number): CngxMenuConfigFeature;
6460
6890
  /**
6461
6891
  * Whether activating a leaf item closes the menu. Default: `true`
6462
- * (menu semantics — distinct from listbox/combobox which stay open).
6892
+ * (menu semantics - distinct from listbox/combobox which stay open).
6463
6893
  *
6464
6894
  * @category common/interactive/menu
6465
6895
  */
@@ -6738,13 +7168,13 @@ interface CngxMenuAnnouncerLike {
6738
7168
  */
6739
7169
  type CngxMenuAnnouncerFactory = () => CngxMenuAnnouncerLike;
6740
7170
  /**
6741
- * Global polite live-region announcer for the menu family. Maintains a
6742
- * single hidden `aria-live="polite"` element per document and announces
6743
- * menu state transitions (submenu open/close, item activation).
7171
+ * Global polite live-region announcer for the menu family. Delegates to
7172
+ * the shared {@link CngxLiveAnnouncer}, announcing menu state transitions
7173
+ * (submenu open/close, item activation) through its polite region.
6744
7174
  *
6745
7175
  * Scoped `providedIn: 'root'` so every menu in the app shares the same
6746
- * region; messages are de-duped via a short clear-then-set cycle so
6747
- * screen readers treat repeated identical messages as fresh events.
7176
+ * region; the announcer clears then re-sets one frame later so screen
7177
+ * readers treat repeated identical messages as fresh events.
6748
7178
  *
6749
7179
  * Default factory output for {@link CNGX_MENU_ANNOUNCER_FACTORY}.
6750
7180
  * Consumers obtain the announcer via the factory token, never by
@@ -6757,16 +7187,13 @@ type CngxMenuAnnouncerFactory = () => CngxMenuAnnouncerLike;
6757
7187
  * @relatedTo CngxMenu, CngxMenuTrigger, CngxMenuItemSubmenu
6758
7188
  */
6759
7189
  declare class CngxMenuAnnouncer implements CngxMenuAnnouncerLike {
6760
- private readonly doc;
6761
- private politeElement;
6762
- private clearTimer;
7190
+ private readonly announcer;
6763
7191
  /**
6764
7192
  * Announce a message via the polite live region. Empty messages are
6765
7193
  * ignored. The region is cleared ~16ms before being repopulated so AT
6766
7194
  * picks up identical-text repeats as a new event.
6767
7195
  */
6768
7196
  announce(message: string): void;
6769
- private ensureRegion;
6770
7197
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuAnnouncer, never>;
6771
7198
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<CngxMenuAnnouncer>;
6772
7199
  }
@@ -6813,8 +7240,14 @@ declare const CNGX_MENU_ANNOUNCER_FACTORY: InjectionToken<CngxMenuAnnouncerFacto
6813
7240
  */
6814
7241
  declare function injectMenuAnnouncer(): CngxMenuAnnouncerLike;
6815
7242
 
6816
- /** See `CngxListboxTrigger` - same structural contract. */
6817
- interface PopoverController$1 extends CngxMenuDismissPopoverRef {
7243
+ /**
7244
+ * Popover surface the context-menu core drives at pointer coordinates.
7245
+ * Typed structurally to keep `@cngx/common/interactive` free of a
7246
+ * `@cngx/common/popover` import (menu-accepted-debt §7).
7247
+ *
7248
+ * @category common/interactive/menu
7249
+ */
7250
+ interface CngxContextMenuTriggerPopoverRef extends CngxMenuDismissPopoverRef {
6818
7251
  show(): void;
6819
7252
  readonly anchorElement: {
6820
7253
  set(el: HTMLElement | null): void;
@@ -6825,6 +7258,123 @@ interface PopoverController$1 extends CngxMenuDismissPopoverRef {
6825
7258
  */
6826
7259
  readonly id: () => string;
6827
7260
  }
7261
+ /**
7262
+ * Decision returned by the {@link CngxContextMenuTriggerCoreDeps.resolveOpen}
7263
+ * seam. `open: false` leaves the native context menu untouched; `open: true`
7264
+ * carries the per-open context handed to `commitContext`.
7265
+ *
7266
+ * @category common/interactive/menu
7267
+ */
7268
+ type CngxContextMenuOpenDecision = {
7269
+ readonly open: false;
7270
+ } | {
7271
+ readonly open: true;
7272
+ readonly context: unknown;
7273
+ };
7274
+ /**
7275
+ * Dependencies for {@link createContextMenuTriggerCore}. The caller injects
7276
+ * the DI-backed collaborators (dismiss factory, announcer, config) and
7277
+ * passes them in, keeping the core a pure factory.
7278
+ *
7279
+ * @category common/interactive/menu
7280
+ */
7281
+ interface CngxContextMenuTriggerCoreDeps {
7282
+ /** Menu the popover wraps. */
7283
+ readonly menu: () => CngxMenuHost;
7284
+ /** Popover panel opened at pointer coordinates. */
7285
+ readonly popover: () => CngxContextMenuTriggerPopoverRef;
7286
+ /** Trigger host element - anchor for Shift+F10 and the dismiss filter. */
7287
+ readonly hostElement: HTMLElement;
7288
+ /** Document used for the transient anchor and focus capture. */
7289
+ readonly document: Document;
7290
+ /** Menu config supplying dismissal aria-labels. */
7291
+ readonly menuConfig: CngxMenuConfig;
7292
+ /** Dismiss-handler factory (from `CNGX_MENU_DISMISS_HANDLER_FACTORY`). */
7293
+ readonly dismissFactory: CngxMenuDismissHandlerFactory;
7294
+ /** Announcer for AT dismissal messages. */
7295
+ readonly announcer: CngxMenuAnnouncerLike;
7296
+ /** Keyboard policy for ArrowRight/ArrowLeft submenu routing. */
7297
+ readonly nav: CngxMenuNavStrategy;
7298
+ /**
7299
+ * Document writing direction. Resolves the physical arrow to its
7300
+ * inline-logical intent at the dispatch site, so under `rtl` physical
7301
+ * ArrowLeft opens the submenu and physical ArrowRight pops it.
7302
+ */
7303
+ readonly direction: Signal<CngxDirection>;
7304
+ /** Focus-stack factory (from `CNGX_MENU_FOCUS_STACK_FACTORY`). */
7305
+ readonly focusStackFactory: CngxMenuFocusStackFactory;
7306
+ /**
7307
+ * Veto/datum seam. Evaluated as the FIRST thing in the `contextmenu`
7308
+ * handler, BEFORE `preventDefault()`. `{ open: false }` leaves the native
7309
+ * menu untouched (no `preventDefault`, no anchor, no open).
7310
+ * `{ open: true, context }` prevents default, hands `context` to
7311
+ * {@link commitContext}, then opens. Defaults to always-open with
7312
+ * `undefined` context, so a consumer that omits it keeps the plain
7313
+ * right-click-always-opens behaviour.
7314
+ */
7315
+ readonly resolveOpen?: (event: MouseEvent) => CngxContextMenuOpenDecision;
7316
+ /** Receives the resolved context on a successful open. No-op by default. */
7317
+ readonly commitContext?: (context: unknown) => void;
7318
+ }
7319
+ /**
7320
+ * Shared context-menu trigger core. Owns the `contextmenu` / `Shift+F10`
7321
+ * handling, the transient pointer-anchor lifecycle, the dismiss binding,
7322
+ * announcer calls, and focus save/restore. Consumed by both
7323
+ * `CngxContextMenuTrigger` (directive) and `CngxContextMenuFor` (organism
7324
+ * trigger) so the two share one implementation without inheritance.
7325
+ *
7326
+ * @category common/interactive/menu
7327
+ */
7328
+ interface CngxContextMenuTriggerCore {
7329
+ /** The dismissal source that closed the menu most recently. */
7330
+ readonly lastDismissSource: Signal<CngxMenuDismissSource | null>;
7331
+ /**
7332
+ * The core's submenu focus-stack model. Exposed for host-side wiring the
7333
+ * pure factory cannot install itself - the DI hosts pass it to
7334
+ * `connectSubmenuHoverToFocusStack` (an `effect`, so it needs their
7335
+ * injection context) to route submenu hover intent through the stack.
7336
+ */
7337
+ readonly focusStack: CngxMenuFocusStack;
7338
+ /** `contextmenu` host handler - consults `resolveOpen` before opening. */
7339
+ handleContextMenu(event: MouseEvent): void;
7340
+ /** Keydown host handler - `Shift+F10` opens at the host centre. */
7341
+ handleKeydown(event: KeyboardEvent): void;
7342
+ /**
7343
+ * Open the submenu of the effective menu's active item through the focus
7344
+ * stack. No-op when the active item is a leaf (or nothing is active) and
7345
+ * idempotent when that submenu is already open. The DI host wires the
7346
+ * surrounding menu's `CngxActiveDescendant.activated` output to this method
7347
+ * so pointer click and Enter/Space open a submenu parent deterministically,
7348
+ * off the `activated` event rather than a forwarded keydown that races the
7349
+ * AD's own listener. No `activated` subscription lives inside this pure
7350
+ * factory - only the imperative open.
7351
+ */
7352
+ openActiveSubmenu(): void;
7353
+ /**
7354
+ * Record that the active item's submenu is already open, pushing it onto
7355
+ * the focus stack WITHOUT re-opening it. Safety net for opens the stack did
7356
+ * not perform itself - the organism panel forwards it from the item's
7357
+ * `openAsSubmenu` terminal, covering programmatic opens; for hover and
7358
+ * click the stack already opened the submenu and this is an idempotent
7359
+ * no-op. No-op on a leaf.
7360
+ */
7361
+ noteActiveSubmenuOpened(): void;
7362
+ /** Drive from the directive's `isOpen` effect (inside `untracked`). */
7363
+ syncOpenState(open: boolean): void;
7364
+ /** Teardown - call from the directive's `DestroyRef.onDestroy`. */
7365
+ destroy(): void;
7366
+ }
7367
+ /**
7368
+ * Build a {@link CngxContextMenuTriggerCore} from its dependencies. Pure
7369
+ * factory - no Angular DI; the caller resolves collaborators and passes
7370
+ * them in.
7371
+ *
7372
+ * @category common/interactive/menu
7373
+ * @github https://github.com/cngxjs/cngx/blob/main/projects/common/interactive/menu/context-menu-trigger-core.ts
7374
+ * @since 0.1.0
7375
+ */
7376
+ declare function createContextMenuTriggerCore(deps: CngxContextMenuTriggerCoreDeps): CngxContextMenuTriggerCore;
7377
+
6828
7378
  /**
6829
7379
  * Opens a `CngxMenu`-bearing popover at pointer coordinates in response to
6830
7380
  * `contextmenu` (right-click) or `Shift+F10` (keyboard equivalent).
@@ -6836,6 +7386,13 @@ interface PopoverController$1 extends CngxMenuDismissPopoverRef {
6836
7386
  * `[exclusive]="true"` (default) so that opening this menu light-dismisses
6837
7387
  * any other popover.
6838
7388
  *
7389
+ * A thin shell over {@link createContextMenuTriggerCore}: the core owns the
7390
+ * `contextmenu` / `Shift+F10` handling, the transient pointer anchor, the
7391
+ * dismiss binding, and focus save/restore, so `CngxContextMenuFor`
7392
+ * (`@cngx/ui/context-menu`) can reuse the same implementation without
7393
+ * inheritance. This directive supplies no `resolveOpen` seam, so it keeps
7394
+ * the always-open, always-`preventDefault` behaviour.
7395
+ *
6839
7396
  * Anchoring uses a transient zero-size DOM element positioned at the
6840
7397
  * pointer coords, set on the popover's `anchorElement` signal - virtual
6841
7398
  * `getBoundingClientRect` objects are not yet supported as anchors, so
@@ -6871,16 +7428,10 @@ declare class CngxContextMenuTrigger {
6871
7428
  /** Menu controlled by this trigger. */
6872
7429
  readonly menu: _angular_core.InputSignal<CngxMenuHost>;
6873
7430
  /** Popover that wraps the menu panel. */
6874
- readonly popover: _angular_core.InputSignal<PopoverController$1>;
7431
+ readonly popover: _angular_core.InputSignal<CngxContextMenuTriggerPopoverRef>;
6875
7432
  /** Mirrors `popover.isVisible()`. */
6876
7433
  readonly isOpen: _angular_core.Signal<boolean>;
6877
- private readonly doc;
6878
- private readonly hostElRef;
6879
- private readonly menuConfig;
6880
- private readonly announcer;
6881
- private readonly dismissBinding;
6882
- private virtualAnchor;
6883
- private savedFocus;
7434
+ private readonly core;
6884
7435
  /**
6885
7436
  * The dismissal source that closed the menu most recently. `null`
6886
7437
  * before the first close. Surface for demos, telemetry, and audit
@@ -6890,10 +7441,6 @@ declare class CngxContextMenuTrigger {
6890
7441
  constructor();
6891
7442
  protected handleContextMenu(event: MouseEvent): void;
6892
7443
  protected handleKeydown(event: KeyboardEvent): void;
6893
- private openAt;
6894
- private restoreFocus;
6895
- private ensureVirtualAnchor;
6896
- private removeVirtualAnchor;
6897
7444
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxContextMenuTrigger, never>;
6898
7445
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxContextMenuTrigger, "[cngxContextMenuTrigger]", ["cngxContextMenuTrigger"], { "menu": { "alias": "cngxContextMenuTrigger"; "required": true; "isSignal": true; }; "popover": { "alias": "popover"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
6899
7446
  }
@@ -6950,7 +7497,9 @@ interface PopoverController extends CngxMenuDismissPopoverRef {
6950
7497
  * its inner `CngxMenu` is pushed onto the stack so subsequent ArrowDown /
6951
7498
  * Up / Home / End / Enter target the submenu's items via its own
6952
7499
  * `CngxActiveDescendant`. ArrowLeft / Escape pop the stack and close the
6953
- * top submenu.
7500
+ * top submenu. The stack model is supplied by
7501
+ * {@link CNGX_MENU_FOCUS_STACK_FACTORY}, so it is shared verbatim with the
7502
+ * context-menu trigger core and swappable enterprise-wide.
6954
7503
  *
6955
7504
  * ### Focus model
6956
7505
  *
@@ -6991,25 +7540,18 @@ declare class CngxMenuTrigger {
6991
7540
  readonly popover: _angular_core.InputSignal<PopoverController>;
6992
7541
  /** Mirrors `CngxPopover.isVisible()`. */
6993
7542
  readonly isOpen: _angular_core.Signal<boolean>;
6994
- private readonly nav;
6995
- /**
6996
- * Active submenu chain - empty when only the outer menu is open. Each
6997
- * entry is the `inner` host of an open submenu, top entry being the
6998
- * deepest. Keystrokes target the top entry's AD.
6999
- */
7000
- private readonly submenuStack;
7001
- /**
7002
- * Focused element captured at popover-open time. Restored after close via
7003
- * `queueMicrotask` so the focus write happens after the popover-close DOM
7004
- * mutation settles. Captured reactively via the `isOpen` effect below so
7005
- * mouse-driven open paths (consumer's `(click)="pop.toggle()"`) get the
7006
- * same treatment as keyboard-driven open paths.
7007
- */
7008
- private savedFocus;
7009
7543
  private readonly doc;
7544
+ private readonly direction;
7010
7545
  private readonly hostElRef;
7011
7546
  private readonly menuConfig;
7012
7547
  private readonly announcer;
7548
+ /**
7549
+ * Submenu focus-stack model - the active submenu chain, the saved-focus
7550
+ * slot restored after close, and the ArrowRight / ArrowLeft / Escape /
7551
+ * activation routing that consults `CNGX_MENU_NAV_STRATEGY`. Shared with
7552
+ * the context-menu trigger core via {@link CNGX_MENU_FOCUS_STACK_FACTORY}.
7553
+ */
7554
+ private readonly focusStack;
7013
7555
  private readonly dismissBinding;
7014
7556
  /**
7015
7557
  * The dismissal source that closed the menu most recently. `null`
@@ -7018,16 +7560,8 @@ declare class CngxMenuTrigger {
7018
7560
  */
7019
7561
  readonly lastDismissSource: _angular_core.Signal<_cngx_common_interactive.CngxMenuDismissSource | null>;
7020
7562
  constructor();
7021
- private effectiveMenu;
7563
+ private openActiveSubmenu;
7022
7564
  protected handleKeydown(event: KeyboardEvent): void;
7023
- private handleArrowRight;
7024
- private handleArrowLeft;
7025
- private handleActivation;
7026
- private findSubmenu;
7027
- private openSubmenu;
7028
- private popSubmenu;
7029
- private closeAll;
7030
- private restoreFocus;
7031
7565
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxMenuTrigger, never>;
7032
7566
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxMenuTrigger, "[cngxMenuTrigger]", ["cngxMenuTrigger"], { "menu": { "alias": "cngxMenuTrigger"; "required": true; "isSignal": true; }; "popover": { "alias": "popover"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
7033
7567
  }
@@ -7293,7 +7827,7 @@ declare class CngxErrorSource {
7293
7827
  * toggles. The span carries `role="status"` (or `role="alert"` when
7294
7828
  * politeness is `'assertive'`), `aria-live`, `aria-atomic="true"`, and
7295
7829
  * `aria-relevant="additions text"`. Visually-hidden styling is applied
7296
- * inline via `--cngx-sr-only-*` CSS custom properties — no global
7830
+ * inline via `--cngx-sr-only-*` CSS custom properties - no global
7297
7831
  * stylesheet required.
7298
7832
  *
7299
7833
  * Set `[autoAnnounce]="false"` to take ownership of the live region in
@@ -7376,12 +7910,12 @@ declare class CngxErrorAggregator implements CngxErrorAggregatorContract {
7376
7910
  * inputs auto-register here when the registry is provided in the host
7377
7911
  * environment (via {@link provideErrorRegistry}, ships in commit 3).
7378
7912
  *
7379
- * Not `providedIn: 'root'` — consumers opt in by including
7913
+ * Not `providedIn: 'root'` - consumers opt in by including
7380
7914
  * `provideErrorRegistry()` in their `bootstrapApplication` providers. When
7381
7915
  * the registry is absent, the directives skip registration and keep their
7382
7916
  * pure DOM behaviour.
7383
7917
  *
7384
- * @internal Staged API — single-consumer.
7918
+ * @internal Staged API - single-consumer.
7385
7919
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7386
7920
  * and collapse plan.
7387
7921
  */
@@ -7412,7 +7946,7 @@ declare class CngxErrorRegistry {
7412
7946
  * registered instance.
7413
7947
  *
7414
7948
  * To perform a true swap, call `unregisterScope(name)` first, then
7415
- * `registerScope(name, newScope)` — the unregister cycle changes the
7949
+ * `registerScope(name, newScope)` - the unregister cycle changes the
7416
7950
  * key set, the equal fn emits, and the new instance becomes the live
7417
7951
  * value.
7418
7952
  */
@@ -7453,7 +7987,7 @@ declare class CngxErrorRegistry {
7453
7987
  * Creates a programmatic {@link CngxErrorScopeContract}, optionally
7454
7988
  * registered under `name` in the ambient {@link CngxErrorRegistry}.
7455
7989
  *
7456
- * Use when an error scope must exist without a DOM host — e.g. inside a
7990
+ * Use when an error scope must exist without a DOM host - e.g. inside a
7457
7991
  * route guard, an HTTP interceptor, or a service that drives error
7458
7992
  * visibility programmatically. When `name` is set and a registry is
7459
7993
  * provided in the host environment, the scope auto-registers and
@@ -7462,7 +7996,7 @@ declare class CngxErrorRegistry {
7462
7996
  * Must be called in an injection context (constructor, factory provider,
7463
7997
  * `runInInjectionContext`).
7464
7998
  *
7465
- * @internal Staged API — single-consumer.
7999
+ * @internal Staged API - single-consumer.
7466
8000
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7467
8001
  * and collapse plan.
7468
8002
  */
@@ -7501,7 +8035,7 @@ declare function injectErrorScope(name?: string): CngxErrorScopeContract;
7501
8035
  declare function injectErrorAggregator(name?: string, sources?: Record<string, Signal<boolean>>, scope?: CngxErrorScopeContract, labels?: Record<string, string>): CngxErrorAggregatorContract;
7502
8036
 
7503
8037
  /**
7504
- * @internal Staged API — single-consumer.
8038
+ * @internal Staged API - single-consumer.
7505
8039
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7506
8040
  * and collapse plan.
7507
8041
  */
@@ -7510,7 +8044,7 @@ interface _ErrorRegistryConfig {
7510
8044
  revealOnNavigate?: boolean;
7511
8045
  }
7512
8046
  /**
7513
- * @internal Staged API — single-consumer.
8047
+ * @internal Staged API - single-consumer.
7514
8048
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7515
8049
  * and collapse plan.
7516
8050
  */
@@ -7537,7 +8071,7 @@ interface ErrorRegistryFeature {
7537
8071
  * });
7538
8072
  * ```
7539
8073
  *
7540
- * @internal Staged API — single-consumer.
8074
+ * @internal Staged API - single-consumer.
7541
8075
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7542
8076
  * and collapse plan.
7543
8077
  */
@@ -7545,7 +8079,7 @@ declare function provideErrorRegistry(...features: ErrorRegistryFeature[]): Envi
7545
8079
  /**
7546
8080
  * Reveals every registered scope on any DOM `submit` event.
7547
8081
  *
7548
- * **Coarse-grained — affects every registered scope, every form.** The
8082
+ * **Coarse-grained - affects every registered scope, every form.** The
7549
8083
  * feature installs a capture-phase document listener that calls
7550
8084
  * `registry.revealAll()` on any submit anywhere in the document, even
7551
8085
  * when the submit fires from a form unrelated to the scope of interest.
@@ -7554,10 +8088,10 @@ declare function provideErrorRegistry(...features: ErrorRegistryFeature[]): Envi
7554
8088
  *
7555
8089
  * For finer-grained reveals (per-form, per-flow), skip this feature and
7556
8090
  * call `registry.reveal(name)` from the consumer's submit handler
7557
- * instead — the scope-name registration path stays available without
8091
+ * instead - the scope-name registration path stays available without
7558
8092
  * the global listener.
7559
8093
  *
7560
- * @internal Staged API — single-consumer.
8094
+ * @internal Staged API - single-consumer.
7561
8095
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7562
8096
  * and collapse plan.
7563
8097
  */
@@ -7575,11 +8109,11 @@ declare function withGlobalRevealOnSubmit(): ErrorRegistryFeature;
7575
8109
  * the common pattern (reveal-all on attempted navigation) but surface
7576
8110
  * the implication when wiring a guard that cancels based on form errors.
7577
8111
  *
7578
- * @internal Staged API — single-consumer.
8112
+ * @internal Staged API - single-consumer.
7579
8113
  * See form-primitives-accepted-debt.md §A for the re-evaluation trigger
7580
8114
  * and collapse plan.
7581
8115
  */
7582
8116
  declare function withRevealOnNavigate(): ErrorRegistryFeature;
7583
8117
 
7584
- export { CNGX_ACCORDION, CNGX_BREADCRUMB, CNGX_BREADCRUMB_COLLAPSE_STRATEGY, CNGX_BUTTON_MULTI_TOGGLE_GROUP, CNGX_BUTTON_TOGGLE_GROUP, CNGX_CHIP_GROUP_HOST, CNGX_CHIP_STRIP_ROVING_FACTORY, CNGX_CLOSE_ICON, CNGX_CONTROL_VALUE, CNGX_ERROR_AGGREGATOR, CNGX_ERROR_SCOPE, CNGX_HIERARCHICAL_NAV_STRATEGY, CNGX_HOVER_INTENT_DEFAULTS, CNGX_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_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_SLIDER_RANGE, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAccordion, CngxAccordionPanel, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, CngxHoverIntent, CngxHoverable, CngxKeyboardShortcut, CngxListbox, CngxListboxSearch, CngxListboxTrigger, CngxLongPress, CngxMenu, CngxMenuAnnouncer, CngxMenuGroup, CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemIcon, CngxMenuItemKbd, CngxMenuItemLabel, CngxMenuItemRadio, CngxMenuItemSubmenu, CngxMenuItemSuffix, CngxMenuSeparator, CngxMenuTrigger, CngxMultiChipGroup, CngxNavBadge, CngxNavGroup, CngxNavGroupRegistry, CngxNavLabel, CngxNavLink, CngxOption, CngxOptionGroup, CngxPending, CngxPressRipple, CngxPressable, CngxRadio, CngxRadioGroup, CngxRangeSlider, CngxRangeSliderTrack, CngxReorder, CngxRipple, CngxSearch, CngxSlider, CngxSliderThumb, CngxSliderTrack, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle, DEFAULT_BREADCRUMB_WIDTH_TIERS, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, createAccordionKeyboardNav, createBreadcrumbCollapse, createChipStripRoving, createMenuAnnouncer, createMenuDismissHandler, createMenuRadioController, createMenuTriggerDismissBinding, createSliderCore, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectMenuAnnouncer, injectMenuConfig, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideTreeConfig, provideTreeConfigAt, reflectAsyncDisplayStatus, resolveBreadcrumbTier, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withDismissOnBlur, withDismissOnOutsideClick, withDismissOnScroll, withGlobalRevealOnSubmit, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
7585
- export type { AsyncAction, CngxAccordionHeaderHandle, CngxAccordionHost, CngxAccordionKeyboardNav, CngxAccordionKeyboardNavHost, CngxAccordionKeyboardNavOptions, CngxAsyncDisplayStatus, CngxBreadcrumbCollapseStrategy, CngxBreadcrumbHost, CngxBreadcrumbWidthTier, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxHoverIntentDefaults, 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, CngxSliderCore, CngxSliderCoreOptions, CngxSliderRangeHost, CngxSliderThumbBounds, CngxSliderThumbPosition, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeAxis, SwipeDirection };
8118
+ export { CNGX_ACCORDION, CNGX_BREADCRUMB, CNGX_BREADCRUMB_COLLAPSE_STRATEGY, CNGX_BUTTON_MULTI_TOGGLE_GROUP, CNGX_BUTTON_TOGGLE_GROUP, CNGX_CHIP_GROUP_HOST, CNGX_CHIP_STRIP_ROVING_FACTORY, CNGX_CLOSE_ICON, CNGX_CONTROL_VALUE, CNGX_ERROR_AGGREGATOR, CNGX_ERROR_SCOPE, CNGX_HIERARCHICAL_NAV_STRATEGY, CNGX_HOVER_INTENT_DEFAULTS, CNGX_MENU_ANNOUNCER_FACTORY, CNGX_MENU_CONFIG, CNGX_MENU_DISMISS_HANDLER_FACTORY, CNGX_MENU_FOCUS_STACK_FACTORY, CNGX_MENU_HOST, CNGX_MENU_NAV_STRATEGY, CNGX_MENU_RADIO_GROUP, CNGX_MENU_SUBMENU_ITEM, CNGX_MENU_SUBMENU_WIRING, CNGX_NAV_CONFIG, CNGX_OPTION_CONTAINER, CNGX_OPTION_FILTER_HOST, CNGX_OPTION_INTERACTION_HOST, CNGX_OPTION_STATUS_HOST, CNGX_RADIO_GROUP, CNGX_SLIDER_RANGE, CNGX_SUBMENU_TRY_FALLBACKS, CNGX_TREE_CONFIG, CNGX_TREE_CONTROLLER_FACTORY, CngxAccordion, CngxAccordionPanel, CngxAsyncClick, CngxAsyncStatus, CngxBeforeUnload, CngxBreadcrumb, CngxBreadcrumbItem, CngxBreadcrumbSeparator, CngxButtonMultiToggleGroup, CngxButtonToggle, CngxButtonToggleGroup, CngxCheckbox, CngxCheckboxGroup, CngxChipGroup, CngxChipInGroup, CngxChipInput, CngxChipInteraction, CngxClickOutside, CngxCloseButton, CngxContextMenuTrigger, CngxCopyBlock, CngxCopyText, CngxDisclosure, CngxErrorAggregator, CngxErrorRegistry, CngxErrorScope, CngxErrorSource, CngxErrorState, CngxExpandable, CngxFailed, CngxHierarchicalNav, CngxHoverIntent, CngxHoverable, CngxKeyboardShortcut, CngxListbox, CngxListboxSearch, CngxListboxTrigger, CngxLongPress, CngxMenu, CngxMenuAnnouncer, CngxMenuGroup, CngxMenuItem, CngxMenuItemCheckbox, CngxMenuItemIcon, CngxMenuItemKbd, CngxMenuItemLabel, CngxMenuItemRadio, CngxMenuItemSubmenu, CngxMenuItemSuffix, CngxMenuSeparator, CngxMenuTrigger, CngxMultiChipGroup, CngxNavBadge, CngxNavGroup, CngxNavGroupRegistry, CngxNavLabel, CngxNavLink, CngxOption, CngxOptionGroup, CngxPending, CngxPressRipple, CngxPressable, CngxRadio, CngxRadioGroup, CngxRangeSlider, CngxRangeSliderTrack, CngxReorder, CngxRipple, CngxSearch, CngxSlider, CngxSliderThumb, CngxSliderTrack, CngxSpeak, CngxSucceeded, CngxSwipe, CngxSwipeDismiss, CngxToggle, DEFAULT_BREADCRUMB_WIDTH_TIERS, DEFAULT_MENU_CONFIG, canDeactivateWhenClean, connectSubmenuHoverToFocusStack, createAccordionKeyboardNav, createBreadcrumbCollapse, createChipStripRoving, createContextMenuTriggerCore, createMenuAnnouncer, createMenuDismissHandler, createMenuFocusStack, createMenuRadioController, createMenuTriggerDismissBinding, createSliderCore, createTreeAdItems, createTreeController, createW3CMenuStrategy, createW3CTreeStrategy, injectErrorAggregator, injectErrorScope, injectMenuAnnouncer, injectMenuConfig, injectNavConfig, injectTreeConfig, optimistic, provideCngxMenu, provideErrorRegistry, provideMenuConfig, provideMenuConfigAt, provideNavConfig, provideTreeConfig, provideTreeConfigAt, reflectAsyncDisplayStatus, resolveBreadcrumbTier, withAriaLabels, withCloseOnSelect, withDefaultInitiallyExpanded, withDefaultKeyFn, withDefaultLabelFn, withDefaultNodeIdFn, withDismissOnBlur, withDismissOnOutsideClick, withDismissOnScroll, withGlobalRevealOnSubmit, withNavAnimation, withNavIndent, withRetry, withRevealOnNavigate, withSingleAccordion, withSubmenuCloseDelay, withSubmenuOpenDelay, withTreeCacheLimit, withTypeaheadDebounce };
8119
+ export type { AsyncAction, CngxAccordionHeaderHandle, CngxAccordionHost, CngxAccordionKeyboardNav, CngxAccordionKeyboardNavHost, CngxAccordionKeyboardNavOptions, CngxAsyncDisplayStatus, CngxBreadcrumbCollapseStrategy, CngxBreadcrumbHost, CngxBreadcrumbWidthTier, CngxButtonMultiToggleGroupContract, CngxButtonToggleGroupContract, CngxChipGroupHost, CngxChipStripRovingController, CngxChipStripRovingFactory, CngxChipStripRovingOptions, CngxContextMenuOpenDecision, CngxContextMenuTriggerCore, CngxContextMenuTriggerCoreDeps, CngxContextMenuTriggerPopoverRef, CngxControlValue, CngxErrorAggregatorContract, CngxErrorAggregatorSourceEntry, CngxErrorScopeContract, CngxHierarchicalNavAction, CngxHierarchicalNavContext, CngxHierarchicalNavStrategy, CngxHoverIntentDefaults, CngxMenuAnnouncerFactory, CngxMenuAnnouncerLike, CngxMenuAriaLabels, CngxMenuConfig, CngxMenuConfigFeature, CngxMenuDismissHandler, CngxMenuDismissHandlerFactory, CngxMenuDismissHandlerOptions, CngxMenuDismissPopoverRef, CngxMenuDismissSource, CngxMenuFeature, CngxMenuFocusStack, CngxMenuFocusStackDeps, CngxMenuFocusStackFactory, CngxMenuFocusStackPopoverRef, CngxMenuHost, CngxMenuNavAction, CngxMenuNavContext, CngxMenuNavStrategy, CngxMenuRadioGroup, CngxMenuRadioGroupFactory, CngxMenuSubmenuLike, CngxMenuSubmenuPopoverRef, CngxMenuSubmenuWiring, CngxMenuTriggerDismissBinding, CngxMenuTriggerDismissBindingOptions, CngxNavConfig, CngxOptionContainer, CngxOptionContainerGroup, CngxOptionContainerOption, CngxOptionFilterHost, CngxOptionInteractionHost, CngxOptionStatus, CngxOptionStatusHost, CngxRadioGroupContract, CngxRadioRegistration, CngxReorderEvent, CngxReorderModifier, CngxSliderCore, CngxSliderCoreOptions, CngxSliderRangeHost, CngxSliderThumbBounds, CngxSliderThumbPosition, CngxSubmenuHoverRoutingDeps, CngxTreeConfig, CngxTreeConfigFeature, CngxTreeController, CngxTreeControllerFactory, CngxTreeControllerOptions, ErrorRegistryFeature, ListboxMatchFn, NavBadgeVariant, NavConfigFeature, OptimisticState, RetryConfig, RetryState, SwipeAxis, SwipeDirection };