@pumpkin-tech/pumpkin-tech-ng 0.2.43 → 0.2.45
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
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
|
-
import * as i2$
|
|
5
|
-
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, tap,
|
|
6
|
-
import { takeUntil, filter as filter$1, switchMap } from 'rxjs/operators';
|
|
4
|
+
import * as i2$5 from 'rxjs';
|
|
5
|
+
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, debounceTime, distinctUntilChanged, tap, switchMap, of, isObservable, from, map } from 'rxjs';
|
|
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';
|
|
9
9
|
import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl } from '@angular/forms';
|
|
@@ -19,7 +19,7 @@ import * as i6 from '@angular/material/list';
|
|
|
19
19
|
import { MatListModule } from '@angular/material/list';
|
|
20
20
|
import * as i2$1 from '@angular/material/button';
|
|
21
21
|
import { MatButtonModule } from '@angular/material/button';
|
|
22
|
-
import * as i1$
|
|
22
|
+
import * as i1$4 from '@angular/material/snack-bar';
|
|
23
23
|
import { MatSnackBarModule, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
24
24
|
import * as i3 from '@angular/material/form-field';
|
|
25
25
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
@@ -40,15 +40,15 @@ import * as i4$2 from '@angular/material/menu';
|
|
|
40
40
|
import { MatMenuModule } from '@angular/material/menu';
|
|
41
41
|
import * as i3$5 from '@angular/material/datepicker';
|
|
42
42
|
import { MatDatepickerModule, MatDatepicker } from '@angular/material/datepicker';
|
|
43
|
-
import * as
|
|
43
|
+
import * as i6$1 from '@angular/material/progress-bar';
|
|
44
44
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
45
|
-
import * as i1$
|
|
45
|
+
import * as i1$2 from '@angular/material/slide-toggle';
|
|
46
46
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
47
47
|
import * as i3$4 from '@angular/material/radio';
|
|
48
48
|
import { MatRadioModule } from '@angular/material/radio';
|
|
49
49
|
import * as i4$1 from '@angular/material/select';
|
|
50
50
|
import { MatSelectModule } from '@angular/material/select';
|
|
51
|
-
import * as i1$
|
|
51
|
+
import * as i1$3 from '@angular/material/dialog';
|
|
52
52
|
import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
53
53
|
import * as i9 from '@angular/material/checkbox';
|
|
54
54
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
@@ -56,7 +56,12 @@ import * as i5 from '@angular/material/progress-spinner';
|
|
|
56
56
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
57
57
|
import * as i3$7 from '@angular/material/expansion';
|
|
58
58
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
59
|
-
import
|
|
59
|
+
import * as i9$2 from '@angular/material/autocomplete';
|
|
60
|
+
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
61
|
+
import * as i2$4 from '@angular/material/core';
|
|
62
|
+
import { MatRippleModule, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
63
|
+
import * as i4$4 from '@angular/material/tabs';
|
|
64
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
60
65
|
import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
61
66
|
import 'moment/locale/pt-br';
|
|
62
67
|
import * as i3$2 from '@angular/router';
|
|
@@ -414,7 +419,10 @@ const MATERIAL = [
|
|
|
414
419
|
MatRadioModule,
|
|
415
420
|
MatCheckboxModule,
|
|
416
421
|
MatProgressSpinnerModule,
|
|
417
|
-
MatExpansionModule
|
|
422
|
+
MatExpansionModule,
|
|
423
|
+
MatAutocompleteModule,
|
|
424
|
+
MatRippleModule,
|
|
425
|
+
MatTabsModule
|
|
418
426
|
];
|
|
419
427
|
class CoreMaterialModule {
|
|
420
428
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -441,7 +449,10 @@ class CoreMaterialModule {
|
|
|
441
449
|
MatRadioModule,
|
|
442
450
|
MatCheckboxModule,
|
|
443
451
|
MatProgressSpinnerModule,
|
|
444
|
-
MatExpansionModule
|
|
452
|
+
MatExpansionModule,
|
|
453
|
+
MatAutocompleteModule,
|
|
454
|
+
MatRippleModule,
|
|
455
|
+
MatTabsModule], exports: [CommonModule, FormsModule, ReactiveFormsModule, MatToolbarModule,
|
|
445
456
|
MatSidenavModule,
|
|
446
457
|
MatListModule,
|
|
447
458
|
MatButtonModule,
|
|
@@ -464,7 +475,10 @@ class CoreMaterialModule {
|
|
|
464
475
|
MatRadioModule,
|
|
465
476
|
MatCheckboxModule,
|
|
466
477
|
MatProgressSpinnerModule,
|
|
467
|
-
MatExpansionModule
|
|
478
|
+
MatExpansionModule,
|
|
479
|
+
MatAutocompleteModule,
|
|
480
|
+
MatRippleModule,
|
|
481
|
+
MatTabsModule] });
|
|
468
482
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, providers: [
|
|
469
483
|
{ provide: MatPaginatorIntl, useClass: PortugueseMatPaginatorIntl },
|
|
470
484
|
{ provide: MAT_DATE_LOCALE, useValue: 'pt-BR' },
|
|
@@ -497,7 +511,10 @@ class CoreMaterialModule {
|
|
|
497
511
|
MatRadioModule,
|
|
498
512
|
MatCheckboxModule,
|
|
499
513
|
MatProgressSpinnerModule,
|
|
500
|
-
MatExpansionModule
|
|
514
|
+
MatExpansionModule,
|
|
515
|
+
MatAutocompleteModule,
|
|
516
|
+
MatRippleModule,
|
|
517
|
+
MatTabsModule] });
|
|
501
518
|
}
|
|
502
519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, decorators: [{
|
|
503
520
|
type: NgModule,
|
|
@@ -3518,7 +3535,7 @@ class ProgressBarComponent {
|
|
|
3518
3535
|
[color]="dynamicColorPrimary"
|
|
3519
3536
|
></mat-progress-bar>
|
|
3520
3537
|
</p>
|
|
3521
|
-
`, isInline: true, styles: [".progress-values{position:absolute;width:100%;text-align:center;bottom:0;transform:translateY(-50%);z-index:1;font-size:1.2rem}.progress-bar-container{position:relative}.custom-progress-bar{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type:
|
|
3538
|
+
`, isInline: true, styles: [".progress-values{position:absolute;width:100%;text-align:center;bottom:0;transform:translateY(-50%);z-index:1;font-size:1.2rem}.progress-bar-container{position:relative}.custom-progress-bar{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
3522
3539
|
}
|
|
3523
3540
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
3524
3541
|
type: Component,
|
|
@@ -3583,7 +3600,7 @@ class ProgressBarMultipleComponent {
|
|
|
3583
3600
|
return 'warn';
|
|
3584
3601
|
}
|
|
3585
3602
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3586
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ProgressBarMultipleComponent, isStandalone: true, selector: "ptech-progress-bar-multiple", inputs: { progressStartPrimary: "progressStartPrimary", progressEndPrimary: "progressEndPrimary", labelPrimary: "labelPrimary", progressStartSecondary: "progressStartSecondary", progressEndSecondary: "progressEndSecondary", labelSecondary: "labelSecondary" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"progress-bar-vertical\">\n <!-- Progresso prim\u00E1rio -->\n <div class=\"progress-section\">\n <div class=\"progress-overlay\" *ngIf=\"labelPrimary\">\n {{ labelPrimary }}: {{ progressPercentagePrimary }}%\n </div>\n <div class=\"progress-overlay\" *ngIf=\"!labelPrimary\">\n {{ progressPercentagePrimary }}%\n </div>\n\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentagePrimary\"\n [color]=\"dynamicColorPrimary\"\n ></mat-progress-bar>\n </div>\n\n <!-- Progresso secund\u00E1rio -->\n <div\n *ngIf=\"progressPercentageSecondary !== undefined\"\n class=\"progress-section\"\n >\n <div class=\"progress-overlay\">\n {{ labelSecondary }}: {{ progressPercentageSecondary }}%\n </div>\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentageSecondary\"\n [color]=\"dynamicColorSecondary\"\n ></mat-progress-bar>\n </div>\n</div>\n", styles: [".progress-bar-vertical{display:flex;flex-direction:column;gap:16px}.progress-section{position:relative;height:30px}.custom-progress-bar{height:20px;border-radius:6px}.progress-overlay{position:absolute;width:100%;height:100%;top:-18px;left:0;display:flex;align-items:center;justify-content:center;font-size:1.2rem;z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type:
|
|
3603
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ProgressBarMultipleComponent, isStandalone: true, selector: "ptech-progress-bar-multiple", inputs: { progressStartPrimary: "progressStartPrimary", progressEndPrimary: "progressEndPrimary", labelPrimary: "labelPrimary", progressStartSecondary: "progressStartSecondary", progressEndSecondary: "progressEndSecondary", labelSecondary: "labelSecondary" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"progress-bar-vertical\">\n <!-- Progresso prim\u00E1rio -->\n <div class=\"progress-section\">\n <div class=\"progress-overlay\" *ngIf=\"labelPrimary\">\n {{ labelPrimary }}: {{ progressPercentagePrimary }}%\n </div>\n <div class=\"progress-overlay\" *ngIf=\"!labelPrimary\">\n {{ progressPercentagePrimary }}%\n </div>\n\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentagePrimary\"\n [color]=\"dynamicColorPrimary\"\n ></mat-progress-bar>\n </div>\n\n <!-- Progresso secund\u00E1rio -->\n <div\n *ngIf=\"progressPercentageSecondary !== undefined\"\n class=\"progress-section\"\n >\n <div class=\"progress-overlay\">\n {{ labelSecondary }}: {{ progressPercentageSecondary }}%\n </div>\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentageSecondary\"\n [color]=\"dynamicColorSecondary\"\n ></mat-progress-bar>\n </div>\n</div>\n", styles: [".progress-bar-vertical{display:flex;flex-direction:column;gap:16px}.progress-section{position:relative;height:30px}.custom-progress-bar{height:20px;border-radius:6px}.progress-overlay{position:absolute;width:100%;height:100%;top:-18px;left:0;display:flex;align-items:center;justify-content:center;font-size:1.2rem;z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
3587
3604
|
}
|
|
3588
3605
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarMultipleComponent, decorators: [{
|
|
3589
3606
|
type: Component,
|
|
@@ -4030,7 +4047,7 @@ class SlideToggleComponent extends BaseField {
|
|
|
4030
4047
|
{{ label }}
|
|
4031
4048
|
</mat-slide-toggle>
|
|
4032
4049
|
</div>
|
|
4033
|
-
`, isInline: true, styles: [":host{display:block}.ptech-slide-toggle-container{display:flex;flex-direction:column}:host ::ng-deep .mat-mdc-slide-toggle .mdc-label,:host ::ng-deep .mat-mdc-slide-toggle .mdc-form-field>label{color:var(--ptech-toggle-label, var(--app-text, inherit))!important}mat-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1$
|
|
4050
|
+
`, isInline: true, styles: [":host{display:block}.ptech-slide-toggle-container{display:flex;flex-direction:column}:host ::ng-deep .mat-mdc-slide-toggle .mdc-label,:host ::ng-deep .mat-mdc-slide-toggle .mdc-form-field>label{color:var(--ptech-toggle-label, var(--app-text, inherit))!important}mat-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4034
4051
|
}
|
|
4035
4052
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SlideToggleComponent, decorators: [{
|
|
4036
4053
|
type: Component,
|
|
@@ -4312,7 +4329,7 @@ class ConfirmationDialogComponent {
|
|
|
4312
4329
|
cancel() {
|
|
4313
4330
|
this.dialogRef.close(false);
|
|
4314
4331
|
}
|
|
4315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$
|
|
4332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
4316
4333
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
|
|
4317
4334
|
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4318
4335
|
<div class="ptech-dialog-header">
|
|
@@ -4349,7 +4366,7 @@ class ConfirmationDialogComponent {
|
|
|
4349
4366
|
</button>
|
|
4350
4367
|
</div>
|
|
4351
4368
|
</div>
|
|
4352
|
-
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { 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: "directive", type: i1$
|
|
4369
|
+
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { 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: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
4353
4370
|
}
|
|
4354
4371
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
|
|
4355
4372
|
type: Component,
|
|
@@ -4390,7 +4407,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4390
4407
|
</div>
|
|
4391
4408
|
</div>
|
|
4392
4409
|
`, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"] }]
|
|
4393
|
-
}], ctorParameters: () => [{ type: i1$
|
|
4410
|
+
}], ctorParameters: () => [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
4394
4411
|
type: Inject,
|
|
4395
4412
|
args: [MAT_DIALOG_DATA]
|
|
4396
4413
|
}] }] });
|
|
@@ -4724,7 +4741,7 @@ class ActionDialogComponent {
|
|
|
4724
4741
|
onSelectionChange($event) {
|
|
4725
4742
|
// console.log('selection changed', $event);
|
|
4726
4743
|
}
|
|
4727
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$
|
|
4744
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4728
4745
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: `
|
|
4729
4746
|
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4730
4747
|
<div class="ptech-dialog-header">
|
|
@@ -4825,7 +4842,7 @@ class ActionDialogComponent {
|
|
|
4825
4842
|
></ptech-button>
|
|
4826
4843
|
</mat-dialog-actions>
|
|
4827
4844
|
</div>
|
|
4828
|
-
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(640px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #fff))!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}.action-btn{margin: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: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CoreMaterialModule }, { 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: i2$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: SelectEntityComponent, selector: "ptech-select-entity", inputs: ["multiple", "property", "propertyEnum", "propertyFn", "idProp", "searchPlaceholder", "multipleTriggerMax", "entities"], outputs: ["selectClick", "selectionChange", "loadingChange"] }, { kind: "component", type: QuantityItemsComponent, selector: "ptech-quantity-items", inputs: ["min", "max", "step", "quantity"], outputs: ["quantityChange"] }, { kind: "component", type: SelectQuantityItemsComponent, selector: "ptech-select-quantity-items", inputs: ["appearance", "min", "max", "step", "quantity"], outputs: ["quantityChange"] }, { kind: "component", type: InputCurrencyComponent, selector: "ptech-input-currency", inputs: ["options"], outputs: ["valueChange"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
4845
|
+
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(640px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #fff))!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}.action-btn{margin: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: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CoreMaterialModule }, { 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: i2$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: SelectEntityComponent, selector: "ptech-select-entity", inputs: ["multiple", "property", "propertyEnum", "propertyFn", "idProp", "searchPlaceholder", "multipleTriggerMax", "entities"], outputs: ["selectClick", "selectionChange", "loadingChange"] }, { kind: "component", type: QuantityItemsComponent, selector: "ptech-quantity-items", inputs: ["min", "max", "step", "quantity"], outputs: ["quantityChange"] }, { kind: "component", type: SelectQuantityItemsComponent, selector: "ptech-select-quantity-items", inputs: ["appearance", "min", "max", "step", "quantity"], outputs: ["quantityChange"] }, { kind: "component", type: InputCurrencyComponent, selector: "ptech-input-currency", inputs: ["options"], outputs: ["valueChange"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
4829
4846
|
}
|
|
4830
4847
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, decorators: [{
|
|
4831
4848
|
type: Component,
|
|
@@ -4944,7 +4961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4944
4961
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4945
4962
|
type: Inject,
|
|
4946
4963
|
args: [MAT_DIALOG_DATA]
|
|
4947
|
-
}] }, { type: i1$
|
|
4964
|
+
}] }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
4948
4965
|
type: Optional
|
|
4949
4966
|
}, {
|
|
4950
4967
|
type: Inject,
|
|
@@ -4978,7 +4995,7 @@ class InfoDetailDialogComponent {
|
|
|
4978
4995
|
close() {
|
|
4979
4996
|
this.dialogRef.close();
|
|
4980
4997
|
}
|
|
4981
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$
|
|
4998
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4982
4999
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailDialogComponent, isStandalone: true, selector: "ptech-info-detail-dialog", ngImport: i0, template: `
|
|
4983
5000
|
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4984
5001
|
<div class="ptech-dialog-header">
|
|
@@ -5035,7 +5052,7 @@ class InfoDetailDialogComponent {
|
|
|
5035
5052
|
|
|
5036
5053
|
</mat-dialog-actions>
|
|
5037
5054
|
</div>
|
|
5038
|
-
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(840px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.6rem}.info-dialog-content{white-space:normal;word-break:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.5}.action-btn{margin:0}.link-reset{text-decoration:none}@media (max-width: 900px){.ptech-dialog-shell{min-width:min(92vw,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.3rem}}\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: 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: "directive", type: i1$
|
|
5055
|
+
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(840px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.6rem}.info-dialog-content{white-space:normal;word-break:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.5}.action-btn{margin:0}.link-reset{text-decoration:none}@media (max-width: 900px){.ptech-dialog-shell{min-width:min(92vw,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.3rem}}\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: 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: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
5039
5056
|
}
|
|
5040
5057
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
|
|
5041
5058
|
type: Component,
|
|
@@ -5099,7 +5116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5099
5116
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5100
5117
|
type: Inject,
|
|
5101
5118
|
args: [MAT_DIALOG_DATA]
|
|
5102
|
-
}] }, { type: i1$
|
|
5119
|
+
}] }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
5103
5120
|
type: Optional
|
|
5104
5121
|
}, {
|
|
5105
5122
|
type: Inject,
|
|
@@ -5127,7 +5144,7 @@ class InfoDetailComponent {
|
|
|
5127
5144
|
},
|
|
5128
5145
|
});
|
|
5129
5146
|
}
|
|
5130
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$
|
|
5147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
5131
5148
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailComponent, isStandalone: true, selector: "ptech-info-detail", inputs: { infoTitle: "infoTitle", infoSubtitle: "infoSubtitle", infoContent: "infoContent", infoRawContent: "infoRawContent", iconColor: "iconColor" }, ngImport: i0, template: `
|
|
5132
5149
|
<div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
|
|
5133
5150
|
<ptech-button
|
|
@@ -5153,7 +5170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5153
5170
|
<ng-content></ng-content>
|
|
5154
5171
|
</div>
|
|
5155
5172
|
`, styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, var(--app-text, #ffffff))}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, var(--app-link-accent, #00bfff))}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger .detail-link{font-size:.95rem}}\n"] }]
|
|
5156
|
-
}], ctorParameters: () => [{ type: i1$
|
|
5173
|
+
}], ctorParameters: () => [{ type: i1$3.MatDialog }], propDecorators: { infoTitle: [{
|
|
5157
5174
|
type: Input
|
|
5158
5175
|
}], infoSubtitle: [{
|
|
5159
5176
|
type: Input
|
|
@@ -5209,8 +5226,8 @@ class ActionResultDialogComponent {
|
|
|
5209
5226
|
return;
|
|
5210
5227
|
window.open(this.whatsappUrl, '_blank');
|
|
5211
5228
|
}
|
|
5212
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$
|
|
5213
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<div class=\"ptech-dialog-shell\" cdkDrag cdkDragRootElement=\".cdk-overlay-pane\">\n <div class=\"ptech-dialog-header\">\n <div class=\"ptech-dialog-drag\" cdkDragHandle aria-hidden=\"true\">\n <mat-icon>drag_indicator</mat-icon>\n </div>\n\n <div class=\"ptech-dialog-heading\">\n <h2 mat-dialog-title>{{ data.title }}</h2>\n <p class=\"ptech-dialog-subtitle\" *ngIf=\"data.subtitle\">{{ data.subtitle }}</p>\n </div>\n\n <button\n mat-icon-button\n type=\"button\"\n class=\"ptech-dialog-close\"\n aria-label=\"Fechar\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <div class=\"ptech-dialog-divider\"></div>\n\n <mat-dialog-content class=\"ptech-dialog-content dialog-content-custom\">\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\n <div *ngIf=\"data.details\" class=\"details\">\n <mat-card>\n <pre>{{ data.details | json }}</pre>\n </mat-card>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions *ngIf=\"data.rawContent\" align=\"end\" class=\"ptech-dialog-actions\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"var(--app-status-success, #00c853)\"\n (click)=\"openWhatsApp()\"\n ></ptech-button>\n\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"Copiar\"\n icon=\"file_copy\"\n type=\"raised\"\n color=\"primary\"\n (click)=\"copyToClipboard()\"\n ></ptech-button>\n\n </mat-dialog-actions>\n</div>\n", styles: [".ptech-dialog-shell{min-width:min(700px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{display:flex;flex-direction:column;gap:20px}.dialog-content-custom div[innerHTML]{color:var(--ptech-dialog-text, var(--app-text, inherit));font-size:14px;line-height:20px}.details{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #fff))!important;padding:14px 18px!important;border-radius:8px;font-size:14px;line-height:20px;font-family:monospace;white-space:pre-wrap;word-break:break-word;box-shadow:none;width:100%}.details mat-card{background:var(--ptech-dialog-bg, transparent);box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:var(--ptech-dialog-text, var(--app-text, #fff))}ptech-button.action-btn{margin:0}\n", ":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\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: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$
|
|
5229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
5230
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<div class=\"ptech-dialog-shell\" cdkDrag cdkDragRootElement=\".cdk-overlay-pane\">\n <div class=\"ptech-dialog-header\">\n <div class=\"ptech-dialog-drag\" cdkDragHandle aria-hidden=\"true\">\n <mat-icon>drag_indicator</mat-icon>\n </div>\n\n <div class=\"ptech-dialog-heading\">\n <h2 mat-dialog-title>{{ data.title }}</h2>\n <p class=\"ptech-dialog-subtitle\" *ngIf=\"data.subtitle\">{{ data.subtitle }}</p>\n </div>\n\n <button\n mat-icon-button\n type=\"button\"\n class=\"ptech-dialog-close\"\n aria-label=\"Fechar\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <div class=\"ptech-dialog-divider\"></div>\n\n <mat-dialog-content class=\"ptech-dialog-content dialog-content-custom\">\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\n <div *ngIf=\"data.details\" class=\"details\">\n <mat-card>\n <pre>{{ data.details | json }}</pre>\n </mat-card>\n </div>\n </mat-dialog-content>\n\n <mat-dialog-actions *ngIf=\"data.rawContent\" align=\"end\" class=\"ptech-dialog-actions\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"var(--app-status-success, #00c853)\"\n (click)=\"openWhatsApp()\"\n ></ptech-button>\n\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"Copiar\"\n icon=\"file_copy\"\n type=\"raised\"\n color=\"primary\"\n (click)=\"copyToClipboard()\"\n ></ptech-button>\n\n </mat-dialog-actions>\n</div>\n", styles: [".ptech-dialog-shell{min-width:min(700px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{display:flex;flex-direction:column;gap:20px}.dialog-content-custom div[innerHTML]{color:var(--ptech-dialog-text, var(--app-text, inherit));font-size:14px;line-height:20px}.details{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #fff))!important;padding:14px 18px!important;border-radius:8px;font-size:14px;line-height:20px;font-family:monospace;white-space:pre-wrap;word-break:break-word;box-shadow:none;width:100%}.details mat-card{background:var(--ptech-dialog-bg, transparent);box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:var(--ptech-dialog-text, var(--app-text, #fff))}ptech-button.action-btn{margin:0}\n", ":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-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}.ptech-dialog-content::-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}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\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: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5214
5231
|
}
|
|
5215
5232
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
|
|
5216
5233
|
type: Component,
|
|
@@ -5218,7 +5235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5218
5235
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5219
5236
|
type: Inject,
|
|
5220
5237
|
args: [MAT_DIALOG_DATA]
|
|
5221
|
-
}] }, { type: i1$
|
|
5238
|
+
}] }, { type: i1$3.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
|
|
5222
5239
|
type: Inject,
|
|
5223
5240
|
args: [MESSAGE_SERVICE]
|
|
5224
5241
|
}] }] });
|
|
@@ -5261,7 +5278,7 @@ class AlertComponent {
|
|
|
5261
5278
|
second: '2-digit',
|
|
5262
5279
|
});
|
|
5263
5280
|
}
|
|
5264
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$
|
|
5281
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$4.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5265
5282
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AlertComponent, isStandalone: true, selector: "ptech-alert", ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--ptech-alert-bg, var(--app-surface, #fff));border-radius:3px;padding:30px;border-left:5px solid var(--ptech-alert-border, var(--app-border-color, #ddd));box-shadow:var(--ptech-alert-shadow, 0 2px 7px rgba(0, 0, 0, .27));max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:var(--ptech-alert-close, var(--app-muted, #aaa));border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:var(--ptech-alert-title, var(--app-text, #606267));font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:var(--ptech-alert-text, var(--app-muted, #9ea0a9));font-weight:400}.success{border-left-color:var(--ptech-alert-success, var(--app-status-success, #7fcb78))}.error{border-left-color:var(--ptech-alert-error, var(--app-status-error, #f25158))}.warn{border-left-color:var(--ptech-alert-warn, var(--app-status-warning, #f0c943))}.info{border-left-color:var(--ptech-alert-info, var(--app-link-accent, #2c80d2))}:host ::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar{z-index:var(--ptech-snackbar-z-index, 12000)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5266
5283
|
}
|
|
5267
5284
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, decorators: [{
|
|
@@ -5270,7 +5287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5270
5287
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5271
5288
|
type: Inject,
|
|
5272
5289
|
args: [MAT_SNACK_BAR_DATA]
|
|
5273
|
-
}] }, { type: i1$
|
|
5290
|
+
}] }, { type: i1$4.MatSnackBarRef }] });
|
|
5274
5291
|
|
|
5275
5292
|
class GetFirstStringBeforeSpacePipe {
|
|
5276
5293
|
transform(value) {
|
|
@@ -7366,7 +7383,7 @@ class TableComponent {
|
|
|
7366
7383
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7367
7384
|
</ng-template>
|
|
7368
7385
|
</div>
|
|
7369
|
-
`, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\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: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i5$2.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5$2.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7386
|
+
`, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\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: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i5$2.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5$2.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7370
7387
|
}
|
|
7371
7388
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
|
|
7372
7389
|
type: Component,
|
|
@@ -8335,6 +8352,1406 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8335
8352
|
type: Output
|
|
8336
8353
|
}] } });
|
|
8337
8354
|
|
|
8355
|
+
class PtechAutocompleteComponent {
|
|
8356
|
+
searchInput;
|
|
8357
|
+
optionTemplate;
|
|
8358
|
+
label = '';
|
|
8359
|
+
placeholder = '';
|
|
8360
|
+
required = false;
|
|
8361
|
+
disabled = false;
|
|
8362
|
+
readonly = false;
|
|
8363
|
+
multiple = false;
|
|
8364
|
+
clearable = true;
|
|
8365
|
+
appearance = 'outline';
|
|
8366
|
+
property = 'description';
|
|
8367
|
+
propertyEnum;
|
|
8368
|
+
propertyFn;
|
|
8369
|
+
displayWith;
|
|
8370
|
+
idProperty = 'id';
|
|
8371
|
+
minLength = 0;
|
|
8372
|
+
debounce = 250;
|
|
8373
|
+
emptyText = 'Nenhum resultado';
|
|
8374
|
+
loadingText = 'Carregando';
|
|
8375
|
+
clearLabel = 'Limpar';
|
|
8376
|
+
datasource;
|
|
8377
|
+
entities = [];
|
|
8378
|
+
loading = false;
|
|
8379
|
+
search = new EventEmitter();
|
|
8380
|
+
selectionChange = new EventEmitter();
|
|
8381
|
+
loadingChange = new EventEmitter();
|
|
8382
|
+
filteredOptions = [];
|
|
8383
|
+
searchText = '';
|
|
8384
|
+
value = null;
|
|
8385
|
+
selectedValues = [];
|
|
8386
|
+
search$ = new Subject();
|
|
8387
|
+
subscription = this.search$.pipe(debounceTime(this.debounce), distinctUntilChanged(), tap(term => this.search.emit(term)), switchMap(term => this.resolveOptions(term))).subscribe(options => {
|
|
8388
|
+
this.filteredOptions = options || [];
|
|
8389
|
+
this.setLoading(false);
|
|
8390
|
+
});
|
|
8391
|
+
ngOnChanges(changes) {
|
|
8392
|
+
if (changes['entities']) {
|
|
8393
|
+
this.filteredOptions = this.filterLocal(this.searchText);
|
|
8394
|
+
}
|
|
8395
|
+
}
|
|
8396
|
+
ngOnDestroy() {
|
|
8397
|
+
this.subscription.unsubscribe();
|
|
8398
|
+
}
|
|
8399
|
+
writeValue(value) {
|
|
8400
|
+
this.value = value;
|
|
8401
|
+
this.selectedValues = Array.isArray(value) ? [...value] : [];
|
|
8402
|
+
this.searchText = !this.multiple && value ? this.getDisplay(value) : '';
|
|
8403
|
+
}
|
|
8404
|
+
registerOnChange(fn) { this.onChange = fn; }
|
|
8405
|
+
registerOnTouched(fn) { this.onTouched = fn; }
|
|
8406
|
+
setDisabledState(disabled) { this.disabled = disabled; }
|
|
8407
|
+
onChange = () => { };
|
|
8408
|
+
onTouched = () => { };
|
|
8409
|
+
onSearchInput(term) {
|
|
8410
|
+
this.searchText = term || '';
|
|
8411
|
+
if (this.searchText.length < this.minLength) {
|
|
8412
|
+
this.filteredOptions = [];
|
|
8413
|
+
return;
|
|
8414
|
+
}
|
|
8415
|
+
this.setLoading(!!this.datasource);
|
|
8416
|
+
this.search$.next(this.searchText);
|
|
8417
|
+
}
|
|
8418
|
+
select(event) {
|
|
8419
|
+
const selected = event.option.value;
|
|
8420
|
+
if (this.multiple) {
|
|
8421
|
+
if (!this.selectedValues.some(item => this.sameValue(item, selected))) {
|
|
8422
|
+
this.selectedValues = [...this.selectedValues, selected];
|
|
8423
|
+
}
|
|
8424
|
+
this.value = this.selectedValues;
|
|
8425
|
+
this.searchText = '';
|
|
8426
|
+
this.searchInput?.nativeElement.focus();
|
|
8427
|
+
}
|
|
8428
|
+
else {
|
|
8429
|
+
this.value = selected;
|
|
8430
|
+
this.searchText = this.getDisplay(selected);
|
|
8431
|
+
}
|
|
8432
|
+
this.onChange(this.value);
|
|
8433
|
+
this.selectionChange.emit(this.value);
|
|
8434
|
+
}
|
|
8435
|
+
clear() {
|
|
8436
|
+
this.value = this.multiple ? [] : null;
|
|
8437
|
+
this.selectedValues = [];
|
|
8438
|
+
this.searchText = '';
|
|
8439
|
+
this.filteredOptions = [];
|
|
8440
|
+
this.onChange(this.value);
|
|
8441
|
+
this.selectionChange.emit(this.value);
|
|
8442
|
+
}
|
|
8443
|
+
removeSelected(selected) {
|
|
8444
|
+
this.selectedValues = this.selectedValues.filter(item => !this.sameValue(item, selected));
|
|
8445
|
+
this.value = this.selectedValues;
|
|
8446
|
+
this.onChange(this.value);
|
|
8447
|
+
this.selectionChange.emit(this.value);
|
|
8448
|
+
}
|
|
8449
|
+
displaySelected = (value) => value ? this.getDisplay(value) : '';
|
|
8450
|
+
getDisplay(value) {
|
|
8451
|
+
if (!value)
|
|
8452
|
+
return '';
|
|
8453
|
+
if (this.displayWith)
|
|
8454
|
+
return this.displayWith(value);
|
|
8455
|
+
if (this.propertyFn)
|
|
8456
|
+
return this.propertyFn(value);
|
|
8457
|
+
const raw = this.getNestedValue(value, this.property);
|
|
8458
|
+
return this.propertyEnum && raw in this.propertyEnum ? this.propertyEnum[raw] : `${raw ?? ''}`;
|
|
8459
|
+
}
|
|
8460
|
+
highlight(label) {
|
|
8461
|
+
const safe = this.escapeHtml(label);
|
|
8462
|
+
if (!this.searchText)
|
|
8463
|
+
return safe;
|
|
8464
|
+
const term = this.escapeRegExp(this.searchText);
|
|
8465
|
+
return safe.replace(new RegExp(`(${term})`, 'ig'), '<span class="ptech-autocomplete-highlight">$1</span>');
|
|
8466
|
+
}
|
|
8467
|
+
trackByOption = (_, option) => this.getNestedValue(option, this.idProperty) ?? option;
|
|
8468
|
+
resolveOptions(term) {
|
|
8469
|
+
if (!this.datasource) {
|
|
8470
|
+
return of(this.filterLocal(term));
|
|
8471
|
+
}
|
|
8472
|
+
const result = this.datasource(term);
|
|
8473
|
+
if (isObservable(result))
|
|
8474
|
+
return result;
|
|
8475
|
+
if (result instanceof Promise)
|
|
8476
|
+
return from(result);
|
|
8477
|
+
return of(result);
|
|
8478
|
+
}
|
|
8479
|
+
filterLocal(term) {
|
|
8480
|
+
const normalized = this.normalize(term);
|
|
8481
|
+
return (this.entities || []).filter(item => this.normalize(this.getDisplay(item)).includes(normalized));
|
|
8482
|
+
}
|
|
8483
|
+
sameValue(left, right) {
|
|
8484
|
+
const leftId = this.getNestedValue(left, this.idProperty);
|
|
8485
|
+
const rightId = this.getNestedValue(right, this.idProperty);
|
|
8486
|
+
return leftId != null && rightId != null ? leftId === rightId : left === right;
|
|
8487
|
+
}
|
|
8488
|
+
getNestedValue(value, property) {
|
|
8489
|
+
return (property || '').split('.').reduce((current, key) => current?.[key], value);
|
|
8490
|
+
}
|
|
8491
|
+
setLoading(loading) {
|
|
8492
|
+
this.loading = loading;
|
|
8493
|
+
this.loadingChange.emit(loading);
|
|
8494
|
+
}
|
|
8495
|
+
normalize(value) {
|
|
8496
|
+
return (value || '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
|
|
8497
|
+
}
|
|
8498
|
+
escapeHtml(value) {
|
|
8499
|
+
return value.replace(/[&<>"']/g, char => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[char] || char));
|
|
8500
|
+
}
|
|
8501
|
+
escapeRegExp(value) {
|
|
8502
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
8503
|
+
}
|
|
8504
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8505
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechAutocompleteComponent, isStandalone: true, selector: "ptech-autocomplete", inputs: { label: "label", placeholder: "placeholder", required: "required", disabled: "disabled", readonly: "readonly", multiple: "multiple", clearable: "clearable", appearance: "appearance", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", displayWith: "displayWith", idProperty: "idProperty", minLength: "minLength", debounce: "debounce", emptyText: "emptyText", loadingText: "loadingText", clearLabel: "clearLabel", datasource: "datasource", entities: "entities", loading: "loading" }, outputs: { search: "search", selectionChange: "selectionChange", loadingChange: "loadingChange" }, providers: [{
|
|
8506
|
+
provide: NG_VALUE_ACCESSOR,
|
|
8507
|
+
useExisting: forwardRef(() => PtechAutocompleteComponent),
|
|
8508
|
+
multi: true,
|
|
8509
|
+
}], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true }], viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
8510
|
+
<mat-form-field class="ptech-autocomplete-field" [appearance]="appearance">
|
|
8511
|
+
<mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
|
|
8512
|
+
<input
|
|
8513
|
+
#searchInput
|
|
8514
|
+
matInput
|
|
8515
|
+
type="text"
|
|
8516
|
+
autocomplete="off"
|
|
8517
|
+
[placeholder]="placeholder"
|
|
8518
|
+
[required]="required"
|
|
8519
|
+
[disabled]="disabled || loading"
|
|
8520
|
+
[readonly]="readonly"
|
|
8521
|
+
[matAutocomplete]="auto"
|
|
8522
|
+
[ngModel]="searchText"
|
|
8523
|
+
(ngModelChange)="onSearchInput($event)"
|
|
8524
|
+
(blur)="onTouched()"
|
|
8525
|
+
/>
|
|
8526
|
+
|
|
8527
|
+
<button
|
|
8528
|
+
*ngIf="clearable && !!value && !disabled && !readonly"
|
|
8529
|
+
mat-icon-button
|
|
8530
|
+
matSuffix
|
|
8531
|
+
type="button"
|
|
8532
|
+
[attr.aria-label]="clearLabel"
|
|
8533
|
+
(click)="clear()">
|
|
8534
|
+
<mat-icon>close</mat-icon>
|
|
8535
|
+
</button>
|
|
8536
|
+
<mat-spinner *ngIf="loading" matSuffix mode="indeterminate" diameter="18"></mat-spinner>
|
|
8537
|
+
|
|
8538
|
+
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displaySelected" (optionSelected)="select($event)">
|
|
8539
|
+
<mat-option *ngIf="loading" disabled>
|
|
8540
|
+
<mat-spinner mode="indeterminate" diameter="18"></mat-spinner>
|
|
8541
|
+
<span class="state-text">{{ loadingText }}</span>
|
|
8542
|
+
</mat-option>
|
|
8543
|
+
<mat-option *ngFor="let option of filteredOptions; trackBy: trackByOption" [value]="option">
|
|
8544
|
+
<ng-container *ngIf="optionTemplate; else defaultOption"
|
|
8545
|
+
[ngTemplateOutlet]="optionTemplate"
|
|
8546
|
+
[ngTemplateOutletContext]="{ $implicit: option, term: searchText }">
|
|
8547
|
+
</ng-container>
|
|
8548
|
+
<ng-template #defaultOption>
|
|
8549
|
+
<span [innerHTML]="highlight(getDisplay(option))"></span>
|
|
8550
|
+
</ng-template>
|
|
8551
|
+
</mat-option>
|
|
8552
|
+
<mat-option *ngIf="!loading && filteredOptions.length === 0" disabled>
|
|
8553
|
+
{{ emptyText }}
|
|
8554
|
+
</mat-option>
|
|
8555
|
+
</mat-autocomplete>
|
|
8556
|
+
</mat-form-field>
|
|
8557
|
+
|
|
8558
|
+
<div class="selected-list" *ngIf="multiple && selectedValues.length">
|
|
8559
|
+
<button type="button"
|
|
8560
|
+
class="selected-chip"
|
|
8561
|
+
*ngFor="let selected of selectedValues; trackBy: trackByOption"
|
|
8562
|
+
[disabled]="disabled || readonly"
|
|
8563
|
+
(click)="removeSelected(selected)">
|
|
8564
|
+
<span>{{ getDisplay(selected) }}</span>
|
|
8565
|
+
<mat-icon>close</mat-icon>
|
|
8566
|
+
</button>
|
|
8567
|
+
</div>
|
|
8568
|
+
`, isInline: true, styles: [":host{display:block}.ptech-autocomplete-field{width:100%}.state-text{margin-left:8px}.selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.selected-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--app-border-color, rgba(0,0,0,.14));background:var(--app-chip-bg, rgba(0,0,0,.05));color:var(--app-text, inherit);border-radius:999px;padding:4px 8px;cursor:pointer}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}\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: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i4$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i9$2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i9$2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8569
|
+
}
|
|
8570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, decorators: [{
|
|
8571
|
+
type: Component,
|
|
8572
|
+
args: [{ selector: 'ptech-autocomplete', imports: [CoreMaterialModule], template: `
|
|
8573
|
+
<mat-form-field class="ptech-autocomplete-field" [appearance]="appearance">
|
|
8574
|
+
<mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
|
|
8575
|
+
<input
|
|
8576
|
+
#searchInput
|
|
8577
|
+
matInput
|
|
8578
|
+
type="text"
|
|
8579
|
+
autocomplete="off"
|
|
8580
|
+
[placeholder]="placeholder"
|
|
8581
|
+
[required]="required"
|
|
8582
|
+
[disabled]="disabled || loading"
|
|
8583
|
+
[readonly]="readonly"
|
|
8584
|
+
[matAutocomplete]="auto"
|
|
8585
|
+
[ngModel]="searchText"
|
|
8586
|
+
(ngModelChange)="onSearchInput($event)"
|
|
8587
|
+
(blur)="onTouched()"
|
|
8588
|
+
/>
|
|
8589
|
+
|
|
8590
|
+
<button
|
|
8591
|
+
*ngIf="clearable && !!value && !disabled && !readonly"
|
|
8592
|
+
mat-icon-button
|
|
8593
|
+
matSuffix
|
|
8594
|
+
type="button"
|
|
8595
|
+
[attr.aria-label]="clearLabel"
|
|
8596
|
+
(click)="clear()">
|
|
8597
|
+
<mat-icon>close</mat-icon>
|
|
8598
|
+
</button>
|
|
8599
|
+
<mat-spinner *ngIf="loading" matSuffix mode="indeterminate" diameter="18"></mat-spinner>
|
|
8600
|
+
|
|
8601
|
+
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displaySelected" (optionSelected)="select($event)">
|
|
8602
|
+
<mat-option *ngIf="loading" disabled>
|
|
8603
|
+
<mat-spinner mode="indeterminate" diameter="18"></mat-spinner>
|
|
8604
|
+
<span class="state-text">{{ loadingText }}</span>
|
|
8605
|
+
</mat-option>
|
|
8606
|
+
<mat-option *ngFor="let option of filteredOptions; trackBy: trackByOption" [value]="option">
|
|
8607
|
+
<ng-container *ngIf="optionTemplate; else defaultOption"
|
|
8608
|
+
[ngTemplateOutlet]="optionTemplate"
|
|
8609
|
+
[ngTemplateOutletContext]="{ $implicit: option, term: searchText }">
|
|
8610
|
+
</ng-container>
|
|
8611
|
+
<ng-template #defaultOption>
|
|
8612
|
+
<span [innerHTML]="highlight(getDisplay(option))"></span>
|
|
8613
|
+
</ng-template>
|
|
8614
|
+
</mat-option>
|
|
8615
|
+
<mat-option *ngIf="!loading && filteredOptions.length === 0" disabled>
|
|
8616
|
+
{{ emptyText }}
|
|
8617
|
+
</mat-option>
|
|
8618
|
+
</mat-autocomplete>
|
|
8619
|
+
</mat-form-field>
|
|
8620
|
+
|
|
8621
|
+
<div class="selected-list" *ngIf="multiple && selectedValues.length">
|
|
8622
|
+
<button type="button"
|
|
8623
|
+
class="selected-chip"
|
|
8624
|
+
*ngFor="let selected of selectedValues; trackBy: trackByOption"
|
|
8625
|
+
[disabled]="disabled || readonly"
|
|
8626
|
+
(click)="removeSelected(selected)">
|
|
8627
|
+
<span>{{ getDisplay(selected) }}</span>
|
|
8628
|
+
<mat-icon>close</mat-icon>
|
|
8629
|
+
</button>
|
|
8630
|
+
</div>
|
|
8631
|
+
`, providers: [{
|
|
8632
|
+
provide: NG_VALUE_ACCESSOR,
|
|
8633
|
+
useExisting: forwardRef(() => PtechAutocompleteComponent),
|
|
8634
|
+
multi: true,
|
|
8635
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.ptech-autocomplete-field{width:100%}.state-text{margin-left:8px}.selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.selected-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--app-border-color, rgba(0,0,0,.14));background:var(--app-chip-bg, rgba(0,0,0,.05));color:var(--app-text, inherit);border-radius:999px;padding:4px 8px;cursor:pointer}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}\n"] }]
|
|
8636
|
+
}], propDecorators: { searchInput: [{
|
|
8637
|
+
type: ViewChild,
|
|
8638
|
+
args: ['searchInput']
|
|
8639
|
+
}], optionTemplate: [{
|
|
8640
|
+
type: ContentChild,
|
|
8641
|
+
args: ['option', { static: false }]
|
|
8642
|
+
}], label: [{
|
|
8643
|
+
type: Input
|
|
8644
|
+
}], placeholder: [{
|
|
8645
|
+
type: Input
|
|
8646
|
+
}], required: [{
|
|
8647
|
+
type: Input
|
|
8648
|
+
}], disabled: [{
|
|
8649
|
+
type: Input
|
|
8650
|
+
}], readonly: [{
|
|
8651
|
+
type: Input
|
|
8652
|
+
}], multiple: [{
|
|
8653
|
+
type: Input
|
|
8654
|
+
}], clearable: [{
|
|
8655
|
+
type: Input
|
|
8656
|
+
}], appearance: [{
|
|
8657
|
+
type: Input
|
|
8658
|
+
}], property: [{
|
|
8659
|
+
type: Input
|
|
8660
|
+
}], propertyEnum: [{
|
|
8661
|
+
type: Input
|
|
8662
|
+
}], propertyFn: [{
|
|
8663
|
+
type: Input
|
|
8664
|
+
}], displayWith: [{
|
|
8665
|
+
type: Input
|
|
8666
|
+
}], idProperty: [{
|
|
8667
|
+
type: Input
|
|
8668
|
+
}], minLength: [{
|
|
8669
|
+
type: Input
|
|
8670
|
+
}], debounce: [{
|
|
8671
|
+
type: Input
|
|
8672
|
+
}], emptyText: [{
|
|
8673
|
+
type: Input
|
|
8674
|
+
}], loadingText: [{
|
|
8675
|
+
type: Input
|
|
8676
|
+
}], clearLabel: [{
|
|
8677
|
+
type: Input
|
|
8678
|
+
}], datasource: [{
|
|
8679
|
+
type: Input
|
|
8680
|
+
}], entities: [{
|
|
8681
|
+
type: Input
|
|
8682
|
+
}], loading: [{
|
|
8683
|
+
type: Input
|
|
8684
|
+
}], search: [{
|
|
8685
|
+
type: Output
|
|
8686
|
+
}], selectionChange: [{
|
|
8687
|
+
type: Output
|
|
8688
|
+
}], loadingChange: [{
|
|
8689
|
+
type: Output
|
|
8690
|
+
}] } });
|
|
8691
|
+
|
|
8692
|
+
class PtechInputFileComponent {
|
|
8693
|
+
label = '';
|
|
8694
|
+
placeholder = '';
|
|
8695
|
+
required = false;
|
|
8696
|
+
disabled = false;
|
|
8697
|
+
readonly = false;
|
|
8698
|
+
multiple = false;
|
|
8699
|
+
preview = true;
|
|
8700
|
+
showDropZone = true;
|
|
8701
|
+
dropText = 'Arraste arquivos aqui ou clique para selecionar';
|
|
8702
|
+
accept = '';
|
|
8703
|
+
extensions = [];
|
|
8704
|
+
maxSizeMb;
|
|
8705
|
+
appearance = 'outline';
|
|
8706
|
+
filesChange = new EventEmitter();
|
|
8707
|
+
fileRemove = new EventEmitter();
|
|
8708
|
+
fileDownload = new EventEmitter();
|
|
8709
|
+
items = [];
|
|
8710
|
+
dragging = false;
|
|
8711
|
+
get summary() {
|
|
8712
|
+
if (!this.items.length)
|
|
8713
|
+
return '';
|
|
8714
|
+
return this.multiple ? `${this.items.length} arquivo(s)` : this.items[0].name;
|
|
8715
|
+
}
|
|
8716
|
+
writeValue(value) {
|
|
8717
|
+
const values = Array.isArray(value) ? value : value ? [value] : [];
|
|
8718
|
+
this.items = values.map(item => item instanceof File ? this.toItem(item) : item);
|
|
8719
|
+
}
|
|
8720
|
+
registerOnChange(fn) { this.onChange = fn; }
|
|
8721
|
+
registerOnTouched(fn) { this.onTouched = fn; }
|
|
8722
|
+
setDisabledState(disabled) { this.disabled = disabled; }
|
|
8723
|
+
onChange = () => { };
|
|
8724
|
+
onTouched = () => { };
|
|
8725
|
+
onDragOver(event) {
|
|
8726
|
+
event.preventDefault();
|
|
8727
|
+
if (!this.disabled && !this.readonly)
|
|
8728
|
+
this.dragging = true;
|
|
8729
|
+
}
|
|
8730
|
+
onDragLeave(event) {
|
|
8731
|
+
event.preventDefault();
|
|
8732
|
+
this.dragging = false;
|
|
8733
|
+
}
|
|
8734
|
+
onDrop(event) {
|
|
8735
|
+
event.preventDefault();
|
|
8736
|
+
this.dragging = false;
|
|
8737
|
+
this.addFiles(Array.from(event.dataTransfer?.files || []));
|
|
8738
|
+
}
|
|
8739
|
+
onFileInput(event) {
|
|
8740
|
+
const input = event.target;
|
|
8741
|
+
this.addFiles(Array.from(input.files || []));
|
|
8742
|
+
input.value = '';
|
|
8743
|
+
}
|
|
8744
|
+
remove(index) {
|
|
8745
|
+
const [removed] = this.items.splice(index, 1);
|
|
8746
|
+
this.fileRemove.emit(removed);
|
|
8747
|
+
this.emit();
|
|
8748
|
+
}
|
|
8749
|
+
download(item) {
|
|
8750
|
+
if (item.url) {
|
|
8751
|
+
window.open(item.url, '_blank');
|
|
8752
|
+
}
|
|
8753
|
+
this.fileDownload.emit(item);
|
|
8754
|
+
}
|
|
8755
|
+
formatSize(size) {
|
|
8756
|
+
if (size < 1024)
|
|
8757
|
+
return `${size} B`;
|
|
8758
|
+
if (size < 1024 * 1024)
|
|
8759
|
+
return `${(size / 1024).toFixed(1)} KB`;
|
|
8760
|
+
return `${(size / 1024 / 1024).toFixed(1)} MB`;
|
|
8761
|
+
}
|
|
8762
|
+
addFiles(files) {
|
|
8763
|
+
const next = files.map(file => this.toItem(file));
|
|
8764
|
+
this.items = this.multiple ? [...this.items, ...next] : next.slice(0, 1);
|
|
8765
|
+
this.emit();
|
|
8766
|
+
}
|
|
8767
|
+
toItem(file) {
|
|
8768
|
+
const item = { file, name: file.name, size: file.size, type: file.type };
|
|
8769
|
+
if (!this.validExtension(file))
|
|
8770
|
+
item.error = `Extensão inválida`;
|
|
8771
|
+
if (!this.validSize(file))
|
|
8772
|
+
item.error = `Máximo ${this.maxSizeMb} MB`;
|
|
8773
|
+
if (this.preview && file.type.startsWith('image/'))
|
|
8774
|
+
item.previewUrl = URL.createObjectURL(file);
|
|
8775
|
+
return item;
|
|
8776
|
+
}
|
|
8777
|
+
validExtension(file) {
|
|
8778
|
+
const allowed = this.extensions.length ? this.extensions : this.accept.split(',').map(v => v.trim()).filter(Boolean);
|
|
8779
|
+
if (!allowed.length)
|
|
8780
|
+
return true;
|
|
8781
|
+
return allowed.some(extension => {
|
|
8782
|
+
if (extension.startsWith('.'))
|
|
8783
|
+
return file.name.toLowerCase().endsWith(extension.toLowerCase());
|
|
8784
|
+
return file.type === extension || file.type.startsWith(extension.replace('*', ''));
|
|
8785
|
+
});
|
|
8786
|
+
}
|
|
8787
|
+
validSize(file) {
|
|
8788
|
+
return !this.maxSizeMb || file.size <= this.maxSizeMb * 1024 * 1024;
|
|
8789
|
+
}
|
|
8790
|
+
emit() {
|
|
8791
|
+
const value = this.multiple ? this.items : this.items[0] ?? null;
|
|
8792
|
+
this.onChange(value);
|
|
8793
|
+
this.filesChange.emit(this.items);
|
|
8794
|
+
}
|
|
8795
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechInputFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8796
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechInputFileComponent, isStandalone: true, selector: "ptech-input-file", inputs: { label: "label", placeholder: "placeholder", required: "required", disabled: "disabled", readonly: "readonly", multiple: "multiple", preview: "preview", showDropZone: "showDropZone", dropText: "dropText", accept: "accept", extensions: "extensions", maxSizeMb: "maxSizeMb", appearance: "appearance" }, outputs: { filesChange: "filesChange", fileRemove: "fileRemove", fileDownload: "fileDownload" }, providers: [{
|
|
8797
|
+
provide: NG_VALUE_ACCESSOR,
|
|
8798
|
+
useExisting: forwardRef(() => PtechInputFileComponent),
|
|
8799
|
+
multi: true,
|
|
8800
|
+
}], ngImport: i0, template: `
|
|
8801
|
+
<div class="ptech-file" [class.dragging]="dragging" [class.disabled]="disabled || readonly"
|
|
8802
|
+
(dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)">
|
|
8803
|
+
<mat-form-field class="field" [appearance]="appearance">
|
|
8804
|
+
<mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
|
|
8805
|
+
<input matInput [placeholder]="placeholder" [required]="required" [disabled]="true" [value]="summary" />
|
|
8806
|
+
<button mat-icon-button matSuffix type="button" [disabled]="disabled || readonly" (click)="fileInput.click()">
|
|
8807
|
+
<mat-icon>upload_file</mat-icon>
|
|
8808
|
+
</button>
|
|
8809
|
+
</mat-form-field>
|
|
8810
|
+
|
|
8811
|
+
<input #fileInput hidden type="file" [multiple]="multiple" [accept]="accept" (change)="onFileInput($event)" />
|
|
8812
|
+
<div class="drop-zone" *ngIf="showDropZone">
|
|
8813
|
+
<mat-icon>cloud_upload</mat-icon>
|
|
8814
|
+
<span>{{ dropText }}</span>
|
|
8815
|
+
</div>
|
|
8816
|
+
</div>
|
|
8817
|
+
|
|
8818
|
+
<div class="file-list" *ngIf="items.length">
|
|
8819
|
+
<div class="file-item" *ngFor="let item of items; let i = index">
|
|
8820
|
+
<img *ngIf="preview && item.previewUrl" [src]="item.previewUrl" [alt]="item.name" />
|
|
8821
|
+
<mat-icon *ngIf="!item.previewUrl">description</mat-icon>
|
|
8822
|
+
<div class="file-meta">
|
|
8823
|
+
<strong>{{ item.name }}</strong>
|
|
8824
|
+
<small *ngIf="item.size">{{ formatSize(item.size) }}</small>
|
|
8825
|
+
<mat-progress-bar *ngIf="item.progress != null" mode="determinate" [value]="item.progress"></mat-progress-bar>
|
|
8826
|
+
<small class="error" *ngIf="item.error">{{ item.error }}</small>
|
|
8827
|
+
</div>
|
|
8828
|
+
<button mat-icon-button type="button" *ngIf="item.url || item.file" (click)="download(item)" [disabled]="disabled">
|
|
8829
|
+
<mat-icon>download</mat-icon>
|
|
8830
|
+
</button>
|
|
8831
|
+
<button mat-icon-button type="button" color="warn" (click)="remove(i)" [disabled]="disabled || readonly">
|
|
8832
|
+
<mat-icon>close</mat-icon>
|
|
8833
|
+
</button>
|
|
8834
|
+
</div>
|
|
8835
|
+
</div>
|
|
8836
|
+
`, isInline: true, styles: [":host{display:block}.field{width:100%}.ptech-file.disabled{opacity:.65;pointer-events:none}.drop-zone{border:1px dashed var(--app-border-color, rgba(0,0,0,.25));border-radius:8px;padding:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--app-text-muted, rgba(0,0,0,.55))}.dragging .drop-zone{border-color:var(--app-primary, #3f51b5);background:var(--app-chip-bg, rgba(0,0,0,.04))}.file-list{display:grid;gap:8px;margin-top:8px}.file-item{display:flex;align-items:center;gap:10px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:8px}.file-item img{width:42px;height:42px;object-fit:cover;border-radius:6px}.file-meta{flex:1;min-width:0;display:grid;gap:3px}.file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta small{color:var(--app-text-muted, rgba(0,0,0,.55))}.file-meta .error{color:var(--app-status-error, #f44336)}\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.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8837
|
+
}
|
|
8838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechInputFileComponent, decorators: [{
|
|
8839
|
+
type: Component,
|
|
8840
|
+
args: [{ selector: 'ptech-input-file', imports: [CoreMaterialModule], template: `
|
|
8841
|
+
<div class="ptech-file" [class.dragging]="dragging" [class.disabled]="disabled || readonly"
|
|
8842
|
+
(dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)">
|
|
8843
|
+
<mat-form-field class="field" [appearance]="appearance">
|
|
8844
|
+
<mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
|
|
8845
|
+
<input matInput [placeholder]="placeholder" [required]="required" [disabled]="true" [value]="summary" />
|
|
8846
|
+
<button mat-icon-button matSuffix type="button" [disabled]="disabled || readonly" (click)="fileInput.click()">
|
|
8847
|
+
<mat-icon>upload_file</mat-icon>
|
|
8848
|
+
</button>
|
|
8849
|
+
</mat-form-field>
|
|
8850
|
+
|
|
8851
|
+
<input #fileInput hidden type="file" [multiple]="multiple" [accept]="accept" (change)="onFileInput($event)" />
|
|
8852
|
+
<div class="drop-zone" *ngIf="showDropZone">
|
|
8853
|
+
<mat-icon>cloud_upload</mat-icon>
|
|
8854
|
+
<span>{{ dropText }}</span>
|
|
8855
|
+
</div>
|
|
8856
|
+
</div>
|
|
8857
|
+
|
|
8858
|
+
<div class="file-list" *ngIf="items.length">
|
|
8859
|
+
<div class="file-item" *ngFor="let item of items; let i = index">
|
|
8860
|
+
<img *ngIf="preview && item.previewUrl" [src]="item.previewUrl" [alt]="item.name" />
|
|
8861
|
+
<mat-icon *ngIf="!item.previewUrl">description</mat-icon>
|
|
8862
|
+
<div class="file-meta">
|
|
8863
|
+
<strong>{{ item.name }}</strong>
|
|
8864
|
+
<small *ngIf="item.size">{{ formatSize(item.size) }}</small>
|
|
8865
|
+
<mat-progress-bar *ngIf="item.progress != null" mode="determinate" [value]="item.progress"></mat-progress-bar>
|
|
8866
|
+
<small class="error" *ngIf="item.error">{{ item.error }}</small>
|
|
8867
|
+
</div>
|
|
8868
|
+
<button mat-icon-button type="button" *ngIf="item.url || item.file" (click)="download(item)" [disabled]="disabled">
|
|
8869
|
+
<mat-icon>download</mat-icon>
|
|
8870
|
+
</button>
|
|
8871
|
+
<button mat-icon-button type="button" color="warn" (click)="remove(i)" [disabled]="disabled || readonly">
|
|
8872
|
+
<mat-icon>close</mat-icon>
|
|
8873
|
+
</button>
|
|
8874
|
+
</div>
|
|
8875
|
+
</div>
|
|
8876
|
+
`, providers: [{
|
|
8877
|
+
provide: NG_VALUE_ACCESSOR,
|
|
8878
|
+
useExisting: forwardRef(() => PtechInputFileComponent),
|
|
8879
|
+
multi: true,
|
|
8880
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.field{width:100%}.ptech-file.disabled{opacity:.65;pointer-events:none}.drop-zone{border:1px dashed var(--app-border-color, rgba(0,0,0,.25));border-radius:8px;padding:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--app-text-muted, rgba(0,0,0,.55))}.dragging .drop-zone{border-color:var(--app-primary, #3f51b5);background:var(--app-chip-bg, rgba(0,0,0,.04))}.file-list{display:grid;gap:8px;margin-top:8px}.file-item{display:flex;align-items:center;gap:10px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:8px}.file-item img{width:42px;height:42px;object-fit:cover;border-radius:6px}.file-meta{flex:1;min-width:0;display:grid;gap:3px}.file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta small{color:var(--app-text-muted, rgba(0,0,0,.55))}.file-meta .error{color:var(--app-status-error, #f44336)}\n"] }]
|
|
8881
|
+
}], propDecorators: { label: [{
|
|
8882
|
+
type: Input
|
|
8883
|
+
}], placeholder: [{
|
|
8884
|
+
type: Input
|
|
8885
|
+
}], required: [{
|
|
8886
|
+
type: Input
|
|
8887
|
+
}], disabled: [{
|
|
8888
|
+
type: Input
|
|
8889
|
+
}], readonly: [{
|
|
8890
|
+
type: Input
|
|
8891
|
+
}], multiple: [{
|
|
8892
|
+
type: Input
|
|
8893
|
+
}], preview: [{
|
|
8894
|
+
type: Input
|
|
8895
|
+
}], showDropZone: [{
|
|
8896
|
+
type: Input
|
|
8897
|
+
}], dropText: [{
|
|
8898
|
+
type: Input
|
|
8899
|
+
}], accept: [{
|
|
8900
|
+
type: Input
|
|
8901
|
+
}], extensions: [{
|
|
8902
|
+
type: Input
|
|
8903
|
+
}], maxSizeMb: [{
|
|
8904
|
+
type: Input
|
|
8905
|
+
}], appearance: [{
|
|
8906
|
+
type: Input
|
|
8907
|
+
}], filesChange: [{
|
|
8908
|
+
type: Output
|
|
8909
|
+
}], fileRemove: [{
|
|
8910
|
+
type: Output
|
|
8911
|
+
}], fileDownload: [{
|
|
8912
|
+
type: Output
|
|
8913
|
+
}] } });
|
|
8914
|
+
|
|
8915
|
+
class PtechDualListboxComponent {
|
|
8916
|
+
itemTemplate;
|
|
8917
|
+
items = [];
|
|
8918
|
+
selectedItems = [];
|
|
8919
|
+
selectedItemsChange = new EventEmitter();
|
|
8920
|
+
itemAdded = new EventEmitter();
|
|
8921
|
+
itemRemoved = new EventEmitter();
|
|
8922
|
+
allItemAdded = new EventEmitter();
|
|
8923
|
+
allItemRemoved = new EventEmitter();
|
|
8924
|
+
disabled = false;
|
|
8925
|
+
showFilter = true;
|
|
8926
|
+
height = '320px';
|
|
8927
|
+
filterPlaceholder = 'Pesquisar';
|
|
8928
|
+
availableLabel = 'Disponíveis';
|
|
8929
|
+
selectedLabel = 'Selecionados';
|
|
8930
|
+
addAllLabel = 'Adicionar todos';
|
|
8931
|
+
removeAllLabel = 'Remover todos';
|
|
8932
|
+
emptyText = 'Nenhum registro encontrado';
|
|
8933
|
+
displayWith;
|
|
8934
|
+
descProperty = 'description';
|
|
8935
|
+
descPropertyFn;
|
|
8936
|
+
idProperty = 'id';
|
|
8937
|
+
appearance = 'outline';
|
|
8938
|
+
availableSearch = '';
|
|
8939
|
+
selectedSearch = '';
|
|
8940
|
+
get availableFiltered() {
|
|
8941
|
+
return this.filterList(this.availableItems, this.availableSearch);
|
|
8942
|
+
}
|
|
8943
|
+
get selectedFiltered() {
|
|
8944
|
+
return this.filterList(this.selectedItems, this.selectedSearch);
|
|
8945
|
+
}
|
|
8946
|
+
get availableItems() {
|
|
8947
|
+
return (this.items || []).filter(item => !this.selectedItems.some(selected => this.sameValue(item, selected)));
|
|
8948
|
+
}
|
|
8949
|
+
writeValue(value) {
|
|
8950
|
+
this.selectedItems = value || [];
|
|
8951
|
+
}
|
|
8952
|
+
registerOnChange(fn) { this.onChange = fn; }
|
|
8953
|
+
registerOnTouched(fn) { this.onTouched = fn; }
|
|
8954
|
+
setDisabledState(disabled) { this.disabled = disabled; }
|
|
8955
|
+
onChange = () => { };
|
|
8956
|
+
onTouched = () => { };
|
|
8957
|
+
addItem(item) {
|
|
8958
|
+
if (this.disabled)
|
|
8959
|
+
return;
|
|
8960
|
+
this.selectedItems = [...this.selectedItems, item];
|
|
8961
|
+
this.itemAdded.emit(item);
|
|
8962
|
+
this.emit();
|
|
8963
|
+
}
|
|
8964
|
+
removeItem(item) {
|
|
8965
|
+
if (this.disabled)
|
|
8966
|
+
return;
|
|
8967
|
+
this.selectedItems = this.selectedItems.filter(selected => !this.sameValue(selected, item));
|
|
8968
|
+
this.itemRemoved.emit(item);
|
|
8969
|
+
this.emit();
|
|
8970
|
+
}
|
|
8971
|
+
addAll() {
|
|
8972
|
+
const next = this.availableFiltered.filter(item => !this.selectedItems.some(selected => this.sameValue(item, selected)));
|
|
8973
|
+
this.selectedItems = [...this.selectedItems, ...next];
|
|
8974
|
+
this.allItemAdded.emit(next);
|
|
8975
|
+
this.emit();
|
|
8976
|
+
}
|
|
8977
|
+
removeAll() {
|
|
8978
|
+
const removed = this.selectedFiltered;
|
|
8979
|
+
this.selectedItems = this.selectedItems.filter(item => !removed.some(selected => this.sameValue(item, selected)));
|
|
8980
|
+
this.allItemRemoved.emit(removed);
|
|
8981
|
+
this.emit();
|
|
8982
|
+
}
|
|
8983
|
+
filter() { }
|
|
8984
|
+
getDisplay(item) {
|
|
8985
|
+
if (!item)
|
|
8986
|
+
return '';
|
|
8987
|
+
if (this.displayWith)
|
|
8988
|
+
return this.displayWith(item);
|
|
8989
|
+
if (this.descPropertyFn)
|
|
8990
|
+
return this.descPropertyFn(item);
|
|
8991
|
+
return `${this.getNestedValue(item, this.descProperty) ?? ''}`;
|
|
8992
|
+
}
|
|
8993
|
+
trackByItem = (_, item) => this.getNestedValue(item, this.idProperty) ?? item;
|
|
8994
|
+
emit() {
|
|
8995
|
+
this.onChange(this.selectedItems);
|
|
8996
|
+
this.selectedItemsChange.emit(this.selectedItems);
|
|
8997
|
+
}
|
|
8998
|
+
filterList(list, term) {
|
|
8999
|
+
const normalized = this.normalize(term);
|
|
9000
|
+
return (list || []).filter(item => this.normalize(this.getDisplay(item)).includes(normalized));
|
|
9001
|
+
}
|
|
9002
|
+
sameValue(left, right) {
|
|
9003
|
+
const leftId = this.getNestedValue(left, this.idProperty);
|
|
9004
|
+
const rightId = this.getNestedValue(right, this.idProperty);
|
|
9005
|
+
return leftId != null && rightId != null ? leftId === rightId : left === right;
|
|
9006
|
+
}
|
|
9007
|
+
getNestedValue(value, property) {
|
|
9008
|
+
return (property || '').split('.').reduce((current, key) => current?.[key], value);
|
|
9009
|
+
}
|
|
9010
|
+
normalize(value) {
|
|
9011
|
+
return (value || '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
|
|
9012
|
+
}
|
|
9013
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechDualListboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9014
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechDualListboxComponent, isStandalone: true, selector: "ptech-dual-listbox", inputs: { items: "items", selectedItems: "selectedItems", disabled: "disabled", showFilter: "showFilter", height: "height", filterPlaceholder: "filterPlaceholder", availableLabel: "availableLabel", selectedLabel: "selectedLabel", addAllLabel: "addAllLabel", removeAllLabel: "removeAllLabel", emptyText: "emptyText", displayWith: "displayWith", descProperty: "descProperty", descPropertyFn: "descPropertyFn", idProperty: "idProperty", appearance: "appearance" }, outputs: { selectedItemsChange: "selectedItemsChange", itemAdded: "itemAdded", itemRemoved: "itemRemoved", allItemAdded: "allItemAdded", allItemRemoved: "allItemRemoved" }, providers: [{
|
|
9015
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9016
|
+
useExisting: forwardRef(() => PtechDualListboxComponent),
|
|
9017
|
+
multi: true,
|
|
9018
|
+
}], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true }], ngImport: i0, template: `
|
|
9019
|
+
<div class="dual-listbox" [class.disabled]="disabled">
|
|
9020
|
+
<section class="list-panel">
|
|
9021
|
+
<header>
|
|
9022
|
+
<strong>{{ availableLabel }}</strong>
|
|
9023
|
+
<button mat-button type="button" (click)="addAll()" [disabled]="disabled || !availableFiltered.length">{{ addAllLabel }}</button>
|
|
9024
|
+
</header>
|
|
9025
|
+
<mat-form-field *ngIf="showFilter" [appearance]="appearance">
|
|
9026
|
+
<mat-icon matPrefix>search</mat-icon>
|
|
9027
|
+
<input matInput [placeholder]="filterPlaceholder" [(ngModel)]="availableSearch" (ngModelChange)="filter()" />
|
|
9028
|
+
</mat-form-field>
|
|
9029
|
+
<div class="list" [style.height]="height">
|
|
9030
|
+
<button type="button" class="item" *ngFor="let item of availableFiltered; trackBy: trackByItem" (click)="addItem(item)" [disabled]="disabled">
|
|
9031
|
+
<ng-container *ngIf="itemTemplate; else defaultAvailable"
|
|
9032
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
9033
|
+
[ngTemplateOutletContext]="{ $implicit: item, selected: false }"></ng-container>
|
|
9034
|
+
<ng-template #defaultAvailable>{{ getDisplay(item) }}</ng-template>
|
|
9035
|
+
</button>
|
|
9036
|
+
<div class="empty" *ngIf="!availableFiltered.length">{{ emptyText }}</div>
|
|
9037
|
+
</div>
|
|
9038
|
+
</section>
|
|
9039
|
+
|
|
9040
|
+
<div class="center-actions" aria-hidden="true">
|
|
9041
|
+
<mat-icon>keyboard_double_arrow_right</mat-icon>
|
|
9042
|
+
<mat-icon>keyboard_double_arrow_left</mat-icon>
|
|
9043
|
+
</div>
|
|
9044
|
+
|
|
9045
|
+
<section class="list-panel">
|
|
9046
|
+
<header>
|
|
9047
|
+
<strong>{{ selectedLabel }}</strong>
|
|
9048
|
+
<button mat-button type="button" color="warn" (click)="removeAll()" [disabled]="disabled || !selectedFiltered.length">{{ removeAllLabel }}</button>
|
|
9049
|
+
</header>
|
|
9050
|
+
<mat-form-field *ngIf="showFilter" [appearance]="appearance">
|
|
9051
|
+
<mat-icon matPrefix>search</mat-icon>
|
|
9052
|
+
<input matInput [placeholder]="filterPlaceholder" [(ngModel)]="selectedSearch" (ngModelChange)="filter()" />
|
|
9053
|
+
</mat-form-field>
|
|
9054
|
+
<div class="list" [style.height]="height">
|
|
9055
|
+
<button type="button" class="item selected" *ngFor="let item of selectedFiltered; trackBy: trackByItem" (click)="removeItem(item)" [disabled]="disabled">
|
|
9056
|
+
<ng-container *ngIf="itemTemplate; else defaultSelected"
|
|
9057
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
9058
|
+
[ngTemplateOutletContext]="{ $implicit: item, selected: true }"></ng-container>
|
|
9059
|
+
<ng-template #defaultSelected>{{ getDisplay(item) }}</ng-template>
|
|
9060
|
+
</button>
|
|
9061
|
+
<div class="empty" *ngIf="!selectedFiltered.length">{{ emptyText }}</div>
|
|
9062
|
+
</div>
|
|
9063
|
+
</section>
|
|
9064
|
+
</div>
|
|
9065
|
+
`, isInline: true, styles: [":host{display:block}.dual-listbox{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch}.dual-listbox.disabled{opacity:.65}.list-panel{border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:10px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}mat-form-field{width:100%}.list{overflow:auto;display:grid;align-content:start;gap:4px}.item{width:100%;border:0;background:transparent;color:var(--app-text, inherit);text-align:left;border-radius:6px;padding:8px 10px;cursor:pointer}.item:hover{background:var(--app-chip-bg, rgba(0,0,0,.06))}.item.selected{background:var(--app-chip-bg, rgba(0,0,0,.04))}.empty{color:var(--app-text-muted, rgba(0,0,0,.55));padding:18px 8px;text-align:center}.center-actions{display:grid;align-content:center;color:var(--app-text-muted, rgba(0,0,0,.45))}@media (max-width: 720px){.dual-listbox{grid-template-columns:1fr}.center-actions{display:none}}\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: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9066
|
+
}
|
|
9067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechDualListboxComponent, decorators: [{
|
|
9068
|
+
type: Component,
|
|
9069
|
+
args: [{ selector: 'ptech-dual-listbox', imports: [CoreMaterialModule], template: `
|
|
9070
|
+
<div class="dual-listbox" [class.disabled]="disabled">
|
|
9071
|
+
<section class="list-panel">
|
|
9072
|
+
<header>
|
|
9073
|
+
<strong>{{ availableLabel }}</strong>
|
|
9074
|
+
<button mat-button type="button" (click)="addAll()" [disabled]="disabled || !availableFiltered.length">{{ addAllLabel }}</button>
|
|
9075
|
+
</header>
|
|
9076
|
+
<mat-form-field *ngIf="showFilter" [appearance]="appearance">
|
|
9077
|
+
<mat-icon matPrefix>search</mat-icon>
|
|
9078
|
+
<input matInput [placeholder]="filterPlaceholder" [(ngModel)]="availableSearch" (ngModelChange)="filter()" />
|
|
9079
|
+
</mat-form-field>
|
|
9080
|
+
<div class="list" [style.height]="height">
|
|
9081
|
+
<button type="button" class="item" *ngFor="let item of availableFiltered; trackBy: trackByItem" (click)="addItem(item)" [disabled]="disabled">
|
|
9082
|
+
<ng-container *ngIf="itemTemplate; else defaultAvailable"
|
|
9083
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
9084
|
+
[ngTemplateOutletContext]="{ $implicit: item, selected: false }"></ng-container>
|
|
9085
|
+
<ng-template #defaultAvailable>{{ getDisplay(item) }}</ng-template>
|
|
9086
|
+
</button>
|
|
9087
|
+
<div class="empty" *ngIf="!availableFiltered.length">{{ emptyText }}</div>
|
|
9088
|
+
</div>
|
|
9089
|
+
</section>
|
|
9090
|
+
|
|
9091
|
+
<div class="center-actions" aria-hidden="true">
|
|
9092
|
+
<mat-icon>keyboard_double_arrow_right</mat-icon>
|
|
9093
|
+
<mat-icon>keyboard_double_arrow_left</mat-icon>
|
|
9094
|
+
</div>
|
|
9095
|
+
|
|
9096
|
+
<section class="list-panel">
|
|
9097
|
+
<header>
|
|
9098
|
+
<strong>{{ selectedLabel }}</strong>
|
|
9099
|
+
<button mat-button type="button" color="warn" (click)="removeAll()" [disabled]="disabled || !selectedFiltered.length">{{ removeAllLabel }}</button>
|
|
9100
|
+
</header>
|
|
9101
|
+
<mat-form-field *ngIf="showFilter" [appearance]="appearance">
|
|
9102
|
+
<mat-icon matPrefix>search</mat-icon>
|
|
9103
|
+
<input matInput [placeholder]="filterPlaceholder" [(ngModel)]="selectedSearch" (ngModelChange)="filter()" />
|
|
9104
|
+
</mat-form-field>
|
|
9105
|
+
<div class="list" [style.height]="height">
|
|
9106
|
+
<button type="button" class="item selected" *ngFor="let item of selectedFiltered; trackBy: trackByItem" (click)="removeItem(item)" [disabled]="disabled">
|
|
9107
|
+
<ng-container *ngIf="itemTemplate; else defaultSelected"
|
|
9108
|
+
[ngTemplateOutlet]="itemTemplate"
|
|
9109
|
+
[ngTemplateOutletContext]="{ $implicit: item, selected: true }"></ng-container>
|
|
9110
|
+
<ng-template #defaultSelected>{{ getDisplay(item) }}</ng-template>
|
|
9111
|
+
</button>
|
|
9112
|
+
<div class="empty" *ngIf="!selectedFiltered.length">{{ emptyText }}</div>
|
|
9113
|
+
</div>
|
|
9114
|
+
</section>
|
|
9115
|
+
</div>
|
|
9116
|
+
`, providers: [{
|
|
9117
|
+
provide: NG_VALUE_ACCESSOR,
|
|
9118
|
+
useExisting: forwardRef(() => PtechDualListboxComponent),
|
|
9119
|
+
multi: true,
|
|
9120
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.dual-listbox{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch}.dual-listbox.disabled{opacity:.65}.list-panel{border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:10px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}mat-form-field{width:100%}.list{overflow:auto;display:grid;align-content:start;gap:4px}.item{width:100%;border:0;background:transparent;color:var(--app-text, inherit);text-align:left;border-radius:6px;padding:8px 10px;cursor:pointer}.item:hover{background:var(--app-chip-bg, rgba(0,0,0,.06))}.item.selected{background:var(--app-chip-bg, rgba(0,0,0,.04))}.empty{color:var(--app-text-muted, rgba(0,0,0,.55));padding:18px 8px;text-align:center}.center-actions{display:grid;align-content:center;color:var(--app-text-muted, rgba(0,0,0,.45))}@media (max-width: 720px){.dual-listbox{grid-template-columns:1fr}.center-actions{display:none}}\n"] }]
|
|
9121
|
+
}], propDecorators: { itemTemplate: [{
|
|
9122
|
+
type: ContentChild,
|
|
9123
|
+
args: ['item', { static: false }]
|
|
9124
|
+
}], items: [{
|
|
9125
|
+
type: Input
|
|
9126
|
+
}], selectedItems: [{
|
|
9127
|
+
type: Input
|
|
9128
|
+
}], selectedItemsChange: [{
|
|
9129
|
+
type: Output
|
|
9130
|
+
}], itemAdded: [{
|
|
9131
|
+
type: Output
|
|
9132
|
+
}], itemRemoved: [{
|
|
9133
|
+
type: Output
|
|
9134
|
+
}], allItemAdded: [{
|
|
9135
|
+
type: Output
|
|
9136
|
+
}], allItemRemoved: [{
|
|
9137
|
+
type: Output
|
|
9138
|
+
}], disabled: [{
|
|
9139
|
+
type: Input
|
|
9140
|
+
}], showFilter: [{
|
|
9141
|
+
type: Input
|
|
9142
|
+
}], height: [{
|
|
9143
|
+
type: Input
|
|
9144
|
+
}], filterPlaceholder: [{
|
|
9145
|
+
type: Input
|
|
9146
|
+
}], availableLabel: [{
|
|
9147
|
+
type: Input
|
|
9148
|
+
}], selectedLabel: [{
|
|
9149
|
+
type: Input
|
|
9150
|
+
}], addAllLabel: [{
|
|
9151
|
+
type: Input
|
|
9152
|
+
}], removeAllLabel: [{
|
|
9153
|
+
type: Input
|
|
9154
|
+
}], emptyText: [{
|
|
9155
|
+
type: Input
|
|
9156
|
+
}], displayWith: [{
|
|
9157
|
+
type: Input
|
|
9158
|
+
}], descProperty: [{
|
|
9159
|
+
type: Input
|
|
9160
|
+
}], descPropertyFn: [{
|
|
9161
|
+
type: Input
|
|
9162
|
+
}], idProperty: [{
|
|
9163
|
+
type: Input
|
|
9164
|
+
}], appearance: [{
|
|
9165
|
+
type: Input
|
|
9166
|
+
}] } });
|
|
9167
|
+
|
|
9168
|
+
class PtechTabComponent {
|
|
9169
|
+
index;
|
|
9170
|
+
label = '';
|
|
9171
|
+
icon = '';
|
|
9172
|
+
badge;
|
|
9173
|
+
counter;
|
|
9174
|
+
active = false;
|
|
9175
|
+
closeable = false;
|
|
9176
|
+
disabled = false;
|
|
9177
|
+
template;
|
|
9178
|
+
data;
|
|
9179
|
+
routerLink;
|
|
9180
|
+
selectionChange = new EventEmitter();
|
|
9181
|
+
action;
|
|
9182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9183
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTabComponent, isStandalone: true, selector: "ptech-tab", inputs: { index: "index", label: "label", icon: "icon", badge: "badge", counter: "counter", active: "active", closeable: "closeable", disabled: "disabled", template: "template", data: "data", routerLink: "routerLink" }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: `
|
|
9184
|
+
<div *ngIf="active" class="ptech-tab-content">
|
|
9185
|
+
<ng-content></ng-content>
|
|
9186
|
+
<ng-container *ngIf="template"
|
|
9187
|
+
[ngTemplateOutlet]="template"
|
|
9188
|
+
[ngTemplateOutletContext]="{ $implicit: data }"></ng-container>
|
|
9189
|
+
</div>
|
|
9190
|
+
`, isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9191
|
+
}
|
|
9192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabComponent, decorators: [{
|
|
9193
|
+
type: Component,
|
|
9194
|
+
args: [{ selector: 'ptech-tab', imports: [CoreMaterialModule], template: `
|
|
9195
|
+
<div *ngIf="active" class="ptech-tab-content">
|
|
9196
|
+
<ng-content></ng-content>
|
|
9197
|
+
<ng-container *ngIf="template"
|
|
9198
|
+
[ngTemplateOutlet]="template"
|
|
9199
|
+
[ngTemplateOutletContext]="{ $implicit: data }"></ng-container>
|
|
9200
|
+
</div>
|
|
9201
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
|
|
9202
|
+
}], propDecorators: { index: [{
|
|
9203
|
+
type: Input
|
|
9204
|
+
}], label: [{
|
|
9205
|
+
type: Input
|
|
9206
|
+
}], icon: [{
|
|
9207
|
+
type: Input
|
|
9208
|
+
}], badge: [{
|
|
9209
|
+
type: Input
|
|
9210
|
+
}], counter: [{
|
|
9211
|
+
type: Input
|
|
9212
|
+
}], active: [{
|
|
9213
|
+
type: Input
|
|
9214
|
+
}], closeable: [{
|
|
9215
|
+
type: Input
|
|
9216
|
+
}], disabled: [{
|
|
9217
|
+
type: Input
|
|
9218
|
+
}], template: [{
|
|
9219
|
+
type: Input
|
|
9220
|
+
}], data: [{
|
|
9221
|
+
type: Input
|
|
9222
|
+
}], routerLink: [{
|
|
9223
|
+
type: Input
|
|
9224
|
+
}], selectionChange: [{
|
|
9225
|
+
type: Output
|
|
9226
|
+
}] } });
|
|
9227
|
+
|
|
9228
|
+
class PtechTabsComponent {
|
|
9229
|
+
tabs;
|
|
9230
|
+
scrollable = true;
|
|
9231
|
+
selectedTabChange = new EventEmitter();
|
|
9232
|
+
dynamicTabs = [];
|
|
9233
|
+
get projectedTabs() {
|
|
9234
|
+
return this.tabs?.toArray() || [];
|
|
9235
|
+
}
|
|
9236
|
+
ngAfterContentInit() {
|
|
9237
|
+
if (!this.allTabs.some(tab => tab.active) && this.allTabs.length) {
|
|
9238
|
+
this.selectTab(this.allTabs[0]);
|
|
9239
|
+
}
|
|
9240
|
+
}
|
|
9241
|
+
openTab(label, template, data, closeable = false, disabled = false, action) {
|
|
9242
|
+
this.openTabs([{ label, template, data, closeable, disabled, action }]);
|
|
9243
|
+
}
|
|
9244
|
+
openTabs(tabs) {
|
|
9245
|
+
this.dynamicTabs.push(...tabs.map(tab => this.createDynamicTab(tab)));
|
|
9246
|
+
if (this.dynamicTabs.length) {
|
|
9247
|
+
this.selectTab(this.dynamicTabs[this.dynamicTabs.length - tabs.length]);
|
|
9248
|
+
}
|
|
9249
|
+
}
|
|
9250
|
+
selectTab(tab) {
|
|
9251
|
+
if (tab.disabled)
|
|
9252
|
+
return;
|
|
9253
|
+
this.allTabs.forEach(item => item.active = false);
|
|
9254
|
+
tab.active = true;
|
|
9255
|
+
tab.selectionChange.emit(tab.data);
|
|
9256
|
+
tab.action?.(tab.data);
|
|
9257
|
+
this.selectedTabChange.emit(tab);
|
|
9258
|
+
}
|
|
9259
|
+
closeTab(tab) {
|
|
9260
|
+
const index = this.dynamicTabs.indexOf(tab);
|
|
9261
|
+
if (index >= 0) {
|
|
9262
|
+
this.dynamicTabs.splice(index, 1);
|
|
9263
|
+
this.selectTab(this.allTabs[0]);
|
|
9264
|
+
}
|
|
9265
|
+
}
|
|
9266
|
+
closeActiveTab() {
|
|
9267
|
+
const active = this.dynamicTabs.find(tab => tab.active);
|
|
9268
|
+
if (active)
|
|
9269
|
+
this.closeTab(active);
|
|
9270
|
+
}
|
|
9271
|
+
closeAllTabs() {
|
|
9272
|
+
this.dynamicTabs = [];
|
|
9273
|
+
if (this.projectedTabs.length)
|
|
9274
|
+
this.selectTab(this.projectedTabs[0]);
|
|
9275
|
+
}
|
|
9276
|
+
nextTab() {
|
|
9277
|
+
const tabs = this.allTabs;
|
|
9278
|
+
const index = tabs.findIndex(tab => tab.active);
|
|
9279
|
+
if (tabs[index + 1])
|
|
9280
|
+
this.selectTab(tabs[index + 1]);
|
|
9281
|
+
}
|
|
9282
|
+
previousTab() {
|
|
9283
|
+
const tabs = this.allTabs;
|
|
9284
|
+
const index = tabs.findIndex(tab => tab.active);
|
|
9285
|
+
if (tabs[index - 1])
|
|
9286
|
+
this.selectTab(tabs[index - 1]);
|
|
9287
|
+
}
|
|
9288
|
+
trackByTab = (_, tab) => tab.label;
|
|
9289
|
+
get allTabs() {
|
|
9290
|
+
return [...this.projectedTabs, ...this.dynamicTabs];
|
|
9291
|
+
}
|
|
9292
|
+
createDynamicTab(config) {
|
|
9293
|
+
const tab = new PtechTabComponent();
|
|
9294
|
+
tab.label = config.label;
|
|
9295
|
+
tab.icon = config.icon || '';
|
|
9296
|
+
tab.badge = config.badge;
|
|
9297
|
+
tab.counter = config.counter;
|
|
9298
|
+
tab.template = config.template;
|
|
9299
|
+
tab.data = config.data;
|
|
9300
|
+
tab.closeable = !!config.closeable;
|
|
9301
|
+
tab.disabled = !!config.disabled;
|
|
9302
|
+
tab.action = config.action;
|
|
9303
|
+
return tab;
|
|
9304
|
+
}
|
|
9305
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9306
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTabsComponent, isStandalone: true, selector: "ptech-tabs", inputs: { scrollable: "scrollable" }, outputs: { selectedTabChange: "selectedTabChange" }, queries: [{ propertyName: "tabs", predicate: PtechTabComponent }], ngImport: i0, template: `
|
|
9307
|
+
<nav mat-tab-nav-bar [tabPanel]="tabPanel" class="ptech-tabs-nav" [class.scrollable]="scrollable">
|
|
9308
|
+
<a mat-tab-link
|
|
9309
|
+
*ngFor="let tab of projectedTabs; trackBy: trackByTab"
|
|
9310
|
+
[active]="tab.active"
|
|
9311
|
+
[disabled]="tab.disabled"
|
|
9312
|
+
[routerLink]="tab.routerLink || null"
|
|
9313
|
+
(click)="selectTab(tab)">
|
|
9314
|
+
<mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
|
|
9315
|
+
<span>{{ tab.label }}</span>
|
|
9316
|
+
<span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
|
|
9317
|
+
</a>
|
|
9318
|
+
|
|
9319
|
+
<a mat-tab-link
|
|
9320
|
+
*ngFor="let tab of dynamicTabs; trackBy: trackByTab"
|
|
9321
|
+
[active]="tab.active"
|
|
9322
|
+
[disabled]="tab.disabled"
|
|
9323
|
+
(click)="selectTab(tab)">
|
|
9324
|
+
<mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
|
|
9325
|
+
<span>{{ tab.label }}</span>
|
|
9326
|
+
<span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
|
|
9327
|
+
<button mat-icon-button type="button" *ngIf="tab.closeable" (click)="closeTab(tab); $event.stopPropagation()">
|
|
9328
|
+
<mat-icon>close</mat-icon>
|
|
9329
|
+
</button>
|
|
9330
|
+
</a>
|
|
9331
|
+
</nav>
|
|
9332
|
+
|
|
9333
|
+
<mat-tab-nav-panel #tabPanel>
|
|
9334
|
+
<ng-content></ng-content>
|
|
9335
|
+
<ng-container *ngFor="let tab of dynamicTabs; trackBy: trackByTab">
|
|
9336
|
+
<ptech-tab [active]="tab.active" [template]="tab.template" [data]="tab.data"></ptech-tab>
|
|
9337
|
+
</ng-container>
|
|
9338
|
+
</mat-tab-nav-panel>
|
|
9339
|
+
`, isInline: true, styles: [":host{display:block}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content}.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$4.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i4$4.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i4$4.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", "active", "closeable", "disabled", "template", "data", "routerLink"], outputs: ["selectionChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9340
|
+
}
|
|
9341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, decorators: [{
|
|
9342
|
+
type: Component,
|
|
9343
|
+
args: [{ selector: 'ptech-tabs', imports: [CoreMaterialModule, PtechTabComponent], template: `
|
|
9344
|
+
<nav mat-tab-nav-bar [tabPanel]="tabPanel" class="ptech-tabs-nav" [class.scrollable]="scrollable">
|
|
9345
|
+
<a mat-tab-link
|
|
9346
|
+
*ngFor="let tab of projectedTabs; trackBy: trackByTab"
|
|
9347
|
+
[active]="tab.active"
|
|
9348
|
+
[disabled]="tab.disabled"
|
|
9349
|
+
[routerLink]="tab.routerLink || null"
|
|
9350
|
+
(click)="selectTab(tab)">
|
|
9351
|
+
<mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
|
|
9352
|
+
<span>{{ tab.label }}</span>
|
|
9353
|
+
<span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
|
|
9354
|
+
</a>
|
|
9355
|
+
|
|
9356
|
+
<a mat-tab-link
|
|
9357
|
+
*ngFor="let tab of dynamicTabs; trackBy: trackByTab"
|
|
9358
|
+
[active]="tab.active"
|
|
9359
|
+
[disabled]="tab.disabled"
|
|
9360
|
+
(click)="selectTab(tab)">
|
|
9361
|
+
<mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
|
|
9362
|
+
<span>{{ tab.label }}</span>
|
|
9363
|
+
<span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
|
|
9364
|
+
<button mat-icon-button type="button" *ngIf="tab.closeable" (click)="closeTab(tab); $event.stopPropagation()">
|
|
9365
|
+
<mat-icon>close</mat-icon>
|
|
9366
|
+
</button>
|
|
9367
|
+
</a>
|
|
9368
|
+
</nav>
|
|
9369
|
+
|
|
9370
|
+
<mat-tab-nav-panel #tabPanel>
|
|
9371
|
+
<ng-content></ng-content>
|
|
9372
|
+
<ng-container *ngFor="let tab of dynamicTabs; trackBy: trackByTab">
|
|
9373
|
+
<ptech-tab [active]="tab.active" [template]="tab.template" [data]="tab.data"></ptech-tab>
|
|
9374
|
+
</ng-container>
|
|
9375
|
+
</mat-tab-nav-panel>
|
|
9376
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content}.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"] }]
|
|
9377
|
+
}], propDecorators: { tabs: [{
|
|
9378
|
+
type: ContentChildren,
|
|
9379
|
+
args: [PtechTabComponent]
|
|
9380
|
+
}], scrollable: [{
|
|
9381
|
+
type: Input
|
|
9382
|
+
}], selectedTabChange: [{
|
|
9383
|
+
type: Output
|
|
9384
|
+
}] } });
|
|
9385
|
+
|
|
9386
|
+
class PtechPopoverComponent {
|
|
9387
|
+
contentTemplate;
|
|
9388
|
+
position = 'auto';
|
|
9389
|
+
trigger = 'click';
|
|
9390
|
+
dark = false;
|
|
9391
|
+
opened = false;
|
|
9392
|
+
open() { this.opened = true; }
|
|
9393
|
+
close() { this.opened = false; }
|
|
9394
|
+
toggle() { this.opened = !this.opened; }
|
|
9395
|
+
onClick() {
|
|
9396
|
+
if (this.trigger === 'click')
|
|
9397
|
+
this.toggle();
|
|
9398
|
+
}
|
|
9399
|
+
onMouseEnter() {
|
|
9400
|
+
if (this.trigger === 'hover')
|
|
9401
|
+
this.open();
|
|
9402
|
+
}
|
|
9403
|
+
onMouseLeave() {
|
|
9404
|
+
if (this.trigger === 'hover')
|
|
9405
|
+
this.close();
|
|
9406
|
+
}
|
|
9407
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9408
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechPopoverComponent, isStandalone: true, selector: "ptech-popover", inputs: { position: "position", trigger: "trigger", dark: "dark", opened: "opened" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
|
|
9409
|
+
<span class="anchor"
|
|
9410
|
+
(click)="onClick()"
|
|
9411
|
+
(mouseenter)="onMouseEnter()"
|
|
9412
|
+
(mouseleave)="onMouseLeave()">
|
|
9413
|
+
<ng-content select="[trigger]"></ng-content>
|
|
9414
|
+
<span class="panel"
|
|
9415
|
+
*ngIf="opened"
|
|
9416
|
+
[class.dark]="dark"
|
|
9417
|
+
[class.top]="position === 'top'"
|
|
9418
|
+
[class.bottom]="position === 'bottom' || position === 'auto'"
|
|
9419
|
+
[class.left]="position === 'left'"
|
|
9420
|
+
[class.right]="position === 'right'">
|
|
9421
|
+
<ng-container *ngIf="contentTemplate; else projected"
|
|
9422
|
+
[ngTemplateOutlet]="contentTemplate"></ng-container>
|
|
9423
|
+
<ng-template #projected><ng-content></ng-content></ng-template>
|
|
9424
|
+
</span>
|
|
9425
|
+
</span>
|
|
9426
|
+
`, isInline: true, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,90vw);padding:10px 12px;border-radius:8px;background:var(--app-surface, #fff);color:var(--app-text, inherit);border:1px solid var(--app-border-color, rgba(0,0,0,.12));box-shadow:0 14px 36px #0000002e}.panel.dark{background:#1f2937;color:#fff;border-color:#ffffff1f}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.left{right:calc(100% + 8px);top:0}.right{left:calc(100% + 8px);top:0}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9427
|
+
}
|
|
9428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechPopoverComponent, decorators: [{
|
|
9429
|
+
type: Component,
|
|
9430
|
+
args: [{ selector: 'ptech-popover', imports: [CoreMaterialModule], template: `
|
|
9431
|
+
<span class="anchor"
|
|
9432
|
+
(click)="onClick()"
|
|
9433
|
+
(mouseenter)="onMouseEnter()"
|
|
9434
|
+
(mouseleave)="onMouseLeave()">
|
|
9435
|
+
<ng-content select="[trigger]"></ng-content>
|
|
9436
|
+
<span class="panel"
|
|
9437
|
+
*ngIf="opened"
|
|
9438
|
+
[class.dark]="dark"
|
|
9439
|
+
[class.top]="position === 'top'"
|
|
9440
|
+
[class.bottom]="position === 'bottom' || position === 'auto'"
|
|
9441
|
+
[class.left]="position === 'left'"
|
|
9442
|
+
[class.right]="position === 'right'">
|
|
9443
|
+
<ng-container *ngIf="contentTemplate; else projected"
|
|
9444
|
+
[ngTemplateOutlet]="contentTemplate"></ng-container>
|
|
9445
|
+
<ng-template #projected><ng-content></ng-content></ng-template>
|
|
9446
|
+
</span>
|
|
9447
|
+
</span>
|
|
9448
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,90vw);padding:10px 12px;border-radius:8px;background:var(--app-surface, #fff);color:var(--app-text, inherit);border:1px solid var(--app-border-color, rgba(0,0,0,.12));box-shadow:0 14px 36px #0000002e}.panel.dark{background:#1f2937;color:#fff;border-color:#ffffff1f}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.left{right:calc(100% + 8px);top:0}.right{left:calc(100% + 8px);top:0}\n"] }]
|
|
9449
|
+
}], propDecorators: { contentTemplate: [{
|
|
9450
|
+
type: ContentChild,
|
|
9451
|
+
args: ['content', { static: false }]
|
|
9452
|
+
}], position: [{
|
|
9453
|
+
type: Input
|
|
9454
|
+
}], trigger: [{
|
|
9455
|
+
type: Input
|
|
9456
|
+
}], dark: [{
|
|
9457
|
+
type: Input
|
|
9458
|
+
}], opened: [{
|
|
9459
|
+
type: Input
|
|
9460
|
+
}] } });
|
|
9461
|
+
|
|
9462
|
+
class PtechWidgetMenuComponent {
|
|
9463
|
+
label = '';
|
|
9464
|
+
subtitle = '';
|
|
9465
|
+
icon = '';
|
|
9466
|
+
actionsIcon = 'more_horiz';
|
|
9467
|
+
showActionsIcon = true;
|
|
9468
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechWidgetMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9469
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechWidgetMenuComponent, isStandalone: true, selector: "ptech-widget-menu", inputs: { label: "label", subtitle: "subtitle", icon: "icon", actionsIcon: "actionsIcon", showActionsIcon: "showActionsIcon" }, ngImport: i0, template: `
|
|
9470
|
+
<div class="widget-menu" matRipple>
|
|
9471
|
+
<div class="actions" *ngIf="showActionsIcon">
|
|
9472
|
+
<ptech-icon [icon]="actionsIcon"></ptech-icon>
|
|
9473
|
+
</div>
|
|
9474
|
+
<div class="content">
|
|
9475
|
+
<div class="icon-bg" *ngIf="icon">
|
|
9476
|
+
<ptech-icon [icon]="icon"></ptech-icon>
|
|
9477
|
+
</div>
|
|
9478
|
+
<div class="title">{{ label }}</div>
|
|
9479
|
+
<div class="subtitle" *ngIf="subtitle">{{ subtitle }}</div>
|
|
9480
|
+
</div>
|
|
9481
|
+
</div>
|
|
9482
|
+
`, isInline: true, styles: [":host{display:block}.widget-menu{min-height:132px;border-radius:8px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background:var(--app-surface, #fff);color:var(--app-text, inherit);position:relative;overflow:hidden;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.widget-menu:hover{transform:translateY(-1px);box-shadow:0 10px 26px #0000001f}.actions{position:absolute;top:10px;right:10px;color:var(--app-text-muted, rgba(0,0,0,.45))}.content{min-height:132px;display:grid;place-items:center;align-content:center;gap:10px;padding:20px;text-align:center}.icon-bg{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-primary, #3f51b5)}.title{font-weight:700}.subtitle{color:var(--app-text-muted, rgba(0,0,0,.55));font-size:13px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "component", type: IconComponent, selector: "ptech-icon", inputs: ["icon", "color", "size", "ariaHidden", "ariaLabel", "col"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
9483
|
+
}
|
|
9484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechWidgetMenuComponent, decorators: [{
|
|
9485
|
+
type: Component,
|
|
9486
|
+
args: [{ selector: 'ptech-widget-menu', imports: [CoreMaterialModule, IconComponent], template: `
|
|
9487
|
+
<div class="widget-menu" matRipple>
|
|
9488
|
+
<div class="actions" *ngIf="showActionsIcon">
|
|
9489
|
+
<ptech-icon [icon]="actionsIcon"></ptech-icon>
|
|
9490
|
+
</div>
|
|
9491
|
+
<div class="content">
|
|
9492
|
+
<div class="icon-bg" *ngIf="icon">
|
|
9493
|
+
<ptech-icon [icon]="icon"></ptech-icon>
|
|
9494
|
+
</div>
|
|
9495
|
+
<div class="title">{{ label }}</div>
|
|
9496
|
+
<div class="subtitle" *ngIf="subtitle">{{ subtitle }}</div>
|
|
9497
|
+
</div>
|
|
9498
|
+
</div>
|
|
9499
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.widget-menu{min-height:132px;border-radius:8px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background:var(--app-surface, #fff);color:var(--app-text, inherit);position:relative;overflow:hidden;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.widget-menu:hover{transform:translateY(-1px);box-shadow:0 10px 26px #0000001f}.actions{position:absolute;top:10px;right:10px;color:var(--app-text-muted, rgba(0,0,0,.45))}.content{min-height:132px;display:grid;place-items:center;align-content:center;gap:10px;padding:20px;text-align:center}.icon-bg{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-primary, #3f51b5)}.title{font-weight:700}.subtitle{color:var(--app-text-muted, rgba(0,0,0,.55));font-size:13px}\n"] }]
|
|
9500
|
+
}], propDecorators: { label: [{
|
|
9501
|
+
type: Input
|
|
9502
|
+
}], subtitle: [{
|
|
9503
|
+
type: Input
|
|
9504
|
+
}], icon: [{
|
|
9505
|
+
type: Input
|
|
9506
|
+
}], actionsIcon: [{
|
|
9507
|
+
type: Input
|
|
9508
|
+
}], showActionsIcon: [{
|
|
9509
|
+
type: Input
|
|
9510
|
+
}] } });
|
|
9511
|
+
|
|
9512
|
+
const SWIPE_THRESHOLD_PX = 40;
|
|
9513
|
+
class PtechCarouselComponent {
|
|
9514
|
+
cdr;
|
|
9515
|
+
items = [];
|
|
9516
|
+
autoPlay = true;
|
|
9517
|
+
interval = 5000;
|
|
9518
|
+
loop = true;
|
|
9519
|
+
pauseOnHover = true;
|
|
9520
|
+
showIndicators = true;
|
|
9521
|
+
showNavigation = true;
|
|
9522
|
+
ariaLabel = 'Carrossel';
|
|
9523
|
+
itemClick = new EventEmitter();
|
|
9524
|
+
activeIndexChange = new EventEmitter();
|
|
9525
|
+
activeIndex = 0;
|
|
9526
|
+
timerId;
|
|
9527
|
+
isPaused = false;
|
|
9528
|
+
touchStartX = null;
|
|
9529
|
+
constructor(cdr) {
|
|
9530
|
+
this.cdr = cdr;
|
|
9531
|
+
}
|
|
9532
|
+
ngOnChanges(changes) {
|
|
9533
|
+
if (this.activeIndex >= this.items.length) {
|
|
9534
|
+
this.activeIndex = 0;
|
|
9535
|
+
}
|
|
9536
|
+
this.restartAutoPlay();
|
|
9537
|
+
}
|
|
9538
|
+
ngOnDestroy() {
|
|
9539
|
+
this.stopAutoPlay();
|
|
9540
|
+
}
|
|
9541
|
+
onMouseEnter() {
|
|
9542
|
+
if (this.pauseOnHover)
|
|
9543
|
+
this.isPaused = true;
|
|
9544
|
+
}
|
|
9545
|
+
onMouseLeave() {
|
|
9546
|
+
if (this.pauseOnHover)
|
|
9547
|
+
this.isPaused = false;
|
|
9548
|
+
}
|
|
9549
|
+
onKeydown(event) {
|
|
9550
|
+
if (event.key === 'ArrowLeft') {
|
|
9551
|
+
this.prev();
|
|
9552
|
+
event.preventDefault();
|
|
9553
|
+
}
|
|
9554
|
+
else if (event.key === 'ArrowRight') {
|
|
9555
|
+
this.next();
|
|
9556
|
+
event.preventDefault();
|
|
9557
|
+
}
|
|
9558
|
+
}
|
|
9559
|
+
next() {
|
|
9560
|
+
if (!this.items.length)
|
|
9561
|
+
return;
|
|
9562
|
+
if (this.activeIndex < this.items.length - 1) {
|
|
9563
|
+
this.setActiveIndex(this.activeIndex + 1);
|
|
9564
|
+
}
|
|
9565
|
+
else if (this.loop) {
|
|
9566
|
+
this.setActiveIndex(0);
|
|
9567
|
+
}
|
|
9568
|
+
}
|
|
9569
|
+
prev() {
|
|
9570
|
+
if (!this.items.length)
|
|
9571
|
+
return;
|
|
9572
|
+
if (this.activeIndex > 0) {
|
|
9573
|
+
this.setActiveIndex(this.activeIndex - 1);
|
|
9574
|
+
}
|
|
9575
|
+
else if (this.loop) {
|
|
9576
|
+
this.setActiveIndex(this.items.length - 1);
|
|
9577
|
+
}
|
|
9578
|
+
}
|
|
9579
|
+
goTo(index) {
|
|
9580
|
+
this.setActiveIndex(index);
|
|
9581
|
+
}
|
|
9582
|
+
onTouchStart(event) {
|
|
9583
|
+
this.touchStartX = event.touches[0]?.clientX ?? null;
|
|
9584
|
+
}
|
|
9585
|
+
onTouchEnd(event) {
|
|
9586
|
+
if (this.touchStartX === null)
|
|
9587
|
+
return;
|
|
9588
|
+
const endX = event.changedTouches[0]?.clientX ?? this.touchStartX;
|
|
9589
|
+
const deltaX = endX - this.touchStartX;
|
|
9590
|
+
if (deltaX > SWIPE_THRESHOLD_PX) {
|
|
9591
|
+
this.prev();
|
|
9592
|
+
}
|
|
9593
|
+
else if (deltaX < -SWIPE_THRESHOLD_PX) {
|
|
9594
|
+
this.next();
|
|
9595
|
+
}
|
|
9596
|
+
this.touchStartX = null;
|
|
9597
|
+
}
|
|
9598
|
+
onItemAction(item) {
|
|
9599
|
+
this.itemClick.emit(item);
|
|
9600
|
+
}
|
|
9601
|
+
trackByItem = (_, item) => item.id ?? item.image ?? item.title;
|
|
9602
|
+
setActiveIndex(index) {
|
|
9603
|
+
this.activeIndex = index;
|
|
9604
|
+
this.activeIndexChange.emit(index);
|
|
9605
|
+
}
|
|
9606
|
+
restartAutoPlay() {
|
|
9607
|
+
this.stopAutoPlay();
|
|
9608
|
+
if (this.autoPlay && this.items.length > 1) {
|
|
9609
|
+
this.timerId = setInterval(() => {
|
|
9610
|
+
if (!this.isPaused) {
|
|
9611
|
+
this.next();
|
|
9612
|
+
this.cdr.markForCheck();
|
|
9613
|
+
}
|
|
9614
|
+
}, this.interval);
|
|
9615
|
+
}
|
|
9616
|
+
}
|
|
9617
|
+
stopAutoPlay() {
|
|
9618
|
+
if (this.timerId) {
|
|
9619
|
+
clearInterval(this.timerId);
|
|
9620
|
+
this.timerId = undefined;
|
|
9621
|
+
}
|
|
9622
|
+
}
|
|
9623
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechCarouselComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9624
|
+
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: `
|
|
9625
|
+
<div class="ptech-carousel"
|
|
9626
|
+
role="region"
|
|
9627
|
+
[attr.aria-roledescription]="'carousel'"
|
|
9628
|
+
[attr.aria-label]="ariaLabel"
|
|
9629
|
+
tabindex="0"
|
|
9630
|
+
(mouseenter)="onMouseEnter()"
|
|
9631
|
+
(mouseleave)="onMouseLeave()"
|
|
9632
|
+
(touchstart)="onTouchStart($event)"
|
|
9633
|
+
(touchend)="onTouchEnd($event)"
|
|
9634
|
+
(keydown)="onKeydown($event)">
|
|
9635
|
+
|
|
9636
|
+
<div class="ptech-carousel__viewport">
|
|
9637
|
+
<div class="ptech-carousel__track" [style.transform]="'translateX(' + (-activeIndex * 100) + '%)'">
|
|
9638
|
+
<div class="ptech-carousel__slide"
|
|
9639
|
+
*ngFor="let item of items; let i = index; trackBy: trackByItem"
|
|
9640
|
+
[attr.aria-hidden]="i !== activeIndex"
|
|
9641
|
+
[attr.aria-roledescription]="'slide'"
|
|
9642
|
+
[attr.aria-label]="(i + 1) + ' / ' + items.length">
|
|
9643
|
+
<img *ngIf="item.image" [src]="item.image" [alt]="item.alt || item.title || ''" class="ptech-carousel__image" />
|
|
9644
|
+
<div class="ptech-carousel__fallback" *ngIf="!item.image">
|
|
9645
|
+
<ptech-icon icon="image"></ptech-icon>
|
|
9646
|
+
</div>
|
|
9647
|
+
<div class="ptech-carousel__caption" *ngIf="item.title || item.description || item.actionLabel">
|
|
9648
|
+
<h3 *ngIf="item.title">{{ item.title }}</h3>
|
|
9649
|
+
<p *ngIf="item.description">{{ item.description }}</p>
|
|
9650
|
+
<button type="button"
|
|
9651
|
+
*ngIf="item.actionLabel"
|
|
9652
|
+
class="ptech-carousel__action"
|
|
9653
|
+
(click)="onItemAction(item)">{{ item.actionLabel }}</button>
|
|
9654
|
+
</div>
|
|
9655
|
+
</div>
|
|
9656
|
+
</div>
|
|
9657
|
+
</div>
|
|
9658
|
+
|
|
9659
|
+
<button type="button" class="ptech-carousel__nav ptech-carousel__nav--prev" (click)="prev()" aria-label="Slide anterior" *ngIf="showNavigation && items.length > 1">
|
|
9660
|
+
<mat-icon>chevron_left</mat-icon>
|
|
9661
|
+
</button>
|
|
9662
|
+
<button type="button" class="ptech-carousel__nav ptech-carousel__nav--next" (click)="next()" aria-label="Próximo slide" *ngIf="showNavigation && items.length > 1">
|
|
9663
|
+
<mat-icon>chevron_right</mat-icon>
|
|
9664
|
+
</button>
|
|
9665
|
+
|
|
9666
|
+
<div class="ptech-carousel__indicators" *ngIf="showIndicators && items.length > 1">
|
|
9667
|
+
<button type="button"
|
|
9668
|
+
*ngFor="let item of items; let i = index; trackBy: trackByItem"
|
|
9669
|
+
class="ptech-carousel__dot"
|
|
9670
|
+
[class.ptech-carousel__dot--active]="i === activeIndex"
|
|
9671
|
+
(click)="goTo(i)"
|
|
9672
|
+
[attr.aria-label]="'Ir para o slide ' + (i + 1)"
|
|
9673
|
+
[attr.aria-current]="i === activeIndex"></button>
|
|
9674
|
+
</div>
|
|
9675
|
+
</div>
|
|
9676
|
+
`, 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:var(--app-space-4, 16px)}.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: "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 });
|
|
9677
|
+
}
|
|
9678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechCarouselComponent, decorators: [{
|
|
9679
|
+
type: Component,
|
|
9680
|
+
args: [{ selector: 'ptech-carousel', imports: [CoreMaterialModule, IconComponent], template: `
|
|
9681
|
+
<div class="ptech-carousel"
|
|
9682
|
+
role="region"
|
|
9683
|
+
[attr.aria-roledescription]="'carousel'"
|
|
9684
|
+
[attr.aria-label]="ariaLabel"
|
|
9685
|
+
tabindex="0"
|
|
9686
|
+
(mouseenter)="onMouseEnter()"
|
|
9687
|
+
(mouseleave)="onMouseLeave()"
|
|
9688
|
+
(touchstart)="onTouchStart($event)"
|
|
9689
|
+
(touchend)="onTouchEnd($event)"
|
|
9690
|
+
(keydown)="onKeydown($event)">
|
|
9691
|
+
|
|
9692
|
+
<div class="ptech-carousel__viewport">
|
|
9693
|
+
<div class="ptech-carousel__track" [style.transform]="'translateX(' + (-activeIndex * 100) + '%)'">
|
|
9694
|
+
<div class="ptech-carousel__slide"
|
|
9695
|
+
*ngFor="let item of items; let i = index; trackBy: trackByItem"
|
|
9696
|
+
[attr.aria-hidden]="i !== activeIndex"
|
|
9697
|
+
[attr.aria-roledescription]="'slide'"
|
|
9698
|
+
[attr.aria-label]="(i + 1) + ' / ' + items.length">
|
|
9699
|
+
<img *ngIf="item.image" [src]="item.image" [alt]="item.alt || item.title || ''" class="ptech-carousel__image" />
|
|
9700
|
+
<div class="ptech-carousel__fallback" *ngIf="!item.image">
|
|
9701
|
+
<ptech-icon icon="image"></ptech-icon>
|
|
9702
|
+
</div>
|
|
9703
|
+
<div class="ptech-carousel__caption" *ngIf="item.title || item.description || item.actionLabel">
|
|
9704
|
+
<h3 *ngIf="item.title">{{ item.title }}</h3>
|
|
9705
|
+
<p *ngIf="item.description">{{ item.description }}</p>
|
|
9706
|
+
<button type="button"
|
|
9707
|
+
*ngIf="item.actionLabel"
|
|
9708
|
+
class="ptech-carousel__action"
|
|
9709
|
+
(click)="onItemAction(item)">{{ item.actionLabel }}</button>
|
|
9710
|
+
</div>
|
|
9711
|
+
</div>
|
|
9712
|
+
</div>
|
|
9713
|
+
</div>
|
|
9714
|
+
|
|
9715
|
+
<button type="button" class="ptech-carousel__nav ptech-carousel__nav--prev" (click)="prev()" aria-label="Slide anterior" *ngIf="showNavigation && items.length > 1">
|
|
9716
|
+
<mat-icon>chevron_left</mat-icon>
|
|
9717
|
+
</button>
|
|
9718
|
+
<button type="button" class="ptech-carousel__nav ptech-carousel__nav--next" (click)="next()" aria-label="Próximo slide" *ngIf="showNavigation && items.length > 1">
|
|
9719
|
+
<mat-icon>chevron_right</mat-icon>
|
|
9720
|
+
</button>
|
|
9721
|
+
|
|
9722
|
+
<div class="ptech-carousel__indicators" *ngIf="showIndicators && items.length > 1">
|
|
9723
|
+
<button type="button"
|
|
9724
|
+
*ngFor="let item of items; let i = index; trackBy: trackByItem"
|
|
9725
|
+
class="ptech-carousel__dot"
|
|
9726
|
+
[class.ptech-carousel__dot--active]="i === activeIndex"
|
|
9727
|
+
(click)="goTo(i)"
|
|
9728
|
+
[attr.aria-label]="'Ir para o slide ' + (i + 1)"
|
|
9729
|
+
[attr.aria-current]="i === activeIndex"></button>
|
|
9730
|
+
</div>
|
|
9731
|
+
</div>
|
|
9732
|
+
`, 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:var(--app-space-4, 16px)}.ptech-carousel__caption h3{font-size:18px}.ptech-carousel__caption p{font-size:13px}.ptech-carousel__nav{width:34px;height:34px}}\n"] }]
|
|
9733
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { items: [{
|
|
9734
|
+
type: Input
|
|
9735
|
+
}], autoPlay: [{
|
|
9736
|
+
type: Input
|
|
9737
|
+
}], interval: [{
|
|
9738
|
+
type: Input
|
|
9739
|
+
}], loop: [{
|
|
9740
|
+
type: Input
|
|
9741
|
+
}], pauseOnHover: [{
|
|
9742
|
+
type: Input
|
|
9743
|
+
}], showIndicators: [{
|
|
9744
|
+
type: Input
|
|
9745
|
+
}], showNavigation: [{
|
|
9746
|
+
type: Input
|
|
9747
|
+
}], ariaLabel: [{
|
|
9748
|
+
type: Input
|
|
9749
|
+
}], itemClick: [{
|
|
9750
|
+
type: Output
|
|
9751
|
+
}], activeIndexChange: [{
|
|
9752
|
+
type: Output
|
|
9753
|
+
}] } });
|
|
9754
|
+
|
|
8338
9755
|
class SnackbarMessageService {
|
|
8339
9756
|
snackBar;
|
|
8340
9757
|
constructor(snackBar) {
|
|
@@ -8382,12 +9799,12 @@ class SnackbarMessageService {
|
|
|
8382
9799
|
duration,
|
|
8383
9800
|
});
|
|
8384
9801
|
}
|
|
8385
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$
|
|
9802
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$4.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8386
9803
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService });
|
|
8387
9804
|
}
|
|
8388
9805
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, decorators: [{
|
|
8389
9806
|
type: Injectable
|
|
8390
|
-
}], ctorParameters: () => [{ type: i1$
|
|
9807
|
+
}], ctorParameters: () => [{ type: i1$4.MatSnackBar }] });
|
|
8391
9808
|
|
|
8392
9809
|
// src/lib/modules/pumpkin-tech.module.ts
|
|
8393
9810
|
class PumpkinTechModule {
|
|
@@ -8432,7 +9849,15 @@ class PumpkinTechModule {
|
|
|
8432
9849
|
ListPaginationComponent,
|
|
8433
9850
|
DialogShellComponent,
|
|
8434
9851
|
CardComponent,
|
|
8435
|
-
ExpansionPanelComponent
|
|
9852
|
+
ExpansionPanelComponent,
|
|
9853
|
+
PtechAutocompleteComponent,
|
|
9854
|
+
PtechInputFileComponent,
|
|
9855
|
+
PtechDualListboxComponent,
|
|
9856
|
+
PtechTabsComponent,
|
|
9857
|
+
PtechTabComponent,
|
|
9858
|
+
PtechPopoverComponent,
|
|
9859
|
+
PtechWidgetMenuComponent,
|
|
9860
|
+
PtechCarouselComponent], exports: [
|
|
8436
9861
|
// reexporta tudo junto
|
|
8437
9862
|
InputComponent,
|
|
8438
9863
|
TextareaComponent,
|
|
@@ -8472,6 +9897,14 @@ class PumpkinTechModule {
|
|
|
8472
9897
|
DialogShellComponent,
|
|
8473
9898
|
CardComponent,
|
|
8474
9899
|
ExpansionPanelComponent,
|
|
9900
|
+
PtechAutocompleteComponent,
|
|
9901
|
+
PtechInputFileComponent,
|
|
9902
|
+
PtechDualListboxComponent,
|
|
9903
|
+
PtechTabsComponent,
|
|
9904
|
+
PtechTabComponent,
|
|
9905
|
+
PtechPopoverComponent,
|
|
9906
|
+
PtechWidgetMenuComponent,
|
|
9907
|
+
PtechCarouselComponent,
|
|
8475
9908
|
CoreMaterialModule] });
|
|
8476
9909
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, providers: [
|
|
8477
9910
|
{
|
|
@@ -8516,7 +9949,15 @@ class PumpkinTechModule {
|
|
|
8516
9949
|
ListPaginationComponent,
|
|
8517
9950
|
DialogShellComponent,
|
|
8518
9951
|
CardComponent,
|
|
8519
|
-
ExpansionPanelComponent,
|
|
9952
|
+
ExpansionPanelComponent,
|
|
9953
|
+
PtechAutocompleteComponent,
|
|
9954
|
+
PtechInputFileComponent,
|
|
9955
|
+
PtechDualListboxComponent,
|
|
9956
|
+
PtechTabsComponent,
|
|
9957
|
+
PtechTabComponent,
|
|
9958
|
+
PtechPopoverComponent,
|
|
9959
|
+
PtechWidgetMenuComponent,
|
|
9960
|
+
PtechCarouselComponent, CoreMaterialModule] });
|
|
8520
9961
|
}
|
|
8521
9962
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, decorators: [{
|
|
8522
9963
|
type: NgModule,
|
|
@@ -8562,7 +10003,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8562
10003
|
ListPaginationComponent,
|
|
8563
10004
|
DialogShellComponent,
|
|
8564
10005
|
CardComponent,
|
|
8565
|
-
ExpansionPanelComponent
|
|
10006
|
+
ExpansionPanelComponent,
|
|
10007
|
+
PtechAutocompleteComponent,
|
|
10008
|
+
PtechInputFileComponent,
|
|
10009
|
+
PtechDualListboxComponent,
|
|
10010
|
+
PtechTabsComponent,
|
|
10011
|
+
PtechTabComponent,
|
|
10012
|
+
PtechPopoverComponent,
|
|
10013
|
+
PtechWidgetMenuComponent,
|
|
10014
|
+
PtechCarouselComponent
|
|
8566
10015
|
],
|
|
8567
10016
|
exports: [
|
|
8568
10017
|
// reexporta tudo junto
|
|
@@ -8604,6 +10053,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8604
10053
|
DialogShellComponent,
|
|
8605
10054
|
CardComponent,
|
|
8606
10055
|
ExpansionPanelComponent,
|
|
10056
|
+
PtechAutocompleteComponent,
|
|
10057
|
+
PtechInputFileComponent,
|
|
10058
|
+
PtechDualListboxComponent,
|
|
10059
|
+
PtechTabsComponent,
|
|
10060
|
+
PtechTabComponent,
|
|
10061
|
+
PtechPopoverComponent,
|
|
10062
|
+
PtechWidgetMenuComponent,
|
|
10063
|
+
PtechCarouselComponent,
|
|
8607
10064
|
CoreMaterialModule,
|
|
8608
10065
|
],
|
|
8609
10066
|
providers: [
|
|
@@ -9569,7 +11026,7 @@ class DialogService {
|
|
|
9569
11026
|
this.openResultDialog(resultData);
|
|
9570
11027
|
}), map(() => void 0));
|
|
9571
11028
|
}
|
|
9572
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, deps: [{ token: i1$
|
|
11029
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9573
11030
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, providedIn: 'root' });
|
|
9574
11031
|
}
|
|
9575
11032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, decorators: [{
|
|
@@ -9577,7 +11034,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9577
11034
|
args: [{
|
|
9578
11035
|
providedIn: 'root',
|
|
9579
11036
|
}]
|
|
9580
|
-
}], ctorParameters: () => [{ type: i1$
|
|
11037
|
+
}], ctorParameters: () => [{ type: i1$3.MatDialog }] });
|
|
9581
11038
|
|
|
9582
11039
|
class ModuleChangeService {
|
|
9583
11040
|
moduleChangedSource = new BehaviorSubject('');
|
|
@@ -9707,7 +11164,7 @@ class BreadcrumbService {
|
|
|
9707
11164
|
this.router = router;
|
|
9708
11165
|
this.prefix$ = prefix$;
|
|
9709
11166
|
this.router.events
|
|
9710
|
-
.pipe(filter$1(e => e instanceof NavigationEnd), switchMap(() => this.prefix$), switchMap(prefix => of(this.buildDynamicCrumbs(this.router.routerState.snapshot.root, prefix))))
|
|
11167
|
+
.pipe(filter$1(e => e instanceof NavigationEnd), switchMap$1(() => this.prefix$), switchMap$1(prefix => of(this.buildDynamicCrumbs(this.router.routerState.snapshot.root, prefix))))
|
|
9711
11168
|
.subscribe(rawCrumbs => {
|
|
9712
11169
|
// filtra duplicatas consecutivas
|
|
9713
11170
|
const crumbs = rawCrumbs.filter((c, i, a) => i === 0 || c.description !== a[i - 1].description);
|
|
@@ -9734,7 +11191,7 @@ class BreadcrumbService {
|
|
|
9734
11191
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BreadcrumbService, decorators: [{
|
|
9735
11192
|
type: Injectable,
|
|
9736
11193
|
args: [{ providedIn: 'root' }]
|
|
9737
|
-
}], ctorParameters: () => [{ type: i3$2.Router }, { type: i2$
|
|
11194
|
+
}], ctorParameters: () => [{ type: i3$2.Router }, { type: i2$5.Observable, decorators: [{
|
|
9738
11195
|
type: Optional
|
|
9739
11196
|
}, {
|
|
9740
11197
|
type: Inject,
|
|
@@ -10048,5 +11505,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10048
11505
|
* Generated bundle index. Do not edit.
|
|
10049
11506
|
*/
|
|
10050
11507
|
|
|
10051
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, 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, PtechColDirective, PtechGridDirective, PtechTableColumnBuilder, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
11508
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, 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, PtechDualListboxComponent, PtechGridDirective, PtechInputFileComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
10052
11509
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|