@pumpkin-tech/pumpkin-tech-ng 0.2.8 → 0.2.10
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';
|
|
@@ -104,12 +104,14 @@ class PtechGridDirective {
|
|
|
104
104
|
display = 'grid';
|
|
105
105
|
columns = 'repeat(12, minmax(0, 1fr))';
|
|
106
106
|
activeBp = null;
|
|
107
|
+
viewportBp = null;
|
|
107
108
|
constructor(bp) {
|
|
108
109
|
this.bp = bp;
|
|
109
110
|
this.bp.observe(Object.values(MEDIA$1))
|
|
110
111
|
.pipe(takeUntil(this.destroy$))
|
|
111
112
|
.subscribe(state => {
|
|
112
|
-
this.
|
|
113
|
+
this.viewportBp = this.pickActive(state.breakpoints);
|
|
114
|
+
this.activeBp = this.viewportBp;
|
|
113
115
|
this.updateCols();
|
|
114
116
|
});
|
|
115
117
|
}
|
|
@@ -213,6 +215,8 @@ class PtechColDirective {
|
|
|
213
215
|
ptechColLg;
|
|
214
216
|
ptechColXl;
|
|
215
217
|
activeBp = null;
|
|
218
|
+
viewportBp = null;
|
|
219
|
+
containerBp = null;
|
|
216
220
|
activeSource = null;
|
|
217
221
|
gridColumn = 'auto / span 12';
|
|
218
222
|
minWidth = '0';
|
|
@@ -226,9 +230,14 @@ class PtechColDirective {
|
|
|
226
230
|
.subscribe(s => {
|
|
227
231
|
if (this.ptechColMode === 'container')
|
|
228
232
|
return;
|
|
229
|
-
|
|
233
|
+
this.viewportBp = this.pickActive(s.breakpoints);
|
|
234
|
+
if (this.ptechColMode === 'auto') {
|
|
235
|
+
this.activeBp = this.pickAutoBp();
|
|
236
|
+
this.activeSource = this.containerBp ? 'container' : 'viewport';
|
|
237
|
+
this.updateSpan();
|
|
230
238
|
return;
|
|
231
|
-
|
|
239
|
+
}
|
|
240
|
+
this.activeBp = this.viewportBp;
|
|
232
241
|
this.activeSource = 'viewport';
|
|
233
242
|
this.updateSpan();
|
|
234
243
|
});
|
|
@@ -250,11 +259,23 @@ class PtechColDirective {
|
|
|
250
259
|
: w >= 960 ? 'md'
|
|
251
260
|
: w >= 600 ? 'sm'
|
|
252
261
|
: 'xs';
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
this.
|
|
256
|
-
|
|
257
|
-
|
|
262
|
+
this.containerBp = bp;
|
|
263
|
+
this.ngZone.run(() => {
|
|
264
|
+
if (this.ptechColMode === 'auto') {
|
|
265
|
+
const nextBp = this.pickAutoBp();
|
|
266
|
+
if (nextBp !== this.activeBp || this.activeSource !== 'container') {
|
|
267
|
+
this.activeBp = nextBp;
|
|
268
|
+
this.activeSource = 'container';
|
|
269
|
+
this.updateSpan();
|
|
270
|
+
}
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
if (this.ptechColMode === 'container' && (bp !== this.activeBp || this.activeSource !== 'container')) {
|
|
274
|
+
this.activeBp = bp;
|
|
275
|
+
this.activeSource = 'container';
|
|
276
|
+
this.updateSpan();
|
|
277
|
+
}
|
|
278
|
+
});
|
|
258
279
|
});
|
|
259
280
|
});
|
|
260
281
|
this.ro.observe(gridParent);
|
|
@@ -283,6 +304,14 @@ class PtechColDirective {
|
|
|
283
304
|
return key;
|
|
284
305
|
return null;
|
|
285
306
|
}
|
|
307
|
+
pickAutoBp() {
|
|
308
|
+
const rank = { xs: 0, sm: 1, md: 2, lg: 3, xl: 4 };
|
|
309
|
+
if (!this.viewportBp)
|
|
310
|
+
return this.containerBp;
|
|
311
|
+
if (!this.containerBp)
|
|
312
|
+
return this.viewportBp;
|
|
313
|
+
return rank[this.viewportBp] <= rank[this.containerBp] ? this.viewportBp : this.containerBp;
|
|
314
|
+
}
|
|
286
315
|
updateSpan() {
|
|
287
316
|
const span = this.resolveColForBp();
|
|
288
317
|
if (span === this.lastSpan)
|
|
@@ -3003,6 +3032,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3003
3032
|
// ptech-nav.component.ts
|
|
3004
3033
|
class NavComponent {
|
|
3005
3034
|
navService;
|
|
3035
|
+
cdr;
|
|
3006
3036
|
links = [];
|
|
3007
3037
|
currentModuleName = 'Menu';
|
|
3008
3038
|
fixedTopGap = 134;
|
|
@@ -3014,10 +3044,16 @@ class NavComponent {
|
|
|
3014
3044
|
headerClick = new EventEmitter();
|
|
3015
3045
|
navigate = new EventEmitter();
|
|
3016
3046
|
logout = new EventEmitter();
|
|
3047
|
+
navListEl;
|
|
3017
3048
|
stack = [];
|
|
3049
|
+
navListOverflow = false;
|
|
3018
3050
|
navOpen$;
|
|
3019
|
-
|
|
3051
|
+
destroy$ = new Subject();
|
|
3052
|
+
resizeObserver;
|
|
3053
|
+
recalculationRafId = null;
|
|
3054
|
+
constructor(navService, cdr) {
|
|
3020
3055
|
this.navService = navService;
|
|
3056
|
+
this.cdr = cdr;
|
|
3021
3057
|
this.navOpen$ = this.navService.navState$;
|
|
3022
3058
|
}
|
|
3023
3059
|
get currentLevel() {
|
|
@@ -3033,6 +3069,7 @@ class NavComponent {
|
|
|
3033
3069
|
if (item.children) {
|
|
3034
3070
|
ev.preventDefault();
|
|
3035
3071
|
this.stack.push(item);
|
|
3072
|
+
this.scheduleOverflowRecalc();
|
|
3036
3073
|
}
|
|
3037
3074
|
else {
|
|
3038
3075
|
this.navigate.emit(item);
|
|
@@ -3041,14 +3078,55 @@ class NavComponent {
|
|
|
3041
3078
|
onHeaderClick() {
|
|
3042
3079
|
if (this.stack.length) {
|
|
3043
3080
|
this.stack.pop();
|
|
3081
|
+
this.scheduleOverflowRecalc();
|
|
3044
3082
|
}
|
|
3045
3083
|
else {
|
|
3046
3084
|
this.headerClick.emit(); // <- clique no topo: pedir navegação pro home
|
|
3047
3085
|
// opcional: this.navService.toggleNav();
|
|
3048
3086
|
}
|
|
3049
3087
|
}
|
|
3050
|
-
|
|
3051
|
-
|
|
3088
|
+
ngAfterViewInit() {
|
|
3089
|
+
this.navOpen$.pipe(takeUntil$1(this.destroy$)).subscribe(() => {
|
|
3090
|
+
this.scheduleOverflowRecalc();
|
|
3091
|
+
});
|
|
3092
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
3093
|
+
this.resizeObserver = new ResizeObserver(() => this.scheduleOverflowRecalc());
|
|
3094
|
+
const navList = this.navListEl?.nativeElement;
|
|
3095
|
+
const navContainer = navList?.parentElement;
|
|
3096
|
+
if (navList)
|
|
3097
|
+
this.resizeObserver.observe(navList);
|
|
3098
|
+
if (navContainer)
|
|
3099
|
+
this.resizeObserver.observe(navContainer);
|
|
3100
|
+
}
|
|
3101
|
+
this.scheduleOverflowRecalc();
|
|
3102
|
+
}
|
|
3103
|
+
ngOnDestroy() {
|
|
3104
|
+
this.destroy$.next();
|
|
3105
|
+
this.destroy$.complete();
|
|
3106
|
+
this.resizeObserver?.disconnect();
|
|
3107
|
+
if (this.recalculationRafId != null) {
|
|
3108
|
+
cancelAnimationFrame(this.recalculationRafId);
|
|
3109
|
+
this.recalculationRafId = null;
|
|
3110
|
+
}
|
|
3111
|
+
}
|
|
3112
|
+
scheduleOverflowRecalc() {
|
|
3113
|
+
if (this.recalculationRafId != null) {
|
|
3114
|
+
cancelAnimationFrame(this.recalculationRafId);
|
|
3115
|
+
}
|
|
3116
|
+
this.recalculationRafId = requestAnimationFrame(() => {
|
|
3117
|
+
this.recalculationRafId = null;
|
|
3118
|
+
const el = this.navListEl?.nativeElement;
|
|
3119
|
+
if (!el)
|
|
3120
|
+
return;
|
|
3121
|
+
const hasOverflow = el.scrollHeight > el.clientHeight + 1;
|
|
3122
|
+
if (this.navListOverflow !== hasOverflow) {
|
|
3123
|
+
this.navListOverflow = hasOverflow;
|
|
3124
|
+
this.cdr.markForCheck();
|
|
3125
|
+
}
|
|
3126
|
+
});
|
|
3127
|
+
}
|
|
3128
|
+
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 });
|
|
3129
|
+
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
3130
|
<mat-sidenav-container
|
|
3053
3131
|
class="sidenav-container"
|
|
3054
3132
|
[hasBackdrop]="hasBackdrop"
|
|
@@ -3063,7 +3141,7 @@ class NavComponent {
|
|
|
3063
3141
|
[fixedBottomGap]="fixedBottomGap"
|
|
3064
3142
|
>
|
|
3065
3143
|
<div class="nav-content">
|
|
3066
|
-
<mat-nav-list class="nav-list">
|
|
3144
|
+
<mat-nav-list #navListEl class="nav-list" [class.nav-list--scroll]="navListOverflow">
|
|
3067
3145
|
<mat-list-item class="list-item-header" (click)="onHeaderClick()">
|
|
3068
3146
|
<mat-icon matListIcon>{{ stack.length ? 'chevron_left' : 'widgets' }}</mat-icon>
|
|
3069
3147
|
<span matLine>{{ currentTitle }}</span>
|
|
@@ -3100,7 +3178,7 @@ class NavComponent {
|
|
|
3100
3178
|
</mat-sidenav>
|
|
3101
3179
|
|
|
3102
3180
|
</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:
|
|
3181
|
+
`, 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
3182
|
}
|
|
3105
3183
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavComponent, decorators: [{
|
|
3106
3184
|
type: Component,
|
|
@@ -3123,7 +3201,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3123
3201
|
[fixedBottomGap]="fixedBottomGap"
|
|
3124
3202
|
>
|
|
3125
3203
|
<div class="nav-content">
|
|
3126
|
-
<mat-nav-list class="nav-list">
|
|
3204
|
+
<mat-nav-list #navListEl class="nav-list" [class.nav-list--scroll]="navListOverflow">
|
|
3127
3205
|
<mat-list-item class="list-item-header" (click)="onHeaderClick()">
|
|
3128
3206
|
<mat-icon matListIcon>{{ stack.length ? 'chevron_left' : 'widgets' }}</mat-icon>
|
|
3129
3207
|
<span matLine>{{ currentTitle }}</span>
|
|
@@ -3160,8 +3238,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3160
3238
|
</mat-sidenav>
|
|
3161
3239
|
|
|
3162
3240
|
</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: [{
|
|
3241
|
+
`, 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"] }]
|
|
3242
|
+
}], ctorParameters: () => [{ type: NavService }, { type: i0.ChangeDetectorRef }], propDecorators: { links: [{
|
|
3165
3243
|
type: Input
|
|
3166
3244
|
}], currentModuleName: [{
|
|
3167
3245
|
type: Input
|
|
@@ -3183,6 +3261,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3183
3261
|
type: Output
|
|
3184
3262
|
}], logout: [{
|
|
3185
3263
|
type: Output
|
|
3264
|
+
}], navListEl: [{
|
|
3265
|
+
type: ViewChild,
|
|
3266
|
+
args: ['navListEl']
|
|
3186
3267
|
}] } });
|
|
3187
3268
|
|
|
3188
3269
|
class FooterComponent {
|