@pumpkin-tech/pumpkin-tech-ng 0.2.8 → 0.2.9
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.
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { HostBinding, Input, Directive, Injectable, NgModule, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, Optional, Pipe, ContentChildren, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/layout';
|
|
4
4
|
import * as i2$5 from 'rxjs';
|
|
5
|
-
import { Subject, BehaviorSubject, delay, tap, map, filter, of } from 'rxjs';
|
|
5
|
+
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, delay, tap, map, filter, of } from 'rxjs';
|
|
6
6
|
import { takeUntil, filter as filter$1, switchMap } from 'rxjs/operators';
|
|
7
7
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
8
8
|
import * as i2 from '@angular/forms';
|
|
@@ -3003,6 +3003,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3003
3003
|
// ptech-nav.component.ts
|
|
3004
3004
|
class NavComponent {
|
|
3005
3005
|
navService;
|
|
3006
|
+
cdr;
|
|
3006
3007
|
links = [];
|
|
3007
3008
|
currentModuleName = 'Menu';
|
|
3008
3009
|
fixedTopGap = 134;
|
|
@@ -3014,10 +3015,16 @@ class NavComponent {
|
|
|
3014
3015
|
headerClick = new EventEmitter();
|
|
3015
3016
|
navigate = new EventEmitter();
|
|
3016
3017
|
logout = new EventEmitter();
|
|
3018
|
+
navListEl;
|
|
3017
3019
|
stack = [];
|
|
3020
|
+
navListOverflow = false;
|
|
3018
3021
|
navOpen$;
|
|
3019
|
-
|
|
3022
|
+
destroy$ = new Subject();
|
|
3023
|
+
resizeObserver;
|
|
3024
|
+
recalculationRafId = null;
|
|
3025
|
+
constructor(navService, cdr) {
|
|
3020
3026
|
this.navService = navService;
|
|
3027
|
+
this.cdr = cdr;
|
|
3021
3028
|
this.navOpen$ = this.navService.navState$;
|
|
3022
3029
|
}
|
|
3023
3030
|
get currentLevel() {
|
|
@@ -3033,6 +3040,7 @@ class NavComponent {
|
|
|
3033
3040
|
if (item.children) {
|
|
3034
3041
|
ev.preventDefault();
|
|
3035
3042
|
this.stack.push(item);
|
|
3043
|
+
this.scheduleOverflowRecalc();
|
|
3036
3044
|
}
|
|
3037
3045
|
else {
|
|
3038
3046
|
this.navigate.emit(item);
|
|
@@ -3041,14 +3049,55 @@ class NavComponent {
|
|
|
3041
3049
|
onHeaderClick() {
|
|
3042
3050
|
if (this.stack.length) {
|
|
3043
3051
|
this.stack.pop();
|
|
3052
|
+
this.scheduleOverflowRecalc();
|
|
3044
3053
|
}
|
|
3045
3054
|
else {
|
|
3046
3055
|
this.headerClick.emit(); // <- clique no topo: pedir navegação pro home
|
|
3047
3056
|
// opcional: this.navService.toggleNav();
|
|
3048
3057
|
}
|
|
3049
3058
|
}
|
|
3050
|
-
|
|
3051
|
-
|
|
3059
|
+
ngAfterViewInit() {
|
|
3060
|
+
this.navOpen$.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
3061
|
+
this.scheduleOverflowRecalc();
|
|
3062
|
+
});
|
|
3063
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
3064
|
+
this.resizeObserver = new ResizeObserver(() => this.scheduleOverflowRecalc());
|
|
3065
|
+
const navList = this.navListEl?.nativeElement;
|
|
3066
|
+
const navContainer = navList?.parentElement;
|
|
3067
|
+
if (navList)
|
|
3068
|
+
this.resizeObserver.observe(navList);
|
|
3069
|
+
if (navContainer)
|
|
3070
|
+
this.resizeObserver.observe(navContainer);
|
|
3071
|
+
}
|
|
3072
|
+
this.scheduleOverflowRecalc();
|
|
3073
|
+
}
|
|
3074
|
+
ngOnDestroy() {
|
|
3075
|
+
this.destroy$.next();
|
|
3076
|
+
this.destroy$.complete();
|
|
3077
|
+
this.resizeObserver?.disconnect();
|
|
3078
|
+
if (this.recalculationRafId != null) {
|
|
3079
|
+
cancelAnimationFrame(this.recalculationRafId);
|
|
3080
|
+
this.recalculationRafId = null;
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
scheduleOverflowRecalc() {
|
|
3084
|
+
if (this.recalculationRafId != null) {
|
|
3085
|
+
cancelAnimationFrame(this.recalculationRafId);
|
|
3086
|
+
}
|
|
3087
|
+
this.recalculationRafId = requestAnimationFrame(() => {
|
|
3088
|
+
this.recalculationRafId = null;
|
|
3089
|
+
const el = this.navListEl?.nativeElement;
|
|
3090
|
+
if (!el)
|
|
3091
|
+
return;
|
|
3092
|
+
const hasOverflow = el.scrollHeight > el.clientHeight + 1;
|
|
3093
|
+
if (this.navListOverflow !== hasOverflow) {
|
|
3094
|
+
this.navListOverflow = hasOverflow;
|
|
3095
|
+
this.cdr.markForCheck();
|
|
3096
|
+
}
|
|
3097
|
+
});
|
|
3098
|
+
}
|
|
3099
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavComponent, deps: [{ token: NavService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3100
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: NavComponent, isStandalone: true, selector: "ptech-nav", inputs: { links: "links", currentModuleName: "currentModuleName", fixedTopGap: "fixedTopGap", fixedBottomGap: "fixedBottomGap", footerItems: "footerItems", hasBackdrop: "hasBackdrop", mode: "mode" }, outputs: { backdropClick: "backdropClick", headerClick: "headerClick", navigate: "navigate", logout: "logout" }, viewQueries: [{ propertyName: "navListEl", first: true, predicate: ["navListEl"], descendants: true }], ngImport: i0, template: `
|
|
3052
3101
|
<mat-sidenav-container
|
|
3053
3102
|
class="sidenav-container"
|
|
3054
3103
|
[hasBackdrop]="hasBackdrop"
|
|
@@ -3063,7 +3112,7 @@ class NavComponent {
|
|
|
3063
3112
|
[fixedBottomGap]="fixedBottomGap"
|
|
3064
3113
|
>
|
|
3065
3114
|
<div class="nav-content">
|
|
3066
|
-
<mat-nav-list class="nav-list">
|
|
3115
|
+
<mat-nav-list #navListEl class="nav-list" [class.nav-list--scroll]="navListOverflow">
|
|
3067
3116
|
<mat-list-item class="list-item-header" (click)="onHeaderClick()">
|
|
3068
3117
|
<mat-icon matListIcon>{{ stack.length ? 'chevron_left' : 'widgets' }}</mat-icon>
|
|
3069
3118
|
<span matLine>{{ currentTitle }}</span>
|
|
@@ -3100,7 +3149,7 @@ class NavComponent {
|
|
|
3100
3149
|
</mat-sidenav>
|
|
3101
3150
|
|
|
3102
3151
|
</mat-sidenav-container>
|
|
3103
|
-
`, isInline: true, styles: [".sidenav-container,:host ::ng-deep .sidenav-container.mat-drawer-container{height:100%}.sidenav-container{background-color:transparent!important}:host ::ng-deep .sidenav-container.mat-drawer-container{background-color:transparent!important}:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{display:flex;flex-direction:column;height:100%;min-height:0;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;overflow:hidden}:host ::ng-deep ptech-header,:host ::ng-deep .ptech-header{z-index:6000}.mat-icon{height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:var(--ptech-nav-shadow, 0px 4px 6px rgba(0, 0, 0, .3));padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.nav-list{flex:1 1 auto!important;min-height:0!important;overflow-y:
|
|
3152
|
+
`, isInline: true, styles: [".sidenav-container,:host ::ng-deep .sidenav-container.mat-drawer-container{height:100%}.sidenav-container{background-color:transparent!important}:host ::ng-deep .sidenav-container.mat-drawer-container{background-color:transparent!important}:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{display:flex;flex-direction:column;height:100%;min-height:0;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;overflow:hidden}:host ::ng-deep ptech-header,:host ::ng-deep .ptech-header{z-index:6000}.mat-icon{height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:var(--ptech-nav-shadow, 0px 4px 6px rgba(0, 0, 0, .3));padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.nav-list{flex:1 1 auto!important;min-height:0!important;overflow-y:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0!important;margin:0!important}.nav-list.nav-list--scroll{overflow-y:auto!important}.nav-list::-webkit-scrollbar{width:10px;height:10px}.nav-list::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.nav-list::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.nav-list::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.nav-list{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}:host ::ng-deep .mat-list-item,:host ::ng-deep .mat-mdc-list-item{display:flex!important;align-items:center!important;border-radius:unset!important}:host ::ng-deep .mat-list-item mat-icon[matListIcon],:host ::ng-deep .mdc-list-item__graphic{margin:0!important;padding:0!important;vertical-align:middle!important;line-height:1!important}:host ::ng-deep .mat-list-item .mat-line,:host ::ng-deep .mdc-list-item__primary-text{color:var(--ptech-nav-text, #fff)!important;letter-spacing:unset!important}.list-item-header{display:flex;align-items:center;height:66px!important;padding:0 16px;background-color:var(--ptech-nav-bg-alt, #35404a)!important;color:var(--ptech-nav-text, #cfd8dc)!important;font-size:1.1rem;font-weight:600;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-header mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;margin-right:12px}.list-item-header:hover{background-color:var(--ptech-nav-hover-1, rgba(255, 255, 255, .1))}.list-item-level1{display:flex;align-items:center;justify-content:space-between;height:48px;color:var(--ptech-nav-text, #cfd8dc)!important;font-size:1rem;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-level1 mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:22px;margin-right:12px;margin-bottom:-5px}.list-item-level1 span[matLine]{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;margin-left:46px}.list-item-level1:hover{background-color:var(--ptech-nav-hover-2, rgba(255, 255, 255, .08))}.list-item-level2{display:flex;align-items:center;height:44px;padding:0 24px;color:var(--ptech-nav-text, #cfd8dc);font-size:.95rem;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-level2 mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:22px;margin-right:12px}.list-item-level2:hover{background-color:var(--ptech-nav-hover-3, rgba(255, 255, 255, .06))}.mat-divider{margin-top:0!important;margin-bottom:0!important}.nav-footer{display:flex;flex-direction:column;flex-shrink:0;margin-top:auto;padding:12px 16px;background-color:var(--ptech-nav-bg-alt, #35404a)}.footer-item{display:flex;align-items:center;margin-bottom:6px}.footer-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:18px;margin-right:8px}.footer-text{color:var(--ptech-nav-text, #cfd8dc);font-size:.85rem}.footer-item:last-child{margin-bottom:0!important}:host ::ng-deep mat-sidenav.sidenav .nav-list{flex:1 1 auto!important}:host ::ng-deep mat-sidenav.sidenav .nav-footer{margin-top:auto!important;flex-shrink:0!important}@media screen and (max-width: 599px){mat-sidenav.sidenav{width:200px}.list-item-header{height:50px;font-size:1rem;padding:0 12px}.list-item-header mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level1{height:44px;font-size:.9rem;padding:0 12px}.list-item-level1 mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level1 span[matLine]{font-size:.9rem}.arrow-right-icon{margin-left:auto}.list-item-level2{height:40px;font-size:.85rem;padding:0 20px}.list-item-level2 mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level2 span[matLine]{font-size:.9rem}.footer-item{margin-bottom:4px}.footer-icon{font-size:16px;margin-right:6px}.footer-text{font-size:.8rem}}:host ::ng-deep mat-sidenav.sidenav.mat-drawer,:host ::ng-deep mat-sidenav.sidenav.mat-drawer-side,:host ::ng-deep mat-sidenav.sidenav.mat-drawer-over{border-right:0!important;border-inline-end:0!important;border-left:0!important;border-top:0!important;border-bottom:0!important}@media screen and (min-width: 600px){mat-sidenav.sidenav,:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{border-bottom-right-radius:0!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i4$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i5$2.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i5$2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i5$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3104
3153
|
}
|
|
3105
3154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavComponent, decorators: [{
|
|
3106
3155
|
type: Component,
|
|
@@ -3123,7 +3172,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3123
3172
|
[fixedBottomGap]="fixedBottomGap"
|
|
3124
3173
|
>
|
|
3125
3174
|
<div class="nav-content">
|
|
3126
|
-
<mat-nav-list class="nav-list">
|
|
3175
|
+
<mat-nav-list #navListEl class="nav-list" [class.nav-list--scroll]="navListOverflow">
|
|
3127
3176
|
<mat-list-item class="list-item-header" (click)="onHeaderClick()">
|
|
3128
3177
|
<mat-icon matListIcon>{{ stack.length ? 'chevron_left' : 'widgets' }}</mat-icon>
|
|
3129
3178
|
<span matLine>{{ currentTitle }}</span>
|
|
@@ -3160,8 +3209,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3160
3209
|
</mat-sidenav>
|
|
3161
3210
|
|
|
3162
3211
|
</mat-sidenav-container>
|
|
3163
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".sidenav-container,:host ::ng-deep .sidenav-container.mat-drawer-container{height:100%}.sidenav-container{background-color:transparent!important}:host ::ng-deep .sidenav-container.mat-drawer-container{background-color:transparent!important}:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{display:flex;flex-direction:column;height:100%;min-height:0;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;overflow:hidden}:host ::ng-deep ptech-header,:host ::ng-deep .ptech-header{z-index:6000}.mat-icon{height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:var(--ptech-nav-shadow, 0px 4px 6px rgba(0, 0, 0, .3));padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.nav-list{flex:1 1 auto!important;min-height:0!important;overflow-y:
|
|
3164
|
-
}], ctorParameters: () => [{ type: NavService }], propDecorators: { links: [{
|
|
3212
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".sidenav-container,:host ::ng-deep .sidenav-container.mat-drawer-container{height:100%}.sidenav-container{background-color:transparent!important}:host ::ng-deep .sidenav-container.mat-drawer-container{background-color:transparent!important}:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{display:flex;flex-direction:column;height:100%;min-height:0;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;overflow:hidden}:host ::ng-deep ptech-header,:host ::ng-deep .ptech-header{z-index:6000}.mat-icon{height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:var(--ptech-nav-shadow, 0px 4px 6px rgba(0, 0, 0, .3));padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.nav-list{flex:1 1 auto!important;min-height:0!important;overflow-y:hidden!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0!important;margin:0!important}.nav-list.nav-list--scroll{overflow-y:auto!important}.nav-list::-webkit-scrollbar{width:10px;height:10px}.nav-list::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.nav-list::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.nav-list::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.nav-list{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}:host ::ng-deep .mat-list-item,:host ::ng-deep .mat-mdc-list-item{display:flex!important;align-items:center!important;border-radius:unset!important}:host ::ng-deep .mat-list-item mat-icon[matListIcon],:host ::ng-deep .mdc-list-item__graphic{margin:0!important;padding:0!important;vertical-align:middle!important;line-height:1!important}:host ::ng-deep .mat-list-item .mat-line,:host ::ng-deep .mdc-list-item__primary-text{color:var(--ptech-nav-text, #fff)!important;letter-spacing:unset!important}.list-item-header{display:flex;align-items:center;height:66px!important;padding:0 16px;background-color:var(--ptech-nav-bg-alt, #35404a)!important;color:var(--ptech-nav-text, #cfd8dc)!important;font-size:1.1rem;font-weight:600;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-header mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;margin-right:12px}.list-item-header:hover{background-color:var(--ptech-nav-hover-1, rgba(255, 255, 255, .1))}.list-item-level1{display:flex;align-items:center;justify-content:space-between;height:48px;color:var(--ptech-nav-text, #cfd8dc)!important;font-size:1rem;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-level1 mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:22px;margin-right:12px;margin-bottom:-5px}.list-item-level1 span[matLine]{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;margin-left:46px}.list-item-level1:hover{background-color:var(--ptech-nav-hover-2, rgba(255, 255, 255, .08))}.list-item-level2{display:flex;align-items:center;height:44px;padding:0 24px;color:var(--ptech-nav-text, #cfd8dc);font-size:.95rem;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-level2 mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:22px;margin-right:12px}.list-item-level2:hover{background-color:var(--ptech-nav-hover-3, rgba(255, 255, 255, .06))}.mat-divider{margin-top:0!important;margin-bottom:0!important}.nav-footer{display:flex;flex-direction:column;flex-shrink:0;margin-top:auto;padding:12px 16px;background-color:var(--ptech-nav-bg-alt, #35404a)}.footer-item{display:flex;align-items:center;margin-bottom:6px}.footer-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:18px;margin-right:8px}.footer-text{color:var(--ptech-nav-text, #cfd8dc);font-size:.85rem}.footer-item:last-child{margin-bottom:0!important}:host ::ng-deep mat-sidenav.sidenav .nav-list{flex:1 1 auto!important}:host ::ng-deep mat-sidenav.sidenav .nav-footer{margin-top:auto!important;flex-shrink:0!important}@media screen and (max-width: 599px){mat-sidenav.sidenav{width:200px}.list-item-header{height:50px;font-size:1rem;padding:0 12px}.list-item-header mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level1{height:44px;font-size:.9rem;padding:0 12px}.list-item-level1 mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level1 span[matLine]{font-size:.9rem}.arrow-right-icon{margin-left:auto}.list-item-level2{height:40px;font-size:.85rem;padding:0 20px}.list-item-level2 mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level2 span[matLine]{font-size:.9rem}.footer-item{margin-bottom:4px}.footer-icon{font-size:16px;margin-right:6px}.footer-text{font-size:.8rem}}:host ::ng-deep mat-sidenav.sidenav.mat-drawer,:host ::ng-deep mat-sidenav.sidenav.mat-drawer-side,:host ::ng-deep mat-sidenav.sidenav.mat-drawer-over{border-right:0!important;border-inline-end:0!important;border-left:0!important;border-top:0!important;border-bottom:0!important}@media screen and (min-width: 600px){mat-sidenav.sidenav,:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{border-bottom-right-radius:0!important}}\n"] }]
|
|
3213
|
+
}], ctorParameters: () => [{ type: NavService }, { type: i0.ChangeDetectorRef }], propDecorators: { links: [{
|
|
3165
3214
|
type: Input
|
|
3166
3215
|
}], currentModuleName: [{
|
|
3167
3216
|
type: Input
|
|
@@ -3183,6 +3232,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3183
3232
|
type: Output
|
|
3184
3233
|
}], logout: [{
|
|
3185
3234
|
type: Output
|
|
3235
|
+
}], navListEl: [{
|
|
3236
|
+
type: ViewChild,
|
|
3237
|
+
args: ['navListEl']
|
|
3186
3238
|
}] } });
|
|
3187
3239
|
|
|
3188
3240
|
class FooterComponent {
|