@edsis/angular 22.0.12 → 22.0.14
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 +146 -146
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +296 -232
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +23 -23
- package/types/edsis-angular-module-auth.d.ts +69 -3
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { input, ChangeDetectionStrategy, Component, computed, inject, DestroyRef, signal } from '@angular/core';
|
|
3
3
|
import { RouterLink, RouterOutlet } from '@angular/router';
|
|
4
|
-
import { LayoutService,
|
|
4
|
+
import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent } from '@edsis/theme/layout';
|
|
5
5
|
import { DOCUMENT } from '@angular/common';
|
|
6
|
-
import {
|
|
7
|
-
import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/
|
|
8
|
-
import { AspectRatioComponent } from '@edsis/
|
|
6
|
+
import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationComponent, NavigationHeaderComponent, NavigationFooterComponent } from '@edsis/navigation';
|
|
7
|
+
import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/component/popover';
|
|
8
|
+
import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
|
|
9
9
|
|
|
10
|
-
class
|
|
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.1", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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
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
|
{{ initials() }}
|
|
18
18
|
</span>
|
|
19
19
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{
|
|
24
|
-
selector: 'block-shell-
|
|
24
|
+
selector: 'block-shell-navigation-avatar',
|
|
25
25
|
host: {
|
|
26
26
|
class: 'contents',
|
|
27
27
|
},
|
|
@@ -35,7 +35,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
35
35
|
}]
|
|
36
36
|
}], propDecorators: { initials: [{ type: i0.Input, args: [{ isSignal: true, alias: "initials", required: true }] }] } });
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class BlockShellNavigationMetaComponent {
|
|
39
39
|
name = input.required(/* @ts-ignore */
|
|
40
40
|
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
41
41
|
subtitle = input.required(/* @ts-ignore */
|
|
@@ -44,18 +44,18 @@ class BlockShellNavMetaComponent {
|
|
|
44
44
|
...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
|
|
45
45
|
subtitleClass = input('truncate text-xs text-muted-foreground', /* @ts-ignore */
|
|
46
46
|
...(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.
|
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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
49
|
<div [class]="containerClass()">
|
|
50
50
|
<p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
|
|
51
51
|
<p [class]="subtitleClass()">{{ subtitle() }}</p>
|
|
52
52
|
</div>
|
|
53
53
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellNavigationMetaComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{
|
|
58
|
-
selector: 'block-shell-
|
|
58
|
+
selector: 'block-shell-navigation-meta',
|
|
59
59
|
host: {
|
|
60
60
|
class: 'contents',
|
|
61
61
|
},
|
|
@@ -69,7 +69,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
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
|
|
|
72
|
-
class
|
|
72
|
+
class BlockShellNavigationFooterComponent {
|
|
73
73
|
name = input.required(/* @ts-ignore */
|
|
74
74
|
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
75
75
|
subtitle = input.required(/* @ts-ignore */
|
|
@@ -92,14 +92,14 @@ class BlockShellNavFooterComponent {
|
|
|
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.1", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
96
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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
|
-
<div
|
|
99
|
-
<block-shell-
|
|
98
|
+
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
99
|
+
<block-shell-navigation-avatar [initials]="resolvedInitials()" />
|
|
100
100
|
|
|
101
|
-
<div *
|
|
102
|
-
<block-shell-
|
|
101
|
+
<div *NavigationCollapseExpanded class="min-w-0">
|
|
102
|
+
<block-shell-navigation-meta
|
|
103
103
|
[name]="name()"
|
|
104
104
|
[subtitle]="subtitle()"
|
|
105
105
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
|
|
@@ -107,35 +107,35 @@ class BlockShellNavFooterComponent {
|
|
|
107
107
|
</div>
|
|
108
108
|
} @else {
|
|
109
109
|
<div class="flex items-center gap-3">
|
|
110
|
-
<block-shell-
|
|
111
|
-
<block-shell-
|
|
110
|
+
<block-shell-navigation-avatar [initials]="resolvedInitials()" />
|
|
111
|
+
<block-shell-navigation-meta
|
|
112
112
|
[name]="name()"
|
|
113
113
|
[subtitle]="subtitle()"
|
|
114
114
|
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'" />
|
|
115
115
|
</div>
|
|
116
116
|
}
|
|
117
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
|
|
120
120
|
type: Component,
|
|
121
121
|
args: [{
|
|
122
|
-
selector: 'block-shell-
|
|
122
|
+
selector: 'block-shell-navigation-footer',
|
|
123
123
|
imports: [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
NavigationCollapseRootDirective,
|
|
125
|
+
NavigationCollapseExpandedDirective,
|
|
126
|
+
BlockShellNavigationAvatarComponent,
|
|
127
|
+
BlockShellNavigationMetaComponent,
|
|
128
128
|
],
|
|
129
129
|
host: {
|
|
130
130
|
class: 'contents',
|
|
131
131
|
},
|
|
132
132
|
template: `
|
|
133
133
|
@if (collapsible()) {
|
|
134
|
-
<div
|
|
135
|
-
<block-shell-
|
|
134
|
+
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
135
|
+
<block-shell-navigation-avatar [initials]="resolvedInitials()" />
|
|
136
136
|
|
|
137
|
-
<div *
|
|
138
|
-
<block-shell-
|
|
137
|
+
<div *NavigationCollapseExpanded class="min-w-0">
|
|
138
|
+
<block-shell-navigation-meta
|
|
139
139
|
[name]="name()"
|
|
140
140
|
[subtitle]="subtitle()"
|
|
141
141
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
|
|
@@ -143,8 +143,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
143
143
|
</div>
|
|
144
144
|
} @else {
|
|
145
145
|
<div class="flex items-center gap-3">
|
|
146
|
-
<block-shell-
|
|
147
|
-
<block-shell-
|
|
146
|
+
<block-shell-navigation-avatar [initials]="resolvedInitials()" />
|
|
147
|
+
<block-shell-navigation-meta
|
|
148
148
|
[name]="name()"
|
|
149
149
|
[subtitle]="subtitle()"
|
|
150
150
|
[containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'" />
|
|
@@ -162,20 +162,20 @@ class BlockShellLogoComponent {
|
|
|
162
162
|
...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
|
|
163
163
|
ariaLabel = input('Buka aplikasi', /* @ts-ignore */
|
|
164
164
|
...(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.
|
|
165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellLogoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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
167
|
<div class="w-8 shrink-0">
|
|
168
|
-
<
|
|
168
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
169
169
|
<div
|
|
170
170
|
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
171
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
172
172
|
{{ text() }}
|
|
173
173
|
</div>
|
|
174
|
-
</
|
|
174
|
+
</AspectRatio>
|
|
175
175
|
</div>
|
|
176
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "
|
|
176
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AspectRatioComponent, selector: "AspectRatio", inputs: ["ratio", "class"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
177
177
|
}
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellLogoComponent, decorators: [{
|
|
179
179
|
type: Component,
|
|
180
180
|
args: [{
|
|
181
181
|
selector: 'block-shell-logo',
|
|
@@ -185,20 +185,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
185
185
|
},
|
|
186
186
|
template: `
|
|
187
187
|
<div class="w-8 shrink-0">
|
|
188
|
-
<
|
|
188
|
+
<AspectRatio [ratio]="3 / 2" class="overflow-hidden rounded-none bg-primary">
|
|
189
189
|
<div
|
|
190
190
|
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
191
|
style="font-family: 'Arial Black', Arial, sans-serif;">
|
|
192
192
|
{{ text() }}
|
|
193
193
|
</div>
|
|
194
|
-
</
|
|
194
|
+
</AspectRatio>
|
|
195
195
|
</div>
|
|
196
196
|
`,
|
|
197
197
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
198
198
|
}]
|
|
199
199
|
}], 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
200
|
|
|
201
|
-
class
|
|
201
|
+
class BlockShellNavigationHeaderComponent {
|
|
202
202
|
name = input.required(/* @ts-ignore */
|
|
203
203
|
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
204
204
|
subtitle = input.required(/* @ts-ignore */
|
|
@@ -221,9 +221,9 @@ class BlockShellNavHeaderComponent {
|
|
|
221
221
|
const activeHomePath = this.homePath();
|
|
222
222
|
return path === activeHomePath || path.startsWith(`${activeHomePath}/`);
|
|
223
223
|
}
|
|
224
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
225
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
226
|
-
<ng-template
|
|
224
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
225
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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
|
+
<ng-template PopoverContent #workspaceSwitcher="PopoverContent">
|
|
227
227
|
<div
|
|
228
228
|
data-block-shell-workspace-panel
|
|
229
229
|
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg">
|
|
@@ -246,11 +246,11 @@ class BlockShellNavHeaderComponent {
|
|
|
246
246
|
</ng-template>
|
|
247
247
|
|
|
248
248
|
@if (collapsible()) {
|
|
249
|
-
<div
|
|
249
|
+
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
250
250
|
@if (hasWorkspaceLinks()) {
|
|
251
251
|
<button
|
|
252
252
|
type="button"
|
|
253
|
-
[
|
|
253
|
+
[PopoverTrigger]="workspaceSwitcher"
|
|
254
254
|
side="bottom"
|
|
255
255
|
align="start"
|
|
256
256
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
@@ -262,13 +262,13 @@ class BlockShellNavHeaderComponent {
|
|
|
262
262
|
<block-shell-logo [text]="logoText()" />
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
<div *
|
|
265
|
+
<div *NavigationCollapseExpanded class="min-w-0 flex-1">
|
|
266
266
|
<a
|
|
267
267
|
[routerLink]="homePath()"
|
|
268
268
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
269
269
|
data-block-shell-home-link
|
|
270
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">
|
|
271
|
-
<block-shell-
|
|
271
|
+
<block-shell-navigation-meta
|
|
272
272
|
[name]="subtitle()"
|
|
273
273
|
[subtitle]="name()"
|
|
274
274
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
|
|
@@ -280,7 +280,7 @@ class BlockShellNavHeaderComponent {
|
|
|
280
280
|
@if (hasWorkspaceLinks()) {
|
|
281
281
|
<button
|
|
282
282
|
type="button"
|
|
283
|
-
[
|
|
283
|
+
[PopoverTrigger]="workspaceSwitcher"
|
|
284
284
|
side="bottom"
|
|
285
285
|
align="start"
|
|
286
286
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
@@ -297,30 +297,30 @@ class BlockShellNavHeaderComponent {
|
|
|
297
297
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
298
298
|
data-block-shell-home-link
|
|
299
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">
|
|
300
|
-
<block-shell-
|
|
300
|
+
<block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
|
|
301
301
|
</a>
|
|
302
302
|
</div>
|
|
303
303
|
}
|
|
304
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
305
305
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
|
|
307
307
|
type: Component,
|
|
308
308
|
args: [{
|
|
309
|
-
selector: 'block-shell-
|
|
309
|
+
selector: 'block-shell-navigation-header',
|
|
310
310
|
imports: [
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
NavigationCollapseRootDirective,
|
|
312
|
+
NavigationCollapseExpandedDirective,
|
|
313
313
|
RouterLink,
|
|
314
314
|
PopoverContentDirective,
|
|
315
315
|
PopoverTriggerDirective,
|
|
316
316
|
BlockShellLogoComponent,
|
|
317
|
-
|
|
317
|
+
BlockShellNavigationMetaComponent,
|
|
318
318
|
],
|
|
319
319
|
host: {
|
|
320
320
|
class: 'contents',
|
|
321
321
|
},
|
|
322
322
|
template: `
|
|
323
|
-
<ng-template
|
|
323
|
+
<ng-template PopoverContent #workspaceSwitcher="PopoverContent">
|
|
324
324
|
<div
|
|
325
325
|
data-block-shell-workspace-panel
|
|
326
326
|
class="w-72 space-y-1 rounded-none border border-border bg-popover p-2 text-popover-foreground shadow-lg">
|
|
@@ -343,11 +343,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
343
343
|
</ng-template>
|
|
344
344
|
|
|
345
345
|
@if (collapsible()) {
|
|
346
|
-
<div
|
|
346
|
+
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
347
347
|
@if (hasWorkspaceLinks()) {
|
|
348
348
|
<button
|
|
349
349
|
type="button"
|
|
350
|
-
[
|
|
350
|
+
[PopoverTrigger]="workspaceSwitcher"
|
|
351
351
|
side="bottom"
|
|
352
352
|
align="start"
|
|
353
353
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
@@ -359,13 +359,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
359
359
|
<block-shell-logo [text]="logoText()" />
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
<div *
|
|
362
|
+
<div *NavigationCollapseExpanded class="min-w-0 flex-1">
|
|
363
363
|
<a
|
|
364
364
|
[routerLink]="homePath()"
|
|
365
365
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
366
366
|
data-block-shell-home-link
|
|
367
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">
|
|
368
|
-
<block-shell-
|
|
368
|
+
<block-shell-navigation-meta
|
|
369
369
|
[name]="subtitle()"
|
|
370
370
|
[subtitle]="name()"
|
|
371
371
|
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'" />
|
|
@@ -377,7 +377,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
377
377
|
@if (hasWorkspaceLinks()) {
|
|
378
378
|
<button
|
|
379
379
|
type="button"
|
|
380
|
-
[
|
|
380
|
+
[PopoverTrigger]="workspaceSwitcher"
|
|
381
381
|
side="bottom"
|
|
382
382
|
align="start"
|
|
383
383
|
[attr.aria-label]="workspaceTriggerAriaLabel()"
|
|
@@ -394,7 +394,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
394
394
|
[attr.aria-label]="homeLinkAriaLabel()"
|
|
395
395
|
data-block-shell-home-link
|
|
396
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">
|
|
397
|
-
<block-shell-
|
|
397
|
+
<block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
|
|
398
398
|
</a>
|
|
399
399
|
</div>
|
|
400
400
|
}
|
|
@@ -403,7 +403,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
403
403
|
}]
|
|
404
404
|
}], 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
405
|
|
|
406
|
-
class
|
|
406
|
+
class BlockShellSidebarNavigationComponent {
|
|
407
407
|
documentRef = inject(DOCUMENT);
|
|
408
408
|
destroyRef = inject(DestroyRef);
|
|
409
409
|
navigation = input.required(/* @ts-ignore */
|
|
@@ -443,9 +443,9 @@ class BlockShellSidebarNavComponent {
|
|
|
443
443
|
readResponsiveCollapsed() {
|
|
444
444
|
return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
|
|
445
445
|
}
|
|
446
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
447
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
448
|
-
<
|
|
446
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
447
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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 }, 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 }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
448
|
+
<Navigation
|
|
449
449
|
[id]="sidebarNavId()"
|
|
450
450
|
[data]="navigation()"
|
|
451
451
|
[ariaLabel]="ariaLabel()"
|
|
@@ -455,38 +455,38 @@ class BlockShellSidebarNavComponent {
|
|
|
455
455
|
orientation="vertical"
|
|
456
456
|
appearance="sidebar"
|
|
457
457
|
class="h-full">
|
|
458
|
-
<
|
|
459
|
-
<block-shell-
|
|
458
|
+
<NavigationHeader>
|
|
459
|
+
<block-shell-navigation-header
|
|
460
460
|
[name]="shellName()"
|
|
461
461
|
[subtitle]="brandSubtitle()"
|
|
462
462
|
[logoText]="logoText()"
|
|
463
463
|
[homePath]="homePath()"
|
|
464
464
|
[collapsible]="true"
|
|
465
465
|
[workspaceLinks]="workspaceLinks()" />
|
|
466
|
-
</
|
|
466
|
+
</NavigationHeader>
|
|
467
467
|
|
|
468
|
-
<
|
|
469
|
-
<block-shell-
|
|
470
|
-
</
|
|
471
|
-
</
|
|
472
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
468
|
+
<NavigationFooter class="px-3">
|
|
469
|
+
<block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
|
|
470
|
+
</NavigationFooter>
|
|
471
|
+
</Navigation>
|
|
472
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NavigationComponent, selector: "Navigation", inputs: ["id", "data", "items", "orientation", "appearance", "position", "collapsed", "dockbarMode", "ariaLabel", "compact", "previewExpanded", "nav-sidebar-collapse", "collapse-tree", "class", "itemClass", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
473
473
|
}
|
|
474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
474
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
475
475
|
type: Component,
|
|
476
476
|
args: [{
|
|
477
|
-
selector: 'block-shell-sidebar-
|
|
477
|
+
selector: 'block-shell-sidebar-navigation',
|
|
478
478
|
imports: [
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
479
|
+
NavigationComponent,
|
|
480
|
+
NavigationHeaderComponent,
|
|
481
|
+
NavigationFooterComponent,
|
|
482
|
+
BlockShellNavigationHeaderComponent,
|
|
483
|
+
BlockShellNavigationFooterComponent,
|
|
484
484
|
],
|
|
485
485
|
host: {
|
|
486
486
|
class: 'contents',
|
|
487
487
|
},
|
|
488
488
|
template: `
|
|
489
|
-
<
|
|
489
|
+
<Navigation
|
|
490
490
|
[id]="sidebarNavId()"
|
|
491
491
|
[data]="navigation()"
|
|
492
492
|
[ariaLabel]="ariaLabel()"
|
|
@@ -496,26 +496,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
496
496
|
orientation="vertical"
|
|
497
497
|
appearance="sidebar"
|
|
498
498
|
class="h-full">
|
|
499
|
-
<
|
|
500
|
-
<block-shell-
|
|
499
|
+
<NavigationHeader>
|
|
500
|
+
<block-shell-navigation-header
|
|
501
501
|
[name]="shellName()"
|
|
502
502
|
[subtitle]="brandSubtitle()"
|
|
503
503
|
[logoText]="logoText()"
|
|
504
504
|
[homePath]="homePath()"
|
|
505
505
|
[collapsible]="true"
|
|
506
506
|
[workspaceLinks]="workspaceLinks()" />
|
|
507
|
-
</
|
|
507
|
+
</NavigationHeader>
|
|
508
508
|
|
|
509
|
-
<
|
|
510
|
-
<block-shell-
|
|
511
|
-
</
|
|
512
|
-
</
|
|
509
|
+
<NavigationFooter class="px-3">
|
|
510
|
+
<block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [collapsible]="true" />
|
|
511
|
+
</NavigationFooter>
|
|
512
|
+
</Navigation>
|
|
513
513
|
`,
|
|
514
514
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
515
515
|
}]
|
|
516
516
|
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", 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 }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
517
517
|
|
|
518
|
-
class
|
|
518
|
+
class BlockShellTopNavigationComponent {
|
|
519
519
|
navigation = input.required(/* @ts-ignore */
|
|
520
520
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
521
521
|
workspaceLinks = input([], /* @ts-ignore */
|
|
@@ -536,9 +536,9 @@ class BlockShellTopNavComponent {
|
|
|
536
536
|
...(ngDevMode ? [{ debugName: "userPosition" }] : /* istanbul ignore next */ []));
|
|
537
537
|
ariaLabel = input('top navigation', /* @ts-ignore */
|
|
538
538
|
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
539
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
540
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
541
|
-
<
|
|
539
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
540
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.1", 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 }, navbarId: { classPropertyName: "navbarId", publicName: "navbarId", 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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
541
|
+
<Navigation
|
|
542
542
|
[id]="navbarId()"
|
|
543
543
|
[data]="navigation()"
|
|
544
544
|
[ariaLabel]="ariaLabel()"
|
|
@@ -546,37 +546,37 @@ class BlockShellTopNavComponent {
|
|
|
546
546
|
orientation="horizontal"
|
|
547
547
|
appearance="navbar"
|
|
548
548
|
class="h-full">
|
|
549
|
-
<
|
|
550
|
-
<block-shell-
|
|
549
|
+
<NavigationHeader>
|
|
550
|
+
<block-shell-navigation-header
|
|
551
551
|
[name]="shellName()"
|
|
552
552
|
[subtitle]="brandSubtitle()"
|
|
553
553
|
[logoText]="logoText()"
|
|
554
554
|
[homePath]="homePath()"
|
|
555
555
|
[workspaceLinks]="workspaceLinks()" />
|
|
556
|
-
</
|
|
556
|
+
</NavigationHeader>
|
|
557
557
|
|
|
558
|
-
<
|
|
559
|
-
<block-shell-
|
|
560
|
-
</
|
|
561
|
-
</
|
|
562
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
558
|
+
<NavigationFooter class="px-3">
|
|
559
|
+
<block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
|
|
560
|
+
</NavigationFooter>
|
|
561
|
+
</Navigation>
|
|
562
|
+
`, isInline: true, dependencies: [{ kind: "component", type: NavigationComponent, selector: "Navigation", inputs: ["id", "data", "items", "orientation", "appearance", "position", "collapsed", "dockbarMode", "ariaLabel", "compact", "previewExpanded", "nav-sidebar-collapse", "collapse-tree", "class", "itemClass", "activeIds", "activeUrl", "openedIds"], outputs: ["openedIdsChange", "itemSelected"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
563
563
|
}
|
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
565
565
|
type: Component,
|
|
566
566
|
args: [{
|
|
567
|
-
selector: 'block-shell-top-
|
|
567
|
+
selector: 'block-shell-top-navigation',
|
|
568
568
|
imports: [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
569
|
+
NavigationComponent,
|
|
570
|
+
NavigationHeaderComponent,
|
|
571
|
+
NavigationFooterComponent,
|
|
572
|
+
BlockShellNavigationHeaderComponent,
|
|
573
|
+
BlockShellNavigationFooterComponent,
|
|
574
574
|
],
|
|
575
575
|
host: {
|
|
576
576
|
class: 'contents',
|
|
577
577
|
},
|
|
578
578
|
template: `
|
|
579
|
-
<
|
|
579
|
+
<Navigation
|
|
580
580
|
[id]="navbarId()"
|
|
581
581
|
[data]="navigation()"
|
|
582
582
|
[ariaLabel]="ariaLabel()"
|
|
@@ -584,19 +584,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
584
584
|
orientation="horizontal"
|
|
585
585
|
appearance="navbar"
|
|
586
586
|
class="h-full">
|
|
587
|
-
<
|
|
588
|
-
<block-shell-
|
|
587
|
+
<NavigationHeader>
|
|
588
|
+
<block-shell-navigation-header
|
|
589
589
|
[name]="shellName()"
|
|
590
590
|
[subtitle]="brandSubtitle()"
|
|
591
591
|
[logoText]="logoText()"
|
|
592
592
|
[homePath]="homePath()"
|
|
593
593
|
[workspaceLinks]="workspaceLinks()" />
|
|
594
|
-
</
|
|
594
|
+
</NavigationHeader>
|
|
595
595
|
|
|
596
|
-
<
|
|
597
|
-
<block-shell-
|
|
598
|
-
</
|
|
599
|
-
</
|
|
596
|
+
<NavigationFooter class="px-3">
|
|
597
|
+
<block-shell-navigation-footer [name]="userName()" [subtitle]="userPosition()" [desktopOnly]="true" />
|
|
598
|
+
</NavigationFooter>
|
|
599
|
+
</Navigation>
|
|
600
600
|
`,
|
|
601
601
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
602
602
|
}]
|
|
@@ -630,14 +630,14 @@ class BlockShellComponent {
|
|
|
630
630
|
contentAriaLabel = input('layout content', /* @ts-ignore */
|
|
631
631
|
...(ngDevMode ? [{ debugName: "contentAriaLabel" }] : /* istanbul ignore next */ []));
|
|
632
632
|
layout = inject(LayoutService);
|
|
633
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
634
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
633
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
634
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.1", 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: `
|
|
635
635
|
<layout>
|
|
636
636
|
@switch (layout.type()) {
|
|
637
637
|
@case ('horizontal') {
|
|
638
638
|
<layout-horizontal>
|
|
639
|
-
<layout-
|
|
640
|
-
<block-shell-top-
|
|
639
|
+
<layout-navigation [ariaLabel]="topAriaLabel()">
|
|
640
|
+
<block-shell-top-navigation
|
|
641
641
|
[navigation]="navigation()"
|
|
642
642
|
[workspaceLinks]="workspaceLinks()"
|
|
643
643
|
[navbarId]="navbarId()"
|
|
@@ -648,7 +648,7 @@ class BlockShellComponent {
|
|
|
648
648
|
[userName]="userName()"
|
|
649
649
|
[userPosition]="userPosition()"
|
|
650
650
|
[ariaLabel]="topAriaLabel()" />
|
|
651
|
-
</layout-
|
|
651
|
+
</layout-navigation>
|
|
652
652
|
|
|
653
653
|
<layout-content [attr.aria-label]="contentAriaLabel()">
|
|
654
654
|
<router-outlet />
|
|
@@ -666,8 +666,8 @@ class BlockShellComponent {
|
|
|
666
666
|
|
|
667
667
|
@default {
|
|
668
668
|
<layout-vertical>
|
|
669
|
-
<layout-
|
|
670
|
-
<block-shell-sidebar-
|
|
669
|
+
<layout-navigation [ariaLabel]="sideAriaLabel()">
|
|
670
|
+
<block-shell-sidebar-navigation
|
|
671
671
|
[navigation]="navigation()"
|
|
672
672
|
[workspaceLinks]="workspaceLinks()"
|
|
673
673
|
[sidebarNavId]="sidebarNavId()"
|
|
@@ -678,7 +678,7 @@ class BlockShellComponent {
|
|
|
678
678
|
[userName]="userName()"
|
|
679
679
|
[userPosition]="userPosition()"
|
|
680
680
|
[ariaLabel]="sideAriaLabel()" />
|
|
681
|
-
</layout-
|
|
681
|
+
</layout-navigation>
|
|
682
682
|
|
|
683
683
|
<layout-content [attr.aria-label]="contentAriaLabel()">
|
|
684
684
|
<router-outlet />
|
|
@@ -687,21 +687,21 @@ class BlockShellComponent {
|
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
</layout>
|
|
690
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
690
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "layout", inputs: ["surface", "appearance", "layout-style", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "layout-vertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "layout-horizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "layout-empty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "layout-navigation", inputs: ["ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "layout-content", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "workspaceLinks", "sidebarNavId", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "workspaceLinks", "navbarId", "shellName", "brandSubtitle", "logoText", "homePath", "userName", "userPosition", "ariaLabel"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
691
691
|
}
|
|
692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.1", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
693
693
|
type: Component,
|
|
694
694
|
args: [{
|
|
695
695
|
selector: 'block-shell',
|
|
696
696
|
imports: [
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
697
|
+
LayoutComponent,
|
|
698
|
+
LayoutVerticalComponent,
|
|
699
|
+
LayoutHorizontalComponent,
|
|
700
|
+
LayoutEmptyComponent,
|
|
701
|
+
LayoutNavigationComponent,
|
|
702
|
+
LayoutContentComponent,
|
|
703
|
+
BlockShellSidebarNavigationComponent,
|
|
704
|
+
BlockShellTopNavigationComponent,
|
|
705
705
|
RouterOutlet,
|
|
706
706
|
],
|
|
707
707
|
host: {
|
|
@@ -712,8 +712,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
712
712
|
@switch (layout.type()) {
|
|
713
713
|
@case ('horizontal') {
|
|
714
714
|
<layout-horizontal>
|
|
715
|
-
<layout-
|
|
716
|
-
<block-shell-top-
|
|
715
|
+
<layout-navigation [ariaLabel]="topAriaLabel()">
|
|
716
|
+
<block-shell-top-navigation
|
|
717
717
|
[navigation]="navigation()"
|
|
718
718
|
[workspaceLinks]="workspaceLinks()"
|
|
719
719
|
[navbarId]="navbarId()"
|
|
@@ -724,7 +724,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
724
724
|
[userName]="userName()"
|
|
725
725
|
[userPosition]="userPosition()"
|
|
726
726
|
[ariaLabel]="topAriaLabel()" />
|
|
727
|
-
</layout-
|
|
727
|
+
</layout-navigation>
|
|
728
728
|
|
|
729
729
|
<layout-content [attr.aria-label]="contentAriaLabel()">
|
|
730
730
|
<router-outlet />
|
|
@@ -742,8 +742,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
742
742
|
|
|
743
743
|
@default {
|
|
744
744
|
<layout-vertical>
|
|
745
|
-
<layout-
|
|
746
|
-
<block-shell-sidebar-
|
|
745
|
+
<layout-navigation [ariaLabel]="sideAriaLabel()">
|
|
746
|
+
<block-shell-sidebar-navigation
|
|
747
747
|
[navigation]="navigation()"
|
|
748
748
|
[workspaceLinks]="workspaceLinks()"
|
|
749
749
|
[sidebarNavId]="sidebarNavId()"
|
|
@@ -754,7 +754,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImpor
|
|
|
754
754
|
[userName]="userName()"
|
|
755
755
|
[userPosition]="userPosition()"
|
|
756
756
|
[ariaLabel]="sideAriaLabel()" />
|
|
757
|
-
</layout-
|
|
757
|
+
</layout-navigation>
|
|
758
758
|
|
|
759
759
|
<layout-content [attr.aria-label]="contentAriaLabel()">
|
|
760
760
|
<router-outlet />
|
|
@@ -777,5 +777,5 @@ function workspaceNavbarId(workspace) {
|
|
|
777
777
|
* Generated bundle index. Do not edit.
|
|
778
778
|
*/
|
|
779
779
|
|
|
780
|
-
export { BlockShellComponent, BlockShellLogoComponent,
|
|
780
|
+
export { BlockShellComponent, BlockShellLogoComponent, BlockShellNavigationAvatarComponent, BlockShellNavigationFooterComponent, BlockShellNavigationHeaderComponent, BlockShellNavigationMetaComponent, BlockShellSidebarNavigationComponent, BlockShellTopNavigationComponent, MAIN_SIDEBAR_NAV_ID, workspaceNavbarId };
|
|
781
781
|
//# sourceMappingURL=edsis-angular-block-shell.mjs.map
|