@edsis/angular 22.0.30 → 22.0.33
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input,
|
|
2
|
+
import { input, Component, computed, inject, DestroyRef, signal } from '@angular/core';
|
|
3
3
|
import { RouterLink, RouterOutlet } from '@angular/router';
|
|
4
4
|
import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent } from '@edsis/theme/layout';
|
|
5
5
|
import { DOCUMENT } from '@angular/common';
|
|
@@ -10,15 +10,16 @@ import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
|
|
|
10
10
|
class BlockShellNavigationAvatarComponent {
|
|
11
11
|
initials = input.required(/* @ts-ignore */
|
|
12
12
|
...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
14
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: BlockShellNavigationAvatarComponent, isStandalone: true, selector: "block-shell-navigation-avatar", inputs: { initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
15
15
|
<span
|
|
16
|
-
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-sm bg-primary text-xs font-semibold text-primary-foreground"
|
|
16
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-sm bg-primary text-xs font-semibold text-primary-foreground"
|
|
17
|
+
>
|
|
17
18
|
{{ initials() }}
|
|
18
19
|
</span>
|
|
19
|
-
`, isInline: true
|
|
20
|
+
`, isInline: true });
|
|
20
21
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
|
|
22
23
|
type: Component,
|
|
23
24
|
args: [{
|
|
24
25
|
selector: 'block-shell-navigation-avatar',
|
|
@@ -27,11 +28,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
27
28
|
},
|
|
28
29
|
template: `
|
|
29
30
|
<span
|
|
30
|
-
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-sm bg-primary text-xs font-semibold text-primary-foreground"
|
|
31
|
+
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-sm bg-primary text-xs font-semibold text-primary-foreground"
|
|
32
|
+
>
|
|
31
33
|
{{ initials() }}
|
|
32
34
|
</span>
|
|
33
35
|
`,
|
|
34
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
36
|
}]
|
|
36
37
|
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }] } });
|
|
37
38
|
|
|
@@ -44,15 +45,15 @@ class BlockShellNavigationMetaComponent {
|
|
|
44
45
|
...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
|
|
45
46
|
subtitleClass = input('truncate text-xs text-muted-foreground', /* @ts-ignore */
|
|
46
47
|
...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
|
|
47
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
48
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: BlockShellNavigationMetaComponent, isStandalone: true, selector: "block-shell-navigation-meta", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, containerClass: { classPropertyName: "containerClass", publicName: "containerClass", isSignal: true, isRequired: false, transformFunction: null }, subtitleClass: { classPropertyName: "subtitleClass", publicName: "subtitleClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
49
50
|
<div [class]="containerClass()">
|
|
50
51
|
<p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
|
|
51
52
|
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
52
53
|
</div>
|
|
53
|
-
`, isInline: true
|
|
54
|
+
`, isInline: true });
|
|
54
55
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationMetaComponent, decorators: [{
|
|
56
57
|
type: Component,
|
|
57
58
|
args: [{
|
|
58
59
|
selector: 'block-shell-navigation-meta',
|
|
@@ -65,7 +66,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
65
66
|
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
66
67
|
</div>
|
|
67
68
|
`,
|
|
68
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
69
|
}]
|
|
70
70
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], containerClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "containerClass", required: false }] }], subtitleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitleClass", required: false }] }] } });
|
|
71
71
|
|
|
@@ -92,8 +92,8 @@ class BlockShellNavigationFooterComponent {
|
|
|
92
92
|
return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
|
|
93
93
|
}, /* @ts-ignore */
|
|
94
94
|
...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
|
|
95
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
96
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
96
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellNavigationFooterComponent, isStandalone: true, selector: "block-shell-navigation-footer", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, initials: { classPropertyName: "initials", publicName: "initials", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, desktopOnly: { classPropertyName: "desktopOnly", publicName: "desktopOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
97
97
|
@if (collapsible()) {
|
|
98
98
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
99
99
|
<block-shell-navigation-avatar [initials]="resolvedInitials()" />
|
|
@@ -102,7 +102,8 @@ class BlockShellNavigationFooterComponent {
|
|
|
102
102
|
<block-shell-navigation-meta
|
|
103
103
|
[name]="name()"
|
|
104
104
|
[subtitle]="subtitle()"
|
|
105
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
105
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
106
|
+
/>
|
|
106
107
|
</div>
|
|
107
108
|
</div>
|
|
108
109
|
} @else {
|
|
@@ -111,12 +112,13 @@ class BlockShellNavigationFooterComponent {
|
|
|
111
112
|
<block-shell-navigation-meta
|
|
112
113
|
[name]="name()"
|
|
113
114
|
[subtitle]="subtitle()"
|
|
114
|
-
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
115
|
+
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
116
|
+
/>
|
|
115
117
|
</div>
|
|
116
118
|
}
|
|
117
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }]
|
|
119
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }] });
|
|
118
120
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
|
|
120
122
|
type: Component,
|
|
121
123
|
args: [{
|
|
122
124
|
selector: 'block-shell-navigation-footer',
|
|
@@ -138,7 +140,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
138
140
|
<block-shell-navigation-meta
|
|
139
141
|
[name]="name()"
|
|
140
142
|
[subtitle]="subtitle()"
|
|
141
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
143
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
144
|
+
/>
|
|
142
145
|
</div>
|
|
143
146
|
</div>
|
|
144
147
|
} @else {
|
|
@@ -147,11 +150,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
147
150
|
<block-shell-navigation-meta
|
|
148
151
|
[name]="name()"
|
|
149
152
|
[subtitle]="subtitle()"
|
|
150
|
-
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
153
|
+
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
154
|
+
/>
|
|
151
155
|
</div>
|
|
152
156
|
}
|
|
153
157
|
`,
|
|
154
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
155
158
|
}]
|
|
156
159
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], desktopOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "desktopOnly", required: false }] }] } });
|
|
157
160
|
|
|
@@ -162,20 +165,21 @@ class BlockShellLogoComponent {
|
|
|
162
165
|
...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
|
|
163
166
|
ariaLabel = input('Buka aplikasi', /* @ts-ignore */
|
|
164
167
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
165
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
166
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: BlockShellLogoComponent, isStandalone: true, selector: "block-shell-logo", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
167
170
|
<div class="w-8 shrink-0">
|
|
168
171
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
169
172
|
<div
|
|
170
173
|
class="flex h-full w-full items-center justify-center px-0.5 text-[0.58rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
|
|
171
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
174
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
175
|
+
>
|
|
172
176
|
{{ text() }}
|
|
173
177
|
</div>
|
|
174
178
|
</AspectRatio>
|
|
175
179
|
</div>
|
|
176
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }]
|
|
180
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }] });
|
|
177
181
|
}
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
|
|
179
183
|
type: Component,
|
|
180
184
|
args: [{
|
|
181
185
|
selector: 'block-shell-logo',
|
|
@@ -188,13 +192,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
188
192
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
189
193
|
<div
|
|
190
194
|
class="flex h-full w-full items-center justify-center px-0.5 text-[0.58rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
|
|
191
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
195
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
196
|
+
>
|
|
192
197
|
{{ text() }}
|
|
193
198
|
</div>
|
|
194
199
|
</AspectRatio>
|
|
195
200
|
</div>
|
|
196
201
|
`,
|
|
197
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
198
202
|
}]
|
|
199
203
|
}], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
200
204
|
|
|
@@ -221,12 +225,13 @@ class BlockShellNavigationHeaderComponent {
|
|
|
221
225
|
const activeHomePath = this.homePath();
|
|
222
226
|
return path === activeHomePath || path.startsWith(`${activeHomePath}/`);
|
|
223
227
|
}
|
|
224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
225
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
228
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
229
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellNavigationHeaderComponent, isStandalone: true, selector: "block-shell-navigation-header", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: true, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
226
230
|
<ng-template PopoverContent #workspaceSwitcher="PopoverContent">
|
|
227
231
|
<div
|
|
228
232
|
data-block-shell-workspace-panel
|
|
229
|
-
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg"
|
|
233
|
+
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg"
|
|
234
|
+
>
|
|
230
235
|
@for (workspace of workspaceLinks(); track workspace.id) {
|
|
231
236
|
<a
|
|
232
237
|
[routerLink]="workspace.path"
|
|
@@ -237,9 +242,12 @@ class BlockShellNavigationHeaderComponent {
|
|
|
237
242
|
[class.bg-primary/5]="isActiveWorkspace(workspace.path)"
|
|
238
243
|
[class.text-foreground]="isActiveWorkspace(workspace.path)"
|
|
239
244
|
[class.border-transparent]="!isActiveWorkspace(workspace.path)"
|
|
240
|
-
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
245
|
+
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
246
|
+
>
|
|
241
247
|
<span class="block text-sm font-semibold tracking-tight">{{ workspace.label }}</span>
|
|
242
|
-
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
248
|
+
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
249
|
+
workspace.description
|
|
250
|
+
}}</span>
|
|
243
251
|
</a>
|
|
244
252
|
}
|
|
245
253
|
</div>
|
|
@@ -255,7 +263,8 @@ class BlockShellNavigationHeaderComponent {
|
|
|
255
263
|
align="start"
|
|
256
264
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
257
265
|
data-block-shell-workspace-trigger
|
|
258
|
-
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
266
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
267
|
+
>
|
|
259
268
|
<block-shell-logo [text]="logoText()" />
|
|
260
269
|
</button>
|
|
261
270
|
} @else {
|
|
@@ -267,11 +276,13 @@ class BlockShellNavigationHeaderComponent {
|
|
|
267
276
|
[routerLink]="homePath()"
|
|
268
277
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
269
278
|
data-block-shell-home-link
|
|
270
|
-
class="block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
279
|
+
class="block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
280
|
+
>
|
|
271
281
|
<block-shell-navigation-meta
|
|
272
282
|
[name]="subtitle()"
|
|
273
283
|
[subtitle]="name()"
|
|
274
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
284
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
285
|
+
/>
|
|
275
286
|
</a>
|
|
276
287
|
</div>
|
|
277
288
|
</div>
|
|
@@ -285,7 +296,8 @@ class BlockShellNavigationHeaderComponent {
|
|
|
285
296
|
align="start"
|
|
286
297
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
287
298
|
data-block-shell-workspace-trigger
|
|
288
|
-
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
299
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
300
|
+
>
|
|
289
301
|
<block-shell-logo [text]="logoText()" />
|
|
290
302
|
</button>
|
|
291
303
|
} @else {
|
|
@@ -296,14 +308,15 @@ class BlockShellNavigationHeaderComponent {
|
|
|
296
308
|
[routerLink]="homePath()"
|
|
297
309
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
298
310
|
data-block-shell-home-link
|
|
299
|
-
class="block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
311
|
+
class="block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
312
|
+
>
|
|
300
313
|
<block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
|
|
301
314
|
</a>
|
|
302
315
|
</div>
|
|
303
316
|
}
|
|
304
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: PopoverContentDirective, selector: "ng-template[PopoverContent]", exportAs: ["PopoverContent"] }, { kind: "directive", type: PopoverTriggerDirective, selector: "[PopoverTrigger]", inputs: ["PopoverTrigger", "side", "align", "sideOffset", "disabled"], outputs: ["openedChange"], exportAs: ["PopoverTrigger"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }]
|
|
317
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NavigationCollapseRootDirective, selector: "[NavigationCollapseRoot]" }, { kind: "directive", type: NavigationCollapseExpandedDirective, selector: "[NavigationCollapseExpanded]" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "browserUrl", "routerLink"] }, { kind: "directive", type: PopoverContentDirective, selector: "ng-template[PopoverContent]", exportAs: ["PopoverContent"] }, { kind: "directive", type: PopoverTriggerDirective, selector: "[PopoverTrigger]", inputs: ["PopoverTrigger", "side", "align", "sideOffset", "disabled"], outputs: ["openedChange"], exportAs: ["PopoverTrigger"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }] });
|
|
305
318
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
|
|
307
320
|
type: Component,
|
|
308
321
|
args: [{
|
|
309
322
|
selector: 'block-shell-navigation-header',
|
|
@@ -323,7 +336,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
323
336
|
<ng-template PopoverContent #workspaceSwitcher="PopoverContent">
|
|
324
337
|
<div
|
|
325
338
|
data-block-shell-workspace-panel
|
|
326
|
-
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg"
|
|
339
|
+
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg"
|
|
340
|
+
>
|
|
327
341
|
@for (workspace of workspaceLinks(); track workspace.id) {
|
|
328
342
|
<a
|
|
329
343
|
[routerLink]="workspace.path"
|
|
@@ -334,9 +348,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
334
348
|
[class.bg-primary/5]="isActiveWorkspace(workspace.path)"
|
|
335
349
|
[class.text-foreground]="isActiveWorkspace(workspace.path)"
|
|
336
350
|
[class.border-transparent]="!isActiveWorkspace(workspace.path)"
|
|
337
|
-
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
351
|
+
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
352
|
+
>
|
|
338
353
|
<span class="block text-sm font-semibold tracking-tight">{{ workspace.label }}</span>
|
|
339
|
-
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
354
|
+
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
355
|
+
workspace.description
|
|
356
|
+
}}</span>
|
|
340
357
|
</a>
|
|
341
358
|
}
|
|
342
359
|
</div>
|
|
@@ -352,7 +369,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
352
369
|
align="start"
|
|
353
370
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
354
371
|
data-block-shell-workspace-trigger
|
|
355
|
-
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
372
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
373
|
+
>
|
|
356
374
|
<block-shell-logo [text]="logoText()" />
|
|
357
375
|
</button>
|
|
358
376
|
} @else {
|
|
@@ -364,11 +382,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
364
382
|
[routerLink]="homePath()"
|
|
365
383
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
366
384
|
data-block-shell-home-link
|
|
367
|
-
class="block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
385
|
+
class="block min-w-0 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
386
|
+
>
|
|
368
387
|
<block-shell-navigation-meta
|
|
369
388
|
[name]="subtitle()"
|
|
370
389
|
[subtitle]="name()"
|
|
371
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
390
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
391
|
+
/>
|
|
372
392
|
</a>
|
|
373
393
|
</div>
|
|
374
394
|
</div>
|
|
@@ -382,7 +402,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
382
402
|
align="start"
|
|
383
403
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
384
404
|
data-block-shell-workspace-trigger
|
|
385
|
-
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
405
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
406
|
+
>
|
|
386
407
|
<block-shell-logo [text]="logoText()" />
|
|
387
408
|
</button>
|
|
388
409
|
} @else {
|
|
@@ -393,13 +414,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
393
414
|
[routerLink]="homePath()"
|
|
394
415
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
395
416
|
data-block-shell-home-link
|
|
396
|
-
class="block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
417
|
+
class="block min-w-0 flex-1 rounded-md px-1 py-0.5 transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
418
|
+
>
|
|
397
419
|
<block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
|
|
398
420
|
</a>
|
|
399
421
|
</div>
|
|
400
422
|
}
|
|
401
423
|
`,
|
|
402
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
403
424
|
}]
|
|
404
425
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], subtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subtitle", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], collapsible: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapsible", required: false }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }] } });
|
|
405
426
|
|
|
@@ -488,9 +509,15 @@ class BlockShellSidebarNavigationComponent {
|
|
|
488
509
|
return null;
|
|
489
510
|
}
|
|
490
511
|
}
|
|
491
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
492
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
493
|
-
<Navigation
|
|
512
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
513
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellSidebarNavigationComponent, isStandalone: true, selector: "block-shell-sidebar-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
514
|
+
<Navigation
|
|
515
|
+
id="main"
|
|
516
|
+
[data]="navigation()"
|
|
517
|
+
[ariaLabel]="ariaLabel()"
|
|
518
|
+
collapse-tree="stairs"
|
|
519
|
+
class="h-full"
|
|
520
|
+
>
|
|
494
521
|
@if (effectiveType() === 'dockbar') {
|
|
495
522
|
<NavigationDockbar [mode]="dockbarMode()">
|
|
496
523
|
<NavigationHeader>
|
|
@@ -500,11 +527,16 @@ class BlockShellSidebarNavigationComponent {
|
|
|
500
527
|
[logoText]="logoText()"
|
|
501
528
|
[homePath]="homePath()"
|
|
502
529
|
[collapsible]="true"
|
|
503
|
-
[workspaceLinks]="workspaceLinks()"
|
|
530
|
+
[workspaceLinks]="workspaceLinks()"
|
|
531
|
+
/>
|
|
504
532
|
</NavigationHeader>
|
|
505
533
|
|
|
506
534
|
<NavigationFooter class="px-3">
|
|
507
|
-
<block-shell-navigation-footer
|
|
535
|
+
<block-shell-navigation-footer
|
|
536
|
+
[name]="userName()"
|
|
537
|
+
[subtitle]="userPosition()"
|
|
538
|
+
[collapsible]="true"
|
|
539
|
+
/>
|
|
508
540
|
</NavigationFooter>
|
|
509
541
|
</NavigationDockbar>
|
|
510
542
|
} @else {
|
|
@@ -516,18 +548,23 @@ class BlockShellSidebarNavigationComponent {
|
|
|
516
548
|
[logoText]="logoText()"
|
|
517
549
|
[homePath]="homePath()"
|
|
518
550
|
[collapsible]="true"
|
|
519
|
-
[workspaceLinks]="workspaceLinks()"
|
|
551
|
+
[workspaceLinks]="workspaceLinks()"
|
|
552
|
+
/>
|
|
520
553
|
</NavigationHeader>
|
|
521
554
|
|
|
522
555
|
<NavigationFooter class="px-3">
|
|
523
|
-
<block-shell-navigation-footer
|
|
556
|
+
<block-shell-navigation-footer
|
|
557
|
+
[name]="userName()"
|
|
558
|
+
[subtitle]="userPosition()"
|
|
559
|
+
[collapsible]="true"
|
|
560
|
+
/>
|
|
524
561
|
</NavigationFooter>
|
|
525
562
|
</NavigationSidebar>
|
|
526
563
|
}
|
|
527
564
|
</Navigation>
|
|
528
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationSidebarComponent, selector: "NavigationSidebar", inputs: ["position", "collapsed", "nav-sidebar-collapse", "previewExpanded", "class"] }, { kind: "component", type: NavigationDockbarComponent, selector: "NavigationDockbar", inputs: ["mode", "position", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "collapsible", "desktopOnly"] }]
|
|
565
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationSidebarComponent, selector: "NavigationSidebar", inputs: ["position", "collapsed", "nav-sidebar-collapse", "previewExpanded", "class"] }, { kind: "component", type: NavigationDockbarComponent, selector: "NavigationDockbar", inputs: ["mode", "position", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "collapsible", "desktopOnly"] }] });
|
|
529
566
|
}
|
|
530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
567
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
531
568
|
type: Component,
|
|
532
569
|
args: [{
|
|
533
570
|
selector: 'block-shell-sidebar-navigation',
|
|
@@ -544,7 +581,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
544
581
|
class: 'contents',
|
|
545
582
|
},
|
|
546
583
|
template: `
|
|
547
|
-
<Navigation
|
|
584
|
+
<Navigation
|
|
585
|
+
id="main"
|
|
586
|
+
[data]="navigation()"
|
|
587
|
+
[ariaLabel]="ariaLabel()"
|
|
588
|
+
collapse-tree="stairs"
|
|
589
|
+
class="h-full"
|
|
590
|
+
>
|
|
548
591
|
@if (effectiveType() === 'dockbar') {
|
|
549
592
|
<NavigationDockbar [mode]="dockbarMode()">
|
|
550
593
|
<NavigationHeader>
|
|
@@ -554,11 +597,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
554
597
|
[logoText]="logoText()"
|
|
555
598
|
[homePath]="homePath()"
|
|
556
599
|
[collapsible]="true"
|
|
557
|
-
[workspaceLinks]="workspaceLinks()"
|
|
600
|
+
[workspaceLinks]="workspaceLinks()"
|
|
601
|
+
/>
|
|
558
602
|
</NavigationHeader>
|
|
559
603
|
|
|
560
604
|
<NavigationFooter class="px-3">
|
|
561
|
-
<block-shell-navigation-footer
|
|
605
|
+
<block-shell-navigation-footer
|
|
606
|
+
[name]="userName()"
|
|
607
|
+
[subtitle]="userPosition()"
|
|
608
|
+
[collapsible]="true"
|
|
609
|
+
/>
|
|
562
610
|
</NavigationFooter>
|
|
563
611
|
</NavigationDockbar>
|
|
564
612
|
} @else {
|
|
@@ -570,17 +618,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
570
618
|
[logoText]="logoText()"
|
|
571
619
|
[homePath]="homePath()"
|
|
572
620
|
[collapsible]="true"
|
|
573
|
-
[workspaceLinks]="workspaceLinks()"
|
|
621
|
+
[workspaceLinks]="workspaceLinks()"
|
|
622
|
+
/>
|
|
574
623
|
</NavigationHeader>
|
|
575
624
|
|
|
576
625
|
<NavigationFooter class="px-3">
|
|
577
|
-
<block-shell-navigation-footer
|
|
626
|
+
<block-shell-navigation-footer
|
|
627
|
+
[name]="userName()"
|
|
628
|
+
[subtitle]="userPosition()"
|
|
629
|
+
[collapsible]="true"
|
|
630
|
+
/>
|
|
578
631
|
</NavigationFooter>
|
|
579
632
|
</NavigationSidebar>
|
|
580
633
|
}
|
|
581
634
|
</Navigation>
|
|
582
635
|
`,
|
|
583
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
584
636
|
}]
|
|
585
637
|
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
586
638
|
|
|
@@ -643,9 +695,15 @@ class BlockShellTopNavigationComponent {
|
|
|
643
695
|
return null;
|
|
644
696
|
}
|
|
645
697
|
}
|
|
646
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
647
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
648
|
-
<Navigation
|
|
698
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
699
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, flyoutLabel: { classPropertyName: "flyoutLabel", publicName: "flyoutLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
700
|
+
<Navigation
|
|
701
|
+
id="main"
|
|
702
|
+
[data]="navigation()"
|
|
703
|
+
[ariaLabel]="ariaLabel()"
|
|
704
|
+
collapse-tree="straight"
|
|
705
|
+
class="h-full"
|
|
706
|
+
>
|
|
649
707
|
@if (effectiveType() === 'flyout') {
|
|
650
708
|
<NavigationFlyout [label]="flyoutLabel()" [nav-type-style]="navTypeStyle()">
|
|
651
709
|
<NavigationHeader>
|
|
@@ -654,11 +712,16 @@ class BlockShellTopNavigationComponent {
|
|
|
654
712
|
[subtitle]="brandSubtitle()"
|
|
655
713
|
[logoText]="logoText()"
|
|
656
714
|
[homePath]="homePath()"
|
|
657
|
-
[workspaceLinks]="workspaceLinks()"
|
|
715
|
+
[workspaceLinks]="workspaceLinks()"
|
|
716
|
+
/>
|
|
658
717
|
</NavigationHeader>
|
|
659
718
|
|
|
660
719
|
<NavigationFooter class="px-3">
|
|
661
|
-
<block-shell-navigation-footer
|
|
720
|
+
<block-shell-navigation-footer
|
|
721
|
+
[name]="userName()"
|
|
722
|
+
[subtitle]="userPosition()"
|
|
723
|
+
[desktopOnly]="true"
|
|
724
|
+
/>
|
|
662
725
|
</NavigationFooter>
|
|
663
726
|
</NavigationFlyout>
|
|
664
727
|
} @else {
|
|
@@ -669,18 +732,23 @@ class BlockShellTopNavigationComponent {
|
|
|
669
732
|
[subtitle]="brandSubtitle()"
|
|
670
733
|
[logoText]="logoText()"
|
|
671
734
|
[homePath]="homePath()"
|
|
672
|
-
[workspaceLinks]="workspaceLinks()"
|
|
735
|
+
[workspaceLinks]="workspaceLinks()"
|
|
736
|
+
/>
|
|
673
737
|
</NavigationHeader>
|
|
674
738
|
|
|
675
739
|
<NavigationFooter class="px-3">
|
|
676
|
-
<block-shell-navigation-footer
|
|
740
|
+
<block-shell-navigation-footer
|
|
741
|
+
[name]="userName()"
|
|
742
|
+
[subtitle]="userPosition()"
|
|
743
|
+
[desktopOnly]="true"
|
|
744
|
+
/>
|
|
677
745
|
</NavigationFooter>
|
|
678
746
|
</NavigationNavbar>
|
|
679
747
|
}
|
|
680
748
|
</Navigation>
|
|
681
|
-
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "collapsible", "desktopOnly"] }]
|
|
749
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NavigationContainerComponent, selector: "Navigation", inputs: ["id", "data", "items", "ariaLabel", "compact", "collapse-tree", "class", "itemClass", "nav-group-class", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { kind: "component", type: NavigationNavbarComponent, selector: "NavigationNavbar", inputs: ["nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationFlyoutComponent, selector: "NavigationFlyout", inputs: ["label", "icon", "icon-only", "icon-position", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "collapsible", "desktopOnly"] }] });
|
|
682
750
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
684
752
|
type: Component,
|
|
685
753
|
args: [{
|
|
686
754
|
selector: 'block-shell-top-navigation',
|
|
@@ -697,7 +765,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
697
765
|
class: 'contents',
|
|
698
766
|
},
|
|
699
767
|
template: `
|
|
700
|
-
<Navigation
|
|
768
|
+
<Navigation
|
|
769
|
+
id="main"
|
|
770
|
+
[data]="navigation()"
|
|
771
|
+
[ariaLabel]="ariaLabel()"
|
|
772
|
+
collapse-tree="straight"
|
|
773
|
+
class="h-full"
|
|
774
|
+
>
|
|
701
775
|
@if (effectiveType() === 'flyout') {
|
|
702
776
|
<NavigationFlyout [label]="flyoutLabel()" [nav-type-style]="navTypeStyle()">
|
|
703
777
|
<NavigationHeader>
|
|
@@ -706,11 +780,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
706
780
|
[subtitle]="brandSubtitle()"
|
|
707
781
|
[logoText]="logoText()"
|
|
708
782
|
[homePath]="homePath()"
|
|
709
|
-
[workspaceLinks]="workspaceLinks()"
|
|
783
|
+
[workspaceLinks]="workspaceLinks()"
|
|
784
|
+
/>
|
|
710
785
|
</NavigationHeader>
|
|
711
786
|
|
|
712
787
|
<NavigationFooter class="px-3">
|
|
713
|
-
<block-shell-navigation-footer
|
|
788
|
+
<block-shell-navigation-footer
|
|
789
|
+
[name]="userName()"
|
|
790
|
+
[subtitle]="userPosition()"
|
|
791
|
+
[desktopOnly]="true"
|
|
792
|
+
/>
|
|
714
793
|
</NavigationFooter>
|
|
715
794
|
</NavigationFlyout>
|
|
716
795
|
} @else {
|
|
@@ -721,17 +800,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
721
800
|
[subtitle]="brandSubtitle()"
|
|
722
801
|
[logoText]="logoText()"
|
|
723
802
|
[homePath]="homePath()"
|
|
724
|
-
[workspaceLinks]="workspaceLinks()"
|
|
803
|
+
[workspaceLinks]="workspaceLinks()"
|
|
804
|
+
/>
|
|
725
805
|
</NavigationHeader>
|
|
726
806
|
|
|
727
807
|
<NavigationFooter class="px-3">
|
|
728
|
-
<block-shell-navigation-footer
|
|
808
|
+
<block-shell-navigation-footer
|
|
809
|
+
[name]="userName()"
|
|
810
|
+
[subtitle]="userPosition()"
|
|
811
|
+
[desktopOnly]="true"
|
|
812
|
+
/>
|
|
729
813
|
</NavigationFooter>
|
|
730
814
|
</NavigationNavbar>
|
|
731
815
|
}
|
|
732
816
|
</Navigation>
|
|
733
817
|
`,
|
|
734
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
735
818
|
}]
|
|
736
819
|
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
|
|
737
820
|
|
|
@@ -769,8 +852,8 @@ class BlockShellComponent {
|
|
|
769
852
|
contentAriaLabel = input('layout content', /* @ts-ignore */
|
|
770
853
|
...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
|
|
771
854
|
layout = inject(LayoutService);
|
|
772
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
773
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
855
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
856
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", isSignal: true, isRequired: false, transformFunction: null }, sidebarNavId: { classPropertyName: "sidebarNavId", publicName: "sidebarNavId", isSignal: true, isRequired: false, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null }, brandSubtitle: { classPropertyName: "brandSubtitle", publicName: "brandSubtitle", isSignal: true, isRequired: false, transformFunction: null }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
774
857
|
<Layout>
|
|
775
858
|
@switch (layout.type()) {
|
|
776
859
|
@case ('horizontal') {
|
|
@@ -785,7 +868,8 @@ class BlockShellComponent {
|
|
|
785
868
|
[homePath]="homePath()"
|
|
786
869
|
[userName]="userName()"
|
|
787
870
|
[userPosition]="userPosition()"
|
|
788
|
-
[ariaLabel]="topAriaLabel()"
|
|
871
|
+
[ariaLabel]="topAriaLabel()"
|
|
872
|
+
/>
|
|
789
873
|
</LayoutNavigation>
|
|
790
874
|
|
|
791
875
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -814,7 +898,8 @@ class BlockShellComponent {
|
|
|
814
898
|
[homePath]="homePath()"
|
|
815
899
|
[userName]="userName()"
|
|
816
900
|
[userPosition]="userPosition()"
|
|
817
|
-
[ariaLabel]="sideAriaLabel()"
|
|
901
|
+
[ariaLabel]="sideAriaLabel()"
|
|
902
|
+
/>
|
|
818
903
|
</LayoutNavigation>
|
|
819
904
|
|
|
820
905
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -824,9 +909,9 @@ class BlockShellComponent {
|
|
|
824
909
|
}
|
|
825
910
|
}
|
|
826
911
|
</Layout>
|
|
827
|
-
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }]
|
|
912
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
828
913
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
830
915
|
type: Component,
|
|
831
916
|
args: [{
|
|
832
917
|
selector: 'block-shell',
|
|
@@ -859,7 +944,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
859
944
|
[homePath]="homePath()"
|
|
860
945
|
[userName]="userName()"
|
|
861
946
|
[userPosition]="userPosition()"
|
|
862
|
-
[ariaLabel]="topAriaLabel()"
|
|
947
|
+
[ariaLabel]="topAriaLabel()"
|
|
948
|
+
/>
|
|
863
949
|
</LayoutNavigation>
|
|
864
950
|
|
|
865
951
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -888,7 +974,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
888
974
|
[homePath]="homePath()"
|
|
889
975
|
[userName]="userName()"
|
|
890
976
|
[userPosition]="userPosition()"
|
|
891
|
-
[ariaLabel]="sideAriaLabel()"
|
|
977
|
+
[ariaLabel]="sideAriaLabel()"
|
|
978
|
+
/>
|
|
892
979
|
</LayoutNavigation>
|
|
893
980
|
|
|
894
981
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -899,7 +986,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
899
986
|
}
|
|
900
987
|
</Layout>
|
|
901
988
|
`,
|
|
902
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
903
989
|
}]
|
|
904
990
|
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], brandSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "brandSubtitle", required: false }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }] } });
|
|
905
991
|
|