@pumpkin-tech/pumpkin-tech-ng 0.1.7 → 0.1.9

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { HostBinding, Input, Directive, Injectable, NgModule, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, Optional, Pipe, inject } from '@angular/core';
2
+ import { HostBinding, Input, Directive, Injectable, NgModule, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, Optional, Pipe, ContentChildren, inject } from '@angular/core';
3
3
  import * as i1 from '@angular/cdk/layout';
4
4
  import * as i2$5 from 'rxjs';
5
5
  import { Subject, BehaviorSubject, delay, tap, map, filter, of } from 'rxjs';
@@ -1082,6 +1082,15 @@ class ButtonComponent extends BaseField {
1082
1082
  shape = 'default';
1083
1083
  /** Cor do botão: ThemePalette (primary/accent/warn) ou cor CSS */
1084
1084
  color = 'primary';
1085
+ buttonClick = new EventEmitter();
1086
+ onLinkClick(event) {
1087
+ if (this.disabled || this.loading) {
1088
+ event.preventDefault();
1089
+ event.stopImmediatePropagation();
1090
+ event.stopPropagation();
1091
+ return;
1092
+ }
1093
+ }
1085
1094
  // ---- Size tokens ----
1086
1095
  sizes = {
1087
1096
  xs: { h: 24, pad: '0 6px', icon: 14, font: 12, iconIconOnly: 16, iconFab: 18, iconMiniFab: 16 },
@@ -1113,8 +1122,20 @@ class ButtonComponent extends BaseField {
1113
1122
  'line-height': this.iconHeight || null,
1114
1123
  };
1115
1124
  }
1125
+ get spinnerDiameter() {
1126
+ // ajusta se quiser mais fino/grosso por tamanho
1127
+ return this.sizeCfg.icon; // ou this.sizeCfg.icon + 2, etc.
1128
+ }
1129
+ onInnerClick(event) {
1130
+ if (this.disabled || this.loading) {
1131
+ event.preventDefault();
1132
+ event.stopPropagation();
1133
+ return;
1134
+ }
1135
+ this.buttonClick.emit(event);
1136
+ }
1116
1137
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1117
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ButtonComponent, isStandalone: true, selector: "ptech-button", inputs: { type: "type", size: "size", tooltip: "tooltip", icon: "icon", iconColor: "iconColor", iconWidth: "iconWidth", iconHeight: "iconHeight", textColor: "textColor", link: "link", target: "target", shape: "shape", color: "color" }, usesInheritance: true, ngImport: i0, template: `
1138
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ButtonComponent, isStandalone: true, selector: "ptech-button", inputs: { type: "type", size: "size", tooltip: "tooltip", icon: "icon", iconColor: "iconColor", iconWidth: "iconWidth", iconHeight: "iconHeight", textColor: "textColor", link: "link", target: "target", shape: "shape", color: "color" }, outputs: { buttonClick: "buttonClick" }, usesInheritance: true, ngImport: i0, template: `
1118
1139
  <ng-container [ngSwitch]="type">
1119
1140
 
1120
1141
  <!-- BASIC -->
@@ -1134,10 +1155,29 @@ class ButtonComponent extends BaseField {
1134
1155
  [style.--btn-pad]="sizeCfg.pad"
1135
1156
  [style.width]="fullWidth ? '100%' : null"
1136
1157
  [style.color]="textColor"
1137
- [style.background-color]="customBackground">
1138
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1139
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1140
- <span class="btn-label">{{ label }}</span>
1158
+ [style.background-color]="customBackground"
1159
+ (click)="onInnerClick($event)"
1160
+ >
1161
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1162
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1163
+ <mat-icon
1164
+ *ngIf="!loading && icon"
1165
+ class="btn-icon"
1166
+ [ngStyle]="iconStyle"
1167
+ >
1168
+ {{ icon }}
1169
+ </mat-icon>
1170
+
1171
+ <mat-progress-spinner
1172
+ *ngIf="loading"
1173
+ class="btn-spinner"
1174
+ [diameter]="spinnerDiameter"
1175
+ mode="indeterminate"
1176
+ ></mat-progress-spinner>
1177
+ </span>
1178
+
1179
+ <span class="btn-label">{{ label }}</span>
1180
+
1141
1181
  </button>
1142
1182
 
1143
1183
  <!-- RAISED -->
@@ -1157,10 +1197,27 @@ class ButtonComponent extends BaseField {
1157
1197
  [style.--btn-pad]="sizeCfg.pad"
1158
1198
  [style.width]="fullWidth ? '100%' : null"
1159
1199
  [style.color]="textColor"
1160
- [style.background-color]="customBackground">
1161
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1162
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1163
- <span class="btn-label">{{ label }}</span>
1200
+ [style.background-color]="customBackground"
1201
+ (click)="onInnerClick($event)"
1202
+ >
1203
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1204
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1205
+ <mat-icon
1206
+ *ngIf="!loading && icon"
1207
+ class="btn-icon"
1208
+ [ngStyle]="iconStyle">
1209
+ {{ icon }}
1210
+ </mat-icon>
1211
+
1212
+ <mat-progress-spinner
1213
+ *ngIf="loading"
1214
+ class="btn-spinner"
1215
+ [diameter]="spinnerDiameter"
1216
+ mode="indeterminate">
1217
+ </mat-progress-spinner>
1218
+ </span>
1219
+
1220
+ <span class="btn-label">{{ label }}</span>
1164
1221
  </button>
1165
1222
 
1166
1223
  <!-- STROKED -->
@@ -1179,10 +1236,29 @@ class ButtonComponent extends BaseField {
1179
1236
  [style.--btn-fs.px]="sizeCfg.font"
1180
1237
  [style.--btn-pad]="sizeCfg.pad"
1181
1238
  [style.width]="fullWidth ? '100%' : null"
1182
- [style.color]="textColor">
1183
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1184
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1185
- <span class="btn-label">{{ label }}</span>
1239
+ [style.color]="textColor"
1240
+ (click)="onInnerClick($event)"
1241
+ >
1242
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1243
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1244
+ <mat-icon
1245
+ *ngIf="!loading && icon"
1246
+ class="btn-icon"
1247
+ [ngStyle]="iconStyle"
1248
+ >
1249
+ {{ icon }}
1250
+ </mat-icon>
1251
+
1252
+ <mat-progress-spinner
1253
+ *ngIf="loading"
1254
+ class="btn-spinner"
1255
+ [diameter]="spinnerDiameter"
1256
+ mode="indeterminate"
1257
+ ></mat-progress-spinner>
1258
+ </span>
1259
+
1260
+ <span class="btn-label">{{ label }}</span>
1261
+
1186
1262
  </button>
1187
1263
 
1188
1264
  <!-- FLAT -->
@@ -1202,10 +1278,29 @@ class ButtonComponent extends BaseField {
1202
1278
  [style.--btn-pad]="sizeCfg.pad"
1203
1279
  [style.width]="fullWidth ? '100%' : null"
1204
1280
  [style.color]="textColor"
1205
- [style.background-color]="customBackground">
1206
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1207
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1208
- <span class="btn-label">{{ label }}</span>
1281
+ [style.background-color]="customBackground"
1282
+ (click)="onInnerClick($event)"
1283
+ >
1284
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1285
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1286
+ <mat-icon
1287
+ *ngIf="!loading && icon"
1288
+ class="btn-icon"
1289
+ [ngStyle]="iconStyle"
1290
+ >
1291
+ {{ icon }}
1292
+ </mat-icon>
1293
+
1294
+ <mat-progress-spinner
1295
+ *ngIf="loading"
1296
+ class="btn-spinner"
1297
+ [diameter]="spinnerDiameter"
1298
+ mode="indeterminate"
1299
+ ></mat-progress-spinner>
1300
+ </span>
1301
+
1302
+ <span class="btn-label">{{ label }}</span>
1303
+
1209
1304
  </button>
1210
1305
 
1211
1306
  <!-- ICON -->
@@ -1220,9 +1315,18 @@ class ButtonComponent extends BaseField {
1220
1315
  [attr.aria-busy]="loading ? 'true' : null"
1221
1316
  [attr.aria-label]="ariaLabel || label || icon || null"
1222
1317
  [style.width]="fullWidth ? '100%' : null"
1223
- [style.--icon-fs.px]="sizeCfg.iconIconOnly">
1224
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1225
- <mat-progress-spinner *ngIf="loading" diameter="20" mode="indeterminate"></mat-progress-spinner>
1318
+ [style.--icon-fs.px]="sizeCfg.iconIconOnly"
1319
+ (click)="onInnerClick($event)"
1320
+ >
1321
+ <span class="btn-icon-wrapper">
1322
+ <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1323
+ <mat-progress-spinner
1324
+ *ngIf="loading"
1325
+ class="btn-spinner"
1326
+ [diameter]="spinnerDiameter"
1327
+ mode="indeterminate"
1328
+ ></mat-progress-spinner>
1329
+ </span>
1226
1330
  </button>
1227
1331
 
1228
1332
  <!-- FAB -->
@@ -1234,9 +1338,18 @@ class ButtonComponent extends BaseField {
1234
1338
  [color]="themeColor"
1235
1339
  [matTooltip]="tooltip || null"
1236
1340
  [attr.aria-busy]="loading ? 'true' : null"
1237
- [attr.aria-label]="ariaLabel || label || icon || null">
1238
- <mat-icon *ngIf="!loading" class="btn-icon" [style.fontSize.px]="sizeCfg.iconFab">{{ icon }}</mat-icon>
1239
- <mat-progress-spinner *ngIf="loading" diameter="24" mode="indeterminate"></mat-progress-spinner>
1341
+ [attr.aria-label]="ariaLabel || label || icon || null"
1342
+ (click)="onInnerClick($event)"
1343
+ >
1344
+ <span class="btn-icon-wrapper">
1345
+ <mat-icon *ngIf="!loading" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1346
+ <mat-progress-spinner
1347
+ *ngIf="loading"
1348
+ class="btn-spinner"
1349
+ [diameter]="spinnerDiameter"
1350
+ mode="indeterminate"
1351
+ ></mat-progress-spinner>
1352
+ </span>
1240
1353
  </button>
1241
1354
 
1242
1355
  <!-- MINI-FAB -->
@@ -1248,17 +1361,25 @@ class ButtonComponent extends BaseField {
1248
1361
  [color]="themeColor"
1249
1362
  [matTooltip]="tooltip || null"
1250
1363
  [attr.aria-busy]="loading ? 'true' : null"
1251
- [attr.aria-label]="ariaLabel || label || icon || null">
1252
- <mat-icon *ngIf="!loading" class="btn-icon" [style.fontSize.px]="sizeCfg.iconMiniFab">{{ icon }}</mat-icon>
1253
- <mat-progress-spinner *ngIf="loading" diameter="20" mode="indeterminate"></mat-progress-spinner>
1364
+ [attr.aria-label]="ariaLabel || label || icon || null"
1365
+ (click)="onInnerClick($event)"
1366
+ >
1367
+ <span class="btn-icon-wrapper">
1368
+ <mat-icon *ngIf="!loading" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1369
+ <mat-progress-spinner
1370
+ *ngIf="loading"
1371
+ class="btn-spinner"
1372
+ [diameter]="spinnerDiameter"
1373
+ mode="indeterminate"
1374
+ ></mat-progress-spinner>
1375
+ </span>
1254
1376
  </button>
1255
1377
 
1256
1378
  <!-- EXTENDED FAB -->
1257
1379
  <button
1258
1380
  *ngSwitchCase="'extended'"
1259
- class="ptech-btn"
1381
+ class="ptech-btn mat-mdc-extended-fab"
1260
1382
  mat-fab
1261
- class="mat-mdc-extended-fab"
1262
1383
  [disabled]="disabled || loading"
1263
1384
  [color]="themeColor"
1264
1385
  [matTooltip]="tooltip || null"
@@ -1267,10 +1388,29 @@ class ButtonComponent extends BaseField {
1267
1388
  [style.--btn-h.px]="sizeCfg.h"
1268
1389
  [style.--icon-fs.px]="sizeCfg.icon"
1269
1390
  [style.--btn-fs.px]="sizeCfg.font"
1270
- [style.--btn-pad]="sizeCfg.pad">
1271
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1272
- <mat-progress-spinner *ngIf="loading" diameter="20" mode="indeterminate"></mat-progress-spinner>
1273
- <span class="btn-label">{{ label }}</span>
1391
+ [style.--btn-pad]="sizeCfg.pad"
1392
+ (click)="onInnerClick($event)"
1393
+ >
1394
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1395
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1396
+ <mat-icon
1397
+ *ngIf="!loading && icon"
1398
+ class="btn-icon"
1399
+ [ngStyle]="iconStyle"
1400
+ >
1401
+ {{ icon }}
1402
+ </mat-icon>
1403
+
1404
+ <mat-progress-spinner
1405
+ *ngIf="loading"
1406
+ class="btn-spinner"
1407
+ [diameter]="spinnerDiameter"
1408
+ mode="indeterminate"
1409
+ ></mat-progress-spinner>
1410
+ </span>
1411
+
1412
+ <span class="btn-label">{{ label }}</span>
1413
+
1274
1414
  </button>
1275
1415
 
1276
1416
  <!-- LINK -->
@@ -1290,13 +1430,22 @@ class ButtonComponent extends BaseField {
1290
1430
  [style.--btn-fs.px]="sizeCfg.font"
1291
1431
  [style.--btn-pad]="sizeCfg.pad"
1292
1432
  [style.color]="textColor"
1293
- (click)="$event && (disabled || loading) ? $event.preventDefault() : null">
1294
- <mat-icon *ngIf="icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1295
- {{ label }}
1433
+ (click)="onLinkClick($event)">
1434
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1435
+ <mat-icon *ngIf="!loading && icon" class="btn-icon">{{ icon }}</mat-icon>
1436
+ <mat-progress-spinner
1437
+ *ngIf="loading"
1438
+ class="btn-spinner"
1439
+ [diameter]="spinnerDiameter"
1440
+ mode="indeterminate"
1441
+ ></mat-progress-spinner>
1442
+ </span>
1443
+
1444
+ <span class="btn-label">{{ label }}</span>
1296
1445
  </a>
1297
1446
 
1298
1447
  </ng-container>
1299
- `, isInline: true, styles: [".pill-style{border-radius:20px}.ptech-btn{min-height:var(--btn-h, 36px);padding:var(--btn-pad, 0 14px);display:inline-flex;align-items:center;justify-content:center;gap:6px}.ptech-btn.ptech-btn-icon.mat-mdc-icon-button{width:auto!important;display:inline-flex;align-items:center;justify-content:center}.btn-label{font-size:var(--btn-fs, 15px);margin-left:2px}.btn-icon{font-size:var(--icon-fs, 20px);line-height:1}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}.ptech-btn-icon .btn-icon{font-size:var(--icon-fs, 20px)}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatMiniFabButton, selector: "button[mat-mini-fab]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1448
+ `, isInline: true, styles: [".pill-style{border-radius:20px}.ptech-btn{min-height:var(--btn-h, 36px);padding:var(--btn-pad, 0 14px);display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-icon-wrapper{display:inline-flex;align-items:center;justify-content:center}.btn-icon{font-size:var(--icon-fs, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center}.btn-label{font-size:var(--btn-fs, 15px);margin-left:2px;line-height:1;display:inline-flex;align-items:center;transform:translateY(-3.5px)}.btn-spinner{display:inline-flex;align-items:center;justify-content:center;margin-right:5px;margin-top:5px}.btn-spinner ::ng-deep .mat-mdc-progress-spinner{margin:0;vertical-align:middle}.ptech-btn.ptech-btn-icon.mat-mdc-icon-button{width:auto!important;display:inline-flex;align-items:center;justify-content:center}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}.ptech-btn-icon .btn-icon{font-size:var(--icon-fs, 20px)}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatMiniFabButton, selector: "button[mat-mini-fab]", exportAs: ["matButton"] }, { kind: "component", type: i2$1.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i6.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1300
1449
  }
1301
1450
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
1302
1451
  type: Component,
@@ -1320,10 +1469,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1320
1469
  [style.--btn-pad]="sizeCfg.pad"
1321
1470
  [style.width]="fullWidth ? '100%' : null"
1322
1471
  [style.color]="textColor"
1323
- [style.background-color]="customBackground">
1324
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1325
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1326
- <span class="btn-label">{{ label }}</span>
1472
+ [style.background-color]="customBackground"
1473
+ (click)="onInnerClick($event)"
1474
+ >
1475
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1476
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1477
+ <mat-icon
1478
+ *ngIf="!loading && icon"
1479
+ class="btn-icon"
1480
+ [ngStyle]="iconStyle"
1481
+ >
1482
+ {{ icon }}
1483
+ </mat-icon>
1484
+
1485
+ <mat-progress-spinner
1486
+ *ngIf="loading"
1487
+ class="btn-spinner"
1488
+ [diameter]="spinnerDiameter"
1489
+ mode="indeterminate"
1490
+ ></mat-progress-spinner>
1491
+ </span>
1492
+
1493
+ <span class="btn-label">{{ label }}</span>
1494
+
1327
1495
  </button>
1328
1496
 
1329
1497
  <!-- RAISED -->
@@ -1343,10 +1511,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1343
1511
  [style.--btn-pad]="sizeCfg.pad"
1344
1512
  [style.width]="fullWidth ? '100%' : null"
1345
1513
  [style.color]="textColor"
1346
- [style.background-color]="customBackground">
1347
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1348
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1349
- <span class="btn-label">{{ label }}</span>
1514
+ [style.background-color]="customBackground"
1515
+ (click)="onInnerClick($event)"
1516
+ >
1517
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1518
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1519
+ <mat-icon
1520
+ *ngIf="!loading && icon"
1521
+ class="btn-icon"
1522
+ [ngStyle]="iconStyle">
1523
+ {{ icon }}
1524
+ </mat-icon>
1525
+
1526
+ <mat-progress-spinner
1527
+ *ngIf="loading"
1528
+ class="btn-spinner"
1529
+ [diameter]="spinnerDiameter"
1530
+ mode="indeterminate">
1531
+ </mat-progress-spinner>
1532
+ </span>
1533
+
1534
+ <span class="btn-label">{{ label }}</span>
1350
1535
  </button>
1351
1536
 
1352
1537
  <!-- STROKED -->
@@ -1365,10 +1550,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1365
1550
  [style.--btn-fs.px]="sizeCfg.font"
1366
1551
  [style.--btn-pad]="sizeCfg.pad"
1367
1552
  [style.width]="fullWidth ? '100%' : null"
1368
- [style.color]="textColor">
1369
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1370
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1371
- <span class="btn-label">{{ label }}</span>
1553
+ [style.color]="textColor"
1554
+ (click)="onInnerClick($event)"
1555
+ >
1556
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1557
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1558
+ <mat-icon
1559
+ *ngIf="!loading && icon"
1560
+ class="btn-icon"
1561
+ [ngStyle]="iconStyle"
1562
+ >
1563
+ {{ icon }}
1564
+ </mat-icon>
1565
+
1566
+ <mat-progress-spinner
1567
+ *ngIf="loading"
1568
+ class="btn-spinner"
1569
+ [diameter]="spinnerDiameter"
1570
+ mode="indeterminate"
1571
+ ></mat-progress-spinner>
1572
+ </span>
1573
+
1574
+ <span class="btn-label">{{ label }}</span>
1575
+
1372
1576
  </button>
1373
1577
 
1374
1578
  <!-- FLAT -->
@@ -1388,10 +1592,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1388
1592
  [style.--btn-pad]="sizeCfg.pad"
1389
1593
  [style.width]="fullWidth ? '100%' : null"
1390
1594
  [style.color]="textColor"
1391
- [style.background-color]="customBackground">
1392
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1393
- <mat-progress-spinner *ngIf="loading" diameter="18" mode="indeterminate"></mat-progress-spinner>
1394
- <span class="btn-label">{{ label }}</span>
1595
+ [style.background-color]="customBackground"
1596
+ (click)="onInnerClick($event)"
1597
+ >
1598
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1599
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1600
+ <mat-icon
1601
+ *ngIf="!loading && icon"
1602
+ class="btn-icon"
1603
+ [ngStyle]="iconStyle"
1604
+ >
1605
+ {{ icon }}
1606
+ </mat-icon>
1607
+
1608
+ <mat-progress-spinner
1609
+ *ngIf="loading"
1610
+ class="btn-spinner"
1611
+ [diameter]="spinnerDiameter"
1612
+ mode="indeterminate"
1613
+ ></mat-progress-spinner>
1614
+ </span>
1615
+
1616
+ <span class="btn-label">{{ label }}</span>
1617
+
1395
1618
  </button>
1396
1619
 
1397
1620
  <!-- ICON -->
@@ -1406,9 +1629,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1406
1629
  [attr.aria-busy]="loading ? 'true' : null"
1407
1630
  [attr.aria-label]="ariaLabel || label || icon || null"
1408
1631
  [style.width]="fullWidth ? '100%' : null"
1409
- [style.--icon-fs.px]="sizeCfg.iconIconOnly">
1410
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1411
- <mat-progress-spinner *ngIf="loading" diameter="20" mode="indeterminate"></mat-progress-spinner>
1632
+ [style.--icon-fs.px]="sizeCfg.iconIconOnly"
1633
+ (click)="onInnerClick($event)"
1634
+ >
1635
+ <span class="btn-icon-wrapper">
1636
+ <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1637
+ <mat-progress-spinner
1638
+ *ngIf="loading"
1639
+ class="btn-spinner"
1640
+ [diameter]="spinnerDiameter"
1641
+ mode="indeterminate"
1642
+ ></mat-progress-spinner>
1643
+ </span>
1412
1644
  </button>
1413
1645
 
1414
1646
  <!-- FAB -->
@@ -1420,9 +1652,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1420
1652
  [color]="themeColor"
1421
1653
  [matTooltip]="tooltip || null"
1422
1654
  [attr.aria-busy]="loading ? 'true' : null"
1423
- [attr.aria-label]="ariaLabel || label || icon || null">
1424
- <mat-icon *ngIf="!loading" class="btn-icon" [style.fontSize.px]="sizeCfg.iconFab">{{ icon }}</mat-icon>
1425
- <mat-progress-spinner *ngIf="loading" diameter="24" mode="indeterminate"></mat-progress-spinner>
1655
+ [attr.aria-label]="ariaLabel || label || icon || null"
1656
+ (click)="onInnerClick($event)"
1657
+ >
1658
+ <span class="btn-icon-wrapper">
1659
+ <mat-icon *ngIf="!loading" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1660
+ <mat-progress-spinner
1661
+ *ngIf="loading"
1662
+ class="btn-spinner"
1663
+ [diameter]="spinnerDiameter"
1664
+ mode="indeterminate"
1665
+ ></mat-progress-spinner>
1666
+ </span>
1426
1667
  </button>
1427
1668
 
1428
1669
  <!-- MINI-FAB -->
@@ -1434,17 +1675,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1434
1675
  [color]="themeColor"
1435
1676
  [matTooltip]="tooltip || null"
1436
1677
  [attr.aria-busy]="loading ? 'true' : null"
1437
- [attr.aria-label]="ariaLabel || label || icon || null">
1438
- <mat-icon *ngIf="!loading" class="btn-icon" [style.fontSize.px]="sizeCfg.iconMiniFab">{{ icon }}</mat-icon>
1439
- <mat-progress-spinner *ngIf="loading" diameter="20" mode="indeterminate"></mat-progress-spinner>
1678
+ [attr.aria-label]="ariaLabel || label || icon || null"
1679
+ (click)="onInnerClick($event)"
1680
+ >
1681
+ <span class="btn-icon-wrapper">
1682
+ <mat-icon *ngIf="!loading" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1683
+ <mat-progress-spinner
1684
+ *ngIf="loading"
1685
+ class="btn-spinner"
1686
+ [diameter]="spinnerDiameter"
1687
+ mode="indeterminate"
1688
+ ></mat-progress-spinner>
1689
+ </span>
1440
1690
  </button>
1441
1691
 
1442
1692
  <!-- EXTENDED FAB -->
1443
1693
  <button
1444
1694
  *ngSwitchCase="'extended'"
1445
- class="ptech-btn"
1695
+ class="ptech-btn mat-mdc-extended-fab"
1446
1696
  mat-fab
1447
- class="mat-mdc-extended-fab"
1448
1697
  [disabled]="disabled || loading"
1449
1698
  [color]="themeColor"
1450
1699
  [matTooltip]="tooltip || null"
@@ -1453,10 +1702,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1453
1702
  [style.--btn-h.px]="sizeCfg.h"
1454
1703
  [style.--icon-fs.px]="sizeCfg.icon"
1455
1704
  [style.--btn-fs.px]="sizeCfg.font"
1456
- [style.--btn-pad]="sizeCfg.pad">
1457
- <mat-icon *ngIf="!loading && icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1458
- <mat-progress-spinner *ngIf="loading" diameter="20" mode="indeterminate"></mat-progress-spinner>
1459
- <span class="btn-label">{{ label }}</span>
1705
+ [style.--btn-pad]="sizeCfg.pad"
1706
+ (click)="onInnerClick($event)"
1707
+ >
1708
+ <!-- SLOT FIXO DO ÍCONE/SPINNER -->
1709
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1710
+ <mat-icon
1711
+ *ngIf="!loading && icon"
1712
+ class="btn-icon"
1713
+ [ngStyle]="iconStyle"
1714
+ >
1715
+ {{ icon }}
1716
+ </mat-icon>
1717
+
1718
+ <mat-progress-spinner
1719
+ *ngIf="loading"
1720
+ class="btn-spinner"
1721
+ [diameter]="spinnerDiameter"
1722
+ mode="indeterminate"
1723
+ ></mat-progress-spinner>
1724
+ </span>
1725
+
1726
+ <span class="btn-label">{{ label }}</span>
1727
+
1460
1728
  </button>
1461
1729
 
1462
1730
  <!-- LINK -->
@@ -1476,13 +1744,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1476
1744
  [style.--btn-fs.px]="sizeCfg.font"
1477
1745
  [style.--btn-pad]="sizeCfg.pad"
1478
1746
  [style.color]="textColor"
1479
- (click)="$event && (disabled || loading) ? $event.preventDefault() : null">
1480
- <mat-icon *ngIf="icon" class="btn-icon" [ngStyle]="iconStyle">{{ icon }}</mat-icon>
1481
- {{ label }}
1747
+ (click)="onLinkClick($event)">
1748
+ <span class="btn-icon-wrapper" *ngIf="icon || loading">
1749
+ <mat-icon *ngIf="!loading && icon" class="btn-icon">{{ icon }}</mat-icon>
1750
+ <mat-progress-spinner
1751
+ *ngIf="loading"
1752
+ class="btn-spinner"
1753
+ [diameter]="spinnerDiameter"
1754
+ mode="indeterminate"
1755
+ ></mat-progress-spinner>
1756
+ </span>
1757
+
1758
+ <span class="btn-label">{{ label }}</span>
1482
1759
  </a>
1483
1760
 
1484
1761
  </ng-container>
1485
- `, styles: [".pill-style{border-radius:20px}.ptech-btn{min-height:var(--btn-h, 36px);padding:var(--btn-pad, 0 14px);display:inline-flex;align-items:center;justify-content:center;gap:6px}.ptech-btn.ptech-btn-icon.mat-mdc-icon-button{width:auto!important;display:inline-flex;align-items:center;justify-content:center}.btn-label{font-size:var(--btn-fs, 15px);margin-left:2px}.btn-icon{font-size:var(--icon-fs, 20px);line-height:1}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}.ptech-btn-icon .btn-icon{font-size:var(--icon-fs, 20px)}\n"] }]
1762
+ `, styles: [".pill-style{border-radius:20px}.ptech-btn{min-height:var(--btn-h, 36px);padding:var(--btn-pad, 0 14px);display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-icon-wrapper{display:inline-flex;align-items:center;justify-content:center}.btn-icon{font-size:var(--icon-fs, 20px);line-height:1;display:inline-flex;align-items:center;justify-content:center}.btn-label{font-size:var(--btn-fs, 15px);margin-left:2px;line-height:1;display:inline-flex;align-items:center;transform:translateY(-3.5px)}.btn-spinner{display:inline-flex;align-items:center;justify-content:center;margin-right:5px;margin-top:5px}.btn-spinner ::ng-deep .mat-mdc-progress-spinner{margin:0;vertical-align:middle}.ptech-btn.ptech-btn-icon.mat-mdc-icon-button{width:auto!important;display:inline-flex;align-items:center;justify-content:center}button,a[mat-button]{cursor:pointer;transition:box-shadow .3s,transform .2s}button:hover{box-shadow:0 4px 8px #0003;transform:translateY(-2px)}button:active{box-shadow:0 2px 4px #0003;transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;transform:none;box-shadow:none}.ptech-btn-icon .btn-icon{font-size:var(--icon-fs, 20px)}\n"] }]
1486
1763
  }], propDecorators: { type: [{
1487
1764
  type: Input
1488
1765
  }], size: [{
@@ -1507,6 +1784,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1507
1784
  type: Input
1508
1785
  }], color: [{
1509
1786
  type: Input
1787
+ }], buttonClick: [{
1788
+ type: Output
1510
1789
  }] } });
1511
1790
 
1512
1791
  class BadgeComponent {
@@ -2157,6 +2436,53 @@ class StringUtil {
2157
2436
  }
2158
2437
  return formatted;
2159
2438
  }
2439
+ // ---------------------------------------------------------------------------
2440
+ // ELLIPSIS HELPERS
2441
+ // ---------------------------------------------------------------------------
2442
+ /**
2443
+ * Corta por quantidade de caracteres.
2444
+ * Ex: ellipsisByChars('Vodafone Spain', 4) => 'Voda…'
2445
+ */
2446
+ static ellipsisByChars(value, maxChars, suffix = '…') {
2447
+ if (this.isEmpty(value))
2448
+ return this.EMPTY;
2449
+ if (!maxChars || maxChars <= 0)
2450
+ return value;
2451
+ const text = String(value);
2452
+ if (text.length <= maxChars)
2453
+ return text;
2454
+ return text.substring(0, maxChars) + (suffix ?? '');
2455
+ }
2456
+ /**
2457
+ * Corta por quantidade de palavras (separado por espaços).
2458
+ * Ex: ellipsisByWords('Vodafone Spain', 1) => 'Vodafone…'
2459
+ */
2460
+ static ellipsisByWords(value, maxWords, suffix = '…') {
2461
+ if (this.isEmpty(value))
2462
+ return this.EMPTY;
2463
+ if (!maxWords || maxWords <= 0)
2464
+ return value;
2465
+ const text = String(value).trim();
2466
+ const words = text.split(/\s+/);
2467
+ if (words.length <= maxWords)
2468
+ return text;
2469
+ return words.slice(0, maxWords).join(' ') + (suffix ?? '');
2470
+ }
2471
+ /**
2472
+ * “Smart”: se tiver espaço, corta por palavras; se não, corta por caracteres.
2473
+ * Ex:
2474
+ * smartEllipsis('Vodafone Spain', 4, 1) => 'Vodafone…'
2475
+ * smartEllipsis('Vodafone', 4, 1) => 'Voda…'
2476
+ */
2477
+ static smartEllipsis(value, maxChars, maxWords, suffix = '…') {
2478
+ if (this.isEmpty(value))
2479
+ return this.EMPTY;
2480
+ const text = String(value);
2481
+ if (text.includes(' ')) {
2482
+ return this.ellipsisByWords(text, maxWords, suffix);
2483
+ }
2484
+ return this.ellipsisByChars(text, maxChars, suffix);
2485
+ }
2160
2486
  }
2161
2487
 
2162
2488
  // projects/.../components/select-entity/select-entity.component.ts
@@ -2171,6 +2497,7 @@ class SelectEntityComponent extends BaseField {
2171
2497
  searchPlaceholder = 'Pesquise...';
2172
2498
  multipleTriggerMax = 1;
2173
2499
  entities = [];
2500
+ selectClick = new EventEmitter();
2174
2501
  selectionChange = new EventEmitter();
2175
2502
  loadingChange = new EventEmitter();
2176
2503
  filteredEntities = [];
@@ -2249,13 +2576,16 @@ class SelectEntityComponent extends BaseField {
2249
2576
  return parts.every(p => txt.includes(p));
2250
2577
  });
2251
2578
  }
2579
+ emitClick(event) {
2580
+ this.selectClick.emit(event);
2581
+ }
2252
2582
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEntityComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
2253
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectEntityComponent, isStandalone: true, selector: "ptech-select-entity", inputs: { multiple: "multiple", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", idProp: "idProp", searchPlaceholder: "searchPlaceholder", multipleTriggerMax: "multipleTriggerMax", entities: "entities" }, outputs: { selectionChange: "selectionChange", loadingChange: "loadingChange" }, providers: [{
2583
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SelectEntityComponent, isStandalone: true, selector: "ptech-select-entity", inputs: { multiple: "multiple", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", idProp: "idProp", searchPlaceholder: "searchPlaceholder", multipleTriggerMax: "multipleTriggerMax", entities: "entities" }, outputs: { selectClick: "selectClick", selectionChange: "selectionChange", loadingChange: "loadingChange" }, providers: [{
2254
2584
  provide: NG_VALUE_ACCESSOR,
2255
2585
  useExisting: forwardRef(() => SelectEntityComponent),
2256
2586
  multi: true,
2257
2587
  }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<!-- igual ao seu, sem grid/col locais -->
2258
- <div class="select-entity-container">
2588
+ <div class="select-entity-container" (click)="emitClick($event)">
2259
2589
  <mat-form-field class="select-entity-field" [appearance]="appearance">
2260
2590
  <mat-label>
2261
2591
  {{ label }}
@@ -2311,7 +2641,7 @@ class SelectEntityComponent extends BaseField {
2311
2641
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SelectEntityComponent, decorators: [{
2312
2642
  type: Component,
2313
2643
  args: [{ selector: 'ptech-select-entity', standalone: true, imports: [CoreMaterialModule], template: `<!-- igual ao seu, sem grid/col locais -->
2314
- <div class="select-entity-container">
2644
+ <div class="select-entity-container" (click)="emitClick($event)">
2315
2645
  <mat-form-field class="select-entity-field" [appearance]="appearance">
2316
2646
  <mat-label>
2317
2647
  {{ label }}
@@ -2383,6 +2713,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
2383
2713
  type: Input
2384
2714
  }], entities: [{
2385
2715
  type: Input
2716
+ }], selectClick: [{
2717
+ type: Output
2386
2718
  }], selectionChange: [{
2387
2719
  type: Output
2388
2720
  }], loadingChange: [{
@@ -3639,10 +3971,74 @@ class ActionDialogComponent {
3639
3971
  this.msg.errorMessage('Número inválido', 'Deve haver no mínimo 1 conexão.');
3640
3972
  }
3641
3973
  onSelectionChange($event) {
3642
- //console.log('selection changed', $event);
3974
+ // console.log('selection changed', $event);
3643
3975
  }
3644
3976
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3645
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <div *ngFor=\"let field of data.fields\">\n <!-- Select -->\n <ng-container *ngIf=\"field.type === 'select'\">\n <ptech-select-entity\n [label]=\"field.label\"\n [entities]=\"field.options ?? []\"\n [(ngModel)]=\"field.value\"\n property=\"label\"\n placeholder=\"Selecione\"\n (selectionChange)=\"onSelectionChange($event)\"\n ></ptech-select-entity>\n </ng-container>\n\n <!-- Number -->\n <ng-container *ngIf=\"field.type === 'number'\">\n <mat-label>{{ field.label }}</mat-label>\n <ptech-quantity-items\n [quantity]=\"field.value\"\n (quantityChange)=\"changeQuantity($event)\"\n ></ptech-quantity-items>\n </ng-container>\n\n <!-- Text -->\n <ng-container *ngIf=\"field.type === 'text'\">\n <mat-form-field appearance=\"fill\">\n <mat-label>{{ field.label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"field.value\" />\n </mat-form-field>\n </ng-container>\n\n <!-- Checkbox -->\n <ng-container *ngIf=\"field.type === 'checkbox'\">\n <mat-checkbox [(ngModel)]=\"field.value\">{{ field.label }}</mat-checkbox>\n </ng-container>\n </div>\n\n <mat-card *ngIf=\"data.infoBox\">\n <pre>{{ data.infoBox }}</pre>\n </mat-card>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.confirmText || 'Confirmar'\"\n icon=\"assignment_turned_in\"\n color=\"primary\"\n (click)=\"onConfirm()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.cancelText || 'Fechar'\"\n icon=\"close\"\n color=\"#dc3545\"\n (click)=\"onCancel()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:#2b2e34!important;color:#fff!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"] }, { kind: "component", type: SelectEntityComponent, selector: "ptech-select-entity", inputs: ["multiple", "property", "propertyEnum", "propertyFn", "idProp", "searchPlaceholder", "multipleTriggerMax", "entities"], outputs: ["selectionChange", "loadingChange"] }, { kind: "component", type: QuantityItemsComponent, selector: "ptech-quantity-items", inputs: ["min", "max", "step", "quantity"], outputs: ["quantityChange"] }] });
3977
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: `
3978
+ <h2 mat-dialog-title>{{ data.title }}</h2>
3979
+
3980
+ <mat-dialog-content class="dialog-content-custom">
3981
+ <div *ngFor="let field of data.fields">
3982
+ <!-- Select -->
3983
+ <ng-container *ngIf="field.type === 'select'">
3984
+ <ptech-select-entity
3985
+ [label]="field.label"
3986
+ [entities]="field.options ?? []"
3987
+ [(ngModel)]="field.value"
3988
+ property="label"
3989
+ placeholder="Selecione"
3990
+ (selectionChange)="onSelectionChange($event)"
3991
+ ></ptech-select-entity>
3992
+ </ng-container>
3993
+
3994
+ <!-- Number -->
3995
+ <ng-container *ngIf="field.type === 'number'">
3996
+ <mat-label>{{ field.label }}</mat-label>
3997
+ <ptech-quantity-items
3998
+ [quantity]="field.value"
3999
+ (quantityChange)="changeQuantity($event)"
4000
+ ></ptech-quantity-items>
4001
+ </ng-container>
4002
+
4003
+ <!-- Text -->
4004
+ <ng-container *ngIf="field.type === 'text'">
4005
+ <mat-form-field appearance="fill">
4006
+ <mat-label>{{ field.label }}</mat-label>
4007
+ <input matInput type="text" [(ngModel)]="field.value" />
4008
+ </mat-form-field>
4009
+ </ng-container>
4010
+
4011
+ <!-- Checkbox -->
4012
+ <ng-container *ngIf="field.type === 'checkbox'">
4013
+ <mat-checkbox [(ngModel)]="field.value">{{ field.label }}</mat-checkbox>
4014
+ </ng-container>
4015
+ </div>
4016
+
4017
+ <mat-card *ngIf="data.infoBox">
4018
+ <pre>{{ data.infoBox }}</pre>
4019
+ </mat-card>
4020
+ </mat-dialog-content>
4021
+
4022
+ <mat-dialog-actions align="end">
4023
+ <ptech-button
4024
+ class="action-btn"
4025
+ type="raised"
4026
+ [label]="data.confirmText || 'Confirmar'"
4027
+ icon="assignment_turned_in"
4028
+ color="primary"
4029
+ (click)="onConfirm()"
4030
+ ></ptech-button>
4031
+
4032
+ <ptech-button
4033
+ class="action-btn"
4034
+ type="raised"
4035
+ [label]="data.cancelText || 'Fechar'"
4036
+ icon="close"
4037
+ color="#dc3545"
4038
+ (click)="onCancel()"
4039
+ ></ptech-button>
4040
+ </mat-dialog-actions>
4041
+ `, isInline: true, styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:#2b2e34!important;color:#fff!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}.dialog-content-custom{padding-top:10px!important}:host ::ng-deep .mat-mdc-dialog-title{margin-bottom:0!important;padding-bottom:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }, { kind: "component", type: SelectEntityComponent, selector: "ptech-select-entity", inputs: ["multiple", "property", "propertyEnum", "propertyFn", "idProp", "searchPlaceholder", "multipleTriggerMax", "entities"], outputs: ["selectClick", "selectionChange", "loadingChange"] }, { kind: "component", type: QuantityItemsComponent, selector: "ptech-quantity-items", inputs: ["min", "max", "step", "quantity"], outputs: ["quantityChange"] }] });
3646
4042
  }
3647
4043
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionDialogComponent, decorators: [{
3648
4044
  type: Component,
@@ -3653,7 +4049,71 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3653
4049
  ButtonComponent,
3654
4050
  SelectEntityComponent,
3655
4051
  QuantityItemsComponent,
3656
- ], template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <div *ngFor=\"let field of data.fields\">\n <!-- Select -->\n <ng-container *ngIf=\"field.type === 'select'\">\n <ptech-select-entity\n [label]=\"field.label\"\n [entities]=\"field.options ?? []\"\n [(ngModel)]=\"field.value\"\n property=\"label\"\n placeholder=\"Selecione\"\n (selectionChange)=\"onSelectionChange($event)\"\n ></ptech-select-entity>\n </ng-container>\n\n <!-- Number -->\n <ng-container *ngIf=\"field.type === 'number'\">\n <mat-label>{{ field.label }}</mat-label>\n <ptech-quantity-items\n [quantity]=\"field.value\"\n (quantityChange)=\"changeQuantity($event)\"\n ></ptech-quantity-items>\n </ng-container>\n\n <!-- Text -->\n <ng-container *ngIf=\"field.type === 'text'\">\n <mat-form-field appearance=\"fill\">\n <mat-label>{{ field.label }}</mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"field.value\" />\n </mat-form-field>\n </ng-container>\n\n <!-- Checkbox -->\n <ng-container *ngIf=\"field.type === 'checkbox'\">\n <mat-checkbox [(ngModel)]=\"field.value\">{{ field.label }}</mat-checkbox>\n </ng-container>\n </div>\n\n <mat-card *ngIf=\"data.infoBox\">\n <pre>{{ data.infoBox }}</pre>\n </mat-card>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.confirmText || 'Confirmar'\"\n icon=\"assignment_turned_in\"\n color=\"primary\"\n (click)=\"onConfirm()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n type=\"raised\"\n [label]=\"data.cancelText || 'Fechar'\"\n icon=\"close\"\n color=\"#dc3545\"\n (click)=\"onCancel()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:#2b2e34!important;color:#fff!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}\n"] }]
4052
+ ], template: `
4053
+ <h2 mat-dialog-title>{{ data.title }}</h2>
4054
+
4055
+ <mat-dialog-content class="dialog-content-custom">
4056
+ <div *ngFor="let field of data.fields">
4057
+ <!-- Select -->
4058
+ <ng-container *ngIf="field.type === 'select'">
4059
+ <ptech-select-entity
4060
+ [label]="field.label"
4061
+ [entities]="field.options ?? []"
4062
+ [(ngModel)]="field.value"
4063
+ property="label"
4064
+ placeholder="Selecione"
4065
+ (selectionChange)="onSelectionChange($event)"
4066
+ ></ptech-select-entity>
4067
+ </ng-container>
4068
+
4069
+ <!-- Number -->
4070
+ <ng-container *ngIf="field.type === 'number'">
4071
+ <mat-label>{{ field.label }}</mat-label>
4072
+ <ptech-quantity-items
4073
+ [quantity]="field.value"
4074
+ (quantityChange)="changeQuantity($event)"
4075
+ ></ptech-quantity-items>
4076
+ </ng-container>
4077
+
4078
+ <!-- Text -->
4079
+ <ng-container *ngIf="field.type === 'text'">
4080
+ <mat-form-field appearance="fill">
4081
+ <mat-label>{{ field.label }}</mat-label>
4082
+ <input matInput type="text" [(ngModel)]="field.value" />
4083
+ </mat-form-field>
4084
+ </ng-container>
4085
+
4086
+ <!-- Checkbox -->
4087
+ <ng-container *ngIf="field.type === 'checkbox'">
4088
+ <mat-checkbox [(ngModel)]="field.value">{{ field.label }}</mat-checkbox>
4089
+ </ng-container>
4090
+ </div>
4091
+
4092
+ <mat-card *ngIf="data.infoBox">
4093
+ <pre>{{ data.infoBox }}</pre>
4094
+ </mat-card>
4095
+ </mat-dialog-content>
4096
+
4097
+ <mat-dialog-actions align="end">
4098
+ <ptech-button
4099
+ class="action-btn"
4100
+ type="raised"
4101
+ [label]="data.confirmText || 'Confirmar'"
4102
+ icon="assignment_turned_in"
4103
+ color="primary"
4104
+ (click)="onConfirm()"
4105
+ ></ptech-button>
4106
+
4107
+ <ptech-button
4108
+ class="action-btn"
4109
+ type="raised"
4110
+ [label]="data.cancelText || 'Fechar'"
4111
+ icon="close"
4112
+ color="#dc3545"
4113
+ (click)="onCancel()"
4114
+ ></ptech-button>
4115
+ </mat-dialog-actions>
4116
+ `, styles: [".action-btn{margin-right:5px!important}mat-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:#2b2e34!important;color:#fff!important;padding:12px 16px!important;border-radius:6px;font-size:13px;line-height:18px;margin-bottom:24px;white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card pre{margin:0;white-space:pre-wrap!important;word-break:break-word!important;overflow-wrap:break-word!important}.dialog-content-custom{padding-top:10px!important}:host ::ng-deep .mat-mdc-dialog-title{margin-bottom:0!important;padding-bottom:0!important}\n"] }]
3657
4117
  }], ctorParameters: () => [{ type: undefined, decorators: [{
3658
4118
  type: Inject,
3659
4119
  args: [MAT_DIALOG_DATA]
@@ -3666,10 +4126,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
3666
4126
 
3667
4127
  class InfoDetailDialogComponent {
3668
4128
  data;
4129
+ dialogRef;
3669
4130
  whatsappUrl;
3670
4131
  msgService;
3671
- constructor(data, messageService) {
4132
+ constructor(data, dialogRef, messageService) {
3672
4133
  this.data = data;
4134
+ this.dialogRef = dialogRef;
3673
4135
  this.msgService = messageService ?? DefaultConsoleMessageService;
3674
4136
  const text = encodeURIComponent(data.rawContent || '');
3675
4137
  this.whatsappUrl = `https://api.whatsapp.com/send?phone=&text=${text}`;
@@ -3686,65 +4148,103 @@ class InfoDetailDialogComponent {
3686
4148
  this.msgService.errorMessage('Erro ao copiar', 'Não foi possível copiar. Tente novamente.');
3687
4149
  });
3688
4150
  }
3689
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4151
+ close() {
4152
+ this.dialogRef.close();
4153
+ }
4154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
3690
4155
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InfoDetailDialogComponent, isStandalone: true, selector: "ptech-info-detail-dialog", ngImport: i0, template: `
3691
4156
  <h2 mat-dialog-title>{{ data.title }}</h2>
3692
- <mat-dialog-content>
4157
+
4158
+ <mat-dialog-content class="info-dialog-content">
3693
4159
  <div [innerHTML]="data.content"></div>
3694
4160
  </mat-dialog-content>
4161
+
3695
4162
  <mat-dialog-actions align="end">
3696
4163
  <a
3697
4164
  *ngIf="data.rawContent"
3698
- mat-flat-button
3699
- color="primary"
3700
4165
  [href]="whatsappUrl"
3701
4166
  target="_blank"
4167
+ class="link-reset"
3702
4168
  >
3703
- WhatsApp
4169
+ <ptech-button
4170
+ class="action-btn"
4171
+ type="raised"
4172
+ label="WhatsApp"
4173
+ icon="share"
4174
+ color="#00c853"
4175
+ ></ptech-button>
3704
4176
  </a>
3705
4177
 
3706
- <button *ngIf="data.rawContent" mat-flat-button (click)="copyToClipboard()">
3707
- Copiar
3708
- </button>
3709
-
3710
- <button mat-button mat-dialog-close>Fechar</button>
4178
+ <ptech-button
4179
+ *ngIf="data.rawContent"
4180
+ class="action-btn"
4181
+ type="raised"
4182
+ label="Copiar"
4183
+ icon="content_copy"
4184
+ color="primary"
4185
+ (click)="copyToClipboard()"
4186
+ ></ptech-button>
4187
+
4188
+ <ptech-button
4189
+ class="action-btn"
4190
+ type="raised"
4191
+ label="Fechar"
4192
+ icon="close"
4193
+ color="#dc3545"
4194
+ (click)="close()"
4195
+ ></ptech-button>
3711
4196
  </mat-dialog-actions>
3712
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: i1$4.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }] });
4197
+ `, isInline: true, styles: [".info-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal;word-break:break-word;overflow-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:1.4}.action-btn{margin-top:8px;margin-left:8px}.link-reset{text-decoration:none}@media (max-width: 600px){.info-dialog-content{padding:12px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }] });
3713
4198
  }
3714
4199
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
3715
4200
  type: Component,
3716
- args: [{
3717
- selector: 'ptech-info-detail-dialog',
3718
- standalone: true,
3719
- imports: [CommonModule, CoreMaterialModule],
3720
- template: `
4201
+ args: [{ selector: 'ptech-info-detail-dialog', standalone: true, imports: [CommonModule, CoreMaterialModule, ButtonComponent], template: `
3721
4202
  <h2 mat-dialog-title>{{ data.title }}</h2>
3722
- <mat-dialog-content>
4203
+
4204
+ <mat-dialog-content class="info-dialog-content">
3723
4205
  <div [innerHTML]="data.content"></div>
3724
4206
  </mat-dialog-content>
4207
+
3725
4208
  <mat-dialog-actions align="end">
3726
4209
  <a
3727
4210
  *ngIf="data.rawContent"
3728
- mat-flat-button
3729
- color="primary"
3730
4211
  [href]="whatsappUrl"
3731
4212
  target="_blank"
4213
+ class="link-reset"
3732
4214
  >
3733
- WhatsApp
4215
+ <ptech-button
4216
+ class="action-btn"
4217
+ type="raised"
4218
+ label="WhatsApp"
4219
+ icon="share"
4220
+ color="#00c853"
4221
+ ></ptech-button>
3734
4222
  </a>
3735
4223
 
3736
- <button *ngIf="data.rawContent" mat-flat-button (click)="copyToClipboard()">
3737
- Copiar
3738
- </button>
3739
-
3740
- <button mat-button mat-dialog-close>Fechar</button>
4224
+ <ptech-button
4225
+ *ngIf="data.rawContent"
4226
+ class="action-btn"
4227
+ type="raised"
4228
+ label="Copiar"
4229
+ icon="content_copy"
4230
+ color="primary"
4231
+ (click)="copyToClipboard()"
4232
+ ></ptech-button>
4233
+
4234
+ <ptech-button
4235
+ class="action-btn"
4236
+ type="raised"
4237
+ label="Fechar"
4238
+ icon="close"
4239
+ color="#dc3545"
4240
+ (click)="close()"
4241
+ ></ptech-button>
3741
4242
  </mat-dialog-actions>
3742
- `,
3743
- }]
4243
+ `, styles: [".info-dialog-content{max-height:calc(90vh - 120px);overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;white-space:normal;word-break:break-word;overflow-wrap:break-word;font-family:Inter,sans-serif;font-size:14px;line-height:1.4}.action-btn{margin-top:8px;margin-left:8px}.link-reset{text-decoration:none}@media (max-width: 600px){.info-dialog-content{padding:12px}}\n"] }]
3744
4244
  }], ctorParameters: () => [{ type: undefined, decorators: [{
3745
4245
  type: Inject,
3746
4246
  args: [MAT_DIALOG_DATA]
3747
- }] }, { type: undefined, decorators: [{
4247
+ }] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
3748
4248
  type: Optional
3749
4249
  }, {
3750
4250
  type: Inject,
@@ -3770,11 +4270,31 @@ class InfoDetailComponent {
3770
4270
  });
3771
4271
  }
3772
4272
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
3773
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InfoDetailComponent, isStandalone: true, selector: "ptech-info-detail", inputs: { infoTitle: "infoTitle", infoContent: "infoContent", infoRawContent: "infoRawContent", iconColor: "iconColor" }, ngImport: i0, template: "<div class=\"info-trigger\" (click)=\"openInfo()\" [style.color]=\"iconColor\">\n <button mat-icon-button>\n <mat-icon [style.color]=\"iconColor\">info</mat-icon>\n </button>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, #ffffff)}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger button.mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;min-width:0;width:2rem;height:2rem;border-radius:50%;background:transparent!important;transition:background-color .2s ease}.info-trigger button.mat-mdc-icon-button:hover{background-color:#ffffff14}.info-trigger mat-icon{font-size:1.5rem;line-height:1;color:inherit}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, #00bfff)}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger button.mat-mdc-icon-button{width:2.25rem;height:2.25rem}.info-trigger mat-icon{font-size:1.75rem}.info-trigger .detail-link{font-size:.95rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
4273
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: InfoDetailComponent, isStandalone: true, selector: "ptech-info-detail", inputs: { infoTitle: "infoTitle", infoContent: "infoContent", infoRawContent: "infoRawContent", iconColor: "iconColor" }, ngImport: i0, template: `
4274
+ <div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
4275
+ <ptech-button
4276
+ type="icon"
4277
+ icon="info"
4278
+ [color]="iconColor"
4279
+ ></ptech-button>
4280
+
4281
+ <ng-content></ng-content>
4282
+ </div>
4283
+ `, isInline: true, styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, #ffffff)}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, #00bfff)}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger .detail-link{font-size:.95rem}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }] });
3774
4284
  }
3775
4285
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: InfoDetailComponent, decorators: [{
3776
4286
  type: Component,
3777
- args: [{ selector: 'ptech-info-detail', standalone: true, imports: [CommonModule, CoreMaterialModule], template: "<div class=\"info-trigger\" (click)=\"openInfo()\" [style.color]=\"iconColor\">\n <button mat-icon-button>\n <mat-icon [style.color]=\"iconColor\">info</mat-icon>\n </button>\n <ng-content></ng-content>\n</div>\n", styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, #ffffff)}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger button.mat-mdc-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;min-width:0;width:2rem;height:2rem;border-radius:50%;background:transparent!important;transition:background-color .2s ease}.info-trigger button.mat-mdc-icon-button:hover{background-color:#ffffff14}.info-trigger mat-icon{font-size:1.5rem;line-height:1;color:inherit}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, #00bfff)}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger button.mat-mdc-icon-button{width:2.25rem;height:2.25rem}.info-trigger mat-icon{font-size:1.75rem}.info-trigger .detail-link{font-size:.95rem}}\n"] }]
4287
+ args: [{ selector: 'ptech-info-detail', standalone: true, imports: [CommonModule, ButtonComponent], template: `
4288
+ <div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
4289
+ <ptech-button
4290
+ type="icon"
4291
+ icon="info"
4292
+ [color]="iconColor"
4293
+ ></ptech-button>
4294
+
4295
+ <ng-content></ng-content>
4296
+ </div>
4297
+ `, styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, #ffffff)}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, #00bfff)}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger .detail-link{font-size:.95rem}}\n"] }]
3778
4298
  }], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
3779
4299
  type: Input
3780
4300
  }], infoContent: [{
@@ -3830,7 +4350,7 @@ class ActionResultDialogComponent {
3830
4350
  window.open(this.whatsappUrl, '_blank');
3831
4351
  }
3832
4352
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
3833
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <!-- Conte\u00FAdo HTML (sanitizado) -->\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\n <!-- Detalhes estruturados (JSON etc.) -->\n <div *ngIf=\"data.details\" class=\"details\">\n <mat-card>\n <pre>{{ data.details | json }}</pre>\n </mat-card>\n </div>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"#00c853\"\n (click)=\"openWhatsApp()\"\n ></ptech-button>\n\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"Copiar\"\n icon=\"file_copy\"\n type=\"raised\"\n color=\"primary\"\n (click)=\"copyToClipboard()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n label=\"Fechar\"\n icon=\"close\"\n type=\"raised\"\n color=\"#dc3545\"\n (click)=\"close()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [":host{display:block;color:#fff;padding:24px;border-radius:10px;min-width:420px;font-family:Inter,sans-serif;background:transparent}h2[mat-dialog-title]{font-size:20px;font-weight:600;margin-bottom:24px}mat-dialog-content{display:flex;flex-direction:column;gap:20px}mat-dialog-content div[innerHTML]{color:#fff;font-size:14px;line-height:20px}.details{background:#2b2e34!important;color:#fff!important;padding:14px 18px!important;border-radius:8px;font-size:14px;line-height:20px;font-family:monospace;white-space:pre-wrap;word-break:break-word;box-shadow:none;width:100%}.details mat-card{background:transparent;box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:#fff}mat-dialog-actions{display:flex;justify-content:flex-end;gap:12px}mat-dialog-actions button,mat-dialog-actions a[mat-flat-button]{border-radius:6px!important;font-weight:500;padding:8px 18px;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"] }] });
4353
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<h2 mat-dialog-title>{{ data.title }}</h2>\n\n<mat-dialog-content>\n <!-- Conte\u00FAdo HTML (sanitizado) -->\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\n <!-- Detalhes estruturados (JSON etc.) -->\n <div *ngIf=\"data.details\" class=\"details\">\n <mat-card>\n <pre>{{ data.details | json }}</pre>\n </mat-card>\n </div>\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"#00c853\"\n (click)=\"openWhatsApp()\"\n ></ptech-button>\n\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"Copiar\"\n icon=\"file_copy\"\n type=\"raised\"\n color=\"primary\"\n (click)=\"copyToClipboard()\"\n ></ptech-button>\n\n <ptech-button\n class=\"action-btn\"\n label=\"Fechar\"\n icon=\"close\"\n type=\"raised\"\n color=\"#dc3545\"\n (click)=\"close()\"\n ></ptech-button>\n</mat-dialog-actions>\n", styles: [":host{display:block;color:#fff;padding:24px;border-radius:10px;min-width:420px;font-family:Inter,sans-serif;background:transparent}h2[mat-dialog-title]{font-size:20px;font-weight:600;margin-bottom:24px}mat-dialog-content{display:flex;flex-direction:column;gap:20px}mat-dialog-content div[innerHTML]{color:#fff;font-size:14px;line-height:20px}.details{background:#2b2e34!important;color:#fff!important;padding:14px 18px!important;border-radius:8px;font-size:14px;line-height:20px;font-family:monospace;white-space:pre-wrap;word-break:break-word;box-shadow:none;width:100%}.details mat-card{background:transparent;box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:#fff}mat-dialog-actions{display:flex;justify-content:flex-end;gap:12px}mat-dialog-actions button,mat-dialog-actions a[mat-flat-button]{border-radius:6px!important;font-weight:500;padding:8px 18px;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i4$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$4.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }] });
3834
4354
  }
3835
4355
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
3836
4356
  type: Component,
@@ -4976,6 +5496,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
4976
5496
  args: ['style.grid-column']
4977
5497
  }] } });
4978
5498
 
5499
+ class TableCellDirective {
5500
+ template;
5501
+ columnKey;
5502
+ constructor(template) {
5503
+ this.template = template;
5504
+ }
5505
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableCellDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
5506
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: TableCellDirective, isStandalone: true, selector: "ng-template[tableCell]", inputs: { columnKey: ["tableCell", "columnKey"] }, ngImport: i0 });
5507
+ }
5508
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableCellDirective, decorators: [{
5509
+ type: Directive,
5510
+ args: [{
5511
+ selector: 'ng-template[tableCell]',
5512
+ standalone: true,
5513
+ }]
5514
+ }], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { columnKey: [{
5515
+ type: Input,
5516
+ args: ['tableCell']
5517
+ }] } });
5518
+
4979
5519
  class TableComponent {
4980
5520
  title = '';
4981
5521
  loading = false;
@@ -5000,6 +5540,26 @@ class TableComponent {
5000
5540
  displayedColumns = [];
5001
5541
  selection = new SelectionModel(this.selectMultipleRow, []);
5002
5542
  selectedIdSet = new Set();
5543
+ cellTemplates;
5544
+ cellTemplateMap = new Map();
5545
+ ngAfterContentInit() {
5546
+ this.rebuildTemplateMap();
5547
+ // se os templates mudarem dinamicamente (raro), sincroniza:
5548
+ this.cellTemplates.changes.subscribe(() => this.rebuildTemplateMap());
5549
+ }
5550
+ rebuildTemplateMap() {
5551
+ this.cellTemplateMap.clear();
5552
+ if (!this.cellTemplates)
5553
+ return;
5554
+ for (const dir of this.cellTemplates) {
5555
+ if (dir.columnKey) {
5556
+ this.cellTemplateMap.set(dir.columnKey, dir.template);
5557
+ }
5558
+ }
5559
+ }
5560
+ getCellTemplate(key) {
5561
+ return this.cellTemplateMap.get(key) ?? null;
5562
+ }
5003
5563
  ngOnChanges(changes) {
5004
5564
  // colunas
5005
5565
  const cols = [...this.columns.map(c => c.key)];
@@ -5105,6 +5665,14 @@ class TableComponent {
5105
5665
  const v = this.read(row, key);
5106
5666
  return typeof v === 'string' ? v : null;
5107
5667
  }
5668
+ resolveColor(row, col) {
5669
+ if (!col.color)
5670
+ return null;
5671
+ const c = typeof col.color === 'function'
5672
+ ? col.color(row)
5673
+ : col.color;
5674
+ return c || null;
5675
+ }
5108
5676
  read(obj, path) {
5109
5677
  if (!obj || !path)
5110
5678
  return null;
@@ -5137,12 +5705,23 @@ class TableComponent {
5137
5705
  });
5138
5706
  }
5139
5707
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5140
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", columns: "columns", actions: "actions", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards" }, outputs: { selectedRows: "selectedRows", selectedIds: "selectedIds", page: "page" }, usesOnChanges: true, ngImport: i0, template: `
5708
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", columns: "columns", actions: "actions", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards" }, outputs: { selectedRows: "selectedRows", selectedIds: "selectedIds", page: "page" }, queries: [{ propertyName: "cellTemplates", predicate: TableCellDirective }], usesOnChanges: true, ngImport: i0, template: `
5141
5709
  <div class="table-container mat-elevation-z8">
5142
5710
  <div class="header-row" *ngIf="title">
5143
5711
  <h3>{{ title }}</h3>
5144
5712
  </div>
5145
5713
 
5714
+ <!-- ⬇⬇ NOVO BLOCO: filtros projetados -->
5715
+ <div class="table-filters">
5716
+ <ng-content select="[table-filters]"></ng-content>
5717
+ </div>
5718
+
5719
+ <!-- ações dos filtros (botões) -->
5720
+ <div class="table-filters-actions">
5721
+ <ng-content select="[table-filters-actions]"></ng-content>
5722
+ </div>
5723
+ <!-- ⬆⬆ -->
5724
+
5146
5725
  <ng-container *ngIf="!loading; else loadingTpl">
5147
5726
  <!-- TABELA (desktop / tablet ou mobile sem cards) -->
5148
5727
  <div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
@@ -5184,49 +5763,62 @@ class TableComponent {
5184
5763
  {{ c.header }}
5185
5764
  </th>
5186
5765
  <td
5187
- mat-cell
5188
- *matCellDef="let row"
5189
- [style.text-align]="c.align || 'left'"
5190
- >
5191
- <ng-container [ngSwitch]="c.type || 'text'">
5192
- <!-- IMAGEM -->
5193
- <ng-container *ngSwitchCase="'image'">
5194
- <img
5195
- class="td-thumb"
5196
- [src]="resolveImage(row, c) || imageFallback"
5197
- [alt]="resolveAlt(row, c) || ''"
5198
- [style.width]="c.width || '40px'"
5199
- [style.height]="c.width || '40px'"
5200
- style="object-fit: cover; border-radius: 6px"
5201
- (error)="onImgError($event)"
5202
- />
5203
- </ng-container>
5204
-
5205
- <!-- DATE -->
5206
- <ng-container *ngSwitchCase="'date'">
5207
- {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5208
- </ng-container>
5209
-
5210
- <!-- BADGE -->
5211
- <ng-container *ngSwitchCase="'badge'">
5212
- <ptech-badge-stack>
5213
- <ng-container *ngFor="let b of getBadges(row, c)">
5214
- <ptech-badge
5215
- [label]="b.label"
5216
- [color]="b.color"
5217
- [variant]="b.variant"
5218
- [size]="b.size"
5219
- ></ptech-badge>
5220
- </ng-container>
5221
- </ptech-badge-stack>
5222
- </ng-container>
5223
-
5224
- <!-- DEFAULT (text/number) -->
5225
- <ng-container *ngSwitchDefault>
5226
- {{ renderCell(row, c) }}
5227
- </ng-container>
5228
- </ng-container>
5229
- </td>
5766
+ mat-cell
5767
+ *matCellDef="let row"
5768
+ [style.text-align]="c.align || 'left'"
5769
+ >
5770
+ <!-- se existir template customizado para a coluna, usa ele -->
5771
+ <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
5772
+ <ng-container
5773
+ *ngTemplateOutlet="tpl; context: { $implicit: row }"
5774
+ ></ng-container>
5775
+ </ng-container>
5776
+
5777
+ <!-- fallback: comportamento atual -->
5778
+ <ng-template #defaultCell>
5779
+ <ng-container [ngSwitch]="c.type || 'text'">
5780
+ <!-- IMAGEM -->
5781
+ <ng-container *ngSwitchCase="'image'">
5782
+ <img
5783
+ class="td-thumb"
5784
+ [src]="resolveImage(row, c) || imageFallback"
5785
+ [alt]="resolveAlt(row, c) || ''"
5786
+ [style.width]="c.width || '40px'"
5787
+ [style.height]="c.width || '40px'"
5788
+ style="object-fit: cover; border-radius: 6px"
5789
+ (error)="onImgError($event)"
5790
+ />
5791
+ </ng-container>
5792
+
5793
+ <!-- DATE -->
5794
+ <ng-container *ngSwitchCase="'date'">
5795
+ {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5796
+ </ng-container>
5797
+
5798
+ <!-- BADGE -->
5799
+ <ng-container *ngSwitchCase="'badge'">
5800
+ <ptech-badge-stack>
5801
+ <ng-container *ngFor="let b of getBadges(row, c)">
5802
+ <ptech-badge
5803
+ [label]="b.label"
5804
+ [color]="b.color"
5805
+ [variant]="b.variant"
5806
+ [size]="b.size"
5807
+ ></ptech-badge>
5808
+ </ng-container>
5809
+ </ptech-badge-stack>
5810
+ </ng-container>
5811
+
5812
+ <!-- DEFAULT (text/number) -->
5813
+ <ng-container *ngSwitchDefault>
5814
+ <span [style.color]="resolveColor(row, c)">
5815
+ {{ renderCell(row, c) }}
5816
+ </span>
5817
+ </ng-container>
5818
+ </ng-container>
5819
+ </ng-template>
5820
+ </td>
5821
+
5230
5822
  </ng-container>
5231
5823
 
5232
5824
  <ng-container *ngIf="actions.length" matColumnDef="__actions">
@@ -5258,96 +5850,111 @@ class TableComponent {
5258
5850
  </div>
5259
5851
 
5260
5852
  <!-- CARDS (mobile) -->
5261
- <div
5262
- *ngIf="responsiveCards"
5263
- class="cards-container hide-on-desktop"
5264
- >
5265
- <div
5266
- *ngFor="let row of data"
5267
- class="card mat-elevation-z8"
5268
- [class.selected]="isSelected(row)"
5269
- >
5270
- <!-- seleção no card -->
5271
- <div *ngIf="selectRow" class="card-select">
5272
- <mat-checkbox
5273
- *ngIf="selectMultipleRow"
5274
- [checked]="isSelected(row)"
5275
- (change)="toggleRow(row)"
5276
- aria-label="Selecionar card"
5277
- ></mat-checkbox>
5278
-
5279
- <mat-radio-button
5280
- *ngIf="!selectMultipleRow"
5281
- [checked]="isSelected(row)"
5282
- (change)="toggleRow(row)"
5283
- aria-label="Selecionar card"
5284
- ></mat-radio-button>
5285
- </div>
5853
+ <div
5854
+ *ngIf="responsiveCards"
5855
+ class="cards-container hide-on-desktop"
5856
+ >
5857
+ <div
5858
+ *ngFor="let row of data"
5859
+ class="card mat-elevation-z8"
5860
+ [class.selected]="isSelected(row)"
5861
+ >
5862
+ <!-- seleção no card -->
5863
+ <div *ngIf="selectRow" class="card-select">
5864
+ <mat-checkbox
5865
+ *ngIf="selectMultipleRow"
5866
+ [checked]="isSelected(row)"
5867
+ (change)="toggleRow(row)"
5868
+ aria-label="Selecionar card"
5869
+ ></mat-checkbox>
5286
5870
 
5287
- <div
5288
- *ngFor="let c of columns"
5289
- class="card-row"
5290
- [ngSwitch]="c.type || 'text'"
5291
- >
5292
- <!-- IMAGEM -->
5293
- <ng-container *ngSwitchCase="'image'">
5294
- <img
5295
- class="td-thumb"
5296
- [src]="resolveImage(row, c) || imageFallback"
5297
- [alt]="resolveAlt(row, c) || ''"
5298
- style="width: 64px; height: 64px; object-fit: cover; border-radius: 6px"
5299
- (error)="onImgError($event)"
5300
- />
5301
- </ng-container>
5302
-
5303
- <!-- BADGE -->
5304
- <ng-container *ngSwitchCase="'badge'">
5305
- <div><strong>{{ c.header }}:</strong></div>
5306
- <ptech-badge-stack>
5307
- <ng-container *ngFor="let b of getBadges(row, c)">
5308
- <ptech-badge
5309
- [label]="b.label"
5310
- [color]="b.color"
5311
- [variant]="b.variant"
5312
- [size]="b.size"
5313
- ></ptech-badge>
5314
- </ng-container>
5315
- </ptech-badge-stack>
5316
- </ng-container>
5317
-
5318
- <!-- DATE -->
5319
- <ng-container *ngSwitchCase="'date'">
5320
- <div>
5321
- <strong>{{ c.header }}:</strong>
5322
- {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5323
- </div>
5324
- </ng-container>
5325
-
5326
- <!-- DEFAULT -->
5327
- <ng-container *ngSwitchDefault>
5328
- <div>
5329
- <strong>{{ c.header }}:</strong>
5330
- {{ renderCell(row, c) }}
5331
- </div>
5332
- </ng-container>
5333
- </div>
5871
+ <mat-radio-button
5872
+ *ngIf="!selectMultipleRow"
5873
+ [checked]="isSelected(row)"
5874
+ (change)="toggleRow(row)"
5875
+ aria-label="Selecionar card"
5876
+ ></mat-radio-button>
5877
+ </div>
5334
5878
 
5335
- <!-- AÇÕES -->
5336
- <div *ngIf="actions?.length" class="card-actions">
5337
- <ng-container *ngFor="let a of actions">
5338
- <ptech-button
5339
- *ngIf="!a.visible || a.visible(row)"
5340
- icon="{{ a.icon }}"
5341
- type="icon"
5342
- iconColor="{{ a.color }}"
5343
- tooltip="{{ a.tooltip || '' }}"
5344
- (click)="a.handler(row)"
5345
- >
5346
- </ptech-button>
5347
- </ng-container>
5348
- </div>
5349
- </div>
5879
+ <div *ngFor="let c of columns" class="card-row">
5880
+ <!-- Se existir template customizado para a coluna, usa ele
5881
+ e adiciona o header dinamicamente -->
5882
+ <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCardCell">
5883
+ <div>
5884
+ <strong>{{ c.header }}:</strong>
5885
+ <ng-container
5886
+ *ngTemplateOutlet="tpl; context: { $implicit: row }"
5887
+ ></ng-container>
5888
+ </div>
5889
+ </ng-container>
5890
+
5891
+ <!-- Fallback para colunas sem template -->
5892
+ <ng-template #defaultCardCell>
5893
+ <div [ngSwitch]="c.type || 'text'">
5894
+ <!-- IMAGEM -->
5895
+ <ng-container *ngSwitchCase="'image'">
5896
+ <img
5897
+ class="td-thumb"
5898
+ [src]="resolveImage(row, c) || imageFallback"
5899
+ [alt]="resolveAlt(row, c) || ''"
5900
+ style="width: 64px; height: 64px; object-fit: cover; border-radius: 6px"
5901
+ (error)="onImgError($event)"
5902
+ />
5903
+ </ng-container>
5904
+
5905
+ <!-- BADGE -->
5906
+ <ng-container *ngSwitchCase="'badge'">
5907
+ <div><strong>{{ c.header }}:</strong></div>
5908
+ <ptech-badge-stack>
5909
+ <ng-container *ngFor="let b of getBadges(row, c)">
5910
+ <ptech-badge
5911
+ [label]="b.label"
5912
+ [color]="b.color"
5913
+ [variant]="b.variant"
5914
+ [size]="b.size"
5915
+ ></ptech-badge>
5916
+ </ng-container>
5917
+ </ptech-badge-stack>
5918
+ </ng-container>
5919
+
5920
+ <!-- DATE -->
5921
+ <ng-container *ngSwitchCase="'date'">
5922
+ <div>
5923
+ <strong>{{ c.header }}:</strong>
5924
+ {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5350
5925
  </div>
5926
+ </ng-container>
5927
+
5928
+ <!-- DEFAULT -->
5929
+ <ng-container *ngSwitchDefault>
5930
+ <div>
5931
+ <strong>{{ c.header }}:</strong>
5932
+ <span [style.color]="resolveColor(row, c)">
5933
+ {{ renderCell(row, c) }}
5934
+ </span>
5935
+ </div>
5936
+ </ng-container>
5937
+ </div>
5938
+ </ng-template>
5939
+ </div>
5940
+
5941
+
5942
+ <!-- AÇÕES -->
5943
+ <div *ngIf="actions?.length" class="card-actions">
5944
+ <ng-container *ngFor="let a of actions">
5945
+ <ptech-button
5946
+ *ngIf="!a.visible || a.visible(row)"
5947
+ icon="{{ a.icon }}"
5948
+ type="icon"
5949
+ iconColor="{{ a.color }}"
5950
+ tooltip="{{ a.tooltip || '' }}"
5951
+ (click)="a.handler(row)"
5952
+ >
5953
+ </ptech-button>
5954
+ </ng-container>
5955
+ </div>
5956
+ </div>
5957
+ </div>
5351
5958
 
5352
5959
  <mat-paginator
5353
5960
  class="mat-paginator"
@@ -5369,16 +5976,27 @@ class TableComponent {
5369
5976
  <mat-progress-bar mode="indeterminate"></mat-progress-bar>
5370
5977
  </ng-template>
5371
5978
  </div>
5372
- `, isInline: true, styles: [":host{display:block;max-width:100%;overflow-x:hidden}.table-container{margin:20px!important;max-width:100%}.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}.td-thumb{box-shadow:0 1px 2px #00000026;background:#f4f6fa}tr.selected{background-color:#2196f314}.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}@media (max-width: 768px){.table-container{margin:8px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:8px}.card{padding:12px;border-radius:8px;background:#fff;border:1px solid transparent;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.card.selected{border-color:#1976d2;background-color:#f3f7ff;box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:8px}.card-row{margin-bottom:4px;font-size:14px}.card-row strong{font-weight:600}.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.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2$4.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$4.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$4.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i2$4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$4.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$4.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$4.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5979
+ `, isInline: true, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto}.td-thumb{box-shadow:0 1px 2px #00000026;background:#f4f6fa}tr.selected{background-color:#2196f314}.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:0 4px 6px #0003;margin:0 0 10px!important;background-color:#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:#fff!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid rgba(0,0,0,.06);box-shadow:0 1px 3px #0000001f;font-family:inherit}.card.selected{border-color:#1976d2;background-color:#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 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:#0009;margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:#000000de}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2$4.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i2$4.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i2$4.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i2$4.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i2$4.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i2$4.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i2$4.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i2$4.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i2$4.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i2$4.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i3$5.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$3.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i7$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color"], outputs: ["buttonClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5373
5980
  }
5374
5981
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableComponent, decorators: [{
5375
5982
  type: Component,
5376
- args: [{ selector: 'ptech-table', standalone: true, imports: [CoreMaterialModule, BadgeComponent, BadgeStackComponent, ButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
5983
+ args: [{ selector: 'ptech-table', standalone: true, imports: [CoreMaterialModule, BadgeComponent, BadgeStackComponent, ButtonComponent, TableCellDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: `
5377
5984
  <div class="table-container mat-elevation-z8">
5378
5985
  <div class="header-row" *ngIf="title">
5379
5986
  <h3>{{ title }}</h3>
5380
5987
  </div>
5381
5988
 
5989
+ <!-- ⬇⬇ NOVO BLOCO: filtros projetados -->
5990
+ <div class="table-filters">
5991
+ <ng-content select="[table-filters]"></ng-content>
5992
+ </div>
5993
+
5994
+ <!-- ações dos filtros (botões) -->
5995
+ <div class="table-filters-actions">
5996
+ <ng-content select="[table-filters-actions]"></ng-content>
5997
+ </div>
5998
+ <!-- ⬆⬆ -->
5999
+
5382
6000
  <ng-container *ngIf="!loading; else loadingTpl">
5383
6001
  <!-- TABELA (desktop / tablet ou mobile sem cards) -->
5384
6002
  <div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
@@ -5420,49 +6038,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
5420
6038
  {{ c.header }}
5421
6039
  </th>
5422
6040
  <td
5423
- mat-cell
5424
- *matCellDef="let row"
5425
- [style.text-align]="c.align || 'left'"
5426
- >
5427
- <ng-container [ngSwitch]="c.type || 'text'">
5428
- <!-- IMAGEM -->
5429
- <ng-container *ngSwitchCase="'image'">
5430
- <img
5431
- class="td-thumb"
5432
- [src]="resolveImage(row, c) || imageFallback"
5433
- [alt]="resolveAlt(row, c) || ''"
5434
- [style.width]="c.width || '40px'"
5435
- [style.height]="c.width || '40px'"
5436
- style="object-fit: cover; border-radius: 6px"
5437
- (error)="onImgError($event)"
5438
- />
5439
- </ng-container>
5440
-
5441
- <!-- DATE -->
5442
- <ng-container *ngSwitchCase="'date'">
5443
- {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5444
- </ng-container>
5445
-
5446
- <!-- BADGE -->
5447
- <ng-container *ngSwitchCase="'badge'">
5448
- <ptech-badge-stack>
5449
- <ng-container *ngFor="let b of getBadges(row, c)">
5450
- <ptech-badge
5451
- [label]="b.label"
5452
- [color]="b.color"
5453
- [variant]="b.variant"
5454
- [size]="b.size"
5455
- ></ptech-badge>
5456
- </ng-container>
5457
- </ptech-badge-stack>
5458
- </ng-container>
5459
-
5460
- <!-- DEFAULT (text/number) -->
5461
- <ng-container *ngSwitchDefault>
5462
- {{ renderCell(row, c) }}
5463
- </ng-container>
5464
- </ng-container>
5465
- </td>
6041
+ mat-cell
6042
+ *matCellDef="let row"
6043
+ [style.text-align]="c.align || 'left'"
6044
+ >
6045
+ <!-- se existir template customizado para a coluna, usa ele -->
6046
+ <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
6047
+ <ng-container
6048
+ *ngTemplateOutlet="tpl; context: { $implicit: row }"
6049
+ ></ng-container>
6050
+ </ng-container>
6051
+
6052
+ <!-- fallback: comportamento atual -->
6053
+ <ng-template #defaultCell>
6054
+ <ng-container [ngSwitch]="c.type || 'text'">
6055
+ <!-- IMAGEM -->
6056
+ <ng-container *ngSwitchCase="'image'">
6057
+ <img
6058
+ class="td-thumb"
6059
+ [src]="resolveImage(row, c) || imageFallback"
6060
+ [alt]="resolveAlt(row, c) || ''"
6061
+ [style.width]="c.width || '40px'"
6062
+ [style.height]="c.width || '40px'"
6063
+ style="object-fit: cover; border-radius: 6px"
6064
+ (error)="onImgError($event)"
6065
+ />
6066
+ </ng-container>
6067
+
6068
+ <!-- DATE -->
6069
+ <ng-container *ngSwitchCase="'date'">
6070
+ {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
6071
+ </ng-container>
6072
+
6073
+ <!-- BADGE -->
6074
+ <ng-container *ngSwitchCase="'badge'">
6075
+ <ptech-badge-stack>
6076
+ <ng-container *ngFor="let b of getBadges(row, c)">
6077
+ <ptech-badge
6078
+ [label]="b.label"
6079
+ [color]="b.color"
6080
+ [variant]="b.variant"
6081
+ [size]="b.size"
6082
+ ></ptech-badge>
6083
+ </ng-container>
6084
+ </ptech-badge-stack>
6085
+ </ng-container>
6086
+
6087
+ <!-- DEFAULT (text/number) -->
6088
+ <ng-container *ngSwitchDefault>
6089
+ <span [style.color]="resolveColor(row, c)">
6090
+ {{ renderCell(row, c) }}
6091
+ </span>
6092
+ </ng-container>
6093
+ </ng-container>
6094
+ </ng-template>
6095
+ </td>
6096
+
5466
6097
  </ng-container>
5467
6098
 
5468
6099
  <ng-container *ngIf="actions.length" matColumnDef="__actions">
@@ -5494,96 +6125,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
5494
6125
  </div>
5495
6126
 
5496
6127
  <!-- CARDS (mobile) -->
5497
- <div
5498
- *ngIf="responsiveCards"
5499
- class="cards-container hide-on-desktop"
5500
- >
5501
- <div
5502
- *ngFor="let row of data"
5503
- class="card mat-elevation-z8"
5504
- [class.selected]="isSelected(row)"
5505
- >
5506
- <!-- seleção no card -->
5507
- <div *ngIf="selectRow" class="card-select">
5508
- <mat-checkbox
5509
- *ngIf="selectMultipleRow"
5510
- [checked]="isSelected(row)"
5511
- (change)="toggleRow(row)"
5512
- aria-label="Selecionar card"
5513
- ></mat-checkbox>
5514
-
5515
- <mat-radio-button
5516
- *ngIf="!selectMultipleRow"
5517
- [checked]="isSelected(row)"
5518
- (change)="toggleRow(row)"
5519
- aria-label="Selecionar card"
5520
- ></mat-radio-button>
5521
- </div>
6128
+ <div
6129
+ *ngIf="responsiveCards"
6130
+ class="cards-container hide-on-desktop"
6131
+ >
6132
+ <div
6133
+ *ngFor="let row of data"
6134
+ class="card mat-elevation-z8"
6135
+ [class.selected]="isSelected(row)"
6136
+ >
6137
+ <!-- seleção no card -->
6138
+ <div *ngIf="selectRow" class="card-select">
6139
+ <mat-checkbox
6140
+ *ngIf="selectMultipleRow"
6141
+ [checked]="isSelected(row)"
6142
+ (change)="toggleRow(row)"
6143
+ aria-label="Selecionar card"
6144
+ ></mat-checkbox>
5522
6145
 
5523
- <div
5524
- *ngFor="let c of columns"
5525
- class="card-row"
5526
- [ngSwitch]="c.type || 'text'"
5527
- >
5528
- <!-- IMAGEM -->
5529
- <ng-container *ngSwitchCase="'image'">
5530
- <img
5531
- class="td-thumb"
5532
- [src]="resolveImage(row, c) || imageFallback"
5533
- [alt]="resolveAlt(row, c) || ''"
5534
- style="width: 64px; height: 64px; object-fit: cover; border-radius: 6px"
5535
- (error)="onImgError($event)"
5536
- />
5537
- </ng-container>
5538
-
5539
- <!-- BADGE -->
5540
- <ng-container *ngSwitchCase="'badge'">
5541
- <div><strong>{{ c.header }}:</strong></div>
5542
- <ptech-badge-stack>
5543
- <ng-container *ngFor="let b of getBadges(row, c)">
5544
- <ptech-badge
5545
- [label]="b.label"
5546
- [color]="b.color"
5547
- [variant]="b.variant"
5548
- [size]="b.size"
5549
- ></ptech-badge>
5550
- </ng-container>
5551
- </ptech-badge-stack>
5552
- </ng-container>
5553
-
5554
- <!-- DATE -->
5555
- <ng-container *ngSwitchCase="'date'">
5556
- <div>
5557
- <strong>{{ c.header }}:</strong>
5558
- {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5559
- </div>
5560
- </ng-container>
5561
-
5562
- <!-- DEFAULT -->
5563
- <ng-container *ngSwitchDefault>
5564
- <div>
5565
- <strong>{{ c.header }}:</strong>
5566
- {{ renderCell(row, c) }}
5567
- </div>
5568
- </ng-container>
5569
- </div>
6146
+ <mat-radio-button
6147
+ *ngIf="!selectMultipleRow"
6148
+ [checked]="isSelected(row)"
6149
+ (change)="toggleRow(row)"
6150
+ aria-label="Selecionar card"
6151
+ ></mat-radio-button>
6152
+ </div>
5570
6153
 
5571
- <!-- AÇÕES -->
5572
- <div *ngIf="actions?.length" class="card-actions">
5573
- <ng-container *ngFor="let a of actions">
5574
- <ptech-button
5575
- *ngIf="!a.visible || a.visible(row)"
5576
- icon="{{ a.icon }}"
5577
- type="icon"
5578
- iconColor="{{ a.color }}"
5579
- tooltip="{{ a.tooltip || '' }}"
5580
- (click)="a.handler(row)"
5581
- >
5582
- </ptech-button>
5583
- </ng-container>
5584
- </div>
5585
- </div>
6154
+ <div *ngFor="let c of columns" class="card-row">
6155
+ <!-- Se existir template customizado para a coluna, usa ele
6156
+ e adiciona o header dinamicamente -->
6157
+ <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCardCell">
6158
+ <div>
6159
+ <strong>{{ c.header }}:</strong>
6160
+ <ng-container
6161
+ *ngTemplateOutlet="tpl; context: { $implicit: row }"
6162
+ ></ng-container>
6163
+ </div>
6164
+ </ng-container>
6165
+
6166
+ <!-- Fallback para colunas sem template -->
6167
+ <ng-template #defaultCardCell>
6168
+ <div [ngSwitch]="c.type || 'text'">
6169
+ <!-- IMAGEM -->
6170
+ <ng-container *ngSwitchCase="'image'">
6171
+ <img
6172
+ class="td-thumb"
6173
+ [src]="resolveImage(row, c) || imageFallback"
6174
+ [alt]="resolveAlt(row, c) || ''"
6175
+ style="width: 64px; height: 64px; object-fit: cover; border-radius: 6px"
6176
+ (error)="onImgError($event)"
6177
+ />
6178
+ </ng-container>
6179
+
6180
+ <!-- BADGE -->
6181
+ <ng-container *ngSwitchCase="'badge'">
6182
+ <div><strong>{{ c.header }}:</strong></div>
6183
+ <ptech-badge-stack>
6184
+ <ng-container *ngFor="let b of getBadges(row, c)">
6185
+ <ptech-badge
6186
+ [label]="b.label"
6187
+ [color]="b.color"
6188
+ [variant]="b.variant"
6189
+ [size]="b.size"
6190
+ ></ptech-badge>
6191
+ </ng-container>
6192
+ </ptech-badge-stack>
6193
+ </ng-container>
6194
+
6195
+ <!-- DATE -->
6196
+ <ng-container *ngSwitchCase="'date'">
6197
+ <div>
6198
+ <strong>{{ c.header }}:</strong>
6199
+ {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
5586
6200
  </div>
6201
+ </ng-container>
6202
+
6203
+ <!-- DEFAULT -->
6204
+ <ng-container *ngSwitchDefault>
6205
+ <div>
6206
+ <strong>{{ c.header }}:</strong>
6207
+ <span [style.color]="resolveColor(row, c)">
6208
+ {{ renderCell(row, c) }}
6209
+ </span>
6210
+ </div>
6211
+ </ng-container>
6212
+ </div>
6213
+ </ng-template>
6214
+ </div>
6215
+
6216
+
6217
+ <!-- AÇÕES -->
6218
+ <div *ngIf="actions?.length" class="card-actions">
6219
+ <ng-container *ngFor="let a of actions">
6220
+ <ptech-button
6221
+ *ngIf="!a.visible || a.visible(row)"
6222
+ icon="{{ a.icon }}"
6223
+ type="icon"
6224
+ iconColor="{{ a.color }}"
6225
+ tooltip="{{ a.tooltip || '' }}"
6226
+ (click)="a.handler(row)"
6227
+ >
6228
+ </ptech-button>
6229
+ </ng-container>
6230
+ </div>
6231
+ </div>
6232
+ </div>
5587
6233
 
5588
6234
  <mat-paginator
5589
6235
  class="mat-paginator"
@@ -5605,7 +6251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
5605
6251
  <mat-progress-bar mode="indeterminate"></mat-progress-bar>
5606
6252
  </ng-template>
5607
6253
  </div>
5608
- `, styles: [":host{display:block;max-width:100%;overflow-x:hidden}.table-container{margin:20px!important;max-width:100%}.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}.td-thumb{box-shadow:0 1px 2px #00000026;background:#f4f6fa}tr.selected{background-color:#2196f314}.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}@media (max-width: 768px){.table-container{margin:8px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:8px}.card{padding:12px;border-radius:8px;background:#fff;border:1px solid transparent;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.card.selected{border-color:#1976d2;background-color:#f3f7ff;box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:8px}.card-row{margin-bottom:4px;font-size:14px}.card-row strong{font-weight:600}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
6254
+ `, styles: [":host{display:block;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}.table-container{width:100%;max-width:100%;box-sizing:border-box;margin:0 0 20px;padding:0 16px}.table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-scroll table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:auto}.td-thumb{box-shadow:0 1px 2px #00000026;background:#f4f6fa}tr.selected{background-color:#2196f314}.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:0 4px 6px #0003;margin:0 0 10px!important;background-color:#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:#fff!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding:0 8px;margin:0 0 12px}.hide-on-mobile{display:none}.hide-on-desktop{display:block}.cards-container{display:flex;flex-direction:column;gap:12px;margin:0 0 8px}.card{padding:8px 12px;border-radius:8px;background:#fff;border:1px solid rgba(0,0,0,.06);box-shadow:0 1px 3px #0000001f;font-family:inherit}.card.selected{border-color:#1976d2;background-color:#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 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:#0009;margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:#000000de}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
5609
6255
  }], propDecorators: { title: [{
5610
6256
  type: Input
5611
6257
  }], loading: [{
@@ -5640,6 +6286,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
5640
6286
  type: Output
5641
6287
  }], page: [{
5642
6288
  type: Output
6289
+ }], cellTemplates: [{
6290
+ type: ContentChildren,
6291
+ args: [TableCellDirective]
5643
6292
  }] } });
5644
6293
 
5645
6294
  class SnackbarMessageService {
@@ -6306,7 +6955,8 @@ class DirectivesModule {
6306
6955
  DateMaskDirective,
6307
6956
  DynamicTabDirective,
6308
6957
  PtechGridDirective,
6309
- PtechColDirective], exports: [UpperCaseDirective,
6958
+ PtechColDirective,
6959
+ TableCellDirective], exports: [UpperCaseDirective,
6310
6960
  LowerCaseDirective,
6311
6961
  RedDirective,
6312
6962
  ClickCatcherDirective,
@@ -6317,7 +6967,8 @@ class DirectivesModule {
6317
6967
  DateMaskDirective,
6318
6968
  DynamicTabDirective,
6319
6969
  PtechGridDirective,
6320
- PtechColDirective] });
6970
+ PtechColDirective,
6971
+ TableCellDirective] });
6321
6972
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DirectivesModule });
6322
6973
  }
6323
6974
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DirectivesModule, decorators: [{
@@ -6335,7 +6986,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
6335
6986
  DateMaskDirective,
6336
6987
  DynamicTabDirective,
6337
6988
  PtechGridDirective,
6338
- PtechColDirective
6989
+ PtechColDirective,
6990
+ TableCellDirective
6339
6991
  ],
6340
6992
  exports: [
6341
6993
  UpperCaseDirective,
@@ -6349,7 +7001,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
6349
7001
  DateMaskDirective,
6350
7002
  DynamicTabDirective,
6351
7003
  PtechGridDirective,
6352
- PtechColDirective
7004
+ PtechColDirective,
7005
+ TableCellDirective
6353
7006
  ]
6354
7007
  }]
6355
7008
  }] });
@@ -7317,5 +7970,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
7317
7970
  * Generated bundle index. Do not edit.
7318
7971
  */
7319
7972
 
7320
- export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
7973
+ export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
7321
7974
  //# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map