@edsis/angular 22.0.72 → 22.0.74
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/README.md +27 -6
- package/fesm2022/edsis-angular-block-shell.mjs +96 -364
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-block-themes.mjs +86 -100
- package/fesm2022/edsis-angular-block-themes.mjs.map +1 -1
- package/fesm2022/edsis-angular-module-auth.mjs +3 -3
- package/fesm2022/edsis-angular-module-auth.mjs.map +1 -1
- package/fesm2022/edsis-angular-services-runtime.mjs +104 -30
- package/fesm2022/edsis-angular-services-runtime.mjs.map +1 -1
- package/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +10 -32
- package/types/edsis-angular-block-themes.d.ts +8 -6
- package/types/edsis-angular-services-runtime.d.ts +25 -8
|
@@ -3,14 +3,13 @@ import * as i0 from '@angular/core';
|
|
|
3
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,
|
|
6
|
+
import { NavigationCollapseRootDirective, NavigationCollapseExpandedDirective, NavigationContainerComponent, NavigationSidebarComponent, NavigationDockbarComponent, NavigationHeaderComponent, NavigationFooterComponent, NavigationAsideFooterDirective, NavigationContentComponent, NavigationNavbarComponent, NavigationFlyoutComponent } from '@edsis/navigation';
|
|
7
7
|
import { NavigationService } from '@edsis/navigation/service';
|
|
8
8
|
import { AvatarBadgeComponent, AvatarComponent, AvatarFallbackComponent, AvatarImageComponent } from '@edsis/component/avatar';
|
|
9
9
|
import { ButtonComponent } from '@edsis/component/button';
|
|
10
10
|
import { cn } from '@edsis/component/class';
|
|
11
|
-
import { NativeHostService, RuntimeContextService } from '@edsis/angular/services/runtime';
|
|
12
11
|
import { AspectRatioComponent } from '@edsis/component/aspect-ratio';
|
|
13
|
-
import {
|
|
12
|
+
import { ThemeAppearanceService } from '@edsis/theme/styles';
|
|
14
13
|
|
|
15
14
|
class BlockShellNavigationAvatarComponent {
|
|
16
15
|
initials = input.required(/* @ts-ignore */
|
|
@@ -371,142 +370,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
371
370
|
}]
|
|
372
371
|
}], 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 }] }] } });
|
|
373
372
|
|
|
374
|
-
const WINDOW_CONTROL_ACTIONS = new Set([
|
|
375
|
-
'close',
|
|
376
|
-
'minimize',
|
|
377
|
-
'toggle-maximize',
|
|
378
|
-
]);
|
|
379
373
|
class BlockShellNavigationHeaderComponent {
|
|
380
|
-
documentRef = inject(DOCUMENT);
|
|
381
|
-
nativeHost = inject(NativeHostService, { optional: true });
|
|
382
374
|
name = input.required(/* @ts-ignore */
|
|
383
375
|
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
384
|
-
subtitle = input.required(/* @ts-ignore */
|
|
385
|
-
...(ngDevMode ? [{ debugName: "subtitle" }] : /* istanbul ignore next */ []));
|
|
386
376
|
logoText = input('ETOS', /* @ts-ignore */
|
|
387
377
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
388
378
|
homePath = input('/', /* @ts-ignore */
|
|
389
379
|
...(ngDevMode ? [{ debugName: "homePath" }] : /* istanbul ignore next */ []));
|
|
390
380
|
collapsible = input(false, /* @ts-ignore */
|
|
391
381
|
...(ngDevMode ? [{ debugName: "collapsible" }] : /* istanbul ignore next */ []));
|
|
392
|
-
/** Menampilkan title aplikasi saja tanpa subtitle/brand. */
|
|
393
|
-
titleOnly = input(false, /* @ts-ignore */
|
|
394
|
-
...(ngDevMode ? [{ debugName: "titleOnly" }] : /* istanbul ignore next */ []));
|
|
395
|
-
/** Mengganti logo dan label dengan kontrol tiga titik khusus Desktop. */
|
|
396
|
-
desktopControls = input(false, /* @ts-ignore */
|
|
397
|
-
...(ngDevMode ? [{ debugName: "desktopControls" }] : /* istanbul ignore next */ []));
|
|
398
382
|
homeLinkAriaLabel = computed(() => `Buka ${this.name()}`, /* @ts-ignore */
|
|
399
383
|
...(ngDevMode ? [{ debugName: "homeLinkAriaLabel" }] : /* istanbul ignore next */ []));
|
|
400
|
-
ngAfterViewInit() {
|
|
401
|
-
this.documentRef.addEventListener('click', this.handleWindowControlClick);
|
|
402
|
-
this.documentRef.addEventListener('pointerdown', this.handleWindowDragStart);
|
|
403
|
-
this.documentRef.addEventListener('dblclick', this.handleWindowDragAreaDoubleClick);
|
|
404
|
-
}
|
|
405
|
-
ngOnDestroy() {
|
|
406
|
-
this.documentRef.removeEventListener('click', this.handleWindowControlClick);
|
|
407
|
-
this.documentRef.removeEventListener('pointerdown', this.handleWindowDragStart);
|
|
408
|
-
this.documentRef.removeEventListener('dblclick', this.handleWindowDragAreaDoubleClick);
|
|
409
|
-
}
|
|
410
|
-
handleWindowControlClick = (event) => {
|
|
411
|
-
if (!(event.target instanceof Element)) {
|
|
412
|
-
return;
|
|
413
|
-
}
|
|
414
|
-
const button = event.target.closest('[data-window-control]');
|
|
415
|
-
const action = button?.getAttribute('data-window-control');
|
|
416
|
-
if (!this.isWindowControlAction(action)) {
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
void this.emitWindowControl(action);
|
|
420
|
-
};
|
|
421
|
-
handleWindowDragStart = (event) => {
|
|
422
|
-
if (event.button !== 0 || !(event.target instanceof Element)) {
|
|
423
|
-
return;
|
|
424
|
-
}
|
|
425
|
-
if (!event.target.closest('[data-window-drag-area]')) {
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
if (!this.nativeHost?.supports('window-controls')) {
|
|
429
|
-
return;
|
|
430
|
-
}
|
|
431
|
-
event.preventDefault();
|
|
432
|
-
void this.startDragging();
|
|
433
|
-
};
|
|
434
|
-
handleWindowDragAreaDoubleClick = (event) => {
|
|
435
|
-
if (!(event.target instanceof Element) || !event.target.closest('[data-window-drag-area]')) {
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
if (!this.nativeHost?.supports('window-controls')) {
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
event.preventDefault();
|
|
442
|
-
void this.emitWindowControl('toggle-maximize');
|
|
443
|
-
};
|
|
444
|
-
isWindowControlAction(action) {
|
|
445
|
-
return action !== null && WINDOW_CONTROL_ACTIONS.has(action);
|
|
446
|
-
}
|
|
447
|
-
async emitWindowControl(action) {
|
|
448
|
-
if (!this.nativeHost?.supports('window-controls')) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
try {
|
|
452
|
-
await this.nativeHost.emitWindowControl(action);
|
|
453
|
-
}
|
|
454
|
-
catch (error) {
|
|
455
|
-
console.error(`Gagal menjalankan window control: ${action}`, error);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
async startDragging() {
|
|
459
|
-
try {
|
|
460
|
-
await this.nativeHost?.startDragging();
|
|
461
|
-
}
|
|
462
|
-
catch (error) {
|
|
463
|
-
console.error('Gagal memindahkan window', error);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
384
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
467
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellNavigationHeaderComponent, isStandalone: true, selector: "block-shell-navigation-header", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null },
|
|
468
|
-
@if (
|
|
469
|
-
<div
|
|
470
|
-
data-block-shell-desktop-titlebar
|
|
471
|
-
class="desktop-titlebar relative flex h-11 w-full shrink-0 items-center gap-2"
|
|
472
|
-
>
|
|
473
|
-
<div
|
|
474
|
-
aria-hidden="true"
|
|
475
|
-
data-window-drag-area
|
|
476
|
-
class="window-drag-area absolute top-0 bottom-0 -left-3 z-0 w-screen cursor-grab select-none active:cursor-grabbing"
|
|
477
|
-
></div>
|
|
478
|
-
|
|
479
|
-
<div
|
|
480
|
-
data-block-shell-desktop-controls
|
|
481
|
-
class="window-controls relative z-2 flex items-center gap-[0.77rem]"
|
|
482
|
-
>
|
|
483
|
-
<button
|
|
484
|
-
type="button"
|
|
485
|
-
data-window-control="close"
|
|
486
|
-
aria-label="Close window"
|
|
487
|
-
title="Close window"
|
|
488
|
-
data-block-shell-desktop-control="close"
|
|
489
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#ff5f57] p-0 transition-colors hover:bg-[#e0443e]"
|
|
490
|
-
></button>
|
|
491
|
-
<button
|
|
492
|
-
type="button"
|
|
493
|
-
data-window-control="minimize"
|
|
494
|
-
aria-label="Minimize window"
|
|
495
|
-
title="Minimize window"
|
|
496
|
-
data-block-shell-desktop-control="minimize"
|
|
497
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#febc2e] p-0 transition-colors hover:bg-[#d99b1f]"
|
|
498
|
-
></button>
|
|
499
|
-
<button
|
|
500
|
-
type="button"
|
|
501
|
-
data-window-control="toggle-maximize"
|
|
502
|
-
aria-label="Maximize window"
|
|
503
|
-
title="Maximize window"
|
|
504
|
-
data-block-shell-desktop-control="maximize"
|
|
505
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#28c840] p-0 transition-colors hover:bg-[#1fa936]"
|
|
506
|
-
></button>
|
|
507
|
-
</div>
|
|
508
|
-
</div>
|
|
509
|
-
} @else if (collapsible()) {
|
|
385
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellNavigationHeaderComponent, isStandalone: true, selector: "block-shell-navigation-header", inputs: { name: { classPropertyName: "name", publicName: "name", 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 } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
386
|
+
@if (collapsible()) {
|
|
510
387
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
511
388
|
<block-shell-logo [text]="logoText()" />
|
|
512
389
|
|
|
@@ -517,12 +394,9 @@ class BlockShellNavigationHeaderComponent {
|
|
|
517
394
|
data-block-shell-home-link
|
|
518
395
|
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"
|
|
519
396
|
>
|
|
520
|
-
<
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
[hideSubtitle]="titleOnly()"
|
|
524
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
525
|
-
/>
|
|
397
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
398
|
+
{{ name() }}
|
|
399
|
+
</p>
|
|
526
400
|
</a>
|
|
527
401
|
</div>
|
|
528
402
|
</div>
|
|
@@ -536,15 +410,13 @@ class BlockShellNavigationHeaderComponent {
|
|
|
536
410
|
data-block-shell-home-link
|
|
537
411
|
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"
|
|
538
412
|
>
|
|
539
|
-
<
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
[hideSubtitle]="titleOnly()"
|
|
543
|
-
/>
|
|
413
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
414
|
+
{{ name() }}
|
|
415
|
+
</p>
|
|
544
416
|
</a>
|
|
545
417
|
</div>
|
|
546
418
|
}
|
|
547
|
-
`, 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: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }
|
|
419
|
+
`, 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: BlockShellLogoComponent, selector: "block-shell-logo", inputs: ["text", "homePath", "ariaLabel"] }] });
|
|
548
420
|
}
|
|
549
421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
|
|
550
422
|
type: Component,
|
|
@@ -555,54 +427,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
555
427
|
NavigationCollapseExpandedDirective,
|
|
556
428
|
RouterLink,
|
|
557
429
|
BlockShellLogoComponent,
|
|
558
|
-
BlockShellNavigationMetaComponent,
|
|
559
430
|
],
|
|
560
431
|
host: {
|
|
561
432
|
class: 'contents',
|
|
562
433
|
},
|
|
563
434
|
template: `
|
|
564
|
-
@if (
|
|
565
|
-
<div
|
|
566
|
-
data-block-shell-desktop-titlebar
|
|
567
|
-
class="desktop-titlebar relative flex h-11 w-full shrink-0 items-center gap-2"
|
|
568
|
-
>
|
|
569
|
-
<div
|
|
570
|
-
aria-hidden="true"
|
|
571
|
-
data-window-drag-area
|
|
572
|
-
class="window-drag-area absolute top-0 bottom-0 -left-3 z-0 w-screen cursor-grab select-none active:cursor-grabbing"
|
|
573
|
-
></div>
|
|
574
|
-
|
|
575
|
-
<div
|
|
576
|
-
data-block-shell-desktop-controls
|
|
577
|
-
class="window-controls relative z-2 flex items-center gap-[0.77rem]"
|
|
578
|
-
>
|
|
579
|
-
<button
|
|
580
|
-
type="button"
|
|
581
|
-
data-window-control="close"
|
|
582
|
-
aria-label="Close window"
|
|
583
|
-
title="Close window"
|
|
584
|
-
data-block-shell-desktop-control="close"
|
|
585
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#ff5f57] p-0 transition-colors hover:bg-[#e0443e]"
|
|
586
|
-
></button>
|
|
587
|
-
<button
|
|
588
|
-
type="button"
|
|
589
|
-
data-window-control="minimize"
|
|
590
|
-
aria-label="Minimize window"
|
|
591
|
-
title="Minimize window"
|
|
592
|
-
data-block-shell-desktop-control="minimize"
|
|
593
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#febc2e] p-0 transition-colors hover:bg-[#d99b1f]"
|
|
594
|
-
></button>
|
|
595
|
-
<button
|
|
596
|
-
type="button"
|
|
597
|
-
data-window-control="toggle-maximize"
|
|
598
|
-
aria-label="Maximize window"
|
|
599
|
-
title="Maximize window"
|
|
600
|
-
data-block-shell-desktop-control="maximize"
|
|
601
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#28c840] p-0 transition-colors hover:bg-[#1fa936]"
|
|
602
|
-
></button>
|
|
603
|
-
</div>
|
|
604
|
-
</div>
|
|
605
|
-
} @else if (collapsible()) {
|
|
435
|
+
@if (collapsible()) {
|
|
606
436
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
607
437
|
<block-shell-logo [text]="logoText()" />
|
|
608
438
|
|
|
@@ -613,12 +443,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
613
443
|
data-block-shell-home-link
|
|
614
444
|
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"
|
|
615
445
|
>
|
|
616
|
-
<
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
[hideSubtitle]="titleOnly()"
|
|
620
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
621
|
-
/>
|
|
446
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
447
|
+
{{ name() }}
|
|
448
|
+
</p>
|
|
622
449
|
</a>
|
|
623
450
|
</div>
|
|
624
451
|
</div>
|
|
@@ -632,29 +459,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
632
459
|
data-block-shell-home-link
|
|
633
460
|
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"
|
|
634
461
|
>
|
|
635
|
-
<
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
[hideSubtitle]="titleOnly()"
|
|
639
|
-
/>
|
|
462
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
463
|
+
{{ name() }}
|
|
464
|
+
</p>
|
|
640
465
|
</a>
|
|
641
466
|
</div>
|
|
642
467
|
}
|
|
643
468
|
`,
|
|
644
469
|
}]
|
|
645
|
-
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }],
|
|
470
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", 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 }] }] } });
|
|
646
471
|
|
|
647
472
|
class BlockShellSidebarNavigationComponent {
|
|
648
473
|
documentRef = inject(DOCUMENT);
|
|
649
474
|
destroyRef = inject(DestroyRef);
|
|
650
475
|
navigationService = inject(NavigationService);
|
|
651
|
-
layout = inject(LayoutService);
|
|
652
476
|
navigation = input.required(/* @ts-ignore */
|
|
653
477
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
654
478
|
shellName = input.required(/* @ts-ignore */
|
|
655
479
|
...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
|
|
656
|
-
brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
|
|
657
|
-
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
658
480
|
logoText = input('ETOS', /* @ts-ignore */
|
|
659
481
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
660
482
|
homePath = input('/', /* @ts-ignore */
|
|
@@ -683,7 +505,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
683
505
|
return state.type;
|
|
684
506
|
}
|
|
685
507
|
// Sebelum state 'main' terdaftar, hormati type persisted agar registrasi
|
|
686
|
-
// pertama saat refresh tidak menimpa pilihan user (mis. dockbar
|
|
508
|
+
// pertama saat refresh tidak menimpa pilihan user (mis. dockbar).
|
|
687
509
|
const persisted = this.navigationService.persistedTypeFor('vertical');
|
|
688
510
|
return persisted === 'sidebar' || persisted === 'dockbar' ? persisted : this.type();
|
|
689
511
|
}, /* @ts-ignore */
|
|
@@ -698,16 +520,8 @@ class BlockShellSidebarNavigationComponent {
|
|
|
698
520
|
: 'default';
|
|
699
521
|
}, /* @ts-ignore */
|
|
700
522
|
...(ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []));
|
|
701
|
-
navTypeStyle = computed(() =>
|
|
523
|
+
navTypeStyle = computed(() => 'default', /* @ts-ignore */
|
|
702
524
|
...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
|
|
703
|
-
userInitials = computed(() => {
|
|
704
|
-
const words = this.userName()
|
|
705
|
-
.trim()
|
|
706
|
-
.split(/\s+/)
|
|
707
|
-
.filter((word) => word.length > 0);
|
|
708
|
-
return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
|
|
709
|
-
}, /* @ts-ignore */
|
|
710
|
-
...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
|
|
711
525
|
constructor() {
|
|
712
526
|
const windowRef = this.documentRef.defaultView;
|
|
713
527
|
if (!windowRef) {
|
|
@@ -724,7 +538,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
724
538
|
return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
|
|
725
539
|
}
|
|
726
540
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
727
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellSidebarNavigationComponent, isStandalone: true, selector: "block-shell-sidebar-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null },
|
|
541
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellSidebarNavigationComponent, isStandalone: true, selector: "block-shell-sidebar-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", 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 }, 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 }, footerActionTemplate: { classPropertyName: "footerActionTemplate", publicName: "footerActionTemplate", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, ngImport: i0, template: `
|
|
728
542
|
<Navigation
|
|
729
543
|
id="main"
|
|
730
544
|
[data]="navigation()"
|
|
@@ -734,68 +548,39 @@ class BlockShellSidebarNavigationComponent {
|
|
|
734
548
|
>
|
|
735
549
|
@if (effectiveType() === 'dockbar') {
|
|
736
550
|
<NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
|
|
737
|
-
|
|
738
|
-
<
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
/>
|
|
746
|
-
</NavigationHeader>
|
|
747
|
-
}
|
|
551
|
+
<NavigationHeader>
|
|
552
|
+
<block-shell-navigation-header
|
|
553
|
+
[name]="shellName()"
|
|
554
|
+
[logoText]="logoText()"
|
|
555
|
+
[homePath]="homePath()"
|
|
556
|
+
[collapsible]="true"
|
|
557
|
+
/>
|
|
558
|
+
</NavigationHeader>
|
|
748
559
|
|
|
749
|
-
|
|
750
|
-
<
|
|
751
|
-
|
|
560
|
+
<NavigationFooter class="px-3">
|
|
561
|
+
<block-shell-navigation-footer
|
|
562
|
+
[name]="userName()"
|
|
563
|
+
[subtitle]="userPosition()"
|
|
564
|
+
[photoUrl]="userPhotoUrl()"
|
|
565
|
+
[collapsible]="true"
|
|
566
|
+
[actionTemplate]="footerActionTemplate()"
|
|
567
|
+
/>
|
|
568
|
+
</NavigationFooter>
|
|
569
|
+
|
|
570
|
+
<ng-template NavigationAsideFooter>
|
|
571
|
+
<div class="flex w-full min-w-0 items-center gap-3">
|
|
572
|
+
<block-shell-navigation-meta
|
|
752
573
|
[name]="userName()"
|
|
753
574
|
[subtitle]="userPosition()"
|
|
754
|
-
[
|
|
755
|
-
[
|
|
756
|
-
[actionTemplate]="footerActionTemplate()"
|
|
575
|
+
[containerClass]="'min-w-0 flex-1'"
|
|
576
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
757
577
|
/>
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
</ng-template>
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
<ng-template NavigationAsideFooter>
|
|
768
|
-
@if (navTypeStyle() === 'ala') {
|
|
769
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
770
|
-
<block-shell-navigation-avatar
|
|
771
|
-
[initials]="userInitials()"
|
|
772
|
-
[photoUrl]="userPhotoUrl()"
|
|
773
|
-
[photoAlt]="userName()"
|
|
774
|
-
/>
|
|
775
|
-
<p class="min-w-0 truncate text-sm font-semibold tracking-tight text-foreground">
|
|
776
|
-
{{ userName() }}
|
|
777
|
-
</p>
|
|
778
|
-
@if (footerActionTemplate()) {
|
|
779
|
-
<div class="ml-auto shrink-0">
|
|
780
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
781
|
-
</div>
|
|
782
|
-
}
|
|
783
|
-
</div>
|
|
784
|
-
} @else {
|
|
785
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
786
|
-
<block-shell-navigation-meta
|
|
787
|
-
[name]="userName()"
|
|
788
|
-
[subtitle]="userPosition()"
|
|
789
|
-
[containerClass]="'min-w-0 flex-1'"
|
|
790
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
791
|
-
/>
|
|
792
|
-
@if (footerActionTemplate()) {
|
|
793
|
-
<div class="ml-auto shrink-0">
|
|
794
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
795
|
-
</div>
|
|
796
|
-
}
|
|
797
|
-
</div>
|
|
798
|
-
}
|
|
578
|
+
@if (footerActionTemplate()) {
|
|
579
|
+
<div class="ml-auto shrink-0">
|
|
580
|
+
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
581
|
+
</div>
|
|
582
|
+
}
|
|
583
|
+
</div>
|
|
799
584
|
</ng-template>
|
|
800
585
|
</NavigationDockbar>
|
|
801
586
|
} @else {
|
|
@@ -803,7 +588,6 @@ class BlockShellSidebarNavigationComponent {
|
|
|
803
588
|
<NavigationHeader>
|
|
804
589
|
<block-shell-navigation-header
|
|
805
590
|
[name]="shellName()"
|
|
806
|
-
[subtitle]="brandSubtitle()"
|
|
807
591
|
[logoText]="logoText()"
|
|
808
592
|
[homePath]="homePath()"
|
|
809
593
|
[collapsible]="true"
|
|
@@ -822,7 +606,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
822
606
|
</NavigationSidebar>
|
|
823
607
|
}
|
|
824
608
|
</Navigation>
|
|
825
|
-
`, 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", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "
|
|
609
|
+
`, 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", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "directive", type: NavigationAsideFooterDirective, selector: "ng-template[NavigationAsideFooter]" }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { 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: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
826
610
|
}
|
|
827
611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
828
612
|
type: Component,
|
|
@@ -835,12 +619,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
835
619
|
NavigationHeaderComponent,
|
|
836
620
|
NavigationFooterComponent,
|
|
837
621
|
NavigationAsideFooterDirective,
|
|
838
|
-
NavigationAsideHeaderDirective,
|
|
839
622
|
BlockShellNavigationHeaderComponent,
|
|
840
623
|
BlockShellNavigationFooterComponent,
|
|
841
624
|
BlockShellNavigationMetaComponent,
|
|
842
|
-
BlockShellNavigationAvatarComponent,
|
|
843
|
-
BlockShellLogoComponent,
|
|
844
625
|
NgTemplateOutlet,
|
|
845
626
|
],
|
|
846
627
|
host: {
|
|
@@ -856,68 +637,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
856
637
|
>
|
|
857
638
|
@if (effectiveType() === 'dockbar') {
|
|
858
639
|
<NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
|
|
859
|
-
|
|
860
|
-
<
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
/>
|
|
868
|
-
</NavigationHeader>
|
|
869
|
-
}
|
|
640
|
+
<NavigationHeader>
|
|
641
|
+
<block-shell-navigation-header
|
|
642
|
+
[name]="shellName()"
|
|
643
|
+
[logoText]="logoText()"
|
|
644
|
+
[homePath]="homePath()"
|
|
645
|
+
[collapsible]="true"
|
|
646
|
+
/>
|
|
647
|
+
</NavigationHeader>
|
|
870
648
|
|
|
871
|
-
|
|
872
|
-
<
|
|
873
|
-
|
|
649
|
+
<NavigationFooter class="px-3">
|
|
650
|
+
<block-shell-navigation-footer
|
|
651
|
+
[name]="userName()"
|
|
652
|
+
[subtitle]="userPosition()"
|
|
653
|
+
[photoUrl]="userPhotoUrl()"
|
|
654
|
+
[collapsible]="true"
|
|
655
|
+
[actionTemplate]="footerActionTemplate()"
|
|
656
|
+
/>
|
|
657
|
+
</NavigationFooter>
|
|
658
|
+
|
|
659
|
+
<ng-template NavigationAsideFooter>
|
|
660
|
+
<div class="flex w-full min-w-0 items-center gap-3">
|
|
661
|
+
<block-shell-navigation-meta
|
|
874
662
|
[name]="userName()"
|
|
875
663
|
[subtitle]="userPosition()"
|
|
876
|
-
[
|
|
877
|
-
[
|
|
878
|
-
[actionTemplate]="footerActionTemplate()"
|
|
664
|
+
[containerClass]="'min-w-0 flex-1'"
|
|
665
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
879
666
|
/>
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
</ng-template>
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
<ng-template NavigationAsideFooter>
|
|
890
|
-
@if (navTypeStyle() === 'ala') {
|
|
891
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
892
|
-
<block-shell-navigation-avatar
|
|
893
|
-
[initials]="userInitials()"
|
|
894
|
-
[photoUrl]="userPhotoUrl()"
|
|
895
|
-
[photoAlt]="userName()"
|
|
896
|
-
/>
|
|
897
|
-
<p class="min-w-0 truncate text-sm font-semibold tracking-tight text-foreground">
|
|
898
|
-
{{ userName() }}
|
|
899
|
-
</p>
|
|
900
|
-
@if (footerActionTemplate()) {
|
|
901
|
-
<div class="ml-auto shrink-0">
|
|
902
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
903
|
-
</div>
|
|
904
|
-
}
|
|
905
|
-
</div>
|
|
906
|
-
} @else {
|
|
907
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
908
|
-
<block-shell-navigation-meta
|
|
909
|
-
[name]="userName()"
|
|
910
|
-
[subtitle]="userPosition()"
|
|
911
|
-
[containerClass]="'min-w-0 flex-1'"
|
|
912
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
913
|
-
/>
|
|
914
|
-
@if (footerActionTemplate()) {
|
|
915
|
-
<div class="ml-auto shrink-0">
|
|
916
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
917
|
-
</div>
|
|
918
|
-
}
|
|
919
|
-
</div>
|
|
920
|
-
}
|
|
667
|
+
@if (footerActionTemplate()) {
|
|
668
|
+
<div class="ml-auto shrink-0">
|
|
669
|
+
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
670
|
+
</div>
|
|
671
|
+
}
|
|
672
|
+
</div>
|
|
921
673
|
</ng-template>
|
|
922
674
|
</NavigationDockbar>
|
|
923
675
|
} @else {
|
|
@@ -925,7 +677,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
925
677
|
<NavigationHeader>
|
|
926
678
|
<block-shell-navigation-header
|
|
927
679
|
[name]="shellName()"
|
|
928
|
-
[subtitle]="brandSubtitle()"
|
|
929
680
|
[logoText]="logoText()"
|
|
930
681
|
[homePath]="homePath()"
|
|
931
682
|
[collapsible]="true"
|
|
@@ -946,21 +697,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
946
697
|
</Navigation>
|
|
947
698
|
`,
|
|
948
699
|
}]
|
|
949
|
-
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }],
|
|
700
|
+
}], ctorParameters: () => [], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], 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 }] }] } });
|
|
950
701
|
|
|
951
702
|
const DESKTOP_NAV_CONTROL_SIZE = 'size-11';
|
|
952
703
|
const DESKTOP_FLYOUT_ICON_SIZE = 20;
|
|
953
704
|
class BlockShellTopNavigationComponent {
|
|
954
705
|
layout = inject(LayoutService);
|
|
955
706
|
navigationService = inject(NavigationService);
|
|
956
|
-
|
|
957
|
-
themeStyle = inject(ThemeStyleService);
|
|
707
|
+
themeAppearance = inject(ThemeAppearanceService);
|
|
958
708
|
navigation = input.required(/* @ts-ignore */
|
|
959
709
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
960
710
|
shellName = input.required(/* @ts-ignore */
|
|
961
711
|
...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
|
|
962
|
-
brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
|
|
963
|
-
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
964
712
|
logoText = input('ETOS', /* @ts-ignore */
|
|
965
713
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
966
714
|
homePath = input('/', /* @ts-ignore */
|
|
@@ -992,18 +740,16 @@ class BlockShellTopNavigationComponent {
|
|
|
992
740
|
return persisted === 'navbar' || persisted === 'flyout' ? persisted : this.type();
|
|
993
741
|
}, /* @ts-ignore */
|
|
994
742
|
...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
|
|
995
|
-
/** Desktop memakai surface nav khusus;
|
|
743
|
+
/** Desktop memakai surface nav khusus; rail mempertahankan style navigation border-rail. */
|
|
996
744
|
navTypeStyle = computed(() => this.isDesktopTheme()
|
|
997
745
|
? 'desktop'
|
|
998
|
-
: this.layout.appearance() === '
|
|
746
|
+
: this.layout.appearance() === 'rail'
|
|
999
747
|
? 'border-rail'
|
|
1000
748
|
: 'default', /* @ts-ignore */
|
|
1001
749
|
...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
|
|
1002
750
|
/** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */
|
|
1003
|
-
isDesktopTheme = computed(() => this.
|
|
751
|
+
isDesktopTheme = computed(() => this.themeAppearance.appearance() === 'desktop', /* @ts-ignore */
|
|
1004
752
|
...(ngDevMode ? [{ debugName: "isDesktopTheme" }] : /* istanbul ignore next */ []));
|
|
1005
|
-
showDesktopWindowControls = computed(() => this.isDesktopTheme() && this.runtime?.isDesktopShell() === true, /* @ts-ignore */
|
|
1006
|
-
...(ngDevMode ? [{ debugName: "showDesktopWindowControls" }] : /* istanbul ignore next */ []));
|
|
1007
753
|
desktopFlyoutIcon = computed(() => this.isDesktopTheme() ? 'dashboard' : null, /* @ts-ignore */
|
|
1008
754
|
...(ngDevMode ? [{ debugName: "desktopFlyoutIcon" }] : /* istanbul ignore next */ []));
|
|
1009
755
|
desktopFlyoutTriggerRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : '', /* @ts-ignore */
|
|
@@ -1017,7 +763,7 @@ class BlockShellTopNavigationComponent {
|
|
|
1017
763
|
desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`, /* @ts-ignore */
|
|
1018
764
|
...(ngDevMode ? [{ debugName: "desktopAvatarButtonLabel" }] : /* istanbul ignore next */ []));
|
|
1019
765
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1020
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", isSignal: true, isRequired: true, transformFunction: null },
|
|
766
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellTopNavigationComponent, isStandalone: true, selector: "block-shell-top-navigation", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, transformFunction: null }, shellName: { classPropertyName: "shellName", publicName: "shellName", 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 }, 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: `
|
|
1021
767
|
<Navigation
|
|
1022
768
|
id="main"
|
|
1023
769
|
[data]="navigation()"
|
|
@@ -1037,14 +783,11 @@ class BlockShellTopNavigationComponent {
|
|
|
1037
783
|
[icon-size]="desktopFlyoutIconSize()"
|
|
1038
784
|
[nav-type-style]="navTypeStyle()"
|
|
1039
785
|
>
|
|
1040
|
-
<NavigationHeader
|
|
786
|
+
<NavigationHeader>
|
|
1041
787
|
<block-shell-navigation-header
|
|
1042
788
|
[name]="shellName()"
|
|
1043
|
-
[subtitle]="brandSubtitle()"
|
|
1044
789
|
[logoText]="logoText()"
|
|
1045
790
|
[homePath]="homePath()"
|
|
1046
|
-
[titleOnly]="isDesktopTheme()"
|
|
1047
|
-
[desktopControls]="showDesktopWindowControls()"
|
|
1048
791
|
/>
|
|
1049
792
|
</NavigationHeader>
|
|
1050
793
|
|
|
@@ -1068,10 +811,9 @@ class BlockShellTopNavigationComponent {
|
|
|
1068
811
|
</NavigationFlyout>
|
|
1069
812
|
} @else {
|
|
1070
813
|
<NavigationNavbar [nav-type-style]="navTypeStyle()">
|
|
1071
|
-
<NavigationHeader
|
|
814
|
+
<NavigationHeader>
|
|
1072
815
|
<block-shell-navigation-header
|
|
1073
816
|
[name]="shellName()"
|
|
1074
|
-
[subtitle]="brandSubtitle()"
|
|
1075
817
|
[logoText]="logoText()"
|
|
1076
818
|
[homePath]="homePath()"
|
|
1077
819
|
/>
|
|
@@ -1089,7 +831,7 @@ class BlockShellTopNavigationComponent {
|
|
|
1089
831
|
</NavigationNavbar>
|
|
1090
832
|
}
|
|
1091
833
|
</Navigation>
|
|
1092
|
-
`, 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", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "
|
|
834
|
+
`, 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", "navigation-history", "class"] }, { kind: "component", type: NavigationFooterComponent, selector: "NavigationFooter", inputs: ["class", "borderless"] }, { kind: "component", type: BlockShellNavigationHeaderComponent, selector: "block-shell-navigation-header", inputs: ["name", "logoText", "homePath", "collapsible"] }, { kind: "component", type: BlockShellNavigationFooterComponent, selector: "block-shell-navigation-footer", inputs: ["name", "subtitle", "initials", "photoUrl", "collapsible", "desktopOnly", "avatarRadiusClass", "showMeta", "avatarButton", "avatarButtonLabel", "avatarOnline", "actionTemplate"] }] });
|
|
1093
835
|
}
|
|
1094
836
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
1095
837
|
type: Component,
|
|
@@ -1128,14 +870,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1128
870
|
[icon-size]="desktopFlyoutIconSize()"
|
|
1129
871
|
[nav-type-style]="navTypeStyle()"
|
|
1130
872
|
>
|
|
1131
|
-
<NavigationHeader
|
|
873
|
+
<NavigationHeader>
|
|
1132
874
|
<block-shell-navigation-header
|
|
1133
875
|
[name]="shellName()"
|
|
1134
|
-
[subtitle]="brandSubtitle()"
|
|
1135
876
|
[logoText]="logoText()"
|
|
1136
877
|
[homePath]="homePath()"
|
|
1137
|
-
[titleOnly]="isDesktopTheme()"
|
|
1138
|
-
[desktopControls]="showDesktopWindowControls()"
|
|
1139
878
|
/>
|
|
1140
879
|
</NavigationHeader>
|
|
1141
880
|
|
|
@@ -1159,10 +898,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1159
898
|
</NavigationFlyout>
|
|
1160
899
|
} @else {
|
|
1161
900
|
<NavigationNavbar [nav-type-style]="navTypeStyle()">
|
|
1162
|
-
<NavigationHeader
|
|
901
|
+
<NavigationHeader>
|
|
1163
902
|
<block-shell-navigation-header
|
|
1164
903
|
[name]="shellName()"
|
|
1165
|
-
[subtitle]="brandSubtitle()"
|
|
1166
904
|
[logoText]="logoText()"
|
|
1167
905
|
[homePath]="homePath()"
|
|
1168
906
|
/>
|
|
@@ -1182,7 +920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1182
920
|
</Navigation>
|
|
1183
921
|
`,
|
|
1184
922
|
}]
|
|
1185
|
-
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }],
|
|
923
|
+
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], flyoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "flyoutLabel", required: false }] }] } });
|
|
1186
924
|
|
|
1187
925
|
class BlockShellNavigationPanelDirective {
|
|
1188
926
|
templateRef = inject((TemplateRef));
|
|
@@ -1219,8 +957,6 @@ class BlockShellComponent {
|
|
|
1219
957
|
...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
|
|
1220
958
|
shellName = input.required(/* @ts-ignore */
|
|
1221
959
|
...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
|
|
1222
|
-
brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
|
|
1223
|
-
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
1224
960
|
logoText = input('ETOS', /* @ts-ignore */
|
|
1225
961
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
1226
962
|
homePath = input('/', /* @ts-ignore */
|
|
@@ -1247,7 +983,7 @@ class BlockShellComponent {
|
|
|
1247
983
|
navigationPanelActive = computed(() => this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(), /* @ts-ignore */
|
|
1248
984
|
...(ngDevMode ? [{ debugName: "navigationPanelActive" }] : /* istanbul ignore next */ []));
|
|
1249
985
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1250
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, 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 },
|
|
986
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: BlockShellComponent, isStandalone: true, selector: "block-shell", inputs: { navigation: { classPropertyName: "navigation", publicName: "navigation", isSignal: true, isRequired: true, 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 }, logoText: { classPropertyName: "logoText", publicName: "logoText", isSignal: true, isRequired: false, transformFunction: null }, homePath: { classPropertyName: "homePath", publicName: "homePath", isSignal: true, isRequired: false, transformFunction: null }, userName: { classPropertyName: "userName", publicName: "userName", isSignal: true, isRequired: true, transformFunction: null }, userPosition: { classPropertyName: "userPosition", publicName: "userPosition", isSignal: true, isRequired: true, transformFunction: null }, userPhotoUrl: { classPropertyName: "userPhotoUrl", publicName: "userPhotoUrl", isSignal: true, isRequired: false, transformFunction: null }, topAriaLabel: { classPropertyName: "topAriaLabel", publicName: "topAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sideAriaLabel: { classPropertyName: "sideAriaLabel", publicName: "sideAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, contentAriaLabel: { classPropertyName: "contentAriaLabel", publicName: "contentAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, navigationPanelOpen: { classPropertyName: "navigationPanelOpen", publicName: "navigationPanelOpen", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "contents" }, queries: [{ propertyName: "navigationPanel", first: true, predicate: BlockShellNavigationPanelDirective, descendants: true, isSignal: true }, { propertyName: "footerAction", first: true, predicate: BlockShellNavigationFooterActionDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1251
987
|
<Layout>
|
|
1252
988
|
@switch (layout.type()) {
|
|
1253
989
|
@case ('horizontal') {
|
|
@@ -1256,7 +992,6 @@ class BlockShellComponent {
|
|
|
1256
992
|
<block-shell-top-navigation
|
|
1257
993
|
[navigation]="navigation()"
|
|
1258
994
|
[shellName]="shellName()"
|
|
1259
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1260
995
|
[logoText]="logoText()"
|
|
1261
996
|
[homePath]="homePath()"
|
|
1262
997
|
[userName]="userName()"
|
|
@@ -1300,7 +1035,6 @@ class BlockShellComponent {
|
|
|
1300
1035
|
<block-shell-sidebar-navigation
|
|
1301
1036
|
[navigation]="navigation()"
|
|
1302
1037
|
[shellName]="shellName()"
|
|
1303
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1304
1038
|
[logoText]="logoText()"
|
|
1305
1039
|
[homePath]="homePath()"
|
|
1306
1040
|
[userName]="userName()"
|
|
@@ -1327,7 +1061,7 @@ class BlockShellComponent {
|
|
|
1327
1061
|
}
|
|
1328
1062
|
}
|
|
1329
1063
|
</Layout>
|
|
1330
|
-
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "
|
|
1064
|
+
`, isInline: true, dependencies: [{ kind: "component", type: LayoutComponent, selector: "Layout", inputs: ["surface", "width", "class"] }, { kind: "component", type: LayoutVerticalComponent, selector: "LayoutVertical", inputs: ["class"] }, { kind: "component", type: LayoutHorizontalComponent, selector: "LayoutHorizontal", inputs: ["class"] }, { kind: "component", type: LayoutEmptyComponent, selector: "LayoutEmpty", inputs: ["class"] }, { kind: "component", type: LayoutNavigationComponent, selector: "LayoutNavigation", inputs: ["landmarkRole", "ariaLabel", "railOffset", "class"] }, { kind: "component", type: LayoutContentComponent, selector: "LayoutContent", inputs: ["class"] }, { kind: "component", type: BlockShellSidebarNavigationComponent, selector: "block-shell-sidebar-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "footerActionTemplate", "type"] }, { kind: "component", type: BlockShellTopNavigationComponent, selector: "block-shell-top-navigation", inputs: ["navigation", "shellName", "logoText", "homePath", "userName", "userPosition", "userPhotoUrl", "ariaLabel", "type", "flyoutLabel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
1331
1065
|
}
|
|
1332
1066
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
1333
1067
|
type: Component,
|
|
@@ -1357,7 +1091,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1357
1091
|
<block-shell-top-navigation
|
|
1358
1092
|
[navigation]="navigation()"
|
|
1359
1093
|
[shellName]="shellName()"
|
|
1360
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1361
1094
|
[logoText]="logoText()"
|
|
1362
1095
|
[homePath]="homePath()"
|
|
1363
1096
|
[userName]="userName()"
|
|
@@ -1401,7 +1134,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1401
1134
|
<block-shell-sidebar-navigation
|
|
1402
1135
|
[navigation]="navigation()"
|
|
1403
1136
|
[shellName]="shellName()"
|
|
1404
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1405
1137
|
[logoText]="logoText()"
|
|
1406
1138
|
[homePath]="homePath()"
|
|
1407
1139
|
[userName]="userName()"
|
|
@@ -1430,7 +1162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1430
1162
|
</Layout>
|
|
1431
1163
|
`,
|
|
1432
1164
|
}]
|
|
1433
|
-
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }],
|
|
1165
|
+
}], propDecorators: { navigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigation", required: true }] }], navbarId: [{ type: i0.Input, args: [{ isSignal: true, alias: "navbarId", required: false }] }], sidebarNavId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sidebarNavId", required: false }] }], shellName: [{ type: i0.Input, args: [{ isSignal: true, alias: "shellName", required: true }] }], logoText: [{ type: i0.Input, args: [{ isSignal: true, alias: "logoText", required: false }] }], homePath: [{ type: i0.Input, args: [{ isSignal: true, alias: "homePath", required: false }] }], userName: [{ type: i0.Input, args: [{ isSignal: true, alias: "userName", required: true }] }], userPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPosition", required: true }] }], userPhotoUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "userPhotoUrl", required: false }] }], topAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "topAriaLabel", required: false }] }], sideAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sideAriaLabel", required: false }] }], contentAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentAriaLabel", required: false }] }], navigationPanelOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationPanelOpen", required: false }] }], navigationPanel: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationPanelDirective), { isSignal: true }] }], footerAction: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BlockShellNavigationFooterActionDirective), { isSignal: true }] }] } });
|
|
1434
1166
|
|
|
1435
1167
|
const MAIN_SIDEBAR_NAV_ID = 'main';
|
|
1436
1168
|
function workspaceNavbarId(workspace) {
|