@pumpkin-tech/pumpkin-tech-ng 0.2.54 → 0.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { HostBinding, Input, Directive, Injectable, NgModule, Optional, Self, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, Pipe, ContentChildren, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/layout';
|
|
4
4
|
import * as i2$5 from 'rxjs';
|
|
5
|
-
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, debounceTime, distinctUntilChanged, tap, switchMap, of, isObservable, from, map } from 'rxjs';
|
|
5
|
+
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, debounceTime, distinctUntilChanged, tap, switchMap, of, isObservable, from, interval, map } from 'rxjs';
|
|
6
6
|
import { takeUntil, filter as filter$1, switchMap as switchMap$1 } from 'rxjs/operators';
|
|
7
7
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
8
8
|
import * as i2 from '@angular/forms';
|
|
@@ -1210,6 +1210,18 @@ class ButtonComponent extends BaseField {
|
|
|
1210
1210
|
get dashedTextColor() {
|
|
1211
1211
|
return this.textColor !== this.DEFAULT_TEXT_COLOR ? this.textColor : null;
|
|
1212
1212
|
}
|
|
1213
|
+
/**
|
|
1214
|
+
* `textColor`'s default (white "on-accent") is only correct for variants Material actually
|
|
1215
|
+
* fills with the theme color (raised/flat/fab/etc) - for unfilled variants (basic/stroked/
|
|
1216
|
+
* link, transparent or outlined-only background) it made the label/icon invisible (white on
|
|
1217
|
+
* white/transparent) unless every single consumer remembered to override [textColor]
|
|
1218
|
+
* manually. Same "only apply when explicitly customized" pattern as dashedTextColor above;
|
|
1219
|
+
* when not customized, returning null here lets Material's own [color]="themeColor" binding
|
|
1220
|
+
* (already correct for these variants out of the box) take over unopposed.
|
|
1221
|
+
*/
|
|
1222
|
+
get unfilledTextColor() {
|
|
1223
|
+
return this.textColor !== this.DEFAULT_TEXT_COLOR ? this.textColor : null;
|
|
1224
|
+
}
|
|
1213
1225
|
get dashedColor() {
|
|
1214
1226
|
if (!this.isThemeColor)
|
|
1215
1227
|
return this.color;
|
|
@@ -1276,7 +1288,7 @@ class ButtonComponent extends BaseField {
|
|
|
1276
1288
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1277
1289
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1278
1290
|
[style.width]="fullWidth ? '100%' : null"
|
|
1279
|
-
[style.color]="textColor"
|
|
1291
|
+
[style.color]="customBackground ? textColor : unfilledTextColor"
|
|
1280
1292
|
[style.background-color]="customBackground"
|
|
1281
1293
|
(click)="onInnerClick($event)"
|
|
1282
1294
|
>
|
|
@@ -1358,7 +1370,7 @@ class ButtonComponent extends BaseField {
|
|
|
1358
1370
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1359
1371
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1360
1372
|
[style.width]="fullWidth ? '100%' : null"
|
|
1361
|
-
[style.color]="
|
|
1373
|
+
[style.color]="unfilledTextColor"
|
|
1362
1374
|
(click)="onInnerClick($event)"
|
|
1363
1375
|
>
|
|
1364
1376
|
<!-- SLOT FIXO DO ÍCONE/SPINNER -->
|
|
@@ -1576,6 +1588,7 @@ class ButtonComponent extends BaseField {
|
|
|
1576
1588
|
*ngSwitchCase="'link'"
|
|
1577
1589
|
class="ptech-btn ptech-link"
|
|
1578
1590
|
mat-button
|
|
1591
|
+
[color]="themeColor"
|
|
1579
1592
|
[href]="(disabled || loading) ? null : link"
|
|
1580
1593
|
[target]="target"
|
|
1581
1594
|
[matTooltip]="tooltip || null"
|
|
@@ -1587,7 +1600,7 @@ class ButtonComponent extends BaseField {
|
|
|
1587
1600
|
[style.--icon-fs.px]="sizeCfg.icon"
|
|
1588
1601
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1589
1602
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1590
|
-
[style.color]="
|
|
1603
|
+
[style.color]="unfilledTextColor"
|
|
1591
1604
|
(click)="onLinkClick($event)">
|
|
1592
1605
|
<span class="btn-icon-wrapper" *ngIf="icon || loading">
|
|
1593
1606
|
<mat-icon *ngIf="!loading && icon" class="btn-icon">{{ icon }}</mat-icon>
|
|
@@ -1626,7 +1639,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1626
1639
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1627
1640
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1628
1641
|
[style.width]="fullWidth ? '100%' : null"
|
|
1629
|
-
[style.color]="textColor"
|
|
1642
|
+
[style.color]="customBackground ? textColor : unfilledTextColor"
|
|
1630
1643
|
[style.background-color]="customBackground"
|
|
1631
1644
|
(click)="onInnerClick($event)"
|
|
1632
1645
|
>
|
|
@@ -1708,7 +1721,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1708
1721
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1709
1722
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1710
1723
|
[style.width]="fullWidth ? '100%' : null"
|
|
1711
|
-
[style.color]="
|
|
1724
|
+
[style.color]="unfilledTextColor"
|
|
1712
1725
|
(click)="onInnerClick($event)"
|
|
1713
1726
|
>
|
|
1714
1727
|
<!-- SLOT FIXO DO ÍCONE/SPINNER -->
|
|
@@ -1926,6 +1939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1926
1939
|
*ngSwitchCase="'link'"
|
|
1927
1940
|
class="ptech-btn ptech-link"
|
|
1928
1941
|
mat-button
|
|
1942
|
+
[color]="themeColor"
|
|
1929
1943
|
[href]="(disabled || loading) ? null : link"
|
|
1930
1944
|
[target]="target"
|
|
1931
1945
|
[matTooltip]="tooltip || null"
|
|
@@ -1937,7 +1951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1937
1951
|
[style.--icon-fs.px]="sizeCfg.icon"
|
|
1938
1952
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1939
1953
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1940
|
-
[style.color]="
|
|
1954
|
+
[style.color]="unfilledTextColor"
|
|
1941
1955
|
(click)="onLinkClick($event)">
|
|
1942
1956
|
<span class="btn-icon-wrapper" *ngIf="icon || loading">
|
|
1943
1957
|
<mat-icon *ngIf="!loading && icon" class="btn-icon">{{ icon }}</mat-icon>
|
|
@@ -3069,8 +3083,11 @@ class BreadcrumbComponent {
|
|
|
3069
3083
|
</li>
|
|
3070
3084
|
</ul>
|
|
3071
3085
|
</div>
|
|
3086
|
+
<div class="end-content">
|
|
3087
|
+
<ng-content select="[end-content]"></ng-content>
|
|
3088
|
+
</div>
|
|
3072
3089
|
</nav>
|
|
3073
|
-
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
|
|
3090
|
+
`, isInline: true, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:max-content}.end-content{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.end-content:empty{display:none}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.ptech-breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));gap:4px;font-weight:400;display:flex;align-items:center;white-space:nowrap;flex-shrink:0}.ptech-breadcrumb-item a{color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));text-decoration:none;padding-right:4px}.ptech-breadcrumb-item a:hover{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));text-decoration:underline}.ptech-breadcrumb-item .current-page{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));font-weight:600}.ptech-breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:var(--ptech-breadcrumb-separator, var(--app-muted, #b1b1b1))}@media (max-width: 599.98px){:host{margin-bottom:var(--ptech-breadcrumb-margin-bottom-mobile, 12px)}.ptech-breadcrumb-bar{padding:var(--ptech-breadcrumb-padding-mobile, 8px 12px)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CoreMaterialModule }] });
|
|
3074
3091
|
}
|
|
3075
3092
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
3076
3093
|
type: Component,
|
|
@@ -3095,8 +3112,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3095
3112
|
</li>
|
|
3096
3113
|
</ul>
|
|
3097
3114
|
</div>
|
|
3115
|
+
<div class="end-content">
|
|
3116
|
+
<ng-content select="[end-content]"></ng-content>
|
|
3117
|
+
</div>
|
|
3098
3118
|
</nav>
|
|
3099
|
-
`, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
|
|
3119
|
+
`, styles: [":host{display:block;width:100%;box-sizing:border-box;margin-bottom:var(--ptech-breadcrumb-margin-bottom, 16px)}.ptech-breadcrumb-bar{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;padding:var(--ptech-breadcrumb-padding, 10px 16px);gap:var(--ptech-breadcrumb-gap, 10px);background-color:var(--ptech-breadcrumb-background, var(--ptech-breadcrumb-bg, var(--app-surface, #fff)));border-top:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));border-bottom:1px solid var(--ptech-breadcrumb-border-color, var(--app-border-color, transparent));overflow-x:auto;-webkit-overflow-scrolling:touch}.box{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:max-content}.end-content{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.end-content:empty{display:none}.breadcrumbs-list{display:flex;gap:10px;list-style:none;margin:0;padding:0;align-items:center;flex-wrap:nowrap}.ptech-breadcrumb-item{font-family:ProximaNova-Regular,Roboto,Nunito,Helvetica Neue,sans-serif;font-size:13px;color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));gap:4px;font-weight:400;display:flex;align-items:center;white-space:nowrap;flex-shrink:0}.ptech-breadcrumb-item a{color:var(--ptech-breadcrumb-text, var(--ptech-breadcrumb-color, var(--app-muted, #c3c3c3)));text-decoration:none;padding-right:4px}.ptech-breadcrumb-item a:hover{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));text-decoration:underline}.ptech-breadcrumb-item .current-page{color:var(--ptech-breadcrumb-text-hover, var(--app-text, #b1b1b1));font-weight:600}.ptech-breadcrumb-item .start-icon{padding-top:4px!important}.separator{margin:0 4px;color:var(--ptech-breadcrumb-separator, var(--app-muted, #b1b1b1))}@media (max-width: 599.98px){:host{margin-bottom:var(--ptech-breadcrumb-margin-bottom-mobile, 12px)}.ptech-breadcrumb-bar{padding:var(--ptech-breadcrumb-padding-mobile, 8px 12px)}}\n"] }]
|
|
3100
3120
|
}], propDecorators: { routes: [{
|
|
3101
3121
|
type: Input
|
|
3102
3122
|
}], hasStartIcon: [{
|
|
@@ -4161,303 +4181,191 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4161
4181
|
type: Input
|
|
4162
4182
|
}] } });
|
|
4163
4183
|
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4181
|
-
overflow: hidden;
|
|
4182
|
-
}
|
|
4183
|
-
|
|
4184
|
-
.ptech-dialog-header {
|
|
4185
|
-
display: grid;
|
|
4186
|
-
grid-template-columns: 52px 1fr 52px;
|
|
4187
|
-
align-items: center;
|
|
4188
|
-
gap: 12px;
|
|
4189
|
-
padding: 14px 16px;
|
|
4190
|
-
background: var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));
|
|
4191
|
-
flex: 0 0 auto;
|
|
4192
|
-
}
|
|
4193
|
-
|
|
4194
|
-
.ptech-dialog-drag {
|
|
4195
|
-
width: 42px;
|
|
4196
|
-
height: 42px;
|
|
4197
|
-
border-radius: 12px;
|
|
4198
|
-
display: inline-flex;
|
|
4199
|
-
align-items: center;
|
|
4200
|
-
justify-content: center;
|
|
4201
|
-
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4202
|
-
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
4203
|
-
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
4204
|
-
}
|
|
4205
|
-
|
|
4206
|
-
.ptech-dialog-heading h1[mat-dialog-title],
|
|
4207
|
-
.ptech-dialog-heading h2[mat-dialog-title] {
|
|
4208
|
-
margin: 0;
|
|
4209
|
-
line-height: 1.2;
|
|
4210
|
-
font-weight: 700;
|
|
4211
|
-
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4212
|
-
text-align: center;
|
|
4213
|
-
}
|
|
4214
|
-
|
|
4215
|
-
.ptech-dialog-heading {
|
|
4216
|
-
text-align: center;
|
|
4217
|
-
justify-self: center;
|
|
4218
|
-
width: 100%;
|
|
4219
|
-
}
|
|
4220
|
-
|
|
4221
|
-
.ptech-dialog-subtitle {
|
|
4222
|
-
margin: 2px 0 0;
|
|
4223
|
-
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
4224
|
-
font-size: 1rem;
|
|
4225
|
-
font-weight: 500;
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
.ptech-dialog-close {
|
|
4229
|
-
width: 42px;
|
|
4230
|
-
height: 42px;
|
|
4231
|
-
border-radius: 12px;
|
|
4232
|
-
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4233
|
-
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4234
|
-
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
4235
|
-
display: inline-flex;
|
|
4236
|
-
align-items: center;
|
|
4237
|
-
justify-content: center;
|
|
4238
|
-
padding: 0 !important;
|
|
4239
|
-
}
|
|
4240
|
-
|
|
4241
|
-
.ptech-dialog-close .mat-icon {
|
|
4242
|
-
margin: 0;
|
|
4243
|
-
width: 26px;
|
|
4244
|
-
height: 26px;
|
|
4245
|
-
font-size: 26px;
|
|
4246
|
-
line-height: 26px;
|
|
4247
|
-
}
|
|
4248
|
-
|
|
4249
|
-
.ptech-dialog-divider {
|
|
4250
|
-
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4251
|
-
}
|
|
4252
|
-
|
|
4253
|
-
.ptech-dialog-content {
|
|
4254
|
-
flex: 1 1 auto;
|
|
4255
|
-
min-height: 0;
|
|
4256
|
-
max-height: none;
|
|
4257
|
-
overflow-y: auto;
|
|
4258
|
-
overflow-x: hidden;
|
|
4259
|
-
padding: 16px;
|
|
4260
|
-
box-sizing: border-box;
|
|
4261
|
-
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
|
-
.ptech-dialog-content p,
|
|
4265
|
-
.ptech-dialog-content span,
|
|
4266
|
-
.ptech-dialog-content div,
|
|
4267
|
-
.ptech-dialog-content li,
|
|
4268
|
-
.ptech-dialog-content strong,
|
|
4269
|
-
.ptech-dialog-content em,
|
|
4270
|
-
.ptech-dialog-content small {
|
|
4271
|
-
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
4272
|
-
}
|
|
4273
|
-
|
|
4274
|
-
.ptech-dialog-content::-webkit-scrollbar {
|
|
4275
|
-
width: 10px;
|
|
4276
|
-
height: 10px;
|
|
4277
|
-
}
|
|
4278
|
-
|
|
4279
|
-
.ptech-dialog-content::-webkit-scrollbar-track {
|
|
4280
|
-
background: var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));
|
|
4281
|
-
border-radius: 12px;
|
|
4282
|
-
}
|
|
4283
|
-
|
|
4284
|
-
.ptech-dialog-content::-webkit-scrollbar-thumb {
|
|
4285
|
-
background: var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));
|
|
4286
|
-
border-radius: 12px;
|
|
4287
|
-
border: 2px solid transparent;
|
|
4288
|
-
background-clip: padding-box;
|
|
4289
|
-
}
|
|
4290
|
-
|
|
4291
|
-
.ptech-dialog-content::-webkit-scrollbar-thumb:hover {
|
|
4292
|
-
background: var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)));
|
|
4293
|
-
}
|
|
4294
|
-
|
|
4295
|
-
.ptech-dialog-content {
|
|
4296
|
-
scrollbar-width: thin;
|
|
4297
|
-
scrollbar-color: var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937));
|
|
4298
|
-
}
|
|
4299
|
-
|
|
4300
|
-
.ptech-dialog-actions {
|
|
4301
|
-
margin: 0;
|
|
4302
|
-
padding: 14px 16px 16px;
|
|
4303
|
-
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4304
|
-
background: var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));
|
|
4305
|
-
display: flex;
|
|
4306
|
-
justify-content: flex-end;
|
|
4307
|
-
gap: 8px;
|
|
4308
|
-
flex-wrap: wrap;
|
|
4309
|
-
flex: 0 0 auto;
|
|
4310
|
-
}
|
|
4311
|
-
|
|
4312
|
-
::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface {
|
|
4313
|
-
background: transparent !important;
|
|
4314
|
-
box-shadow: none !important;
|
|
4315
|
-
color: inherit;
|
|
4316
|
-
overflow: visible;
|
|
4317
|
-
border-radius: 16px;
|
|
4318
|
-
padding: 0;
|
|
4319
|
-
max-height: none !important;
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4322
|
-
.ptech-dialog-content.mat-mdc-dialog-content {
|
|
4323
|
-
max-height: none !important;
|
|
4324
|
-
margin: 0;
|
|
4325
|
-
}
|
|
4326
|
-
|
|
4327
|
-
::ng-deep .cdk-overlay-pane.ptech-dialog-panel {
|
|
4328
|
-
display: flex !important;
|
|
4329
|
-
align-items: center !important;
|
|
4330
|
-
justify-content: center !important;
|
|
4331
|
-
max-width: 96vw !important;
|
|
4332
|
-
max-height: 96dvh !important;
|
|
4333
|
-
margin: 0 auto !important;
|
|
4334
|
-
z-index: var(--ptech-overlay-z-index, 10000) !important;
|
|
4335
|
-
}
|
|
4336
|
-
|
|
4337
|
-
::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel) {
|
|
4338
|
-
z-index: calc(var(--ptech-overlay-z-index, 10000) + 1) !important;
|
|
4339
|
-
}
|
|
4340
|
-
|
|
4341
|
-
::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,
|
|
4342
|
-
::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,
|
|
4343
|
-
::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,
|
|
4344
|
-
::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel {
|
|
4345
|
-
opacity: 1 !important;
|
|
4346
|
-
visibility: visible !important;
|
|
4347
|
-
pointer-events: auto !important;
|
|
4348
|
-
}
|
|
4349
|
-
|
|
4350
|
-
::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel {
|
|
4351
|
-
z-index: var(--ptech-tooltip-z-index, 11000) !important;
|
|
4352
|
-
}
|
|
4353
|
-
|
|
4354
|
-
@media (max-width: 700px) {
|
|
4355
|
-
.ptech-dialog-shell {
|
|
4356
|
-
max-width: 94vw !important;
|
|
4357
|
-
max-height: calc(100dvh - 18px) !important;
|
|
4358
|
-
margin: 0 auto !important;
|
|
4359
|
-
}
|
|
4360
|
-
|
|
4361
|
-
::ng-deep .cdk-overlay-pane.ptech-dialog-panel {
|
|
4362
|
-
max-width: 96vw !important;
|
|
4363
|
-
max-height: calc(100dvh - 8px) !important;
|
|
4364
|
-
padding: 0 !important;
|
|
4365
|
-
}
|
|
4366
|
-
}
|
|
4367
|
-
`;
|
|
4368
|
-
|
|
4369
|
-
class ConfirmationDialogComponent {
|
|
4370
|
-
dialogRef;
|
|
4371
|
-
confirmation;
|
|
4372
|
-
constructor(dialogRef, confirmation) {
|
|
4373
|
-
this.dialogRef = dialogRef;
|
|
4374
|
-
this.confirmation = confirmation;
|
|
4375
|
-
}
|
|
4376
|
-
confirm() {
|
|
4377
|
-
this.confirmation.accept();
|
|
4378
|
-
this.dialogRef.close(true);
|
|
4379
|
-
}
|
|
4380
|
-
cancel() {
|
|
4381
|
-
this.dialogRef.close(false);
|
|
4382
|
-
}
|
|
4383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
4384
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
|
|
4385
|
-
<div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
|
|
4184
|
+
class DialogShellComponent {
|
|
4185
|
+
title = '';
|
|
4186
|
+
subtitle;
|
|
4187
|
+
draggable = true;
|
|
4188
|
+
showDrag = true;
|
|
4189
|
+
showClose = true;
|
|
4190
|
+
dragRootElement = '.cdk-overlay-pane';
|
|
4191
|
+
close = new EventEmitter();
|
|
4192
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4193
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DialogShellComponent, isStandalone: true, selector: "ptech-dialog-shell", inputs: { title: "title", subtitle: "subtitle", draggable: "draggable", showDrag: "showDrag", showClose: "showClose", dragRootElement: "dragRootElement" }, outputs: { close: "close" }, ngImport: i0, template: `
|
|
4194
|
+
<div
|
|
4195
|
+
class="ptech-dialog-shell"
|
|
4196
|
+
cdkDrag
|
|
4197
|
+
[cdkDragDisabled]="!draggable"
|
|
4198
|
+
[cdkDragRootElement]="dragRootElement"
|
|
4199
|
+
>
|
|
4386
4200
|
<div class="ptech-dialog-header">
|
|
4387
|
-
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4201
|
+
<div class="ptech-dialog-drag" *ngIf="showDrag" cdkDragHandle aria-hidden="true">
|
|
4388
4202
|
<mat-icon>drag_indicator</mat-icon>
|
|
4389
4203
|
</div>
|
|
4204
|
+
<div class="ptech-dialog-drag ptech-dialog-drag--spacer" *ngIf="!showDrag" aria-hidden="true"></div>
|
|
4390
4205
|
|
|
4391
4206
|
<div class="ptech-dialog-heading">
|
|
4392
|
-
<
|
|
4207
|
+
<h2 mat-dialog-title>{{ title }}</h2>
|
|
4208
|
+
<p class="ptech-dialog-subtitle" *ngIf="subtitle">{{ subtitle }}</p>
|
|
4393
4209
|
</div>
|
|
4394
4210
|
|
|
4395
4211
|
<button
|
|
4396
|
-
|
|
4212
|
+
*ngIf="showClose"
|
|
4397
4213
|
type="button"
|
|
4398
4214
|
class="ptech-dialog-close"
|
|
4399
4215
|
aria-label="Fechar"
|
|
4400
|
-
(click)="
|
|
4216
|
+
(click)="close.emit()"
|
|
4217
|
+
>
|
|
4401
4218
|
<mat-icon>close</mat-icon>
|
|
4402
4219
|
</button>
|
|
4220
|
+
<div *ngIf="!showClose" class="ptech-dialog-drag ptech-dialog-drag--spacer" aria-hidden="true"></div>
|
|
4403
4221
|
</div>
|
|
4404
4222
|
|
|
4405
4223
|
<div class="ptech-dialog-divider"></div>
|
|
4406
4224
|
|
|
4407
|
-
<div
|
|
4408
|
-
<
|
|
4409
|
-
</div>
|
|
4410
|
-
|
|
4411
|
-
<div class="ptech-dialog-actions">
|
|
4412
|
-
<button mat-flat-button color="primary" (click)="confirm()">
|
|
4413
|
-
{{ confirmation.confirmText || 'OK' }}
|
|
4414
|
-
</button>
|
|
4415
|
-
<button mat-flat-button color="warn" (click)="cancel()">
|
|
4416
|
-
{{ confirmation.cancelText || 'Cancelar' }}
|
|
4417
|
-
</button>
|
|
4225
|
+
<div class="ptech-dialog-content">
|
|
4226
|
+
<ng-content></ng-content>
|
|
4418
4227
|
</div>
|
|
4419
4228
|
</div>
|
|
4420
|
-
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content
|
|
4229
|
+
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}\n", ".ptech-dialog-drag--spacer{border-color:transparent!important;background:transparent!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
4421
4230
|
}
|
|
4422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type:
|
|
4231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogShellComponent, decorators: [{
|
|
4423
4232
|
type: Component,
|
|
4424
|
-
args: [{ selector: 'ptech-
|
|
4425
|
-
<div
|
|
4233
|
+
args: [{ selector: 'ptech-dialog-shell', standalone: true, imports: [NgIf, CdkDrag, CdkDragHandle, MatIconModule], template: `
|
|
4234
|
+
<div
|
|
4235
|
+
class="ptech-dialog-shell"
|
|
4236
|
+
cdkDrag
|
|
4237
|
+
[cdkDragDisabled]="!draggable"
|
|
4238
|
+
[cdkDragRootElement]="dragRootElement"
|
|
4239
|
+
>
|
|
4426
4240
|
<div class="ptech-dialog-header">
|
|
4427
|
-
<div class="ptech-dialog-drag" cdkDragHandle aria-hidden="true">
|
|
4241
|
+
<div class="ptech-dialog-drag" *ngIf="showDrag" cdkDragHandle aria-hidden="true">
|
|
4428
4242
|
<mat-icon>drag_indicator</mat-icon>
|
|
4429
4243
|
</div>
|
|
4244
|
+
<div class="ptech-dialog-drag ptech-dialog-drag--spacer" *ngIf="!showDrag" aria-hidden="true"></div>
|
|
4430
4245
|
|
|
4431
4246
|
<div class="ptech-dialog-heading">
|
|
4432
|
-
<
|
|
4247
|
+
<h2 mat-dialog-title>{{ title }}</h2>
|
|
4248
|
+
<p class="ptech-dialog-subtitle" *ngIf="subtitle">{{ subtitle }}</p>
|
|
4433
4249
|
</div>
|
|
4434
4250
|
|
|
4435
4251
|
<button
|
|
4436
|
-
|
|
4252
|
+
*ngIf="showClose"
|
|
4437
4253
|
type="button"
|
|
4438
4254
|
class="ptech-dialog-close"
|
|
4439
4255
|
aria-label="Fechar"
|
|
4440
|
-
(click)="
|
|
4256
|
+
(click)="close.emit()"
|
|
4257
|
+
>
|
|
4441
4258
|
<mat-icon>close</mat-icon>
|
|
4442
4259
|
</button>
|
|
4260
|
+
<div *ngIf="!showClose" class="ptech-dialog-drag ptech-dialog-drag--spacer" aria-hidden="true"></div>
|
|
4443
4261
|
</div>
|
|
4444
4262
|
|
|
4445
4263
|
<div class="ptech-dialog-divider"></div>
|
|
4446
4264
|
|
|
4447
|
-
<div
|
|
4448
|
-
<
|
|
4265
|
+
<div class="ptech-dialog-content">
|
|
4266
|
+
<ng-content></ng-content>
|
|
4449
4267
|
</div>
|
|
4268
|
+
</div>
|
|
4269
|
+
`, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}\n", ".ptech-dialog-drag--spacer{border-color:transparent!important;background:transparent!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n"] }]
|
|
4270
|
+
}], propDecorators: { title: [{
|
|
4271
|
+
type: Input
|
|
4272
|
+
}], subtitle: [{
|
|
4273
|
+
type: Input
|
|
4274
|
+
}], draggable: [{
|
|
4275
|
+
type: Input
|
|
4276
|
+
}], showDrag: [{
|
|
4277
|
+
type: Input
|
|
4278
|
+
}], showClose: [{
|
|
4279
|
+
type: Input
|
|
4280
|
+
}], dragRootElement: [{
|
|
4281
|
+
type: Input
|
|
4282
|
+
}], close: [{
|
|
4283
|
+
type: Output
|
|
4284
|
+
}] } });
|
|
4450
4285
|
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4286
|
+
/**
|
|
4287
|
+
* Confirmation dialog built on the same ptech-dialog-shell/ptech-button chrome every other
|
|
4288
|
+
* dialog uses - it used to hand-roll its own header/footer markup (duplicating dialog-shell's
|
|
4289
|
+
* structure), which is exactly the per-dialog CSS this component now avoids by delegating the
|
|
4290
|
+
* shell entirely.
|
|
4291
|
+
*/
|
|
4292
|
+
class PtechConfirmationDialogComponent {
|
|
4293
|
+
dialogRef;
|
|
4294
|
+
data;
|
|
4295
|
+
constructor(dialogRef, data) {
|
|
4296
|
+
this.dialogRef = dialogRef;
|
|
4297
|
+
this.data = data;
|
|
4298
|
+
}
|
|
4299
|
+
get confirmColor() {
|
|
4300
|
+
return this.data.variant === 'danger' ? 'warn'
|
|
4301
|
+
: this.data.variant === 'warning' ? 'accent'
|
|
4302
|
+
: 'primary';
|
|
4303
|
+
}
|
|
4304
|
+
get confirmIcon() {
|
|
4305
|
+
return this.data.variant === 'danger' ? 'delete'
|
|
4306
|
+
: this.data.variant === 'warning' ? 'warning'
|
|
4307
|
+
: 'check';
|
|
4308
|
+
}
|
|
4309
|
+
confirm() {
|
|
4310
|
+
this.dialogRef.close(true);
|
|
4311
|
+
}
|
|
4312
|
+
cancel() {
|
|
4313
|
+
this.dialogRef.close(false);
|
|
4314
|
+
}
|
|
4315
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationDialogComponent, deps: [{ token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
4316
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
|
|
4317
|
+
<ptech-dialog-shell
|
|
4318
|
+
[title]="data.title"
|
|
4319
|
+
[showClose]="data.disableClose !== true"
|
|
4320
|
+
(close)="cancel()"
|
|
4321
|
+
>
|
|
4322
|
+
<p class="ptech-confirmation-message">{{ data.message }}</p>
|
|
4323
|
+
|
|
4324
|
+
<div class="ptech-confirmation-actions">
|
|
4325
|
+
<ptech-button
|
|
4326
|
+
[label]="data.cancelText || 'Cancelar'"
|
|
4327
|
+
type="stroked"
|
|
4328
|
+
color="primary"
|
|
4329
|
+
(buttonClick)="cancel()"
|
|
4330
|
+
></ptech-button>
|
|
4331
|
+
<ptech-button
|
|
4332
|
+
[label]="data.confirmText || 'Confirmar'"
|
|
4333
|
+
[icon]="confirmIcon"
|
|
4334
|
+
[color]="confirmColor"
|
|
4335
|
+
type="raised"
|
|
4336
|
+
(buttonClick)="confirm()"
|
|
4337
|
+
></ptech-button>
|
|
4458
4338
|
</div>
|
|
4459
|
-
</
|
|
4460
|
-
`, styles: ["
|
|
4339
|
+
</ptech-dialog-shell>
|
|
4340
|
+
`, isInline: true, styles: [".ptech-confirmation-message{margin:0;font-size:15px;line-height:1.5;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-confirmation-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DialogShellComponent, selector: "ptech-dialog-shell", inputs: ["title", "subtitle", "draggable", "showDrag", "showClose", "dragRootElement"], outputs: ["close"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }] });
|
|
4341
|
+
}
|
|
4342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationDialogComponent, decorators: [{
|
|
4343
|
+
type: Component,
|
|
4344
|
+
args: [{ selector: 'ptech-confirmation-dialog', imports: [CommonModule, DialogShellComponent, ButtonComponent], template: `
|
|
4345
|
+
<ptech-dialog-shell
|
|
4346
|
+
[title]="data.title"
|
|
4347
|
+
[showClose]="data.disableClose !== true"
|
|
4348
|
+
(close)="cancel()"
|
|
4349
|
+
>
|
|
4350
|
+
<p class="ptech-confirmation-message">{{ data.message }}</p>
|
|
4351
|
+
|
|
4352
|
+
<div class="ptech-confirmation-actions">
|
|
4353
|
+
<ptech-button
|
|
4354
|
+
[label]="data.cancelText || 'Cancelar'"
|
|
4355
|
+
type="stroked"
|
|
4356
|
+
color="primary"
|
|
4357
|
+
(buttonClick)="cancel()"
|
|
4358
|
+
></ptech-button>
|
|
4359
|
+
<ptech-button
|
|
4360
|
+
[label]="data.confirmText || 'Confirmar'"
|
|
4361
|
+
[icon]="confirmIcon"
|
|
4362
|
+
[color]="confirmColor"
|
|
4363
|
+
type="raised"
|
|
4364
|
+
(buttonClick)="confirm()"
|
|
4365
|
+
></ptech-button>
|
|
4366
|
+
</div>
|
|
4367
|
+
</ptech-dialog-shell>
|
|
4368
|
+
`, styles: [".ptech-confirmation-message{margin:0;font-size:15px;line-height:1.5;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-confirmation-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}\n"] }]
|
|
4461
4369
|
}], ctorParameters: () => [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
|
|
4462
4370
|
type: Inject,
|
|
4463
4371
|
args: [MAT_DIALOG_DATA]
|
|
@@ -4710,56 +4618,264 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
4710
4618
|
<span *ngIf="required" aria-hidden="true">*</span>
|
|
4711
4619
|
</mat-label>
|
|
4712
4620
|
|
|
4713
|
-
<input
|
|
4714
|
-
matInput
|
|
4715
|
-
type="text"
|
|
4716
|
-
[style.text-align]="resolvedOptions.align || 'right'"
|
|
4717
|
-
[placeholder]="placeholder"
|
|
4718
|
-
[required]="required"
|
|
4719
|
-
[disabled]="disabled || loading"
|
|
4720
|
-
[attr.name]="name || null"
|
|
4721
|
-
[attr.aria-label]="ariaLabel || null"
|
|
4722
|
-
autocomplete="off"
|
|
4723
|
-
[value]="displayValue"
|
|
4724
|
-
(input)="onInput(($any($event.target).value))"
|
|
4725
|
-
(blur)="onBlur()"
|
|
4726
|
-
/>
|
|
4621
|
+
<input
|
|
4622
|
+
matInput
|
|
4623
|
+
type="text"
|
|
4624
|
+
[style.text-align]="resolvedOptions.align || 'right'"
|
|
4625
|
+
[placeholder]="placeholder"
|
|
4626
|
+
[required]="required"
|
|
4627
|
+
[disabled]="disabled || loading"
|
|
4628
|
+
[attr.name]="name || null"
|
|
4629
|
+
[attr.aria-label]="ariaLabel || null"
|
|
4630
|
+
autocomplete="off"
|
|
4631
|
+
[value]="displayValue"
|
|
4632
|
+
(input)="onInput(($any($event.target).value))"
|
|
4633
|
+
(blur)="onBlur()"
|
|
4634
|
+
/>
|
|
4635
|
+
|
|
4636
|
+
<mat-spinner
|
|
4637
|
+
matPrefix
|
|
4638
|
+
*ngIf="loading"
|
|
4639
|
+
mode="indeterminate"
|
|
4640
|
+
diameter="17">
|
|
4641
|
+
</mat-spinner>
|
|
4642
|
+
|
|
4643
|
+
<ng-content select="mat-hint, [mat-hint], mat-error, [mat-error]"></ng-content>
|
|
4644
|
+
</mat-form-field>
|
|
4645
|
+
</div>
|
|
4646
|
+
`, providers: [{
|
|
4647
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4648
|
+
useExisting: forwardRef(() => InputCurrencyComponent),
|
|
4649
|
+
multi: true
|
|
4650
|
+
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.ptech-currency-container{display:flex;flex-direction:column;width:100%;box-sizing:border-box;min-width:0}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px)}:host ::ng-deep .ptech-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}: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}:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-floating-label{color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important;-webkit-text-fill-color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-notched-outline__trailing{border-color:var(--ptech-field-disabled, var(--app-border-color, rgba(0,0,0,.24)))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .ptech-form-field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}\n"] }]
|
|
4651
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
4652
|
+
type: Input
|
|
4653
|
+
}], valueChange: [{
|
|
4654
|
+
type: Output
|
|
4655
|
+
}] } });
|
|
4656
|
+
|
|
4657
|
+
// src/lib/services/message-token.ts
|
|
4658
|
+
const MESSAGE_SERVICE = new InjectionToken('MESSAGE_SERVICE');
|
|
4659
|
+
const DefaultConsoleMessageService = {
|
|
4660
|
+
successMessage: (title, message) => {
|
|
4661
|
+
console.log(`[Success] ${title}: ${message}`);
|
|
4662
|
+
},
|
|
4663
|
+
errorMessage: (title, message) => {
|
|
4664
|
+
console.error(`[Error] ${title}: ${message}`);
|
|
4665
|
+
},
|
|
4666
|
+
warnMessage: (title, message) => {
|
|
4667
|
+
console.warn(`[Warn] ${title}: ${message}`);
|
|
4668
|
+
},
|
|
4669
|
+
infoMessage: (title, message) => {
|
|
4670
|
+
console.info(`[Info] ${title}: ${message}`);
|
|
4671
|
+
},
|
|
4672
|
+
};
|
|
4673
|
+
const DefaultMessageService = DefaultConsoleMessageService;
|
|
4674
|
+
|
|
4675
|
+
const PTECH_DIALOG_SHARED_STYLES = `
|
|
4676
|
+
:host {
|
|
4677
|
+
display: block;
|
|
4678
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4679
|
+
}
|
|
4680
|
+
|
|
4681
|
+
.ptech-dialog-shell {
|
|
4682
|
+
display: flex;
|
|
4683
|
+
flex-direction: column;
|
|
4684
|
+
max-width: 92vw;
|
|
4685
|
+
width: 100%;
|
|
4686
|
+
max-height: 88vh;
|
|
4687
|
+
min-height: 0;
|
|
4688
|
+
background: var(--ptech-dialog-bg, var(--app-surface, #fff));
|
|
4689
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4690
|
+
border-radius: 16px;
|
|
4691
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4692
|
+
overflow: hidden;
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4695
|
+
.ptech-dialog-header {
|
|
4696
|
+
display: grid;
|
|
4697
|
+
grid-template-columns: 52px 1fr 52px;
|
|
4698
|
+
align-items: center;
|
|
4699
|
+
gap: 12px;
|
|
4700
|
+
padding: 14px 16px;
|
|
4701
|
+
background: var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));
|
|
4702
|
+
flex: 0 0 auto;
|
|
4703
|
+
}
|
|
4704
|
+
|
|
4705
|
+
.ptech-dialog-drag {
|
|
4706
|
+
width: 42px;
|
|
4707
|
+
height: 42px;
|
|
4708
|
+
border-radius: 12px;
|
|
4709
|
+
display: inline-flex;
|
|
4710
|
+
align-items: center;
|
|
4711
|
+
justify-content: center;
|
|
4712
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4713
|
+
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
4714
|
+
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
4715
|
+
}
|
|
4716
|
+
|
|
4717
|
+
.ptech-dialog-heading h1[mat-dialog-title],
|
|
4718
|
+
.ptech-dialog-heading h2[mat-dialog-title] {
|
|
4719
|
+
margin: 0;
|
|
4720
|
+
line-height: 1.2;
|
|
4721
|
+
font-weight: 700;
|
|
4722
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4723
|
+
text-align: center;
|
|
4724
|
+
}
|
|
4725
|
+
|
|
4726
|
+
.ptech-dialog-heading {
|
|
4727
|
+
text-align: center;
|
|
4728
|
+
justify-self: center;
|
|
4729
|
+
width: 100%;
|
|
4730
|
+
}
|
|
4731
|
+
|
|
4732
|
+
.ptech-dialog-subtitle {
|
|
4733
|
+
margin: 2px 0 0;
|
|
4734
|
+
color: var(--ptech-dialog-muted, var(--app-muted, #94a3b8));
|
|
4735
|
+
font-size: 1rem;
|
|
4736
|
+
font-weight: 500;
|
|
4737
|
+
}
|
|
4738
|
+
|
|
4739
|
+
.ptech-dialog-close {
|
|
4740
|
+
width: 42px;
|
|
4741
|
+
height: 42px;
|
|
4742
|
+
border-radius: 12px;
|
|
4743
|
+
border: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4744
|
+
color: var(--ptech-dialog-text, var(--app-text, inherit));
|
|
4745
|
+
background: color-mix(in srgb, var(--app-surface, #fff) 92%, transparent);
|
|
4746
|
+
display: inline-flex;
|
|
4747
|
+
align-items: center;
|
|
4748
|
+
justify-content: center;
|
|
4749
|
+
padding: 0 !important;
|
|
4750
|
+
}
|
|
4751
|
+
|
|
4752
|
+
.ptech-dialog-close .mat-icon {
|
|
4753
|
+
margin: 0;
|
|
4754
|
+
width: 26px;
|
|
4755
|
+
height: 26px;
|
|
4756
|
+
font-size: 26px;
|
|
4757
|
+
line-height: 26px;
|
|
4758
|
+
}
|
|
4759
|
+
|
|
4760
|
+
.ptech-dialog-divider {
|
|
4761
|
+
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4762
|
+
}
|
|
4763
|
+
|
|
4764
|
+
.ptech-dialog-content {
|
|
4765
|
+
flex: 1 1 auto;
|
|
4766
|
+
min-height: 0;
|
|
4767
|
+
max-height: none;
|
|
4768
|
+
overflow-y: auto;
|
|
4769
|
+
overflow-x: hidden;
|
|
4770
|
+
padding: 16px;
|
|
4771
|
+
box-sizing: border-box;
|
|
4772
|
+
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
4773
|
+
}
|
|
4774
|
+
|
|
4775
|
+
.ptech-dialog-content p,
|
|
4776
|
+
.ptech-dialog-content span,
|
|
4777
|
+
.ptech-dialog-content div,
|
|
4778
|
+
.ptech-dialog-content li,
|
|
4779
|
+
.ptech-dialog-content strong,
|
|
4780
|
+
.ptech-dialog-content em,
|
|
4781
|
+
.ptech-dialog-content small {
|
|
4782
|
+
color: var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)));
|
|
4783
|
+
}
|
|
4784
|
+
|
|
4785
|
+
.ptech-dialog-content::-webkit-scrollbar {
|
|
4786
|
+
width: 10px;
|
|
4787
|
+
height: 10px;
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
.ptech-dialog-content::-webkit-scrollbar-track {
|
|
4791
|
+
background: var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));
|
|
4792
|
+
border-radius: 12px;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
.ptech-dialog-content::-webkit-scrollbar-thumb {
|
|
4796
|
+
background: var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));
|
|
4797
|
+
border-radius: 12px;
|
|
4798
|
+
border: 2px solid transparent;
|
|
4799
|
+
background-clip: padding-box;
|
|
4800
|
+
}
|
|
4801
|
+
|
|
4802
|
+
.ptech-dialog-content::-webkit-scrollbar-thumb:hover {
|
|
4803
|
+
background: var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)));
|
|
4804
|
+
}
|
|
4805
|
+
|
|
4806
|
+
.ptech-dialog-content {
|
|
4807
|
+
scrollbar-width: thin;
|
|
4808
|
+
scrollbar-color: var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937));
|
|
4809
|
+
}
|
|
4810
|
+
|
|
4811
|
+
.ptech-dialog-actions {
|
|
4812
|
+
margin: 0;
|
|
4813
|
+
padding: 14px 16px 16px;
|
|
4814
|
+
border-top: 1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, 0.12)));
|
|
4815
|
+
background: var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));
|
|
4816
|
+
display: flex;
|
|
4817
|
+
justify-content: flex-end;
|
|
4818
|
+
gap: 8px;
|
|
4819
|
+
flex-wrap: wrap;
|
|
4820
|
+
flex: 0 0 auto;
|
|
4821
|
+
}
|
|
4822
|
+
|
|
4823
|
+
::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface {
|
|
4824
|
+
background: transparent !important;
|
|
4825
|
+
box-shadow: none !important;
|
|
4826
|
+
color: inherit;
|
|
4827
|
+
overflow: visible;
|
|
4828
|
+
border-radius: 16px;
|
|
4829
|
+
padding: 0;
|
|
4830
|
+
max-height: none !important;
|
|
4831
|
+
}
|
|
4832
|
+
|
|
4833
|
+
.ptech-dialog-content.mat-mdc-dialog-content {
|
|
4834
|
+
max-height: none !important;
|
|
4835
|
+
margin: 0;
|
|
4836
|
+
}
|
|
4837
|
+
|
|
4838
|
+
::ng-deep .cdk-overlay-pane.ptech-dialog-panel {
|
|
4839
|
+
display: flex !important;
|
|
4840
|
+
align-items: center !important;
|
|
4841
|
+
justify-content: center !important;
|
|
4842
|
+
max-width: 96vw !important;
|
|
4843
|
+
max-height: 96dvh !important;
|
|
4844
|
+
margin: 0 auto !important;
|
|
4845
|
+
z-index: var(--ptech-overlay-z-index, 10000) !important;
|
|
4846
|
+
}
|
|
4847
|
+
|
|
4848
|
+
::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel) {
|
|
4849
|
+
z-index: calc(var(--ptech-overlay-z-index, 10000) + 1) !important;
|
|
4850
|
+
}
|
|
4851
|
+
|
|
4852
|
+
::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,
|
|
4853
|
+
::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,
|
|
4854
|
+
::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,
|
|
4855
|
+
::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel {
|
|
4856
|
+
opacity: 1 !important;
|
|
4857
|
+
visibility: visible !important;
|
|
4858
|
+
pointer-events: auto !important;
|
|
4859
|
+
}
|
|
4727
4860
|
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
mode="indeterminate"
|
|
4732
|
-
diameter="17">
|
|
4733
|
-
</mat-spinner>
|
|
4861
|
+
::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel {
|
|
4862
|
+
z-index: var(--ptech-tooltip-z-index, 11000) !important;
|
|
4863
|
+
}
|
|
4734
4864
|
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
multi: true
|
|
4742
|
-
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.ptech-currency-container{display:flex;flex-direction:column;width:100%;box-sizing:border-box;min-width:0}.ptech-form-field{width:100%}:host ::ng-deep .ptech-form-field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px)}:host ::ng-deep .ptech-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}: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}:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-floating-label{color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important;-webkit-text-fill-color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field.mat-form-field-disabled .mdc-notched-outline__trailing{border-color:var(--ptech-field-disabled, var(--app-border-color, rgba(0,0,0,.24)))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .ptech-form-field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .ptech-form-field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .ptech-form-field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .ptech-form-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}\n"] }]
|
|
4743
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { options: [{
|
|
4744
|
-
type: Input
|
|
4745
|
-
}], valueChange: [{
|
|
4746
|
-
type: Output
|
|
4747
|
-
}] } });
|
|
4865
|
+
@media (max-width: 700px) {
|
|
4866
|
+
.ptech-dialog-shell {
|
|
4867
|
+
max-width: 94vw !important;
|
|
4868
|
+
max-height: calc(100dvh - 18px) !important;
|
|
4869
|
+
margin: 0 auto !important;
|
|
4870
|
+
}
|
|
4748
4871
|
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
console.error(`[Error] ${title}: ${message}`);
|
|
4757
|
-
},
|
|
4758
|
-
warnMessage: (title, message) => {
|
|
4759
|
-
console.warn(`[Warn] ${title}: ${message}`);
|
|
4760
|
-
},
|
|
4761
|
-
};
|
|
4762
|
-
const DefaultMessageService = DefaultConsoleMessageService;
|
|
4872
|
+
::ng-deep .cdk-overlay-pane.ptech-dialog-panel {
|
|
4873
|
+
max-width: 96vw !important;
|
|
4874
|
+
max-height: calc(100dvh - 8px) !important;
|
|
4875
|
+
padding: 0 !important;
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
`;
|
|
4763
4879
|
|
|
4764
4880
|
class ActionDialogComponent {
|
|
4765
4881
|
data;
|
|
@@ -5330,11 +5446,11 @@ class AlertComponent {
|
|
|
5330
5446
|
});
|
|
5331
5447
|
}
|
|
5332
5448
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$4.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5333
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AlertComponent, isStandalone: true, selector: "ptech-alert", ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--ptech-alert-bg, var(--app-surface, #fff));border-radius:3px;padding:30px;border-left:5px solid var(--ptech-alert-border, var(--app-border-color, #ddd));box-shadow:var(--ptech-alert-shadow, 0 2px 7px rgba(0, 0, 0, .27));max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:var(--ptech-alert-close, var(--app-muted, #aaa));border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:var(--ptech-alert-title, var(--app-text, #606267));font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:var(--ptech-alert-text, var(--app-muted, #9ea0a9));font-weight:400}.success{border-left-color:var(--ptech-alert-success, var(--app-status-success, #7fcb78))}.error{border-left-color:var(--ptech-alert-error, var(--app-status-error, #f25158))}.warn{border-left-color:var(--ptech-alert-warn, var(--app-status-warning, #f0c943))}.info{border-left-color:var(--ptech-alert-info, var(--app-link-accent, #2c80d2))}
|
|
5449
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AlertComponent, isStandalone: true, selector: "ptech-alert", ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--ptech-alert-bg, var(--app-surface, #fff));border-radius:3px;padding:30px;border-left:5px solid var(--ptech-alert-border, var(--app-border-color, #ddd));box-shadow:var(--ptech-alert-shadow, 0 2px 7px rgba(0, 0, 0, .27));max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:var(--ptech-alert-close, var(--app-muted, #aaa));border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:var(--ptech-alert-title, var(--app-text, #606267));font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:var(--ptech-alert-text, var(--app-muted, #9ea0a9));font-weight:400}.success{border-left-color:var(--ptech-alert-success, var(--app-status-success, #7fcb78))}.error{border-left-color:var(--ptech-alert-error, var(--app-status-error, #f25158))}.warn{border-left-color:var(--ptech-alert-warn, var(--app-status-warning, #f0c943))}.info{border-left-color:var(--ptech-alert-info, var(--app-link-accent, #2c80d2))}::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar{z-index:var(--ptech-snackbar-z-index, 12000)!important}::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar .mdc-snackbar__surface{background:transparent!important;box-shadow:none!important;padding:0!important;min-height:unset!important;min-width:unset!important;border-radius:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5334
5450
|
}
|
|
5335
5451
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, decorators: [{
|
|
5336
5452
|
type: Component,
|
|
5337
|
-
args: [{ selector: 'ptech-alert', imports: [CommonModule, MatIconModule, MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--ptech-alert-bg, var(--app-surface, #fff));border-radius:3px;padding:30px;border-left:5px solid var(--ptech-alert-border, var(--app-border-color, #ddd));box-shadow:var(--ptech-alert-shadow, 0 2px 7px rgba(0, 0, 0, .27));max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:var(--ptech-alert-close, var(--app-muted, #aaa));border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:var(--ptech-alert-title, var(--app-text, #606267));font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:var(--ptech-alert-text, var(--app-muted, #9ea0a9));font-weight:400}.success{border-left-color:var(--ptech-alert-success, var(--app-status-success, #7fcb78))}.error{border-left-color:var(--ptech-alert-error, var(--app-status-error, #f25158))}.warn{border-left-color:var(--ptech-alert-warn, var(--app-status-warning, #f0c943))}.info{border-left-color:var(--ptech-alert-info, var(--app-link-accent, #2c80d2))}
|
|
5453
|
+
args: [{ selector: 'ptech-alert', imports: [CommonModule, MatIconModule, MatButtonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--ptech-alert-bg, var(--app-surface, #fff));border-radius:3px;padding:30px;border-left:5px solid var(--ptech-alert-border, var(--app-border-color, #ddd));box-shadow:var(--ptech-alert-shadow, 0 2px 7px rgba(0, 0, 0, .27));max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:var(--ptech-alert-close, var(--app-muted, #aaa));border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:var(--ptech-alert-title, var(--app-text, #606267));font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:var(--ptech-alert-text, var(--app-muted, #9ea0a9));font-weight:400}.success{border-left-color:var(--ptech-alert-success, var(--app-status-success, #7fcb78))}.error{border-left-color:var(--ptech-alert-error, var(--app-status-error, #f25158))}.warn{border-left-color:var(--ptech-alert-warn, var(--app-status-warning, #f0c943))}.info{border-left-color:var(--ptech-alert-info, var(--app-link-accent, #2c80d2))}::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar{z-index:var(--ptech-snackbar-z-index, 12000)!important}::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar .mdc-snackbar__surface{background:transparent!important;box-shadow:none!important;padding:0!important;min-height:unset!important;min-width:unset!important;border-radius:0!important}\n"] }]
|
|
5338
5454
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5339
5455
|
type: Inject,
|
|
5340
5456
|
args: [MAT_SNACK_BAR_DATA]
|
|
@@ -8093,108 +8209,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8093
8209
|
type: Output
|
|
8094
8210
|
}] } });
|
|
8095
8211
|
|
|
8096
|
-
class DialogShellComponent {
|
|
8097
|
-
title = '';
|
|
8098
|
-
subtitle;
|
|
8099
|
-
draggable = true;
|
|
8100
|
-
showDrag = true;
|
|
8101
|
-
showClose = true;
|
|
8102
|
-
dragRootElement = '.cdk-overlay-pane';
|
|
8103
|
-
close = new EventEmitter();
|
|
8104
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8105
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DialogShellComponent, isStandalone: true, selector: "ptech-dialog-shell", inputs: { title: "title", subtitle: "subtitle", draggable: "draggable", showDrag: "showDrag", showClose: "showClose", dragRootElement: "dragRootElement" }, outputs: { close: "close" }, ngImport: i0, template: `
|
|
8106
|
-
<div
|
|
8107
|
-
class="ptech-dialog-shell"
|
|
8108
|
-
cdkDrag
|
|
8109
|
-
[cdkDragDisabled]="!draggable"
|
|
8110
|
-
[cdkDragRootElement]="dragRootElement"
|
|
8111
|
-
>
|
|
8112
|
-
<div class="ptech-dialog-header">
|
|
8113
|
-
<div class="ptech-dialog-drag" *ngIf="showDrag" cdkDragHandle aria-hidden="true">
|
|
8114
|
-
<mat-icon>drag_indicator</mat-icon>
|
|
8115
|
-
</div>
|
|
8116
|
-
<div class="ptech-dialog-drag ptech-dialog-drag--spacer" *ngIf="!showDrag" aria-hidden="true"></div>
|
|
8117
|
-
|
|
8118
|
-
<div class="ptech-dialog-heading">
|
|
8119
|
-
<h2 mat-dialog-title>{{ title }}</h2>
|
|
8120
|
-
<p class="ptech-dialog-subtitle" *ngIf="subtitle">{{ subtitle }}</p>
|
|
8121
|
-
</div>
|
|
8122
|
-
|
|
8123
|
-
<button
|
|
8124
|
-
*ngIf="showClose"
|
|
8125
|
-
type="button"
|
|
8126
|
-
class="ptech-dialog-close"
|
|
8127
|
-
aria-label="Fechar"
|
|
8128
|
-
(click)="close.emit()"
|
|
8129
|
-
>
|
|
8130
|
-
<mat-icon>close</mat-icon>
|
|
8131
|
-
</button>
|
|
8132
|
-
<div *ngIf="!showClose" class="ptech-dialog-drag ptech-dialog-drag--spacer" aria-hidden="true"></div>
|
|
8133
|
-
</div>
|
|
8134
|
-
|
|
8135
|
-
<div class="ptech-dialog-divider"></div>
|
|
8136
|
-
|
|
8137
|
-
<div class="ptech-dialog-content">
|
|
8138
|
-
<ng-content></ng-content>
|
|
8139
|
-
</div>
|
|
8140
|
-
</div>
|
|
8141
|
-
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}\n", ".ptech-dialog-drag--spacer{border-color:transparent!important;background:transparent!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
8142
|
-
}
|
|
8143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogShellComponent, decorators: [{
|
|
8144
|
-
type: Component,
|
|
8145
|
-
args: [{ selector: 'ptech-dialog-shell', standalone: true, imports: [NgIf, CdkDrag, CdkDragHandle, MatIconModule], template: `
|
|
8146
|
-
<div
|
|
8147
|
-
class="ptech-dialog-shell"
|
|
8148
|
-
cdkDrag
|
|
8149
|
-
[cdkDragDisabled]="!draggable"
|
|
8150
|
-
[cdkDragRootElement]="dragRootElement"
|
|
8151
|
-
>
|
|
8152
|
-
<div class="ptech-dialog-header">
|
|
8153
|
-
<div class="ptech-dialog-drag" *ngIf="showDrag" cdkDragHandle aria-hidden="true">
|
|
8154
|
-
<mat-icon>drag_indicator</mat-icon>
|
|
8155
|
-
</div>
|
|
8156
|
-
<div class="ptech-dialog-drag ptech-dialog-drag--spacer" *ngIf="!showDrag" aria-hidden="true"></div>
|
|
8157
|
-
|
|
8158
|
-
<div class="ptech-dialog-heading">
|
|
8159
|
-
<h2 mat-dialog-title>{{ title }}</h2>
|
|
8160
|
-
<p class="ptech-dialog-subtitle" *ngIf="subtitle">{{ subtitle }}</p>
|
|
8161
|
-
</div>
|
|
8162
|
-
|
|
8163
|
-
<button
|
|
8164
|
-
*ngIf="showClose"
|
|
8165
|
-
type="button"
|
|
8166
|
-
class="ptech-dialog-close"
|
|
8167
|
-
aria-label="Fechar"
|
|
8168
|
-
(click)="close.emit()"
|
|
8169
|
-
>
|
|
8170
|
-
<mat-icon>close</mat-icon>
|
|
8171
|
-
</button>
|
|
8172
|
-
<div *ngIf="!showClose" class="ptech-dialog-drag ptech-dialog-drag--spacer" aria-hidden="true"></div>
|
|
8173
|
-
</div>
|
|
8174
|
-
|
|
8175
|
-
<div class="ptech-dialog-divider"></div>
|
|
8176
|
-
|
|
8177
|
-
<div class="ptech-dialog-content">
|
|
8178
|
-
<ng-content></ng-content>
|
|
8179
|
-
</div>
|
|
8180
|
-
</div>
|
|
8181
|
-
`, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}\n", ".ptech-dialog-drag--spacer{border-color:transparent!important;background:transparent!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n"] }]
|
|
8182
|
-
}], propDecorators: { title: [{
|
|
8183
|
-
type: Input
|
|
8184
|
-
}], subtitle: [{
|
|
8185
|
-
type: Input
|
|
8186
|
-
}], draggable: [{
|
|
8187
|
-
type: Input
|
|
8188
|
-
}], showDrag: [{
|
|
8189
|
-
type: Input
|
|
8190
|
-
}], showClose: [{
|
|
8191
|
-
type: Input
|
|
8192
|
-
}], dragRootElement: [{
|
|
8193
|
-
type: Input
|
|
8194
|
-
}], close: [{
|
|
8195
|
-
type: Output
|
|
8196
|
-
}] } });
|
|
8197
|
-
|
|
8198
8212
|
class CardComponent {
|
|
8199
8213
|
title = '';
|
|
8200
8214
|
subtitle = '';
|
|
@@ -8404,7 +8418,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8404
8418
|
}] } });
|
|
8405
8419
|
|
|
8406
8420
|
class PtechAutocompleteComponent extends BaseField {
|
|
8407
|
-
|
|
8421
|
+
cdr;
|
|
8422
|
+
constructor(el, cdr) {
|
|
8423
|
+
super(el);
|
|
8424
|
+
this.cdr = cdr;
|
|
8425
|
+
}
|
|
8408
8426
|
searchInput;
|
|
8409
8427
|
optionTemplate;
|
|
8410
8428
|
multiple = false;
|
|
@@ -8432,6 +8450,9 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8432
8450
|
subscription = this.search$.pipe(debounceTime(this.debounce), distinctUntilChanged(), tap(term => this.search.emit(term)), switchMap(term => this.resolveOptions(term))).subscribe(options => {
|
|
8433
8451
|
this.filteredOptions = options || [];
|
|
8434
8452
|
this.setLoading(false);
|
|
8453
|
+
// This resolves asynchronously (debounceTime + switchMap), outside the zone task that
|
|
8454
|
+
// originated the keystroke - OnPush won't pick up the new filteredOptions on its own here.
|
|
8455
|
+
this.cdr.markForCheck();
|
|
8435
8456
|
});
|
|
8436
8457
|
ngOnChanges(changes) {
|
|
8437
8458
|
if (changes['entities']) {
|
|
@@ -8538,7 +8559,11 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8538
8559
|
this.loadingChange.emit(loading);
|
|
8539
8560
|
}
|
|
8540
8561
|
normalize(value) {
|
|
8541
|
-
|
|
8562
|
+
// getDisplay(item) is fed by whatever a consumer's displayWith/propertyFn/property
|
|
8563
|
+
// resolves to for an item of generic type T - if that returns a non-string (e.g. a
|
|
8564
|
+
// consumer's displayWith accidentally returns the entity itself), String.prototype.normalize
|
|
8565
|
+
// must not be assumed to exist on it. Coerce defensively instead of trusting the type.
|
|
8566
|
+
return String(value ?? '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
|
|
8542
8567
|
}
|
|
8543
8568
|
escapeHtml(value) {
|
|
8544
8569
|
return value.replace(/[&<>"']/g, char => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[char] || char));
|
|
@@ -8546,7 +8571,7 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8546
8571
|
escapeRegExp(value) {
|
|
8547
8572
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
8548
8573
|
}
|
|
8549
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8550
8575
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechAutocompleteComponent, isStandalone: true, selector: "ptech-autocomplete", inputs: { multiple: "multiple", clearable: "clearable", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", displayWith: "displayWith", idProperty: "idProperty", minLength: "minLength", debounce: "debounce", emptyText: "emptyText", loadingText: "loadingText", clearLabel: "clearLabel", datasource: "datasource", entities: "entities" }, outputs: { search: "search", selectionChange: "selectionChange", loadingChange: "loadingChange" }, providers: [{
|
|
8551
8576
|
provide: NG_VALUE_ACCESSOR,
|
|
8552
8577
|
useExisting: forwardRef(() => PtechAutocompleteComponent),
|
|
@@ -8678,7 +8703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8678
8703
|
useExisting: forwardRef(() => PtechAutocompleteComponent),
|
|
8679
8704
|
multi: true,
|
|
8680
8705
|
}], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.ptech-autocomplete-field{width:100%}.state-text{margin-left:8px}.selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.selected-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--app-border-color, rgba(0,0,0,.14));background:var(--app-chip-bg, rgba(0,0,0,.05));color:var(--app-text, inherit);border-radius:999px;padding:4px 8px;cursor:pointer}.selected-chip:disabled{opacity:.6;cursor:default}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}:host ::ng-deep .ptech-autocomplete-field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px)}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit))}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-input-element,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field__input{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field input::placeholder,:host ::ng-deep .ptech-autocomplete-field .mat-mdc-input-element::placeholder,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field__input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-floating-label,:host ::ng-deep .ptech-autocomplete-field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field{--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5))}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-focus, var(--app-text, #3f51b5))!important}:host ::ng-deep .ptech-autocomplete-field button[mat-icon-button][matSuffix] mat-icon{color:var(--ptech-field-icon, var(--app-text, inherit))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-floating-label{color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important;-webkit-text-fill-color:var(--ptech-field-disabled, var(--app-muted, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-disabled .mdc-notched-outline__trailing{border-color:var(--ptech-field-disabled, var(--app-border-color, rgba(0,0,0,.24)))!important}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .ptech-autocomplete-field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .ptech-autocomplete-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}::ng-deep .ptech-autocomplete-panel.mat-mdc-autocomplete-panel,::ng-deep .cdk-overlay-pane .ptech-autocomplete-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))!important;box-shadow:0 12px 30px #00000059!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-autocomplete-panel .mat-mdc-option.mat-mdc-option-active:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}::ng-deep .ptech-autocomplete-panel .mat-mdc-option.mdc-list-item--disabled{color:var(--app-muted, rgba(0,0,0,.38))!important}\n"] }]
|
|
8681
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { searchInput: [{
|
|
8706
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { searchInput: [{
|
|
8682
8707
|
type: ViewChild,
|
|
8683
8708
|
args: ['searchInput']
|
|
8684
8709
|
}], optionTemplate: [{
|
|
@@ -9934,6 +9959,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9934
9959
|
type: Output
|
|
9935
9960
|
}] } });
|
|
9936
9961
|
|
|
9962
|
+
/**
|
|
9963
|
+
* Renders a local clock for a given IANA zone id - purely presentational, no business rule.
|
|
9964
|
+
* It does not know what a "user" or a "preference" is: the consuming app is responsible for
|
|
9965
|
+
* resolving zoneId (from wherever its own domain keeps it) and passing it in as a plain input.
|
|
9966
|
+
* Ticks its own internal timer (1s if seconds are shown, 30s otherwise) so it works standalone
|
|
9967
|
+
* with zero external services - OnPush requires an explicit markForCheck() on each tick since
|
|
9968
|
+
* the update originates outside any zone-triggered template event.
|
|
9969
|
+
*/
|
|
9970
|
+
class PtechTimezoneClockComponent {
|
|
9971
|
+
cdr;
|
|
9972
|
+
zoneId = null;
|
|
9973
|
+
compact = false;
|
|
9974
|
+
showTimezone = true;
|
|
9975
|
+
showSeconds = false;
|
|
9976
|
+
time = '';
|
|
9977
|
+
tickSubscription;
|
|
9978
|
+
constructor(cdr) {
|
|
9979
|
+
this.cdr = cdr;
|
|
9980
|
+
}
|
|
9981
|
+
ngOnInit() {
|
|
9982
|
+
this.startTicking();
|
|
9983
|
+
}
|
|
9984
|
+
ngOnChanges(changes) {
|
|
9985
|
+
if (changes['zoneId'] || changes['showSeconds']) {
|
|
9986
|
+
this.tick();
|
|
9987
|
+
if (changes['showSeconds'] && !changes['showSeconds'].firstChange) {
|
|
9988
|
+
this.startTicking();
|
|
9989
|
+
}
|
|
9990
|
+
}
|
|
9991
|
+
}
|
|
9992
|
+
ngOnDestroy() {
|
|
9993
|
+
this.tickSubscription?.unsubscribe();
|
|
9994
|
+
}
|
|
9995
|
+
startTicking() {
|
|
9996
|
+
this.tickSubscription?.unsubscribe();
|
|
9997
|
+
this.tick();
|
|
9998
|
+
this.tickSubscription = interval(this.showSeconds ? 1000 : 30000).subscribe(() => this.tick());
|
|
9999
|
+
}
|
|
10000
|
+
tick() {
|
|
10001
|
+
if (!this.zoneId) {
|
|
10002
|
+
this.time = '';
|
|
10003
|
+
this.cdr.markForCheck();
|
|
10004
|
+
return;
|
|
10005
|
+
}
|
|
10006
|
+
try {
|
|
10007
|
+
this.time = new Intl.DateTimeFormat('pt-BR', {
|
|
10008
|
+
timeZone: this.zoneId,
|
|
10009
|
+
hour: '2-digit',
|
|
10010
|
+
minute: '2-digit',
|
|
10011
|
+
second: this.showSeconds ? '2-digit' : undefined,
|
|
10012
|
+
}).format(new Date());
|
|
10013
|
+
}
|
|
10014
|
+
catch {
|
|
10015
|
+
this.time = '';
|
|
10016
|
+
}
|
|
10017
|
+
this.cdr.markForCheck();
|
|
10018
|
+
}
|
|
10019
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTimezoneClockComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10020
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTimezoneClockComponent, isStandalone: true, selector: "ptech-timezone-clock", inputs: { zoneId: "zoneId", compact: "compact", showTimezone: "showTimezone", showSeconds: "showSeconds" }, usesOnChanges: true, ngImport: i0, template: `
|
|
10021
|
+
<span
|
|
10022
|
+
class="ptech-timezone-clock"
|
|
10023
|
+
[class.compact]="compact"
|
|
10024
|
+
*ngIf="zoneId"
|
|
10025
|
+
[title]="showTimezone ? zoneId : ''"
|
|
10026
|
+
>
|
|
10027
|
+
<span class="ptech-timezone-clock-time">{{ time }}</span>
|
|
10028
|
+
<span class="ptech-timezone-clock-zone" *ngIf="showTimezone"> — {{ zoneId }}</span>
|
|
10029
|
+
</span>
|
|
10030
|
+
`, isInline: true, styles: [".ptech-timezone-clock{font-size:var(--ptech-timezone-clock-font-size, 12px);color:var(--ptech-timezone-clock-color, inherit);opacity:var(--ptech-timezone-clock-opacity, .85);white-space:nowrap;font-variant-numeric:tabular-nums}@media (max-width: 599.98px){.ptech-timezone-clock.compact .ptech-timezone-clock-zone{display:none}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
10031
|
+
}
|
|
10032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTimezoneClockComponent, decorators: [{
|
|
10033
|
+
type: Component,
|
|
10034
|
+
args: [{ selector: 'ptech-timezone-clock', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
10035
|
+
<span
|
|
10036
|
+
class="ptech-timezone-clock"
|
|
10037
|
+
[class.compact]="compact"
|
|
10038
|
+
*ngIf="zoneId"
|
|
10039
|
+
[title]="showTimezone ? zoneId : ''"
|
|
10040
|
+
>
|
|
10041
|
+
<span class="ptech-timezone-clock-time">{{ time }}</span>
|
|
10042
|
+
<span class="ptech-timezone-clock-zone" *ngIf="showTimezone"> — {{ zoneId }}</span>
|
|
10043
|
+
</span>
|
|
10044
|
+
`, styles: [".ptech-timezone-clock{font-size:var(--ptech-timezone-clock-font-size, 12px);color:var(--ptech-timezone-clock-color, inherit);opacity:var(--ptech-timezone-clock-opacity, .85);white-space:nowrap;font-variant-numeric:tabular-nums}@media (max-width: 599.98px){.ptech-timezone-clock.compact .ptech-timezone-clock-zone{display:none}}\n"] }]
|
|
10045
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { zoneId: [{
|
|
10046
|
+
type: Input
|
|
10047
|
+
}], compact: [{
|
|
10048
|
+
type: Input
|
|
10049
|
+
}], showTimezone: [{
|
|
10050
|
+
type: Input
|
|
10051
|
+
}], showSeconds: [{
|
|
10052
|
+
type: Input
|
|
10053
|
+
}] } });
|
|
10054
|
+
|
|
9937
10055
|
class SnackbarMessageService {
|
|
9938
10056
|
snackBar;
|
|
9939
10057
|
constructor(snackBar) {
|
|
@@ -9981,6 +10099,17 @@ class SnackbarMessageService {
|
|
|
9981
10099
|
duration,
|
|
9982
10100
|
});
|
|
9983
10101
|
}
|
|
10102
|
+
infoMessage(title, message, details, timestamp, duration) {
|
|
10103
|
+
this.openSnackBar({
|
|
10104
|
+
title,
|
|
10105
|
+
message,
|
|
10106
|
+
details,
|
|
10107
|
+
icon: 'info',
|
|
10108
|
+
type: 'info',
|
|
10109
|
+
timestamp,
|
|
10110
|
+
duration,
|
|
10111
|
+
});
|
|
10112
|
+
}
|
|
9984
10113
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$4.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9985
10114
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService });
|
|
9986
10115
|
}
|
|
@@ -10040,7 +10169,8 @@ class PumpkinTechModule {
|
|
|
10040
10169
|
PtechPopoverComponent,
|
|
10041
10170
|
PtechWidgetMenuComponent,
|
|
10042
10171
|
PtechCarouselComponent,
|
|
10043
|
-
PtechTimelineComponent
|
|
10172
|
+
PtechTimelineComponent,
|
|
10173
|
+
PtechTimezoneClockComponent], exports: [
|
|
10044
10174
|
// reexporta tudo junto
|
|
10045
10175
|
InputComponent,
|
|
10046
10176
|
TextareaComponent,
|
|
@@ -10089,6 +10219,7 @@ class PumpkinTechModule {
|
|
|
10089
10219
|
PtechWidgetMenuComponent,
|
|
10090
10220
|
PtechCarouselComponent,
|
|
10091
10221
|
PtechTimelineComponent,
|
|
10222
|
+
PtechTimezoneClockComponent,
|
|
10092
10223
|
CoreMaterialModule] });
|
|
10093
10224
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, providers: [
|
|
10094
10225
|
{
|
|
@@ -10142,7 +10273,8 @@ class PumpkinTechModule {
|
|
|
10142
10273
|
PtechPopoverComponent,
|
|
10143
10274
|
PtechWidgetMenuComponent,
|
|
10144
10275
|
PtechCarouselComponent,
|
|
10145
|
-
PtechTimelineComponent,
|
|
10276
|
+
PtechTimelineComponent,
|
|
10277
|
+
PtechTimezoneClockComponent, CoreMaterialModule] });
|
|
10146
10278
|
}
|
|
10147
10279
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, decorators: [{
|
|
10148
10280
|
type: NgModule,
|
|
@@ -10197,7 +10329,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10197
10329
|
PtechPopoverComponent,
|
|
10198
10330
|
PtechWidgetMenuComponent,
|
|
10199
10331
|
PtechCarouselComponent,
|
|
10200
|
-
PtechTimelineComponent
|
|
10332
|
+
PtechTimelineComponent,
|
|
10333
|
+
PtechTimezoneClockComponent
|
|
10201
10334
|
],
|
|
10202
10335
|
exports: [
|
|
10203
10336
|
// reexporta tudo junto
|
|
@@ -10248,6 +10381,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10248
10381
|
PtechWidgetMenuComponent,
|
|
10249
10382
|
PtechCarouselComponent,
|
|
10250
10383
|
PtechTimelineComponent,
|
|
10384
|
+
PtechTimezoneClockComponent,
|
|
10251
10385
|
CoreMaterialModule,
|
|
10252
10386
|
],
|
|
10253
10387
|
providers: [
|
|
@@ -11187,19 +11321,6 @@ class DialogService {
|
|
|
11187
11321
|
width,
|
|
11188
11322
|
});
|
|
11189
11323
|
}
|
|
11190
|
-
confirm(confirmation, width = '400px') {
|
|
11191
|
-
const ref = this.open({
|
|
11192
|
-
component: ConfirmationDialogComponent,
|
|
11193
|
-
data: confirmation,
|
|
11194
|
-
width,
|
|
11195
|
-
disableClose: true,
|
|
11196
|
-
});
|
|
11197
|
-
return ref.afterClosed().pipe(tap((isAccepted) => {
|
|
11198
|
-
if (isAccepted) {
|
|
11199
|
-
confirmation.accept();
|
|
11200
|
-
}
|
|
11201
|
-
}), map((isAccepted) => !!isAccepted));
|
|
11202
|
-
}
|
|
11203
11324
|
/**
|
|
11204
11325
|
* Abre um ActionDialog e, se houver resultado, usa o builder para criar
|
|
11205
11326
|
* o ActionResultData e abre o resultado.
|
|
@@ -11223,6 +11344,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
11223
11344
|
}]
|
|
11224
11345
|
}], ctorParameters: () => [{ type: i1$3.MatDialog }] });
|
|
11225
11346
|
|
|
11347
|
+
/**
|
|
11348
|
+
* The single entry point consuming apps use for a destructive/confirmation prompt - opens
|
|
11349
|
+
* PtechConfirmationDialogComponent (itself just ptech-dialog-shell + ptech-button) and hands
|
|
11350
|
+
* back an Observable<boolean> instead of taking an accept/cancel callback pair, so the dialog
|
|
11351
|
+
* carries no application logic and the caller reads the result the same way it would from
|
|
11352
|
+
* MatDialogRef.afterClosed().
|
|
11353
|
+
*/
|
|
11354
|
+
class PtechConfirmationService {
|
|
11355
|
+
dialog;
|
|
11356
|
+
constructor(dialog) {
|
|
11357
|
+
this.dialog = dialog;
|
|
11358
|
+
}
|
|
11359
|
+
confirm(options, width = '440px') {
|
|
11360
|
+
const ref = this.dialog.open(PtechConfirmationDialogComponent, {
|
|
11361
|
+
data: options,
|
|
11362
|
+
width,
|
|
11363
|
+
maxWidth: '96vw',
|
|
11364
|
+
panelClass: 'ptech-dialog-panel',
|
|
11365
|
+
disableClose: options.disableClose ?? false,
|
|
11366
|
+
autoFocus: false,
|
|
11367
|
+
restoreFocus: false,
|
|
11368
|
+
});
|
|
11369
|
+
return ref.afterClosed().pipe(map(confirmed => !!confirmed));
|
|
11370
|
+
}
|
|
11371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
11372
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, providedIn: 'root' });
|
|
11373
|
+
}
|
|
11374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechConfirmationService, decorators: [{
|
|
11375
|
+
type: Injectable,
|
|
11376
|
+
args: [{ providedIn: 'root' }]
|
|
11377
|
+
}], ctorParameters: () => [{ type: i1$3.MatDialog }] });
|
|
11378
|
+
|
|
11226
11379
|
class ModuleChangeService {
|
|
11227
11380
|
moduleChangedSource = new BehaviorSubject('');
|
|
11228
11381
|
moduleChanged$ = this.moduleChangedSource.asObservable();
|
|
@@ -11692,5 +11845,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
11692
11845
|
* Generated bundle index. Do not edit.
|
|
11693
11846
|
*/
|
|
11694
11847
|
|
|
11695
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective,
|
|
11848
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, ExpansionPanelComponent, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechAutocompleteComponent, PtechCarouselComponent, PtechColDirective, PtechConfirmationDialogComponent, PtechConfirmationService, PtechDualListboxComponent, PtechGridDirective, PtechInputFileComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechTimelineComponent, PtechTimezoneClockComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
11696
11849
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|