@cngx/ui 0.1.0-rc.9 → 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.
- package/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +4 -3
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +44 -66
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +213 -335
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +60 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -44
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +78 -83
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +52 -74
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +589 -467
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +3 -5
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +71 -68
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +149 -171
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +858 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +207 -90
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +71 -32
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +21 -27
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +27 -40
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +28 -14
- package/mat-tabs/styles/mat-tabs.css +233 -258
- package/nav-rail/README.md +325 -0
- package/package.json +10 -5
- package/paginator/README.md +10 -0
- package/schematics/ng-add/index.js +7 -7
- package/schematics/ng-add/schema.json +5 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +45 -77
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +58 -94
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -53
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +67 -44
- package/types/cngx-ui-data-grid-accordion.d.ts +49 -77
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +264 -289
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +2 -3
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +43 -69
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +164 -154
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +183 -62
- package/types/cngx-ui-tabs.d.ts +101 -27
- package/types/cngx-ui-timeline.d.ts +20 -48
- package/types/cngx-ui-toc.d.ts +30 -51
- package/types/cngx-ui.d.ts +1 -1
|
@@ -11,11 +11,9 @@ import * as i2 from '@cngx/common/a11y';
|
|
|
11
11
|
* `commitMode` to the presenter. Material twin lives in
|
|
12
12
|
* `@cngx/ui/mat-stepper`. ARIA attrs are in the `computed()` graph.
|
|
13
13
|
*
|
|
14
|
-
* @category ui/stepper
|
|
15
|
-
* @docsKind primary
|
|
16
14
|
* @wcag AA
|
|
17
15
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/stepper.component.ts
|
|
18
|
-
* @since 0.
|
|
16
|
+
* @since 0.3.0
|
|
19
17
|
* @relatedTo CngxStepperPresenter, CngxStep, CngxRovingTabindex, CngxFocusRestore, CngxLiveRegion
|
|
20
18
|
* @slot cngxStepIndicator Replaces the per-step number or check glyph in the header.
|
|
21
19
|
* @slot cngxStepBadge Extra marker beside a step label, e.g. an optional or count badge.
|
|
@@ -26,29 +24,40 @@ import * as i2 from '@cngx/common/a11y';
|
|
|
26
24
|
* @slot cngxStepperEmpty Renders when no step is projected at all.
|
|
27
25
|
* @slot cngxDotStepperDot Replaces the body of each dot in the dots mobile-collapse branch.
|
|
28
26
|
* @playground Material theme coverage across all skins ./examples/material-theme-coverage/skins-coverage.component.ts
|
|
29
|
-
* <example-url
|
|
30
|
-
* <example-url
|
|
31
|
-
* <example-url
|
|
32
|
-
* <example-url
|
|
33
|
-
* <example-url
|
|
34
|
-
* <example-url
|
|
35
|
-
* <example-url
|
|
36
|
-
* <example-url
|
|
37
|
-
* <example-url
|
|
38
|
-
* <example-url
|
|
39
|
-
* <example-url
|
|
40
|
-
* <example-url
|
|
41
|
-
* <example-url
|
|
42
|
-
* <example-url
|
|
43
|
-
* <example-url
|
|
44
|
-
* <example-url
|
|
45
|
-
* <example-url
|
|
46
|
-
* <example-url
|
|
47
|
-
* <example-url
|
|
48
|
-
* <example-url
|
|
27
|
+
* <example-url>/#/ui/stepper/stepper-horizontal/three-step-wizard</example-url>
|
|
28
|
+
* <example-url>/#/ui/stepper/stepper-vertical/vertical-sidebar-layout</example-url>
|
|
29
|
+
* <example-url>/#/ui/stepper/stepper-linear/linear-gating-with-completion-checkboxes</example-url>
|
|
30
|
+
* <example-url>/#/ui/stepper/stepper-mobile-collapse/dots-collapse</example-url>
|
|
31
|
+
* <example-url>/#/ui/stepper/stepper-skins/linear-minimal</example-url>
|
|
32
|
+
* <example-url>/#/ui/stepper/stepper-skins/stripe-status-rich</example-url>
|
|
33
|
+
* <example-url>/#/ui/stepper/stepper-skins/path-chevron</example-url>
|
|
34
|
+
* <example-url>/#/ui/stepper/stepper-skins/pill-segment</example-url>
|
|
35
|
+
* <example-url>/#/ui/stepper/stepper-skins/chips</example-url>
|
|
36
|
+
* <example-url>/#/ui/stepper/stepper-skins/breadcrumb</example-url>
|
|
37
|
+
* <example-url>/#/ui/stepper/stepper-skins/all-skins-side-by-side</example-url>
|
|
38
|
+
* <example-url>/#/ui/stepper/stepper-skins/material-theme-coverage</example-url>
|
|
39
|
+
* <example-url>/#/ui/stepper/stepper-skins/linear-minimal-vertical</example-url>
|
|
40
|
+
* <example-url>/#/ui/stepper/stepper-skins/stripe-status-rich-vertical</example-url>
|
|
41
|
+
* <example-url>/#/ui/stepper/stepper-skins/path-chevron-vertical</example-url>
|
|
42
|
+
* <example-url>/#/ui/stepper/stepper-skins/pill-segment-vertical</example-url>
|
|
43
|
+
* <example-url>/#/ui/stepper/stepper-skins/chips-vertical</example-url>
|
|
44
|
+
* <example-url>/#/ui/stepper/stepper-density/flat-steps-auto-density</example-url>
|
|
45
|
+
* <example-url>/#/ui/stepper/stepper-density/density-across-skins</example-url>
|
|
46
|
+
* <example-url>/#/ui/stepper/stepper-density/distance-weighted-collapse</example-url>
|
|
47
|
+
* @axis level organism
|
|
49
48
|
*/
|
|
50
49
|
declare class CngxStepper implements CngxStepPanelHost {
|
|
50
|
+
/**
|
|
51
|
+
* Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,
|
|
52
|
+
* then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty
|
|
53
|
+
* `[aria-labelledby]` is set.
|
|
54
|
+
*/
|
|
51
55
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value
|
|
58
|
+
* is written to the host and suppresses the `aria-label` cascade, so the host carries no
|
|
59
|
+
* `aria-label` at all.
|
|
60
|
+
*/
|
|
52
61
|
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
53
62
|
/** Per-instance skin override; flips `[data-skin]`, structure/ARIA unchanged. */
|
|
54
63
|
readonly skin: _angular_core.InputSignal<CngxStepperSkin | undefined>;
|
|
@@ -68,6 +77,12 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
68
77
|
* that sits next to the dot row.
|
|
69
78
|
*/
|
|
70
79
|
readonly showStepCount: _angular_core.InputSignal<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Places the mobile-collapse indicator (the dots row or the step text) above or below the
|
|
82
|
+
* panels, as `'top'` or `'bottom'`. Resolution order: this input, then `mobileIndicatorPosition`
|
|
83
|
+
* from the stepper config, then `'top'`. The result is written to `data-mobile-indicator-position`,
|
|
84
|
+
* and `'bottom'` reorders the host through CSS; the classic strip layout has no indicator to move.
|
|
85
|
+
*/
|
|
71
86
|
readonly mobileIndicatorPosition: _angular_core.InputSignal<CngxStepperMobileIndicatorPosition | undefined>;
|
|
72
87
|
/** Stepper-host contract; exposed so external `<cngx-stepper-count>` / bridge consumers can `[host]="s.presenter"` via `#s="cngxStepper"`. */
|
|
73
88
|
readonly presenter: _cngx_common_stepper.CngxStepperHost;
|
|
@@ -84,11 +99,51 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
84
99
|
private readonly groupHeaderSlot;
|
|
85
100
|
private readonly emptySlot;
|
|
86
101
|
private readonly dotSlot;
|
|
87
|
-
/** Default-template
|
|
88
|
-
protected readonly
|
|
89
|
-
readonly
|
|
90
|
-
|
|
91
|
-
|
|
102
|
+
/** Default-template icons: badge, rejection, done checks and mobile-dot marks. */
|
|
103
|
+
protected readonly icons: {
|
|
104
|
+
readonly alert: {
|
|
105
|
+
readonly viewBox: "0 0 24 24";
|
|
106
|
+
readonly d: "M12 3L2 20.5h20zM12 9.5v5M12 17.5v.01";
|
|
107
|
+
readonly paint: "stroke";
|
|
108
|
+
readonly micro: {
|
|
109
|
+
readonly viewBox: "0 0 12 12";
|
|
110
|
+
readonly d: "M6.514 1.857L11.486 10.143Q12 11 11 11L1 11Q0 11 0.514 10.143L5.486 1.857Q6 1 6.514 1.857ZM5 5V8H7V5ZM5 9V10H7V9Z";
|
|
111
|
+
};
|
|
112
|
+
readonly small: {
|
|
113
|
+
readonly viewBox: "0 0 16 16";
|
|
114
|
+
readonly d: "M8 2L14 14H2ZM7 6V10H9V6ZM7 11V13H9V11Z";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly ban: {
|
|
118
|
+
readonly viewBox: "0 0 24 24";
|
|
119
|
+
readonly d: "M2.5 12a9.5 9.5 0 1 0 19 0a9.5 9.5 0 1 0-19 0zM5.3 5.3l13.4 13.4";
|
|
120
|
+
readonly paint: "stroke";
|
|
121
|
+
readonly micro: {
|
|
122
|
+
readonly viewBox: "0 0 12 12";
|
|
123
|
+
readonly d: "M6 0A6 6 0 1 1 6 12A6 6 0 1 1 6 0ZM9.668 8.607A4.5 4.5 0 0 0 3.393 2.332ZM2.332 3.393A4.5 4.5 0 0 0 8.607 9.668Z";
|
|
124
|
+
};
|
|
125
|
+
readonly small: null;
|
|
126
|
+
};
|
|
127
|
+
readonly check: {
|
|
128
|
+
readonly viewBox: "0 0 24 24";
|
|
129
|
+
readonly d: "M5 12.5l4.5 4.5L19 7";
|
|
130
|
+
readonly paint: "stroke";
|
|
131
|
+
readonly micro: {
|
|
132
|
+
readonly viewBox: "0 0 12 12";
|
|
133
|
+
readonly d: "M1 6L2 5L5 8L10 3L11 4L5 10Z";
|
|
134
|
+
};
|
|
135
|
+
readonly small: null;
|
|
136
|
+
};
|
|
137
|
+
readonly exclamation: {
|
|
138
|
+
readonly viewBox: "0 0 24 24";
|
|
139
|
+
readonly d: "M11,14V5h2v9H11Zm0,5V17h2v2H11Z";
|
|
140
|
+
readonly paint: "fill";
|
|
141
|
+
readonly micro: {
|
|
142
|
+
readonly viewBox: "0 0 12 12";
|
|
143
|
+
readonly d: "M5 2H7V8H5ZM5 9H7V11H5Z";
|
|
144
|
+
};
|
|
145
|
+
readonly small: null;
|
|
146
|
+
};
|
|
92
147
|
};
|
|
93
148
|
/**
|
|
94
149
|
* Template cascade (indicator/badge/busySpinner/rejection/stepError/
|
|
@@ -107,7 +162,10 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
107
162
|
protected readonly isDensityAuto: Signal<boolean>;
|
|
108
163
|
constructor();
|
|
109
164
|
private readonly fallbackLabels;
|
|
110
|
-
/**
|
|
165
|
+
/**
|
|
166
|
+
* Stepper landmark role-description: config `fallbackLabels`, then the
|
|
167
|
+
* library default. Never the stepper name, which is the accessible name.
|
|
168
|
+
*/
|
|
111
169
|
protected readonly stepperRoleDescription: Signal<string>;
|
|
112
170
|
/** Resolved skin / connectors / mobile-indicator host attrs (Level-2 cascade helper). */
|
|
113
171
|
protected readonly hostAttrs: _cngx_common_stepper.CngxStepperHostAttrs;
|
|
@@ -175,7 +233,7 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
175
233
|
* enters the branch at its first reachable step. Level-2 factory.
|
|
176
234
|
*/
|
|
177
235
|
protected readonly groupNavigation: _cngx_common_stepper.CngxStepperGroupNavigationView;
|
|
178
|
-
/** Shared accname cascade (input → `
|
|
236
|
+
/** Shared accname cascade (input → `i18n.stepperLabel`). */
|
|
179
237
|
protected readonly resolvedAriaLabel: Signal<string | null>;
|
|
180
238
|
private readonly stepDirectiveById;
|
|
181
239
|
readonly flatSteps: Signal<readonly CngxStepNode[]>;
|
|
@@ -233,7 +291,8 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
233
291
|
/**
|
|
234
292
|
* `true` when the step header at `node` may be navigated to right now:
|
|
235
293
|
* structurally reachable (`canNavigateTo` - not disabled, not
|
|
236
|
-
* linear-blocked) AND not while a commit is in flight
|
|
294
|
+
* linear-blocked) AND not while a commit or the finish run is in flight
|
|
295
|
+
* (`busy()`). The
|
|
237
296
|
* busy gate mirrors the footer nav atoms, which disable on
|
|
238
297
|
* `!canGo* || busy()` - so the strip and the footer lock together
|
|
239
298
|
* during an async transition instead of letting a header click
|
|
@@ -260,7 +319,17 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
260
319
|
* {@link CNGX_STEPPER_HOST}.
|
|
261
320
|
*/
|
|
262
321
|
clearLastFailed(): void;
|
|
322
|
+
/**
|
|
323
|
+
* Returns the `*cngxStepLabel` template of the step with the given id, or `null` when no step has
|
|
324
|
+
* that id or the step supplies none. Implements `CngxStepPanelHost.labelTemplateFor`; the stepper
|
|
325
|
+
* template calls it per header and renders the default label text on `null`.
|
|
326
|
+
*/
|
|
263
327
|
labelTemplateFor(id: string): TemplateRef<CngxStepLabelContext> | null;
|
|
328
|
+
/**
|
|
329
|
+
* Returns the `*cngxStepContent` template of the step with the given id, or `null` when no step
|
|
330
|
+
* has that id or the step supplies none. Implements `CngxStepPanelHost.contentTemplateFor`; the
|
|
331
|
+
* stepper template calls it per panel and renders no body on `null`.
|
|
332
|
+
*/
|
|
264
333
|
contentTemplateFor(id: string): TemplateRef<CngxStepContentContext> | null;
|
|
265
334
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepper, never>;
|
|
266
335
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepper, "cngx-stepper", ["cngxStepper"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "connectors": { "alias": "connectors"; "required": false; "isSignal": true; }; "headerNavigation": { "alias": "headerNavigation"; "required": false; "isSignal": true; }; "showStepCount": { "alias": "showStepCount"; "required": false; "isSignal": true; }; "mobileIndicatorPosition": { "alias": "mobileIndicatorPosition"; "required": false; "isSignal": true; }; }, {}, ["stepDirectives", "indicatorSlot", "badgeSlot", "busySpinnerSlot", "rejectionSlot", "errorSlot", "groupHeaderSlot", "emptySlot", "dotSlot"], ["cngx-stepper-footer, [cngxStepperFooter]"], true, [{ directive: typeof _cngx_common_stepper.CngxStepperPresenter; inputs: { "activeStepIndex": "activeStepIndex"; "linear": "linear"; "orientation": "orientation"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeStepIndexChange": "activeStepIndexChange"; }; }, { directive: typeof i2.CngxRovingTabindex; inputs: { "orientation": "orientation"; }; outputs: {}; }, { directive: typeof _cngx_common_stepper.CngxStepperSwipeNav; inputs: { "mobileSwipe": "mobileSwipe"; }; outputs: {}; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
|
|
@@ -281,28 +350,40 @@ declare class CngxStepper implements CngxStepPanelHost {
|
|
|
281
350
|
* cascades as `<cngx-stepper>`; a step-less flow renders the
|
|
282
351
|
* `CNGX_STEPPER_CONFIG` empty-template cascade instead of the bar.
|
|
283
352
|
*
|
|
284
|
-
* @category ui/stepper
|
|
285
|
-
* @docsKind primary
|
|
286
353
|
* @wcag AA
|
|
287
354
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/progress-bar-stepper.component.ts
|
|
288
|
-
* @since 0.
|
|
355
|
+
* @since 0.3.0
|
|
289
356
|
* @relatedTo CngxStepperPresenter, CngxProgress, CngxDotStepper, CngxTextStepper
|
|
290
357
|
* @slot cngxStepperEmpty Renders when no step is projected at all.
|
|
291
358
|
* @playground Material theme coverage across variants ./examples/material-theme-coverage/variants-coverage.component.ts
|
|
292
|
-
* <example-url
|
|
359
|
+
* <example-url>/#/ui/stepper/progress-bar/onboarding-flow</example-url>
|
|
360
|
+
* @axis level organism
|
|
293
361
|
*/
|
|
294
362
|
declare class CngxProgressBarStepper {
|
|
363
|
+
/**
|
|
364
|
+
* Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,
|
|
365
|
+
* then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty
|
|
366
|
+
* `[aria-labelledby]` is set.
|
|
367
|
+
*/
|
|
295
368
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
369
|
+
/**
|
|
370
|
+
* Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value
|
|
371
|
+
* is written to the host and suppresses the `aria-label` cascade, so the host carries no
|
|
372
|
+
* `aria-label` at all.
|
|
373
|
+
*/
|
|
296
374
|
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
297
375
|
/** Render a `Step N of M` caption below the bar. Off by default. */
|
|
298
376
|
readonly showStepCount: _angular_core.InputSignal<boolean>;
|
|
299
377
|
protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
|
|
300
378
|
protected readonly i18n: _angular_core.Signal<_cngx_common_stepper.CngxStepperI18n>;
|
|
301
379
|
protected readonly config: _cngx_common_stepper.CngxStepperConfig;
|
|
302
|
-
/** Shared accname cascade (input → `
|
|
380
|
+
/** Shared accname cascade (input → `i18n.stepperLabel`). */
|
|
303
381
|
protected readonly resolvedAriaLabel: _angular_core.Signal<string | null>;
|
|
304
382
|
private readonly fallbackLabels;
|
|
305
|
-
/**
|
|
383
|
+
/**
|
|
384
|
+
* Landmark role-description mirroring `<cngx-stepper>`: config
|
|
385
|
+
* `fallbackLabels`, then the library default, never the stepper name.
|
|
386
|
+
*/
|
|
306
387
|
protected readonly stepperRoleDescription: _angular_core.Signal<string>;
|
|
307
388
|
private readonly emptySlot;
|
|
308
389
|
/**
|
|
@@ -358,28 +439,58 @@ declare class CngxProgressBarStepper {
|
|
|
358
439
|
* defaults cascade through `var(--cngx-step-active-fill, ...)`, so the
|
|
359
440
|
* Phase A active-fill chain reaches the dot variant without duplication.
|
|
360
441
|
*
|
|
361
|
-
* @category ui/stepper
|
|
362
|
-
* @docsKind primary
|
|
363
442
|
* @wcag AA
|
|
364
443
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/dot-stepper.component.ts
|
|
365
|
-
* @since 0.
|
|
444
|
+
* @since 0.3.0
|
|
366
445
|
* @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxTextStepper
|
|
367
446
|
* @slot cngxDotStepperDot Replaces one dot; gets its index and active state.
|
|
368
447
|
* @slot cngxStepperEmpty Renders when no step is projected at all.
|
|
369
|
-
* <example-url
|
|
448
|
+
* <example-url>/#/ui/stepper/dot-stepper/mobile-carousel</example-url>
|
|
449
|
+
* @axis level organism
|
|
370
450
|
*/
|
|
371
451
|
declare class CngxDotStepper {
|
|
452
|
+
/**
|
|
453
|
+
* Accessible name of the stepper host, bound as `[aria-label]`. Resolution order: this input,
|
|
454
|
+
* then the `stepperLabel` string of the stepper i18n bundle. Ignored while a non-empty
|
|
455
|
+
* `[aria-labelledby]` is set.
|
|
456
|
+
*/
|
|
372
457
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
458
|
+
/**
|
|
459
|
+
* Id reference list naming the stepper host, bound as `[aria-labelledby]`. A non-empty value
|
|
460
|
+
* is written to the host and suppresses the `aria-label` cascade, so the host carries no
|
|
461
|
+
* `aria-label` at all.
|
|
462
|
+
*/
|
|
373
463
|
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
374
464
|
protected readonly presenter: _cngx_common_stepper.CngxStepperHost;
|
|
375
465
|
protected readonly i18n: Signal<_cngx_common_stepper.CngxStepperI18n>;
|
|
376
466
|
protected readonly config: _cngx_common_stepper.CngxStepperConfig;
|
|
377
|
-
/** Shared accname cascade (input → `
|
|
467
|
+
/** Shared accname cascade (input → `i18n.stepperLabel`). */
|
|
378
468
|
protected readonly resolvedAriaLabel: Signal<string | null>;
|
|
379
469
|
/** Mobile-swipe routing surface composed via hostDirectives. */
|
|
380
470
|
protected readonly swipeNav: CngxStepperSwipeNav;
|
|
381
471
|
/** Document writing direction - flips the inline next/previous arrows under `rtl` (APG). */
|
|
382
472
|
private readonly direction;
|
|
473
|
+
/** Error marks drawn over an errored (alert) or refused (ban) dot. */
|
|
474
|
+
protected readonly exclamationIcon: {
|
|
475
|
+
readonly viewBox: "0 0 24 24";
|
|
476
|
+
readonly d: "M11,14V5h2v9H11Zm0,5V17h2v2H11Z";
|
|
477
|
+
readonly paint: "fill";
|
|
478
|
+
readonly micro: {
|
|
479
|
+
readonly viewBox: "0 0 12 12";
|
|
480
|
+
readonly d: "M5 2H7V8H5ZM5 9H7V11H5Z";
|
|
481
|
+
};
|
|
482
|
+
readonly small: null;
|
|
483
|
+
};
|
|
484
|
+
protected readonly banIcon: {
|
|
485
|
+
readonly viewBox: "0 0 24 24";
|
|
486
|
+
readonly d: "M2.5 12a9.5 9.5 0 1 0 19 0a9.5 9.5 0 1 0-19 0zM5.3 5.3l13.4 13.4";
|
|
487
|
+
readonly paint: "stroke";
|
|
488
|
+
readonly micro: {
|
|
489
|
+
readonly viewBox: "0 0 12 12";
|
|
490
|
+
readonly d: "M6 0A6 6 0 1 1 6 12A6 6 0 1 1 6 0ZM9.668 8.607A4.5 4.5 0 0 0 3.393 2.332ZM2.332 3.393A4.5 4.5 0 0 0 8.607 9.668Z";
|
|
491
|
+
};
|
|
492
|
+
readonly small: null;
|
|
493
|
+
};
|
|
383
494
|
protected readonly stepNodes: Signal<readonly CngxStepNode[]>;
|
|
384
495
|
protected readonly activeIndex: Signal<number>;
|
|
385
496
|
/** Shared per-step/aggregate state derivations - the single error source. */
|
|
@@ -435,14 +546,13 @@ declare class CngxDotStepper {
|
|
|
435
546
|
* Material consumers inherit surrounding text styling via CSS
|
|
436
547
|
* inheritance, no theme bridge required.
|
|
437
548
|
*
|
|
438
|
-
* @category ui/stepper
|
|
439
|
-
* @docsKind primary
|
|
440
549
|
* @wcag AA
|
|
441
550
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/text-stepper.component.ts
|
|
442
|
-
* @since 0.
|
|
551
|
+
* @since 0.3.0
|
|
443
552
|
* @relatedTo CngxStepperPresenter, CngxProgressBarStepper, CngxDotStepper
|
|
444
553
|
* @slot cngxStepperEmpty Renders when no step is projected at all.
|
|
445
|
-
* <example-url
|
|
554
|
+
* <example-url>/#/ui/stepper/text-stepper/inline-progress</example-url>
|
|
555
|
+
* @axis level organism
|
|
446
556
|
*/
|
|
447
557
|
declare class CngxTextStepper {
|
|
448
558
|
/** Append the active step's label to the count text. Off by default. */
|
|
@@ -494,6 +604,12 @@ declare class CngxTextStepper {
|
|
|
494
604
|
* consumer-projected button content. With no host at all, the proxy's
|
|
495
605
|
* neutral set renders the nav buttons disabled.
|
|
496
606
|
*
|
|
607
|
+
* **Keeps focus in a region when its control is replaced:** \
|
|
608
|
+
* When the focused control of a region leaves the DOM (Continue swapped
|
|
609
|
+
* for Finish by an `@if`) and focus fell to `body`, the footer focuses
|
|
610
|
+
* the first focusable control of the same region after that render. Focus
|
|
611
|
+
* the user had already moved out of the footer stays where it is.
|
|
612
|
+
*
|
|
497
613
|
* ```html
|
|
498
614
|
* <cngx-stepper #s="cngxStepper"> … </cngx-stepper>
|
|
499
615
|
* <cngx-stepper-footer [host]="s.presenter">
|
|
@@ -503,19 +619,18 @@ declare class CngxTextStepper {
|
|
|
503
619
|
* </cngx-stepper-footer>
|
|
504
620
|
* ```
|
|
505
621
|
*
|
|
506
|
-
* @category ui/stepper
|
|
507
|
-
* @docsKind primary
|
|
508
622
|
* @wcag AA
|
|
509
623
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/stepper/footer/stepper-footer.component.ts
|
|
510
|
-
* @since 0.
|
|
624
|
+
* @since 0.3.0
|
|
511
625
|
* @relatedTo CngxStepper, CngxStepperPrevious, CngxStepperNext, CngxStepperComplete, CngxStepperCount
|
|
512
|
-
* <example-url
|
|
513
|
-
* <example-url
|
|
514
|
-
* <example-url
|
|
515
|
-
* <example-url
|
|
516
|
-
* <example-url
|
|
517
|
-
* <example-url
|
|
518
|
-
* <example-url
|
|
626
|
+
* <example-url>/#/ui/stepper/stepper-footer/back-continue</example-url>
|
|
627
|
+
* <example-url>/#/ui/stepper/stepper-footer/save-draft-extra-button</example-url>
|
|
628
|
+
* <example-url>/#/ui/stepper/stepper-footer/footer-with-progress-center</example-url>
|
|
629
|
+
* <example-url>/#/ui/stepper/stepper-footer/percent-complete-center</example-url>
|
|
630
|
+
* <example-url>/#/ui/stepper/stepper-footer/segmented-progress-center</example-url>
|
|
631
|
+
* <example-url>/#/ui/stepper/stepper-footer/complete-finish-button</example-url>
|
|
632
|
+
* <example-url>/#/ui/stepper/stepper-footer/async-commit-status</example-url>
|
|
633
|
+
* @axis level molecule
|
|
519
634
|
*/
|
|
520
635
|
declare class CngxStepperFooter {
|
|
521
636
|
/**
|
|
@@ -527,6 +642,15 @@ declare class CngxStepperFooter {
|
|
|
527
642
|
private readonly injectedHost;
|
|
528
643
|
/** Resolved host: explicit input wins, else the ambient ancestor host. */
|
|
529
644
|
readonly resolvedHost: _angular_core.Signal<CngxStepperHost | null>;
|
|
645
|
+
private readonly hostEl;
|
|
646
|
+
private readonly document;
|
|
647
|
+
private lastFocus;
|
|
648
|
+
constructor();
|
|
649
|
+
/** @internal */
|
|
650
|
+
protected trackFocus(event: FocusEvent): void;
|
|
651
|
+
/** @internal */
|
|
652
|
+
protected forgetFocus(event: FocusEvent): void;
|
|
653
|
+
private restoreFocus;
|
|
530
654
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxStepperFooter, never>;
|
|
531
655
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxStepperFooter, "cngx-stepper-footer", ["cngxStepperFooter"], { "host": { "alias": "host"; "required": false; "isSignal": true; }; }, {}, never, ["[cngxStepperFooterStart]", "[cngxStepperFooterCenter]", "[cngxStepperFooterEnd]"], true, never>;
|
|
532
656
|
}
|
|
@@ -539,8 +663,7 @@ declare class CngxStepperFooter {
|
|
|
539
663
|
* <button cngxStepperFooterStart cngxStepperPrevious>Back</button>
|
|
540
664
|
* ```
|
|
541
665
|
*
|
|
542
|
-
* @
|
|
543
|
-
* @since 0.1.0
|
|
666
|
+
* @since 0.3.0
|
|
544
667
|
* @relatedTo CngxStepperFooter, CngxStepperFooterCenter, CngxStepperFooterEnd
|
|
545
668
|
*/
|
|
546
669
|
declare class CngxStepperFooterStart {
|
|
@@ -551,8 +674,7 @@ declare class CngxStepperFooterStart {
|
|
|
551
674
|
* Marker for the footer's center region - a progress hint, a
|
|
552
675
|
* `<cngx-stepper-count>`, or a "50% complete" caption.
|
|
553
676
|
*
|
|
554
|
-
* @
|
|
555
|
-
* @since 0.1.0
|
|
677
|
+
* @since 0.3.0
|
|
556
678
|
* @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterEnd
|
|
557
679
|
*/
|
|
558
680
|
declare class CngxStepperFooterCenter {
|
|
@@ -563,8 +685,7 @@ declare class CngxStepperFooterCenter {
|
|
|
563
685
|
* Marker for the footer's trailing region (inline-end) - typically a
|
|
564
686
|
* Continue / Finish control, optionally preceded by a "Save draft".
|
|
565
687
|
*
|
|
566
|
-
* @
|
|
567
|
-
* @since 0.1.0
|
|
688
|
+
* @since 0.3.0
|
|
568
689
|
* @relatedTo CngxStepperFooter, CngxStepperFooterStart, CngxStepperFooterCenter
|
|
569
690
|
*/
|
|
570
691
|
declare class CngxStepperFooterEnd {
|
package/types/cngx-ui-tabs.d.ts
CHANGED
|
@@ -30,11 +30,9 @@ import { CngxPopover } from '@cngx/common/popover';
|
|
|
30
30
|
* @playground Routed tabs with a CanDeactivate guard ./examples/routed-outlet/routed-outlet.component.ts
|
|
31
31
|
* @see {@link CngxMatTabs} for the Material `<mat-tab-group>` variant with `[cngxMatTabError]`.
|
|
32
32
|
*
|
|
33
|
-
* @category ui/tabs
|
|
34
|
-
* @docsKind primary
|
|
35
33
|
* @wcag AA
|
|
36
34
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-group.component.ts
|
|
37
|
-
* @since 0.
|
|
35
|
+
* @since 0.3.0
|
|
38
36
|
* @relatedTo CngxTabOverflow, CngxTabGroupPresenter, CngxTab, CngxFocusRestore
|
|
39
37
|
* @slot cngxTabIcon Replaces a tab's leading icon; gets the tab.
|
|
40
38
|
* @slot cngxTabAddIcon Replaces the glyph on the add-tab control.
|
|
@@ -42,17 +40,27 @@ import { CngxPopover } from '@cngx/common/popover';
|
|
|
42
40
|
* @slot cngxTabErrorBadge Marks a tab whose panel holds validation errors.
|
|
43
41
|
* @slot cngxTabBusySpinner Rendered on a tab while its switch commits.
|
|
44
42
|
* @slot cngxTabRejectionIcon Marks a tab whose switch was refused.
|
|
45
|
-
* <example-url
|
|
46
|
-
* <example-url
|
|
47
|
-
* <example-url
|
|
48
|
-
* <example-url
|
|
49
|
-
* <example-url
|
|
50
|
-
* <example-url
|
|
51
|
-
* <example-url
|
|
52
|
-
* <example-url
|
|
43
|
+
* <example-url>/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
|
|
44
|
+
* <example-url>/#/ui/tabs/tab-error-aggregation/per-tab-error-badges</example-url>
|
|
45
|
+
* <example-url>/#/ui/tabs/tab-skins/all-skins-side-by-side</example-url>
|
|
46
|
+
* <example-url>/#/ui/tabs/tab-skins/contained</example-url>
|
|
47
|
+
* <example-url>/#/ui/tabs/tab-skins/line</example-url>
|
|
48
|
+
* <example-url>/#/ui/tabs/tab-skins/pill</example-url>
|
|
49
|
+
* <example-url>/#/ui/tabs/tab-skins/pill-vs-toggle-group</example-url>
|
|
50
|
+
* <example-url>/#/ui/tabs/tab-skins/vertical-skins</example-url>
|
|
51
|
+
* @axis level organism
|
|
53
52
|
*/
|
|
54
53
|
declare class CngxTabGroup implements CngxTabPanelHost {
|
|
54
|
+
/**
|
|
55
|
+
* Accessible name of the tab group host, bound as `[aria-label]`. When unset it falls back to the
|
|
56
|
+
* `tabsLabel` i18n copy, which names the group by default. It is dropped while a non-empty
|
|
57
|
+
* `[aria-labelledby]` is set.
|
|
58
|
+
*/
|
|
55
59
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* Id reference of the element that names the tab group host, bound as `[aria-labelledby]`. A non-empty
|
|
62
|
+
* value suppresses the host `aria-label`, including the i18n fallback. Unset by default.
|
|
63
|
+
*/
|
|
56
64
|
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
57
65
|
/**
|
|
58
66
|
* Visual skin. Cascade `input ?? config ?? 'line'`, resolved by
|
|
@@ -99,13 +107,52 @@ declare class CngxTabGroup implements CngxTabPanelHost {
|
|
|
99
107
|
protected readonly presenter: _cngx_common_tabs.CngxTabGroupHost;
|
|
100
108
|
protected readonly i18n: Signal<_cngx_common_tabs.CngxTabsI18n>;
|
|
101
109
|
protected readonly config: _cngx_common_tabs.CngxTabsConfig;
|
|
102
|
-
/** Default
|
|
103
|
-
protected readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
readonly
|
|
107
|
-
readonly
|
|
108
|
-
|
|
110
|
+
/** Default icons for the template's fallback spans. */
|
|
111
|
+
protected readonly alertIcon: {
|
|
112
|
+
readonly viewBox: "0 0 24 24";
|
|
113
|
+
readonly d: "M12 3L2 20.5h20zM12 9.5v5M12 17.5v.01";
|
|
114
|
+
readonly paint: "stroke";
|
|
115
|
+
readonly micro: {
|
|
116
|
+
readonly viewBox: "0 0 12 12";
|
|
117
|
+
readonly d: "M6.514 1.857L11.486 10.143Q12 11 11 11L1 11Q0 11 0.514 10.143L5.486 1.857Q6 1 6.514 1.857ZM5 5V8H7V5ZM5 9V10H7V9Z";
|
|
118
|
+
};
|
|
119
|
+
readonly small: {
|
|
120
|
+
readonly viewBox: "0 0 16 16";
|
|
121
|
+
readonly d: "M8 2L14 14H2ZM7 6V10H9V6ZM7 11V13H9V11Z";
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
protected readonly banIcon: {
|
|
125
|
+
readonly viewBox: "0 0 24 24";
|
|
126
|
+
readonly d: "M2.5 12a9.5 9.5 0 1 0 19 0a9.5 9.5 0 1 0-19 0zM5.3 5.3l13.4 13.4";
|
|
127
|
+
readonly paint: "stroke";
|
|
128
|
+
readonly micro: {
|
|
129
|
+
readonly viewBox: "0 0 12 12";
|
|
130
|
+
readonly d: "M6 0A6 6 0 1 1 6 12A6 6 0 1 1 6 0ZM9.668 8.607A4.5 4.5 0 0 0 3.393 2.332ZM2.332 3.393A4.5 4.5 0 0 0 8.607 9.668Z";
|
|
131
|
+
};
|
|
132
|
+
readonly small: null;
|
|
133
|
+
};
|
|
134
|
+
protected readonly closeIcon: {
|
|
135
|
+
readonly viewBox: "0 0 24 24";
|
|
136
|
+
readonly d: "M6 6l12 12M18 6L6 18";
|
|
137
|
+
readonly paint: "stroke";
|
|
138
|
+
readonly micro: {
|
|
139
|
+
readonly viewBox: "0 0 12 12";
|
|
140
|
+
readonly d: "M2 3L3 2L10 9L9 10ZM9 2L10 3L3 10L2 9Z";
|
|
141
|
+
};
|
|
142
|
+
readonly small: {
|
|
143
|
+
readonly viewBox: "0 0 16 16";
|
|
144
|
+
readonly d: "M3 4L4 3L13 12L12 13ZM12 3L13 4L4 13L3 12Z";
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
protected readonly addIcon: {
|
|
148
|
+
readonly viewBox: "0 0 24 24";
|
|
149
|
+
readonly d: "M12 3.5v17M3.5 12h17";
|
|
150
|
+
readonly paint: "stroke";
|
|
151
|
+
readonly micro: {
|
|
152
|
+
readonly viewBox: "0 0 12 12";
|
|
153
|
+
readonly d: "M5 1H6V5H10V6H6V10H5V6H1V5H5Z";
|
|
154
|
+
};
|
|
155
|
+
readonly small: null;
|
|
109
156
|
};
|
|
110
157
|
private readonly hostElement;
|
|
111
158
|
private readonly injector;
|
|
@@ -266,6 +313,12 @@ declare class CngxTabGroup implements CngxTabPanelHost {
|
|
|
266
313
|
* when navigation did not consume the event.
|
|
267
314
|
*/
|
|
268
315
|
protected handleTabKeydown(tab: CngxTabHandle, event: KeyboardEvent): void;
|
|
316
|
+
/**
|
|
317
|
+
* Activates the tab registered under the given id. `CngxTabPanelHost` contract method, called by the
|
|
318
|
+
* overflow menu when a hidden tab is picked. An unknown id is ignored; otherwise it goes through the
|
|
319
|
+
* presenter `select`, which does nothing for the active or a disabled tab and defers to `commitAction`
|
|
320
|
+
* when one is set.
|
|
321
|
+
*/
|
|
269
322
|
selectById(id: string): void;
|
|
270
323
|
/**
|
|
271
324
|
* Clear the presenter's `lastFailedIndex` rejection flag - exposed
|
|
@@ -273,8 +326,21 @@ declare class CngxTabGroup implements CngxTabPanelHost {
|
|
|
273
326
|
* decoration without injecting the host token.
|
|
274
327
|
*/
|
|
275
328
|
clearLastFailed(): void;
|
|
329
|
+
/**
|
|
330
|
+
* Returns the `*cngxTabLabel` template of the tab with the given id, or `null` when the id is unknown
|
|
331
|
+
* or the tab has no label slot. `CngxTabPanelHost` contract method: the tab group template calls it per
|
|
332
|
+
* tab, and a skin sub-component can call it through `CNGX_TAB_PANEL_HOST`.
|
|
333
|
+
*/
|
|
276
334
|
labelTemplateFor(id: string): TemplateRef<unknown> | null;
|
|
335
|
+
/**
|
|
336
|
+
* @internal
|
|
337
|
+
*/
|
|
277
338
|
subLabelTemplateFor(id: string): TemplateRef<unknown> | null;
|
|
339
|
+
/**
|
|
340
|
+
* Returns the `*cngxTabContent` template of the tab with the given id, or `null` when the id is unknown
|
|
341
|
+
* or the tab has no content slot. `CngxTabPanelHost` contract method: the tab group template calls it per
|
|
342
|
+
* tab, and a skin sub-component can call it through `CNGX_TAB_PANEL_HOST`.
|
|
343
|
+
*/
|
|
278
344
|
contentTemplateFor(id: string): TemplateRef<unknown> | null;
|
|
279
345
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CngxTabGroup, never>;
|
|
280
346
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CngxTabGroup, "cngx-tab-group", ["cngxTabGroup"], { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "skin": { "alias": "skin"; "required": false; "isSignal": true; }; "iconLayout": { "alias": "iconLayout"; "required": false; "isSignal": true; }; "panelMode": { "alias": "panelMode"; "required": false; "isSignal": true; }; "fitted": { "alias": "fitted"; "required": false; "isSignal": true; }; "tabAlign": { "alias": "tabAlign"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "addable": { "alias": "addable"; "required": false; "isSignal": true; }; }, {}, ["tabDirectives", "errorBadgeSlot", "rejectionIconSlot", "busySpinnerSlot", "iconSlot", "closeIconSlot", "addIconSlot"], ["cngx-tab-overflow", "*"], true, [{ directive: typeof _cngx_common_tabs.CngxTabGroupPresenter; inputs: { "activeIndex": "activeIndex"; "orientation": "orientation"; "loop": "loop"; "commitAction": "commitAction"; "commitMode": "commitMode"; }; outputs: { "activeIndexChange": "activeIndexChange"; "tabClose": "tabClose"; "tabAdd": "tabAdd"; }; }, { directive: typeof i2.CngxFocusRestore; inputs: {}; outputs: {}; }]>;
|
|
@@ -314,15 +380,24 @@ declare class CngxTabGroup implements CngxTabPanelHost {
|
|
|
314
380
|
* @playground Native router tabs with a CanDeactivate guard ./examples/routed-nav/routed-nav.component.ts
|
|
315
381
|
* @see {@link CngxTabGroup} for the programmatic tablist organism.
|
|
316
382
|
*
|
|
317
|
-
* @category ui/tabs
|
|
318
|
-
* @docsKind primary
|
|
319
383
|
* @wcag AA
|
|
320
384
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-nav.component.ts
|
|
321
|
-
* @since 0.
|
|
385
|
+
* @since 0.3.0
|
|
322
386
|
* @relatedTo CngxTabLink, CngxTabsRouteSync, CngxTabGroup, CngxMatTabNav
|
|
387
|
+
* @axis level organism
|
|
323
388
|
*/
|
|
324
389
|
declare class CngxTabNav {
|
|
390
|
+
/**
|
|
391
|
+
* Accessible name of the navigation host, bound straight to `[attr.aria-label]` through the
|
|
392
|
+
* `[aria-label]` alias. There is no config or i18n fallback: unset renders no attribute, and it stays
|
|
393
|
+
* set next to `[aria-labelledby]`.
|
|
394
|
+
*/
|
|
325
395
|
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
396
|
+
/**
|
|
397
|
+
* Id reference of the element that names the navigation host, bound straight to
|
|
398
|
+
* `[attr.aria-labelledby]` through the `[aria-labelledby]` alias. It does not clear `[aria-label]`;
|
|
399
|
+
* unset renders no attribute.
|
|
400
|
+
*/
|
|
326
401
|
readonly ariaLabelledBy: _angular_core.InputSignal<string | undefined>;
|
|
327
402
|
/**
|
|
328
403
|
* Visual skin. Cascade `input ?? config ?? 'line'`, reflected onto
|
|
@@ -361,17 +436,16 @@ declare class CngxTabNav {
|
|
|
361
436
|
*
|
|
362
437
|
* @playground Overflow showcase ./examples/overflow-showcase/overflow-showcase.component.ts
|
|
363
438
|
*
|
|
364
|
-
* @category ui/tabs
|
|
365
|
-
* @docsKind primary
|
|
366
439
|
* @wcag AA
|
|
367
440
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/ui/tabs/tab-overflow.component.ts
|
|
368
|
-
* @since 0.
|
|
441
|
+
* @since 0.3.0
|
|
369
442
|
* @relatedTo CngxTabGroup, CngxPopover, CngxActiveDescendant
|
|
370
443
|
* @slot cngxTabOverflowTrigger Replaces the control that opens the overflow menu.
|
|
371
444
|
* @slot cngxTabOverflowItem Replaces a row in the overflow menu; gets the tab.
|
|
372
|
-
* <example-url
|
|
373
|
-
* <example-url
|
|
374
|
-
* <example-url
|
|
445
|
+
* <example-url>/#/ui/tabs/tab-overflow/8-tabs-in-a-narrow-container</example-url>
|
|
446
|
+
* <example-url>/#/ui/tabs/tab-overflow/all-skins-horizontal</example-url>
|
|
447
|
+
* <example-url>/#/ui/tabs/tab-overflow/all-skins-vertical</example-url>
|
|
448
|
+
* @axis level organism
|
|
375
449
|
*/
|
|
376
450
|
declare class CngxTabOverflow {
|
|
377
451
|
protected readonly panelHost: CngxTabPanelHost;
|