@cngx/common 0.1.0-rc.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/a11y/README.md +15 -2
- package/button/README.md +258 -0
- package/command/README.md +19 -8
- package/data/README.md +10 -10
- package/fesm2022/cngx-common-a11y.mjs +701 -263
- package/fesm2022/cngx-common-a11y.mjs.map +1 -1
- package/fesm2022/cngx-common-audio.mjs +83 -64
- 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 +135 -76
- package/fesm2022/cngx-common-card.mjs.map +1 -1
- package/fesm2022/cngx-common-chart.mjs +749 -296
- package/fesm2022/cngx-common-chart.mjs.map +1 -1
- package/fesm2022/cngx-common-command.mjs +51 -29
- package/fesm2022/cngx-common-command.mjs.map +1 -1
- package/fesm2022/cngx-common-data.mjs +695 -405
- package/fesm2022/cngx-common-data.mjs.map +1 -1
- package/fesm2022/cngx-common-dialog.mjs +112 -112
- package/fesm2022/cngx-common-dialog.mjs.map +1 -1
- package/fesm2022/cngx-common-display.mjs +668 -308
- package/fesm2022/cngx-common-display.mjs.map +1 -1
- package/fesm2022/cngx-common-interactive.mjs +7066 -2739
- package/fesm2022/cngx-common-interactive.mjs.map +1 -1
- package/fesm2022/cngx-common-layout.mjs +2121 -492
- 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 +1207 -569
- package/fesm2022/cngx-common-popover.mjs.map +1 -1
- package/fesm2022/cngx-common-stepper.mjs +256 -261
- package/fesm2022/cngx-common-stepper.mjs.map +1 -1
- package/fesm2022/cngx-common-tabs.mjs +202 -262
- package/fesm2022/cngx-common-tabs.mjs.map +1 -1
- package/fesm2022/cngx-common-timeline.mjs +28 -61
- 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 +1 -1
- package/menu-button/README.md +234 -0
- package/package.json +14 -4
- package/popover/README.md +42 -5
- package/popover/tooltip-indicator.scss +52 -0
- package/schematics/ng-add/index.js +7 -7
- package/schematics/ng-add/schema.json +5 -0
- package/stepper/README.md +0 -1
- 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 +43 -11
- package/theming/components/cngx-popover.css +37 -13
- 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 +343 -120
- 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 +671 -384
- package/types/cngx-common-command.d.ts +44 -47
- package/types/cngx-common-data.d.ts +350 -342
- package/types/cngx-common-dialog.d.ts +91 -120
- package/types/cngx-common-display.d.ts +475 -300
- package/types/cngx-common-interactive.d.ts +4350 -1723
- package/types/cngx-common-layout.d.ts +1365 -286
- package/types/cngx-common-menu-button.d.ts +382 -0
- package/types/cngx-common-popover.d.ts +671 -289
- package/types/cngx-common-stepper.d.ts +217 -347
- package/types/cngx-common-tabs.d.ts +173 -386
- package/types/cngx-common-timeline.d.ts +25 -104
|
@@ -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[]>;
|
|
@@ -171,10 +165,9 @@ interface CngxTabGroupHost {
|
|
|
171
165
|
* `select()`, roving stop derived from `activeId`) through
|
|
172
166
|
* `createTabKeyboardNav`.
|
|
173
167
|
*
|
|
174
|
-
* @category common/tabs
|
|
175
168
|
* @wcag AA
|
|
176
169
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-group-host.token.ts
|
|
177
|
-
* @since 0.
|
|
170
|
+
* @since 0.3.0
|
|
178
171
|
*/
|
|
179
172
|
declare const CNGX_TAB_GROUP_HOST: InjectionToken<CngxTabGroupHost>;
|
|
180
173
|
|
|
@@ -183,8 +176,6 @@ declare const CNGX_TAB_GROUP_HOST: InjectionToken<CngxTabGroupHost>;
|
|
|
183
176
|
* Receives origin and target indices; resolves `true` to commit, `false` to refuse.
|
|
184
177
|
* `Observable | Promise | sync` union mirrors the rest of the CNGX
|
|
185
178
|
* commit-action family.
|
|
186
|
-
*
|
|
187
|
-
* @category common/tabs
|
|
188
179
|
*/
|
|
189
180
|
type CngxTabsCommitAction = (fromIndex: number, toIndex: number) => boolean | Promise<boolean> | Observable<boolean>;
|
|
190
181
|
/**
|
|
@@ -199,26 +190,31 @@ type CngxTabsCommitAction = (fromIndex: number, toIndex: number) => boolean | Pr
|
|
|
199
190
|
* Directive-only - organisms compose via `hostDirectives`, consumers attach
|
|
200
191
|
* `[cngxTabGroup]` directly.
|
|
201
192
|
*
|
|
202
|
-
* @category common/tabs
|
|
203
|
-
* @docsKind primary
|
|
204
193
|
* @wcag AA
|
|
205
194
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/presenter.directive.ts
|
|
206
|
-
* @since 0.
|
|
195
|
+
* @since 0.3.0
|
|
207
196
|
* @relatedTo CngxTab, CngxTabContent, CngxTabLabel, CngxTabsFragmentSync
|
|
208
|
-
* <example-url
|
|
197
|
+
* <example-url>/#/ui/tabs/tab-commit-action/optimistic-pessimistic-commits-with-bridge-directives</example-url>
|
|
209
198
|
*/
|
|
210
199
|
declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
211
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
|
+
*/
|
|
212
206
|
readonly activeIndex: i0.ModelSignal<number>;
|
|
213
207
|
/**
|
|
214
|
-
*
|
|
215
|
-
* 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'`.
|
|
216
211
|
*/
|
|
217
212
|
readonly orientationInput: i0.InputSignal<"horizontal" | "vertical" | undefined>;
|
|
218
213
|
readonly orientation: Signal<"horizontal" | "vertical">;
|
|
219
214
|
/**
|
|
220
|
-
*
|
|
221
|
-
*
|
|
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`.
|
|
222
218
|
*/
|
|
223
219
|
readonly loopInput: i0.InputSignal<boolean | undefined>;
|
|
224
220
|
readonly loop: Signal<boolean>;
|
|
@@ -229,19 +225,19 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
229
225
|
* semantics come from the commit-controller - a rapid second
|
|
230
226
|
* `select(...)` cancels the in-flight runner.
|
|
231
227
|
*
|
|
232
|
-
* @
|
|
233
|
-
* 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.
|
|
234
231
|
*/
|
|
235
232
|
readonly commitActionInput: i0.InputSignal<CngxTabsCommitAction | null>;
|
|
236
233
|
/**
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
* 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.
|
|
241
237
|
*
|
|
242
|
-
* @
|
|
243
|
-
* the
|
|
244
|
-
*
|
|
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'`.
|
|
245
241
|
*/
|
|
246
242
|
readonly commitModeInput: i0.InputSignal<"optimistic" | "pessimistic" | undefined>;
|
|
247
243
|
private readonly injector;
|
|
@@ -306,15 +302,51 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
306
302
|
readonly tabs: Signal<readonly CngxTabHandle[]>;
|
|
307
303
|
private readonly clampedIndex;
|
|
308
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
|
+
*/
|
|
309
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
|
+
*/
|
|
310
316
|
unregister(id: string, handle?: CngxTabHandle): void;
|
|
311
317
|
/** {@inheritDoc CngxTabGroupHost.clearLastFailed} */
|
|
312
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
|
+
*/
|
|
313
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
|
+
*/
|
|
314
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
|
+
*/
|
|
315
334
|
selectPrevious(): void;
|
|
335
|
+
/**
|
|
336
|
+
* Activates the tab registered under the given id, through `select`. Unknown ids are ignored.
|
|
337
|
+
*/
|
|
316
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
|
+
*/
|
|
317
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
|
+
*/
|
|
318
350
|
requestAdd(): void;
|
|
319
351
|
static ɵfac: i0.ɵɵFactoryDeclaration<CngxTabGroupPresenter, never>;
|
|
320
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>;
|
|
@@ -330,8 +362,6 @@ declare class CngxTabGroupPresenter implements CngxTabGroupHost {
|
|
|
330
362
|
* gating. Template resolvers let skin sub-components project the
|
|
331
363
|
* `*cngxTabLabel` / `*cngxTabContent` slots without depending on the
|
|
332
364
|
* concrete `CngxTabGroup` class.
|
|
333
|
-
*
|
|
334
|
-
* @category common/tabs
|
|
335
365
|
*/
|
|
336
366
|
interface CngxTabPanelHost {
|
|
337
367
|
readonly tabs: Signal<readonly CngxTabHandle[]>;
|
|
@@ -348,10 +378,9 @@ interface CngxTabPanelHost {
|
|
|
348
378
|
* The overflow molecule and consumer-authored skin sub-components inject this
|
|
349
379
|
* instead of the concrete component class.
|
|
350
380
|
*
|
|
351
|
-
* @category common/tabs
|
|
352
381
|
* @wcag AA
|
|
353
382
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-panel-host.token.ts
|
|
354
|
-
* @since 0.
|
|
383
|
+
* @since 0.3.0
|
|
355
384
|
*/
|
|
356
385
|
declare const CNGX_TAB_PANEL_HOST: InjectionToken<CngxTabPanelHost>;
|
|
357
386
|
|
|
@@ -390,10 +419,9 @@ declare const CNGX_TAB_PANEL_HOST: InjectionToken<CngxTabPanelHost>;
|
|
|
390
419
|
* export class MySectionNav {}
|
|
391
420
|
* ```
|
|
392
421
|
*
|
|
393
|
-
* @category common/tabs
|
|
394
422
|
* @wcag AA
|
|
395
423
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-nav-host.token.ts
|
|
396
|
-
* @since 0.
|
|
424
|
+
* @since 0.3.0
|
|
397
425
|
* @relatedTo CngxTabsRouteSync, CNGX_TAB_GROUP_HOST, CngxTabNav, CngxMatTabNav
|
|
398
426
|
*/
|
|
399
427
|
declare const CNGX_TAB_NAV_HOST: InjectionToken<true>;
|
|
@@ -405,16 +433,12 @@ declare const CNGX_TAB_NAV_HOST: InjectionToken<true>;
|
|
|
405
433
|
* a `role="tablist"` implies.
|
|
406
434
|
* - `'prefix'` - the tab owns a subtree, the section semantics a
|
|
407
435
|
* `role="navigation"` of links implies.
|
|
408
|
-
*
|
|
409
|
-
* @category common/tabs
|
|
410
436
|
*/
|
|
411
437
|
type CngxTabMatchMode = 'suffix' | 'prefix';
|
|
412
438
|
/**
|
|
413
439
|
* Everything {@link CngxTabUrlMatch} needs to resolve the active tab.
|
|
414
440
|
* Passed in rather than injected, so the strategy stays a pure function
|
|
415
441
|
* of its inputs and needs no injection context.
|
|
416
|
-
*
|
|
417
|
-
* @category common/tabs
|
|
418
442
|
*/
|
|
419
443
|
interface CngxTabUrlMatchContext {
|
|
420
444
|
readonly router: Router;
|
|
@@ -429,14 +453,12 @@ interface CngxTabUrlMatchContext {
|
|
|
429
453
|
}
|
|
430
454
|
/**
|
|
431
455
|
* Resolves which registered tab the current URL belongs to.
|
|
432
|
-
*
|
|
433
|
-
* @category common/tabs
|
|
434
456
|
*/
|
|
435
457
|
interface CngxTabUrlMatch {
|
|
436
458
|
/** Active tab id, or `null` when the URL is outside this tab set. */
|
|
437
459
|
resolve(ctx: CngxTabUrlMatchContext): string | null;
|
|
438
460
|
}
|
|
439
|
-
/** Factory shape overrides must match.
|
|
461
|
+
/** Factory shape overrides must match. */
|
|
440
462
|
type CngxTabUrlMatchFactory = () => CngxTabUrlMatch;
|
|
441
463
|
/**
|
|
442
464
|
* The two URL-matching policies `[cngxTabsRouteSync]` ships, dispatched
|
|
@@ -445,8 +467,6 @@ type CngxTabUrlMatchFactory = () => CngxTabUrlMatch;
|
|
|
445
467
|
*
|
|
446
468
|
* Pure: no injection context, no signal reads. The directive resolves the
|
|
447
469
|
* mode cascade and the tab registry, then hands both in.
|
|
448
|
-
*
|
|
449
|
-
* @category common/tabs
|
|
450
470
|
*/
|
|
451
471
|
declare function createTabUrlMatch(): CngxTabUrlMatch;
|
|
452
472
|
/**
|
|
@@ -463,10 +483,9 @@ declare function createTabUrlMatch(): CngxTabUrlMatch;
|
|
|
463
483
|
* navigation a tab switch performs is already swappable, so the read that
|
|
464
484
|
* mirrors navigation back onto `activeIndex` should be too.
|
|
465
485
|
*
|
|
466
|
-
* @category common/tabs
|
|
467
486
|
* @wcag AA
|
|
468
487
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/url-match.ts
|
|
469
|
-
* @since 0.
|
|
488
|
+
* @since 0.3.0
|
|
470
489
|
* @relatedTo CngxTabsRouteSync, createTabUrlMatch, createTabRouterCommit
|
|
471
490
|
*/
|
|
472
491
|
declare const CNGX_TAB_URL_MATCH_STRATEGY: InjectionToken<CngxTabUrlMatch>;
|
|
@@ -484,10 +503,9 @@ declare const CNGX_TAB_URL_MATCH_STRATEGY: InjectionToken<CngxTabUrlMatch>;
|
|
|
484
503
|
* </div>
|
|
485
504
|
* ```
|
|
486
505
|
*
|
|
487
|
-
* @category common/tabs
|
|
488
506
|
* @wcag AA
|
|
489
507
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-content.directive.ts
|
|
490
|
-
* @since 0.
|
|
508
|
+
* @since 0.3.0
|
|
491
509
|
* @relatedTo CngxTab, CngxTabLabel
|
|
492
510
|
*/
|
|
493
511
|
declare class CngxTabContent {
|
|
@@ -508,10 +526,9 @@ declare class CngxTabContent {
|
|
|
508
526
|
* </div>
|
|
509
527
|
* ```
|
|
510
528
|
*
|
|
511
|
-
* @category common/tabs
|
|
512
529
|
* @wcag AA
|
|
513
530
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-label.directive.ts
|
|
514
|
-
* @since 0.
|
|
531
|
+
* @since 0.3.0
|
|
515
532
|
* @relatedTo CngxTab, CngxTabContent
|
|
516
533
|
*/
|
|
517
534
|
declare class CngxTabLabel {
|
|
@@ -537,12 +554,11 @@ declare class CngxTabLabel {
|
|
|
537
554
|
* </div>
|
|
538
555
|
* ```
|
|
539
556
|
*
|
|
540
|
-
* @category common/tabs/slots
|
|
541
557
|
* @wcag AA
|
|
542
558
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-sub-label.directive.ts
|
|
543
|
-
* @since 0.
|
|
559
|
+
* @since 0.3.0
|
|
544
560
|
* @relatedTo CngxTab, CngxTabLabel, CngxTabContent
|
|
545
|
-
* <example-url
|
|
561
|
+
* <example-url>/#/ui/tabs/tab-sub-label/label-with-count</example-url>
|
|
546
562
|
*/
|
|
547
563
|
declare class CngxTabSubLabel {
|
|
548
564
|
/**
|
|
@@ -570,19 +586,30 @@ declare class CngxTabSubLabel {
|
|
|
570
586
|
* ... content templates here ...
|
|
571
587
|
* </div>
|
|
572
588
|
* ```
|
|
573
|
-
* @category common/tabs
|
|
574
|
-
* @docsKind primary
|
|
575
589
|
* @wcag AA
|
|
576
590
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab.directive.ts
|
|
577
|
-
* @since 0.
|
|
591
|
+
* @since 0.3.0
|
|
578
592
|
* @relatedTo CngxTabGroupPresenter, CngxTabLabel, CngxTabContent, CngxTabErrorBadge
|
|
579
593
|
* @slot cngxTabLabel The tab's own header label.
|
|
580
594
|
* @slot cngxTabSubLabel Secondary line under the label, e.g. a count or status.
|
|
581
595
|
* @slot cngxTabContent The panel body, rendered lazily when the tab activates.
|
|
582
596
|
*/
|
|
583
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
|
+
*/
|
|
584
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
|
+
*/
|
|
585
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
|
+
*/
|
|
586
613
|
readonly label: i0.InputSignal<string | undefined>;
|
|
587
614
|
/**
|
|
588
615
|
* Optional secondary text line under the primary label (a count, a
|
|
@@ -591,6 +618,11 @@ declare class CngxTab implements OnInit {
|
|
|
591
618
|
* richer content. Folds into the tab's accessible name.
|
|
592
619
|
*/
|
|
593
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
|
+
*/
|
|
594
626
|
readonly errorAggregator: i0.InputSignal<CngxErrorAggregatorContract | undefined>;
|
|
595
627
|
/**
|
|
596
628
|
* Direct error flag for the common "this tab is invalid" case - no
|
|
@@ -653,8 +685,9 @@ declare class CngxTab implements OnInit {
|
|
|
653
685
|
* There is no `select()` call - invoking it would re-enter the commit path the
|
|
654
686
|
* routed-nav model deliberately keeps dormant.
|
|
655
687
|
*
|
|
656
|
-
* **Error communication is reactive:** `aria-invalid` plus
|
|
657
|
-
*
|
|
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
|
|
658
691
|
* descriptor span (referenced by a permanent `aria-describedby`) carries the
|
|
659
692
|
* direct `[error]` message string so assistive tech reads *why* the link is
|
|
660
693
|
* invalid.
|
|
@@ -666,11 +699,9 @@ declare class CngxTab implements OnInit {
|
|
|
666
699
|
* </cngx-tab-nav>
|
|
667
700
|
* ```
|
|
668
701
|
*
|
|
669
|
-
* @category common/tabs
|
|
670
|
-
* @docsKind primary
|
|
671
702
|
* @wcag AA
|
|
672
703
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tab-link.directive.ts
|
|
673
|
-
* @since 0.
|
|
704
|
+
* @since 0.3.0
|
|
674
705
|
* @relatedTo CngxTabNav, CngxTabsRouteSync, CngxTab, CngxMatTabLink
|
|
675
706
|
*/
|
|
676
707
|
declare class CngxTabLink implements OnInit {
|
|
@@ -741,8 +772,16 @@ declare class CngxTabLink implements OnInit {
|
|
|
741
772
|
protected readonly descriptorId: Signal<string>;
|
|
742
773
|
/** The injected descriptor `<span>`, created in {@link ngOnInit}. */
|
|
743
774
|
private descriptorEl;
|
|
775
|
+
/** The leading alert icon, present while {@link hasError} holds. */
|
|
776
|
+
private errorIconEl;
|
|
744
777
|
constructor();
|
|
745
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;
|
|
746
785
|
/**
|
|
747
786
|
* Write the current direct-error message into the descriptor span and
|
|
748
787
|
* toggle its `aria-hidden` so a clear link exposes no description. Keeps
|
|
@@ -785,15 +824,25 @@ declare class CngxTabLink implements OnInit {
|
|
|
785
824
|
* </cngx-tab-group>
|
|
786
825
|
* ```
|
|
787
826
|
*
|
|
788
|
-
* @category common/tabs
|
|
789
|
-
* @docsKind primary
|
|
790
827
|
* @wcag AA
|
|
791
828
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/router-sync.directive.ts
|
|
792
|
-
* @since 0.
|
|
829
|
+
* @since 0.3.0
|
|
793
830
|
* @relatedTo CngxTabGroupPresenter, CngxTab
|
|
831
|
+
* @axis level organism
|
|
794
832
|
*/
|
|
795
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
|
+
*/
|
|
796
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
|
+
*/
|
|
797
846
|
readonly paramNameInput: i0.InputSignal<string | undefined>;
|
|
798
847
|
private readonly config;
|
|
799
848
|
readonly mode: i0.Signal<"fragment" | "queryParam">;
|
|
@@ -865,8 +914,6 @@ declare class CngxTabsFragmentSync implements AfterContentInit {
|
|
|
865
914
|
* path can pin pessimistic - the active tab must follow the *resolved*
|
|
866
915
|
* route, and a stray `[commitMode]="'optimistic'"` must not override
|
|
867
916
|
* that invariant.
|
|
868
|
-
*
|
|
869
|
-
* @category common/tabs
|
|
870
917
|
*/
|
|
871
918
|
interface CngxTabsCommitActionSource {
|
|
872
919
|
/**
|
|
@@ -890,9 +937,8 @@ interface CngxTabsCommitActionSource {
|
|
|
890
937
|
* exposes a non-null `action()`, its `mode()` wins over the
|
|
891
938
|
* `[commitMode]` input.
|
|
892
939
|
*
|
|
893
|
-
* @category common/tabs
|
|
894
940
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/commit-action.token.ts
|
|
895
|
-
* @since 0.
|
|
941
|
+
* @since 0.3.0
|
|
896
942
|
*/
|
|
897
943
|
declare const CNGX_TABS_COMMIT_ACTION: InjectionToken<CngxTabsCommitActionSource>;
|
|
898
944
|
|
|
@@ -990,11 +1036,9 @@ declare const CNGX_TABS_COMMIT_ACTION: InjectionToken<CngxTabsCommitActionSource
|
|
|
990
1036
|
* <router-outlet></router-outlet>
|
|
991
1037
|
* ```
|
|
992
1038
|
*
|
|
993
|
-
* @category common/tabs
|
|
994
|
-
* @docsKind primary
|
|
995
1039
|
* @wcag AA
|
|
996
1040
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/route-sync.directive.ts
|
|
997
|
-
* @since 0.
|
|
1041
|
+
* @since 0.3.0
|
|
998
1042
|
* @relatedTo CngxTabGroupPresenter, CngxTabsFragmentSync, createTabRouterCommit, CngxTabNav, CngxTabLink
|
|
999
1043
|
*/
|
|
1000
1044
|
declare class CngxTabsRouteSync implements CngxTabsCommitActionSource, AfterContentInit {
|
|
@@ -1082,8 +1126,6 @@ declare class CngxTabsRouteSync implements CngxTabsCommitActionSource, AfterCont
|
|
|
1082
1126
|
* target *index*, so it needs the registry to resolve the matching
|
|
1083
1127
|
* {@link CngxTabHandle} before computing its route. `[cngxTabsRouteSync]`
|
|
1084
1128
|
* passes the host's `tabs` signal straight through.
|
|
1085
|
-
*
|
|
1086
|
-
* @category common/tabs
|
|
1087
1129
|
*/
|
|
1088
1130
|
interface CngxTabRouterCommitOptions {
|
|
1089
1131
|
readonly router: Router;
|
|
@@ -1123,9 +1165,8 @@ interface CngxTabRouterCommitOptions {
|
|
|
1123
1165
|
* late promise resolution lands on the closed subscriber and is
|
|
1124
1166
|
* dropped by RxJS itself.
|
|
1125
1167
|
*
|
|
1126
|
-
* @category common/tabs
|
|
1127
1168
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/router-commit.ts
|
|
1128
|
-
* @since 0.
|
|
1169
|
+
* @since 0.3.0
|
|
1129
1170
|
*/
|
|
1130
1171
|
declare function createTabRouterCommit(opts: CngxTabRouterCommitOptions): CngxTabsCommitAction;
|
|
1131
1172
|
|
|
@@ -1134,8 +1175,6 @@ declare function createTabRouterCommit(opts: CngxTabRouterCommitOptions): CngxTa
|
|
|
1134
1175
|
* default text (the tab label, or `unlabeledTab(position)`) inside the More popover; the
|
|
1135
1176
|
* surrounding `<li role="menuitem">` shell (`aria-disabled`, click
|
|
1136
1177
|
* handler, `data-tab-id`) stays library-owned.
|
|
1137
|
-
*
|
|
1138
|
-
* @category common/tabs/overflow
|
|
1139
1178
|
*/
|
|
1140
1179
|
interface CngxTabOverflowItemContext {
|
|
1141
1180
|
/** Convenience alias for `tab` - usable as `let-tab` shorthand. */
|
|
@@ -1168,10 +1207,9 @@ interface CngxTabOverflowItemContext {
|
|
|
1168
1207
|
* </cngx-tab-overflow>
|
|
1169
1208
|
* ```
|
|
1170
1209
|
*
|
|
1171
|
-
* @category common/tabs/overflow
|
|
1172
1210
|
* @wcag AA
|
|
1173
1211
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/tab-overflow-item.directive.ts
|
|
1174
|
-
* @since 0.
|
|
1212
|
+
* @since 0.3.0
|
|
1175
1213
|
* @relatedTo CngxTabOverflowTrigger, CngxTab
|
|
1176
1214
|
*/
|
|
1177
1215
|
declare class CngxTabOverflowItem {
|
|
@@ -1185,8 +1223,6 @@ declare class CngxTabOverflowItem {
|
|
|
1185
1223
|
* default `i18n.moreTabsLabel(count)` text on the More button; the
|
|
1186
1224
|
* surrounding `<button cngxPopoverTrigger>` shell (`aria-haspopup`,
|
|
1187
1225
|
* `aria-expanded`, click handler, hidden binding) stays library-owned.
|
|
1188
|
-
*
|
|
1189
|
-
* @category common/tabs/overflow
|
|
1190
1226
|
*/
|
|
1191
1227
|
interface CngxTabOverflowTriggerContext {
|
|
1192
1228
|
/** Convenience alias for `count` - usable as `let-count` shorthand. */
|
|
@@ -1210,10 +1246,9 @@ interface CngxTabOverflowTriggerContext {
|
|
|
1210
1246
|
* </cngx-tab-overflow>
|
|
1211
1247
|
* ```
|
|
1212
1248
|
*
|
|
1213
|
-
* @category common/tabs/overflow
|
|
1214
1249
|
* @wcag AA
|
|
1215
1250
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/tab-overflow-trigger.directive.ts
|
|
1216
|
-
* @since 0.
|
|
1251
|
+
* @since 0.3.0
|
|
1217
1252
|
* @relatedTo CngxTabOverflowItem, CngxTab
|
|
1218
1253
|
*/
|
|
1219
1254
|
declare class CngxTabOverflowTrigger {
|
|
@@ -1228,8 +1263,6 @@ declare class CngxTabOverflowTrigger {
|
|
|
1228
1263
|
* with `commitState.status() === 'pending'`); the visibility gate
|
|
1229
1264
|
* stays library-owned. `intendedIndex` is exposed so positional
|
|
1230
1265
|
* variants (progress bars, step counters) read the same source.
|
|
1231
|
-
*
|
|
1232
|
-
* @category common/tabs/slots
|
|
1233
1266
|
*/
|
|
1234
1267
|
interface CngxTabBusySpinnerContext {
|
|
1235
1268
|
/** The tab handle carrying id / label / disabled / aggregator signals. */
|
|
@@ -1250,12 +1283,11 @@ interface CngxTabBusySpinnerContext {
|
|
|
1250
1283
|
* </cngx-tab-group>
|
|
1251
1284
|
* ```
|
|
1252
1285
|
*
|
|
1253
|
-
* @category common/tabs/slots
|
|
1254
1286
|
* @wcag AA
|
|
1255
1287
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-busy-spinner.directive.ts
|
|
1256
|
-
* @since 0.
|
|
1288
|
+
* @since 0.3.0
|
|
1257
1289
|
* @relatedTo CngxTabErrorBadge, CngxTabRejectionIcon, CngxTab
|
|
1258
|
-
* <example-url
|
|
1290
|
+
* <example-url>/#/ui/tabs/tab-slot-overrides/custom-busy-spinner-via-code-cngxtabbusyspinner-code</example-url>
|
|
1259
1291
|
*/
|
|
1260
1292
|
declare class CngxTabBusySpinner {
|
|
1261
1293
|
readonly templateRef: TemplateRef<CngxTabBusySpinnerContext>;
|
|
@@ -1268,8 +1300,6 @@ declare class CngxTabBusySpinner {
|
|
|
1268
1300
|
* closable tab's close button (the button itself owns the
|
|
1269
1301
|
* `aria-label`); the template paints only the glyph, so it carries the
|
|
1270
1302
|
* tab handle in case the visual varies per tab.
|
|
1271
|
-
*
|
|
1272
|
-
* @category common/tabs/slots
|
|
1273
1303
|
*/
|
|
1274
1304
|
interface CngxTabCloseIconContext {
|
|
1275
1305
|
/** The tab handle whose close button this icon paints. */
|
|
@@ -1278,7 +1308,7 @@ interface CngxTabCloseIconContext {
|
|
|
1278
1308
|
/**
|
|
1279
1309
|
* Structural slot for a tab's close-button glyph. 3-stage cascade:
|
|
1280
1310
|
* per-instance directive > `CNGX_TABS_CONFIG.templates.closeIcon` >
|
|
1281
|
-
*
|
|
1311
|
+
* the default close icon.
|
|
1282
1312
|
*
|
|
1283
1313
|
* ```html
|
|
1284
1314
|
* <cngx-tab-group closable (tabClose)="remove($event.id)">
|
|
@@ -1287,12 +1317,11 @@ interface CngxTabCloseIconContext {
|
|
|
1287
1317
|
* </cngx-tab-group>
|
|
1288
1318
|
* ```
|
|
1289
1319
|
*
|
|
1290
|
-
* @category common/tabs/slots
|
|
1291
1320
|
* @wcag AA
|
|
1292
1321
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-close-icon.directive.ts
|
|
1293
|
-
* @since 0.
|
|
1322
|
+
* @since 0.3.0
|
|
1294
1323
|
* @relatedTo CngxTabAddIcon, CngxTabGroup
|
|
1295
|
-
* <example-url
|
|
1324
|
+
* <example-url>/#/ui/tabs/tab-dismissable/dismissable-and-addable</example-url>
|
|
1296
1325
|
*/
|
|
1297
1326
|
declare class CngxTabCloseIcon {
|
|
1298
1327
|
readonly templateRef: TemplateRef<CngxTabCloseIconContext>;
|
|
@@ -1305,8 +1334,6 @@ declare class CngxTabCloseIcon {
|
|
|
1305
1334
|
* the tab's folded `hasError()` is `true` - the direct `[error]` flag
|
|
1306
1335
|
* OR the aggregator's `shouldShow()`; the visibility gate stays
|
|
1307
1336
|
* library-owned. Sibling shape to `CngxStepBadgeContext`.
|
|
1308
|
-
*
|
|
1309
|
-
* @category common/tabs/slots
|
|
1310
1337
|
*/
|
|
1311
1338
|
interface CngxTabErrorBadgeContext {
|
|
1312
1339
|
/** The tab handle carrying id / label / disabled / aggregator signals. */
|
|
@@ -1316,7 +1343,7 @@ interface CngxTabErrorBadgeContext {
|
|
|
1316
1343
|
* Structural slot for the error-badge template. 3-stage cascade:
|
|
1317
1344
|
* per-instance directive >
|
|
1318
1345
|
* `CNGX_TABS_CONFIG.templates.errorBadge` >
|
|
1319
|
-
*
|
|
1346
|
+
* the default alert icon.
|
|
1320
1347
|
*
|
|
1321
1348
|
* ```html
|
|
1322
1349
|
* <cngx-tab-group>
|
|
@@ -1328,12 +1355,11 @@ interface CngxTabErrorBadgeContext {
|
|
|
1328
1355
|
* </cngx-tab-group>
|
|
1329
1356
|
* ```
|
|
1330
1357
|
*
|
|
1331
|
-
* @category common/tabs/slots
|
|
1332
1358
|
* @wcag AA
|
|
1333
1359
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-error-badge.directive.ts
|
|
1334
|
-
* @since 0.
|
|
1360
|
+
* @since 0.3.0
|
|
1335
1361
|
* @relatedTo CngxTabRejectionIcon, CngxTabBusySpinner, CngxTab
|
|
1336
|
-
* <example-url
|
|
1362
|
+
* <example-url>/#/ui/tabs/tab-slot-overrides/custom-error-badge-via-code-cngxtaberrorbadge-code</example-url>
|
|
1337
1363
|
*/
|
|
1338
1364
|
declare class CngxTabErrorBadge {
|
|
1339
1365
|
readonly templateRef: TemplateRef<CngxTabErrorBadgeContext>;
|
|
@@ -1350,8 +1376,6 @@ declare class CngxTabErrorBadge {
|
|
|
1350
1376
|
*
|
|
1351
1377
|
* Richer than {@link CngxTabErrorBadgeContext} (which only needs `tab`) because an
|
|
1352
1378
|
* icon commonly swaps glyph on the active tab.
|
|
1353
|
-
*
|
|
1354
|
-
* @category common/tabs/slots
|
|
1355
1379
|
*/
|
|
1356
1380
|
interface CngxTabIconContext {
|
|
1357
1381
|
/** The tab handle carrying id / label / disabled / aggregator signals. */
|
|
@@ -1373,16 +1397,15 @@ interface CngxTabIconContext {
|
|
|
1373
1397
|
* </ng-template>
|
|
1374
1398
|
* ```
|
|
1375
1399
|
*
|
|
1376
|
-
* @category common/tabs/slots
|
|
1377
1400
|
* @wcag AA
|
|
1378
1401
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-icon.directive.ts
|
|
1379
|
-
* @since 0.
|
|
1402
|
+
* @since 0.3.0
|
|
1380
1403
|
* @relatedTo CngxTabErrorBadge, CngxTab, CngxTabGroup
|
|
1381
|
-
* <example-url
|
|
1382
|
-
* <example-url
|
|
1383
|
-
* <example-url
|
|
1384
|
-
* <example-url
|
|
1385
|
-
* <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>
|
|
1386
1409
|
*/
|
|
1387
1410
|
declare class CngxTabIcon {
|
|
1388
1411
|
readonly templateRef: TemplateRef<CngxTabIconContext>;
|
|
@@ -1401,8 +1424,6 @@ declare class CngxTabIcon {
|
|
|
1401
1424
|
* `reason` tells the two commit outcomes apart: `'refused'` when the
|
|
1402
1425
|
* commit action answered `false`, `'failed'` when it threw, rejected or
|
|
1403
1426
|
* errored. Both render the slot; pick a glyph or copy per reason.
|
|
1404
|
-
*
|
|
1405
|
-
* @category common/tabs/slots
|
|
1406
1427
|
*/
|
|
1407
1428
|
interface CngxTabRejectionIconContext {
|
|
1408
1429
|
/** Flat-index of the rejected tab (`presenter.lastFailedIndex()`). */
|
|
@@ -1416,8 +1437,8 @@ interface CngxTabRejectionIconContext {
|
|
|
1416
1437
|
* Structural slot for the rejection-decoration template. 3-stage
|
|
1417
1438
|
* cascade: per-instance directive >
|
|
1418
1439
|
* `CNGX_TABS_CONFIG.templates.rejectionIcon` >
|
|
1419
|
-
*
|
|
1420
|
-
*
|
|
1440
|
+
* the default alert icon (a failed commit) or ban icon (a refused
|
|
1441
|
+
* one).
|
|
1421
1442
|
*
|
|
1422
1443
|
* ```html
|
|
1423
1444
|
* <cngx-tab-group>
|
|
@@ -1434,12 +1455,11 @@ interface CngxTabRejectionIconContext {
|
|
|
1434
1455
|
* </cngx-tab-group>
|
|
1435
1456
|
* ```
|
|
1436
1457
|
*
|
|
1437
|
-
* @category common/tabs/slots
|
|
1438
1458
|
* @wcag AA
|
|
1439
1459
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-rejection-icon.directive.ts
|
|
1440
|
-
* @since 0.
|
|
1460
|
+
* @since 0.3.0
|
|
1441
1461
|
* @relatedTo CngxTabErrorBadge, CngxTabBusySpinner, CngxTab
|
|
1442
|
-
* <example-url
|
|
1462
|
+
* <example-url>/#/ui/tabs/tab-slot-overrides/rejection-decoration-via-code-cngxtabrejectionicon-code</example-url>
|
|
1443
1463
|
*/
|
|
1444
1464
|
declare class CngxTabRejectionIcon {
|
|
1445
1465
|
readonly templateRef: TemplateRef<CngxTabRejectionIconContext>;
|
|
@@ -1447,32 +1467,10 @@ declare class CngxTabRejectionIcon {
|
|
|
1447
1467
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CngxTabRejectionIcon, "ng-template[cngxTabRejectionIcon]", ["cngxTabRejectionIcon"], {}, {}, never, never, true, never>;
|
|
1448
1468
|
}
|
|
1449
1469
|
|
|
1450
|
-
/**
|
|
1451
|
-
* Aria-label overrides for the tab-group landmark region. \
|
|
1452
|
-
* Library defaults are English; consumers override via
|
|
1453
|
-
* {@link withTabsAriaLabels}.
|
|
1454
|
-
*
|
|
1455
|
-
* Per-tab nav phrasing (`previousTab`, `nextTab`) lives in
|
|
1456
|
-
* {@link CngxTabsI18n}, not here - landmark naming and SR phrasing
|
|
1457
|
-
* stay on separate override paths.
|
|
1458
|
-
*
|
|
1459
|
-
* @category common/tabs
|
|
1460
|
-
*/
|
|
1461
|
-
interface CngxTabsAriaLabels {
|
|
1462
|
-
/**
|
|
1463
|
-
* Accessible name for the tab-group wrapper (`role="group"`), read by
|
|
1464
|
-
* AT when focus enters the region. Default `'Tabs'`. Ignored when a
|
|
1465
|
-
* per-instance `[aria-label]` / `[aria-labelledby]` is bound (those
|
|
1466
|
-
* win).
|
|
1467
|
-
*/
|
|
1468
|
-
readonly tabsRegion?: string;
|
|
1469
|
-
}
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Fallback labels for derived strings (role descriptions, badge SR
|
|
1472
1472
|
* announcements). Library defaults are English; consumers override
|
|
1473
1473
|
* per locale.
|
|
1474
|
-
*
|
|
1475
|
-
* @category common/tabs
|
|
1476
1474
|
*/
|
|
1477
1475
|
interface CngxTabsFallbackLabels {
|
|
1478
1476
|
/**
|
|
@@ -1494,8 +1492,6 @@ interface CngxTabsFallbackLabels {
|
|
|
1494
1492
|
* Apply via the matching `with*Template` builders. Shape mirrors
|
|
1495
1493
|
* `CngxStepperTemplates` so consumer templates port across
|
|
1496
1494
|
* families.
|
|
1497
|
-
*
|
|
1498
|
-
* @category common/tabs
|
|
1499
1495
|
*/
|
|
1500
1496
|
interface CngxTabsTemplates {
|
|
1501
1497
|
/** Default for the overflow "More" button label (`*cngxTabOverflowTrigger`). */
|
|
@@ -1529,8 +1525,6 @@ interface CngxTabsTemplates {
|
|
|
1529
1525
|
*
|
|
1530
1526
|
* Sized to the tab use cases - not a 1:1 copy of the stepper's
|
|
1531
1527
|
* seven skins. The Material twin (`[cngxMatTabs]`) ignores this setting.
|
|
1532
|
-
*
|
|
1533
|
-
* @category common/tabs
|
|
1534
1528
|
*/
|
|
1535
1529
|
type CngxTabsSkin = 'line' | 'contained' | 'segmented' | 'pill' | 'pill-outline';
|
|
1536
1530
|
/**
|
|
@@ -1544,8 +1538,6 @@ type CngxTabsSkin = 'line' | 'contained' | 'segmented' | 'pill' | 'pill-outline'
|
|
|
1544
1538
|
*
|
|
1545
1539
|
* Redirected purely via
|
|
1546
1540
|
* the `[data-icon-layout]` host attribute.
|
|
1547
|
-
*
|
|
1548
|
-
* @category common/tabs
|
|
1549
1541
|
*/
|
|
1550
1542
|
type CngxTabIconLayout = 'start' | 'end' | 'top' | 'only';
|
|
1551
1543
|
/**
|
|
@@ -1563,8 +1555,6 @@ type CngxTabIconLayout = 'start' | 'end' | 'top' | 'only';
|
|
|
1563
1555
|
* is never activated on the way. Without that ordering the first render
|
|
1564
1556
|
* would count as tab 0's first activation and keep-alive would hold its
|
|
1565
1557
|
* content for the rest of the session.
|
|
1566
|
-
*
|
|
1567
|
-
* @category common/tabs
|
|
1568
1558
|
*/
|
|
1569
1559
|
type CngxTabsPanelMode = 'eager' | 'lazy' | 'lazy-destroy';
|
|
1570
1560
|
/**
|
|
@@ -1573,16 +1563,12 @@ type CngxTabsPanelMode = 'eager' | 'lazy' | 'lazy-destroy';
|
|
|
1573
1563
|
* (default), `'center'`, or `'end'`. Horizontal only - ignored under
|
|
1574
1564
|
* `orientation="vertical"` (tabs fill the column) and when `[fitted]`
|
|
1575
1565
|
* stretches them to the full width.
|
|
1576
|
-
*
|
|
1577
|
-
* @category common/tabs
|
|
1578
1566
|
*/
|
|
1579
1567
|
type CngxTabAlign = 'start' | 'center' | 'end';
|
|
1580
1568
|
/**
|
|
1581
1569
|
* Tab-group config surface. Resolution priority: \
|
|
1582
1570
|
* per-instance Input → `provideTabsConfigAt` (viewProviders) → `provideTabsConfig`
|
|
1583
1571
|
* (root) → library default.
|
|
1584
|
-
*
|
|
1585
|
-
* @category common/tabs
|
|
1586
1572
|
*/
|
|
1587
1573
|
interface CngxTabsConfig {
|
|
1588
1574
|
/**
|
|
@@ -1690,8 +1676,6 @@ interface CngxTabsConfig {
|
|
|
1690
1676
|
* {@link withTabsAddable}.
|
|
1691
1677
|
*/
|
|
1692
1678
|
readonly addable?: boolean;
|
|
1693
|
-
/** Landmark labels; a `Signal` switches the language at runtime. */
|
|
1694
|
-
readonly ariaLabels?: CngxTabsAriaLabels | Signal<CngxTabsAriaLabels>;
|
|
1695
1679
|
/** Role descriptions; a `Signal` switches the language at runtime. */
|
|
1696
1680
|
readonly fallbackLabels?: CngxTabsFallbackLabels | Signal<CngxTabsFallbackLabels>;
|
|
1697
1681
|
/**
|
|
@@ -1720,10 +1704,9 @@ interface CngxTabsConfig {
|
|
|
1720
1704
|
* `providedIn: 'root'` with the library defaults; override via {@link provideTabsConfig}
|
|
1721
1705
|
* (root) or {@link provideTabsConfigAt} (component scope).
|
|
1722
1706
|
*
|
|
1723
|
-
* @category common/tabs
|
|
1724
1707
|
* @wcag AA
|
|
1725
1708
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/tabs-config.ts
|
|
1726
|
-
* @since 0.
|
|
1709
|
+
* @since 0.3.0
|
|
1727
1710
|
*/
|
|
1728
1711
|
declare const CNGX_TABS_CONFIG: InjectionToken<CngxTabsConfig>;
|
|
1729
1712
|
/**
|
|
@@ -1731,8 +1714,6 @@ declare const CNGX_TABS_CONFIG: InjectionToken<CngxTabsConfig>;
|
|
|
1731
1714
|
* The hidden `_target` discriminator lets {@link provideCngxTabs} dispatch
|
|
1732
1715
|
* config features to {@link provideTabsConfig} while i18n features
|
|
1733
1716
|
* route to {@link provideTabsI18n}.
|
|
1734
|
-
*
|
|
1735
|
-
* @category common/tabs
|
|
1736
1717
|
*/
|
|
1737
1718
|
type CngxTabsConfigFeature = ((config: CngxTabsConfig) => CngxTabsConfig) & {
|
|
1738
1719
|
readonly _target: 'config';
|
|
@@ -1740,8 +1721,6 @@ type CngxTabsConfigFeature = ((config: CngxTabsConfig) => CngxTabsConfig) & {
|
|
|
1740
1721
|
/**
|
|
1741
1722
|
* Override the default orientation. Per-instance `[orientation]`
|
|
1742
1723
|
* still wins; this changes the cascade default only.
|
|
1743
|
-
*
|
|
1744
|
-
* @category common/tabs
|
|
1745
1724
|
*/
|
|
1746
1725
|
declare function withTabsDefaultOrientation(orientation: 'horizontal' | 'vertical'): CngxTabsConfigFeature;
|
|
1747
1726
|
/**
|
|
@@ -1749,15 +1728,11 @@ declare function withTabsDefaultOrientation(orientation: 'horizontal' | 'vertica
|
|
|
1749
1728
|
* collides with the stepper family's identical symbol when both libs
|
|
1750
1729
|
* are auto-imported. The alias stays for one minor release before
|
|
1751
1730
|
* removal.
|
|
1752
|
-
*
|
|
1753
|
-
* @category common/tabs
|
|
1754
1731
|
*/
|
|
1755
1732
|
declare const withDefaultOrientation: typeof withTabsDefaultOrientation;
|
|
1756
1733
|
/**
|
|
1757
1734
|
* Override whether roving-tabindex navigation loops from last back to
|
|
1758
1735
|
* first (and vice versa). Per-instance `[loop]` Input still wins.
|
|
1759
|
-
*
|
|
1760
|
-
* @category common/tabs
|
|
1761
1736
|
*/
|
|
1762
1737
|
declare function withTabsRovingLoop(loop: boolean): CngxTabsConfigFeature;
|
|
1763
1738
|
/**
|
|
@@ -1765,8 +1740,6 @@ declare function withTabsRovingLoop(loop: boolean): CngxTabsConfigFeature;
|
|
|
1765
1740
|
* `'optimistic'` activates the tab on action dispatch and rolls back
|
|
1766
1741
|
* on error; `'pessimistic'` waits for success. Per-instance
|
|
1767
1742
|
* `[commitMode]` Input still wins.
|
|
1768
|
-
*
|
|
1769
|
-
* @category common/tabs
|
|
1770
1743
|
*/
|
|
1771
1744
|
declare function withTabsCommitMode(mode: 'optimistic' | 'pessimistic'): CngxTabsConfigFeature;
|
|
1772
1745
|
/**
|
|
@@ -1777,8 +1750,6 @@ declare function withTabsCommitMode(mode: 'optimistic' | 'pessimistic'): CngxTab
|
|
|
1777
1750
|
*
|
|
1778
1751
|
* Not to be confused with `[cngxTabsRouteSync]`, the router-outlet
|
|
1779
1752
|
* integration - this feature configures fragment deep-linking only.
|
|
1780
|
-
*
|
|
1781
|
-
* @category common/tabs
|
|
1782
1753
|
*/
|
|
1783
1754
|
declare function withTabsFragmentSync(mode: 'fragment' | 'queryParam', param?: string): CngxTabsConfigFeature;
|
|
1784
1755
|
/**
|
|
@@ -1793,8 +1764,6 @@ declare function withTabsFragmentSync(mode: 'fragment' | 'queryParam', param?: s
|
|
|
1793
1764
|
*
|
|
1794
1765
|
* Changes which policy runs, not the policies themselves - swap those via
|
|
1795
1766
|
* {@link CNGX_TAB_URL_MATCH_STRATEGY}.
|
|
1796
|
-
*
|
|
1797
|
-
* @category common/tabs
|
|
1798
1767
|
*/
|
|
1799
1768
|
declare function withTabsRouteMatch(mode: 'suffix' | 'prefix'): CngxTabsConfigFeature;
|
|
1800
1769
|
/**
|
|
@@ -1807,8 +1776,6 @@ declare function withTabsRouteMatch(mode: 'suffix' | 'prefix'): CngxTabsConfigFe
|
|
|
1807
1776
|
* `provideTabsConfigAt` in that component's `viewProviders` rather than
|
|
1808
1777
|
* setting it app-wide, unless every nav in the app is section-shaped.
|
|
1809
1778
|
* Per-link `[ariaCurrent]` still wins.
|
|
1810
|
-
*
|
|
1811
|
-
* @category common/tabs
|
|
1812
1779
|
*/
|
|
1813
1780
|
declare function withTabsLinkAriaCurrent(token: 'page' | 'true' | 'location' | 'step'): CngxTabsConfigFeature;
|
|
1814
1781
|
/**
|
|
@@ -1816,8 +1783,6 @@ declare function withTabsLinkAriaCurrent(token: 'page' | 'true' | 'location' | '
|
|
|
1816
1783
|
* with the new `[cngxTabsRouteSync]` router-outlet directive; this
|
|
1817
1784
|
* feature only ever configured fragment / query-param deep-linking. The
|
|
1818
1785
|
* alias stays for one minor release before removal.
|
|
1819
|
-
*
|
|
1820
|
-
* @category common/tabs
|
|
1821
1786
|
*/
|
|
1822
1787
|
declare const withTabsRouterSync: typeof withTabsFragmentSync;
|
|
1823
1788
|
/**
|
|
@@ -1826,8 +1791,6 @@ declare const withTabsRouterSync: typeof withTabsFragmentSync;
|
|
|
1826
1791
|
* the cascade default. Structure, slots, ARIA, and keyboard behaviour
|
|
1827
1792
|
* are identical across skins - only the `[data-skin]` host attribute
|
|
1828
1793
|
* changes the CSS layer. The Material twin (`[cngxMatTabs]`) ignores it.
|
|
1829
|
-
*
|
|
1830
|
-
* @category common/tabs
|
|
1831
1794
|
*/
|
|
1832
1795
|
declare function withTabsSkin(skin: CngxTabsSkin): CngxTabsConfigFeature;
|
|
1833
1796
|
/**
|
|
@@ -1835,8 +1798,6 @@ declare function withTabsSkin(skin: CngxTabsSkin): CngxTabsConfigFeature;
|
|
|
1835
1798
|
* Default`'start'`. Per-instance `[iconLayout]` Input still wins. Orthogonal to
|
|
1836
1799
|
* skin and orientation - only the `[data-icon-layout]` host attribute
|
|
1837
1800
|
* changes.
|
|
1838
|
-
*
|
|
1839
|
-
* @category common/tabs
|
|
1840
1801
|
*/
|
|
1841
1802
|
declare function withTabsIconLayout(layout: CngxTabIconLayout): CngxTabsConfigFeature;
|
|
1842
1803
|
/**
|
|
@@ -1849,8 +1810,6 @@ declare function withTabsIconLayout(layout: CngxTabIconLayout): CngxTabsConfigFe
|
|
|
1849
1810
|
*
|
|
1850
1811
|
* Under `'lazy'`, a deep link mounts only the panel it names: both sync
|
|
1851
1812
|
* directives seed the active tab before the first panel render.
|
|
1852
|
-
*
|
|
1853
|
-
* @category common/tabs
|
|
1854
1813
|
*/
|
|
1855
1814
|
declare function withTabsPanelMode(mode: CngxTabsPanelMode): CngxTabsConfigFeature;
|
|
1856
1815
|
/**
|
|
@@ -1858,62 +1817,40 @@ declare function withTabsPanelMode(mode: CngxTabsPanelMode): CngxTabsConfigFeatu
|
|
|
1858
1817
|
* (horizontal only). \
|
|
1859
1818
|
* Default `false`. Per-instance `[fitted]` Input still
|
|
1860
1819
|
* wins. No effect under `orientation="vertical"`.
|
|
1861
|
-
*
|
|
1862
|
-
* @category common/tabs
|
|
1863
1820
|
*/
|
|
1864
1821
|
declare function withTabsFitted(fitted: boolean): CngxTabsConfigFeature;
|
|
1865
1822
|
/**
|
|
1866
1823
|
* Set the app-wide default tab-cluster alignment (horizontal only). \
|
|
1867
1824
|
* Default `'start'`. Per-instance `[tabAlign]` Input still wins. Ignored
|
|
1868
1825
|
* under `orientation="vertical"` and when the group is `fitted`.
|
|
1869
|
-
*
|
|
1870
|
-
* @category common/tabs
|
|
1871
1826
|
*/
|
|
1872
1827
|
declare function withTabsAlign(align: CngxTabAlign): CngxTabsConfigFeature;
|
|
1873
1828
|
/**
|
|
1874
1829
|
* Set the app-wide default for whether tabs render a close affordance. \
|
|
1875
1830
|
* Default `false`. Per-instance `[closable]` Input wins; a per-`CngxTab`
|
|
1876
1831
|
* `[closable]` override wins over both.
|
|
1877
|
-
*
|
|
1878
|
-
* @category common/tabs
|
|
1879
1832
|
*/
|
|
1880
1833
|
declare function withTabsClosable(closable: boolean): CngxTabsConfigFeature;
|
|
1881
1834
|
/**
|
|
1882
1835
|
* Set the app-wide default for whether the group renders an add-tab
|
|
1883
1836
|
* button. \
|
|
1884
1837
|
* Default `false`. Per-instance `[addable]` Input wins.
|
|
1885
|
-
*
|
|
1886
|
-
* @category common/tabs
|
|
1887
1838
|
*/
|
|
1888
1839
|
declare function withTabsAddable(addable: boolean): CngxTabsConfigFeature;
|
|
1889
|
-
/**
|
|
1890
|
-
* Merge ARIA labels into the cascade. Keys not provided keep their
|
|
1891
|
-
* library defaults; per-instance overrides on the tab group still win.
|
|
1892
|
-
* Pass a `Signal` to switch the language at runtime.
|
|
1893
|
-
*
|
|
1894
|
-
* @category common/tabs
|
|
1895
|
-
*/
|
|
1896
|
-
declare function withTabsAriaLabels(labels: CngxTabsAriaLabels | Signal<CngxTabsAriaLabels>): CngxTabsConfigFeature;
|
|
1897
1840
|
/**
|
|
1898
1841
|
* Merge the tablist / tab-panel `aria-roledescription` fallbacks into the
|
|
1899
1842
|
* cascade. Keys not provided keep their library defaults. Pass a `Signal`
|
|
1900
1843
|
* to switch the language at runtime.
|
|
1901
|
-
*
|
|
1902
|
-
* @category common/tabs
|
|
1903
1844
|
*/
|
|
1904
1845
|
declare function withTabsFallbackLabels(labels: CngxTabsFallbackLabels | Signal<CngxTabsFallbackLabels>): CngxTabsConfigFeature;
|
|
1905
1846
|
/**
|
|
1906
1847
|
* Override the IO-debounce window (ms). See
|
|
1907
1848
|
* {@link CngxTabsConfig.overflowStabilizeMs}.
|
|
1908
|
-
*
|
|
1909
|
-
* @category common/tabs
|
|
1910
1849
|
*/
|
|
1911
1850
|
declare function withTabOverflowStabilizeMs(ms: number): CngxTabsConfigFeature;
|
|
1912
1851
|
/**
|
|
1913
1852
|
* Override the worst-case staleness ceiling on the visibility-map
|
|
1914
1853
|
* commit. See {@link CngxTabsConfig.overflowMaxDeferMs}.
|
|
1915
|
-
*
|
|
1916
|
-
* @category common/tabs
|
|
1917
1854
|
*/
|
|
1918
1855
|
declare function withTabOverflowMaxDeferMs(ms: number): CngxTabsConfigFeature;
|
|
1919
1856
|
/**
|
|
@@ -1928,23 +1865,17 @@ declare function withTabOverflowMaxDeferMs(ms: number): CngxTabsConfigFeature;
|
|
|
1928
1865
|
*
|
|
1929
1866
|
* providers: [provideTabsConfig(withTabOverflowTriggerTemplate(this.moreTrigger()))]
|
|
1930
1867
|
* ```
|
|
1931
|
-
*
|
|
1932
|
-
* @category common/tabs
|
|
1933
1868
|
*/
|
|
1934
1869
|
declare function withTabOverflowTriggerTemplate(template: TemplateRef<CngxTabOverflowTriggerContext>): CngxTabsConfigFeature;
|
|
1935
1870
|
/**
|
|
1936
1871
|
* App-wide override for each row inside the overflow popover. \
|
|
1937
1872
|
* Middle tier; per-instance `*cngxTabOverflowItem` still wins.
|
|
1938
|
-
*
|
|
1939
|
-
* @category common/tabs
|
|
1940
1873
|
*/
|
|
1941
1874
|
declare function withTabOverflowItemTemplate(template: TemplateRef<CngxTabOverflowItemContext>): CngxTabsConfigFeature;
|
|
1942
1875
|
/**
|
|
1943
1876
|
* App-wide override for the error-badge decoration. Middle tier;
|
|
1944
1877
|
* per-instance `*cngxTabErrorBadge` still wins. Sibling of the
|
|
1945
1878
|
* stepper family's `withStepBadgeTemplate`.
|
|
1946
|
-
*
|
|
1947
|
-
* @category common/tabs
|
|
1948
1879
|
*/
|
|
1949
1880
|
declare function withTabErrorBadgeTemplate(template: TemplateRef<CngxTabErrorBadgeContext>): CngxTabsConfigFeature;
|
|
1950
1881
|
/**
|
|
@@ -1952,46 +1883,34 @@ declare function withTabErrorBadgeTemplate(template: TemplateRef<CngxTabErrorBad
|
|
|
1952
1883
|
* tier; \
|
|
1953
1884
|
* per-instance `*cngxTabRejectionIcon` still wins. Sibling
|
|
1954
1885
|
* of {@link withStepRejectionTemplate}.
|
|
1955
|
-
*
|
|
1956
|
-
* @category common/tabs
|
|
1957
1886
|
*/
|
|
1958
1887
|
declare function withTabRejectionIconTemplate(template: TemplateRef<CngxTabRejectionIconContext>): CngxTabsConfigFeature;
|
|
1959
1888
|
/**
|
|
1960
1889
|
* App-wide override for the commit-pending busy-spinner overlay.
|
|
1961
1890
|
* Middle tier; per-instance `*cngxTabBusySpinner` still wins.
|
|
1962
1891
|
* Sibling of {@link withStepBusySpinnerTemplate}.
|
|
1963
|
-
*
|
|
1964
|
-
* @category common/tabs
|
|
1965
1892
|
*/
|
|
1966
1893
|
declare function withTabBusySpinnerTemplate(template: TemplateRef<CngxTabBusySpinnerContext>): CngxTabsConfigFeature;
|
|
1967
1894
|
/**
|
|
1968
1895
|
* App-wide override for the tab-icon slot. Middle tier of the 3-stage
|
|
1969
1896
|
* cascade; per-instance `*cngxTabIcon` still wins. Sibling of
|
|
1970
1897
|
* {@link withStepIndicatorTemplate}.
|
|
1971
|
-
*
|
|
1972
|
-
* @category common/tabs
|
|
1973
1898
|
*/
|
|
1974
1899
|
declare function withTabIconTemplate(template: TemplateRef<CngxTabIconContext>): CngxTabsConfigFeature;
|
|
1975
1900
|
/**
|
|
1976
1901
|
* App-wide override for a tab's close-button glyph. Middle tier;
|
|
1977
1902
|
* per-instance `*cngxTabCloseIcon` still wins.
|
|
1978
|
-
*
|
|
1979
|
-
* @category common/tabs
|
|
1980
1903
|
*/
|
|
1981
1904
|
declare function withTabCloseIconTemplate(template: TemplateRef<CngxTabCloseIconContext>): CngxTabsConfigFeature;
|
|
1982
1905
|
/**
|
|
1983
1906
|
* App-wide override for the add-tab button glyph. Middle tier;
|
|
1984
1907
|
* per-instance `*cngxTabAddIcon` still wins.
|
|
1985
|
-
*
|
|
1986
|
-
* @category common/tabs
|
|
1987
1908
|
*/
|
|
1988
1909
|
declare function withTabAddIconTemplate(template: TemplateRef<void>): CngxTabsConfigFeature;
|
|
1989
1910
|
/**
|
|
1990
1911
|
* Root-level provider. Apply once in `bootstrapApplication` /
|
|
1991
1912
|
* `appConfig.providers`. Returns {@link EnvironmentProviders} per
|
|
1992
1913
|
* the canonical cngx config-cascade signature.
|
|
1993
|
-
*
|
|
1994
|
-
* @category common/tabs
|
|
1995
1914
|
*/
|
|
1996
1915
|
declare function provideTabsConfig(...features: readonly CngxTabsConfigFeature[]): EnvironmentProviders;
|
|
1997
1916
|
/**
|
|
@@ -2005,14 +1924,10 @@ declare function provideTabsConfig(...features: readonly CngxTabsConfigFeature[]
|
|
|
2005
1924
|
* viewProviders: [...provideTabsConfigAt(withTabsDefaultOrientation('vertical'))],
|
|
2006
1925
|
* })
|
|
2007
1926
|
* ```
|
|
2008
|
-
*
|
|
2009
|
-
* @category common/tabs
|
|
2010
1927
|
*/
|
|
2011
1928
|
declare function provideTabsConfigAt(...features: readonly CngxTabsConfigFeature[]): Provider[];
|
|
2012
1929
|
/**
|
|
2013
1930
|
* Inject the resolved tabs config in an injection context.
|
|
2014
|
-
*
|
|
2015
|
-
* @category common/tabs
|
|
2016
1931
|
*/
|
|
2017
1932
|
declare function injectTabsConfig(): CngxTabsConfig;
|
|
2018
1933
|
|
|
@@ -2065,17 +1980,14 @@ declare function createTabsHostAttrs(inputs: CngxTabsHostAttrsInputs): CngxTabsH
|
|
|
2065
1980
|
* The tabs section of a {@link CngxLanguagePack}: the copy of
|
|
2066
1981
|
* `@cngx/common/tabs` and of the tab organisms in `@cngx/ui/tabs` and
|
|
2067
1982
|
* `@cngx/ui/mat-tabs`. It feeds `CNGX_TABS_I18N` and the copy keys of
|
|
2068
|
-
* `CNGX_TABS_CONFIG` (`
|
|
1983
|
+
* `CNGX_TABS_CONFIG` (`fallbackLabels`). Messages use `{name}`
|
|
2069
1984
|
* placeholders; a plural message picks its form from `{count}`.
|
|
2070
1985
|
*
|
|
2071
|
-
* @
|
|
2072
|
-
* @since 0.1.0
|
|
1986
|
+
* @since 0.3.0
|
|
2073
1987
|
* @relatedTo CNGX_TABS_I18N, CNGX_TABS_CONFIG
|
|
2074
1988
|
*/
|
|
2075
1989
|
interface CngxTabsLanguageSection {
|
|
2076
|
-
/** Accessible name of the tab
|
|
2077
|
-
readonly tabsRegion: string;
|
|
2078
|
-
/** Last-tier tab-group label, used when `tabsRegion` is unset. */
|
|
1990
|
+
/** Accessible name of the tab group. */
|
|
2079
1991
|
readonly tabsLabel: string;
|
|
2080
1992
|
/** `aria-roledescription` of the tablist. */
|
|
2081
1993
|
readonly tabRoleDescription: string;
|
|
@@ -2134,8 +2046,7 @@ interface CngxTabsLanguageSection {
|
|
|
2134
2046
|
* The English tabs section: the single source of the tabs' English copy.
|
|
2135
2047
|
* `CNGX_TABS_I18N` and the `CNGX_TABS_CONFIG` labels default to it.
|
|
2136
2048
|
*
|
|
2137
|
-
* @
|
|
2138
|
-
* @since 0.1.0
|
|
2049
|
+
* @since 0.3.0
|
|
2139
2050
|
* @relatedTo CNGX_TABS_I18N, CNGX_TABS_CONFIG
|
|
2140
2051
|
*/
|
|
2141
2052
|
declare const CNGX_TABS_LANGUAGE_EN: CngxTabsLanguageSection;
|
|
@@ -2149,14 +2060,11 @@ declare module '@cngx/core/i18n' {
|
|
|
2149
2060
|
* Tabs i18n surface. Library defaults are English; consumers
|
|
2150
2061
|
* override via {@link provideTabsI18n}. Sibling to
|
|
2151
2062
|
* `CNGX_STEPPER_I18N` and `CNGX_CHART_I18N`.
|
|
2152
|
-
*
|
|
2153
|
-
* @category common/tabs/i18n
|
|
2154
2063
|
*/
|
|
2155
2064
|
interface CngxTabsI18n {
|
|
2156
2065
|
/**
|
|
2157
|
-
*
|
|
2158
|
-
* `
|
|
2159
|
-
* 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.
|
|
2160
2068
|
*/
|
|
2161
2069
|
readonly tabsLabel: string;
|
|
2162
2070
|
readonly selectedTab: (label: string, position: number, count: number) => string;
|
|
@@ -2244,10 +2152,9 @@ interface CngxTabsI18n {
|
|
|
2244
2152
|
* for the app locale. Provide it through {@link provideTabsI18n}; a
|
|
2245
2153
|
* `{ provide, useValue }` entry must supply a `Signal<CngxTabsI18n>`.
|
|
2246
2154
|
*
|
|
2247
|
-
* @category common/tabs/i18n
|
|
2248
2155
|
* @wcag AA
|
|
2249
2156
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/i18n/tabs-i18n.ts
|
|
2250
|
-
* @since 0.
|
|
2157
|
+
* @since 0.3.0
|
|
2251
2158
|
*/
|
|
2252
2159
|
declare const CNGX_TABS_I18N: InjectionToken<Signal<CngxTabsI18n>>;
|
|
2253
2160
|
/**
|
|
@@ -2255,19 +2162,16 @@ declare const CNGX_TABS_I18N: InjectionToken<Signal<CngxTabsI18n>>;
|
|
|
2255
2162
|
* {@link provideCngxTabs}. The hidden `_target` discriminator routes
|
|
2256
2163
|
* i18n features to `provideTabsI18n` and config features to
|
|
2257
2164
|
* `provideTabsConfig` from the unified aggregator.
|
|
2258
|
-
*
|
|
2259
|
-
* @category common/tabs/i18n
|
|
2260
2165
|
*/
|
|
2261
2166
|
type CngxTabsI18nFeature = ((bundle: Signal<CngxTabsI18n>) => Signal<CngxTabsI18n>) & {
|
|
2262
2167
|
readonly _target: 'i18n';
|
|
2263
2168
|
};
|
|
2264
2169
|
/**
|
|
2265
2170
|
* Override i18n labels via a partial bundle - unset keys keep the
|
|
2266
|
-
* language pack's copy, or the English default. Same shape as
|
|
2267
|
-
* `withTabsFallbackLabels
|
|
2268
|
-
*
|
|
2269
|
-
*
|
|
2270
|
-
* @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.
|
|
2271
2175
|
*/
|
|
2272
2176
|
declare function withTabsI18nLabels(overrides: Partial<CngxTabsI18n> | Signal<Partial<CngxTabsI18n>>): CngxTabsI18nFeature;
|
|
2273
2177
|
/**
|
|
@@ -2284,15 +2188,11 @@ declare function withTabsI18nLabels(overrides: Partial<CngxTabsI18n> | Signal<Pa
|
|
|
2284
2188
|
* ],
|
|
2285
2189
|
* });
|
|
2286
2190
|
* ```
|
|
2287
|
-
*
|
|
2288
|
-
* @category common/tabs/i18n
|
|
2289
2191
|
*/
|
|
2290
2192
|
declare function provideTabsI18n(...features: readonly CngxTabsI18nFeature[]): Provider;
|
|
2291
2193
|
/**
|
|
2292
2194
|
* Inject the resolved tabs i18n bundle. Read it inside a `computed()`,
|
|
2293
2195
|
* template or handler so a language switch reaches the label.
|
|
2294
|
-
*
|
|
2295
|
-
* @category common/tabs/i18n
|
|
2296
2196
|
*/
|
|
2297
2197
|
declare function injectTabsI18n(): Signal<CngxTabsI18n>;
|
|
2298
2198
|
|
|
@@ -2300,8 +2200,6 @@ declare function injectTabsI18n(): Signal<CngxTabsI18n>;
|
|
|
2300
2200
|
* Union of feature kinds the tabs aggregator accepts. \
|
|
2301
2201
|
* Today: config and i18n; future surfaces widen the union and dispatch via the
|
|
2302
2202
|
* hidden `_target` discriminator.
|
|
2303
|
-
*
|
|
2304
|
-
* @category common/tabs
|
|
2305
2203
|
*/
|
|
2306
2204
|
type CngxTabsFeature = CngxTabsConfigFeature | CngxTabsI18nFeature;
|
|
2307
2205
|
/**
|
|
@@ -2320,7 +2218,6 @@ type CngxTabsFeature = CngxTabsConfigFeature | CngxTabsI18nFeature;
|
|
|
2320
2218
|
* providers: [
|
|
2321
2219
|
* provideCngxTabs(
|
|
2322
2220
|
* withTabsDefaultOrientation('vertical'),
|
|
2323
|
-
* withTabsAriaLabels({ tabsRegion: 'Bereiche' }),
|
|
2324
2221
|
* withTabsI18nLabels({ tabsLabel: 'Bereiche', moreTabsLabel: (n) => `${n} mehr` }),
|
|
2325
2222
|
* withTabOverflowStabilizeMs(150),
|
|
2326
2223
|
* ),
|
|
@@ -2328,9 +2225,8 @@ type CngxTabsFeature = CngxTabsConfigFeature | CngxTabsI18nFeature;
|
|
|
2328
2225
|
* });
|
|
2329
2226
|
* ```
|
|
2330
2227
|
*
|
|
2331
|
-
* @category common/tabs
|
|
2332
2228
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/provide-cngx-tabs.ts
|
|
2333
|
-
* @since 0.
|
|
2229
|
+
* @since 0.3.0
|
|
2334
2230
|
* @relatedTo CngxTabGroup, CngxTabsConfig, provideCngxTabsAt
|
|
2335
2231
|
*/
|
|
2336
2232
|
declare function provideCngxTabs(...features: readonly CngxTabsFeature[]): EnvironmentProviders;
|
|
@@ -2350,9 +2246,8 @@ declare function provideCngxTabs(...features: readonly CngxTabsFeature[]): Envir
|
|
|
2350
2246
|
* })
|
|
2351
2247
|
* ```
|
|
2352
2248
|
*
|
|
2353
|
-
* @category common/tabs
|
|
2354
2249
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/provide-cngx-tabs.ts
|
|
2355
|
-
* @since 0.
|
|
2250
|
+
* @since 0.3.0
|
|
2356
2251
|
* @relatedTo CngxTabGroup, CngxTabsConfig, provideCngxTabs
|
|
2357
2252
|
*/
|
|
2358
2253
|
declare function provideCngxTabsAt(...features: readonly CngxTabsFeature[]): Provider[];
|
|
@@ -2361,16 +2256,12 @@ declare function provideCngxTabsAt(...features: readonly CngxTabsFeature[]): Pro
|
|
|
2361
2256
|
* How a commit-gated tab switch settled. `'refused'` is a `false` answer
|
|
2362
2257
|
* from `commitAction` (the action declined on purpose, nothing failed);
|
|
2363
2258
|
* `'failed'` is a throw, a rejected promise or an erroring observable.
|
|
2364
|
-
*
|
|
2365
|
-
* @category common/tabs
|
|
2366
2259
|
*/
|
|
2367
2260
|
type CngxTabsCommitResolution = 'accepted' | 'refused' | 'failed';
|
|
2368
2261
|
/**
|
|
2369
2262
|
* Adapts the shared commit-controller to the tabs action shape. \
|
|
2370
2263
|
* The presenter delegates to {@link beginTransition} when `commitAction`
|
|
2371
2264
|
* is bound.
|
|
2372
|
-
*
|
|
2373
|
-
* @category common/tabs
|
|
2374
2265
|
*/
|
|
2375
2266
|
interface CngxTabsCommitHandler {
|
|
2376
2267
|
/**
|
|
@@ -2389,8 +2280,6 @@ interface CngxTabsCommitHandler {
|
|
|
2389
2280
|
}
|
|
2390
2281
|
/**
|
|
2391
2282
|
* Options for {@link createTabsCommitHandler}.
|
|
2392
|
-
*
|
|
2393
|
-
* @category common/tabs
|
|
2394
2283
|
*/
|
|
2395
2284
|
interface CngxTabsCommitHandlerOptions {
|
|
2396
2285
|
readonly controller: CngxCommitController<number>;
|
|
@@ -2401,16 +2290,12 @@ interface CngxTabsCommitHandlerOptions {
|
|
|
2401
2290
|
* returns into one {@link CngxTabsCommitResolution}: `true` accepts,
|
|
2402
2291
|
* `false` refuses (the controller settles to `'idle'` and stores no
|
|
2403
2292
|
* error), a throw fails.
|
|
2404
|
-
*
|
|
2405
|
-
* @category common/tabs
|
|
2406
2293
|
*/
|
|
2407
2294
|
declare function createTabsCommitHandler(opts: CngxTabsCommitHandlerOptions): CngxTabsCommitHandler;
|
|
2408
2295
|
/**
|
|
2409
2296
|
* Factory signature for {@link CNGX_TABS_COMMIT_HANDLER_FACTORY}.
|
|
2410
2297
|
* Override to wrap the default with retry-with-backoff, telemetry,
|
|
2411
2298
|
* or offline queues.
|
|
2412
|
-
*
|
|
2413
|
-
* @category common/tabs
|
|
2414
2299
|
*/
|
|
2415
2300
|
type CngxTabsCommitHandlerFactory = (opts: CngxTabsCommitHandlerOptions) => CngxTabsCommitHandler;
|
|
2416
2301
|
/**
|
|
@@ -2420,9 +2305,8 @@ type CngxTabsCommitHandlerFactory = (opts: CngxTabsCommitHandlerOptions) => Cngx
|
|
|
2420
2305
|
* - `CNGX_ARRAY_COMMIT_HANDLER_FACTORY` (select) and
|
|
2421
2306
|
* - `CNGX_STEPPER_COMMIT_HANDLER_FACTORY`.
|
|
2422
2307
|
*
|
|
2423
|
-
* @category common/tabs
|
|
2424
2308
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/commit-handler.ts
|
|
2425
|
-
* @since 0.
|
|
2309
|
+
* @since 0.3.0
|
|
2426
2310
|
*/
|
|
2427
2311
|
declare const CNGX_TABS_COMMIT_HANDLER_FACTORY: InjectionToken<CngxTabsCommitHandlerFactory>;
|
|
2428
2312
|
|
|
@@ -2435,8 +2319,6 @@ declare const CNGX_TABS_COMMIT_HANDLER_FACTORY: InjectionToken<CngxTabsCommitHan
|
|
|
2435
2319
|
* The molecule is variant-agnostic and
|
|
2436
2320
|
* consumes whichever adapter
|
|
2437
2321
|
* {@link CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY} provides.
|
|
2438
|
-
*
|
|
2439
|
-
* @category common/tabs/overflow
|
|
2440
2322
|
*/
|
|
2441
2323
|
interface CngxTabOverflowDomAdapter {
|
|
2442
2324
|
/**
|
|
@@ -2454,16 +2336,12 @@ interface CngxTabOverflowDomAdapter {
|
|
|
2454
2336
|
}
|
|
2455
2337
|
/**
|
|
2456
2338
|
* Factory signature for {@link CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY}.
|
|
2457
|
-
*
|
|
2458
|
-
* @category common/tabs/overflow
|
|
2459
2339
|
*/
|
|
2460
2340
|
type CngxTabOverflowDomAdapterFactory = () => CngxTabOverflowDomAdapter;
|
|
2461
2341
|
/**
|
|
2462
2342
|
* Default adapter for the cngx-native `<cngx-tab-group>` strip: \
|
|
2463
2343
|
* walks `host.closest('.cngx-tabs__strip-wrapper')` for the IO root,
|
|
2464
2344
|
* then `[id="${handle.id}-header"]` for each button.
|
|
2465
|
-
*
|
|
2466
|
-
* @category common/tabs/overflow
|
|
2467
2345
|
*/
|
|
2468
2346
|
declare function createCngxTabOverflowDefaultDomAdapter(): CngxTabOverflowDomAdapter;
|
|
2469
2347
|
/**
|
|
@@ -2473,23 +2351,18 @@ declare function createCngxTabOverflowDefaultDomAdapter(): CngxTabOverflowDomAda
|
|
|
2473
2351
|
* forking the molecule. Defaults to
|
|
2474
2352
|
* {@link createCngxTabOverflowDefaultDomAdapter}.
|
|
2475
2353
|
*
|
|
2476
|
-
* @category common/tabs/overflow
|
|
2477
2354
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/dom-adapter.ts
|
|
2478
|
-
* @since 0.
|
|
2355
|
+
* @since 0.3.0
|
|
2479
2356
|
*/
|
|
2480
2357
|
declare const CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY: InjectionToken<CngxTabOverflowDomAdapterFactory>;
|
|
2481
2358
|
|
|
2482
2359
|
/**
|
|
2483
2360
|
* Outcome reported by an `attempt` callback. `true` halts the loop
|
|
2484
2361
|
* (success); `false` or `null` schedules another tick.
|
|
2485
|
-
*
|
|
2486
|
-
* @category common/tabs/overflow
|
|
2487
2362
|
*/
|
|
2488
2363
|
type CngxDomAnchorRetryResult = true | false | null;
|
|
2489
2364
|
/**
|
|
2490
2365
|
* Configuration for {@link createDomAnchorRetry}.
|
|
2491
|
-
*
|
|
2492
|
-
* @category common/tabs/overflow
|
|
2493
2366
|
*/
|
|
2494
2367
|
interface CngxDomAnchorRetryOptions {
|
|
2495
2368
|
/**
|
|
@@ -2514,8 +2387,6 @@ interface CngxDomAnchorRetryOptions {
|
|
|
2514
2387
|
}
|
|
2515
2388
|
/**
|
|
2516
2389
|
* Imperative handle returned by {@link createDomAnchorRetry}.
|
|
2517
|
-
*
|
|
2518
|
-
* @category common/tabs/overflow
|
|
2519
2390
|
*/
|
|
2520
2391
|
interface CngxDomAnchorRetryHandle {
|
|
2521
2392
|
/** Begin (or restart) the retry loop. Resets the attempt counter. */
|
|
@@ -2551,15 +2422,11 @@ interface CngxDomAnchorRetryHandle {
|
|
|
2551
2422
|
* afterNextRender(() => retry.start());
|
|
2552
2423
|
* destroyRef.onDestroy(() => retry.cancel());
|
|
2553
2424
|
* ```
|
|
2554
|
-
*
|
|
2555
|
-
* @category common/tabs/overflow
|
|
2556
2425
|
*/
|
|
2557
2426
|
declare function createDomAnchorRetry(options: CngxDomAnchorRetryOptions): CngxDomAnchorRetryHandle;
|
|
2558
2427
|
/**
|
|
2559
2428
|
* Factory signature for {@link CNGX_DOM_ANCHOR_RETRY_FACTORY} -
|
|
2560
2429
|
* matches {@link createDomAnchorRetry} for drop-in overrides.
|
|
2561
|
-
*
|
|
2562
|
-
* @category common/tabs/overflow
|
|
2563
2430
|
*/
|
|
2564
2431
|
type CngxDomAnchorRetryFactory = (options: CngxDomAnchorRetryOptions) => CngxDomAnchorRetryHandle;
|
|
2565
2432
|
/**
|
|
@@ -2574,16 +2441,15 @@ type CngxDomAnchorRetryFactory = (options: CngxDomAnchorRetryOptions) => CngxDom
|
|
|
2574
2441
|
* - `CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY`, and
|
|
2575
2442
|
* - `CNGX_TABS_COMMIT_HANDLER_FACTORY`.
|
|
2576
2443
|
*
|
|
2577
|
-
* @category common/tabs/overflow
|
|
2578
2444
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/dom-anchor-retry.ts
|
|
2579
|
-
* @since 0.
|
|
2445
|
+
* @since 0.3.0
|
|
2580
2446
|
*/
|
|
2581
2447
|
declare const CNGX_DOM_ANCHOR_RETRY_FACTORY: InjectionToken<CngxDomAnchorRetryFactory>;
|
|
2582
2448
|
|
|
2583
2449
|
/**
|
|
2584
2450
|
* Structural slot for the add-tab button glyph. 3-stage cascade:
|
|
2585
2451
|
* per-instance directive > `CNGX_TABS_CONFIG.templates.addIcon` >
|
|
2586
|
-
*
|
|
2452
|
+
* the default plus icon. The button owns its `aria-label`; the
|
|
2587
2453
|
* template paints only the glyph, so its context is `void`.
|
|
2588
2454
|
*
|
|
2589
2455
|
* ```html
|
|
@@ -2593,13 +2459,12 @@ declare const CNGX_DOM_ANCHOR_RETRY_FACTORY: InjectionToken<CngxDomAnchorRetryFa
|
|
|
2593
2459
|
* </cngx-tab-group>
|
|
2594
2460
|
* ```
|
|
2595
2461
|
*
|
|
2596
|
-
* @category common/tabs/slots
|
|
2597
2462
|
* @wcag AA
|
|
2598
2463
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-add-icon.directive.ts
|
|
2599
|
-
* @since 0.
|
|
2464
|
+
* @since 0.3.0
|
|
2600
2465
|
* @relatedTo CngxTabCloseIcon, CngxTabGroup
|
|
2601
|
-
* <example-url
|
|
2602
|
-
* <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>
|
|
2603
2468
|
*/
|
|
2604
2469
|
declare class CngxTabAddIcon {
|
|
2605
2470
|
readonly templateRef: TemplateRef<void>;
|
|
@@ -2615,8 +2480,6 @@ declare class CngxTabAddIcon {
|
|
|
2615
2480
|
* under the LOC guard. \
|
|
2616
2481
|
*
|
|
2617
2482
|
* Sibling shape to `createTabGroupAnnouncements`.
|
|
2618
|
-
*
|
|
2619
|
-
* @category common/tabs
|
|
2620
2483
|
*/
|
|
2621
2484
|
interface CngxTabDismissalsOptions {
|
|
2622
2485
|
readonly host: CngxTabGroupHost;
|
|
@@ -2631,8 +2494,6 @@ interface CngxTabDismissalsOptions {
|
|
|
2631
2494
|
/**
|
|
2632
2495
|
* Resolved dismissable/addable surface for `<cngx-tab-group>`. \
|
|
2633
2496
|
* The organism holds this as one field and the template reads it.
|
|
2634
|
-
*
|
|
2635
|
-
* @category common/tabs
|
|
2636
2497
|
*/
|
|
2637
2498
|
interface CngxTabDismissals {
|
|
2638
2499
|
/** Effective group-level close affordance (`input ?? config ?? false`). */
|
|
@@ -2695,9 +2556,8 @@ interface CngxTabDismissals {
|
|
|
2695
2556
|
* dismiss.handleAdd(); // routes through presenter.requestAdd
|
|
2696
2557
|
* ```
|
|
2697
2558
|
*
|
|
2698
|
-
* @category common/tabs
|
|
2699
2559
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/dismissals/tab-dismissals.ts
|
|
2700
|
-
* @since 0.
|
|
2560
|
+
* @since 0.3.0
|
|
2701
2561
|
* @relatedTo CngxTabGroup, CngxTabCloseIcon, CngxTabAddIcon
|
|
2702
2562
|
*/
|
|
2703
2563
|
declare function createTabDismissals(opts: CngxTabDismissalsOptions): CngxTabDismissals;
|
|
@@ -2707,8 +2567,6 @@ declare function createTabDismissals(opts: CngxTabDismissalsOptions): CngxTabDis
|
|
|
2707
2567
|
* handle and the presenter contract; the factory runs the APG tablist
|
|
2708
2568
|
* keyboard model so the organism class stays under the LOC guard.
|
|
2709
2569
|
* Sibling shape to `createTabDismissals`.
|
|
2710
|
-
*
|
|
2711
|
-
* @category common/tabs
|
|
2712
2570
|
*/
|
|
2713
2571
|
interface CngxTabKeyboardNavOptions {
|
|
2714
2572
|
readonly host: CngxTabGroupHost;
|
|
@@ -2732,8 +2590,6 @@ interface CngxTabKeyboardNavOptions {
|
|
|
2732
2590
|
* organism holds this as one field; the template reads `tabTabindex`
|
|
2733
2591
|
* for the roving stop and routes the tab buttons' `(keydown)` through
|
|
2734
2592
|
* `handleKeydown`.
|
|
2735
|
-
*
|
|
2736
|
-
* @category common/tabs
|
|
2737
2593
|
*/
|
|
2738
2594
|
interface CngxTabKeyboardNav {
|
|
2739
2595
|
/**
|
|
@@ -2770,9 +2626,8 @@ interface CngxTabKeyboardNav {
|
|
|
2770
2626
|
* activation the focused tab is always the active one, so the clamped
|
|
2771
2627
|
* active index is the correct origin.
|
|
2772
2628
|
*
|
|
2773
|
-
* @category common/tabs
|
|
2774
2629
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/keyboard/tab-keyboard-nav.ts
|
|
2775
|
-
* @since 0.
|
|
2630
|
+
* @since 0.3.0
|
|
2776
2631
|
* @relatedTo CngxTabGroupPresenter, CngxTabGroup, createTabGroupAnnouncements
|
|
2777
2632
|
*/
|
|
2778
2633
|
declare function createTabKeyboardNav(opts: CngxTabKeyboardNavOptions): CngxTabKeyboardNav;
|
|
@@ -2785,8 +2640,6 @@ declare function createTabKeyboardNav(opts: CngxTabKeyboardNavOptions): CngxTabK
|
|
|
2785
2640
|
*
|
|
2786
2641
|
* Sibling shape to
|
|
2787
2642
|
* - `createStepperTemplateBindings`.
|
|
2788
|
-
*
|
|
2789
|
-
* @category common/tabs/slots
|
|
2790
2643
|
*/
|
|
2791
2644
|
interface CngxTabGroupTemplateBindingsOptions {
|
|
2792
2645
|
readonly errorBadgeSlot: Signal<CngxTabErrorBadge | undefined>;
|
|
@@ -2803,8 +2656,6 @@ interface CngxTabGroupTemplateBindingsOptions {
|
|
|
2803
2656
|
* Output of {@link createTabGroupTemplateBindings}. One resolved
|
|
2804
2657
|
* `Signal<TemplateRef | null>` per slot; `null` means the organism
|
|
2805
2658
|
* renders its built-in default.
|
|
2806
|
-
*
|
|
2807
|
-
* @category common/tabs/slots
|
|
2808
2659
|
*/
|
|
2809
2660
|
interface CngxTabGroupTemplateBindings {
|
|
2810
2661
|
readonly errorBadge: Signal<TemplateRef<CngxTabErrorBadgeContext> | null>;
|
|
@@ -2823,7 +2674,7 @@ interface CngxTabGroupTemplateBindings {
|
|
|
2823
2674
|
* `null`.
|
|
2824
2675
|
*
|
|
2825
2676
|
* `null` means the organism renders its built-in default - a default
|
|
2826
|
-
* span for the state decorations, the
|
|
2677
|
+
* span for the state decorations, the default icon for
|
|
2827
2678
|
* `closeIcon` / `addIcon`, and nothing for `icon`.
|
|
2828
2679
|
*
|
|
2829
2680
|
* Pure - no DI, no side effects. Safe in field-init. Sibling to
|
|
@@ -2843,10 +2694,9 @@ interface CngxTabGroupTemplateBindings {
|
|
|
2843
2694
|
* - An unbound `icon` slot resolves to nothing, which is correct - the
|
|
2844
2695
|
* icon is decorative and the label carries the accessible name.
|
|
2845
2696
|
*
|
|
2846
|
-
* @category common/tabs/slots
|
|
2847
2697
|
* @wcag AA
|
|
2848
2698
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/slots/tab-group-template-cascade.ts
|
|
2849
|
-
* @since 0.
|
|
2699
|
+
* @since 0.3.0
|
|
2850
2700
|
* @relatedTo CngxTabGroup, CngxTabErrorBadge, CngxTabBusySpinner, CngxTabRejectionIcon
|
|
2851
2701
|
*/
|
|
2852
2702
|
declare function createTabGroupTemplateBindings(opts: CngxTabGroupTemplateBindingsOptions): CngxTabGroupTemplateBindings;
|
|
@@ -2856,8 +2706,6 @@ declare function createTabGroupTemplateBindings(opts: CngxTabGroupTemplateBindin
|
|
|
2856
2706
|
* Passing presenter / i18n / config in (instead of re-injecting)
|
|
2857
2707
|
* keeps the factory pure - one call returns the bundle, no
|
|
2858
2708
|
* injection context required.
|
|
2859
|
-
*
|
|
2860
|
-
* @category common/tabs/announcements
|
|
2861
2709
|
*/
|
|
2862
2710
|
interface CngxTabGroupAnnouncementsOptions {
|
|
2863
2711
|
readonly presenter: CngxTabGroupHost;
|
|
@@ -2881,8 +2729,6 @@ interface CngxTabGroupAnnouncementsOptions {
|
|
|
2881
2729
|
* Host bindings and template outlets read these directly. Owns one
|
|
2882
2730
|
* internal `linkedSignal` slot (prior-active-index tracker driving
|
|
2883
2731
|
* the success-arm direction prefix); consumers never touch it.
|
|
2884
|
-
*
|
|
2885
|
-
* @category common/tabs/announcements
|
|
2886
2732
|
*/
|
|
2887
2733
|
interface CngxTabGroupAnnouncements {
|
|
2888
2734
|
/**
|
|
@@ -2899,7 +2745,7 @@ interface CngxTabGroupAnnouncements {
|
|
|
2899
2745
|
readonly tabPanelRoleDescription: Signal<string>;
|
|
2900
2746
|
/**
|
|
2901
2747
|
* Wrapper `aria-label`. Resolution: per-instance Input →
|
|
2902
|
-
* `
|
|
2748
|
+
* `i18n.tabsLabel`. Returns `null` when
|
|
2903
2749
|
* `aria-labelledby` is bound (mutually exclusive per WAI-ARIA).
|
|
2904
2750
|
*/
|
|
2905
2751
|
readonly resolvedAriaLabel: Signal<string | null>;
|
|
@@ -2984,10 +2830,9 @@ interface CngxTabGroupAnnouncements {
|
|
|
2984
2830
|
* always in the DOM; `statusPhrase` only fills its content, keeping the
|
|
2985
2831
|
* `aria-describedby` reference stable.
|
|
2986
2832
|
*
|
|
2987
|
-
* @category common/tabs/announcements
|
|
2988
2833
|
* @wcag AA
|
|
2989
2834
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/announcements/tab-group-announcements.ts
|
|
2990
|
-
* @since 0.
|
|
2835
|
+
* @since 0.3.0
|
|
2991
2836
|
* @relatedTo CngxTabGroup, CngxLiveRegion, createTabKeyboardNav
|
|
2992
2837
|
*/
|
|
2993
2838
|
declare function createTabGroupAnnouncements(options: CngxTabGroupAnnouncementsOptions): CngxTabGroupAnnouncements;
|
|
@@ -2996,8 +2841,6 @@ declare function createTabGroupAnnouncements(options: CngxTabGroupAnnouncementsO
|
|
|
2996
2841
|
* Inputs the nav announcement bundle reads from its host organism.
|
|
2997
2842
|
* Passing the presenter in (instead of re-injecting) keeps the factory a
|
|
2998
2843
|
* plain function of its arguments.
|
|
2999
|
-
*
|
|
3000
|
-
* @category common/tabs/announcements
|
|
3001
2844
|
*/
|
|
3002
2845
|
interface CngxTabNavAnnouncementOptions {
|
|
3003
2846
|
readonly presenter: CngxTabGroupHost;
|
|
@@ -3009,8 +2852,6 @@ interface CngxTabNavAnnouncementOptions {
|
|
|
3009
2852
|
}
|
|
3010
2853
|
/**
|
|
3011
2854
|
* Resolved bundle returned by {@link createTabNavAnnouncement}.
|
|
3012
|
-
*
|
|
3013
|
-
* @category common/tabs/announcements
|
|
3014
2855
|
*/
|
|
3015
2856
|
interface CngxTabNavAnnouncement {
|
|
3016
2857
|
/**
|
|
@@ -3047,50 +2888,18 @@ interface CngxTabNavAnnouncement {
|
|
|
3047
2888
|
* point instead of as the first announcement. Returning to a section
|
|
3048
2889
|
* that was active at mount still announces.
|
|
3049
2890
|
*
|
|
3050
|
-
* @category common/tabs/announcements
|
|
3051
2891
|
* @wcag AA
|
|
3052
2892
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/announcements/tab-nav-announcement.ts
|
|
3053
|
-
* @since 0.
|
|
2893
|
+
* @since 0.3.0
|
|
3054
2894
|
* @relatedTo CngxTabNav, CngxLiveRegion, createTabGroupAnnouncements
|
|
3055
2895
|
*/
|
|
3056
2896
|
declare function createTabNavAnnouncement(options: CngxTabNavAnnouncementOptions): CngxTabNavAnnouncement;
|
|
3057
2897
|
|
|
3058
|
-
/**
|
|
3059
|
-
* Default glyph fallbacks for `<cngx-tab-group>` skin slots. Read by
|
|
3060
|
-
* the organism when neither a per-instance slot directive nor
|
|
3061
|
-
* `CNGX_TABS_CONFIG.templates.<key>` is bound. Sibling to
|
|
3062
|
-
* `CNGX_SELECT_GLYPHS` and `CNGX_STEPPER_GLYPHS`. Exported because
|
|
3063
|
-
* Sheriff forbids deep-relative imports across library boundaries;
|
|
3064
|
-
* `@internal` enforces consumer intent. Consumers customise via slot
|
|
3065
|
-
* directives or `withTab*Template` config features.
|
|
3066
|
-
*
|
|
3067
|
-
* @internal
|
|
3068
|
-
* @category common/tabs
|
|
3069
|
-
*/
|
|
3070
|
-
declare const CNGX_TABS_GLYPHS: {
|
|
3071
|
-
/** Default visual for `*cngxTabErrorBadge` when no override is bound. */
|
|
3072
|
-
readonly errorBadge: "!";
|
|
3073
|
-
/** Default visual for `*cngxTabRejectionIcon` on a failed commit when no override is bound. */
|
|
3074
|
-
readonly rejectionIcon: "!";
|
|
3075
|
-
/**
|
|
3076
|
-
* Default visual for `*cngxTabRejectionIcon` on a refused commit (the
|
|
3077
|
-
* action answered `false`). A distinct glyph, so a refusal never differs
|
|
3078
|
-
* from a failure by colour alone (WCAG 1.4.1).
|
|
3079
|
-
*/
|
|
3080
|
-
readonly refusedIcon: "⊘";
|
|
3081
|
-
/** Default visual for a tab's close button when no override is bound. */
|
|
3082
|
-
readonly closeIcon: "×";
|
|
3083
|
-
/** Default visual for the add-tab button when no override is bound. */
|
|
3084
|
-
readonly addIcon: "+";
|
|
3085
|
-
};
|
|
3086
|
-
|
|
3087
2898
|
/**
|
|
3088
2899
|
* DOM `id` for a hidden-tab option row in the overflow listbox. \
|
|
3089
2900
|
* Stable across CD passes so `aria-activedescendant` resolves to
|
|
3090
2901
|
* the same `<li>`. `-overflow-option` suffix avoids collision with
|
|
3091
2902
|
* the strip-button (`-header`) and per-tab descriptor (`-desc`).
|
|
3092
|
-
*
|
|
3093
|
-
* @category common/tabs/overflow
|
|
3094
2903
|
*/
|
|
3095
2904
|
declare function tabOverflowOptionId(tab: CngxTabHandle): string;
|
|
3096
2905
|
/**
|
|
@@ -3098,8 +2907,6 @@ declare function tabOverflowOptionId(tab: CngxTabHandle): string;
|
|
|
3098
2907
|
* The molecule runs the `contentChild()` queries (injection-context-only) and
|
|
3099
2908
|
* supplies the reactive sources; the factory owns cascade
|
|
3100
2909
|
* resolution and per-context builders.
|
|
3101
|
-
*
|
|
3102
|
-
* @category common/tabs/overflow
|
|
3103
2910
|
*/
|
|
3104
2911
|
interface CngxTabOverflowTemplateBindingsOptions {
|
|
3105
2912
|
/** `contentChild(CngxTabOverflowTrigger)` from the molecule. */
|
|
@@ -3123,8 +2930,6 @@ interface CngxTabOverflowTemplateBindingsOptions {
|
|
|
3123
2930
|
* Output of {@link createTabOverflowTemplateBindings}. Carries the two
|
|
3124
2931
|
* resolved templates plus a stable trigger-context signal and an
|
|
3125
2932
|
* imperative item-context builder.
|
|
3126
|
-
*
|
|
3127
|
-
* @category common/tabs/overflow
|
|
3128
2933
|
*/
|
|
3129
2934
|
interface CngxTabOverflowTemplateBindings {
|
|
3130
2935
|
readonly triggerTemplate: Signal<TemplateRef<CngxTabOverflowTriggerContext> | null>;
|
|
@@ -3159,8 +2964,6 @@ interface CngxTabOverflowTemplateBindings {
|
|
|
3159
2964
|
* Pure - no DI, no side effects, no destroy hooks. Safe to call
|
|
3160
2965
|
* from a component's field-init block. Mirrors the select-family
|
|
3161
2966
|
* `createTemplateRegistry` pattern.
|
|
3162
|
-
*
|
|
3163
|
-
* @category common/tabs/overflow
|
|
3164
2967
|
*/
|
|
3165
2968
|
declare function createTabOverflowTemplateBindings(opts: CngxTabOverflowTemplateBindingsOptions): CngxTabOverflowTemplateBindings;
|
|
3166
2969
|
/**
|
|
@@ -3184,14 +2987,11 @@ declare function createTabOverflowTemplateBindings(opts: CngxTabOverflowTemplate
|
|
|
3184
2987
|
* `aria-activedescendant` while real focus stays on the trigger (APG
|
|
3185
2988
|
* menu-button); the rows are never tab stops.
|
|
3186
2989
|
*
|
|
3187
|
-
* @category common/tabs/overflow
|
|
3188
2990
|
* @wcag AA
|
|
3189
2991
|
*/
|
|
3190
2992
|
declare function createOverflowPopoverHighlightSync(popover: Signal<CngxPopover>, ad: Signal<CngxActiveDescendant>): void;
|
|
3191
2993
|
/**
|
|
3192
2994
|
* Factory signature for {@link CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY}.
|
|
3193
|
-
*
|
|
3194
|
-
* @category common/tabs/overflow
|
|
3195
2995
|
*/
|
|
3196
2996
|
type CngxOverflowPopoverHighlightSyncFactory = (popover: Signal<CngxPopover>, ad: Signal<CngxActiveDescendant>) => void;
|
|
3197
2997
|
/**
|
|
@@ -3203,16 +3003,13 @@ type CngxOverflowPopoverHighlightSyncFactory = (popover: Signal<CngxPopover>, ad
|
|
|
3203
3003
|
* - `CNGX_TAB_OVERFLOW_DOM_ADAPTER_FACTORY` and
|
|
3204
3004
|
* - `CNGX_TABS_COMMIT_HANDLER_FACTORY`.
|
|
3205
3005
|
*
|
|
3206
|
-
* @category common/tabs/overflow
|
|
3207
3006
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/overflow/overflow-template-cascade.ts
|
|
3208
|
-
* @since 0.
|
|
3007
|
+
* @since 0.3.0
|
|
3209
3008
|
*/
|
|
3210
3009
|
declare const CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY: InjectionToken<CngxOverflowPopoverHighlightSyncFactory>;
|
|
3211
3010
|
|
|
3212
3011
|
/**
|
|
3213
3012
|
* Options for {@link createOrganismScrollSync}.
|
|
3214
|
-
*
|
|
3215
|
-
* @category common/tabs/scroll-sync
|
|
3216
3013
|
*/
|
|
3217
3014
|
interface CngxOrganismScrollSyncOptions {
|
|
3218
3015
|
/** Reactive source for the active item id; tracked by the effect. */
|
|
@@ -3248,9 +3045,10 @@ interface CngxOrganismScrollSyncOptions {
|
|
|
3248
3045
|
* popover scrolls it back into the strip, and the overflow recompute
|
|
3249
3046
|
* then self-trims - keyboard navigation and the overflow list stay in
|
|
3250
3047
|
* sync.
|
|
3251
|
-
* -
|
|
3252
|
-
*
|
|
3253
|
-
*
|
|
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.
|
|
3254
3052
|
*
|
|
3255
3053
|
* ```ts
|
|
3256
3054
|
* // Install once from the organism's field-init (needs an injection context).
|
|
@@ -3263,17 +3061,14 @@ interface CngxOrganismScrollSyncOptions {
|
|
|
3263
3061
|
* });
|
|
3264
3062
|
* ```
|
|
3265
3063
|
*
|
|
3266
|
-
* @category common/tabs/scroll-sync
|
|
3267
3064
|
* @wcag AA
|
|
3268
3065
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/scroll-sync/organism-scroll-sync.ts
|
|
3269
|
-
* @since 0.
|
|
3066
|
+
* @since 0.3.0
|
|
3270
3067
|
* @relatedTo CngxTabGroup, CngxTabOverflow, CNGX_ORGANISM_SCROLL_SYNC_FACTORY
|
|
3271
3068
|
*/
|
|
3272
3069
|
declare function createOrganismScrollSync(opts: CngxOrganismScrollSyncOptions): void;
|
|
3273
3070
|
/**
|
|
3274
3071
|
* Factory signature for {@link CNGX_ORGANISM_SCROLL_SYNC_FACTORY}.
|
|
3275
|
-
*
|
|
3276
|
-
* @category common/tabs/scroll-sync
|
|
3277
3072
|
*/
|
|
3278
3073
|
type CngxOrganismScrollSyncFactory = (opts: CngxOrganismScrollSyncOptions) => void;
|
|
3279
3074
|
/**
|
|
@@ -3292,7 +3087,7 @@ type CngxOrganismScrollSyncFactory = (opts: CngxOrganismScrollSyncOptions) => vo
|
|
|
3292
3087
|
* - `CNGX_OVERFLOW_POPOVER_HIGHLIGHT_FACTORY`.
|
|
3293
3088
|
*
|
|
3294
3089
|
* ```ts
|
|
3295
|
-
* //
|
|
3090
|
+
* // Always scroll instantly, motion preference or not:
|
|
3296
3091
|
* providers: [
|
|
3297
3092
|
* {
|
|
3298
3093
|
* provide: CNGX_ORGANISM_SCROLL_SYNC_FACTORY,
|
|
@@ -3303,18 +3098,15 @@ type CngxOrganismScrollSyncFactory = (opts: CngxOrganismScrollSyncOptions) => vo
|
|
|
3303
3098
|
* // Or disable scroll-into-view entirely: useValue: () => {}
|
|
3304
3099
|
* ```
|
|
3305
3100
|
*
|
|
3306
|
-
* @category common/tabs/scroll-sync
|
|
3307
3101
|
* @wcag AA
|
|
3308
3102
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/scroll-sync/organism-scroll-sync.ts
|
|
3309
|
-
* @since 0.
|
|
3103
|
+
* @since 0.3.0
|
|
3310
3104
|
* @relatedTo createOrganismScrollSync, CngxOrganismScrollSyncFactory
|
|
3311
3105
|
*/
|
|
3312
3106
|
declare const CNGX_ORGANISM_SCROLL_SYNC_FACTORY: InjectionToken<CngxOrganismScrollSyncFactory>;
|
|
3313
3107
|
|
|
3314
3108
|
/**
|
|
3315
3109
|
* Options for {@link createDirectiveByIdMap}.
|
|
3316
|
-
*
|
|
3317
|
-
* @category common/tabs/registry
|
|
3318
3110
|
*/
|
|
3319
3111
|
interface CngxDirectiveByIdMapOptions<T extends {
|
|
3320
3112
|
id: () => string;
|
|
@@ -3327,16 +3119,12 @@ interface CngxDirectiveByIdMapOptions<T extends {
|
|
|
3327
3119
|
* directives keyed by `id()`. Structural equal prevents cascade when
|
|
3328
3120
|
* `contentChildren` re-emits an unchanged child set. Shared by
|
|
3329
3121
|
* `<cngx-tab-group>`, `<cngx-stepper>`, and `<cngx-mat-stepper>`.
|
|
3330
|
-
*
|
|
3331
|
-
* @category common/tabs/registry
|
|
3332
3122
|
*/
|
|
3333
3123
|
declare function createDirectiveByIdMap<T extends {
|
|
3334
3124
|
id: () => string;
|
|
3335
3125
|
}>(opts: CngxDirectiveByIdMapOptions<T>): Signal<Map<string, T>>;
|
|
3336
3126
|
/**
|
|
3337
3127
|
* Factory signature for {@link CNGX_DIRECTIVE_BY_ID_MAP_FACTORY}.
|
|
3338
|
-
*
|
|
3339
|
-
* @category common/tabs/registry
|
|
3340
3128
|
*/
|
|
3341
3129
|
type CngxDirectiveByIdMapFactory = <T extends {
|
|
3342
3130
|
id: () => string;
|
|
@@ -3349,11 +3137,10 @@ type CngxDirectiveByIdMapFactory = <T extends {
|
|
|
3349
3137
|
* - `CNGX_DOM_ANCHOR_RETRY_FACTORY` and
|
|
3350
3138
|
* - `CNGX_ORGANISM_SCROLL_SYNC_FACTORY`.
|
|
3351
3139
|
*
|
|
3352
|
-
* @category common/tabs/registry
|
|
3353
3140
|
* @github https://github.com/cngxjs/cngx/blob/main/projects/common/tabs/registry/directive-by-id-map.ts
|
|
3354
|
-
* @since 0.
|
|
3141
|
+
* @since 0.3.0
|
|
3355
3142
|
*/
|
|
3356
3143
|
declare const CNGX_DIRECTIVE_BY_ID_MAP_FACTORY: InjectionToken<CngxDirectiveByIdMapFactory>;
|
|
3357
3144
|
|
|
3358
|
-
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,
|
|
3359
|
-
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 };
|