@pumpkin-tech/pumpkin-tech-ng 0.2.30 → 0.2.31
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.
|
@@ -1069,6 +1069,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1069
1069
|
}] } });
|
|
1070
1070
|
|
|
1071
1071
|
class ButtonComponent extends BaseField {
|
|
1072
|
+
hostDisplay = 'inline-flex';
|
|
1073
|
+
get gridColumn() {
|
|
1074
|
+
return this.hasPtechColAttrs() ? null : 'auto';
|
|
1075
|
+
}
|
|
1076
|
+
constructor(el) {
|
|
1077
|
+
super(el);
|
|
1078
|
+
this.fullWidth = false;
|
|
1079
|
+
}
|
|
1072
1080
|
/** Variante do botão */
|
|
1073
1081
|
type = 'basic';
|
|
1074
1082
|
/** Tamanho: sm | md | lg */
|
|
@@ -1146,7 +1154,7 @@ class ButtonComponent extends BaseField {
|
|
|
1146
1154
|
}
|
|
1147
1155
|
this.buttonClick.emit(event);
|
|
1148
1156
|
}
|
|
1149
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ButtonComponent, deps:
|
|
1157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1150
1158
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", 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: `
|
|
1151
1159
|
<ng-container [ngSwitch]="type">
|
|
1152
1160
|
|
|
@@ -1327,6 +1335,7 @@ class ButtonComponent extends BaseField {
|
|
|
1327
1335
|
[attr.aria-busy]="loading ? 'true' : null"
|
|
1328
1336
|
[attr.aria-label]="ariaLabel || label || icon || null"
|
|
1329
1337
|
[style.width]="fullWidth ? '100%' : null"
|
|
1338
|
+
[style.--btn-icon-size.px]="sizeCfg.h"
|
|
1330
1339
|
[style.--icon-fs.px]="sizeCfg.iconIconOnly"
|
|
1331
1340
|
(click)="onInnerClick($event)"
|
|
1332
1341
|
>
|
|
@@ -1457,7 +1466,7 @@ class ButtonComponent extends BaseField {
|
|
|
1457
1466
|
</a>
|
|
1458
1467
|
|
|
1459
1468
|
</ng-container>
|
|
1460
|
-
`, 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:
|
|
1469
|
+
`, 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:var(--btn-icon-size, 36px)!important;height:var(--btn-icon-size, 36px)!important;min-width:var(--btn-icon-size, 36px)!important;min-height:var(--btn-icon-size, 36px)!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;pointer-events:auto}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.ptech-btn-icon:disabled{opacity:1}.ptech-btn.ptech-btn-icon:disabled .btn-icon{color:var(--app-muted, #9ca3af)!important}.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.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { 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: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1461
1470
|
}
|
|
1462
1471
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1463
1472
|
type: Component,
|
|
@@ -1641,6 +1650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1641
1650
|
[attr.aria-busy]="loading ? 'true' : null"
|
|
1642
1651
|
[attr.aria-label]="ariaLabel || label || icon || null"
|
|
1643
1652
|
[style.width]="fullWidth ? '100%' : null"
|
|
1653
|
+
[style.--btn-icon-size.px]="sizeCfg.h"
|
|
1644
1654
|
[style.--icon-fs.px]="sizeCfg.iconIconOnly"
|
|
1645
1655
|
(click)="onInnerClick($event)"
|
|
1646
1656
|
>
|
|
@@ -1771,8 +1781,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
1771
1781
|
</a>
|
|
1772
1782
|
|
|
1773
1783
|
</ng-container>
|
|
1774
|
-
`, 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:
|
|
1775
|
-
}], propDecorators: { type: [{
|
|
1784
|
+
`, 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:var(--btn-icon-size, 36px)!important;height:var(--btn-icon-size, 36px)!important;min-width:var(--btn-icon-size, 36px)!important;min-height:var(--btn-icon-size, 36px)!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center;pointer-events:auto}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.ptech-btn-icon:disabled{opacity:1}.ptech-btn.ptech-btn-icon:disabled .btn-icon{color:var(--app-muted, #9ca3af)!important}.ptech-btn-icon .btn-icon{font-size:var(--icon-fs, 20px)}\n"] }]
|
|
1785
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { type: [{
|
|
1776
1786
|
type: Input
|
|
1777
1787
|
}], size: [{
|
|
1778
1788
|
type: Input
|
|
@@ -6874,7 +6884,7 @@ class TableComponent {
|
|
|
6874
6884
|
type="icon"
|
|
6875
6885
|
[iconColor]="resolveActionColor(a)"
|
|
6876
6886
|
tooltip="{{ a.tooltip || '' }}"
|
|
6877
|
-
(
|
|
6887
|
+
(buttonClick)="a.handler(r)"
|
|
6878
6888
|
>
|
|
6879
6889
|
</ptech-button>
|
|
6880
6890
|
</ng-container>
|
|
@@ -7016,7 +7026,7 @@ class TableComponent {
|
|
|
7016
7026
|
type="icon"
|
|
7017
7027
|
[iconColor]="resolveActionColor(a)"
|
|
7018
7028
|
tooltip="{{ a.tooltip || '' }}"
|
|
7019
|
-
(
|
|
7029
|
+
(buttonClick)="a.handler(row)"
|
|
7020
7030
|
>
|
|
7021
7031
|
</ptech-button>
|
|
7022
7032
|
</ng-container>
|
|
@@ -7216,7 +7226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7216
7226
|
type="icon"
|
|
7217
7227
|
[iconColor]="resolveActionColor(a)"
|
|
7218
7228
|
tooltip="{{ a.tooltip || '' }}"
|
|
7219
|
-
(
|
|
7229
|
+
(buttonClick)="a.handler(r)"
|
|
7220
7230
|
>
|
|
7221
7231
|
</ptech-button>
|
|
7222
7232
|
</ng-container>
|
|
@@ -7358,7 +7368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7358
7368
|
type="icon"
|
|
7359
7369
|
[iconColor]="resolveActionColor(a)"
|
|
7360
7370
|
tooltip="{{ a.tooltip || '' }}"
|
|
7361
|
-
(
|
|
7371
|
+
(buttonClick)="a.handler(row)"
|
|
7362
7372
|
>
|
|
7363
7373
|
</ptech-button>
|
|
7364
7374
|
</ng-container>
|