@pumpkin-tech/pumpkin-tech-ng 0.2.1 → 0.2.3
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.
|
@@ -13,7 +13,7 @@ import * as i3$2 from '@angular/material/toolbar';
|
|
|
13
13
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
14
14
|
import * as i4$1 from '@angular/material/sidenav';
|
|
15
15
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
16
|
-
import * as
|
|
16
|
+
import * as i5$3 from '@angular/material/card';
|
|
17
17
|
import { MatCardModule } from '@angular/material/card';
|
|
18
18
|
import * as i5$2 from '@angular/material/list';
|
|
19
19
|
import { MatListModule } from '@angular/material/list';
|
|
@@ -35,7 +35,7 @@ import { MatIconModule } from '@angular/material/icon';
|
|
|
35
35
|
import { MatDividerModule } from '@angular/material/divider';
|
|
36
36
|
import * as i7 from '@angular/material/tooltip';
|
|
37
37
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
38
|
-
import * as i4$
|
|
38
|
+
import * as i4$2 from '@angular/material/menu';
|
|
39
39
|
import { MatMenuModule } from '@angular/material/menu';
|
|
40
40
|
import * as i3$4 from '@angular/material/datepicker';
|
|
41
41
|
import { MatDatepickerModule, MatDatepicker } from '@angular/material/datepicker';
|
|
@@ -49,7 +49,7 @@ import * as i5$1 from '@angular/material/select';
|
|
|
49
49
|
import { MatSelectModule } from '@angular/material/select';
|
|
50
50
|
import * as i1$4 from '@angular/material/dialog';
|
|
51
51
|
import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|
52
|
-
import * as
|
|
52
|
+
import * as i9 from '@angular/material/checkbox';
|
|
53
53
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
54
54
|
import * as i5 from '@angular/material/progress-spinner';
|
|
55
55
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
@@ -58,10 +58,10 @@ import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/mat
|
|
|
58
58
|
import 'moment/locale/pt-br';
|
|
59
59
|
import * as i2$2 from '@angular/router';
|
|
60
60
|
import { RouterModule, NavigationEnd } from '@angular/router';
|
|
61
|
+
import { CdkDrag, CdkDragHandle } from '@angular/cdk/drag-drop';
|
|
61
62
|
import * as i2$3 from '@angular/platform-browser';
|
|
62
63
|
import * as i6 from 'ngx-material-timepicker';
|
|
63
64
|
import { NgxMaterialTimepickerModule } from 'ngx-material-timepicker';
|
|
64
|
-
import { NgxCurrencyDirective } from 'ngx-currency';
|
|
65
65
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
66
66
|
import { faker } from '@faker-js/faker';
|
|
67
67
|
|
|
@@ -2369,6 +2369,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2369
2369
|
type: Output
|
|
2370
2370
|
}] } });
|
|
2371
2371
|
|
|
2372
|
+
class SelectQuantityItemsComponent extends BaseField {
|
|
2373
|
+
constructor(el) { super(el); }
|
|
2374
|
+
appearance = 'outline';
|
|
2375
|
+
min = 1;
|
|
2376
|
+
max = 12;
|
|
2377
|
+
step = 1;
|
|
2378
|
+
quantity = 1;
|
|
2379
|
+
quantityChange = new EventEmitter();
|
|
2380
|
+
get quantityOptions() {
|
|
2381
|
+
const min = Math.max(1, Number(this.min) || 1);
|
|
2382
|
+
const max = Math.max(min, Number(this.max) || min);
|
|
2383
|
+
const step = Math.max(1, Number(this.step) || 1);
|
|
2384
|
+
const out = [];
|
|
2385
|
+
for (let n = min; n <= max; n += step)
|
|
2386
|
+
out.push(n);
|
|
2387
|
+
return out;
|
|
2388
|
+
}
|
|
2389
|
+
onChange = () => { };
|
|
2390
|
+
onTouched = () => { };
|
|
2391
|
+
onSelect(value) {
|
|
2392
|
+
const next = Number(value) || 1;
|
|
2393
|
+
this.quantity = next;
|
|
2394
|
+
this.onChange(next);
|
|
2395
|
+
this.onTouched();
|
|
2396
|
+
this.quantityChange.emit(next);
|
|
2397
|
+
}
|
|
2398
|
+
writeValue(value) {
|
|
2399
|
+
this.quantity = Number(value) > 0 ? Number(value) : 1;
|
|
2400
|
+
}
|
|
2401
|
+
registerOnChange(fn) {
|
|
2402
|
+
this.onChange = fn;
|
|
2403
|
+
}
|
|
2404
|
+
registerOnTouched(fn) {
|
|
2405
|
+
this.onTouched = fn;
|
|
2406
|
+
}
|
|
2407
|
+
setDisabledState(isDisabled) {
|
|
2408
|
+
this.disabled = isDisabled;
|
|
2409
|
+
}
|
|
2410
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectQuantityItemsComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2411
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SelectQuantityItemsComponent, isStandalone: true, selector: "ptech-select-quantity-items", inputs: { appearance: "appearance", min: "min", max: "max", step: "step", quantity: "quantity" }, outputs: { quantityChange: "quantityChange" }, providers: [
|
|
2412
|
+
{
|
|
2413
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2414
|
+
useExisting: forwardRef(() => SelectQuantityItemsComponent),
|
|
2415
|
+
multi: true,
|
|
2416
|
+
},
|
|
2417
|
+
], usesInheritance: true, ngImport: i0, template: `
|
|
2418
|
+
<div class="ptech-qty-select-wrap" [class.full-width]="fullWidth">
|
|
2419
|
+
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
2420
|
+
<mat-label>
|
|
2421
|
+
{{ label }}
|
|
2422
|
+
<span *ngIf="required" aria-hidden="true">*</span>
|
|
2423
|
+
</mat-label>
|
|
2424
|
+
|
|
2425
|
+
<mat-select
|
|
2426
|
+
[disabled]="disabled || loading"
|
|
2427
|
+
[placeholder]="placeholder || 'Selecione'"
|
|
2428
|
+
[panelClass]="'ptech-select-quantity-panel'"
|
|
2429
|
+
[value]="quantity"
|
|
2430
|
+
(selectionChange)="onSelect($event.value)">
|
|
2431
|
+
<mat-option *ngFor="let opt of quantityOptions" [value]="opt">
|
|
2432
|
+
{{ opt }}
|
|
2433
|
+
</mat-option>
|
|
2434
|
+
</mat-select>
|
|
2435
|
+
</mat-form-field>
|
|
2436
|
+
</div>
|
|
2437
|
+
`, isInline: true, styles: [".ptech-qty-select-wrap{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host{display:block}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-select-placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-select-value-text,:host ::ng-deep .ptech-form-field .mat-mdc-select-value,:host ::ng-deep .ptech-form-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-select-arrow,:host ::ng-deep .ptech-form-field .mat-mdc-select-arrow svg,:host ::ng-deep .ptech-form-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .ptech-select-quantity-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;opacity:1!important;visibility:visible!important;max-height:min(320px,60vh)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-select-quantity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .cdk-overlay-container .cdk-overlay-pane .ptech-select-quantity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:10002!important}::ng-deep .ptech-select-quantity-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-quantity-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}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!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: "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: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2438
|
+
}
|
|
2439
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectQuantityItemsComponent, decorators: [{
|
|
2440
|
+
type: Component,
|
|
2441
|
+
args: [{ selector: 'ptech-select-quantity-items', standalone: true, imports: [CoreMaterialModule], providers: [
|
|
2442
|
+
{
|
|
2443
|
+
provide: NG_VALUE_ACCESSOR,
|
|
2444
|
+
useExisting: forwardRef(() => SelectQuantityItemsComponent),
|
|
2445
|
+
multi: true,
|
|
2446
|
+
},
|
|
2447
|
+
], template: `
|
|
2448
|
+
<div class="ptech-qty-select-wrap" [class.full-width]="fullWidth">
|
|
2449
|
+
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
2450
|
+
<mat-label>
|
|
2451
|
+
{{ label }}
|
|
2452
|
+
<span *ngIf="required" aria-hidden="true">*</span>
|
|
2453
|
+
</mat-label>
|
|
2454
|
+
|
|
2455
|
+
<mat-select
|
|
2456
|
+
[disabled]="disabled || loading"
|
|
2457
|
+
[placeholder]="placeholder || 'Selecione'"
|
|
2458
|
+
[panelClass]="'ptech-select-quantity-panel'"
|
|
2459
|
+
[value]="quantity"
|
|
2460
|
+
(selectionChange)="onSelect($event.value)">
|
|
2461
|
+
<mat-option *ngFor="let opt of quantityOptions" [value]="opt">
|
|
2462
|
+
{{ opt }}
|
|
2463
|
+
</mat-option>
|
|
2464
|
+
</mat-select>
|
|
2465
|
+
</mat-form-field>
|
|
2466
|
+
</div>
|
|
2467
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-qty-select-wrap{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host{display:block}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-select-placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-select-value-text,:host ::ng-deep .ptech-form-field .mat-mdc-select-value,:host ::ng-deep .ptech-form-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .ptech-form-field .mat-mdc-select-arrow,:host ::ng-deep .ptech-form-field .mat-mdc-select-arrow svg,:host ::ng-deep .ptech-form-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .ptech-select-quantity-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;opacity:1!important;visibility:visible!important;max-height:min(320px,60vh)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-select-quantity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .cdk-overlay-container .cdk-overlay-pane .ptech-select-quantity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:10002!important}::ng-deep .ptech-select-quantity-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-quantity-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}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"] }]
|
|
2468
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { appearance: [{
|
|
2469
|
+
type: Input
|
|
2470
|
+
}], min: [{
|
|
2471
|
+
type: Input
|
|
2472
|
+
}], max: [{
|
|
2473
|
+
type: Input
|
|
2474
|
+
}], step: [{
|
|
2475
|
+
type: Input
|
|
2476
|
+
}], quantity: [{
|
|
2477
|
+
type: Input
|
|
2478
|
+
}], quantityChange: [{
|
|
2479
|
+
type: Output
|
|
2480
|
+
}] } });
|
|
2481
|
+
|
|
2372
2482
|
// src/lib/utils/object.util.ts
|
|
2373
2483
|
class ObjectUtil {
|
|
2374
2484
|
static isNull(value) {
|
|
@@ -2643,7 +2753,7 @@ class SelectEntityComponent extends BaseField {
|
|
|
2643
2753
|
<mat-spinner matPrefix *ngIf="loading" mode="indeterminate" diameter="17"></mat-spinner>
|
|
2644
2754
|
</mat-form-field>
|
|
2645
2755
|
</div>
|
|
2646
|
-
`, isInline: true, styles: [".select-entity-container{display:flex;flex-direction:column}.select-entity-field{width:100%}:host ::ng-deep .select-entity-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-entity-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-floating-label,:host ::ng-deep .select-entity-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-placeholder,:host ::ng-deep .select-entity-field .mat-mdc-select-value-text,:host ::ng-deep .select-entity-field .mat-mdc-select-value,:host ::ng-deep .select-entity-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-arrow,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .mat-mdc-select-value{padding-left:10px!important}::ng-deep .ptech-select-entity-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-select-entity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-entity-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}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate{color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}.search-container{display:flex;align-items:center;padding:8px 12px 0;gap:8px}.search-container input[matInput]{width:100%}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host{display:block}\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: 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: 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5$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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2756
|
+
`, isInline: true, styles: [".select-entity-container{display:flex;flex-direction:column}.select-entity-field{width:100%}:host ::ng-deep .select-entity-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-entity-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-floating-label,:host ::ng-deep .select-entity-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-placeholder,:host ::ng-deep .select-entity-field .mat-mdc-select-value-text,:host ::ng-deep .select-entity-field .mat-mdc-select-value,:host ::ng-deep .select-entity-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-arrow,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .mat-mdc-select-value{padding-left:10px!important}::ng-deep .ptech-select-entity-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;opacity:1!important;visibility:visible!important;max-height:min(320px,60vh)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-select-entity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .cdk-overlay-container .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:10002!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-entity-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}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate{color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}.search-container{display:flex;align-items:center;padding:8px 12px 0;gap:8px}.search-container input[matInput]{width:100%}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host{display:block}\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: 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: 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i5$1.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i5$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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2647
2757
|
}
|
|
2648
2758
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectEntityComponent, decorators: [{
|
|
2649
2759
|
type: Component,
|
|
@@ -2704,7 +2814,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2704
2814
|
provide: NG_VALUE_ACCESSOR,
|
|
2705
2815
|
useExisting: forwardRef(() => SelectEntityComponent),
|
|
2706
2816
|
multi: true,
|
|
2707
|
-
}], styles: [".select-entity-container{display:flex;flex-direction:column}.select-entity-field{width:100%}:host ::ng-deep .select-entity-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-entity-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-floating-label,:host ::ng-deep .select-entity-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-placeholder,:host ::ng-deep .select-entity-field .mat-mdc-select-value-text,:host ::ng-deep .select-entity-field .mat-mdc-select-value,:host ::ng-deep .select-entity-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-arrow,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .mat-mdc-select-value{padding-left:10px!important}::ng-deep .ptech-select-entity-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-select-entity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-entity-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}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate{color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}.search-container{display:flex;align-items:center;padding:8px 12px 0;gap:8px}.search-container input[matInput]{width:100%}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host{display:block}\n"] }]
|
|
2817
|
+
}], styles: [".select-entity-container{display:flex;flex-direction:column}.select-entity-field{width:100%}:host ::ng-deep .select-entity-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-entity-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-entity-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-entity-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 .select-entity-field .mdc-floating-label,:host ::ng-deep .select-entity-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-placeholder,:host ::ng-deep .select-entity-field .mat-mdc-select-value-text,:host ::ng-deep .select-entity-field .mat-mdc-select-value,:host ::ng-deep .select-entity-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-entity-field .mat-mdc-select-arrow,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-entity-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .mat-mdc-select-value{padding-left:10px!important}::ng-deep .ptech-select-entity-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;opacity:1!important;visibility:visible!important;max-height:min(320px,60vh)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-select-entity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .cdk-overlay-container .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:10002!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-entity-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}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-entity-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate{color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}.search-container{display:flex;align-items:center;padding:8px 12px 0;gap:8px}.search-container input[matInput]{width:100%}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host{display:block}\n"] }]
|
|
2708
2818
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { multiple: [{
|
|
2709
2819
|
type: Input
|
|
2710
2820
|
}], property: [{
|
|
@@ -2890,8 +3000,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
2890
3000
|
// ptech-nav.component.ts
|
|
2891
3001
|
class NavComponent {
|
|
2892
3002
|
navService;
|
|
2893
|
-
zone;
|
|
2894
|
-
cdr;
|
|
2895
3003
|
links = [];
|
|
2896
3004
|
currentModuleName = 'Menu';
|
|
2897
3005
|
fixedTopGap = 134;
|
|
@@ -2902,194 +3010,9 @@ class NavComponent {
|
|
|
2902
3010
|
headerClick = new EventEmitter();
|
|
2903
3011
|
navigate = new EventEmitter();
|
|
2904
3012
|
logout = new EventEmitter();
|
|
2905
|
-
// ===== NOVOS INPUTS DO BACKDROP =====
|
|
2906
|
-
/** Largura da sidenav (para o backdrop não cobrir a nav) */
|
|
2907
|
-
sidenavWidth;
|
|
2908
|
-
defaultSidenavWidth = 220; // só fallback visual
|
|
2909
|
-
/** Liga/desliga escurecimento do conteúdo ao abrir a nav (default: true). */
|
|
2910
|
-
useDarkenBackdrop = true;
|
|
2911
|
-
/** Opacidade do dimmer (0..1) */
|
|
2912
|
-
backdropOpacity = 0.5;
|
|
2913
|
-
/** z-index do dimmer (deve ficar abaixo do header e acima do conteúdo). */
|
|
2914
|
-
backdropZIndex = 10000;
|
|
2915
|
-
/** Topo do dimmer em px; se omitido, usa fixedTopGap (para deixar header livre). */
|
|
2916
|
-
backdropTop;
|
|
2917
|
-
coverFooter = true;
|
|
2918
|
-
/** Classe opcional adicional para estilização do dimmer. */
|
|
2919
|
-
backdropClass;
|
|
2920
|
-
backdropOverlapPx = 0;
|
|
2921
|
-
snavRef;
|
|
2922
|
-
backdropRight;
|
|
2923
|
-
backdropBottom;
|
|
2924
|
-
sub;
|
|
2925
3013
|
stack = [];
|
|
2926
|
-
constructor(navService
|
|
3014
|
+
constructor(navService) {
|
|
2927
3015
|
this.navService = navService;
|
|
2928
|
-
this.zone = zone;
|
|
2929
|
-
this.cdr = cdr;
|
|
2930
|
-
}
|
|
2931
|
-
// ====== Backdrop lifecycle ======
|
|
2932
|
-
ngAfterViewInit() {
|
|
2933
|
-
this.sub = this.navService.navState$.subscribe(open => {
|
|
2934
|
-
if (!this.useDarkenBackdrop)
|
|
2935
|
-
return;
|
|
2936
|
-
if (open) {
|
|
2937
|
-
this.attachBackdrop();
|
|
2938
|
-
// Garante ajuste fino após layout/animação do drawer
|
|
2939
|
-
requestAnimationFrame(() => this.updateBackdropStyles());
|
|
2940
|
-
setTimeout(() => this.updateBackdropStyles(), 250);
|
|
2941
|
-
}
|
|
2942
|
-
else {
|
|
2943
|
-
this.detachBackdrop();
|
|
2944
|
-
}
|
|
2945
|
-
});
|
|
2946
|
-
}
|
|
2947
|
-
ngOnDestroy() {
|
|
2948
|
-
this.sub?.unsubscribe();
|
|
2949
|
-
this.detachBackdrop();
|
|
2950
|
-
}
|
|
2951
|
-
ngOnChanges(changes) {
|
|
2952
|
-
if (changes['sidenavWidth']) {
|
|
2953
|
-
this.updateBackdropStyles();
|
|
2954
|
-
}
|
|
2955
|
-
}
|
|
2956
|
-
onWinResize() {
|
|
2957
|
-
// mantém altura correta quando viewport muda
|
|
2958
|
-
this.updateBackdropStyles();
|
|
2959
|
-
}
|
|
2960
|
-
onOrientationChange() {
|
|
2961
|
-
// em mobile o viewport muda após rotação; recalcule novamente
|
|
2962
|
-
setTimeout(() => this.updateBackdropStyles(), 50);
|
|
2963
|
-
}
|
|
2964
|
-
// ====== Backdrop helpers ======
|
|
2965
|
-
attachBackdrop() {
|
|
2966
|
-
if ((this.backdropRight || this.backdropBottom) || !document)
|
|
2967
|
-
return;
|
|
2968
|
-
const leftPx = this.resolveLeft();
|
|
2969
|
-
const overlayLeftPx = Math.max(0, leftPx - this.resolveBackdropOverlapPx());
|
|
2970
|
-
const topPx = this.resolveTop();
|
|
2971
|
-
// --- RIGHT (cobre tudo à direita da nav)
|
|
2972
|
-
const right = document.createElement('div');
|
|
2973
|
-
right.className = 'ptech-nav-backdrop';
|
|
2974
|
-
if (this.backdropClass)
|
|
2975
|
-
right.classList.add(this.backdropClass);
|
|
2976
|
-
Object.assign(right.style, {
|
|
2977
|
-
position: 'fixed',
|
|
2978
|
-
left: `${overlayLeftPx}px`,
|
|
2979
|
-
right: '0',
|
|
2980
|
-
top: `${topPx}px`,
|
|
2981
|
-
bottom: this.coverFooter ? '0' : `${this.fixedBottomGap}px`,
|
|
2982
|
-
background: `rgba(0,0,0,${this.backdropOpacity})`,
|
|
2983
|
-
opacity: '0',
|
|
2984
|
-
transition: 'opacity 220ms ease',
|
|
2985
|
-
zIndex: String(this.backdropZIndex),
|
|
2986
|
-
pointerEvents: 'auto',
|
|
2987
|
-
});
|
|
2988
|
-
right.addEventListener('click', this.onBackdropClick);
|
|
2989
|
-
document.body.appendChild(right);
|
|
2990
|
-
requestAnimationFrame(() => (right.style.opacity = '1'));
|
|
2991
|
-
this.backdropRight = right;
|
|
2992
|
-
// --- BOTTOM-LEFT (cobre o pedaço abaixo da nav)
|
|
2993
|
-
// Só precisa quando existir gap (fixedBottomGap > 0)
|
|
2994
|
-
if (this.fixedBottomGap > 0) {
|
|
2995
|
-
const bottom = document.createElement('div');
|
|
2996
|
-
bottom.className = 'ptech-nav-backdrop';
|
|
2997
|
-
if (this.backdropClass)
|
|
2998
|
-
bottom.classList.add(this.backdropClass);
|
|
2999
|
-
Object.assign(bottom.style, {
|
|
3000
|
-
position: 'fixed',
|
|
3001
|
-
left: '0',
|
|
3002
|
-
width: `${leftPx + this.resolveBackdropOverlapPx()}px`,
|
|
3003
|
-
// altura = fixedBottomGap quando queremos cobrir o rodapé;
|
|
3004
|
-
// se não quiser cobrir o footer, altura 0 (não cria efeito)
|
|
3005
|
-
height: this.coverFooter ? `${this.fixedBottomGap}px` : '0',
|
|
3006
|
-
bottom: '0',
|
|
3007
|
-
background: `rgba(0,0,0,${this.backdropOpacity})`,
|
|
3008
|
-
opacity: '0',
|
|
3009
|
-
transition: 'opacity 220ms ease',
|
|
3010
|
-
zIndex: String(this.backdropZIndex),
|
|
3011
|
-
pointerEvents: 'auto',
|
|
3012
|
-
});
|
|
3013
|
-
bottom.addEventListener('click', this.onBackdropClick);
|
|
3014
|
-
document.body.appendChild(bottom);
|
|
3015
|
-
requestAnimationFrame(() => (bottom.style.opacity = '1'));
|
|
3016
|
-
this.backdropBottom = bottom;
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
updateBackdropStyles() {
|
|
3020
|
-
const leftPx = this.resolveLeft();
|
|
3021
|
-
const overlayLeftPx = Math.max(0, leftPx - this.resolveBackdropOverlapPx());
|
|
3022
|
-
const topPx = this.resolveTop();
|
|
3023
|
-
if (this.backdropRight) {
|
|
3024
|
-
this.backdropRight.style.left = `${overlayLeftPx}px`;
|
|
3025
|
-
this.backdropRight.style.top = `${topPx}px`;
|
|
3026
|
-
this.backdropRight.style.bottom = this.coverFooter ? '0' : `${this.fixedBottomGap}px`;
|
|
3027
|
-
}
|
|
3028
|
-
if (this.backdropBottom) {
|
|
3029
|
-
this.backdropBottom.style.width = `${leftPx + this.resolveBackdropOverlapPx()}px`;
|
|
3030
|
-
this.backdropBottom.style.height = this.coverFooter ? `${this.fixedBottomGap}px` : '0';
|
|
3031
|
-
}
|
|
3032
|
-
}
|
|
3033
|
-
detachBackdrop() {
|
|
3034
|
-
const fadeOutAndRemove = (el) => {
|
|
3035
|
-
if (!el)
|
|
3036
|
-
return;
|
|
3037
|
-
el.removeEventListener('click', this.onBackdropClick);
|
|
3038
|
-
el.style.opacity = '0';
|
|
3039
|
-
const remove = () => {
|
|
3040
|
-
el.removeEventListener('transitionend', remove);
|
|
3041
|
-
el.parentNode?.removeChild(el);
|
|
3042
|
-
};
|
|
3043
|
-
el.addEventListener('transitionend', remove);
|
|
3044
|
-
};
|
|
3045
|
-
fadeOutAndRemove(this.backdropRight);
|
|
3046
|
-
fadeOutAndRemove(this.backdropBottom);
|
|
3047
|
-
this.backdropRight = undefined;
|
|
3048
|
-
this.backdropBottom = undefined;
|
|
3049
|
-
}
|
|
3050
|
-
onBackdropClick = () => {
|
|
3051
|
-
this.backdropClick.emit();
|
|
3052
|
-
this.navService.toggleNav(); // fecha
|
|
3053
|
-
};
|
|
3054
|
-
resolveTop() {
|
|
3055
|
-
// permite o consumidor fixar um top diferente; senão, usa o header (fixedTopGap)
|
|
3056
|
-
return (this.backdropTop ?? this.fixedTopGap) || 0;
|
|
3057
|
-
// se precisar detectar header dinâmico: medir via query selector e pegar offsetHeight
|
|
3058
|
-
}
|
|
3059
|
-
resolveLeft() {
|
|
3060
|
-
const rightPx = this.sidenavRightPx;
|
|
3061
|
-
if (rightPx > 0)
|
|
3062
|
-
return rightPx;
|
|
3063
|
-
return this.sidenavWidthPx || this.sidenavWidth || this.defaultSidenavWidth;
|
|
3064
|
-
}
|
|
3065
|
-
resolveBackdropOverlapPx() {
|
|
3066
|
-
const overlap = Number(this.backdropOverlapPx);
|
|
3067
|
-
if (!Number.isFinite(overlap) || overlap < 0)
|
|
3068
|
-
return 0;
|
|
3069
|
-
return Math.min(overlap, 16);
|
|
3070
|
-
}
|
|
3071
|
-
get sidenavWidthPx() {
|
|
3072
|
-
const w = this.snavRef?.nativeElement?.offsetWidth ?? 0;
|
|
3073
|
-
return Number.isFinite(w) ? w : 0;
|
|
3074
|
-
}
|
|
3075
|
-
get sidenavRightPx() {
|
|
3076
|
-
const rect = this.snavRef?.nativeElement?.getBoundingClientRect();
|
|
3077
|
-
if (!rect)
|
|
3078
|
-
return 0;
|
|
3079
|
-
const vw = window.innerWidth || document.documentElement.clientWidth || 0;
|
|
3080
|
-
const right = Math.round(rect.right);
|
|
3081
|
-
if (!Number.isFinite(right) || right <= 0)
|
|
3082
|
-
return 0;
|
|
3083
|
-
if (vw > 0 && right > vw)
|
|
3084
|
-
return vw;
|
|
3085
|
-
return right;
|
|
3086
|
-
}
|
|
3087
|
-
// 🧠 Cálculo da área do overlay
|
|
3088
|
-
get overlayTop() {
|
|
3089
|
-
return `${this.backdropTop ?? this.fixedTopGap}px`;
|
|
3090
|
-
}
|
|
3091
|
-
get overlayBottom() {
|
|
3092
|
-
return '0'; // cobre até o final
|
|
3093
3016
|
}
|
|
3094
3017
|
get currentLevel() {
|
|
3095
3018
|
return this.stack.length ? this.stack[this.stack.length - 1].children || [] : this.links;
|
|
@@ -3120,8 +3043,8 @@ class NavComponent {
|
|
|
3120
3043
|
// opcional: this.navService.toggleNav();
|
|
3121
3044
|
}
|
|
3122
3045
|
}
|
|
3123
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavComponent, deps: [{ token: NavService }
|
|
3124
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: NavComponent, isStandalone: true, selector: "ptech-nav", inputs: { links: "links", currentModuleName: "currentModuleName", fixedTopGap: "fixedTopGap", fixedBottomGap: "fixedBottomGap", footerItems: "footerItems", mode: "mode"
|
|
3046
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: NavComponent, deps: [{ token: NavService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3047
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: NavComponent, isStandalone: true, selector: "ptech-nav", inputs: { links: "links", currentModuleName: "currentModuleName", fixedTopGap: "fixedTopGap", fixedBottomGap: "fixedBottomGap", footerItems: "footerItems", mode: "mode" }, outputs: { backdropClick: "backdropClick", headerClick: "headerClick", navigate: "navigate", logout: "logout" }, ngImport: i0, template: `
|
|
3125
3048
|
<mat-sidenav-container class="sidenav-container">
|
|
3126
3049
|
<mat-sidenav
|
|
3127
3050
|
#snav
|
|
@@ -3230,7 +3153,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3230
3153
|
|
|
3231
3154
|
</mat-sidenav-container>
|
|
3232
3155
|
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".sidenav-container{background-color:transparent!important}:host ::ng-deep .sidenav-container.mat-drawer-container{background-color:transparent!important}:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;overflow:hidden}:host ::ng-deep ptech-header,:host ::ng-deep .ptech-header{z-index:6000}.mat-icon{height:22px!important;width:22px!important}mat-sidenav.sidenav{display:flex;flex-direction:column;background-color:var(--ptech-nav-bg, #3d454e);border-top-right-radius:12px;border-bottom-right-radius:12px;box-shadow:var(--ptech-nav-shadow, 0px 4px 6px rgba(0, 0, 0, .3));padding:0;overflow:hidden}.nav-content{display:flex;flex-direction:column;height:100%;overflow:hidden}.nav-list{flex:1 1 auto!important;overflow-y:auto!important;padding:0!important;margin:0!important}:host ::ng-deep .mat-list-item,:host ::ng-deep .mat-mdc-list-item{display:flex!important;align-items:center!important;border-radius:unset!important}:host ::ng-deep .mat-list-item mat-icon[matListIcon],:host ::ng-deep .mdc-list-item__graphic{margin:0!important;padding:0!important;vertical-align:middle!important;line-height:1!important}:host ::ng-deep .mat-list-item .mat-line,:host ::ng-deep .mdc-list-item__primary-text{color:var(--ptech-nav-text, #fff)!important;letter-spacing:unset!important}.list-item-header{display:flex;align-items:center;height:66px!important;padding:0 16px;background-color:var(--ptech-nav-bg-alt, #35404a)!important;color:var(--ptech-nav-text, #cfd8dc)!important;font-size:1.1rem;font-weight:600;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-header mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;margin-right:12px}.list-item-header:hover{background-color:var(--ptech-nav-hover-1, rgba(255, 255, 255, .1))}.list-item-level1{display:flex;align-items:center;justify-content:space-between;height:48px;color:var(--ptech-nav-text, #cfd8dc)!important;font-size:1rem;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-level1 mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:22px;margin-right:12px;margin-bottom:-5px}.list-item-level1 span[matLine]{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}.arrow-right-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:25px;margin-left:46px}.list-item-level1:hover{background-color:var(--ptech-nav-hover-2, rgba(255, 255, 255, .08))}.list-item-level2{display:flex;align-items:center;height:44px;padding:0 24px;color:var(--ptech-nav-text, #cfd8dc);font-size:.95rem;text-decoration:none;cursor:pointer;border-bottom:1px solid var(--ptech-nav-divider, #c9cbcf)}.list-item-level2 mat-icon[matListIcon]{color:var(--ptech-nav-icon, #90a4ae);font-size:22px;margin-right:12px}.list-item-level2:hover{background-color:var(--ptech-nav-hover-3, rgba(255, 255, 255, .06))}.mat-divider{margin-top:0!important;margin-bottom:0!important}.nav-footer{display:flex;flex-direction:column;flex-shrink:0;margin-top:auto;padding:12px 16px;background-color:var(--ptech-nav-bg-alt, #35404a)}.footer-item{display:flex;align-items:center;margin-bottom:6px}.footer-icon{color:var(--ptech-nav-icon, #90a4ae);font-size:18px;margin-right:8px}.footer-text{color:var(--ptech-nav-text, #cfd8dc);font-size:.85rem}.footer-item:last-child{margin-bottom:0!important}:host ::ng-deep mat-sidenav.sidenav .nav-list{flex:1 1 auto!important}:host ::ng-deep mat-sidenav.sidenav .nav-footer{margin-top:auto!important;flex-shrink:0!important}@media screen and (max-width: 599px){mat-sidenav.sidenav{width:200px}.list-item-header{height:50px;font-size:1rem;padding:0 12px}.list-item-header mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level1{height:44px;font-size:.9rem;padding:0 12px}.list-item-level1 mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level1 span[matLine]{font-size:.9rem}.arrow-right-icon{margin-left:auto}.list-item-level2{height:40px;font-size:.85rem;padding:0 20px}.list-item-level2 mat-icon[matListIcon]{vertical-align:middle;display:inline-flex;align-items:center;justify-content:center;margin-bottom:5px}.list-item-level2 span[matLine]{font-size:.9rem}.footer-item{margin-bottom:4px}.footer-icon{font-size:16px;margin-right:6px}.footer-text{font-size:.8rem}}:host ::ng-deep mat-sidenav.sidenav.mat-drawer,:host ::ng-deep mat-sidenav.sidenav.mat-drawer-side,:host ::ng-deep mat-sidenav.sidenav.mat-drawer-over{border-right:0!important;border-inline-end:0!important;border-left:0!important;border-top:0!important;border-bottom:0!important}@media screen and (min-width: 600px){mat-sidenav.sidenav,:host ::ng-deep mat-sidenav.sidenav .mat-drawer-inner-container{border-bottom-right-radius:0!important}}\n"] }]
|
|
3233
|
-
}], ctorParameters: () => [{ type: NavService }
|
|
3156
|
+
}], ctorParameters: () => [{ type: NavService }], propDecorators: { links: [{
|
|
3234
3157
|
type: Input
|
|
3235
3158
|
}], currentModuleName: [{
|
|
3236
3159
|
type: Input
|
|
@@ -3250,31 +3173,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3250
3173
|
type: Output
|
|
3251
3174
|
}], logout: [{
|
|
3252
3175
|
type: Output
|
|
3253
|
-
}], sidenavWidth: [{
|
|
3254
|
-
type: Input
|
|
3255
|
-
}], useDarkenBackdrop: [{
|
|
3256
|
-
type: Input
|
|
3257
|
-
}], backdropOpacity: [{
|
|
3258
|
-
type: Input
|
|
3259
|
-
}], backdropZIndex: [{
|
|
3260
|
-
type: Input
|
|
3261
|
-
}], backdropTop: [{
|
|
3262
|
-
type: Input
|
|
3263
|
-
}], coverFooter: [{
|
|
3264
|
-
type: Input
|
|
3265
|
-
}], backdropClass: [{
|
|
3266
|
-
type: Input
|
|
3267
|
-
}], backdropOverlapPx: [{
|
|
3268
|
-
type: Input
|
|
3269
|
-
}], snavRef: [{
|
|
3270
|
-
type: ViewChild,
|
|
3271
|
-
args: ['snav', { static: false }]
|
|
3272
|
-
}], onWinResize: [{
|
|
3273
|
-
type: HostListener,
|
|
3274
|
-
args: ['window:resize']
|
|
3275
|
-
}], onOrientationChange: [{
|
|
3276
|
-
type: HostListener,
|
|
3277
|
-
args: ['window:orientationchange']
|
|
3278
3176
|
}] } });
|
|
3279
3177
|
|
|
3280
3178
|
class FooterComponent {
|
|
@@ -3761,7 +3659,7 @@ class SelectEnumComponent extends BaseField {
|
|
|
3761
3659
|
</mat-spinner>
|
|
3762
3660
|
</mat-form-field>
|
|
3763
3661
|
</div>
|
|
3764
|
-
`, isInline: true, styles: [".select-enum-container{display:flex;flex-direction:column}.select-enum-field{width:100%}:host ::ng-deep .select-enum-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-enum-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-floating-label,:host ::ng-deep .select-enum-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-placeholder,:host ::ng-deep .select-enum-field .mat-mdc-select-value-text,:host ::ng-deep .select-enum-field .mat-mdc-select-value,:host ::ng-deep .select-enum-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-arrow,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-select-enum-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-enum-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}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!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: 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: 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3662
|
+
`, isInline: true, styles: [".select-enum-container{display:flex;flex-direction:column}.select-enum-field{width:100%}:host ::ng-deep .select-enum-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-enum-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-floating-label,:host ::ng-deep .select-enum-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-placeholder,:host ::ng-deep .select-enum-field .mat-mdc-select-value-text,:host ::ng-deep .select-enum-field .mat-mdc-select-value,:host ::ng-deep .select-enum-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-arrow,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;opacity:1!important;visibility:visible!important;max-height:min(320px,60vh)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-select-enum-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .cdk-overlay-container .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:10002!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-enum-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}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!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: 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: 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "component", type: i5$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3765
3663
|
}
|
|
3766
3664
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SelectEnumComponent, decorators: [{
|
|
3767
3665
|
type: Component,
|
|
@@ -3811,7 +3709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3811
3709
|
</mat-spinner>
|
|
3812
3710
|
</mat-form-field>
|
|
3813
3711
|
</div>
|
|
3814
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".select-enum-container{display:flex;flex-direction:column}.select-enum-field{width:100%}:host ::ng-deep .select-enum-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-enum-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-floating-label,:host ::ng-deep .select-enum-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-placeholder,:host ::ng-deep .select-enum-field .mat-mdc-select-value-text,:host ::ng-deep .select-enum-field .mat-mdc-select-value,:host ::ng-deep .select-enum-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-arrow,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-select-enum-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-enum-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}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"] }]
|
|
3712
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".select-enum-container{display:flex;flex-direction:column}.select-enum-field{width:100%}:host ::ng-deep .select-enum-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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 .select-enum-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .select-enum-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .select-enum-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 .select-enum-field .mdc-floating-label,:host ::ng-deep .select-enum-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-placeholder,:host ::ng-deep .select-enum-field .mat-mdc-select-value-text,:host ::ng-deep .select-enum-field .mat-mdc-select-value,:host ::ng-deep .select-enum-field .mat-mdc-select-min-line{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .select-enum-field .mat-mdc-select-arrow,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg,:host ::ng-deep .select-enum-field .mat-mdc-select-arrow svg path{color:var(--ptech-field-arrow, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important;border-top-color:var(--ptech-field-arrow, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;opacity:1!important;visibility:visible!important;max-height:min(320px,60vh)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-select-enum-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .cdk-overlay-container .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important;z-index:10002!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-select-enum-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}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox{border-color:var(--ptech-checkbox-border, var(--app-text, inherit))!important;color:var(--ptech-checkbox-border, var(--app-text, inherit))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important;border-color:var(--ptech-checkbox-checked-bg, var(--mat-theme-primary, #3f51b5))!important}::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked:after,::ng-deep .ptech-select-enum-panel .mat-mdc-option .mat-pseudo-checkbox.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate:after{color:var(--ptech-checkbox-checkmark, #ffffff)!important;border-color:var(--ptech-checkbox-checkmark, #ffffff)!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"] }]
|
|
3815
3713
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { multiple: [{
|
|
3816
3714
|
type: Input
|
|
3817
3715
|
}], enum: [{
|
|
@@ -3948,6 +3846,185 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3948
3846
|
type: Input
|
|
3949
3847
|
}] } });
|
|
3950
3848
|
|
|
3849
|
+
const PTECH_DIALOG_SHARED_STYLES = `
|
|
3850
|
+
:host {
|
|
3851
|
+
display: block;
|
|
3852
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
3853
|
+
}
|
|
3854
|
+
|
|
3855
|
+
.ptech-dialog-shell {
|
|
3856
|
+
display: flex;
|
|
3857
|
+
flex-direction: column;
|
|
3858
|
+
max-width: 92vw;
|
|
3859
|
+
width: 100%;
|
|
3860
|
+
max-height: 88vh;
|
|
3861
|
+
min-height: 0;
|
|
3862
|
+
background: var(--ptech-dialog-bg, var(--app-surface, #fff));
|
|
3863
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
3864
|
+
border-radius: 16px;
|
|
3865
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
3866
|
+
overflow: hidden;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
.ptech-dialog-header {
|
|
3870
|
+
display: grid;
|
|
3871
|
+
grid-template-columns: 52px 1fr 52px;
|
|
3872
|
+
align-items: center;
|
|
3873
|
+
gap: 12px;
|
|
3874
|
+
padding: 14px 16px;
|
|
3875
|
+
background: var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));
|
|
3876
|
+
flex: 0 0 auto;
|
|
3877
|
+
}
|
|
3878
|
+
|
|
3879
|
+
.ptech-dialog-drag {
|
|
3880
|
+
width: 42px;
|
|
3881
|
+
height: 42px;
|
|
3882
|
+
border-radius: 12px;
|
|
3883
|
+
display: inline-flex;
|
|
3884
|
+
align-items: center;
|
|
3885
|
+
justify-content: center;
|
|
3886
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
3887
|
+
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
3888
|
+
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
3889
|
+
}
|
|
3890
|
+
|
|
3891
|
+
.ptech-dialog-heading h1[mat-dialog-title],
|
|
3892
|
+
.ptech-dialog-heading h2[mat-dialog-title] {
|
|
3893
|
+
margin: 0;
|
|
3894
|
+
line-height: 1.2;
|
|
3895
|
+
font-weight: 700;
|
|
3896
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
3897
|
+
text-align: center;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
.ptech-dialog-heading {
|
|
3901
|
+
text-align: center;
|
|
3902
|
+
justify-self: center;
|
|
3903
|
+
width: 100%;
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
.ptech-dialog-subtitle {
|
|
3907
|
+
margin: 2px 0 0;
|
|
3908
|
+
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
3909
|
+
font-size: 1rem;
|
|
3910
|
+
font-weight: 500;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
.ptech-dialog-close {
|
|
3914
|
+
width: 42px;
|
|
3915
|
+
height: 42px;
|
|
3916
|
+
border-radius: 12px;
|
|
3917
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
3918
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
3919
|
+
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
3920
|
+
display: inline-flex;
|
|
3921
|
+
align-items: center;
|
|
3922
|
+
justify-content: center;
|
|
3923
|
+
padding: 0 !important;
|
|
3924
|
+
}
|
|
3925
|
+
|
|
3926
|
+
.ptech-dialog-close .mat-icon {
|
|
3927
|
+
margin: 0;
|
|
3928
|
+
width: 26px;
|
|
3929
|
+
height: 26px;
|
|
3930
|
+
font-size: 26px;
|
|
3931
|
+
line-height: 26px;
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
.ptech-dialog-divider {
|
|
3935
|
+
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
3936
|
+
}
|
|
3937
|
+
|
|
3938
|
+
.ptech-dialog-content {
|
|
3939
|
+
flex: 1 1 auto;
|
|
3940
|
+
min-height: 0;
|
|
3941
|
+
max-height: none;
|
|
3942
|
+
overflow-y: auto;
|
|
3943
|
+
overflow-x: hidden;
|
|
3944
|
+
padding: 16px;
|
|
3945
|
+
box-sizing: border-box;
|
|
3946
|
+
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
3947
|
+
}
|
|
3948
|
+
|
|
3949
|
+
.ptech-dialog-content p,
|
|
3950
|
+
.ptech-dialog-content span,
|
|
3951
|
+
.ptech-dialog-content div,
|
|
3952
|
+
.ptech-dialog-content li,
|
|
3953
|
+
.ptech-dialog-content strong,
|
|
3954
|
+
.ptech-dialog-content em,
|
|
3955
|
+
.ptech-dialog-content small {
|
|
3956
|
+
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
.ptech-dialog-content::-webkit-scrollbar {
|
|
3960
|
+
width: 10px;
|
|
3961
|
+
height: 10px;
|
|
3962
|
+
}
|
|
3963
|
+
|
|
3964
|
+
.ptech-dialog-content::-webkit-scrollbar-track {
|
|
3965
|
+
background: var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));
|
|
3966
|
+
border-radius: 12px;
|
|
3967
|
+
}
|
|
3968
|
+
|
|
3969
|
+
.ptech-dialog-content::-webkit-scrollbar-thumb {
|
|
3970
|
+
background: var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));
|
|
3971
|
+
border-radius: 12px;
|
|
3972
|
+
border: 2px solid transparent;
|
|
3973
|
+
background-clip: padding-box;
|
|
3974
|
+
}
|
|
3975
|
+
|
|
3976
|
+
.ptech-dialog-content::-webkit-scrollbar-thumb:hover {
|
|
3977
|
+
background: var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)));
|
|
3978
|
+
}
|
|
3979
|
+
|
|
3980
|
+
.ptech-dialog-content {
|
|
3981
|
+
scrollbar-width: thin;
|
|
3982
|
+
scrollbar-color: var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937));
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3985
|
+
.ptech-dialog-actions {
|
|
3986
|
+
margin: 0;
|
|
3987
|
+
padding: 14px 16px 16px;
|
|
3988
|
+
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
3989
|
+
background: var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));
|
|
3990
|
+
display: flex;
|
|
3991
|
+
justify-content: flex-end;
|
|
3992
|
+
gap: 8px;
|
|
3993
|
+
flex-wrap: wrap;
|
|
3994
|
+
flex: 0 0 auto;
|
|
3995
|
+
}
|
|
3996
|
+
|
|
3997
|
+
::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface {
|
|
3998
|
+
background: transparent !important;
|
|
3999
|
+
box-shadow: none !important;
|
|
4000
|
+
color: inherit;
|
|
4001
|
+
overflow: visible;
|
|
4002
|
+
border-radius: 16px;
|
|
4003
|
+
padding: 0;
|
|
4004
|
+
max-height: none !important;
|
|
4005
|
+
}
|
|
4006
|
+
|
|
4007
|
+
.ptech-dialog-content.mat-mdc-dialog-content {
|
|
4008
|
+
max-height: none !important;
|
|
4009
|
+
margin: 0;
|
|
4010
|
+
}
|
|
4011
|
+
|
|
4012
|
+
::ng-deep .cdk-overlay-container,
|
|
4013
|
+
::ng-deep .cdk-global-overlay-wrapper,
|
|
4014
|
+
::ng-deep .cdk-overlay-pane {
|
|
4015
|
+
z-index: var(--ptech-overlay-z-index, 10000) !important;
|
|
4016
|
+
}
|
|
4017
|
+
|
|
4018
|
+
::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,
|
|
4019
|
+
::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,
|
|
4020
|
+
::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,
|
|
4021
|
+
::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel {
|
|
4022
|
+
opacity: 1 !important;
|
|
4023
|
+
visibility: visible !important;
|
|
4024
|
+
pointer-events: auto !important;
|
|
4025
|
+
}
|
|
4026
|
+
`;
|
|
4027
|
+
|
|
3951
4028
|
class ConfirmationDialogComponent {
|
|
3952
4029
|
dialogRef;
|
|
3953
4030
|
confirmation;
|
|
@@ -3964,14 +4041,33 @@ class ConfirmationDialogComponent {
|
|
|
3964
4041
|
}
|
|
3965
4042
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
3966
4043
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
|
|
3967
|
-
<div class="dialog">
|
|
3968
|
-
<
|
|
4044
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4045
|
+
<div class="ptech-dialog-header">
|
|
4046
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4047
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4048
|
+
</div>
|
|
3969
4049
|
|
|
3970
|
-
|
|
4050
|
+
<div class="ptech-dialog-heading">
|
|
4051
|
+
<h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
|
|
4052
|
+
</div>
|
|
4053
|
+
|
|
4054
|
+
<button
|
|
4055
|
+
mat-icon-button
|
|
4056
|
+
type="button"
|
|
4057
|
+
class="ptech-dialog-close"
|
|
4058
|
+
aria-label="Fechar"
|
|
4059
|
+
(click)="cancel()">
|
|
4060
|
+
<mat-icon>close</mat-icon>
|
|
4061
|
+
</button>
|
|
4062
|
+
</div>
|
|
4063
|
+
|
|
4064
|
+
<div class="ptech-dialog-divider"></div>
|
|
4065
|
+
|
|
4066
|
+
<div mat-dialog-content class="ptech-dialog-content dialog-content">
|
|
3971
4067
|
<p>{{ confirmation.message }}</p>
|
|
3972
4068
|
</div>
|
|
3973
4069
|
|
|
3974
|
-
<div class="dialog-actions">
|
|
4070
|
+
<div class="ptech-dialog-actions">
|
|
3975
4071
|
<button mat-flat-button color="primary" (click)="confirm()">
|
|
3976
4072
|
{{ confirmation.confirmText || 'OK' }}
|
|
3977
4073
|
</button>
|
|
@@ -3980,19 +4076,38 @@ class ConfirmationDialogComponent {
|
|
|
3980
4076
|
</button>
|
|
3981
4077
|
</div>
|
|
3982
4078
|
</div>
|
|
3983
|
-
`, isInline: true, styles: [".dialog{
|
|
4079
|
+
`, 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\n", ".ptech-dialog-shell{min-width:min(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
3984
4080
|
}
|
|
3985
4081
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
|
|
3986
4082
|
type: Component,
|
|
3987
|
-
args: [{ selector: 'ptech-confirmation-dialog', imports: [CommonModule, CoreMaterialModule], template: `
|
|
3988
|
-
<div class="dialog">
|
|
3989
|
-
<
|
|
4083
|
+
args: [{ selector: 'ptech-confirmation-dialog', imports: [CommonModule, CoreMaterialModule, CdkDrag, CdkDragHandle], template: `
|
|
4084
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4085
|
+
<div class="ptech-dialog-header">
|
|
4086
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4087
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4088
|
+
</div>
|
|
4089
|
+
|
|
4090
|
+
<div class="ptech-dialog-heading">
|
|
4091
|
+
<h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
|
|
4092
|
+
</div>
|
|
3990
4093
|
|
|
3991
|
-
|
|
4094
|
+
<button
|
|
4095
|
+
mat-icon-button
|
|
4096
|
+
type="button"
|
|
4097
|
+
class="ptech-dialog-close"
|
|
4098
|
+
aria-label="Fechar"
|
|
4099
|
+
(click)="cancel()">
|
|
4100
|
+
<mat-icon>close</mat-icon>
|
|
4101
|
+
</button>
|
|
4102
|
+
</div>
|
|
4103
|
+
|
|
4104
|
+
<div class="ptech-dialog-divider"></div>
|
|
4105
|
+
|
|
4106
|
+
<div mat-dialog-content class="ptech-dialog-content dialog-content">
|
|
3992
4107
|
<p>{{ confirmation.message }}</p>
|
|
3993
4108
|
</div>
|
|
3994
4109
|
|
|
3995
|
-
<div class="dialog-actions">
|
|
4110
|
+
<div class="ptech-dialog-actions">
|
|
3996
4111
|
<button mat-flat-button color="primary" (click)="confirm()">
|
|
3997
4112
|
{{ confirmation.confirmText || 'OK' }}
|
|
3998
4113
|
</button>
|
|
@@ -4001,12 +4116,276 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4001
4116
|
</button>
|
|
4002
4117
|
</div>
|
|
4003
4118
|
</div>
|
|
4004
|
-
`, styles: [".dialog{
|
|
4119
|
+
`, 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\n", ".ptech-dialog-shell{min-width:min(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"] }]
|
|
4005
4120
|
}], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
4006
4121
|
type: Inject,
|
|
4007
4122
|
args: [MAT_DIALOG_DATA]
|
|
4008
4123
|
}] }] });
|
|
4009
4124
|
|
|
4125
|
+
class InputCurrencyComponent extends BaseField {
|
|
4126
|
+
constructor(el) { super(el); }
|
|
4127
|
+
/** Config por input (parcial) */
|
|
4128
|
+
options = {};
|
|
4129
|
+
valueChange = new EventEmitter();
|
|
4130
|
+
// Defaults (BRL)
|
|
4131
|
+
defaultOptions = {
|
|
4132
|
+
align: 'right',
|
|
4133
|
+
allowNegative: false,
|
|
4134
|
+
allowZero: true,
|
|
4135
|
+
locale: 'pt-BR',
|
|
4136
|
+
currency: 'BRL',
|
|
4137
|
+
currencyDisplay: 'symbol',
|
|
4138
|
+
useGrouping: true,
|
|
4139
|
+
decimal: undefined,
|
|
4140
|
+
precision: 2,
|
|
4141
|
+
prefix: undefined,
|
|
4142
|
+
suffix: undefined,
|
|
4143
|
+
thousands: undefined,
|
|
4144
|
+
nullable: true
|
|
4145
|
+
};
|
|
4146
|
+
get resolvedOptions() {
|
|
4147
|
+
return { ...this.defaultOptions, ...(this.options || {}) };
|
|
4148
|
+
}
|
|
4149
|
+
// ===== CVA =====
|
|
4150
|
+
_val = null;
|
|
4151
|
+
displayValue = '';
|
|
4152
|
+
onChange = () => { };
|
|
4153
|
+
onTouch = () => { };
|
|
4154
|
+
parseToNumber(value) {
|
|
4155
|
+
const nullableFallback = this.resolvedOptions.nullable === false ? 0 : null;
|
|
4156
|
+
const normalized = this.normalizeInput(value);
|
|
4157
|
+
if (!normalized)
|
|
4158
|
+
return nullableFallback;
|
|
4159
|
+
const preferred = this.parseUsingSeparators(normalized, this.getDecimalSeparator(), this.getThousandsSeparator());
|
|
4160
|
+
const parsed = Number.isFinite(preferred) ? preferred : this.parseFlexible(normalized);
|
|
4161
|
+
if (!Number.isFinite(parsed))
|
|
4162
|
+
return nullableFallback;
|
|
4163
|
+
if (!this.resolvedOptions.allowNegative && parsed < 0)
|
|
4164
|
+
return nullableFallback;
|
|
4165
|
+
if (!this.resolvedOptions.allowZero && parsed === 0)
|
|
4166
|
+
return nullableFallback;
|
|
4167
|
+
return parsed;
|
|
4168
|
+
}
|
|
4169
|
+
formatNumber(value) {
|
|
4170
|
+
if (value == null)
|
|
4171
|
+
return '';
|
|
4172
|
+
const precision = Math.max(0, this.resolvedOptions.precision ?? 2);
|
|
4173
|
+
const prefix = this.resolvedOptions.prefix;
|
|
4174
|
+
const suffix = this.resolvedOptions.suffix;
|
|
4175
|
+
if (prefix != null || suffix != null) {
|
|
4176
|
+
const decimal = this.getDecimalSeparator();
|
|
4177
|
+
const thousands = this.getThousandsSeparator();
|
|
4178
|
+
const sign = value < 0 ? '-' : '';
|
|
4179
|
+
const abs = Math.abs(value);
|
|
4180
|
+
const fixed = abs.toFixed(precision);
|
|
4181
|
+
const [intPart, decPart] = fixed.split('.');
|
|
4182
|
+
const intWithTh = this.resolvedOptions.useGrouping === false
|
|
4183
|
+
? intPart
|
|
4184
|
+
: intPart.replace(/\B(?=(\d{3})+(?!\d))/g, thousands);
|
|
4185
|
+
const decFormatted = precision > 0 ? `${decimal}${decPart}` : '';
|
|
4186
|
+
return `${sign}${prefix ?? ''}${intWithTh}${decFormatted}${suffix ?? ''}`;
|
|
4187
|
+
}
|
|
4188
|
+
return this.getIntlFormatter(precision).format(value);
|
|
4189
|
+
}
|
|
4190
|
+
onInput(raw) {
|
|
4191
|
+
this.displayValue = raw;
|
|
4192
|
+
const parsed = this.parseToNumber(raw);
|
|
4193
|
+
this._val = parsed;
|
|
4194
|
+
this.onChange(parsed);
|
|
4195
|
+
this.valueChange.emit(parsed);
|
|
4196
|
+
}
|
|
4197
|
+
onBlur() {
|
|
4198
|
+
this.displayValue = this.formatNumber(this._val);
|
|
4199
|
+
this.onTouch();
|
|
4200
|
+
}
|
|
4201
|
+
writeValue(value) {
|
|
4202
|
+
const num = value == null ? null : Number(value);
|
|
4203
|
+
this._val = Number.isFinite(num) ? num : null;
|
|
4204
|
+
this.displayValue = this.formatNumber(this._val);
|
|
4205
|
+
}
|
|
4206
|
+
registerOnChange(fn) { this.onChange = fn; }
|
|
4207
|
+
registerOnTouched(fn) { this.onTouch = fn; }
|
|
4208
|
+
setDisabledState(isDisabled) { this.disabled = isDisabled; }
|
|
4209
|
+
getLocale() {
|
|
4210
|
+
return this.resolvedOptions.locale || 'pt-BR';
|
|
4211
|
+
}
|
|
4212
|
+
getCurrency() {
|
|
4213
|
+
return this.resolvedOptions.currency || 'BRL';
|
|
4214
|
+
}
|
|
4215
|
+
getIntlFormatter(precision) {
|
|
4216
|
+
try {
|
|
4217
|
+
return new Intl.NumberFormat(this.getLocale(), {
|
|
4218
|
+
style: 'currency',
|
|
4219
|
+
currency: this.getCurrency(),
|
|
4220
|
+
currencyDisplay: this.resolvedOptions.currencyDisplay || 'symbol',
|
|
4221
|
+
minimumFractionDigits: precision,
|
|
4222
|
+
maximumFractionDigits: precision,
|
|
4223
|
+
useGrouping: this.resolvedOptions.useGrouping !== false
|
|
4224
|
+
});
|
|
4225
|
+
}
|
|
4226
|
+
catch {
|
|
4227
|
+
return new Intl.NumberFormat('pt-BR', {
|
|
4228
|
+
style: 'currency',
|
|
4229
|
+
currency: 'BRL',
|
|
4230
|
+
minimumFractionDigits: precision,
|
|
4231
|
+
maximumFractionDigits: precision,
|
|
4232
|
+
useGrouping: true
|
|
4233
|
+
});
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
detectLocaleSeparators() {
|
|
4237
|
+
try {
|
|
4238
|
+
const parts = new Intl.NumberFormat(this.getLocale(), {
|
|
4239
|
+
style: 'currency',
|
|
4240
|
+
currency: this.getCurrency(),
|
|
4241
|
+
}).formatToParts(1234567.89);
|
|
4242
|
+
const decimal = parts.find(p => p.type === 'decimal')?.value || ',';
|
|
4243
|
+
const group = parts.find(p => p.type === 'group')?.value || '.';
|
|
4244
|
+
return { decimal, thousands: group };
|
|
4245
|
+
}
|
|
4246
|
+
catch {
|
|
4247
|
+
return { decimal: ',', thousands: '.' };
|
|
4248
|
+
}
|
|
4249
|
+
}
|
|
4250
|
+
getDecimalSeparator() {
|
|
4251
|
+
return this.resolvedOptions.decimal || this.detectLocaleSeparators().decimal || ',';
|
|
4252
|
+
}
|
|
4253
|
+
getThousandsSeparator() {
|
|
4254
|
+
return this.resolvedOptions.thousands || this.detectLocaleSeparators().thousands || '.';
|
|
4255
|
+
}
|
|
4256
|
+
normalizeInput(value) {
|
|
4257
|
+
let text = String(value ?? '');
|
|
4258
|
+
const prefix = this.resolvedOptions.prefix || '';
|
|
4259
|
+
const suffix = this.resolvedOptions.suffix || '';
|
|
4260
|
+
if (prefix)
|
|
4261
|
+
text = text.split(prefix).join('');
|
|
4262
|
+
if (suffix)
|
|
4263
|
+
text = text.split(suffix).join('');
|
|
4264
|
+
return text.replace(/\s|\u00A0/g, '').trim();
|
|
4265
|
+
}
|
|
4266
|
+
parseUsingSeparators(text, decimalSep, thousandSep) {
|
|
4267
|
+
const sign = text.includes('-') ? -1 : 1;
|
|
4268
|
+
let raw = text.replace(/-/g, '');
|
|
4269
|
+
if (thousandSep && thousandSep !== decimalSep) {
|
|
4270
|
+
raw = raw.split(thousandSep).join('');
|
|
4271
|
+
}
|
|
4272
|
+
const decimalIndex = raw.lastIndexOf(decimalSep);
|
|
4273
|
+
if (decimalIndex >= 0) {
|
|
4274
|
+
const intPart = raw.slice(0, decimalIndex).replace(/[^\d]/g, '');
|
|
4275
|
+
const fracPart = raw.slice(decimalIndex + 1).replace(/[^\d]/g, '');
|
|
4276
|
+
if (!intPart && !fracPart)
|
|
4277
|
+
return Number.NaN;
|
|
4278
|
+
return sign * Number(`${intPart || '0'}.${fracPart || '0'}`);
|
|
4279
|
+
}
|
|
4280
|
+
const integerOnly = raw.replace(/[^\d]/g, '');
|
|
4281
|
+
if (!integerOnly)
|
|
4282
|
+
return Number.NaN;
|
|
4283
|
+
return sign * Number(integerOnly);
|
|
4284
|
+
}
|
|
4285
|
+
parseFlexible(text) {
|
|
4286
|
+
const sign = text.includes('-') ? -1 : 1;
|
|
4287
|
+
const raw = text.replace(/-/g, '');
|
|
4288
|
+
const lastDot = raw.lastIndexOf('.');
|
|
4289
|
+
const lastComma = raw.lastIndexOf(',');
|
|
4290
|
+
const decimalIndex = Math.max(lastDot, lastComma);
|
|
4291
|
+
if (decimalIndex >= 0) {
|
|
4292
|
+
const intPart = raw.slice(0, decimalIndex).replace(/[^\d]/g, '');
|
|
4293
|
+
const fracPart = raw.slice(decimalIndex + 1).replace(/[^\d]/g, '');
|
|
4294
|
+
if (!intPart && !fracPart)
|
|
4295
|
+
return Number.NaN;
|
|
4296
|
+
return sign * Number(`${intPart || '0'}.${fracPart || '0'}`);
|
|
4297
|
+
}
|
|
4298
|
+
const integerOnly = raw.replace(/[^\d]/g, '');
|
|
4299
|
+
if (!integerOnly)
|
|
4300
|
+
return Number.NaN;
|
|
4301
|
+
return sign * Number(integerOnly);
|
|
4302
|
+
}
|
|
4303
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4304
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputCurrencyComponent, isStandalone: true, selector: "ptech-input-currency", inputs: { options: "options" }, outputs: { valueChange: "valueChange" }, providers: [{
|
|
4305
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4306
|
+
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
4307
|
+
multi: true
|
|
4308
|
+
}], usesInheritance: true, ngImport: i0, template: `
|
|
4309
|
+
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4310
|
+
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4311
|
+
<mat-label>
|
|
4312
|
+
{{ label }}
|
|
4313
|
+
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4314
|
+
</mat-label>
|
|
4315
|
+
|
|
4316
|
+
<input
|
|
4317
|
+
matInput
|
|
4318
|
+
type="text"
|
|
4319
|
+
[style.text-align]="resolvedOptions.align || 'right'"
|
|
4320
|
+
[placeholder]="placeholder"
|
|
4321
|
+
[required]="required"
|
|
4322
|
+
[disabled]="disabled || loading"
|
|
4323
|
+
[attr.name]="name || null"
|
|
4324
|
+
[attr.aria-label]="ariaLabel || null"
|
|
4325
|
+
autocomplete="off"
|
|
4326
|
+
[value]="displayValue"
|
|
4327
|
+
(input)="onInput(($any($event.target).value))"
|
|
4328
|
+
(blur)="onBlur()"
|
|
4329
|
+
/>
|
|
4330
|
+
|
|
4331
|
+
<mat-spinner
|
|
4332
|
+
matPrefix
|
|
4333
|
+
*ngIf="loading"
|
|
4334
|
+
mode="indeterminate"
|
|
4335
|
+
diameter="17">
|
|
4336
|
+
</mat-spinner>
|
|
4337
|
+
|
|
4338
|
+
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
4339
|
+
</mat-form-field>
|
|
4340
|
+
</div>
|
|
4341
|
+
`, isInline: true, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mat-mdc-input-element,:host ::ng-deep .ptech-form-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-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-form-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important;opacity:1!important}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4342
|
+
}
|
|
4343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
4344
|
+
type: Component,
|
|
4345
|
+
args: [{ selector: 'ptech-input-currency', imports: [CoreMaterialModule], template: `
|
|
4346
|
+
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4347
|
+
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4348
|
+
<mat-label>
|
|
4349
|
+
{{ label }}
|
|
4350
|
+
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4351
|
+
</mat-label>
|
|
4352
|
+
|
|
4353
|
+
<input
|
|
4354
|
+
matInput
|
|
4355
|
+
type="text"
|
|
4356
|
+
[style.text-align]="resolvedOptions.align || 'right'"
|
|
4357
|
+
[placeholder]="placeholder"
|
|
4358
|
+
[required]="required"
|
|
4359
|
+
[disabled]="disabled || loading"
|
|
4360
|
+
[attr.name]="name || null"
|
|
4361
|
+
[attr.aria-label]="ariaLabel || null"
|
|
4362
|
+
autocomplete="off"
|
|
4363
|
+
[value]="displayValue"
|
|
4364
|
+
(input)="onInput(($any($event.target).value))"
|
|
4365
|
+
(blur)="onBlur()"
|
|
4366
|
+
/>
|
|
4367
|
+
|
|
4368
|
+
<mat-spinner
|
|
4369
|
+
matPrefix
|
|
4370
|
+
*ngIf="loading"
|
|
4371
|
+
mode="indeterminate"
|
|
4372
|
+
diameter="17">
|
|
4373
|
+
</mat-spinner>
|
|
4374
|
+
|
|
4375
|
+
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
4376
|
+
</mat-form-field>
|
|
4377
|
+
</div>
|
|
4378
|
+
`, providers: [{
|
|
4379
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4380
|
+
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
4381
|
+
multi: true
|
|
4382
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--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-form-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-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-form-field .mat-mdc-input-element,:host ::ng-deep .ptech-form-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-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder,:host ::ng-deep .ptech-form-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-form-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important;opacity:1!important}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"] }]
|
|
4383
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
4384
|
+
type: Input
|
|
4385
|
+
}], valueChange: [{
|
|
4386
|
+
type: Output
|
|
4387
|
+
}] } });
|
|
4388
|
+
|
|
4010
4389
|
// src/lib/services/message-token.ts
|
|
4011
4390
|
const MESSAGE_SERVICE = new InjectionToken('MESSAGE_SERVICE');
|
|
4012
4391
|
const DefaultConsoleMessageService = {
|
|
@@ -4044,8 +4423,9 @@ class ActionDialogComponent {
|
|
|
4044
4423
|
onCancel() {
|
|
4045
4424
|
this.dialogRef.close();
|
|
4046
4425
|
}
|
|
4047
|
-
|
|
4048
|
-
|
|
4426
|
+
onQuantityChange(field, value) {
|
|
4427
|
+
field.value = value;
|
|
4428
|
+
if (value !== 0)
|
|
4049
4429
|
return;
|
|
4050
4430
|
this.msg.errorMessage('Número inválido', 'Deve haver no mínimo 1 conexão.');
|
|
4051
4431
|
}
|
|
@@ -4054,9 +4434,30 @@ class ActionDialogComponent {
|
|
|
4054
4434
|
}
|
|
4055
4435
|
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 });
|
|
4056
4436
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: `
|
|
4057
|
-
<
|
|
4437
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4438
|
+
<div class="ptech-dialog-header">
|
|
4439
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4440
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4441
|
+
</div>
|
|
4442
|
+
|
|
4443
|
+
<div class="ptech-dialog-heading">
|
|
4444
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4445
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4446
|
+
</div>
|
|
4447
|
+
|
|
4448
|
+
<button
|
|
4449
|
+
mat-icon-button
|
|
4450
|
+
type="button"
|
|
4451
|
+
class="ptech-dialog-close"
|
|
4452
|
+
aria-label="Fechar"
|
|
4453
|
+
(click)="onCancel()">
|
|
4454
|
+
<mat-icon>close</mat-icon>
|
|
4455
|
+
</button>
|
|
4456
|
+
</div>
|
|
4058
4457
|
|
|
4059
|
-
|
|
4458
|
+
<div class="ptech-dialog-divider"></div>
|
|
4459
|
+
|
|
4460
|
+
<mat-dialog-content class="ptech-dialog-content dialog-content-custom">
|
|
4060
4461
|
<div *ngFor="let field of data.fields">
|
|
4061
4462
|
<!-- Select -->
|
|
4062
4463
|
<ng-container *ngIf="field.type === 'select'">
|
|
@@ -4075,10 +4476,23 @@ class ActionDialogComponent {
|
|
|
4075
4476
|
<mat-label>{{ field.label }}</mat-label>
|
|
4076
4477
|
<ptech-quantity-items
|
|
4077
4478
|
[quantity]="field.value"
|
|
4078
|
-
(quantityChange)="
|
|
4479
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4079
4480
|
></ptech-quantity-items>
|
|
4080
4481
|
</ng-container>
|
|
4081
4482
|
|
|
4483
|
+
<!-- Quantity Select -->
|
|
4484
|
+
<ng-container *ngIf="field.type === 'quantity-select'">
|
|
4485
|
+
<ptech-select-quantity-items
|
|
4486
|
+
[label]="field.label"
|
|
4487
|
+
[quantity]="field.value"
|
|
4488
|
+
[min]="field.min ?? 1"
|
|
4489
|
+
[max]="field.max ?? 12"
|
|
4490
|
+
[step]="field.step ?? 1"
|
|
4491
|
+
[placeholder]="field.placeholder || 'Selecione'"
|
|
4492
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4493
|
+
></ptech-select-quantity-items>
|
|
4494
|
+
</ng-container>
|
|
4495
|
+
|
|
4082
4496
|
<!-- Text -->
|
|
4083
4497
|
<ng-container *ngIf="field.type === 'text'">
|
|
4084
4498
|
<mat-form-field appearance="fill">
|
|
@@ -4087,6 +4501,16 @@ class ActionDialogComponent {
|
|
|
4087
4501
|
</mat-form-field>
|
|
4088
4502
|
</ng-container>
|
|
4089
4503
|
|
|
4504
|
+
<!-- Currency -->
|
|
4505
|
+
<ng-container *ngIf="field.type === 'currency'">
|
|
4506
|
+
<ptech-input-currency
|
|
4507
|
+
[label]="field.label"
|
|
4508
|
+
[placeholder]="field.placeholder || ''"
|
|
4509
|
+
[options]="field.currencyOptions || {}"
|
|
4510
|
+
[(ngModel)]="field.value"
|
|
4511
|
+
></ptech-input-currency>
|
|
4512
|
+
</ng-container>
|
|
4513
|
+
|
|
4090
4514
|
<!-- Checkbox -->
|
|
4091
4515
|
<ng-container *ngIf="field.type === 'checkbox'">
|
|
4092
4516
|
<mat-checkbox [(ngModel)]="field.value">{{ field.label }}</mat-checkbox>
|
|
@@ -4096,9 +4520,9 @@ class ActionDialogComponent {
|
|
|
4096
4520
|
<mat-card *ngIf="data.infoBox">
|
|
4097
4521
|
<pre>{{ data.infoBox }}</pre>
|
|
4098
4522
|
</mat-card>
|
|
4099
|
-
|
|
4523
|
+
</mat-dialog-content>
|
|
4100
4524
|
|
|
4101
|
-
|
|
4525
|
+
<mat-dialog-actions align="end" class="ptech-dialog-actions">
|
|
4102
4526
|
<ptech-button
|
|
4103
4527
|
class="action-btn"
|
|
4104
4528
|
type="raised"
|
|
@@ -4107,17 +4531,9 @@ class ActionDialogComponent {
|
|
|
4107
4531
|
color="primary"
|
|
4108
4532
|
(click)="onConfirm()"
|
|
4109
4533
|
></ptech-button>
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
type="raised"
|
|
4114
|
-
[label]="data.cancelText || 'Fechar'"
|
|
4115
|
-
icon="close"
|
|
4116
|
-
color="var(--app-status-error, #dc3545)"
|
|
4117
|
-
(click)="onCancel()"
|
|
4118
|
-
></ptech-button>
|
|
4119
|
-
</mat-dialog-actions>
|
|
4120
|
-
`, isInline: true, styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;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}.dialog-content-custom{padding-top:10px!important}:host ::ng-deep .mat-mdc-dialog-title{margin-bottom:0!important;padding-bottom:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: 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: i4$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: "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: i7$1.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"], 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"] }] });
|
|
4534
|
+
</mat-dialog-actions>
|
|
4535
|
+
</div>
|
|
4536
|
+
`, 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\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: i5$3.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"], 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"] }] });
|
|
4121
4537
|
}
|
|
4122
4538
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, decorators: [{
|
|
4123
4539
|
type: Component,
|
|
@@ -4128,10 +4544,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4128
4544
|
ButtonComponent,
|
|
4129
4545
|
SelectEntityComponent,
|
|
4130
4546
|
QuantityItemsComponent,
|
|
4547
|
+
SelectQuantityItemsComponent,
|
|
4548
|
+
InputCurrencyComponent,
|
|
4549
|
+
CdkDrag,
|
|
4550
|
+
CdkDragHandle,
|
|
4131
4551
|
], template: `
|
|
4132
|
-
<
|
|
4552
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4553
|
+
<div class="ptech-dialog-header">
|
|
4554
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4555
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4556
|
+
</div>
|
|
4133
4557
|
|
|
4134
|
-
|
|
4558
|
+
<div class="ptech-dialog-heading">
|
|
4559
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4560
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4561
|
+
</div>
|
|
4562
|
+
|
|
4563
|
+
<button
|
|
4564
|
+
mat-icon-button
|
|
4565
|
+
type="button"
|
|
4566
|
+
class="ptech-dialog-close"
|
|
4567
|
+
aria-label="Fechar"
|
|
4568
|
+
(click)="onCancel()">
|
|
4569
|
+
<mat-icon>close</mat-icon>
|
|
4570
|
+
</button>
|
|
4571
|
+
</div>
|
|
4572
|
+
|
|
4573
|
+
<div class="ptech-dialog-divider"></div>
|
|
4574
|
+
|
|
4575
|
+
<mat-dialog-content class="ptech-dialog-content dialog-content-custom">
|
|
4135
4576
|
<div *ngFor="let field of data.fields">
|
|
4136
4577
|
<!-- Select -->
|
|
4137
4578
|
<ng-container *ngIf="field.type === 'select'">
|
|
@@ -4150,10 +4591,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4150
4591
|
<mat-label>{{ field.label }}</mat-label>
|
|
4151
4592
|
<ptech-quantity-items
|
|
4152
4593
|
[quantity]="field.value"
|
|
4153
|
-
(quantityChange)="
|
|
4594
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4154
4595
|
></ptech-quantity-items>
|
|
4155
4596
|
</ng-container>
|
|
4156
4597
|
|
|
4598
|
+
<!-- Quantity Select -->
|
|
4599
|
+
<ng-container *ngIf="field.type === 'quantity-select'">
|
|
4600
|
+
<ptech-select-quantity-items
|
|
4601
|
+
[label]="field.label"
|
|
4602
|
+
[quantity]="field.value"
|
|
4603
|
+
[min]="field.min ?? 1"
|
|
4604
|
+
[max]="field.max ?? 12"
|
|
4605
|
+
[step]="field.step ?? 1"
|
|
4606
|
+
[placeholder]="field.placeholder || 'Selecione'"
|
|
4607
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4608
|
+
></ptech-select-quantity-items>
|
|
4609
|
+
</ng-container>
|
|
4610
|
+
|
|
4157
4611
|
<!-- Text -->
|
|
4158
4612
|
<ng-container *ngIf="field.type === 'text'">
|
|
4159
4613
|
<mat-form-field appearance="fill">
|
|
@@ -4162,6 +4616,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4162
4616
|
</mat-form-field>
|
|
4163
4617
|
</ng-container>
|
|
4164
4618
|
|
|
4619
|
+
<!-- Currency -->
|
|
4620
|
+
<ng-container *ngIf="field.type === 'currency'">
|
|
4621
|
+
<ptech-input-currency
|
|
4622
|
+
[label]="field.label"
|
|
4623
|
+
[placeholder]="field.placeholder || ''"
|
|
4624
|
+
[options]="field.currencyOptions || {}"
|
|
4625
|
+
[(ngModel)]="field.value"
|
|
4626
|
+
></ptech-input-currency>
|
|
4627
|
+
</ng-container>
|
|
4628
|
+
|
|
4165
4629
|
<!-- Checkbox -->
|
|
4166
4630
|
<ng-container *ngIf="field.type === 'checkbox'">
|
|
4167
4631
|
<mat-checkbox [(ngModel)]="field.value">{{ field.label }}</mat-checkbox>
|
|
@@ -4171,9 +4635,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4171
4635
|
<mat-card *ngIf="data.infoBox">
|
|
4172
4636
|
<pre>{{ data.infoBox }}</pre>
|
|
4173
4637
|
</mat-card>
|
|
4174
|
-
|
|
4638
|
+
</mat-dialog-content>
|
|
4175
4639
|
|
|
4176
|
-
|
|
4640
|
+
<mat-dialog-actions align="end" class="ptech-dialog-actions">
|
|
4177
4641
|
<ptech-button
|
|
4178
4642
|
class="action-btn"
|
|
4179
4643
|
type="raised"
|
|
@@ -4182,17 +4646,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4182
4646
|
color="primary"
|
|
4183
4647
|
(click)="onConfirm()"
|
|
4184
4648
|
></ptech-button>
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
type="raised"
|
|
4189
|
-
[label]="data.cancelText || 'Fechar'"
|
|
4190
|
-
icon="close"
|
|
4191
|
-
color="var(--app-status-error, #dc3545)"
|
|
4192
|
-
(click)="onCancel()"
|
|
4193
|
-
></ptech-button>
|
|
4194
|
-
</mat-dialog-actions>
|
|
4195
|
-
`, styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;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}.dialog-content-custom{padding-top:10px!important}:host ::ng-deep .mat-mdc-dialog-title{margin-bottom:0!important;padding-bottom:0!important}\n"] }]
|
|
4649
|
+
</mat-dialog-actions>
|
|
4650
|
+
</div>
|
|
4651
|
+
`, 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\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"] }]
|
|
4196
4652
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4197
4653
|
type: Inject,
|
|
4198
4654
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4232,94 +4688,122 @@ class InfoDetailDialogComponent {
|
|
|
4232
4688
|
}
|
|
4233
4689
|
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 });
|
|
4234
4690
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailDialogComponent, isStandalone: true, selector: "ptech-info-detail-dialog", ngImport: i0, template: `
|
|
4235
|
-
<
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4691
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4692
|
+
<div class="ptech-dialog-header">
|
|
4693
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4694
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4695
|
+
</div>
|
|
4696
|
+
|
|
4697
|
+
<div class="ptech-dialog-heading">
|
|
4698
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4699
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4700
|
+
</div>
|
|
4701
|
+
|
|
4702
|
+
<button
|
|
4703
|
+
mat-icon-button
|
|
4704
|
+
type="button"
|
|
4705
|
+
class="ptech-dialog-close"
|
|
4706
|
+
aria-label="Fechar"
|
|
4707
|
+
(click)="close()">
|
|
4708
|
+
<mat-icon>close</mat-icon>
|
|
4709
|
+
</button>
|
|
4710
|
+
</div>
|
|
4711
|
+
|
|
4712
|
+
<div class="ptech-dialog-divider"></div>
|
|
4713
|
+
|
|
4714
|
+
<mat-dialog-content class="ptech-dialog-content info-dialog-content">
|
|
4715
|
+
<div [innerHTML]="data.content"></div>
|
|
4716
|
+
</mat-dialog-content>
|
|
4717
|
+
|
|
4718
|
+
<mat-dialog-actions *ngIf="data.rawContent" align="end" class="ptech-dialog-actions">
|
|
4719
|
+
<a
|
|
4720
|
+
*ngIf="data.rawContent"
|
|
4721
|
+
[href]="whatsappUrl"
|
|
4722
|
+
target="_blank"
|
|
4723
|
+
class="link-reset"
|
|
4724
|
+
>
|
|
4725
|
+
<ptech-button
|
|
4726
|
+
class="action-btn"
|
|
4727
|
+
type="raised"
|
|
4728
|
+
label="WhatsApp"
|
|
4729
|
+
icon="share"
|
|
4730
|
+
color="var(--app-status-success, #00c853)"
|
|
4731
|
+
></ptech-button>
|
|
4732
|
+
</a>
|
|
4733
|
+
|
|
4248
4734
|
<ptech-button
|
|
4735
|
+
*ngIf="data.rawContent"
|
|
4249
4736
|
class="action-btn"
|
|
4250
4737
|
type="raised"
|
|
4251
|
-
label="
|
|
4252
|
-
icon="
|
|
4253
|
-
color="
|
|
4738
|
+
label="Copiar"
|
|
4739
|
+
icon="content_copy"
|
|
4740
|
+
color="primary"
|
|
4741
|
+
(click)="copyToClipboard()"
|
|
4254
4742
|
></ptech-button>
|
|
4255
|
-
</a>
|
|
4256
|
-
|
|
4257
|
-
<ptech-button
|
|
4258
|
-
*ngIf="data.rawContent"
|
|
4259
|
-
class="action-btn"
|
|
4260
|
-
type="raised"
|
|
4261
|
-
label="Copiar"
|
|
4262
|
-
icon="content_copy"
|
|
4263
|
-
color="primary"
|
|
4264
|
-
(click)="copyToClipboard()"
|
|
4265
|
-
></ptech-button>
|
|
4266
4743
|
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
label="Fechar"
|
|
4271
|
-
icon="close"
|
|
4272
|
-
color="var(--app-status-error, #dc3545)"
|
|
4273
|
-
(click)="close()"
|
|
4274
|
-
></ptech-button>
|
|
4275
|
-
</mat-dialog-actions>
|
|
4276
|
-
`, isInline: true, styles: [".info-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal;word-break:break-word;overflow-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:1.4}.action-btn{margin-top:8px;margin-left:8px}.link-reset{text-decoration:none}@media (max-width: 600px){.info-dialog-content{padding:12px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { 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"], outputs: ["buttonClick"] }] });
|
|
4744
|
+
</mat-dialog-actions>
|
|
4745
|
+
</div>
|
|
4746
|
+
`, 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\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"], 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"] }] });
|
|
4277
4747
|
}
|
|
4278
4748
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
|
|
4279
4749
|
type: Component,
|
|
4280
|
-
args: [{ selector: 'ptech-info-detail-dialog', imports: [CommonModule, CoreMaterialModule, ButtonComponent], template: `
|
|
4281
|
-
<
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4750
|
+
args: [{ selector: 'ptech-info-detail-dialog', imports: [CommonModule, CoreMaterialModule, ButtonComponent, CdkDrag, CdkDragHandle], template: `
|
|
4751
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4752
|
+
<div class="ptech-dialog-header">
|
|
4753
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4754
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4755
|
+
</div>
|
|
4756
|
+
|
|
4757
|
+
<div class="ptech-dialog-heading">
|
|
4758
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4759
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4760
|
+
</div>
|
|
4761
|
+
|
|
4762
|
+
<button
|
|
4763
|
+
mat-icon-button
|
|
4764
|
+
type="button"
|
|
4765
|
+
class="ptech-dialog-close"
|
|
4766
|
+
aria-label="Fechar"
|
|
4767
|
+
(click)="close()">
|
|
4768
|
+
<mat-icon>close</mat-icon>
|
|
4769
|
+
</button>
|
|
4770
|
+
</div>
|
|
4771
|
+
|
|
4772
|
+
<div class="ptech-dialog-divider"></div>
|
|
4773
|
+
|
|
4774
|
+
<mat-dialog-content class="ptech-dialog-content info-dialog-content">
|
|
4775
|
+
<div [innerHTML]="data.content"></div>
|
|
4776
|
+
</mat-dialog-content>
|
|
4777
|
+
|
|
4778
|
+
<mat-dialog-actions *ngIf="data.rawContent" align="end" class="ptech-dialog-actions">
|
|
4779
|
+
<a
|
|
4780
|
+
*ngIf="data.rawContent"
|
|
4781
|
+
[href]="whatsappUrl"
|
|
4782
|
+
target="_blank"
|
|
4783
|
+
class="link-reset"
|
|
4784
|
+
>
|
|
4785
|
+
<ptech-button
|
|
4786
|
+
class="action-btn"
|
|
4787
|
+
type="raised"
|
|
4788
|
+
label="WhatsApp"
|
|
4789
|
+
icon="share"
|
|
4790
|
+
color="var(--app-status-success, #00c853)"
|
|
4791
|
+
></ptech-button>
|
|
4792
|
+
</a>
|
|
4793
|
+
|
|
4294
4794
|
<ptech-button
|
|
4795
|
+
*ngIf="data.rawContent"
|
|
4295
4796
|
class="action-btn"
|
|
4296
4797
|
type="raised"
|
|
4297
|
-
label="
|
|
4298
|
-
icon="
|
|
4299
|
-
color="
|
|
4798
|
+
label="Copiar"
|
|
4799
|
+
icon="content_copy"
|
|
4800
|
+
color="primary"
|
|
4801
|
+
(click)="copyToClipboard()"
|
|
4300
4802
|
></ptech-button>
|
|
4301
|
-
</a>
|
|
4302
|
-
|
|
4303
|
-
<ptech-button
|
|
4304
|
-
*ngIf="data.rawContent"
|
|
4305
|
-
class="action-btn"
|
|
4306
|
-
type="raised"
|
|
4307
|
-
label="Copiar"
|
|
4308
|
-
icon="content_copy"
|
|
4309
|
-
color="primary"
|
|
4310
|
-
(click)="copyToClipboard()"
|
|
4311
|
-
></ptech-button>
|
|
4312
4803
|
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
label="Fechar"
|
|
4317
|
-
icon="close"
|
|
4318
|
-
color="var(--app-status-error, #dc3545)"
|
|
4319
|
-
(click)="close()"
|
|
4320
|
-
></ptech-button>
|
|
4321
|
-
</mat-dialog-actions>
|
|
4322
|
-
`, styles: [".info-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal;word-break:break-word;overflow-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:1.4}.action-btn{margin-top:8px;margin-left:8px}.link-reset{text-decoration:none}@media (max-width: 600px){.info-dialog-content{padding:12px}}\n"] }]
|
|
4804
|
+
</mat-dialog-actions>
|
|
4805
|
+
</div>
|
|
4806
|
+
`, 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\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"] }]
|
|
4323
4807
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4324
4808
|
type: Inject,
|
|
4325
4809
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4333,6 +4817,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4333
4817
|
class InfoDetailComponent {
|
|
4334
4818
|
dialog;
|
|
4335
4819
|
infoTitle = '';
|
|
4820
|
+
infoSubtitle = '';
|
|
4336
4821
|
infoContent = '';
|
|
4337
4822
|
infoRawContent = '';
|
|
4338
4823
|
iconColor = 'var(--app-link-accent, #2196f3)';
|
|
@@ -4341,15 +4826,17 @@ class InfoDetailComponent {
|
|
|
4341
4826
|
}
|
|
4342
4827
|
openInfo() {
|
|
4343
4828
|
this.dialog.open(InfoDetailDialogComponent, {
|
|
4829
|
+
panelClass: 'ptech-dialog-panel',
|
|
4344
4830
|
data: {
|
|
4345
4831
|
title: this.infoTitle,
|
|
4832
|
+
subtitle: this.infoSubtitle || undefined,
|
|
4346
4833
|
content: this.infoContent,
|
|
4347
4834
|
rawContent: this.infoRawContent,
|
|
4348
4835
|
},
|
|
4349
4836
|
});
|
|
4350
4837
|
}
|
|
4351
4838
|
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 });
|
|
4352
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailComponent, isStandalone: true, selector: "ptech-info-detail", inputs: { infoTitle: "infoTitle", infoContent: "infoContent", infoRawContent: "infoRawContent", iconColor: "iconColor" }, ngImport: i0, template: `
|
|
4839
|
+
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: `
|
|
4353
4840
|
<div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
|
|
4354
4841
|
<ptech-button
|
|
4355
4842
|
type="icon"
|
|
@@ -4376,6 +4863,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4376
4863
|
`, 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"] }]
|
|
4377
4864
|
}], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
|
|
4378
4865
|
type: Input
|
|
4866
|
+
}], infoSubtitle: [{
|
|
4867
|
+
type: Input
|
|
4379
4868
|
}], infoContent: [{
|
|
4380
4869
|
type: Input
|
|
4381
4870
|
}], infoRawContent: [{
|
|
@@ -4429,11 +4918,11 @@ class ActionResultDialogComponent {
|
|
|
4429
4918
|
window.open(this.whatsappUrl, '_blank');
|
|
4430
4919
|
}
|
|
4431
4920
|
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 });
|
|
4432
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-
|
|
4921
|
+
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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\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: i5$3.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"], 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" }] });
|
|
4433
4922
|
}
|
|
4434
4923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
|
|
4435
4924
|
type: Component,
|
|
4436
|
-
args: [{ selector: 'ptech-action-result-dialog', imports: [CommonModule, CoreMaterialModule, ButtonComponent], template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-
|
|
4925
|
+
args: [{ selector: 'ptech-action-result-dialog', imports: [CommonModule, CoreMaterialModule, ButtonComponent, CdkDrag, CdkDragHandle], 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-container,::ng-deep .cdk-global-overlay-wrapper,::ng-deep .cdk-overlay-pane{z-index:var(--ptech-overlay-z-index, 10000)!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}\n"] }]
|
|
4437
4926
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4438
4927
|
type: Inject,
|
|
4439
4928
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4541,7 +5030,7 @@ class ProfileMenuComponent {
|
|
|
4541
5030
|
|
|
4542
5031
|
<ng-content select="[extra-items]"></ng-content>
|
|
4543
5032
|
</mat-menu>
|
|
4544
|
-
`, isInline: true, styles: [".profile-menu{display:flex;align-items:center;cursor:pointer;position:relative}.profile-menu mat-icon{margin-right:8px;color:var(--ptech-profile-trigger-text, var(--ptech-header-icon-color, var(--app-text-on-accent, #fff)))}.profile-menu span{color:var(--ptech-profile-trigger-text, var(--ptech-header-icon-color, var(--app-text-on-accent, #fff)));font-weight:700;margin-right:4px}.profile-menu mat-icon:last-child{margin-right:0}.mat-divider{margin:0!important}.hide-on-mobile{display:inline}.show-on-mobile{display:none}@media (max-width: 599px){.hide-on-mobile{display:none}.show-on-mobile{display:flex}}.user-item span{font-weight:700}::ng-deep .ptech-profile-menu-panel,::ng-deep .ptech-profile-menu-panel.mat-mdc-menu-panel{background-color:var(--ptech-menu-bg, var(--app-surface, #fff))!important;color:var(--ptech-menu-text, var(--app-text, inherit))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-content{background-color:var(--ptech-menu-bg, var(--app-surface, #fff))!important;color:var(--ptech-menu-text, var(--app-text, inherit))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item .mat-icon,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item .mdc-list-item__primary-text,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item span{color:var(--ptech-menu-text, var(--app-text, inherit))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item:hover,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item.cdk-program-focused,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item.cdk-focused{background-color:var(--ptech-menu-hover, var(--app-chip-bg, rgba(0,0,0,.06)))!important}::ng-deep .ptech-profile-menu-panel .mat-divider,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item+.mat-divider{border-top-color:var(--ptech-menu-divider, var(--app-border-color, rgba(0,0,0,.12)))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item[disabled],::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item[disabled] .mat-icon,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item[disabled] span{color:var(--ptech-menu-disabled, var(--app-muted, #9ca3af))!important;opacity:1!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i5$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$
|
|
5033
|
+
`, isInline: true, styles: [".profile-menu{display:flex;align-items:center;cursor:pointer;position:relative}.profile-menu mat-icon{margin-right:8px;color:var(--ptech-profile-trigger-text, var(--ptech-header-icon-color, var(--app-text-on-accent, #fff)))}.profile-menu span{color:var(--ptech-profile-trigger-text, var(--ptech-header-icon-color, var(--app-text-on-accent, #fff)));font-weight:700;margin-right:4px}.profile-menu mat-icon:last-child{margin-right:0}.mat-divider{margin:0!important}.hide-on-mobile{display:inline}.show-on-mobile{display:none}@media (max-width: 599px){.hide-on-mobile{display:none}.show-on-mobile{display:flex}}.user-item span{font-weight:700}::ng-deep .ptech-profile-menu-panel,::ng-deep .ptech-profile-menu-panel.mat-mdc-menu-panel{background-color:var(--ptech-menu-bg, var(--app-surface, #fff))!important;color:var(--ptech-menu-text, var(--app-text, inherit))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-content{background-color:var(--ptech-menu-bg, var(--app-surface, #fff))!important;color:var(--ptech-menu-text, var(--app-text, inherit))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item .mat-icon,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item .mdc-list-item__primary-text,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item span{color:var(--ptech-menu-text, var(--app-text, inherit))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item:hover,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item.cdk-program-focused,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item.cdk-focused{background-color:var(--ptech-menu-hover, var(--app-chip-bg, rgba(0,0,0,.06)))!important}::ng-deep .ptech-profile-menu-panel .mat-divider,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item+.mat-divider{border-top-color:var(--ptech-menu-divider, var(--app-border-color, rgba(0,0,0,.12)))!important}::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item[disabled],::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item[disabled] .mat-icon,::ng-deep .ptech-profile-menu-panel .mat-mdc-menu-item[disabled] span{color:var(--ptech-menu-disabled, var(--app-muted, #9ca3af))!important;opacity:1!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i5$2.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "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: "component", type: i4$2.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { 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: "pipe", type: GetFirstStringBeforeSpacePipe, name: "getFirstStringBeforeSpace" }] });
|
|
4545
5034
|
}
|
|
4546
5035
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProfileMenuComponent, decorators: [{
|
|
4547
5036
|
type: Component,
|
|
@@ -4633,7 +5122,7 @@ class CheckBoxComponent extends BaseField {
|
|
|
4633
5122
|
{{ label }}
|
|
4634
5123
|
</mat-checkbox>
|
|
4635
5124
|
</div>
|
|
4636
|
-
`, isInline: true, styles: [":host{display:block}.ptech-checkbox-container{display:flex;flex-direction:column}.ptech-checkbox-container.full-width{width:100%}:host ::ng-deep .ptech-checkbox-container .mdc-form-field>label,:host ::ng-deep .ptech-checkbox-container .mdc-label{color:var(--ptech-checkbox-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-checkbox-container .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--app-text, rgba(0,0,0,.6)))!important;background-color:transparent!important}:host ::ng-deep .ptech-checkbox-container .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, var(--app-text-on-accent, #fff))!important}:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .ptech-checkbox-container .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}:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-disabled .mdc-form-field>label,:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-disabled .mdc-label{color:var(--ptech-checkbox-disabled, var(--app-muted, #9ca3af))!important}:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-disabled .mdc-checkbox__background{border-color:var(--ptech-checkbox-disabled, var(--app-muted, #9ca3af))!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type:
|
|
5125
|
+
`, isInline: true, styles: [":host{display:block}.ptech-checkbox-container{display:flex;flex-direction:column}.ptech-checkbox-container.full-width{width:100%}:host ::ng-deep .ptech-checkbox-container .mdc-form-field>label,:host ::ng-deep .ptech-checkbox-container .mdc-label{color:var(--ptech-checkbox-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-checkbox-container .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--app-text, rgba(0,0,0,.6)))!important;background-color:transparent!important}:host ::ng-deep .ptech-checkbox-container .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, var(--app-text-on-accent, #fff))!important}:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .ptech-checkbox-container .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}:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-disabled .mdc-form-field>label,:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-disabled .mdc-label{color:var(--ptech-checkbox-disabled, var(--app-muted, #9ca3af))!important}:host ::ng-deep .ptech-checkbox-container .mat-mdc-checkbox-disabled .mdc-checkbox__background{border-color:var(--ptech-checkbox-disabled, var(--app-muted, #9ca3af))!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4637
5126
|
}
|
|
4638
5127
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
4639
5128
|
type: Component,
|
|
@@ -5348,128 +5837,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5348
5837
|
type: Output
|
|
5349
5838
|
}] } });
|
|
5350
5839
|
|
|
5351
|
-
class InputCurrencyComponent extends BaseField {
|
|
5352
|
-
constructor(el) { super(el); }
|
|
5353
|
-
/** Config por input (parcial) */
|
|
5354
|
-
options = {};
|
|
5355
|
-
valueChange = new EventEmitter();
|
|
5356
|
-
// Defaults (BRL)
|
|
5357
|
-
defaultOptions = {
|
|
5358
|
-
align: 'right',
|
|
5359
|
-
allowNegative: false,
|
|
5360
|
-
allowZero: true,
|
|
5361
|
-
decimal: ',',
|
|
5362
|
-
precision: 2,
|
|
5363
|
-
prefix: 'R$ ',
|
|
5364
|
-
suffix: '',
|
|
5365
|
-
thousands: '.',
|
|
5366
|
-
nullable: true
|
|
5367
|
-
};
|
|
5368
|
-
get resolvedOptions() {
|
|
5369
|
-
return { ...this.defaultOptions, ...(this.options || {}) };
|
|
5370
|
-
}
|
|
5371
|
-
// ===== CVA =====
|
|
5372
|
-
_val;
|
|
5373
|
-
onChange = () => { };
|
|
5374
|
-
onTouch = () => { };
|
|
5375
|
-
get value() { return this._val; }
|
|
5376
|
-
set value(v) {
|
|
5377
|
-
if (v !== this._val) {
|
|
5378
|
-
this._val = v;
|
|
5379
|
-
this.onChange(v);
|
|
5380
|
-
this.valueChange.emit(v);
|
|
5381
|
-
}
|
|
5382
|
-
}
|
|
5383
|
-
writeValue(value) { this._val = value; }
|
|
5384
|
-
registerOnChange(fn) { this.onChange = fn; }
|
|
5385
|
-
registerOnTouched(fn) { this.onTouch = fn; }
|
|
5386
|
-
setDisabledState(isDisabled) { this.disabled = isDisabled; }
|
|
5387
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5388
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InputCurrencyComponent, isStandalone: true, selector: "ptech-input-currency", inputs: { options: "options" }, outputs: { valueChange: "valueChange" }, providers: [{
|
|
5389
|
-
provide: NG_VALUE_ACCESSOR,
|
|
5390
|
-
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
5391
|
-
multi: true
|
|
5392
|
-
}], usesInheritance: true, ngImport: i0, template: `
|
|
5393
|
-
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
5394
|
-
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
5395
|
-
<mat-label>
|
|
5396
|
-
{{ label }}
|
|
5397
|
-
<span *ngIf="required" aria-hidden="true">*</span>
|
|
5398
|
-
</mat-label>
|
|
5399
|
-
|
|
5400
|
-
<input
|
|
5401
|
-
matInput
|
|
5402
|
-
type="text"
|
|
5403
|
-
currencyMask
|
|
5404
|
-
[options]="resolvedOptions"
|
|
5405
|
-
[placeholder]="placeholder"
|
|
5406
|
-
[required]="required"
|
|
5407
|
-
[disabled]="disabled || loading"
|
|
5408
|
-
[attr.name]="name || null"
|
|
5409
|
-
[attr.aria-label]="ariaLabel || null"
|
|
5410
|
-
autocomplete="off"
|
|
5411
|
-
[(ngModel)]="value"
|
|
5412
|
-
(blur)="onTouch()"
|
|
5413
|
-
/>
|
|
5414
|
-
|
|
5415
|
-
<mat-spinner
|
|
5416
|
-
matPrefix
|
|
5417
|
-
*ngIf="loading"
|
|
5418
|
-
mode="indeterminate"
|
|
5419
|
-
diameter="17">
|
|
5420
|
-
</mat-spinner>
|
|
5421
|
-
|
|
5422
|
-
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
5423
|
-
</mat-form-field>
|
|
5424
|
-
</div>
|
|
5425
|
-
`, isInline: true, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-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-form-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-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: 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.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: NgxCurrencyDirective, selector: "input[currencyMask]", inputs: ["currencyMask", "options"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5426
|
-
}
|
|
5427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
5428
|
-
type: Component,
|
|
5429
|
-
args: [{ selector: 'ptech-input-currency', imports: [CoreMaterialModule, NgxCurrencyDirective], template: `
|
|
5430
|
-
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
5431
|
-
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
5432
|
-
<mat-label>
|
|
5433
|
-
{{ label }}
|
|
5434
|
-
<span *ngIf="required" aria-hidden="true">*</span>
|
|
5435
|
-
</mat-label>
|
|
5436
|
-
|
|
5437
|
-
<input
|
|
5438
|
-
matInput
|
|
5439
|
-
type="text"
|
|
5440
|
-
currencyMask
|
|
5441
|
-
[options]="resolvedOptions"
|
|
5442
|
-
[placeholder]="placeholder"
|
|
5443
|
-
[required]="required"
|
|
5444
|
-
[disabled]="disabled || loading"
|
|
5445
|
-
[attr.name]="name || null"
|
|
5446
|
-
[attr.aria-label]="ariaLabel || null"
|
|
5447
|
-
autocomplete="off"
|
|
5448
|
-
[(ngModel)]="value"
|
|
5449
|
-
(blur)="onTouch()"
|
|
5450
|
-
/>
|
|
5451
|
-
|
|
5452
|
-
<mat-spinner
|
|
5453
|
-
matPrefix
|
|
5454
|
-
*ngIf="loading"
|
|
5455
|
-
mode="indeterminate"
|
|
5456
|
-
diameter="17">
|
|
5457
|
-
</mat-spinner>
|
|
5458
|
-
|
|
5459
|
-
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
5460
|
-
</mat-form-field>
|
|
5461
|
-
</div>
|
|
5462
|
-
`, providers: [{
|
|
5463
|
-
provide: NG_VALUE_ACCESSOR,
|
|
5464
|
-
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
5465
|
-
multi: true
|
|
5466
|
-
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [".ptech-currency-container{display:flex;flex-direction:column;width:100%}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-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-form-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-form-field input::placeholder,:host ::ng-deep .ptech-form-field textarea::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .ptech-form-field .mdc-floating-label,:host ::ng-deep .ptech-form-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}\n"] }]
|
|
5467
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
5468
|
-
type: Input
|
|
5469
|
-
}], valueChange: [{
|
|
5470
|
-
type: Output
|
|
5471
|
-
}] } });
|
|
5472
|
-
|
|
5473
5840
|
class FlagComponent {
|
|
5474
5841
|
/** ISO 3166-1 alpha-2 (ex.: 'BR', 'ES', 'US'). */
|
|
5475
5842
|
code;
|
|
@@ -6075,7 +6442,7 @@ class TableComponent {
|
|
|
6075
6442
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
6076
6443
|
</ng-template>
|
|
6077
6444
|
</div>
|
|
6078
|
-
`, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2$4.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$4.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$4.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i2$4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$4.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$4.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$4.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$3.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: i7$1.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: 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"], outputs: ["buttonClick"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6445
|
+
`, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2$4.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$4.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$4.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i2$4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$4.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$4.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$4.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$3.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: "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"], outputs: ["buttonClick"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6079
6446
|
}
|
|
6080
6447
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
|
|
6081
6448
|
type: Component,
|
|
@@ -6483,6 +6850,7 @@ class PumpkinTechModule {
|
|
|
6483
6850
|
RadioGroupEntityComponent,
|
|
6484
6851
|
SlideToggleComponent,
|
|
6485
6852
|
QuantityItemsComponent,
|
|
6853
|
+
SelectQuantityItemsComponent,
|
|
6486
6854
|
LoadingOverlayComponent,
|
|
6487
6855
|
ProfileMenuComponent,
|
|
6488
6856
|
CheckBoxComponent,
|
|
@@ -6517,6 +6885,7 @@ class PumpkinTechModule {
|
|
|
6517
6885
|
RadioGroupEntityComponent,
|
|
6518
6886
|
SlideToggleComponent,
|
|
6519
6887
|
QuantityItemsComponent,
|
|
6888
|
+
SelectQuantityItemsComponent,
|
|
6520
6889
|
LoadingOverlayComponent,
|
|
6521
6890
|
ProfileMenuComponent,
|
|
6522
6891
|
CheckBoxComponent,
|
|
@@ -6557,6 +6926,7 @@ class PumpkinTechModule {
|
|
|
6557
6926
|
RadioGroupEntityComponent,
|
|
6558
6927
|
SlideToggleComponent,
|
|
6559
6928
|
QuantityItemsComponent,
|
|
6929
|
+
SelectQuantityItemsComponent,
|
|
6560
6930
|
LoadingOverlayComponent,
|
|
6561
6931
|
ProfileMenuComponent,
|
|
6562
6932
|
CheckBoxComponent,
|
|
@@ -6598,6 +6968,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6598
6968
|
RadioGroupEntityComponent,
|
|
6599
6969
|
SlideToggleComponent,
|
|
6600
6970
|
QuantityItemsComponent,
|
|
6971
|
+
SelectQuantityItemsComponent,
|
|
6601
6972
|
LoadingOverlayComponent,
|
|
6602
6973
|
ProfileMenuComponent,
|
|
6603
6974
|
CheckBoxComponent,
|
|
@@ -6634,6 +7005,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6634
7005
|
RadioGroupEntityComponent,
|
|
6635
7006
|
SlideToggleComponent,
|
|
6636
7007
|
QuantityItemsComponent,
|
|
7008
|
+
SelectQuantityItemsComponent,
|
|
6637
7009
|
LoadingOverlayComponent,
|
|
6638
7010
|
ProfileMenuComponent,
|
|
6639
7011
|
CheckBoxComponent,
|
|
@@ -7533,13 +7905,19 @@ class DialogService {
|
|
|
7533
7905
|
constructor(dialog) {
|
|
7534
7906
|
this.dialog = dialog;
|
|
7535
7907
|
}
|
|
7908
|
+
resolvePanelClass(panelClass) {
|
|
7909
|
+
const custom = Array.isArray(panelClass)
|
|
7910
|
+
? panelClass
|
|
7911
|
+
: (panelClass ? [panelClass] : []);
|
|
7912
|
+
return ['ptech-dialog-panel', ...custom.filter(Boolean)];
|
|
7913
|
+
}
|
|
7536
7914
|
open(model) {
|
|
7537
7915
|
const config = {
|
|
7538
7916
|
data: model.data,
|
|
7539
7917
|
width: model.width,
|
|
7540
7918
|
height: model.height,
|
|
7541
7919
|
position: model.position,
|
|
7542
|
-
panelClass: model.panelClass,
|
|
7920
|
+
panelClass: this.resolvePanelClass(model.panelClass),
|
|
7543
7921
|
autoFocus: true,
|
|
7544
7922
|
restoreFocus: false,
|
|
7545
7923
|
disableClose: model.disableClose ?? false,
|
|
@@ -7551,6 +7929,7 @@ class DialogService {
|
|
|
7551
7929
|
component: InfoDetailDialogComponent,
|
|
7552
7930
|
data: {
|
|
7553
7931
|
title: arg.title,
|
|
7932
|
+
subtitle: arg.subtitle,
|
|
7554
7933
|
content: arg.content,
|
|
7555
7934
|
rawContent: arg.rawContent,
|
|
7556
7935
|
},
|
|
@@ -8076,5 +8455,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8076
8455
|
* Generated bundle index. Do not edit.
|
|
8077
8456
|
*/
|
|
8078
8457
|
|
|
8079
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
8458
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
8080
8459
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|