@edsis/angular 22.0.31 → 22.0.34
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/edsis-angular-block-shell.mjs +240 -104
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +235 -103
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/package.json +28 -5
- package/types/edsis-angular-block-shell.d.ts +11 -5
|
@@ -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,25 @@ 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
|
-
|
|
14
|
-
|
|
13
|
+
photoUrl = input(undefined, /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "photoUrl" }] : /* istanbul ignore next */ []));
|
|
15
|
+
photoAlt = input('', /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "photoAlt" }] : /* istanbul ignore next */ []));
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.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 }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", isSignal: true, isRequired: false, transformFunction: null }, photoAlt: { classPropertyName: "photoAlt", publicName: "photoAlt", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
19
|
+
<!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
|
|
15
20
|
<span
|
|
16
|
-
class="inline-flex
|
|
17
|
-
|
|
21
|
+
class="inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden rounded-none bg-primary text-xs font-semibold text-primary-foreground"
|
|
22
|
+
>
|
|
23
|
+
@if (photoUrl(); as url) {
|
|
24
|
+
<img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
|
|
25
|
+
} @else {
|
|
26
|
+
{{ initials() }}
|
|
27
|
+
}
|
|
18
28
|
</span>
|
|
19
|
-
`, isInline: true
|
|
29
|
+
`, isInline: true });
|
|
20
30
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
|
|
22
32
|
type: Component,
|
|
23
33
|
args: [{
|
|
24
34
|
selector: 'block-shell-navigation-avatar',
|
|
@@ -26,14 +36,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
26
36
|
class: 'contents',
|
|
27
37
|
},
|
|
28
38
|
template: `
|
|
39
|
+
<!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
|
|
29
40
|
<span
|
|
30
|
-
class="inline-flex
|
|
31
|
-
|
|
41
|
+
class="inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden rounded-none bg-primary text-xs font-semibold text-primary-foreground"
|
|
42
|
+
>
|
|
43
|
+
@if (photoUrl(); as url) {
|
|
44
|
+
<img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
|
|
45
|
+
} @else {
|
|
46
|
+
{{ initials() }}
|
|
47
|
+
}
|
|
32
48
|
</span>
|
|
33
49
|
`,
|
|
34
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
35
50
|
}]
|
|
36
|
-
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }] } });
|
|
51
|
+
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", required: false }] }], photoAlt: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoAlt", required: false }] }] } });
|
|
37
52
|
|
|
38
53
|
class BlockShellNavigationMetaComponent {
|
|
39
54
|
name = input.required(/* @ts-ignore */
|
|
@@ -44,15 +59,15 @@ class BlockShellNavigationMetaComponent {
|
|
|
44
59
|
...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
|
|
45
60
|
subtitleClass = input('truncate text-xs text-muted-foreground', /* @ts-ignore */
|
|
46
61
|
...(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.
|
|
62
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
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
64
|
<div [class]="containerClass()">
|
|
50
65
|
<p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
|
|
51
66
|
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
52
67
|
</div>
|
|
53
|
-
`, isInline: true
|
|
68
|
+
`, isInline: true });
|
|
54
69
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationMetaComponent, decorators: [{
|
|
56
71
|
type: Component,
|
|
57
72
|
args: [{
|
|
58
73
|
selector: 'block-shell-navigation-meta',
|
|
@@ -65,7 +80,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
65
80
|
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
66
81
|
</div>
|
|
67
82
|
`,
|
|
68
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
83
|
}]
|
|
70
84
|
}], 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
85
|
|
|
@@ -76,6 +90,8 @@ class BlockShellNavigationFooterComponent {
|
|
|
76
90
|
...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
|
|
77
91
|
initials = input(undefined, /* @ts-ignore */
|
|
78
92
|
...(ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []));
|
|
93
|
+
photoUrl = input(undefined, /* @ts-ignore */
|
|
94
|
+
...(ngDevMode ? [{ debugName: "photoUrl" }] : /* istanbul ignore next */ []));
|
|
79
95
|
collapsible = input(false, /* @ts-ignore */
|
|
80
96
|
...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
|
|
81
97
|
desktopOnly = input(false, /* @ts-ignore */
|
|
@@ -92,31 +108,41 @@ class BlockShellNavigationFooterComponent {
|
|
|
92
108
|
return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
|
|
93
109
|
}, /* @ts-ignore */
|
|
94
110
|
...(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.
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
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 }, photoUrl: { classPropertyName: "photoUrl", publicName: "photoUrl", 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
113
|
@if (collapsible()) {
|
|
98
114
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
99
|
-
<block-shell-navigation-avatar
|
|
115
|
+
<block-shell-navigation-avatar
|
|
116
|
+
[initials]="resolvedInitials()"
|
|
117
|
+
[photoUrl]="photoUrl()"
|
|
118
|
+
[photoAlt]="name()"
|
|
119
|
+
/>
|
|
100
120
|
|
|
101
121
|
<div *NavigationCollapseExpanded class="min-w-0">
|
|
102
122
|
<block-shell-navigation-meta
|
|
103
123
|
[name]="name()"
|
|
104
124
|
[subtitle]="subtitle()"
|
|
105
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
125
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
126
|
+
/>
|
|
106
127
|
</div>
|
|
107
128
|
</div>
|
|
108
129
|
} @else {
|
|
109
130
|
<div class="flex items-center gap-3">
|
|
110
|
-
<block-shell-navigation-avatar
|
|
131
|
+
<block-shell-navigation-avatar
|
|
132
|
+
[initials]="resolvedInitials()"
|
|
133
|
+
[photoUrl]="photoUrl()"
|
|
134
|
+
[photoAlt]="name()"
|
|
135
|
+
/>
|
|
111
136
|
<block-shell-navigation-meta
|
|
112
137
|
[name]="name()"
|
|
113
138
|
[subtitle]="subtitle()"
|
|
114
|
-
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
139
|
+
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
140
|
+
/>
|
|
115
141
|
</div>
|
|
116
142
|
}
|
|
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"] }]
|
|
143
|
+
`, 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", "photoUrl", "photoAlt"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }] });
|
|
118
144
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
|
|
120
146
|
type: Component,
|
|
121
147
|
args: [{
|
|
122
148
|
selector: 'block-shell-navigation-footer',
|
|
@@ -132,28 +158,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
132
158
|
template: `
|
|
133
159
|
@if (collapsible()) {
|
|
134
160
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
135
|
-
<block-shell-navigation-avatar
|
|
161
|
+
<block-shell-navigation-avatar
|
|
162
|
+
[initials]="resolvedInitials()"
|
|
163
|
+
[photoUrl]="photoUrl()"
|
|
164
|
+
[photoAlt]="name()"
|
|
165
|
+
/>
|
|
136
166
|
|
|
137
167
|
<div *NavigationCollapseExpanded class="min-w-0">
|
|
138
168
|
<block-shell-navigation-meta
|
|
139
169
|
[name]="name()"
|
|
140
170
|
[subtitle]="subtitle()"
|
|
141
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
171
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
172
|
+
/>
|
|
142
173
|
</div>
|
|
143
174
|
</div>
|
|
144
175
|
} @else {
|
|
145
176
|
<div class="flex items-center gap-3">
|
|
146
|
-
<block-shell-navigation-avatar
|
|
177
|
+
<block-shell-navigation-avatar
|
|
178
|
+
[initials]="resolvedInitials()"
|
|
179
|
+
[photoUrl]="photoUrl()"
|
|
180
|
+
[photoAlt]="name()"
|
|
181
|
+
/>
|
|
147
182
|
<block-shell-navigation-meta
|
|
148
183
|
[name]="name()"
|
|
149
184
|
[subtitle]="subtitle()"
|
|
150
|
-
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
185
|
+
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
|
|
186
|
+
/>
|
|
151
187
|
</div>
|
|
152
188
|
}
|
|
153
189
|
`,
|
|
154
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
155
190
|
}]
|
|
156
|
-
}], 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 }] }] } });
|
|
191
|
+
}], 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 }] }], photoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "photoUrl", 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
192
|
|
|
158
193
|
class BlockShellLogoComponent {
|
|
159
194
|
text = input('ETOS', /* @ts-ignore */
|
|
@@ -162,20 +197,21 @@ class BlockShellLogoComponent {
|
|
|
162
197
|
...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
|
|
163
198
|
ariaLabel = input('Buka aplikasi', /* @ts-ignore */
|
|
164
199
|
...(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.
|
|
167
|
-
<div class="w-
|
|
200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
201
|
+
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: `
|
|
202
|
+
<div class="w-10 shrink-0">
|
|
168
203
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
169
204
|
<div
|
|
170
|
-
class="flex h-full w-full items-center justify-center px-0.5 text-[0.
|
|
171
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
205
|
+
class="flex h-full w-full items-center justify-center px-0.5 text-[0.72rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
|
|
206
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
207
|
+
>
|
|
172
208
|
{{ text() }}
|
|
173
209
|
</div>
|
|
174
210
|
</AspectRatio>
|
|
175
211
|
</div>
|
|
176
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }]
|
|
212
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }] });
|
|
177
213
|
}
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
|
|
179
215
|
type: Component,
|
|
180
216
|
args: [{
|
|
181
217
|
selector: 'block-shell-logo',
|
|
@@ -184,17 +220,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
184
220
|
class: 'contents',
|
|
185
221
|
},
|
|
186
222
|
template: `
|
|
187
|
-
<div class="w-
|
|
223
|
+
<div class="w-10 shrink-0">
|
|
188
224
|
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
189
225
|
<div
|
|
190
|
-
class="flex h-full w-full items-center justify-center px-0.5 text-[0.
|
|
191
|
-
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
226
|
+
class="flex h-full w-full items-center justify-center px-0.5 text-[0.72rem] font-black leading-none tracking-[-0.08em] text-primary-foreground"
|
|
227
|
+
style="font-family: 'Arial Black', Arial, sans-serif;"
|
|
228
|
+
>
|
|
192
229
|
{{ text() }}
|
|
193
230
|
</div>
|
|
194
231
|
</AspectRatio>
|
|
195
232
|
</div>
|
|
196
233
|
`,
|
|
197
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
198
234
|
}]
|
|
199
235
|
}], 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
236
|
|
|
@@ -221,12 +257,13 @@ class BlockShellNavigationHeaderComponent {
|
|
|
221
257
|
const activeHomePath = this.homePath();
|
|
222
258
|
return path === activeHomePath || path.startsWith(`${activeHomePath}/`);
|
|
223
259
|
}
|
|
224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
225
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
261
|
+
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
262
|
<ng-template PopoverContent #workspaceSwitcher="PopoverContent">
|
|
227
263
|
<div
|
|
228
264
|
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"
|
|
265
|
+
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg"
|
|
266
|
+
>
|
|
230
267
|
@for (workspace of workspaceLinks(); track workspace.id) {
|
|
231
268
|
<a
|
|
232
269
|
[routerLink]="workspace.path"
|
|
@@ -237,9 +274,12 @@ class BlockShellNavigationHeaderComponent {
|
|
|
237
274
|
[class.bg-primary/5]="isActiveWorkspace(workspace.path)"
|
|
238
275
|
[class.text-foreground]="isActiveWorkspace(workspace.path)"
|
|
239
276
|
[class.border-transparent]="!isActiveWorkspace(workspace.path)"
|
|
240
|
-
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
277
|
+
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
278
|
+
>
|
|
241
279
|
<span class="block text-sm font-semibold tracking-tight">{{ workspace.label }}</span>
|
|
242
|
-
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
280
|
+
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
281
|
+
workspace.description
|
|
282
|
+
}}</span>
|
|
243
283
|
</a>
|
|
244
284
|
}
|
|
245
285
|
</div>
|
|
@@ -255,7 +295,8 @@ class BlockShellNavigationHeaderComponent {
|
|
|
255
295
|
align="start"
|
|
256
296
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
257
297
|
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"
|
|
298
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
299
|
+
>
|
|
259
300
|
<block-shell-logo [text]="logoText()" />
|
|
260
301
|
</button>
|
|
261
302
|
} @else {
|
|
@@ -267,11 +308,13 @@ class BlockShellNavigationHeaderComponent {
|
|
|
267
308
|
[routerLink]="homePath()"
|
|
268
309
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
269
310
|
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"
|
|
311
|
+
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"
|
|
312
|
+
>
|
|
271
313
|
<block-shell-navigation-meta
|
|
272
314
|
[name]="subtitle()"
|
|
273
315
|
[subtitle]="name()"
|
|
274
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
316
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
317
|
+
/>
|
|
275
318
|
</a>
|
|
276
319
|
</div>
|
|
277
320
|
</div>
|
|
@@ -285,7 +328,8 @@ class BlockShellNavigationHeaderComponent {
|
|
|
285
328
|
align="start"
|
|
286
329
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
287
330
|
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"
|
|
331
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
332
|
+
>
|
|
289
333
|
<block-shell-logo [text]="logoText()" />
|
|
290
334
|
</button>
|
|
291
335
|
} @else {
|
|
@@ -296,14 +340,15 @@ class BlockShellNavigationHeaderComponent {
|
|
|
296
340
|
[routerLink]="homePath()"
|
|
297
341
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
298
342
|
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"
|
|
343
|
+
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"
|
|
344
|
+
>
|
|
300
345
|
<block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
|
|
301
346
|
</a>
|
|
302
347
|
</div>
|
|
303
348
|
}
|
|
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"] }]
|
|
349
|
+
`, 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
350
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
|
|
307
352
|
type: Component,
|
|
308
353
|
args: [{
|
|
309
354
|
selector: 'block-shell-navigation-header',
|
|
@@ -323,7 +368,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
323
368
|
<ng-template PopoverContent #workspaceSwitcher="PopoverContent">
|
|
324
369
|
<div
|
|
325
370
|
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"
|
|
371
|
+
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg"
|
|
372
|
+
>
|
|
327
373
|
@for (workspace of workspaceLinks(); track workspace.id) {
|
|
328
374
|
<a
|
|
329
375
|
[routerLink]="workspace.path"
|
|
@@ -334,9 +380,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
334
380
|
[class.bg-primary/5]="isActiveWorkspace(workspace.path)"
|
|
335
381
|
[class.text-foreground]="isActiveWorkspace(workspace.path)"
|
|
336
382
|
[class.border-transparent]="!isActiveWorkspace(workspace.path)"
|
|
337
|
-
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
383
|
+
[class.hover:bg-muted]="!isActiveWorkspace(workspace.path)"
|
|
384
|
+
>
|
|
338
385
|
<span class="block text-sm font-semibold tracking-tight">{{ workspace.label }}</span>
|
|
339
|
-
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
386
|
+
<span class="mt-1 block text-xs text-muted-foreground">{{
|
|
387
|
+
workspace.description
|
|
388
|
+
}}</span>
|
|
340
389
|
</a>
|
|
341
390
|
}
|
|
342
391
|
</div>
|
|
@@ -352,7 +401,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
352
401
|
align="start"
|
|
353
402
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
354
403
|
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"
|
|
404
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
405
|
+
>
|
|
356
406
|
<block-shell-logo [text]="logoText()" />
|
|
357
407
|
</button>
|
|
358
408
|
} @else {
|
|
@@ -364,11 +414,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
364
414
|
[routerLink]="homePath()"
|
|
365
415
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
366
416
|
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"
|
|
417
|
+
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"
|
|
418
|
+
>
|
|
368
419
|
<block-shell-navigation-meta
|
|
369
420
|
[name]="subtitle()"
|
|
370
421
|
[subtitle]="name()"
|
|
371
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
422
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
423
|
+
/>
|
|
372
424
|
</a>
|
|
373
425
|
</div>
|
|
374
426
|
</div>
|
|
@@ -382,7 +434,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
382
434
|
align="start"
|
|
383
435
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
384
436
|
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"
|
|
437
|
+
class="shrink-0 rounded-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
438
|
+
>
|
|
386
439
|
<block-shell-logo [text]="logoText()" />
|
|
387
440
|
</button>
|
|
388
441
|
} @else {
|
|
@@ -393,13 +446,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
393
446
|
[routerLink]="homePath()"
|
|
394
447
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
395
448
|
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"
|
|
449
|
+
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"
|
|
450
|
+
>
|
|
397
451
|
<block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
|
|
398
452
|
</a>
|
|
399
453
|
</div>
|
|
400
454
|
}
|
|
401
455
|
`,
|
|
402
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
403
456
|
}]
|
|
404
457
|
}], 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
458
|
|
|
@@ -432,6 +485,8 @@ class BlockShellSidebarNavigationComponent {
|
|
|
432
485
|
...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
|
|
433
486
|
userPosition = input.required(/* @ts-ignore */
|
|
434
487
|
...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
|
|
488
|
+
userPhotoUrl = input(undefined, /* @ts-ignore */
|
|
489
|
+
...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
|
|
435
490
|
ariaLabel = input('side navigation', /* @ts-ignore */
|
|
436
491
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
437
492
|
/** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi vertikal. */
|
|
@@ -488,9 +543,15 @@ class BlockShellSidebarNavigationComponent {
|
|
|
488
543
|
return null;
|
|
489
544
|
}
|
|
490
545
|
}
|
|
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
|
|
546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
547
|
+
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 }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, 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: `
|
|
548
|
+
<Navigation
|
|
549
|
+
id="main"
|
|
550
|
+
[data]="navigation()"
|
|
551
|
+
[ariaLabel]="ariaLabel()"
|
|
552
|
+
collapse-tree="stairs"
|
|
553
|
+
class="h-full"
|
|
554
|
+
>
|
|
494
555
|
@if (effectiveType() === 'dockbar') {
|
|
495
556
|
<NavigationDockbar [mode]="dockbarMode()">
|
|
496
557
|
<NavigationHeader>
|
|
@@ -500,11 +561,17 @@ class BlockShellSidebarNavigationComponent {
|
|
|
500
561
|
[logoText]="logoText()"
|
|
501
562
|
[homePath]="homePath()"
|
|
502
563
|
[collapsible]="true"
|
|
503
|
-
[workspaceLinks]="workspaceLinks()"
|
|
564
|
+
[workspaceLinks]="workspaceLinks()"
|
|
565
|
+
/>
|
|
504
566
|
</NavigationHeader>
|
|
505
567
|
|
|
506
568
|
<NavigationFooter class="px-3">
|
|
507
|
-
<block-shell-navigation-footer
|
|
569
|
+
<block-shell-navigation-footer
|
|
570
|
+
[name]="userName()"
|
|
571
|
+
[subtitle]="userPosition()"
|
|
572
|
+
[photoUrl]="userPhotoUrl()"
|
|
573
|
+
[collapsible]="true"
|
|
574
|
+
/>
|
|
508
575
|
</NavigationFooter>
|
|
509
576
|
</NavigationDockbar>
|
|
510
577
|
} @else {
|
|
@@ -516,18 +583,24 @@ class BlockShellSidebarNavigationComponent {
|
|
|
516
583
|
[logoText]="logoText()"
|
|
517
584
|
[homePath]="homePath()"
|
|
518
585
|
[collapsible]="true"
|
|
519
|
-
[workspaceLinks]="workspaceLinks()"
|
|
586
|
+
[workspaceLinks]="workspaceLinks()"
|
|
587
|
+
/>
|
|
520
588
|
</NavigationHeader>
|
|
521
589
|
|
|
522
590
|
<NavigationFooter class="px-3">
|
|
523
|
-
<block-shell-navigation-footer
|
|
591
|
+
<block-shell-navigation-footer
|
|
592
|
+
[name]="userName()"
|
|
593
|
+
[subtitle]="userPosition()"
|
|
594
|
+
[photoUrl]="userPhotoUrl()"
|
|
595
|
+
[collapsible]="true"
|
|
596
|
+
/>
|
|
524
597
|
</NavigationFooter>
|
|
525
598
|
</NavigationSidebar>
|
|
526
599
|
}
|
|
527
600
|
</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"] }]
|
|
601
|
+
`, 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", "photoUrl", "collapsible", "desktopOnly"] }] });
|
|
529
602
|
}
|
|
530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
531
604
|
type: Component,
|
|
532
605
|
args: [{
|
|
533
606
|
selector: 'block-shell-sidebar-navigation',
|
|
@@ -544,7 +617,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
544
617
|
class: 'contents',
|
|
545
618
|
},
|
|
546
619
|
template: `
|
|
547
|
-
<Navigation
|
|
620
|
+
<Navigation
|
|
621
|
+
id="main"
|
|
622
|
+
[data]="navigation()"
|
|
623
|
+
[ariaLabel]="ariaLabel()"
|
|
624
|
+
collapse-tree="stairs"
|
|
625
|
+
class="h-full"
|
|
626
|
+
>
|
|
548
627
|
@if (effectiveType() === 'dockbar') {
|
|
549
628
|
<NavigationDockbar [mode]="dockbarMode()">
|
|
550
629
|
<NavigationHeader>
|
|
@@ -554,11 +633,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
554
633
|
[logoText]="logoText()"
|
|
555
634
|
[homePath]="homePath()"
|
|
556
635
|
[collapsible]="true"
|
|
557
|
-
[workspaceLinks]="workspaceLinks()"
|
|
636
|
+
[workspaceLinks]="workspaceLinks()"
|
|
637
|
+
/>
|
|
558
638
|
</NavigationHeader>
|
|
559
639
|
|
|
560
640
|
<NavigationFooter class="px-3">
|
|
561
|
-
<block-shell-navigation-footer
|
|
641
|
+
<block-shell-navigation-footer
|
|
642
|
+
[name]="userName()"
|
|
643
|
+
[subtitle]="userPosition()"
|
|
644
|
+
[photoUrl]="userPhotoUrl()"
|
|
645
|
+
[collapsible]="true"
|
|
646
|
+
/>
|
|
562
647
|
</NavigationFooter>
|
|
563
648
|
</NavigationDockbar>
|
|
564
649
|
} @else {
|
|
@@ -570,19 +655,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
570
655
|
[logoText]="logoText()"
|
|
571
656
|
[homePath]="homePath()"
|
|
572
657
|
[collapsible]="true"
|
|
573
|
-
[workspaceLinks]="workspaceLinks()"
|
|
658
|
+
[workspaceLinks]="workspaceLinks()"
|
|
659
|
+
/>
|
|
574
660
|
</NavigationHeader>
|
|
575
661
|
|
|
576
662
|
<NavigationFooter class="px-3">
|
|
577
|
-
<block-shell-navigation-footer
|
|
663
|
+
<block-shell-navigation-footer
|
|
664
|
+
[name]="userName()"
|
|
665
|
+
[subtitle]="userPosition()"
|
|
666
|
+
[photoUrl]="userPhotoUrl()"
|
|
667
|
+
[collapsible]="true"
|
|
668
|
+
/>
|
|
578
669
|
</NavigationFooter>
|
|
579
670
|
</NavigationSidebar>
|
|
580
671
|
}
|
|
581
672
|
</Navigation>
|
|
582
673
|
`,
|
|
583
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
584
674
|
}]
|
|
585
|
-
}], 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 }] }] } });
|
|
675
|
+
}], 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 }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
|
|
586
676
|
|
|
587
677
|
/** Key localStorage tempat NavigationService mempersist type nav (`nav-type`). */
|
|
588
678
|
const NAV_TYPE_STORAGE_KEY = 'nav-type';
|
|
@@ -609,6 +699,8 @@ class BlockShellTopNavigationComponent {
|
|
|
609
699
|
...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
|
|
610
700
|
userPosition = input.required(/* @ts-ignore */
|
|
611
701
|
...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
|
|
702
|
+
userPhotoUrl = input(undefined, /* @ts-ignore */
|
|
703
|
+
...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
|
|
612
704
|
ariaLabel = input('top navigation', /* @ts-ignore */
|
|
613
705
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
614
706
|
/** Fallback type ketika localStorage `nav-type` kosong atau tidak valid untuk orientasi horizontal. */
|
|
@@ -643,9 +735,15 @@ class BlockShellTopNavigationComponent {
|
|
|
643
735
|
return null;
|
|
644
736
|
}
|
|
645
737
|
}
|
|
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
|
|
738
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
739
|
+
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 }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, 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: `
|
|
740
|
+
<Navigation
|
|
741
|
+
id="main"
|
|
742
|
+
[data]="navigation()"
|
|
743
|
+
[ariaLabel]="ariaLabel()"
|
|
744
|
+
collapse-tree="straight"
|
|
745
|
+
class="h-full"
|
|
746
|
+
>
|
|
649
747
|
@if (effectiveType() === 'flyout') {
|
|
650
748
|
<NavigationFlyout [label]="flyoutLabel()" [nav-type-style]="navTypeStyle()">
|
|
651
749
|
<NavigationHeader>
|
|
@@ -654,11 +752,17 @@ class BlockShellTopNavigationComponent {
|
|
|
654
752
|
[subtitle]="brandSubtitle()"
|
|
655
753
|
[logoText]="logoText()"
|
|
656
754
|
[homePath]="homePath()"
|
|
657
|
-
[workspaceLinks]="workspaceLinks()"
|
|
755
|
+
[workspaceLinks]="workspaceLinks()"
|
|
756
|
+
/>
|
|
658
757
|
</NavigationHeader>
|
|
659
758
|
|
|
660
759
|
<NavigationFooter class="px-3">
|
|
661
|
-
<block-shell-navigation-footer
|
|
760
|
+
<block-shell-navigation-footer
|
|
761
|
+
[name]="userName()"
|
|
762
|
+
[subtitle]="userPosition()"
|
|
763
|
+
[photoUrl]="userPhotoUrl()"
|
|
764
|
+
[desktopOnly]="true"
|
|
765
|
+
/>
|
|
662
766
|
</NavigationFooter>
|
|
663
767
|
</NavigationFlyout>
|
|
664
768
|
} @else {
|
|
@@ -669,18 +773,24 @@ class BlockShellTopNavigationComponent {
|
|
|
669
773
|
[subtitle]="brandSubtitle()"
|
|
670
774
|
[logoText]="logoText()"
|
|
671
775
|
[homePath]="homePath()"
|
|
672
|
-
[workspaceLinks]="workspaceLinks()"
|
|
776
|
+
[workspaceLinks]="workspaceLinks()"
|
|
777
|
+
/>
|
|
673
778
|
</NavigationHeader>
|
|
674
779
|
|
|
675
780
|
<NavigationFooter class="px-3">
|
|
676
|
-
<block-shell-navigation-footer
|
|
781
|
+
<block-shell-navigation-footer
|
|
782
|
+
[name]="userName()"
|
|
783
|
+
[subtitle]="userPosition()"
|
|
784
|
+
[photoUrl]="userPhotoUrl()"
|
|
785
|
+
[desktopOnly]="true"
|
|
786
|
+
/>
|
|
677
787
|
</NavigationFooter>
|
|
678
788
|
</NavigationNavbar>
|
|
679
789
|
}
|
|
680
790
|
</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"] }]
|
|
791
|
+
`, 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", "photoUrl", "collapsible", "desktopOnly"] }] });
|
|
682
792
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
793
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
684
794
|
type: Component,
|
|
685
795
|
args: [{
|
|
686
796
|
selector: 'block-shell-top-navigation',
|
|
@@ -697,7 +807,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
697
807
|
class: 'contents',
|
|
698
808
|
},
|
|
699
809
|
template: `
|
|
700
|
-
<Navigation
|
|
810
|
+
<Navigation
|
|
811
|
+
id="main"
|
|
812
|
+
[data]="navigation()"
|
|
813
|
+
[ariaLabel]="ariaLabel()"
|
|
814
|
+
collapse-tree="straight"
|
|
815
|
+
class="h-full"
|
|
816
|
+
>
|
|
701
817
|
@if (effectiveType() === 'flyout') {
|
|
702
818
|
<NavigationFlyout [label]="flyoutLabel()" [nav-type-style]="navTypeStyle()">
|
|
703
819
|
<NavigationHeader>
|
|
@@ -706,11 +822,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
706
822
|
[subtitle]="brandSubtitle()"
|
|
707
823
|
[logoText]="logoText()"
|
|
708
824
|
[homePath]="homePath()"
|
|
709
|
-
[workspaceLinks]="workspaceLinks()"
|
|
825
|
+
[workspaceLinks]="workspaceLinks()"
|
|
826
|
+
/>
|
|
710
827
|
</NavigationHeader>
|
|
711
828
|
|
|
712
829
|
<NavigationFooter class="px-3">
|
|
713
|
-
<block-shell-navigation-footer
|
|
830
|
+
<block-shell-navigation-footer
|
|
831
|
+
[name]="userName()"
|
|
832
|
+
[subtitle]="userPosition()"
|
|
833
|
+
[photoUrl]="userPhotoUrl()"
|
|
834
|
+
[desktopOnly]="true"
|
|
835
|
+
/>
|
|
714
836
|
</NavigationFooter>
|
|
715
837
|
</NavigationFlyout>
|
|
716
838
|
} @else {
|
|
@@ -721,19 +843,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
721
843
|
[subtitle]="brandSubtitle()"
|
|
722
844
|
[logoText]="logoText()"
|
|
723
845
|
[homePath]="homePath()"
|
|
724
|
-
[workspaceLinks]="workspaceLinks()"
|
|
846
|
+
[workspaceLinks]="workspaceLinks()"
|
|
847
|
+
/>
|
|
725
848
|
</NavigationHeader>
|
|
726
849
|
|
|
727
850
|
<NavigationFooter class="px-3">
|
|
728
|
-
<block-shell-navigation-footer
|
|
851
|
+
<block-shell-navigation-footer
|
|
852
|
+
[name]="userName()"
|
|
853
|
+
[subtitle]="userPosition()"
|
|
854
|
+
[photoUrl]="userPhotoUrl()"
|
|
855
|
+
[desktopOnly]="true"
|
|
856
|
+
/>
|
|
729
857
|
</NavigationFooter>
|
|
730
858
|
</NavigationNavbar>
|
|
731
859
|
}
|
|
732
860
|
</Navigation>
|
|
733
861
|
`,
|
|
734
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
735
862
|
}]
|
|
736
|
-
}], 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 }] }] } });
|
|
863
|
+
}], 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 }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], 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
864
|
|
|
738
865
|
class BlockShellComponent {
|
|
739
866
|
navigation = input.required(/* @ts-ignore */
|
|
@@ -762,6 +889,8 @@ class BlockShellComponent {
|
|
|
762
889
|
...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
|
|
763
890
|
userPosition = input.required(/* @ts-ignore */
|
|
764
891
|
...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
|
|
892
|
+
userPhotoUrl = input(undefined, /* @ts-ignore */
|
|
893
|
+
...(ngDevMode ? [{ debugName: "userPhotoUrl" }] : /* istanbul ignore next */ []));
|
|
765
894
|
topAriaLabel = input('top navigation', /* @ts-ignore */
|
|
766
895
|
...(ngDevMode ? [{ debugName: "topAriaLabel" }] : /* istanbul ignore next */ []));
|
|
767
896
|
sideAriaLabel = input('side navigation', /* @ts-ignore */
|
|
@@ -769,8 +898,8 @@ class BlockShellComponent {
|
|
|
769
898
|
contentAriaLabel = input('layout content', /* @ts-ignore */
|
|
770
899
|
...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
|
|
771
900
|
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.
|
|
901
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
902
|
+
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 }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, 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
903
|
<Layout>
|
|
775
904
|
@switch (layout.type()) {
|
|
776
905
|
@case ('horizontal') {
|
|
@@ -785,7 +914,9 @@ class BlockShellComponent {
|
|
|
785
914
|
[homePath]="homePath()"
|
|
786
915
|
[userName]="userName()"
|
|
787
916
|
[userPosition]="userPosition()"
|
|
788
|
-
[
|
|
917
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
918
|
+
[ariaLabel]="topAriaLabel()"
|
|
919
|
+
/>
|
|
789
920
|
</LayoutNavigation>
|
|
790
921
|
|
|
791
922
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -814,7 +945,9 @@ class BlockShellComponent {
|
|
|
814
945
|
[homePath]="homePath()"
|
|
815
946
|
[userName]="userName()"
|
|
816
947
|
[userPosition]="userPosition()"
|
|
817
|
-
[
|
|
948
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
949
|
+
[ariaLabel]="sideAriaLabel()"
|
|
950
|
+
/>
|
|
818
951
|
</LayoutNavigation>
|
|
819
952
|
|
|
820
953
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -824,9 +957,9 @@ class BlockShellComponent {
|
|
|
824
957
|
}
|
|
825
958
|
}
|
|
826
959
|
</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"] }]
|
|
960
|
+
`, 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", "userPhotoUrl", "ariaLabel", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
828
961
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
830
963
|
type: Component,
|
|
831
964
|
args: [{
|
|
832
965
|
selector: 'block-shell',
|
|
@@ -859,7 +992,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
859
992
|
[homePath]="homePath()"
|
|
860
993
|
[userName]="userName()"
|
|
861
994
|
[userPosition]="userPosition()"
|
|
862
|
-
[
|
|
995
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
996
|
+
[ariaLabel]="topAriaLabel()"
|
|
997
|
+
/>
|
|
863
998
|
</LayoutNavigation>
|
|
864
999
|
|
|
865
1000
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -888,7 +1023,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
888
1023
|
[homePath]="homePath()"
|
|
889
1024
|
[userName]="userName()"
|
|
890
1025
|
[userPosition]="userPosition()"
|
|
891
|
-
[
|
|
1026
|
+
[userPhotoUrl]="userPhotoUrl()"
|
|
1027
|
+
[ariaLabel]="sideAriaLabel()"
|
|
1028
|
+
/>
|
|
892
1029
|
</LayoutNavigation>
|
|
893
1030
|
|
|
894
1031
|
<LayoutContent [attr.aria-label]="contentAriaLabel()">
|
|
@@ -899,9 +1036,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
|
|
|
899
1036
|
}
|
|
900
1037
|
</Layout>
|
|
901
1038
|
`,
|
|
902
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
903
1039
|
}]
|
|
904
|
-
}], 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 }] }] } });
|
|
1040
|
+
}], 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 }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], 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
1041
|
|
|
906
1042
|
const MAIN_SIDEBAR_NAV_ID = 'main';
|
|
907
1043
|
function workspaceNavbarId(workspace) {
|