@cngx/common 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.
- package/a11y/README.md +15 -2
- package/button/README.md +258 -0
- package/command/README.md +42 -2
- package/data/README.md +15 -12
- package/fesm2022/cngx-common-a11y.mjs +1076 -319
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +99 -77
- package/fesm2022/cngx-common-audio.mjs.map +1 -1
- package/fesm2022/cngx-common-button.mjs +1084 -0
- package/fesm2022/cngx-common-button.mjs.map +1 -0
- package/fesm2022/cngx-common-card.mjs +138 -78
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +799 -327
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +101 -25
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +861 -423
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +198 -160
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +693 -329
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +7303 -2774
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +2174 -442
- package/fesm2022/cngx-common-layout.mjs.map +1 -1
- package/fesm2022/cngx-common-menu-button.mjs +557 -0
- package/fesm2022/cngx-common-menu-button.mjs.map +1 -0
- package/fesm2022/cngx-common-popover.mjs +2109 -557
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +548 -419
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +442 -331
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +44 -71
- package/fesm2022/cngx-common-timeline.mjs.map +1 -1
- package/fesm2022/cngx-common.mjs +10 -10
- package/fesm2022/cngx-common.mjs.map +1 -1
- package/interactive/README.md +30 -19
- package/layout/README.md +17 -1
- package/menu-button/README.md +234 -0
- package/package.json +31 -8
- package/popover/README.md +81 -4
- package/popover/tooltip-indicator.scss +52 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/stepper/README.md +5 -5
- package/theming/components/cngx-accordion.css +36 -7
- package/theming/components/cngx-async.css +185 -37
- package/theming/components/cngx-backdrop.css +3 -1
- package/theming/components/cngx-badge.css +20 -5
- package/theming/components/cngx-bottom-sheet.css +2 -0
- package/theming/components/cngx-breadcrumb.css +3 -1
- package/theming/components/cngx-button-group.css +325 -0
- package/theming/components/cngx-button-toggle.css +55 -23
- package/theming/components/cngx-button.css +975 -0
- package/theming/components/cngx-data-grid.css +2 -0
- package/theming/components/cngx-dialog.css +3 -1
- package/theming/components/cngx-divider.css +24 -9
- package/theming/components/cngx-drawer.css +153 -0
- package/theming/components/cngx-icon-glyph.css +76 -0
- package/theming/components/cngx-listbox.css +79 -25
- package/theming/components/cngx-menu.css +112 -52
- package/theming/components/cngx-nav.css +1220 -0
- package/theming/components/cngx-popover-sheet.css +434 -0
- package/theming/components/cngx-popover.css +37 -9
- package/theming/components/cngx-recycler-placeholder.css +2 -0
- package/theming/components/cngx-ripple.css +74 -16
- package/theming/components/cngx-sidebar.css +71 -0
- package/theming/components/cngx-slider.css +3 -1
- package/theming/components/cngx-tooltip.css +2 -0
- package/timeline/README.md +2 -2
- package/types/cngx-common-a11y.d.ts +488 -112
- package/types/cngx-common-audio.d.ts +60 -88
- package/types/cngx-common-button.d.ts +698 -0
- package/types/cngx-common-card.d.ts +104 -78
- package/types/cngx-common-chart.d.ts +677 -389
- package/types/cngx-common-command.d.ts +55 -41
- package/types/cngx-common-data.d.ts +506 -360
- package/types/cngx-common-dialog.d.ts +94 -127
- package/types/cngx-common-display.d.ts +475 -300
- package/types/cngx-common-interactive.d.ts +4383 -1721
- package/types/cngx-common-layout.d.ts +1399 -288
- package/types/cngx-common-menu-button.d.ts +382 -0
- package/types/cngx-common-popover.d.ts +990 -268
- package/types/cngx-common-stepper.d.ts +374 -465
- package/types/cngx-common-tabs.d.ts +309 -403
- package/types/cngx-common-timeline.d.ts +50 -109
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Signal, InjectionToken, ModelSignal, TemplateRef, OnInit, AfterContentInit, EnvironmentProviders, Provider, Injector } from '@angular/core';
|
|
3
|
+
import { CngxTransitionOutcome, CngxCommitController } from '@cngx/common/data';
|
|
3
4
|
import { CngxAsyncState, StatusTransition } from '@cngx/core/utils';
|
|
4
5
|
import { Observable } from 'rxjs';
|
|
5
6
|
import { CngxErrorAggregatorContract } from '@cngx/common/interactive';
|
|
6
7
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
7
8
|
import { CngxMessage } from '@cngx/core/i18n';
|
|
8
|
-
import { CngxCommitController } from '@cngx/common/data';
|
|
9
9
|
import { CngxDirection } from '@cngx/core';
|
|
10
10
|
import { CngxActiveDescendant, ActiveDescendantItem } from '@cngx/common/a11y';
|
|
11
11
|
import { CngxPopover } from '@cngx/common/popover';
|
|
@@ -16,8 +16,6 @@ import { CngxPopover } from '@cngx/common/popover';
|
|
|
16
16
|
* so subsequent input changes propagate without re-registration.
|
|
17
17
|
* `errorAggregator` is a `Signal<...>` slot so consumer aggregators
|
|
18
18
|
* resolved via `viewChild` after first registration still bind.
|
|
19
|
-
*
|
|
20
|
-
* @category common/tabs
|
|
21
19
|
*/
|
|
22
20
|
interface CngxTabHandle {
|
|
23
21
|
readonly id: string;
|
|
@@ -61,8 +59,6 @@ interface CngxTabHandle {
|
|
|
61
59
|
* tab's id and its index at close time. The consumer removes the tab
|
|
62
60
|
* from its own data in response; the presenter has already moved the
|
|
63
61
|
* active index to the surviving neighbour.
|
|
64
|
-
*
|
|
65
|
-
* @category common/tabs
|
|
66
62
|
*/
|
|
67
63
|
interface CngxTabCloseEvent {
|
|
68
64
|
readonly id: string;
|
|
@@ -72,8 +68,6 @@ interface CngxTabCloseEvent {
|
|
|
72
68
|
* Contract atoms see when they inject the presenter via
|
|
73
69
|
* {@link CNGX_TAB_GROUP_HOST}. Atoms never reach into the concrete
|
|
74
70
|
* class - keeps layering cycle-free and the decompose schematic clean.
|
|
75
|
-
*
|
|
76
|
-
* @category common/tabs
|
|
77
71
|
*/
|
|
78
72
|
interface CngxTabGroupHost {
|
|
79
73
|
readonly tabs: Signal<readonly CngxTabHandle[]>;
|
|
@@ -91,10 +85,25 @@ interface CngxTabGroupHost {
|
|
|
91
85
|
*/
|
|
92
86
|
readonly commitTransition: StatusTransition;
|
|
93
87
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
88
|
+
* Settle record of the most recent commit that did not land:
|
|
89
|
+
* `kind: 'refused'` when `commitAction` answered `false`, `'failed'`
|
|
90
|
+
* when it threw, rejected or errored; `index` is the rejected target,
|
|
91
|
+
* `sequence` is bumped once per settled refusal or failure. Kept
|
|
92
|
+
* through {@link clearLastFailed} (which only hides the marker), so the
|
|
93
|
+
* announcement record survives a cleared decoration. Closing a tab
|
|
94
|
+
* before the target shifts `index` and keeps `sequence`; closing the
|
|
95
|
+
* target itself drops the record. A refusal leaves `commitState` at
|
|
96
|
+
* `'idle'` with its data intact, so this is the only place a refusal
|
|
97
|
+
* is visible as such.
|
|
98
|
+
*/
|
|
99
|
+
readonly lastOutcome: Signal<CngxTransitionOutcome | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* Tab index of the most recently rejected (refused or failed) commit
|
|
102
|
+
* target, both optimistic and pessimistic modes, or `undefined` when no
|
|
103
|
+
* rejection marker is shown. Derived from {@link lastOutcome}; cleared
|
|
104
|
+
* on the next successful re-pick of the same index or via
|
|
105
|
+
* {@link clearLastFailed}. Drives the persistent rejection-icon
|
|
106
|
+
* decoration.
|
|
98
107
|
*
|
|
99
108
|
* @remarks
|
|
100
109
|
* The `pending → error` pulse keyframe (`cngx-tab-pulse-error`)
|
|
@@ -107,7 +116,7 @@ interface CngxTabGroupHost {
|
|
|
107
116
|
/**
|
|
108
117
|
* Safe-harbour origin index captured at the start of an active
|
|
109
118
|
* commit window. Written when `select()` opens a transition under
|
|
110
|
-
* `commitAction`; retained on
|
|
119
|
+
* `commitAction`; retained on a refusal or failure so the live-region phrase
|
|
111
120
|
* can resolve the origin label; cleared on `success`. Outside the
|
|
112
121
|
* commit window the slot may carry a stale value - consumers must
|
|
113
122
|
* gate reads by joining with `lastFailedIndex`. The origin is
|
|
@@ -141,10 +150,11 @@ interface CngxTabGroupHost {
|
|
|
141
150
|
*/
|
|
142
151
|
requestAdd(): void;
|
|
143
152
|
/**
|
|
144
|
-
* Clear {@link lastFailedIndex} without unwinding
|
|
153
|
+
* Clear the {@link lastFailedIndex} marker without unwinding
|
|
145
154
|
* {@link originIndexDuringCommit} (consumers gate reads on
|
|
146
|
-
* `lastFailedIndex` anyway)
|
|
147
|
-
* changes and the rollback marker is
|
|
155
|
+
* `lastFailedIndex` anyway) and without touching {@link lastOutcome}.
|
|
156
|
+
* Call when the bound data source changes and the rollback marker is
|
|
157
|
+
* no longer meaningful.
|
|
148
158
|
*/
|
|
149
159
|
clearLastFailed(): void;
|
|
150
160
|
}
|
|
@@ -155,10 +165,9 @@ interface CngxTabGroupHost {
|
|
|
155
165
|
* `select()`, roving stop derived from `activeId`) through
|
|
156
166
|
* `createTabKeyboardNav`.
|
|
157
167
|
*
|
|
158
|
-
* @category common/tabs
|
|
159
168
|
* @wcag AA
|
|
160
169
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-group-host.token.ts
|
|
161
|
-
* @since 0.
|
|
170
|
+
* @since 0.3.0
|
|
162
171
|
*/
|
|
163
172
|
declare const CNGX_TAB_GROUP_HOST: InjectionToken<CngxTabGroupHost>;
|
|
164
173
|
|
|
@@ -167,8 +176,6 @@ declare const CNGX_TAB_GROUP_HOST: InjectionToken<CngxTabGroupHost>;
|
|
|
167
176
|
* Receives origin and target indices; resolves `true` to commit, `false` to refuse.
|
|
168
177
|
* `Observable | Promise | sync` union mirrors the rest of the CNGX
|
|
169
178
|
* commit-action family.
|
|
170
|
-
*
|
|
171
|
-
* @category common/tabs
|
|
172
179
|
*/
|
|
173
180
|
type CngxTabsCommitAction = (fromIndex: number, toIndex: number) => boolean | Promise<boolean> | Observable<boolean>;
|
|
174
181
|
/**
|
|
@@ -183,26 +190,31 @@ type CngxTabsCommitAction = (fromIndex: number, toIndex: number) => boolean | Pr
|
|
|
183
190
|
* Directive-only - organisms compose via `hostDirectives`, consumers attach
|
|
184
191
|
* `[cngxTabGroup]` directly.
|
|
185
192
|
*
|
|
186
|
-
* @category common/tabs
|
|
187
|
-
* @docsKind primary
|
|
188
193
|
* @wcag AA
|
|
189
194
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/presenter.directive.ts
|
|
190
|
-
* @since 0.
|
|
195
|
+
* @since 0.3.0
|
|
191
196
|
* @relatedTo CngxTab, CngxTabContent, CngxTabLabel, CngxTabsFragmentSync
|
|
192
|
-
* <example-url
|
|
197
|
+
* <example-url>/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
|
|
193
198
|
*/
|
|
194
199
|
declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
195
200
|
private readonly config;
|
|
201
|
+
/**
|
|
202
|
+
* Zero-based index of the active tab, two-way bindable as `[(activeIndex)]`. Defaults to `0`. The
|
|
203
|
+
* presenter writes it on navigation, so with a `commitAction` in `'pessimistic'` mode it changes only
|
|
204
|
+
* after the action resolves `true`; `activeId` reads it clamped to the registered tab count.
|
|
205
|
+
*/
|
|
196
206
|
readonly activeIndex: i0.ModelSignal<number>;
|
|
197
207
|
/**
|
|
198
|
-
*
|
|
199
|
-
* the resolved
|
|
208
|
+
* Axis of the tab list: `'horizontal'` or `'vertical'`, bound as `[orientation]`. The tab organisms
|
|
209
|
+
* reflect the resolved value as `aria-orientation` and `data-orientation`. Unbound, the
|
|
210
|
+
* {@link orientation} computed falls back to the tabs config `defaultOrientation`, then `'horizontal'`.
|
|
200
211
|
*/
|
|
201
212
|
readonly orientationInput: i0.InputSignal<"horizontal" | "vertical" | undefined>;
|
|
202
213
|
readonly orientation: Signal<"horizontal" | "vertical">;
|
|
203
214
|
/**
|
|
204
|
-
*
|
|
205
|
-
*
|
|
215
|
+
* Whether `selectNext` and `selectPrevious` wrap from the last enabled tab to the first and back,
|
|
216
|
+
* bound as `[loop]`. Unbound, the {@link loop} computed falls back to the tabs config `defaultLoop`,
|
|
217
|
+
* then `true`.
|
|
206
218
|
*/
|
|
207
219
|
readonly loopInput: i0.InputSignal<boolean | undefined>;
|
|
208
220
|
readonly loop: Signal<boolean>;
|
|
@@ -213,19 +225,19 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
213
225
|
* semantics come from the commit-controller - a rapid second
|
|
214
226
|
* `select(...)` cancels the in-flight runner.
|
|
215
227
|
*
|
|
216
|
-
* @
|
|
217
|
-
* the
|
|
228
|
+
* Bound as `[commitAction]`. The {@link commitAction} computed resolves the input first, then the
|
|
229
|
+
* `CNGX_TABS_COMMIT_ACTION` DI fallback used by the router sync, then `null`; there is no config
|
|
230
|
+
* tier.
|
|
218
231
|
*/
|
|
219
232
|
readonly commitActionInput: i0.InputSignal<CngxTabsCommitAction | null>;
|
|
220
233
|
/**
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
* action to confirm.
|
|
234
|
+
* Whether a tab change lands before (`'optimistic'`) or after (`'pessimistic'`) the commit action
|
|
235
|
+
* resolves, bound as `[commitMode]`. A tab change is navigation, not a save, so the default is
|
|
236
|
+
* `'optimistic'`; choose `'pessimistic'` when the new tab must wait for the action to confirm.
|
|
225
237
|
*
|
|
226
|
-
* @
|
|
227
|
-
* the
|
|
228
|
-
*
|
|
238
|
+
* The {@link commitMode} computed lets the mode of an active `CNGX_TABS_COMMIT_ACTION` DI fallback
|
|
239
|
+
* win (the routed path pins `'pessimistic'`); otherwise it resolves the input, then the tabs config
|
|
240
|
+
* `defaultCommitMode`, then `'optimistic'`.
|
|
229
241
|
*/
|
|
230
242
|
readonly commitModeInput: i0.InputSignal<"optimistic" | "pessimistic" | undefined>;
|
|
231
243
|
private readonly injector;
|
|
@@ -276,8 +288,12 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
276
288
|
* the tracker's `linkedSignal` is allocated once per presenter.
|
|
277
289
|
*/
|
|
278
290
|
readonly commitTransition: StatusTransition;
|
|
279
|
-
private readonly
|
|
291
|
+
private readonly lastOutcomeState;
|
|
292
|
+
private readonly clearedSequenceState;
|
|
293
|
+
private outcomeSequence;
|
|
280
294
|
private readonly originIndexDuringCommitState;
|
|
295
|
+
/** {@inheritDoc CngxTabGroupHost.lastOutcome} */
|
|
296
|
+
readonly lastOutcome: Signal<CngxTransitionOutcome | undefined>;
|
|
281
297
|
/** {@inheritDoc CngxTabGroupHost.lastFailedIndex} */
|
|
282
298
|
readonly lastFailedIndex: Signal<number | undefined>;
|
|
283
299
|
/** {@inheritDoc CngxTabGroupHost.originIndexDuringCommit} */
|
|
@@ -286,15 +302,51 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
286
302
|
readonly tabs: Signal<readonly CngxTabHandle[]>;
|
|
287
303
|
private readonly clampedIndex;
|
|
288
304
|
readonly activeId: Signal<string | null>;
|
|
305
|
+
/**
|
|
306
|
+
* `CngxTabGroupHost` contract, called by `CngxTab` in its `ngOnInit` and by `CngxTabLink`. Appends the
|
|
307
|
+
* handle to the tab list in registration order; a second call with a known id replaces the stored
|
|
308
|
+
* handle and keeps its position.
|
|
309
|
+
*/
|
|
289
310
|
register(handle: CngxTabHandle): void;
|
|
311
|
+
/**
|
|
312
|
+
* `CngxTabGroupHost` contract, called from the destroy hook of `CngxTab` and `CngxTabLink`. Removes the
|
|
313
|
+
* tab from the list; when `handle` is passed and is no longer the stored one (it was replaced by a
|
|
314
|
+
* re-register), the call does nothing.
|
|
315
|
+
*/
|
|
290
316
|
unregister(id: string, handle?: CngxTabHandle): void;
|
|
291
317
|
/** {@inheritDoc CngxTabGroupHost.clearLastFailed} */
|
|
292
318
|
clearLastFailed(): void;
|
|
319
|
+
/**
|
|
320
|
+
* Activates the tab at the given index, clamped to the registered range. Does nothing when the target is
|
|
321
|
+
* the active tab or is disabled. Without a `commitAction` the change is synchronous; with one, it follows
|
|
322
|
+
* `commitMode`, and a newer call supersedes the pending one.
|
|
323
|
+
*/
|
|
293
324
|
select(index: number): void;
|
|
325
|
+
/**
|
|
326
|
+
* Activates the next enabled tab after the active one, through `select`. At the end of the list it wraps
|
|
327
|
+
* to the first enabled tab when `loop` is on, otherwise it does nothing.
|
|
328
|
+
*/
|
|
294
329
|
selectNext(): void;
|
|
330
|
+
/**
|
|
331
|
+
* Activates the previous enabled tab before the active one, through `select`. At the start of the list it
|
|
332
|
+
* wraps to the last enabled tab when `loop` is on, otherwise it does nothing.
|
|
333
|
+
*/
|
|
295
334
|
selectPrevious(): void;
|
|
335
|
+
/**
|
|
336
|
+
* Activates the tab registered under the given id, through `select`. Unknown ids are ignored.
|
|
337
|
+
*/
|
|
296
338
|
selectById(id: string): void;
|
|
339
|
+
/**
|
|
340
|
+
* Asks to close the tab with the given id: when an earlier tab closes it shifts `activeIndex` and the
|
|
341
|
+
* rejection markers so the same tab stays active; closing the active tab hands over to its neighbour.
|
|
342
|
+
* Then emits `tabClose` with the id and index. It does not remove the tab; the consumer
|
|
343
|
+
* drops it from its own data in the `(tabClose)` handler. Unknown ids are ignored.
|
|
344
|
+
*/
|
|
297
345
|
requestClose(id: string): void;
|
|
346
|
+
/**
|
|
347
|
+
* Emits `tabAdd`. The presenter creates no tab; the consumer appends one to its own data in the
|
|
348
|
+
* `(tabAdd)` handler.
|
|
349
|
+
*/
|
|
298
350
|
requestAdd(): void;
|
|
299
351
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxTabGroupPresenter, never>;
|
|
300
352
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxTabGroupPresenter, "[cngxTabGroup]", ["cngxTabGroup"], { "activeIndex": { "alias": "activeIndex"; "required": false; "isSignal": true; }; "orientationInput": { "alias": "orientation"; "required": false; "isSignal": true; }; "loopInput": { "alias": "loop"; "required": false; "isSignal": true; }; "commitActionInput": { "alias": "commitAction"; "required": false; "isSignal": true; }; "commitModeInput": { "alias": "commitMode"; "required": false; "isSignal": true; }; }, { "activeIndex": "activeIndexChange"; "tabClose": "tabClose"; "tabAdd": "tabAdd"; }, never, never, true, never>;
|
|
@@ -310,8 +362,6 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
310
362
|
* gating. Template resolvers let skin sub-components project the
|
|
311
363
|
* `*cngxTabLabel` / `*cngxTabContent` slots without depending on the
|
|
312
364
|
* concrete `CngxTabGroup` class.
|
|
313
|
-
*
|
|
314
|
-
* @category common/tabs
|
|
315
365
|
*/
|
|
316
366
|
interface CngxTabPanelHost {
|
|
317
367
|
readonly tabs: Signal<readonly CngxTabHandle[]>;
|
|
@@ -328,10 +378,9 @@ interface CngxTabPanelHost {
|
|
|
328
378
|
* The overflow molecule and consumer-authored skin sub-components inject this
|
|
329
379
|
* instead of the concrete component class.
|
|
330
380
|
*
|
|
331
|
-
* @category common/tabs
|
|
332
381
|
* @wcag AA
|
|
333
382
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-panel-host.token.ts
|
|
334
|
-
* @since 0.
|
|
383
|
+
* @since 0.3.0
|
|
335
384
|
*/
|
|
336
385
|
declare const CNGX_TAB_PANEL_HOST: InjectionToken<CngxTabPanelHost>;
|
|
337
386
|
|
|
@@ -370,10 +419,9 @@ declare const CNGX_TAB_PANEL_HOST: InjectionToken<CngxTabPanelHost>;
|
|
|
370
419
|
* export class MySectionNav {}
|
|
371
420
|
* ```
|
|
372
421
|
*
|
|
373
|
-
* @category common/tabs
|
|
374
422
|
* @wcag AA
|
|
375
423
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-nav-host.token.ts
|
|
376
|
-
* @since 0.
|
|
424
|
+
* @since 0.3.0
|
|
377
425
|
* @relatedTo CngxTabsRouteSync, CNGX_TAB_GROUP_HOST, CngxTabNav, CngxMatTabNav
|
|
378
426
|
*/
|
|
379
427
|
declare const CNGX_TAB_NAV_HOST: InjectionToken<true>;
|
|
@@ -385,16 +433,12 @@ declare const CNGX_TAB_NAV_HOST: InjectionToken<true>;
|
|
|
385
433
|
* a `role="tablist"` implies.
|
|
386
434
|
* - `'prefix'` - the tab owns a subtree, the section semantics a
|
|
387
435
|
* `role="navigation"` of links implies.
|
|
388
|
-
*
|
|
389
|
-
* @category common/tabs
|
|
390
436
|
*/
|
|
391
437
|
type CngxTabMatchMode = 'suffix' | 'prefix';
|
|
392
438
|
/**
|
|
393
439
|
* Everything {@link CngxTabUrlMatch} needs to resolve the active tab.
|
|
394
440
|
* Passed in rather than injected, so the strategy stays a pure function
|
|
395
441
|
* of its inputs and needs no injection context.
|
|
396
|
-
*
|
|
397
|
-
* @category common/tabs
|
|
398
442
|
*/
|
|
399
443
|
interface CngxTabUrlMatchContext {
|
|
400
444
|
readonly router: Router;
|
|
@@ -409,14 +453,12 @@ interface CngxTabUrlMatchContext {
|
|
|
409
453
|
}
|
|
410
454
|
/**
|
|
411
455
|
* Resolves which registered tab the current URL belongs to.
|
|
412
|
-
*
|
|
413
|
-
* @category common/tabs
|
|
414
456
|
*/
|
|
415
457
|
interface CngxTabUrlMatch {
|
|
416
458
|
/** Active tab id, or `null` when the URL is outside this tab set. */
|
|
417
459
|
resolve(ctx: CngxTabUrlMatchContext): string | null;
|
|
418
460
|
}
|
|
419
|
-
/** Factory shape overrides must match.
|
|
461
|
+
/** Factory shape overrides must match. */
|
|
420
462
|
type CngxTabUrlMatchFactory = () => CngxTabUrlMatch;
|
|
421
463
|
/**
|
|
422
464
|
* The two URL-matching policies `[cngxTabsRouteSync]` ships, dispatched
|
|
@@ -425,8 +467,6 @@ type CngxTabUrlMatchFactory = () => CngxTabUrlMatch;
|
|
|
425
467
|
*
|
|
426
468
|
* Pure: no injection context, no signal reads. The directive resolves the
|
|
427
469
|
* mode cascade and the tab registry, then hands both in.
|
|
428
|
-
*
|
|
429
|
-
* @category common/tabs
|
|
430
470
|
*/
|
|
431
471
|
declare function createTabUrlMatch(): CngxTabUrlMatch;
|
|
432
472
|
/**
|
|
@@ -443,10 +483,9 @@ declare function createTabUrlMatch(): CngxTabUrlMatch;
|
|
|
443
483
|
* navigation a tab switch performs is already swappable, so the read that
|
|
444
484
|
* mirrors navigation back onto `activeIndex` should be too.
|
|
445
485
|
*
|
|
446
|
-
* @category common/tabs
|
|
447
486
|
* @wcag AA
|
|
448
487
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/url-match.ts
|
|
449
|
-
* @since 0.
|
|
488
|
+
* @since 0.3.0
|
|
450
489
|
* @relatedTo CngxTabsRouteSync, createTabUrlMatch, createTabRouterCommit
|
|
451
490
|
*/
|
|
452
491
|
declare const CNGX_TAB_URL_MATCH_STRATEGY: InjectionToken<CngxTabUrlMatch>;
|
|
@@ -464,10 +503,9 @@ declare const CNGX_TAB_URL_MATCH_STRATEGY: InjectionToken<CngxTabUrlMatch>;
|
|
|
464
503
|
* </div>
|
|
465
504
|
* ```
|
|
466
505
|
*
|
|
467
|
-
* @category common/tabs
|
|
468
506
|
* @wcag AA
|
|
469
507
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-content.directive.ts
|
|
470
|
-
* @since 0.
|
|
508
|
+
* @since 0.3.0
|
|
471
509
|
* @relatedTo CngxTab, CngxTabLabel
|
|
472
510
|
*/
|
|
473
511
|
declare class CngxTabContent {
|
|
@@ -488,10 +526,9 @@ declare class CngxTabContent {
|
|
|
488
526
|
* </div>
|
|
489
527
|
* ```
|
|
490
528
|
*
|
|
491
|
-
* @category common/tabs
|
|
492
529
|
* @wcag AA
|
|
493
530
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-label.directive.ts
|
|
494
|
-
* @since 0.
|
|
531
|
+
* @since 0.3.0
|
|
495
532
|
* @relatedTo CngxTab, CngxTabContent
|
|
496
533
|
*/
|
|
497
534
|
declare class CngxTabLabel {
|
|
@@ -517,12 +554,11 @@ declare class CngxTabLabel {
|
|
|
517
554
|
* </div>
|
|
518
555
|
* ```
|
|
519
556
|
*
|
|
520
|
-
* @category common/tabs/slots
|
|
521
557
|
* @wcag AA
|
|
522
558
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-sub-label.directive.ts
|
|
523
|
-
* @since 0.
|
|
559
|
+
* @since 0.3.0
|
|
524
560
|
* @relatedTo CngxTab, CngxTabLabel, CngxTabContent
|
|
525
|
-
* <example-url
|
|
561
|
+
* <example-url>/#/ui/tabs/tab-sub-label/label-with-count</example-url>
|
|
526
562
|
*/
|
|
527
563
|
declare class CngxTabSubLabel {
|
|
528
564
|
/**
|
|
@@ -550,19 +586,30 @@ declare class CngxTabSubLabel {
|
|
|
550
586
|
* ... content templates here ...
|
|
551
587
|
* </div>
|
|
552
588
|
* ```
|
|
553
|
-
* @category common/tabs
|
|
554
|
-
* @docsKind primary
|
|
555
589
|
* @wcag AA
|
|
556
590
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab.directive.ts
|
|
557
|
-
* @since 0.
|
|
591
|
+
* @since 0.3.0
|
|
558
592
|
* @relatedTo CngxTabGroupPresenter, CngxTabLabel, CngxTabContent, CngxTabErrorBadge
|
|
559
593
|
* @slot cngxTabLabel The tab's own header label.
|
|
560
594
|
* @slot cngxTabSubLabel Secondary line under the label, e.g. a count or status.
|
|
561
595
|
* @slot cngxTabContent The panel body, rendered lazily when the tab activates.
|
|
562
596
|
*/
|
|
563
597
|
declare class CngxTab implements OnInit {
|
|
598
|
+
/**
|
|
599
|
+
* Identifier the tab registers under with its group. Defaults to an auto-generated `cngx-tab-` uid.
|
|
600
|
+
* It is captured once in `ngOnInit`, so a later rebind does not re-register; `selectById`, the
|
|
601
|
+
* `(tabClose)` event and the fragment-sync deep link match against it.
|
|
602
|
+
*/
|
|
564
603
|
readonly id: i0.InputSignal<string>;
|
|
604
|
+
/**
|
|
605
|
+
* Marks the tab as not selectable. Defaults to `false`. A disabled tab is skipped by next/previous
|
|
606
|
+
* navigation and refused by `select`, and the strip header reflects it through `aria-disabled`.
|
|
607
|
+
*/
|
|
565
608
|
readonly disabled: i0.InputSignal<boolean>;
|
|
609
|
+
/**
|
|
610
|
+
* Header text of the tab, shown in the strip. Defaults to `undefined`; the `*cngxTabLabel` slot
|
|
611
|
+
* provides richer content.
|
|
612
|
+
*/
|
|
566
613
|
readonly label: i0.InputSignal<string | undefined>;
|
|
567
614
|
/**
|
|
568
615
|
* Optional secondary text line under the primary label (a count, a
|
|
@@ -571,6 +618,11 @@ declare class CngxTab implements OnInit {
|
|
|
571
618
|
* richer content. Folds into the tab's accessible name.
|
|
572
619
|
*/
|
|
573
620
|
readonly subLabel: i0.InputSignal<string | undefined>;
|
|
621
|
+
/**
|
|
622
|
+
* Optional error aggregator for forms with several error sources. Defaults to `undefined`. The tab
|
|
623
|
+
* counts as errored when the aggregator's `shouldShow()` is `true`, so a deferred-reveal validation stays
|
|
624
|
+
* silent until it is revealed; it composes with `[error]`, either one errors the tab.
|
|
625
|
+
*/
|
|
574
626
|
readonly errorAggregator: i0.InputSignal<CngxErrorAggregatorContract | undefined>;
|
|
575
627
|
/**
|
|
576
628
|
* Direct error flag for the common "this tab is invalid" case - no
|
|
@@ -633,8 +685,9 @@ declare class CngxTab implements OnInit {
|
|
|
633
685
|
* There is no `select()` call - invoking it would re-enter the commit path the
|
|
634
686
|
* routed-nav model deliberately keeps dormant.
|
|
635
687
|
*
|
|
636
|
-
* **Error communication is reactive:** `aria-invalid` plus
|
|
637
|
-
*
|
|
688
|
+
* **Error communication is reactive:** `aria-invalid` plus a leading
|
|
689
|
+
* `aria-hidden` alert icon (`.cngx-tab-link__error-icon`, built from the
|
|
690
|
+
* shared icon data) signal the state, and an injected screen-reader
|
|
638
691
|
* descriptor span (referenced by a permanent `aria-describedby`) carries the
|
|
639
692
|
* direct `[error]` message string so assistive tech reads *why* the link is
|
|
640
693
|
* invalid.
|
|
@@ -646,11 +699,9 @@ declare class CngxTab implements OnInit {
|
|
|
646
699
|
* </cngx-tab-nav>
|
|
647
700
|
* ```
|
|
648
701
|
*
|
|
649
|
-
* @category common/tabs
|
|
650
|
-
* @docsKind primary
|
|
651
702
|
* @wcag AA
|
|
652
703
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-link.directive.ts
|
|
653
|
-
* @since 0.
|
|
704
|
+
* @since 0.3.0
|
|
654
705
|
* @relatedTo CngxTabNav, CngxTabsRouteSync, CngxTab, CngxMatTabLink
|
|
655
706
|
*/
|
|
656
707
|
declare class CngxTabLink implements OnInit {
|
|
@@ -721,8 +772,16 @@ declare class CngxTabLink implements OnInit {
|
|
|
721
772
|
protected readonly descriptorId: Signal<string>;
|
|
722
773
|
/** The injected descriptor `<span>`, created in {@link ngOnInit}. */
|
|
723
774
|
private descriptorEl;
|
|
775
|
+
/** The leading alert icon, present while {@link hasError} holds. */
|
|
776
|
+
private errorIconEl;
|
|
724
777
|
constructor();
|
|
725
778
|
ngOnInit(): void;
|
|
779
|
+
/**
|
|
780
|
+
* Insert or remove the leading `aria-hidden` alert icon. The svg is
|
|
781
|
+
* legible bare (see `createIconSvgElement`); a styled tab organism sizes
|
|
782
|
+
* it through the `.cngx-tab-link__error-icon` hook.
|
|
783
|
+
*/
|
|
784
|
+
private syncErrorIcon;
|
|
726
785
|
/**
|
|
727
786
|
* Write the current direct-error message into the descriptor span and
|
|
728
787
|
* toggle its `aria-hidden` so a clear link exposes no description. Keeps
|
|
@@ -765,15 +824,25 @@ declare class CngxTabLink implements OnInit {
|
|
|
765
824
|
* </cngx-tab-group>
|
|
766
825
|
* ```
|
|
767
826
|
*
|
|
768
|
-
* @category common/tabs
|
|
769
|
-
* @docsKind primary
|
|
770
827
|
* @wcag AA
|
|
771
828
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/router-sync.directive.ts
|
|
772
|
-
* @since 0.
|
|
829
|
+
* @since 0.3.0
|
|
773
830
|
* @relatedTo CngxTabGroupPresenter, CngxTab
|
|
831
|
+
* @axis level organism
|
|
774
832
|
*/
|
|
775
833
|
declare class CngxTabsFragmentSync implements AfterContentInit {
|
|
834
|
+
/**
|
|
835
|
+
* Binding `[mode]`: where the active tab id is kept in the URL, `'fragment'` (`#tab=settings`) or
|
|
836
|
+
* `'queryParam'` (`?tab=settings`). Unset, it resolves through `fragmentSyncMode` of the tabs config and
|
|
837
|
+
* then `'fragment'`. A change after init applies to the next URL write or read and leaves the previous
|
|
838
|
+
* key in the URL.
|
|
839
|
+
*/
|
|
776
840
|
readonly modeInput: i0.InputSignal<"fragment" | "queryParam" | undefined>;
|
|
841
|
+
/**
|
|
842
|
+
* Binding `[paramName]`: name of the fragment or query key that carries the tab id. Unset, it resolves
|
|
843
|
+
* through `fragmentSyncParam` of the tabs config and then `'tab'`. A change after init applies to the next URL write or read and leaves the previous
|
|
844
|
+
* key in the URL.
|
|
845
|
+
*/
|
|
777
846
|
readonly paramNameInput: i0.InputSignal<string | undefined>;
|
|
778
847
|
private readonly config;
|
|
779
848
|
readonly mode: i0.Signal<"fragment" | "queryParam">;
|
|
@@ -845,8 +914,6 @@ declare class CngxTabsFragmentSync implements AfterContentInit {
|
|
|
845
914
|
* path can pin pessimistic - the active tab must follow the *resolved*
|
|
846
915
|
* route, and a stray `[commitMode]="'optimistic'"` must not override
|
|
847
916
|
* that invariant.
|
|
848
|
-
*
|
|
849
|
-
* @category common/tabs
|
|
850
917
|
*/
|
|
851
918
|
interface CngxTabsCommitActionSource {
|
|
852
919
|
/**
|
|
@@ -870,9 +937,8 @@ interface CngxTabsCommitActionSource {
|
|
|
870
937
|
* exposes a non-null `action()`, its `mode()` wins over the
|
|
871
938
|
* `[commitMode]` input.
|
|
872
939
|
*
|
|
873
|
-
* @category common/tabs
|
|
874
940
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/commit-action.token.ts
|
|
875
|
-
* @since 0.
|
|
941
|
+
* @since 0.3.0
|
|
876
942
|
*/
|
|
877
943
|
declare const CNGX_TABS_COMMIT_ACTION: InjectionToken<CngxTabsCommitActionSource>;
|
|
878
944
|
|
|
@@ -970,11 +1036,9 @@ declare const CNGX_TABS_COMMIT_ACTION: InjectionToken<CngxTabsCommitActionSource
|
|
|
970
1036
|
* <router-outlet></router-outlet>
|
|
971
1037
|
* ```
|
|
972
1038
|
*
|
|
973
|
-
* @category common/tabs
|
|
974
|
-
* @docsKind primary
|
|
975
1039
|
* @wcag AA
|
|
976
1040
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/route-sync.directive.ts
|
|
977
|
-
* @since 0.
|
|
1041
|
+
* @since 0.3.0
|
|
978
1042
|
* @relatedTo CngxTabGroupPresenter, CngxTabsFragmentSync, createTabRouterCommit, CngxTabNav, CngxTabLink
|
|
979
1043
|
*/
|
|
980
1044
|
declare class CngxTabsRouteSync implements CngxTabsCommitActionSource, AfterContentInit {
|
|
@@ -1020,7 +1084,7 @@ declare class CngxTabsRouteSync implements CngxTabsCommitActionSource, AfterCont
|
|
|
1020
1084
|
readonly mode: Signal<'optimistic' | 'pessimistic'>;
|
|
1021
1085
|
/**
|
|
1022
1086
|
* Router commit-action read by the presenter via the DI fallback.
|
|
1023
|
-
* `null` when
|
|
1087
|
+
* `null` when the router is not set up (graceful no-op). Rebuilt only
|
|
1024
1088
|
* when `routeFor` changes; the navigation gate itself is the async
|
|
1025
1089
|
* op inside the action.
|
|
1026
1090
|
*/
|
|
@@ -1062,8 +1126,6 @@ declare class CngxTabsRouteSync implements CngxTabsCommitActionSource, AfterCont
|
|
|
1062
1126
|
* target *index*, so it needs the registry to resolve the matching
|
|
1063
1127
|
* {@link CngxTabHandle} before computing its route. `[cngxTabsRouteSync]`
|
|
1064
1128
|
* passes the host's `tabs` signal straight through.
|
|
1065
|
-
*
|
|
1066
|
-
* @category common/tabs
|
|
1067
1129
|
*/
|
|
1068
1130
|
interface CngxTabRouterCommitOptions {
|
|
1069
1131
|
readonly router: Router;
|
|
@@ -1081,9 +1143,17 @@ interface CngxTabRouterCommitOptions {
|
|
|
1081
1143
|
* resolves on this navigation's own `navigate()` promise:
|
|
1082
1144
|
*
|
|
1083
1145
|
* - resolved `true` (`NavigationEnd`) → `true` (commit the switch)
|
|
1146
|
+
* - resolved `null` (a skipped same-URL navigation, the route is
|
|
1147
|
+
* already active) → `true`
|
|
1084
1148
|
* - resolved `false` (`NavigationCancel` - a `CanDeactivate` guard
|
|
1085
|
-
* blocked, or a newer navigation superseded this one) → `false
|
|
1086
|
-
*
|
|
1149
|
+
* blocked, or a newer navigation superseded this one) → `false`, a
|
|
1150
|
+
* refused switch: nothing failed, the commit state stores no error
|
|
1151
|
+
* - rejected (`NavigationError` - a guard or resolver threw) → the
|
|
1152
|
+
* observable errors with the router's original error, a failed
|
|
1153
|
+
* switch: the commit state goes to `'error'` and keeps that error
|
|
1154
|
+
*
|
|
1155
|
+
* This is the router's own model: a guard answering `false` cancels,
|
|
1156
|
+
* only a throw is an error.
|
|
1087
1157
|
*
|
|
1088
1158
|
* Routed tabs reuse the presenter's commit lifecycle verbatim - the
|
|
1089
1159
|
* router navigation is simply the async op. \
|
|
@@ -1095,9 +1165,8 @@ interface CngxTabRouterCommitOptions {
|
|
|
1095
1165
|
* late promise resolution lands on the closed subscriber and is
|
|
1096
1166
|
* dropped by RxJS itself.
|
|
1097
1167
|
*
|
|
1098
|
-
* @category common/tabs
|
|
1099
1168
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/router-commit.ts
|
|
1100
|
-
* @since 0.
|
|
1169
|
+
* @since 0.3.0
|
|
1101
1170
|
*/
|
|
1102
1171
|
declare function createTabRouterCommit(opts: CngxTabRouterCommitOptions): CngxTabsCommitAction;
|
|
1103
1172
|
|
|
@@ -1106,8 +1175,6 @@ declare function createTabRouterCommit(opts: CngxTabRouterCommitOptions): CngxTa
|
|
|
1106
1175
|
* default text (the tab label, or `unlabeledTab(position)`) inside the More popover; the
|
|
1107
1176
|
* surrounding `<li role="menuitem">` shell (`aria-disabled`, click
|
|
1108
1177
|
* handler, `data-tab-id`) stays library-owned.
|
|
1109
|
-
*
|
|
1110
|
-
* @category common/tabs/overflow
|
|
1111
1178
|
*/
|
|
1112
1179
|
interface CngxTabOverflowItemContext {
|
|
1113
1180
|
/** Convenience alias for `tab` - usable as `let-tab` shorthand. */
|
|
@@ -1140,10 +1207,9 @@ interface CngxTabOverflowItemContext {
|
|
|
1140
1207
|
* </cngx-tab-overflow>
|
|
1141
1208
|
* ```
|
|
1142
1209
|
*
|
|
1143
|
-
* @category common/tabs/overflow
|
|
1144
1210
|
* @wcag AA
|
|
1145
1211
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/tab-overflow-item.directive.ts
|
|
1146
|
-
* @since 0.
|
|
1212
|
+
* @since 0.3.0
|
|
1147
1213
|
* @relatedTo CngxTabOverflowTrigger, CngxTab
|
|
1148
1214
|
*/
|
|
1149
1215
|
declare class CngxTabOverflowItem {
|
|
@@ -1157,8 +1223,6 @@ declare class CngxTabOverflowItem {
|
|
|
1157
1223
|
* default `i18n.moreTabsLabel(count)` text on the More button; the
|
|
1158
1224
|
* surrounding `<button cngxPopoverTrigger>` shell (`aria-haspopup`,
|
|
1159
1225
|
* `aria-expanded`, click handler, hidden binding) stays library-owned.
|
|
1160
|
-
*
|
|
1161
|
-
* @category common/tabs/overflow
|
|
1162
1226
|
*/
|
|
1163
1227
|
interface CngxTabOverflowTriggerContext {
|
|
1164
1228
|
/** Convenience alias for `count` - usable as `let-count` shorthand. */
|
|
@@ -1182,10 +1246,9 @@ interface CngxTabOverflowTriggerContext {
|
|
|
1182
1246
|
* </cngx-tab-overflow>
|
|
1183
1247
|
* ```
|
|
1184
1248
|
*
|
|
1185
|
-
* @category common/tabs/overflow
|
|
1186
1249
|
* @wcag AA
|
|
1187
1250
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/tab-overflow-trigger.directive.ts
|
|
1188
|
-
* @since 0.
|
|
1251
|
+
* @since 0.3.0
|
|
1189
1252
|
* @relatedTo CngxTabOverflowItem, CngxTab
|
|
1190
1253
|
*/
|
|
1191
1254
|
declare class CngxTabOverflowTrigger {
|
|
@@ -1200,8 +1263,6 @@ declare class CngxTabOverflowTrigger {
|
|
|
1200
1263
|
* with `commitState.status() === 'pending'`); the visibility gate
|
|
1201
1264
|
* stays library-owned. `intendedIndex` is exposed so positional
|
|
1202
1265
|
* variants (progress bars, step counters) read the same source.
|
|
1203
|
-
*
|
|
1204
|
-
* @category common/tabs/slots
|
|
1205
1266
|
*/
|
|
1206
1267
|
interface CngxTabBusySpinnerContext {
|
|
1207
1268
|
/** The tab handle carrying id / label / disabled / aggregator signals. */
|
|
@@ -1222,12 +1283,11 @@ interface CngxTabBusySpinnerContext {
|
|
|
1222
1283
|
* </cngx-tab-group>
|
|
1223
1284
|
* ```
|
|
1224
1285
|
*
|
|
1225
|
-
* @category common/tabs/slots
|
|
1226
1286
|
* @wcag AA
|
|
1227
1287
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-busy-spinner.directive.ts
|
|
1228
|
-
* @since 0.
|
|
1288
|
+
* @since 0.3.0
|
|
1229
1289
|
* @relatedTo CngxTabErrorBadge, CngxTabRejectionIcon, CngxTab
|
|
1230
|
-
* <example-url
|
|
1290
|
+
* <example-url>/#/ui/tabs/tab-slot-overrides/custom-busy-spinner-via-code-cngxtabbusyspinner-code</example-url>
|
|
1231
1291
|
*/
|
|
1232
1292
|
declare class CngxTabBusySpinner {
|
|
1233
1293
|
readonly templateRef: TemplateRef<CngxTabBusySpinnerContext>;
|
|
@@ -1240,8 +1300,6 @@ declare class CngxTabBusySpinner {
|
|
|
1240
1300
|
* closable tab's close button (the button itself owns the
|
|
1241
1301
|
* `aria-label`); the template paints only the glyph, so it carries the
|
|
1242
1302
|
* tab handle in case the visual varies per tab.
|
|
1243
|
-
*
|
|
1244
|
-
* @category common/tabs/slots
|
|
1245
1303
|
*/
|
|
1246
1304
|
interface CngxTabCloseIconContext {
|
|
1247
1305
|
/** The tab handle whose close button this icon paints. */
|
|
@@ -1250,7 +1308,7 @@ interface CngxTabCloseIconContext {
|
|
|
1250
1308
|
/**
|
|
1251
1309
|
* Structural slot for a tab's close-button glyph. 3-stage cascade:
|
|
1252
1310
|
* per-instance directive > `CNGX_TABS_CONFIG.templates.closeIcon` >
|
|
1253
|
-
*
|
|
1311
|
+
* the default close icon.
|
|
1254
1312
|
*
|
|
1255
1313
|
* ```html
|
|
1256
1314
|
* <cngx-tab-group closable (tabClose)="remove($event.id)">
|
|
@@ -1259,12 +1317,11 @@ interface CngxTabCloseIconContext {
|
|
|
1259
1317
|
* </cngx-tab-group>
|
|
1260
1318
|
* ```
|
|
1261
1319
|
*
|
|
1262
|
-
* @category common/tabs/slots
|
|
1263
1320
|
* @wcag AA
|
|
1264
1321
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-close-icon.directive.ts
|
|
1265
|
-
* @since 0.
|
|
1322
|
+
* @since 0.3.0
|
|
1266
1323
|
* @relatedTo CngxTabAddIcon, CngxTabGroup
|
|
1267
|
-
* <example-url
|
|
1324
|
+
* <example-url>/#/ui/tabs/tab-dismissable/dismissable-and-addable</example-url>
|
|
1268
1325
|
*/
|
|
1269
1326
|
declare class CngxTabCloseIcon {
|
|
1270
1327
|
readonly templateRef: TemplateRef<CngxTabCloseIconContext>;
|
|
@@ -1277,8 +1334,6 @@ declare class CngxTabCloseIcon {
|
|
|
1277
1334
|
* the tab's folded `hasError()` is `true` - the direct `[error]` flag
|
|
1278
1335
|
* OR the aggregator's `shouldShow()`; the visibility gate stays
|
|
1279
1336
|
* library-owned. Sibling shape to `CngxStepBadgeContext`.
|
|
1280
|
-
*
|
|
1281
|
-
* @category common/tabs/slots
|
|
1282
1337
|
*/
|
|
1283
1338
|
interface CngxTabErrorBadgeContext {
|
|
1284
1339
|
/** The tab handle carrying id / label / disabled / aggregator signals. */
|
|
@@ -1288,7 +1343,7 @@ interface CngxTabErrorBadgeContext {
|
|
|
1288
1343
|
* Structural slot for the error-badge template. 3-stage cascade:
|
|
1289
1344
|
* per-instance directive >
|
|
1290
1345
|
* `CNGX_TABS_CONFIG.templates.errorBadge` >
|
|
1291
|
-
*
|
|
1346
|
+
* the default alert icon.
|
|
1292
1347
|
*
|
|
1293
1348
|
* ```html
|
|
1294
1349
|
* <cngx-tab-group>
|
|
@@ -1300,12 +1355,11 @@ interface CngxTabErrorBadgeContext {
|
|
|
1300
1355
|
* </cngx-tab-group>
|
|
1301
1356
|
* ```
|
|
1302
1357
|
*
|
|
1303
|
-
* @category common/tabs/slots
|
|
1304
1358
|
* @wcag AA
|
|
1305
1359
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-error-badge.directive.ts
|
|
1306
|
-
* @since 0.
|
|
1360
|
+
* @since 0.3.0
|
|
1307
1361
|
* @relatedTo CngxTabRejectionIcon, CngxTabBusySpinner, CngxTab
|
|
1308
|
-
* <example-url
|
|
1362
|
+
* <example-url>/#/ui/tabs/tab-slot-overrides/custom-error-badge-via-code-cngxtaberrorbadge-code</example-url>
|
|
1309
1363
|
*/
|
|
1310
1364
|
declare class CngxTabErrorBadge {
|
|
1311
1365
|
readonly templateRef: TemplateRef<CngxTabErrorBadgeContext>;
|
|
@@ -1322,8 +1376,6 @@ declare class CngxTabErrorBadge {
|
|
|
1322
1376
|
*
|
|
1323
1377
|
* Richer than {@link CngxTabErrorBadgeContext} (which only needs `tab`) because an
|
|
1324
1378
|
* icon commonly swaps glyph on the active tab.
|
|
1325
|
-
*
|
|
1326
|
-
* @category common/tabs/slots
|
|
1327
1379
|
*/
|
|
1328
1380
|
interface CngxTabIconContext {
|
|
1329
1381
|
/** The tab handle carrying id / label / disabled / aggregator signals. */
|
|
@@ -1345,16 +1397,15 @@ interface CngxTabIconContext {
|
|
|
1345
1397
|
* </ng-template>
|
|
1346
1398
|
* ```
|
|
1347
1399
|
*
|
|
1348
|
-
* @category common/tabs/slots
|
|
1349
1400
|
* @wcag AA
|
|
1350
1401
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-icon.directive.ts
|
|
1351
|
-
* @since 0.
|
|
1402
|
+
* @since 0.3.0
|
|
1352
1403
|
* @relatedTo CngxTabErrorBadge, CngxTab, CngxTabGroup
|
|
1353
|
-
* <example-url
|
|
1354
|
-
* <example-url
|
|
1355
|
-
* <example-url
|
|
1356
|
-
* <example-url
|
|
1357
|
-
* <example-url
|
|
1404
|
+
* <example-url>/#/ui/tabs/tab-icons/icon-end</example-url>
|
|
1405
|
+
* <example-url>/#/ui/tabs/tab-icons/icon-only</example-url>
|
|
1406
|
+
* <example-url>/#/ui/tabs/tab-icons/icon-start</example-url>
|
|
1407
|
+
* <example-url>/#/ui/tabs/tab-icons/icon-top</example-url>
|
|
1408
|
+
* <example-url>/#/ui/tabs/tab-icons/icon-vertical-sidebar</example-url>
|
|
1358
1409
|
*/
|
|
1359
1410
|
declare class CngxTabIcon {
|
|
1360
1411
|
readonly templateRef: TemplateRef<CngxTabIconContext>;
|
|
@@ -1370,19 +1421,24 @@ declare class CngxTabIcon {
|
|
|
1370
1421
|
* for the synchronous-rejection edge case. Sibling shape to
|
|
1371
1422
|
* `CngxStepRejectionContext`.
|
|
1372
1423
|
*
|
|
1373
|
-
*
|
|
1424
|
+
* `reason` tells the two commit outcomes apart: `'refused'` when the
|
|
1425
|
+
* commit action answered `false`, `'failed'` when it threw, rejected or
|
|
1426
|
+
* errored. Both render the slot; pick a glyph or copy per reason.
|
|
1374
1427
|
*/
|
|
1375
1428
|
interface CngxTabRejectionIconContext {
|
|
1376
1429
|
/** Flat-index of the rejected tab (`presenter.lastFailedIndex()`). */
|
|
1377
1430
|
readonly failedIndex: number;
|
|
1378
1431
|
/** Resolved label of the safe-harbour tab, when derivable. */
|
|
1379
1432
|
readonly originLabel: string | undefined;
|
|
1433
|
+
/** Why the commit did not land (`presenter.lastOutcome().kind`). */
|
|
1434
|
+
readonly reason: 'refused' | 'failed';
|
|
1380
1435
|
}
|
|
1381
1436
|
/**
|
|
1382
1437
|
* Structural slot for the rejection-decoration template. 3-stage
|
|
1383
1438
|
* cascade: per-instance directive >
|
|
1384
1439
|
* `CNGX_TABS_CONFIG.templates.rejectionIcon` >
|
|
1385
|
-
*
|
|
1440
|
+
* the default alert icon (a failed commit) or ban icon (a refused
|
|
1441
|
+
* one).
|
|
1386
1442
|
*
|
|
1387
1443
|
* ```html
|
|
1388
1444
|
* <cngx-tab-group>
|
|
@@ -1399,12 +1455,11 @@ interface CngxTabRejectionIconContext {
|
|
|
1399
1455
|
* </cngx-tab-group>
|
|
1400
1456
|
* ```
|
|
1401
1457
|
*
|
|
1402
|
-
* @category common/tabs/slots
|
|
1403
1458
|
* @wcag AA
|
|
1404
1459
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-rejection-icon.directive.ts
|
|
1405
|
-
* @since 0.
|
|
1460
|
+
* @since 0.3.0
|
|
1406
1461
|
* @relatedTo CngxTabErrorBadge, CngxTabBusySpinner, CngxTab
|
|
1407
|
-
* <example-url
|
|
1462
|
+
* <example-url>/#/ui/tabs/tab-slot-overrides/rejection-decoration-via-code-cngxtabrejectionicon-code</example-url>
|
|
1408
1463
|
*/
|
|
1409
1464
|
declare class CngxTabRejectionIcon {
|
|
1410
1465
|
readonly templateRef: TemplateRef<CngxTabRejectionIconContext>;
|
|
@@ -1412,32 +1467,10 @@ declare class CngxTabRejectionIcon {
|
|
|
1412
1467
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxTabRejectionIcon, "ng-template[cngxTabRejectionIcon]", ["cngxTabRejectionIcon"], {}, {}, never, never, true, never>;
|
|
1413
1468
|
}
|
|
1414
1469
|
|
|
1415
|
-
/**
|
|
1416
|
-
* Aria-label overrides for the tab-group landmark region. \
|
|
1417
|
-
* Library defaults are English; consumers override via
|
|
1418
|
-
* {@link withTabsAriaLabels}.
|
|
1419
|
-
*
|
|
1420
|
-
* Per-tab nav phrasing (`previousTab`, `nextTab`) lives in
|
|
1421
|
-
* {@link CngxTabsI18n}, not here - landmark naming and SR phrasing
|
|
1422
|
-
* stay on separate override paths.
|
|
1423
|
-
*
|
|
1424
|
-
* @category common/tabs
|
|
1425
|
-
*/
|
|
1426
|
-
interface CngxTabsAriaLabels {
|
|
1427
|
-
/**
|
|
1428
|
-
* Accessible name for the tab-group wrapper (`role="group"`), read by
|
|
1429
|
-
* AT when focus enters the region. Default `'Tabs'`. Ignored when a
|
|
1430
|
-
* per-instance `[aria-label]` / `[aria-labelledby]` is bound (those
|
|
1431
|
-
* win).
|
|
1432
|
-
*/
|
|
1433
|
-
readonly tabsRegion?: string;
|
|
1434
|
-
}
|
|
1435
1470
|
/**
|
|
1436
1471
|
* Fallback labels for derived strings (role descriptions, badge SR
|
|
1437
1472
|
* announcements). Library defaults are English; consumers override
|
|
1438
1473
|
* per locale.
|
|
1439
|
-
*
|
|
1440
|
-
* @category common/tabs
|
|
1441
1474
|
*/
|
|
1442
1475
|
interface CngxTabsFallbackLabels {
|
|
1443
1476
|
/**
|
|
@@ -1459,8 +1492,6 @@ interface CngxTabsFallbackLabels {
|
|
|
1459
1492
|
* Apply via the matching `with*Template` builders. Shape mirrors
|
|
1460
1493
|
* `CngxStepperTemplates` so consumer templates port across
|
|
1461
1494
|
* families.
|
|
1462
|
-
*
|
|
1463
|
-
* @category common/tabs
|
|
1464
1495
|
*/
|
|
1465
1496
|
interface CngxTabsTemplates {
|
|
1466
1497
|
/** Default for the overflow "More" button label (`*cngxTabOverflowTrigger`). */
|
|
@@ -1494,8 +1525,6 @@ interface CngxTabsTemplates {
|
|
|
1494
1525
|
*
|
|
1495
1526
|
* Sized to the tab use cases - not a 1:1 copy of the stepper's
|
|
1496
1527
|
* seven skins. The Material twin (`[cngxMatTabs]`) ignores this setting.
|
|
1497
|
-
*
|
|
1498
|
-
* @category common/tabs
|
|
1499
1528
|
*/
|
|
1500
1529
|
type CngxTabsSkin = 'line' | 'contained' | 'segmented' | 'pill' | 'pill-outline';
|
|
1501
1530
|
/**
|
|
@@ -1509,8 +1538,6 @@ type CngxTabsSkin = 'line' | 'contained' | 'segmented' | 'pill' | 'pill-outline'
|
|
|
1509
1538
|
*
|
|
1510
1539
|
* Redirected purely via
|
|
1511
1540
|
* the `[data-icon-layout]` host attribute.
|
|
1512
|
-
*
|
|
1513
|
-
* @category common/tabs
|
|
1514
1541
|
*/
|
|
1515
1542
|
type CngxTabIconLayout = 'start' | 'end' | 'top' | 'only';
|
|
1516
1543
|
/**
|
|
@@ -1528,8 +1555,6 @@ type CngxTabIconLayout = 'start' | 'end' | 'top' | 'only';
|
|
|
1528
1555
|
* is never activated on the way. Without that ordering the first render
|
|
1529
1556
|
* would count as tab 0's first activation and keep-alive would hold its
|
|
1530
1557
|
* content for the rest of the session.
|
|
1531
|
-
*
|
|
1532
|
-
* @category common/tabs
|
|
1533
1558
|
*/
|
|
1534
1559
|
type CngxTabsPanelMode = 'eager' | 'lazy' | 'lazy-destroy';
|
|
1535
1560
|
/**
|
|
@@ -1538,16 +1563,12 @@ type CngxTabsPanelMode = 'eager' | 'lazy' | 'lazy-destroy';
|
|
|
1538
1563
|
* (default), `'center'`, or `'end'`. Horizontal only - ignored under
|
|
1539
1564
|
* `orientation="vertical"` (tabs fill the column) and when `[fitted]`
|
|
1540
1565
|
* stretches them to the full width.
|
|
1541
|
-
*
|
|
1542
|
-
* @category common/tabs
|
|
1543
1566
|
*/
|
|
1544
1567
|
type CngxTabAlign = 'start' | 'center' | 'end';
|
|
1545
1568
|
/**
|
|
1546
1569
|
* Tab-group config surface. Resolution priority: \
|
|
1547
1570
|
* per-instance Input → `provideTabsConfigAt` (viewProviders) → `provideTabsConfig`
|
|
1548
1571
|
* (root) → library default.
|
|
1549
|
-
*
|
|
1550
|
-
* @category common/tabs
|
|
1551
1572
|
*/
|
|
1552
1573
|
interface CngxTabsConfig {
|
|
1553
1574
|
/**
|
|
@@ -1655,8 +1676,6 @@ interface CngxTabsConfig {
|
|
|
1655
1676
|
* {@link withTabsAddable}.
|
|
1656
1677
|
*/
|
|
1657
1678
|
readonly addable?: boolean;
|
|
1658
|
-
/** Landmark labels; a `Signal` switches the language at runtime. */
|
|
1659
|
-
readonly ariaLabels?: CngxTabsAriaLabels | Signal<CngxTabsAriaLabels>;
|
|
1660
1679
|
/** Role descriptions; a `Signal` switches the language at runtime. */
|
|
1661
1680
|
readonly fallbackLabels?: CngxTabsFallbackLabels | Signal<CngxTabsFallbackLabels>;
|
|
1662
1681
|
/**
|
|
@@ -1685,10 +1704,9 @@ interface CngxTabsConfig {
|
|
|
1685
1704
|
* `providedIn: 'root'` with the library defaults; override via {@link provideTabsConfig}
|
|
1686
1705
|
* (root) or {@link provideTabsConfigAt} (component scope).
|
|
1687
1706
|
*
|
|
1688
|
-
* @category common/tabs
|
|
1689
1707
|
* @wcag AA
|
|
1690
1708
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tabs-config.ts
|
|
1691
|
-
* @since 0.
|
|
1709
|
+
* @since 0.3.0
|
|
1692
1710
|
*/
|
|
1693
1711
|
declare const CNGX_TABS_CONFIG: InjectionToken<CngxTabsConfig>;
|
|
1694
1712
|
/**
|
|
@@ -1696,8 +1714,6 @@ declare const CNGX_TABS_CONFIG: InjectionToken<CngxTabsConfig>;
|
|
|
1696
1714
|
* The hidden `_target` discriminator lets {@link provideCngxTabs} dispatch
|
|
1697
1715
|
* config features to {@link provideTabsConfig} while i18n features
|
|
1698
1716
|
* route to {@link provideTabsI18n}.
|
|
1699
|
-
*
|
|
1700
|
-
* @category common/tabs
|
|
1701
1717
|
*/
|
|
1702
1718
|
type CngxTabsConfigFeature = ((config: CngxTabsConfig) => CngxTabsConfig) & {
|
|
1703
1719
|
readonly _target: 'config';
|
|
@@ -1705,8 +1721,6 @@ type CngxTabsConfigFeature = ((config: CngxTabsConfig) => CngxTabsConfig) & {
|
|
|
1705
1721
|
/**
|
|
1706
1722
|
* Override the default orientation. Per-instance `[orientation]`
|
|
1707
1723
|
* still wins; this changes the cascade default only.
|
|
1708
|
-
*
|
|
1709
|
-
* @category common/tabs
|
|
1710
1724
|
*/
|
|
1711
1725
|
declare function withTabsDefaultOrientation(orientation: 'horizontal' | 'vertical'): CngxTabsConfigFeature;
|
|
1712
1726
|
/**
|
|
@@ -1714,15 +1728,11 @@ declare function withTabsDefaultOrientation(orientation: 'horizontal' | 'vertica
|
|
|
1714
1728
|
* collides with the stepper family's identical symbol when both libs
|
|
1715
1729
|
* are auto-imported. The alias stays for one minor release before
|
|
1716
1730
|
* removal.
|
|
1717
|
-
*
|
|
1718
|
-
* @category common/tabs
|
|
1719
1731
|
*/
|
|
1720
1732
|
declare const withDefaultOrientation: typeof withTabsDefaultOrientation;
|
|
1721
1733
|
/**
|
|
1722
1734
|
* Override whether roving-tabindex navigation loops from last back to
|
|
1723
1735
|
* first (and vice versa). Per-instance `[loop]` Input still wins.
|
|
1724
|
-
*
|
|
1725
|
-
* @category common/tabs
|
|
1726
1736
|
*/
|
|
1727
1737
|
declare function withTabsRovingLoop(loop: boolean): CngxTabsConfigFeature;
|
|
1728
1738
|
/**
|
|
@@ -1730,8 +1740,6 @@ declare function withTabsRovingLoop(loop: boolean): CngxTabsConfigFeature;
|
|
|
1730
1740
|
* `'optimistic'` activates the tab on action dispatch and rolls back
|
|
1731
1741
|
* on error; `'pessimistic'` waits for success. Per-instance
|
|
1732
1742
|
* `[commitMode]` Input still wins.
|
|
1733
|
-
*
|
|
1734
|
-
* @category common/tabs
|
|
1735
1743
|
*/
|
|
1736
1744
|
declare function withTabsCommitMode(mode: 'optimistic' | 'pessimistic'): CngxTabsConfigFeature;
|
|
1737
1745
|
/**
|
|
@@ -1742,8 +1750,6 @@ declare function withTabsCommitMode(mode: 'optimistic' | 'pessimistic'): CngxTab
|
|
|
1742
1750
|
*
|
|
1743
1751
|
* Not to be confused with `[cngxTabsRouteSync]`, the router-outlet
|
|
1744
1752
|
* integration - this feature configures fragment deep-linking only.
|
|
1745
|
-
*
|
|
1746
|
-
* @category common/tabs
|
|
1747
1753
|
*/
|
|
1748
1754
|
declare function withTabsFragmentSync(mode: 'fragment' | 'queryParam', param?: string): CngxTabsConfigFeature;
|
|
1749
1755
|
/**
|
|
@@ -1758,8 +1764,6 @@ declare function withTabsFragmentSync(mode: 'fragment' | 'queryParam', param?: s
|
|
|
1758
1764
|
*
|
|
1759
1765
|
* Changes which policy runs, not the policies themselves - swap those via
|
|
1760
1766
|
* {@link CNGX_TAB_URL_MATCH_STRATEGY}.
|
|
1761
|
-
*
|
|
1762
|
-
* @category common/tabs
|
|
1763
1767
|
*/
|
|
1764
1768
|
declare function withTabsRouteMatch(mode: 'suffix' | 'prefix'): CngxTabsConfigFeature;
|
|
1765
1769
|
/**
|
|
@@ -1772,8 +1776,6 @@ declare function withTabsRouteMatch(mode: 'suffix' | 'prefix'): CngxTabsConfigFe
|
|
|
1772
1776
|
* `provideTabsConfigAt` in that component's `viewProviders` rather than
|
|
1773
1777
|
* setting it app-wide, unless every nav in the app is section-shaped.
|
|
1774
1778
|
* Per-link `[ariaCurrent]` still wins.
|
|
1775
|
-
*
|
|
1776
|
-
* @category common/tabs
|
|
1777
1779
|
*/
|
|
1778
1780
|
declare function withTabsLinkAriaCurrent(token: 'page' | 'true' | 'location' | 'step'): CngxTabsConfigFeature;
|
|
1779
1781
|
/**
|
|
@@ -1781,8 +1783,6 @@ declare function withTabsLinkAriaCurrent(token: 'page' | 'true' | 'location' | '
|
|
|
1781
1783
|
* with the new `[cngxTabsRouteSync]` router-outlet directive; this
|
|
1782
1784
|
* feature only ever configured fragment / query-param deep-linking. The
|
|
1783
1785
|
* alias stays for one minor release before removal.
|
|
1784
|
-
*
|
|
1785
|
-
* @category common/tabs
|
|
1786
1786
|
*/
|
|
1787
1787
|
declare const withTabsRouterSync: typeof withTabsFragmentSync;
|
|
1788
1788
|
/**
|
|
@@ -1791,8 +1791,6 @@ declare const withTabsRouterSync: typeof withTabsFragmentSync;
|
|
|
1791
1791
|
* the cascade default. Structure, slots, ARIA, and keyboard behaviour
|
|
1792
1792
|
* are identical across skins - only the `[data-skin]` host attribute
|
|
1793
1793
|
* changes the CSS layer. The Material twin (`[cngxMatTabs]`) ignores it.
|
|
1794
|
-
*
|
|
1795
|
-
* @category common/tabs
|
|
1796
1794
|
*/
|
|
1797
1795
|
declare function withTabsSkin(skin: CngxTabsSkin): CngxTabsConfigFeature;
|
|
1798
1796
|
/**
|
|
@@ -1800,8 +1798,6 @@ declare function withTabsSkin(skin: CngxTabsSkin): CngxTabsConfigFeature;
|
|
|
1800
1798
|
* Default`'start'`. Per-instance `[iconLayout]` Input still wins. Orthogonal to
|
|
1801
1799
|
* skin and orientation - only the `[data-icon-layout]` host attribute
|
|
1802
1800
|
* changes.
|
|
1803
|
-
*
|
|
1804
|
-
* @category common/tabs
|
|
1805
1801
|
*/
|
|
1806
1802
|
declare function withTabsIconLayout(layout: CngxTabIconLayout): CngxTabsConfigFeature;
|
|
1807
1803
|
/**
|
|
@@ -1814,8 +1810,6 @@ declare function withTabsIconLayout(layout: CngxTabIconLayout): CngxTabsConfigFe
|
|
|
1814
1810
|
*
|
|
1815
1811
|
* Under `'lazy'`, a deep link mounts only the panel it names: both sync
|
|
1816
1812
|
* directives seed the active tab before the first panel render.
|
|
1817
|
-
*
|
|
1818
|
-
* @category common/tabs
|
|
1819
1813
|
*/
|
|
1820
1814
|
declare function withTabsPanelMode(mode: CngxTabsPanelMode): CngxTabsConfigFeature;
|
|
1821
1815
|
/**
|
|
@@ -1823,62 +1817,40 @@ declare function withTabsPanelMode(mode: CngxTabsPanelMode): CngxTabsConfigFeatu
|
|
|
1823
1817
|
* (horizontal only). \
|
|
1824
1818
|
* Default `false`. Per-instance `[fitted]` Input still
|
|
1825
1819
|
* wins. No effect under `orientation="vertical"`.
|
|
1826
|
-
*
|
|
1827
|
-
* @category common/tabs
|
|
1828
1820
|
*/
|
|
1829
1821
|
declare function withTabsFitted(fitted: boolean): CngxTabsConfigFeature;
|
|
1830
1822
|
/**
|
|
1831
1823
|
* Set the app-wide default tab-cluster alignment (horizontal only). \
|
|
1832
1824
|
* Default `'start'`. Per-instance `[tabAlign]` Input still wins. Ignored
|
|
1833
1825
|
* under `orientation="vertical"` and when the group is `fitted`.
|
|
1834
|
-
*
|
|
1835
|
-
* @category common/tabs
|
|
1836
1826
|
*/
|
|
1837
1827
|
declare function withTabsAlign(align: CngxTabAlign): CngxTabsConfigFeature;
|
|
1838
1828
|
/**
|
|
1839
1829
|
* Set the app-wide default for whether tabs render a close affordance. \
|
|
1840
1830
|
* Default `false`. Per-instance `[closable]` Input wins; a per-`CngxTab`
|
|
1841
1831
|
* `[closable]` override wins over both.
|
|
1842
|
-
*
|
|
1843
|
-
* @category common/tabs
|
|
1844
1832
|
*/
|
|
1845
1833
|
declare function withTabsClosable(closable: boolean): CngxTabsConfigFeature;
|
|
1846
1834
|
/**
|
|
1847
1835
|
* Set the app-wide default for whether the group renders an add-tab
|
|
1848
1836
|
* button. \
|
|
1849
1837
|
* Default `false`. Per-instance `[addable]` Input wins.
|
|
1850
|
-
*
|
|
1851
|
-
* @category common/tabs
|
|
1852
1838
|
*/
|
|
1853
1839
|
declare function withTabsAddable(addable: boolean): CngxTabsConfigFeature;
|
|
1854
|
-
/**
|
|
1855
|
-
* Merge ARIA labels into the cascade. Keys not provided keep their
|
|
1856
|
-
* library defaults; per-instance overrides on the tab group still win.
|
|
1857
|
-
* Pass a `Signal` to switch the language at runtime.
|
|
1858
|
-
*
|
|
1859
|
-
* @category common/tabs
|
|
1860
|
-
*/
|
|
1861
|
-
declare function withTabsAriaLabels(labels: CngxTabsAriaLabels | Signal<CngxTabsAriaLabels>): CngxTabsConfigFeature;
|
|
1862
1840
|
/**
|
|
1863
1841
|
* Merge the tablist / tab-panel `aria-roledescription` fallbacks into the
|
|
1864
1842
|
* cascade. Keys not provided keep their library defaults. Pass a `Signal`
|
|
1865
1843
|
* to switch the language at runtime.
|
|
1866
|
-
*
|
|
1867
|
-
* @category common/tabs
|
|
1868
1844
|
*/
|
|
1869
1845
|
declare function withTabsFallbackLabels(labels: CngxTabsFallbackLabels | Signal<CngxTabsFallbackLabels>): CngxTabsConfigFeature;
|
|
1870
1846
|
/**
|
|
1871
1847
|
* Override the IO-debounce window (ms). See
|
|
1872
1848
|
* {@link CngxTabsConfig.overflowStabilizeMs}.
|
|
1873
|
-
*
|
|
1874
|
-
* @category common/tabs
|
|
1875
1849
|
*/
|
|
1876
1850
|
declare function withTabOverflowStabilizeMs(ms: number): CngxTabsConfigFeature;
|
|
1877
1851
|
/**
|
|
1878
1852
|
* Override the worst-case staleness ceiling on the visibility-map
|
|
1879
1853
|
* commit. See {@link CngxTabsConfig.overflowMaxDeferMs}.
|
|
1880
|
-
*
|
|
1881
|
-
* @category common/tabs
|
|
1882
1854
|
*/
|
|
1883
1855
|
declare function withTabOverflowMaxDeferMs(ms: number): CngxTabsConfigFeature;
|
|
1884
1856
|
/**
|
|
@@ -1893,23 +1865,17 @@ declare function withTabOverflowMaxDeferMs(ms: number): CngxTabsConfigFeature;
|
|
|
1893
1865
|
*
|
|
1894
1866
|
* providers: [provideTabsConfig(withTabOverflowTriggerTemplate(this.moreTrigger()))]
|
|
1895
1867
|
* ```
|
|
1896
|
-
*
|
|
1897
|
-
* @category common/tabs
|
|
1898
1868
|
*/
|
|
1899
1869
|
declare function withTabOverflowTriggerTemplate(template: TemplateRef<CngxTabOverflowTriggerContext>): CngxTabsConfigFeature;
|
|
1900
1870
|
/**
|
|
1901
1871
|
* App-wide override for each row inside the overflow popover. \
|
|
1902
1872
|
* Middle tier; per-instance `*cngxTabOverflowItem` still wins.
|
|
1903
|
-
*
|
|
1904
|
-
* @category common/tabs
|
|
1905
1873
|
*/
|
|
1906
1874
|
declare function withTabOverflowItemTemplate(template: TemplateRef<CngxTabOverflowItemContext>): CngxTabsConfigFeature;
|
|
1907
1875
|
/**
|
|
1908
1876
|
* App-wide override for the error-badge decoration. Middle tier;
|
|
1909
1877
|
* per-instance `*cngxTabErrorBadge` still wins. Sibling of the
|
|
1910
1878
|
* stepper family's `withStepBadgeTemplate`.
|
|
1911
|
-
*
|
|
1912
|
-
* @category common/tabs
|
|
1913
1879
|
*/
|
|
1914
1880
|
declare function withTabErrorBadgeTemplate(template: TemplateRef<CngxTabErrorBadgeContext>): CngxTabsConfigFeature;
|
|
1915
1881
|
/**
|
|
@@ -1917,46 +1883,34 @@ declare function withTabErrorBadgeTemplate(template: TemplateRef<CngxTabErrorBad
|
|
|
1917
1883
|
* tier; \
|
|
1918
1884
|
* per-instance `*cngxTabRejectionIcon` still wins. Sibling
|
|
1919
1885
|
* of {@link withStepRejectionTemplate}.
|
|
1920
|
-
*
|
|
1921
|
-
* @category common/tabs
|
|
1922
1886
|
*/
|
|
1923
1887
|
declare function withTabRejectionIconTemplate(template: TemplateRef<CngxTabRejectionIconContext>): CngxTabsConfigFeature;
|
|
1924
1888
|
/**
|
|
1925
1889
|
* App-wide override for the commit-pending busy-spinner overlay.
|
|
1926
1890
|
* Middle tier; per-instance `*cngxTabBusySpinner` still wins.
|
|
1927
1891
|
* Sibling of {@link withStepBusySpinnerTemplate}.
|
|
1928
|
-
*
|
|
1929
|
-
* @category common/tabs
|
|
1930
1892
|
*/
|
|
1931
1893
|
declare function withTabBusySpinnerTemplate(template: TemplateRef<CngxTabBusySpinnerContext>): CngxTabsConfigFeature;
|
|
1932
1894
|
/**
|
|
1933
1895
|
* App-wide override for the tab-icon slot. Middle tier of the 3-stage
|
|
1934
1896
|
* cascade; per-instance `*cngxTabIcon` still wins. Sibling of
|
|
1935
1897
|
* {@link withStepIndicatorTemplate}.
|
|
1936
|
-
*
|
|
1937
|
-
* @category common/tabs
|
|
1938
1898
|
*/
|
|
1939
1899
|
declare function withTabIconTemplate(template: TemplateRef<CngxTabIconContext>): CngxTabsConfigFeature;
|
|
1940
1900
|
/**
|
|
1941
1901
|
* App-wide override for a tab's close-button glyph. Middle tier;
|
|
1942
1902
|
* per-instance `*cngxTabCloseIcon` still wins.
|
|
1943
|
-
*
|
|
1944
|
-
* @category common/tabs
|
|
1945
1903
|
*/
|
|
1946
1904
|
declare function withTabCloseIconTemplate(template: TemplateRef<CngxTabCloseIconContext>): CngxTabsConfigFeature;
|
|
1947
1905
|
/**
|
|
1948
1906
|
* App-wide override for the add-tab button glyph. Middle tier;
|
|
1949
1907
|
* per-instance `*cngxTabAddIcon` still wins.
|
|
1950
|
-
*
|
|
1951
|
-
* @category common/tabs
|
|
1952
1908
|
*/
|
|
1953
1909
|
declare function withTabAddIconTemplate(template: TemplateRef<void>): CngxTabsConfigFeature;
|
|
1954
1910
|
/**
|
|
1955
1911
|
* Root-level provider. Apply once in `bootstrapApplication` /
|
|
1956
1912
|
* `appConfig.providers`. Returns {@link EnvironmentProviders} per
|
|
1957
1913
|
* the canonical cngx config-cascade signature.
|
|
1958
|
-
*
|
|
1959
|
-
* @category common/tabs
|
|
1960
1914
|
*/
|
|
1961
1915
|
declare function provideTabsConfig(...features: readonly CngxTabsConfigFeature[]): EnvironmentProviders;
|
|
1962
1916
|
/**
|
|
@@ -1970,14 +1924,10 @@ declare function provideTabsConfig(...features: readonly CngxTabsConfigFeature[]
|
|
|
1970
1924
|
* viewProviders: [...provideTabsConfigAt(withTabsDefaultOrientation('vertical'))],
|
|
1971
1925
|
* })
|
|
1972
1926
|
* ```
|
|
1973
|
-
*
|
|
1974
|
-
* @category common/tabs
|
|
1975
1927
|
*/
|
|
1976
1928
|
declare function provideTabsConfigAt(...features: readonly CngxTabsConfigFeature[]): Provider[];
|
|
1977
1929
|
/**
|
|
1978
1930
|
* Inject the resolved tabs config in an injection context.
|
|
1979
|
-
*
|
|
1980
|
-
* @category common/tabs
|
|
1981
1931
|
*/
|
|
1982
1932
|
declare function injectTabsConfig(): CngxTabsConfig;
|
|
1983
1933
|
|
|
@@ -2030,17 +1980,14 @@ declare function createTabsHostAttrs(inputs: CngxTabsHostAttrsInputs): CngxTabsH
|
|
|
2030
1980
|
* The tabs section of a {@link CngxLanguagePack}: the copy of
|
|
2031
1981
|
* `@cngx/common/tabs` and of the tab organisms in `@cngx/ui/tabs` and
|
|
2032
1982
|
* `@cngx/ui/mat-tabs`. It feeds `CNGX_TABS_I18N` and the copy keys of
|
|
2033
|
-
* `CNGX_TABS_CONFIG` (`
|
|
1983
|
+
* `CNGX_TABS_CONFIG` (`fallbackLabels`). Messages use `{name}`
|
|
2034
1984
|
* placeholders; a plural message picks its form from `{count}`.
|
|
2035
1985
|
*
|
|
2036
|
-
* @
|
|
2037
|
-
* @since 0.1.0
|
|
1986
|
+
* @since 0.3.0
|
|
2038
1987
|
* @relatedTo CNGX_TABS_I18N, CNGX_TABS_CONFIG
|
|
2039
1988
|
*/
|
|
2040
1989
|
interface CngxTabsLanguageSection {
|
|
2041
|
-
/** Accessible name of the tab
|
|
2042
|
-
readonly tabsRegion: string;
|
|
2043
|
-
/** Last-tier tab-group label, used when `tabsRegion` is unset. */
|
|
1990
|
+
/** Accessible name of the tab group. */
|
|
2044
1991
|
readonly tabsLabel: string;
|
|
2045
1992
|
/** `aria-roledescription` of the tablist. */
|
|
2046
1993
|
readonly tabRoleDescription: string;
|
|
@@ -2054,8 +2001,17 @@ interface CngxTabsLanguageSection {
|
|
|
2054
2001
|
readonly tabHasErrors: CngxMessage;
|
|
2055
2002
|
/** Plural on `{count}`: the overflow trigger label. */
|
|
2056
2003
|
readonly moreTabsLabel: CngxMessage;
|
|
2057
|
-
/**
|
|
2004
|
+
/**
|
|
2005
|
+
* `{position}`: the name of a tab without a label - its overflow row, its
|
|
2006
|
+
* close button and the origin tab named after a rollback or a refusal.
|
|
2007
|
+
*/
|
|
2058
2008
|
readonly unlabeledTab: CngxMessage;
|
|
2009
|
+
/**
|
|
2010
|
+
* `{position}`, `{count}`: the accessible name of a tab without a label and
|
|
2011
|
+
* the tab named in the live phrase after a move to it - the label-less
|
|
2012
|
+
* twin of `selectedTab`.
|
|
2013
|
+
*/
|
|
2014
|
+
readonly unlabeledTabOfCount: CngxMessage;
|
|
2059
2015
|
/** `{tab}`: announced after a move to an earlier tab, `{tab}` being its name. */
|
|
2060
2016
|
readonly previousTab: CngxMessage;
|
|
2061
2017
|
/** `{tab}`: announced after a move to a later tab. */
|
|
@@ -2067,18 +2023,30 @@ interface CngxTabsLanguageSection {
|
|
|
2067
2023
|
readonly closedTab: CngxMessage;
|
|
2068
2024
|
/** Announced once a tab without a label is removed. */
|
|
2069
2025
|
readonly closedUnlabeledTab: string;
|
|
2026
|
+
/**
|
|
2027
|
+
* Announced when a tab commit fails and no origin tab resolves (a
|
|
2028
|
+
* programmatic commit-state write, or an origin tab removed meanwhile); a
|
|
2029
|
+
* resolvable origin speaks `commitRolledBackTo` instead.
|
|
2030
|
+
*/
|
|
2070
2031
|
readonly commitFailedRetry: string;
|
|
2071
2032
|
/** Announced while a tab commit is in flight. */
|
|
2072
2033
|
readonly commitInFlight: string;
|
|
2073
2034
|
/** `{origin}`: announced when a failed commit reverts to the origin tab. */
|
|
2074
2035
|
readonly commitRolledBackTo: CngxMessage;
|
|
2036
|
+
/** `{origin}`: announced when the commit action refuses a tab switch. */
|
|
2037
|
+
readonly commitRefused: CngxMessage;
|
|
2038
|
+
/**
|
|
2039
|
+
* Announced when the commit action refuses a tab switch and the origin tab
|
|
2040
|
+
* is unknown or was removed meanwhile; a label-less origin is named by
|
|
2041
|
+
* `unlabeledTab`.
|
|
2042
|
+
*/
|
|
2043
|
+
readonly commitRefusedGeneric: string;
|
|
2075
2044
|
}
|
|
2076
2045
|
/**
|
|
2077
2046
|
* The English tabs section: the single source of the tabs' English copy.
|
|
2078
2047
|
* `CNGX_TABS_I18N` and the `CNGX_TABS_CONFIG` labels default to it.
|
|
2079
2048
|
*
|
|
2080
|
-
* @
|
|
2081
|
-
* @since 0.1.0
|
|
2049
|
+
* @since 0.3.0
|
|
2082
2050
|
* @relatedTo CNGX_TABS_I18N, CNGX_TABS_CONFIG
|
|
2083
2051
|
*/
|
|
2084
2052
|
declare const CNGX_TABS_LANGUAGE_EN: CngxTabsLanguageSection;
|
|
@@ -2092,14 +2060,11 @@ declare module '@cngx/core/i18n' {
|
|
|
2092
2060
|
* Tabs i18n surface. Library defaults are English; consumers
|
|
2093
2061
|
* override via {@link provideTabsI18n}. Sibling to
|
|
2094
2062
|
* `CNGX_STEPPER_I18N` and `CNGX_CHART_I18N`.
|
|
2095
|
-
*
|
|
2096
|
-
* @category common/tabs/i18n
|
|
2097
2063
|
*/
|
|
2098
2064
|
interface CngxTabsI18n {
|
|
2099
2065
|
/**
|
|
2100
|
-
*
|
|
2101
|
-
* `
|
|
2102
|
-
* to `'Tabs'`, so localise the landmark through `withTabsAriaLabels(...)`.
|
|
2066
|
+
* Accessible name of the tab group. Only a per-instance `[aria-label]`
|
|
2067
|
+
* or `[aria-labelledby]` on the group overrides it.
|
|
2103
2068
|
*/
|
|
2104
2069
|
readonly tabsLabel: string;
|
|
2105
2070
|
readonly selectedTab: (label: string, position: number, count: number) => string;
|
|
@@ -2118,6 +2083,12 @@ interface CngxTabsI18n {
|
|
|
2118
2083
|
* Receives the 1-based position; English `Tab 3`.
|
|
2119
2084
|
*/
|
|
2120
2085
|
readonly unlabeledTab: (position: number) => string;
|
|
2086
|
+
/**
|
|
2087
|
+
* Accessible name of a tab without a label, with its position in the group:
|
|
2088
|
+
* the label-less twin of {@link selectedTab}. Receives the 1-based position
|
|
2089
|
+
* and the tab count; English `Tab 2 of 5`.
|
|
2090
|
+
*/
|
|
2091
|
+
readonly unlabeledTabOfCount: (position: number, count: number) => string;
|
|
2121
2092
|
/**
|
|
2122
2093
|
* Commit-success announcement after a move to an earlier tab. Receives
|
|
2123
2094
|
* the position phrase from {@link selectedTab} and owns the whole
|
|
@@ -2146,8 +2117,9 @@ interface CngxTabsI18n {
|
|
|
2146
2117
|
/**
|
|
2147
2118
|
* @deprecated Superseded by {@link commitRolledBackTo}. Retained as
|
|
2148
2119
|
* the defensive fallback in `liveAnnouncement` when the origin
|
|
2149
|
-
* label is unresolvable - fires for
|
|
2150
|
-
* `commitState` writes that bypass `select()
|
|
2120
|
+
* label is unresolvable - fires for a failed commit from an unlabeled
|
|
2121
|
+
* tab or programmatic `commitState` writes that bypass `select()`,
|
|
2122
|
+
* never for a refusal ({@link commitRefusedGeneric}). See
|
|
2151
2123
|
* `tabs-accepted-debt §4`.
|
|
2152
2124
|
*/
|
|
2153
2125
|
readonly commitFailedRetry: string;
|
|
@@ -2159,6 +2131,19 @@ interface CngxTabsI18n {
|
|
|
2159
2131
|
* `originIndexDuringCommit` are set.
|
|
2160
2132
|
*/
|
|
2161
2133
|
readonly commitRolledBackTo: (originLabel: string) => string;
|
|
2134
|
+
/**
|
|
2135
|
+
* Origin-aware refusal phrase. Read when the commit action answered
|
|
2136
|
+
* `false` and the origin label resolves. Receives the label of the tab
|
|
2137
|
+
* the user stayed on, yields e.g. `Tab switch not allowed - stayed on
|
|
2138
|
+
* "Profile".`. A refusal is not a failure, so it never reads the
|
|
2139
|
+
* failure copy ({@link commitRolledBackTo}, {@link commitFailedRetry}).
|
|
2140
|
+
*/
|
|
2141
|
+
readonly commitRefused: (originLabel: string) => string;
|
|
2142
|
+
/**
|
|
2143
|
+
* Refusal phrase for an origin without a label. Twin of
|
|
2144
|
+
* {@link commitFailedRetry} for the refused outcome.
|
|
2145
|
+
*/
|
|
2146
|
+
readonly commitRefusedGeneric: string;
|
|
2162
2147
|
}
|
|
2163
2148
|
/**
|
|
2164
2149
|
* DI token for the tabs i18n bundle, as a `Signal` so a runtime language
|
|
@@ -2167,10 +2152,9 @@ interface CngxTabsI18n {
|
|
|
2167
2152
|
* for the app locale. Provide it through {@link provideTabsI18n}; a
|
|
2168
2153
|
* `{ provide, useValue }` entry must supply a `Signal<CngxTabsI18n>`.
|
|
2169
2154
|
*
|
|
2170
|
-
* @category common/tabs/i18n
|
|
2171
2155
|
* @wcag AA
|
|
2172
2156
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/i18n/tabs-i18n.ts
|
|
2173
|
-
* @since 0.
|
|
2157
|
+
* @since 0.3.0
|
|
2174
2158
|
*/
|
|
2175
2159
|
declare const CNGX_TABS_I18N: InjectionToken<Signal<CngxTabsI18n>>;
|
|
2176
2160
|
/**
|
|
@@ -2178,19 +2162,16 @@ declare const CNGX_TABS_I18N: InjectionToken<Signal<CngxTabsI18n>>;
|
|
|
2178
2162
|
* {@link provideCngxTabs}. The hidden `_target` discriminator routes
|
|
2179
2163
|
* i18n features to `provideTabsI18n` and config features to
|
|
2180
2164
|
* `provideTabsConfig` from the unified aggregator.
|
|
2181
|
-
*
|
|
2182
|
-
* @category common/tabs/i18n
|
|
2183
2165
|
*/
|
|
2184
2166
|
type CngxTabsI18nFeature = ((bundle: Signal<CngxTabsI18n>) => Signal<CngxTabsI18n>) & {
|
|
2185
2167
|
readonly _target: 'i18n';
|
|
2186
2168
|
};
|
|
2187
2169
|
/**
|
|
2188
2170
|
* Override i18n labels via a partial bundle - unset keys keep the
|
|
2189
|
-
* language pack's copy, or the English default. Same shape as
|
|
2190
|
-
* `withTabsFallbackLabels
|
|
2191
|
-
*
|
|
2192
|
-
*
|
|
2193
|
-
* @category common/tabs/i18n
|
|
2171
|
+
* language pack's copy, or the English default. Same shape as
|
|
2172
|
+
* `withTabsFallbackLabels`, so `provideCngxTabs` composes the i18n and
|
|
2173
|
+
* the config feature uniformly. Pass a `Signal` to switch the language
|
|
2174
|
+
* at runtime.
|
|
2194
2175
|
*/
|
|
2195
2176
|
declare function withTabsI18nLabels(overrides: Partial<CngxTabsI18n> | Signal<Partial<CngxTabsI18n>>): CngxTabsI18nFeature;
|
|
2196
2177
|
/**
|
|
@@ -2207,15 +2188,11 @@ declare function withTabsI18nLabels(overrides: Partial<CngxTabsI18n> | Signal<Pa
|
|
|
2207
2188
|
* ],
|
|
2208
2189
|
* });
|
|
2209
2190
|
* ```
|
|
2210
|
-
*
|
|
2211
|
-
* @category common/tabs/i18n
|
|
2212
2191
|
*/
|
|
2213
2192
|
declare function provideTabsI18n(...features: readonly CngxTabsI18nFeature[]): Provider;
|
|
2214
2193
|
/**
|
|
2215
2194
|
* Inject the resolved tabs i18n bundle. Read it inside a `computed()`,
|
|
2216
2195
|
* template or handler so a language switch reaches the label.
|
|
2217
|
-
*
|
|
2218
|
-
* @category common/tabs/i18n
|
|
2219
2196
|
*/
|
|
2220
2197
|
declare function injectTabsI18n(): Signal<CngxTabsI18n>;
|
|
2221
2198
|
|
|
@@ -2223,8 +2200,6 @@ declare function injectTabsI18n(): Signal<CngxTabsI18n>;
|
|
|
2223
2200
|
* Union of feature kinds the tabs aggregator accepts. \
|
|
2224
2201
|
* Today: config and i18n; future surfaces widen the union and dispatch via the
|
|
2225
2202
|
* hidden `_target` discriminator.
|
|
2226
|
-
*
|
|
2227
|
-
* @category common/tabs
|
|
2228
2203
|
*/
|
|
2229
2204
|
type CngxTabsFeature = CngxTabsConfigFeature | CngxTabsI18nFeature;
|
|
2230
2205
|
/**
|
|
@@ -2243,7 +2218,6 @@ type CngxTabsFeature = CngxTabsConfigFeature | CngxTabsI18nFeature;
|
|
|
2243
2218
|
* providers: [
|
|
2244
2219
|
* provideCngxTabs(
|
|
2245
2220
|
* withTabsDefaultOrientation('vertical'),
|
|
2246
|
-
* withTabsAriaLabels({ tabsRegion: 'Bereiche' }),
|
|
2247
2221
|
* withTabsI18nLabels({ tabsLabel: 'Bereiche', moreTabsLabel: (n) => `${n} mehr` }),
|
|
2248
2222
|
* withTabOverflowStabilizeMs(150),
|
|
2249
2223
|
* ),
|
|
@@ -2251,9 +2225,8 @@ type CngxTabsFeature = CngxTabsConfigFeature | CngxTabsI18nFeature;
|
|
|
2251
2225
|
* });
|
|
2252
2226
|
* ```
|
|
2253
2227
|
*
|
|
2254
|
-
* @category common/tabs
|
|
2255
2228
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/provide-cngx-tabs.ts
|
|
2256
|
-
* @since 0.
|
|
2229
|
+
* @since 0.3.0
|
|
2257
2230
|
* @relatedTo CngxTabGroup, CngxTabsConfig, provideCngxTabsAt
|
|
2258
2231
|
*/
|
|
2259
2232
|
declare function provideCngxTabs(...features: readonly CngxTabsFeature[]): EnvironmentProviders;
|
|
@@ -2273,29 +2246,33 @@ declare function provideCngxTabs(...features: readonly CngxTabsFeature[]): Envir
|
|
|
2273
2246
|
* })
|
|
2274
2247
|
* ```
|
|
2275
2248
|
*
|
|
2276
|
-
* @category common/tabs
|
|
2277
2249
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/provide-cngx-tabs.ts
|
|
2278
|
-
* @since 0.
|
|
2250
|
+
* @since 0.3.0
|
|
2279
2251
|
* @relatedTo CngxTabGroup, CngxTabsConfig, provideCngxTabs
|
|
2280
2252
|
*/
|
|
2281
2253
|
declare function provideCngxTabsAt(...features: readonly CngxTabsFeature[]): Provider[];
|
|
2282
2254
|
|
|
2255
|
+
/**
|
|
2256
|
+
* How a commit-gated tab switch settled. `'refused'` is a `false` answer
|
|
2257
|
+
* from `commitAction` (the action declined on purpose, nothing failed);
|
|
2258
|
+
* `'failed'` is a throw, a rejected promise or an erroring observable.
|
|
2259
|
+
*/
|
|
2260
|
+
type CngxTabsCommitResolution = 'accepted' | 'refused' | 'failed';
|
|
2283
2261
|
/**
|
|
2284
2262
|
* Adapts the shared commit-controller to the tabs action shape. \
|
|
2285
2263
|
* The presenter delegates to {@link beginTransition} when `commitAction`
|
|
2286
2264
|
* is bound.
|
|
2287
|
-
*
|
|
2288
|
-
* @category common/tabs
|
|
2289
2265
|
*/
|
|
2290
2266
|
interface CngxTabsCommitHandler {
|
|
2291
2267
|
/**
|
|
2292
2268
|
* Start a tab-transition commit. \
|
|
2293
2269
|
* Returns synchronously - read the
|
|
2294
2270
|
* controller's `state` signal for in-flight status. `onResolve`
|
|
2295
|
-
* fires once
|
|
2296
|
-
*
|
|
2271
|
+
* fires once: `'accepted'` when the action answers `true`,
|
|
2272
|
+
* `'refused'` when it answers `false`, `'failed'` when it throws,
|
|
2273
|
+
* rejects or errors; skipped on supersede.
|
|
2297
2274
|
*/
|
|
2298
|
-
beginTransition(fromIndex: number, toIndex: number, action: CngxTabsCommitAction, onResolve: (
|
|
2275
|
+
beginTransition(fromIndex: number, toIndex: number, action: CngxTabsCommitAction, onResolve: (outcome: CngxTabsCommitResolution) => void): void;
|
|
2299
2276
|
/** Cancel the in-flight transition without firing callbacks. */
|
|
2300
2277
|
cancel(): void;
|
|
2301
2278
|
/** Live `pending` flag from the controller. */
|
|
@@ -2303,26 +2280,22 @@ interface CngxTabsCommitHandler {
|
|
|
2303
2280
|
}
|
|
2304
2281
|
/**
|
|
2305
2282
|
* Options for {@link createTabsCommitHandler}.
|
|
2306
|
-
*
|
|
2307
|
-
* @category common/tabs
|
|
2308
2283
|
*/
|
|
2309
2284
|
interface CngxTabsCommitHandlerOptions {
|
|
2310
2285
|
readonly controller: CngxCommitController<number>;
|
|
2311
2286
|
}
|
|
2312
2287
|
/**
|
|
2313
2288
|
* Wraps a {@link CngxCommitController} with the action-shape adapter
|
|
2314
|
-
* that
|
|
2315
|
-
*
|
|
2316
|
-
*
|
|
2317
|
-
*
|
|
2289
|
+
* that resolves `Observable<boolean>` / `Promise<boolean>` / `boolean`
|
|
2290
|
+
* returns into one {@link CngxTabsCommitResolution}: `true` accepts,
|
|
2291
|
+
* `false` refuses (the controller settles to `'idle'` and stores no
|
|
2292
|
+
* error), a throw fails.
|
|
2318
2293
|
*/
|
|
2319
2294
|
declare function createTabsCommitHandler(opts: CngxTabsCommitHandlerOptions): CngxTabsCommitHandler;
|
|
2320
2295
|
/**
|
|
2321
2296
|
* Factory signature for {@link CNGX_TABS_COMMIT_HANDLER_FACTORY}.
|
|
2322
2297
|
* Override to wrap the default with retry-with-backoff, telemetry,
|
|
2323
2298
|
* or offline queues.
|
|
2324
|
-
*
|
|
2325
|
-
* @category common/tabs
|
|
2326
2299
|
*/
|
|
2327
2300
|
type CngxTabsCommitHandlerFactory = (opts: CngxTabsCommitHandlerOptions) => CngxTabsCommitHandler;
|
|
2328
2301
|
/**
|
|
@@ -2332,9 +2305,8 @@ type CngxTabsCommitHandlerFactory = (opts: CngxTabsCommitHandlerOptions) => Cngx
|
|
|
2332
2305
|
* - `CNGX_ARRAY_COMMIT_HANDLER_FACTORY` (select) and
|
|
2333
2306
|
* - `CNGX_STEPPER_COMMIT_HANDLER_FACTORY`.
|
|
2334
2307
|
*
|
|
2335
|
-
* @category common/tabs
|
|
2336
2308
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/commit-handler.ts
|
|
2337
|
-
* @since 0.
|
|
2309
|
+
* @since 0.3.0
|
|
2338
2310
|
*/
|
|
2339
2311
|
declare const CNGX_TABS_COMMIT_HANDLER_FACTORY: InjectionToken<CngxTabsCommitHandlerFactory>;
|
|
2340
2312
|
|
|
@@ -2347,8 +2319,6 @@ declare const CNGX_TABS_COMMIT_HANDLER_FACTORY: InjectionToken<CngxTabsCommitHan
|
|
|
2347
2319
|
* The molecule is variant-agnostic and
|
|
2348
2320
|
* consumes whichever adapter
|
|
2349
2321
|
* {@link CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY} provides.
|
|
2350
|
-
*
|
|
2351
|
-
* @category common/tabs/overflow
|
|
2352
2322
|
*/
|
|
2353
2323
|
interface CngxTabOverflowDomAdapter {
|
|
2354
2324
|
/**
|
|
@@ -2366,16 +2336,12 @@ interface CngxTabOverflowDomAdapter {
|
|
|
2366
2336
|
}
|
|
2367
2337
|
/**
|
|
2368
2338
|
* Factory signature for {@link CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY}.
|
|
2369
|
-
*
|
|
2370
|
-
* @category common/tabs/overflow
|
|
2371
2339
|
*/
|
|
2372
2340
|
type CngxTabOverflowDomAdapterFactory = () => CngxTabOverflowDomAdapter;
|
|
2373
2341
|
/**
|
|
2374
2342
|
* Default adapter for the cngx-native `<cngx-tab-group>` strip: \
|
|
2375
2343
|
* walks `host.closest('.cngx-tabs__strip-wrapper')` for the IO root,
|
|
2376
2344
|
* then `[id="${handle.id}-header"]` for each button.
|
|
2377
|
-
*
|
|
2378
|
-
* @category common/tabs/overflow
|
|
2379
2345
|
*/
|
|
2380
2346
|
declare function createCngxTabOverflowDefaultDomAdapter(): CngxTabOverflowDomAdapter;
|
|
2381
2347
|
/**
|
|
@@ -2385,23 +2351,18 @@ declare function createCngxTabOverflowDefaultDomAdapter(): CngxTabOverflowDomAda
|
|
|
2385
2351
|
* forking the molecule. Defaults to
|
|
2386
2352
|
* {@link createCngxTabOverflowDefaultDomAdapter}.
|
|
2387
2353
|
*
|
|
2388
|
-
* @category common/tabs/overflow
|
|
2389
2354
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/dom-adapter.ts
|
|
2390
|
-
* @since 0.
|
|
2355
|
+
* @since 0.3.0
|
|
2391
2356
|
*/
|
|
2392
2357
|
declare const CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY: InjectionToken<CngxTabOverflowDomAdapterFactory>;
|
|
2393
2358
|
|
|
2394
2359
|
/**
|
|
2395
2360
|
* Outcome reported by an `attempt` callback. `true` halts the loop
|
|
2396
2361
|
* (success); `false` or `null` schedules another tick.
|
|
2397
|
-
*
|
|
2398
|
-
* @category common/tabs/overflow
|
|
2399
2362
|
*/
|
|
2400
2363
|
type CngxDomAnchorRetryResult = true | false | null;
|
|
2401
2364
|
/**
|
|
2402
2365
|
* Configuration for {@link createDomAnchorRetry}.
|
|
2403
|
-
*
|
|
2404
|
-
* @category common/tabs/overflow
|
|
2405
2366
|
*/
|
|
2406
2367
|
interface CngxDomAnchorRetryOptions {
|
|
2407
2368
|
/**
|
|
@@ -2426,8 +2387,6 @@ interface CngxDomAnchorRetryOptions {
|
|
|
2426
2387
|
}
|
|
2427
2388
|
/**
|
|
2428
2389
|
* Imperative handle returned by {@link createDomAnchorRetry}.
|
|
2429
|
-
*
|
|
2430
|
-
* @category common/tabs/overflow
|
|
2431
2390
|
*/
|
|
2432
2391
|
interface CngxDomAnchorRetryHandle {
|
|
2433
2392
|
/** Begin (or restart) the retry loop. Resets the attempt counter. */
|
|
@@ -2463,15 +2422,11 @@ interface CngxDomAnchorRetryHandle {
|
|
|
2463
2422
|
* afterNextRender(() => retry.start());
|
|
2464
2423
|
* destroyRef.onDestroy(() => retry.cancel());
|
|
2465
2424
|
* ```
|
|
2466
|
-
*
|
|
2467
|
-
* @category common/tabs/overflow
|
|
2468
2425
|
*/
|
|
2469
2426
|
declare function createDomAnchorRetry(options: CngxDomAnchorRetryOptions): CngxDomAnchorRetryHandle;
|
|
2470
2427
|
/**
|
|
2471
2428
|
* Factory signature for {@link CNGX_DOM_ANCHOR_RETRY_FACTORY} -
|
|
2472
2429
|
* matches {@link createDomAnchorRetry} for drop-in overrides.
|
|
2473
|
-
*
|
|
2474
|
-
* @category common/tabs/overflow
|
|
2475
2430
|
*/
|
|
2476
2431
|
type CngxDomAnchorRetryFactory = (options: CngxDomAnchorRetryOptions) => CngxDomAnchorRetryHandle;
|
|
2477
2432
|
/**
|
|
@@ -2486,16 +2441,15 @@ type CngxDomAnchorRetryFactory = (options: CngxDomAnchorRetryOptions) => CngxDom
|
|
|
2486
2441
|
* - `CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY`, and
|
|
2487
2442
|
* - `CNGX_TABS_COMMIT_HANDLER_FACTORY`.
|
|
2488
2443
|
*
|
|
2489
|
-
* @category common/tabs/overflow
|
|
2490
2444
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/dom-anchor-retry.ts
|
|
2491
|
-
* @since 0.
|
|
2445
|
+
* @since 0.3.0
|
|
2492
2446
|
*/
|
|
2493
2447
|
declare const CNGX_DOM_ANCHOR_RETRY_FACTORY: InjectionToken<CngxDomAnchorRetryFactory>;
|
|
2494
2448
|
|
|
2495
2449
|
/**
|
|
2496
2450
|
* Structural slot for the add-tab button glyph. 3-stage cascade:
|
|
2497
2451
|
* per-instance directive > `CNGX_TABS_CONFIG.templates.addIcon` >
|
|
2498
|
-
*
|
|
2452
|
+
* the default plus icon. The button owns its `aria-label`; the
|
|
2499
2453
|
* template paints only the glyph, so its context is `void`.
|
|
2500
2454
|
*
|
|
2501
2455
|
* ```html
|
|
@@ -2505,13 +2459,12 @@ declare const CNGX_DOM_ANCHOR_RETRY_FACTORY: InjectionToken<CngxDomAnchorRetryFa
|
|
|
2505
2459
|
* </cngx-tab-group>
|
|
2506
2460
|
* ```
|
|
2507
2461
|
*
|
|
2508
|
-
* @category common/tabs/slots
|
|
2509
2462
|
* @wcag AA
|
|
2510
2463
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-add-icon.directive.ts
|
|
2511
|
-
* @since 0.
|
|
2464
|
+
* @since 0.3.0
|
|
2512
2465
|
* @relatedTo CngxTabCloseIcon, CngxTabGroup
|
|
2513
|
-
* <example-url
|
|
2514
|
-
* <example-url
|
|
2466
|
+
* <example-url>/#/ui/tabs/tab-dismissable/dismissable-and-addable</example-url>
|
|
2467
|
+
* <example-url>/#/ui/tabs/tab-group/addable-tabs</example-url>
|
|
2515
2468
|
*/
|
|
2516
2469
|
declare class CngxTabAddIcon {
|
|
2517
2470
|
readonly templateRef: TemplateRef<void>;
|
|
@@ -2527,8 +2480,6 @@ declare class CngxTabAddIcon {
|
|
|
2527
2480
|
* under the LOC guard. \
|
|
2528
2481
|
*
|
|
2529
2482
|
* Sibling shape to `createTabGroupAnnouncements`.
|
|
2530
|
-
*
|
|
2531
|
-
* @category common/tabs
|
|
2532
2483
|
*/
|
|
2533
2484
|
interface CngxTabDismissalsOptions {
|
|
2534
2485
|
readonly host: CngxTabGroupHost;
|
|
@@ -2543,8 +2494,6 @@ interface CngxTabDismissalsOptions {
|
|
|
2543
2494
|
/**
|
|
2544
2495
|
* Resolved dismissable/addable surface for `<cngx-tab-group>`. \
|
|
2545
2496
|
* The organism holds this as one field and the template reads it.
|
|
2546
|
-
*
|
|
2547
|
-
* @category common/tabs
|
|
2548
2497
|
*/
|
|
2549
2498
|
interface CngxTabDismissals {
|
|
2550
2499
|
/** Effective group-level close affordance (`input ?? config ?? false`). */
|
|
@@ -2607,9 +2556,8 @@ interface CngxTabDismissals {
|
|
|
2607
2556
|
* dismiss.handleAdd(); // routes through presenter.requestAdd
|
|
2608
2557
|
* ```
|
|
2609
2558
|
*
|
|
2610
|
-
* @category common/tabs
|
|
2611
2559
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/dismissals/tab-dismissals.ts
|
|
2612
|
-
* @since 0.
|
|
2560
|
+
* @since 0.3.0
|
|
2613
2561
|
* @relatedTo CngxTabGroup, CngxTabCloseIcon, CngxTabAddIcon
|
|
2614
2562
|
*/
|
|
2615
2563
|
declare function createTabDismissals(opts: CngxTabDismissalsOptions): CngxTabDismissals;
|
|
@@ -2619,8 +2567,6 @@ declare function createTabDismissals(opts: CngxTabDismissalsOptions): CngxTabDis
|
|
|
2619
2567
|
* handle and the presenter contract; the factory runs the APG tablist
|
|
2620
2568
|
* keyboard model so the organism class stays under the LOC guard.
|
|
2621
2569
|
* Sibling shape to `createTabDismissals`.
|
|
2622
|
-
*
|
|
2623
|
-
* @category common/tabs
|
|
2624
2570
|
*/
|
|
2625
2571
|
interface CngxTabKeyboardNavOptions {
|
|
2626
2572
|
readonly host: CngxTabGroupHost;
|
|
@@ -2633,7 +2579,7 @@ interface CngxTabKeyboardNavOptions {
|
|
|
2633
2579
|
/**
|
|
2634
2580
|
* Enables the rejection focus-release effect. Under a pessimistic
|
|
2635
2581
|
* commit, focus follows the intended target while the action is in
|
|
2636
|
-
* flight; a
|
|
2582
|
+
* flight; a refusal or failure keeps the roving stop on the origin, so
|
|
2637
2583
|
* without the release the user is stranded on a `tabindex="-1"`
|
|
2638
2584
|
* button. Omitted, the effect is skipped (headless usage).
|
|
2639
2585
|
*/
|
|
@@ -2644,8 +2590,6 @@ interface CngxTabKeyboardNavOptions {
|
|
|
2644
2590
|
* organism holds this as one field; the template reads `tabTabindex`
|
|
2645
2591
|
* for the roving stop and routes the tab buttons' `(keydown)` through
|
|
2646
2592
|
* `handleKeydown`.
|
|
2647
|
-
*
|
|
2648
|
-
* @category common/tabs
|
|
2649
2593
|
*/
|
|
2650
2594
|
interface CngxTabKeyboardNav {
|
|
2651
2595
|
/**
|
|
@@ -2682,9 +2626,8 @@ interface CngxTabKeyboardNav {
|
|
|
2682
2626
|
* activation the focused tab is always the active one, so the clamped
|
|
2683
2627
|
* active index is the correct origin.
|
|
2684
2628
|
*
|
|
2685
|
-
* @category common/tabs
|
|
2686
2629
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/keyboard/tab-keyboard-nav.ts
|
|
2687
|
-
* @since 0.
|
|
2630
|
+
* @since 0.3.0
|
|
2688
2631
|
* @relatedTo CngxTabGroupPresenter, CngxTabGroup, createTabGroupAnnouncements
|
|
2689
2632
|
*/
|
|
2690
2633
|
declare function createTabKeyboardNav(opts: CngxTabKeyboardNavOptions): CngxTabKeyboardNav;
|
|
@@ -2697,8 +2640,6 @@ declare function createTabKeyboardNav(opts: CngxTabKeyboardNavOptions): CngxTabK
|
|
|
2697
2640
|
*
|
|
2698
2641
|
* Sibling shape to
|
|
2699
2642
|
* - `createStepperTemplateBindings`.
|
|
2700
|
-
*
|
|
2701
|
-
* @category common/tabs/slots
|
|
2702
2643
|
*/
|
|
2703
2644
|
interface CngxTabGroupTemplateBindingsOptions {
|
|
2704
2645
|
readonly errorBadgeSlot: Signal<CngxTabErrorBadge | undefined>;
|
|
@@ -2715,8 +2656,6 @@ interface CngxTabGroupTemplateBindingsOptions {
|
|
|
2715
2656
|
* Output of {@link createTabGroupTemplateBindings}. One resolved
|
|
2716
2657
|
* `Signal<TemplateRef | null>` per slot; `null` means the organism
|
|
2717
2658
|
* renders its built-in default.
|
|
2718
|
-
*
|
|
2719
|
-
* @category common/tabs/slots
|
|
2720
2659
|
*/
|
|
2721
2660
|
interface CngxTabGroupTemplateBindings {
|
|
2722
2661
|
readonly errorBadge: Signal<TemplateRef<CngxTabErrorBadgeContext> | null>;
|
|
@@ -2735,7 +2674,7 @@ interface CngxTabGroupTemplateBindings {
|
|
|
2735
2674
|
* `null`.
|
|
2736
2675
|
*
|
|
2737
2676
|
* `null` means the organism renders its built-in default - a default
|
|
2738
|
-
* span for the state decorations, the
|
|
2677
|
+
* span for the state decorations, the default icon for
|
|
2739
2678
|
* `closeIcon` / `addIcon`, and nothing for `icon`.
|
|
2740
2679
|
*
|
|
2741
2680
|
* Pure - no DI, no side effects. Safe in field-init. Sibling to
|
|
@@ -2755,10 +2694,9 @@ interface CngxTabGroupTemplateBindings {
|
|
|
2755
2694
|
* - An unbound `icon` slot resolves to nothing, which is correct - the
|
|
2756
2695
|
* icon is decorative and the label carries the accessible name.
|
|
2757
2696
|
*
|
|
2758
|
-
* @category common/tabs/slots
|
|
2759
2697
|
* @wcag AA
|
|
2760
2698
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-group-template-cascade.ts
|
|
2761
|
-
* @since 0.
|
|
2699
|
+
* @since 0.3.0
|
|
2762
2700
|
* @relatedTo CngxTabGroup, CngxTabErrorBadge, CngxTabBusySpinner, CngxTabRejectionIcon
|
|
2763
2701
|
*/
|
|
2764
2702
|
declare function createTabGroupTemplateBindings(opts: CngxTabGroupTemplateBindingsOptions): CngxTabGroupTemplateBindings;
|
|
@@ -2768,8 +2706,6 @@ declare function createTabGroupTemplateBindings(opts: CngxTabGroupTemplateBindin
|
|
|
2768
2706
|
* Passing presenter / i18n / config in (instead of re-injecting)
|
|
2769
2707
|
* keeps the factory pure - one call returns the bundle, no
|
|
2770
2708
|
* injection context required.
|
|
2771
|
-
*
|
|
2772
|
-
* @category common/tabs/announcements
|
|
2773
2709
|
*/
|
|
2774
2710
|
interface CngxTabGroupAnnouncementsOptions {
|
|
2775
2711
|
readonly presenter: CngxTabGroupHost;
|
|
@@ -2793,8 +2729,6 @@ interface CngxTabGroupAnnouncementsOptions {
|
|
|
2793
2729
|
* Host bindings and template outlets read these directly. Owns one
|
|
2794
2730
|
* internal `linkedSignal` slot (prior-active-index tracker driving
|
|
2795
2731
|
* the success-arm direction prefix); consumers never touch it.
|
|
2796
|
-
*
|
|
2797
|
-
* @category common/tabs/announcements
|
|
2798
2732
|
*/
|
|
2799
2733
|
interface CngxTabGroupAnnouncements {
|
|
2800
2734
|
/**
|
|
@@ -2811,7 +2745,7 @@ interface CngxTabGroupAnnouncements {
|
|
|
2811
2745
|
readonly tabPanelRoleDescription: Signal<string>;
|
|
2812
2746
|
/**
|
|
2813
2747
|
* Wrapper `aria-label`. Resolution: per-instance Input →
|
|
2814
|
-
* `
|
|
2748
|
+
* `i18n.tabsLabel`. Returns `null` when
|
|
2815
2749
|
* `aria-labelledby` is bound (mutually exclusive per WAI-ARIA).
|
|
2816
2750
|
*/
|
|
2817
2751
|
readonly resolvedAriaLabel: Signal<string | null>;
|
|
@@ -2820,12 +2754,19 @@ interface CngxTabGroupAnnouncements {
|
|
|
2820
2754
|
* `announce()`. Empty between transitions so the region stays
|
|
2821
2755
|
* quiet on no-op ticks.
|
|
2822
2756
|
*
|
|
2823
|
-
*
|
|
2824
|
-
*
|
|
2757
|
+
* Refusal: `commitRefused(origin)` once, held until the next commit,
|
|
2758
|
+
* an active-index move, a cleared outcome or a new close phrase. The
|
|
2759
|
+
* origin is its label, or `unlabeledTab(position)` without one;
|
|
2760
|
+
* `commitRefusedGeneric` when no origin tab resolves (none recorded,
|
|
2761
|
+
* or removed meanwhile).
|
|
2762
|
+
*
|
|
2763
|
+
* Error arm: `commitRolledBackTo(origin)` when the origin tab
|
|
2764
|
+
* resolves, named the same way; otherwise `commitFailedRetry`.
|
|
2825
2765
|
*
|
|
2826
2766
|
* Success arm: `previousTab|nextTab(selectedTab(...))` when
|
|
2827
2767
|
* the index moved; bare `selectedTab(...)` when it didn't (initial
|
|
2828
|
-
* mount, or commit-success that lands on the same tab).
|
|
2768
|
+
* mount, or commit-success that lands on the same tab). A label-less
|
|
2769
|
+
* tab reads `unlabeledTabOfCount(...)` in place of `selectedTab`.
|
|
2829
2770
|
*/
|
|
2830
2771
|
readonly liveAnnouncement: Signal<string>;
|
|
2831
2772
|
/**
|
|
@@ -2841,10 +2782,28 @@ interface CngxTabGroupAnnouncements {
|
|
|
2841
2782
|
/**
|
|
2842
2783
|
* Verbose tab-button `aria-label` - `selectedTab(label, position,
|
|
2843
2784
|
* count)` so AT hears "Tab 2 of 5: Settings" instead of inferring
|
|
2844
|
-
* position from tablist enumeration
|
|
2845
|
-
*
|
|
2785
|
+
* position from tablist enumeration; `unlabeledTabOfCount(position,
|
|
2786
|
+
* count)` ("Tab 2 of 5") for a tab without a label. The visual span
|
|
2787
|
+
* keeps the bare label.
|
|
2846
2788
|
*/
|
|
2847
2789
|
tabAriaLabel(tab: CngxTabHandle, position: number): string;
|
|
2790
|
+
/**
|
|
2791
|
+
* Tab-button `aria-labelledby`, or `null` when {@link tabAriaLabel}
|
|
2792
|
+
* names the button. A tab without a `[label]` string whose
|
|
2793
|
+
* `*cngxTabLabel` template renders is named by that rendered content:
|
|
2794
|
+
* the ids of its label node ({@link tabLabelId}) and, when a sub-label
|
|
2795
|
+
* renders, its sub-label node ({@link tabSubLabelId}). Name-from-content
|
|
2796
|
+
* is ruled out by the sr-only descriptor inside the button, so the
|
|
2797
|
+
* reference is explicit. Bind `aria-label` only while this is `null`.
|
|
2798
|
+
*
|
|
2799
|
+
* @param hasLabelTemplate A `*cngxTabLabel` template renders for `tab`.
|
|
2800
|
+
* @param hasSubLabelTemplate A `*cngxTabSubLabel` template renders for `tab`.
|
|
2801
|
+
*/
|
|
2802
|
+
tabLabelledBy(tab: CngxTabHandle, hasLabelTemplate: boolean, hasSubLabelTemplate: boolean): string | null;
|
|
2803
|
+
/** Id of the node that renders a tab's label, the target of {@link tabLabelledBy}. */
|
|
2804
|
+
tabLabelId(tab: CngxTabHandle): string;
|
|
2805
|
+
/** Id of the node that renders a tab's sub-label, the target of {@link tabLabelledBy}. */
|
|
2806
|
+
tabSubLabelId(tab: CngxTabHandle): string;
|
|
2848
2807
|
}
|
|
2849
2808
|
/**
|
|
2850
2809
|
* Pure factory bundling the `<cngx-tab-group>` AT-announcement +
|
|
@@ -2871,10 +2830,9 @@ interface CngxTabGroupAnnouncements {
|
|
|
2871
2830
|
* always in the DOM; `statusPhrase` only fills its content, keeping the
|
|
2872
2831
|
* `aria-describedby` reference stable.
|
|
2873
2832
|
*
|
|
2874
|
-
* @category common/tabs/announcements
|
|
2875
2833
|
* @wcag AA
|
|
2876
2834
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/announcements/tab-group-announcements.ts
|
|
2877
|
-
* @since 0.
|
|
2835
|
+
* @since 0.3.0
|
|
2878
2836
|
* @relatedTo CngxTabGroup, CngxLiveRegion, createTabKeyboardNav
|
|
2879
2837
|
*/
|
|
2880
2838
|
declare function createTabGroupAnnouncements(options: CngxTabGroupAnnouncementsOptions): CngxTabGroupAnnouncements;
|
|
@@ -2883,8 +2841,6 @@ declare function createTabGroupAnnouncements(options: CngxTabGroupAnnouncementsO
|
|
|
2883
2841
|
* Inputs the nav announcement bundle reads from its host organism.
|
|
2884
2842
|
* Passing the presenter in (instead of re-injecting) keeps the factory a
|
|
2885
2843
|
* plain function of its arguments.
|
|
2886
|
-
*
|
|
2887
|
-
* @category common/tabs/announcements
|
|
2888
2844
|
*/
|
|
2889
2845
|
interface CngxTabNavAnnouncementOptions {
|
|
2890
2846
|
readonly presenter: CngxTabGroupHost;
|
|
@@ -2896,8 +2852,6 @@ interface CngxTabNavAnnouncementOptions {
|
|
|
2896
2852
|
}
|
|
2897
2853
|
/**
|
|
2898
2854
|
* Resolved bundle returned by {@link createTabNavAnnouncement}.
|
|
2899
|
-
*
|
|
2900
|
-
* @category common/tabs/announcements
|
|
2901
2855
|
*/
|
|
2902
2856
|
interface CngxTabNavAnnouncement {
|
|
2903
2857
|
/**
|
|
@@ -2934,44 +2888,18 @@ interface CngxTabNavAnnouncement {
|
|
|
2934
2888
|
* point instead of as the first announcement. Returning to a section
|
|
2935
2889
|
* that was active at mount still announces.
|
|
2936
2890
|
*
|
|
2937
|
-
* @category common/tabs/announcements
|
|
2938
2891
|
* @wcag AA
|
|
2939
2892
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/announcements/tab-nav-announcement.ts
|
|
2940
|
-
* @since 0.
|
|
2893
|
+
* @since 0.3.0
|
|
2941
2894
|
* @relatedTo CngxTabNav, CngxLiveRegion, createTabGroupAnnouncements
|
|
2942
2895
|
*/
|
|
2943
2896
|
declare function createTabNavAnnouncement(options: CngxTabNavAnnouncementOptions): CngxTabNavAnnouncement;
|
|
2944
2897
|
|
|
2945
|
-
/**
|
|
2946
|
-
* Default glyph fallbacks for `<cngx-tab-group>` skin slots. Read by
|
|
2947
|
-
* the organism when neither a per-instance slot directive nor
|
|
2948
|
-
* `CNGX_TABS_CONFIG.templates.<key>` is bound. Sibling to
|
|
2949
|
-
* `CNGX_SELECT_GLYPHS` and `CNGX_STEPPER_GLYPHS`. Exported because
|
|
2950
|
-
* Sheriff forbids deep-relative imports across library boundaries;
|
|
2951
|
-
* `@internal` enforces consumer intent. Consumers customise via slot
|
|
2952
|
-
* directives or `withTab*Template` config features.
|
|
2953
|
-
*
|
|
2954
|
-
* @internal
|
|
2955
|
-
* @category common/tabs
|
|
2956
|
-
*/
|
|
2957
|
-
declare const CNGX_TABS_GLYPHS: {
|
|
2958
|
-
/** Default visual for `*cngxTabErrorBadge` when no override is bound. */
|
|
2959
|
-
readonly errorBadge: "!";
|
|
2960
|
-
/** Default visual for `*cngxTabRejectionIcon` when no override is bound. */
|
|
2961
|
-
readonly rejectionIcon: "!";
|
|
2962
|
-
/** Default visual for a tab's close button when no override is bound. */
|
|
2963
|
-
readonly closeIcon: "×";
|
|
2964
|
-
/** Default visual for the add-tab button when no override is bound. */
|
|
2965
|
-
readonly addIcon: "+";
|
|
2966
|
-
};
|
|
2967
|
-
|
|
2968
2898
|
/**
|
|
2969
2899
|
* DOM `id` for a hidden-tab option row in the overflow listbox. \
|
|
2970
2900
|
* Stable across CD passes so `aria-activedescendant` resolves to
|
|
2971
2901
|
* the same `<li>`. `-overflow-option` suffix avoids collision with
|
|
2972
2902
|
* the strip-button (`-header`) and per-tab descriptor (`-desc`).
|
|
2973
|
-
*
|
|
2974
|
-
* @category common/tabs/overflow
|
|
2975
2903
|
*/
|
|
2976
2904
|
declare function tabOverflowOptionId(tab: CngxTabHandle): string;
|
|
2977
2905
|
/**
|
|
@@ -2979,8 +2907,6 @@ declare function tabOverflowOptionId(tab: CngxTabHandle): string;
|
|
|
2979
2907
|
* The molecule runs the `contentChild()` queries (injection-context-only) and
|
|
2980
2908
|
* supplies the reactive sources; the factory owns cascade
|
|
2981
2909
|
* resolution and per-context builders.
|
|
2982
|
-
*
|
|
2983
|
-
* @category common/tabs/overflow
|
|
2984
2910
|
*/
|
|
2985
2911
|
interface CngxTabOverflowTemplateBindingsOptions {
|
|
2986
2912
|
/** `contentChild(CngxTabOverflowTrigger)` from the molecule. */
|
|
@@ -3004,8 +2930,6 @@ interface CngxTabOverflowTemplateBindingsOptions {
|
|
|
3004
2930
|
* Output of {@link createTabOverflowTemplateBindings}. Carries the two
|
|
3005
2931
|
* resolved templates plus a stable trigger-context signal and an
|
|
3006
2932
|
* imperative item-context builder.
|
|
3007
|
-
*
|
|
3008
|
-
* @category common/tabs/overflow
|
|
3009
2933
|
*/
|
|
3010
2934
|
interface CngxTabOverflowTemplateBindings {
|
|
3011
2935
|
readonly triggerTemplate: Signal<TemplateRef<CngxTabOverflowTriggerContext> | null>;
|
|
@@ -3040,8 +2964,6 @@ interface CngxTabOverflowTemplateBindings {
|
|
|
3040
2964
|
* Pure - no DI, no side effects, no destroy hooks. Safe to call
|
|
3041
2965
|
* from a component's field-init block. Mirrors the select-family
|
|
3042
2966
|
* `createTemplateRegistry` pattern.
|
|
3043
|
-
*
|
|
3044
|
-
* @category common/tabs/overflow
|
|
3045
2967
|
*/
|
|
3046
2968
|
declare function createTabOverflowTemplateBindings(opts: CngxTabOverflowTemplateBindingsOptions): CngxTabOverflowTemplateBindings;
|
|
3047
2969
|
/**
|
|
@@ -3065,14 +2987,11 @@ declare function createTabOverflowTemplateBindings(opts: CngxTabOverflowTemplate
|
|
|
3065
2987
|
* `aria-activedescendant` while real focus stays on the trigger (APG
|
|
3066
2988
|
* menu-button); the rows are never tab stops.
|
|
3067
2989
|
*
|
|
3068
|
-
* @category common/tabs/overflow
|
|
3069
2990
|
* @wcag AA
|
|
3070
2991
|
*/
|
|
3071
2992
|
declare function createOverflowPopoverHighlightSync(popover: Signal<CngxPopover>, ad: Signal<CngxActiveDescendant>): void;
|
|
3072
2993
|
/**
|
|
3073
2994
|
* Factory signature for {@link CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY}.
|
|
3074
|
-
*
|
|
3075
|
-
* @category common/tabs/overflow
|
|
3076
2995
|
*/
|
|
3077
2996
|
type CngxOverflowPopoverHighlightSyncFactory = (popover: Signal<CngxPopover>, ad: Signal<CngxActiveDescendant>) => void;
|
|
3078
2997
|
/**
|
|
@@ -3084,16 +3003,13 @@ type CngxOverflowPopoverHighlightSyncFactory = (popover: Signal<CngxPopover>, ad
|
|
|
3084
3003
|
* - `CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY` and
|
|
3085
3004
|
* - `CNGX_TABS_COMMIT_HANDLER_FACTORY`.
|
|
3086
3005
|
*
|
|
3087
|
-
* @category common/tabs/overflow
|
|
3088
3006
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/overflow-template-cascade.ts
|
|
3089
|
-
* @since 0.
|
|
3007
|
+
* @since 0.3.0
|
|
3090
3008
|
*/
|
|
3091
3009
|
declare const CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY: InjectionToken<CngxOverflowPopoverHighlightSyncFactory>;
|
|
3092
3010
|
|
|
3093
3011
|
/**
|
|
3094
3012
|
* Options for {@link createOrganismScrollSync}.
|
|
3095
|
-
*
|
|
3096
|
-
* @category common/tabs/scroll-sync
|
|
3097
3013
|
*/
|
|
3098
3014
|
interface CngxOrganismScrollSyncOptions {
|
|
3099
3015
|
/** Reactive source for the active item id; tracked by the effect. */
|
|
@@ -3129,9 +3045,10 @@ interface CngxOrganismScrollSyncOptions {
|
|
|
3129
3045
|
* popover scrolls it back into the strip, and the overflow recompute
|
|
3130
3046
|
* then self-trims - keyboard navigation and the overflow list stay in
|
|
3131
3047
|
* sync.
|
|
3132
|
-
* -
|
|
3133
|
-
*
|
|
3134
|
-
*
|
|
3048
|
+
* - The default is smooth-center along the inline axis, instant under
|
|
3049
|
+
* reduced motion (the in-app `CNGX_MOTION` pick or the OS query, via
|
|
3050
|
+
* `injectEffectiveMotion`); pass `scrollOptions` to replace it, for
|
|
3051
|
+
* example to scroll vertically.
|
|
3135
3052
|
*
|
|
3136
3053
|
* ```ts
|
|
3137
3054
|
* // Install once from the organism's field-init (needs an injection context).
|
|
@@ -3144,17 +3061,14 @@ interface CngxOrganismScrollSyncOptions {
|
|
|
3144
3061
|
* });
|
|
3145
3062
|
* ```
|
|
3146
3063
|
*
|
|
3147
|
-
* @category common/tabs/scroll-sync
|
|
3148
3064
|
* @wcag AA
|
|
3149
3065
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/scroll-sync/organism-scroll-sync.ts
|
|
3150
|
-
* @since 0.
|
|
3066
|
+
* @since 0.3.0
|
|
3151
3067
|
* @relatedTo CngxTabGroup, CngxTabOverflow, CNGX_ORGANISM_SCROLL_SYNC_FACTORY
|
|
3152
3068
|
*/
|
|
3153
3069
|
declare function createOrganismScrollSync(opts: CngxOrganismScrollSyncOptions): void;
|
|
3154
3070
|
/**
|
|
3155
3071
|
* Factory signature for {@link CNGX_ORGANISM_SCROLL_SYNC_FACTORY}.
|
|
3156
|
-
*
|
|
3157
|
-
* @category common/tabs/scroll-sync
|
|
3158
3072
|
*/
|
|
3159
3073
|
type CngxOrganismScrollSyncFactory = (opts: CngxOrganismScrollSyncOptions) => void;
|
|
3160
3074
|
/**
|
|
@@ -3173,7 +3087,7 @@ type CngxOrganismScrollSyncFactory = (opts: CngxOrganismScrollSyncOptions) => vo
|
|
|
3173
3087
|
* - `CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY`.
|
|
3174
3088
|
*
|
|
3175
3089
|
* ```ts
|
|
3176
|
-
* //
|
|
3090
|
+
* // Always scroll instantly, motion preference or not:
|
|
3177
3091
|
* providers: [
|
|
3178
3092
|
* {
|
|
3179
3093
|
* provide: CNGX_ORGANISM_SCROLL_SYNC_FACTORY,
|
|
@@ -3184,18 +3098,15 @@ type CngxOrganismScrollSyncFactory = (opts: CngxOrganismScrollSyncOptions) => vo
|
|
|
3184
3098
|
* // Or disable scroll-into-view entirely: useValue: () => {}
|
|
3185
3099
|
* ```
|
|
3186
3100
|
*
|
|
3187
|
-
* @category common/tabs/scroll-sync
|
|
3188
3101
|
* @wcag AA
|
|
3189
3102
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/scroll-sync/organism-scroll-sync.ts
|
|
3190
|
-
* @since 0.
|
|
3103
|
+
* @since 0.3.0
|
|
3191
3104
|
* @relatedTo createOrganismScrollSync, CngxOrganismScrollSyncFactory
|
|
3192
3105
|
*/
|
|
3193
3106
|
declare const CNGX_ORGANISM_SCROLL_SYNC_FACTORY: InjectionToken<CngxOrganismScrollSyncFactory>;
|
|
3194
3107
|
|
|
3195
3108
|
/**
|
|
3196
3109
|
* Options for {@link createDirectiveByIdMap}.
|
|
3197
|
-
*
|
|
3198
|
-
* @category common/tabs/registry
|
|
3199
3110
|
*/
|
|
3200
3111
|
interface CngxDirectiveByIdMapOptions<T extends {
|
|
3201
3112
|
id: () => string;
|
|
@@ -3208,16 +3119,12 @@ interface CngxDirectiveByIdMapOptions<T extends {
|
|
|
3208
3119
|
* directives keyed by `id()`. Structural equal prevents cascade when
|
|
3209
3120
|
* `contentChildren` re-emits an unchanged child set. Shared by
|
|
3210
3121
|
* `<cngx-tab-group>`, `<cngx-stepper>`, and `<cngx-mat-stepper>`.
|
|
3211
|
-
*
|
|
3212
|
-
* @category common/tabs/registry
|
|
3213
3122
|
*/
|
|
3214
3123
|
declare function createDirectiveByIdMap<T extends {
|
|
3215
3124
|
id: () => string;
|
|
3216
3125
|
}>(opts: CngxDirectiveByIdMapOptions<T>): Signal<Map<string, T>>;
|
|
3217
3126
|
/**
|
|
3218
3127
|
* Factory signature for {@link CNGX_DIRECTIVE_BY_ID_MAP_FACTORY}.
|
|
3219
|
-
*
|
|
3220
|
-
* @category common/tabs/registry
|
|
3221
3128
|
*/
|
|
3222
3129
|
type CngxDirectiveByIdMapFactory = <T extends {
|
|
3223
3130
|
id: () => string;
|
|
@@ -3230,11 +3137,10 @@ type CngxDirectiveByIdMapFactory = <T extends {
|
|
|
3230
3137
|
* - `CNGX_DOM_ANCHOR_RETRY_FACTORY` and
|
|
3231
3138
|
* - `CNGX_ORGANISM_SCROLL_SYNC_FACTORY`.
|
|
3232
3139
|
*
|
|
3233
|
-
* @category common/tabs/registry
|
|
3234
3140
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/registry/directive-by-id-map.ts
|
|
3235
|
-
* @since 0.
|
|
3141
|
+
* @since 0.3.0
|
|
3236
3142
|
*/
|
|
3237
3143
|
declare const CNGX_DIRECTIVE_BY_ID_MAP_FACTORY: InjectionToken<CngxDirectiveByIdMapFactory>;
|
|
3238
3144
|
|
|
3239
|
-
export { CNGX_DIRECTIVE_BY_ID_MAP_FACTORY, CNGX_DOM_ANCHOR_RETRY_FACTORY, CNGX_ORGANISM_SCROLL_SYNC_FACTORY, CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY, CNGX_TABS_COMMIT_ACTION, CNGX_TABS_COMMIT_HANDLER_FACTORY, CNGX_TABS_CONFIG,
|
|
3240
|
-
export type { CngxDirectiveByIdMapFactory, CngxDirectiveByIdMapOptions, CngxDomAnchorRetryFactory, CngxDomAnchorRetryHandle, CngxDomAnchorRetryOptions, CngxDomAnchorRetryResult, CngxOrganismScrollSyncFactory, CngxOrganismScrollSyncOptions, CngxOverflowPopoverHighlightSyncFactory, CngxTabAlign, CngxTabBusySpinnerContext, CngxTabCloseEvent, CngxTabCloseIconContext, CngxTabDismissals, CngxTabDismissalsOptions, CngxTabErrorBadgeContext, CngxTabGroupAnnouncements, CngxTabGroupAnnouncementsOptions, CngxTabGroupHost, CngxTabGroupTemplateBindings, CngxTabGroupTemplateBindingsOptions, CngxTabHandle, CngxTabIconContext, CngxTabIconLayout, CngxTabKeyboardNav, CngxTabKeyboardNavOptions, CngxTabMatchMode, CngxTabNavAnnouncement, CngxTabNavAnnouncementOptions, CngxTabOverflowDomAdapter, CngxTabOverflowDomAdapterFactory, CngxTabOverflowItemContext, CngxTabOverflowTemplateBindings, CngxTabOverflowTemplateBindingsOptions, CngxTabOverflowTriggerContext, CngxTabPanelHost, CngxTabRejectionIconContext, CngxTabRouterCommitOptions, CngxTabUrlMatch, CngxTabUrlMatchContext, CngxTabUrlMatchFactory,
|
|
3145
|
+
export { CNGX_DIRECTIVE_BY_ID_MAP_FACTORY, CNGX_DOM_ANCHOR_RETRY_FACTORY, CNGX_ORGANISM_SCROLL_SYNC_FACTORY, CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY, CNGX_TABS_COMMIT_ACTION, CNGX_TABS_COMMIT_HANDLER_FACTORY, CNGX_TABS_CONFIG, CNGX_TABS_I18N, CNGX_TABS_LANGUAGE_EN, CNGX_TAB_GROUP_HOST, CNGX_TAB_NAV_HOST, CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY, CNGX_TAB_PANEL_HOST, CNGX_TAB_URL_MATCH_STRATEGY, CngxTab, CngxTabAddIcon, CngxTabBusySpinner, CngxTabCloseIcon, CngxTabContent, CngxTabErrorBadge, CngxTabGroupPresenter, CngxTabIcon, CngxTabLabel, CngxTabLink, CngxTabOverflowItem, CngxTabOverflowTrigger, CngxTabRejectionIcon, CngxTabSubLabel, CngxTabsFragmentSync, CngxTabsRouteSync, createCngxTabOverflowDefaultDomAdapter, createDirectiveByIdMap, createDomAnchorRetry, createOrganismScrollSync, createOverflowPopoverHighlightSync, createTabDismissals, createTabGroupAnnouncements, createTabGroupTemplateBindings, createTabKeyboardNav, createTabNavAnnouncement, createTabOverflowTemplateBindings, createTabRouterCommit, createTabUrlMatch, createTabsCommitHandler, createTabsHostAttrs, injectTabsConfig, injectTabsI18n, provideCngxTabs, provideCngxTabsAt, provideTabsConfig, provideTabsConfigAt, provideTabsI18n, tabOverflowOptionId, withDefaultOrientation, withTabAddIconTemplate, withTabBusySpinnerTemplate, withTabCloseIconTemplate, withTabErrorBadgeTemplate, withTabIconTemplate, withTabOverflowItemTemplate, withTabOverflowMaxDeferMs, withTabOverflowStabilizeMs, withTabOverflowTriggerTemplate, withTabRejectionIconTemplate, withTabsAddable, withTabsAlign, withTabsClosable, withTabsCommitMode, withTabsDefaultOrientation, withTabsFallbackLabels, withTabsFitted, withTabsFragmentSync, withTabsI18nLabels, withTabsIconLayout, withTabsLinkAriaCurrent, withTabsPanelMode, withTabsRouteMatch, withTabsRouterSync, withTabsRovingLoop, withTabsSkin };
|
|
3146
|
+
export type { CngxDirectiveByIdMapFactory, CngxDirectiveByIdMapOptions, CngxDomAnchorRetryFactory, CngxDomAnchorRetryHandle, CngxDomAnchorRetryOptions, CngxDomAnchorRetryResult, CngxOrganismScrollSyncFactory, CngxOrganismScrollSyncOptions, CngxOverflowPopoverHighlightSyncFactory, CngxTabAlign, CngxTabBusySpinnerContext, CngxTabCloseEvent, CngxTabCloseIconContext, CngxTabDismissals, CngxTabDismissalsOptions, CngxTabErrorBadgeContext, CngxTabGroupAnnouncements, CngxTabGroupAnnouncementsOptions, CngxTabGroupHost, CngxTabGroupTemplateBindings, CngxTabGroupTemplateBindingsOptions, CngxTabHandle, CngxTabIconContext, CngxTabIconLayout, CngxTabKeyboardNav, CngxTabKeyboardNavOptions, CngxTabMatchMode, CngxTabNavAnnouncement, CngxTabNavAnnouncementOptions, CngxTabOverflowDomAdapter, CngxTabOverflowDomAdapterFactory, CngxTabOverflowItemContext, CngxTabOverflowTemplateBindings, CngxTabOverflowTemplateBindingsOptions, CngxTabOverflowTriggerContext, CngxTabPanelHost, CngxTabRejectionIconContext, CngxTabRouterCommitOptions, CngxTabUrlMatch, CngxTabUrlMatchContext, CngxTabUrlMatchFactory, CngxTabsCommitAction, CngxTabsCommitActionSource, CngxTabsCommitHandler, CngxTabsCommitHandlerFactory, CngxTabsCommitHandlerOptions, CngxTabsCommitResolution, CngxTabsConfig, CngxTabsConfigFeature, CngxTabsFallbackLabels, CngxTabsFeature, CngxTabsHostAttrs, CngxTabsHostAttrsInputs, CngxTabsI18n, CngxTabsI18nFeature, CngxTabsLanguageSection, CngxTabsPanelMode, CngxTabsSkin, CngxTabsTemplates };
|