@cngx/ui 0.1.0-rc.7 → 0.1.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/a11y/README.md +11 -5
- package/accordion/README.md +4 -2
- package/breadcrumb/README.md +262 -0
- package/collection/README.md +6 -0
- package/command-palette/README.md +224 -0
- package/data-grid-accordion/README.md +76 -2
- package/feedback/README.md +40 -0
- package/fesm2022/cngx-ui-a11y.mjs +189 -57
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +102 -35
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +112 -50
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +176 -96
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +180 -23
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +194 -62
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +395 -119
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +149 -34
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +415 -98
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +16 -6
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +1022 -439
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +75 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +67 -24
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +72 -47
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +314 -141
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-overlay.mjs +69 -13
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +487 -178
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +327 -106
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +4 -16
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +107 -8
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +146 -46
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +191 -68
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +10 -6
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +74 -21
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +70 -26
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +15 -20
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-paginator/README.md +9 -2
- package/mat-tabs/styles/mat-tabs.css +9 -10
- package/overlay/README.md +9 -4
- package/package.json +4 -4
- package/paginator/README.md +8 -4
- package/sidenav/README.md +33 -11
- package/speak/README.md +3 -2
- package/stepper/README.md +13 -1
- package/timeline/README.md +1 -1
- package/toc/README.md +4 -1
- package/types/cngx-ui-a11y.d.ts +121 -30
- package/types/cngx-ui-accordion.d.ts +91 -26
- package/types/cngx-ui-action-button.d.ts +44 -3
- package/types/cngx-ui-breadcrumb.d.ts +154 -58
- package/types/cngx-ui-chart-panel.d.ts +122 -18
- package/types/cngx-ui-collection.d.ts +147 -55
- package/types/cngx-ui-command-palette.d.ts +297 -183
- package/types/cngx-ui-context-menu.d.ts +98 -6
- package/types/cngx-ui-data-grid-accordion.d.ts +274 -38
- package/types/cngx-ui-empty-state.d.ts +9 -2
- package/types/cngx-ui-feedback.d.ts +594 -56
- package/types/cngx-ui-mat-accordion.d.ts +29 -1
- package/types/cngx-ui-mat-paginator.d.ts +37 -8
- package/types/cngx-ui-mat-stepper.d.ts +23 -11
- package/types/cngx-ui-mat-tabs.d.ts +207 -14
- package/types/cngx-ui-overlay.d.ts +56 -10
- package/types/cngx-ui-paginator.d.ts +403 -129
- package/types/cngx-ui-sidenav.d.ts +248 -74
- package/types/cngx-ui-skeleton.d.ts +6 -7
- package/types/cngx-ui-speak.d.ts +118 -5
- package/types/cngx-ui-stat-card.d.ts +117 -33
- package/types/cngx-ui-stepper.d.ts +66 -27
- package/types/cngx-ui-tabs.d.ts +2 -2
- package/types/cngx-ui-timeline.d.ts +23 -7
- package/types/cngx-ui-toc.d.ts +80 -13
- package/types/cngx-ui.d.ts +7 -4
|
@@ -145,6 +145,7 @@ type CngxTimelineOrientation = 'vertical' | 'horizontal';
|
|
|
145
145
|
*/
|
|
146
146
|
declare class CngxTimeline<T = unknown> implements CngxTimelineMarkerHost {
|
|
147
147
|
private readonly config;
|
|
148
|
+
private readonly configLabels;
|
|
148
149
|
private readonly groupingFactory;
|
|
149
150
|
private readonly uid;
|
|
150
151
|
/**
|
|
@@ -245,7 +246,14 @@ declare class CngxTimeline<T = unknown> implements CngxTimelineMarkerHost {
|
|
|
245
246
|
*/
|
|
246
247
|
readonly asyncState: CngxAsyncState<readonly T[]>;
|
|
247
248
|
/** @internal Fallback copy for every surface with no slot bound. */
|
|
248
|
-
protected readonly labels: _cngx_ui_timeline.CngxTimelineFallbackCopy
|
|
249
|
+
protected readonly labels: Signal<_cngx_ui_timeline.CngxTimelineFallbackCopy>;
|
|
250
|
+
private readonly locale;
|
|
251
|
+
private readonly groupFormatter;
|
|
252
|
+
/**
|
|
253
|
+
* @internal Group header formatter: `labels.groupLabel` bound to the live
|
|
254
|
+
* app locale, so a `CNGX_LOCALE` flip re-formats the headers.
|
|
255
|
+
*/
|
|
256
|
+
protected readonly groupHeaderLabel: Signal<(group: TimelineGroup<unknown>) => string>;
|
|
249
257
|
/** @internal The body switch, the busy flag and the live-region text. */
|
|
250
258
|
private readonly view;
|
|
251
259
|
protected readonly activeView: Signal<_cngx_common_data.AsyncView>;
|
|
@@ -294,7 +302,7 @@ declare class CngxTimeline<T = unknown> implements CngxTimelineMarkerHost {
|
|
|
294
302
|
|
|
295
303
|
/**
|
|
296
304
|
* The fallback copy the timeline renders when a consumer bound no slot for
|
|
297
|
-
* a surface, resolved
|
|
305
|
+
* a surface, resolved from the config cascade.
|
|
298
306
|
*
|
|
299
307
|
* @category ui/timeline
|
|
300
308
|
*/
|
|
@@ -304,7 +312,7 @@ interface CngxTimelineFallbackCopy {
|
|
|
304
312
|
readonly emptyFallback: string;
|
|
305
313
|
readonly loading: string;
|
|
306
314
|
readonly refreshing: string;
|
|
307
|
-
readonly groupLabel: (group: TimelineGroup<unknown
|
|
315
|
+
readonly groupLabel: (group: TimelineGroup<unknown>, locale: string) => string;
|
|
308
316
|
}
|
|
309
317
|
/**
|
|
310
318
|
* Flattens the config's optional label bag into the exact set the template
|
|
@@ -312,6 +320,10 @@ interface CngxTimelineFallbackCopy {
|
|
|
312
320
|
* accessor, and the optional-chaining lives in one place instead of at every
|
|
313
321
|
* use site.
|
|
314
322
|
*
|
|
323
|
+
* Returns a `Signal`: when the config's `labels` is a `Signal` (as it is once
|
|
324
|
+
* `withTimelineLabels` ran), the copy follows a runtime language switch. The
|
|
325
|
+
* bundle keeps its reference while the resolved strings stay equal.
|
|
326
|
+
*
|
|
315
327
|
* `groupLabel` keeps the band's key as its own last resort: a consumer who
|
|
316
328
|
* clears the formatter should still get a legible header rather than an
|
|
317
329
|
* empty one that leaves the group unnamed.
|
|
@@ -319,7 +331,7 @@ interface CngxTimelineFallbackCopy {
|
|
|
319
331
|
* @category ui/timeline
|
|
320
332
|
* @since 0.1.0
|
|
321
333
|
*/
|
|
322
|
-
declare function createTimelineFallbackCopy(config: CngxTimelineConfig): CngxTimelineFallbackCopy
|
|
334
|
+
declare function createTimelineFallbackCopy(config: CngxTimelineConfig): Signal<CngxTimelineFallbackCopy>;
|
|
323
335
|
|
|
324
336
|
/**
|
|
325
337
|
* Everything the template needs to decide what the body shows.
|
|
@@ -349,6 +361,10 @@ interface CngxTimelineView {
|
|
|
349
361
|
* - **Busy with an empty screen.** The lookup table resolves a non-first-load
|
|
350
362
|
* `loading` or `pending` to `content`; with no rows that renders nothing at
|
|
351
363
|
* all, so it is treated as a load instead. `refreshing` keeps its tail.
|
|
364
|
+
* - **First-load busy over seed rows.** The lookup table resolves a first
|
|
365
|
+
* load to `skeleton` unconditionally, but `[items]` documents seed rows as
|
|
366
|
+
* a legitimate companion to a bound state - rows that exist are painted,
|
|
367
|
+
* never hidden behind placeholders. `aria-busy` still marks the list.
|
|
352
368
|
*
|
|
353
369
|
* Swap the whole mapping through {@link CNGX_TIMELINE_VIEW_FACTORY} rather
|
|
354
370
|
* than forking the organism - treating `pending` as content, or holding the
|
|
@@ -358,13 +374,13 @@ interface CngxTimelineView {
|
|
|
358
374
|
* @relatedTo CNGX_TIMELINE_VIEW_FACTORY
|
|
359
375
|
* @since 0.1.0
|
|
360
376
|
*/
|
|
361
|
-
declare function createTimelineView(state: () => CngxAsyncState<unknown> | undefined, isEmpty: () => boolean, labels: CngxTimelineFallbackCopy): CngxTimelineView;
|
|
377
|
+
declare function createTimelineView(state: () => CngxAsyncState<unknown> | undefined, isEmpty: () => boolean, labels: Signal<CngxTimelineFallbackCopy>): CngxTimelineView;
|
|
362
378
|
/**
|
|
363
379
|
* The shape {@link CNGX_TIMELINE_VIEW_FACTORY} hands out.
|
|
364
380
|
*
|
|
365
381
|
* @category ui/timeline
|
|
366
382
|
*/
|
|
367
|
-
type CngxTimelineViewFactory = (state: () => CngxAsyncState<unknown> | undefined, isEmpty: () => boolean, labels: CngxTimelineFallbackCopy) => CngxTimelineView;
|
|
383
|
+
type CngxTimelineViewFactory = (state: () => CngxAsyncState<unknown> | undefined, isEmpty: () => boolean, labels: Signal<CngxTimelineFallbackCopy>) => CngxTimelineView;
|
|
368
384
|
/**
|
|
369
385
|
* Swap point for the body-view mapping. Override it to reshape when the
|
|
370
386
|
* timeline shows a skeleton, content, the empty surface or the error
|
|
@@ -476,4 +492,4 @@ interface CngxTimelineSlots<T> {
|
|
|
476
492
|
declare function createTimelineSlots<T>(queries: CngxTimelineSlotQueries<T>, templates: () => CngxTimelineTemplates | undefined): CngxTimelineSlots<T>;
|
|
477
493
|
|
|
478
494
|
export { CNGX_TIMELINE_VIEW_FACTORY, CngxTimeline, createTimelineFallbackCopy, createTimelineSlotBinding, createTimelineSlots, createTimelineView };
|
|
479
|
-
export type { CngxTimelineFallbackCopy, CngxTimelineMode, CngxTimelineSkin, CngxTimelineSlotQueries, CngxTimelineSlotSource, CngxTimelineSlots, CngxTimelineView, CngxTimelineViewFactory };
|
|
495
|
+
export type { CngxTimelineFallbackCopy, CngxTimelineMode, CngxTimelineOrientation, CngxTimelinePlacement, CngxTimelineRail, CngxTimelineSkin, CngxTimelineSlotQueries, CngxTimelineSlotSource, CngxTimelineSlots, CngxTimelineView, CngxTimelineViewFactory };
|
package/types/cngx-ui-toc.d.ts
CHANGED
|
@@ -97,10 +97,12 @@ declare const CNGX_TOC: InjectionToken<CngxTocContract>;
|
|
|
97
97
|
* @relatedTo CngxScrollSpy, CngxTocRouterSync, CngxSidenav
|
|
98
98
|
* <example-url>http://localhost:4200/#/ui/toc/basic/on-this-page-rail</example-url>
|
|
99
99
|
* <example-url>http://localhost:4200/#/ui/toc/auto/heading-auto-discovery</example-url>
|
|
100
|
+
* @slot cngxTocItem Replaces the plain label inside each item's link at every depth, ahead of CNGX_TOC_CONFIG.templates.item; gets the item as $implicit, plus active and the zero-based depth.
|
|
100
101
|
*/
|
|
101
102
|
declare class CngxToc implements CngxTocContract {
|
|
102
103
|
private readonly doc;
|
|
103
104
|
private readonly cfg;
|
|
105
|
+
private readonly ariaLabels;
|
|
104
106
|
private readonly reducedMotion;
|
|
105
107
|
private readonly isBrowser;
|
|
106
108
|
/**
|
|
@@ -137,10 +139,10 @@ declare class CngxToc implements CngxTocContract {
|
|
|
137
139
|
private readonly discovered;
|
|
138
140
|
/** The outline actually rendered: the discovered headings when `[autoDiscover]` is on, else `[items]`. */
|
|
139
141
|
protected readonly resolvedItems: Signal<readonly CngxTocItem[]>;
|
|
140
|
-
/** Accessible name of the `nav` landmark, from the config cascade. */
|
|
142
|
+
/** Accessible name of the `nav` landmark, from the config cascade; follows a language switch. */
|
|
141
143
|
protected readonly navLabel: Signal<string>;
|
|
142
144
|
/**
|
|
143
|
-
* Depth-first flat id list feeding `[cngxScrollSpy]`. `equal:
|
|
145
|
+
* Depth-first flat id list feeding `[cngxScrollSpy]`. `equal: arrayEqual`
|
|
144
146
|
* keeps the reference stable across same-shape re-sets so a re-render does
|
|
145
147
|
* not re-create the observer.
|
|
146
148
|
*/
|
|
@@ -276,6 +278,43 @@ declare class CngxTocItemSlot {
|
|
|
276
278
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CngxTocItemSlot, "ng-template[cngxTocItem]", ["cngxTocItem"], {}, {}, never, never, true, never>;
|
|
277
279
|
}
|
|
278
280
|
|
|
281
|
+
/**
|
|
282
|
+
* The toc section of a {@link CngxLanguagePack}: the accessible names of
|
|
283
|
+
* `CngxToc`. It feeds the `ariaLabels` of `CNGX_TOC_CONFIG`; a key set through
|
|
284
|
+
* `withTocAriaLabels` still wins.
|
|
285
|
+
*
|
|
286
|
+
* @category ui/toc/i18n
|
|
287
|
+
* @since 0.1.0
|
|
288
|
+
* @relatedTo CNGX_TOC_CONFIG, withTocAriaLabels
|
|
289
|
+
*/
|
|
290
|
+
interface CngxTocLanguageSection {
|
|
291
|
+
/** Accessible name of the `nav` landmark. */
|
|
292
|
+
readonly nav: string;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* The English toc section: the single source of the toc's English copy. The
|
|
296
|
+
* `CNGX_TOC_CONFIG` labels default to it.
|
|
297
|
+
*
|
|
298
|
+
* @category ui/toc/i18n
|
|
299
|
+
* @since 0.1.0
|
|
300
|
+
* @relatedTo CNGX_TOC_CONFIG
|
|
301
|
+
*/
|
|
302
|
+
declare const CNGX_TOC_LANGUAGE_EN: CngxTocLanguageSection;
|
|
303
|
+
declare module '@cngx/core/i18n' {
|
|
304
|
+
interface CngxLanguagePack {
|
|
305
|
+
readonly toc: CngxTocLanguageSection;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Accessible names the toc renders. A partial of the `toc` language section,
|
|
311
|
+
* declared once there; an unset key reads the section (English without a
|
|
312
|
+
* pack).
|
|
313
|
+
*
|
|
314
|
+
* @category ui/toc
|
|
315
|
+
* @since 0.1.0
|
|
316
|
+
*/
|
|
317
|
+
type CngxTocAriaLabels = Partial<CngxTocLanguageSection>;
|
|
279
318
|
/**
|
|
280
319
|
* App-wide cascade for the table-of-contents organism's ARIA label, its
|
|
281
320
|
* scroll behaviour, the `CngxScrollSpy` defaults it forwards, and the default
|
|
@@ -286,7 +325,8 @@ declare class CngxTocItemSlot {
|
|
|
286
325
|
* 2. `provideTocConfigAt(...)` in a parent component's `viewProviders`
|
|
287
326
|
* (component-scoped override).
|
|
288
327
|
* 3. `provideTocConfig(...)` at the application root.
|
|
289
|
-
* 4. Library defaults (
|
|
328
|
+
* 4. Library defaults (`CNGX_TOC_DEFAULTS`; the names come from the `toc`
|
|
329
|
+
* section of the language pack).
|
|
290
330
|
*
|
|
291
331
|
* Every key is optional - partial overrides deep-merge with the library
|
|
292
332
|
* defaults, so consumers declare only the keys they want to override.
|
|
@@ -298,12 +338,12 @@ interface CngxTocConfig {
|
|
|
298
338
|
/**
|
|
299
339
|
* ARIA-string fallback for the `nav` landmark. A per-instance
|
|
300
340
|
* `[navLabel]`-equivalent binding is not exposed; the landmark name always
|
|
301
|
-
* comes from this cascade,
|
|
341
|
+
* comes from this cascade, the `toc` section of the language pack by
|
|
342
|
+
* default. Accepts a `Signal` so the
|
|
343
|
+
* name follows a runtime language switch; read the resolved bundle through
|
|
344
|
+
* {@link injectTocAriaLabels}.
|
|
302
345
|
*/
|
|
303
|
-
readonly ariaLabels?:
|
|
304
|
-
/** Accessible name of the `nav` landmark that wraps the link list. */
|
|
305
|
-
readonly nav?: string;
|
|
306
|
-
};
|
|
346
|
+
readonly ariaLabels?: CngxTocAriaLabels | Signal<CngxTocAriaLabels>;
|
|
307
347
|
/**
|
|
308
348
|
* Scroll behaviour used when a link is activated and the section is
|
|
309
349
|
* brought into view. `'smooth'` by default; swapped to `'auto'` (instant)
|
|
@@ -335,6 +375,21 @@ interface CngxTocConfig {
|
|
|
335
375
|
};
|
|
336
376
|
}
|
|
337
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Library defaults for the toc configuration cascade. Carries no copy: the
|
|
380
|
+
* `ariaLabels` defaults are the `toc` section of the language pack; single
|
|
381
|
+
* keys ride the `withTocAriaLabels` feature. The spy defaults (`rootMargin` / `threshold`) mirror
|
|
382
|
+
* `CngxScrollSpy`'s own input defaults so an un-configured toc tracks
|
|
383
|
+
* scrolling identically to a hand-wired spy.
|
|
384
|
+
*
|
|
385
|
+
* Exported for intra-lib consumers (`provideTocConfig` deep-merges with this
|
|
386
|
+
* base) but **NOT** re-exported from `public-api.ts` - downstream consumers
|
|
387
|
+
* reach the defaults via `inject(CNGX_TOC_CONFIG)` so `provideTocConfig` /
|
|
388
|
+
* `provideTocConfigAt` overrides take precedence.
|
|
389
|
+
*
|
|
390
|
+
* @internal
|
|
391
|
+
*/
|
|
392
|
+
declare const CNGX_TOC_DEFAULTS: CngxTocConfig;
|
|
338
393
|
/**
|
|
339
394
|
* App-wide configuration cascade for the table-of-contents organism. Resolves
|
|
340
395
|
* in priority order:
|
|
@@ -370,7 +425,7 @@ declare const CNGX_TOC_CONFIG: InjectionToken<CngxTocConfig>;
|
|
|
370
425
|
*/
|
|
371
426
|
type CngxTocConfigFeature = {
|
|
372
427
|
readonly kind: 'ariaLabels';
|
|
373
|
-
readonly payload:
|
|
428
|
+
readonly payload: CngxTocAriaLabels | Signal<CngxTocAriaLabels>;
|
|
374
429
|
} | {
|
|
375
430
|
readonly kind: 'scrollBehavior';
|
|
376
431
|
readonly payload: {
|
|
@@ -437,7 +492,8 @@ declare function provideTocConfigAt(...features: CngxTocConfigFeature[]): Provid
|
|
|
437
492
|
|
|
438
493
|
/**
|
|
439
494
|
* Override the toc's ARIA-string fallback - the accessible name of the `nav`
|
|
440
|
-
* landmark that wraps the link list (default `'On this page'`).
|
|
495
|
+
* landmark that wraps the link list (default `'On this page'`). Pass a
|
|
496
|
+
* `Signal` to switch the language at runtime.
|
|
441
497
|
*
|
|
442
498
|
* ```ts
|
|
443
499
|
* provideTocConfig(withTocAriaLabels({ nav: 'Auf dieser Seite' }));
|
|
@@ -446,7 +502,7 @@ declare function provideTocConfigAt(...features: CngxTocConfigFeature[]): Provid
|
|
|
446
502
|
* @category ui/toc
|
|
447
503
|
* @since 0.1.0
|
|
448
504
|
*/
|
|
449
|
-
declare function withTocAriaLabels(payload:
|
|
505
|
+
declare function withTocAriaLabels(payload: CngxTocAriaLabels | Signal<CngxTocAriaLabels>): CngxTocConfigFeature;
|
|
450
506
|
/**
|
|
451
507
|
* Set the app-wide default scroll behaviour used when a link is activated.
|
|
452
508
|
* `'smooth'` by default; the organism still swaps to `'auto'` at runtime
|
|
@@ -509,6 +565,17 @@ declare function withTocTemplates(payload: NonNullable<CngxTocConfig['templates'
|
|
|
509
565
|
* @since 0.1.0
|
|
510
566
|
*/
|
|
511
567
|
declare function injectTocConfig(): CngxTocConfig;
|
|
568
|
+
/**
|
|
569
|
+
* The resolved accessible names of the toc config in scope, every key the
|
|
570
|
+
* config leaves unset (also a key an override sets to `undefined`) filled from
|
|
571
|
+
* the `toc` section of the active pack, as a Signal that follows a runtime
|
|
572
|
+
* language switch. Runs in injection context; read it inside a `computed()`, a template
|
|
573
|
+
* or a handler.
|
|
574
|
+
*
|
|
575
|
+
* @category ui/toc
|
|
576
|
+
* @since 0.1.0
|
|
577
|
+
*/
|
|
578
|
+
declare function injectTocAriaLabels(): Signal<Required<CngxTocAriaLabels>>;
|
|
512
579
|
|
|
513
|
-
export { CNGX_TOC, CNGX_TOC_CONFIG, CngxToc, CngxTocItemSlot, CngxTocRouterSync, injectTocConfig, provideTocConfig, provideTocConfigAt, withTocAriaLabels, withTocScrollBehavior, withTocSpy, withTocTemplates };
|
|
514
|
-
export type { CngxTocConfig, CngxTocConfigFeature, CngxTocContract, CngxTocItem, CngxTocItemContext };
|
|
580
|
+
export { CNGX_TOC, CNGX_TOC_CONFIG, CNGX_TOC_DEFAULTS, CNGX_TOC_LANGUAGE_EN, CngxToc, CngxTocItemSlot, CngxTocRouterSync, injectTocAriaLabels, injectTocConfig, provideTocConfig, provideTocConfigAt, withTocAriaLabels, withTocScrollBehavior, withTocSpy, withTocTemplates };
|
|
581
|
+
export type { CngxTocAriaLabels, CngxTocConfig, CngxTocConfigFeature, CngxTocContract, CngxTocItem, CngxTocItemContext, CngxTocLanguageSection };
|
package/types/cngx-ui.d.ts
CHANGED
|
@@ -8,10 +8,13 @@ export { CngxFailed, CngxPending, CngxSucceeded } from '@cngx/common/interactive
|
|
|
8
8
|
/**
|
|
9
9
|
* @cngx/ui
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
11
|
+
* Organism layer of cngx: 26 secondary entry points (layout, overlay,
|
|
12
|
+
* feedback, stepper/mat-stepper, tabs/mat-tabs, accordion/mat-accordion,
|
|
13
|
+
* paginator/mat-paginator, sidenav, breadcrumb, timeline, toc,
|
|
14
|
+
* command-palette, context-menu, collection, stat-card, chart-panel,
|
|
15
|
+
* data-grid-accordion, empty-state, action-button, skeleton, speak, a11y).
|
|
16
|
+
* Import from the specific entry point; the root barrel keeps only a
|
|
17
|
+
* small backwards-compat set (see public-api.ts).
|
|
15
18
|
*/
|
|
16
19
|
/** @internal - replaced at publish time, not part of consumer API. */
|
|
17
20
|
declare const VERSION: _cngx_utils.Version;
|