@pumpkin-tech/pumpkin-tech-ng 0.2.53 → 0.2.55
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.
|
@@ -112,6 +112,16 @@ class PtechGridDirective {
|
|
|
112
112
|
// --- estilos base ---
|
|
113
113
|
display = 'grid';
|
|
114
114
|
columns = 'repeat(12, minmax(0, 1fr))';
|
|
115
|
+
// Neutraliza os gutters do Bootstrap (--bs-gutter-x/--bs-gutter-y) e as margens negativas
|
|
116
|
+
// que ".row" aplica quando um consumidor combina classes Bootstrap com este host (por
|
|
117
|
+
// hábito, ou porque algum componente ptech-* interno usa ".row"/".col" para o próprio
|
|
118
|
+
// layout). Zerar a variável CSS faz os calc() do Bootstrap resolverem para 0 sem precisar
|
|
119
|
+
// de !important nem depender de qual margem/padding específico o Bootstrap decidiu usar -
|
|
120
|
+
// o único espaçamento real do grid passa a vir exclusivamente de [ptechGap].
|
|
121
|
+
bsGutterX = '0px';
|
|
122
|
+
bsGutterY = '0px';
|
|
123
|
+
marginLeft = '0px';
|
|
124
|
+
marginRight = '0px';
|
|
115
125
|
activeBp = null;
|
|
116
126
|
viewportBp = null;
|
|
117
127
|
constructor(bp) {
|
|
@@ -161,7 +171,7 @@ class PtechGridDirective {
|
|
|
161
171
|
return Number.isFinite(n) ? n : fallback;
|
|
162
172
|
}
|
|
163
173
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechGridDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
|
|
164
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechGridDirective, isStandalone: true, selector: "[ptechGrid]", inputs: { ptechCols: "ptechCols", ptechColsXs: "ptechColsXs", ptechColsSm: "ptechColsSm", ptechColsMd: "ptechColsMd", ptechColsLg: "ptechColsLg", ptechColsXl: "ptechColsXl", ptechGap: "ptechGap", ptechVertical: "ptechVertical" }, host: { properties: { "style.gap": "this.gapCss", "style.display": "this.display", "style.gridTemplateColumns": "this.columns" } }, usesOnChanges: true, ngImport: i0 });
|
|
174
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechGridDirective, isStandalone: true, selector: "[ptechGrid]", inputs: { ptechCols: "ptechCols", ptechColsXs: "ptechColsXs", ptechColsSm: "ptechColsSm", ptechColsMd: "ptechColsMd", ptechColsLg: "ptechColsLg", ptechColsXl: "ptechColsXl", ptechGap: "ptechGap", ptechVertical: "ptechVertical" }, host: { properties: { "style.gap": "this.gapCss", "style.display": "this.display", "style.gridTemplateColumns": "this.columns", "style.--bs-gutter-x": "this.bsGutterX", "style.--bs-gutter-y": "this.bsGutterY", "style.marginLeft": "this.marginLeft", "style.marginRight": "this.marginRight" } }, usesOnChanges: true, ngImport: i0 });
|
|
165
175
|
}
|
|
166
176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechGridDirective, decorators: [{
|
|
167
177
|
type: Directive,
|
|
@@ -195,6 +205,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
195
205
|
}], columns: [{
|
|
196
206
|
type: HostBinding,
|
|
197
207
|
args: ['style.gridTemplateColumns']
|
|
208
|
+
}], bsGutterX: [{
|
|
209
|
+
type: HostBinding,
|
|
210
|
+
args: ['style.--bs-gutter-x']
|
|
211
|
+
}], bsGutterY: [{
|
|
212
|
+
type: HostBinding,
|
|
213
|
+
args: ['style.--bs-gutter-y']
|
|
214
|
+
}], marginLeft: [{
|
|
215
|
+
type: HostBinding,
|
|
216
|
+
args: ['style.marginLeft']
|
|
217
|
+
}], marginRight: [{
|
|
218
|
+
type: HostBinding,
|
|
219
|
+
args: ['style.marginRight']
|
|
198
220
|
}] } });
|
|
199
221
|
|
|
200
222
|
const MEDIA = {
|
|
@@ -230,6 +252,14 @@ class PtechColDirective {
|
|
|
230
252
|
activeSource = null;
|
|
231
253
|
gridColumn = 'auto / span 12';
|
|
232
254
|
minWidth = '0';
|
|
255
|
+
// Mesma neutralização de gutter do Bootstrap aplicada em PtechGridDirective, repetida aqui
|
|
256
|
+
// para o caso de um ptechCol ser usado isolado (fora de um host com [ptechGrid]) e ainda
|
|
257
|
+
// assim colidir com ".col"/".row" do Bootstrap - o padding lateral que ".col" aplicaria via
|
|
258
|
+
// calc(var(--bs-gutter-x) * .5) resolve para 0 automaticamente.
|
|
259
|
+
bsGutterX = '0px';
|
|
260
|
+
bsGutterY = '0px';
|
|
261
|
+
paddingLeft = '0px';
|
|
262
|
+
paddingRight = '0px';
|
|
233
263
|
constructor(el, ngZone, bp) {
|
|
234
264
|
this.el = el;
|
|
235
265
|
this.ngZone = ngZone;
|
|
@@ -328,7 +358,7 @@ class PtechColDirective {
|
|
|
328
358
|
return Number.isFinite(n) ? n : fallback;
|
|
329
359
|
}
|
|
330
360
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechColDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive });
|
|
331
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechColDirective, isStandalone: true, selector: "[ptechCol]", inputs: { ptechColMode: "ptechColMode", ptechCol: "ptechCol", ptechColXs: "ptechColXs", ptechColSm: "ptechColSm", ptechColMd: "ptechColMd", ptechColLg: "ptechColLg", ptechColXl: "ptechColXl" }, host: { properties: { "style.gridColumn": "this.gridColumn", "style.minWidth": "this.minWidth" } }, usesOnChanges: true, ngImport: i0 });
|
|
361
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.16", type: PtechColDirective, isStandalone: true, selector: "[ptechCol]", inputs: { ptechColMode: "ptechColMode", ptechCol: "ptechCol", ptechColXs: "ptechColXs", ptechColSm: "ptechColSm", ptechColMd: "ptechColMd", ptechColLg: "ptechColLg", ptechColXl: "ptechColXl" }, host: { properties: { "style.gridColumn": "this.gridColumn", "style.minWidth": "this.minWidth", "style.--bs-gutter-x": "this.bsGutterX", "style.--bs-gutter-y": "this.bsGutterY", "style.paddingLeft": "this.paddingLeft", "style.paddingRight": "this.paddingRight" } }, usesOnChanges: true, ngImport: i0 });
|
|
332
362
|
}
|
|
333
363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechColDirective, decorators: [{
|
|
334
364
|
type: Directive,
|
|
@@ -356,6 +386,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
356
386
|
}], minWidth: [{
|
|
357
387
|
type: HostBinding,
|
|
358
388
|
args: ['style.minWidth']
|
|
389
|
+
}], bsGutterX: [{
|
|
390
|
+
type: HostBinding,
|
|
391
|
+
args: ['style.--bs-gutter-x']
|
|
392
|
+
}], bsGutterY: [{
|
|
393
|
+
type: HostBinding,
|
|
394
|
+
args: ['style.--bs-gutter-y']
|
|
395
|
+
}], paddingLeft: [{
|
|
396
|
+
type: HostBinding,
|
|
397
|
+
args: ['style.paddingLeft']
|
|
398
|
+
}], paddingRight: [{
|
|
399
|
+
type: HostBinding,
|
|
400
|
+
args: ['style.paddingRight']
|
|
359
401
|
}] } });
|
|
360
402
|
|
|
361
403
|
class PortugueseMatPaginatorIntl extends MatPaginatorIntl {
|
|
@@ -1168,6 +1210,18 @@ class ButtonComponent extends BaseField {
|
|
|
1168
1210
|
get dashedTextColor() {
|
|
1169
1211
|
return this.textColor !== this.DEFAULT_TEXT_COLOR ? this.textColor : null;
|
|
1170
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
|
+
}
|
|
1171
1225
|
get dashedColor() {
|
|
1172
1226
|
if (!this.isThemeColor)
|
|
1173
1227
|
return this.color;
|
|
@@ -1234,7 +1288,7 @@ class ButtonComponent extends BaseField {
|
|
|
1234
1288
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1235
1289
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1236
1290
|
[style.width]="fullWidth ? '100%' : null"
|
|
1237
|
-
[style.color]="textColor"
|
|
1291
|
+
[style.color]="customBackground ? textColor : unfilledTextColor"
|
|
1238
1292
|
[style.background-color]="customBackground"
|
|
1239
1293
|
(click)="onInnerClick($event)"
|
|
1240
1294
|
>
|
|
@@ -1316,7 +1370,7 @@ class ButtonComponent extends BaseField {
|
|
|
1316
1370
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1317
1371
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1318
1372
|
[style.width]="fullWidth ? '100%' : null"
|
|
1319
|
-
[style.color]="
|
|
1373
|
+
[style.color]="unfilledTextColor"
|
|
1320
1374
|
(click)="onInnerClick($event)"
|
|
1321
1375
|
>
|
|
1322
1376
|
<!-- SLOT FIXO DO ÍCONE/SPINNER -->
|
|
@@ -1534,6 +1588,7 @@ class ButtonComponent extends BaseField {
|
|
|
1534
1588
|
*ngSwitchCase="'link'"
|
|
1535
1589
|
class="ptech-btn ptech-link"
|
|
1536
1590
|
mat-button
|
|
1591
|
+
[color]="themeColor"
|
|
1537
1592
|
[href]="(disabled || loading) ? null : link"
|
|
1538
1593
|
[target]="target"
|
|
1539
1594
|
[matTooltip]="tooltip || null"
|
|
@@ -1545,7 +1600,7 @@ class ButtonComponent extends BaseField {
|
|
|
1545
1600
|
[style.--icon-fs.px]="sizeCfg.icon"
|
|
1546
1601
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1547
1602
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1548
|
-
[style.color]="
|
|
1603
|
+
[style.color]="unfilledTextColor"
|
|
1549
1604
|
(click)="onLinkClick($event)">
|
|
1550
1605
|
<span class="btn-icon-wrapper" *ngIf="icon || loading">
|
|
1551
1606
|
<mat-icon *ngIf="!loading && icon" class="btn-icon">{{ icon }}</mat-icon>
|
|
@@ -1584,7 +1639,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1584
1639
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1585
1640
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1586
1641
|
[style.width]="fullWidth ? '100%' : null"
|
|
1587
|
-
[style.color]="textColor"
|
|
1642
|
+
[style.color]="customBackground ? textColor : unfilledTextColor"
|
|
1588
1643
|
[style.background-color]="customBackground"
|
|
1589
1644
|
(click)="onInnerClick($event)"
|
|
1590
1645
|
>
|
|
@@ -1666,7 +1721,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1666
1721
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1667
1722
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1668
1723
|
[style.width]="fullWidth ? '100%' : null"
|
|
1669
|
-
[style.color]="
|
|
1724
|
+
[style.color]="unfilledTextColor"
|
|
1670
1725
|
(click)="onInnerClick($event)"
|
|
1671
1726
|
>
|
|
1672
1727
|
<!-- SLOT FIXO DO ÍCONE/SPINNER -->
|
|
@@ -1884,6 +1939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1884
1939
|
*ngSwitchCase="'link'"
|
|
1885
1940
|
class="ptech-btn ptech-link"
|
|
1886
1941
|
mat-button
|
|
1942
|
+
[color]="themeColor"
|
|
1887
1943
|
[href]="(disabled || loading) ? null : link"
|
|
1888
1944
|
[target]="target"
|
|
1889
1945
|
[matTooltip]="tooltip || null"
|
|
@@ -1895,7 +1951,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1895
1951
|
[style.--icon-fs.px]="sizeCfg.icon"
|
|
1896
1952
|
[style.--btn-fs.px]="sizeCfg.font"
|
|
1897
1953
|
[style.--btn-pad]="sizeCfg.pad"
|
|
1898
|
-
[style.color]="
|
|
1954
|
+
[style.color]="unfilledTextColor"
|
|
1899
1955
|
(click)="onLinkClick($event)">
|
|
1900
1956
|
<span class="btn-icon-wrapper" *ngIf="icon || loading">
|
|
1901
1957
|
<mat-icon *ngIf="!loading && icon" class="btn-icon">{{ icon }}</mat-icon>
|
|
@@ -3027,8 +3083,11 @@ class BreadcrumbComponent {
|
|
|
3027
3083
|
</li>
|
|
3028
3084
|
</ul>
|
|
3029
3085
|
</div>
|
|
3086
|
+
<div class="end-content">
|
|
3087
|
+
<ng-content select="[end-content]"></ng-content>
|
|
3088
|
+
</div>
|
|
3030
3089
|
</nav>
|
|
3031
|
-
`, 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 }] });
|
|
3032
3091
|
}
|
|
3033
3092
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
3034
3093
|
type: Component,
|
|
@@ -3053,8 +3112,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
3053
3112
|
</li>
|
|
3054
3113
|
</ul>
|
|
3055
3114
|
</div>
|
|
3115
|
+
<div class="end-content">
|
|
3116
|
+
<ng-content select="[end-content]"></ng-content>
|
|
3117
|
+
</div>
|
|
3056
3118
|
</nav>
|
|
3057
|
-
`, 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"] }]
|
|
3058
3120
|
}], propDecorators: { routes: [{
|
|
3059
3121
|
type: Input
|
|
3060
3122
|
}], hasStartIcon: [{
|
|
@@ -3443,21 +3505,23 @@ class FooterComponent {
|
|
|
3443
3505
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3444
3506
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: FooterComponent, isStandalone: true, selector: "ptech-footer", inputs: { version: "version" }, ngImport: i0, template: `
|
|
3445
3507
|
<mat-toolbar class="footer">
|
|
3508
|
+
<ng-content></ng-content>
|
|
3446
3509
|
<span>
|
|
3447
3510
|
Version: <strong>{{ version }}</strong>
|
|
3448
3511
|
</span>
|
|
3449
3512
|
</mat-toolbar>
|
|
3450
|
-
`, isInline: true, styles: [".footer{position:relative;bottom:0;display:flex;justify-content:flex-end;background:linear-gradient(315deg,var(--ptech-footer-gradient-start, #3d454e),var(--ptech-footer-gradient-end, #5a6573));animation:ftgradient 10s ease infinite;color:var(--ptech-footer-text-color, #fff)}.footer>span{font-size:1.1rem;font-weight:300}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i3$3.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
3513
|
+
`, isInline: true, styles: [".footer{position:relative;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:16px;background:linear-gradient(315deg,var(--ptech-footer-gradient-start, #3d454e),var(--ptech-footer-gradient-end, #5a6573));animation:ftgradient 10s ease infinite;color:var(--ptech-footer-text-color, #fff)}.footer>span{font-size:1.1rem;font-weight:300}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i3$3.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }] });
|
|
3451
3514
|
}
|
|
3452
3515
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: FooterComponent, decorators: [{
|
|
3453
3516
|
type: Component,
|
|
3454
3517
|
args: [{ selector: 'ptech-footer', imports: [CommonModule, CoreMaterialModule], template: `
|
|
3455
3518
|
<mat-toolbar class="footer">
|
|
3519
|
+
<ng-content></ng-content>
|
|
3456
3520
|
<span>
|
|
3457
3521
|
Version: <strong>{{ version }}</strong>
|
|
3458
3522
|
</span>
|
|
3459
3523
|
</mat-toolbar>
|
|
3460
|
-
`, styles: [".footer{position:relative;bottom:0;display:flex;justify-content:flex-end;background:linear-gradient(315deg,var(--ptech-footer-gradient-start, #3d454e),var(--ptech-footer-gradient-end, #5a6573));animation:ftgradient 10s ease infinite;color:var(--ptech-footer-text-color, #fff)}.footer>span{font-size:1.1rem;font-weight:300}\n"] }]
|
|
3524
|
+
`, styles: [".footer{position:relative;bottom:0;display:flex;align-items:center;justify-content:flex-end;gap:16px;background:linear-gradient(315deg,var(--ptech-footer-gradient-start, #3d454e),var(--ptech-footer-gradient-end, #5a6573));animation:ftgradient 10s ease infinite;color:var(--ptech-footer-text-color, #fff)}.footer>span{font-size:1.1rem;font-weight:300}\n"] }]
|
|
3461
3525
|
}], propDecorators: { version: [{
|
|
3462
3526
|
type: Input
|
|
3463
3527
|
}] } });
|
|
@@ -6101,7 +6165,7 @@ class InputDateComponent extends BaseField {
|
|
|
6101
6165
|
multi: true
|
|
6102
6166
|
}], viewQueries: [{ propertyName: "inputDateElement", first: true, predicate: ["inputDateElement"], descendants: true, static: true }, { propertyName: "picker", first: true, predicate: MatDatepicker, descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
6103
6167
|
<div class="input-date-container" [class.full-width]="fullWidth">
|
|
6104
|
-
<div class="row">
|
|
6168
|
+
<div class="ptech-input-date-row">
|
|
6105
6169
|
<mat-form-field [appearance]="appearance" class="field ptech-form-field">
|
|
6106
6170
|
<mat-label>
|
|
6107
6171
|
{{ label }} <span *ngIf="required" aria-hidden="true">*</span>
|
|
@@ -6172,13 +6236,13 @@ class InputDateComponent extends BaseField {
|
|
|
6172
6236
|
</mat-form-field>
|
|
6173
6237
|
</div>
|
|
6174
6238
|
</div>
|
|
6175
|
-
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.input-date-container{width:100%;min-width:0;box-sizing:border-box}.input-date-container.full-width .ptech-form-field{width:100%}.row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0;max-width:100%;box-sizing:border-box}:host ::ng-deep .field .mat-mdc-text-field-wrapper,:host ::ng-deep .field .mat-mdc-form-field-flex,:host ::ng-deep .field .mat-mdc-form-field-infix{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px);--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 .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 .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .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 .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-text, var(--app-text, inherit))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}:host ::ng-deep .field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .field.mat-form-field-disabled .mdc-floating-label,:host ::ng-deep .field.mat-form-field-disabled .mat-datepicker-toggle-default-icon{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 .field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$5.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3$5.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3$5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: NgxMaterialTimepickerModule }, { kind: "component", type: i8.NgxMaterialTimepickerComponent, selector: "ngx-material-timepicker", inputs: ["cancelBtnTmpl", "editableHintTmpl", "confirmBtnTmpl", "ESC", "enableKeyboardInput", "preventOverlayClick", "disableAnimation", "appendToInput", "hoursOnly", "defaultTime", "timepickerClass", "theme", "min", "max", "ngxMaterialTimepickerTheme", "format", "minutesGap"], outputs: ["timeSet", "opened", "closed", "hourSelected", "timeChanged"] }, { kind: "component", type: i8.NgxMaterialTimepickerToggleComponent, selector: "ngx-material-timepicker-toggle", inputs: ["for", "disabled"] }, { kind: "directive", type: i8.NgxMaterialTimepickerToggleIconDirective, selector: "[ngxMaterialTimepickerToggleIcon]" }] });
|
|
6239
|
+
`, isInline: true, styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.input-date-container{width:100%;min-width:0;box-sizing:border-box}.input-date-container.full-width .ptech-form-field{width:100%}.ptech-input-date-row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0;max-width:100%;box-sizing:border-box}:host ::ng-deep .field .mat-mdc-text-field-wrapper,:host ::ng-deep .field .mat-mdc-form-field-flex,:host ::ng-deep .field .mat-mdc-form-field-infix{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px);--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 .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 .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .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 .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-text, var(--app-text, inherit))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.ptech-input-date-row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}:host ::ng-deep .field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .field.mat-form-field-disabled .mdc-floating-label,:host ::ng-deep .field.mat-form-field-disabled .mat-datepicker-toggle-default-icon{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 .field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$5.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i3$5.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i3$5.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: NgxMaterialTimepickerModule }, { kind: "component", type: i8.NgxMaterialTimepickerComponent, selector: "ngx-material-timepicker", inputs: ["cancelBtnTmpl", "editableHintTmpl", "confirmBtnTmpl", "ESC", "enableKeyboardInput", "preventOverlayClick", "disableAnimation", "appendToInput", "hoursOnly", "defaultTime", "timepickerClass", "theme", "min", "max", "ngxMaterialTimepickerTheme", "format", "minutesGap"], outputs: ["timeSet", "opened", "closed", "hourSelected", "timeChanged"] }, { kind: "component", type: i8.NgxMaterialTimepickerToggleComponent, selector: "ngx-material-timepicker-toggle", inputs: ["for", "disabled"] }, { kind: "directive", type: i8.NgxMaterialTimepickerToggleIconDirective, selector: "[ngxMaterialTimepickerToggleIcon]" }] });
|
|
6176
6240
|
}
|
|
6177
6241
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDateComponent, decorators: [{
|
|
6178
6242
|
type: Component,
|
|
6179
6243
|
args: [{ selector: 'ptech-input-date', imports: [CoreMaterialModule, NgxMaterialTimepickerModule], template: `
|
|
6180
6244
|
<div class="input-date-container" [class.full-width]="fullWidth">
|
|
6181
|
-
<div class="row">
|
|
6245
|
+
<div class="ptech-input-date-row">
|
|
6182
6246
|
<mat-form-field [appearance]="appearance" class="field ptech-form-field">
|
|
6183
6247
|
<mat-label>
|
|
6184
6248
|
{{ label }} <span *ngIf="required" aria-hidden="true">*</span>
|
|
@@ -6253,7 +6317,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6253
6317
|
provide: NG_VALUE_ACCESSOR,
|
|
6254
6318
|
useExisting: forwardRef(() => InputDateComponent),
|
|
6255
6319
|
multi: true
|
|
6256
|
-
}], styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.input-date-container{width:100%;min-width:0;box-sizing:border-box}.input-date-container.full-width .ptech-form-field{width:100%}.row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0;max-width:100%;box-sizing:border-box}:host ::ng-deep .field .mat-mdc-text-field-wrapper,:host ::ng-deep .field .mat-mdc-form-field-flex,:host ::ng-deep .field .mat-mdc-form-field-infix{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px);--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 .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 .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .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 .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-text, var(--app-text, inherit))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}:host ::ng-deep .field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .field.mat-form-field-disabled .mdc-floating-label,:host ::ng-deep .field.mat-form-field-disabled .mat-datepicker-toggle-default-icon{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 .field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}\n"] }]
|
|
6320
|
+
}], styles: [":host{display:block;width:100%;min-width:0;box-sizing:border-box}.input-date-container{width:100%;min-width:0;box-sizing:border-box}.input-date-container.full-width .ptech-form-field{width:100%}.ptech-input-date-row{display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0}.field{flex:1 1 auto;width:100%;min-width:0;max-width:100%;box-sizing:border-box}:host ::ng-deep .field .mat-mdc-text-field-wrapper,:host ::ng-deep .field .mat-mdc-form-field-flex,:host ::ng-deep .field .mat-mdc-form-field-infix{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.time{flex:0 0 156px;width:156px;margin-left:0}:host ::ng-deep .field{--mat-form-field-container-height: var(--ptech-field-height, 56px);--mat-form-field-container-vertical-padding: var(--ptech-field-vertical-padding, 16px);--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 .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 .field .mdc-text-field .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--hover .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__leading,:host ::ng-deep .field .mdc-text-field.mdc-text-field--focused .mdc-notched-outline__notch,:host ::ng-deep .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 .field input.mat-mdc-input-element,:host ::ng-deep .field input.mdc-text-field__input,:host ::ng-deep .field .mat-mdc-input-element{color:var(--ptech-field-text, var(--app-text, inherit))!important;caret-color:var(--ptech-field-text, var(--app-text, inherit))!important;-webkit-text-fill-color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field input::placeholder{color:var(--ptech-field-placeholder, var(--app-text, inherit));opacity:.78}:host ::ng-deep .field .mdc-floating-label,:host ::ng-deep .field .mdc-floating-label--float-above{color:var(--ptech-field-label, var(--app-text, inherit))!important}:host ::ng-deep .field mat-label span{color:var(--ptech-required-color, var(--app-status-error, #f44336))!important}:host ::ng-deep .field .mat-datepicker-toggle,:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button.mat-mdc-button-base{color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .field .mat-datepicker-toggle-default-icon,:host ::ng-deep .field .mat-mdc-icon-button svg,:host ::ng-deep .field .mat-mdc-icon-button svg path{fill:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .time .mat-mdc-form-field-icon-suffix{align-items:center;color:var(--ptech-field-text, var(--app-text, inherit))!important;padding:0 8px 0 4px}:host ::ng-deep .ptech-time-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;margin:0;color:var(--ptech-field-text, var(--app-text, inherit))!important}:host ::ng-deep .ptech-time-toggle .ngx-material-timepicker-toggle{width:40px;height:40px;min-width:40px;padding:0;color:inherit!important}:host ::ng-deep .ptech-time-toggle mat-icon{width:24px;height:24px;font-size:24px;line-height:24px;color:inherit!important}::ng-deep ngx-material-timepicker-container,::ng-deep ngx-material-timepicker-container .timepicker-overlay{z-index:var(--ptech-timepicker-z-index, 13000)!important}::ng-deep ngx-material-timepicker-container .timepicker-backdrop-overlay{z-index:calc(var(--ptech-timepicker-z-index, 13000) - 1)!important}::ng-deep ngx-material-timepicker-container .timepicker{z-index:var(--ptech-timepicker-z-index, 13000)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background-color:var(--app-surface, #fff);color:var(--app-text, inherit)}::ng-deep ngx-material-timepicker-container .timepicker__header{background-color:var(--app-link-accent, #3f51b5)!important;color:var(--app-text-on-accent, #fff)!important}::ng-deep ngx-material-timepicker-container .timepicker__body,::ng-deep ngx-material-timepicker-container .timepicker__actions{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .clock-face{background-color:var(--app-surface-2, #f0f0f0)!important}::ng-deep ngx-material-timepicker-container .clock-face__number,::ng-deep ngx-material-timepicker-container .clock-face__number>span{color:var(--app-text, inherit)!important}::ng-deep ngx-material-timepicker-container .timepicker-button{color:var(--app-link-accent, #3f51b5)!important}::ng-deep .ptech-date-panel{--mat-datepicker-calendar-container-background-color: var(--app-surface, #fff);--mat-datepicker-calendar-date-text-color: var(--app-text, inherit);--mat-datepicker-calendar-body-label-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-text-color: var(--app-text, inherit);--mat-datepicker-calendar-period-button-text-color: var(--app-text, inherit);--mat-datepicker-calendar-navigation-button-icon-color: var(--app-text, inherit);--mat-datepicker-calendar-date-disabled-state-text-color: var(--app-muted, #9ca3af);--mat-datepicker-calendar-container-text-color: var(--app-text, inherit);--mat-datepicker-calendar-header-container-background-color: var(--app-surface, #fff)}::ng-deep .ptech-date-panel,::ng-deep .ptech-date-panel.mat-datepicker-content,::ng-deep .ptech-date-panel.mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content,::ng-deep .ptech-date-panel .mat-datepicker-content-container,::ng-deep .ptech-date-panel .mat-mdc-datepicker-content-container,::ng-deep .ptech-date-panel .mat-calendar,::ng-deep .ptech-date-panel .mat-calendar-content,::ng-deep .ptech-date-panel .mat-calendar-table{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-cell-content,::ng-deep .ptech-date-panel .mat-calendar-body-label,::ng-deep .ptech-date-panel .mat-calendar-table-header th,::ng-deep .ptech-date-panel .mat-calendar-period-button,::ng-deep .ptech-date-panel .mat-calendar-previous-button,::ng-deep .ptech-date-panel .mat-calendar-next-button{color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-arrow{border-top-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-body-today:not(.mat-calendar-body-selected){border-color:var(--app-text, inherit)!important}::ng-deep .ptech-date-panel .mat-calendar-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-header,::ng-deep .ptech-date-panel .mat-calendar-controls,::ng-deep .ptech-date-panel .mat-mdc-calendar-controls,::ng-deep .ptech-date-panel .mat-calendar-table-header,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header,::ng-deep .ptech-date-panel .mat-calendar-table-header-divider:after,::ng-deep .ptech-date-panel .mat-mdc-calendar-table-header-divider:after{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border-color:var(--app-border-color, rgba(0,0,0,.12))!important}@media (max-width: 599.98px){.ptech-input-date-row{flex-wrap:wrap}.time{flex:1 1 100%;width:100%}}:host ::ng-deep .field.mat-form-field-disabled .mdc-text-field__input,:host ::ng-deep .field.mat-form-field-disabled .mat-mdc-input-element,:host ::ng-deep .field.mat-form-field-disabled .mdc-floating-label,:host ::ng-deep .field.mat-form-field-disabled .mat-datepicker-toggle-default-icon{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 .field.mat-form-field-disabled .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-disabled .mdc-notched-outline__notch,:host ::ng-deep .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 .field .mat-mdc-form-field-hint{color:var(--ptech-field-hint, var(--app-muted, rgba(0,0,0,.6)))!important}:host ::ng-deep .field .mat-mdc-form-field-error{color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__leading,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__notch,:host ::ng-deep .field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ptech-field-error, var(--app-status-error, #f44336))!important}\n"] }]
|
|
6257
6321
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { inputDateElement: [{
|
|
6258
6322
|
type: ViewChild,
|
|
6259
6323
|
args: ['inputDateElement', { static: true }]
|
|
@@ -7390,7 +7454,7 @@ class TableComponent {
|
|
|
7390
7454
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7391
7455
|
</ng-template>
|
|
7392
7456
|
</div>
|
|
7393
|
-
`, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i5$2.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5$2.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7457
|
+
`, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.header-row h3{color:var(--ptech-table-title-color, var(--app-text-primary, var(--app-text, inherit)))}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i5$2.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5$2.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7394
7458
|
}
|
|
7395
7459
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
|
|
7396
7460
|
type: Component,
|
|
@@ -7766,7 +7830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7766
7830
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7767
7831
|
</ng-template>
|
|
7768
7832
|
</div>
|
|
7769
|
-
`, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
|
|
7833
|
+
`, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:var(--ptech-table-container-margin, 0 0 20px 0);padding:var(--ptech-table-container-padding, 0)}.header-row h3{color:var(--ptech-table-title-color, var(--app-text-primary, var(--app-text, inherit)))}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:var(--ptech-table-container-padding-mobile, 0);margin:var(--ptech-table-container-margin-mobile, 0 0 12px 0)}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
|
|
7770
7834
|
}], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
|
|
7771
7835
|
type: Input
|
|
7772
7836
|
}], loading: [{
|
|
@@ -8360,7 +8424,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8360
8424
|
}] } });
|
|
8361
8425
|
|
|
8362
8426
|
class PtechAutocompleteComponent extends BaseField {
|
|
8363
|
-
|
|
8427
|
+
cdr;
|
|
8428
|
+
constructor(el, cdr) {
|
|
8429
|
+
super(el);
|
|
8430
|
+
this.cdr = cdr;
|
|
8431
|
+
}
|
|
8364
8432
|
searchInput;
|
|
8365
8433
|
optionTemplate;
|
|
8366
8434
|
multiple = false;
|
|
@@ -8388,6 +8456,9 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8388
8456
|
subscription = this.search$.pipe(debounceTime(this.debounce), distinctUntilChanged(), tap(term => this.search.emit(term)), switchMap(term => this.resolveOptions(term))).subscribe(options => {
|
|
8389
8457
|
this.filteredOptions = options || [];
|
|
8390
8458
|
this.setLoading(false);
|
|
8459
|
+
// This resolves asynchronously (debounceTime + switchMap), outside the zone task that
|
|
8460
|
+
// originated the keystroke - OnPush won't pick up the new filteredOptions on its own here.
|
|
8461
|
+
this.cdr.markForCheck();
|
|
8391
8462
|
});
|
|
8392
8463
|
ngOnChanges(changes) {
|
|
8393
8464
|
if (changes['entities']) {
|
|
@@ -8494,7 +8565,11 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8494
8565
|
this.loadingChange.emit(loading);
|
|
8495
8566
|
}
|
|
8496
8567
|
normalize(value) {
|
|
8497
|
-
|
|
8568
|
+
// getDisplay(item) is fed by whatever a consumer's displayWith/propertyFn/property
|
|
8569
|
+
// resolves to for an item of generic type T - if that returns a non-string (e.g. a
|
|
8570
|
+
// consumer's displayWith accidentally returns the entity itself), String.prototype.normalize
|
|
8571
|
+
// must not be assumed to exist on it. Coerce defensively instead of trusting the type.
|
|
8572
|
+
return String(value ?? '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
|
|
8498
8573
|
}
|
|
8499
8574
|
escapeHtml(value) {
|
|
8500
8575
|
return value.replace(/[&<>"']/g, char => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[char] || char));
|
|
@@ -8502,7 +8577,7 @@ class PtechAutocompleteComponent extends BaseField {
|
|
|
8502
8577
|
escapeRegExp(value) {
|
|
8503
8578
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
8504
8579
|
}
|
|
8505
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8580
|
+
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 });
|
|
8506
8581
|
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: [{
|
|
8507
8582
|
provide: NG_VALUE_ACCESSOR,
|
|
8508
8583
|
useExisting: forwardRef(() => PtechAutocompleteComponent),
|
|
@@ -8634,7 +8709,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8634
8709
|
useExisting: forwardRef(() => PtechAutocompleteComponent),
|
|
8635
8710
|
multi: true,
|
|
8636
8711
|
}], 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"] }]
|
|
8637
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { searchInput: [{
|
|
8712
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { searchInput: [{
|
|
8638
8713
|
type: ViewChild,
|
|
8639
8714
|
args: ['searchInput']
|
|
8640
8715
|
}], optionTemplate: [{
|