@pumpkin-tech/pumpkin-tech-ng 0.2.63 → 0.2.65
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, Optional, Self, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, 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, takeUntil as takeUntil$1, filter, delay, debounceTime, distinctUntilChanged, tap, switchMap, of, isObservable, from,
|
|
5
|
+
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, debounceTime, distinctUntilChanged, tap, switchMap, of, isObservable, from, timer, map, shareReplay } from 'rxjs';
|
|
6
6
|
import { takeUntil, filter as filter$1, switchMap as switchMap$1 } from 'rxjs/operators';
|
|
7
7
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
8
8
|
import * as i2 from '@angular/forms';
|
|
@@ -3087,7 +3087,7 @@ class BreadcrumbComponent {
|
|
|
3087
3087
|
<ng-content select="[end-content]"></ng-content>
|
|
3088
3088
|
</div>
|
|
3089
3089
|
</nav>
|
|
3090
|
-
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:max-content}.end-content{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.end-content:empty{display:none}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.ptech-breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));gap:4px;font-weight:400;display:flex;align-items:center;white-space:nowrap;flex-shrink:0}.ptech-breadcrumb-item a{color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));text-decoration:none;padding-right:4px}.ptech-breadcrumb-item a:hover{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));text-decoration:underline}.ptech-breadcrumb-item .current-page{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));font-weight:600}.ptech-breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:var(--ptech-breadcrumb-separator, var(--app-muted, #b1b1b1))}@media (max-width: 599.98px){:host{margin-bottom:var(--ptech-breadcrumb-margin-bottom-mobile, 12px)}.ptech-breadcrumb-bar{padding:var(--ptech-breadcrumb-padding-mobile, 8px 12px)}}\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: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }] });
|
|
3090
|
+
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:max-content}.end-content{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.end-content:empty{display:none}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.ptech-breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));gap:4px;font-weight:400;display:flex;align-items:center;white-space:nowrap;flex-shrink:0}.ptech-breadcrumb-item a{color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));text-decoration:none;padding-right:4px}.ptech-breadcrumb-item a:hover{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));text-decoration:underline}.ptech-breadcrumb-item .current-page{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));font-weight:600}.ptech-breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:var(--ptech-breadcrumb-separator, var(--app-muted, #b1b1b1))}@media (max-width: 599.98px){:host{margin-bottom:var(--ptech-breadcrumb-margin-bottom-mobile, 12px)}.ptech-breadcrumb-bar{padding:var(--ptech-breadcrumb-padding-mobile, 8px 12px);flex-wrap:wrap;row-gap:4px;overflow-x:hidden}.box{flex:1 1 100%;max-width:100%;min-width:0;overflow-x:auto}.end-content{flex:1 1 100%;justify-content:flex-end;margin-left:0}}\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: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }] });
|
|
3091
3091
|
}
|
|
3092
3092
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
3093
3093
|
type: Component,
|
|
@@ -3116,7 +3116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3116
3116
|
<ng-content select="[end-content]"></ng-content>
|
|
3117
3117
|
</div>
|
|
3118
3118
|
</nav>
|
|
3119
|
-
`, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:max-content}.end-content{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.end-content:empty{display:none}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.ptech-breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));gap:4px;font-weight:400;display:flex;align-items:center;white-space:nowrap;flex-shrink:0}.ptech-breadcrumb-item a{color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));text-decoration:none;padding-right:4px}.ptech-breadcrumb-item a:hover{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));text-decoration:underline}.ptech-breadcrumb-item .current-page{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));font-weight:600}.ptech-breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:var(--ptech-breadcrumb-separator, var(--app-muted, #b1b1b1))}@media (max-width: 599.98px){:host{margin-bottom:var(--ptech-breadcrumb-margin-bottom-mobile, 12px)}.ptech-breadcrumb-bar{padding:var(--ptech-breadcrumb-padding-mobile, 8px 12px)}}\n"] }]
|
|
3119
|
+
`, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:max-content}.end-content{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.end-content:empty{display:none}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.ptech-breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));gap:4px;font-weight:400;display:flex;align-items:center;white-space:nowrap;flex-shrink:0}.ptech-breadcrumb-item a{color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));text-decoration:none;padding-right:4px}.ptech-breadcrumb-item a:hover{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));text-decoration:underline}.ptech-breadcrumb-item .current-page{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));font-weight:600}.ptech-breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:var(--ptech-breadcrumb-separator, var(--app-muted, #b1b1b1))}@media (max-width: 599.98px){:host{margin-bottom:var(--ptech-breadcrumb-margin-bottom-mobile, 12px)}.ptech-breadcrumb-bar{padding:var(--ptech-breadcrumb-padding-mobile, 8px 12px);flex-wrap:wrap;row-gap:4px;overflow-x:hidden}.box{flex:1 1 100%;max-width:100%;min-width:0;overflow-x:auto}.end-content{flex:1 1 100%;justify-content:flex-end;margin-left:0}}\n"] }]
|
|
3120
3120
|
}], propDecorators: { routes: [{
|
|
3121
3121
|
type: Input
|
|
3122
3122
|
}], hasStartIcon: [{
|
|
@@ -3268,6 +3268,10 @@ class NavComponent {
|
|
|
3268
3268
|
this.cdr = cdr;
|
|
3269
3269
|
this.breakpointObserver = breakpointObserver;
|
|
3270
3270
|
this.router = router;
|
|
3271
|
+
// Material applies fixedTopGap during the first render. Resolve the
|
|
3272
|
+
// breakpoint synchronously so a mobile drawer never keeps the desktop
|
|
3273
|
+
// gap after the async BreakpointObserver emission arrives.
|
|
3274
|
+
this.isMobile = this.breakpointObserver.isMatched('(max-width: 767px)');
|
|
3271
3275
|
this.navOpen$ = this.navService.navState$;
|
|
3272
3276
|
}
|
|
3273
3277
|
get currentLevel() {
|
|
@@ -3408,7 +3412,7 @@ class NavComponent {
|
|
|
3408
3412
|
</mat-sidenav>
|
|
3409
3413
|
|
|
3410
3414
|
</mat-sidenav-container>
|
|
3411
|
-
`, 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}.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;position:relative;height:48px;padding-right:48px!important;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}:host ::ng-deep .list-item-level1 .mdc-list-item__content{display:flex;align-items:center;min-width:0;width:100%}:host ::ng-deep .list-item-level1 .mdc-list-item__primary-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;flex:0 0 auto;position:absolute;right:16px;top:50%;margin:0!important;transform:translateY(-50%)}.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:
|
|
3415
|
+
`, 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}.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;width:clamp(248px,22vw,292px)}.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;position:relative;height:48px;padding-right:48px!important;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}:host ::ng-deep .list-item-level1 .mdc-list-item__content{display:flex;align-items:center;min-width:0;width:100%}:host ::ng-deep .list-item-level1 .mdc-list-item__primary-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;flex:0 0 auto;position:absolute;right:16px;top:50%;margin:0!important;transform:translateY(-50%)}.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:min(86vw,304px)}.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 44px 0 12px!important}.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{right:12px}.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 (max-width: 767px){:host{position:fixed!important;inset:0!important;z-index:9999!important;pointer-events:none;display:block!important}:host.ptech-mobile-open{pointer-events:auto}:host .sidenav-container,:host ::ng-deep .sidenav-container.mat-drawer-container{position:absolute!important;inset:0!important;height:100%!important}mat-sidenav.sidenav,:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{border-top-right-radius:0!important;border-bottom-right-radius:0!important}mat-sidenav.sidenav{top:0!important;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: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i5$1.MatSidenav, selector: "mat-sidenav", inputs: ["fixedInViewport", "fixedTopGap", "fixedBottomGap"], exportAs: ["matSidenav"] }, { kind: "component", type: i5$1.MatSidenavContainer, selector: "mat-sidenav-container", exportAs: ["matSidenavContainer"] }, { kind: "component", type: i6.MatNavList, selector: "mat-nav-list", exportAs: ["matNavList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "component", type: i6.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 });
|
|
3412
3416
|
}
|
|
3413
3417
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavComponent, decorators: [{
|
|
3414
3418
|
type: Component,
|
|
@@ -3469,7 +3473,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3469
3473
|
</mat-sidenav>
|
|
3470
3474
|
|
|
3471
3475
|
</mat-sidenav-container>
|
|
3472
|
-
`, 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}.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;position:relative;height:48px;padding-right:48px!important;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}:host ::ng-deep .list-item-level1 .mdc-list-item__content{display:flex;align-items:center;min-width:0;width:100%}:host ::ng-deep .list-item-level1 .mdc-list-item__primary-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;flex:0 0 auto;position:absolute;right:16px;top:50%;margin:0!important;transform:translateY(-50%)}.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:
|
|
3476
|
+
`, 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}.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;width:clamp(248px,22vw,292px)}.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;position:relative;height:48px;padding-right:48px!important;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}:host ::ng-deep .list-item-level1 .mdc-list-item__content{display:flex;align-items:center;min-width:0;width:100%}:host ::ng-deep .list-item-level1 .mdc-list-item__primary-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;flex:0 0 auto;position:absolute;right:16px;top:50%;margin:0!important;transform:translateY(-50%)}.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:min(86vw,304px)}.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 44px 0 12px!important}.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{right:12px}.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 (max-width: 767px){:host{position:fixed!important;inset:0!important;z-index:9999!important;pointer-events:none;display:block!important}:host.ptech-mobile-open{pointer-events:auto}:host .sidenav-container,:host ::ng-deep .sidenav-container.mat-drawer-container{position:absolute!important;inset:0!important;height:100%!important}mat-sidenav.sidenav,:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{border-top-right-radius:0!important;border-bottom-right-radius:0!important}mat-sidenav.sidenav{top:0!important;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"] }]
|
|
3473
3477
|
}], ctorParameters: () => [{ type: NavService }, { type: i0.ChangeDetectorRef }, { type: i1.BreakpointObserver }, { type: i3$2.Router }], propDecorators: { links: [{
|
|
3474
3478
|
type: Input
|
|
3475
3479
|
}], currentModuleName: [{
|
|
@@ -3502,28 +3506,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3502
3506
|
|
|
3503
3507
|
class FooterComponent {
|
|
3504
3508
|
version = '';
|
|
3509
|
+
versionLabel = 'v';
|
|
3505
3510
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3506
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: FooterComponent, isStandalone: true, selector: "ptech-footer", inputs: { version: "version" }, ngImport: i0, template: `
|
|
3511
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: FooterComponent, isStandalone: true, selector: "ptech-footer", inputs: { version: "version", versionLabel: "versionLabel" }, ngImport: i0, template: `
|
|
3507
3512
|
<mat-toolbar class="footer">
|
|
3508
|
-
<ng-content></ng-content>
|
|
3509
|
-
<span>
|
|
3510
|
-
|
|
3513
|
+
<span class="footer-clock"><ng-content></ng-content></span>
|
|
3514
|
+
<span class="footer-version" *ngIf="version">
|
|
3515
|
+
<span class="footer-version-label">{{ versionLabel }}</span>
|
|
3516
|
+
<strong>{{ version }}</strong>
|
|
3511
3517
|
</span>
|
|
3512
3518
|
</mat-toolbar>
|
|
3513
|
-
`, isInline: true, styles: [".footer{position:relative;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:
|
|
3519
|
+
`, isInline: true, styles: [".footer{position:relative;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:clamp(12px,2vw,24px);min-height:56px;padding:8px clamp(12px,3vw,24px);background:linear-gradient(315deg,var(--ptech-footer-gradient-start, #3d454e),var(--ptech-footer-gradient-end, #5a6573));animation:ftgradient 10s ease infinite;color:var(--ptech-footer-text-color, #fff)}.footer-clock,.footer-version{display:inline-flex;align-items:center;min-width:0;font-size:.9rem;line-height:1.25}.footer-version{gap:3px;padding-left:clamp(12px,2vw,24px);border-left:1px solid color-mix(in srgb,currentColor 35%,transparent)}.footer-version-label{opacity:.72}@media (max-width: 599.98px){.footer{justify-content:space-between;gap:8px;min-height:52px}.footer-clock,.footer-version{font-size:.78rem}.footer-version{padding-left:10px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i3$3.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
3514
3520
|
}
|
|
3515
3521
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FooterComponent, decorators: [{
|
|
3516
3522
|
type: Component,
|
|
3517
3523
|
args: [{ selector: 'ptech-footer', imports: [CommonModule, CoreMaterialModule], template: `
|
|
3518
3524
|
<mat-toolbar class="footer">
|
|
3519
|
-
<ng-content></ng-content>
|
|
3520
|
-
<span>
|
|
3521
|
-
|
|
3525
|
+
<span class="footer-clock"><ng-content></ng-content></span>
|
|
3526
|
+
<span class="footer-version" *ngIf="version">
|
|
3527
|
+
<span class="footer-version-label">{{ versionLabel }}</span>
|
|
3528
|
+
<strong>{{ version }}</strong>
|
|
3522
3529
|
</span>
|
|
3523
3530
|
</mat-toolbar>
|
|
3524
|
-
`, styles: [".footer{position:relative;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:
|
|
3531
|
+
`, styles: [".footer{position:relative;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:clamp(12px,2vw,24px);min-height:56px;padding:8px clamp(12px,3vw,24px);background:linear-gradient(315deg,var(--ptech-footer-gradient-start, #3d454e),var(--ptech-footer-gradient-end, #5a6573));animation:ftgradient 10s ease infinite;color:var(--ptech-footer-text-color, #fff)}.footer-clock,.footer-version{display:inline-flex;align-items:center;min-width:0;font-size:.9rem;line-height:1.25}.footer-version{gap:3px;padding-left:clamp(12px,2vw,24px);border-left:1px solid color-mix(in srgb,currentColor 35%,transparent)}.footer-version-label{opacity:.72}@media (max-width: 599.98px){.footer{justify-content:space-between;gap:8px;min-height:52px}.footer-clock,.footer-version{font-size:.78rem}.footer-version{padding-left:10px}}\n"] }]
|
|
3525
3532
|
}], propDecorators: { version: [{
|
|
3526
3533
|
type: Input
|
|
3534
|
+
}], versionLabel: [{
|
|
3535
|
+
type: Input
|
|
3527
3536
|
}] } });
|
|
3528
3537
|
|
|
3529
3538
|
class LoadingService {
|
|
@@ -6804,6 +6813,9 @@ class TableComponent {
|
|
|
6804
6813
|
shadow = true;
|
|
6805
6814
|
disabled = false;
|
|
6806
6815
|
emptyText = 'Sem dados.';
|
|
6816
|
+
emptyAriaLabel = '';
|
|
6817
|
+
tableAriaLabel = '';
|
|
6818
|
+
paginatorAriaLabel = '';
|
|
6807
6819
|
stickyHeader = false;
|
|
6808
6820
|
rowClickable = false;
|
|
6809
6821
|
data = [];
|
|
@@ -6853,6 +6865,8 @@ class TableComponent {
|
|
|
6853
6865
|
selection = new SelectionModel(this.selectMultipleRow, []);
|
|
6854
6866
|
selectedIdSet = new Set();
|
|
6855
6867
|
dataDiffer;
|
|
6868
|
+
clientPageIndex = 0;
|
|
6869
|
+
clientPageSize = 10;
|
|
6856
6870
|
matTable;
|
|
6857
6871
|
cellTemplates;
|
|
6858
6872
|
actionsTemplate;
|
|
@@ -6887,13 +6901,27 @@ class TableComponent {
|
|
|
6887
6901
|
return !!this.actionsTemplate || !!this.actions?.length;
|
|
6888
6902
|
}
|
|
6889
6903
|
get resolvedTotal() {
|
|
6890
|
-
|
|
6904
|
+
if (!this.usesServerPagination) {
|
|
6905
|
+
return this.data?.length ?? 0;
|
|
6906
|
+
}
|
|
6907
|
+
return this.totalElements ?? this.paginatorLength ?? this.total ?? this.data?.length ?? 0;
|
|
6891
6908
|
}
|
|
6892
6909
|
get resolvedPageIndex() {
|
|
6893
|
-
return this.
|
|
6910
|
+
return this.usesServerPagination
|
|
6911
|
+
? (this.paginatorPageIndex ?? this.pageIndex ?? 0)
|
|
6912
|
+
: this.clientPageIndex;
|
|
6894
6913
|
}
|
|
6895
6914
|
get resolvedPageSize() {
|
|
6896
|
-
return this.
|
|
6915
|
+
return this.usesServerPagination
|
|
6916
|
+
? (this.paginatorPageSize ?? this.pageSize ?? 10)
|
|
6917
|
+
: this.clientPageSize;
|
|
6918
|
+
}
|
|
6919
|
+
get usesServerPagination() {
|
|
6920
|
+
const declaredTotal = this.totalElements ?? this.paginatorLength ?? this.total ?? 0;
|
|
6921
|
+
const declaredPage = this.paginatorPageIndex ?? this.pageIndex ?? 0;
|
|
6922
|
+
return this.serverSidePagination || this.backendPagination
|
|
6923
|
+
|| declaredTotal > (this.data?.length ?? 0)
|
|
6924
|
+
|| declaredPage > 0;
|
|
6897
6925
|
}
|
|
6898
6926
|
normalizeColumn(column) {
|
|
6899
6927
|
const key = this.columnKey(column);
|
|
@@ -6933,6 +6961,12 @@ class TableComponent {
|
|
|
6933
6961
|
if (this.hasActionsColumn)
|
|
6934
6962
|
cols.push('__actions');
|
|
6935
6963
|
this.displayedColumns = cols;
|
|
6964
|
+
if (changes['pageIndex'] || changes['paginatorPageIndex']) {
|
|
6965
|
+
this.clientPageIndex = this.paginatorPageIndex ?? this.pageIndex ?? 0;
|
|
6966
|
+
}
|
|
6967
|
+
if (changes['pageSize'] || changes['paginatorPageSize']) {
|
|
6968
|
+
this.clientPageSize = this.paginatorPageSize ?? this.pageSize ?? 10;
|
|
6969
|
+
}
|
|
6936
6970
|
if (changes['data']) {
|
|
6937
6971
|
this.dataDiffer = this.iterableDiffers.find(this.data || []).create();
|
|
6938
6972
|
this.syncRenderData();
|
|
@@ -6961,7 +6995,16 @@ class TableComponent {
|
|
|
6961
6995
|
}
|
|
6962
6996
|
}
|
|
6963
6997
|
syncRenderData() {
|
|
6964
|
-
|
|
6998
|
+
const rows = this.data || [];
|
|
6999
|
+
if (!this.paginator || this.usesServerPagination) {
|
|
7000
|
+
this.renderData = [...rows];
|
|
7001
|
+
return;
|
|
7002
|
+
}
|
|
7003
|
+
const pageSize = Math.max(1, this.clientPageSize || 10);
|
|
7004
|
+
const lastPageIndex = Math.max(0, Math.ceil(rows.length / pageSize) - 1);
|
|
7005
|
+
this.clientPageIndex = Math.min(Math.max(0, this.clientPageIndex), lastPageIndex);
|
|
7006
|
+
const start = this.clientPageIndex * pageSize;
|
|
7007
|
+
this.renderData = rows.slice(start, start + pageSize);
|
|
6965
7008
|
}
|
|
6966
7009
|
// selecionar/deselecionar todos da PÁGINA atual
|
|
6967
7010
|
toggleAllRows() {
|
|
@@ -7037,6 +7080,12 @@ class TableComponent {
|
|
|
7037
7080
|
return this.selectedIdSet.has(this.getRowId(row));
|
|
7038
7081
|
}
|
|
7039
7082
|
onPage(ev) {
|
|
7083
|
+
if (!this.usesServerPagination) {
|
|
7084
|
+
this.clientPageIndex = ev.pageIndex;
|
|
7085
|
+
this.clientPageSize = ev.pageSize;
|
|
7086
|
+
this.syncRenderData();
|
|
7087
|
+
this.matTable?.renderRows();
|
|
7088
|
+
}
|
|
7040
7089
|
const pageEvent = {
|
|
7041
7090
|
pageIndex: ev.pageIndex,
|
|
7042
7091
|
pageSize: ev.pageSize,
|
|
@@ -7191,7 +7240,7 @@ class TableComponent {
|
|
|
7191
7240
|
});
|
|
7192
7241
|
}
|
|
7193
7242
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
7194
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", shadow: "shadow", disabled: "disabled", emptyText: "emptyText", stickyHeader: "stickyHeader", rowClickable: "rowClickable", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", totalElements: "totalElements", paginatorLength: "paginatorLength", paginatorPageIndex: "paginatorPageIndex", paginatorPageSize: "paginatorPageSize", serverSidePagination: "serverSidePagination", backendPagination: "backendPagination", paginator: "paginator", sortField: "sortField", sortDirection: "sortDirection", serverSideSorting: "serverSideSorting", columns: "columns", actions: "actions", actionsDisplay: "actionsDisplay", actionsMenuLabel: "actionsMenuLabel", actionsTriggerColor: "actionsTriggerColor", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", pageChange: "pageChange", sortChange: "sortChange", rowClick: "rowClick", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: ["actions"], descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true }, { propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
7243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", shadow: "shadow", disabled: "disabled", emptyText: "emptyText", emptyAriaLabel: "emptyAriaLabel", tableAriaLabel: "tableAriaLabel", paginatorAriaLabel: "paginatorAriaLabel", stickyHeader: "stickyHeader", rowClickable: "rowClickable", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", totalElements: "totalElements", paginatorLength: "paginatorLength", paginatorPageIndex: "paginatorPageIndex", paginatorPageSize: "paginatorPageSize", serverSidePagination: "serverSidePagination", backendPagination: "backendPagination", paginator: "paginator", sortField: "sortField", sortDirection: "sortDirection", serverSideSorting: "serverSideSorting", columns: "columns", actions: "actions", actionsDisplay: "actionsDisplay", actionsMenuLabel: "actionsMenuLabel", actionsTriggerColor: "actionsTriggerColor", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", pageChange: "pageChange", sortChange: "sortChange", rowClick: "rowClick", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: ["actions"], descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true }, { propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
7195
7244
|
<div class="table-container mat-elevation-z8" [class.disabled]="disabled">
|
|
7196
7245
|
<div class="header-row" *ngIf="title">
|
|
7197
7246
|
<h3>{{ title }}</h3>
|
|
@@ -7213,6 +7262,7 @@ class TableComponent {
|
|
|
7213
7262
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
7214
7263
|
<table
|
|
7215
7264
|
mat-table
|
|
7265
|
+
[attr.aria-label]="tableAriaLabel || title || null"
|
|
7216
7266
|
matSort
|
|
7217
7267
|
[matSortActive]="sortField"
|
|
7218
7268
|
[matSortDirection]="sortDirection"
|
|
@@ -7278,7 +7328,6 @@ class TableComponent {
|
|
|
7278
7328
|
[style.width]="cssWidth(c.width)"
|
|
7279
7329
|
[mat-sort-header]="columnKey(c)"
|
|
7280
7330
|
[disabled]="!c.sortable"
|
|
7281
|
-
[sticky]="stickyHeader"
|
|
7282
7331
|
>
|
|
7283
7332
|
<ng-container *ngIf="c.templateHeader; else defaultHeader">
|
|
7284
7333
|
<ng-container *ngTemplateOutlet="c.templateHeader; context: { $implicit: data, column: c }"></ng-container>
|
|
@@ -7433,11 +7482,13 @@ class TableComponent {
|
|
|
7433
7482
|
<div
|
|
7434
7483
|
*ngIf="responsiveCards"
|
|
7435
7484
|
class="cards-container hide-on-desktop"
|
|
7485
|
+
role="list"
|
|
7436
7486
|
>
|
|
7437
7487
|
<div
|
|
7438
7488
|
*ngFor="let row of renderData; let rowIndex = index"
|
|
7439
7489
|
class="card mat-elevation-z8"
|
|
7440
7490
|
[class.selected]="isSelected(row)"
|
|
7491
|
+
role="listitem"
|
|
7441
7492
|
>
|
|
7442
7493
|
<!-- seleção no card -->
|
|
7443
7494
|
<div *ngIf="selectRow" class="card-select">
|
|
@@ -7604,6 +7655,7 @@ class TableComponent {
|
|
|
7604
7655
|
<mat-paginator
|
|
7605
7656
|
*ngIf="paginator"
|
|
7606
7657
|
class="mat-paginator"
|
|
7658
|
+
[attr.aria-label]="paginatorAriaLabel || null"
|
|
7607
7659
|
[length]="resolvedTotal"
|
|
7608
7660
|
[pageIndex]="resolvedPageIndex"
|
|
7609
7661
|
[pageSize]="resolvedPageSize"
|
|
@@ -7614,7 +7666,8 @@ class TableComponent {
|
|
|
7614
7666
|
>
|
|
7615
7667
|
</mat-paginator>
|
|
7616
7668
|
|
|
7617
|
-
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px"
|
|
7669
|
+
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px"
|
|
7670
|
+
role="status" [attr.aria-label]="emptyAriaLabel || null">
|
|
7618
7671
|
<ng-container *ngIf="emptyTemplate; else defaultEmpty">
|
|
7619
7672
|
<ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
|
|
7620
7673
|
</ng-container>
|
|
@@ -7652,6 +7705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7652
7705
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
7653
7706
|
<table
|
|
7654
7707
|
mat-table
|
|
7708
|
+
[attr.aria-label]="tableAriaLabel || title || null"
|
|
7655
7709
|
matSort
|
|
7656
7710
|
[matSortActive]="sortField"
|
|
7657
7711
|
[matSortDirection]="sortDirection"
|
|
@@ -7717,7 +7771,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7717
7771
|
[style.width]="cssWidth(c.width)"
|
|
7718
7772
|
[mat-sort-header]="columnKey(c)"
|
|
7719
7773
|
[disabled]="!c.sortable"
|
|
7720
|
-
[sticky]="stickyHeader"
|
|
7721
7774
|
>
|
|
7722
7775
|
<ng-container *ngIf="c.templateHeader; else defaultHeader">
|
|
7723
7776
|
<ng-container *ngTemplateOutlet="c.templateHeader; context: { $implicit: data, column: c }"></ng-container>
|
|
@@ -7872,11 +7925,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7872
7925
|
<div
|
|
7873
7926
|
*ngIf="responsiveCards"
|
|
7874
7927
|
class="cards-container hide-on-desktop"
|
|
7928
|
+
role="list"
|
|
7875
7929
|
>
|
|
7876
7930
|
<div
|
|
7877
7931
|
*ngFor="let row of renderData; let rowIndex = index"
|
|
7878
7932
|
class="card mat-elevation-z8"
|
|
7879
7933
|
[class.selected]="isSelected(row)"
|
|
7934
|
+
role="listitem"
|
|
7880
7935
|
>
|
|
7881
7936
|
<!-- seleção no card -->
|
|
7882
7937
|
<div *ngIf="selectRow" class="card-select">
|
|
@@ -8043,6 +8098,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8043
8098
|
<mat-paginator
|
|
8044
8099
|
*ngIf="paginator"
|
|
8045
8100
|
class="mat-paginator"
|
|
8101
|
+
[attr.aria-label]="paginatorAriaLabel || null"
|
|
8046
8102
|
[length]="resolvedTotal"
|
|
8047
8103
|
[pageIndex]="resolvedPageIndex"
|
|
8048
8104
|
[pageSize]="resolvedPageSize"
|
|
@@ -8053,7 +8109,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8053
8109
|
>
|
|
8054
8110
|
</mat-paginator>
|
|
8055
8111
|
|
|
8056
|
-
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px"
|
|
8112
|
+
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px"
|
|
8113
|
+
role="status" [attr.aria-label]="emptyAriaLabel || null">
|
|
8057
8114
|
<ng-container *ngIf="emptyTemplate; else defaultEmpty">
|
|
8058
8115
|
<ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
|
|
8059
8116
|
</ng-container>
|
|
@@ -8076,6 +8133,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8076
8133
|
type: Input
|
|
8077
8134
|
}], emptyText: [{
|
|
8078
8135
|
type: Input
|
|
8136
|
+
}], emptyAriaLabel: [{
|
|
8137
|
+
type: Input
|
|
8138
|
+
}], tableAriaLabel: [{
|
|
8139
|
+
type: Input
|
|
8140
|
+
}], paginatorAriaLabel: [{
|
|
8141
|
+
type: Input
|
|
8079
8142
|
}], stickyHeader: [{
|
|
8080
8143
|
type: Input
|
|
8081
8144
|
}], rowClickable: [{
|
|
@@ -9562,11 +9625,11 @@ class PtechTabsComponent {
|
|
|
9562
9625
|
<ptech-tab [active]="tab.active" [template]="tab.template" [data]="tab.data"></ptech-tab>
|
|
9563
9626
|
</ng-container>
|
|
9564
9627
|
</mat-tab-nav-panel>
|
|
9565
|
-
`, isInline: true, styles: [":host{display:block}.ptech-tabs-nav{background:var(--ptech-tabs-background, transparent);border-bottom:1px solid var(--ptech-tab-border-color, var(--app-border-color, rgba(0,0,0,.12)));--mat-tab-background-color: var(--ptech-tabs-background, transparent);--mat-tab-foreground-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-divider-color: var(--ptech-tab-border-color, transparent);--mat-tab-inactive-label-text-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-inactive-focus-label-text-color: var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-inactive-hover-label-text-color: var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-inactive-ripple-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-active-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-focus-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-hover-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-ripple-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-active-focus-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-active-hover-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-disabled-ripple-color: var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)));--mat-tab-pagination-icon-color: var(--ptech-tab-icon-color, var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6))))}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden}.ptech-tabs-panel{display:block;padding-top:var(--ptech-tabs-content-gap, 24px)}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content;color:var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)))}a[mat-tab-link] mat-icon{color:var(--ptech-tab-icon-color, var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6))))}a[mat-tab-link].mdc-tab--active{color:var(--ptech-tab-active-color, var(--app-primary, #3f51b5))}a[mat-tab-link].mdc-tab--active mat-icon{color:var(--ptech-tab-active-color, var(--app-primary, #3f51b5))}a[mat-tab-link]:hover:not(.mat-mdc-tab-disabled):not(.mdc-tab--active){color:var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)))}a[mat-tab-link]:focus-visible{outline:2px solid var(--ptech-tab-active-color, var(--app-primary, #3f51b5));outline-offset:-2px;border-radius:4px}a[mat-tab-link].mat-mdc-tab-disabled{color:var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)))!important;pointer-events:none}a[mat-tab-link].mat-mdc-tab-disabled mat-icon{color:var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)))!important}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--app-chip-bg, rgba(0,0,0,.08));font-size:12px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { 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: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$5.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i4$5.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i4$5.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "component", type: PtechTabComponent, selector: "ptech-tab", inputs: ["index", "label", "icon", "badge", "counter", "closeable", "disabled", "template", "data", "routerLink", "active"], outputs: ["selectionChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9628
|
+
`, isInline: true, styles: [":host{display:block}.ptech-tabs-nav{background:var(--ptech-tabs-background, transparent);border-bottom:1px solid var(--ptech-tab-border-color, var(--app-border-color, rgba(0,0,0,.12)));--mat-tab-background-color: var(--ptech-tabs-background, transparent);--mat-tab-foreground-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-divider-color: var(--ptech-tab-border-color, transparent);--mat-tab-inactive-label-text-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-inactive-focus-label-text-color: var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-inactive-hover-label-text-color: var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-inactive-ripple-color: var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)));--mat-tab-active-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-focus-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-hover-label-text-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-ripple-color: var(--ptech-tab-active-color, var(--app-primary, #3f51b5));--mat-tab-active-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-active-focus-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-active-hover-indicator-color: var(--ptech-tab-indicator-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)));--mat-tab-disabled-ripple-color: var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)));--mat-tab-pagination-icon-color: var(--ptech-tab-icon-color, var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6))))}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden}.ptech-tabs-panel{display:block;padding-top:var(--ptech-tabs-content-gap, 24px)}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content;color:var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6)))}a[mat-tab-link] mat-icon{color:var(--ptech-tab-icon-color, var(--ptech-tab-color, var(--app-text-muted, rgba(0,0,0,.6))))}a[mat-tab-link].mdc-tab--active{color:var(--ptech-tab-active-color, var(--app-primary, #3f51b5))}a[mat-tab-link].mdc-tab--active mat-icon{color:var(--ptech-tab-active-color, var(--app-primary, #3f51b5))}a[mat-tab-link]:hover:not(.mat-mdc-tab-disabled):not(.mdc-tab--active){color:var(--ptech-tab-hover-color, var(--ptech-tab-active-color, var(--app-primary, #3f51b5)))}a[mat-tab-link]:focus-visible{outline:2px solid var(--ptech-tab-active-color, var(--app-primary, #3f51b5));outline-offset:-2px;border-radius:4px}a[mat-tab-link].mat-mdc-tab-disabled{color:var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)))!important;pointer-events:none}a[mat-tab-link].mat-mdc-tab-disabled mat-icon{color:var(--ptech-tab-disabled-color, var(--app-text-muted, rgba(0,0,0,.38)))!important}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--app-chip-bg, rgba(0,0,0,.08));font-size:12px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { 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: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$5.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i4$5.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i4$5.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: PtechTabComponent, selector: "ptech-tab", inputs: ["index", "label", "icon", "badge", "counter", "closeable", "disabled", "template", "data", "routerLink", "active"], outputs: ["selectionChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9566
9629
|
}
|
|
9567
9630
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, decorators: [{
|
|
9568
9631
|
type: Component,
|
|
9569
|
-
args: [{ selector: 'ptech-tabs', imports: [CoreMaterialModule, PtechTabComponent], template: `
|
|
9632
|
+
args: [{ selector: 'ptech-tabs', imports: [CoreMaterialModule, RouterModule, PtechTabComponent], template: `
|
|
9570
9633
|
<nav mat-tab-nav-bar [tabPanel]="tabPanel" class="ptech-tabs-nav" [class.scrollable]="scrollable">
|
|
9571
9634
|
<a mat-tab-link
|
|
9572
9635
|
*ngFor="let tab of projectedTabs; trackBy: trackByTab"
|
|
@@ -9898,6 +9961,7 @@ class PtechCarouselComponent {
|
|
|
9898
9961
|
showIndicators = true;
|
|
9899
9962
|
showNavigation = true;
|
|
9900
9963
|
ariaLabel = 'Carrossel';
|
|
9964
|
+
slideTemplate;
|
|
9901
9965
|
itemClick = new EventEmitter();
|
|
9902
9966
|
activeIndexChange = new EventEmitter();
|
|
9903
9967
|
activeIndex = 0;
|
|
@@ -9999,7 +10063,7 @@ class PtechCarouselComponent {
|
|
|
9999
10063
|
}
|
|
10000
10064
|
}
|
|
10001
10065
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechCarouselComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10002
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechCarouselComponent, isStandalone: true, selector: "ptech-carousel", inputs: { items: "items", autoPlay: "autoPlay", interval: "interval", loop: "loop", pauseOnHover: "pauseOnHover", showIndicators: "showIndicators", showNavigation: "showNavigation", ariaLabel: "ariaLabel" }, outputs: { itemClick: "itemClick", activeIndexChange: "activeIndexChange" }, usesOnChanges: true, ngImport: i0, template: `
|
|
10066
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechCarouselComponent, isStandalone: true, selector: "ptech-carousel", inputs: { items: "items", autoPlay: "autoPlay", interval: "interval", loop: "loop", pauseOnHover: "pauseOnHover", showIndicators: "showIndicators", showNavigation: "showNavigation", ariaLabel: "ariaLabel", slideTemplate: "slideTemplate" }, outputs: { itemClick: "itemClick", activeIndexChange: "activeIndexChange" }, usesOnChanges: true, ngImport: i0, template: `
|
|
10003
10067
|
<div class="ptech-carousel"
|
|
10004
10068
|
role="region"
|
|
10005
10069
|
[attr.aria-roledescription]="'carousel'"
|
|
@@ -10018,6 +10082,11 @@ class PtechCarouselComponent {
|
|
|
10018
10082
|
[attr.aria-hidden]="i !== activeIndex"
|
|
10019
10083
|
[attr.aria-roledescription]="'slide'"
|
|
10020
10084
|
[attr.aria-label]="(i + 1) + ' / ' + items.length">
|
|
10085
|
+
<ng-container *ngIf="slideTemplate; else defaultSlide"
|
|
10086
|
+
[ngTemplateOutlet]="slideTemplate"
|
|
10087
|
+
[ngTemplateOutletContext]="{$implicit: item, index: i, active: i === activeIndex}">
|
|
10088
|
+
</ng-container>
|
|
10089
|
+
<ng-template #defaultSlide>
|
|
10021
10090
|
<img *ngIf="item.image" [src]="item.image" [alt]="item.alt || item.title || ''" class="ptech-carousel__image" />
|
|
10022
10091
|
<div class="ptech-carousel__fallback" *ngIf="!item.image">
|
|
10023
10092
|
<ptech-icon icon="image"></ptech-icon>
|
|
@@ -10030,6 +10099,7 @@ class PtechCarouselComponent {
|
|
|
10030
10099
|
class="ptech-carousel__action"
|
|
10031
10100
|
(click)="onItemAction(item)">{{ item.actionLabel }}</button>
|
|
10032
10101
|
</div>
|
|
10102
|
+
</ng-template>
|
|
10033
10103
|
</div>
|
|
10034
10104
|
</div>
|
|
10035
10105
|
</div>
|
|
@@ -10051,7 +10121,7 @@ class PtechCarouselComponent {
|
|
|
10051
10121
|
[attr.aria-current]="i === activeIndex"></button>
|
|
10052
10122
|
</div>
|
|
10053
10123
|
</div>
|
|
10054
|
-
`, isInline: true, styles: [":host{display:block;min-width:0}.ptech-carousel{position:relative;width:100%;min-width:0;border-radius:var(--ptech-carousel-radius, var(--app-radius-lg, 12px));overflow:hidden;background:var(--ptech-carousel-bg, var(--app-surface, #ffffff));box-shadow:var(--ptech-carousel-shadow, var(--app-shadow-sm, 0 8px 24px rgba(15, 23, 42, .08)));touch-action:pan-y;outline:none}.ptech-carousel:focus-visible{box-shadow:0 0 0 3px var(--app-primary, #3f51b5)}.ptech-carousel__viewport{overflow:hidden;width:100%;min-width:0;contain:layout paint}.ptech-carousel__track{display:flex;min-width:0;transition:transform .4s ease}@media (prefers-reduced-motion: reduce){.ptech-carousel__track{transition:none}}.ptech-carousel__slide{flex:0 0 100%;min-width:100%;position:relative}.ptech-carousel__image{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}.ptech-carousel__fallback{width:100%;height:240px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-text-muted, rgba(0,0,0,.4))}.ptech-carousel__fallback ptech-icon{font-size:48px}.ptech-carousel__caption{position:absolute;left:0;right:0;bottom:0;padding:var(--app-space-6, 24px);background:linear-gradient(0deg,#061326d1,#06132600);color:#fff}.ptech-carousel__caption h3{margin:0 0 8px;font-size:22px;font-weight:700}.ptech-carousel__caption p{margin:0 0 12px;font-size:15px;opacity:.9;max-width:520px}.ptech-carousel__action{display:inline-block;border:0;cursor:pointer;padding:8px 18px;border-radius:var(--app-radius-md, 8px);background:var(--app-primary, #3f51b5);color:#fff;font-weight:600;font-size:14px}.ptech-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;background:#ffffffe6;color:#111827;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px #0f172a2e;z-index:2}.ptech-carousel__nav--prev{left:12px}.ptech-carousel__nav--next{right:12px}.ptech-carousel__indicators{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;z-index:2}.ptech-carousel__dot{width:8px;height:8px;border-radius:50%;border:0;background:#ffffff8c;cursor:pointer;padding:0}.ptech-carousel__dot--active{background:#fff;width:22px;border-radius:4px}@media (max-width: 600px){.ptech-carousel__image,.ptech-carousel__fallback{max-height:220px}.ptech-carousel__caption{padding:
|
|
10124
|
+
`, isInline: true, styles: [":host{display:block;min-width:0}.ptech-carousel{position:relative;width:100%;min-width:0;border-radius:var(--ptech-carousel-radius, var(--app-radius-lg, 12px));overflow:hidden;background:var(--ptech-carousel-bg, var(--app-surface, #ffffff));box-shadow:var(--ptech-carousel-shadow, var(--app-shadow-sm, 0 8px 24px rgba(15, 23, 42, .08)));touch-action:pan-y;outline:none}.ptech-carousel:focus-visible{box-shadow:0 0 0 3px var(--app-primary, #3f51b5)}.ptech-carousel__viewport{overflow:hidden;width:100%;min-width:0;contain:layout paint}.ptech-carousel__track{display:flex;min-width:0;transition:transform .4s ease}@media (prefers-reduced-motion: reduce){.ptech-carousel__track{transition:none}}.ptech-carousel__slide{flex:0 0 100%;min-width:100%;position:relative}.ptech-carousel__image{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}.ptech-carousel__fallback{width:100%;height:240px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-text-muted, rgba(0,0,0,.4))}.ptech-carousel__fallback ptech-icon{font-size:48px}.ptech-carousel__caption{position:absolute;left:0;right:0;bottom:0;padding:var(--app-space-6, 24px) 64px 44px;background:linear-gradient(0deg,#061326d1,#06132600);color:#fff}.ptech-carousel__caption h3{margin:0 0 8px;font-size:22px;font-weight:700}.ptech-carousel__caption p{margin:0 0 12px;font-size:15px;opacity:.9;max-width:520px}.ptech-carousel__action{display:inline-block;border:0;cursor:pointer;padding:8px 18px;border-radius:var(--app-radius-md, 8px);background:var(--app-primary, #3f51b5);color:#fff;font-weight:600;font-size:14px}.ptech-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;background:#ffffffe6;color:#111827;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px #0f172a2e;z-index:2}.ptech-carousel__nav--prev{left:12px}.ptech-carousel__nav--next{right:12px}.ptech-carousel__indicators{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;z-index:2}.ptech-carousel__dot{width:8px;height:8px;border-radius:50%;border:0;background:#ffffff8c;cursor:pointer;padding:0}.ptech-carousel__dot--active{background:#fff;width:22px;border-radius:4px}@media (max-width: 600px){.ptech-carousel__image,.ptech-carousel__fallback{max-height:220px}.ptech-carousel__caption{padding:16px 52px 40px}.ptech-carousel__caption h3{font-size:18px}.ptech-carousel__caption p{font-size:13px}.ptech-carousel__nav{width:34px;height:34px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { 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: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: IconComponent, selector: "ptech-icon", inputs: ["icon", "color", "size", "ariaHidden", "ariaLabel", "col"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10055
10125
|
}
|
|
10056
10126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechCarouselComponent, decorators: [{
|
|
10057
10127
|
type: Component,
|
|
@@ -10074,6 +10144,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10074
10144
|
[attr.aria-hidden]="i !== activeIndex"
|
|
10075
10145
|
[attr.aria-roledescription]="'slide'"
|
|
10076
10146
|
[attr.aria-label]="(i + 1) + ' / ' + items.length">
|
|
10147
|
+
<ng-container *ngIf="slideTemplate; else defaultSlide"
|
|
10148
|
+
[ngTemplateOutlet]="slideTemplate"
|
|
10149
|
+
[ngTemplateOutletContext]="{$implicit: item, index: i, active: i === activeIndex}">
|
|
10150
|
+
</ng-container>
|
|
10151
|
+
<ng-template #defaultSlide>
|
|
10077
10152
|
<img *ngIf="item.image" [src]="item.image" [alt]="item.alt || item.title || ''" class="ptech-carousel__image" />
|
|
10078
10153
|
<div class="ptech-carousel__fallback" *ngIf="!item.image">
|
|
10079
10154
|
<ptech-icon icon="image"></ptech-icon>
|
|
@@ -10086,6 +10161,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10086
10161
|
class="ptech-carousel__action"
|
|
10087
10162
|
(click)="onItemAction(item)">{{ item.actionLabel }}</button>
|
|
10088
10163
|
</div>
|
|
10164
|
+
</ng-template>
|
|
10089
10165
|
</div>
|
|
10090
10166
|
</div>
|
|
10091
10167
|
</div>
|
|
@@ -10107,7 +10183,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10107
10183
|
[attr.aria-current]="i === activeIndex"></button>
|
|
10108
10184
|
</div>
|
|
10109
10185
|
</div>
|
|
10110
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.ptech-carousel{position:relative;width:100%;min-width:0;border-radius:var(--ptech-carousel-radius, var(--app-radius-lg, 12px));overflow:hidden;background:var(--ptech-carousel-bg, var(--app-surface, #ffffff));box-shadow:var(--ptech-carousel-shadow, var(--app-shadow-sm, 0 8px 24px rgba(15, 23, 42, .08)));touch-action:pan-y;outline:none}.ptech-carousel:focus-visible{box-shadow:0 0 0 3px var(--app-primary, #3f51b5)}.ptech-carousel__viewport{overflow:hidden;width:100%;min-width:0;contain:layout paint}.ptech-carousel__track{display:flex;min-width:0;transition:transform .4s ease}@media (prefers-reduced-motion: reduce){.ptech-carousel__track{transition:none}}.ptech-carousel__slide{flex:0 0 100%;min-width:100%;position:relative}.ptech-carousel__image{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}.ptech-carousel__fallback{width:100%;height:240px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-text-muted, rgba(0,0,0,.4))}.ptech-carousel__fallback ptech-icon{font-size:48px}.ptech-carousel__caption{position:absolute;left:0;right:0;bottom:0;padding:var(--app-space-6, 24px);background:linear-gradient(0deg,#061326d1,#06132600);color:#fff}.ptech-carousel__caption h3{margin:0 0 8px;font-size:22px;font-weight:700}.ptech-carousel__caption p{margin:0 0 12px;font-size:15px;opacity:.9;max-width:520px}.ptech-carousel__action{display:inline-block;border:0;cursor:pointer;padding:8px 18px;border-radius:var(--app-radius-md, 8px);background:var(--app-primary, #3f51b5);color:#fff;font-weight:600;font-size:14px}.ptech-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;background:#ffffffe6;color:#111827;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px #0f172a2e;z-index:2}.ptech-carousel__nav--prev{left:12px}.ptech-carousel__nav--next{right:12px}.ptech-carousel__indicators{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;z-index:2}.ptech-carousel__dot{width:8px;height:8px;border-radius:50%;border:0;background:#ffffff8c;cursor:pointer;padding:0}.ptech-carousel__dot--active{background:#fff;width:22px;border-radius:4px}@media (max-width: 600px){.ptech-carousel__image,.ptech-carousel__fallback{max-height:220px}.ptech-carousel__caption{padding:
|
|
10186
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.ptech-carousel{position:relative;width:100%;min-width:0;border-radius:var(--ptech-carousel-radius, var(--app-radius-lg, 12px));overflow:hidden;background:var(--ptech-carousel-bg, var(--app-surface, #ffffff));box-shadow:var(--ptech-carousel-shadow, var(--app-shadow-sm, 0 8px 24px rgba(15, 23, 42, .08)));touch-action:pan-y;outline:none}.ptech-carousel:focus-visible{box-shadow:0 0 0 3px var(--app-primary, #3f51b5)}.ptech-carousel__viewport{overflow:hidden;width:100%;min-width:0;contain:layout paint}.ptech-carousel__track{display:flex;min-width:0;transition:transform .4s ease}@media (prefers-reduced-motion: reduce){.ptech-carousel__track{transition:none}}.ptech-carousel__slide{flex:0 0 100%;min-width:100%;position:relative}.ptech-carousel__image{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}.ptech-carousel__fallback{width:100%;height:240px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-text-muted, rgba(0,0,0,.4))}.ptech-carousel__fallback ptech-icon{font-size:48px}.ptech-carousel__caption{position:absolute;left:0;right:0;bottom:0;padding:var(--app-space-6, 24px) 64px 44px;background:linear-gradient(0deg,#061326d1,#06132600);color:#fff}.ptech-carousel__caption h3{margin:0 0 8px;font-size:22px;font-weight:700}.ptech-carousel__caption p{margin:0 0 12px;font-size:15px;opacity:.9;max-width:520px}.ptech-carousel__action{display:inline-block;border:0;cursor:pointer;padding:8px 18px;border-radius:var(--app-radius-md, 8px);background:var(--app-primary, #3f51b5);color:#fff;font-weight:600;font-size:14px}.ptech-carousel__nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:0;background:#ffffffe6;color:#111827;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 12px #0f172a2e;z-index:2}.ptech-carousel__nav--prev{left:12px}.ptech-carousel__nav--next{right:12px}.ptech-carousel__indicators{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:8px;z-index:2}.ptech-carousel__dot{width:8px;height:8px;border-radius:50%;border:0;background:#ffffff8c;cursor:pointer;padding:0}.ptech-carousel__dot--active{background:#fff;width:22px;border-radius:4px}@media (max-width: 600px){.ptech-carousel__image,.ptech-carousel__fallback{max-height:220px}.ptech-carousel__caption{padding:16px 52px 40px}.ptech-carousel__caption h3{font-size:18px}.ptech-carousel__caption p{font-size:13px}.ptech-carousel__nav{width:34px;height:34px}}\n"] }]
|
|
10111
10187
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { items: [{
|
|
10112
10188
|
type: Input
|
|
10113
10189
|
}], autoPlay: [{
|
|
@@ -10124,6 +10200,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10124
10200
|
type: Input
|
|
10125
10201
|
}], ariaLabel: [{
|
|
10126
10202
|
type: Input
|
|
10203
|
+
}], slideTemplate: [{
|
|
10204
|
+
type: Input
|
|
10127
10205
|
}], itemClick: [{
|
|
10128
10206
|
type: Output
|
|
10129
10207
|
}], activeIndexChange: [{
|
|
@@ -10260,16 +10338,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10260
10338
|
type: Output
|
|
10261
10339
|
}] } });
|
|
10262
10340
|
|
|
10341
|
+
/** One process-wide clock tick shared by every breadcrumb/footer clock. */
|
|
10342
|
+
class PtechClockService {
|
|
10343
|
+
now$ = timer(0, 1000).pipe(map(() => new Date()), shareReplay({ bufferSize: 1, refCount: true }));
|
|
10344
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechClockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10345
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechClockService, providedIn: 'root' });
|
|
10346
|
+
}
|
|
10347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechClockService, decorators: [{
|
|
10348
|
+
type: Injectable,
|
|
10349
|
+
args: [{ providedIn: 'root' }]
|
|
10350
|
+
}] });
|
|
10263
10351
|
/**
|
|
10264
10352
|
* Renders a local clock for a given IANA zone id - purely presentational, no business rule.
|
|
10265
10353
|
* It does not know what a "user" or a "preference" is: the consuming app is responsible for
|
|
10266
10354
|
* resolving zoneId (from wherever its own domain keeps it) and passing it in as a plain input.
|
|
10267
|
-
*
|
|
10268
|
-
*
|
|
10269
|
-
* the update originates outside any zone-triggered template event.
|
|
10355
|
+
* Subscribes to the library's process-wide clock so clocks rendered in different shell regions
|
|
10356
|
+
* receive the same Date instance. OnPush requires an explicit markForCheck() on each tick.
|
|
10270
10357
|
*/
|
|
10271
10358
|
class PtechTimezoneClockComponent {
|
|
10272
10359
|
cdr;
|
|
10360
|
+
clock;
|
|
10273
10361
|
zoneId = null;
|
|
10274
10362
|
compact = false;
|
|
10275
10363
|
showTimezone = true;
|
|
@@ -10277,8 +10365,9 @@ class PtechTimezoneClockComponent {
|
|
|
10277
10365
|
time = '';
|
|
10278
10366
|
effectiveZoneId = 'UTC';
|
|
10279
10367
|
tickSubscription;
|
|
10280
|
-
constructor(cdr) {
|
|
10368
|
+
constructor(cdr, clock) {
|
|
10281
10369
|
this.cdr = cdr;
|
|
10370
|
+
this.clock = clock;
|
|
10282
10371
|
}
|
|
10283
10372
|
ngOnInit() {
|
|
10284
10373
|
this.startTicking();
|
|
@@ -10297,9 +10386,9 @@ class PtechTimezoneClockComponent {
|
|
|
10297
10386
|
startTicking() {
|
|
10298
10387
|
this.tickSubscription?.unsubscribe();
|
|
10299
10388
|
this.tick();
|
|
10300
|
-
this.tickSubscription =
|
|
10389
|
+
this.tickSubscription = this.clock.now$.subscribe(now => this.tick(now));
|
|
10301
10390
|
}
|
|
10302
|
-
tick() {
|
|
10391
|
+
tick(now = new Date()) {
|
|
10303
10392
|
this.effectiveZoneId = this.resolveZoneId(this.zoneId);
|
|
10304
10393
|
try {
|
|
10305
10394
|
this.time = new Intl.DateTimeFormat('pt-BR', {
|
|
@@ -10307,7 +10396,7 @@ class PtechTimezoneClockComponent {
|
|
|
10307
10396
|
hour: '2-digit',
|
|
10308
10397
|
minute: '2-digit',
|
|
10309
10398
|
second: this.showSeconds ? '2-digit' : undefined,
|
|
10310
|
-
}).format(
|
|
10399
|
+
}).format(now);
|
|
10311
10400
|
}
|
|
10312
10401
|
catch {
|
|
10313
10402
|
this.effectiveZoneId = 'UTC';
|
|
@@ -10316,7 +10405,7 @@ class PtechTimezoneClockComponent {
|
|
|
10316
10405
|
hour: '2-digit',
|
|
10317
10406
|
minute: '2-digit',
|
|
10318
10407
|
second: this.showSeconds ? '2-digit' : undefined,
|
|
10319
|
-
}).format(
|
|
10408
|
+
}).format(now);
|
|
10320
10409
|
}
|
|
10321
10410
|
this.cdr.markForCheck();
|
|
10322
10411
|
}
|
|
@@ -10333,7 +10422,7 @@ class PtechTimezoneClockComponent {
|
|
|
10333
10422
|
return 'UTC';
|
|
10334
10423
|
}
|
|
10335
10424
|
}
|
|
10336
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTimezoneClockComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10425
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTimezoneClockComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PtechClockService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10337
10426
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTimezoneClockComponent, isStandalone: true, selector: "ptech-timezone-clock", inputs: { zoneId: "zoneId", compact: "compact", showTimezone: "showTimezone", showSeconds: "showSeconds" }, usesOnChanges: true, ngImport: i0, template: `
|
|
10338
10427
|
<span
|
|
10339
10428
|
class="ptech-timezone-clock"
|
|
@@ -10343,7 +10432,7 @@ class PtechTimezoneClockComponent {
|
|
|
10343
10432
|
<span class="ptech-timezone-clock-time">{{ time }}</span>
|
|
10344
10433
|
<span class="ptech-timezone-clock-zone" *ngIf="showTimezone"> • {{ effectiveZoneId }}</span>
|
|
10345
10434
|
</span>
|
|
10346
|
-
`, isInline: true, styles: [".ptech-timezone-clock{font-size:var(--ptech-timezone-clock-font-size, 12px);color:var(--ptech-timezone-clock-color, inherit);opacity:var(--ptech-timezone-clock-opacity, .85);white-space:nowrap;font-variant-numeric:tabular-nums}
|
|
10435
|
+
`, isInline: true, styles: [".ptech-timezone-clock{font-size:var(--ptech-timezone-clock-font-size, 12px);color:var(--ptech-timezone-clock-color, inherit);opacity:var(--ptech-timezone-clock-opacity, .85);white-space:nowrap;font-variant-numeric:tabular-nums}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10347
10436
|
}
|
|
10348
10437
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTimezoneClockComponent, decorators: [{
|
|
10349
10438
|
type: Component,
|
|
@@ -10356,8 +10445,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10356
10445
|
<span class="ptech-timezone-clock-time">{{ time }}</span>
|
|
10357
10446
|
<span class="ptech-timezone-clock-zone" *ngIf="showTimezone"> • {{ effectiveZoneId }}</span>
|
|
10358
10447
|
</span>
|
|
10359
|
-
`, styles: [".ptech-timezone-clock{font-size:var(--ptech-timezone-clock-font-size, 12px);color:var(--ptech-timezone-clock-color, inherit);opacity:var(--ptech-timezone-clock-opacity, .85);white-space:nowrap;font-variant-numeric:tabular-nums}
|
|
10360
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { zoneId: [{
|
|
10448
|
+
`, styles: [".ptech-timezone-clock{font-size:var(--ptech-timezone-clock-font-size, 12px);color:var(--ptech-timezone-clock-color, inherit);opacity:var(--ptech-timezone-clock-opacity, .85);white-space:nowrap;font-variant-numeric:tabular-nums}\n"] }]
|
|
10449
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: PtechClockService }], propDecorators: { zoneId: [{
|
|
10361
10450
|
type: Input
|
|
10362
10451
|
}], compact: [{
|
|
10363
10452
|
type: Input
|
|
@@ -12510,5 +12599,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
12510
12599
|
* Generated bundle index. Do not edit.
|
|
12511
12600
|
*/
|
|
12512
12601
|
|
|
12513
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, EmailUtil, ExpansionPanelComponent, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechAutocompleteComponent, PtechCarouselComponent, PtechColDirective, PtechConfirmationDialogComponent, PtechConfirmationService, PtechCurrencyPipe, PtechDualListboxComponent, PtechGridDirective, PtechHelpButtonComponent, PtechInputFileComponent, PtechLogsComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechTimelineComponent, PtechTimezoneClockComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
12602
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, EmailUtil, ExpansionPanelComponent, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechAutocompleteComponent, PtechCarouselComponent, PtechClockService, PtechColDirective, PtechConfirmationDialogComponent, PtechConfirmationService, PtechCurrencyPipe, PtechDualListboxComponent, PtechGridDirective, PtechHelpButtonComponent, PtechInputFileComponent, PtechLogsComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechTimelineComponent, PtechTimezoneClockComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
12514
12603
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|