@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
@@ -2,20 +2,14 @@ import * as _angular_core from '@angular/core';
2
2
 
3
3
  /**
4
4
  * Main-axis direction for {@link CngxStack}.
5
- *
6
- * @category ui/layout
7
5
  */
8
6
  type StackDirection = 'row' | 'column';
9
7
  /**
10
8
  * Cross-axis alignment for {@link CngxStack}.
11
- *
12
- * @category ui/layout
13
9
  */
14
10
  type StackAlign = 'start' | 'center' | 'end' | 'stretch';
15
11
  /**
16
12
  * Spacing scale for {@link CngxStack}. Maps to `--cngx-gap-*` tokens.
17
- *
18
- * @category ui/layout
19
13
  */
20
14
  type StackGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
21
15
  /**
@@ -31,11 +25,10 @@ type StackGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
31
25
  * <div>Item 2</div>
32
26
  * </cngx-stack>
33
27
  *
34
- * @category ui/layout
35
- * @docsKind primary
36
28
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/layout/stack.component.ts
37
- * @since 0.1.0
29
+ * @since 0.3.0
38
30
  * @relatedTo CngxGrid
31
+ * @axis level organism
39
32
  */
40
33
  declare class CngxStack {
41
34
  /** Flex direction of the stack. */
@@ -66,11 +59,10 @@ declare class CngxStack {
66
59
  * Bare attribute syntax works for both forms: `columns="3"` and
67
60
  * `[columns]="3"` produce identical output.
68
61
  *
69
- * @category ui/layout
70
- * @docsKind primary
71
62
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/layout/grid.component.ts
72
- * @since 0.1.0
63
+ * @since 0.3.0
73
64
  * @relatedTo CngxStack
65
+ * @axis level organism
74
66
  */
75
67
  declare class CngxGrid {
76
68
  /** Number of equal columns, or a custom `grid-template-columns` value. */
@@ -50,12 +50,11 @@ import * as i1 from '@cngx/common/interactive';
50
50
  * ```
51
51
  *
52
52
  * @playground Controlled open-set ./examples/bridge/bridge-example.component.ts
53
- * @category ui/mat-accordion
54
- * @docsKind primary
55
53
  * @wcag AA
56
54
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-accordion/mat-accordion.directive.ts
57
- * @since 0.1.0
55
+ * @since 0.3.0
58
56
  * @relatedTo CngxAccordion, CngxAccordionItem, CngxMatStepper, CngxMatTabs
57
+ * @axis level molecule
59
58
  */
60
59
  declare class CngxMatAccordion {
61
60
  private readonly matAccordion;
@@ -74,8 +73,9 @@ declare class CngxMatAccordion {
74
73
  * open-set stores for that panel - making a pre-populated
75
74
  * `[(openIds)]` model addressable (the generated
76
75
  * `cngx-mat-panel-N` ids are unknowable to consumers). The
77
- * function must return a stable, unique id per panel instance;
78
- * `MatExpansionPanel.id` (consumer-assignable) is a natural key.
76
+ * function must return a stable, unique id per panel instance.
77
+ * `MatExpansionPanel.id` is a readonly id the CDK generates, so it is
78
+ * not known up front; key panels from your own data instead.
79
79
  * Unbound, ids fall back to generated `nextUid` values. Swapping
80
80
  * the bound function at runtime re-keys future events but does not
81
81
  * migrate ids already stored in `openIds` - bind it once.
@@ -6,8 +6,6 @@ export { CngxPaginateResetOn, CngxPaginateRouting } from '@cngx/common/data';
6
6
  /**
7
7
  * Context handed to {@link CngxMatPaginator.announceLabel} to build the
8
8
  * screen-reader announcement after each page / page-size change.
9
- *
10
- * @category ui/mat-paginator
11
9
  */
12
10
  interface CngxMatPaginatorAnnounceContext {
13
11
  /** 1-based current page. */
@@ -62,17 +60,13 @@ interface CngxMatPaginatorAnnounceContext {
62
60
  * </ul>
63
61
  * ```
64
62
  *
65
- * @category ui/mat-paginator
66
- * @docsKind primary
67
63
  * @wcag AA
68
64
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-paginator/mat-paginator-bridge.directive.ts
69
- * @since 0.1.0
65
+ * @since 0.3.0
70
66
  * @relatedTo CngxPaginate, CngxMatStepper, CngxPaginator
71
- * <example-url>http://localhost:4200/#/common/data/data-source/datasource-cngxpaginate-manual-pipeline</example-url>
72
- * <example-url>http://localhost:4200/#/common/data/paginate-list/bridge-announce-page-changes</example-url>
73
- * <example-url>http://localhost:4200/#/common/data/paginate-list/instrumentation-bridge-cngxmatpaginator</example-url>
74
- * <example-url>http://localhost:4200/#/common/data/paginate-list/paginated-list-cngxpaginate-cngxmatpaginator</example-url>
75
- * <example-url>http://localhost:4200/#/common/data/paginate-list/uncontrolled-mode-zero-class-boilerplate</example-url>
67
+ * <example-url>/#/ui/mat-paginator/bridge-announce-page-changes</example-url>
68
+ * <example-url>/#/ui/mat-paginator/instrumentation-bridge-cngxmatpaginator</example-url>
69
+ * @axis level molecule
76
70
  */
77
71
  declare class CngxMatPaginator {
78
72
  private readonly matPaginator;
@@ -23,7 +23,7 @@ import { MatStep } from '@angular/material/stepper';
23
23
  * Commit-lifecycle transitions speak: the shared announcement builder
24
24
  * feeds the root live announcer (pending / landed / rolled-back
25
25
  * phrases, identical to `<cngx-stepper>`), and the host carries
26
- * `aria-busy="true"` while a commit is in flight.
26
+ * `aria-busy="true"` while a commit or the finish run is in flight.
27
27
  *
28
28
  * Inputs/outputs are forwarded from {@link CngxStepperPresenter}:
29
29
  * - `activeStepIndex` (two-way, with `activeStepIndexChange`),
@@ -63,12 +63,12 @@ import { MatStep } from '@angular/material/stepper';
63
63
  * ```
64
64
  * @playground Bridge instrumentation ./examples/bridge/bridge-example.component.ts
65
65
  *
66
- * @category ui/mat-stepper
67
- * @docsKind primary
68
66
  * @wcag AA
69
67
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-stepper/mat-stepper.directive.ts
70
- * @since 0.1.0
68
+ * @since 0.3.0
71
69
  * @relatedTo CngxStepper, CngxStepperPresenter, CngxMatTabs, CngxStepperFooter
70
+ * <example-url>/#/ui/mat-stepper/stepper-footer/mat-stepper-footer</example-url>
71
+ * @axis level organism
72
72
  */
73
73
  declare class CngxMatStepper {
74
74
  private readonly matStepper;
@@ -152,8 +152,6 @@ interface CngxMatStepHandleSetup {
152
152
  * pattern.
153
153
  * - `errorAggregator` - points at the shared
154
154
  * {@link NO_ERROR_AGGREGATOR} constant.
155
- *
156
- * @category ui/mat-stepper
157
155
  */
158
156
  declare function createMatStepHandle(matStep: MatStep, idSeed: () => string, i18n: Signal<CngxStepperI18n>): CngxMatStepHandleSetup;
159
157
  /**
@@ -164,8 +162,6 @@ declare function createMatStepHandle(matStep: MatStep, idSeed: () => string, i18
164
162
  * The third argument is the stepper i18n Signal the directive injected;
165
163
  * it carries the last-resort label (`stepFallbackLabel`). Forward it when
166
164
  * delegating to {@link createMatStepHandle}.
167
- *
168
- * @category ui/mat-stepper
169
165
  */
170
166
  type CngxMatStepHandleFactory = typeof createMatStepHandle;
171
167
  /**
@@ -201,10 +197,9 @@ type CngxMatStepHandleFactory = typeof createMatStepHandle;
201
197
  * ]
202
198
  * ```
203
199
  *
204
- * @category ui/mat-stepper
205
200
  * @wcag AA
206
201
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-stepper/material-bridge/handle.ts
207
- * @since 0.1.0
202
+ * @since 0.3.0
208
203
  */
209
204
  declare const CNGX_MAT_STEP_HANDLE_FACTORY: InjectionToken<typeof createMatStepHandle>;
210
205
 
@@ -1,7 +1,7 @@
1
- import * as i1 from '@cngx/common/tabs';
2
- import { CngxTabHandle, CngxTabOverflowDomAdapter } from '@cngx/common/tabs';
3
1
  import * as i0 from '@angular/core';
4
2
  import { Signal, WritableSignal, InjectionToken, Injector, OnInit, TemplateRef, EnvironmentProviders, Provider } from '@angular/core';
3
+ import * as i1 from '@cngx/common/tabs';
4
+ import { CngxTabHandle, CngxTabOverflowDomAdapter } from '@cngx/common/tabs';
5
5
  import { MatTab } from '@angular/material/tabs';
6
6
  import { CngxErrorAggregatorContract } from '@cngx/common/interactive';
7
7
  import { MatStepperIconContext } from '@angular/material/stepper';
@@ -47,16 +47,12 @@ interface CngxMatTabHandleSetup {
47
47
  * - `directError` - writable seeded at `false`;
48
48
  * `[cngxMatTabErrorFlag]` writes its `string | boolean` value in
49
49
  * and resets on teardown. Folds into `hasError` / `errorMessage`.
50
- *
51
- * @category ui/mat-tabs
52
50
  */
53
51
  declare function createMatTabHandle(matTab: MatTab, idSeed: () => string, injector: Injector): CngxMatTabHandleSetup;
54
52
  /**
55
53
  * Factory signature for {@link createMatTabHandle}. The DI token
56
54
  * {@link CNGX_MAT_TAB_HANDLE_FACTORY} resolves to a function with
57
55
  * this exact shape - overrides match it identically.
58
- *
59
- * @category ui/mat-tabs
60
56
  */
61
57
  type CngxMatTabHandleFactory = typeof createMatTabHandle;
62
58
  /**
@@ -83,25 +79,22 @@ type CngxMatTabHandleFactory = typeof createMatTabHandle;
83
79
  * ]
84
80
  * ```
85
81
  *
86
- * @category ui/mat-tabs
87
82
  * @wcag AA
88
83
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/material-bridge/handle.ts
89
- * @since 0.1.0
84
+ * @since 0.3.0
90
85
  */
91
86
  declare const CNGX_MAT_TAB_HANDLE_FACTORY: InjectionToken<typeof createMatTabHandle>;
92
87
 
93
88
  /**
94
89
  * Read-mostly contract for the per-tab handle-setup registry.
95
- * `[cngxMatTabError]` and any future `[cngxMatTab*]` decoration
96
- * directive injects this with `{ host: true }` to reach the
97
- * per-handle `errorAggregator` slot without walking the concrete
98
- * registry class.
99
- *
100
- * Return type narrows to `Pick<..., 'errorAggregator'>` so the
101
- * access path exposes only the per-handle aggregator slot; the
102
- * rest of the setup stays internal bookkeeping.
103
- *
104
- * @category ui/mat-tabs
90
+ * `[cngxMatTabError]`, `[cngxMatTabErrorFlag]` and any future
91
+ * `[cngxMatTab*]` decoration directive injects this with
92
+ * `{ host: true }` to reach the per-handle `errorAggregator` and
93
+ * `directError` slots without walking the concrete registry class.
94
+ *
95
+ * Return type narrows to `Pick<..., 'errorAggregator' | 'directError'>`
96
+ * so the access path exposes only those two slots; the rest of the
97
+ * setup stays internal bookkeeping.
105
98
  */
106
99
  interface CngxMatTabsRegistryHost {
107
100
  /**
@@ -120,10 +113,9 @@ interface CngxMatTabsRegistryHost {
120
113
  * `{ host: true }` to reach per-handle slots without walking the
121
114
  * concrete registry class.
122
115
  *
123
- * @category ui/mat-tabs
124
116
  * @wcag AA
125
117
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tabs-registry.directive.ts
126
- * @since 0.1.0
118
+ * @since 0.3.0
127
119
  */
128
120
  declare const CNGX_MAT_TABS_REGISTRY_HOST: InjectionToken<CngxMatTabsRegistryHost>;
129
121
  /**
@@ -151,11 +143,9 @@ declare const CNGX_MAT_TABS_REGISTRY_HOST: InjectionToken<CngxMatTabsRegistryHos
151
143
  * both share the parent's `CngxTabGroupPresenter` and the same
152
144
  * `<mat-tab-group>` content-children scope.
153
145
  *
154
- * @category ui/mat-tabs
155
- * @docsKind primary
156
146
  * @wcag AA
157
147
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tabs-registry.directive.ts
158
- * @since 0.1.0
148
+ * @since 0.3.0
159
149
  * @relatedTo CngxMatTabs, CngxMatTabError, CNGX_MAT_TABS_REGISTRY_HOST
160
150
  */
161
151
  declare class CngxMatTabsRegistry implements CngxMatTabsRegistryHost {
@@ -167,6 +157,12 @@ declare class CngxMatTabsRegistry implements CngxMatTabsRegistryHost {
167
157
  private readonly matTabs;
168
158
  private readonly seam;
169
159
  constructor();
160
+ /**
161
+ * Returns the writable `errorAggregator` and `directError` slots of the given `<mat-tab>`, or
162
+ * `undefined` while the tab is not registered yet. Implements `CngxMatTabsRegistryHost`, which
163
+ * `CngxMatTabError` and `CngxMatTabErrorFlag` call to write their value and to reset it on
164
+ * destroy.
165
+ */
170
166
  getHandleSetup(matTab: MatTab): Pick<CngxMatTabHandleSetup, 'errorAggregator' | 'directError'> | undefined;
171
167
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxMatTabsRegistry, never>;
172
168
  static ɵdir: i0.ɵɵDirectiveDeclaration<CngxMatTabsRegistry, "[cngxMatTabsRegistry]", ["cngxMatTabsRegistry"], {}, {}, ["matTabs"], never, true, never>;
@@ -203,14 +199,13 @@ declare class CngxMatTabsRegistry implements CngxMatTabsRegistryHost {
203
199
  *
204
200
  * @playground Form error aggregation ./examples/form-errors/form-errors.component.ts
205
201
  *
206
- * @category ui/mat-tabs
207
- * @docsKind primary
208
202
  * @wcag AA
209
203
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tabs.directive.ts
210
- * @since 0.1.0
204
+ * @since 0.3.0
211
205
  * @relatedTo CngxMatTabsRegistry, CngxMatTabError, CngxMatStepper
212
206
  * @slot cngxMatTabAggregatorContent Replaces the aggregated error summary projected into a Material tab.
213
207
  * @slot cngxMatTabRejectionContent Replaces the rejection notice on a rolled-back Material tab.
208
+ * @axis level organism
214
209
  */
215
210
  declare class CngxMatTabs {
216
211
  private readonly matTabGroup;
@@ -222,10 +217,9 @@ declare class CngxMatTabs {
222
217
  private readonly viewContainerRef;
223
218
  private readonly overflowRef;
224
219
  private readonly aggregatorContentSlot;
225
- private readonly aggregatorContentTemplate;
226
220
  private readonly matTabsConfig;
227
221
  private readonly rejectionContentSlot;
228
- private readonly rejectionContentTemplate;
222
+ private readonly decorationTemplates;
229
223
  private readonly i18n;
230
224
  private readonly rejectionState;
231
225
  private readonly aggregatedErrorTabs;
@@ -273,19 +267,22 @@ declare class CngxMatTabs {
273
267
  * the live-region announcer come for free, identical to the cngx
274
268
  * organism (Pillar 2 - same communication across skins).
275
269
  *
276
- * Decoration content-template slots (`*cngxMatTabRejectionContent` /
277
- * `*cngxMatTabAggregatorContent`) are not forwarded on this bridge yet -
278
- * the projectors render their built-in `cngx-sr-only` spans. The slot
279
- * inputs that `[cngxMatTabs]` exposes are a deferred follow-up.
270
+ * Decoration content-template slots resolve as on `[cngxMatTabs]`:
271
+ * a projected `*cngxMatTabRejectionContent` wins over
272
+ * `provideMatTabsConfig(withMatTabRejectionTemplate(...))`, and a
273
+ * projected `*cngxMatTabAggregatorContent` replaces the aggregated error
274
+ * summary; without either, the projectors render their built-in
275
+ * `cngx-sr-only` text.
280
276
  *
281
277
  * @playground Native router tabs with a CanDeactivate guard ./examples/router-nav/router-nav.component.ts
282
278
  *
283
- * @category ui/mat-tabs
284
- * @docsKind primary
285
279
  * @wcag AA
286
280
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tab-nav.directive.ts
287
- * @since 0.1.0
281
+ * @since 0.3.0
288
282
  * @relatedTo CngxMatTabLink, CngxMatTabs, CngxTabsRouteSync
283
+ * @slot cngxMatTabAggregatorContent Replaces the aggregated error summary projected into a Material tab.
284
+ * @slot cngxMatTabRejectionContent Replaces the rejection notice on a rolled-back Material tab.
285
+ * @axis level organism
289
286
  */
290
287
  declare class CngxMatTabNav {
291
288
  private readonly presenter;
@@ -293,7 +290,12 @@ declare class CngxMatTabNav {
293
290
  private readonly injector;
294
291
  private readonly renderer;
295
292
  private readonly hostEl;
293
+ private readonly viewContainerRef;
294
+ private readonly matTabsConfig;
296
295
  private readonly i18n;
296
+ private readonly aggregatorContentSlot;
297
+ private readonly rejectionContentSlot;
298
+ private readonly decorationTemplates;
297
299
  private readonly rejectionState;
298
300
  private readonly aggregatedErrorTabs;
299
301
  constructor();
@@ -304,7 +306,7 @@ declare class CngxMatTabNav {
304
306
  */
305
307
  clearLastFailed(): void;
306
308
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxMatTabNav, never>;
307
- static ɵdir: i0.ɵɵDirectiveDeclaration<CngxMatTabNav, "[cngxMatTabNav]", ["cngxMatTabNav"], {}, {}, never, never, true, [{ directive: typeof i1.CngxTabGroupPresenter; inputs: { "activeIndex": "activeIndex"; }; outputs: { "activeIndexChange": "activeIndexChange"; }; }]>;
309
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxMatTabNav, "[cngxMatTabNav]", ["cngxMatTabNav"], {}, {}, ["aggregatorContentSlot", "rejectionContentSlot"], never, true, [{ directive: typeof i1.CngxTabGroupPresenter; inputs: { "activeIndex": "activeIndex"; }; outputs: { "activeIndexChange": "activeIndexChange"; }; }]>;
308
310
  }
309
311
 
310
312
  /**
@@ -326,15 +328,12 @@ declare class CngxMatTabNav {
326
328
  * which matches each handle's `id` (set to the route segment) against
327
329
  * the URL.
328
330
  *
329
- * @category ui/mat-tabs
330
- * @docsKind primary
331
331
  * @wcag AA
332
332
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tab-link.directive.ts
333
- * @since 0.1.0
333
+ * @since 0.3.0
334
334
  * @relatedTo CngxMatTabNav, CngxMatTabs, CngxTab
335
335
  */
336
336
  declare class CngxMatTabLink implements OnInit {
337
- private readonly matLink;
338
337
  private readonly host;
339
338
  private readonly destroyRef;
340
339
  /**
@@ -354,12 +353,19 @@ declare class CngxMatTabLink implements OnInit {
354
353
  readonly error: i0.InputSignal<string | boolean>;
355
354
  /** Optional rich error aggregator for the link. */
356
355
  readonly errorAggregator: i0.InputSignal<CngxErrorAggregatorContract | undefined>;
356
+ /**
357
+ * Disabled state of the link. Angular binds `[disabled]` to every
358
+ * directive on the element that declares the input, so `MatTabLink`
359
+ * and this directive read one template binding and the handle tracks
360
+ * it live. An imperative write to the `MatTabLink` instance is not
361
+ * seen; the template binding is the contract.
362
+ */
363
+ readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
357
364
  private readonly errorMessage;
358
365
  private readonly hasError;
359
- private readonly disabledState;
360
366
  ngOnInit(): void;
361
367
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxMatTabLink, never>;
362
- static ɵdir: i0.ɵɵDirectiveDeclaration<CngxMatTabLink, "[cngxMatTabLink]", ["cngxMatTabLink"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorAggregator": { "alias": "errorAggregator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
368
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CngxMatTabLink, "[cngxMatTabLink]", ["cngxMatTabLink"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorAggregator": { "alias": "errorAggregator"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
363
369
  }
364
370
 
365
371
  /**
@@ -384,17 +390,20 @@ declare class CngxMatTabLink implements OnInit {
384
390
  * the slot so an `*ngIf`-toggled binding returns to the
385
391
  * no-aggregator default.
386
392
  *
387
- * @category ui/mat-tabs
388
393
  * @wcag AA
389
394
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tab-error.directive.ts
390
- * @since 0.1.0
395
+ * @since 0.3.0
391
396
  * @relatedTo CngxMatTabs, CngxMatTabsRegistry, CngxMatTabRejectionContent
392
397
  */
393
398
  declare class CngxMatTabError {
394
- private readonly matTab;
395
- private readonly registry;
396
- private readonly presenter;
399
+ private readonly target;
397
400
  private readonly destroyRef;
401
+ /**
402
+ * Error aggregator for this tab, bound as `[cngxMatTabError]`. Its `shouldShow()` decides
403
+ * whether the tab header shows the error badge, and it is written into the tab's aggregator
404
+ * slot in the registry. A string value (the bare attribute) and `undefined` both mean no
405
+ * aggregator, and the slot is reset to `undefined` when the directive is destroyed.
406
+ */
398
407
  readonly aggregator: i0.InputSignalWithTransform<CngxErrorAggregatorContract | undefined, "" | CngxErrorAggregatorContract | undefined>;
399
408
  constructor();
400
409
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxMatTabError, never>;
@@ -407,7 +416,11 @@ declare class CngxMatTabError {
407
416
  * `string | boolean` writes the per-handle `directError` slot, which
408
417
  * folds into the handle's `hasError` / `errorMessage`. A non-empty
409
418
  * string doubles as the SR descriptor message; `true` marks the tab
410
- * invalid with no message; `false` / `''` clear it.
419
+ * invalid with no message; `false` clears it. The folded state
420
+ * drives the same header decoration as the aggregator: the
421
+ * `cngx-mat-tab--has-errors` badge plus an SR-only descriptor span
422
+ * referenced through `aria-describedby` (message, else the
423
+ * `tabHasErrors` i18n phrase), removed again when the flag clears.
411
424
  *
412
425
  * Symmetric with `[cngxMatTabError]` (one directive, one
413
426
  * responsibility - Pillar 3): the aggregator stays the rich
@@ -420,17 +433,22 @@ declare class CngxMatTabError {
420
433
  * `presenter.tabs()` to recover from the content-init race, and
421
434
  * clears the slot on destroy - exactly as {@link CngxMatTabError}.
422
435
  *
423
- * @category ui/mat-tabs
424
436
  * @wcag AA
425
437
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tab-error-flag.directive.ts
426
- * @since 0.1.0
438
+ * @since 0.3.0
427
439
  * @relatedTo CngxMatTabs, CngxMatTabError, CngxMatTabsRegistry
440
+ * @axis level atom
428
441
  */
429
442
  declare class CngxMatTabErrorFlag {
430
- private readonly matTab;
431
- private readonly registry;
432
- private readonly presenter;
443
+ private readonly target;
433
444
  private readonly destroyRef;
445
+ /**
446
+ * Direct invalid flag for this tab, bound as `[cngxMatTabErrorFlag]`. `true` marks the tab
447
+ * invalid, a non-empty string also serves as the screen-reader message, and `false` (the
448
+ * default) clears the flag. The empty string (the bare attribute) is coerced to `true`. The
449
+ * value is written into the tab's direct-error slot in the registry, which is reset to `false`
450
+ * when the directive is destroyed.
451
+ */
434
452
  readonly error: i0.InputSignalWithTransform<string | boolean, string | boolean>;
435
453
  constructor();
436
454
  static ɵfac: i0.ɵɵFactoryDeclaration<CngxMatTabErrorFlag, never>;
@@ -457,8 +475,6 @@ declare class CngxMatTabErrorFlag {
457
475
  * snapshotted into the decorated entry - re-emissions of the
458
476
  * underlying signals re-fire the projector's effect, which
459
477
  * re-applies the decoration with the fresh context.
460
- *
461
- * @category ui/mat-tabs
462
478
  */
463
479
  interface CngxMatTabAggregatorContentContext {
464
480
  /** Aggregated error count for this tab (≥ 1 when shown). */
@@ -504,10 +520,9 @@ interface CngxMatTabAggregatorContentContext {
504
520
  * </mat-tab-group>
505
521
  * ```
506
522
  *
507
- * @category ui/mat-tabs
508
523
  * @wcag AA
509
524
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/decorations/mat-tab-aggregator-content.directive.ts
510
- * @since 0.1.0
525
+ * @since 0.3.0
511
526
  * @relatedTo CngxMatTabs, CngxMatTabError, CngxMatTabRejectionContent
512
527
  */
513
528
  declare class CngxMatTabAggregatorContent {
@@ -535,8 +550,11 @@ declare class CngxMatTabAggregatorContent {
535
550
  * resolves to a handle with a non-empty label) - `undefined` when
536
551
  * no labelled rollback origin is resolvable; `fallbackText` is the
537
552
  * built-in i18n phrase the imperative fallback path would write
538
- * verbatim (typically `commitRolledBackTo(originLabel)` when the
539
- * origin is resolvable, `commitFailedRetry` otherwise).
553
+ * verbatim (for a failure typically `commitRolledBackTo(origin)`
554
+ * when the origin is resolvable, `commitFailedRetry` otherwise; for a
555
+ * refusal `commitRefused(origin)` or `commitRefusedGeneric`; a
556
+ * label-less origin is named `unlabeledTab(position)`);
557
+ * `reason` is the kind of the outcome.
540
558
  *
541
559
  * **Re-instantiation warning.** The decoration projector destroys
542
560
  * the embedded view and creates a fresh one on every `descriptorText`
@@ -549,8 +567,6 @@ declare class CngxMatTabAggregatorContent {
549
567
  * lift heavy state into a sibling `*ngTemplateOutlet`-friendly
550
568
  * structure outside the slot. Cheap text + simple markup (the
551
569
  * intended use) sees no observable difference.
552
- *
553
- * @category ui/mat-tabs
554
570
  */
555
571
  interface CngxMatTabRejectionContentContext {
556
572
  /** Stable id of the rejected `CngxTabHandle`. */
@@ -568,6 +584,12 @@ interface CngxMatTabRejectionContentContext {
568
584
  * decoration (icon, branded prefix, retry CTA).
569
585
  */
570
586
  readonly fallbackText: string;
587
+ /**
588
+ * Why the commit did not land: `'refused'` when the commit action
589
+ * answered `false`, `'failed'` when it threw, rejected or errored.
590
+ * Pick copy or an icon per reason; `fallbackText` already follows it.
591
+ */
592
+ readonly reason: 'refused' | 'failed';
571
593
  }
572
594
  /**
573
595
  * Structural slot directive marking the rejection-descriptor
@@ -609,10 +631,9 @@ interface CngxMatTabRejectionContentContext {
609
631
  * </mat-tab-group>
610
632
  * ```
611
633
  *
612
- * @category ui/mat-tabs
613
634
  * @wcag AA
614
635
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/decorations/mat-tab-rejection-content.directive.ts
615
- * @since 0.1.0
636
+ * @since 0.3.0
616
637
  * @relatedTo CngxMatTabs, CngxMatTabAggregatorContent, CngxMatTabError
617
638
  */
618
639
  declare class CngxMatTabRejectionContent {
@@ -636,8 +657,6 @@ declare class CngxMatTabRejectionContent {
636
657
  * fail-fast). The library default is a dev-mode `console.warn`; the
637
658
  * exported {@link CNGX_DEFAULT_HALF_WIRED_SLOT_SINK} value lets test
638
659
  * doubles compose against a stable reference.
639
- *
640
- * @category ui/mat-tabs
641
660
  */
642
661
  type CngxMatTabHalfWiredSlotSink = (missing: 'contentTemplate' | 'viewContainerRef') => void;
643
662
 
@@ -646,8 +665,6 @@ type CngxMatTabHalfWiredSlotSink = (missing: 'contentTemplate' | 'viewContainerR
646
665
  * the middle cascade tier between a per-instance structural slot and
647
666
  * the built-in fallback. Sibling of `CngxTabsTemplates` /
648
667
  * `CngxStepperTemplates` so consumer templates port across families.
649
- *
650
- * @category ui/mat-tabs
651
668
  */
652
669
  interface CngxMatTabsTemplates {
653
670
  /**
@@ -669,8 +686,6 @@ interface CngxMatTabsTemplates {
669
686
  * (component scope), which wins over `provideMatTabsConfig(...)`
670
687
  * (root), which wins over the library defaults captured by
671
688
  * {@link CNGX_MAT_TABS_CONFIG_DEFAULTS}.
672
- *
673
- * @category ui/mat-tabs
674
689
  */
675
690
  interface CngxMatTabsConfig {
676
691
  /**
@@ -728,9 +743,8 @@ declare const CNGX_MAT_TABS_CONFIG_DEFAULTS: {
728
743
  * {@link injectMatTabsConfig}, which merges with the library
729
744
  * defaults so callers never see `undefined`.
730
745
  *
731
- * @category ui/mat-tabs
732
746
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/mat-tabs-config.ts
733
- * @since 0.1.0
747
+ * @since 0.3.0
734
748
  */
735
749
  declare const CNGX_MAT_TABS_CONFIG: InjectionToken<CngxMatTabsConfig>;
736
750
  /**
@@ -740,8 +754,6 @@ declare const CNGX_MAT_TABS_CONFIG: InjectionToken<CngxMatTabsConfig>;
740
754
  * cross-family aggregator (`provideCngxMatTabs`) that dispatches
741
755
  * features to the right provider - analogous to `_target: 'select'`
742
756
  * in the select family.
743
- *
744
- * @category ui/mat-tabs
745
757
  */
746
758
  interface CngxMatTabsConfigFeature {
747
759
  readonly config: Partial<CngxMatTabsConfig>;
@@ -751,15 +763,11 @@ interface CngxMatTabsConfigFeature {
751
763
  /**
752
764
  * Cap on the `[cngxMatTabs]` overflow-anchor retry loop.
753
765
  * See {@link CngxMatTabsConfig.anchorMaxAttempts} for default + rationale.
754
- *
755
- * @category ui/mat-tabs
756
766
  */
757
767
  declare function withAnchorRetryAttempts(n: number): CngxMatTabsConfigFeature;
758
768
  /**
759
769
  * Override the half-wired-slot diagnostic sink.
760
770
  * See {@link CngxMatTabsConfig.halfWiredSlotSink}.
761
- *
762
- * @category ui/mat-tabs
763
771
  */
764
772
  declare function withHalfWiredSlotSink(sink: CngxMatTabHalfWiredSlotSink): CngxMatTabsConfigFeature;
765
773
  /**
@@ -767,8 +775,6 @@ declare function withHalfWiredSlotSink(sink: CngxMatTabHalfWiredSlotSink): CngxM
767
775
  * tier; per-instance `*cngxMatTabRejectionContent` still wins.
768
776
  * Sibling of {@link withTabRejectionIconTemplate} in the cngx-native
769
777
  * family.
770
- *
771
- * @category ui/mat-tabs
772
778
  */
773
779
  declare function withMatTabRejectionTemplate(template: TemplateRef<CngxMatTabRejectionContentContext>): CngxMatTabsConfigFeature;
774
780
  /**
@@ -786,8 +792,6 @@ declare function withMatTabRejectionTemplate(template: TemplateRef<CngxMatTabRej
786
792
  * ],
787
793
  * });
788
794
  * ```
789
- *
790
- * @category ui/mat-tabs
791
795
  */
792
796
  declare function provideMatTabsConfig(...features: CngxMatTabsConfigFeature[]): EnvironmentProviders;
793
797
  /**
@@ -810,8 +814,6 @@ declare function provideMatTabsConfig(...features: CngxMatTabsConfigFeature[]):
810
814
  * ...
811
815
  * })
812
816
  * ```
813
- *
814
- * @category ui/mat-tabs
815
817
  */
816
818
  declare function provideMatTabsConfigAt(...features: CngxMatTabsConfigFeature[]): Provider[];
817
819
  /**
@@ -823,8 +825,6 @@ declare function provideMatTabsConfigAt(...features: CngxMatTabsConfigFeature[])
823
825
  * 1. `CNGX_MAT_TABS_CONFIG` value (set via
824
826
  * {@link provideMatTabsConfig} / {@link provideMatTabsConfigAt}).
825
827
  * 2. {@link CNGX_MAT_TABS_CONFIG_DEFAULTS} (library default).
826
- *
827
- * @category ui/mat-tabs
828
828
  */
829
829
  declare function injectMatTabsConfig(): Required<CngxMatTabsConfig>;
830
830
 
@@ -850,8 +850,6 @@ declare function injectMatTabsConfig(): Required<CngxMatTabsConfig>;
850
850
  * grouped name through ESLint's `@typescript-eslint` type resolver
851
851
  * - a flat `export * as` re-export from `public-api.ts` does not
852
852
  * resolve nested members through the path-alias.
853
- *
854
- * @category ui/mat-tabs
855
853
  */
856
854
 
857
855
  declare namespace MaterialPrivateSurfaces {
@@ -1060,9 +1058,8 @@ declare function mountLiveRegionAnnouncer(opts: CngxMatBridgeLiveRegionOptions):
1060
1058
  * ]
1061
1059
  * ```
1062
1060
  *
1063
- * @category ui/mat-tabs
1064
1061
  * @github https://github.com/cngxjs/cngx/blob/main/projects/ui/mat-tabs/overflow/mat-tab-overflow-dom-adapter.ts
1065
- * @since 0.1.0
1062
+ * @since 0.3.0
1066
1063
  * @relatedTo CngxTabOverflow, CngxMatTabs, CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY
1067
1064
  */
1068
1065
  declare function createCngxMatTabOverflowDomAdapter(): CngxTabOverflowDomAdapter;