@pumpkin-tech/pumpkin-tech-ng 0.2.1 → 0.2.2
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}::ng-deep .ptech-select-quantity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!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}::ng-deep .ptech-select-quantity-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!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) {
|
|
@@ -3948,6 +4058,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3948
4058
|
type: Input
|
|
3949
4059
|
}] } });
|
|
3950
4060
|
|
|
4061
|
+
const PTECH_DIALOG_SHARED_STYLES = `
|
|
4062
|
+
:host {
|
|
4063
|
+
display: block;
|
|
4064
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
.ptech-dialog-shell {
|
|
4068
|
+
display: flex;
|
|
4069
|
+
flex-direction: column;
|
|
4070
|
+
max-width: 92vw;
|
|
4071
|
+
max-height: 88vh;
|
|
4072
|
+
background: var(--ptech-dialog-bg, var(--app-surface, #fff));
|
|
4073
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4074
|
+
border-radius: 16px;
|
|
4075
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4076
|
+
overflow: hidden;
|
|
4077
|
+
}
|
|
4078
|
+
|
|
4079
|
+
.ptech-dialog-header {
|
|
4080
|
+
display: grid;
|
|
4081
|
+
grid-template-columns: 52px 1fr 52px;
|
|
4082
|
+
align-items: center;
|
|
4083
|
+
gap: 12px;
|
|
4084
|
+
padding: 14px 16px;
|
|
4085
|
+
background: var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4088
|
+
.ptech-dialog-drag {
|
|
4089
|
+
width: 42px;
|
|
4090
|
+
height: 42px;
|
|
4091
|
+
border-radius: 12px;
|
|
4092
|
+
display: inline-flex;
|
|
4093
|
+
align-items: center;
|
|
4094
|
+
justify-content: center;
|
|
4095
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4096
|
+
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
4097
|
+
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
4098
|
+
}
|
|
4099
|
+
|
|
4100
|
+
.ptech-dialog-heading h1[mat-dialog-title],
|
|
4101
|
+
.ptech-dialog-heading h2[mat-dialog-title] {
|
|
4102
|
+
margin: 0;
|
|
4103
|
+
line-height: 1.2;
|
|
4104
|
+
font-weight: 700;
|
|
4105
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4106
|
+
text-align: center;
|
|
4107
|
+
}
|
|
4108
|
+
|
|
4109
|
+
.ptech-dialog-heading {
|
|
4110
|
+
text-align: center;
|
|
4111
|
+
justify-self: center;
|
|
4112
|
+
width: 100%;
|
|
4113
|
+
}
|
|
4114
|
+
|
|
4115
|
+
.ptech-dialog-subtitle {
|
|
4116
|
+
margin: 2px 0 0;
|
|
4117
|
+
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
4118
|
+
font-size: 1rem;
|
|
4119
|
+
font-weight: 500;
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
.ptech-dialog-close {
|
|
4123
|
+
width: 42px;
|
|
4124
|
+
height: 42px;
|
|
4125
|
+
border-radius: 12px;
|
|
4126
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4127
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4128
|
+
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
4129
|
+
display: inline-flex;
|
|
4130
|
+
align-items: center;
|
|
4131
|
+
justify-content: center;
|
|
4132
|
+
padding: 0 !important;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
.ptech-dialog-close .mat-icon {
|
|
4136
|
+
margin: 0;
|
|
4137
|
+
width: 26px;
|
|
4138
|
+
height: 26px;
|
|
4139
|
+
font-size: 26px;
|
|
4140
|
+
line-height: 26px;
|
|
4141
|
+
}
|
|
4142
|
+
|
|
4143
|
+
.ptech-dialog-divider {
|
|
4144
|
+
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4145
|
+
}
|
|
4146
|
+
|
|
4147
|
+
.ptech-dialog-content {
|
|
4148
|
+
flex: 1;
|
|
4149
|
+
max-height: calc(88vh - 210px);
|
|
4150
|
+
overflow-y: auto;
|
|
4151
|
+
overflow-x: hidden;
|
|
4152
|
+
padding: 16px;
|
|
4153
|
+
box-sizing: border-box;
|
|
4154
|
+
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
4155
|
+
}
|
|
4156
|
+
|
|
4157
|
+
.ptech-dialog-content p,
|
|
4158
|
+
.ptech-dialog-content span,
|
|
4159
|
+
.ptech-dialog-content div,
|
|
4160
|
+
.ptech-dialog-content li,
|
|
4161
|
+
.ptech-dialog-content strong,
|
|
4162
|
+
.ptech-dialog-content em,
|
|
4163
|
+
.ptech-dialog-content small {
|
|
4164
|
+
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
.ptech-dialog-content::-webkit-scrollbar {
|
|
4168
|
+
width: 10px;
|
|
4169
|
+
height: 10px;
|
|
4170
|
+
}
|
|
4171
|
+
|
|
4172
|
+
.ptech-dialog-content::-webkit-scrollbar-track {
|
|
4173
|
+
background: var(--ptech-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent));
|
|
4174
|
+
border-radius: 12px;
|
|
4175
|
+
}
|
|
4176
|
+
|
|
4177
|
+
.ptech-dialog-content::-webkit-scrollbar-thumb {
|
|
4178
|
+
background: var(--ptech-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%));
|
|
4179
|
+
border-radius: 12px;
|
|
4180
|
+
border: 2px solid transparent;
|
|
4181
|
+
background-clip: padding-box;
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4184
|
+
.ptech-dialog-content {
|
|
4185
|
+
scrollbar-width: thin;
|
|
4186
|
+
scrollbar-color: var(--ptech-scroll-thumb, #60a5fa) var(--ptech-scroll-track, #1f2937);
|
|
4187
|
+
}
|
|
4188
|
+
|
|
4189
|
+
.ptech-dialog-actions {
|
|
4190
|
+
margin: 0;
|
|
4191
|
+
padding: 14px 16px 16px;
|
|
4192
|
+
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4193
|
+
background: var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));
|
|
4194
|
+
display: flex;
|
|
4195
|
+
justify-content: flex-end;
|
|
4196
|
+
gap: 8px;
|
|
4197
|
+
flex-wrap: wrap;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4200
|
+
::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface {
|
|
4201
|
+
background: transparent !important;
|
|
4202
|
+
box-shadow: none !important;
|
|
4203
|
+
color: inherit;
|
|
4204
|
+
overflow: visible;
|
|
4205
|
+
border-radius: 16px;
|
|
4206
|
+
padding: 0;
|
|
4207
|
+
}
|
|
4208
|
+
`;
|
|
4209
|
+
|
|
3951
4210
|
class ConfirmationDialogComponent {
|
|
3952
4211
|
dialogRef;
|
|
3953
4212
|
confirmation;
|
|
@@ -3964,14 +4223,33 @@ class ConfirmationDialogComponent {
|
|
|
3964
4223
|
}
|
|
3965
4224
|
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
4225
|
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
|
-
<
|
|
4226
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4227
|
+
<div class="ptech-dialog-header">
|
|
4228
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4229
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4230
|
+
</div>
|
|
4231
|
+
|
|
4232
|
+
<div class="ptech-dialog-heading">
|
|
4233
|
+
<h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
|
|
4234
|
+
</div>
|
|
4235
|
+
|
|
4236
|
+
<button
|
|
4237
|
+
mat-icon-button
|
|
4238
|
+
type="button"
|
|
4239
|
+
class="ptech-dialog-close"
|
|
4240
|
+
aria-label="Fechar"
|
|
4241
|
+
(click)="cancel()">
|
|
4242
|
+
<mat-icon>close</mat-icon>
|
|
4243
|
+
</button>
|
|
4244
|
+
</div>
|
|
3969
4245
|
|
|
3970
|
-
<div
|
|
4246
|
+
<div class="ptech-dialog-divider"></div>
|
|
4247
|
+
|
|
4248
|
+
<div mat-dialog-content class="ptech-dialog-content dialog-content">
|
|
3971
4249
|
<p>{{ confirmation.message }}</p>
|
|
3972
4250
|
</div>
|
|
3973
4251
|
|
|
3974
|
-
<div class="dialog-actions">
|
|
4252
|
+
<div class="ptech-dialog-actions">
|
|
3975
4253
|
<button mat-flat-button color="primary" (click)="confirm()">
|
|
3976
4254
|
{{ confirmation.confirmText || 'OK' }}
|
|
3977
4255
|
</button>
|
|
@@ -3980,19 +4258,38 @@ class ConfirmationDialogComponent {
|
|
|
3980
4258
|
</button>
|
|
3981
4259
|
</div>
|
|
3982
4260
|
</div>
|
|
3983
|
-
`, isInline: true, styles: [".dialog{
|
|
4261
|
+
`, 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;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
4262
|
}
|
|
3985
4263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
|
|
3986
4264
|
type: Component,
|
|
3987
|
-
args: [{ selector: 'ptech-confirmation-dialog', imports: [CommonModule, CoreMaterialModule], template: `
|
|
3988
|
-
<div class="dialog">
|
|
3989
|
-
<
|
|
4265
|
+
args: [{ selector: 'ptech-confirmation-dialog', imports: [CommonModule, CoreMaterialModule, CdkDrag, CdkDragHandle], template: `
|
|
4266
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4267
|
+
<div class="ptech-dialog-header">
|
|
4268
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4269
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4270
|
+
</div>
|
|
4271
|
+
|
|
4272
|
+
<div class="ptech-dialog-heading">
|
|
4273
|
+
<h1 mat-dialog-title class="dialog-title">{{ confirmation.title }}</h1>
|
|
4274
|
+
</div>
|
|
3990
4275
|
|
|
3991
|
-
|
|
4276
|
+
<button
|
|
4277
|
+
mat-icon-button
|
|
4278
|
+
type="button"
|
|
4279
|
+
class="ptech-dialog-close"
|
|
4280
|
+
aria-label="Fechar"
|
|
4281
|
+
(click)="cancel()">
|
|
4282
|
+
<mat-icon>close</mat-icon>
|
|
4283
|
+
</button>
|
|
4284
|
+
</div>
|
|
4285
|
+
|
|
4286
|
+
<div class="ptech-dialog-divider"></div>
|
|
4287
|
+
|
|
4288
|
+
<div mat-dialog-content class="ptech-dialog-content dialog-content">
|
|
3992
4289
|
<p>{{ confirmation.message }}</p>
|
|
3993
4290
|
</div>
|
|
3994
4291
|
|
|
3995
|
-
<div class="dialog-actions">
|
|
4292
|
+
<div class="ptech-dialog-actions">
|
|
3996
4293
|
<button mat-flat-button color="primary" (click)="confirm()">
|
|
3997
4294
|
{{ confirmation.confirmText || 'OK' }}
|
|
3998
4295
|
</button>
|
|
@@ -4001,12 +4298,276 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4001
4298
|
</button>
|
|
4002
4299
|
</div>
|
|
4003
4300
|
</div>
|
|
4004
|
-
`, styles: [".dialog{
|
|
4301
|
+
`, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
4302
|
}], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
|
|
4006
4303
|
type: Inject,
|
|
4007
4304
|
args: [MAT_DIALOG_DATA]
|
|
4008
4305
|
}] }] });
|
|
4009
4306
|
|
|
4307
|
+
class InputCurrencyComponent extends BaseField {
|
|
4308
|
+
constructor(el) { super(el); }
|
|
4309
|
+
/** Config por input (parcial) */
|
|
4310
|
+
options = {};
|
|
4311
|
+
valueChange = new EventEmitter();
|
|
4312
|
+
// Defaults (BRL)
|
|
4313
|
+
defaultOptions = {
|
|
4314
|
+
align: 'right',
|
|
4315
|
+
allowNegative: false,
|
|
4316
|
+
allowZero: true,
|
|
4317
|
+
locale: 'pt-BR',
|
|
4318
|
+
currency: 'BRL',
|
|
4319
|
+
currencyDisplay: 'symbol',
|
|
4320
|
+
useGrouping: true,
|
|
4321
|
+
decimal: undefined,
|
|
4322
|
+
precision: 2,
|
|
4323
|
+
prefix: undefined,
|
|
4324
|
+
suffix: undefined,
|
|
4325
|
+
thousands: undefined,
|
|
4326
|
+
nullable: true
|
|
4327
|
+
};
|
|
4328
|
+
get resolvedOptions() {
|
|
4329
|
+
return { ...this.defaultOptions, ...(this.options || {}) };
|
|
4330
|
+
}
|
|
4331
|
+
// ===== CVA =====
|
|
4332
|
+
_val = null;
|
|
4333
|
+
displayValue = '';
|
|
4334
|
+
onChange = () => { };
|
|
4335
|
+
onTouch = () => { };
|
|
4336
|
+
parseToNumber(value) {
|
|
4337
|
+
const nullableFallback = this.resolvedOptions.nullable === false ? 0 : null;
|
|
4338
|
+
const normalized = this.normalizeInput(value);
|
|
4339
|
+
if (!normalized)
|
|
4340
|
+
return nullableFallback;
|
|
4341
|
+
const preferred = this.parseUsingSeparators(normalized, this.getDecimalSeparator(), this.getThousandsSeparator());
|
|
4342
|
+
const parsed = Number.isFinite(preferred) ? preferred : this.parseFlexible(normalized);
|
|
4343
|
+
if (!Number.isFinite(parsed))
|
|
4344
|
+
return nullableFallback;
|
|
4345
|
+
if (!this.resolvedOptions.allowNegative && parsed < 0)
|
|
4346
|
+
return nullableFallback;
|
|
4347
|
+
if (!this.resolvedOptions.allowZero && parsed === 0)
|
|
4348
|
+
return nullableFallback;
|
|
4349
|
+
return parsed;
|
|
4350
|
+
}
|
|
4351
|
+
formatNumber(value) {
|
|
4352
|
+
if (value == null)
|
|
4353
|
+
return '';
|
|
4354
|
+
const precision = Math.max(0, this.resolvedOptions.precision ?? 2);
|
|
4355
|
+
const prefix = this.resolvedOptions.prefix;
|
|
4356
|
+
const suffix = this.resolvedOptions.suffix;
|
|
4357
|
+
if (prefix != null || suffix != null) {
|
|
4358
|
+
const decimal = this.getDecimalSeparator();
|
|
4359
|
+
const thousands = this.getThousandsSeparator();
|
|
4360
|
+
const sign = value < 0 ? '-' : '';
|
|
4361
|
+
const abs = Math.abs(value);
|
|
4362
|
+
const fixed = abs.toFixed(precision);
|
|
4363
|
+
const [intPart, decPart] = fixed.split('.');
|
|
4364
|
+
const intWithTh = this.resolvedOptions.useGrouping === false
|
|
4365
|
+
? intPart
|
|
4366
|
+
: intPart.replace(/\B(?=(\d{3})+(?!\d))/g, thousands);
|
|
4367
|
+
const decFormatted = precision > 0 ? `${decimal}${decPart}` : '';
|
|
4368
|
+
return `${sign}${prefix ?? ''}${intWithTh}${decFormatted}${suffix ?? ''}`;
|
|
4369
|
+
}
|
|
4370
|
+
return this.getIntlFormatter(precision).format(value);
|
|
4371
|
+
}
|
|
4372
|
+
onInput(raw) {
|
|
4373
|
+
this.displayValue = raw;
|
|
4374
|
+
const parsed = this.parseToNumber(raw);
|
|
4375
|
+
this._val = parsed;
|
|
4376
|
+
this.onChange(parsed);
|
|
4377
|
+
this.valueChange.emit(parsed);
|
|
4378
|
+
}
|
|
4379
|
+
onBlur() {
|
|
4380
|
+
this.displayValue = this.formatNumber(this._val);
|
|
4381
|
+
this.onTouch();
|
|
4382
|
+
}
|
|
4383
|
+
writeValue(value) {
|
|
4384
|
+
const num = value == null ? null : Number(value);
|
|
4385
|
+
this._val = Number.isFinite(num) ? num : null;
|
|
4386
|
+
this.displayValue = this.formatNumber(this._val);
|
|
4387
|
+
}
|
|
4388
|
+
registerOnChange(fn) { this.onChange = fn; }
|
|
4389
|
+
registerOnTouched(fn) { this.onTouch = fn; }
|
|
4390
|
+
setDisabledState(isDisabled) { this.disabled = isDisabled; }
|
|
4391
|
+
getLocale() {
|
|
4392
|
+
return this.resolvedOptions.locale || 'pt-BR';
|
|
4393
|
+
}
|
|
4394
|
+
getCurrency() {
|
|
4395
|
+
return this.resolvedOptions.currency || 'BRL';
|
|
4396
|
+
}
|
|
4397
|
+
getIntlFormatter(precision) {
|
|
4398
|
+
try {
|
|
4399
|
+
return new Intl.NumberFormat(this.getLocale(), {
|
|
4400
|
+
style: 'currency',
|
|
4401
|
+
currency: this.getCurrency(),
|
|
4402
|
+
currencyDisplay: this.resolvedOptions.currencyDisplay || 'symbol',
|
|
4403
|
+
minimumFractionDigits: precision,
|
|
4404
|
+
maximumFractionDigits: precision,
|
|
4405
|
+
useGrouping: this.resolvedOptions.useGrouping !== false
|
|
4406
|
+
});
|
|
4407
|
+
}
|
|
4408
|
+
catch {
|
|
4409
|
+
return new Intl.NumberFormat('pt-BR', {
|
|
4410
|
+
style: 'currency',
|
|
4411
|
+
currency: 'BRL',
|
|
4412
|
+
minimumFractionDigits: precision,
|
|
4413
|
+
maximumFractionDigits: precision,
|
|
4414
|
+
useGrouping: true
|
|
4415
|
+
});
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
detectLocaleSeparators() {
|
|
4419
|
+
try {
|
|
4420
|
+
const parts = new Intl.NumberFormat(this.getLocale(), {
|
|
4421
|
+
style: 'currency',
|
|
4422
|
+
currency: this.getCurrency(),
|
|
4423
|
+
}).formatToParts(1234567.89);
|
|
4424
|
+
const decimal = parts.find(p => p.type === 'decimal')?.value || ',';
|
|
4425
|
+
const group = parts.find(p => p.type === 'group')?.value || '.';
|
|
4426
|
+
return { decimal, thousands: group };
|
|
4427
|
+
}
|
|
4428
|
+
catch {
|
|
4429
|
+
return { decimal: ',', thousands: '.' };
|
|
4430
|
+
}
|
|
4431
|
+
}
|
|
4432
|
+
getDecimalSeparator() {
|
|
4433
|
+
return this.resolvedOptions.decimal || this.detectLocaleSeparators().decimal || ',';
|
|
4434
|
+
}
|
|
4435
|
+
getThousandsSeparator() {
|
|
4436
|
+
return this.resolvedOptions.thousands || this.detectLocaleSeparators().thousands || '.';
|
|
4437
|
+
}
|
|
4438
|
+
normalizeInput(value) {
|
|
4439
|
+
let text = String(value ?? '');
|
|
4440
|
+
const prefix = this.resolvedOptions.prefix || '';
|
|
4441
|
+
const suffix = this.resolvedOptions.suffix || '';
|
|
4442
|
+
if (prefix)
|
|
4443
|
+
text = text.split(prefix).join('');
|
|
4444
|
+
if (suffix)
|
|
4445
|
+
text = text.split(suffix).join('');
|
|
4446
|
+
return text.replace(/\s|\u00A0/g, '').trim();
|
|
4447
|
+
}
|
|
4448
|
+
parseUsingSeparators(text, decimalSep, thousandSep) {
|
|
4449
|
+
const sign = text.includes('-') ? -1 : 1;
|
|
4450
|
+
let raw = text.replace(/-/g, '');
|
|
4451
|
+
if (thousandSep && thousandSep !== decimalSep) {
|
|
4452
|
+
raw = raw.split(thousandSep).join('');
|
|
4453
|
+
}
|
|
4454
|
+
const decimalIndex = raw.lastIndexOf(decimalSep);
|
|
4455
|
+
if (decimalIndex >= 0) {
|
|
4456
|
+
const intPart = raw.slice(0, decimalIndex).replace(/[^\d]/g, '');
|
|
4457
|
+
const fracPart = raw.slice(decimalIndex + 1).replace(/[^\d]/g, '');
|
|
4458
|
+
if (!intPart && !fracPart)
|
|
4459
|
+
return Number.NaN;
|
|
4460
|
+
return sign * Number(`${intPart || '0'}.${fracPart || '0'}`);
|
|
4461
|
+
}
|
|
4462
|
+
const integerOnly = raw.replace(/[^\d]/g, '');
|
|
4463
|
+
if (!integerOnly)
|
|
4464
|
+
return Number.NaN;
|
|
4465
|
+
return sign * Number(integerOnly);
|
|
4466
|
+
}
|
|
4467
|
+
parseFlexible(text) {
|
|
4468
|
+
const sign = text.includes('-') ? -1 : 1;
|
|
4469
|
+
const raw = text.replace(/-/g, '');
|
|
4470
|
+
const lastDot = raw.lastIndexOf('.');
|
|
4471
|
+
const lastComma = raw.lastIndexOf(',');
|
|
4472
|
+
const decimalIndex = Math.max(lastDot, lastComma);
|
|
4473
|
+
if (decimalIndex >= 0) {
|
|
4474
|
+
const intPart = raw.slice(0, decimalIndex).replace(/[^\d]/g, '');
|
|
4475
|
+
const fracPart = raw.slice(decimalIndex + 1).replace(/[^\d]/g, '');
|
|
4476
|
+
if (!intPart && !fracPart)
|
|
4477
|
+
return Number.NaN;
|
|
4478
|
+
return sign * Number(`${intPart || '0'}.${fracPart || '0'}`);
|
|
4479
|
+
}
|
|
4480
|
+
const integerOnly = raw.replace(/[^\d]/g, '');
|
|
4481
|
+
if (!integerOnly)
|
|
4482
|
+
return Number.NaN;
|
|
4483
|
+
return sign * Number(integerOnly);
|
|
4484
|
+
}
|
|
4485
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4486
|
+
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: [{
|
|
4487
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4488
|
+
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
4489
|
+
multi: true
|
|
4490
|
+
}], usesInheritance: true, ngImport: i0, template: `
|
|
4491
|
+
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4492
|
+
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4493
|
+
<mat-label>
|
|
4494
|
+
{{ label }}
|
|
4495
|
+
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4496
|
+
</mat-label>
|
|
4497
|
+
|
|
4498
|
+
<input
|
|
4499
|
+
matInput
|
|
4500
|
+
type="text"
|
|
4501
|
+
[style.text-align]="resolvedOptions.align || 'right'"
|
|
4502
|
+
[placeholder]="placeholder"
|
|
4503
|
+
[required]="required"
|
|
4504
|
+
[disabled]="disabled || loading"
|
|
4505
|
+
[attr.name]="name || null"
|
|
4506
|
+
[attr.aria-label]="ariaLabel || null"
|
|
4507
|
+
autocomplete="off"
|
|
4508
|
+
[value]="displayValue"
|
|
4509
|
+
(input)="onInput(($any($event.target).value))"
|
|
4510
|
+
(blur)="onBlur()"
|
|
4511
|
+
/>
|
|
4512
|
+
|
|
4513
|
+
<mat-spinner
|
|
4514
|
+
matPrefix
|
|
4515
|
+
*ngIf="loading"
|
|
4516
|
+
mode="indeterminate"
|
|
4517
|
+
diameter="17">
|
|
4518
|
+
</mat-spinner>
|
|
4519
|
+
|
|
4520
|
+
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
4521
|
+
</mat-form-field>
|
|
4522
|
+
</div>
|
|
4523
|
+
`, 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 });
|
|
4524
|
+
}
|
|
4525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputCurrencyComponent, decorators: [{
|
|
4526
|
+
type: Component,
|
|
4527
|
+
args: [{ selector: 'ptech-input-currency', imports: [CoreMaterialModule], template: `
|
|
4528
|
+
<div class="ptech-currency-container" [class.full-width]="fullWidth">
|
|
4529
|
+
<mat-form-field class="ptech-form-field" [appearance]="appearance">
|
|
4530
|
+
<mat-label>
|
|
4531
|
+
{{ label }}
|
|
4532
|
+
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4533
|
+
</mat-label>
|
|
4534
|
+
|
|
4535
|
+
<input
|
|
4536
|
+
matInput
|
|
4537
|
+
type="text"
|
|
4538
|
+
[style.text-align]="resolvedOptions.align || 'right'"
|
|
4539
|
+
[placeholder]="placeholder"
|
|
4540
|
+
[required]="required"
|
|
4541
|
+
[disabled]="disabled || loading"
|
|
4542
|
+
[attr.name]="name || null"
|
|
4543
|
+
[attr.aria-label]="ariaLabel || null"
|
|
4544
|
+
autocomplete="off"
|
|
4545
|
+
[value]="displayValue"
|
|
4546
|
+
(input)="onInput(($any($event.target).value))"
|
|
4547
|
+
(blur)="onBlur()"
|
|
4548
|
+
/>
|
|
4549
|
+
|
|
4550
|
+
<mat-spinner
|
|
4551
|
+
matPrefix
|
|
4552
|
+
*ngIf="loading"
|
|
4553
|
+
mode="indeterminate"
|
|
4554
|
+
diameter="17">
|
|
4555
|
+
</mat-spinner>
|
|
4556
|
+
|
|
4557
|
+
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
4558
|
+
</mat-form-field>
|
|
4559
|
+
</div>
|
|
4560
|
+
`, providers: [{
|
|
4561
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4562
|
+
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
4563
|
+
multi: true
|
|
4564
|
+
}], 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"] }]
|
|
4565
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
4566
|
+
type: Input
|
|
4567
|
+
}], valueChange: [{
|
|
4568
|
+
type: Output
|
|
4569
|
+
}] } });
|
|
4570
|
+
|
|
4010
4571
|
// src/lib/services/message-token.ts
|
|
4011
4572
|
const MESSAGE_SERVICE = new InjectionToken('MESSAGE_SERVICE');
|
|
4012
4573
|
const DefaultConsoleMessageService = {
|
|
@@ -4044,8 +4605,9 @@ class ActionDialogComponent {
|
|
|
4044
4605
|
onCancel() {
|
|
4045
4606
|
this.dialogRef.close();
|
|
4046
4607
|
}
|
|
4047
|
-
|
|
4048
|
-
|
|
4608
|
+
onQuantityChange(field, value) {
|
|
4609
|
+
field.value = value;
|
|
4610
|
+
if (value !== 0)
|
|
4049
4611
|
return;
|
|
4050
4612
|
this.msg.errorMessage('Número inválido', 'Deve haver no mínimo 1 conexão.');
|
|
4051
4613
|
}
|
|
@@ -4054,9 +4616,30 @@ class ActionDialogComponent {
|
|
|
4054
4616
|
}
|
|
4055
4617
|
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
4618
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: `
|
|
4057
|
-
<
|
|
4619
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4620
|
+
<div class="ptech-dialog-header">
|
|
4621
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4622
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4623
|
+
</div>
|
|
4624
|
+
|
|
4625
|
+
<div class="ptech-dialog-heading">
|
|
4626
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4627
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4628
|
+
</div>
|
|
4058
4629
|
|
|
4059
|
-
|
|
4630
|
+
<button
|
|
4631
|
+
mat-icon-button
|
|
4632
|
+
type="button"
|
|
4633
|
+
class="ptech-dialog-close"
|
|
4634
|
+
aria-label="Fechar"
|
|
4635
|
+
(click)="onCancel()">
|
|
4636
|
+
<mat-icon>close</mat-icon>
|
|
4637
|
+
</button>
|
|
4638
|
+
</div>
|
|
4639
|
+
|
|
4640
|
+
<div class="ptech-dialog-divider"></div>
|
|
4641
|
+
|
|
4642
|
+
<mat-dialog-content class="ptech-dialog-content dialog-content-custom">
|
|
4060
4643
|
<div *ngFor="let field of data.fields">
|
|
4061
4644
|
<!-- Select -->
|
|
4062
4645
|
<ng-container *ngIf="field.type === 'select'">
|
|
@@ -4075,10 +4658,23 @@ class ActionDialogComponent {
|
|
|
4075
4658
|
<mat-label>{{ field.label }}</mat-label>
|
|
4076
4659
|
<ptech-quantity-items
|
|
4077
4660
|
[quantity]="field.value"
|
|
4078
|
-
(quantityChange)="
|
|
4661
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4079
4662
|
></ptech-quantity-items>
|
|
4080
4663
|
</ng-container>
|
|
4081
4664
|
|
|
4665
|
+
<!-- Quantity Select -->
|
|
4666
|
+
<ng-container *ngIf="field.type === 'quantity-select'">
|
|
4667
|
+
<ptech-select-quantity-items
|
|
4668
|
+
[label]="field.label"
|
|
4669
|
+
[quantity]="field.value"
|
|
4670
|
+
[min]="field.min ?? 1"
|
|
4671
|
+
[max]="field.max ?? 12"
|
|
4672
|
+
[step]="field.step ?? 1"
|
|
4673
|
+
[placeholder]="field.placeholder || 'Selecione'"
|
|
4674
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4675
|
+
></ptech-select-quantity-items>
|
|
4676
|
+
</ng-container>
|
|
4677
|
+
|
|
4082
4678
|
<!-- Text -->
|
|
4083
4679
|
<ng-container *ngIf="field.type === 'text'">
|
|
4084
4680
|
<mat-form-field appearance="fill">
|
|
@@ -4087,6 +4683,16 @@ class ActionDialogComponent {
|
|
|
4087
4683
|
</mat-form-field>
|
|
4088
4684
|
</ng-container>
|
|
4089
4685
|
|
|
4686
|
+
<!-- Currency -->
|
|
4687
|
+
<ng-container *ngIf="field.type === 'currency'">
|
|
4688
|
+
<ptech-input-currency
|
|
4689
|
+
[label]="field.label"
|
|
4690
|
+
[placeholder]="field.placeholder || ''"
|
|
4691
|
+
[options]="field.currencyOptions || {}"
|
|
4692
|
+
[(ngModel)]="field.value"
|
|
4693
|
+
></ptech-input-currency>
|
|
4694
|
+
</ng-container>
|
|
4695
|
+
|
|
4090
4696
|
<!-- Checkbox -->
|
|
4091
4697
|
<ng-container *ngIf="field.type === 'checkbox'">
|
|
4092
4698
|
<mat-checkbox [(ngModel)]="field.value">{{ field.label }}</mat-checkbox>
|
|
@@ -4096,9 +4702,9 @@ class ActionDialogComponent {
|
|
|
4096
4702
|
<mat-card *ngIf="data.infoBox">
|
|
4097
4703
|
<pre>{{ data.infoBox }}</pre>
|
|
4098
4704
|
</mat-card>
|
|
4099
|
-
|
|
4705
|
+
</mat-dialog-content>
|
|
4100
4706
|
|
|
4101
|
-
|
|
4707
|
+
<mat-dialog-actions align="end" class="ptech-dialog-actions">
|
|
4102
4708
|
<ptech-button
|
|
4103
4709
|
class="action-btn"
|
|
4104
4710
|
type="raised"
|
|
@@ -4107,17 +4713,9 @@ class ActionDialogComponent {
|
|
|
4107
4713
|
color="primary"
|
|
4108
4714
|
(click)="onConfirm()"
|
|
4109
4715
|
></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"] }] });
|
|
4716
|
+
</mat-dialog-actions>
|
|
4717
|
+
</div>
|
|
4718
|
+
`, 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;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
4719
|
}
|
|
4122
4720
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, decorators: [{
|
|
4123
4721
|
type: Component,
|
|
@@ -4128,10 +4726,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4128
4726
|
ButtonComponent,
|
|
4129
4727
|
SelectEntityComponent,
|
|
4130
4728
|
QuantityItemsComponent,
|
|
4729
|
+
SelectQuantityItemsComponent,
|
|
4730
|
+
InputCurrencyComponent,
|
|
4731
|
+
CdkDrag,
|
|
4732
|
+
CdkDragHandle,
|
|
4131
4733
|
], template: `
|
|
4132
|
-
<
|
|
4734
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4735
|
+
<div class="ptech-dialog-header">
|
|
4736
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4737
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4738
|
+
</div>
|
|
4739
|
+
|
|
4740
|
+
<div class="ptech-dialog-heading">
|
|
4741
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4742
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4743
|
+
</div>
|
|
4744
|
+
|
|
4745
|
+
<button
|
|
4746
|
+
mat-icon-button
|
|
4747
|
+
type="button"
|
|
4748
|
+
class="ptech-dialog-close"
|
|
4749
|
+
aria-label="Fechar"
|
|
4750
|
+
(click)="onCancel()">
|
|
4751
|
+
<mat-icon>close</mat-icon>
|
|
4752
|
+
</button>
|
|
4753
|
+
</div>
|
|
4133
4754
|
|
|
4134
|
-
|
|
4755
|
+
<div class="ptech-dialog-divider"></div>
|
|
4756
|
+
|
|
4757
|
+
<mat-dialog-content class="ptech-dialog-content dialog-content-custom">
|
|
4135
4758
|
<div *ngFor="let field of data.fields">
|
|
4136
4759
|
<!-- Select -->
|
|
4137
4760
|
<ng-container *ngIf="field.type === 'select'">
|
|
@@ -4150,10 +4773,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4150
4773
|
<mat-label>{{ field.label }}</mat-label>
|
|
4151
4774
|
<ptech-quantity-items
|
|
4152
4775
|
[quantity]="field.value"
|
|
4153
|
-
(quantityChange)="
|
|
4776
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4154
4777
|
></ptech-quantity-items>
|
|
4155
4778
|
</ng-container>
|
|
4156
4779
|
|
|
4780
|
+
<!-- Quantity Select -->
|
|
4781
|
+
<ng-container *ngIf="field.type === 'quantity-select'">
|
|
4782
|
+
<ptech-select-quantity-items
|
|
4783
|
+
[label]="field.label"
|
|
4784
|
+
[quantity]="field.value"
|
|
4785
|
+
[min]="field.min ?? 1"
|
|
4786
|
+
[max]="field.max ?? 12"
|
|
4787
|
+
[step]="field.step ?? 1"
|
|
4788
|
+
[placeholder]="field.placeholder || 'Selecione'"
|
|
4789
|
+
(quantityChange)="onQuantityChange(field, $event)"
|
|
4790
|
+
></ptech-select-quantity-items>
|
|
4791
|
+
</ng-container>
|
|
4792
|
+
|
|
4157
4793
|
<!-- Text -->
|
|
4158
4794
|
<ng-container *ngIf="field.type === 'text'">
|
|
4159
4795
|
<mat-form-field appearance="fill">
|
|
@@ -4162,6 +4798,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4162
4798
|
</mat-form-field>
|
|
4163
4799
|
</ng-container>
|
|
4164
4800
|
|
|
4801
|
+
<!-- Currency -->
|
|
4802
|
+
<ng-container *ngIf="field.type === 'currency'">
|
|
4803
|
+
<ptech-input-currency
|
|
4804
|
+
[label]="field.label"
|
|
4805
|
+
[placeholder]="field.placeholder || ''"
|
|
4806
|
+
[options]="field.currencyOptions || {}"
|
|
4807
|
+
[(ngModel)]="field.value"
|
|
4808
|
+
></ptech-input-currency>
|
|
4809
|
+
</ng-container>
|
|
4810
|
+
|
|
4165
4811
|
<!-- Checkbox -->
|
|
4166
4812
|
<ng-container *ngIf="field.type === 'checkbox'">
|
|
4167
4813
|
<mat-checkbox [(ngModel)]="field.value">{{ field.label }}</mat-checkbox>
|
|
@@ -4171,9 +4817,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4171
4817
|
<mat-card *ngIf="data.infoBox">
|
|
4172
4818
|
<pre>{{ data.infoBox }}</pre>
|
|
4173
4819
|
</mat-card>
|
|
4174
|
-
|
|
4820
|
+
</mat-dialog-content>
|
|
4175
4821
|
|
|
4176
|
-
|
|
4822
|
+
<mat-dialog-actions align="end" class="ptech-dialog-actions">
|
|
4177
4823
|
<ptech-button
|
|
4178
4824
|
class="action-btn"
|
|
4179
4825
|
type="raised"
|
|
@@ -4182,17 +4828,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4182
4828
|
color="primary"
|
|
4183
4829
|
(click)="onConfirm()"
|
|
4184
4830
|
></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"] }]
|
|
4831
|
+
</mat-dialog-actions>
|
|
4832
|
+
</div>
|
|
4833
|
+
`, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
4834
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4197
4835
|
type: Inject,
|
|
4198
4836
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4232,94 +4870,122 @@ class InfoDetailDialogComponent {
|
|
|
4232
4870
|
}
|
|
4233
4871
|
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
4872
|
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
|
-
|
|
4873
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4874
|
+
<div class="ptech-dialog-header">
|
|
4875
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4876
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4877
|
+
</div>
|
|
4878
|
+
|
|
4879
|
+
<div class="ptech-dialog-heading">
|
|
4880
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4881
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4882
|
+
</div>
|
|
4883
|
+
|
|
4884
|
+
<button
|
|
4885
|
+
mat-icon-button
|
|
4886
|
+
type="button"
|
|
4887
|
+
class="ptech-dialog-close"
|
|
4888
|
+
aria-label="Fechar"
|
|
4889
|
+
(click)="close()">
|
|
4890
|
+
<mat-icon>close</mat-icon>
|
|
4891
|
+
</button>
|
|
4892
|
+
</div>
|
|
4893
|
+
|
|
4894
|
+
<div class="ptech-dialog-divider"></div>
|
|
4895
|
+
|
|
4896
|
+
<mat-dialog-content class="ptech-dialog-content info-dialog-content">
|
|
4897
|
+
<div [innerHTML]="data.content"></div>
|
|
4898
|
+
</mat-dialog-content>
|
|
4899
|
+
|
|
4900
|
+
<mat-dialog-actions *ngIf="data.rawContent" align="end" class="ptech-dialog-actions">
|
|
4901
|
+
<a
|
|
4902
|
+
*ngIf="data.rawContent"
|
|
4903
|
+
[href]="whatsappUrl"
|
|
4904
|
+
target="_blank"
|
|
4905
|
+
class="link-reset"
|
|
4906
|
+
>
|
|
4907
|
+
<ptech-button
|
|
4908
|
+
class="action-btn"
|
|
4909
|
+
type="raised"
|
|
4910
|
+
label="WhatsApp"
|
|
4911
|
+
icon="share"
|
|
4912
|
+
color="var(--app-status-success, #00c853)"
|
|
4913
|
+
></ptech-button>
|
|
4914
|
+
</a>
|
|
4915
|
+
|
|
4248
4916
|
<ptech-button
|
|
4917
|
+
*ngIf="data.rawContent"
|
|
4249
4918
|
class="action-btn"
|
|
4250
4919
|
type="raised"
|
|
4251
|
-
label="
|
|
4252
|
-
icon="
|
|
4253
|
-
color="
|
|
4920
|
+
label="Copiar"
|
|
4921
|
+
icon="content_copy"
|
|
4922
|
+
color="primary"
|
|
4923
|
+
(click)="copyToClipboard()"
|
|
4254
4924
|
></ptech-button>
|
|
4255
|
-
</a>
|
|
4256
4925
|
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
type="raised"
|
|
4261
|
-
label="Copiar"
|
|
4262
|
-
icon="content_copy"
|
|
4263
|
-
color="primary"
|
|
4264
|
-
(click)="copyToClipboard()"
|
|
4265
|
-
></ptech-button>
|
|
4266
|
-
|
|
4267
|
-
<ptech-button
|
|
4268
|
-
class="action-btn"
|
|
4269
|
-
type="raised"
|
|
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"] }] });
|
|
4926
|
+
</mat-dialog-actions>
|
|
4927
|
+
</div>
|
|
4928
|
+
`, 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;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
4929
|
}
|
|
4278
4930
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
|
|
4279
4931
|
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
|
-
|
|
4932
|
+
args: [{ selector: 'ptech-info-detail-dialog', imports: [CommonModule, CoreMaterialModule, ButtonComponent, CdkDrag, CdkDragHandle], template: `
|
|
4933
|
+
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4934
|
+
<div class="ptech-dialog-header">
|
|
4935
|
+
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4936
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
4937
|
+
</div>
|
|
4938
|
+
|
|
4939
|
+
<div class="ptech-dialog-heading">
|
|
4940
|
+
<h2 mat-dialog-title>{{ data.title }}</h2>
|
|
4941
|
+
<p class="ptech-dialog-subtitle" *ngIf="data.subtitle">{{ data.subtitle }}</p>
|
|
4942
|
+
</div>
|
|
4943
|
+
|
|
4944
|
+
<button
|
|
4945
|
+
mat-icon-button
|
|
4946
|
+
type="button"
|
|
4947
|
+
class="ptech-dialog-close"
|
|
4948
|
+
aria-label="Fechar"
|
|
4949
|
+
(click)="close()">
|
|
4950
|
+
<mat-icon>close</mat-icon>
|
|
4951
|
+
</button>
|
|
4952
|
+
</div>
|
|
4953
|
+
|
|
4954
|
+
<div class="ptech-dialog-divider"></div>
|
|
4955
|
+
|
|
4956
|
+
<mat-dialog-content class="ptech-dialog-content info-dialog-content">
|
|
4957
|
+
<div [innerHTML]="data.content"></div>
|
|
4958
|
+
</mat-dialog-content>
|
|
4959
|
+
|
|
4960
|
+
<mat-dialog-actions *ngIf="data.rawContent" align="end" class="ptech-dialog-actions">
|
|
4961
|
+
<a
|
|
4962
|
+
*ngIf="data.rawContent"
|
|
4963
|
+
[href]="whatsappUrl"
|
|
4964
|
+
target="_blank"
|
|
4965
|
+
class="link-reset"
|
|
4966
|
+
>
|
|
4967
|
+
<ptech-button
|
|
4968
|
+
class="action-btn"
|
|
4969
|
+
type="raised"
|
|
4970
|
+
label="WhatsApp"
|
|
4971
|
+
icon="share"
|
|
4972
|
+
color="var(--app-status-success, #00c853)"
|
|
4973
|
+
></ptech-button>
|
|
4974
|
+
</a>
|
|
4975
|
+
|
|
4294
4976
|
<ptech-button
|
|
4977
|
+
*ngIf="data.rawContent"
|
|
4295
4978
|
class="action-btn"
|
|
4296
4979
|
type="raised"
|
|
4297
|
-
label="
|
|
4298
|
-
icon="
|
|
4299
|
-
color="
|
|
4980
|
+
label="Copiar"
|
|
4981
|
+
icon="content_copy"
|
|
4982
|
+
color="primary"
|
|
4983
|
+
(click)="copyToClipboard()"
|
|
4300
4984
|
></ptech-button>
|
|
4301
|
-
</a>
|
|
4302
4985
|
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
type="raised"
|
|
4307
|
-
label="Copiar"
|
|
4308
|
-
icon="content_copy"
|
|
4309
|
-
color="primary"
|
|
4310
|
-
(click)="copyToClipboard()"
|
|
4311
|
-
></ptech-button>
|
|
4312
|
-
|
|
4313
|
-
<ptech-button
|
|
4314
|
-
class="action-btn"
|
|
4315
|
-
type="raised"
|
|
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"] }]
|
|
4986
|
+
</mat-dialog-actions>
|
|
4987
|
+
</div>
|
|
4988
|
+
`, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
4989
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4324
4990
|
type: Inject,
|
|
4325
4991
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4333,6 +4999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4333
4999
|
class InfoDetailComponent {
|
|
4334
5000
|
dialog;
|
|
4335
5001
|
infoTitle = '';
|
|
5002
|
+
infoSubtitle = '';
|
|
4336
5003
|
infoContent = '';
|
|
4337
5004
|
infoRawContent = '';
|
|
4338
5005
|
iconColor = 'var(--app-link-accent, #2196f3)';
|
|
@@ -4341,15 +5008,17 @@ class InfoDetailComponent {
|
|
|
4341
5008
|
}
|
|
4342
5009
|
openInfo() {
|
|
4343
5010
|
this.dialog.open(InfoDetailDialogComponent, {
|
|
5011
|
+
panelClass: 'ptech-dialog-panel',
|
|
4344
5012
|
data: {
|
|
4345
5013
|
title: this.infoTitle,
|
|
5014
|
+
subtitle: this.infoSubtitle || undefined,
|
|
4346
5015
|
content: this.infoContent,
|
|
4347
5016
|
rawContent: this.infoRawContent,
|
|
4348
5017
|
},
|
|
4349
5018
|
});
|
|
4350
5019
|
}
|
|
4351
5020
|
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: `
|
|
5021
|
+
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
5022
|
<div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
|
|
4354
5023
|
<ptech-button
|
|
4355
5024
|
type="icon"
|
|
@@ -4376,6 +5045,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4376
5045
|
`, 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
5046
|
}], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
|
|
4378
5047
|
type: Input
|
|
5048
|
+
}], infoSubtitle: [{
|
|
5049
|
+
type: Input
|
|
4379
5050
|
}], infoContent: [{
|
|
4380
5051
|
type: Input
|
|
4381
5052
|
}], infoRawContent: [{
|
|
@@ -4429,11 +5100,11 @@ class ActionResultDialogComponent {
|
|
|
4429
5100
|
window.open(this.whatsappUrl, '_blank');
|
|
4430
5101
|
}
|
|
4431
5102
|
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-
|
|
5103
|
+
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;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\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
5104
|
}
|
|
4434
5105
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
|
|
4435
5106
|
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-
|
|
5107
|
+
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;max-height:88vh;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))}.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;max-height:calc(88vh - 210px);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, 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, 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{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, #60a5fa) var(--ptech-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}::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}\n"] }]
|
|
4437
5108
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4438
5109
|
type: Inject,
|
|
4439
5110
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4541,7 +5212,7 @@ class ProfileMenuComponent {
|
|
|
4541
5212
|
|
|
4542
5213
|
<ng-content select="[extra-items]"></ng-content>
|
|
4543
5214
|
</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$
|
|
5215
|
+
`, 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
5216
|
}
|
|
4546
5217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProfileMenuComponent, decorators: [{
|
|
4547
5218
|
type: Component,
|
|
@@ -4633,7 +5304,7 @@ class CheckBoxComponent extends BaseField {
|
|
|
4633
5304
|
{{ label }}
|
|
4634
5305
|
</mat-checkbox>
|
|
4635
5306
|
</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:
|
|
5307
|
+
`, 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
5308
|
}
|
|
4638
5309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CheckBoxComponent, decorators: [{
|
|
4639
5310
|
type: Component,
|
|
@@ -5348,128 +6019,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5348
6019
|
type: Output
|
|
5349
6020
|
}] } });
|
|
5350
6021
|
|
|
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
6022
|
class FlagComponent {
|
|
5474
6023
|
/** ISO 3166-1 alpha-2 (ex.: 'BR', 'ES', 'US'). */
|
|
5475
6024
|
code;
|
|
@@ -6075,7 +6624,7 @@ class TableComponent {
|
|
|
6075
6624
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
6076
6625
|
</ng-template>
|
|
6077
6626
|
</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 });
|
|
6627
|
+
`, 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
6628
|
}
|
|
6080
6629
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
|
|
6081
6630
|
type: Component,
|
|
@@ -6483,6 +7032,7 @@ class PumpkinTechModule {
|
|
|
6483
7032
|
RadioGroupEntityComponent,
|
|
6484
7033
|
SlideToggleComponent,
|
|
6485
7034
|
QuantityItemsComponent,
|
|
7035
|
+
SelectQuantityItemsComponent,
|
|
6486
7036
|
LoadingOverlayComponent,
|
|
6487
7037
|
ProfileMenuComponent,
|
|
6488
7038
|
CheckBoxComponent,
|
|
@@ -6517,6 +7067,7 @@ class PumpkinTechModule {
|
|
|
6517
7067
|
RadioGroupEntityComponent,
|
|
6518
7068
|
SlideToggleComponent,
|
|
6519
7069
|
QuantityItemsComponent,
|
|
7070
|
+
SelectQuantityItemsComponent,
|
|
6520
7071
|
LoadingOverlayComponent,
|
|
6521
7072
|
ProfileMenuComponent,
|
|
6522
7073
|
CheckBoxComponent,
|
|
@@ -6557,6 +7108,7 @@ class PumpkinTechModule {
|
|
|
6557
7108
|
RadioGroupEntityComponent,
|
|
6558
7109
|
SlideToggleComponent,
|
|
6559
7110
|
QuantityItemsComponent,
|
|
7111
|
+
SelectQuantityItemsComponent,
|
|
6560
7112
|
LoadingOverlayComponent,
|
|
6561
7113
|
ProfileMenuComponent,
|
|
6562
7114
|
CheckBoxComponent,
|
|
@@ -6598,6 +7150,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6598
7150
|
RadioGroupEntityComponent,
|
|
6599
7151
|
SlideToggleComponent,
|
|
6600
7152
|
QuantityItemsComponent,
|
|
7153
|
+
SelectQuantityItemsComponent,
|
|
6601
7154
|
LoadingOverlayComponent,
|
|
6602
7155
|
ProfileMenuComponent,
|
|
6603
7156
|
CheckBoxComponent,
|
|
@@ -6634,6 +7187,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6634
7187
|
RadioGroupEntityComponent,
|
|
6635
7188
|
SlideToggleComponent,
|
|
6636
7189
|
QuantityItemsComponent,
|
|
7190
|
+
SelectQuantityItemsComponent,
|
|
6637
7191
|
LoadingOverlayComponent,
|
|
6638
7192
|
ProfileMenuComponent,
|
|
6639
7193
|
CheckBoxComponent,
|
|
@@ -7533,13 +8087,19 @@ class DialogService {
|
|
|
7533
8087
|
constructor(dialog) {
|
|
7534
8088
|
this.dialog = dialog;
|
|
7535
8089
|
}
|
|
8090
|
+
resolvePanelClass(panelClass) {
|
|
8091
|
+
const custom = Array.isArray(panelClass)
|
|
8092
|
+
? panelClass
|
|
8093
|
+
: (panelClass ? [panelClass] : []);
|
|
8094
|
+
return ['ptech-dialog-panel', ...custom.filter(Boolean)];
|
|
8095
|
+
}
|
|
7536
8096
|
open(model) {
|
|
7537
8097
|
const config = {
|
|
7538
8098
|
data: model.data,
|
|
7539
8099
|
width: model.width,
|
|
7540
8100
|
height: model.height,
|
|
7541
8101
|
position: model.position,
|
|
7542
|
-
panelClass: model.panelClass,
|
|
8102
|
+
panelClass: this.resolvePanelClass(model.panelClass),
|
|
7543
8103
|
autoFocus: true,
|
|
7544
8104
|
restoreFocus: false,
|
|
7545
8105
|
disableClose: model.disableClose ?? false,
|
|
@@ -7551,6 +8111,7 @@ class DialogService {
|
|
|
7551
8111
|
component: InfoDetailDialogComponent,
|
|
7552
8112
|
data: {
|
|
7553
8113
|
title: arg.title,
|
|
8114
|
+
subtitle: arg.subtitle,
|
|
7554
8115
|
content: arg.content,
|
|
7555
8116
|
rawContent: arg.rawContent,
|
|
7556
8117
|
},
|
|
@@ -8076,5 +8637,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8076
8637
|
* Generated bundle index. Do not edit.
|
|
8077
8638
|
*/
|
|
8078
8639
|
|
|
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 };
|
|
8640
|
+
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
8641
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|