@pumpkin-tech/pumpkin-tech-ng 0.2.41 → 0.2.43
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,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { HostBinding, Input, Directive, Injectable, NgModule, Optional, Self, EventEmitter, ElementRef, forwardRef, Output, ContentChild, ViewChild, ChangeDetectionStrategy, Component, HostListener, Inject, InjectionToken, Pipe, ContentChildren, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/layout';
|
|
4
|
-
import * as i2$
|
|
4
|
+
import * as i2$4 from 'rxjs';
|
|
5
5
|
import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, tap, map, of } from 'rxjs';
|
|
6
6
|
import { takeUntil, filter as filter$1, switchMap } from 'rxjs/operators';
|
|
7
7
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
@@ -13,7 +13,7 @@ import * as i3$3 from '@angular/material/toolbar';
|
|
|
13
13
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
14
14
|
import * as i5$1 from '@angular/material/sidenav';
|
|
15
15
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
16
|
-
import * as
|
|
16
|
+
import * as i2$2 from '@angular/material/card';
|
|
17
17
|
import { MatCardModule } from '@angular/material/card';
|
|
18
18
|
import * as i6 from '@angular/material/list';
|
|
19
19
|
import { MatListModule } from '@angular/material/list';
|
|
@@ -29,6 +29,7 @@ import * as i3$6 from '@angular/material/table';
|
|
|
29
29
|
import { MatTableModule, MatTable } from '@angular/material/table';
|
|
30
30
|
import * as i4$3 from '@angular/material/paginator';
|
|
31
31
|
import { MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
32
|
+
import * as i5$2 from '@angular/material/sort';
|
|
32
33
|
import { MatSortModule } from '@angular/material/sort';
|
|
33
34
|
import * as i3$1 from '@angular/material/icon';
|
|
34
35
|
import { MatIconModule } from '@angular/material/icon';
|
|
@@ -53,14 +54,16 @@ import * as i9 from '@angular/material/checkbox';
|
|
|
53
54
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
54
55
|
import * as i5 from '@angular/material/progress-spinner';
|
|
55
56
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
57
|
+
import * as i3$7 from '@angular/material/expansion';
|
|
58
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
56
59
|
import { MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
57
60
|
import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
58
61
|
import 'moment/locale/pt-br';
|
|
59
62
|
import * as i3$2 from '@angular/router';
|
|
60
63
|
import { RouterModule, NavigationEnd } from '@angular/router';
|
|
61
|
-
import * as
|
|
64
|
+
import * as i9$1 from '@angular/cdk/drag-drop';
|
|
62
65
|
import { CdkDrag, CdkDragHandle, moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
63
|
-
import * as i2$
|
|
66
|
+
import * as i2$3 from '@angular/platform-browser';
|
|
64
67
|
import * as i8 from 'ngx-material-timepicker';
|
|
65
68
|
import { NgxMaterialTimepickerModule } from 'ngx-material-timepicker';
|
|
66
69
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
@@ -410,7 +413,8 @@ const MATERIAL = [
|
|
|
410
413
|
MatDialogModule,
|
|
411
414
|
MatRadioModule,
|
|
412
415
|
MatCheckboxModule,
|
|
413
|
-
MatProgressSpinnerModule
|
|
416
|
+
MatProgressSpinnerModule,
|
|
417
|
+
MatExpansionModule
|
|
414
418
|
];
|
|
415
419
|
class CoreMaterialModule {
|
|
416
420
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -436,7 +440,8 @@ class CoreMaterialModule {
|
|
|
436
440
|
MatDialogModule,
|
|
437
441
|
MatRadioModule,
|
|
438
442
|
MatCheckboxModule,
|
|
439
|
-
MatProgressSpinnerModule
|
|
443
|
+
MatProgressSpinnerModule,
|
|
444
|
+
MatExpansionModule], exports: [CommonModule, FormsModule, ReactiveFormsModule, MatToolbarModule,
|
|
440
445
|
MatSidenavModule,
|
|
441
446
|
MatListModule,
|
|
442
447
|
MatButtonModule,
|
|
@@ -458,7 +463,8 @@ class CoreMaterialModule {
|
|
|
458
463
|
MatDialogModule,
|
|
459
464
|
MatRadioModule,
|
|
460
465
|
MatCheckboxModule,
|
|
461
|
-
MatProgressSpinnerModule
|
|
466
|
+
MatProgressSpinnerModule,
|
|
467
|
+
MatExpansionModule] });
|
|
462
468
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, providers: [
|
|
463
469
|
{ provide: MatPaginatorIntl, useClass: PortugueseMatPaginatorIntl },
|
|
464
470
|
{ provide: MAT_DATE_LOCALE, useValue: 'pt-BR' },
|
|
@@ -490,7 +496,8 @@ class CoreMaterialModule {
|
|
|
490
496
|
MatDialogModule,
|
|
491
497
|
MatRadioModule,
|
|
492
498
|
MatCheckboxModule,
|
|
493
|
-
MatProgressSpinnerModule
|
|
499
|
+
MatProgressSpinnerModule,
|
|
500
|
+
MatExpansionModule] });
|
|
494
501
|
}
|
|
495
502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, decorators: [{
|
|
496
503
|
type: NgModule,
|
|
@@ -4818,7 +4825,7 @@ class ActionDialogComponent {
|
|
|
4818
4825
|
></ptech-button>
|
|
4819
4826
|
</mat-dialog-actions>
|
|
4820
4827
|
</div>
|
|
4821
|
-
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(640px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #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}.action-btn{margin:0}\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: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i5$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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: 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"] }, { kind: "component", type: SelectQuantityItemsComponent, selector: "ptech-select-quantity-items", inputs: ["appearance", "min", "max", "step", "quantity"], outputs: ["quantityChange"] }, { kind: "component", type: InputCurrencyComponent, selector: "ptech-input-currency", inputs: ["options"], outputs: ["valueChange"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
4828
|
+
`, isInline: true, styles: [":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n", ".ptech-dialog-shell{min-width:min(640px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{white-space:normal!important;word-break:break-word!important;overflow-wrap:break-word!important}mat-card{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #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}.action-btn{margin:0}\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: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$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", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: 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"] }, { kind: "component", type: SelectQuantityItemsComponent, selector: "ptech-select-quantity-items", inputs: ["appearance", "min", "max", "step", "quantity"], outputs: ["quantityChange"] }, { kind: "component", type: InputCurrencyComponent, selector: "ptech-input-currency", inputs: ["options"], outputs: ["valueChange"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }] });
|
|
4822
4829
|
}
|
|
4823
4830
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, decorators: [{
|
|
4824
4831
|
type: Component,
|
|
@@ -5202,8 +5209,8 @@ class ActionResultDialogComponent {
|
|
|
5202
5209
|
return;
|
|
5203
5210
|
window.open(this.whatsappUrl, '_blank');
|
|
5204
5211
|
}
|
|
5205
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: i2$
|
|
5206
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<div class=\"ptech-dialog-shell\" cdkDrag cdkDragRootElement=\".cdk-overlay-pane\">\n <div class=\"ptech-dialog-header\">\n <div class=\"ptech-dialog-drag\" cdkDragHandle aria-hidden=\"true\">\n <mat-icon>drag_indicator</mat-icon>\n </div>\n\n <div class=\"ptech-dialog-heading\">\n <h2 mat-dialog-title>{{ data.title }}</h2>\n <p class=\"ptech-dialog-subtitle\" *ngIf=\"data.subtitle\">{{ data.subtitle }}</p>\n </div>\n\n <button\n mat-icon-button\n type=\"button\"\n class=\"ptech-dialog-close\"\n aria-label=\"Fechar\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <div class=\"ptech-dialog-divider\"></div>\n\n <mat-dialog-content class=\"ptech-dialog-content dialog-content-custom\">\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\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 *ngIf=\"data.rawContent\" align=\"end\" class=\"ptech-dialog-actions\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"var(--app-status-success, #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 </mat-dialog-actions>\n</div>\n", styles: [".ptech-dialog-shell{min-width:min(700px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{display:flex;flex-direction:column;gap:20px}.dialog-content-custom div[innerHTML]{color:var(--ptech-dialog-text, var(--app-text, inherit));font-size:14px;line-height:20px}.details{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #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:var(--ptech-dialog-bg, transparent);box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:var(--ptech-dialog-text, var(--app-text, #fff))}ptech-button.action-btn{margin:0}\n", ":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { 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:
|
|
5212
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
5213
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionResultDialogComponent, isStandalone: true, selector: "ptech-action-result-dialog", ngImport: i0, template: "<div class=\"ptech-dialog-shell\" cdkDrag cdkDragRootElement=\".cdk-overlay-pane\">\n <div class=\"ptech-dialog-header\">\n <div class=\"ptech-dialog-drag\" cdkDragHandle aria-hidden=\"true\">\n <mat-icon>drag_indicator</mat-icon>\n </div>\n\n <div class=\"ptech-dialog-heading\">\n <h2 mat-dialog-title>{{ data.title }}</h2>\n <p class=\"ptech-dialog-subtitle\" *ngIf=\"data.subtitle\">{{ data.subtitle }}</p>\n </div>\n\n <button\n mat-icon-button\n type=\"button\"\n class=\"ptech-dialog-close\"\n aria-label=\"Fechar\"\n (click)=\"close()\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n\n <div class=\"ptech-dialog-divider\"></div>\n\n <mat-dialog-content class=\"ptech-dialog-content dialog-content-custom\">\n <div *ngIf=\"data.content\" [innerHTML]=\"sanitizedContent\"></div>\n\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 *ngIf=\"data.rawContent\" align=\"end\" class=\"ptech-dialog-actions\">\n <ptech-button\n *ngIf=\"data.rawContent\"\n class=\"action-btn\"\n label=\"WhatsApp\"\n icon=\"share\"\n type=\"raised\"\n color=\"var(--app-status-success, #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 </mat-dialog-actions>\n</div>\n", styles: [".ptech-dialog-shell{min-width:min(700px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.4rem}.dialog-content-custom{display:flex;flex-direction:column;gap:20px}.dialog-content-custom div[innerHTML]{color:var(--ptech-dialog-text, var(--app-text, inherit));font-size:14px;line-height:20px}.details{background:var(--ptech-dialog-raw-bg, var(--app-raw-bg, #2b2e34))!important;color:var(--ptech-dialog-raw-text, var(--app-raw-text, #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:var(--ptech-dialog-bg, transparent);box-shadow:none;padding:0;margin:0}.details pre{margin:0;color:var(--ptech-dialog-text, var(--app-text, #fff))}ptech-button.action-btn{margin:0}\n", ":host{display:block;color:var(--ptech-dialog-text, var(--app-text, inherit))}.ptech-dialog-shell{display:flex;flex-direction:column;max-width:92vw;width:100%;max-height:88vh;min-height:0;background:var(--ptech-dialog-bg, var(--app-surface, #fff));color:var(--ptech-dialog-text, var(--app-text, inherit));border-radius:16px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));overflow:hidden}.ptech-dialog-header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;gap:12px;padding:14px 16px;background:var(--ptech-dialog-header-bg, var(--app-surface-2, #f7f7f7));flex:0 0 auto}.ptech-dialog-drag{width:42px;height:42px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent)}.ptech-dialog-heading h1[mat-dialog-title],.ptech-dialog-heading h2[mat-dialog-title]{margin:0;line-height:1.2;font-weight:700;color:var(--ptech-dialog-text, var(--app-text, inherit));text-align:center}.ptech-dialog-heading{text-align:center;justify-self:center;width:100%}.ptech-dialog-subtitle{margin:2px 0 0;color:var(--ptech-dialog-muted, var(--app-muted, #94a3b8));font-size:1rem;font-weight:500}.ptech-dialog-close{width:42px;height:42px;border-radius:12px;border:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));color:var(--ptech-dialog-text, var(--app-text, inherit));background:color-mix(in srgb,var(--app-surface, #fff) 92%,transparent);display:inline-flex;align-items:center;justify-content:center;padding:0!important}.ptech-dialog-close .mat-icon{margin:0;width:26px;height:26px;font-size:26px;line-height:26px}.ptech-dialog-divider{border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)))}.ptech-dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;padding:16px;box-sizing:border-box;color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content p,.ptech-dialog-content span,.ptech-dialog-content div,.ptech-dialog-content li,.ptech-dialog-content strong,.ptech-dialog-content em,.ptech-dialog-content small{color:var(--ptech-dialog-content-text, var(--ptech-dialog-text, var(--app-text, inherit)))}.ptech-dialog-content::-webkit-scrollbar{width:10px;height:10px}.ptech-dialog-content::-webkit-scrollbar-track{background:var(--ptech-scroll-track, var(--app-scroll-track, color-mix(in srgb, var(--app-surface-2, #f7f7f7) 70%, transparent)));border-radius:12px}.ptech-dialog-content::-webkit-scrollbar-thumb{background:var(--ptech-scroll-thumb, var(--app-scroll-thumb, color-mix(in srgb, var(--app-link-accent, #3b82f6) 70%, #6b7280 30%)));border-radius:12px;border:2px solid transparent;background-clip:padding-box}.ptech-dialog-content::-webkit-scrollbar-thumb:hover{background:var(--ptech-scroll-thumb-hover, var(--app-scroll-thumb-hover, var(--ptech-scroll-thumb, #60a5fa)))}.ptech-dialog-content{scrollbar-width:thin;scrollbar-color:var(--ptech-scroll-thumb, var(--app-scroll-thumb, #60a5fa)) var(--ptech-scroll-track, var(--app-scroll-track, #1f2937))}.ptech-dialog-actions{margin:0;padding:14px 16px 16px;border-top:1px solid var(--ptech-dialog-border, var(--app-border-color, rgba(0, 0, 0, .12)));background:var(--ptech-dialog-footer-bg, var(--app-surface-2, #f7f7f7));display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}::ng-deep .ptech-dialog-panel .mat-mdc-dialog-surface{background:transparent!important;box-shadow:none!important;color:inherit;overflow:visible;border-radius:16px;padding:0;max-height:none!important}.ptech-dialog-content.mat-mdc-dialog-content{max-height:none!important;margin:0}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{display:flex!important;align-items:center!important;justify-content:center!important;max-width:96vw!important;max-height:96dvh!important;margin:0 auto!important;z-index:var(--ptech-overlay-z-index, 10000)!important}::ng-deep .cdk-overlay-pane:not(.ptech-dialog-panel){z-index:calc(var(--ptech-overlay-z-index, 10000) + 1)!important}::ng-deep .cdk-overlay-pane .mat-mdc-select-panel,::ng-deep .cdk-overlay-pane .ptech-select-enum-panel,::ng-deep .cdk-overlay-pane .ptech-select-entity-panel,::ng-deep .cdk-overlay-pane .ptech-select-quantity-panel{opacity:1!important;visibility:visible!important;pointer-events:auto!important}::ng-deep .cdk-overlay-pane .mat-mdc-tooltip-panel{z-index:var(--ptech-tooltip-z-index, 11000)!important}@media (max-width: 700px){.ptech-dialog-shell{max-width:94vw!important;max-height:calc(100dvh - 18px)!important;margin:0 auto!important}::ng-deep .cdk-overlay-pane.ptech-dialog-panel{max-width:96vw!important;max-height:calc(100dvh - 8px)!important;padding:0!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { 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$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { 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", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "pipe", type: i1$1.JsonPipe, name: "json" }] });
|
|
5207
5214
|
}
|
|
5208
5215
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
|
|
5209
5216
|
type: Component,
|
|
@@ -5211,7 +5218,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
5211
5218
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5212
5219
|
type: Inject,
|
|
5213
5220
|
args: [MAT_DIALOG_DATA]
|
|
5214
|
-
}] }, { type: i1$4.MatDialogRef }, { type: i2$
|
|
5221
|
+
}] }, { type: i1$4.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
|
|
5215
5222
|
type: Inject,
|
|
5216
5223
|
args: [MESSAGE_SERVICE]
|
|
5217
5224
|
}] }] });
|
|
@@ -6579,15 +6586,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6579
6586
|
args: ['tableCell']
|
|
6580
6587
|
}] } });
|
|
6581
6588
|
|
|
6589
|
+
class PtechTableColumnBuilder {
|
|
6590
|
+
column = { key: '', header: '' };
|
|
6591
|
+
static instance(_breakpointObserverService) {
|
|
6592
|
+
return new PtechTableColumnBuilder();
|
|
6593
|
+
}
|
|
6594
|
+
name(name) { this.column.header = name; this.column.name = name; return this; }
|
|
6595
|
+
header(header) { return this.name(header); }
|
|
6596
|
+
property(property) { this.column.key = property; this.column.property = property; return this; }
|
|
6597
|
+
key(key) { return this.property(key); }
|
|
6598
|
+
value(value) { this.column.value = value; this.column.cell = value; return this; }
|
|
6599
|
+
cell(cell) { return this.value(cell); }
|
|
6600
|
+
sortable(sortable = true) { this.column.sortable = sortable; return this; }
|
|
6601
|
+
visible(visible = true) { this.column.visible = visible; return this; }
|
|
6602
|
+
hiddenSm(_hiddenSm = true) { return this; }
|
|
6603
|
+
align(align) { this.column.align = align; return this; }
|
|
6604
|
+
width(width) { this.column.width = width; return this; }
|
|
6605
|
+
breakpointWidth(_breakpointMap) { return this; }
|
|
6606
|
+
template(template) { this.column.template = template; return this; }
|
|
6607
|
+
templateHeader(templateHeader) { this.column.templateHeader = templateHeader; return this; }
|
|
6608
|
+
action(action) { this.column.action = action; return this; }
|
|
6609
|
+
type(type) { this.column.type = type; return this; }
|
|
6610
|
+
build() {
|
|
6611
|
+
const key = this.column.key || this.column.property || '';
|
|
6612
|
+
const header = this.column.header || this.column.name || '';
|
|
6613
|
+
return { ...this.column, key, property: this.column.property || key, header, name: this.column.name || header };
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6582
6616
|
class TableComponent {
|
|
6583
6617
|
iterableDiffers;
|
|
6584
6618
|
title = '';
|
|
6585
6619
|
loading = false;
|
|
6620
|
+
shadow = true;
|
|
6621
|
+
disabled = false;
|
|
6622
|
+
emptyText = 'Sem dados.';
|
|
6623
|
+
stickyHeader = false;
|
|
6624
|
+
rowClickable = false;
|
|
6586
6625
|
data = [];
|
|
6587
6626
|
total = 0;
|
|
6588
6627
|
pageIndex = 0; // zero-based
|
|
6589
6628
|
pageSize = 10;
|
|
6590
6629
|
pageSizeOptions = [5, 10, 20, 50];
|
|
6630
|
+
totalElements = null;
|
|
6631
|
+
paginatorLength = null;
|
|
6632
|
+
paginatorPageIndex = null;
|
|
6633
|
+
paginatorPageSize = null;
|
|
6634
|
+
serverSidePagination = false;
|
|
6635
|
+
backendPagination = false;
|
|
6636
|
+
paginator = true;
|
|
6637
|
+
sortField = '';
|
|
6638
|
+
sortDirection = '';
|
|
6639
|
+
serverSideSorting = false;
|
|
6591
6640
|
columns = [];
|
|
6592
6641
|
actions = [];
|
|
6593
6642
|
// seleção de linhas
|
|
@@ -6606,15 +6655,22 @@ class TableComponent {
|
|
|
6606
6655
|
selectedIds = new EventEmitter();
|
|
6607
6656
|
selectionChange = new EventEmitter();
|
|
6608
6657
|
page = new EventEmitter();
|
|
6658
|
+
pageChange = new EventEmitter();
|
|
6659
|
+
sortChange = new EventEmitter();
|
|
6660
|
+
rowClick = new EventEmitter();
|
|
6609
6661
|
reorder = new EventEmitter();
|
|
6610
6662
|
toggleChange = new EventEmitter();
|
|
6611
6663
|
displayedColumns = [];
|
|
6664
|
+
visibleColumns = [];
|
|
6612
6665
|
renderData = [];
|
|
6613
6666
|
selection = new SelectionModel(this.selectMultipleRow, []);
|
|
6614
6667
|
selectedIdSet = new Set();
|
|
6615
6668
|
dataDiffer;
|
|
6616
6669
|
matTable;
|
|
6617
6670
|
cellTemplates;
|
|
6671
|
+
actionsTemplate;
|
|
6672
|
+
footerTemplate;
|
|
6673
|
+
emptyTemplate;
|
|
6618
6674
|
cellTemplateMap = new Map();
|
|
6619
6675
|
constructor(iterableDiffers) {
|
|
6620
6676
|
this.iterableDiffers = iterableDiffers;
|
|
@@ -6637,17 +6693,57 @@ class TableComponent {
|
|
|
6637
6693
|
getCellTemplate(key) {
|
|
6638
6694
|
return this.cellTemplateMap.get(key) ?? null;
|
|
6639
6695
|
}
|
|
6696
|
+
getColumnTemplate(column) {
|
|
6697
|
+
return column.template || this.getCellTemplate(this.columnKey(column));
|
|
6698
|
+
}
|
|
6699
|
+
get hasActionsColumn() {
|
|
6700
|
+
return !!this.actionsTemplate || !!this.actions?.length;
|
|
6701
|
+
}
|
|
6702
|
+
get resolvedTotal() {
|
|
6703
|
+
return this.totalElements ?? this.paginatorLength ?? this.total ?? this.renderData?.length ?? 0;
|
|
6704
|
+
}
|
|
6705
|
+
get resolvedPageIndex() {
|
|
6706
|
+
return this.paginatorPageIndex ?? this.pageIndex ?? 0;
|
|
6707
|
+
}
|
|
6708
|
+
get resolvedPageSize() {
|
|
6709
|
+
return this.paginatorPageSize ?? this.pageSize ?? 10;
|
|
6710
|
+
}
|
|
6711
|
+
normalizeColumn(column) {
|
|
6712
|
+
const key = this.columnKey(column);
|
|
6713
|
+
const header = this.columnHeader(column);
|
|
6714
|
+
return { ...column, key, property: column.property || key, header, name: column.name || header };
|
|
6715
|
+
}
|
|
6716
|
+
columnKey(column) {
|
|
6717
|
+
return column.key || column.property || '';
|
|
6718
|
+
}
|
|
6719
|
+
columnHeader(column) {
|
|
6720
|
+
return column.header || column.name || '';
|
|
6721
|
+
}
|
|
6722
|
+
cssAlign(align) {
|
|
6723
|
+
if (align === 'center' || align === 'center center')
|
|
6724
|
+
return 'center';
|
|
6725
|
+
if (align === 'right' || align === 'end center')
|
|
6726
|
+
return 'right';
|
|
6727
|
+
return 'left';
|
|
6728
|
+
}
|
|
6729
|
+
cssWidth(width) {
|
|
6730
|
+
if (width === undefined || width === null)
|
|
6731
|
+
return null;
|
|
6732
|
+
return typeof width === 'number' ? `${width}px` : width;
|
|
6733
|
+
}
|
|
6640
6734
|
ngOnChanges(changes) {
|
|
6641
6735
|
// API nova (selectionMode) sem quebrar a antiga (selectRow/selectMultipleRow)
|
|
6642
6736
|
if (this.selectionMode) {
|
|
6643
6737
|
this.selectRow = this.selectionMode !== 'none';
|
|
6644
6738
|
this.selectMultipleRow = this.selectionMode === 'multiple';
|
|
6645
6739
|
}
|
|
6646
|
-
|
|
6647
|
-
|
|
6740
|
+
this.visibleColumns = (this.columns || [])
|
|
6741
|
+
.filter(c => c?.visible !== false)
|
|
6742
|
+
.map(c => this.normalizeColumn(c));
|
|
6743
|
+
const cols = [...this.visibleColumns.map(c => this.columnKey(c))];
|
|
6648
6744
|
if (this.selectRow)
|
|
6649
6745
|
cols.unshift('select');
|
|
6650
|
-
if (this.
|
|
6746
|
+
if (this.hasActionsColumn)
|
|
6651
6747
|
cols.push('__actions');
|
|
6652
6748
|
this.displayedColumns = cols;
|
|
6653
6749
|
if (changes['data']) {
|
|
@@ -6754,7 +6850,34 @@ class TableComponent {
|
|
|
6754
6850
|
return this.selectedIdSet.has(this.getRowId(row));
|
|
6755
6851
|
}
|
|
6756
6852
|
onPage(ev) {
|
|
6757
|
-
|
|
6853
|
+
const pageEvent = {
|
|
6854
|
+
pageIndex: ev.pageIndex,
|
|
6855
|
+
pageSize: ev.pageSize,
|
|
6856
|
+
length: ev.length ?? this.resolvedTotal,
|
|
6857
|
+
previousPageIndex: ev.previousPageIndex,
|
|
6858
|
+
};
|
|
6859
|
+
this.page.emit(pageEvent);
|
|
6860
|
+
this.pageChange.emit(pageEvent);
|
|
6861
|
+
}
|
|
6862
|
+
onSort(sort) {
|
|
6863
|
+
this.sortField = sort.active;
|
|
6864
|
+
this.sortDirection = sort.direction;
|
|
6865
|
+
this.sortChange.emit({ active: sort.active, direction: this.sortDirection });
|
|
6866
|
+
if (this.serverSideSorting || this.backendPagination || this.serverSidePagination) {
|
|
6867
|
+
const pageEvent = {
|
|
6868
|
+
pageIndex: 0,
|
|
6869
|
+
pageSize: this.resolvedPageSize,
|
|
6870
|
+
length: this.resolvedTotal,
|
|
6871
|
+
previousPageIndex: this.resolvedPageIndex,
|
|
6872
|
+
sort,
|
|
6873
|
+
};
|
|
6874
|
+
this.page.emit(pageEvent);
|
|
6875
|
+
this.pageChange.emit(pageEvent);
|
|
6876
|
+
}
|
|
6877
|
+
}
|
|
6878
|
+
onRowClick(row) {
|
|
6879
|
+
if (this.rowClickable)
|
|
6880
|
+
this.rowClick.emit(row);
|
|
6758
6881
|
}
|
|
6759
6882
|
onDrop(event) {
|
|
6760
6883
|
if (!this.reorderable || !Array.isArray(this.renderData))
|
|
@@ -6781,7 +6904,9 @@ class TableComponent {
|
|
|
6781
6904
|
renderCell(row, col) {
|
|
6782
6905
|
if (col?.cell)
|
|
6783
6906
|
return col.cell(row);
|
|
6784
|
-
|
|
6907
|
+
if (col?.value)
|
|
6908
|
+
return col.value(row);
|
|
6909
|
+
const v = this.read(row, this.columnKey(col));
|
|
6785
6910
|
if (col.type === 'date' && v)
|
|
6786
6911
|
return new Date(v);
|
|
6787
6912
|
return v ?? '—';
|
|
@@ -6836,9 +6961,9 @@ class TableComponent {
|
|
|
6836
6961
|
});
|
|
6837
6962
|
}
|
|
6838
6963
|
badgeJustify(align) {
|
|
6839
|
-
if (align === 'center')
|
|
6964
|
+
if (align === 'center' || align === 'center center')
|
|
6840
6965
|
return 'center';
|
|
6841
|
-
if (align === 'right')
|
|
6966
|
+
if (align === 'right' || align === 'end center')
|
|
6842
6967
|
return 'end';
|
|
6843
6968
|
return 'start';
|
|
6844
6969
|
}
|
|
@@ -6858,6 +6983,9 @@ class TableComponent {
|
|
|
6858
6983
|
return !!col.toggleDisabled(row);
|
|
6859
6984
|
return !!col?.toggleDisabled;
|
|
6860
6985
|
}
|
|
6986
|
+
onCellClick(row, col) {
|
|
6987
|
+
col.action?.(row);
|
|
6988
|
+
}
|
|
6861
6989
|
onToggleColumnChange(row, col, value) {
|
|
6862
6990
|
this.toggleChange.emit({
|
|
6863
6991
|
row,
|
|
@@ -6866,8 +6994,8 @@ class TableComponent {
|
|
|
6866
6994
|
});
|
|
6867
6995
|
}
|
|
6868
6996
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
|
|
6869
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", 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", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
6870
|
-
<div class="table-container mat-elevation-z8">
|
|
6997
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableComponent, isStandalone: true, selector: "ptech-table", inputs: { title: "title", loading: "loading", shadow: "shadow", disabled: "disabled", emptyText: "emptyText", stickyHeader: "stickyHeader", rowClickable: "rowClickable", data: "data", total: "total", pageIndex: "pageIndex", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", totalElements: "totalElements", paginatorLength: "paginatorLength", paginatorPageIndex: "paginatorPageIndex", paginatorPageSize: "paginatorPageSize", serverSidePagination: "serverSidePagination", backendPagination: "backendPagination", paginator: "paginator", sortField: "sortField", sortDirection: "sortDirection", serverSideSorting: "serverSideSorting", columns: "columns", actions: "actions", selectRow: "selectRow", selectMultipleRow: "selectMultipleRow", selectionMode: "selectionMode", usePtechSelectionControls: "usePtechSelectionControls", getRowId: "getRowId", imageFallback: "imageFallback", responsiveCards: "responsiveCards", reorderable: "reorderable" }, outputs: { selectedRows: "selectedRows", selectedRow: "selectedRow", selectedIds: "selectedIds", selectionChange: "selectionChange", page: "page", pageChange: "pageChange", sortChange: "sortChange", rowClick: "rowClick", reorder: "reorder", toggleChange: "toggleChange" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: ["actions"], descendants: true }, { propertyName: "footerTemplate", first: true, predicate: ["footer"], descendants: true }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"], descendants: true }, { propertyName: "cellTemplates", predicate: TableCellDirective }], viewQueries: [{ propertyName: "matTable", first: true, predicate: MatTable, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
6998
|
+
<div class="table-container mat-elevation-z8" [class.disabled]="disabled">
|
|
6871
6999
|
<div class="header-row" *ngIf="title">
|
|
6872
7000
|
<h3>{{ title }}</h3>
|
|
6873
7001
|
</div>
|
|
@@ -6888,6 +7016,10 @@ class TableComponent {
|
|
|
6888
7016
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
6889
7017
|
<table
|
|
6890
7018
|
mat-table
|
|
7019
|
+
matSort
|
|
7020
|
+
[matSortActive]="sortField"
|
|
7021
|
+
[matSortDirection]="sortDirection"
|
|
7022
|
+
(matSortChange)="onSort($event)"
|
|
6891
7023
|
[dataSource]="renderData"
|
|
6892
7024
|
cdkDropList
|
|
6893
7025
|
[cdkDropListData]="renderData"
|
|
@@ -6941,21 +7073,31 @@ class TableComponent {
|
|
|
6941
7073
|
</td>
|
|
6942
7074
|
</ng-container>
|
|
6943
7075
|
|
|
6944
|
-
<ng-container *ngFor="let c of
|
|
7076
|
+
<ng-container *ngFor="let c of visibleColumns" [matColumnDef]="columnKey(c)">
|
|
6945
7077
|
<th
|
|
6946
7078
|
mat-header-cell
|
|
6947
7079
|
*matHeaderCellDef
|
|
6948
|
-
[style.text-align]="c.align
|
|
7080
|
+
[style.text-align]="cssAlign(c.align)"
|
|
7081
|
+
[style.width]="cssWidth(c.width)"
|
|
7082
|
+
[mat-sort-header]="columnKey(c)"
|
|
7083
|
+
[disabled]="!c.sortable"
|
|
7084
|
+
[sticky]="stickyHeader"
|
|
6949
7085
|
>
|
|
6950
|
-
|
|
7086
|
+
<ng-container *ngIf="c.templateHeader; else defaultHeader">
|
|
7087
|
+
<ng-container *ngTemplateOutlet="c.templateHeader; context: { $implicit: data, column: c }"></ng-container>
|
|
7088
|
+
</ng-container>
|
|
7089
|
+
<ng-template #defaultHeader>{{ columnHeader(c) }}</ng-template>
|
|
6951
7090
|
</th>
|
|
6952
7091
|
<td
|
|
6953
7092
|
mat-cell
|
|
6954
7093
|
*matCellDef="let row"
|
|
6955
|
-
[
|
|
7094
|
+
[class.clickable]="!!c.action"
|
|
7095
|
+
(click)="onCellClick(row, c)"
|
|
7096
|
+
[style.text-align]="cssAlign(c.align)"
|
|
7097
|
+
[style.width]="cssWidth(c.width)"
|
|
6956
7098
|
>
|
|
6957
7099
|
<!-- se existir template customizado para a coluna, usa ele -->
|
|
6958
|
-
<ng-container *ngIf="
|
|
7100
|
+
<ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCell">
|
|
6959
7101
|
<ng-container
|
|
6960
7102
|
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
|
|
6961
7103
|
></ng-container>
|
|
@@ -7021,11 +7163,15 @@ class TableComponent {
|
|
|
7021
7163
|
|
|
7022
7164
|
</ng-container>
|
|
7023
7165
|
|
|
7024
|
-
<ng-container *ngIf="
|
|
7166
|
+
<ng-container *ngIf="hasActionsColumn" matColumnDef="__actions">
|
|
7025
7167
|
<th mat-header-cell *matHeaderCellDef style="text-align: center">
|
|
7026
7168
|
Ações
|
|
7027
7169
|
</th>
|
|
7028
7170
|
<td mat-cell *matCellDef="let r" style="text-align: center">
|
|
7171
|
+
<ng-container *ngIf="actionsTemplate; else configuredActions">
|
|
7172
|
+
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: r, row: r }"></ng-container>
|
|
7173
|
+
</ng-container>
|
|
7174
|
+
<ng-template #configuredActions>
|
|
7029
7175
|
<ng-container *ngFor="let a of actions">
|
|
7030
7176
|
<ptech-button
|
|
7031
7177
|
*ngIf="!a.visible || a.visible(r)"
|
|
@@ -7037,14 +7183,17 @@ class TableComponent {
|
|
|
7037
7183
|
>
|
|
7038
7184
|
</ptech-button>
|
|
7039
7185
|
</ng-container>
|
|
7186
|
+
</ng-template>
|
|
7040
7187
|
</td>
|
|
7041
7188
|
</ng-container>
|
|
7042
7189
|
|
|
7043
|
-
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
7190
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: stickyHeader"></tr>
|
|
7044
7191
|
<tr
|
|
7045
7192
|
mat-row
|
|
7046
7193
|
*matRowDef="let row; columns: displayedColumns"
|
|
7047
7194
|
[class.selected]="isSelected(row)"
|
|
7195
|
+
[class.clickable]="rowClickable"
|
|
7196
|
+
(click)="onRowClick(row)"
|
|
7048
7197
|
cdkDrag
|
|
7049
7198
|
[cdkDragDisabled]="!reorderable"
|
|
7050
7199
|
></tr>
|
|
@@ -7087,12 +7236,12 @@ class TableComponent {
|
|
|
7087
7236
|
</ng-template>
|
|
7088
7237
|
</div>
|
|
7089
7238
|
|
|
7090
|
-
<div *ngFor="let c of
|
|
7239
|
+
<div *ngFor="let c of visibleColumns" class="card-row">
|
|
7091
7240
|
<!-- Se existir template customizado para a coluna, usa ele
|
|
7092
7241
|
e adiciona o header dinamicamente -->
|
|
7093
|
-
<ng-container *ngIf="
|
|
7242
|
+
<ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCardCell">
|
|
7094
7243
|
<div>
|
|
7095
|
-
<strong>{{ c
|
|
7244
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7096
7245
|
<ng-container
|
|
7097
7246
|
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
|
|
7098
7247
|
></ng-container>
|
|
@@ -7115,7 +7264,7 @@ class TableComponent {
|
|
|
7115
7264
|
|
|
7116
7265
|
<!-- BADGE -->
|
|
7117
7266
|
<ng-container *ngSwitchCase="'badge'">
|
|
7118
|
-
<div><strong>{{ c
|
|
7267
|
+
<div><strong>{{ columnHeader(c) }}:</strong></div>
|
|
7119
7268
|
<ptech-badge-stack
|
|
7120
7269
|
[style.display]="'inline-flex'"
|
|
7121
7270
|
[justify]="badgeJustify(c.align)"
|
|
@@ -7134,7 +7283,7 @@ class TableComponent {
|
|
|
7134
7283
|
<!-- DATE -->
|
|
7135
7284
|
<ng-container *ngSwitchCase="'date'">
|
|
7136
7285
|
<div>
|
|
7137
|
-
<strong>{{ c
|
|
7286
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7138
7287
|
{{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
|
|
7139
7288
|
</div>
|
|
7140
7289
|
</ng-container>
|
|
@@ -7142,7 +7291,7 @@ class TableComponent {
|
|
|
7142
7291
|
<!-- TOGGLE -->
|
|
7143
7292
|
<ng-container *ngSwitchCase="'toggle'">
|
|
7144
7293
|
<div>
|
|
7145
|
-
<strong>{{ c
|
|
7294
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7146
7295
|
</div>
|
|
7147
7296
|
<ptech-slide-toggle
|
|
7148
7297
|
[label]="resolveToggleLabel(row, c)"
|
|
@@ -7155,7 +7304,7 @@ class TableComponent {
|
|
|
7155
7304
|
<!-- DEFAULT -->
|
|
7156
7305
|
<ng-container *ngSwitchDefault>
|
|
7157
7306
|
<div>
|
|
7158
|
-
<strong>{{ c
|
|
7307
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7159
7308
|
<span [style.color]="resolveColor(row, c)">
|
|
7160
7309
|
{{ renderCell(row, c) }}
|
|
7161
7310
|
</span>
|
|
@@ -7167,7 +7316,11 @@ class TableComponent {
|
|
|
7167
7316
|
|
|
7168
7317
|
|
|
7169
7318
|
<!-- AÇÕES -->
|
|
7170
|
-
<div *ngIf="
|
|
7319
|
+
<div *ngIf="hasActionsColumn" class="card-actions">
|
|
7320
|
+
<ng-container *ngIf="actionsTemplate; else cardConfiguredActions">
|
|
7321
|
+
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: row, row: row }"></ng-container>
|
|
7322
|
+
</ng-container>
|
|
7323
|
+
<ng-template #cardConfiguredActions>
|
|
7171
7324
|
<ng-container *ngFor="let a of actions">
|
|
7172
7325
|
<ptech-button
|
|
7173
7326
|
*ngIf="!a.visible || a.visible(row)"
|
|
@@ -7179,15 +7332,21 @@ class TableComponent {
|
|
|
7179
7332
|
>
|
|
7180
7333
|
</ptech-button>
|
|
7181
7334
|
</ng-container>
|
|
7335
|
+
</ng-template>
|
|
7182
7336
|
</div>
|
|
7183
7337
|
</div>
|
|
7184
7338
|
</div>
|
|
7185
7339
|
|
|
7340
|
+
<div class="table-footer" *ngIf="footerTemplate && renderData?.length">
|
|
7341
|
+
<ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: renderData, data: renderData }"></ng-container>
|
|
7342
|
+
</div>
|
|
7343
|
+
|
|
7186
7344
|
<mat-paginator
|
|
7345
|
+
*ngIf="paginator"
|
|
7187
7346
|
class="mat-paginator"
|
|
7188
|
-
[length]="
|
|
7189
|
-
[pageIndex]="
|
|
7190
|
-
[pageSize]="
|
|
7347
|
+
[length]="resolvedTotal"
|
|
7348
|
+
[pageIndex]="resolvedPageIndex"
|
|
7349
|
+
[pageSize]="resolvedPageSize"
|
|
7191
7350
|
[pageSizeOptions]="pageSizeOptions"
|
|
7192
7351
|
[selectConfig]="{ panelClass: 'ptech-table-paginator-panel' }"
|
|
7193
7352
|
showFirstLastButtons
|
|
@@ -7196,7 +7355,10 @@ class TableComponent {
|
|
|
7196
7355
|
</mat-paginator>
|
|
7197
7356
|
|
|
7198
7357
|
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
|
|
7199
|
-
|
|
7358
|
+
<ng-container *ngIf="emptyTemplate; else defaultEmpty">
|
|
7359
|
+
<ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
|
|
7360
|
+
</ng-container>
|
|
7361
|
+
<ng-template #defaultEmpty>{{ emptyText }}</ng-template>
|
|
7200
7362
|
</div>
|
|
7201
7363
|
</ng-container>
|
|
7202
7364
|
|
|
@@ -7204,12 +7366,12 @@ class TableComponent {
|
|
|
7204
7366
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7205
7367
|
</ng-template>
|
|
7206
7368
|
</div>
|
|
7207
|
-
`, 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;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding: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:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i8$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i8$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7369
|
+
`, 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;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding: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:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3$6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i3$6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i3$6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i3$6.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i3$6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i3$6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i3$6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i3$6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i3$6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i3$6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i4$3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: i5$2.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i5$2.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
7208
7370
|
}
|
|
7209
7371
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
|
|
7210
7372
|
type: Component,
|
|
7211
7373
|
args: [{ selector: 'ptech-table', imports: [CoreMaterialModule, DragDropModule, FormsModule, BadgeComponent, BadgeStackComponent, ButtonComponent, TableCellDirective, CheckBoxComponent, SlideToggleComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
7212
|
-
<div class="table-container mat-elevation-z8">
|
|
7374
|
+
<div class="table-container mat-elevation-z8" [class.disabled]="disabled">
|
|
7213
7375
|
<div class="header-row" *ngIf="title">
|
|
7214
7376
|
<h3>{{ title }}</h3>
|
|
7215
7377
|
</div>
|
|
@@ -7230,6 +7392,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7230
7392
|
<div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
|
|
7231
7393
|
<table
|
|
7232
7394
|
mat-table
|
|
7395
|
+
matSort
|
|
7396
|
+
[matSortActive]="sortField"
|
|
7397
|
+
[matSortDirection]="sortDirection"
|
|
7398
|
+
(matSortChange)="onSort($event)"
|
|
7233
7399
|
[dataSource]="renderData"
|
|
7234
7400
|
cdkDropList
|
|
7235
7401
|
[cdkDropListData]="renderData"
|
|
@@ -7283,21 +7449,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7283
7449
|
</td>
|
|
7284
7450
|
</ng-container>
|
|
7285
7451
|
|
|
7286
|
-
<ng-container *ngFor="let c of
|
|
7452
|
+
<ng-container *ngFor="let c of visibleColumns" [matColumnDef]="columnKey(c)">
|
|
7287
7453
|
<th
|
|
7288
7454
|
mat-header-cell
|
|
7289
7455
|
*matHeaderCellDef
|
|
7290
|
-
[style.text-align]="c.align
|
|
7456
|
+
[style.text-align]="cssAlign(c.align)"
|
|
7457
|
+
[style.width]="cssWidth(c.width)"
|
|
7458
|
+
[mat-sort-header]="columnKey(c)"
|
|
7459
|
+
[disabled]="!c.sortable"
|
|
7460
|
+
[sticky]="stickyHeader"
|
|
7291
7461
|
>
|
|
7292
|
-
|
|
7462
|
+
<ng-container *ngIf="c.templateHeader; else defaultHeader">
|
|
7463
|
+
<ng-container *ngTemplateOutlet="c.templateHeader; context: { $implicit: data, column: c }"></ng-container>
|
|
7464
|
+
</ng-container>
|
|
7465
|
+
<ng-template #defaultHeader>{{ columnHeader(c) }}</ng-template>
|
|
7293
7466
|
</th>
|
|
7294
7467
|
<td
|
|
7295
7468
|
mat-cell
|
|
7296
7469
|
*matCellDef="let row"
|
|
7297
|
-
[
|
|
7470
|
+
[class.clickable]="!!c.action"
|
|
7471
|
+
(click)="onCellClick(row, c)"
|
|
7472
|
+
[style.text-align]="cssAlign(c.align)"
|
|
7473
|
+
[style.width]="cssWidth(c.width)"
|
|
7298
7474
|
>
|
|
7299
7475
|
<!-- se existir template customizado para a coluna, usa ele -->
|
|
7300
|
-
<ng-container *ngIf="
|
|
7476
|
+
<ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCell">
|
|
7301
7477
|
<ng-container
|
|
7302
7478
|
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
|
|
7303
7479
|
></ng-container>
|
|
@@ -7363,11 +7539,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7363
7539
|
|
|
7364
7540
|
</ng-container>
|
|
7365
7541
|
|
|
7366
|
-
<ng-container *ngIf="
|
|
7542
|
+
<ng-container *ngIf="hasActionsColumn" matColumnDef="__actions">
|
|
7367
7543
|
<th mat-header-cell *matHeaderCellDef style="text-align: center">
|
|
7368
7544
|
Ações
|
|
7369
7545
|
</th>
|
|
7370
7546
|
<td mat-cell *matCellDef="let r" style="text-align: center">
|
|
7547
|
+
<ng-container *ngIf="actionsTemplate; else configuredActions">
|
|
7548
|
+
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: r, row: r }"></ng-container>
|
|
7549
|
+
</ng-container>
|
|
7550
|
+
<ng-template #configuredActions>
|
|
7371
7551
|
<ng-container *ngFor="let a of actions">
|
|
7372
7552
|
<ptech-button
|
|
7373
7553
|
*ngIf="!a.visible || a.visible(r)"
|
|
@@ -7379,14 +7559,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7379
7559
|
>
|
|
7380
7560
|
</ptech-button>
|
|
7381
7561
|
</ng-container>
|
|
7562
|
+
</ng-template>
|
|
7382
7563
|
</td>
|
|
7383
7564
|
</ng-container>
|
|
7384
7565
|
|
|
7385
|
-
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
7566
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: stickyHeader"></tr>
|
|
7386
7567
|
<tr
|
|
7387
7568
|
mat-row
|
|
7388
7569
|
*matRowDef="let row; columns: displayedColumns"
|
|
7389
7570
|
[class.selected]="isSelected(row)"
|
|
7571
|
+
[class.clickable]="rowClickable"
|
|
7572
|
+
(click)="onRowClick(row)"
|
|
7390
7573
|
cdkDrag
|
|
7391
7574
|
[cdkDragDisabled]="!reorderable"
|
|
7392
7575
|
></tr>
|
|
@@ -7429,12 +7612,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7429
7612
|
</ng-template>
|
|
7430
7613
|
</div>
|
|
7431
7614
|
|
|
7432
|
-
<div *ngFor="let c of
|
|
7615
|
+
<div *ngFor="let c of visibleColumns" class="card-row">
|
|
7433
7616
|
<!-- Se existir template customizado para a coluna, usa ele
|
|
7434
7617
|
e adiciona o header dinamicamente -->
|
|
7435
|
-
<ng-container *ngIf="
|
|
7618
|
+
<ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCardCell">
|
|
7436
7619
|
<div>
|
|
7437
|
-
<strong>{{ c
|
|
7620
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7438
7621
|
<ng-container
|
|
7439
7622
|
*ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
|
|
7440
7623
|
></ng-container>
|
|
@@ -7457,7 +7640,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7457
7640
|
|
|
7458
7641
|
<!-- BADGE -->
|
|
7459
7642
|
<ng-container *ngSwitchCase="'badge'">
|
|
7460
|
-
<div><strong>{{ c
|
|
7643
|
+
<div><strong>{{ columnHeader(c) }}:</strong></div>
|
|
7461
7644
|
<ptech-badge-stack
|
|
7462
7645
|
[style.display]="'inline-flex'"
|
|
7463
7646
|
[justify]="badgeJustify(c.align)"
|
|
@@ -7476,7 +7659,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7476
7659
|
<!-- DATE -->
|
|
7477
7660
|
<ng-container *ngSwitchCase="'date'">
|
|
7478
7661
|
<div>
|
|
7479
|
-
<strong>{{ c
|
|
7662
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7480
7663
|
{{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
|
|
7481
7664
|
</div>
|
|
7482
7665
|
</ng-container>
|
|
@@ -7484,7 +7667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7484
7667
|
<!-- TOGGLE -->
|
|
7485
7668
|
<ng-container *ngSwitchCase="'toggle'">
|
|
7486
7669
|
<div>
|
|
7487
|
-
<strong>{{ c
|
|
7670
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7488
7671
|
</div>
|
|
7489
7672
|
<ptech-slide-toggle
|
|
7490
7673
|
[label]="resolveToggleLabel(row, c)"
|
|
@@ -7497,7 +7680,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7497
7680
|
<!-- DEFAULT -->
|
|
7498
7681
|
<ng-container *ngSwitchDefault>
|
|
7499
7682
|
<div>
|
|
7500
|
-
<strong>{{ c
|
|
7683
|
+
<strong>{{ columnHeader(c) }}:</strong>
|
|
7501
7684
|
<span [style.color]="resolveColor(row, c)">
|
|
7502
7685
|
{{ renderCell(row, c) }}
|
|
7503
7686
|
</span>
|
|
@@ -7509,7 +7692,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7509
7692
|
|
|
7510
7693
|
|
|
7511
7694
|
<!-- AÇÕES -->
|
|
7512
|
-
<div *ngIf="
|
|
7695
|
+
<div *ngIf="hasActionsColumn" class="card-actions">
|
|
7696
|
+
<ng-container *ngIf="actionsTemplate; else cardConfiguredActions">
|
|
7697
|
+
<ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: row, row: row }"></ng-container>
|
|
7698
|
+
</ng-container>
|
|
7699
|
+
<ng-template #cardConfiguredActions>
|
|
7513
7700
|
<ng-container *ngFor="let a of actions">
|
|
7514
7701
|
<ptech-button
|
|
7515
7702
|
*ngIf="!a.visible || a.visible(row)"
|
|
@@ -7521,15 +7708,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7521
7708
|
>
|
|
7522
7709
|
</ptech-button>
|
|
7523
7710
|
</ng-container>
|
|
7711
|
+
</ng-template>
|
|
7524
7712
|
</div>
|
|
7525
7713
|
</div>
|
|
7526
7714
|
</div>
|
|
7527
7715
|
|
|
7716
|
+
<div class="table-footer" *ngIf="footerTemplate && renderData?.length">
|
|
7717
|
+
<ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: renderData, data: renderData }"></ng-container>
|
|
7718
|
+
</div>
|
|
7719
|
+
|
|
7528
7720
|
<mat-paginator
|
|
7721
|
+
*ngIf="paginator"
|
|
7529
7722
|
class="mat-paginator"
|
|
7530
|
-
[length]="
|
|
7531
|
-
[pageIndex]="
|
|
7532
|
-
[pageSize]="
|
|
7723
|
+
[length]="resolvedTotal"
|
|
7724
|
+
[pageIndex]="resolvedPageIndex"
|
|
7725
|
+
[pageSize]="resolvedPageSize"
|
|
7533
7726
|
[pageSizeOptions]="pageSizeOptions"
|
|
7534
7727
|
[selectConfig]="{ panelClass: 'ptech-table-paginator-panel' }"
|
|
7535
7728
|
showFirstLastButtons
|
|
@@ -7538,7 +7731,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7538
7731
|
</mat-paginator>
|
|
7539
7732
|
|
|
7540
7733
|
<div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
|
|
7541
|
-
|
|
7734
|
+
<ng-container *ngIf="emptyTemplate; else defaultEmpty">
|
|
7735
|
+
<ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
|
|
7736
|
+
</ng-container>
|
|
7737
|
+
<ng-template #defaultEmpty>{{ emptyText }}</ng-template>
|
|
7542
7738
|
</div>
|
|
7543
7739
|
</ng-container>
|
|
7544
7740
|
|
|
@@ -7546,11 +7742,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7546
7742
|
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
|
|
7547
7743
|
</ng-template>
|
|
7548
7744
|
</div>
|
|
7549
|
-
`, 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;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding: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:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
|
|
7745
|
+
`, 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;background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .table-scroll .mat-mdc-header-row,:host ::ng-deep .table-scroll .mdc-data-table__header-row{background:var(--ptech-table-header-bg, var(--app-surface-2, #f7f7f7))}:host ::ng-deep .table-scroll .mat-mdc-header-cell{color:var(--ptech-table-header-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-cell{color:var(--ptech-table-cell-text, var(--app-text, inherit));border-bottom-color:var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)))}:host ::ng-deep .table-scroll .mat-mdc-row,:host ::ng-deep .table-scroll .mdc-data-table__row{background:var(--ptech-table-bg, var(--app-surface, #fff))}:host ::ng-deep .mat-mdc-paginator{background:var(--ptech-table-bg, var(--app-surface, #fff));color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-page-size-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-range-label,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-value-text,:host ::ng-deep .mat-mdc-paginator .mat-mdc-select-arrow,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button{color:var(--ptech-table-cell-text, var(--app-text, inherit))}:host ::ng-deep .mat-mdc-paginator .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button svg path{fill:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled],:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled{color:var(--app-muted, #9ca3af)!important}:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-paginator-icon,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button[disabled] svg path,:host ::ng-deep .mat-mdc-paginator .mat-mdc-icon-button.mat-mdc-button-disabled svg path{fill:var(--app-muted, #9ca3af)!important}::ng-deep .ptech-table-paginator-panel{background-color:var(--app-surface, #fff)!important}::ng-deep .ptech-table-paginator-panel .mdc-list-item__primary-text{color:var(--app-text, inherit)!important}::ng-deep .ptech-table-paginator-panel .mat-mdc-option:hover:not(.mdc-list-item--disabled),::ng-deep .ptech-table-paginator-panel .mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled){background-color:var(--app-chip-bg, rgba(0,0,0,.06))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--ptech-table-cell-text, var(--app-text, inherit))!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__background{border-color:var(--ptech-checkbox-border, var(--ptech-table-cell-text, var(--app-text, inherit)))!important;background-color:transparent!important}:host ::ng-deep .mat-mdc-checkbox .mdc-checkbox__checkmark{color:var(--ptech-checkbox-checkmark, #ffffff)!important}:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,:host ::ng-deep .mat-mdc-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{border-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important;background-color:var(--ptech-checkbox-checked-bg, var(--app-link-accent, #42a5f5))!important}.td-thumb{box-shadow:var(--ptech-table-shadow-sm, 0 1px 2px rgba(0, 0, 0, .15));background:var(--ptech-table-thumb-bg, #f4f6fa)}tr.clickable{cursor:pointer}.disabled{opacity:.64;pointer-events:none}.table-footer{padding:12px 16px;border-top:1px solid var(--ptech-table-divider, var(--app-border-color, rgba(0,0,0,.12)));background:var(--ptech-table-bg, var(--app-surface, #fff))}tr.selected{background-color:var(--ptech-table-row-selected, rgba(33, 150, 243, .08))}.mat-column-select{width:56px;text-align:center}.mat-column-__actions{text-align:center;width:120px}.hide-on-mobile{display:block}.hide-on-desktop{display:none}.table-filters{box-shadow:var(--ptech-table-shadow-md, 0px 4px 6px rgba(0, 0, 0, .2));margin:0 0 10px!important;background-color:var(--ptech-table-filters-bg, var(--app-surface-2, #f7f7f7));padding:16px;border-radius:8px;flex-wrap:wrap;gap:16px;align-items:center}.table-filters-actions{margin:0 0 8px}.table-filters:empty{display:none}.muted{background-color:var(--app-surface, #fff)!important}@media (max-width: 768px){.table-filters{padding:16px;margin-bottom:8px}.table-container{padding: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:var(--ptech-table-card-bg, var(--app-surface, #ffffff));border:1px solid var(--ptech-table-card-border, rgba(0, 0, 0, .06));box-shadow:var(--ptech-table-shadow-card, 0 1px 3px rgba(0, 0, 0, .12));font-family:inherit}.card.selected{border-color:var(--ptech-table-card-selected-border, #1976d2);background-color:var(--ptech-table-card-selected-bg, var(--app-row-selected-bg, #f3f7ff));box-shadow:0 0 0 1px #1976d226}.card-select{display:flex;justify-content:flex-end;margin-bottom:4px}.card-row{display:flex;flex-wrap:wrap;align-items:baseline;padding:4px 0;border-bottom:1px solid var(--ptech-table-card-divider, rgba(0, 0, 0, .04));line-height:1.5}.card-row div{width:100%;display:block;word-break:break-word;overflow-wrap:anywhere;white-space:normal}.card-row span,.card-row strong{word-break:break-word;overflow-wrap:anywhere}.card-row:last-child{border-bottom:none}.card-row strong{font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:var(--ptech-table-card-label, var(--app-muted, rgba(0, 0, 0, .6)));margin-right:6px;white-space:nowrap}.card-row{font-size:14px;color:var(--ptech-table-card-text, var(--app-text, rgba(0, 0, 0, .87)))}.card-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}}\n"] }]
|
|
7550
7746
|
}], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
|
|
7551
7747
|
type: Input
|
|
7552
7748
|
}], loading: [{
|
|
7553
7749
|
type: Input
|
|
7750
|
+
}], shadow: [{
|
|
7751
|
+
type: Input
|
|
7752
|
+
}], disabled: [{
|
|
7753
|
+
type: Input
|
|
7754
|
+
}], emptyText: [{
|
|
7755
|
+
type: Input
|
|
7756
|
+
}], stickyHeader: [{
|
|
7757
|
+
type: Input
|
|
7758
|
+
}], rowClickable: [{
|
|
7759
|
+
type: Input
|
|
7554
7760
|
}], data: [{
|
|
7555
7761
|
type: Input
|
|
7556
7762
|
}], total: [{
|
|
@@ -7561,6 +7767,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7561
7767
|
type: Input
|
|
7562
7768
|
}], pageSizeOptions: [{
|
|
7563
7769
|
type: Input
|
|
7770
|
+
}], totalElements: [{
|
|
7771
|
+
type: Input
|
|
7772
|
+
}], paginatorLength: [{
|
|
7773
|
+
type: Input
|
|
7774
|
+
}], paginatorPageIndex: [{
|
|
7775
|
+
type: Input
|
|
7776
|
+
}], paginatorPageSize: [{
|
|
7777
|
+
type: Input
|
|
7778
|
+
}], serverSidePagination: [{
|
|
7779
|
+
type: Input
|
|
7780
|
+
}], backendPagination: [{
|
|
7781
|
+
type: Input
|
|
7782
|
+
}], paginator: [{
|
|
7783
|
+
type: Input
|
|
7784
|
+
}], sortField: [{
|
|
7785
|
+
type: Input
|
|
7786
|
+
}], sortDirection: [{
|
|
7787
|
+
type: Input
|
|
7788
|
+
}], serverSideSorting: [{
|
|
7789
|
+
type: Input
|
|
7564
7790
|
}], columns: [{
|
|
7565
7791
|
type: Input
|
|
7566
7792
|
}], actions: [{
|
|
@@ -7591,6 +7817,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7591
7817
|
type: Output
|
|
7592
7818
|
}], page: [{
|
|
7593
7819
|
type: Output
|
|
7820
|
+
}], pageChange: [{
|
|
7821
|
+
type: Output
|
|
7822
|
+
}], sortChange: [{
|
|
7823
|
+
type: Output
|
|
7824
|
+
}], rowClick: [{
|
|
7825
|
+
type: Output
|
|
7594
7826
|
}], reorder: [{
|
|
7595
7827
|
type: Output
|
|
7596
7828
|
}], toggleChange: [{
|
|
@@ -7601,6 +7833,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7601
7833
|
}], cellTemplates: [{
|
|
7602
7834
|
type: ContentChildren,
|
|
7603
7835
|
args: [TableCellDirective]
|
|
7836
|
+
}], actionsTemplate: [{
|
|
7837
|
+
type: ContentChild,
|
|
7838
|
+
args: ['actions']
|
|
7839
|
+
}], footerTemplate: [{
|
|
7840
|
+
type: ContentChild,
|
|
7841
|
+
args: ['footer']
|
|
7842
|
+
}], emptyTemplate: [{
|
|
7843
|
+
type: ContentChild,
|
|
7844
|
+
args: ['empty']
|
|
7604
7845
|
}] } });
|
|
7605
7846
|
|
|
7606
7847
|
class ListPaginationComponent {
|
|
@@ -7886,6 +8127,214 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7886
8127
|
type: Output
|
|
7887
8128
|
}] } });
|
|
7888
8129
|
|
|
8130
|
+
class CardComponent {
|
|
8131
|
+
title = '';
|
|
8132
|
+
subtitle = '';
|
|
8133
|
+
icon = '';
|
|
8134
|
+
loading = false;
|
|
8135
|
+
shadow = true;
|
|
8136
|
+
margin = true;
|
|
8137
|
+
selected = false;
|
|
8138
|
+
clickable = false;
|
|
8139
|
+
variant = 'default';
|
|
8140
|
+
/** Enables header wrapper when only projected content is used. */
|
|
8141
|
+
hasHeaderProjection = false;
|
|
8142
|
+
/** Enables footer wrapper when projected footer content is used. */
|
|
8143
|
+
hasFooterProjection = false;
|
|
8144
|
+
cardClick = new EventEmitter();
|
|
8145
|
+
onCardClick(event) {
|
|
8146
|
+
if (this.clickable || this.cardClick.observed) {
|
|
8147
|
+
this.cardClick.emit(event);
|
|
8148
|
+
}
|
|
8149
|
+
}
|
|
8150
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: CardComponent, isStandalone: true, selector: "ptech-card", inputs: { title: "title", subtitle: "subtitle", icon: "icon", loading: "loading", shadow: "shadow", margin: "margin", selected: "selected", clickable: "clickable", variant: "variant", hasHeaderProjection: "hasHeaderProjection", hasFooterProjection: "hasFooterProjection" }, outputs: { cardClick: "cardClick" }, ngImport: i0, template: `
|
|
8152
|
+
<mat-card
|
|
8153
|
+
class="ptech-card"
|
|
8154
|
+
[class.ptech-card--clickable]="clickable || cardClick.observed"
|
|
8155
|
+
[class.ptech-card--selected]="selected || variant === 'selected'"
|
|
8156
|
+
[class.ptech-card--flat]="variant === 'flat' || !shadow"
|
|
8157
|
+
[class.ptech-card--outlined]="variant === 'outlined'"
|
|
8158
|
+
[class.ptech-card--marginless]="!margin"
|
|
8159
|
+
(click)="onCardClick($event)"
|
|
8160
|
+
>
|
|
8161
|
+
<mat-card-header *ngIf="title || subtitle || icon || hasHeaderProjection" class="ptech-card__header">
|
|
8162
|
+
<div *ngIf="icon" mat-card-avatar class="ptech-card__avatar">
|
|
8163
|
+
<mat-icon>{{ icon }}</mat-icon>
|
|
8164
|
+
</div>
|
|
8165
|
+
|
|
8166
|
+
<mat-card-title-group *ngIf="title || subtitle">
|
|
8167
|
+
<mat-card-title>{{ title }}</mat-card-title>
|
|
8168
|
+
<mat-card-subtitle *ngIf="subtitle">{{ subtitle }}</mat-card-subtitle>
|
|
8169
|
+
</mat-card-title-group>
|
|
8170
|
+
|
|
8171
|
+
<ng-content select="[ptechCardHeader]"></ng-content>
|
|
8172
|
+
<span class="ptech-card__spacer"></span>
|
|
8173
|
+
<ng-content select="[ptechCardActions]"></ng-content>
|
|
8174
|
+
</mat-card-header>
|
|
8175
|
+
|
|
8176
|
+
<mat-card-content class="ptech-card__content">
|
|
8177
|
+
<ptech-loading-overlay *ngIf="loading"></ptech-loading-overlay>
|
|
8178
|
+
<ng-content select="[ptechCardContent]"></ng-content>
|
|
8179
|
+
<ng-content></ng-content>
|
|
8180
|
+
</mat-card-content>
|
|
8181
|
+
|
|
8182
|
+
<mat-card-actions *ngIf="hasFooterProjection" class="ptech-card__footer">
|
|
8183
|
+
<ng-content select="[ptechCardFooter]"></ng-content>
|
|
8184
|
+
</mat-card-actions>
|
|
8185
|
+
</mat-card>
|
|
8186
|
+
`, isInline: true, styles: [":host{display:block}.ptech-card{position:relative;margin:0 0 16px}.ptech-card--marginless{margin-left:0;margin-right:0}.ptech-card--flat{box-shadow:none!important}.ptech-card--outlined{box-shadow:none!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))}.ptech-card--selected{border:1px solid var(--app-primary, #3f51b5)}.ptech-card--clickable{cursor:pointer}.ptech-card__header{align-items:center}.ptech-card__avatar{display:inline-flex;align-items:center;justify-content:center}.ptech-card__spacer{flex:1 1 auto}.ptech-card__content{position:relative}.ptech-card__footer{display:flex;justify-content:flex-end;gap:8px}\n"], 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$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i2$2.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i2$2.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i2$2.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i2$2.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i2$2.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "directive", type: i2$2.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i2$2.MatCardTitleGroup, selector: "mat-card-title-group" }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: LoadingOverlayComponent, selector: "ptech-loading-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8187
|
+
}
|
|
8188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CardComponent, decorators: [{
|
|
8189
|
+
type: Component,
|
|
8190
|
+
args: [{ selector: 'ptech-card', standalone: true, imports: [CommonModule, CoreMaterialModule, LoadingOverlayComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8191
|
+
<mat-card
|
|
8192
|
+
class="ptech-card"
|
|
8193
|
+
[class.ptech-card--clickable]="clickable || cardClick.observed"
|
|
8194
|
+
[class.ptech-card--selected]="selected || variant === 'selected'"
|
|
8195
|
+
[class.ptech-card--flat]="variant === 'flat' || !shadow"
|
|
8196
|
+
[class.ptech-card--outlined]="variant === 'outlined'"
|
|
8197
|
+
[class.ptech-card--marginless]="!margin"
|
|
8198
|
+
(click)="onCardClick($event)"
|
|
8199
|
+
>
|
|
8200
|
+
<mat-card-header *ngIf="title || subtitle || icon || hasHeaderProjection" class="ptech-card__header">
|
|
8201
|
+
<div *ngIf="icon" mat-card-avatar class="ptech-card__avatar">
|
|
8202
|
+
<mat-icon>{{ icon }}</mat-icon>
|
|
8203
|
+
</div>
|
|
8204
|
+
|
|
8205
|
+
<mat-card-title-group *ngIf="title || subtitle">
|
|
8206
|
+
<mat-card-title>{{ title }}</mat-card-title>
|
|
8207
|
+
<mat-card-subtitle *ngIf="subtitle">{{ subtitle }}</mat-card-subtitle>
|
|
8208
|
+
</mat-card-title-group>
|
|
8209
|
+
|
|
8210
|
+
<ng-content select="[ptechCardHeader]"></ng-content>
|
|
8211
|
+
<span class="ptech-card__spacer"></span>
|
|
8212
|
+
<ng-content select="[ptechCardActions]"></ng-content>
|
|
8213
|
+
</mat-card-header>
|
|
8214
|
+
|
|
8215
|
+
<mat-card-content class="ptech-card__content">
|
|
8216
|
+
<ptech-loading-overlay *ngIf="loading"></ptech-loading-overlay>
|
|
8217
|
+
<ng-content select="[ptechCardContent]"></ng-content>
|
|
8218
|
+
<ng-content></ng-content>
|
|
8219
|
+
</mat-card-content>
|
|
8220
|
+
|
|
8221
|
+
<mat-card-actions *ngIf="hasFooterProjection" class="ptech-card__footer">
|
|
8222
|
+
<ng-content select="[ptechCardFooter]"></ng-content>
|
|
8223
|
+
</mat-card-actions>
|
|
8224
|
+
</mat-card>
|
|
8225
|
+
`, styles: [":host{display:block}.ptech-card{position:relative;margin:0 0 16px}.ptech-card--marginless{margin-left:0;margin-right:0}.ptech-card--flat{box-shadow:none!important}.ptech-card--outlined{box-shadow:none!important;border:1px solid var(--app-border-color, rgba(0,0,0,.12))}.ptech-card--selected{border:1px solid var(--app-primary, #3f51b5)}.ptech-card--clickable{cursor:pointer}.ptech-card__header{align-items:center}.ptech-card__avatar{display:inline-flex;align-items:center;justify-content:center}.ptech-card__spacer{flex:1 1 auto}.ptech-card__content{position:relative}.ptech-card__footer{display:flex;justify-content:flex-end;gap:8px}\n"] }]
|
|
8226
|
+
}], propDecorators: { title: [{
|
|
8227
|
+
type: Input
|
|
8228
|
+
}], subtitle: [{
|
|
8229
|
+
type: Input
|
|
8230
|
+
}], icon: [{
|
|
8231
|
+
type: Input
|
|
8232
|
+
}], loading: [{
|
|
8233
|
+
type: Input
|
|
8234
|
+
}], shadow: [{
|
|
8235
|
+
type: Input
|
|
8236
|
+
}], margin: [{
|
|
8237
|
+
type: Input
|
|
8238
|
+
}], selected: [{
|
|
8239
|
+
type: Input
|
|
8240
|
+
}], clickable: [{
|
|
8241
|
+
type: Input
|
|
8242
|
+
}], variant: [{
|
|
8243
|
+
type: Input
|
|
8244
|
+
}], hasHeaderProjection: [{
|
|
8245
|
+
type: Input
|
|
8246
|
+
}], hasFooterProjection: [{
|
|
8247
|
+
type: Input
|
|
8248
|
+
}], cardClick: [{
|
|
8249
|
+
type: Output
|
|
8250
|
+
}] } });
|
|
8251
|
+
|
|
8252
|
+
class ExpansionPanelComponent {
|
|
8253
|
+
icon = '';
|
|
8254
|
+
title = '';
|
|
8255
|
+
subtitle = '';
|
|
8256
|
+
rightTitle = '';
|
|
8257
|
+
expanded = true;
|
|
8258
|
+
disabled = false;
|
|
8259
|
+
opened = new EventEmitter();
|
|
8260
|
+
closed = new EventEmitter();
|
|
8261
|
+
toggled = new EventEmitter();
|
|
8262
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ExpansionPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8263
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ExpansionPanelComponent, isStandalone: true, selector: "ptech-expansion-panel", inputs: { icon: "icon", title: "title", subtitle: "subtitle", rightTitle: "rightTitle", expanded: "expanded", disabled: "disabled" }, outputs: { opened: "opened", closed: "closed", toggled: "toggled" }, ngImport: i0, template: `
|
|
8264
|
+
<mat-accordion>
|
|
8265
|
+
<mat-expansion-panel
|
|
8266
|
+
[expanded]="expanded"
|
|
8267
|
+
[disabled]="disabled"
|
|
8268
|
+
(opened)="opened.emit()"
|
|
8269
|
+
(closed)="closed.emit()"
|
|
8270
|
+
(afterExpand)="toggled.emit(true)"
|
|
8271
|
+
(afterCollapse)="toggled.emit(false)"
|
|
8272
|
+
>
|
|
8273
|
+
<mat-expansion-panel-header>
|
|
8274
|
+
<mat-panel-title>
|
|
8275
|
+
<mat-icon *ngIf="icon" class="ptech-expansion-panel__icon">{{ icon }}</mat-icon>
|
|
8276
|
+
<span *ngIf="title">{{ title }}</span>
|
|
8277
|
+
<ng-content select="[ptechExpansionHeader]"></ng-content>
|
|
8278
|
+
</mat-panel-title>
|
|
8279
|
+
<mat-panel-description *ngIf="subtitle || rightTitle">
|
|
8280
|
+
<span>{{ subtitle || rightTitle }}</span>
|
|
8281
|
+
<ng-content select="[ptechExpansionActions]"></ng-content>
|
|
8282
|
+
</mat-panel-description>
|
|
8283
|
+
</mat-expansion-panel-header>
|
|
8284
|
+
|
|
8285
|
+
<ng-content></ng-content>
|
|
8286
|
+
</mat-expansion-panel>
|
|
8287
|
+
</mat-accordion>
|
|
8288
|
+
`, isInline: true, styles: [":host{display:block}.ptech-expansion-panel__icon{margin-right:8px}mat-panel-title{align-items:center}mat-panel-description{justify-content:flex-end;align-items:center;gap:8px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i3$7.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i3$7.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3$7.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i3$7.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i3$7.MatExpansionPanelDescription, selector: "mat-panel-description" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
8289
|
+
}
|
|
8290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ExpansionPanelComponent, decorators: [{
|
|
8291
|
+
type: Component,
|
|
8292
|
+
args: [{ selector: 'ptech-expansion-panel', standalone: true, imports: [CommonModule, CoreMaterialModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
8293
|
+
<mat-accordion>
|
|
8294
|
+
<mat-expansion-panel
|
|
8295
|
+
[expanded]="expanded"
|
|
8296
|
+
[disabled]="disabled"
|
|
8297
|
+
(opened)="opened.emit()"
|
|
8298
|
+
(closed)="closed.emit()"
|
|
8299
|
+
(afterExpand)="toggled.emit(true)"
|
|
8300
|
+
(afterCollapse)="toggled.emit(false)"
|
|
8301
|
+
>
|
|
8302
|
+
<mat-expansion-panel-header>
|
|
8303
|
+
<mat-panel-title>
|
|
8304
|
+
<mat-icon *ngIf="icon" class="ptech-expansion-panel__icon">{{ icon }}</mat-icon>
|
|
8305
|
+
<span *ngIf="title">{{ title }}</span>
|
|
8306
|
+
<ng-content select="[ptechExpansionHeader]"></ng-content>
|
|
8307
|
+
</mat-panel-title>
|
|
8308
|
+
<mat-panel-description *ngIf="subtitle || rightTitle">
|
|
8309
|
+
<span>{{ subtitle || rightTitle }}</span>
|
|
8310
|
+
<ng-content select="[ptechExpansionActions]"></ng-content>
|
|
8311
|
+
</mat-panel-description>
|
|
8312
|
+
</mat-expansion-panel-header>
|
|
8313
|
+
|
|
8314
|
+
<ng-content></ng-content>
|
|
8315
|
+
</mat-expansion-panel>
|
|
8316
|
+
</mat-accordion>
|
|
8317
|
+
`, styles: [":host{display:block}.ptech-expansion-panel__icon{margin-right:8px}mat-panel-title{align-items:center}mat-panel-description{justify-content:flex-end;align-items:center;gap:8px}\n"] }]
|
|
8318
|
+
}], propDecorators: { icon: [{
|
|
8319
|
+
type: Input
|
|
8320
|
+
}], title: [{
|
|
8321
|
+
type: Input
|
|
8322
|
+
}], subtitle: [{
|
|
8323
|
+
type: Input
|
|
8324
|
+
}], rightTitle: [{
|
|
8325
|
+
type: Input
|
|
8326
|
+
}], expanded: [{
|
|
8327
|
+
type: Input
|
|
8328
|
+
}], disabled: [{
|
|
8329
|
+
type: Input
|
|
8330
|
+
}], opened: [{
|
|
8331
|
+
type: Output
|
|
8332
|
+
}], closed: [{
|
|
8333
|
+
type: Output
|
|
8334
|
+
}], toggled: [{
|
|
8335
|
+
type: Output
|
|
8336
|
+
}] } });
|
|
8337
|
+
|
|
7889
8338
|
class SnackbarMessageService {
|
|
7890
8339
|
snackBar;
|
|
7891
8340
|
constructor(snackBar) {
|
|
@@ -7981,7 +8430,9 @@ class PumpkinTechModule {
|
|
|
7981
8430
|
FlagComponent,
|
|
7982
8431
|
TableComponent,
|
|
7983
8432
|
ListPaginationComponent,
|
|
7984
|
-
DialogShellComponent
|
|
8433
|
+
DialogShellComponent,
|
|
8434
|
+
CardComponent,
|
|
8435
|
+
ExpansionPanelComponent], exports: [
|
|
7985
8436
|
// reexporta tudo junto
|
|
7986
8437
|
InputComponent,
|
|
7987
8438
|
TextareaComponent,
|
|
@@ -8019,6 +8470,8 @@ class PumpkinTechModule {
|
|
|
8019
8470
|
TableComponent,
|
|
8020
8471
|
ListPaginationComponent,
|
|
8021
8472
|
DialogShellComponent,
|
|
8473
|
+
CardComponent,
|
|
8474
|
+
ExpansionPanelComponent,
|
|
8022
8475
|
CoreMaterialModule] });
|
|
8023
8476
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, providers: [
|
|
8024
8477
|
{
|
|
@@ -8061,7 +8514,9 @@ class PumpkinTechModule {
|
|
|
8061
8514
|
FlagComponent,
|
|
8062
8515
|
TableComponent,
|
|
8063
8516
|
ListPaginationComponent,
|
|
8064
|
-
DialogShellComponent,
|
|
8517
|
+
DialogShellComponent,
|
|
8518
|
+
CardComponent,
|
|
8519
|
+
ExpansionPanelComponent, CoreMaterialModule] });
|
|
8065
8520
|
}
|
|
8066
8521
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, decorators: [{
|
|
8067
8522
|
type: NgModule,
|
|
@@ -8105,7 +8560,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8105
8560
|
FlagComponent,
|
|
8106
8561
|
TableComponent,
|
|
8107
8562
|
ListPaginationComponent,
|
|
8108
|
-
DialogShellComponent
|
|
8563
|
+
DialogShellComponent,
|
|
8564
|
+
CardComponent,
|
|
8565
|
+
ExpansionPanelComponent
|
|
8109
8566
|
],
|
|
8110
8567
|
exports: [
|
|
8111
8568
|
// reexporta tudo junto
|
|
@@ -8145,6 +8602,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8145
8602
|
TableComponent,
|
|
8146
8603
|
ListPaginationComponent,
|
|
8147
8604
|
DialogShellComponent,
|
|
8605
|
+
CardComponent,
|
|
8606
|
+
ExpansionPanelComponent,
|
|
8148
8607
|
CoreMaterialModule,
|
|
8149
8608
|
],
|
|
8150
8609
|
providers: [
|
|
@@ -9275,7 +9734,7 @@ class BreadcrumbService {
|
|
|
9275
9734
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BreadcrumbService, decorators: [{
|
|
9276
9735
|
type: Injectable,
|
|
9277
9736
|
args: [{ providedIn: 'root' }]
|
|
9278
|
-
}], ctorParameters: () => [{ type: i3$2.Router }, { type: i2$
|
|
9737
|
+
}], ctorParameters: () => [{ type: i3$2.Router }, { type: i2$4.Observable, decorators: [{
|
|
9279
9738
|
type: Optional
|
|
9280
9739
|
}, {
|
|
9281
9740
|
type: Inject,
|
|
@@ -9589,5 +10048,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
9589
10048
|
* Generated bundle index. Do not edit.
|
|
9590
10049
|
*/
|
|
9591
10050
|
|
|
9592
|
-
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, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
10051
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, ExpansionPanelComponent, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, ListPaginationComponent, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PtechTableColumnBuilder, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
9593
10052
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|