@cngx/ui 0.1.0-rc.6 → 0.1.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/README.md +112 -1
  2. package/a11y/README.md +87 -0
  3. package/accordion/README.md +4 -2
  4. package/breadcrumb/README.md +262 -0
  5. package/collection/README.md +6 -0
  6. package/command-palette/README.md +224 -0
  7. package/context-menu/README.md +98 -0
  8. package/data-grid-accordion/README.md +103 -2
  9. package/feedback/README.md +42 -0
  10. package/fesm2022/cngx-ui-a11y.mjs +452 -0
  11. package/fesm2022/cngx-ui-a11y.mjs.map +1 -0
  12. package/fesm2022/cngx-ui-accordion.mjs +116 -38
  13. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  14. package/fesm2022/cngx-ui-action-button.mjs +115 -50
  15. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  16. package/fesm2022/cngx-ui-breadcrumb.mjs +181 -96
  17. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/cngx-ui-chart-panel.mjs +586 -0
  19. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -0
  20. package/fesm2022/cngx-ui-collection.mjs +207 -66
  21. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  22. package/fesm2022/cngx-ui-command-palette.mjs +1281 -0
  23. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -0
  24. package/fesm2022/cngx-ui-context-menu.mjs +857 -0
  25. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -0
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs +498 -111
  27. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  28. package/fesm2022/cngx-ui-empty-state.mjs +16 -6
  29. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  30. package/fesm2022/cngx-ui-feedback.mjs +1095 -521
  31. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  32. package/fesm2022/cngx-ui-layout.mjs +18 -9
  33. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  34. package/fesm2022/cngx-ui-mat-accordion.mjs +84 -16
  35. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  36. package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
  37. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  38. package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
  39. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  40. package/fesm2022/cngx-ui-mat-tabs.mjs +370 -203
  41. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  42. package/fesm2022/cngx-ui-overlay.mjs +69 -13
  43. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  44. package/fesm2022/cngx-ui-paginator.mjs +501 -182
  45. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  46. package/fesm2022/cngx-ui-sidenav.mjs +327 -106
  47. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  48. package/fesm2022/cngx-ui-skeleton.mjs +22 -21
  49. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  50. package/fesm2022/cngx-ui-speak.mjs +107 -8
  51. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  52. package/fesm2022/cngx-ui-stat-card.mjs +718 -0
  53. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -0
  54. package/fesm2022/cngx-ui-stepper.mjs +217 -76
  55. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  56. package/fesm2022/cngx-ui-tabs.mjs +40 -19
  57. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  58. package/fesm2022/cngx-ui-timeline.mjs +548 -0
  59. package/fesm2022/cngx-ui-timeline.mjs.map +1 -0
  60. package/fesm2022/cngx-ui-toc.mjs +748 -0
  61. package/fesm2022/cngx-ui-toc.mjs.map +1 -0
  62. package/fesm2022/cngx-ui.mjs +16 -21
  63. package/fesm2022/cngx-ui.mjs.map +1 -1
  64. package/mat-accordion/README.md +1 -1
  65. package/mat-paginator/README.md +9 -2
  66. package/mat-tabs/styles/mat-tabs.css +29 -27
  67. package/overlay/README.md +9 -4
  68. package/package.json +32 -1
  69. package/paginator/README.md +8 -4
  70. package/sidenav/README.md +33 -11
  71. package/skeleton/README.md +2 -0
  72. package/speak/README.md +3 -2
  73. package/stepper/README.md +15 -3
  74. package/timeline/README.md +350 -0
  75. package/toc/README.md +186 -0
  76. package/types/cngx-ui-a11y.d.ts +394 -0
  77. package/types/cngx-ui-accordion.d.ts +100 -30
  78. package/types/cngx-ui-action-button.d.ts +47 -3
  79. package/types/cngx-ui-breadcrumb.d.ts +159 -58
  80. package/types/cngx-ui-chart-panel.d.ts +382 -0
  81. package/types/cngx-ui-collection.d.ts +159 -58
  82. package/types/cngx-ui-command-palette.d.ts +565 -0
  83. package/types/cngx-ui-context-menu.d.ts +559 -0
  84. package/types/cngx-ui-data-grid-accordion.d.ts +344 -51
  85. package/types/cngx-ui-empty-state.d.ts +9 -2
  86. package/types/cngx-ui-feedback.d.ts +664 -73
  87. package/types/cngx-ui-layout.d.ts +8 -3
  88. package/types/cngx-ui-mat-accordion.d.ts +32 -4
  89. package/types/cngx-ui-mat-paginator.d.ts +37 -8
  90. package/types/cngx-ui-mat-stepper.d.ts +23 -11
  91. package/types/cngx-ui-mat-tabs.d.ts +218 -23
  92. package/types/cngx-ui-overlay.d.ts +56 -10
  93. package/types/cngx-ui-paginator.d.ts +416 -132
  94. package/types/cngx-ui-sidenav.d.ts +248 -74
  95. package/types/cngx-ui-skeleton.d.ts +18 -7
  96. package/types/cngx-ui-speak.d.ts +118 -5
  97. package/types/cngx-ui-stat-card.d.ts +411 -0
  98. package/types/cngx-ui-stepper.d.ts +81 -29
  99. package/types/cngx-ui-tabs.d.ts +22 -6
  100. package/types/cngx-ui-timeline.d.ts +495 -0
  101. package/types/cngx-ui-toc.d.ts +581 -0
  102. package/types/cngx-ui.d.ts +8 -5
@@ -1,5 +1,5 @@
1
1
  import * as _cngx_common_stepper from '@cngx/common/stepper';
2
- import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, CngxStepErrorContext, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
2
+ import { CngxStepPanelHost, CngxStepperSkin, CngxStepperHeaderNavigation, CngxStepperMobileIndicatorPosition, CngxStepperI18n, CngxStepErrorContext, CngxStepperSwipeNav, CngxStepNode, CngxStepLabelContext, CngxStepContentContext, CngxDotStepperDotContext, CngxStepperHost } from '@cngx/common/stepper';
3
3
  import * as _angular_core from '@angular/core';
4
4
  import { Signal, TemplateRef } from '@angular/core';
5
5
  import * as i2 from '@cngx/common/a11y';
@@ -17,6 +17,13 @@ import * as i2 from '@cngx/common/a11y';
17
17
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts
18
18
  * @since 0.1.0
19
19
  * @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion
20
+ * @slot cngxStepIndicator Replaces the per-step number or check glyph in the header.
21
+ * @slot cngxStepBadge Extra marker beside a step label, e.g. an optional or count badge.
22
+ * @slot cngxStepBusySpinner Replaces the busy affordance shown while a step commits.
23
+ * @slot cngxStepError Renders the failure surface on a step whose commit was rejected.
24
+ * @slot cngxStepRejection Renders the reason a rolled-back step was refused.
25
+ * @slot cngxStepGroupHeader Replaces the header a step group renders above its steps.
26
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
20
27
  * @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
21
28
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
22
29
  * <example-url>http://localhost:4200/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
@@ -63,7 +70,7 @@ declare class CngxStepper implements CngxStepPanelHost {
63
70
  readonly mobileIndicatorPosition: _angular_core.InputSignal<CngxStepperMobileIndicatorPosition | undefined>;
64
71
  /** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]="s.presenter"` via `#s="cngxStepper"`. */
65
72
  readonly presenter: _cngx_common_stepper.CngxStepperHost;
66
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
73
+ protected readonly i18n: Signal<CngxStepperI18n>;
67
74
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
68
75
  private readonly hostElement;
69
76
  private readonly injector;
@@ -104,6 +111,7 @@ declare class CngxStepper implements CngxStepPanelHost {
104
111
  */
105
112
  protected readonly isDensityAuto: Signal<boolean>;
106
113
  constructor();
114
+ private readonly fallbackLabels;
107
115
  /** Stepper landmark role-description with config + i18n cascade. */
108
116
  protected readonly stepperRoleDescription: Signal<string>;
109
117
  /** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
@@ -169,9 +177,7 @@ declare class CngxStepper implements CngxStepPanelHost {
169
177
  * enters the branch at its first reachable step. Level-2 factory.
170
178
  */
171
179
  protected readonly groupNavigation: _cngx_common_stepper.CngxStepperGroupNavigationView;
172
- /**
173
- * `aria-label` cascade: input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`.
174
- */
180
+ /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
175
181
  protected readonly resolvedAriaLabel: Signal<string | null>;
176
182
  private readonly stepDirectiveById;
177
183
  readonly flatSteps: Signal<readonly CngxStepNode[]>;
@@ -212,11 +218,19 @@ declare class CngxStepper implements CngxStepPanelHost {
212
218
  protected readonly mobileErrorSummary: Signal<string>;
213
219
  /** Commit-in-flight flag - drives the host `aria-busy` binding.*/
214
220
  protected readonly isCommitting: Signal<boolean>;
215
- protected stepHeaderId(node: CngxStepNode): string;
216
- protected stepPanelId(node: CngxStepNode): string;
217
- protected stepDescriptorId(node: CngxStepNode): string;
218
- /** Live-region + per-step + group SR phrase builders (Level-2 factory). */
221
+ protected stepHeaderId: (node: CngxStepNode) => string;
222
+ protected stepPanelId: (node: CngxStepNode) => string;
223
+ /**
224
+ * Live-region + per-step + group SR phrase builders (Level-2 factory);
225
+ * also owns the descriptor-span id scheme and the gated
226
+ * `aria-describedby` reference the template binds directly.
227
+ */
219
228
  protected readonly announcement: _cngx_common_stepper.CngxStepperAnnouncementBuilders;
229
+ /**
230
+ * Mode-aware panel naming (Level-2 factory): header-less panels
231
+ * self-name and drop the describedby ref instead of dangling.
232
+ */
233
+ protected readonly panelRefs: _cngx_common_stepper.CngxStepperPanelRefs;
220
234
  protected handleHeaderClick(node: CngxStepNode): void;
221
235
  /**
222
236
  * `true` when the step header at `node` may be navigated to right now:
@@ -264,7 +278,10 @@ declare class CngxStepper implements CngxStepPanelHost {
264
278
  * `completedPercent()` is `computed` from `presenter.activeStepIndex()`
265
279
  * and the count of step nodes in `presenter.flatSteps()`. Optional
266
280
  * `[showStepCount]` adds a `Step N of M` caption sourced from
267
- * `CngxStepperI18n.textStepperFormat`.
281
+ * `CngxStepperI18n.textStepperFormat`. Accname and
282
+ * `aria-roledescription` resolve through the same config + i18n
283
+ * cascades as `<cngx-stepper>`; a step-less flow renders the
284
+ * `CNGX_STEPPER_CONFIG` empty-template cascade instead of the bar.
268
285
  *
269
286
  * @category ui/stepper
270
287
  * @docsKind primary
@@ -272,6 +289,7 @@ declare class CngxStepper implements CngxStepPanelHost {
272
289
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
273
290
  * @since 0.1.0
274
291
  * @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
292
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
275
293
  * @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts
276
294
  * <example-url>http://localhost:4200/#/ui/stepper/progress-bar/onboarding-flow</example-url>
277
295
  */
@@ -281,11 +299,23 @@ declare class CngxProgressBarStepper {
281
299
  /** Render a `Step N of M` caption below the bar. Off by default. */
282
300
  readonly showStepCount: _angular_core.InputSignal<boolean>;
283
301
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
284
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
302
+ protected readonly i18n: _angular_core.Signal<_cngx_common_stepper.CngxStepperI18n>;
303
+ protected readonly config: _cngx_common_stepper.CngxStepperConfig;
304
+ /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
305
+ protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
306
+ private readonly fallbackLabels;
307
+ /** Landmark role-description with config + i18n cascade, mirroring `<cngx-stepper>`. */
308
+ protected readonly stepperRoleDescription: _angular_core.Signal<string>;
309
+ private readonly emptySlot;
310
+ /**
311
+ * Empty-state cascade mirroring `<cngx-stepper>`: per-instance
312
+ * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.
313
+ * Gates the whole bar so a step-less flow shows the placeholder
314
+ * instead of a full bar captioned `Step 0 of 0`.
315
+ */
316
+ protected readonly resolvedEmptyTemplate: _angular_core.Signal<TemplateRef<void> | null>;
285
317
  /** Shared per-step/aggregate state derivations - the single error source. */
286
318
  protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
287
- /** Default error glyph for the error caption. */
288
- protected readonly errorGlyph: "!";
289
319
  /** Total step count (group nodes excluded). */
290
320
  protected readonly totalSteps: _angular_core.Signal<number>;
291
321
  /** 1-based active position used in the caption format. */
@@ -303,14 +333,14 @@ declare class CngxProgressBarStepper {
303
333
  */
304
334
  protected readonly errorText: _angular_core.Signal<string>;
305
335
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxProgressBarStepper, never>;
306
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxProgressBarStepper, "cngx-progress-bar-stepper", ["cngxProgressBarStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
336
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxProgressBarStepper, "cngx-progress-bar-stepper", ["cngxProgressBarStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; }, {}, ["emptySlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
307
337
  }
308
338
 
309
339
  /**
310
340
  * Dot stepper variant. Mobile-first sequential-flow indicator. Renders
311
341
  * one labelled `<span role="img">` per step (a name-permitting role, so
312
342
  * each dot announces "Step N of M: label") inside a
313
- * `<div role="group" aria-roledescription="Step indicator">`. The active
343
+ * `<div role="group" aria-roledescription="step indicator">`. The active
314
344
  * dot carries `aria-current="step"` per the W3C APG step-indicator
315
345
  * pattern (NOT `role="tablist"` / `role="tab"` - those are reserved
316
346
  * for parallel content panels, not sequential flow).
@@ -335,22 +365,26 @@ declare class CngxProgressBarStepper {
335
365
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/dot-stepper.component.ts
336
366
  * @since 0.1.0
337
367
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
368
+ * @slot cngxDotStepperDot Replaces one dot; gets its index and active state.
369
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
338
370
  * <example-url>http://localhost:4200/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
339
371
  */
340
372
  declare class CngxDotStepper {
341
373
  readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
342
374
  readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
343
375
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
344
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
376
+ protected readonly i18n: Signal<_cngx_common_stepper.CngxStepperI18n>;
345
377
  protected readonly config: _cngx_common_stepper.CngxStepperConfig;
378
+ /** Shared accname cascade (input → `ariaLabels.stepperRegion` → `i18n.stepperLabel`). */
379
+ protected readonly resolvedAriaLabel: Signal<string | null>;
346
380
  /** Mobile-swipe routing surface composed via hostDirectives. */
347
381
  protected readonly swipeNav: CngxStepperSwipeNav;
382
+ /** Document writing direction - flips the inline next/previous arrows under `rtl` (APG). */
383
+ private readonly direction;
348
384
  protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
349
385
  protected readonly activeIndex: Signal<number>;
350
386
  /** Shared per-step/aggregate state derivations - the single error source. */
351
387
  protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
352
- /** Default error glyph for the aggregate error line. */
353
- protected readonly errorGlyph: "!";
354
388
  /**
355
389
  * Aggregate error line. The dot row only colours the errored dot, so
356
390
  * the real reason (the `[error]` string / aggregator label) needs a
@@ -359,6 +393,14 @@ declare class CngxDotStepper {
359
393
  */
360
394
  protected readonly errorText: Signal<string>;
361
395
  private readonly dotSlot;
396
+ private readonly emptySlot;
397
+ /**
398
+ * Empty-state cascade mirroring `<cngx-stepper>`: per-instance
399
+ * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.
400
+ * Gates the dot row so a step-less flow shows the placeholder
401
+ * instead of an empty group.
402
+ */
403
+ protected readonly resolvedEmptyTemplate: Signal<TemplateRef<void> | null>;
362
404
  /**
363
405
  * Resolved dot-body template cascade: per-instance `*cngxDotStepperDot`
364
406
  * directive > `CNGX_STEPPER_CONFIG.templates.dotStepperDot` > `null`
@@ -379,17 +421,19 @@ declare class CngxDotStepper {
379
421
  protected dotContextFor(node: CngxStepNode, index: number): CngxDotStepperDotContext;
380
422
  protected handleKeyDown(event: KeyboardEvent): void;
381
423
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxDotStepper, never>;
382
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDotStepper, "cngx-dot-stepper", ["cngxDotStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, ["dotSlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }]>;
424
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxDotStepper, "cngx-dot-stepper", ["cngxDotStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, {}, ["dotSlot", "emptySlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }]>;
383
425
  }
384
426
 
385
427
  /**
386
- * Text stepper variant. Smallest possible stepper: a single
387
- * `<span aria-live="polite">` driven by the presenter. Renders
388
- * `Step N of M` by default (sourced from
428
+ * Text stepper variant. Smallest possible stepper: an always-mounted
429
+ * `<span aria-live="polite">` driven by the presenter (empty while no
430
+ * step is projected, so a live load never announces `Step 0 of 0`).
431
+ * Renders `Step N of M` by default (sourced from
389
432
  * `CngxStepperI18n.textStepperFormat`); optional `[showCurrentLabel]`
390
- * appends the active step's label next to the count. Material consumers
391
- * inherit surrounding text styling via CSS inheritance, no theme bridge
392
- * required.
433
+ * appends the active step's label next to the count. A step-less flow
434
+ * renders the `CNGX_STEPPER_CONFIG` empty-template cascade instead.
435
+ * Material consumers inherit surrounding text styling via CSS
436
+ * inheritance, no theme bridge required.
393
437
  *
394
438
  * @category ui/stepper
395
439
  * @docsKind primary
@@ -397,18 +441,26 @@ declare class CngxDotStepper {
397
441
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts
398
442
  * @since 0.1.0
399
443
  * @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper
444
+ * @slot cngxStepperEmpty Renders when no step is projected at all.
400
445
  * <example-url>http://localhost:4200/#/ui/stepper/text-stepper/inline-progress</example-url>
401
446
  */
402
447
  declare class CngxTextStepper {
403
448
  /** Append the active step's label to the count text. Off by default. */
404
449
  readonly showCurrentLabel: _angular_core.InputSignal<boolean>;
405
450
  protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
406
- protected readonly i18n: _cngx_common_stepper.CngxStepperI18n;
451
+ protected readonly i18n: Signal<_cngx_common_stepper.CngxStepperI18n>;
452
+ protected readonly config: _cngx_common_stepper.CngxStepperConfig;
453
+ private readonly emptySlot;
454
+ /**
455
+ * Empty-state cascade mirroring `<cngx-stepper>`: per-instance
456
+ * `*cngxStepperEmpty` > `CNGX_STEPPER_CONFIG.templates.empty` > `null`.
457
+ * Rendered next to the (empty) live span so a step-less flow shows
458
+ * the placeholder instead of a bare `Step 0 of 0` count.
459
+ */
460
+ protected readonly resolvedEmptyTemplate: Signal<TemplateRef<void> | null>;
407
461
  protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
408
462
  /** Shared per-step/aggregate state derivations - the single error source. */
409
463
  protected readonly stateView: _cngx_common_stepper.CngxStepperStateView;
410
- /** Default error glyph for the error sub-line. */
411
- protected readonly errorGlyph: "!";
412
464
  protected readonly totalSteps: Signal<number>;
413
465
  protected readonly currentStep: Signal<number>;
414
466
  protected readonly stepText: Signal<string>;
@@ -420,7 +472,7 @@ declare class CngxTextStepper {
420
472
  */
421
473
  protected readonly errorText: Signal<string>;
422
474
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTextStepper, never>;
423
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTextStepper, "cngx-text-stepper", ["cngxTextStepper"], { "showCurrentLabel": { "alias": "showCurrentLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
475
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTextStepper, "cngx-text-stepper", ["cngxTextStepper"], { "showCurrentLabel": { "alias": "showCurrentLabel"; "required": false; "isSignal": true; }; }, {}, ["emptySlot"], never, true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }]>;
424
476
  }
425
477
 
426
478
  /**
@@ -36,6 +36,12 @@ import { CngxPopover } from '@cngx/common/popover';
36
36
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts
37
37
  * @since 0.1.0
38
38
  * @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxFocusRestore
39
+ * @slot cngxTabIcon Replaces a tab's leading icon; gets the tab.
40
+ * @slot cngxTabAddIcon Replaces the glyph on the add-tab control.
41
+ * @slot cngxTabCloseIcon Replaces the glyph on a tab's close control.
42
+ * @slot cngxTabErrorBadge Marks a tab whose panel holds validation errors.
43
+ * @slot cngxTabBusySpinner Rendered on a tab while its switch commits.
44
+ * @slot cngxTabRejectionIcon Marks a tab whose switch was refused.
39
45
  * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
40
46
  * <example-url>http://localhost:4200/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
41
47
  * <example-url>http://localhost:4200/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>
@@ -91,7 +97,7 @@ declare class CngxTabGroup implements CngxTabPanelHost {
91
97
  */
92
98
  readonly addable: _angular_core.InputSignal<boolean | undefined>;
93
99
  protected readonly presenter: _cngx_common_tabs.CngxTabGroupHost;
94
- protected readonly i18n: _cngx_common_tabs.CngxTabsI18n;
100
+ protected readonly i18n: Signal<_cngx_common_tabs.CngxTabsI18n>;
95
101
  protected readonly config: _cngx_common_tabs.CngxTabsConfig;
96
102
  /** Default-glyph table for the template's fallback spans. */
97
103
  protected readonly glyphs: {
@@ -196,6 +202,14 @@ declare class CngxTabGroup implements CngxTabPanelHost {
196
202
  */
197
203
  protected shouldRenderContent(tab: CngxTabHandle): boolean;
198
204
  protected tabDescriptorId(tab: CngxTabHandle): string;
205
+ /**
206
+ * `aria-describedby` for a tab header: the descriptor id while the
207
+ * status phrase (error state) is non-empty, else `null`. The sr-only
208
+ * descriptor span stays in the DOM; only the reference is gated -
209
+ * accname 1.2 §2A traverses a directly-referenced node even when it
210
+ * is empty or hidden.
211
+ */
212
+ protected tabDescribedBy(tab: CngxTabHandle): string | null;
199
213
  /**
200
214
  * `true` when the tab is in error - the folded `hasError` (direct
201
215
  * `[error]` flag OR the aggregator's reveal-gated `shouldShow()`), so
@@ -320,10 +334,10 @@ declare class CngxTabNav {
320
334
  private readonly config;
321
335
  protected readonly resolvedSkin: Signal<CngxTabsSkin>;
322
336
  /**
323
- * Active link's accessible label, fed to the polite live region. Derived
324
- * from `activeId` through the registered handle (Pillar 1 - single
325
- * source, the route-fed active index). Empty string before any link is
326
- * active so the region stays silent.
337
+ * Polite live-region content. The brain stays linked from
338
+ * `@cngx/common/tabs`, so a decomposed skin keeps receiving fixes to
339
+ * the mount-window gate and the change detection instead of carrying a
340
+ * frozen copy.
327
341
  */
328
342
  protected readonly liveAnnouncement: Signal<string>;
329
343
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTabNav, never>;
@@ -351,13 +365,15 @@ declare class CngxTabNav {
351
365
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-overflow.component.ts
352
366
  * @since 0.1.0
353
367
  * @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant
368
+ * @slot cngxTabOverflowTrigger Replaces the control that opens the overflow menu.
369
+ * @slot cngxTabOverflowItem Replaces a row in the overflow menu; gets the tab.
354
370
  * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
355
371
  * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>
356
372
  * <example-url>http://localhost:4200/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>
357
373
  */
358
374
  declare class CngxTabOverflow {
359
375
  protected readonly panelHost: CngxTabPanelHost;
360
- protected readonly i18n: _cngx_common_tabs.CngxTabsI18n;
376
+ protected readonly i18n: _angular_core.Signal<_cngx_common_tabs.CngxTabsI18n>;
361
377
  protected readonly popover: _angular_core.Signal<CngxPopover>;
362
378
  private readonly adRef;
363
379
  private readonly hostElement;