@cngx/ui 0.1.0-rc.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +118 -59
- package/action-button/README.md +170 -53
- package/breadcrumb/README.md +5 -6
- package/collection/README.md +1 -1
- package/command-palette/README.md +9 -5
- package/data-grid-accordion/README.md +1 -1
- package/empty-state/README.md +2 -3
- package/feedback/README.md +1 -1
- package/fesm2022/cngx-ui-a11y.mjs +13 -23
- package/fesm2022/cngx-ui-a11y.mjs.map +1 -1
- package/fesm2022/cngx-ui-accordion.mjs +55 -60
- package/fesm2022/cngx-ui-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-action-button.mjs +220 -339
- package/fesm2022/cngx-ui-action-button.mjs.map +1 -1
- package/fesm2022/cngx-ui-breadcrumb.mjs +100 -80
- package/fesm2022/cngx-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/cngx-ui-chart-panel.mjs +18 -31
- package/fesm2022/cngx-ui-chart-panel.mjs.map +1 -1
- package/fesm2022/cngx-ui-collection.mjs +28 -34
- package/fesm2022/cngx-ui-collection.mjs.map +1 -1
- package/fesm2022/cngx-ui-command-palette.mjs +29 -51
- package/fesm2022/cngx-ui-command-palette.mjs.map +1 -1
- package/fesm2022/cngx-ui-context-menu.mjs +138 -89
- package/fesm2022/cngx-ui-context-menu.mjs.map +1 -1
- package/fesm2022/cngx-ui-data-grid-accordion.mjs +135 -77
- package/fesm2022/cngx-ui-data-grid-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-empty-state.mjs +17 -44
- package/fesm2022/cngx-ui-empty-state.mjs.map +1 -1
- package/fesm2022/cngx-ui-feedback.mjs +648 -495
- package/fesm2022/cngx-ui-feedback.mjs.map +1 -1
- package/fesm2022/cngx-ui-layout.mjs +17 -13
- package/fesm2022/cngx-ui-layout.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-accordion.mjs +6 -7
- package/fesm2022/cngx-ui-mat-accordion.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-paginator.mjs +5 -9
- package/fesm2022/cngx-ui-mat-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-stepper.mjs +6 -9
- package/fesm2022/cngx-ui-mat-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-mat-tabs.mjs +315 -134
- package/fesm2022/cngx-ui-mat-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-nav-rail.mjs +440 -0
- package/fesm2022/cngx-ui-nav-rail.mjs.map +1 -0
- package/fesm2022/cngx-ui-overlay.mjs +9 -10
- package/fesm2022/cngx-ui-overlay.mjs.map +1 -1
- package/fesm2022/cngx-ui-paginator.mjs +212 -188
- package/fesm2022/cngx-ui-paginator.mjs.map +1 -1
- package/fesm2022/cngx-ui-sidenav.mjs +872 -721
- package/fesm2022/cngx-ui-sidenav.mjs.map +1 -1
- package/fesm2022/cngx-ui-skeleton.mjs +17 -19
- package/fesm2022/cngx-ui-skeleton.mjs.map +1 -1
- package/fesm2022/cngx-ui-speak.mjs +21 -74
- package/fesm2022/cngx-ui-speak.mjs.map +1 -1
- package/fesm2022/cngx-ui-stat-card.mjs +39 -62
- package/fesm2022/cngx-ui-stat-card.mjs.map +1 -1
- package/fesm2022/cngx-ui-stepper.mjs +259 -130
- package/fesm2022/cngx-ui-stepper.mjs.map +1 -1
- package/fesm2022/cngx-ui-tabs.mjs +148 -50
- package/fesm2022/cngx-ui-tabs.mjs.map +1 -1
- package/fesm2022/cngx-ui-timeline.mjs +48 -32
- package/fesm2022/cngx-ui-timeline.mjs.map +1 -1
- package/fesm2022/cngx-ui-toc.mjs +59 -48
- package/fesm2022/cngx-ui-toc.mjs.map +1 -1
- package/fesm2022/cngx-ui.mjs +5 -5
- package/fesm2022/cngx-ui.mjs.map +1 -1
- package/mat-tabs/README.md +57 -19
- package/mat-tabs/styles/mat-tabs.css +285 -163
- package/nav-rail/README.md +325 -0
- package/package.json +37 -8
- package/paginator/README.md +10 -0
- package/schematics/collection.json +9 -0
- package/schematics/ng-add/index.js +9 -0
- package/schematics/ng-add/schema.json +96 -0
- package/schematics/package.json +3 -0
- package/sidenav/README.md +150 -55
- package/skeleton/README.md +1 -1
- package/speak/README.md +1 -2
- package/stepper/README.md +20 -5
- package/tabs/README.md +13 -0
- package/timeline/README.md +1 -1
- package/toc/README.md +1 -1
- package/types/cngx-ui-a11y.d.ts +20 -38
- package/types/cngx-ui-accordion.d.ts +46 -71
- package/types/cngx-ui-action-button.d.ts +113 -151
- package/types/cngx-ui-breadcrumb.d.ts +60 -85
- package/types/cngx-ui-chart-panel.d.ts +22 -40
- package/types/cngx-ui-collection.d.ts +30 -43
- package/types/cngx-ui-command-palette.d.ts +40 -64
- package/types/cngx-ui-context-menu.d.ts +109 -48
- package/types/cngx-ui-data-grid-accordion.d.ts +50 -75
- package/types/cngx-ui-empty-state.d.ts +18 -8
- package/types/cngx-ui-feedback.d.ts +275 -292
- package/types/cngx-ui-layout.d.ts +4 -12
- package/types/cngx-ui-mat-accordion.d.ts +5 -5
- package/types/cngx-ui-mat-paginator.d.ts +4 -10
- package/types/cngx-ui-mat-stepper.d.ts +5 -10
- package/types/cngx-ui-mat-tabs.d.ts +86 -89
- package/types/cngx-ui-nav-rail.d.ts +416 -0
- package/types/cngx-ui-overlay.d.ts +4 -13
- package/types/cngx-ui-paginator.d.ts +186 -161
- package/types/cngx-ui-sidenav.d.ts +557 -437
- package/types/cngx-ui-skeleton.d.ts +7 -13
- package/types/cngx-ui-speak.d.ts +40 -24
- package/types/cngx-ui-stat-card.d.ts +45 -36
- package/types/cngx-ui-stepper.d.ts +205 -84
- package/types/cngx-ui-tabs.d.ts +104 -28
- package/types/cngx-ui-timeline.d.ts +31 -51
- package/types/cngx-ui-toc.d.ts +43 -54
- package/types/cngx-ui.d.ts +1 -1
package/sidenav/README.md
CHANGED
|
@@ -5,36 +5,34 @@ Declarative sidebar component. Responsive out of the box: the rail docks beside
|
|
|
5
5
|
## Import
|
|
6
6
|
|
|
7
7
|
```typescript
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
CngxSidenavLayout,
|
|
11
|
-
CngxSidenavContent,
|
|
12
|
-
CngxSidenavHeader,
|
|
13
|
-
CngxSidenavFooter,
|
|
14
|
-
} from '@cngx/ui';
|
|
8
|
+
import { CngxSidenav, CngxSidenavLayout, CngxSidenavContent } from '@cngx/ui/sidenav';
|
|
9
|
+
import { CngxNavHeader, CngxNavFooter, CngxNavLink } from '@cngx/common/interactive';
|
|
15
10
|
```
|
|
16
11
|
|
|
12
|
+
## Sidebar, drawer, sidenav or nav rail
|
|
13
|
+
|
|
14
|
+
| Artifact | Role | Owns | Does not do | Pick when |
|
|
15
|
+
|-|-|-|-|-|
|
|
16
|
+
| `[cngxSidebar]` (`@cngx/common/layout`) | A side region that stays in the layout | Expanded, rail and hidden state, the reserved inline size, the hover peek, `inert` and `aria-hidden` while hidden | No overlay, scrim or focus trap; no navigation rows | You build your own app shell around a persistent panel |
|
|
17
|
+
| `[cngxDrawer]` (`@cngx/common/layout`) | A panel that opens for a moment, over (`over`) or beside (`push`) the content | Open state, modality (`page`, `contained`, `none`): focus trap, `inert`, scroll lock, Escape and outside-press dismissal; the scrim with `class="cngx-drawer"` | No resting rail, no reserved space while closed | Navigation or filters that appear on demand, a mobile menu |
|
|
18
|
+
| `cngx-sidenav` (`@cngx/ui/sidenav`) | The finished navigation organism on a composed sidebar | Header and footer slots, width classes (drawer below 48rem, rail with the full nav as an overlay from 48rem, docked from 64rem), rail tooltip and group flyout, resize, shortcut, router sync | No rail that stays a rail on every layout | The app navigation that expands, collapses to a rail and turns into a drawer on narrow layouts |
|
|
19
|
+
| `cngx-nav-rail` (`@cngx/ui/nav-rail`) | A navigation column that is only ever a rail | Icon rows with the label as a tooltip or below the icon, groups as flyouts, the side | No open state, backdrop, focus trap, expand or peek | Primary navigation with a few top-level sections that never needs full-width labels |
|
|
20
|
+
|
|
17
21
|
## Quick Start
|
|
18
22
|
|
|
19
23
|
```typescript
|
|
20
24
|
import { Component, signal } from '@angular/core';
|
|
21
|
-
import { CngxNavLink } from '@cngx/common';
|
|
22
|
-
import {
|
|
23
|
-
CngxSidenav,
|
|
24
|
-
CngxSidenavLayout,
|
|
25
|
-
CngxSidenavContent,
|
|
26
|
-
CngxSidenavHeader,
|
|
27
|
-
CngxSidenavFooter,
|
|
28
|
-
} from '@cngx/ui';
|
|
25
|
+
import { CngxNavFooter, CngxNavHeader, CngxNavLink } from '@cngx/common/interactive';
|
|
26
|
+
import { CngxSidenav, CngxSidenavLayout, CngxSidenavContent } from '@cngx/ui/sidenav';
|
|
29
27
|
|
|
30
28
|
@Component({
|
|
31
29
|
selector: 'app-example',
|
|
32
30
|
template: `
|
|
33
31
|
<cngx-sidenav-layout>
|
|
34
32
|
<cngx-sidenav position="start" [(opened)]="navOpen">
|
|
35
|
-
<cngx-
|
|
33
|
+
<cngx-nav-header>Logo</cngx-nav-header>
|
|
36
34
|
<a cngxNavLink [active]="true">Dashboard</a>
|
|
37
|
-
<cngx-
|
|
35
|
+
<cngx-nav-footer>v1.0</cngx-nav-footer>
|
|
38
36
|
</cngx-sidenav>
|
|
39
37
|
<cngx-sidenav-content>
|
|
40
38
|
<router-outlet />
|
|
@@ -45,8 +43,8 @@ import {
|
|
|
45
43
|
CngxSidenav,
|
|
46
44
|
CngxSidenavLayout,
|
|
47
45
|
CngxSidenavContent,
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
CngxNavHeader,
|
|
47
|
+
CngxNavFooter,
|
|
50
48
|
CngxNavLink,
|
|
51
49
|
],
|
|
52
50
|
})
|
|
@@ -57,34 +55,64 @@ export class ExampleComponent {
|
|
|
57
55
|
|
|
58
56
|
## Overview
|
|
59
57
|
|
|
60
|
-
`CngxSidenav` is a composable sidebar component that handles drawer behavior, keyboard shortcuts, width-driven mode switching, and optional resize functionality.
|
|
58
|
+
`CngxSidenav` is a composable sidebar component that handles drawer behavior, keyboard shortcuts, width-driven mode switching, and optional resize functionality. An open overlay runs on a composed `CngxDrawerSurface` (focus trap, `inert`, scroll lock, dismissal); `CngxSidenavLayout` draws the backdrop.
|
|
61
59
|
|
|
62
60
|
Key features:
|
|
63
61
|
|
|
64
|
-
- **Responsive by default:** `mode` is `auto` unless you say otherwise -
|
|
65
|
-
- **Mode switching:** bind `mode` to pin
|
|
62
|
+
- **Responsive by default:** `mode` is `auto` unless you say otherwise - it follows the width class of the surrounding layout: a drawer (`over`) below `48rem`, a collapsed rail with the full nav as an overlay from `48rem`, docked (`side`) from `64rem`
|
|
63
|
+
- **Mode switching:** bind `mode` to pin `over` (overlay) or `side` (docked); the former push is `side` with `collapsedAs="hidden"`
|
|
64
|
+
- **Collapsed rail:** `[(collapsed)]` rests a docked rail as an icon rail (`collapsedAs="rail"`, a crop of the expanded sidenav, see [The collapsed rail](#the-collapsed-rail)) or hides it (`collapsedAs="hidden"`); a collapsed rail peeks at full width over the content after a tunable hover dwell (`[expandDelay]` / `[collapseDelay]`). The rail is a composed `CngxSidebar` from `@cngx/common/layout`
|
|
66
65
|
- **Two-way binding:** `[(opened)]` synchronizes with external state
|
|
67
|
-
- **Resize:** Optional drag handle with min/max constraints
|
|
66
|
+
- **Resize:** Optional drag handle with min/max constraints (see [Resize](#resize))
|
|
68
67
|
- **Keyboard:** Escape closes overlay, configurable global shortcut via `[shortcut]`
|
|
69
|
-
- **RTL-aware:** `position="start"` / `"end"` flip logically in RTL
|
|
68
|
+
- **RTL-aware:** `position="start"` / `"end"` flip logically in RTL. `SidenavPosition` is an alias of `CngxSidebarSide` (`@cngx/common/layout`), the side the composed sidebar and the rail helpers take
|
|
70
69
|
- **Deep-linking:** persist open state to a URL query param via `[cngxSidenavRouterSync]` (see [Deep-linking](#deep-linking-router-sync))
|
|
71
|
-
- **App-wide defaults:** `CNGX_SIDENAV_CONFIG` cascade
|
|
70
|
+
- **App-wide defaults:** `CNGX_SIDENAV_CONFIG` cascade with six features: dimensions, shortcut, hover dwell, router-sync param, labels and persistence (see [Configuration](#configuration))
|
|
71
|
+
|
|
72
|
+
## Header, footer and rows
|
|
73
|
+
|
|
74
|
+
The sidenav projects `cngx-nav-header` / `[cngxNavHeader]` above its scrolling body and `cngx-nav-footer` / `[cngxNavFooter]` below it. Header, footer and the `cngxNavLink` / `cngxNavGroup` / `cngxNavLabel` / `cngxNavBadge` rows are the nav atoms of `@cngx/common/interactive`, skinned by `cngx-nav.css`, which `@cngx/themes/cngx.css` loads. The sidenav only SETs their tokens on its host (fills, focus ring, inset, padding, header and footer borders), so the same rows look the same in a `cngxSidebar` or a plain `<nav>`.
|
|
75
|
+
|
|
76
|
+
The row tokens, the icon slot and its letter fallback, and the header, footer, mark and name slots are documented in the [nav atoms README](../../common/interactive/nav/README.md#theming).
|
|
77
|
+
|
|
78
|
+
## The collapsed rail
|
|
79
|
+
|
|
80
|
+
The rail is a crop of the expanded sidenav. Collapsing only narrows the width; nothing is swapped or hidden, so no row, mark or active bar changes place between rail, peek and expanded.
|
|
81
|
+
|
|
82
|
+
- **Width:** unbound, the rail is `2 * (row inset + row inline padding) + icon size + border width` wide (61px with the default tokens), the width of `cngx-nav-rail`, so the icon box sits centred. `[miniWidth]` or `withSidenavDimensions({ miniWidth })` overrides it; the host is `box-sizing: border-box`, so the width includes the edge border.
|
|
83
|
+
- **Rows:** each row keeps its icon (`[cngxNavIcon]`) or its letter fallback in the icon box, at the same x as in the expanded sidenav. The label, a badge and the group chevron sit past the clipped row end and fade out; they stay in the accessible name. Section labels keep their box and paint nothing, so the rows below keep their y. In the header and footer the `[cngxNavMark]` keeps its x and the `[cngxNavName]` fades.
|
|
84
|
+
- **Groups:** a `cngxNavGroup` stays a row on the rail. Activating it opens its `cngxNavGroupContent` as a flyout beside the head, away from the rail's side: a disclosure, not a menu, so `aria-expanded` on the head is the one state and the links stay in the tab order. Escape on the head or in the flyout, focus leaving it or a press outside closes it and returns focus to the head. Entering the rail closes every open group, so none pops up as a flyout by itself.
|
|
85
|
+
- **Tooltip:** a railed row shows its label in a tooltip after a hover delay and at once on keyboard focus. The tooltip is visual only (`aria-hidden`): the label is already the row's accessible name. A rail you build on `[cngxSidebar]` sets that delay with `[cngxNavRailedHoverDelay]` on its `[cngxNavRailed]` host.
|
|
86
|
+
- **Transitions:** rail, peek and expanded move only the width (and the peek's compensating margin, so the content does not shift). Labels, badges, chevrons and the header name fade in after `--cngx-duration-fast` while the width grows and drop out at once on the way back. Under reduced motion the global motion net switches the state without intermediate frames.
|
|
87
|
+
|
|
88
|
+
The flyout and the tooltip are the rail pieces of the nav atoms in `@cngx/common/interactive` (`injectNavRailFlyout`, `injectNavRailTooltip`), with the sidenav `position` as their side. That follows from the existing pieces:
|
|
89
|
+
|
|
90
|
+
- Tooltip and flyout attach only while the sidenav rests as a rail. Peek, expanded, an overlay (`over`, also in the `compact` and `medium` width classes) and `collapsedAs="hidden"` are not railed.
|
|
91
|
+
- The hover peek is on by default (`expandOnHover`) and settles after about 120ms, before the 300ms tooltip delay. A pointer on the rail therefore gets the peek, not the tooltip: the tooltip shows on keyboard focus, and for the pointer when `expandOnHover` is off.
|
|
92
|
+
- A flyout opened by keyboard turns into the inline group when a pointer peek starts, and that group closes when the peek ends.
|
|
93
|
+
- `[tooltip]` switches the tooltip per sidenav; unbound, `withNavRailTooltip` of `CNGX_NAV_RAIL_CONFIG` applies, else it is on. The delay comes from the same config (`withNavRailTooltipDelay`). An override of `CNGX_NAV_RAIL_TOOLTIP_FACTORY` / `CNGX_NAV_RAIL_FLYOUT_FACTORY` applies to the sidenav and to `cngx-nav-rail` alike.
|
|
72
94
|
|
|
73
95
|
## Container, not viewport
|
|
74
96
|
|
|
75
97
|
The docking decision reads the width of the surrounding `CngxSidenavLayout`, not the width of the window. A rail inside a dashboard pane collapses when that pane is narrow, whatever the browser window is doing.
|
|
76
98
|
|
|
77
|
-
The
|
|
99
|
+
The thresholds live in exactly one place - a `@container` rule block in `sidenav-layout.css` that writes `--cngx-sidenav-width-class` on the rail. Below 48rem the class is `compact` (the rail is a drawer), from 48rem `medium`, from 64rem `expanded` (both dock the rail). Override both rules to move the thresholds:
|
|
78
100
|
|
|
79
101
|
```css
|
|
80
|
-
@container cngx-sidenav-layout (min-inline-size:
|
|
102
|
+
@container cngx-sidenav-layout (min-inline-size: 40rem) {
|
|
81
103
|
cngx-sidenav-layout > cngx-sidenav {
|
|
82
|
-
--cngx-sidenav-
|
|
104
|
+
--cngx-sidenav-width-class: medium;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@container cngx-sidenav-layout (min-inline-size: 72rem) {
|
|
109
|
+
cngx-sidenav-layout > cngx-sidenav {
|
|
110
|
+
--cngx-sidenav-width-class: expanded;
|
|
83
111
|
}
|
|
84
112
|
}
|
|
85
113
|
```
|
|
86
114
|
|
|
87
|
-
`CngxSidenav` reads the resolved value
|
|
115
|
+
`CngxSidenav` reads the resolved value as `widthClass()`; it never evaluates a condition itself. A value outside the three classes renders as `compact` and warns [`CNGX3026`](../../../core-concepts/error-codes/cngx3026.md) in dev mode. To opt out of auto entirely, bind `mode`:
|
|
88
116
|
|
|
89
117
|
```html
|
|
90
118
|
<!-- always an overlay, whatever the layout width -->
|
|
@@ -93,11 +121,28 @@ The threshold lives in exactly one place - a `@container` rule in `sidenav-layou
|
|
|
93
121
|
|
|
94
122
|
A rail mounted without `<cngx-sidenav-layout>` has no container to measure; it renders as `over` and warns in dev mode.
|
|
95
123
|
|
|
124
|
+
The layout projects each rail into its start or end slot by the static `position` attribute, and persistence keys on it too. A bound `[position]` moves only a standalone rail.
|
|
125
|
+
|
|
96
126
|
See `core-concepts/responsive-by-default.md` for the library-wide contract.
|
|
97
127
|
|
|
128
|
+
## External toggle
|
|
129
|
+
|
|
130
|
+
A hamburger outside the rail toggles it with one `CngxPanelTrigger` (`@cngx/common/layout`) bound to the rail's `panelTarget`. The trigger sets `aria-controls` and mirrors `expanded` as `aria-expanded`, and `toggle()` follows the width class: it collapses the docked rail in `expanded`, opens the full nav over the rail in `medium` and the drawer in `compact`. A bare `cngxPanelTrigger` inside the rail (a pin or close button) resolves the same target through `CNGX_PANEL_TARGET`.
|
|
131
|
+
|
|
132
|
+
```html
|
|
133
|
+
<button type="button" [cngxPanelTrigger]="nav.panelTarget">Menu</button>
|
|
134
|
+
|
|
135
|
+
<cngx-sidenav-layout>
|
|
136
|
+
<cngx-sidenav #nav="cngxSidenav">…</cngx-sidenav>
|
|
137
|
+
<cngx-sidenav-content>…</cngx-sidenav-content>
|
|
138
|
+
</cngx-sidenav-layout>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
An open overlay closes on any press outside the rail, except inside an element whose `aria-controls` lists the rail's id. A hand-rolled toggle needs that attribute: without it its press dismisses the rail and its `click` reopens it. Every rail has an id: a generated one by default, or the static `id="..."` you set on the host (read it back via `nav.id()`).
|
|
142
|
+
|
|
98
143
|
## Configuration
|
|
99
144
|
|
|
100
|
-
Every dimension default, the toggle shortcut,
|
|
145
|
+
Every dimension default, the toggle shortcut, the rail hover dwell, the router-sync param, the copy and the `collapsed` persistence resolve through a standard cascade. The docking threshold is deliberately not in the cascade - it is a CSS rule (see above), so it travels with the skin. Per-instance bindings always win; unset keys fall back to the library defaults, so an unconfigured `<cngx-sidenav>` behaves exactly as before.
|
|
101
146
|
|
|
102
147
|
Resolution priority (high to low):
|
|
103
148
|
|
|
@@ -112,13 +157,13 @@ import {
|
|
|
112
157
|
withSidenavDimensions,
|
|
113
158
|
withSidenavShortcut,
|
|
114
159
|
withSidenavHoverDwell,
|
|
115
|
-
} from '@cngx/ui';
|
|
160
|
+
} from '@cngx/ui/sidenav';
|
|
116
161
|
|
|
117
162
|
bootstrapApplication(AppComponent, {
|
|
118
163
|
providers: [
|
|
119
164
|
provideSidenavConfig(
|
|
120
165
|
withSidenavDimensions({ width: '320px', miniWidth: '64px' }),
|
|
121
|
-
withSidenavShortcut('mod
|
|
166
|
+
withSidenavShortcut('mod+.'),
|
|
122
167
|
withSidenavHoverDwell({ enterDelay: 200, leaveDelay: 150 }),
|
|
123
168
|
),
|
|
124
169
|
],
|
|
@@ -128,22 +173,43 @@ bootstrapApplication(AppComponent, {
|
|
|
128
173
|
| Feature | Overrides |
|
|
129
174
|
|-|-|
|
|
130
175
|
| `withSidenavDimensions({ width?, miniWidth?, minWidth?, maxWidth? })` | Panel dimensions |
|
|
131
|
-
| `withSidenavShortcut(combo)` | Default toggle shortcut |
|
|
132
|
-
| `withSidenavHoverDwell({ enterDelay?, leaveDelay? })` |
|
|
176
|
+
| `withSidenavShortcut(combo)` | Default toggle shortcut for `position="start"` rails; an `end` rail needs its own `[shortcut]` |
|
|
177
|
+
| `withSidenavHoverDwell({ enterDelay?, leaveDelay? })` | Collapsed-rail peek dwell (ms) |
|
|
133
178
|
| `withSidenavRouterSync({ param })` | Default deep-link query-param key |
|
|
179
|
+
| `withSidenavLabels(labels)` | Copy: region names, resize handle label and value text, toggle announcements, shortcut description; a partial bundle or a `Signal` of one |
|
|
180
|
+
| `withSidenavPersistence(storageKey?)` | Persist each rail's `collapsed` in `CNGX_SIDENAV_STORAGE` under `<storageKey>:<position>`; seeds an unbound `collapsed` |
|
|
181
|
+
|
|
182
|
+
Read the resolved config in an injection context with `injectSidenavConfig()`. Scope overrides to a sub-tree with `provideSidenavConfigAt(...)` in a component's `viewProviders`. Each level applies its features on top of the level above:
|
|
183
|
+
|
|
184
|
+
| Key | Combines with the level above |
|
|
185
|
+
|-|-|
|
|
186
|
+
| `dimensions`, `hover`, `routerSync`, `labels` | Merge per key |
|
|
187
|
+
| `shortcut`, `persistence` | Replace |
|
|
134
188
|
|
|
135
|
-
|
|
189
|
+
Pass only the keys you set: an explicit `undefined` inside a merged key overrides the parent.
|
|
136
190
|
|
|
137
|
-
###
|
|
191
|
+
### Labels
|
|
138
192
|
|
|
139
|
-
|
|
193
|
+
Unset labels read the `sidenav` section of the language pack; `CNGX_SIDENAV_LANGUAGE_EN` is the English section. `injectSidenavLabels()` returns the resolved labels as a `Signal`, the config on top of the section.
|
|
194
|
+
|
|
195
|
+
### Rail hover dwell
|
|
196
|
+
|
|
197
|
+
A collapsed rail peeks only after the pointer rests for `expandDelay` ms and the peek ends `collapseDelay` ms after it leaves, so a sweep across the rail never peeks it. Both are tunable per instance and app-wide:
|
|
140
198
|
|
|
141
199
|
```html
|
|
142
|
-
<cngx-sidenav mode="
|
|
200
|
+
<cngx-sidenav mode="side" [collapsed]="true" [expandDelay]="250" [collapseDelay]="150">...</cngx-sidenav>
|
|
143
201
|
```
|
|
144
202
|
|
|
145
203
|
Defaults are `expandDelay` 120ms and `collapseDelay` 0ms (instant collapse). The app-wide default is `withSidenavHoverDwell({ enterDelay, leaveDelay })`; per-instance `[expandDelay]` / `[collapseDelay]` win over it.
|
|
146
204
|
|
|
205
|
+
## Resize
|
|
206
|
+
|
|
207
|
+
`[resizable]` adds a drag handle while the rail is expanded. It is a window splitter (`CngxResizable`): pointer drag and arrow keys within `[minWidth]` and `[maxWidth]`, `[(width)]` two-way. `[resizeLabel]` names the separator (default: the `resizeHandle` label); `aria-valuetext` speaks its position as a percent of the min-max range (`resizeValueText`).
|
|
208
|
+
|
|
209
|
+
```html
|
|
210
|
+
<cngx-sidenav mode="side" [resizable]="true" [(width)]="navWidth" resizeLabel="Resize menu">…</cngx-sidenav>
|
|
211
|
+
```
|
|
212
|
+
|
|
147
213
|
## Deep-linking (router sync)
|
|
148
214
|
|
|
149
215
|
Add `[cngxSidenavRouterSync]` to a `<cngx-sidenav>` to persist its open state in a URL query param. Opening writes `?nav=open`, an initial `?nav=open` restores it open on load, closing removes the param, and browser back/forward re-hydrates it. The directive reaches the rail through the `CNGX_SIDENAV` contract token and delegates to `injectQueryParamSync` from `@cngx/common/layout`.
|
|
@@ -154,7 +220,7 @@ import {
|
|
|
154
220
|
CngxSidenavLayout,
|
|
155
221
|
CngxSidenavContent,
|
|
156
222
|
CngxSidenavRouterSync,
|
|
157
|
-
} from '@cngx/ui';
|
|
223
|
+
} from '@cngx/ui/sidenav';
|
|
158
224
|
```
|
|
159
225
|
|
|
160
226
|
```html
|
|
@@ -163,51 +229,50 @@ import {
|
|
|
163
229
|
</cngx-sidenav>
|
|
164
230
|
```
|
|
165
231
|
|
|
166
|
-
The query-param key defaults to `nav
|
|
232
|
+
The query-param key defaults to `nav` on a start rail and `nav-end` on an end rail, so two synced rails in one layout never open each other. The default reads the static `position` attribute. Override it per instance with `[param]`, or move the app-wide default through the config cascade:
|
|
167
233
|
|
|
168
234
|
```typescript
|
|
169
|
-
import { provideSidenavConfig, withSidenavRouterSync } from '@cngx/ui';
|
|
235
|
+
import { provideSidenavConfig, withSidenavRouterSync } from '@cngx/ui/sidenav';
|
|
170
236
|
|
|
171
237
|
provideSidenavConfig(withSidenavRouterSync({ param: 'menu' }));
|
|
172
238
|
```
|
|
173
239
|
|
|
174
|
-
Resolution order for the key: per-instance `[param]` beats `withSidenavRouterSync({ param })`, which beats the `nav` literal. `router.navigate` rejections surface on the directive's `(syncError)` output. Without `@angular/router` the directive dev-warns once and no-ops.
|
|
240
|
+
Resolution order for the key: per-instance `[param]` beats `withSidenavRouterSync({ param })`, which beats the `nav` / `nav-end` literal. A config param applies to every rail, so a two-rail layout binds `[param]` on one of them. `router.navigate` rejections surface on the directive's `(syncError)` output. Without `@angular/router` the directive dev-warns once and no-ops.
|
|
175
241
|
|
|
176
242
|
## Accessibility
|
|
177
243
|
|
|
178
|
-
- **ARIA roles:**
|
|
244
|
+
- **ARIA roles:** The rail is a `role="navigation"` landmark while docked or closed, on either edge (its body is nav rows). A bound `[role]` wins (`complementary` for an inspector rail, `null` keeps the host's implicit role). An open overlay (`over`, including `auto` below the threshold) is a modal dialog instead: `role="dialog"` with `aria-modal="true"`, matching its focus trap, Escape and backdrop. `aria-modal` never appears without `role="dialog"`. In overlay mode, `aria-hidden="true"` and `inert` when closed. `modality="contained"` keeps the modal inside the layout and `modality="none"` keeps the page operable (no trap, no backdrop, the rail stays a landmark).
|
|
245
|
+
- **Accessible name:** Every rail is named. Resolution: `[ariaLabel]`, then `withSidenavLabels({ startRegion, endRegion })`, then the `sidenav` language section. The default depends on `position`: `Navigation` for `start`, `Side panel` for `end`, so two rails never share one name. Two rails in one layout are two landmarks: when you bind `[ariaLabel]` on one, bind it on both.
|
|
179
246
|
- **Keyboard interaction:**
|
|
180
247
|
- `Escape` - Closes overlay mode sidenav
|
|
181
|
-
- Custom shortcut (if configured) -
|
|
182
|
-
- **Screen reader:**
|
|
183
|
-
- **Focus management:**
|
|
248
|
+
- Custom shortcut (if configured, e.g. `mod+.`) - Runs `toggle()` from anywhere on the page and announces "Navigation expanded" / "Navigation collapsed" (`collapsedAnnouncement` / `expandedAnnouncement` labels; `CNGX_SIDENAV_ANNOUNCER_FACTORY` swaps the announcer, `createSidenavAnnouncer` is the default factory to wrap). It is a `sidenav.toggle` binding in the app hotkey registry, so it stays quiet while another modal holds focus; the help list shows it as "Toggle navigation" (`toggleShortcut` label)
|
|
249
|
+
- **Screen reader:** The landmark or dialog announces the rail's name; while a page-modal overlay is open everything outside it is `inert`, so the body content is not reachable.
|
|
250
|
+
- **Focus management:** An open overlay (`modality="page"`) traps Tab within the rail, moves focus into the rail on open, and restores focus to the element that opened it on close. Focus inside a closing drawer is moved out before it turns `aria-hidden`.
|
|
184
251
|
|
|
185
252
|
## Composition
|
|
186
253
|
|
|
187
254
|
`CngxSidenav` composes these atoms internally:
|
|
188
255
|
|
|
189
|
-
- **
|
|
190
|
-
- **Keyboard shortcut:**
|
|
191
|
-
- **
|
|
192
|
-
- **Resize:**
|
|
256
|
+
- **Width class:** the layout's `CngxContainer` publishes `--cngx-sidenav-width-class`
|
|
257
|
+
- **Keyboard shortcut:** `injectHotkeys` binding `sidenav.toggle` in the rail's hotkey scope (`@cngx/common/interactive`)
|
|
258
|
+
- **Overlay:** `CngxDrawerSurface` host directive (focus trap, focus restore, `inert`, scroll lock, Escape / back gesture / outside press), driven per `modality`
|
|
259
|
+
- **Resize:** `CngxResizable` (`@cngx/common/layout`) on the handle: window-splitter ARIA, pointer drag, arrow keys
|
|
193
260
|
- **Mini hover intent:** Debounced expand-on-hover via the composed `CngxHoverIntent` host directive (`@cngx/common/interactive`), reading `CNGX_HOVER_INTENT_DEFAULTS` from the resolved config
|
|
194
261
|
|
|
195
262
|
|
|
196
263
|
## Material Theme
|
|
197
264
|
|
|
198
|
-
Include the theme SCSS
|
|
265
|
+
Include the theme SCSS file in your global stylesheet. It includes the nav-link bridge for the rows, header and footer, so no separate import is needed:
|
|
199
266
|
|
|
200
267
|
```scss
|
|
201
268
|
@use '@angular/material' as mat;
|
|
202
269
|
@use '@cngx/themes/material/sidenav-theme' as sidenav;
|
|
203
|
-
@use '@cngx/themes/material/nav-link-theme' as nav-link;
|
|
204
270
|
|
|
205
271
|
$theme: mat.define-theme((...));
|
|
206
272
|
|
|
207
273
|
html {
|
|
208
274
|
@include mat.all-component-themes($theme);
|
|
209
275
|
@include sidenav.theme($theme);
|
|
210
|
-
@include nav-link.theme($theme);
|
|
211
276
|
}
|
|
212
277
|
```
|
|
213
278
|
|
|
@@ -215,6 +280,36 @@ The theme mixin provides:
|
|
|
215
280
|
|
|
216
281
|
- Base spacing and timing tokens
|
|
217
282
|
- Material 3 system color tokens (`--mat-sys-*`) with fallback RGB values
|
|
218
|
-
- Material 2 palette color mappings
|
|
219
283
|
- Backdrop, header, and footer styling
|
|
220
|
-
-
|
|
284
|
+
- M3 themes only; an M2 theme is not bridged
|
|
285
|
+
|
|
286
|
+
### Brand rail under the bridge
|
|
287
|
+
|
|
288
|
+
A rail that sets its own `--cngx-sidenav-bg` and `--cngx-sidenav-color` gets that surface, ink and focus ring, but its rows, header and footer keep their Material roles. The bridge SETs those tokens on the rows (`.cngx-nav-link`, `[cngxNavGroup]`) and on `.cngx-nav-header` / `.cngx-nav-footer` themselves, so a value on the `cngx-sidenav` host does not reach them. Set them on the same elements, scoped to the rail:
|
|
289
|
+
|
|
290
|
+
```css
|
|
291
|
+
cngx-sidenav.brand {
|
|
292
|
+
--cngx-sidenav-bg: #1e293b;
|
|
293
|
+
--cngx-sidenav-color: #f8fafc;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
cngx-sidenav.brand :is(.cngx-nav-link, [cngxNavGroup]) {
|
|
297
|
+
--cngx-nav-link-color: #f8fafc;
|
|
298
|
+
--cngx-nav-link-hover-color: #f8fafc;
|
|
299
|
+
--cngx-nav-link-ink: #cbd5e1;
|
|
300
|
+
--cngx-nav-link-hover-bg: rgb(248 250 252 / 0.08);
|
|
301
|
+
--cngx-nav-link-pressed-bg: rgb(248 250 252 / 0.12);
|
|
302
|
+
--cngx-nav-link-active-color: #0f172a;
|
|
303
|
+
--cngx-nav-link-active-bg: #bae6fd;
|
|
304
|
+
--cngx-nav-link-active-hover-bg: #7dd3fc;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
cngx-sidenav.brand :is(.cngx-nav-header, .cngx-nav-footer) {
|
|
308
|
+
--cngx-nav-header-bg: transparent;
|
|
309
|
+
--cngx-nav-footer-bg: transparent;
|
|
310
|
+
--cngx-nav-header-border-color: rgb(248 250 252 / 0.16);
|
|
311
|
+
--cngx-nav-footer-border-color: rgb(248 250 252 / 0.16);
|
|
312
|
+
}
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
Without the bridge none of this is needed: the rail host derives the row fills from `--cngx-color-primary` and the rows inherit the rail ink.
|
package/skeleton/README.md
CHANGED
|
@@ -83,4 +83,4 @@ The theme mixin provides:
|
|
|
83
83
|
- Base animation timing (`--cngx-spin-duration`, `--cngx-pulse-duration`)
|
|
84
84
|
- Color tokens derived from Material palette
|
|
85
85
|
- Reduced-motion respecting animations
|
|
86
|
-
-
|
|
86
|
+
- M3 themes only; an M2 theme is not bridged
|
package/speak/README.md
CHANGED
|
@@ -79,8 +79,7 @@ html {
|
|
|
79
79
|
The theme mixin provides:
|
|
80
80
|
|
|
81
81
|
- Material 3 system color tokens (`--mat-sys-*`) with fallback defaults
|
|
82
|
-
-
|
|
83
|
-
- Automatic theme version detection (M3 vs M2)
|
|
82
|
+
- No declarations for an M2 theme (M3 only)
|
|
84
83
|
|
|
85
84
|
## Philosophy: Cognitive Accessibility
|
|
86
85
|
|
package/stepper/README.md
CHANGED
|
@@ -50,7 +50,7 @@ The organism is W3C step-pattern compliant:
|
|
|
50
50
|
|-|-|-|
|
|
51
51
|
| `classic` | Numbered circles with connectors. The Phase A re-tuned default. | Default wizards, A11y-first flows. |
|
|
52
52
|
| `linear-minimal` | Label + 6px dot + dashed connector. | Long wizards on dense pages. |
|
|
53
|
-
| `stripe-status-rich` | Label + state pill (Done / In progress / Up next / Errored). | Sales / checkout flows where status legibility wins. |
|
|
53
|
+
| `stripe-status-rich` | Label + state pill (Done / In progress / Up next / Errored / Not allowed). | Sales / checkout flows where status legibility wins. |
|
|
54
54
|
| `path-chevron` | Boarding-pass chevron tiles. | High-identity branded flows. |
|
|
55
55
|
| `pill-segment` | iOS-style segmented control. | Compact toolbars. |
|
|
56
56
|
|
|
@@ -240,7 +240,7 @@ There is no separate `'free'` value - "free" is just `headerNavigation="visited"
|
|
|
240
240
|
|
|
241
241
|
Set the app-wide default with `provideStepperConfig(withStepperHeaderNavigation('none'))`; the per-instance `[headerNavigation]` input wins over it.
|
|
242
242
|
|
|
243
|
-
While a commit is in flight (`commitAction` pending), the `'visited'` headers lock - they go `aria-disabled`, click and arrow-key navigation no-op - so the strip cannot supersede the pending transition. This matches the footer nav atoms (`cngxStepperPrevious` / `cngxStepperNext`), which disable on `busy()` too; the strip and the footer lock together during an async step.
|
|
243
|
+
While a commit or the finish run is in flight (`commitAction` pending, or a `cngxStepperComplete` run), the `'visited'` headers lock - they go `aria-disabled`, click and arrow-key navigation no-op - so the strip cannot supersede the pending transition. This matches the footer nav atoms (`cngxStepperPrevious` / `cngxStepperNext`), which disable on `busy()` too; the strip and the footer lock together during an async step.
|
|
244
244
|
|
|
245
245
|
### Migration
|
|
246
246
|
|
|
@@ -248,16 +248,16 @@ The default is `'visited'`. For non-linear steppers (`linear="false"`, the defau
|
|
|
248
248
|
|
|
249
249
|
## Error channels
|
|
250
250
|
|
|
251
|
-
A step can be flagged as in error through two independent channels. Both render the same error **state** on every skin (the indicator /
|
|
251
|
+
A step can be flagged as in error through two independent channels. Both render the same error **state** on every skin (the indicator / tile turns errored and an alert icon follows the label); the error **message** surfaces separately.
|
|
252
252
|
|
|
253
253
|
|Channel|How you flag it|Where the message appears|
|
|
254
254
|
|-|-|-|
|
|
255
255
|
|Validation|`[error]="true \| 'message'"` on `cngxStep`, or `[errorAggregator]` for multi-source forms|a row **below the strip** (every classic-style skin) via `*cngxStepError`; folded into the aggregate line on the `text` / `dot` / `progress-bar` mini variants|
|
|
256
|
-
|Commit / async|a `commitAction` that
|
|
256
|
+
|Commit / async|a `commitAction` that refuses (`false`) or fails (throw, rejection, error); only the most recent attempt is shown, the next one replaces it|`*cngxStepRejection` icon (amber slashed circle refused, red alert triangle failed) on a tinted step; `CngxToastOn` / `CngxBannerOn` transition bridges on a failure only|
|
|
257
257
|
|
|
258
258
|
The message lives on its own row **below** the step strip, not inside a step. That is deliberate: a free-text message inside a horizontal (or column) strip item widens the shrink-to-fit step and tears the row; below the strip it has full width and wraps. The strip itself only ever carries the short state cue.
|
|
259
259
|
|
|
260
|
-
Only steps with a **real reason** show a message row - the bare `errored` state is already communicated by the indicator
|
|
260
|
+
Only steps with a **real reason** show a message row - the bare `errored` state is already communicated by the indicator and the alert icon, so a boolean `[error]="true"` adds no text-only noise. A reason is the direct `[error]` string or the first `errorAggregator` label.
|
|
261
261
|
|
|
262
262
|
The validation channel is the common case and needs no async machine. The simplest form is a single input:
|
|
263
263
|
|
|
@@ -282,3 +282,18 @@ Override the message presentation per instance with `*cngxStepError`, app-wide w
|
|
|
282
282
|
```
|
|
283
283
|
|
|
284
284
|
The commit / async channel is separate: a rejected `commitAction` decorates the rolled-back step (`*cngxStepRejection`) and flows its message through the `CngxToastOn` / `CngxBannerOn` transition bridges. The two channels never collide - validation owns `*cngxStepError`, commit owns `*cngxStepRejection`.
|
|
285
|
+
|
|
286
|
+
### How each skin draws the error
|
|
287
|
+
|
|
288
|
+
The validation badge is a bare alert icon (no disc, a `1rem` (16px) box drawing the hand-hinted 16-grid small alert, stroke 2 on the fallback 24-grid path) that follows the label in the errored colour. On `path-chevron` it leads the label and centres with it in the tile; on the red `path-chevron` tile and the red `chips` chip it paints in the tile text colour. `stripe-status-rich` hides it: the status pill says "Errored".
|
|
289
|
+
|
|
290
|
+
A rejected step (the latest commit refused or failed) carries the rejection icon and a reason colour: red for a failed commit, amber for a refused one.
|
|
291
|
+
|
|
292
|
+
|Skin|Rejected step|
|
|
293
|
+
|-|-|
|
|
294
|
+
|`classic`, `stripe-status-rich`|tinted rounded surface (`--cngx-step-rejection-tint`, `--cngx-step-rejection-radius`); stripe hides the icon and its pill reads "Errored" / "Not allowed"|
|
|
295
|
+
|`path-chevron`, `pill-segment`, `chips`|the tint replaces the step background, shaped by the tile, segment or chip; the icon leads the label on `path-chevron`|
|
|
296
|
+
|`linear-minimal`|no surface, a 2px line in the reason colour (bottom edge horizontally, inline-start edge vertically)|
|
|
297
|
+
|`breadcrumb`|colour only: the label turns the reason colour next to the icon|
|
|
298
|
+
|
|
299
|
+
Under forced colors the surfaces and lines vanish, so a rejected step draws a 2px `CanvasText` outline and both icons paint the system text colour.
|
package/tabs/README.md
CHANGED
|
@@ -40,6 +40,19 @@ Two pieces give the tab strip its character:
|
|
|
40
40
|
|
|
41
41
|
Set an app-wide default with `withTabsSkin()` (via `provideCngxTabs`). Colours and sizes are CSS custom properties (`--cngx-tab-*`) that chain to `--mat-sys-*` when a Material theme is present.
|
|
42
42
|
|
|
43
|
+
### How each skin draws the error
|
|
44
|
+
|
|
45
|
+
The validation badge is a bare alert icon (no disc, `1.15em` of the label font, stroke 2) right after the label, in the danger colour (`--cngx-tab-error-badge-color`, `--cngx-tab-badge-size`).
|
|
46
|
+
|
|
47
|
+
A rejected tab (the latest commit refused or failed) carries the rejection icon after the label and a reason colour: red alert triangle for a failed commit, amber slashed circle for a refused one (`--cngx-tab-rejection-icon-color`, `--cngx-tab-refused-color`, `--cngx-tab-rejection-icon-size`). The two kinds never differ by colour alone.
|
|
48
|
+
|
|
49
|
+
|Skin|Rejected tab, horizontal and vertical|
|
|
50
|
+
|-|-|
|
|
51
|
+
|`line`|colour only: no surface, no line; the label turns the reason colour (`--cngx-tab-failed-text-color`, `--cngx-tab-refused-text-color`)|
|
|
52
|
+
|`contained`, `segmented`, `pill`, `pill-outline`|the reason colour tints the tab background (`--cngx-tab-rejection-tint`, 18%) in the skin's own shape; the label keeps its colour|
|
|
53
|
+
|
|
54
|
+
The colours chain to `--cngx-color-danger` and to `--cngx-color-danger-text` (danger at the text lightness), and to `--cngx-color-warning` mixed toward `--cngx-color-text`, so they follow the light and dark scheme. Under forced colors the tint and the label colour vanish, so a rejected tab draws a 2px `CanvasText` outline and both icons paint the system text colour.
|
|
55
|
+
|
|
43
56
|
## Companion entries
|
|
44
57
|
|
|
45
58
|
- **`@cngx/common/tabs`** - the headless brain, configuration cascade, slot directives.
|
package/timeline/README.md
CHANGED
|
@@ -346,5 +346,5 @@ the status colours onto `--mat-sys-*`.
|
|
|
346
346
|
- [CngxTimelineItem](../../common/timeline/) - the row molecule, usable standalone
|
|
347
347
|
- [CngxAsyncState](../../core/utils/) - async state contract
|
|
348
348
|
- [CngxSkeleton](../skeleton/) - the loading body
|
|
349
|
-
- [API on compodocx](https://cngxjs.github.io/cngx/)
|
|
349
|
+
- [API on compodocx](https://cngxjs.github.io/cngx/main/ui/timeline/)
|
|
350
350
|
- Tests: `projects/ui/timeline/timeline.component.spec.ts`, `timeline-async.spec.ts`
|
package/toc/README.md
CHANGED
|
@@ -182,5 +182,5 @@ density tracking keeps working.
|
|
|
182
182
|
|
|
183
183
|
- [CngxScrollSpy](../../common/layout/) - the detection atom the rail composes
|
|
184
184
|
- [CngxSidenav](../sidenav/) - collapsible primary-navigation rail
|
|
185
|
-
- [API on compodocx](https://cngxjs.github.io/cngx/)
|
|
185
|
+
- [API on compodocx](https://cngxjs.github.io/cngx/main/ui/toc/)
|
|
186
186
|
- Tests: `projects/ui/toc/toc.component.spec.ts`, `toc-router-sync.directive.spec.ts`
|