@pumpkin-tech/pumpkin-tech-ng 0.2.58 → 0.2.59
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.
|
@@ -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$5 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 i1$2 from '@angular/material/progress-bar';
|
|
44
44
|
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
45
|
-
import * as i1$
|
|
45
|
+
import * as i1$3 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$4 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,7 @@ 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 * as i9$
|
|
59
|
+
import * as i9$1 from '@angular/material/autocomplete';
|
|
60
60
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
61
61
|
import * as i2$4 from '@angular/material/core';
|
|
62
62
|
import { MatRippleModule, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
@@ -66,7 +66,7 @@ import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/mat
|
|
|
66
66
|
import 'moment/locale/pt-br';
|
|
67
67
|
import * as i3$2 from '@angular/router';
|
|
68
68
|
import { RouterModule, NavigationEnd } from '@angular/router';
|
|
69
|
-
import * as
|
|
69
|
+
import * as i10 from '@angular/cdk/drag-drop';
|
|
70
70
|
import { CdkDrag, CdkDragHandle, moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
71
71
|
import * as i2$3 from '@angular/platform-browser';
|
|
72
72
|
import * as i8 from 'ngx-material-timepicker';
|
|
@@ -3606,7 +3606,7 @@ class ProgressBarComponent {
|
|
|
3606
3606
|
[color]="dynamicColorPrimary"
|
|
3607
3607
|
></mat-progress-bar>
|
|
3608
3608
|
</p>
|
|
3609
|
-
`, 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:
|
|
3609
|
+
`, 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: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
3610
3610
|
}
|
|
3611
3611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarComponent, decorators: [{
|
|
3612
3612
|
type: Component,
|
|
@@ -3671,7 +3671,7 @@ class ProgressBarMultipleComponent {
|
|
|
3671
3671
|
return 'warn';
|
|
3672
3672
|
}
|
|
3673
3673
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3674
|
-
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:
|
|
3674
|
+
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: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
|
|
3675
3675
|
}
|
|
3676
3676
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarMultipleComponent, decorators: [{
|
|
3677
3677
|
type: Component,
|
|
@@ -4118,7 +4118,7 @@ class SlideToggleComponent extends BaseField {
|
|
|
4118
4118
|
{{ label }}
|
|
4119
4119
|
</mat-slide-toggle>
|
|
4120
4120
|
</div>
|
|
4121
|
-
`, 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$
|
|
4121
|
+
`, 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$3.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 });
|
|
4122
4122
|
}
|
|
4123
4123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SlideToggleComponent, decorators: [{
|
|
4124
4124
|
type: Component,
|
|
@@ -4312,7 +4312,7 @@ class PtechConfirmationDialogComponent {
|
|
|
4312
4312
|
cancel() {
|
|
4313
4313
|
this.dialogRef.close(false);
|
|
4314
4314
|
}
|
|
4315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationDialogComponent, deps: [{ token: i1$
|
|
4315
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
4316
4316
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
|
|
4317
4317
|
<ptech-dialog-shell
|
|
4318
4318
|
[title]="data.title"
|
|
@@ -4366,7 +4366,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4366
4366
|
</div>
|
|
4367
4367
|
</ptech-dialog-shell>
|
|
4368
4368
|
`, styles: [".ptech-confirmation-message{margin:0;font-size:15px;line-height:1.5;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-confirmation-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}\n"] }]
|
|
4369
|
-
}], ctorParameters: () => [{ type: i1$
|
|
4369
|
+
}], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
4370
4370
|
type: Inject,
|
|
4371
4371
|
args: [MAT_DIALOG_DATA]
|
|
4372
4372
|
}] }] });
|
|
@@ -4908,7 +4908,7 @@ class ActionDialogComponent {
|
|
|
4908
4908
|
onSelectionChange($event) {
|
|
4909
4909
|
// console.log('selection changed', $event);
|
|
4910
4910
|
}
|
|
4911
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$
|
|
4911
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4912
4912
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: `
|
|
4913
4913
|
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4914
4914
|
<div class="ptech-dialog-header">
|
|
@@ -5009,7 +5009,7 @@ class ActionDialogComponent {
|
|
|
5009
5009
|
></ptech-button>
|
|
5010
5010
|
</mat-dialog-actions>
|
|
5011
5011
|
</div>
|
|
5012
|
-
`, 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"] }] });
|
|
5012
|
+
`, 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"] }] });
|
|
5013
5013
|
}
|
|
5014
5014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, decorators: [{
|
|
5015
5015
|
type: Component,
|
|
@@ -5128,7 +5128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5128
5128
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5129
5129
|
type: Inject,
|
|
5130
5130
|
args: [MAT_DIALOG_DATA]
|
|
5131
|
-
}] }, { type: i1$
|
|
5131
|
+
}] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
5132
5132
|
type: Optional
|
|
5133
5133
|
}, {
|
|
5134
5134
|
type: Inject,
|
|
@@ -5162,7 +5162,7 @@ class InfoDetailDialogComponent {
|
|
|
5162
5162
|
close() {
|
|
5163
5163
|
this.dialogRef.close();
|
|
5164
5164
|
}
|
|
5165
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$
|
|
5165
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5166
5166
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailDialogComponent, isStandalone: true, selector: "ptech-info-detail-dialog", ngImport: i0, template: `
|
|
5167
5167
|
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
5168
5168
|
<div class="ptech-dialog-header">
|
|
@@ -5219,7 +5219,7 @@ class InfoDetailDialogComponent {
|
|
|
5219
5219
|
|
|
5220
5220
|
</mat-dialog-actions>
|
|
5221
5221
|
</div>
|
|
5222
|
-
`, 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$
|
|
5222
|
+
`, 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$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: 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"] }] });
|
|
5223
5223
|
}
|
|
5224
5224
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
|
|
5225
5225
|
type: Component,
|
|
@@ -5283,7 +5283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5283
5283
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5284
5284
|
type: Inject,
|
|
5285
5285
|
args: [MAT_DIALOG_DATA]
|
|
5286
|
-
}] }, { type: i1$
|
|
5286
|
+
}] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
5287
5287
|
type: Optional
|
|
5288
5288
|
}, {
|
|
5289
5289
|
type: Inject,
|
|
@@ -5311,7 +5311,7 @@ class InfoDetailComponent {
|
|
|
5311
5311
|
},
|
|
5312
5312
|
});
|
|
5313
5313
|
}
|
|
5314
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$
|
|
5314
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
5315
5315
|
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: `
|
|
5316
5316
|
<div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
|
|
5317
5317
|
<ptech-button
|
|
@@ -5337,7 +5337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5337
5337
|
<ng-content></ng-content>
|
|
5338
5338
|
</div>
|
|
5339
5339
|
`, 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"] }]
|
|
5340
|
-
}], ctorParameters: () => [{ type: i1$
|
|
5340
|
+
}], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
|
|
5341
5341
|
type: Input
|
|
5342
5342
|
}], infoSubtitle: [{
|
|
5343
5343
|
type: Input
|
|
@@ -5393,8 +5393,8 @@ class ActionResultDialogComponent {
|
|
|
5393
5393
|
return;
|
|
5394
5394
|
window.open(this.whatsappUrl, '_blank');
|
|
5395
5395
|
}
|
|
5396
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$
|
|
5397
|
-
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$
|
|
5396
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
5397
|
+
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$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: 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" }] });
|
|
5398
5398
|
}
|
|
5399
5399
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
|
|
5400
5400
|
type: Component,
|
|
@@ -5402,7 +5402,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5402
5402
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5403
5403
|
type: Inject,
|
|
5404
5404
|
args: [MAT_DIALOG_DATA]
|
|
5405
|
-
}] }, { type: i1$
|
|
5405
|
+
}] }, { type: i1$4.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
|
|
5406
5406
|
type: Inject,
|
|
5407
5407
|
args: [MESSAGE_SERVICE]
|
|
5408
5408
|
}] }] });
|
|
@@ -5445,7 +5445,7 @@ class AlertComponent {
|
|
|
5445
5445
|
second: '2-digit',
|
|
5446
5446
|
});
|
|
5447
5447
|
}
|
|
5448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$
|
|
5448
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$5.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5449
5449
|
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))}::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar{z-index:var(--ptech-snackbar-z-index, 12000)!important}::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar .mdc-snackbar__surface{background:transparent!important;box-shadow:none!important;padding:0!important;min-height:unset!important;min-width:unset!important;border-radius:0!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 });
|
|
5450
5450
|
}
|
|
5451
5451
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, decorators: [{
|
|
@@ -5454,7 +5454,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5454
5454
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5455
5455
|
type: Inject,
|
|
5456
5456
|
args: [MAT_SNACK_BAR_DATA]
|
|
5457
|
-
}] }, { type: i1$
|
|
5457
|
+
}] }, { type: i1$5.MatSnackBarRef }] });
|
|
5458
5458
|
|
|
5459
5459
|
class GetFirstStringBeforeSpacePipe {
|
|
5460
5460
|
transform(value) {
|
|
@@ -6823,6 +6823,9 @@ class TableComponent {
|
|
|
6823
6823
|
serverSideSorting = false;
|
|
6824
6824
|
columns = [];
|
|
6825
6825
|
actions = [];
|
|
6826
|
+
actionsDisplay = 'inline';
|
|
6827
|
+
actionsMenuLabel = 'Ações';
|
|
6828
|
+
actionsTriggerColor = 'var(--ptech-table-action-icon, var(--ptech-table-cell-text, var(--app-text, inherit)))';
|
|
6826
6829
|
// seleção de linhas
|
|
6827
6830
|
selectRow = false;
|
|
6828
6831
|
selectMultipleRow = false;
|
|
@@ -7154,6 +7157,16 @@ class TableComponent {
|
|
|
7154
7157
|
resolveActionColor(action) {
|
|
7155
7158
|
return action?.color || 'var(--ptech-table-action-icon, var(--ptech-table-cell-text, var(--app-text, inherit)))';
|
|
7156
7159
|
}
|
|
7160
|
+
visibleActions(row) {
|
|
7161
|
+
return (this.actions || []).filter(action => !action.visible || action.visible(row));
|
|
7162
|
+
}
|
|
7163
|
+
actionLabel(action) {
|
|
7164
|
+
return action?.label || action?.tooltip || action?.icon || '';
|
|
7165
|
+
}
|
|
7166
|
+
runAction(action, row, trigger) {
|
|
7167
|
+
action.handler(row);
|
|
7168
|
+
trigger?.closeMenu();
|
|
7169
|
+
}
|
|
7157
7170
|
resolveToggleValue(row, col) {
|
|
7158
7171
|
return !!col?.toggleValue?.(row);
|
|
7159
7172
|
}
|
|
@@ -7178,7 +7191,7 @@ class TableComponent {
|
|
|
7178
7191
|
});
|
|
7179
7192
|
}
|
|
7180
7193
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
7181
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", shadow: "shadow", disabled: "disabled", emptyText: "emptyText", stickyHeader: "stickyHeader", rowClickable: "rowClickable", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", totalElements: "totalElements", paginatorLength: "paginatorLength", paginatorPageIndex: "paginatorPageIndex", paginatorPageSize: "paginatorPageSize", serverSidePagination: "serverSidePagination", backendPagination: "backendPagination", paginator: "paginator", sortField: "sortField", sortDirection: "sortDirection", serverSideSorting: "serverSideSorting", columns: "columns", actions: "actions", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", pageChange: "pageChange", sortChange: "sortChange", rowClick: "rowClick", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: ["actions"], descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true }, { propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
7194
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", shadow: "shadow", disabled: "disabled", emptyText: "emptyText", stickyHeader: "stickyHeader", rowClickable: "rowClickable", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", totalElements: "totalElements", paginatorLength: "paginatorLength", paginatorPageIndex: "paginatorPageIndex", paginatorPageSize: "paginatorPageSize", serverSidePagination: "serverSidePagination", backendPagination: "backendPagination", paginator: "paginator", sortField: "sortField", sortDirection: "sortDirection", serverSideSorting: "serverSideSorting", columns: "columns", actions: "actions", actionsDisplay: "actionsDisplay", actionsMenuLabel: "actionsMenuLabel", actionsTriggerColor: "actionsTriggerColor", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", pageChange: "pageChange", sortChange: "sortChange", rowClick: "rowClick", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: ["actions"], descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true }, { propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
7182
7195
|
<div class="table-container mat-elevation-z8" [class.disabled]="disabled">
|
|
7183
7196
|
<div class="header-row" *ngIf="title">
|
|
7184
7197
|
<h3>{{ title }}</h3>
|
|
@@ -7356,17 +7369,49 @@ class TableComponent {
|
|
|
7356
7369
|
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: r, row: r }"></ng-container>
|
|
7357
7370
|
</ng-container>
|
|
7358
7371
|
<ng-template #configuredActions>
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7372
|
+
<ng-container *ngIf="actionsDisplay === 'menu'; else inlineActions">
|
|
7373
|
+
<ptech-button
|
|
7374
|
+
#rowActionsTrigger="matMenuTrigger"
|
|
7375
|
+
icon="more_horiz"
|
|
7376
|
+
type="icon"
|
|
7377
|
+
[iconColor]="actionsTriggerColor"
|
|
7378
|
+
[tooltip]="actionsMenuLabel"
|
|
7379
|
+
[ariaLabel]="actionsMenuLabel"
|
|
7380
|
+
[matMenuTriggerFor]="rowActionsMenu"
|
|
7381
|
+
(click)="$event.stopPropagation()"
|
|
7382
|
+
></ptech-button>
|
|
7383
|
+
|
|
7384
|
+
<mat-menu #rowActionsMenu="matMenu" class="ptech-table-actions-menu-panel">
|
|
7385
|
+
<div class="ptech-table-actions-menu" (click)="$event.stopPropagation()">
|
|
7386
|
+
<ptech-button
|
|
7387
|
+
*ngFor="let a of visibleActions(r)"
|
|
7388
|
+
type="basic"
|
|
7389
|
+
size="sm"
|
|
7390
|
+
[fullWidth]="true"
|
|
7391
|
+
[icon]="a.icon"
|
|
7392
|
+
[label]="actionLabel(a)"
|
|
7393
|
+
[textColor]="resolveActionColor(a)"
|
|
7394
|
+
[iconColor]="resolveActionColor(a)"
|
|
7395
|
+
[tooltip]="a.tooltip || ''"
|
|
7396
|
+
(buttonClick)="runAction(a, r, rowActionsTrigger)"
|
|
7397
|
+
></ptech-button>
|
|
7398
|
+
</div>
|
|
7399
|
+
</mat-menu>
|
|
7400
|
+
</ng-container>
|
|
7401
|
+
|
|
7402
|
+
<ng-template #inlineActions>
|
|
7403
|
+
<ng-container *ngFor="let a of actions">
|
|
7404
|
+
<ptech-button
|
|
7405
|
+
*ngIf="!a.visible || a.visible(r)"
|
|
7406
|
+
icon="{{ a.icon }}"
|
|
7407
|
+
type="icon"
|
|
7408
|
+
[iconColor]="resolveActionColor(a)"
|
|
7409
|
+
tooltip="{{ a.tooltip || '' }}"
|
|
7410
|
+
(buttonClick)="a.handler(r)"
|
|
7411
|
+
>
|
|
7412
|
+
</ptech-button>
|
|
7413
|
+
</ng-container>
|
|
7414
|
+
</ng-template>
|
|
7370
7415
|
</ng-template>
|
|
7371
7416
|
</td>
|
|
7372
7417
|
</ng-container>
|
|
@@ -7505,17 +7550,48 @@ class TableComponent {
|
|
|
7505
7550
|
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: row, row: row }"></ng-container>
|
|
7506
7551
|
</ng-container>
|
|
7507
7552
|
<ng-template #cardConfiguredActions>
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7553
|
+
<ng-container *ngIf="actionsDisplay === 'menu'; else cardInlineActions">
|
|
7554
|
+
<ptech-button
|
|
7555
|
+
#cardActionsTrigger="matMenuTrigger"
|
|
7556
|
+
icon="more_horiz"
|
|
7557
|
+
type="icon"
|
|
7558
|
+
[iconColor]="actionsTriggerColor"
|
|
7559
|
+
[tooltip]="actionsMenuLabel"
|
|
7560
|
+
[ariaLabel]="actionsMenuLabel"
|
|
7561
|
+
[matMenuTriggerFor]="cardActionsMenu"
|
|
7562
|
+
></ptech-button>
|
|
7563
|
+
|
|
7564
|
+
<mat-menu #cardActionsMenu="matMenu" class="ptech-table-actions-menu-panel">
|
|
7565
|
+
<div class="ptech-table-actions-menu">
|
|
7566
|
+
<ptech-button
|
|
7567
|
+
*ngFor="let a of visibleActions(row)"
|
|
7568
|
+
type="basic"
|
|
7569
|
+
size="sm"
|
|
7570
|
+
[fullWidth]="true"
|
|
7571
|
+
[icon]="a.icon"
|
|
7572
|
+
[label]="actionLabel(a)"
|
|
7573
|
+
[textColor]="resolveActionColor(a)"
|
|
7574
|
+
[iconColor]="resolveActionColor(a)"
|
|
7575
|
+
[tooltip]="a.tooltip || ''"
|
|
7576
|
+
(buttonClick)="runAction(a, row, cardActionsTrigger)"
|
|
7577
|
+
></ptech-button>
|
|
7578
|
+
</div>
|
|
7579
|
+
</mat-menu>
|
|
7580
|
+
</ng-container>
|
|
7581
|
+
|
|
7582
|
+
<ng-template #cardInlineActions>
|
|
7583
|
+
<ng-container *ngFor="let a of actions">
|
|
7584
|
+
<ptech-button
|
|
7585
|
+
*ngIf="!a.visible || a.visible(row)"
|
|
7586
|
+
icon="{{ a.icon }}"
|
|
7587
|
+
type="icon"
|
|
7588
|
+
[iconColor]="resolveActionColor(a)"
|
|
7589
|
+
tooltip="{{ a.tooltip || '' }}"
|
|
7590
|
+
(buttonClick)="a.handler(row)"
|
|
7591
|
+
>
|
|
7592
|
+
</ptech-button>
|
|
7593
|
+
</ng-container>
|
|
7594
|
+
</ng-template>
|
|
7519
7595
|
</ng-template>
|
|
7520
7596
|
</div>
|
|
7521
7597
|
</div>
|
|
@@ -7550,7 +7626,7 @@ class TableComponent {
|
|
|
7550
7626
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7551
7627
|
</ng-template>
|
|
7552
7628
|
</div>
|
|
7553
|
-
`, 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:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.header-row h3{color:var(--ptech-table-title-color, var(--app-text-primary, var(--app-text, inherit)))}.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:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.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 });
|
|
7629
|
+
`, 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:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.header-row h3{color:var(--ptech-table-title-color, var(--app-text-primary, var(--app-text, inherit)))}.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}::ng-deep .ptech-table-actions-menu-panel.mat-mdc-menu-panel{min-width:168px;max-width:min(280px,calc(100vw - 32px));border-radius:8px;background:var(--ptech-menu-bg, var(--ptech-table-bg, var(--app-surface, #fff)))!important;color:var(--ptech-menu-text, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;border:1px solid var(--ptech-menu-border, var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12))));box-shadow:var(--ptech-menu-shadow, 0 14px 34px rgba(15, 23, 42, .22))}::ng-deep .ptech-table-actions-menu-panel .mat-mdc-menu-content{padding:6px;background:transparent!important}::ng-deep .ptech-table-actions-menu{display:grid;gap:4px}::ng-deep .ptech-table-actions-menu ptech-button,::ng-deep .ptech-table-actions-menu .ptech-btn{width:100%}::ng-deep .ptech-table-actions-menu .ptech-btn{justify-content:flex-start;border-radius:6px;background:transparent;color:var(--ptech-menu-text, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;box-shadow:none!important}::ng-deep .ptech-table-actions-menu .ptech-btn:hover{background:var(--ptech-menu-hover, var(--app-chip-bg, rgba(99, 102, 241, .1)))}.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:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.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: i4$2.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i4$2.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { 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: i10.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: i10.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 });
|
|
7554
7630
|
}
|
|
7555
7631
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
|
|
7556
7632
|
type: Component,
|
|
@@ -7732,17 +7808,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7732
7808
|
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: r, row: r }"></ng-container>
|
|
7733
7809
|
</ng-container>
|
|
7734
7810
|
<ng-template #configuredActions>
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7811
|
+
<ng-container *ngIf="actionsDisplay === 'menu'; else inlineActions">
|
|
7812
|
+
<ptech-button
|
|
7813
|
+
#rowActionsTrigger="matMenuTrigger"
|
|
7814
|
+
icon="more_horiz"
|
|
7815
|
+
type="icon"
|
|
7816
|
+
[iconColor]="actionsTriggerColor"
|
|
7817
|
+
[tooltip]="actionsMenuLabel"
|
|
7818
|
+
[ariaLabel]="actionsMenuLabel"
|
|
7819
|
+
[matMenuTriggerFor]="rowActionsMenu"
|
|
7820
|
+
(click)="$event.stopPropagation()"
|
|
7821
|
+
></ptech-button>
|
|
7822
|
+
|
|
7823
|
+
<mat-menu #rowActionsMenu="matMenu" class="ptech-table-actions-menu-panel">
|
|
7824
|
+
<div class="ptech-table-actions-menu" (click)="$event.stopPropagation()">
|
|
7825
|
+
<ptech-button
|
|
7826
|
+
*ngFor="let a of visibleActions(r)"
|
|
7827
|
+
type="basic"
|
|
7828
|
+
size="sm"
|
|
7829
|
+
[fullWidth]="true"
|
|
7830
|
+
[icon]="a.icon"
|
|
7831
|
+
[label]="actionLabel(a)"
|
|
7832
|
+
[textColor]="resolveActionColor(a)"
|
|
7833
|
+
[iconColor]="resolveActionColor(a)"
|
|
7834
|
+
[tooltip]="a.tooltip || ''"
|
|
7835
|
+
(buttonClick)="runAction(a, r, rowActionsTrigger)"
|
|
7836
|
+
></ptech-button>
|
|
7837
|
+
</div>
|
|
7838
|
+
</mat-menu>
|
|
7839
|
+
</ng-container>
|
|
7840
|
+
|
|
7841
|
+
<ng-template #inlineActions>
|
|
7842
|
+
<ng-container *ngFor="let a of actions">
|
|
7843
|
+
<ptech-button
|
|
7844
|
+
*ngIf="!a.visible || a.visible(r)"
|
|
7845
|
+
icon="{{ a.icon }}"
|
|
7846
|
+
type="icon"
|
|
7847
|
+
[iconColor]="resolveActionColor(a)"
|
|
7848
|
+
tooltip="{{ a.tooltip || '' }}"
|
|
7849
|
+
(buttonClick)="a.handler(r)"
|
|
7850
|
+
>
|
|
7851
|
+
</ptech-button>
|
|
7852
|
+
</ng-container>
|
|
7853
|
+
</ng-template>
|
|
7746
7854
|
</ng-template>
|
|
7747
7855
|
</td>
|
|
7748
7856
|
</ng-container>
|
|
@@ -7881,17 +7989,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7881
7989
|
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: row, row: row }"></ng-container>
|
|
7882
7990
|
</ng-container>
|
|
7883
7991
|
<ng-template #cardConfiguredActions>
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7992
|
+
<ng-container *ngIf="actionsDisplay === 'menu'; else cardInlineActions">
|
|
7993
|
+
<ptech-button
|
|
7994
|
+
#cardActionsTrigger="matMenuTrigger"
|
|
7995
|
+
icon="more_horiz"
|
|
7996
|
+
type="icon"
|
|
7997
|
+
[iconColor]="actionsTriggerColor"
|
|
7998
|
+
[tooltip]="actionsMenuLabel"
|
|
7999
|
+
[ariaLabel]="actionsMenuLabel"
|
|
8000
|
+
[matMenuTriggerFor]="cardActionsMenu"
|
|
8001
|
+
></ptech-button>
|
|
8002
|
+
|
|
8003
|
+
<mat-menu #cardActionsMenu="matMenu" class="ptech-table-actions-menu-panel">
|
|
8004
|
+
<div class="ptech-table-actions-menu">
|
|
8005
|
+
<ptech-button
|
|
8006
|
+
*ngFor="let a of visibleActions(row)"
|
|
8007
|
+
type="basic"
|
|
8008
|
+
size="sm"
|
|
8009
|
+
[fullWidth]="true"
|
|
8010
|
+
[icon]="a.icon"
|
|
8011
|
+
[label]="actionLabel(a)"
|
|
8012
|
+
[textColor]="resolveActionColor(a)"
|
|
8013
|
+
[iconColor]="resolveActionColor(a)"
|
|
8014
|
+
[tooltip]="a.tooltip || ''"
|
|
8015
|
+
(buttonClick)="runAction(a, row, cardActionsTrigger)"
|
|
8016
|
+
></ptech-button>
|
|
8017
|
+
</div>
|
|
8018
|
+
</mat-menu>
|
|
8019
|
+
</ng-container>
|
|
8020
|
+
|
|
8021
|
+
<ng-template #cardInlineActions>
|
|
8022
|
+
<ng-container *ngFor="let a of actions">
|
|
8023
|
+
<ptech-button
|
|
8024
|
+
*ngIf="!a.visible || a.visible(row)"
|
|
8025
|
+
icon="{{ a.icon }}"
|
|
8026
|
+
type="icon"
|
|
8027
|
+
[iconColor]="resolveActionColor(a)"
|
|
8028
|
+
tooltip="{{ a.tooltip || '' }}"
|
|
8029
|
+
(buttonClick)="a.handler(row)"
|
|
8030
|
+
>
|
|
8031
|
+
</ptech-button>
|
|
8032
|
+
</ng-container>
|
|
8033
|
+
</ng-template>
|
|
7895
8034
|
</ng-template>
|
|
7896
8035
|
</div>
|
|
7897
8036
|
</div>
|
|
@@ -7926,7 +8065,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7926
8065
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7927
8066
|
</ng-template>
|
|
7928
8067
|
</div>
|
|
7929
|
-
`, 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:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.header-row h3{color:var(--ptech-table-title-color, var(--app-text-primary, var(--app-text, inherit)))}.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:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.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"] }]
|
|
8068
|
+
`, 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:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.header-row h3{color:var(--ptech-table-title-color, var(--app-text-primary, var(--app-text, inherit)))}.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}::ng-deep .ptech-table-actions-menu-panel.mat-mdc-menu-panel{min-width:168px;max-width:min(280px,calc(100vw - 32px));border-radius:8px;background:var(--ptech-menu-bg, var(--ptech-table-bg, var(--app-surface, #fff)))!important;color:var(--ptech-menu-text, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;border:1px solid var(--ptech-menu-border, var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12))));box-shadow:var(--ptech-menu-shadow, 0 14px 34px rgba(15, 23, 42, .22))}::ng-deep .ptech-table-actions-menu-panel .mat-mdc-menu-content{padding:6px;background:transparent!important}::ng-deep .ptech-table-actions-menu{display:grid;gap:4px}::ng-deep .ptech-table-actions-menu ptech-button,::ng-deep .ptech-table-actions-menu .ptech-btn{width:100%}::ng-deep .ptech-table-actions-menu .ptech-btn{justify-content:flex-start;border-radius:6px;background:transparent;color:var(--ptech-menu-text, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;box-shadow:none!important}::ng-deep .ptech-table-actions-menu .ptech-btn:hover{background:var(--ptech-menu-hover, var(--app-chip-bg, rgba(99, 102, 241, .1)))}.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:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.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"] }]
|
|
7930
8069
|
}], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
|
|
7931
8070
|
type: Input
|
|
7932
8071
|
}], loading: [{
|
|
@@ -7975,6 +8114,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7975
8114
|
type: Input
|
|
7976
8115
|
}], actions: [{
|
|
7977
8116
|
type: Input
|
|
8117
|
+
}], actionsDisplay: [{
|
|
8118
|
+
type: Input
|
|
8119
|
+
}], actionsMenuLabel: [{
|
|
8120
|
+
type: Input
|
|
8121
|
+
}], actionsTriggerColor: [{
|
|
8122
|
+
type: Input
|
|
7978
8123
|
}], selectRow: [{
|
|
7979
8124
|
type: Input
|
|
7980
8125
|
}], selectMultipleRow: [{
|
|
@@ -8639,7 +8784,7 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8639
8784
|
<mat-icon>close</mat-icon>
|
|
8640
8785
|
</button>
|
|
8641
8786
|
</div>
|
|
8642
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.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:disabled{opacity:.6;cursor:default}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}:host ::ng-deep .ptech-autocomplete-field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px)}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-input-element,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field input::placeholder,:host ::ng-deep .ptech-autocomplete-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-floating-label,:host ::ng-deep .ptech-autocomplete-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-autocomplete-field button[mat-icon-button][matSuffix] mat-icon{color:var(--ptech-field-icon, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-floating-label{color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important;-webkit-text-fill-color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__trailing{border-color:var(--ptech-field-disabled, var(--app-border-color, rgba(0,0,0,.24)))!important}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}::ng-deep .ptech-autocomplete-panel.mat-mdc-autocomplete-panel,::ng-deep .cdk-overlay-pane .ptech-autocomplete-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-autocomplete-panel .mat-mdc-option.mat-mdc-option-active:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option.mdc-list-item--disabled{color:var(--app-muted, rgba(0,0,0,.38))!important}\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$
|
|
8787
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.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:disabled{opacity:.6;cursor:default}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}:host ::ng-deep .ptech-autocomplete-field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px)}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-input-element,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field input::placeholder,:host ::ng-deep .ptech-autocomplete-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-floating-label,:host ::ng-deep .ptech-autocomplete-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-autocomplete-field button[mat-icon-button][matSuffix] mat-icon{color:var(--ptech-field-icon, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-floating-label{color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important;-webkit-text-fill-color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__trailing{border-color:var(--ptech-field-disabled, var(--app-border-color, rgba(0,0,0,.24)))!important}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}::ng-deep .ptech-autocomplete-panel.mat-mdc-autocomplete-panel,::ng-deep .cdk-overlay-pane .ptech-autocomplete-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-autocomplete-panel .mat-mdc-option.mat-mdc-option-active:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option.mdc-list-item--disabled{color:var(--app-muted, rgba(0,0,0,.38))!important}\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$1.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$1.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8643
8788
|
}
|
|
8644
8789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, decorators: [{
|
|
8645
8790
|
type: Component,
|
|
@@ -8893,7 +9038,7 @@ class PtechInputFileComponent {
|
|
|
8893
9038
|
</button>
|
|
8894
9039
|
</div>
|
|
8895
9040
|
</div>
|
|
8896
|
-
`, 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:
|
|
9041
|
+
`, 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: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8897
9042
|
}
|
|
8898
9043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechInputFileComponent, decorators: [{
|
|
8899
9044
|
type: Component,
|
|
@@ -10353,12 +10498,12 @@ class SnackbarMessageService {
|
|
|
10353
10498
|
duration,
|
|
10354
10499
|
});
|
|
10355
10500
|
}
|
|
10356
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$
|
|
10501
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$5.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
10357
10502
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService });
|
|
10358
10503
|
}
|
|
10359
10504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, decorators: [{
|
|
10360
10505
|
type: Injectable
|
|
10361
|
-
}], ctorParameters: () => [{ type: i1$
|
|
10506
|
+
}], ctorParameters: () => [{ type: i1$5.MatSnackBar }] });
|
|
10362
10507
|
|
|
10363
10508
|
// src/lib/modules/pumpkin-tech.module.ts
|
|
10364
10509
|
class PumpkinTechModule {
|
|
@@ -11705,7 +11850,7 @@ class DialogService {
|
|
|
11705
11850
|
this.openResultDialog(resultData);
|
|
11706
11851
|
}), map(() => void 0));
|
|
11707
11852
|
}
|
|
11708
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, deps: [{ token: i1$
|
|
11853
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11709
11854
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, providedIn: 'root' });
|
|
11710
11855
|
}
|
|
11711
11856
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, decorators: [{
|
|
@@ -11713,7 +11858,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
11713
11858
|
args: [{
|
|
11714
11859
|
providedIn: 'root',
|
|
11715
11860
|
}]
|
|
11716
|
-
}], ctorParameters: () => [{ type: i1$
|
|
11861
|
+
}], ctorParameters: () => [{ type: i1$4.MatDialog }] });
|
|
11717
11862
|
|
|
11718
11863
|
/**
|
|
11719
11864
|
* The single entry point consuming apps use for a destructive/confirmation prompt - opens
|
|
@@ -11739,13 +11884,13 @@ class PtechConfirmationService {
|
|
|
11739
11884
|
});
|
|
11740
11885
|
return ref.afterClosed().pipe(map(confirmed => !!confirmed));
|
|
11741
11886
|
}
|
|
11742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, deps: [{ token: i1$
|
|
11887
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11743
11888
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, providedIn: 'root' });
|
|
11744
11889
|
}
|
|
11745
11890
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, decorators: [{
|
|
11746
11891
|
type: Injectable,
|
|
11747
11892
|
args: [{ providedIn: 'root' }]
|
|
11748
|
-
}], ctorParameters: () => [{ type: i1$
|
|
11893
|
+
}], ctorParameters: () => [{ type: i1$4.MatDialog }] });
|
|
11749
11894
|
|
|
11750
11895
|
class ModuleChangeService {
|
|
11751
11896
|
moduleChangedSource = new BehaviorSubject('');
|