@edsis/angular 22.0.56 → 22.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,17 @@
1
1
  import { NgTemplateOutlet, DOCUMENT } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
- import { input, Component, computed, inject, DestroyRef, signal, TemplateRef, Directive, contentChild } from '@angular/core';
3
+ import { input, computed, Component, inject, DestroyRef, signal, TemplateRef, Directive, contentChild } from '@angular/core';
4
4
  import { RouterLink, RouterOutlet } from '@angular/router';
5
5
  import { LayoutService, LayoutComponent, LayoutVerticalComponent, LayoutHorizontalComponent, LayoutEmptyComponent, LayoutNavigationComponent, LayoutContentComponent } from '@edsis/theme/layout';
6
- import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationAsideHeaderDirective, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
6
+ import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationAsideHeaderDirective, NavigationContentComponent, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
7
7
  import { NavigationService } from '@edsis/navigation/service';
8
+ import { AvatarBadgeComponent, AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@edsis/component/avatar';
9
+ import { ButtonComponent } from '@edsis/component/button';
10
+ import { cn } from '@edsis/component/class';
11
+ import { IconComponent } from '@edsis/component/icon';
8
12
  import { PopoverContentDirective, PopoverTriggerDirective } from '@edsis/component/popover';
9
13
  import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
14
+ import { ThemeStyleService } from '@edsis/theme/styles';
10
15
 
11
16
  class BlockShellNavigationAvatarComponent {
12
17
  initials = input.required(/* @ts-ignore */
@@ -15,19 +20,59 @@ class BlockShellNavigationAvatarComponent {
15
20
  ...(ngDevMode ? [{ debugName: "photoUrl" }] : /* istanbul ignore next */ []));
16
21
  photoAlt = input('', /* @ts-ignore */
17
22
  ...(ngDevMode ? [{ debugName: "photoAlt" }] : /* istanbul ignore next */ []));
23
+ /** Radius mengikuti konteks shell; default mempertahankan avatar persegi. */
24
+ radiusClass = input('rounded-none', /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "radiusClass" }] : /* istanbul ignore next */ []));
26
+ /** Avatar interaktif dipakai khusus untuk kontrol profil Desktop. */
27
+ asButton = input(false, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "asButton" }] : /* istanbul ignore next */ []));
29
+ buttonLabel = input('User menu', /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "buttonLabel" }] : /* istanbul ignore next */ []));
31
+ /** Menampilkan indikator online dengan primitive Avatar. */
32
+ showOnlineIndicator = input(false, /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "showOnlineIndicator" }] : /* istanbul ignore next */ []));
34
+ avatarClasses = computed(() => cn(this.asButton()
35
+ ? 'size-11 shrink-0 text-sm font-semibold'
36
+ : 'inline-flex size-[calc(2.5rem*2/3)] shrink-0 items-center justify-center overflow-hidden bg-primary text-xs font-semibold text-primary-foreground', this.radiusClass()), /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "avatarClasses" }] : /* istanbul ignore next */ []));
18
38
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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: `
39
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 }, radiusClass: { classPropertyName: "radiusClass", publicName: "radiusClass", isSignal: true, isRequired: false, transformFunction: null }, asButton: { classPropertyName: "asButton", publicName: "asButton", isSignal: true, isRequired: false, transformFunction: null }, buttonLabel: { classPropertyName: "buttonLabel", publicName: "buttonLabel", isSignal: true, isRequired: false, transformFunction: null }, showOnlineIndicator: { classPropertyName: "showOnlineIndicator", publicName: "showOnlineIndicator", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
20
40
  <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
21
- <span
22
- 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"
23
- >
24
- @if (photoUrl(); as url) {
25
- <img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
41
+ @if (asButton()) {
42
+ <button
43
+ Button
44
+ type="button"
45
+ variant="ghost"
46
+ size="icon-lg"
47
+ [class]="avatarClasses()"
48
+ [attr.aria-label]="buttonLabel()"
49
+ >
50
+ <ng-container [ngTemplateOutlet]="avatarContent" />
51
+ </button>
52
+ } @else {
53
+ <span [class]="avatarClasses()">
54
+ <ng-container [ngTemplateOutlet]="avatarContent" />
55
+ </span>
56
+ }
57
+
58
+ <ng-template #avatarContent>
59
+ @if (showOnlineIndicator()) {
60
+ <Avatar size="sm">
61
+ @if (photoUrl(); as url) {
62
+ <AvatarImage [src]="url" [alt]="photoAlt()" />
63
+ }
64
+ <AvatarFallback>{{ initials() }}</AvatarFallback>
65
+ <AvatarBadge class="bg-emerald-600" aria-hidden="true" />
66
+ </Avatar>
26
67
  } @else {
27
- {{ initials() }}
68
+ @if (photoUrl(); as url) {
69
+ <img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
70
+ } @else {
71
+ {{ initials() }}
72
+ }
28
73
  }
29
- </span>
30
- `, isInline: true });
74
+ </ng-template>
75
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AvatarBadgeComponent, selector: "AvatarBadge", inputs: ["class"] }, { kind: "component", type: AvatarComponent, selector: "Avatar", inputs: ["size", "class"] }, { kind: "component", type: AvatarFallbackComponent, selector: "AvatarFallback", inputs: ["class"] }, { kind: "component", type: AvatarImageComponent, selector: "AvatarImage", inputs: ["src", "alt", "class"] }, { kind: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }] });
31
76
  }
32
77
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationAvatarComponent, decorators: [{
33
78
  type: Component,
@@ -38,18 +83,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
38
83
  },
39
84
  template: `
40
85
  <!-- size = tinggi logo header: kotak w-10 (2.5rem) dengan AspectRatio 3/2 -->
41
- <span
42
- 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"
43
- >
44
- @if (photoUrl(); as url) {
45
- <img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
86
+ @if (asButton()) {
87
+ <button
88
+ Button
89
+ type="button"
90
+ variant="ghost"
91
+ size="icon-lg"
92
+ [class]="avatarClasses()"
93
+ [attr.aria-label]="buttonLabel()"
94
+ >
95
+ <ng-container [ngTemplateOutlet]="avatarContent" />
96
+ </button>
97
+ } @else {
98
+ <span [class]="avatarClasses()">
99
+ <ng-container [ngTemplateOutlet]="avatarContent" />
100
+ </span>
101
+ }
102
+
103
+ <ng-template #avatarContent>
104
+ @if (showOnlineIndicator()) {
105
+ <Avatar size="sm">
106
+ @if (photoUrl(); as url) {
107
+ <AvatarImage [src]="url" [alt]="photoAlt()" />
108
+ }
109
+ <AvatarFallback>{{ initials() }}</AvatarFallback>
110
+ <AvatarBadge class="bg-emerald-600" aria-hidden="true" />
111
+ </Avatar>
46
112
  } @else {
47
- {{ initials() }}
113
+ @if (photoUrl(); as url) {
114
+ <img [src]="url" [alt]="photoAlt()" class="h-full w-full object-cover" />
115
+ } @else {
116
+ {{ initials() }}
117
+ }
48
118
  }
49
- </span>
119
+ </ng-template>
50
120
  `,
121
+ imports: [
122
+ NgTemplateOutlet,
123
+ AvatarBadgeComponent,
124
+ AvatarComponent,
125
+ AvatarFallbackComponent,
126
+ AvatarImageComponent,
127
+ ButtonComponent,
128
+ ],
51
129
  }]
52
- }], 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 }] }] } });
130
+ }], 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 }] }], radiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "radiusClass", required: false }] }], asButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "asButton", required: false }] }], buttonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonLabel", required: false }] }], showOnlineIndicator: [{ type: i0.Input, args: [{ isSignal: true, alias: "showOnlineIndicator", required: false }] }] } });
53
131
 
54
132
  class BlockShellNavigationMetaComponent {
55
133
  name = input.required(/* @ts-ignore */
@@ -60,11 +138,15 @@ class BlockShellNavigationMetaComponent {
60
138
  ...(ngDevMode ? [{ debugName: "containerClass" }] : /* istanbul ignore next */ []));
61
139
  subtitleClass = input('truncate text-xs text-muted-foreground', /* @ts-ignore */
62
140
  ...(ngDevMode ? [{ debugName: "subtitleClass" }] : /* istanbul ignore next */ []));
141
+ hideSubtitle = input(false, /* @ts-ignore */
142
+ ...(ngDevMode ? [{ debugName: "hideSubtitle" }] : /* istanbul ignore next */ []));
63
143
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationMetaComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
64
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", 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: `
144
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 }, hideSubtitle: { classPropertyName: "hideSubtitle", publicName: "hideSubtitle", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
65
145
  <div [class]="containerClass()">
66
146
  <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
67
- <p [class]="subtitleClass()">{{ subtitle() }}</p>
147
+ @if (!hideSubtitle()) {
148
+ <p [class]="subtitleClass()">{{ subtitle() }}</p>
149
+ }
68
150
  </div>
69
151
  `, isInline: true });
70
152
  }
@@ -78,11 +160,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
78
160
  template: `
79
161
  <div [class]="containerClass()">
80
162
  <p class="truncate text-sm font-semibold tracking-tight text-foreground">{{ name() }}</p>
81
- <p [class]="subtitleClass()">{{ subtitle() }}</p>
163
+ @if (!hideSubtitle()) {
164
+ <p [class]="subtitleClass()">{{ subtitle() }}</p>
165
+ }
82
166
  </div>
83
167
  `,
84
168
  }]
85
- }], 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 }] }] } });
169
+ }], 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 }] }], hideSubtitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideSubtitle", required: false }] }] } });
86
170
 
87
171
  class BlockShellNavigationFooterComponent {
88
172
  name = input.required(/* @ts-ignore */
@@ -97,6 +181,20 @@ class BlockShellNavigationFooterComponent {
97
181
  ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
98
182
  desktopOnly = input(false, /* @ts-ignore */
99
183
  ...(ngDevMode ? [{ debugName: "desktopOnly" }] : /* istanbul ignore next */ []));
184
+ /** Kelas radius avatar; default mempertahankan avatar persegi pada shell lain. */
185
+ avatarRadiusClass = input('rounded-none', /* @ts-ignore */
186
+ ...(ngDevMode ? [{ debugName: "avatarRadiusClass" }] : /* istanbul ignore next */ []));
187
+ /** Sembunyikan seluruh metadata pengguna, termasuk dari DOM. */
188
+ showMeta = input(true, /* @ts-ignore */
189
+ ...(ngDevMode ? [{ debugName: "showMeta" }] : /* istanbul ignore next */ []));
190
+ /** Gunakan elemen button tanpa mengubah tampilan avatar. */
191
+ avatarButton = input(false, /* @ts-ignore */
192
+ ...(ngDevMode ? [{ debugName: "avatarButton" }] : /* istanbul ignore next */ []));
193
+ avatarButtonLabel = input('User menu', /* @ts-ignore */
194
+ ...(ngDevMode ? [{ debugName: "avatarButtonLabel" }] : /* istanbul ignore next */ []));
195
+ /** Tampilkan presence badge pada avatar, dipakai khusus footer Desktop. */
196
+ avatarOnline = input(false, /* @ts-ignore */
197
+ ...(ngDevMode ? [{ debugName: "avatarOnline" }] : /* istanbul ignore next */ []));
100
198
  actionTemplate = input(null, /* @ts-ignore */
101
199
  ...(ngDevMode ? [{ debugName: "actionTemplate" }] : /* istanbul ignore next */ []));
102
200
  resolvedInitials = computed(() => {
@@ -112,22 +210,28 @@ class BlockShellNavigationFooterComponent {
112
210
  }, /* @ts-ignore */
113
211
  ...(ngDevMode ? [{ debugName: "resolvedInitials" }] : /* istanbul ignore next */ []));
114
212
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
115
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
213
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 }, avatarRadiusClass: { classPropertyName: "avatarRadiusClass", publicName: "avatarRadiusClass", isSignal: true, isRequired: false, transformFunction: null }, showMeta: { classPropertyName: "showMeta", publicName: "showMeta", isSignal: true, isRequired: false, transformFunction: null }, avatarButton: { classPropertyName: "avatarButton", publicName: "avatarButton", isSignal: true, isRequired: false, transformFunction: null }, avatarButtonLabel: { classPropertyName: "avatarButtonLabel", publicName: "avatarButtonLabel", isSignal: true, isRequired: false, transformFunction: null }, avatarOnline: { classPropertyName: "avatarOnline", publicName: "avatarOnline", isSignal: true, isRequired: false, transformFunction: null }, actionTemplate: { classPropertyName: "actionTemplate", publicName: "actionTemplate", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
116
214
  @if (collapsible()) {
117
215
  <div NavigationCollapseRoot class="flex w-full items-center gap-3">
118
216
  <block-shell-navigation-avatar
119
217
  [initials]="resolvedInitials()"
120
218
  [photoUrl]="photoUrl()"
121
219
  [photoAlt]="name()"
220
+ [radiusClass]="avatarRadiusClass()"
221
+ [asButton]="avatarButton()"
222
+ [buttonLabel]="avatarButtonLabel()"
223
+ [showOnlineIndicator]="avatarOnline()"
122
224
  />
123
225
 
124
- <div *NavigationCollapseExpanded class="min-w-0">
125
- <block-shell-navigation-meta
126
- [name]="name()"
127
- [subtitle]="subtitle()"
128
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
129
- />
130
- </div>
226
+ @if (showMeta()) {
227
+ <div *NavigationCollapseExpanded class="min-w-0">
228
+ <block-shell-navigation-meta
229
+ [name]="name()"
230
+ [subtitle]="subtitle()"
231
+ [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
232
+ />
233
+ </div>
234
+ }
131
235
 
132
236
  @if (actionTemplate()) {
133
237
  <div *NavigationCollapseExpanded class="ml-auto shrink-0">
@@ -141,15 +245,21 @@ class BlockShellNavigationFooterComponent {
141
245
  [initials]="resolvedInitials()"
142
246
  [photoUrl]="photoUrl()"
143
247
  [photoAlt]="name()"
248
+ [radiusClass]="avatarRadiusClass()"
249
+ [asButton]="avatarButton()"
250
+ [buttonLabel]="avatarButtonLabel()"
251
+ [showOnlineIndicator]="avatarOnline()"
144
252
  />
145
- <block-shell-navigation-meta
146
- [name]="name()"
147
- [subtitle]="subtitle()"
148
- [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
149
- />
253
+ @if (showMeta()) {
254
+ <block-shell-navigation-meta
255
+ [name]="name()"
256
+ [subtitle]="subtitle()"
257
+ [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
258
+ />
259
+ }
150
260
  </div>
151
261
  }
152
- `, 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"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
262
+ `, 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", "radiusClass", "asButton", "buttonLabel", "showOnlineIndicator"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
153
263
  }
154
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationFooterComponent, decorators: [{
155
265
  type: Component,
@@ -172,15 +282,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
172
282
  [initials]="resolvedInitials()"
173
283
  [photoUrl]="photoUrl()"
174
284
  [photoAlt]="name()"
285
+ [radiusClass]="avatarRadiusClass()"
286
+ [asButton]="avatarButton()"
287
+ [buttonLabel]="avatarButtonLabel()"
288
+ [showOnlineIndicator]="avatarOnline()"
175
289
  />
176
290
 
177
- <div *NavigationCollapseExpanded class="min-w-0">
178
- <block-shell-navigation-meta
179
- [name]="name()"
180
- [subtitle]="subtitle()"
181
- [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
182
- />
183
- </div>
291
+ @if (showMeta()) {
292
+ <div *NavigationCollapseExpanded class="min-w-0">
293
+ <block-shell-navigation-meta
294
+ [name]="name()"
295
+ [subtitle]="subtitle()"
296
+ [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
297
+ />
298
+ </div>
299
+ }
184
300
 
185
301
  @if (actionTemplate()) {
186
302
  <div *NavigationCollapseExpanded class="ml-auto shrink-0">
@@ -194,17 +310,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
194
310
  [initials]="resolvedInitials()"
195
311
  [photoUrl]="photoUrl()"
196
312
  [photoAlt]="name()"
313
+ [radiusClass]="avatarRadiusClass()"
314
+ [asButton]="avatarButton()"
315
+ [buttonLabel]="avatarButtonLabel()"
316
+ [showOnlineIndicator]="avatarOnline()"
197
317
  />
198
- <block-shell-navigation-meta
199
- [name]="name()"
200
- [subtitle]="subtitle()"
201
- [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
202
- />
318
+ @if (showMeta()) {
319
+ <block-shell-navigation-meta
320
+ [name]="name()"
321
+ [subtitle]="subtitle()"
322
+ [containerClass]="desktopOnly() ? 'hidden min-w-0 xl:block' : 'min-w-0'"
323
+ />
324
+ }
203
325
  </div>
204
326
  }
205
327
  `,
206
328
  }]
207
- }], 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 }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }] } });
329
+ }], 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 }] }], avatarRadiusClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarRadiusClass", required: false }] }], showMeta: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMeta", required: false }] }], avatarButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButton", required: false }] }], avatarButtonLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarButtonLabel", required: false }] }], avatarOnline: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatarOnline", required: false }] }], actionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionTemplate", required: false }] }] } });
208
330
 
209
331
  class BlockShellLogoComponent {
210
332
  text = input('ETOS', /* @ts-ignore */
@@ -261,6 +383,12 @@ class BlockShellNavigationHeaderComponent {
261
383
  ...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
262
384
  collapsible = input(false, /* @ts-ignore */
263
385
  ...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
386
+ /** Menampilkan title aplikasi saja tanpa subtitle/brand. */
387
+ titleOnly = input(false, /* @ts-ignore */
388
+ ...(ngDevMode ? [{ debugName: "titleOnly" }] : /* istanbul ignore next */ []));
389
+ /** Mengganti logo dan label dengan kontrol tiga titik khusus Desktop. */
390
+ desktopControls = input(false, /* @ts-ignore */
391
+ ...(ngDevMode ? [{ debugName: "desktopControls" }] : /* istanbul ignore next */ []));
264
392
  workspaceLinks = input([], /* @ts-ignore */
265
393
  ...(ngDevMode ? [{ debugName: "workspaceLinks" }] : /* istanbul ignore next */ []));
266
394
  homeLinkAriaLabel = computed(() => `Buka ${this.name()}`, /* @ts-ignore */
@@ -274,7 +402,7 @@ class BlockShellNavigationHeaderComponent {
274
402
  return path === activeHomePath || path.startsWith(`${activeHomePath}/`);
275
403
  }
276
404
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
277
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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: `
405
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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 }, titleOnly: { classPropertyName: "titleOnly", publicName: "titleOnly", isSignal: true, isRequired: false, transformFunction: null }, desktopControls: { classPropertyName: "desktopControls", publicName: "desktopControls", isSignal: true, isRequired: false, transformFunction: null }, workspaceLinks: { classPropertyName: "workspaceLinks", publicName: "workspaceLinks", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
278
406
  <ng-template PopoverContent #workspaceSwitcher="PopoverContent">
279
407
  <div
280
408
  data-block-shell-workspace-panel
@@ -301,7 +429,45 @@ class BlockShellNavigationHeaderComponent {
301
429
  </div>
302
430
  </ng-template>
303
431
 
304
- @if (collapsible()) {
432
+ @if (desktopControls()) {
433
+ <div class="-ml-[1.35rem] flex h-11 shrink-0 items-center gap-2">
434
+ <div
435
+ aria-hidden="true"
436
+ data-block-shell-desktop-controls
437
+ class="flex items-center gap-[0.77rem] px-[1.35rem]"
438
+ >
439
+ <span
440
+ data-block-shell-desktop-control="close"
441
+ class="size-[0.91rem] rounded-full bg-[#ff5f57]"
442
+ ></span>
443
+ <span
444
+ data-block-shell-desktop-control="minimize"
445
+ class="size-[0.91rem] rounded-full bg-[#febc2e]"
446
+ ></span>
447
+ <span
448
+ data-block-shell-desktop-control="maximize"
449
+ class="size-[0.91rem] rounded-full bg-[#28c840]"
450
+ ></span>
451
+ </div>
452
+
453
+ <button
454
+ Button
455
+ type="button"
456
+ variant="ghost"
457
+ size="icon-lg"
458
+ [PopoverTrigger]="workspaceSwitcher"
459
+ side="bottom"
460
+ align="start"
461
+ [disabled]="!hasWorkspaceLinks()"
462
+ [attr.aria-label]="workspaceTriggerAriaLabel()"
463
+ [attr.title]="workspaceTriggerAriaLabel()"
464
+ data-block-shell-desktop-workspace-trigger
465
+ class="relative size-11 rounded-base hover:!bg-transparent before:pointer-events-none before:absolute before:z-0 before:inset-1.5 before:rounded-base before:bg-transparent before:content-[''] before:transition-colors hover:before:bg-muted"
466
+ >
467
+ <Icon name="dashboard_customize" [size]="20" class="relative z-10" />
468
+ </button>
469
+ </div>
470
+ } @else if (collapsible()) {
305
471
  <div NavigationCollapseRoot class="flex items-center gap-3">
306
472
  @if (hasWorkspaceLinks()) {
307
473
  <button
@@ -327,8 +493,9 @@ class BlockShellNavigationHeaderComponent {
327
493
  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"
328
494
  >
329
495
  <block-shell-navigation-meta
330
- [name]="subtitle()"
331
- [subtitle]="name()"
496
+ [name]="titleOnly() ? name() : subtitle()"
497
+ [subtitle]="titleOnly() ? '' : name()"
498
+ [hideSubtitle]="titleOnly()"
332
499
  [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
333
500
  />
334
501
  </a>
@@ -358,11 +525,15 @@ class BlockShellNavigationHeaderComponent {
358
525
  data-block-shell-home-link
359
526
  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"
360
527
  >
361
- <block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
528
+ <block-shell-navigation-meta
529
+ [name]="titleOnly() ? name() : subtitle()"
530
+ [subtitle]="titleOnly() ? '' : name()"
531
+ [hideSubtitle]="titleOnly()"
532
+ />
362
533
  </a>
363
534
  </div>
364
535
  }
365
- `, 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"] }] });
536
+ `, 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: "component", type: ButtonComponent, selector: "button[Button], a[Button]", inputs: ["variant", "size", "class"] }, { kind: "component", type: IconComponent, selector: "Icon", inputs: ["name", "class", "size", "fill", "weight", "grade", "opticalSize"] }, { 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", "hideSubtitle"] }] });
366
537
  }
367
538
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
368
539
  type: Component,
@@ -372,6 +543,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
372
543
  NavigationCollapseRootDirective,
373
544
  NavigationCollapseExpandedDirective,
374
545
  RouterLink,
546
+ ButtonComponent,
547
+ IconComponent,
375
548
  PopoverContentDirective,
376
549
  PopoverTriggerDirective,
377
550
  BlockShellLogoComponent,
@@ -407,7 +580,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
407
580
  </div>
408
581
  </ng-template>
409
582
 
410
- @if (collapsible()) {
583
+ @if (desktopControls()) {
584
+ <div class="-ml-[1.35rem] flex h-11 shrink-0 items-center gap-2">
585
+ <div
586
+ aria-hidden="true"
587
+ data-block-shell-desktop-controls
588
+ class="flex items-center gap-[0.77rem] px-[1.35rem]"
589
+ >
590
+ <span
591
+ data-block-shell-desktop-control="close"
592
+ class="size-[0.91rem] rounded-full bg-[#ff5f57]"
593
+ ></span>
594
+ <span
595
+ data-block-shell-desktop-control="minimize"
596
+ class="size-[0.91rem] rounded-full bg-[#febc2e]"
597
+ ></span>
598
+ <span
599
+ data-block-shell-desktop-control="maximize"
600
+ class="size-[0.91rem] rounded-full bg-[#28c840]"
601
+ ></span>
602
+ </div>
603
+
604
+ <button
605
+ Button
606
+ type="button"
607
+ variant="ghost"
608
+ size="icon-lg"
609
+ [PopoverTrigger]="workspaceSwitcher"
610
+ side="bottom"
611
+ align="start"
612
+ [disabled]="!hasWorkspaceLinks()"
613
+ [attr.aria-label]="workspaceTriggerAriaLabel()"
614
+ [attr.title]="workspaceTriggerAriaLabel()"
615
+ data-block-shell-desktop-workspace-trigger
616
+ class="relative size-11 rounded-base hover:!bg-transparent before:pointer-events-none before:absolute before:z-0 before:inset-1.5 before:rounded-base before:bg-transparent before:content-[''] before:transition-colors hover:before:bg-muted"
617
+ >
618
+ <Icon name="dashboard_customize" [size]="20" class="relative z-10" />
619
+ </button>
620
+ </div>
621
+ } @else if (collapsible()) {
411
622
  <div NavigationCollapseRoot class="flex items-center gap-3">
412
623
  @if (hasWorkspaceLinks()) {
413
624
  <button
@@ -433,8 +644,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
433
644
  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"
434
645
  >
435
646
  <block-shell-navigation-meta
436
- [name]="subtitle()"
437
- [subtitle]="name()"
647
+ [name]="titleOnly() ? name() : subtitle()"
648
+ [subtitle]="titleOnly() ? '' : name()"
649
+ [hideSubtitle]="titleOnly()"
438
650
  [subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
439
651
  />
440
652
  </a>
@@ -464,13 +676,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
464
676
  data-block-shell-home-link
465
677
  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"
466
678
  >
467
- <block-shell-navigation-meta [name]="subtitle()" [subtitle]="name()" />
679
+ <block-shell-navigation-meta
680
+ [name]="titleOnly() ? name() : subtitle()"
681
+ [subtitle]="titleOnly() ? '' : name()"
682
+ [hideSubtitle]="titleOnly()"
683
+ />
468
684
  </a>
469
685
  </div>
470
686
  }
471
687
  `,
472
688
  }]
473
- }], 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 }] }] } });
689
+ }], 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 }] }], titleOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "titleOnly", required: false }] }], desktopControls: [{ type: i0.Input, args: [{ isSignal: true, alias: "desktopControls", required: false }] }], workspaceLinks: [{ type: i0.Input, args: [{ isSignal: true, alias: "workspaceLinks", required: false }] }] } });
474
690
 
475
691
  class BlockShellSidebarNavigationComponent {
476
692
  documentRef = inject(DOCUMENT);
@@ -654,7 +870,7 @@ class BlockShellSidebarNavigationComponent {
654
870
  </NavigationSidebar>
655
871
  }
656
872
  </Navigation>
657
- `, 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", "typeStyle", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "directive", type: NavigationAsideHeaderDirective, selector: "ng-template[NavigationAsideHeader]" }, { 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", "actionTemplate"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass"] }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials", "photoUrl", "photoAlt"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
873
+ `, 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", "typeStyle", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "directive", type: NavigationAsideHeaderDirective, selector: "ng-template[NavigationAsideHeader]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "titleOnly", "desktopControls", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "avatarButton", "avatarButtonLabel", "avatarOnline", "actionTemplate"] }, { kind: "component", type: BlockShellNavigationMetaComponent, selector: "block-shell-navigation-meta", inputs: ["name", "subtitle", "containerClass", "subtitleClass", "hideSubtitle"] }, { kind: "component", type: BlockShellNavigationAvatarComponent, selector: "block-shell-navigation-avatar", inputs: ["initials", "photoUrl", "photoAlt", "radiusClass", "asButton", "buttonLabel", "showOnlineIndicator"] }, { kind: "component", type: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
658
874
  }
659
875
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
660
876
  type: Component,
@@ -782,9 +998,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
782
998
  }]
783
999
  }], 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 }] }], footerActionTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerActionTemplate", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }] } });
784
1000
 
1001
+ const DESKTOP_NAV_CONTROL_SIZE = 'size-11';
1002
+ const DESKTOP_FLYOUT_ICON_SIZE = 20;
785
1003
  class BlockShellTopNavigationComponent {
786
1004
  layout = inject(LayoutService);
787
1005
  navigationService = inject(NavigationService);
1006
+ themeStyle = inject(ThemeStyleService);
788
1007
  navigation = input.required(/* @ts-ignore */
789
1008
  ...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
790
1009
  workspaceLinks = input([], /* @ts-ignore */
@@ -827,6 +1046,21 @@ class BlockShellTopNavigationComponent {
827
1046
  /** Style flyout mengikuti appearance layout (LayoutService): border-rail ↔ border-rail, selain itu default. */
828
1047
  navTypeStyle = computed(() => this.layout.appearance() === 'border-rail' ? 'border-rail' : 'default', /* @ts-ignore */
829
1048
  ...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
1049
+ /** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */
1050
+ isDesktopTheme = computed(() => this.themeStyle.style() === 'desktop', /* @ts-ignore */
1051
+ ...(ngDevMode ? [{ debugName: "isDesktopTheme" }] : /* istanbul ignore next */ []));
1052
+ desktopFlyoutIcon = computed(() => this.isDesktopTheme() ? 'dashboard' : null, /* @ts-ignore */
1053
+ ...(ngDevMode ? [{ debugName: "desktopFlyoutIcon" }] : /* istanbul ignore next */ []));
1054
+ desktopFlyoutTriggerRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : '', /* @ts-ignore */
1055
+ ...(ngDevMode ? [{ debugName: "desktopFlyoutTriggerRadiusClass" }] : /* istanbul ignore next */ []));
1056
+ desktopFlyoutTriggerSizeClass = computed(() => this.isDesktopTheme() ? DESKTOP_NAV_CONTROL_SIZE : '', /* @ts-ignore */
1057
+ ...(ngDevMode ? [{ debugName: "desktopFlyoutTriggerSizeClass" }] : /* istanbul ignore next */ []));
1058
+ desktopFlyoutIconSize = computed(() => this.isDesktopTheme() ? DESKTOP_FLYOUT_ICON_SIZE : 18, /* @ts-ignore */
1059
+ ...(ngDevMode ? [{ debugName: "desktopFlyoutIconSize" }] : /* istanbul ignore next */ []));
1060
+ desktopAvatarRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : 'rounded-none', /* @ts-ignore */
1061
+ ...(ngDevMode ? [{ debugName: "desktopAvatarRadiusClass" }] : /* istanbul ignore next */ []));
1062
+ desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`, /* @ts-ignore */
1063
+ ...(ngDevMode ? [{ debugName: "desktopAvatarButtonLabel" }] : /* istanbul ignore next */ []));
830
1064
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
831
1065
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", 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: `
832
1066
  <Navigation
@@ -837,23 +1071,44 @@ class BlockShellTopNavigationComponent {
837
1071
  class="h-full"
838
1072
  >
839
1073
  @if (effectiveType() === 'flyout') {
840
- <NavigationFlyout [label]="flyoutLabel()" [nav-type-style]="navTypeStyle()">
1074
+ <NavigationFlyout
1075
+ [label]="flyoutLabel()"
1076
+ [icon]="desktopFlyoutIcon()"
1077
+ [icon-only]="isDesktopTheme()"
1078
+ [trigger-radius-class]="desktopFlyoutTriggerRadiusClass()"
1079
+ [trigger-size-class]="desktopFlyoutTriggerSizeClass()"
1080
+ [trigger-borderless]="isDesktopTheme()"
1081
+ [trigger-backgroundless]="isDesktopTheme()"
1082
+ [icon-size]="desktopFlyoutIconSize()"
1083
+ [nav-type-style]="navTypeStyle()"
1084
+ >
841
1085
  <NavigationHeader>
842
1086
  <block-shell-navigation-header
843
1087
  [name]="shellName()"
844
1088
  [subtitle]="brandSubtitle()"
845
1089
  [logoText]="logoText()"
846
1090
  [homePath]="homePath()"
1091
+ [titleOnly]="isDesktopTheme()"
1092
+ [desktopControls]="isDesktopTheme()"
847
1093
  [workspaceLinks]="workspaceLinks()"
848
1094
  />
849
1095
  </NavigationHeader>
850
1096
 
851
- <NavigationFooter class="px-3">
1097
+ @if (isDesktopTheme()) {
1098
+ <NavigationContent class="ml-auto flex-none items-center" />
1099
+ }
1100
+
1101
+ <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
852
1102
  <block-shell-navigation-footer
853
1103
  [name]="userName()"
854
1104
  [subtitle]="userPosition()"
855
1105
  [photoUrl]="userPhotoUrl()"
856
1106
  [desktopOnly]="true"
1107
+ [avatarRadiusClass]="desktopAvatarRadiusClass()"
1108
+ [showMeta]="!isDesktopTheme()"
1109
+ [avatarButton]="isDesktopTheme()"
1110
+ [avatarButtonLabel]="desktopAvatarButtonLabel()"
1111
+ [avatarOnline]="isDesktopTheme()"
857
1112
  />
858
1113
  </NavigationFooter>
859
1114
  </NavigationFlyout>
@@ -869,18 +1124,19 @@ class BlockShellTopNavigationComponent {
869
1124
  />
870
1125
  </NavigationHeader>
871
1126
 
872
- <NavigationFooter class="px-3">
1127
+ <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
873
1128
  <block-shell-navigation-footer
874
1129
  [name]="userName()"
875
1130
  [subtitle]="userPosition()"
876
1131
  [photoUrl]="userPhotoUrl()"
877
1132
  [desktopOnly]="true"
1133
+ [avatarOnline]="isDesktopTheme()"
878
1134
  />
879
1135
  </NavigationFooter>
880
1136
  </NavigationNavbar>
881
1137
  }
882
1138
  </Navigation>
883
- `, 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", "actionTemplate"] }] });
1139
+ `, 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: NavigationContentComponent, selector: "NavigationContent", inputs: ["class"] }, { 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", "trigger-radius-class", "trigger-size-class", "trigger-borderless", "trigger-backgroundless", "icon-size", "nav-position", "nav-type-style", "class"] }, { kind: "component", type: NavigationHeaderComponent, selector: "NavigationHeader", inputs: ["toggle", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "subtitle", "logoText", "homePath", "collapsible", "titleOnly", "desktopControls", "workspaceLinks"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "avatarButton", "avatarButtonLabel", "avatarOnline", "actionTemplate"] }] });
884
1140
  }
885
1141
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
886
1142
  type: Component,
@@ -888,6 +1144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
888
1144
  selector: 'block-shell-top-navigation',
889
1145
  imports: [
890
1146
  NavigationContainerComponent,
1147
+ NavigationContentComponent,
891
1148
  NavigationNavbarComponent,
892
1149
  NavigationFlyoutComponent,
893
1150
  NavigationHeaderComponent,
@@ -907,23 +1164,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
907
1164
  class="h-full"
908
1165
  >
909
1166
  @if (effectiveType() === 'flyout') {
910
- <NavigationFlyout [label]="flyoutLabel()" [nav-type-style]="navTypeStyle()">
1167
+ <NavigationFlyout
1168
+ [label]="flyoutLabel()"
1169
+ [icon]="desktopFlyoutIcon()"
1170
+ [icon-only]="isDesktopTheme()"
1171
+ [trigger-radius-class]="desktopFlyoutTriggerRadiusClass()"
1172
+ [trigger-size-class]="desktopFlyoutTriggerSizeClass()"
1173
+ [trigger-borderless]="isDesktopTheme()"
1174
+ [trigger-backgroundless]="isDesktopTheme()"
1175
+ [icon-size]="desktopFlyoutIconSize()"
1176
+ [nav-type-style]="navTypeStyle()"
1177
+ >
911
1178
  <NavigationHeader>
912
1179
  <block-shell-navigation-header
913
1180
  [name]="shellName()"
914
1181
  [subtitle]="brandSubtitle()"
915
1182
  [logoText]="logoText()"
916
1183
  [homePath]="homePath()"
1184
+ [titleOnly]="isDesktopTheme()"
1185
+ [desktopControls]="isDesktopTheme()"
917
1186
  [workspaceLinks]="workspaceLinks()"
918
1187
  />
919
1188
  </NavigationHeader>
920
1189
 
921
- <NavigationFooter class="px-3">
1190
+ @if (isDesktopTheme()) {
1191
+ <NavigationContent class="ml-auto flex-none items-center" />
1192
+ }
1193
+
1194
+ <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
922
1195
  <block-shell-navigation-footer
923
1196
  [name]="userName()"
924
1197
  [subtitle]="userPosition()"
925
1198
  [photoUrl]="userPhotoUrl()"
926
1199
  [desktopOnly]="true"
1200
+ [avatarRadiusClass]="desktopAvatarRadiusClass()"
1201
+ [showMeta]="!isDesktopTheme()"
1202
+ [avatarButton]="isDesktopTheme()"
1203
+ [avatarButtonLabel]="desktopAvatarButtonLabel()"
1204
+ [avatarOnline]="isDesktopTheme()"
927
1205
  />
928
1206
  </NavigationFooter>
929
1207
  </NavigationFlyout>
@@ -939,12 +1217,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
939
1217
  />
940
1218
  </NavigationHeader>
941
1219
 
942
- <NavigationFooter class="px-3">
1220
+ <NavigationFooter class="px-3" [borderless]="isDesktopTheme()">
943
1221
  <block-shell-navigation-footer
944
1222
  [name]="userName()"
945
1223
  [subtitle]="userPosition()"
946
1224
  [photoUrl]="userPhotoUrl()"
947
1225
  [desktopOnly]="true"
1226
+ [avatarOnline]="isDesktopTheme()"
948
1227
  />
949
1228
  </NavigationFooter>
950
1229
  </NavigationNavbar>