@edsis/angular 22.0.73 → 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/fesm2022/edsis-angular-block-shell.mjs +96 -356
- package/fesm2022/edsis-angular-block-shell.mjs.map +1 -1
- package/fesm2022/edsis-angular-block-themes.mjs +72 -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/package.json +5 -5
- package/types/edsis-angular-block-shell.d.ts +10 -31
- package/types/edsis-angular-block-themes.d.ts +4 -5
|
@@ -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,134 +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
|
-
}
|
|
404
|
-
ngOnDestroy() {
|
|
405
|
-
this.documentRef.removeEventListener('click', this.handleWindowControlClick);
|
|
406
|
-
this.documentRef.removeEventListener('pointerdown', this.handleWindowDragStart);
|
|
407
|
-
}
|
|
408
|
-
handleWindowControlClick = (event) => {
|
|
409
|
-
if (!(event.target instanceof Element)) {
|
|
410
|
-
return;
|
|
411
|
-
}
|
|
412
|
-
const button = event.target.closest('[data-window-control]');
|
|
413
|
-
const action = button?.getAttribute('data-window-control');
|
|
414
|
-
if (!this.isWindowControlAction(action)) {
|
|
415
|
-
return;
|
|
416
|
-
}
|
|
417
|
-
void this.emitWindowControl(action);
|
|
418
|
-
};
|
|
419
|
-
handleWindowDragStart = (event) => {
|
|
420
|
-
if (event.button !== 0 || !(event.target instanceof Element)) {
|
|
421
|
-
return;
|
|
422
|
-
}
|
|
423
|
-
if (!event.target.closest('[data-window-drag-area]')) {
|
|
424
|
-
return;
|
|
425
|
-
}
|
|
426
|
-
if (!this.nativeHost?.supports('window-controls')) {
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
event.preventDefault();
|
|
430
|
-
if (event.detail === 2) {
|
|
431
|
-
void this.emitWindowControl('toggle-maximize');
|
|
432
|
-
return;
|
|
433
|
-
}
|
|
434
|
-
void this.startDragging();
|
|
435
|
-
};
|
|
436
|
-
isWindowControlAction(action) {
|
|
437
|
-
return action !== null && WINDOW_CONTROL_ACTIONS.has(action);
|
|
438
|
-
}
|
|
439
|
-
async emitWindowControl(action) {
|
|
440
|
-
if (!this.nativeHost?.supports('window-controls')) {
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
try {
|
|
444
|
-
await this.nativeHost.emitWindowControl(action);
|
|
445
|
-
}
|
|
446
|
-
catch (error) {
|
|
447
|
-
console.error(`Gagal menjalankan window control: ${action}`, error);
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
async startDragging() {
|
|
451
|
-
try {
|
|
452
|
-
await this.nativeHost?.startDragging();
|
|
453
|
-
}
|
|
454
|
-
catch (error) {
|
|
455
|
-
console.error('Gagal memindahkan window', error);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
384
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
459
|
-
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 },
|
|
460
|
-
@if (
|
|
461
|
-
<div
|
|
462
|
-
data-block-shell-desktop-titlebar
|
|
463
|
-
class="desktop-titlebar relative flex h-11 w-full shrink-0 items-center gap-2"
|
|
464
|
-
>
|
|
465
|
-
<div
|
|
466
|
-
aria-hidden="true"
|
|
467
|
-
data-window-drag-area
|
|
468
|
-
class="window-drag-area absolute top-0 bottom-0 -left-3 z-0 w-screen cursor-grab select-none active:cursor-grabbing"
|
|
469
|
-
></div>
|
|
470
|
-
|
|
471
|
-
<div
|
|
472
|
-
data-block-shell-desktop-controls
|
|
473
|
-
class="window-controls relative z-2 flex items-center gap-[0.77rem]"
|
|
474
|
-
>
|
|
475
|
-
<button
|
|
476
|
-
type="button"
|
|
477
|
-
data-window-control="close"
|
|
478
|
-
aria-label="Close window"
|
|
479
|
-
title="Close window"
|
|
480
|
-
data-block-shell-desktop-control="close"
|
|
481
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#ff5f57] p-0 transition-colors hover:bg-[#e0443e]"
|
|
482
|
-
></button>
|
|
483
|
-
<button
|
|
484
|
-
type="button"
|
|
485
|
-
data-window-control="minimize"
|
|
486
|
-
aria-label="Minimize window"
|
|
487
|
-
title="Minimize window"
|
|
488
|
-
data-block-shell-desktop-control="minimize"
|
|
489
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#febc2e] p-0 transition-colors hover:bg-[#d99b1f]"
|
|
490
|
-
></button>
|
|
491
|
-
<button
|
|
492
|
-
type="button"
|
|
493
|
-
data-window-control="toggle-maximize"
|
|
494
|
-
aria-label="Maximize window"
|
|
495
|
-
title="Maximize window"
|
|
496
|
-
data-block-shell-desktop-control="maximize"
|
|
497
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#28c840] p-0 transition-colors hover:bg-[#1fa936]"
|
|
498
|
-
></button>
|
|
499
|
-
</div>
|
|
500
|
-
</div>
|
|
501
|
-
} @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()) {
|
|
502
387
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
503
388
|
<block-shell-logo [text]="logoText()" />
|
|
504
389
|
|
|
@@ -509,12 +394,9 @@ class BlockShellNavigationHeaderComponent {
|
|
|
509
394
|
data-block-shell-home-link
|
|
510
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"
|
|
511
396
|
>
|
|
512
|
-
<
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
[hideSubtitle]="titleOnly()"
|
|
516
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
517
|
-
/>
|
|
397
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
398
|
+
{{ name() }}
|
|
399
|
+
</p>
|
|
518
400
|
</a>
|
|
519
401
|
</div>
|
|
520
402
|
</div>
|
|
@@ -528,15 +410,13 @@ class BlockShellNavigationHeaderComponent {
|
|
|
528
410
|
data-block-shell-home-link
|
|
529
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"
|
|
530
412
|
>
|
|
531
|
-
<
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
[hideSubtitle]="titleOnly()"
|
|
535
|
-
/>
|
|
413
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
414
|
+
{{ name() }}
|
|
415
|
+
</p>
|
|
536
416
|
</a>
|
|
537
417
|
</div>
|
|
538
418
|
}
|
|
539
|
-
`, 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"] }] });
|
|
540
420
|
}
|
|
541
421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellNavigationHeaderComponent, decorators: [{
|
|
542
422
|
type: Component,
|
|
@@ -547,54 +427,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
547
427
|
NavigationCollapseExpandedDirective,
|
|
548
428
|
RouterLink,
|
|
549
429
|
BlockShellLogoComponent,
|
|
550
|
-
BlockShellNavigationMetaComponent,
|
|
551
430
|
],
|
|
552
431
|
host: {
|
|
553
432
|
class: 'contents',
|
|
554
433
|
},
|
|
555
434
|
template: `
|
|
556
|
-
@if (
|
|
557
|
-
<div
|
|
558
|
-
data-block-shell-desktop-titlebar
|
|
559
|
-
class="desktop-titlebar relative flex h-11 w-full shrink-0 items-center gap-2"
|
|
560
|
-
>
|
|
561
|
-
<div
|
|
562
|
-
aria-hidden="true"
|
|
563
|
-
data-window-drag-area
|
|
564
|
-
class="window-drag-area absolute top-0 bottom-0 -left-3 z-0 w-screen cursor-grab select-none active:cursor-grabbing"
|
|
565
|
-
></div>
|
|
566
|
-
|
|
567
|
-
<div
|
|
568
|
-
data-block-shell-desktop-controls
|
|
569
|
-
class="window-controls relative z-2 flex items-center gap-[0.77rem]"
|
|
570
|
-
>
|
|
571
|
-
<button
|
|
572
|
-
type="button"
|
|
573
|
-
data-window-control="close"
|
|
574
|
-
aria-label="Close window"
|
|
575
|
-
title="Close window"
|
|
576
|
-
data-block-shell-desktop-control="close"
|
|
577
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#ff5f57] p-0 transition-colors hover:bg-[#e0443e]"
|
|
578
|
-
></button>
|
|
579
|
-
<button
|
|
580
|
-
type="button"
|
|
581
|
-
data-window-control="minimize"
|
|
582
|
-
aria-label="Minimize window"
|
|
583
|
-
title="Minimize window"
|
|
584
|
-
data-block-shell-desktop-control="minimize"
|
|
585
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#febc2e] p-0 transition-colors hover:bg-[#d99b1f]"
|
|
586
|
-
></button>
|
|
587
|
-
<button
|
|
588
|
-
type="button"
|
|
589
|
-
data-window-control="toggle-maximize"
|
|
590
|
-
aria-label="Maximize window"
|
|
591
|
-
title="Maximize window"
|
|
592
|
-
data-block-shell-desktop-control="maximize"
|
|
593
|
-
class="relative z-3 block size-[16.66px] appearance-none rounded-full border-0 bg-[#28c840] p-0 transition-colors hover:bg-[#1fa936]"
|
|
594
|
-
></button>
|
|
595
|
-
</div>
|
|
596
|
-
</div>
|
|
597
|
-
} @else if (collapsible()) {
|
|
435
|
+
@if (collapsible()) {
|
|
598
436
|
<div NavigationCollapseRoot class="flex items-center gap-3">
|
|
599
437
|
<block-shell-logo [text]="logoText()" />
|
|
600
438
|
|
|
@@ -605,12 +443,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
605
443
|
data-block-shell-home-link
|
|
606
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"
|
|
607
445
|
>
|
|
608
|
-
<
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
[hideSubtitle]="titleOnly()"
|
|
612
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
613
|
-
/>
|
|
446
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
447
|
+
{{ name() }}
|
|
448
|
+
</p>
|
|
614
449
|
</a>
|
|
615
450
|
</div>
|
|
616
451
|
</div>
|
|
@@ -624,29 +459,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
624
459
|
data-block-shell-home-link
|
|
625
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"
|
|
626
461
|
>
|
|
627
|
-
<
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
[hideSubtitle]="titleOnly()"
|
|
631
|
-
/>
|
|
462
|
+
<p class="truncate text-sm font-semibold tracking-tight text-foreground">
|
|
463
|
+
{{ name() }}
|
|
464
|
+
</p>
|
|
632
465
|
</a>
|
|
633
466
|
</div>
|
|
634
467
|
}
|
|
635
468
|
`,
|
|
636
469
|
}]
|
|
637
|
-
}], 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 }] }] } });
|
|
638
471
|
|
|
639
472
|
class BlockShellSidebarNavigationComponent {
|
|
640
473
|
documentRef = inject(DOCUMENT);
|
|
641
474
|
destroyRef = inject(DestroyRef);
|
|
642
475
|
navigationService = inject(NavigationService);
|
|
643
|
-
layout = inject(LayoutService);
|
|
644
476
|
navigation = input.required(/* @ts-ignore */
|
|
645
477
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
646
478
|
shellName = input.required(/* @ts-ignore */
|
|
647
479
|
...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
|
|
648
|
-
brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
|
|
649
|
-
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
650
480
|
logoText = input('ETOS', /* @ts-ignore */
|
|
651
481
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
652
482
|
homePath = input('/', /* @ts-ignore */
|
|
@@ -675,7 +505,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
675
505
|
return state.type;
|
|
676
506
|
}
|
|
677
507
|
// Sebelum state 'main' terdaftar, hormati type persisted agar registrasi
|
|
678
|
-
// pertama saat refresh tidak menimpa pilihan user (mis. dockbar
|
|
508
|
+
// pertama saat refresh tidak menimpa pilihan user (mis. dockbar).
|
|
679
509
|
const persisted = this.navigationService.persistedTypeFor('vertical');
|
|
680
510
|
return persisted === 'sidebar' || persisted === 'dockbar' ? persisted : this.type();
|
|
681
511
|
}, /* @ts-ignore */
|
|
@@ -690,16 +520,8 @@ class BlockShellSidebarNavigationComponent {
|
|
|
690
520
|
: 'default';
|
|
691
521
|
}, /* @ts-ignore */
|
|
692
522
|
...(ngDevMode ? [{ debugName: "dockbarMode" }] : /* istanbul ignore next */ []));
|
|
693
|
-
navTypeStyle = computed(() =>
|
|
523
|
+
navTypeStyle = computed(() => 'default', /* @ts-ignore */
|
|
694
524
|
...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
|
|
695
|
-
userInitials = computed(() => {
|
|
696
|
-
const words = this.userName()
|
|
697
|
-
.trim()
|
|
698
|
-
.split(/\s+/)
|
|
699
|
-
.filter((word) => word.length > 0);
|
|
700
|
-
return ((words[0]?.[0] ?? '') + (words[1]?.[0] ?? words[0]?.[1] ?? '')).toUpperCase();
|
|
701
|
-
}, /* @ts-ignore */
|
|
702
|
-
...(ngDevMode ? [{ debugName: "userInitials" }] : /* istanbul ignore next */ []));
|
|
703
525
|
constructor() {
|
|
704
526
|
const windowRef = this.documentRef.defaultView;
|
|
705
527
|
if (!windowRef) {
|
|
@@ -716,7 +538,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
716
538
|
return this.documentRef.defaultView?.matchMedia('(max-width: 767.98px)').matches ?? false;
|
|
717
539
|
}
|
|
718
540
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellSidebarNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
719
|
-
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: `
|
|
720
542
|
<Navigation
|
|
721
543
|
id="main"
|
|
722
544
|
[data]="navigation()"
|
|
@@ -726,68 +548,39 @@ class BlockShellSidebarNavigationComponent {
|
|
|
726
548
|
>
|
|
727
549
|
@if (effectiveType() === 'dockbar') {
|
|
728
550
|
<NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
|
|
729
|
-
|
|
730
|
-
<
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
/>
|
|
738
|
-
</NavigationHeader>
|
|
739
|
-
}
|
|
551
|
+
<NavigationHeader>
|
|
552
|
+
<block-shell-navigation-header
|
|
553
|
+
[name]="shellName()"
|
|
554
|
+
[logoText]="logoText()"
|
|
555
|
+
[homePath]="homePath()"
|
|
556
|
+
[collapsible]="true"
|
|
557
|
+
/>
|
|
558
|
+
</NavigationHeader>
|
|
740
559
|
|
|
741
|
-
|
|
742
|
-
<
|
|
743
|
-
|
|
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
|
|
744
573
|
[name]="userName()"
|
|
745
574
|
[subtitle]="userPosition()"
|
|
746
|
-
[
|
|
747
|
-
[
|
|
748
|
-
[actionTemplate]="footerActionTemplate()"
|
|
575
|
+
[containerClass]="'min-w-0 flex-1'"
|
|
576
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
749
577
|
/>
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
</ng-template>
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
<ng-template NavigationAsideFooter>
|
|
760
|
-
@if (navTypeStyle() === 'ala') {
|
|
761
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
762
|
-
<block-shell-navigation-avatar
|
|
763
|
-
[initials]="userInitials()"
|
|
764
|
-
[photoUrl]="userPhotoUrl()"
|
|
765
|
-
[photoAlt]="userName()"
|
|
766
|
-
/>
|
|
767
|
-
<p class="min-w-0 truncate text-sm font-semibold tracking-tight text-foreground">
|
|
768
|
-
{{ userName() }}
|
|
769
|
-
</p>
|
|
770
|
-
@if (footerActionTemplate()) {
|
|
771
|
-
<div class="ml-auto shrink-0">
|
|
772
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
773
|
-
</div>
|
|
774
|
-
}
|
|
775
|
-
</div>
|
|
776
|
-
} @else {
|
|
777
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
778
|
-
<block-shell-navigation-meta
|
|
779
|
-
[name]="userName()"
|
|
780
|
-
[subtitle]="userPosition()"
|
|
781
|
-
[containerClass]="'min-w-0 flex-1'"
|
|
782
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
783
|
-
/>
|
|
784
|
-
@if (footerActionTemplate()) {
|
|
785
|
-
<div class="ml-auto shrink-0">
|
|
786
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
787
|
-
</div>
|
|
788
|
-
}
|
|
789
|
-
</div>
|
|
790
|
-
}
|
|
578
|
+
@if (footerActionTemplate()) {
|
|
579
|
+
<div class="ml-auto shrink-0">
|
|
580
|
+
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
581
|
+
</div>
|
|
582
|
+
}
|
|
583
|
+
</div>
|
|
791
584
|
</ng-template>
|
|
792
585
|
</NavigationDockbar>
|
|
793
586
|
} @else {
|
|
@@ -795,7 +588,6 @@ class BlockShellSidebarNavigationComponent {
|
|
|
795
588
|
<NavigationHeader>
|
|
796
589
|
<block-shell-navigation-header
|
|
797
590
|
[name]="shellName()"
|
|
798
|
-
[subtitle]="brandSubtitle()"
|
|
799
591
|
[logoText]="logoText()"
|
|
800
592
|
[homePath]="homePath()"
|
|
801
593
|
[collapsible]="true"
|
|
@@ -814,7 +606,7 @@ class BlockShellSidebarNavigationComponent {
|
|
|
814
606
|
</NavigationSidebar>
|
|
815
607
|
}
|
|
816
608
|
</Navigation>
|
|
817
|
-
`, 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"] }] });
|
|
818
610
|
}
|
|
819
611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellSidebarNavigationComponent, decorators: [{
|
|
820
612
|
type: Component,
|
|
@@ -827,12 +619,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
827
619
|
NavigationHeaderComponent,
|
|
828
620
|
NavigationFooterComponent,
|
|
829
621
|
NavigationAsideFooterDirective,
|
|
830
|
-
NavigationAsideHeaderDirective,
|
|
831
622
|
BlockShellNavigationHeaderComponent,
|
|
832
623
|
BlockShellNavigationFooterComponent,
|
|
833
624
|
BlockShellNavigationMetaComponent,
|
|
834
|
-
BlockShellNavigationAvatarComponent,
|
|
835
|
-
BlockShellLogoComponent,
|
|
836
625
|
NgTemplateOutlet,
|
|
837
626
|
],
|
|
838
627
|
host: {
|
|
@@ -848,68 +637,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
848
637
|
>
|
|
849
638
|
@if (effectiveType() === 'dockbar') {
|
|
850
639
|
<NavigationDockbar [mode]="dockbarMode()" [typeStyle]="navTypeStyle()">
|
|
851
|
-
|
|
852
|
-
<
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
640
|
+
<NavigationHeader>
|
|
641
|
+
<block-shell-navigation-header
|
|
642
|
+
[name]="shellName()"
|
|
643
|
+
[logoText]="logoText()"
|
|
644
|
+
[homePath]="homePath()"
|
|
645
|
+
[collapsible]="true"
|
|
646
|
+
/>
|
|
647
|
+
</NavigationHeader>
|
|
648
|
+
|
|
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>
|
|
862
658
|
|
|
863
|
-
|
|
864
|
-
<
|
|
865
|
-
<block-shell-navigation-
|
|
659
|
+
<ng-template NavigationAsideFooter>
|
|
660
|
+
<div class="flex w-full min-w-0 items-center gap-3">
|
|
661
|
+
<block-shell-navigation-meta
|
|
866
662
|
[name]="userName()"
|
|
867
663
|
[subtitle]="userPosition()"
|
|
868
|
-
[
|
|
869
|
-
[
|
|
870
|
-
[actionTemplate]="footerActionTemplate()"
|
|
664
|
+
[containerClass]="'min-w-0 flex-1'"
|
|
665
|
+
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
871
666
|
/>
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
</ng-template>
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
<ng-template NavigationAsideFooter>
|
|
882
|
-
@if (navTypeStyle() === 'ala') {
|
|
883
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
884
|
-
<block-shell-navigation-avatar
|
|
885
|
-
[initials]="userInitials()"
|
|
886
|
-
[photoUrl]="userPhotoUrl()"
|
|
887
|
-
[photoAlt]="userName()"
|
|
888
|
-
/>
|
|
889
|
-
<p class="min-w-0 truncate text-sm font-semibold tracking-tight text-foreground">
|
|
890
|
-
{{ userName() }}
|
|
891
|
-
</p>
|
|
892
|
-
@if (footerActionTemplate()) {
|
|
893
|
-
<div class="ml-auto shrink-0">
|
|
894
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
895
|
-
</div>
|
|
896
|
-
}
|
|
897
|
-
</div>
|
|
898
|
-
} @else {
|
|
899
|
-
<div class="flex w-full min-w-0 items-center gap-3">
|
|
900
|
-
<block-shell-navigation-meta
|
|
901
|
-
[name]="userName()"
|
|
902
|
-
[subtitle]="userPosition()"
|
|
903
|
-
[containerClass]="'min-w-0 flex-1'"
|
|
904
|
-
[subtitleClass]="'-mt-1 truncate text-xs text-muted-foreground'"
|
|
905
|
-
/>
|
|
906
|
-
@if (footerActionTemplate()) {
|
|
907
|
-
<div class="ml-auto shrink-0">
|
|
908
|
-
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
909
|
-
</div>
|
|
910
|
-
}
|
|
911
|
-
</div>
|
|
912
|
-
}
|
|
667
|
+
@if (footerActionTemplate()) {
|
|
668
|
+
<div class="ml-auto shrink-0">
|
|
669
|
+
<ng-container [ngTemplateOutlet]="footerActionTemplate()" />
|
|
670
|
+
</div>
|
|
671
|
+
}
|
|
672
|
+
</div>
|
|
913
673
|
</ng-template>
|
|
914
674
|
</NavigationDockbar>
|
|
915
675
|
} @else {
|
|
@@ -917,7 +677,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
917
677
|
<NavigationHeader>
|
|
918
678
|
<block-shell-navigation-header
|
|
919
679
|
[name]="shellName()"
|
|
920
|
-
[subtitle]="brandSubtitle()"
|
|
921
680
|
[logoText]="logoText()"
|
|
922
681
|
[homePath]="homePath()"
|
|
923
682
|
[collapsible]="true"
|
|
@@ -938,21 +697,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
938
697
|
</Navigation>
|
|
939
698
|
`,
|
|
940
699
|
}]
|
|
941
|
-
}], 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 }] }] } });
|
|
942
701
|
|
|
943
702
|
const DESKTOP_NAV_CONTROL_SIZE = 'size-11';
|
|
944
703
|
const DESKTOP_FLYOUT_ICON_SIZE = 20;
|
|
945
704
|
class BlockShellTopNavigationComponent {
|
|
946
705
|
layout = inject(LayoutService);
|
|
947
706
|
navigationService = inject(NavigationService);
|
|
948
|
-
|
|
949
|
-
themeStyle = inject(ThemeStyleService);
|
|
707
|
+
themeAppearance = inject(ThemeAppearanceService);
|
|
950
708
|
navigation = input.required(/* @ts-ignore */
|
|
951
709
|
...(ngDevMode ? [{ debugName: "navigation" }] : /* istanbul ignore next */ []));
|
|
952
710
|
shellName = input.required(/* @ts-ignore */
|
|
953
711
|
...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
|
|
954
|
-
brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
|
|
955
|
-
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
956
712
|
logoText = input('ETOS', /* @ts-ignore */
|
|
957
713
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
958
714
|
homePath = input('/', /* @ts-ignore */
|
|
@@ -984,18 +740,16 @@ class BlockShellTopNavigationComponent {
|
|
|
984
740
|
return persisted === 'navbar' || persisted === 'flyout' ? persisted : this.type();
|
|
985
741
|
}, /* @ts-ignore */
|
|
986
742
|
...(ngDevMode ? [{ debugName: "effectiveType" }] : /* istanbul ignore next */ []));
|
|
987
|
-
/** Desktop memakai surface nav khusus;
|
|
743
|
+
/** Desktop memakai surface nav khusus; rail mempertahankan style navigation border-rail. */
|
|
988
744
|
navTypeStyle = computed(() => this.isDesktopTheme()
|
|
989
745
|
? 'desktop'
|
|
990
|
-
: this.layout.appearance() === '
|
|
746
|
+
: this.layout.appearance() === 'rail'
|
|
991
747
|
? 'border-rail'
|
|
992
748
|
: 'default', /* @ts-ignore */
|
|
993
749
|
...(ngDevMode ? [{ debugName: "navTypeStyle" }] : /* istanbul ignore next */ []));
|
|
994
750
|
/** Tema desktop memakai trigger dashboard tanpa label visual; tema lain mempertahankan label. */
|
|
995
|
-
isDesktopTheme = computed(() => this.
|
|
751
|
+
isDesktopTheme = computed(() => this.themeAppearance.appearance() === 'desktop', /* @ts-ignore */
|
|
996
752
|
...(ngDevMode ? [{ debugName: "isDesktopTheme" }] : /* istanbul ignore next */ []));
|
|
997
|
-
showDesktopWindowControls = computed(() => this.isDesktopTheme() && this.runtime?.isDesktopShell() === true, /* @ts-ignore */
|
|
998
|
-
...(ngDevMode ? [{ debugName: "showDesktopWindowControls" }] : /* istanbul ignore next */ []));
|
|
999
753
|
desktopFlyoutIcon = computed(() => this.isDesktopTheme() ? 'dashboard' : null, /* @ts-ignore */
|
|
1000
754
|
...(ngDevMode ? [{ debugName: "desktopFlyoutIcon" }] : /* istanbul ignore next */ []));
|
|
1001
755
|
desktopFlyoutTriggerRadiusClass = computed(() => this.isDesktopTheme() ? 'rounded-base' : '', /* @ts-ignore */
|
|
@@ -1009,7 +763,7 @@ class BlockShellTopNavigationComponent {
|
|
|
1009
763
|
desktopAvatarButtonLabel = computed(() => `User menu: ${this.userName()}`, /* @ts-ignore */
|
|
1010
764
|
...(ngDevMode ? [{ debugName: "desktopAvatarButtonLabel" }] : /* istanbul ignore next */ []));
|
|
1011
765
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellTopNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1012
|
-
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: `
|
|
1013
767
|
<Navigation
|
|
1014
768
|
id="main"
|
|
1015
769
|
[data]="navigation()"
|
|
@@ -1029,14 +783,11 @@ class BlockShellTopNavigationComponent {
|
|
|
1029
783
|
[icon-size]="desktopFlyoutIconSize()"
|
|
1030
784
|
[nav-type-style]="navTypeStyle()"
|
|
1031
785
|
>
|
|
1032
|
-
<NavigationHeader
|
|
786
|
+
<NavigationHeader>
|
|
1033
787
|
<block-shell-navigation-header
|
|
1034
788
|
[name]="shellName()"
|
|
1035
|
-
[subtitle]="brandSubtitle()"
|
|
1036
789
|
[logoText]="logoText()"
|
|
1037
790
|
[homePath]="homePath()"
|
|
1038
|
-
[titleOnly]="isDesktopTheme()"
|
|
1039
|
-
[desktopControls]="showDesktopWindowControls()"
|
|
1040
791
|
/>
|
|
1041
792
|
</NavigationHeader>
|
|
1042
793
|
|
|
@@ -1060,10 +811,9 @@ class BlockShellTopNavigationComponent {
|
|
|
1060
811
|
</NavigationFlyout>
|
|
1061
812
|
} @else {
|
|
1062
813
|
<NavigationNavbar [nav-type-style]="navTypeStyle()">
|
|
1063
|
-
<NavigationHeader
|
|
814
|
+
<NavigationHeader>
|
|
1064
815
|
<block-shell-navigation-header
|
|
1065
816
|
[name]="shellName()"
|
|
1066
|
-
[subtitle]="brandSubtitle()"
|
|
1067
817
|
[logoText]="logoText()"
|
|
1068
818
|
[homePath]="homePath()"
|
|
1069
819
|
/>
|
|
@@ -1081,7 +831,7 @@ class BlockShellTopNavigationComponent {
|
|
|
1081
831
|
</NavigationNavbar>
|
|
1082
832
|
}
|
|
1083
833
|
</Navigation>
|
|
1084
|
-
`, 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"] }] });
|
|
1085
835
|
}
|
|
1086
836
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellTopNavigationComponent, decorators: [{
|
|
1087
837
|
type: Component,
|
|
@@ -1120,14 +870,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1120
870
|
[icon-size]="desktopFlyoutIconSize()"
|
|
1121
871
|
[nav-type-style]="navTypeStyle()"
|
|
1122
872
|
>
|
|
1123
|
-
<NavigationHeader
|
|
873
|
+
<NavigationHeader>
|
|
1124
874
|
<block-shell-navigation-header
|
|
1125
875
|
[name]="shellName()"
|
|
1126
|
-
[subtitle]="brandSubtitle()"
|
|
1127
876
|
[logoText]="logoText()"
|
|
1128
877
|
[homePath]="homePath()"
|
|
1129
|
-
[titleOnly]="isDesktopTheme()"
|
|
1130
|
-
[desktopControls]="showDesktopWindowControls()"
|
|
1131
878
|
/>
|
|
1132
879
|
</NavigationHeader>
|
|
1133
880
|
|
|
@@ -1151,10 +898,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1151
898
|
</NavigationFlyout>
|
|
1152
899
|
} @else {
|
|
1153
900
|
<NavigationNavbar [nav-type-style]="navTypeStyle()">
|
|
1154
|
-
<NavigationHeader
|
|
901
|
+
<NavigationHeader>
|
|
1155
902
|
<block-shell-navigation-header
|
|
1156
903
|
[name]="shellName()"
|
|
1157
|
-
[subtitle]="brandSubtitle()"
|
|
1158
904
|
[logoText]="logoText()"
|
|
1159
905
|
[homePath]="homePath()"
|
|
1160
906
|
/>
|
|
@@ -1174,7 +920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1174
920
|
</Navigation>
|
|
1175
921
|
`,
|
|
1176
922
|
}]
|
|
1177
|
-
}], 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 }] }] } });
|
|
1178
924
|
|
|
1179
925
|
class BlockShellNavigationPanelDirective {
|
|
1180
926
|
templateRef = inject((TemplateRef));
|
|
@@ -1211,8 +957,6 @@ class BlockShellComponent {
|
|
|
1211
957
|
...(ngDevMode ? [{ debugName: "sidebarNavId" }] : /* istanbul ignore next */ []));
|
|
1212
958
|
shellName = input.required(/* @ts-ignore */
|
|
1213
959
|
...(ngDevMode ? [{ debugName: "shellName" }] : /* istanbul ignore next */ []));
|
|
1214
|
-
brandSubtitle = input('Etos Indonusa', /* @ts-ignore */
|
|
1215
|
-
...(ngDevMode ? [{ debugName: "brandSubtitle" }] : /* istanbul ignore next */ []));
|
|
1216
960
|
logoText = input('ETOS', /* @ts-ignore */
|
|
1217
961
|
...(ngDevMode ? [{ debugName: "logoText" }] : /* istanbul ignore next */ []));
|
|
1218
962
|
homePath = input('/', /* @ts-ignore */
|
|
@@ -1239,7 +983,7 @@ class BlockShellComponent {
|
|
|
1239
983
|
navigationPanelActive = computed(() => this.layout.type() === 'vertical' && this.navigationPanelOpen() && !!this.navigationPanel(), /* @ts-ignore */
|
|
1240
984
|
...(ngDevMode ? [{ debugName: "navigationPanelActive" }] : /* istanbul ignore next */ []));
|
|
1241
985
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1242
|
-
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: `
|
|
1243
987
|
<Layout>
|
|
1244
988
|
@switch (layout.type()) {
|
|
1245
989
|
@case ('horizontal') {
|
|
@@ -1248,7 +992,6 @@ class BlockShellComponent {
|
|
|
1248
992
|
<block-shell-top-navigation
|
|
1249
993
|
[navigation]="navigation()"
|
|
1250
994
|
[shellName]="shellName()"
|
|
1251
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1252
995
|
[logoText]="logoText()"
|
|
1253
996
|
[homePath]="homePath()"
|
|
1254
997
|
[userName]="userName()"
|
|
@@ -1292,7 +1035,6 @@ class BlockShellComponent {
|
|
|
1292
1035
|
<block-shell-sidebar-navigation
|
|
1293
1036
|
[navigation]="navigation()"
|
|
1294
1037
|
[shellName]="shellName()"
|
|
1295
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1296
1038
|
[logoText]="logoText()"
|
|
1297
1039
|
[homePath]="homePath()"
|
|
1298
1040
|
[userName]="userName()"
|
|
@@ -1319,7 +1061,7 @@ class BlockShellComponent {
|
|
|
1319
1061
|
}
|
|
1320
1062
|
}
|
|
1321
1063
|
</Layout>
|
|
1322
|
-
`, 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"] }] });
|
|
1323
1065
|
}
|
|
1324
1066
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlockShellComponent, decorators: [{
|
|
1325
1067
|
type: Component,
|
|
@@ -1349,7 +1091,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1349
1091
|
<block-shell-top-navigation
|
|
1350
1092
|
[navigation]="navigation()"
|
|
1351
1093
|
[shellName]="shellName()"
|
|
1352
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1353
1094
|
[logoText]="logoText()"
|
|
1354
1095
|
[homePath]="homePath()"
|
|
1355
1096
|
[userName]="userName()"
|
|
@@ -1393,7 +1134,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1393
1134
|
<block-shell-sidebar-navigation
|
|
1394
1135
|
[navigation]="navigation()"
|
|
1395
1136
|
[shellName]="shellName()"
|
|
1396
|
-
[brandSubtitle]="brandSubtitle()"
|
|
1397
1137
|
[logoText]="logoText()"
|
|
1398
1138
|
[homePath]="homePath()"
|
|
1399
1139
|
[userName]="userName()"
|
|
@@ -1422,7 +1162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1422
1162
|
</Layout>
|
|
1423
1163
|
`,
|
|
1424
1164
|
}]
|
|
1425
|
-
}], 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 }] }] } });
|
|
1426
1166
|
|
|
1427
1167
|
const MAIN_SIDEBAR_NAV_ID = 'main';
|
|
1428
1168
|
function workspaceNavbarId(workspace) {
|