@arsedizioni/ars-utils 22.6.85 → 22.6.88
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
- package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
- package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
- package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
- package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
- package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
- package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
- package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
- package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
- package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
- package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
- package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
- package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
- package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
- package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
- package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
- package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
- package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
- package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
- package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
- package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
- package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
- package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
- package/types/arsedizioni-ars-utils.d.ts +1 -3
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import { BreakpointAlias } from
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @file navigation.definitions.ts
|
|
9
|
-
*
|
|
10
|
-
* Data model shared by every variant of the Material Design 3 (Expressive)
|
|
11
|
-
* navigation component: Navigation bar, Navigation rail (collapsed and
|
|
12
|
-
* expanded) and Navigation drawer (standard and modal).
|
|
13
|
-
*
|
|
14
|
-
* Reference: https://m3.material.io/components/navigation-bar/specs
|
|
15
|
-
* https://m3.material.io/components/navigation-rail/specs
|
|
16
|
-
* https://m3.material.io/components/navigation-drawer/specs
|
|
17
|
-
*/
|
|
18
|
-
|
|
1
|
+
import { BreakpointAlias } from "@arsedizioni/ars-utils/ui";
|
|
2
|
+
import { ConnectedPosition } from "@angular/cdk/overlay";
|
|
3
|
+
import { TooltipPosition } from "@angular/material/tooltip";
|
|
4
|
+
import { ActivatedRoute } from "@angular/router";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
19
6
|
/**
|
|
20
7
|
* Rendering variants supported by the component.
|
|
21
8
|
*
|
|
@@ -26,9 +13,9 @@ import { ActivatedRoute } from '@angular/router';
|
|
|
26
13
|
* - `modal` — Modal navigation drawer: same as `drawer` but overlaid on a scrim.
|
|
27
14
|
* - `auto` — Resolved at runtime from the active CDK breakpoint (see `autoVariants`).
|
|
28
15
|
*/
|
|
29
|
-
type NavigationVariant = 'auto' | 'bar' | 'rail' | 'rail-expanded' | 'drawer' | 'modal';
|
|
16
|
+
export type NavigationVariant = 'auto' | 'bar' | 'rail' | 'rail-expanded' | 'drawer' | 'modal';
|
|
30
17
|
/** Variants that can actually be rendered, i.e. every variant except `auto`. */
|
|
31
|
-
type ResolvedNavigationVariant = Exclude<NavigationVariant, 'auto'>;
|
|
18
|
+
export type ResolvedNavigationVariant = Exclude<NavigationVariant, 'auto'>;
|
|
32
19
|
/**
|
|
33
20
|
* Label visibility policy, mirroring the four Material label visibility modes.
|
|
34
21
|
*
|
|
@@ -37,7 +24,7 @@ type ResolvedNavigationVariant = Exclude<NavigationVariant, 'auto'>;
|
|
|
37
24
|
* - `selected` — Only the active destination shows its label (legacy M3 "auto" behaviour).
|
|
38
25
|
* - `unlabeled` — Icons only; the accessible name comes from `aria-label` / tooltip.
|
|
39
26
|
*/
|
|
40
|
-
type NavigationLabelVisibility = 'auto' | 'labeled' | 'selected' | 'unlabeled';
|
|
27
|
+
export type NavigationLabelVisibility = 'auto' | 'labeled' | 'selected' | 'unlabeled';
|
|
41
28
|
/**
|
|
42
29
|
* Item layout inside a destination.
|
|
43
30
|
*
|
|
@@ -46,25 +33,25 @@ type NavigationLabelVisibility = 'auto' | 'labeled' | 'selected' | 'unlabeled';
|
|
|
46
33
|
* - `auto` — `vertical` on compact windows, `horizontal` from 600dp upwards; always
|
|
47
34
|
* `horizontal` for the expanded rail and the drawer.
|
|
48
35
|
*/
|
|
49
|
-
type NavigationItemLayout = 'auto' | 'vertical' | 'horizontal';
|
|
36
|
+
export type NavigationItemLayout = 'auto' | 'vertical' | 'horizontal';
|
|
50
37
|
/** Vertical alignment of the destination list inside a rail. */
|
|
51
|
-
type NavigationAlignment = 'top' | 'center' | 'bottom';
|
|
38
|
+
export type NavigationAlignment = 'top' | 'center' | 'bottom';
|
|
52
39
|
/** Side the rail / drawer is anchored to. Automatically mirrored in RTL. */
|
|
53
|
-
type NavigationPosition = 'start' | 'end';
|
|
40
|
+
export type NavigationPosition = 'start' | 'end';
|
|
54
41
|
/**
|
|
55
42
|
* Badge attached to a destination.
|
|
56
43
|
* When `value` is `undefined` a small dot badge is rendered, otherwise a large
|
|
57
44
|
* badge showing the value (clamped to `max`).
|
|
58
45
|
*/
|
|
59
|
-
interface NavigationBadge {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
46
|
+
export interface NavigationBadge {
|
|
47
|
+
/** Numeric or textual content of the badge. Leave `undefined` for a dot badge. */
|
|
48
|
+
value?: number | string;
|
|
49
|
+
/** Upper bound for numeric values; above it the badge renders `${max}+`. Defaults to 999. */
|
|
50
|
+
max?: number;
|
|
51
|
+
/** Accessible description announced together with the destination label. */
|
|
52
|
+
ariaLabel?: string;
|
|
53
|
+
/** Optional CSS colour override for this badge only. */
|
|
54
|
+
color?: string;
|
|
68
55
|
}
|
|
69
56
|
/**
|
|
70
57
|
* Frame indices of a sprite sheet, one per interaction state.
|
|
@@ -73,15 +60,15 @@ interface NavigationBadge {
|
|
|
73
60
|
* dark set (declared under `NavigationIconSprite.dark`), so a sheet holding both
|
|
74
61
|
* themes needs no duplicated geometry.
|
|
75
62
|
*/
|
|
76
|
-
interface NavigationSpriteFrames {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
63
|
+
export interface NavigationSpriteFrames {
|
|
64
|
+
/** Zero-based frame index for the resting state. Defaults to 0. */
|
|
65
|
+
normal?: number;
|
|
66
|
+
/** Frame index used on hover and on keyboard focus. Defaults to `normal`. */
|
|
67
|
+
hover?: number;
|
|
68
|
+
/** Frame index used when the destination is selected. Defaults to `hover`. */
|
|
69
|
+
active?: number;
|
|
70
|
+
/** Frame index used when the destination is disabled. Defaults to `normal`. */
|
|
71
|
+
disabled?: number;
|
|
85
72
|
}
|
|
86
73
|
/**
|
|
87
74
|
* Sprite sheet descriptor: a single image holding every state frame of an icon,
|
|
@@ -99,137 +86,137 @@ interface NavigationSpriteFrames {
|
|
|
99
86
|
* the ones that differ when the dark theme is active. A sheet that carries a
|
|
100
87
|
* single set simply omits `dark`.
|
|
101
88
|
*/
|
|
102
|
-
interface NavigationIconSprite extends NavigationSpriteFrames {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
89
|
+
export interface NavigationIconSprite extends NavigationSpriteFrames {
|
|
90
|
+
/** URL of the sprite sheet. */
|
|
91
|
+
url: string;
|
|
92
|
+
/** Side of a single frame inside the image file, in pixels. Defaults to 24. */
|
|
93
|
+
size?: number;
|
|
94
|
+
/** Side the icon is drawn at, in pixels. Defaults to `size`. */
|
|
95
|
+
renderSize?: number;
|
|
96
|
+
/**
|
|
97
|
+
* Total number of frames in the sheet, needed to rescale it.
|
|
98
|
+
* Defaults to the highest referenced frame index plus one, which is correct
|
|
99
|
+
* for any sheet that has no trailing unused frame.
|
|
100
|
+
*/
|
|
101
|
+
frames?: number;
|
|
102
|
+
/** Axis the frames are laid out along. Defaults to `vertical`. */
|
|
103
|
+
direction?: 'vertical' | 'horizontal';
|
|
104
|
+
/** Frame indices used when the dark theme is active. Defaults to the light ones. */
|
|
105
|
+
dark?: NavigationSpriteFrames;
|
|
119
106
|
}
|
|
120
107
|
/** A single navigation destination. */
|
|
121
|
-
interface NavigationItem {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
108
|
+
export interface NavigationItem {
|
|
109
|
+
/** Stable unique identifier; used as the `@for` track key and as the selection value. */
|
|
110
|
+
id: string;
|
|
111
|
+
/** Visible label. Also used as the accessible name and as the tooltip fallback. */
|
|
112
|
+
label: string;
|
|
113
|
+
/**
|
|
114
|
+
* Shorter label used ONLY where the label sits under the icon — the navigation
|
|
115
|
+
* bar and the collapsed rail — which is where a long name wraps or is cut.
|
|
116
|
+
* Defaults to `label`. The literal `'none'` drops the label there altogether and
|
|
117
|
+
* leaves the icon alone, for a destination whose icon says it all.
|
|
118
|
+
* The accessible name and the tooltip always keep `label`, so nothing is lost:
|
|
119
|
+
* the short form — or no form — is what is drawn, the full one is what is
|
|
120
|
+
* announced, and the tooltip is what shows it on hover.
|
|
121
|
+
*/
|
|
122
|
+
labelVertical?: string;
|
|
123
|
+
/** Material Symbols ligature rendered when the destination is NOT selected. */
|
|
124
|
+
icon?: string;
|
|
125
|
+
/** Material Symbols ligature rendered when the destination IS selected (usually the filled variant). */
|
|
126
|
+
activeIcon?: string;
|
|
127
|
+
/** Path of a raster / vector image rendered as the icon. Takes precedence over `icon`. */
|
|
128
|
+
imageIcon?: string;
|
|
129
|
+
/** Image used when the destination is selected. Takes precedence over `activeIcon`. */
|
|
130
|
+
activeImageIcon?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Sprite sheet holding every state frame of the icon. Takes precedence over
|
|
133
|
+
* `imageIcon` and `icon`; state changes cost one `background-position` shift.
|
|
134
|
+
*/
|
|
135
|
+
sprite?: NavigationIconSprite;
|
|
136
|
+
/** Name of an SVG icon registered in `MatIconRegistry`; takes precedence over `icon`. */
|
|
137
|
+
svgIcon?: string;
|
|
138
|
+
/** SVG icon used when the destination is selected; takes precedence over `activeIcon`. */
|
|
139
|
+
activeSvgIcon?: string;
|
|
140
|
+
/** Badge shown on top of the icon (collapsed variants) or at the trailing edge (expanded variants). */
|
|
141
|
+
badge?: NavigationBadge;
|
|
142
|
+
/** Short trailing text shown at the end of the row in the expanded rail and in the drawer. */
|
|
143
|
+
trailing?: string;
|
|
144
|
+
/** When `true` the destination is rendered dimmed and is not interactive. */
|
|
145
|
+
disabled?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* When `true` the destination is drawn in a much quieter colour while staying
|
|
148
|
+
* fully usable: it is clicked, navigated to and selected exactly like any other.
|
|
149
|
+
* Unlike `disabled` it says "this matters less right now", not "you cannot use
|
|
150
|
+
* this", so nothing is turned off — not the pointer, not the keyboard, not the
|
|
151
|
+
* accessible name.
|
|
152
|
+
*/
|
|
153
|
+
greyed?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* When `true` the destination is not rendered inline in the compact variants:
|
|
156
|
+
* it is moved into the overflow menu instead. Which variants count as compact
|
|
157
|
+
* is decided by the component's `overflowMode` input.
|
|
158
|
+
*/
|
|
159
|
+
hideWhenCompact?: boolean;
|
|
160
|
+
/** Tooltip text; defaults to `label` when the label is not visible. */
|
|
161
|
+
tooltip?: string;
|
|
162
|
+
/** Router commands used to build the destination URL. */
|
|
163
|
+
route?: string | readonly unknown[];
|
|
164
|
+
/** Query parameters appended to `route`. */
|
|
165
|
+
queryParams?: Record<string, unknown>;
|
|
166
|
+
/** Fragment appended to `route`. */
|
|
167
|
+
fragment?: string;
|
|
168
|
+
/** When `true` the route must match the whole URL to mark the destination active. Defaults to `false`. */
|
|
169
|
+
exact?: boolean;
|
|
170
|
+
/** External URL. Rendered as a plain anchor and never matched against the router. */
|
|
171
|
+
href?: string;
|
|
172
|
+
/** Anchor target used together with `href`. */
|
|
173
|
+
target?: string;
|
|
174
|
+
/** Explicit accessible name, when the visible label is not descriptive enough. */
|
|
175
|
+
ariaLabel?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Nested destinations. Clicking a destination with children never navigates: it
|
|
178
|
+
* expands the group inline (expanded rail / drawer) or opens it in a floating
|
|
179
|
+
* panel (bar / collapsed rail). Giving it a `route` anyway is still meaningful —
|
|
180
|
+
* the destination is matched against the router like any other, so the row shows
|
|
181
|
+
* as selected while that route is active, even though only its children take the
|
|
182
|
+
* user there.
|
|
183
|
+
*/
|
|
184
|
+
children?: readonly NavigationItem[];
|
|
185
|
+
/** Initial expansion state of a destination that has `children`. Defaults to `false`. */
|
|
186
|
+
expanded?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Edge the destination is pinned to inside a rail or a drawer.
|
|
189
|
+
* `bottom` destinations are pushed to the end of the surface. Ignored by the
|
|
190
|
+
* navigation bar, where every destination shares the same row.
|
|
191
|
+
*/
|
|
192
|
+
align?: 'top' | 'bottom';
|
|
193
|
+
/** Arbitrary payload echoed back in `NavigationSelection`. */
|
|
194
|
+
data?: unknown;
|
|
208
195
|
}
|
|
209
196
|
/**
|
|
210
197
|
* A group of destinations. Section headlines and dividers are only rendered by
|
|
211
198
|
* the expanded rail and by the drawer, exactly as described by the M3 specs.
|
|
212
199
|
*/
|
|
213
|
-
interface NavigationSection {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
200
|
+
export interface NavigationSection {
|
|
201
|
+
/** Stable unique identifier; used as the `@for` track key. */
|
|
202
|
+
id: string;
|
|
203
|
+
/** Optional headline rendered above the group. */
|
|
204
|
+
label?: string;
|
|
205
|
+
/** Destinations belonging to the section. */
|
|
206
|
+
items: readonly NavigationItem[];
|
|
207
|
+
/** When `true` a divider is rendered after the section. */
|
|
208
|
+
divider?: boolean;
|
|
222
209
|
}
|
|
223
210
|
/** Payload emitted when a destination is activated. */
|
|
224
|
-
interface NavigationSelection {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
211
|
+
export interface NavigationSelection {
|
|
212
|
+
/** The activated destination. */
|
|
213
|
+
item: NavigationItem;
|
|
214
|
+
/** The section the destination belongs to, when sections are in use. */
|
|
215
|
+
section?: NavigationSection;
|
|
216
|
+
/** The parent destination, when a nested destination was activated. */
|
|
217
|
+
parent?: NavigationItem;
|
|
218
|
+
/** Zero-based index of the destination across the whole flattened list. */
|
|
219
|
+
index: number;
|
|
233
220
|
}
|
|
234
221
|
/**
|
|
235
222
|
* Policy deciding where `hideWhenCompact` destinations are collapsed into the
|
|
@@ -239,508 +226,686 @@ interface NavigationSelection {
|
|
|
239
226
|
* - `compact` — in the navigation bar and in the collapsed rail.
|
|
240
227
|
* - `never` — `hideWhenCompact` is ignored and every destination stays inline.
|
|
241
228
|
*/
|
|
242
|
-
type NavigationOverflowMode = 'bar' | 'compact' | 'never';
|
|
229
|
+
export type NavigationOverflowMode = 'bar' | 'compact' | 'never';
|
|
243
230
|
/**
|
|
244
231
|
* Identifier of the synthesized overflow destination. Use it to recognise the
|
|
245
232
|
* overflow entry inside `itemSelected`.
|
|
246
233
|
*/
|
|
247
|
-
declare const NAVIGATION_OVERFLOW_ID = "__overflow";
|
|
234
|
+
export declare const NAVIGATION_OVERFLOW_ID = "__overflow";
|
|
248
235
|
/** Map of breakpoint alias to the variant used when `variant` is `auto`. */
|
|
249
|
-
type NavigationAutoVariants = Partial<Record<BreakpointAlias, ResolvedNavigationVariant>>;
|
|
236
|
+
export type NavigationAutoVariants = Partial<Record<BreakpointAlias, ResolvedNavigationVariant>>;
|
|
250
237
|
/**
|
|
251
238
|
* Default `auto` mapping, aligned with the Material 3 window size classes:
|
|
252
239
|
* compact windows get the navigation bar, medium and expanded windows get the
|
|
253
240
|
* collapsed rail, large and extra-large windows get the expanded rail.
|
|
254
241
|
*/
|
|
255
|
-
declare const DEFAULT_NAVIGATION_AUTO_VARIANTS: Required<NavigationAutoVariants>;
|
|
242
|
+
export declare const DEFAULT_NAVIGATION_AUTO_VARIANTS: Required<NavigationAutoVariants>;
|
|
256
243
|
/** Variants that render labels beside the icon and support sections and dividers. */
|
|
257
|
-
declare const EXPANDED_NAVIGATION_VARIANTS: readonly ResolvedNavigationVariant[];
|
|
258
|
-
|
|
244
|
+
export declare const EXPANDED_NAVIGATION_VARIANTS: readonly ResolvedNavigationVariant[];
|
|
259
245
|
/** Internal, pre-computed render model for a single destination. */
|
|
260
246
|
interface NavigationRenderItem {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
247
|
+
/** The source destination. */
|
|
248
|
+
readonly item: NavigationItem;
|
|
249
|
+
/** Owning section, when sections are in use. */
|
|
250
|
+
readonly section?: NavigationSection;
|
|
251
|
+
/** Parent destination, for nested destinations. */
|
|
252
|
+
readonly parent?: NavigationItem;
|
|
253
|
+
/** Zero-based index across the whole flattened destination list. */
|
|
254
|
+
readonly index: number;
|
|
255
|
+
/** Nesting level: `0` for a root destination. */
|
|
256
|
+
readonly depth: number;
|
|
257
|
+
/** Resolved URL, when the destination is routed or external. */
|
|
258
|
+
readonly href?: string;
|
|
259
|
+
/** `true` when the destination navigates through the Angular router. */
|
|
260
|
+
readonly routed: boolean;
|
|
261
|
+
/** Material Symbols ligature for the unselected state. */
|
|
262
|
+
readonly iconOff?: string;
|
|
263
|
+
/** Material Symbols ligature for the selected state. */
|
|
264
|
+
readonly iconOn?: string;
|
|
265
|
+
/** Registered SVG icon name for the unselected state. */
|
|
266
|
+
readonly svgOff?: string;
|
|
267
|
+
/** Registered SVG icon name for the selected state. */
|
|
268
|
+
readonly svgOn?: string;
|
|
269
|
+
/** Image URL for the unselected state. */
|
|
270
|
+
readonly imageOff?: string;
|
|
271
|
+
/** Image URL for the selected state. */
|
|
272
|
+
readonly imageOn?: string;
|
|
273
|
+
/** Inline custom properties driving a sprite-sheet icon, when one is used. */
|
|
274
|
+
readonly spriteStyle?: Record<string, string>;
|
|
275
|
+
/** Rendered badge text; empty string means "dot badge". */
|
|
276
|
+
readonly badgeText: string;
|
|
277
|
+
/** `true` when the destination carries a badge of any kind. */
|
|
278
|
+
readonly hasBadge: boolean;
|
|
279
|
+
/** `true` when the destination never renders its label, whatever the label policy. */
|
|
280
|
+
readonly iconOnly: boolean;
|
|
281
|
+
/** `true` when the destination owns nested destinations. */
|
|
282
|
+
readonly hasChildren: boolean;
|
|
283
|
+
/** Pre-computed render models of the nested destinations. */
|
|
284
|
+
readonly children: readonly NavigationRenderItem[];
|
|
285
|
+
/** Accessible name announced for the destination. */
|
|
286
|
+
readonly ariaLabel: string;
|
|
287
|
+
/** Tooltip text used when the label is not visible. */
|
|
288
|
+
readonly tooltip: string;
|
|
303
289
|
}
|
|
304
290
|
/** Internal render model for a section and its destinations. */
|
|
305
291
|
interface NavigationRenderSection {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
292
|
+
/** The source section. */
|
|
293
|
+
readonly section: NavigationSection;
|
|
294
|
+
/** Destinations of the section. */
|
|
295
|
+
readonly items: readonly NavigationRenderItem[];
|
|
310
296
|
}
|
|
311
297
|
/** Internal render model for one row of the floating submenu panel. */
|
|
312
298
|
interface NavigationPanelEntry {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
299
|
+
/** Stable `@for` track key. */
|
|
300
|
+
readonly key: string;
|
|
301
|
+
/** Heading text, when the row is a group heading. */
|
|
302
|
+
readonly label?: string;
|
|
303
|
+
/** Destination to render, when the row is an actual entry. */
|
|
304
|
+
readonly render?: NavigationRenderItem;
|
|
305
|
+
/** `true` when the entry sits under a heading, and is indented to show it. */
|
|
306
|
+
readonly grouped?: boolean;
|
|
321
307
|
}
|
|
322
308
|
/** Internal render model for one of the two anchoring groups of a surface. */
|
|
323
309
|
interface NavigationRenderGroup {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
329
|
-
declare class NavigationBarComponent {
|
|
330
|
-
private readonly media;
|
|
331
|
-
private readonly themeService;
|
|
332
|
-
private readonly router;
|
|
333
|
-
private readonly directionality;
|
|
334
|
-
private readonly hostRef;
|
|
335
|
-
/** Used to schedule the post-render read that reveals a branch just expanded. */
|
|
336
|
-
private readonly injector;
|
|
337
|
-
private readonly destroyRef;
|
|
338
|
-
/** Flat list of destinations. Ignored when `sections` is provided. */
|
|
339
|
-
readonly items: _angular_core.InputSignal<readonly NavigationItem[]>;
|
|
340
|
-
/** Grouped destinations. Section headlines and dividers only render in the expanded variants. */
|
|
341
|
-
readonly sections: _angular_core.InputSignal<readonly NavigationSection[]>;
|
|
342
|
-
/** Rendering variant. `auto` resolves from the active breakpoint through `autoVariants`. */
|
|
343
|
-
readonly variant: _angular_core.InputSignal<NavigationVariant>;
|
|
344
|
-
/** Breakpoint → variant map used when `variant` is `auto`. Missing entries fall back to the M3 defaults. */
|
|
345
|
-
readonly autoVariants: _angular_core.InputSignal<Partial<Record<"xs" | "sm" | "md" | "lg" | "xl", ResolvedNavigationVariant>>>;
|
|
346
|
-
/** Two-way bound id of the selected destination. The router, when active, takes precedence. */
|
|
347
|
-
readonly selectedId: _angular_core.ModelSignal<string>;
|
|
348
|
-
/**
|
|
349
|
-
* Two-way bound ids of the expanded parent destinations.
|
|
350
|
-
* Leave unbound (`undefined`) to let the component manage the expansion state
|
|
351
|
-
* on its own, seeding it from `NavigationItem.expanded` and auto-opening the
|
|
352
|
-
* ancestors of the active destination.
|
|
353
|
-
*/
|
|
354
|
-
readonly expandedIds: _angular_core.ModelSignal<readonly string[]>;
|
|
355
|
-
/** Two-way bound open state of the modal drawer. Ignored by the other variants. */
|
|
356
|
-
readonly open: _angular_core.ModelSignal<boolean>;
|
|
357
|
-
/** Label visibility policy. */
|
|
358
|
-
readonly labelVisibility: _angular_core.InputSignal<NavigationLabelVisibility>;
|
|
359
|
-
/** Icon / label arrangement inside a destination. */
|
|
360
|
-
readonly itemLayout: _angular_core.InputSignal<NavigationItemLayout>;
|
|
361
|
-
/**
|
|
362
|
-
* Icons of the nested destinations in the expanded variants (rail-expanded,
|
|
363
|
-
* drawer, modal), where children are listed inline under their parent.
|
|
364
|
-
* `false` — the default — renders those rows as label only, which keeps the
|
|
365
|
-
* branch readable; the label stays aligned with the labels around it and a
|
|
366
|
-
* badge moves to the trailing edge. Top level destinations always keep their
|
|
367
|
-
* icon, and so do the children shown in the floating panel of the compact
|
|
368
|
-
* variants.
|
|
369
|
-
*/
|
|
370
|
-
readonly childIcons: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
371
|
-
/**
|
|
372
|
-
* Compact rows in the expanded variants (rail-expanded, drawer, modal):
|
|
373
|
-
* 48px instead of the 56px of the M3 spec, with the dependent measures
|
|
374
|
-
* scaled along — nested rows 40px, labels one step smaller, tighter gaps.
|
|
375
|
-
* The bar and the collapsed rail keep their own spec metrics.
|
|
376
|
-
*/
|
|
377
|
-
readonly dense: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
378
|
-
/** Vertical alignment of the `top` destination group inside a rail. */
|
|
379
|
-
readonly alignment: _angular_core.InputSignal<NavigationAlignment>;
|
|
380
|
-
/** Edge the rail / drawer is anchored to. Mirrored automatically in RTL. */
|
|
381
|
-
readonly position: _angular_core.InputSignal<NavigationPosition>;
|
|
382
|
-
/** Headline rendered above the destinations in the expanded rail and in the drawer. */
|
|
383
|
-
readonly headline: _angular_core.InputSignal<string>;
|
|
384
|
-
/** When `true` a leading menu button is rendered; it emits `menuClick`. */
|
|
385
|
-
readonly showMenuButton: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
386
|
-
/** Material Symbols ligature used by the menu button. */
|
|
387
|
-
readonly menuIcon: _angular_core.InputSignal<string>;
|
|
388
|
-
/** Material Symbols ligature used by the expand / collapse chevron. */
|
|
389
|
-
readonly expandIcon: _angular_core.InputSignal<string>;
|
|
390
|
-
/** Where `hideWhenCompact` destinations are collapsed into the overflow menu. */
|
|
391
|
-
readonly overflowMode: _angular_core.InputSignal<NavigationOverflowMode>;
|
|
392
|
-
/** Material Symbols ligature of the overflow destination. */
|
|
393
|
-
readonly overflowIcon: _angular_core.InputSignal<string>;
|
|
394
|
-
/** Accessible name and tooltip of the overflow destination, which renders icon-only. */
|
|
395
|
-
readonly overflowLabel: _angular_core.InputSignal<string>;
|
|
396
|
-
/**
|
|
397
|
-
* Hard cap on the destinations rendered inline in the compact variants,
|
|
398
|
-
* applied per anchoring group. The overflow destination counts as one slot.
|
|
399
|
-
* `0` disables the cap; the M3 specs recommend 3 to 5 for the navigation bar.
|
|
400
|
-
*/
|
|
401
|
-
readonly maxVisibleItems: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
402
|
-
/** Accessible name of the menu button. */
|
|
403
|
-
readonly menuAriaLabel: _angular_core.InputSignal<string>;
|
|
404
|
-
/** Accessible name of the navigation landmark. */
|
|
405
|
-
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
406
|
-
/** When `true` a scrim is rendered behind the modal drawer. */
|
|
407
|
-
readonly scrim: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
408
|
-
/** When `true` the modal drawer closes as soon as a destination is activated. */
|
|
409
|
-
readonly closeOnSelect: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
410
|
-
/** When `true` the surface gets the M3 elevation-3 shadow. */
|
|
411
|
-
readonly elevated: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
412
|
-
/** When `true` a 1px divider separates the surface from the page content. */
|
|
413
|
-
readonly bordered: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
414
|
-
/** When `true` tooltips are shown for destinations whose label is not visible. */
|
|
415
|
-
readonly tooltips: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
416
|
-
/** When `true` the selection follows the current router URL. */
|
|
417
|
-
readonly routerSync: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
418
|
-
/** Route used to resolve relative `route` commands. Absolute resolution when omitted. */
|
|
419
|
-
readonly relativeTo: _angular_core.InputSignal<ActivatedRoute>;
|
|
420
|
-
/** Explicit surface width in pixels for the rail / drawer variants. `0` keeps the spec default. */
|
|
421
|
-
readonly width: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
422
|
-
/**
|
|
423
|
-
* Explicit width in pixels of the COLLAPSED rail. `0` keeps the 96px of the
|
|
424
|
-
* spec. It is separate from `width` because a surface set to `auto` is a
|
|
425
|
-
* collapsed rail at one breakpoint and an expanded one at the next, and the
|
|
426
|
-
* two want different widths; when both are given, this one wins on the
|
|
427
|
-
* collapsed rail and `width` covers the rest.
|
|
428
|
-
*/
|
|
429
|
-
readonly railWidth: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
430
|
-
/**
|
|
431
|
-
* Lower bound in pixels for the width of the expanded variants (rail-expanded,
|
|
432
|
-
* drawer, modal). `0` keeps the default, which sets no floor. It is what keeps
|
|
433
|
-
* the surface readable when its width comes from a percentage or from a
|
|
434
|
-
* container that can shrink, instead of from `width`.
|
|
435
|
-
*/
|
|
436
|
-
readonly minWidth: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
437
|
-
/**
|
|
438
|
-
* Upper bound in pixels for the width of the expanded variants (rail-expanded,
|
|
439
|
-
* drawer, modal). `0` keeps the default, which is the width of the parent: the
|
|
440
|
-
* surface never spills out of it, whatever `width` says.
|
|
441
|
-
*/
|
|
442
|
-
readonly maxWidth: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
443
|
-
/** When `true` the whole surface is hidden (animated off-screen) without being destroyed. */
|
|
444
|
-
readonly hidden: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
445
|
-
/** Emitted when a destination is activated by the user. */
|
|
446
|
-
readonly itemSelected: _angular_core.OutputEmitterRef<NavigationSelection>;
|
|
447
|
-
/** Emitted when the leading menu button is pressed. */
|
|
448
|
-
readonly menuClick: _angular_core.OutputEmitterRef<void>;
|
|
449
|
-
/** Focusable destination elements, in DOM order; used for keyboard roving. */
|
|
450
|
-
private readonly itemElements;
|
|
451
|
-
/** Focusable entries of the floating submenu panel, in DOM order. */
|
|
452
|
-
private readonly panelElements;
|
|
453
|
-
/** Current router URL, kept in a signal so the template stays zoneless-friendly. */
|
|
454
|
-
private readonly routerUrl;
|
|
455
|
-
/**
|
|
456
|
-
* Ticks whenever the application theme moves. The emitted value is ignored on
|
|
457
|
-
* purpose: it is a change notification, not the answer.
|
|
458
|
-
*
|
|
459
|
-
* Reads `themeService`, so it MUST stay below the injected dependencies: moved
|
|
460
|
-
* above them it would read `undefined`, `?? EMPTY` would swallow it and the
|
|
461
|
-
* theme would silently stop propagating, with nothing to show for it at
|
|
462
|
-
* compile time.
|
|
463
|
-
*/
|
|
464
|
-
private readonly themeChanged;
|
|
465
|
-
/**
|
|
466
|
-
* `true` when the dark theme is active; selects the dark frame set of a sprite.
|
|
467
|
-
*
|
|
468
|
-
* The answer comes from `getTheme()`, the only one that resolves `auto`
|
|
469
|
-
* against the OS preference. `getTheme()` already reads a signal for the
|
|
470
|
-
* explicit modes, so `themeChanged()` is read for the one case that is not
|
|
471
|
-
* reactive on its own: mode `auto` plus a change of the OS colour scheme,
|
|
472
|
-
* which leaves the stored mode on `auto` and only travels through `changed`.
|
|
473
|
-
* Falls back to the light set when no `ThemeService` is provided.
|
|
474
|
-
*/
|
|
475
|
-
private readonly isDark;
|
|
476
|
-
/** Id of the destination whose children are currently shown in the floating panel. */
|
|
477
|
-
private readonly popupId;
|
|
478
|
-
/**
|
|
479
|
-
* Destination whose children are currently shown in the floating panel.
|
|
480
|
-
*
|
|
481
|
-
* Derived from the id and NOT stored as an object: the render model is rebuilt
|
|
482
|
-
* whenever the destinations, the resolved URLs or the theme change, and a
|
|
483
|
-
* stored object would keep the panel painting the sprite frames of the
|
|
484
|
-
* previous theme until the panel is closed and reopened.
|
|
485
|
-
*
|
|
486
|
-
* The search is recursive because a panel entry can itself own children and
|
|
487
|
-
* open a panel of its own, and those nested render models are not part of the
|
|
488
|
-
* top level of `visibleGroups`.
|
|
489
|
-
*
|
|
490
|
-
* Reads `visibleGroups`, which is declared further down: safe because
|
|
491
|
-
* `computed` is lazy and nothing reads this before the first render — the
|
|
492
|
-
* opposite of `themeChanged` above, which reads its dependency immediately.
|
|
493
|
-
*/
|
|
494
|
-
protected readonly popupItem: _angular_core.Signal<NavigationRenderItem>;
|
|
495
|
-
/** Element the floating panel is anchored to. */
|
|
496
|
-
private readonly popupAnchor;
|
|
497
|
-
constructor();
|
|
498
|
-
/** Sections actually rendered: the `sections` input, or a single implicit section wrapping `items`. */
|
|
499
|
-
private readonly resolvedSections;
|
|
500
|
-
/** Every destination, nested ones included, in depth-first order. */
|
|
501
|
-
private readonly allItems;
|
|
502
|
-
/** Map of destination id to the id of its parent destination. */
|
|
503
|
-
private readonly parentOf;
|
|
504
|
-
/** The variant to render, resolving `auto` against the active CDK breakpoint. */
|
|
505
|
-
protected readonly resolvedVariant: _angular_core.Signal<ResolvedNavigationVariant>;
|
|
506
|
-
/** `true` for the variants that render labels beside icons and support sections. */
|
|
507
|
-
protected readonly isExpanded: _angular_core.Signal<boolean>;
|
|
508
|
-
/** `true` when the surface is the modal drawer. */
|
|
509
|
-
protected readonly isModal: _angular_core.Signal<boolean>;
|
|
510
|
-
/** `true` when the modal drawer is currently open. */
|
|
511
|
-
protected readonly isOverlayOpen: _angular_core.Signal<boolean>;
|
|
512
|
-
/** `true` when the surface must be visually hidden. */
|
|
513
|
-
protected readonly isHidden: _angular_core.Signal<boolean>;
|
|
514
|
-
/** Resolved icon / label arrangement. */
|
|
515
|
-
protected readonly resolvedLayout: _angular_core.Signal<"vertical" | "horizontal">;
|
|
516
|
-
/** Resolved label visibility; the expanded variants always show labels. */
|
|
517
|
-
protected readonly resolvedLabelVisibility: _angular_core.Signal<"labeled" | "selected" | "unlabeled">;
|
|
518
|
-
/** `true` when the headline row (menu button, headline text) is rendered. */
|
|
519
|
-
protected readonly showsHeader: _angular_core.Signal<boolean>;
|
|
520
|
-
/**
|
|
521
|
-
* Geometry of the active indicator:
|
|
522
|
-
* `compact` wraps the icon only (56x32 pill), `wide` wraps icon and label
|
|
523
|
-
* together, exactly as described by the M3 Expressive specs.
|
|
524
|
-
*/
|
|
525
|
-
protected readonly indicatorMode: _angular_core.Signal<"wide" | "compact">;
|
|
526
|
-
/** Tooltip placement derived from the variant and from the anchoring edge. */
|
|
527
|
-
protected readonly tooltipPosition: _angular_core.Signal<TooltipPosition>;
|
|
528
|
-
/** Inline width override for the rail / drawer, or `undefined` to keep the spec default. */
|
|
529
|
-
protected readonly widthStyle: _angular_core.Signal<string>;
|
|
530
|
-
/** Inline width override for the collapsed rail, or `undefined` to keep the spec default. */
|
|
531
|
-
protected readonly railWidthStyle: _angular_core.Signal<string>;
|
|
532
|
-
/** Inline lower bound for the expanded variants, or `undefined` to keep the default. */
|
|
533
|
-
protected readonly minWidthStyle: _angular_core.Signal<string>;
|
|
534
|
-
/** Inline upper bound for the expanded variants, or `undefined` to keep the default. */
|
|
535
|
-
protected readonly maxWidthStyle: _angular_core.Signal<string>;
|
|
536
|
-
/** Map of destination id to resolved URL. Recomputed only when the destinations change. */
|
|
537
|
-
private readonly hrefs;
|
|
538
|
-
/**
|
|
539
|
-
* Static render model, rebuilt only when the destinations, the resolved URLs
|
|
540
|
-
* or the theme change — never when the selection or the expansion state
|
|
541
|
-
* changes. The theme is a dependency because sprite icons carry one frame set
|
|
542
|
-
* per theme, and the frames are baked into the inline style of the icon.
|
|
543
|
-
*/
|
|
544
|
-
private readonly renderGroups;
|
|
545
|
-
/** Id of the destination matching the current router URL, using longest-prefix matching. */
|
|
546
|
-
private readonly routerActiveId;
|
|
547
|
-
/** Id of the currently active destination: router URL first, explicit selection as fallback. */
|
|
548
|
-
protected readonly activeId: _angular_core.Signal<string>;
|
|
549
|
-
/**
|
|
550
|
-
* Expansion state used when `expandedIds` is left unbound: the destinations
|
|
551
|
-
* flagged `expanded`, plus every ancestor of the active destination.
|
|
552
|
-
*/
|
|
553
|
-
private readonly defaultExpandedIds;
|
|
554
|
-
/** Ids of the parent destinations currently expanded. */
|
|
555
|
-
protected readonly expandedSet: _angular_core.Signal<ReadonlySet<string>>;
|
|
556
|
-
/** `true` when the current variant collapses `hideWhenCompact` destinations into the overflow menu. */
|
|
557
|
-
protected readonly overflowApplies: _angular_core.Signal<boolean>;
|
|
558
|
-
/**
|
|
559
|
-
* Render model actually walked by the template: the static model with the
|
|
560
|
-
* compact-only destinations moved into the overflow menu and the children of
|
|
561
|
-
* the expanded parents spliced in.
|
|
562
|
-
*/
|
|
563
|
-
protected readonly visibleGroups: _angular_core.Signal<readonly NavigationRenderGroup[]>;
|
|
564
|
-
/**
|
|
565
|
-
* Ids rendered with the selected styling: the active destination alone, and only
|
|
566
|
-
* while it is on screen. A parent stands in for nothing here — the template drops
|
|
567
|
-
* it unless it owns a route of its own — so a destination hidden inside a closed
|
|
568
|
-
* branch leaves this set empty and `ancestorIds` marks the trail instead.
|
|
569
|
-
*/
|
|
570
|
-
protected readonly highlightedIds: _angular_core.Signal<ReadonlySet<string>>;
|
|
571
|
-
/**
|
|
572
|
-
* Ids of the ancestors of the active destination. No variant ever shows a parent
|
|
573
|
-
* as selected, so this trail is what tells the user where they are: it marks the
|
|
574
|
-
* whole chain down to the active destination, whether its branch is open, closed
|
|
575
|
-
* or inside a floating panel. Ancestors that are not rendered simply never reach
|
|
576
|
-
* the template.
|
|
577
|
-
*/
|
|
578
|
-
protected readonly ancestorIds: _angular_core.Signal<ReadonlySet<string>>;
|
|
579
|
-
/**
|
|
580
|
-
* Rows of the floating submenu panel. Nested destinations one level down are
|
|
581
|
-
* flattened under a heading, so the overflow menu can hold parents too.
|
|
582
|
-
*/
|
|
583
|
-
protected readonly popupEntries: _angular_core.Signal<readonly NavigationPanelEntry[]>;
|
|
584
|
-
/** `true` when the floating submenu panel must be shown. */
|
|
585
|
-
protected readonly isPopupOpen: _angular_core.Signal<boolean>;
|
|
586
|
-
/** Element the floating submenu panel is anchored to. */
|
|
587
|
-
protected readonly popupOrigin: _angular_core.Signal<HTMLElement>;
|
|
588
|
-
/** Connected positions of the floating submenu panel, derived from the variant. */
|
|
589
|
-
protected readonly popupPositions: _angular_core.Signal<ConnectedPosition[]>;
|
|
590
|
-
/** `true` when the layout runs right-to-left; used to mirror the arrow keys. */
|
|
591
|
-
private readonly isRtl;
|
|
592
|
-
/**
|
|
593
|
-
* Activates a destination, or expands it when it owns nested destinations.
|
|
594
|
-
* A parent never navigates: it toggles its group inline in the wide variants
|
|
595
|
-
* and opens the floating panel in the compact ones.
|
|
596
|
-
* @param render - The render model of the activated destination.
|
|
597
|
-
* @param event - The originating mouse or keyboard event.
|
|
598
|
-
*/
|
|
599
|
-
protected select(render: NavigationRenderItem, event: Event): void;
|
|
600
|
-
/**
|
|
601
|
-
* Emits `menuClick` when the leading menu button is pressed.
|
|
602
|
-
*/
|
|
603
|
-
protected onMenuClick(): void;
|
|
604
|
-
/**
|
|
605
|
-
* Closes the modal drawer when the scrim is clicked.
|
|
606
|
-
*/
|
|
607
|
-
protected onScrimClick(): void;
|
|
608
|
-
/**
|
|
609
|
-
* Handles keyboard interaction: arrow keys move the focus between
|
|
610
|
-
* destinations, `Home` / `End` jump to the first / last one and `Escape`
|
|
611
|
-
* closes the floating submenu panel or the modal drawer.
|
|
612
|
-
*
|
|
613
|
-
* The same handler serves the surface and the floating panel, and it tells
|
|
614
|
-
* them apart by `currentTarget`: roving inside an open `role="menu"` must stay
|
|
615
|
-
* inside it, and a programmatic `focus()` is NOT stopped by the focus trap, so
|
|
616
|
-
* sharing one element list would send the focus onto the surface behind the
|
|
617
|
-
* overlay.
|
|
618
|
-
*
|
|
619
|
-
* @param event - The originating keyboard event.
|
|
620
|
-
*/
|
|
621
|
-
protected onKeydown(event: KeyboardEvent): void;
|
|
622
|
-
/**
|
|
623
|
-
* Expands or collapses the parent destination with the given id.
|
|
624
|
-
* @param id - Identifier of the parent destination to toggle.
|
|
625
|
-
*/
|
|
626
|
-
toggleExpanded(id: string): void;
|
|
627
|
-
/**
|
|
628
|
-
* Opens the floating submenu panel of a parent destination.
|
|
629
|
-
* @param render - The render model of the parent destination.
|
|
630
|
-
* @param event - The originating event, used to anchor the panel.
|
|
631
|
-
*/
|
|
632
|
-
protected openPopup(render: NavigationRenderItem, event: Event): void;
|
|
633
|
-
/**
|
|
634
|
-
* Closes the floating submenu panel.
|
|
635
|
-
*/
|
|
636
|
-
closePopup(): void;
|
|
637
|
-
/**
|
|
638
|
-
* Opens the modal drawer. No-op for the other variants.
|
|
639
|
-
*/
|
|
640
|
-
openDrawer(): void;
|
|
641
|
-
/**
|
|
642
|
-
* Closes the modal drawer. No-op for the other variants.
|
|
643
|
-
*/
|
|
644
|
-
closeDrawer(): void;
|
|
645
|
-
/**
|
|
646
|
-
* Toggles the modal drawer. No-op for the other variants.
|
|
647
|
-
*/
|
|
648
|
-
toggleDrawer(): void;
|
|
649
|
-
/**
|
|
650
|
-
* Moves the browser focus to the destination with the given id.
|
|
651
|
-
* @param id - Identifier of the destination to focus.
|
|
652
|
-
* @returns `true` when a matching destination was found and focused.
|
|
653
|
-
*/
|
|
654
|
-
focusItem(id: string): boolean;
|
|
655
|
-
/**
|
|
656
|
-
* Scrolls the list so that the destinations a branch has just revealed are visible.
|
|
657
|
-
*
|
|
658
|
-
* Opening a parent sitting near the bottom of the list adds its children BELOW the fold: the
|
|
659
|
-
* row answers the click, and nothing seems to happen. This scrolls to the end of the branch so
|
|
660
|
-
* the options show up where the user is already looking.
|
|
661
|
-
*
|
|
662
|
-
* The parent row is never pushed out of the top: when a branch is taller than the list, showing
|
|
663
|
-
* its end would cost the row that was clicked, so the scroll stops with the parent at the top
|
|
664
|
-
* edge and the branch runs off the bottom — the user reads it downwards from there.
|
|
665
|
-
*
|
|
666
|
-
* Only the wide variants expand inline; in the compact ones the children live in the floating
|
|
667
|
-
* panel and there is nothing to scroll.
|
|
668
|
-
*
|
|
669
|
-
* @param id - Identifier of the parent destination that has just been expanded.
|
|
670
|
-
* @returns void
|
|
671
|
-
*/
|
|
672
|
-
private revealBranch;
|
|
673
|
-
/**
|
|
674
|
-
* Moves the compact-only destinations of a group into a synthesized overflow
|
|
675
|
-
* destination appended at the end of the group.
|
|
676
|
-
* @param group - The group to process.
|
|
677
|
-
* @param overflow - `true` when `hideWhenCompact` must be honoured.
|
|
678
|
-
* @param max - Hard cap on the inline destinations; `0` disables it.
|
|
679
|
-
* @returns The group with the overflow destination applied.
|
|
680
|
-
*/
|
|
681
|
-
private applyOverflow;
|
|
682
|
-
/**
|
|
683
|
-
* Builds the synthesized, icon-only overflow destination.
|
|
684
|
-
* @param children - The destinations moved into the overflow menu.
|
|
685
|
-
* @returns The render model of the overflow destination.
|
|
686
|
-
*/
|
|
687
|
-
private buildOverflowItem;
|
|
688
|
-
/**
|
|
689
|
-
* Merges the `top` and `bottom` groups into a single `top` group, combining
|
|
690
|
-
* the sections that share an id so `@for` track keys stay unique.
|
|
691
|
-
* @param groups - The groups to merge.
|
|
692
|
-
* @returns A single-group array, or the input when there is nothing to merge.
|
|
693
|
-
*/
|
|
694
|
-
private static mergeGroups;
|
|
695
|
-
/**
|
|
696
|
-
* Builds the render model of a destination and, recursively, of its children.
|
|
697
|
-
* @param item - The source destination.
|
|
698
|
-
* @param section - The section the destination belongs to.
|
|
699
|
-
* @param parent - The parent destination, for nested destinations.
|
|
700
|
-
* @param depth - Nesting level of the destination.
|
|
701
|
-
* @param counter - Shared counter producing the flat destination index.
|
|
702
|
-
* @param hrefs - Map of destination id to resolved URL.
|
|
703
|
-
* @param dark - `true` when the dark theme is active, selecting the dark sprite frames.
|
|
704
|
-
* @returns The render model of the destination.
|
|
705
|
-
*/
|
|
706
|
-
private static buildRenderItem;
|
|
707
|
-
/**
|
|
708
|
-
* Translates a sprite descriptor into the inline custom properties the
|
|
709
|
-
* stylesheet uses to size the icon and to shift `background-position` per
|
|
710
|
-
* interaction state.
|
|
711
|
-
*
|
|
712
|
-
* The sheet is rescaled through `background-size` instead of being drawn at
|
|
713
|
-
* its natural size: that is what lets a strip of 26px frames be painted at the
|
|
714
|
-
* 24px of the surrounding Material icons without the neighbouring frames
|
|
715
|
-
* bleeding into the box, and it makes the step between two frames exactly the
|
|
716
|
-
* rendered side.
|
|
717
|
-
*
|
|
718
|
-
* @param item - The destination whose sprite must be translated.
|
|
719
|
-
* @param dark - `true` when the dark theme is active, selecting the `dark` frame set.
|
|
720
|
-
* @returns The inline style map, or `undefined` when the destination uses no sprite.
|
|
721
|
-
*/
|
|
722
|
-
private static buildSpriteStyle;
|
|
723
|
-
/**
|
|
724
|
-
* Number of frames a sprite sheet holds, needed to rescale it.
|
|
725
|
-
* @param sprite - The sprite descriptor to measure.
|
|
726
|
-
* @returns The declared frame count, or the highest referenced index plus one.
|
|
727
|
-
*/
|
|
728
|
-
private static spriteFrameCount;
|
|
729
|
-
/**
|
|
730
|
-
* Formats the badge content of a destination.
|
|
731
|
-
* @param item - The destination whose badge must be formatted.
|
|
732
|
-
* @returns The badge text, or an empty string for a dot badge / no badge.
|
|
733
|
-
*/
|
|
734
|
-
private static formatBadge;
|
|
735
|
-
/**
|
|
736
|
-
* Strips the query string and the fragment from a URL.
|
|
737
|
-
* @param url - The URL to normalise.
|
|
738
|
-
* @returns The path portion of the URL.
|
|
739
|
-
*/
|
|
740
|
-
private static pathOf;
|
|
741
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NavigationBarComponent, never>;
|
|
742
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NavigationBarComponent, "navigation-bar", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "sections": { "alias": "sections"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "autoVariants": { "alias": "autoVariants"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; "expandedIds": { "alias": "expandedIds"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; "labelVisibility": { "alias": "labelVisibility"; "required": false; "isSignal": true; }; "itemLayout": { "alias": "itemLayout"; "required": false; "isSignal": true; }; "childIcons": { "alias": "childIcons"; "required": false; "isSignal": true; }; "dense": { "alias": "dense"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "headline": { "alias": "headline"; "required": false; "isSignal": true; }; "showMenuButton": { "alias": "showMenuButton"; "required": false; "isSignal": true; }; "menuIcon": { "alias": "menuIcon"; "required": false; "isSignal": true; }; "expandIcon": { "alias": "expandIcon"; "required": false; "isSignal": true; }; "overflowMode": { "alias": "overflowMode"; "required": false; "isSignal": true; }; "overflowIcon": { "alias": "overflowIcon"; "required": false; "isSignal": true; }; "overflowLabel": { "alias": "overflowLabel"; "required": false; "isSignal": true; }; "maxVisibleItems": { "alias": "maxVisibleItems"; "required": false; "isSignal": true; }; "menuAriaLabel": { "alias": "menuAriaLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "scrim": { "alias": "scrim"; "required": false; "isSignal": true; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; "isSignal": true; }; "elevated": { "alias": "elevated"; "required": false; "isSignal": true; }; "bordered": { "alias": "bordered"; "required": false; "isSignal": true; }; "tooltips": { "alias": "tooltips"; "required": false; "isSignal": true; }; "routerSync": { "alias": "routerSync"; "required": false; "isSignal": true; }; "relativeTo": { "alias": "relativeTo"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "railWidth": { "alias": "railWidth"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; }, { "selectedId": "selectedIdChange"; "expandedIds": "expandedIdsChange"; "open": "openChange"; "itemSelected": "itemSelected"; "menuClick": "menuClick"; }, never, ["[navHeader]", "[navFab]", "[navFooter]"], true, never>;
|
|
310
|
+
/** Edge the group is pinned to. */
|
|
311
|
+
readonly align: 'top' | 'bottom';
|
|
312
|
+
/** Sections belonging to the group. */
|
|
313
|
+
readonly sections: readonly NavigationRenderSection[];
|
|
743
314
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
315
|
+
export declare class NavigationBarComponent {
|
|
316
|
+
private readonly media;
|
|
317
|
+
private readonly themeService;
|
|
318
|
+
private readonly router;
|
|
319
|
+
private readonly directionality;
|
|
320
|
+
private readonly hostRef;
|
|
321
|
+
/** Used to schedule the post-render read that reveals a branch just expanded. */
|
|
322
|
+
private readonly injector;
|
|
323
|
+
private readonly destroyRef;
|
|
324
|
+
/** Flat list of destinations. Ignored when `sections` is provided. */
|
|
325
|
+
readonly items: import("@angular/core").InputSignal<readonly NavigationItem[]>;
|
|
326
|
+
/** Grouped destinations. Section headlines and dividers only render in the expanded variants. */
|
|
327
|
+
readonly sections: import("@angular/core").InputSignal<readonly NavigationSection[]>;
|
|
328
|
+
/** Rendering variant. `auto` resolves from the active breakpoint through `autoVariants`. */
|
|
329
|
+
readonly variant: import("@angular/core").InputSignal<NavigationVariant>;
|
|
330
|
+
/** Breakpoint → variant map used when `variant` is `auto`. Missing entries fall back to the M3 defaults. */
|
|
331
|
+
readonly autoVariants: import("@angular/core").InputSignal<Partial<Record<"xs" | "sm" | "md" | "lg" | "xl", ResolvedNavigationVariant>>>;
|
|
332
|
+
/** Two-way bound id of the selected destination. The router, when active, takes precedence. */
|
|
333
|
+
readonly selectedId: import("@angular/core").ModelSignal<string>;
|
|
334
|
+
/**
|
|
335
|
+
* Two-way bound ids of the expanded parent destinations.
|
|
336
|
+
* Leave unbound (`undefined`) to let the component manage the expansion state
|
|
337
|
+
* on its own, seeding it from `NavigationItem.expanded` and auto-opening the
|
|
338
|
+
* ancestors of the active destination.
|
|
339
|
+
*/
|
|
340
|
+
readonly expandedIds: import("@angular/core").ModelSignal<readonly string[]>;
|
|
341
|
+
/** Two-way bound open state of the modal drawer. Ignored by the other variants. */
|
|
342
|
+
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
343
|
+
/** Label visibility policy. */
|
|
344
|
+
readonly labelVisibility: import("@angular/core").InputSignal<NavigationLabelVisibility>;
|
|
345
|
+
/** Icon / label arrangement inside a destination. */
|
|
346
|
+
readonly itemLayout: import("@angular/core").InputSignal<NavigationItemLayout>;
|
|
347
|
+
/**
|
|
348
|
+
* Icons of the nested destinations in the expanded variants (rail-expanded,
|
|
349
|
+
* drawer, modal), where children are listed inline under their parent.
|
|
350
|
+
* `false` — the default — renders those rows as label only, which keeps the
|
|
351
|
+
* branch readable; the label stays aligned with the labels around it and a
|
|
352
|
+
* badge moves to the trailing edge. Top level destinations always keep their
|
|
353
|
+
* icon, and so do the children shown in the floating panel of the compact
|
|
354
|
+
* variants.
|
|
355
|
+
*/
|
|
356
|
+
readonly childIcons: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
357
|
+
/**
|
|
358
|
+
* Compact rows in the expanded variants (rail-expanded, drawer, modal):
|
|
359
|
+
* 48px instead of the 56px of the M3 spec, with the dependent measures
|
|
360
|
+
* scaled along — nested rows 40px, labels one step smaller, tighter gaps.
|
|
361
|
+
* The bar and the collapsed rail keep their own spec metrics.
|
|
362
|
+
*/
|
|
363
|
+
readonly dense: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
364
|
+
/** Vertical alignment of the `top` destination group inside a rail. */
|
|
365
|
+
readonly alignment: import("@angular/core").InputSignal<NavigationAlignment>;
|
|
366
|
+
/** Edge the rail / drawer is anchored to. Mirrored automatically in RTL. */
|
|
367
|
+
readonly position: import("@angular/core").InputSignal<NavigationPosition>;
|
|
368
|
+
/** Headline rendered above the destinations in the expanded rail and in the drawer. */
|
|
369
|
+
readonly headline: import("@angular/core").InputSignal<string>;
|
|
370
|
+
/** When `true` a leading menu button is rendered; it emits `menuClick`. */
|
|
371
|
+
readonly showMenuButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
372
|
+
/** Material Symbols ligature used by the menu button. */
|
|
373
|
+
readonly menuIcon: import("@angular/core").InputSignal<string>;
|
|
374
|
+
/** Material Symbols ligature used by the expand / collapse chevron. */
|
|
375
|
+
readonly expandIcon: import("@angular/core").InputSignal<string>;
|
|
376
|
+
/** Where `hideWhenCompact` destinations are collapsed into the overflow menu. */
|
|
377
|
+
readonly overflowMode: import("@angular/core").InputSignal<NavigationOverflowMode>;
|
|
378
|
+
/** Material Symbols ligature of the overflow destination. */
|
|
379
|
+
readonly overflowIcon: import("@angular/core").InputSignal<string>;
|
|
380
|
+
/** Accessible name and tooltip of the overflow destination, which renders icon-only. */
|
|
381
|
+
readonly overflowLabel: import("@angular/core").InputSignal<string>;
|
|
382
|
+
/**
|
|
383
|
+
* Hard cap on the destinations rendered inline in the compact variants,
|
|
384
|
+
* applied per anchoring group. The overflow destination counts as one slot.
|
|
385
|
+
* `0` disables the cap; the M3 specs recommend 3 to 5 for the navigation bar.
|
|
386
|
+
*/
|
|
387
|
+
readonly maxVisibleItems: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
388
|
+
/** Accessible name of the menu button. */
|
|
389
|
+
readonly menuAriaLabel: import("@angular/core").InputSignal<string>;
|
|
390
|
+
/** Accessible name of the navigation landmark. */
|
|
391
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
392
|
+
/** When `true` a scrim is rendered behind the modal drawer. */
|
|
393
|
+
readonly scrim: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
394
|
+
/** When `true` the modal drawer closes as soon as a destination is activated. */
|
|
395
|
+
readonly closeOnSelect: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
396
|
+
/** When `true` the surface gets the M3 elevation-3 shadow. */
|
|
397
|
+
readonly elevated: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
398
|
+
/** When `true` a 1px divider separates the surface from the page content. */
|
|
399
|
+
readonly bordered: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
400
|
+
/** When `true` tooltips are shown for destinations whose label is not visible. */
|
|
401
|
+
readonly tooltips: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
402
|
+
/** When `true` the selection follows the current router URL. */
|
|
403
|
+
readonly routerSync: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
404
|
+
/** Route used to resolve relative `route` commands. Absolute resolution when omitted. */
|
|
405
|
+
readonly relativeTo: import("@angular/core").InputSignal<ActivatedRoute>;
|
|
406
|
+
/** Explicit surface width in pixels for the rail / drawer variants. `0` keeps the spec default. */
|
|
407
|
+
readonly width: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
408
|
+
/**
|
|
409
|
+
* Explicit width in pixels of the COLLAPSED rail. `0` keeps the 96px of the
|
|
410
|
+
* spec. It is separate from `width` because a surface set to `auto` is a
|
|
411
|
+
* collapsed rail at one breakpoint and an expanded one at the next, and the
|
|
412
|
+
* two want different widths; when both are given, this one wins on the
|
|
413
|
+
* collapsed rail and `width` covers the rest.
|
|
414
|
+
*/
|
|
415
|
+
readonly railWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
416
|
+
/**
|
|
417
|
+
* Lower bound in pixels for the width of the expanded variants (rail-expanded,
|
|
418
|
+
* drawer, modal). `0` keeps the default, which sets no floor. It is what keeps
|
|
419
|
+
* the surface readable when its width comes from a percentage or from a
|
|
420
|
+
* container that can shrink, instead of from `width`.
|
|
421
|
+
*/
|
|
422
|
+
readonly minWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
423
|
+
/**
|
|
424
|
+
* Upper bound in pixels for the width of the expanded variants (rail-expanded,
|
|
425
|
+
* drawer, modal). `0` keeps the default, which is the width of the parent: the
|
|
426
|
+
* surface never spills out of it, whatever `width` says.
|
|
427
|
+
*/
|
|
428
|
+
readonly maxWidth: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
429
|
+
/** When `true` the whole surface is hidden (animated off-screen) without being destroyed. */
|
|
430
|
+
readonly hidden: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
431
|
+
/** Emitted when a destination is activated by the user. */
|
|
432
|
+
readonly itemSelected: import("@angular/core").OutputEmitterRef<NavigationSelection>;
|
|
433
|
+
/** Emitted when the leading menu button is pressed. */
|
|
434
|
+
readonly menuClick: import("@angular/core").OutputEmitterRef<void>;
|
|
435
|
+
/** Focusable destination elements, in DOM order; used for keyboard roving. */
|
|
436
|
+
private readonly itemElements;
|
|
437
|
+
/** Focusable entries of the floating submenu panel, in DOM order. */
|
|
438
|
+
private readonly panelElements;
|
|
439
|
+
/** Current router URL, kept in a signal so the template stays zoneless-friendly. */
|
|
440
|
+
private readonly routerUrl;
|
|
441
|
+
/**
|
|
442
|
+
* Ticks whenever the application theme moves. The emitted value is ignored on
|
|
443
|
+
* purpose: it is a change notification, not the answer.
|
|
444
|
+
*
|
|
445
|
+
* Reads `themeService`, so it MUST stay below the injected dependencies: moved
|
|
446
|
+
* above them it would read `undefined`, `?? EMPTY` would swallow it and the
|
|
447
|
+
* theme would silently stop propagating, with nothing to show for it at
|
|
448
|
+
* compile time.
|
|
449
|
+
*/
|
|
450
|
+
private readonly themeChanged;
|
|
451
|
+
/**
|
|
452
|
+
* `true` when the dark theme is active; selects the dark frame set of a sprite.
|
|
453
|
+
*
|
|
454
|
+
* The answer comes from `getTheme()`, the only one that resolves `auto`
|
|
455
|
+
* against the OS preference. `getTheme()` already reads a signal for the
|
|
456
|
+
* explicit modes, so `themeChanged()` is read for the one case that is not
|
|
457
|
+
* reactive on its own: mode `auto` plus a change of the OS colour scheme,
|
|
458
|
+
* which leaves the stored mode on `auto` and only travels through `changed`.
|
|
459
|
+
* Falls back to the light set when no `ThemeService` is provided.
|
|
460
|
+
*/
|
|
461
|
+
private readonly isDark;
|
|
462
|
+
/** Id of the destination whose children are currently shown in the floating panel. */
|
|
463
|
+
private readonly popupId;
|
|
464
|
+
/**
|
|
465
|
+
* Destination whose children are currently shown in the floating panel.
|
|
466
|
+
*
|
|
467
|
+
* Derived from the id and NOT stored as an object: the render model is rebuilt
|
|
468
|
+
* whenever the destinations, the resolved URLs or the theme change, and a
|
|
469
|
+
* stored object would keep the panel painting the sprite frames of the
|
|
470
|
+
* previous theme until the panel is closed and reopened.
|
|
471
|
+
*
|
|
472
|
+
* The search is recursive because a panel entry can itself own children and
|
|
473
|
+
* open a panel of its own, and those nested render models are not part of the
|
|
474
|
+
* top level of `visibleGroups`.
|
|
475
|
+
*
|
|
476
|
+
* Reads `visibleGroups`, which is declared further down: safe because
|
|
477
|
+
* `computed` is lazy and nothing reads this before the first render — the
|
|
478
|
+
* opposite of `themeChanged` above, which reads its dependency immediately.
|
|
479
|
+
*/
|
|
480
|
+
protected readonly popupItem: import("@angular/core").Signal<NavigationRenderItem>;
|
|
481
|
+
/** Element the floating panel is anchored to. */
|
|
482
|
+
private readonly popupAnchor;
|
|
483
|
+
constructor();
|
|
484
|
+
/** Sections actually rendered: the `sections` input, or a single implicit section wrapping `items`. */
|
|
485
|
+
private readonly resolvedSections;
|
|
486
|
+
/** Every destination, nested ones included, in depth-first order. */
|
|
487
|
+
private readonly allItems;
|
|
488
|
+
/** Map of destination id to the id of its parent destination. */
|
|
489
|
+
private readonly parentOf;
|
|
490
|
+
/** The variant to render, resolving `auto` against the active CDK breakpoint. */
|
|
491
|
+
protected readonly resolvedVariant: import("@angular/core").Signal<ResolvedNavigationVariant>;
|
|
492
|
+
/** `true` for the variants that render labels beside icons and support sections. */
|
|
493
|
+
protected readonly isExpanded: import("@angular/core").Signal<boolean>;
|
|
494
|
+
/** `true` when the surface is the modal drawer. */
|
|
495
|
+
protected readonly isModal: import("@angular/core").Signal<boolean>;
|
|
496
|
+
/** `true` when the modal drawer is currently open. */
|
|
497
|
+
protected readonly isOverlayOpen: import("@angular/core").Signal<boolean>;
|
|
498
|
+
/** `true` when the surface must be visually hidden. */
|
|
499
|
+
protected readonly isHidden: import("@angular/core").Signal<boolean>;
|
|
500
|
+
/** Resolved icon / label arrangement. */
|
|
501
|
+
protected readonly resolvedLayout: import("@angular/core").Signal<"vertical" | "horizontal">;
|
|
502
|
+
/** Resolved label visibility; the expanded variants always show labels. */
|
|
503
|
+
protected readonly resolvedLabelVisibility: import("@angular/core").Signal<"labeled" | "selected" | "unlabeled">;
|
|
504
|
+
/** `true` when the headline row (menu button, headline text) is rendered. */
|
|
505
|
+
protected readonly showsHeader: import("@angular/core").Signal<boolean>;
|
|
506
|
+
/**
|
|
507
|
+
* Geometry of the active indicator:
|
|
508
|
+
* `compact` wraps the icon only (56x32 pill), `wide` wraps icon and label
|
|
509
|
+
* together, exactly as described by the M3 Expressive specs.
|
|
510
|
+
*/
|
|
511
|
+
protected readonly indicatorMode: import("@angular/core").Signal<"wide" | "compact">;
|
|
512
|
+
/** Tooltip placement derived from the variant and from the anchoring edge. */
|
|
513
|
+
protected readonly tooltipPosition: import("@angular/core").Signal<TooltipPosition>;
|
|
514
|
+
/** Inline width override for the rail / drawer, or `undefined` to keep the spec default. */
|
|
515
|
+
protected readonly widthStyle: import("@angular/core").Signal<string>;
|
|
516
|
+
/** Inline width override for the collapsed rail, or `undefined` to keep the spec default. */
|
|
517
|
+
protected readonly railWidthStyle: import("@angular/core").Signal<string>;
|
|
518
|
+
/** Inline lower bound for the expanded variants, or `undefined` to keep the default. */
|
|
519
|
+
protected readonly minWidthStyle: import("@angular/core").Signal<string>;
|
|
520
|
+
/** Inline upper bound for the expanded variants, or `undefined` to keep the default. */
|
|
521
|
+
protected readonly maxWidthStyle: import("@angular/core").Signal<string>;
|
|
522
|
+
/** Map of destination id to resolved URL. Recomputed only when the destinations change. */
|
|
523
|
+
private readonly hrefs;
|
|
524
|
+
/**
|
|
525
|
+
* Static render model, rebuilt only when the destinations, the resolved URLs
|
|
526
|
+
* or the theme change — never when the selection or the expansion state
|
|
527
|
+
* changes. The theme is a dependency because sprite icons carry one frame set
|
|
528
|
+
* per theme, and the frames are baked into the inline style of the icon.
|
|
529
|
+
*/
|
|
530
|
+
private readonly renderGroups;
|
|
531
|
+
/** Id of the destination matching the current router URL, using longest-prefix matching. */
|
|
532
|
+
private readonly routerActiveId;
|
|
533
|
+
/** Id of the currently active destination: router URL first, explicit selection as fallback. */
|
|
534
|
+
protected readonly activeId: import("@angular/core").Signal<string>;
|
|
535
|
+
/**
|
|
536
|
+
* Expansion state used when `expandedIds` is left unbound: the destinations
|
|
537
|
+
* flagged `expanded`, plus every ancestor of the active destination.
|
|
538
|
+
*/
|
|
539
|
+
private readonly defaultExpandedIds;
|
|
540
|
+
/** Ids of the parent destinations currently expanded. */
|
|
541
|
+
protected readonly expandedSet: import("@angular/core").Signal<ReadonlySet<string>>;
|
|
542
|
+
/** `true` when the current variant collapses `hideWhenCompact` destinations into the overflow menu. */
|
|
543
|
+
protected readonly overflowApplies: import("@angular/core").Signal<boolean>;
|
|
544
|
+
/**
|
|
545
|
+
* Render model actually walked by the template: the static model with the
|
|
546
|
+
* compact-only destinations moved into the overflow menu and the children of
|
|
547
|
+
* the expanded parents spliced in.
|
|
548
|
+
*/
|
|
549
|
+
protected readonly visibleGroups: import("@angular/core").Signal<readonly NavigationRenderGroup[]>;
|
|
550
|
+
/**
|
|
551
|
+
* Ids rendered with the selected styling: the active destination alone, and only
|
|
552
|
+
* while it is on screen. A parent stands in for nothing here — the template drops
|
|
553
|
+
* it unless it owns a route of its own — so a destination hidden inside a closed
|
|
554
|
+
* branch leaves this set empty and `ancestorIds` marks the trail instead.
|
|
555
|
+
*/
|
|
556
|
+
protected readonly highlightedIds: import("@angular/core").Signal<ReadonlySet<string>>;
|
|
557
|
+
/**
|
|
558
|
+
* Ids of the ancestors of the active destination. No variant ever shows a parent
|
|
559
|
+
* as selected, so this trail is what tells the user where they are: it marks the
|
|
560
|
+
* whole chain down to the active destination, whether its branch is open, closed
|
|
561
|
+
* or inside a floating panel. Ancestors that are not rendered simply never reach
|
|
562
|
+
* the template.
|
|
563
|
+
*/
|
|
564
|
+
protected readonly ancestorIds: import("@angular/core").Signal<ReadonlySet<string>>;
|
|
565
|
+
/**
|
|
566
|
+
* Rows of the floating submenu panel. Nested destinations one level down are
|
|
567
|
+
* flattened under a heading, so the overflow menu can hold parents too.
|
|
568
|
+
*/
|
|
569
|
+
protected readonly popupEntries: import("@angular/core").Signal<readonly NavigationPanelEntry[]>;
|
|
570
|
+
/** `true` when the floating submenu panel must be shown. */
|
|
571
|
+
protected readonly isPopupOpen: import("@angular/core").Signal<boolean>;
|
|
572
|
+
/** Element the floating submenu panel is anchored to. */
|
|
573
|
+
protected readonly popupOrigin: import("@angular/core").Signal<HTMLElement>;
|
|
574
|
+
/** Connected positions of the floating submenu panel, derived from the variant. */
|
|
575
|
+
protected readonly popupPositions: import("@angular/core").Signal<ConnectedPosition[]>;
|
|
576
|
+
/** `true` when the layout runs right-to-left; used to mirror the arrow keys. */
|
|
577
|
+
private readonly isRtl;
|
|
578
|
+
/**
|
|
579
|
+
* Activates a destination, or expands it when it owns nested destinations.
|
|
580
|
+
* A parent never navigates: it toggles its group inline in the wide variants
|
|
581
|
+
* and opens the floating panel in the compact ones.
|
|
582
|
+
* @param render - The render model of the activated destination.
|
|
583
|
+
* @param event - The originating mouse or keyboard event.
|
|
584
|
+
*/
|
|
585
|
+
protected select(render: NavigationRenderItem, event: Event): void;
|
|
586
|
+
/**
|
|
587
|
+
* Emits `menuClick` when the leading menu button is pressed.
|
|
588
|
+
*/
|
|
589
|
+
protected onMenuClick(): void;
|
|
590
|
+
/**
|
|
591
|
+
* Closes the modal drawer when the scrim is clicked.
|
|
592
|
+
*/
|
|
593
|
+
protected onScrimClick(): void;
|
|
594
|
+
/**
|
|
595
|
+
* Handles keyboard interaction: arrow keys move the focus between
|
|
596
|
+
* destinations, `Home` / `End` jump to the first / last one and `Escape`
|
|
597
|
+
* closes the floating submenu panel or the modal drawer.
|
|
598
|
+
*
|
|
599
|
+
* The same handler serves the surface and the floating panel, and it tells
|
|
600
|
+
* them apart by `currentTarget`: roving inside an open `role="menu"` must stay
|
|
601
|
+
* inside it, and a programmatic `focus()` is NOT stopped by the focus trap, so
|
|
602
|
+
* sharing one element list would send the focus onto the surface behind the
|
|
603
|
+
* overlay.
|
|
604
|
+
*
|
|
605
|
+
* @param event - The originating keyboard event.
|
|
606
|
+
*/
|
|
607
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
608
|
+
/**
|
|
609
|
+
* Expands or collapses the parent destination with the given id.
|
|
610
|
+
* @param id - Identifier of the parent destination to toggle.
|
|
611
|
+
*/
|
|
612
|
+
toggleExpanded(id: string): void;
|
|
613
|
+
/**
|
|
614
|
+
* Opens the floating submenu panel of a parent destination.
|
|
615
|
+
* @param render - The render model of the parent destination.
|
|
616
|
+
* @param event - The originating event, used to anchor the panel.
|
|
617
|
+
*/
|
|
618
|
+
protected openPopup(render: NavigationRenderItem, event: Event): void;
|
|
619
|
+
/**
|
|
620
|
+
* Closes the floating submenu panel.
|
|
621
|
+
*/
|
|
622
|
+
closePopup(): void;
|
|
623
|
+
/**
|
|
624
|
+
* Opens the modal drawer. No-op for the other variants.
|
|
625
|
+
*/
|
|
626
|
+
openDrawer(): void;
|
|
627
|
+
/**
|
|
628
|
+
* Closes the modal drawer. No-op for the other variants.
|
|
629
|
+
*/
|
|
630
|
+
closeDrawer(): void;
|
|
631
|
+
/**
|
|
632
|
+
* Toggles the modal drawer. No-op for the other variants.
|
|
633
|
+
*/
|
|
634
|
+
toggleDrawer(): void;
|
|
635
|
+
/**
|
|
636
|
+
* Moves the browser focus to the destination with the given id.
|
|
637
|
+
* @param id - Identifier of the destination to focus.
|
|
638
|
+
* @returns `true` when a matching destination was found and focused.
|
|
639
|
+
*/
|
|
640
|
+
focusItem(id: string): boolean;
|
|
641
|
+
/**
|
|
642
|
+
* Scrolls the list so that the destinations a branch has just revealed are visible.
|
|
643
|
+
*
|
|
644
|
+
* Opening a parent sitting near the bottom of the list adds its children BELOW the fold: the
|
|
645
|
+
* row answers the click, and nothing seems to happen. This scrolls to the end of the branch so
|
|
646
|
+
* the options show up where the user is already looking.
|
|
647
|
+
*
|
|
648
|
+
* The parent row is never pushed out of the top: when a branch is taller than the list, showing
|
|
649
|
+
* its end would cost the row that was clicked, so the scroll stops with the parent at the top
|
|
650
|
+
* edge and the branch runs off the bottom — the user reads it downwards from there.
|
|
651
|
+
*
|
|
652
|
+
* Only the wide variants expand inline; in the compact ones the children live in the floating
|
|
653
|
+
* panel and there is nothing to scroll.
|
|
654
|
+
*
|
|
655
|
+
* @param id - Identifier of the parent destination that has just been expanded.
|
|
656
|
+
* @returns void
|
|
657
|
+
*/
|
|
658
|
+
private revealBranch;
|
|
659
|
+
/**
|
|
660
|
+
* Moves the compact-only destinations of a group into a synthesized overflow
|
|
661
|
+
* destination appended at the end of the group.
|
|
662
|
+
* @param group - The group to process.
|
|
663
|
+
* @param overflow - `true` when `hideWhenCompact` must be honoured.
|
|
664
|
+
* @param max - Hard cap on the inline destinations; `0` disables it.
|
|
665
|
+
* @returns The group with the overflow destination applied.
|
|
666
|
+
*/
|
|
667
|
+
private applyOverflow;
|
|
668
|
+
/**
|
|
669
|
+
* Builds the synthesized, icon-only overflow destination.
|
|
670
|
+
* @param children - The destinations moved into the overflow menu.
|
|
671
|
+
* @returns The render model of the overflow destination.
|
|
672
|
+
*/
|
|
673
|
+
private buildOverflowItem;
|
|
674
|
+
/**
|
|
675
|
+
* Merges the `top` and `bottom` groups into a single `top` group, combining
|
|
676
|
+
* the sections that share an id so `@for` track keys stay unique.
|
|
677
|
+
* @param groups - The groups to merge.
|
|
678
|
+
* @returns A single-group array, or the input when there is nothing to merge.
|
|
679
|
+
*/
|
|
680
|
+
private static mergeGroups;
|
|
681
|
+
/**
|
|
682
|
+
* Builds the render model of a destination and, recursively, of its children.
|
|
683
|
+
* @param item - The source destination.
|
|
684
|
+
* @param section - The section the destination belongs to.
|
|
685
|
+
* @param parent - The parent destination, for nested destinations.
|
|
686
|
+
* @param depth - Nesting level of the destination.
|
|
687
|
+
* @param counter - Shared counter producing the flat destination index.
|
|
688
|
+
* @param hrefs - Map of destination id to resolved URL.
|
|
689
|
+
* @param dark - `true` when the dark theme is active, selecting the dark sprite frames.
|
|
690
|
+
* @returns The render model of the destination.
|
|
691
|
+
*/
|
|
692
|
+
private static buildRenderItem;
|
|
693
|
+
/**
|
|
694
|
+
* Translates a sprite descriptor into the inline custom properties the
|
|
695
|
+
* stylesheet uses to size the icon and to shift `background-position` per
|
|
696
|
+
* interaction state.
|
|
697
|
+
*
|
|
698
|
+
* The sheet is rescaled through `background-size` instead of being drawn at
|
|
699
|
+
* its natural size: that is what lets a strip of 26px frames be painted at the
|
|
700
|
+
* 24px of the surrounding Material icons without the neighbouring frames
|
|
701
|
+
* bleeding into the box, and it makes the step between two frames exactly the
|
|
702
|
+
* rendered side.
|
|
703
|
+
*
|
|
704
|
+
* @param item - The destination whose sprite must be translated.
|
|
705
|
+
* @param dark - `true` when the dark theme is active, selecting the `dark` frame set.
|
|
706
|
+
* @returns The inline style map, or `undefined` when the destination uses no sprite.
|
|
707
|
+
*/
|
|
708
|
+
private static buildSpriteStyle;
|
|
709
|
+
/**
|
|
710
|
+
* Number of frames a sprite sheet holds, needed to rescale it.
|
|
711
|
+
* @param sprite - The sprite descriptor to measure.
|
|
712
|
+
* @returns The declared frame count, or the highest referenced index plus one.
|
|
713
|
+
*/
|
|
714
|
+
private static spriteFrameCount;
|
|
715
|
+
/**
|
|
716
|
+
* Formats the badge content of a destination.
|
|
717
|
+
* @param item - The destination whose badge must be formatted.
|
|
718
|
+
* @returns The badge text, or an empty string for a dot badge / no badge.
|
|
719
|
+
*/
|
|
720
|
+
private static formatBadge;
|
|
721
|
+
/**
|
|
722
|
+
* Strips the query string and the fragment from a URL.
|
|
723
|
+
* @param url - The URL to normalise.
|
|
724
|
+
* @returns The path portion of the URL.
|
|
725
|
+
*/
|
|
726
|
+
private static pathOf;
|
|
727
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationBarComponent, never>;
|
|
728
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavigationBarComponent, "navigation-bar", never, {
|
|
729
|
+
"items": {
|
|
730
|
+
"alias": "items";
|
|
731
|
+
"required": false;
|
|
732
|
+
"isSignal": true;
|
|
733
|
+
};
|
|
734
|
+
"sections": {
|
|
735
|
+
"alias": "sections";
|
|
736
|
+
"required": false;
|
|
737
|
+
"isSignal": true;
|
|
738
|
+
};
|
|
739
|
+
"variant": {
|
|
740
|
+
"alias": "variant";
|
|
741
|
+
"required": false;
|
|
742
|
+
"isSignal": true;
|
|
743
|
+
};
|
|
744
|
+
"autoVariants": {
|
|
745
|
+
"alias": "autoVariants";
|
|
746
|
+
"required": false;
|
|
747
|
+
"isSignal": true;
|
|
748
|
+
};
|
|
749
|
+
"selectedId": {
|
|
750
|
+
"alias": "selectedId";
|
|
751
|
+
"required": false;
|
|
752
|
+
"isSignal": true;
|
|
753
|
+
};
|
|
754
|
+
"expandedIds": {
|
|
755
|
+
"alias": "expandedIds";
|
|
756
|
+
"required": false;
|
|
757
|
+
"isSignal": true;
|
|
758
|
+
};
|
|
759
|
+
"open": {
|
|
760
|
+
"alias": "open";
|
|
761
|
+
"required": false;
|
|
762
|
+
"isSignal": true;
|
|
763
|
+
};
|
|
764
|
+
"labelVisibility": {
|
|
765
|
+
"alias": "labelVisibility";
|
|
766
|
+
"required": false;
|
|
767
|
+
"isSignal": true;
|
|
768
|
+
};
|
|
769
|
+
"itemLayout": {
|
|
770
|
+
"alias": "itemLayout";
|
|
771
|
+
"required": false;
|
|
772
|
+
"isSignal": true;
|
|
773
|
+
};
|
|
774
|
+
"childIcons": {
|
|
775
|
+
"alias": "childIcons";
|
|
776
|
+
"required": false;
|
|
777
|
+
"isSignal": true;
|
|
778
|
+
};
|
|
779
|
+
"dense": {
|
|
780
|
+
"alias": "dense";
|
|
781
|
+
"required": false;
|
|
782
|
+
"isSignal": true;
|
|
783
|
+
};
|
|
784
|
+
"alignment": {
|
|
785
|
+
"alias": "alignment";
|
|
786
|
+
"required": false;
|
|
787
|
+
"isSignal": true;
|
|
788
|
+
};
|
|
789
|
+
"position": {
|
|
790
|
+
"alias": "position";
|
|
791
|
+
"required": false;
|
|
792
|
+
"isSignal": true;
|
|
793
|
+
};
|
|
794
|
+
"headline": {
|
|
795
|
+
"alias": "headline";
|
|
796
|
+
"required": false;
|
|
797
|
+
"isSignal": true;
|
|
798
|
+
};
|
|
799
|
+
"showMenuButton": {
|
|
800
|
+
"alias": "showMenuButton";
|
|
801
|
+
"required": false;
|
|
802
|
+
"isSignal": true;
|
|
803
|
+
};
|
|
804
|
+
"menuIcon": {
|
|
805
|
+
"alias": "menuIcon";
|
|
806
|
+
"required": false;
|
|
807
|
+
"isSignal": true;
|
|
808
|
+
};
|
|
809
|
+
"expandIcon": {
|
|
810
|
+
"alias": "expandIcon";
|
|
811
|
+
"required": false;
|
|
812
|
+
"isSignal": true;
|
|
813
|
+
};
|
|
814
|
+
"overflowMode": {
|
|
815
|
+
"alias": "overflowMode";
|
|
816
|
+
"required": false;
|
|
817
|
+
"isSignal": true;
|
|
818
|
+
};
|
|
819
|
+
"overflowIcon": {
|
|
820
|
+
"alias": "overflowIcon";
|
|
821
|
+
"required": false;
|
|
822
|
+
"isSignal": true;
|
|
823
|
+
};
|
|
824
|
+
"overflowLabel": {
|
|
825
|
+
"alias": "overflowLabel";
|
|
826
|
+
"required": false;
|
|
827
|
+
"isSignal": true;
|
|
828
|
+
};
|
|
829
|
+
"maxVisibleItems": {
|
|
830
|
+
"alias": "maxVisibleItems";
|
|
831
|
+
"required": false;
|
|
832
|
+
"isSignal": true;
|
|
833
|
+
};
|
|
834
|
+
"menuAriaLabel": {
|
|
835
|
+
"alias": "menuAriaLabel";
|
|
836
|
+
"required": false;
|
|
837
|
+
"isSignal": true;
|
|
838
|
+
};
|
|
839
|
+
"ariaLabel": {
|
|
840
|
+
"alias": "ariaLabel";
|
|
841
|
+
"required": false;
|
|
842
|
+
"isSignal": true;
|
|
843
|
+
};
|
|
844
|
+
"scrim": {
|
|
845
|
+
"alias": "scrim";
|
|
846
|
+
"required": false;
|
|
847
|
+
"isSignal": true;
|
|
848
|
+
};
|
|
849
|
+
"closeOnSelect": {
|
|
850
|
+
"alias": "closeOnSelect";
|
|
851
|
+
"required": false;
|
|
852
|
+
"isSignal": true;
|
|
853
|
+
};
|
|
854
|
+
"elevated": {
|
|
855
|
+
"alias": "elevated";
|
|
856
|
+
"required": false;
|
|
857
|
+
"isSignal": true;
|
|
858
|
+
};
|
|
859
|
+
"bordered": {
|
|
860
|
+
"alias": "bordered";
|
|
861
|
+
"required": false;
|
|
862
|
+
"isSignal": true;
|
|
863
|
+
};
|
|
864
|
+
"tooltips": {
|
|
865
|
+
"alias": "tooltips";
|
|
866
|
+
"required": false;
|
|
867
|
+
"isSignal": true;
|
|
868
|
+
};
|
|
869
|
+
"routerSync": {
|
|
870
|
+
"alias": "routerSync";
|
|
871
|
+
"required": false;
|
|
872
|
+
"isSignal": true;
|
|
873
|
+
};
|
|
874
|
+
"relativeTo": {
|
|
875
|
+
"alias": "relativeTo";
|
|
876
|
+
"required": false;
|
|
877
|
+
"isSignal": true;
|
|
878
|
+
};
|
|
879
|
+
"width": {
|
|
880
|
+
"alias": "width";
|
|
881
|
+
"required": false;
|
|
882
|
+
"isSignal": true;
|
|
883
|
+
};
|
|
884
|
+
"railWidth": {
|
|
885
|
+
"alias": "railWidth";
|
|
886
|
+
"required": false;
|
|
887
|
+
"isSignal": true;
|
|
888
|
+
};
|
|
889
|
+
"minWidth": {
|
|
890
|
+
"alias": "minWidth";
|
|
891
|
+
"required": false;
|
|
892
|
+
"isSignal": true;
|
|
893
|
+
};
|
|
894
|
+
"maxWidth": {
|
|
895
|
+
"alias": "maxWidth";
|
|
896
|
+
"required": false;
|
|
897
|
+
"isSignal": true;
|
|
898
|
+
};
|
|
899
|
+
"hidden": {
|
|
900
|
+
"alias": "hidden";
|
|
901
|
+
"required": false;
|
|
902
|
+
"isSignal": true;
|
|
903
|
+
};
|
|
904
|
+
}, {
|
|
905
|
+
"selectedId": "selectedIdChange";
|
|
906
|
+
"expandedIds": "expandedIdsChange";
|
|
907
|
+
"open": "openChange";
|
|
908
|
+
"itemSelected": "itemSelected";
|
|
909
|
+
"menuClick": "menuClick";
|
|
910
|
+
}, never, ["[navHeader]", "[navFab]", "[navFooter]"], true, never>;
|
|
911
|
+
}
|