@cngx/ui 0.1.0-rc.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +118 -59
  2. package/action-button/README.md +170 -53
  3. package/breadcrumb/README.md +5 -6
  4. package/collection/README.md +1 -1
  5. package/command-palette/README.md +9 -5
  6. package/data-grid-accordion/README.md +1 -1
  7. package/empty-state/README.md +2 -3
  8. package/feedback/README.md +1 -1
  9. package/fesm2022/cngx-ui-a11y.mjs +13 -23
  10. package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
  11. package/fesm2022/cngx-ui-accordion.mjs +55 -60
  12. package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
  13. package/fesm2022/cngx-ui-action-button.mjs +220 -339
  14. package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
  15. package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
  16. package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
  17. package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
  18. package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
  19. package/fesm2022/cngx-ui-collection.mjs +28 -34
  20. package/fesm2022/cngx-ui-collection.mjs.map +1 -1
  21. package/fesm2022/cngx-ui-command-palette.mjs +29 -51
  22. package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
  23. package/fesm2022/cngx-ui-context-menu.mjs +138 -89
  24. package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
  25. package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
  26. package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
  27. package/fesm2022/cngx-ui-empty-state.mjs +17 -44
  28. package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
  29. package/fesm2022/cngx-ui-feedback.mjs +648 -495
  30. package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
  31. package/fesm2022/cngx-ui-layout.mjs +17 -13
  32. package/fesm2022/cngx-ui-layout.mjs.map +1 -1
  33. package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
  34. package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
  35. package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
  36. package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
  37. package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
  38. package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
  39. package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
  40. package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
  41. package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
  42. package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
  43. package/fesm2022/cngx-ui-overlay.mjs +9 -10
  44. package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
  45. package/fesm2022/cngx-ui-paginator.mjs +212 -188
  46. package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
  47. package/fesm2022/cngx-ui-sidenav.mjs +872 -721
  48. package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
  49. package/fesm2022/cngx-ui-skeleton.mjs +17 -19
  50. package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
  51. package/fesm2022/cngx-ui-speak.mjs +21 -74
  52. package/fesm2022/cngx-ui-speak.mjs.map +1 -1
  53. package/fesm2022/cngx-ui-stat-card.mjs +39 -62
  54. package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
  55. package/fesm2022/cngx-ui-stepper.mjs +259 -130
  56. package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
  57. package/fesm2022/cngx-ui-tabs.mjs +148 -50
  58. package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
  59. package/fesm2022/cngx-ui-timeline.mjs +48 -32
  60. package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
  61. package/fesm2022/cngx-ui-toc.mjs +59 -48
  62. package/fesm2022/cngx-ui-toc.mjs.map +1 -1
  63. package/fesm2022/cngx-ui.mjs +5 -5
  64. package/fesm2022/cngx-ui.mjs.map +1 -1
  65. package/mat-tabs/README.md +57 -19
  66. package/mat-tabs/styles/mat-tabs.css +285 -163
  67. package/nav-rail/README.md +325 -0
  68. package/package.json +37 -8
  69. package/paginator/README.md +10 -0
  70. package/schematics/collection.json +9 -0
  71. package/schematics/ng-add/index.js +9 -0
  72. package/schematics/ng-add/schema.json +96 -0
  73. package/schematics/package.json +3 -0
  74. package/sidenav/README.md +150 -55
  75. package/skeleton/README.md +1 -1
  76. package/speak/README.md +1 -2
  77. package/stepper/README.md +20 -5
  78. package/tabs/README.md +13 -0
  79. package/timeline/README.md +1 -1
  80. package/toc/README.md +1 -1
  81. package/types/cngx-ui-a11y.d.ts +20 -38
  82. package/types/cngx-ui-accordion.d.ts +46 -71
  83. package/types/cngx-ui-action-button.d.ts +113 -151
  84. package/types/cngx-ui-breadcrumb.d.ts +60 -85
  85. package/types/cngx-ui-chart-panel.d.ts +22 -40
  86. package/types/cngx-ui-collection.d.ts +30 -43
  87. package/types/cngx-ui-command-palette.d.ts +40 -64
  88. package/types/cngx-ui-context-menu.d.ts +109 -48
  89. package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
  90. package/types/cngx-ui-empty-state.d.ts +18 -8
  91. package/types/cngx-ui-feedback.d.ts +275 -292
  92. package/types/cngx-ui-layout.d.ts +4 -12
  93. package/types/cngx-ui-mat-accordion.d.ts +5 -5
  94. package/types/cngx-ui-mat-paginator.d.ts +4 -10
  95. package/types/cngx-ui-mat-stepper.d.ts +5 -10
  96. package/types/cngx-ui-mat-tabs.d.ts +86 -89
  97. package/types/cngx-ui-nav-rail.d.ts +416 -0
  98. package/types/cngx-ui-overlay.d.ts +4 -13
  99. package/types/cngx-ui-paginator.d.ts +186 -161
  100. package/types/cngx-ui-sidenav.d.ts +557 -437
  101. package/types/cngx-ui-skeleton.d.ts +7 -13
  102. package/types/cngx-ui-speak.d.ts +40 -24
  103. package/types/cngx-ui-stat-card.d.ts +45 -36
  104. package/types/cngx-ui-stepper.d.ts +205 -84
  105. package/types/cngx-ui-tabs.d.ts +104 -28
  106. package/types/cngx-ui-timeline.d.ts +31 -51
  107. package/types/cngx-ui-toc.d.ts +43 -54
  108. package/types/cngx-ui.d.ts +1 -1
@@ -8,8 +8,6 @@ import { AsyncView } from '@cngx/common/data';
8
8
 
9
9
  /**
10
10
  * Visual variant for the loading indicator.
11
- *
12
- * @category ui/feedback/loading
13
11
  */
14
12
  type LoadingIndicatorVariant = 'spinner' | 'bar';
15
13
  /**
@@ -35,15 +33,14 @@ type LoadingIndicatorVariant = 'spinner' | 'bar';
35
33
  * <cngx-loading-indicator [loading]="isLoading()" label="Fetching data" />
36
34
  * ```
37
35
  *
38
- * @category ui/feedback/loading
39
- * @docsKind primary
40
36
  * @wcag AA
41
37
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/loading/loading-indicator.ts
42
- * @since 0.1.0
38
+ * @since 0.3.0
43
39
  * @relatedTo CngxLoadingOverlay, CngxProgress, CngxAsyncContainer
44
40
  *
45
- * <example-url>http://localhost:4200/#/ui/feedback/loading-indicator/bar-variant</example-url>
46
- * <example-url>http://localhost:4200/#/ui/feedback/loading-indicator/spinner-variant</example-url>
41
+ * <example-url>/#/ui/feedback/loading-indicator/bar-variant</example-url>
42
+ * <example-url>/#/ui/feedback/loading-indicator/spinner-variant</example-url>
43
+ * @axis level atom
47
44
  */
48
45
  declare class CngxLoadingIndicator {
49
46
  private readonly config;
@@ -61,17 +58,10 @@ declare class CngxLoadingIndicator {
61
58
  readonly delay: _angular_core.InputSignal<number>;
62
59
  /** Minimum display time in ms once visible. Defaults to `CNGX_LOADING_CONFIG.minDwell`. */
63
60
  readonly minDwell: _angular_core.InputSignal<number>;
64
- /**
65
- * @deprecated Use `minDwell`. Kept one release for migration; when set, it
66
- * takes precedence over `minDwell`.
67
- */
68
- readonly minDuration: _angular_core.InputSignal<number | undefined>;
69
61
  /** @internal - true when the underlying source says "loading". */
70
62
  protected readonly isActive: _angular_core.Signal<boolean>;
71
63
  /** @internal - custom spinner component from global config. */
72
64
  protected readonly customSpinner: _angular_core.Signal<_angular_core.Type<unknown> | null>;
73
- /** @internal - deprecated `minDuration` alias forwards to `minDwell`. */
74
- protected readonly effectiveMinDwell: _angular_core.Signal<number>;
75
65
  /** @internal - final visibility after delay + minDwell. */
76
66
  readonly visible: _angular_core.Signal<boolean>;
77
67
  /**
@@ -82,7 +72,7 @@ declare class CngxLoadingIndicator {
82
72
  */
83
73
  protected readonly resolvedLabel: _angular_core.Signal<string>;
84
74
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxLoadingIndicator, never>;
85
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxLoadingIndicator, "cngx-loading-indicator", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "minDwell": { "alias": "minDwell"; "required": false; "isSignal": true; }; "minDuration": { "alias": "minDuration"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
75
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxLoadingIndicator, "cngx-loading-indicator", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "minDwell": { "alias": "minDwell"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
86
76
  }
87
77
 
88
78
  /**
@@ -116,14 +106,13 @@ declare class CngxLoadingIndicator {
116
106
  * </cngx-loading-overlay>
117
107
  * ```
118
108
  *
119
- * @category ui/feedback/loading
120
- * @docsKind primary
121
109
  * @wcag AA
122
110
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/loading/loading-overlay.ts
123
- * @since 0.1.0
111
+ * @since 0.3.0
124
112
  * @relatedTo CngxLoadingIndicator, CngxProgress, CngxAsyncContainer
125
113
  *
126
- * <example-url>http://localhost:4200/#/ui/feedback/loading-overlay/overlay-with-form</example-url>
114
+ * <example-url>/#/ui/feedback/loading-overlay/overlay-with-form</example-url>
115
+ * @axis level molecule
127
116
  */
128
117
  declare class CngxLoadingOverlay {
129
118
  private readonly doc;
@@ -142,11 +131,6 @@ declare class CngxLoadingOverlay {
142
131
  readonly delay: _angular_core.InputSignal<number>;
143
132
  /** Minimum display time in ms once visible. Defaults to `CNGX_LOADING_CONFIG.minDwell`. */
144
133
  readonly minDwell: _angular_core.InputSignal<number>;
145
- /**
146
- * @deprecated Use `minDwell`. Kept one release for migration; when set, it
147
- * takes precedence over `minDwell`.
148
- */
149
- readonly minDuration: _angular_core.InputSignal<number | undefined>;
150
134
  /**
151
135
  * When `true`, the overlay only activates during the first load (`isFirstLoad()`),
152
136
  * not during refreshes. Use the async container's built-in refresh bar for
@@ -155,8 +139,6 @@ declare class CngxLoadingOverlay {
155
139
  readonly firstLoadOnly: _angular_core.InputSignal<boolean>;
156
140
  /** @internal */
157
141
  protected readonly isActive: _angular_core.Signal<boolean>;
158
- /** @internal - deprecated `minDuration` alias forwards to `minDwell`. */
159
- protected readonly effectiveMinDwell: _angular_core.Signal<number>;
160
142
  /** @internal - debounced visibility via shared gate factory. */
161
143
  protected readonly visible: _angular_core.Signal<boolean>;
162
144
  /**
@@ -170,13 +152,11 @@ declare class CngxLoadingOverlay {
170
152
  private readonly spinnerEl;
171
153
  constructor();
172
154
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxLoadingOverlay, never>;
173
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxLoadingOverlay, "cngx-loading-overlay", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "minDwell": { "alias": "minDwell"; "required": false; "isSignal": true; }; "minDuration": { "alias": "minDuration"; "required": false; "isSignal": true; }; "firstLoadOnly": { "alias": "firstLoadOnly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
155
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxLoadingOverlay, "cngx-loading-overlay", never, { "state": { "alias": "state"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "delay": { "alias": "delay"; "required": false; "isSignal": true; }; "minDwell": { "alias": "minDwell"; "required": false; "isSignal": true; }; "firstLoadOnly": { "alias": "firstLoadOnly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
174
156
  }
175
157
 
176
158
  /**
177
159
  * Visual variant for the progress indicator.
178
- *
179
- * @category ui/feedback/loading
180
160
  */
181
161
  type ProgressVariant = 'linear' | 'circular';
182
162
  /**
@@ -200,16 +180,15 @@ type ProgressVariant = 'linear' | 'circular';
200
180
  * <cngx-progress [progress]="percent()" label="Processing" />
201
181
  * ```
202
182
  *
203
- * @category ui/feedback/loading
204
- * @docsKind primary
205
183
  * @wcag AA
206
184
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/loading/progress.ts
207
- * @since 0.1.0
185
+ * @since 0.3.0
208
186
  * @relatedTo CngxLoadingIndicator, CngxLoadingOverlay, CngxAsyncContainer
209
187
  *
210
- * <example-url>http://localhost:4200/#/ui/feedback/progress/circular-variant</example-url>
211
- * <example-url>http://localhost:4200/#/ui/feedback/progress/linear-determinate</example-url>
212
- * <example-url>http://localhost:4200/#/ui/feedback/progress/linear-indeterminate</example-url>
188
+ * <example-url>/#/ui/feedback/progress/circular-variant</example-url>
189
+ * <example-url>/#/ui/feedback/progress/linear-determinate</example-url>
190
+ * <example-url>/#/ui/feedback/progress/linear-indeterminate</example-url>
191
+ * @axis level atom
213
192
  */
214
193
  declare class CngxProgress {
215
194
  private readonly i18n;
@@ -249,30 +228,25 @@ declare class CngxProgress {
249
228
 
250
229
  /**
251
230
  * Severity level for the alert - determines visual style, icon, and ARIA role.
252
- *
253
- * @category ui/feedback/alert
254
231
  */
255
232
  type AlertSeverity = 'info' | 'success' | 'warning' | 'error';
256
233
  /**
257
234
  * Visibility phase for enter/exit CSS animations.
258
- *
259
- * @category ui/feedback/alert
260
235
  */
261
236
  type AlertVisibilityPhase = 'hidden' | 'entering' | 'visible' | 'exiting';
262
237
  /**
263
238
  * Content slot directive for custom alert icons.
264
239
  *
265
- * @category ui/feedback/alert
266
240
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/alert/alert.ts
267
- * @since 0.1.0
241
+ * @since 0.3.0
268
242
  * @relatedTo CngxAlert, CngxAlertAction
269
243
  *
270
- * <example-url>http://localhost:4200/#/ui/feedback/alert/action-buttons</example-url>
271
- * <example-url>http://localhost:4200/#/ui/feedback/alert/auto-collapse</example-url>
272
- * <example-url>http://localhost:4200/#/ui/feedback/alert/boolean-trigger-when</example-url>
273
- * <example-url>http://localhost:4200/#/ui/feedback/alert/closable</example-url>
274
- * <example-url>http://localhost:4200/#/ui/feedback/alert/severities</example-url>
275
- * <example-url>http://localhost:4200/#/ui/feedback/alert/state-driven-visibility</example-url>
244
+ * <example-url>/#/ui/feedback/alert/action-buttons</example-url>
245
+ * <example-url>/#/ui/feedback/alert/auto-collapse</example-url>
246
+ * <example-url>/#/ui/feedback/alert/boolean-trigger-when</example-url>
247
+ * <example-url>/#/ui/feedback/alert/dismissible</example-url>
248
+ * <example-url>/#/ui/feedback/alert/severities</example-url>
249
+ * <example-url>/#/ui/feedback/alert/state-driven-visibility</example-url>
276
250
  */
277
251
  declare class CngxAlertIcon {
278
252
  readonly templateRef: TemplateRef<any> | null;
@@ -292,18 +266,17 @@ declare class CngxAlertIcon {
292
266
  * </cngx-alert>
293
267
  * ```
294
268
  *
295
- * @category ui/feedback/alert
296
269
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/alert/alert.ts
297
270
  * @selector [cngxAlertAction]
298
- * @since 0.1.0
271
+ * @since 0.3.0
299
272
  * @relatedTo CngxAlert, CngxAlertIcon
300
273
  *
301
- * <example-url>http://localhost:4200/#/ui/feedback/alert/action-buttons</example-url>
302
- * <example-url>http://localhost:4200/#/ui/feedback/alert/auto-collapse</example-url>
303
- * <example-url>http://localhost:4200/#/ui/feedback/alert/boolean-trigger-when</example-url>
304
- * <example-url>http://localhost:4200/#/ui/feedback/alert/closable</example-url>
305
- * <example-url>http://localhost:4200/#/ui/feedback/alert/severities</example-url>
306
- * <example-url>http://localhost:4200/#/ui/feedback/alert/state-driven-visibility</example-url>
274
+ * <example-url>/#/ui/feedback/alert/action-buttons</example-url>
275
+ * <example-url>/#/ui/feedback/alert/auto-collapse</example-url>
276
+ * <example-url>/#/ui/feedback/alert/boolean-trigger-when</example-url>
277
+ * <example-url>/#/ui/feedback/alert/dismissible</example-url>
278
+ * <example-url>/#/ui/feedback/alert/severities</example-url>
279
+ * <example-url>/#/ui/feedback/alert/state-driven-visibility</example-url>
307
280
  */
308
281
  declare class CngxAlertAction {
309
282
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAlertAction, never>;
@@ -320,35 +293,31 @@ declare class CngxAlertAction {
320
293
  *
321
294
  * `[state]` takes precedence over `[when]`.
322
295
  *
323
- * @category ui/feedback/alert
324
- * @docsKind primary
325
296
  * @wcag AA
326
297
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/alert/alert.ts
327
- * @since 0.1.0
298
+ * @since 0.3.0
328
299
  * @relatedTo CngxAlertStack, CngxAlerter, CngxAlertOn, CngxAlertIcon, CngxAlertAction
329
300
  *
330
- * <example-url>http://localhost:4200/#/ui/feedback/alert/action-buttons</example-url>
331
- * <example-url>http://localhost:4200/#/ui/feedback/alert/auto-collapse</example-url>
332
- * <example-url>http://localhost:4200/#/ui/feedback/alert/boolean-trigger-when</example-url>
333
- * <example-url>http://localhost:4200/#/ui/feedback/alert/closable</example-url>
334
- * <example-url>http://localhost:4200/#/ui/feedback/alert/severities</example-url>
335
- * <example-url>http://localhost:4200/#/ui/feedback/alert/state-driven-visibility</example-url>
301
+ * <example-url>/#/ui/feedback/alert/action-buttons</example-url>
302
+ * <example-url>/#/ui/feedback/alert/auto-collapse</example-url>
303
+ * <example-url>/#/ui/feedback/alert/boolean-trigger-when</example-url>
304
+ * <example-url>/#/ui/feedback/alert/dismissible</example-url>
305
+ * <example-url>/#/ui/feedback/alert/severities</example-url>
306
+ * <example-url>/#/ui/feedback/alert/state-driven-visibility</example-url>
307
+ * @axis level molecule
336
308
  */
337
309
  declare class CngxAlert {
338
310
  private readonly config;
339
311
  private readonly i18n;
340
312
  private readonly destroyRef;
313
+ private readonly announcer;
314
+ private readonly hostElement;
341
315
  /** Alert severity - determines visual style, default icon, and ARIA role. */
342
316
  readonly severity: _angular_core.InputSignal<AlertSeverity>;
343
317
  /** Optional title displayed above the content. */
344
318
  readonly title: _angular_core.InputSignal<string | undefined>;
345
- /**
346
- * Shows a dismiss button.
347
- * @deprecated Use `closable` instead.
348
- */
319
+ /** Shows a dismiss button. */
349
320
  readonly dismissible: _angular_core.InputSignal<boolean>;
350
- /** Shows a dismiss button. Preferred over deprecated `dismissible`. */
351
- readonly closable: _angular_core.InputSignal<boolean>;
352
321
  /** Bind an async state - auto-shows on error/success/loading, auto-hides on idle. */
353
322
  readonly state: _angular_core.InputSignal<CngxAsyncState<unknown> | undefined>;
354
323
  /**
@@ -374,7 +343,6 @@ declare class CngxAlert {
374
343
  private readonly manualDismissed;
375
344
  private readonly autoDismissed;
376
345
  private readonly collapsedState;
377
- private readonly announcementState;
378
346
  /** @internal - animation phase, drives host CSS classes. */
379
347
  protected readonly visibilityPhase: _angular_core.WritableSignal<AlertVisibilityPhase>;
380
348
  private readonly autoDismissTimer;
@@ -386,15 +354,13 @@ declare class CngxAlert {
386
354
  */
387
355
  private readonly motionWindow;
388
356
  private readonly canQueryMotion;
389
- private readonly prefersReducedMotion;
357
+ private readonly motion;
390
358
  /** Active pause holds - pointer hover and focus-within count independently. */
391
359
  private interactionHolds;
392
360
  /** Set when interaction expanded an already-collapsed alert; release re-arms. */
393
361
  private reCollapseOnRelease;
394
362
  /** @internal - global icon component for the current severity (from provideFeedback config). */
395
363
  protected readonly globalIcon: _angular_core.Signal<_angular_core.Type<unknown> | null>;
396
- /** @internal - merged closable from new and deprecated input. */
397
- protected readonly effectiveClosable: _angular_core.Signal<boolean>;
398
364
  /** @internal - ARIA role: 'alert' for error/warning, 'status' for info/success. */
399
365
  protected readonly ariaRole: _angular_core.Signal<"alert" | "status">;
400
366
  /** @internal - false when actions are projected to prevent full re-announcement. */
@@ -417,8 +383,6 @@ declare class CngxAlert {
417
383
  * language.
418
384
  */
419
385
  protected readonly dismissLabel: _angular_core.Signal<string>;
420
- /** @internal - SR announcement text for state transitions. */
421
- protected readonly announcement: _angular_core.Signal<string>;
422
386
  private readonly effectiveCollapseDelay;
423
387
  constructor();
424
388
  private beginEnter;
@@ -447,38 +411,24 @@ declare class CngxAlert {
447
411
  private handleInteractionStart;
448
412
  private handleInteractionEnd;
449
413
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxAlert, never>;
450
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAlert, "cngx-alert", never, { "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "when": { "alias": "when"; "required": false; "isSignal": true; }; "autoDismissDelay": { "alias": "autoDismissDelay"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapseDelay": { "alias": "collapseDelay"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, ["customIcon", "hasActions"], ["[cngxAlertIcon]", "*", "[cngxAlertAction]"], true, never>;
414
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAlert, "cngx-alert", never, { "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "when": { "alias": "when"; "required": false; "isSignal": true; }; "autoDismissDelay": { "alias": "autoDismissDelay"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "collapseDelay": { "alias": "collapseDelay"; "required": false; "isSignal": true; }; }, { "dismissed": "dismissed"; }, ["customIcon", "hasActions"], ["[cngxAlertIcon]", "*", "[cngxAlertAction]"], true, never>;
451
415
  }
452
416
 
453
417
  /**
454
418
  * Global configuration for all feedback components.
455
419
  * Provided via `provideFeedback()` with `with*` features.
456
- *
457
- * @category ui/feedback
458
420
  */
459
421
  interface FeedbackConfig {
460
422
  /** Custom spinner component to replace the built-in SVG spinner. */
461
423
  spinnerComponent?: Type<unknown>;
462
424
  /** Custom icon components per alert severity. Replaces built-in SVG icons. */
463
425
  alertIcons?: Partial<Record<AlertSeverity, Type<unknown>>>;
464
- /**
465
- * Default delay in ms before showing loading indicators.
466
- *
467
- * @deprecated Use `provideLoadingConfig(withShowDelay(...))` from `@cngx/core/utils`.
468
- * Kept one release as a forwarder; `withLoadingDefaults` still writes it.
469
- */
470
- loadingDelay?: number;
471
- /**
472
- * Default minimum display time in ms for loading indicators.
473
- *
474
- * @deprecated Use `provideLoadingConfig(withMinDwell(...))` from `@cngx/core/utils`.
475
- * Kept one release as a forwarder; `withLoadingDefaults` still writes it.
476
- */
477
- loadingMinDuration?: number;
478
426
  /** Custom close/dismiss icon component - replaces default X SVG globally. */
479
427
  closeIconComponent?: Type<unknown>;
480
428
  /** Default auto-dismiss duration for toasts in ms. */
481
429
  toastDefaultDuration?: number;
430
+ /** Default auto-dismiss duration for toasts that carry an action, in ms. */
431
+ toastActionDuration?: number;
482
432
  /** Dedup window for identical toasts in ms. */
483
433
  toastDedupWindow?: number;
484
434
  /** Default auto-dismiss duration for scoped alerts in ms. `undefined` = persistent. */
@@ -495,18 +445,15 @@ interface FeedbackConfig {
495
445
  }
496
446
  /**
497
447
  * Maps a failure to user-facing detail text, or `undefined` for none.
498
- *
499
- * @category ui/feedback
500
448
  */
501
449
  type CngxErrorDetailFn = (error: unknown) => string | undefined;
502
450
  /**
503
451
  * Injection token for the global feedback configuration.
504
452
  * Components read this with `inject(CNGX_FEEDBACK_CONFIG, { optional: true })`.
505
453
  *
506
- * @category ui/feedback
507
454
  * @wcag AA
508
455
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/config/feedback-config.ts
509
- * @since 0.1.0
456
+ * @since 0.3.0
510
457
  */
511
458
  declare const CNGX_FEEDBACK_CONFIG: InjectionToken<FeedbackConfig>;
512
459
  /**
@@ -515,8 +462,6 @@ declare const CNGX_FEEDBACK_CONFIG: InjectionToken<FeedbackConfig>;
515
462
  * Merge rule (all features): an explicitly passed option wins; an omitted
516
463
  * option preserves the value an earlier feature wrote. No feature clears
517
464
  * fields it was not given.
518
- *
519
- * @category ui/feedback
520
465
  */
521
466
  interface FeedbackFeature {
522
467
  /** @internal */
@@ -533,13 +478,10 @@ interface FeedbackFeature {
533
478
  * provideFeedback(
534
479
  * withSpinnerTemplate(MyLucideSpinner),
535
480
  * withAlertIcons({ error: MyErrorIcon, warning: MyWarningIcon }),
536
- * withLoadingDefaults({ delay: 300, minDuration: 600 }),
537
481
  * ),
538
482
  * ],
539
483
  * });
540
484
  * ```
541
- *
542
- * @category ui/feedback
543
485
  */
544
486
  declare function provideFeedback(...features: FeedbackFeature[]): EnvironmentProviders;
545
487
  /**
@@ -551,8 +493,6 @@ declare function provideFeedback(...features: FeedbackFeature[]): EnvironmentPro
551
493
  * ```ts
552
494
  * provideFeedback(withSpinnerTemplate(MatProgressSpinner))
553
495
  * ```
554
- *
555
- * @category ui/feedback/loading
556
496
  */
557
497
  declare function withSpinnerTemplate(component: Type<unknown>): FeedbackFeature;
558
498
  /**
@@ -569,47 +509,19 @@ declare function withSpinnerTemplate(component: Type<unknown>): FeedbackFeature;
569
509
  * info: MyInfoIcon,
570
510
  * }))
571
511
  * ```
572
- *
573
- * @category ui/feedback
574
512
  */
575
513
  declare function withAlertIcons(icons: Partial<Record<AlertSeverity, Type<unknown>>>): FeedbackFeature;
576
- /**
577
- * Set default timing for all loading indicators and overlays.
578
- *
579
- * Forwards into the Level-1 `CNGX_LOADING_CONFIG` cascade so the gated
580
- * surfaces (indicator, overlay, async-container, skeleton) all read the same
581
- * defaults. Prefer `provideLoadingConfig(withShowDelay(...), withMinDwell(...))`
582
- * from `@cngx/core/utils` directly; this feature is kept for back-compat.
583
- *
584
- * Note: this forwarder provides a full `CNGX_LOADING_CONFIG` value, so under
585
- * DI last-wins it replaces the whole config - including `spinnerVsSkeletonCutoff`,
586
- * which resets to its default. Set the cutoff through
587
- * `provideLoadingConfig(withSpinnerVsSkeletonCutoff(...))` rather than combining
588
- * it with this back-compat forwarder.
589
- *
590
- * Individual components can still override via their `[delay]` and `[minDwell]` inputs.
591
- *
592
- * ```ts
593
- * provideFeedback(withLoadingDefaults({ delay: 300, minDuration: 600 }))
594
- * ```
595
- *
596
- * @category ui/feedback
597
- */
598
- declare function withLoadingDefaults(opts: {
599
- delay?: number;
600
- minDuration?: number;
601
- }): FeedbackFeature;
602
514
  /**
603
515
  * Replace the built-in X SVG in all close/dismiss buttons globally.
604
516
  *
605
517
  * The component receives no inputs - it should render a single icon.
606
518
  * Per-instance override via content projection on `CngxCloseButton` takes precedence.
519
+ * Forwards to `provideButtonCloseIcon` from `@cngx/common/button`, so a close
520
+ * button outside the feedback surfaces gets the same glyph.
607
521
  *
608
522
  * ```ts
609
523
  * provideFeedback(withCloseIcon(MyLucideXIcon))
610
524
  * ```
611
- *
612
- * @category ui/feedback
613
525
  */
614
526
  declare function withCloseIcon(component: Type<unknown>): FeedbackFeature;
615
527
  /**
@@ -627,12 +539,16 @@ declare function withCloseIcon(component: Type<unknown>): FeedbackFeature;
627
539
  * withAlertIcons({ error: MyErrorIcon }),
628
540
  * )
629
541
  * ```
630
- *
631
- * @category ui/feedback
632
542
  */
633
543
  declare function withToasts(opts?: {
634
544
  /** Default auto-dismiss duration in ms. */
635
545
  defaultDuration?: number;
546
+ /**
547
+ * Default auto-dismiss duration in ms for toasts that carry an `action`
548
+ * (default 10000). Longer than `defaultDuration` so keyboard and screen
549
+ * reader users can reach the action button (WCAG 2.2.1).
550
+ */
551
+ actionDuration?: number;
636
552
  /** Dedup window in ms. */
637
553
  dedupWindow?: number;
638
554
  }): FeedbackFeature;
@@ -654,8 +570,6 @@ declare function withToasts(opts?: {
654
570
  * withAlerts(),
655
571
  * )
656
572
  * ```
657
- *
658
- * @category ui/feedback
659
573
  */
660
574
  declare function withAlerts(opts?: {
661
575
  /** Default auto-dismiss duration in ms. `undefined` = persistent. */
@@ -681,8 +595,6 @@ declare function withAlerts(opts?: {
681
595
  * withBanners(),
682
596
  * )
683
597
  * ```
684
- *
685
- * @category ui/feedback
686
598
  */
687
599
  declare function withBanners(): FeedbackFeature;
688
600
  /**
@@ -705,8 +617,7 @@ declare function withBanners(): FeedbackFeature;
705
617
  * )
706
618
  * ```
707
619
  *
708
- * @category ui/feedback
709
- * @since 0.1.0
620
+ * @since 0.3.0
710
621
  */
711
622
  declare function withErrorDetail(map: CngxErrorDetailFn): FeedbackFeature;
712
623
  /**
@@ -715,8 +626,7 @@ declare function withErrorDetail(map: CngxErrorDetailFn): FeedbackFeature;
715
626
  * time it shows, and nothing in production. Call it in an injection context,
716
627
  * then call the returned function with the error.
717
628
  *
718
- * @category ui/feedback
719
- * @since 0.1.0
629
+ * @since 0.3.0
720
630
  */
721
631
  declare function injectErrorDetail(): CngxErrorDetailFn;
722
632
 
@@ -725,8 +635,6 @@ declare function injectErrorDetail(): CngxErrorDetailFn;
725
635
  * from the region names: these describe a transition rather than naming a
726
636
  * landmark, so they change on a different cadence and a consumer usually
727
637
  * translates them as one block.
728
- *
729
- * @category ui/feedback/i18n
730
638
  */
731
639
  interface CngxFeedbackAnnouncements {
732
640
  /** Announced when a user dismisses an alert. */
@@ -768,8 +676,6 @@ interface CngxFeedbackAnnouncements {
768
676
  * Two region names and one announcement sub-bundle. The banner outlet carries
769
677
  * no region `aria-label`, so it gets no key - a key with no Wirkungsort is
770
678
  * configuration for its own sake.
771
- *
772
- * @category ui/feedback/i18n
773
679
  */
774
680
  interface CngxFeedbackI18n {
775
681
  /** Accessible name of the `role="region"` host on `CngxAlertStack`. */
@@ -808,8 +714,6 @@ interface CngxFeedbackI18n {
808
714
  /**
809
715
  * Override shape: every top-level key optional, and `announcements` overridable
810
716
  * key by key rather than all-or-nothing.
811
- *
812
- * @category ui/feedback/i18n
813
717
  */
814
718
  type CngxFeedbackI18nOverrides = Partial<Omit<CngxFeedbackI18n, 'announcements'>> & {
815
719
  readonly announcements?: Partial<CngxFeedbackAnnouncements>;
@@ -821,10 +725,9 @@ type CngxFeedbackI18nOverrides = Partial<Omit<CngxFeedbackI18n, 'announcements'>
821
725
  * defaults, formatted for the app locale, so a consumer who provides nothing
822
726
  * still gets named regions.
823
727
  *
824
- * @category ui/feedback/i18n
825
728
  * @wcag AA
826
729
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/config/feedback-i18n.ts
827
- * @since 0.1.0
730
+ * @since 0.3.0
828
731
  * @relatedTo CngxAlertStack, CngxToastOutlet
829
732
  */
830
733
  declare const CNGX_FEEDBACK_I18N: InjectionToken<Signal<CngxFeedbackI18n>>;
@@ -845,8 +748,6 @@ declare const CNGX_FEEDBACK_I18N: InjectionToken<Signal<CngxFeedbackI18n>>;
845
748
  * Contributes the token through the feature's `_providers`, so - like
846
749
  * {@link withCloseIcon} - a second call in the same `provideFeedback()` wins
847
750
  * over the first rather than merging with it. Pass every key in one call.
848
- *
849
- * @category ui/feedback/i18n
850
751
  */
851
752
  declare function withFeedbackI18nLabels(overrides: CngxFeedbackI18nOverrides | Signal<CngxFeedbackI18nOverrides>): FeedbackFeature;
852
753
  /**
@@ -878,8 +779,7 @@ declare function withFeedbackI18nLabels(overrides: CngxFeedbackI18nOverrides | S
878
779
  * bootstrapApplication(App, { providers: [...DE] });
879
780
  * ```
880
781
  *
881
- * @category ui/feedback/i18n
882
- * @since 0.1.0
782
+ * @since 0.3.0
883
783
  */
884
784
  declare function provideFeedbackI18n(overrides: CngxFeedbackI18nOverrides | Signal<CngxFeedbackI18nOverrides>): Provider;
885
785
  /**
@@ -889,8 +789,6 @@ declare function provideFeedbackI18n(overrides: CngxFeedbackI18nOverrides | Sign
889
789
  * a `computed()`, template or handler so a language switch reaches the label.
890
790
  * One Signal per injector, bundle and locale, so row-level readers (alerts,
891
791
  * toasts, banners) share it.
892
- *
893
- * @category ui/feedback/i18n
894
792
  */
895
793
  declare function injectFeedbackI18n(): Signal<CngxFeedbackI18n>;
896
794
 
@@ -898,8 +796,7 @@ declare function injectFeedbackI18n(): Signal<CngxFeedbackI18n>;
898
796
  * The live-region words of the feedback section: transitions the feedback
899
797
  * family announces on its own behalf.
900
798
  *
901
- * @category ui/feedback/i18n
902
- * @since 0.1.0
799
+ * @since 0.3.0
903
800
  */
904
801
  interface CngxFeedbackAnnouncementsLanguage {
905
802
  /** Announced when a user dismisses an alert. */
@@ -931,8 +828,7 @@ interface CngxFeedbackAnnouncementsLanguage {
931
828
  * container and the state bridges). It feeds `CNGX_FEEDBACK_I18N`. Messages
932
829
  * use `{name}` placeholders; a plural message picks its form from `{count}`.
933
830
  *
934
- * @category ui/feedback/i18n
935
- * @since 0.1.0
831
+ * @since 0.3.0
936
832
  * @relatedTo CNGX_FEEDBACK_I18N
937
833
  */
938
834
  interface CngxFeedbackLanguageSection {
@@ -966,8 +862,7 @@ interface CngxFeedbackLanguageSection {
966
862
  * The English feedback section: the single source of the feedback family's
967
863
  * English copy. `CNGX_FEEDBACK_I18N` defaults to it.
968
864
  *
969
- * @category ui/feedback/i18n
970
- * @since 0.1.0
865
+ * @since 0.3.0
971
866
  * @relatedTo CNGX_FEEDBACK_I18N
972
867
  */
973
868
  declare const CNGX_FEEDBACK_LANGUAGE_EN: CngxFeedbackLanguageSection;
@@ -978,9 +873,33 @@ declare module '@cngx/core/i18n' {
978
873
  }
979
874
 
980
875
  /**
981
- * Configuration for a programmatic alert.
876
+ * A source that holds a registry timer. Pointer hover and focus-within fire
877
+ * separate event pairs on the same element; `queue` is the outlet's hold on a
878
+ * toast that `maxVisible` keeps out of view.
879
+ *
880
+ * @internal
881
+ */
882
+ type TimerHoldSource = 'pointer' | 'focus' | 'queue';
883
+ /**
884
+ * One countdown segment of a registry timer, snapshotted at the transition
885
+ * that opened it (a start, the first hold or the last release).
886
+ *
887
+ * `serial` is registry-wide and monotonic, so a renderer keyed by it starts a
888
+ * fresh animation at every transition. `total` is the duration of the current
889
+ * start, `remaining` the milliseconds left at the snapshot, `running` whether
890
+ * the clock was moving at that moment.
982
891
  *
983
- * @category ui/feedback/alert
892
+ * @internal
893
+ */
894
+ interface TimerSegment {
895
+ readonly serial: number;
896
+ readonly total: number;
897
+ readonly remaining: number;
898
+ readonly running: boolean;
899
+ }
900
+
901
+ /**
902
+ * Configuration for a programmatic alert.
984
903
  */
985
904
  interface AlertConfig {
986
905
  /** Alert message text (required). */
@@ -1010,8 +929,6 @@ interface AlertConfig {
1010
929
  }
1011
930
  /**
1012
931
  * Handle to a displayed alert - allows programmatic dismiss.
1013
- *
1014
- * @category ui/feedback/alert
1015
932
  */
1016
933
  interface AlertRef {
1017
934
  /** Programmatically dismiss this alert. */
@@ -1022,8 +939,6 @@ interface AlertRef {
1022
939
  /**
1023
940
  * Tracked state for a single alert - the element type of the public
1024
941
  * `CngxAlerter.alerts` signal. Immutable per slot; treat as read-only.
1025
- *
1026
- * @category ui/feedback/alert
1027
942
  */
1028
943
  interface AlertState {
1029
944
  readonly id: number;
@@ -1043,16 +958,14 @@ interface AlertState {
1043
958
  *
1044
959
  * For root-level injection, use `provideFeedback(withAlerts())`.
1045
960
  *
1046
- * @category ui/feedback/alert
1047
- * @docsKind primary
1048
961
  * @wcag AA
1049
962
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/alert/alerter.service.ts
1050
- * @since 0.1.0
963
+ * @since 0.3.0
1051
964
  * @relatedTo CngxAlertStack, CngxAlertOn, CngxToaster, CngxBanner
1052
965
  *
1053
- * <example-url>http://localhost:4200/#/ui/feedback/alert-stack/basic-stack</example-url>
1054
- * <example-url>http://localhost:4200/#/ui/feedback/alert-stack/dialog-use-case</example-url>
1055
- * <example-url>http://localhost:4200/#/ui/feedback/alert-stack/overflow-collapse</example-url>
966
+ * <example-url>/#/ui/feedback/alert-stack/basic-stack</example-url>
967
+ * <example-url>/#/ui/feedback/alert-stack/dialog-use-case</example-url>
968
+ * <example-url>/#/ui/feedback/alert-stack/overflow-collapse</example-url>
1056
969
  */
1057
970
  declare class CngxAlerter {
1058
971
  private readonly destroyRef;
@@ -1069,12 +982,19 @@ declare class CngxAlerter {
1069
982
  show(config: AlertConfig): AlertRef;
1070
983
  /**
1071
984
  * @internal - called by `CngxAlertStack` on hover/focus (WCAG 2.2.1).
1072
- * Hold-counted: hover and focus-within pause independently; the timer
1073
- * resumes only when the last hold releases.
985
+ * Holds are sourced: hover and focus-within pause independently, and the
986
+ * timer resumes only when the last source releases.
1074
987
  */
1075
- pauseTimer(id: number): void;
988
+ pauseTimer(id: number, source: TimerHoldSource): void;
1076
989
  /** @internal - called by `CngxAlertStack` on pointer-leave/focus-out. */
1077
- resumeTimer(id: number): void;
990
+ resumeTimer(id: number, source: TimerHoldSource): void;
991
+ /**
992
+ * @internal - drops several hold sources of an alert in one transition.
993
+ * `CngxAlertStack` calls it for an alert that leaves the rendered set or
994
+ * when the stack unmounts: the removed element never fires `pointerleave`
995
+ * or a reliable `focusout`.
996
+ */
997
+ dropHolds(id: number, sources: readonly TimerHoldSource[]): void;
1078
998
  /** Dismiss a single alert by id. */
1079
999
  dismiss(id: number): void;
1080
1000
  /** Dismiss all alerts (optionally filtered by scope). */
@@ -1132,16 +1052,15 @@ interface StackEntry {
1132
1052
  * }
1133
1053
  * ```
1134
1054
  *
1135
- * @category ui/feedback/alert
1136
- * @docsKind primary
1137
1055
  * @wcag AA
1138
1056
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/alert/alert-stack.ts
1139
- * @since 0.1.0
1057
+ * @since 0.3.0
1140
1058
  * @relatedTo CngxAlerter, CngxAlert, CngxAlertOn
1141
1059
  *
1142
- * <example-url>http://localhost:4200/#/ui/feedback/alert-stack/basic-stack</example-url>
1143
- * <example-url>http://localhost:4200/#/ui/feedback/alert-stack/dialog-use-case</example-url>
1144
- * <example-url>http://localhost:4200/#/ui/feedback/alert-stack/overflow-collapse</example-url>
1060
+ * <example-url>/#/ui/feedback/alert-stack/basic-stack</example-url>
1061
+ * <example-url>/#/ui/feedback/alert-stack/dialog-use-case</example-url>
1062
+ * <example-url>/#/ui/feedback/alert-stack/overflow-collapse</example-url>
1063
+ * @axis level organism
1145
1064
  */
1146
1065
  declare class CngxAlertStack {
1147
1066
  /** The scoped alerter instance - use to add/dismiss alerts programmatically. */
@@ -1233,11 +1152,9 @@ declare class CngxAlertStack {
1233
1152
  * </button>
1234
1153
  * ```
1235
1154
  *
1236
- * @category ui/feedback/alert
1237
- * @docsKind primary
1238
1155
  * @wcag AA
1239
1156
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/alert/alert-on.directive.ts
1240
- * @since 0.1.0
1157
+ * @since 0.3.0
1241
1158
  * @relatedTo CngxAlertStack, CngxAlerter, CngxToastOn, CngxBannerOn
1242
1159
  */
1243
1160
  declare class CngxAlertOn {
@@ -1272,8 +1189,6 @@ declare class CngxAlertOn {
1272
1189
 
1273
1190
  /**
1274
1191
  * Configuration for a system-level banner.
1275
- *
1276
- * @category ui/feedback/banner
1277
1192
  */
1278
1193
  interface BannerConfig {
1279
1194
  /** Banner message text (required). */
@@ -1295,8 +1210,6 @@ interface BannerConfig {
1295
1210
  }
1296
1211
  /**
1297
1212
  * Handle to a displayed banner.
1298
- *
1299
- * @category ui/feedback/banner
1300
1213
  */
1301
1214
  interface BannerRef {
1302
1215
  /** Programmatically dismiss this banner. */
@@ -1306,8 +1219,6 @@ interface BannerRef {
1306
1219
  }
1307
1220
  /**
1308
1221
  * @internal - tracked state for a single banner.
1309
- *
1310
- * @category ui/feedback/banner
1311
1222
  */
1312
1223
  interface BannerState {
1313
1224
  readonly id: string;
@@ -1340,16 +1251,14 @@ interface BannerState {
1340
1251
  * });
1341
1252
  * ```
1342
1253
  *
1343
- * @category ui/feedback/banner
1344
- * @docsKind primary
1345
1254
  * @wcag AA
1346
1255
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/banner/banner.service.ts
1347
- * @since 0.1.0
1256
+ * @since 0.3.0
1348
1257
  * @relatedTo CngxBannerOutlet, CngxBannerTrigger, CngxBannerOn, CngxAlerter, CngxToaster
1349
1258
  *
1350
- * <example-url>http://localhost:4200/#/ui/feedback/banner/async-action</example-url>
1351
- * <example-url>http://localhost:4200/#/ui/feedback/banner/dedup-update</example-url>
1352
- * <example-url>http://localhost:4200/#/ui/feedback/banner/system-banners</example-url>
1259
+ * <example-url>/#/ui/feedback/banner/async-action</example-url>
1260
+ * <example-url>/#/ui/feedback/banner/dedup-update</example-url>
1261
+ * <example-url>/#/ui/feedback/banner/system-banners</example-url>
1353
1262
  */
1354
1263
  declare class CngxBanner {
1355
1264
  private readonly destroyRef;
@@ -1388,16 +1297,14 @@ declare class CngxBanner {
1388
1297
  * <router-outlet />
1389
1298
  * ```
1390
1299
  *
1391
- * @category ui/feedback/banner
1392
- * @docsKind primary
1393
1300
  * @wcag AA
1394
1301
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/banner/banner-outlet.ts
1395
- * @since 0.1.0
1302
+ * @since 0.3.0
1396
1303
  * @relatedTo CngxBanner, CngxBannerTrigger, CngxBannerOn
1397
1304
  *
1398
- * <example-url>http://localhost:4200/#/ui/feedback/banner/async-action</example-url>
1399
- * <example-url>http://localhost:4200/#/ui/feedback/banner/dedup-update</example-url>
1400
- * <example-url>http://localhost:4200/#/ui/feedback/banner/system-banners</example-url>
1305
+ * <example-url>/#/ui/feedback/banner/async-action</example-url>
1306
+ * <example-url>/#/ui/feedback/banner/dedup-update</example-url>
1307
+ * <example-url>/#/ui/feedback/banner/system-banners</example-url>
1401
1308
  */
1402
1309
  declare class CngxBannerOutlet {
1403
1310
  protected readonly service: CngxBanner;
@@ -1440,14 +1347,10 @@ declare class CngxBannerOutlet {
1440
1347
  * </div>
1441
1348
  * ```
1442
1349
  *
1443
- * @category ui/feedback/banner
1444
- * @docsKind primary
1445
1350
  * @wcag AA
1446
1351
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/banner/banner-on.directive.ts
1447
- * @since 0.1.0
1352
+ * @since 0.3.0
1448
1353
  * @relatedTo CngxBanner, CngxBannerOutlet, CngxBannerTrigger, CngxAlertOn, CngxToastOn
1449
- *
1450
- * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
1451
1354
  */
1452
1355
  declare class CngxBannerOn {
1453
1356
  private readonly bannerService;
@@ -1505,11 +1408,9 @@ declare class CngxBannerOn {
1505
1408
  * [actionHandler]="extendSession" />
1506
1409
  * ```
1507
1410
  *
1508
- * @category ui/feedback/banner
1509
- * @docsKind primary
1510
1411
  * @wcag AA
1511
1412
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/banner/banner-trigger.ts
1512
- * @since 0.1.0
1413
+ * @since 0.3.0
1513
1414
  * @relatedTo CngxBanner, CngxBannerOutlet, CngxBannerOn
1514
1415
  */
1515
1416
  declare class CngxBannerTrigger {
@@ -1543,8 +1444,6 @@ declare class CngxBannerTrigger {
1543
1444
 
1544
1445
  /**
1545
1446
  * Configuration for a single toast.
1546
- *
1547
- * @category ui/feedback/toast
1548
1447
  */
1549
1448
  interface ToastConfig {
1550
1449
  /** Toast message text. Used as sole text when `title` is not set. */
@@ -1563,9 +1462,21 @@ interface ToastConfig {
1563
1462
  description?: string;
1564
1463
  /** Visual severity - determines icon, color, and ARIA role. */
1565
1464
  severity?: AlertSeverity;
1566
- /** Auto-dismiss duration in ms, or `'persistent'` for manual dismiss only. */
1465
+ /**
1466
+ * Auto-dismiss duration in ms, or `'persistent'` for manual dismiss only.
1467
+ * Defaults: `'persistent'` for errors, the action duration (10000 ms) for
1468
+ * toasts with an `action`, the default duration (5000 ms) otherwise.
1469
+ */
1567
1470
  duration?: number | 'persistent';
1568
- /** Optional action button inside the toast. */
1471
+ /**
1472
+ * Optional action button inside the toast. A toast with an action is never
1473
+ * merged by dedup: each `show()` gets its own toast, so every handler stays
1474
+ * reachable. Without an explicit `duration` it stays up for the action
1475
+ * duration (10000 ms, `withToasts({ actionDuration })`) instead of the
1476
+ * default, so users can reach the button. Name the affected object in the
1477
+ * message ("Item 3 deleted", not "Item deleted") so the user knows what
1478
+ * the action reverts.
1479
+ */
1569
1480
  action?: {
1570
1481
  label: string;
1571
1482
  handler: () => void;
@@ -1593,8 +1504,6 @@ interface ToastConfig {
1593
1504
  }
1594
1505
  /**
1595
1506
  * Handle to a displayed toast - allows programmatic dismiss.
1596
- *
1597
- * @category ui/feedback/toast
1598
1507
  */
1599
1508
  interface ToastRef {
1600
1509
  /** Programmatically dismiss this toast. */
@@ -1605,8 +1514,6 @@ interface ToastRef {
1605
1514
  /**
1606
1515
  * Tracked state for a single toast - the element type of the public
1607
1516
  * `CngxToaster.toasts` signal. Immutable per slot; treat as read-only.
1608
- *
1609
- * @category ui/feedback/toast
1610
1517
  */
1611
1518
  interface ToastState {
1612
1519
  readonly id: number;
@@ -1630,18 +1537,16 @@ interface ToastState {
1630
1537
  *
1631
1538
  * Manages the toast stack as a signal array. `CngxToastOutlet` reads it reactively.
1632
1539
  *
1633
- * @category ui/feedback/toast
1634
- * @docsKind primary
1635
1540
  * @wcag AA
1636
1541
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/toast/toast.service.ts
1637
- * @since 0.1.0
1542
+ * @since 0.3.0
1638
1543
  * @relatedTo CngxToastOutlet, CngxToastOn, CngxToast, CngxAlerter
1639
1544
  *
1640
- * <example-url>http://localhost:4200/#/ui/feedback/toast/custom-component-body</example-url>
1641
- * <example-url>http://localhost:4200/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1642
- * <example-url>http://localhost:4200/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1643
- * <example-url>http://localhost:4200/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1644
- * <example-url>http://localhost:4200/#/ui/feedback/toast/title-description</example-url>
1545
+ * <example-url>/#/ui/feedback/toast/custom-component-body</example-url>
1546
+ * <example-url>/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1547
+ * <example-url>/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1548
+ * <example-url>/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1549
+ * <example-url>/#/ui/feedback/toast/title-description</example-url>
1645
1550
  */
1646
1551
  declare class CngxToaster {
1647
1552
  private readonly destroyRef;
@@ -1651,6 +1556,14 @@ declare class CngxToaster {
1651
1556
  readonly toasts: _angular_core.WritableSignal<readonly ToastState[]>;
1652
1557
  /** Default duration for non-error toasts - configure via `withToasts({ defaultDuration })`. */
1653
1558
  private readonly defaultDuration;
1559
+ /**
1560
+ * Default duration for non-error toasts that carry an `action` - configure
1561
+ * via `withToasts({ actionDuration })`. Longer than `defaultDuration`
1562
+ * because keyboard and screen reader users need time to reach the action
1563
+ * button before the toast leaves (WCAG 2.2.1); hover and focus pause the
1564
+ * timer on top of that.
1565
+ */
1566
+ private readonly actionDuration;
1654
1567
  /** Dedup window in ms - configure via `withToasts({ dedupWindow })`. */
1655
1568
  private readonly dedupWindow;
1656
1569
  /** Auto-dismiss timers keyed by toast id - not part of the public state shape. */
@@ -1659,17 +1572,32 @@ declare class CngxToaster {
1659
1572
  /** Show a toast. Returns a ref for programmatic control. */
1660
1573
  show(config: ToastConfig): ToastRef;
1661
1574
  /**
1662
- * @internal - called by toast-outlet on hover/focus (WCAG 2.2.1).
1663
- * Hold-counted: hover and focus-within pause independently; the timer
1664
- * resumes only when the last hold releases.
1575
+ * @internal - called by toast-outlet on hover/focus (WCAG 2.2.1) and for
1576
+ * toasts kept out of view by `maxVisible`. Holds are sourced: hover,
1577
+ * focus-within and the queue pause independently, and the timer resumes
1578
+ * only when the last source releases.
1665
1579
  */
1666
- pauseTimer(id: number): void;
1667
- /** @internal - called by toast-outlet on mouse-leave/focus-out. */
1668
- resumeTimer(id: number): void;
1580
+ pauseTimer(id: number, source: TimerHoldSource): void;
1581
+ /**
1582
+ * @internal - current countdown segment per timed toast id. `CngxToastOutlet`
1583
+ * is the only reader: it derives the `data-timer` state, the timer custom
1584
+ * properties and the serial-keyed timer element from it. Written in a
1585
+ * microtask flush, never inside a timer call.
1586
+ */
1587
+ readonly timerSegments: _angular_core.Signal<ReadonlyMap<number, _cngx_ui_feedback.TimerSegment>>;
1588
+ /** @internal - called by toast-outlet on mouse-leave/focus-out and on reveal. */
1589
+ resumeTimer(id: number, source: TimerHoldSource): void;
1590
+ /**
1591
+ * @internal - drops several hold sources of a toast in one transition. The
1592
+ * outlet calls it for a toast that leaves the visible set, whose removed
1593
+ * element never fires `pointerleave` or a reliable `focusout`.
1594
+ */
1595
+ dropHolds(id: number, sources: readonly TimerHoldSource[]): void;
1669
1596
  /** Dismiss a toast by id. */
1670
1597
  dismiss(id: number): void;
1671
1598
  /** Dismiss all toasts. */
1672
1599
  dismissAll(): void;
1600
+ private resolveDefaultDuration;
1673
1601
  private startTimer;
1674
1602
  private clearTimer;
1675
1603
  private createRef;
@@ -1684,16 +1612,11 @@ declare class CngxToaster {
1684
1612
  * providers: [provideToasts()],
1685
1613
  * });
1686
1614
  * ```
1687
- *
1688
- * @category ui/feedback/toast
1689
- *
1690
1615
  */
1691
1616
  declare function provideToasts(): EnvironmentProviders;
1692
1617
 
1693
1618
  /**
1694
1619
  * Position for the toast stack.
1695
- *
1696
- * @category ui/feedback/toast
1697
1620
  */
1698
1621
  type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | 'bottom-center' | 'bottom-end';
1699
1622
  /**
@@ -1712,18 +1635,16 @@ type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'bottom-start' | '
1712
1635
  *
1713
1636
  * @playground Async state bridges ./examples/bridges/bridges-example.component.ts
1714
1637
  *
1715
- * @category ui/feedback/toast
1716
- * @docsKind primary
1717
1638
  * @wcag AA
1718
1639
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/toast/toast-outlet.ts
1719
- * @since 0.1.0
1640
+ * @since 0.3.0
1720
1641
  * @relatedTo CngxToaster, CngxToast, CngxToastOn
1721
1642
  *
1722
- * <example-url>http://localhost:4200/#/ui/feedback/toast/custom-component-body</example-url>
1723
- * <example-url>http://localhost:4200/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1724
- * <example-url>http://localhost:4200/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1725
- * <example-url>http://localhost:4200/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1726
- * <example-url>http://localhost:4200/#/ui/feedback/toast/title-description</example-url>
1643
+ * <example-url>/#/ui/feedback/toast/custom-component-body</example-url>
1644
+ * <example-url>/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1645
+ * <example-url>/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1646
+ * <example-url>/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1647
+ * <example-url>/#/ui/feedback/toast/title-description</example-url>
1727
1648
  */
1728
1649
  declare class CngxToastOutlet {
1729
1650
  protected readonly service: CngxToaster;
@@ -1744,7 +1665,11 @@ declare class CngxToastOutlet {
1744
1665
  protected readonly regionLabel: _angular_core.Signal<string>;
1745
1666
  /** Stack position. */
1746
1667
  readonly position: _angular_core.InputSignal<ToastPosition>;
1747
- /** Maximum visible toasts - oldest are evicted. */
1668
+ /**
1669
+ * Maximum visible toasts. Toasts beyond it wait, with their timer held,
1670
+ * until a visible one leaves; when every visible toast is persistent,
1671
+ * queued toasts keep their timer running.
1672
+ */
1748
1673
  readonly maxVisible: _angular_core.InputSignal<number>;
1749
1674
  /** Insert new toasts at start or end of the stack. */
1750
1675
  readonly insertPosition: _angular_core.InputSignal<"end" | "start">;
@@ -1752,6 +1677,26 @@ declare class CngxToastOutlet {
1752
1677
  protected readonly positionClass: _angular_core.Signal<string>;
1753
1678
  /** @internal - slice to maxVisible, respecting insert position. ToastState is immutable per slot. */
1754
1679
  protected readonly visibleToasts: _angular_core.Signal<readonly ToastState[]>;
1680
+ /**
1681
+ * @internal - the toaster's countdown segments, the only timer source of the
1682
+ * view. A toast is timed exactly when it has a segment: a dedup restart that
1683
+ * switches between timed and persistent never leaves a stale config behind.
1684
+ */
1685
+ protected readonly segments: _angular_core.Signal<ReadonlyMap<number, TimerSegment>>;
1686
+ /**
1687
+ * @internal - ids kept out of view by `maxVisible`, and whether their timers
1688
+ * are held. Not held while no visible toast is timed: a held queue would
1689
+ * never move. `running` reads the hold back from the registry segments, so a
1690
+ * hidden toast whose timer (re)starts without the queue hold - a dedup repeat
1691
+ * turning a persistent toast timed, or a restart after `clear()` - is held
1692
+ * again instead of expiring unseen.
1693
+ */
1694
+ private readonly queue;
1695
+ constructor();
1696
+ /** @internal - `data-timer` value: absent without a segment. */
1697
+ protected timerState(segment: TimerSegment | null): 'running' | 'paused' | null;
1698
+ /** @internal - negative elapsed time of the segment, the animation start offset. */
1699
+ protected timerOffset(segment: TimerSegment | null): number | null;
1755
1700
  /** @internal - resolve icon component from global config or null. */
1756
1701
  protected iconFor(toast: ToastState): _angular_core.Type<unknown> | null;
1757
1702
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxToastOutlet, never>;
@@ -1785,19 +1730,17 @@ declare class CngxToastOutlet {
1785
1730
  * </form>
1786
1731
  * ```
1787
1732
  *
1788
- * @category ui/feedback/toast
1789
- * @docsKind primary
1790
1733
  * @wcag AA
1791
1734
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/toast/toast-on.directive.ts
1792
- * @since 0.1.0
1735
+ * @since 0.3.0
1793
1736
  * @relatedTo CngxToaster, CngxToastOutlet, CngxAlertOn, CngxBannerOn
1794
1737
  *
1795
- * <example-url>http://localhost:4200/#/ui/feedback/toast/custom-component-body</example-url>
1796
- * <example-url>http://localhost:4200/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1797
- * <example-url>http://localhost:4200/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1798
- * <example-url>http://localhost:4200/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1799
- * <example-url>http://localhost:4200/#/ui/feedback/toast/title-description</example-url>
1800
- * <example-url>http://localhost:4200/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
1738
+ * <example-url>/#/ui/feedback/toast/custom-component-body</example-url>
1739
+ * <example-url>/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1740
+ * <example-url>/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1741
+ * <example-url>/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1742
+ * <example-url>/#/ui/feedback/toast/title-description</example-url>
1743
+ * @axis level organism
1801
1744
  */
1802
1745
  declare class CngxToastOn {
1803
1746
  private readonly toast;
@@ -1824,15 +1767,47 @@ declare class CngxToastOn {
1824
1767
  * nothing in production).
1825
1768
  */
1826
1769
  readonly toastErrorDetail: _angular_core.InputSignal<boolean>;
1827
- /** Duration for success toasts in ms. */
1828
- readonly toastSuccessDuration: _angular_core.InputSignal<number>;
1829
- /** Duration for error toasts - `'persistent'` means manual dismiss only. */
1830
- readonly toastErrorDuration: _angular_core.InputSignal<number | "persistent">;
1770
+ /**
1771
+ * Duration for success toasts in ms. Unbound, `CngxToaster` resolves it:
1772
+ * `withToasts({ defaultDuration })`, else 5000 ms.
1773
+ */
1774
+ readonly toastSuccessDuration: _angular_core.InputSignal<number | undefined>;
1775
+ /**
1776
+ * Duration for error toasts; `'persistent'` means manual dismiss only.
1777
+ * Unbound, `CngxToaster` resolves it (an error toast stays until dismissed).
1778
+ */
1779
+ readonly toastErrorDuration: _angular_core.InputSignal<number | "persistent" | undefined>;
1831
1780
  constructor();
1832
1781
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxToastOn, never>;
1833
1782
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxToastOn, "[cngxToastOn]", never, { "state": { "alias": "cngxToastOn"; "required": false; "isSignal": true; }; "toastSuccess": { "alias": "toastSuccess"; "required": false; "isSignal": true; }; "toastError": { "alias": "toastError"; "required": false; "isSignal": true; }; "toastErrorDetail": { "alias": "toastErrorDetail"; "required": false; "isSignal": true; }; "toastSuccessDuration": { "alias": "toastSuccessDuration"; "required": false; "isSignal": true; }; "toastErrorDuration": { "alias": "toastErrorDuration"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1834
1783
  }
1835
1784
 
1785
+ /**
1786
+ * The toast inputs `CngxToastOn` and `CngxActionToast` share, read as
1787
+ * signals by `resolveOutcomeToast`.
1788
+ *
1789
+ * @internal
1790
+ */
1791
+ interface CngxOutcomeToastInputs {
1792
+ readonly toastSuccess: () => string | undefined;
1793
+ readonly toastError: () => string | undefined;
1794
+ readonly toastErrorDetail: () => boolean;
1795
+ readonly toastSuccessDuration: () => number | undefined;
1796
+ readonly toastErrorDuration: () => number | 'persistent' | undefined;
1797
+ }
1798
+ /**
1799
+ * The toast one `success` / `error` outcome shows, or `undefined` when the
1800
+ * outcome has no message. The error toast appends the mapped error detail
1801
+ * through `errorWithDetail` when `toastErrorDetail` is set. An unbound
1802
+ * duration stays `undefined` so `CngxToaster` resolves it.
1803
+ *
1804
+ * Only the show path is shared: `CngxToastOn` fires on a state transition,
1805
+ * `CngxActionToast` once per action outcome, and each keeps its trigger.
1806
+ *
1807
+ * @internal
1808
+ */
1809
+ declare function resolveOutcomeToast(inputs: CngxOutcomeToastInputs, status: 'success' | 'error', error: unknown, detailOf: CngxErrorDetailFn, i18n: Pick<CngxFeedbackI18n, 'errorWithDetail'>): ToastConfig | undefined;
1810
+
1836
1811
  /**
1837
1812
  * Declarative toast - renders nothing at its position, pushes into the global `CngxToastOutlet`.
1838
1813
  *
@@ -1864,18 +1839,17 @@ declare class CngxToastOn {
1864
1839
  * <cngx-toast severity="error" message="Save failed" [when]="saveState.status() === 'error'" />
1865
1840
  * ```
1866
1841
  *
1867
- * @category ui/feedback/toast
1868
- * @docsKind primary
1869
1842
  * @wcag AA
1870
1843
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/toast/toast.component.ts
1871
- * @since 0.1.0
1844
+ * @since 0.3.0
1872
1845
  * @relatedTo CngxToaster, CngxToastOutlet, CngxToastOn
1873
1846
  *
1874
- * <example-url>http://localhost:4200/#/ui/feedback/toast/custom-component-body</example-url>
1875
- * <example-url>http://localhost:4200/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1876
- * <example-url>http://localhost:4200/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1877
- * <example-url>http://localhost:4200/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1878
- * <example-url>http://localhost:4200/#/ui/feedback/toast/title-description</example-url>
1847
+ * <example-url>/#/ui/feedback/toast/custom-component-body</example-url>
1848
+ * <example-url>/#/ui/feedback/toast/declarative-cngx-toast</example-url>
1849
+ * <example-url>/#/ui/feedback/toast/programmatic-cngxtoaster</example-url>
1850
+ * <example-url>/#/ui/feedback/toast/state-bridge-cngxtoaston</example-url>
1851
+ * <example-url>/#/ui/feedback/toast/title-description</example-url>
1852
+ * @axis level organism
1879
1853
  */
1880
1854
  declare class CngxToast {
1881
1855
  private readonly toaster;
@@ -1892,6 +1866,12 @@ declare class CngxToast {
1892
1866
  readonly dismissible: _angular_core.InputSignal<boolean>;
1893
1867
  /** Action button config. */
1894
1868
  readonly actionLabel: _angular_core.InputSignal<string | undefined>;
1869
+ /**
1870
+ * Callback run, without arguments, when the toast's action button is clicked. The button
1871
+ * renders only when `actionLabel` is set as well, and the click does not dismiss the toast.
1872
+ * The label and handler are read when the toast is shown, so later changes do not update a
1873
+ * toast that is already visible.
1874
+ */
1895
1875
  readonly actionHandler: _angular_core.InputSignal<(() => void) | undefined>;
1896
1876
  /** Emitted when the shown toast is dismissed (auto, manual, or falling edge). */
1897
1877
  readonly dismissed: _angular_core.OutputEmitterRef<void>;
@@ -1921,9 +1901,8 @@ declare class CngxToast {
1921
1901
  /**
1922
1902
  * Marks the skeleton template inside `cngx-async-container`.
1923
1903
  *
1924
- * @category ui/feedback/async
1925
1904
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/async-container/async-container.ts
1926
- * @since 0.1.0
1905
+ * @since 0.3.0
1927
1906
  */
1928
1907
  declare class CngxAsyncSkeletonTpl {
1929
1908
  readonly templateRef: TemplateRef<any>;
@@ -1934,9 +1913,8 @@ declare class CngxAsyncSkeletonTpl {
1934
1913
  * Marks the content template inside `cngx-async-container`.
1935
1914
  * Context: `{ $implicit: T }` - use `let-data` to access.
1936
1915
  *
1937
- * @category ui/feedback/async
1938
1916
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/async-container/async-container.ts
1939
- * @since 0.1.0
1917
+ * @since 0.3.0
1940
1918
  */
1941
1919
  declare class CngxAsyncContentTpl<T> {
1942
1920
  readonly templateRef: TemplateRef<{
@@ -1951,9 +1929,8 @@ declare class CngxAsyncContentTpl<T> {
1951
1929
  /**
1952
1930
  * Marks the empty-state template inside `cngx-async-container`.
1953
1931
  *
1954
- * @category ui/feedback/async
1955
1932
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/async-container/async-container.ts
1956
- * @since 0.1.0
1933
+ * @since 0.3.0
1957
1934
  */
1958
1935
  declare class CngxAsyncEmptyTpl {
1959
1936
  readonly templateRef: TemplateRef<any>;
@@ -1964,9 +1941,8 @@ declare class CngxAsyncEmptyTpl {
1964
1941
  * Marks the error template inside `cngx-async-container`.
1965
1942
  * Context: `{ $implicit: unknown }` - use `let-err` to access.
1966
1943
  *
1967
- * @category ui/feedback/async
1968
1944
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/async-container/async-container.ts
1969
- * @since 0.1.0
1945
+ * @since 0.3.0
1970
1946
  */
1971
1947
  declare class CngxAsyncErrorTpl {
1972
1948
  readonly templateRef: TemplateRef<{
@@ -2004,24 +1980,22 @@ declare class CngxAsyncErrorTpl {
2004
1980
  *
2005
1981
  * @playground Data flow ./examples/data-flow/data-flow-example.component.ts
2006
1982
  *
2007
- * @category ui/feedback/async
2008
- * @docsKind primary
2009
1983
  * @wcag AA
2010
1984
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/feedback/async-container/async-container.ts
2011
- * @since 0.1.0
1985
+ * @since 0.3.0
2012
1986
  * @relatedTo CngxLoadingIndicator, CngxLoadingOverlay, CngxAlert, CngxToaster
2013
1987
  * @slot cngxAsyncContent Rendered on success; gets the resolved value.
2014
1988
  * @slot cngxAsyncSkeleton Rendered during the first load.
2015
1989
  * @slot cngxAsyncEmpty Rendered when the value resolves to nothing.
2016
1990
  * @slot cngxAsyncError Rendered on failure; gets the error as `$implicit` (use `let-err`).
2017
1991
  *
2018
- * <example-url>http://localhost:4200/#/forms/filter-builder/filter-builder-async-state/loading-error-content-branches-via-cngx-async-container</example-url>
2019
- * <example-url>http://localhost:4200/#/ui/feedback/async-container/cngx-async-container-full-control-toast</example-url>
2020
- * <example-url>http://localhost:4200/#/ui/feedback/async-container/cngxasync-one-line</example-url>
2021
- * <example-url>http://localhost:4200/#/ui/feedback/async-container/cngxasync-with-custom-templates</example-url>
2022
- * <example-url>http://localhost:4200/#/ui/feedback/async-container/composition-overlay-container-toast</example-url>
2023
- * <example-url>http://localhost:4200/#/ui/feedback/async-container/createasyncstate-mutation</example-url>
2024
- * <example-url>http://localhost:4200/#/ui/feedback/async-container/injectasyncstate-reactive-query</example-url>
1992
+ * <example-url>/#/ui/feedback/async-container/cngx-async-container-full-control-toast</example-url>
1993
+ * <example-url>/#/ui/feedback/async-container/cngxasync-one-line</example-url>
1994
+ * <example-url>/#/ui/feedback/async-container/cngxasync-with-custom-templates</example-url>
1995
+ * <example-url>/#/ui/feedback/async-container/composition-overlay-container-toast</example-url>
1996
+ * <example-url>/#/ui/feedback/async-container/createasyncstate-mutation</example-url>
1997
+ * <example-url>/#/ui/feedback/async-container/injectasyncstate-reactive-query</example-url>
1998
+ * @axis level molecule
2025
1999
  */
2026
2000
  declare class CngxAsyncContainer<T> {
2027
2001
  private readonly toaster;
@@ -2057,8 +2031,17 @@ declare class CngxAsyncContainer<T> {
2057
2031
  * @internal - flash-suppressed first-load skeleton view. A sub-`showDelay` first
2058
2032
  * load never renders the skeleton outlet; once shown it holds for `minDwell`. The
2059
2033
  * region `aria-busy` stays truthful (`state().isBusy()`); only the visual is gated.
2034
+ * See {@link renderedView} for which exits wait for the hold.
2060
2035
  */
2061
2036
  protected readonly skeletonVisible: _angular_core.Signal<boolean>;
2037
+ /**
2038
+ * @internal - the view the template renders. While a shown first-load skeleton
2039
+ * is still inside its `minDwell`, a `content` or `empty` result waits and swaps
2040
+ * in when the dwell ends. An `error` replaces the skeleton immediately, and a
2041
+ * reset to idle (`none`) clears it immediately. The live-region announcement
2042
+ * follows the status, not this view, so AT hears the result without the delay.
2043
+ */
2044
+ protected readonly renderedView: _angular_core.Signal<AsyncView>;
2062
2045
  /** @internal - flash-suppressed refresh bar, gated by the same showDelay + minDwell. */
2063
2046
  protected readonly refreshVisible: _angular_core.Signal<boolean>;
2064
2047
  /** @internal */
@@ -2077,5 +2060,5 @@ declare class CngxAsyncContainer<T> {
2077
2060
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxAsyncContainer<any>, "cngx-async-container", never, { "state": { "alias": "state"; "required": true; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; "minDwell": { "alias": "minDwell"; "required": false; "isSignal": true; }; "refreshIndicator": { "alias": "refreshIndicator"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "toastSuccess": { "alias": "toastSuccess"; "required": false; "isSignal": true; }; "toastError": { "alias": "toastError"; "required": false; "isSignal": true; }; }, {}, ["skeletonTpl", "contentTpl", "emptyTpl", "errorTpl"], never, true, never>;
2078
2061
  }
2079
2062
 
2080
- export { CNGX_FEEDBACK_CONFIG, CNGX_FEEDBACK_I18N, CNGX_FEEDBACK_LANGUAGE_EN, CngxAlert, CngxAlertAction, CngxAlertIcon, CngxAlertOn, CngxAlertStack, CngxAlerter, CngxAsyncContainer, CngxAsyncContentTpl, CngxAsyncEmptyTpl, CngxAsyncErrorTpl, CngxAsyncSkeletonTpl, CngxBanner, CngxBannerOn, CngxBannerOutlet, CngxBannerTrigger, CngxLoadingIndicator, CngxLoadingOverlay, CngxProgress, CngxToast, CngxToastOn, CngxToastOutlet, CngxToaster, injectErrorDetail, injectFeedbackI18n, provideFeedback, provideFeedbackI18n, provideToasts, withAlertIcons, withAlerts, withBanners, withCloseIcon, withErrorDetail, withFeedbackI18nLabels, withLoadingDefaults, withSpinnerTemplate, withToasts };
2081
- export type { AlertConfig, AlertRef, AlertSeverity, AlertState, AlertVisibilityPhase, BannerConfig, BannerRef, BannerState, CngxErrorDetailFn, CngxFeedbackAnnouncements, CngxFeedbackAnnouncementsLanguage, CngxFeedbackI18n, CngxFeedbackI18nOverrides, CngxFeedbackLanguageSection, FeedbackConfig, FeedbackFeature, LoadingIndicatorVariant, ProgressVariant, ToastConfig, ToastPosition, ToastRef, ToastState };
2063
+ export { CNGX_FEEDBACK_CONFIG, CNGX_FEEDBACK_I18N, CNGX_FEEDBACK_LANGUAGE_EN, CngxAlert, CngxAlertAction, CngxAlertIcon, CngxAlertOn, CngxAlertStack, CngxAlerter, CngxAsyncContainer, CngxAsyncContentTpl, CngxAsyncEmptyTpl, CngxAsyncErrorTpl, CngxAsyncSkeletonTpl, CngxBanner, CngxBannerOn, CngxBannerOutlet, CngxBannerTrigger, CngxLoadingIndicator, CngxLoadingOverlay, CngxProgress, CngxToast, CngxToastOn, CngxToastOutlet, CngxToaster, injectErrorDetail, injectFeedbackI18n, provideFeedback, provideFeedbackI18n, provideToasts, resolveOutcomeToast, withAlertIcons, withAlerts, withBanners, withCloseIcon, withErrorDetail, withFeedbackI18nLabels, withSpinnerTemplate, withToasts };
2064
+ export type { AlertConfig, AlertRef, AlertSeverity, AlertState, AlertVisibilityPhase, BannerConfig, BannerRef, BannerState, CngxErrorDetailFn, CngxFeedbackAnnouncements, CngxFeedbackAnnouncementsLanguage, CngxFeedbackI18n, CngxFeedbackI18nOverrides, CngxFeedbackLanguageSection, CngxOutcomeToastInputs, FeedbackConfig, FeedbackFeature, LoadingIndicatorVariant, ProgressVariant, TimerHoldSource, TimerSegment, ToastConfig, ToastPosition, ToastRef, ToastState };