@pumpkin-tech/pumpkin-tech-ng 0.2.29 → 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>
|
|
@@ -7513,7 +7523,11 @@ class ListPaginationComponent {
|
|
|
7513
7523
|
<div class="ptech-list-pagination__left">
|
|
7514
7524
|
<mat-form-field appearance="outline" class="ptech-list-pagination__size">
|
|
7515
7525
|
<mat-label>{{ pageSizeLabel }}</mat-label>
|
|
7516
|
-
<mat-select
|
|
7526
|
+
<mat-select
|
|
7527
|
+
[value]="pageSize"
|
|
7528
|
+
panelClass="ptech-list-pagination-panel"
|
|
7529
|
+
(valueChange)="handlePageSizeChange($event)"
|
|
7530
|
+
>
|
|
7517
7531
|
<mat-option *ngFor="let size of pageSizeOptions" [value]="size">{{ size }}</mat-option>
|
|
7518
7532
|
</mat-select>
|
|
7519
7533
|
</mat-form-field>
|
|
@@ -7544,7 +7558,7 @@ class ListPaginationComponent {
|
|
|
7544
7558
|
</button>
|
|
7545
7559
|
</div>
|
|
7546
7560
|
</div>
|
|
7547
|
-
`, isInline: true, styles: [".ptech-list-pagination{margin-top:12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.ptech-list-pagination__left{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0}.ptech-list-pagination__summary{display:flex;align-items:center;gap:8px;color:var(--ptech-muted, var(--app-muted, #64748b));font-size:13px;line-height:1.3;flex-wrap:wrap}.ptech-list-pagination__page{color:var(--ptech-text, var(--app-text, #0f172a));font-weight:700}.ptech-list-pagination__dot{opacity:.6}.ptech-list-pagination__size{width:170px;margin-bottom:-20px}.ptech-list-pagination__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.ptech-list-pagination__button{color:var(--ptech-text, var(--app-text, inherit));border-color:var(--ptech-
|
|
7561
|
+
`, isInline: true, styles: [".ptech-list-pagination{margin-top:12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:var(--ptech-table-cell-text, var(--app-text, inherit));background:var(--ptech-table-bg, transparent)}.ptech-list-pagination__left{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0}.ptech-list-pagination__summary{display:flex;align-items:center;gap:8px;color:var(--ptech-table-muted, var(--app-muted, #64748b));font-size:13px;line-height:1.3;flex-wrap:wrap}.ptech-list-pagination__page{color:var(--ptech-table-cell-text, var(--app-text, #0f172a));font-weight:700}.ptech-list-pagination__dot{opacity:.6}.ptech-list-pagination__size{width:170px;margin-bottom:-20px}.ptech-list-pagination__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.ptech-list-pagination__button{color:var(--ptech-table-cell-text, var(--app-text, inherit))!important;border-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.24)))!important;--mdc-outlined-button-label-text-color: var(--ptech-table-cell-text, var(--app-text, inherit));--mdc-outlined-button-outline-color: var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.24)));--mat-outlined-button-state-layer-color: var(--ptech-table-cell-text, var(--app-text, inherit))}.ptech-list-pagination__button[disabled],.ptech-list-pagination__button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important;border-color:color-mix(in srgb,var(--app-muted, #9ca3af) 44%,transparent)!important;--mdc-outlined-button-label-text-color: var(--app-muted, #9ca3af);--mdc-outlined-button-outline-color: color-mix(in srgb, var(--app-muted, #9ca3af) 44%, transparent)}:host ::ng-deep .ptech-list-pagination__size .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5));--mdc-outlined-text-field-label-text-color: var(--ptech-field-label, var(--app-text, inherit));--mdc-outlined-text-field-input-text-color: var(--ptech-field-text, var(--app-text, inherit));--mat-select-enabled-trigger-text-color: var(--ptech-field-text, var(--app-text, inherit));--mat-select-enabled-arrow-color: var(--ptech-field-arrow, var(--app-text, inherit));--mat-select-focused-arrow-color: var(--ptech-field-arrow, var(--app-text, inherit))}:host ::ng-deep .ptech-list-pagination__size .mdc-floating-label,:host ::ng-deep .ptech-list-pagination__size .mat-mdc-select-value,:host ::ng-deep .ptech-list-pagination__size .mat-mdc-select-value-text,:host ::ng-deep .ptech-list-pagination__size .mat-mdc-select-arrow{color:var(--ptech-field-label, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important}:host ::ng-deep .ptech-list-pagination__size .mdc-notched-outline__leading,:host ::ng-deep .ptech-list-pagination__size .mdc-notched-outline__notch,:host ::ng-deep .ptech-list-pagination__size .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-list-pagination__size:hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-list-pagination__size:hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-list-pagination__size:hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}::ng-deep .ptech-list-pagination-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))}::ng-deep .ptech-list-pagination-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-list-pagination-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-list-pagination-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}@media (max-width: 900px){.ptech-list-pagination{justify-content:flex-start}.ptech-list-pagination__actions{width:100%;justify-content:flex-start}.ptech-list-pagination__summary{width:100%}.ptech-list-pagination__dot{display:none}.ptech-list-pagination__range{display:block;width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: 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: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i4$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] });
|
|
7548
7562
|
}
|
|
7549
7563
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListPaginationComponent, decorators: [{
|
|
7550
7564
|
type: Component,
|
|
@@ -7553,7 +7567,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7553
7567
|
<div class="ptech-list-pagination__left">
|
|
7554
7568
|
<mat-form-field appearance="outline" class="ptech-list-pagination__size">
|
|
7555
7569
|
<mat-label>{{ pageSizeLabel }}</mat-label>
|
|
7556
|
-
<mat-select
|
|
7570
|
+
<mat-select
|
|
7571
|
+
[value]="pageSize"
|
|
7572
|
+
panelClass="ptech-list-pagination-panel"
|
|
7573
|
+
(valueChange)="handlePageSizeChange($event)"
|
|
7574
|
+
>
|
|
7557
7575
|
<mat-option *ngFor="let size of pageSizeOptions" [value]="size">{{ size }}</mat-option>
|
|
7558
7576
|
</mat-select>
|
|
7559
7577
|
</mat-form-field>
|
|
@@ -7584,7 +7602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7584
7602
|
</button>
|
|
7585
7603
|
</div>
|
|
7586
7604
|
</div>
|
|
7587
|
-
`, styles: [".ptech-list-pagination{margin-top:12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.ptech-list-pagination__left{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0}.ptech-list-pagination__summary{display:flex;align-items:center;gap:8px;color:var(--ptech-muted, var(--app-muted, #64748b));font-size:13px;line-height:1.3;flex-wrap:wrap}.ptech-list-pagination__page{color:var(--ptech-text, var(--app-text, #0f172a));font-weight:700}.ptech-list-pagination__dot{opacity:.6}.ptech-list-pagination__size{width:170px;margin-bottom:-20px}.ptech-list-pagination__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.ptech-list-pagination__button{color:var(--ptech-text, var(--app-text, inherit));border-color:var(--ptech-
|
|
7605
|
+
`, styles: [".ptech-list-pagination{margin-top:12px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;color:var(--ptech-table-cell-text, var(--app-text, inherit));background:var(--ptech-table-bg, transparent)}.ptech-list-pagination__left{display:flex;gap:10px;align-items:center;flex-wrap:wrap;min-width:0}.ptech-list-pagination__summary{display:flex;align-items:center;gap:8px;color:var(--ptech-table-muted, var(--app-muted, #64748b));font-size:13px;line-height:1.3;flex-wrap:wrap}.ptech-list-pagination__page{color:var(--ptech-table-cell-text, var(--app-text, #0f172a));font-weight:700}.ptech-list-pagination__dot{opacity:.6}.ptech-list-pagination__size{width:170px;margin-bottom:-20px}.ptech-list-pagination__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.ptech-list-pagination__button{color:var(--ptech-table-cell-text, var(--app-text, inherit))!important;border-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.24)))!important;--mdc-outlined-button-label-text-color: var(--ptech-table-cell-text, var(--app-text, inherit));--mdc-outlined-button-outline-color: var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.24)));--mat-outlined-button-state-layer-color: var(--ptech-table-cell-text, var(--app-text, inherit))}.ptech-list-pagination__button[disabled],.ptech-list-pagination__button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important;border-color:color-mix(in srgb,var(--app-muted, #9ca3af) 44%,transparent)!important;--mdc-outlined-button-label-text-color: var(--app-muted, #9ca3af);--mdc-outlined-button-outline-color: color-mix(in srgb, var(--app-muted, #9ca3af) 44%, transparent)}:host ::ng-deep .ptech-list-pagination__size .mdc-text-field{background-color:var(--ptech-field-bg, var(--app-surface, transparent));color:var(--ptech-field-text, var(--app-text, inherit));--mdc-outlined-text-field-outline-color: var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)));--mdc-outlined-text-field-hover-outline-color: var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)));--mdc-outlined-text-field-focus-outline-color: var(--ptech-field-outline-focus, var(--app-text, #3f51b5));--mdc-outlined-text-field-label-text-color: var(--ptech-field-label, var(--app-text, inherit));--mdc-outlined-text-field-input-text-color: var(--ptech-field-text, var(--app-text, inherit));--mat-select-enabled-trigger-text-color: var(--ptech-field-text, var(--app-text, inherit));--mat-select-enabled-arrow-color: var(--ptech-field-arrow, var(--app-text, inherit));--mat-select-focused-arrow-color: var(--ptech-field-arrow, var(--app-text, inherit))}:host ::ng-deep .ptech-list-pagination__size .mdc-floating-label,:host ::ng-deep .ptech-list-pagination__size .mat-mdc-select-value,:host ::ng-deep .ptech-list-pagination__size .mat-mdc-select-value-text,:host ::ng-deep .ptech-list-pagination__size .mat-mdc-select-arrow{color:var(--ptech-field-label, var(--app-text, inherit))!important;fill:var(--ptech-field-arrow, var(--app-text, inherit))!important}:host ::ng-deep .ptech-list-pagination__size .mdc-notched-outline__leading,:host ::ng-deep .ptech-list-pagination__size .mdc-notched-outline__notch,:host ::ng-deep .ptech-list-pagination__size .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline, var(--app-border-color, rgba(0,0,0,.38)))!important}:host ::ng-deep .ptech-list-pagination__size:hover .mdc-notched-outline__leading,:host ::ng-deep .ptech-list-pagination__size:hover .mdc-notched-outline__notch,:host ::ng-deep .ptech-list-pagination__size:hover .mdc-notched-outline__trailing{border-color:var(--ptech-field-outline-hover, var(--app-text, rgba(0,0,0,.87)))!important}::ng-deep .ptech-list-pagination-panel{background-color:var(--app-surface, #fff)!important;color:var(--app-text, inherit)!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))}::ng-deep .ptech-list-pagination-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-list-pagination-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-list-pagination-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}@media (max-width: 900px){.ptech-list-pagination{justify-content:flex-start}.ptech-list-pagination__actions{width:100%;justify-content:flex-start}.ptech-list-pagination__summary{width:100%}.ptech-list-pagination__dot{display:none}.ptech-list-pagination__range{display:block;width:100%}}\n"] }]
|
|
7588
7606
|
}], propDecorators: { totalItems: [{
|
|
7589
7607
|
type: Input
|
|
7590
7608
|
}], page: [{
|