@pumpkin-tech/pumpkin-tech-ng 0.2.42 → 0.2.44

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,9 +1,9 @@
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 from 'rxjs';
5
- import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, tap, map, of } from 'rxjs';
6
- import { takeUntil, filter as filter$1, switchMap } from 'rxjs/operators';
4
+ import * as i2$5 from 'rxjs';
5
+ import { Subject, BehaviorSubject, takeUntil as takeUntil$1, filter, delay, debounceTime, distinctUntilChanged, tap, switchMap, of, isObservable, from, map } from 'rxjs';
6
+ import { takeUntil, filter as filter$1, switchMap as switchMap$1 } from 'rxjs/operators';
7
7
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
8
  import * as i2 from '@angular/forms';
9
9
  import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormControl } from '@angular/forms';
@@ -19,7 +19,7 @@ import * as i6 from '@angular/material/list';
19
19
  import { MatListModule } from '@angular/material/list';
20
20
  import * as i2$1 from '@angular/material/button';
21
21
  import { MatButtonModule } from '@angular/material/button';
22
- import * as i1$5 from '@angular/material/snack-bar';
22
+ import * as i1$4 from '@angular/material/snack-bar';
23
23
  import { MatSnackBarModule, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
24
24
  import * as i3 from '@angular/material/form-field';
25
25
  import { MatFormFieldModule } from '@angular/material/form-field';
@@ -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';
@@ -39,15 +40,15 @@ import * as i4$2 from '@angular/material/menu';
39
40
  import { MatMenuModule } from '@angular/material/menu';
40
41
  import * as i3$5 from '@angular/material/datepicker';
41
42
  import { MatDatepickerModule, MatDatepicker } from '@angular/material/datepicker';
42
- import * as i1$2 from '@angular/material/progress-bar';
43
+ import * as i6$1 from '@angular/material/progress-bar';
43
44
  import { MatProgressBarModule } from '@angular/material/progress-bar';
44
- import * as i1$3 from '@angular/material/slide-toggle';
45
+ import * as i1$2 from '@angular/material/slide-toggle';
45
46
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
46
47
  import * as i3$4 from '@angular/material/radio';
47
48
  import { MatRadioModule } from '@angular/material/radio';
48
49
  import * as i4$1 from '@angular/material/select';
49
50
  import { MatSelectModule } from '@angular/material/select';
50
- import * as i1$4 from '@angular/material/dialog';
51
+ import * as i1$3 from '@angular/material/dialog';
51
52
  import { MatDialogModule, MAT_DIALOG_DATA } from '@angular/material/dialog';
52
53
  import * as i9 from '@angular/material/checkbox';
53
54
  import { MatCheckboxModule } from '@angular/material/checkbox';
@@ -55,12 +56,17 @@ import * as i5 from '@angular/material/progress-spinner';
55
56
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
56
57
  import * as i3$7 from '@angular/material/expansion';
57
58
  import { MatExpansionModule } from '@angular/material/expansion';
58
- import { MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
59
+ import * as i9$2 from '@angular/material/autocomplete';
60
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
61
+ import * as i2$4 from '@angular/material/core';
62
+ import { MatRippleModule, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
63
+ import * as i4$4 from '@angular/material/tabs';
64
+ import { MatTabsModule } from '@angular/material/tabs';
59
65
  import { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MomentDateAdapter } from '@angular/material-moment-adapter';
60
66
  import 'moment/locale/pt-br';
61
67
  import * as i3$2 from '@angular/router';
62
68
  import { RouterModule, NavigationEnd } from '@angular/router';
63
- import * as i8$1 from '@angular/cdk/drag-drop';
69
+ import * as i9$1 from '@angular/cdk/drag-drop';
64
70
  import { CdkDrag, CdkDragHandle, moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
65
71
  import * as i2$3 from '@angular/platform-browser';
66
72
  import * as i8 from 'ngx-material-timepicker';
@@ -413,7 +419,10 @@ const MATERIAL = [
413
419
  MatRadioModule,
414
420
  MatCheckboxModule,
415
421
  MatProgressSpinnerModule,
416
- MatExpansionModule
422
+ MatExpansionModule,
423
+ MatAutocompleteModule,
424
+ MatRippleModule,
425
+ MatTabsModule
417
426
  ];
418
427
  class CoreMaterialModule {
419
428
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -440,7 +449,10 @@ class CoreMaterialModule {
440
449
  MatRadioModule,
441
450
  MatCheckboxModule,
442
451
  MatProgressSpinnerModule,
443
- MatExpansionModule], exports: [CommonModule, FormsModule, ReactiveFormsModule, MatToolbarModule,
452
+ MatExpansionModule,
453
+ MatAutocompleteModule,
454
+ MatRippleModule,
455
+ MatTabsModule], exports: [CommonModule, FormsModule, ReactiveFormsModule, MatToolbarModule,
444
456
  MatSidenavModule,
445
457
  MatListModule,
446
458
  MatButtonModule,
@@ -463,7 +475,10 @@ class CoreMaterialModule {
463
475
  MatRadioModule,
464
476
  MatCheckboxModule,
465
477
  MatProgressSpinnerModule,
466
- MatExpansionModule] });
478
+ MatExpansionModule,
479
+ MatAutocompleteModule,
480
+ MatRippleModule,
481
+ MatTabsModule] });
467
482
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, providers: [
468
483
  { provide: MatPaginatorIntl, useClass: PortugueseMatPaginatorIntl },
469
484
  { provide: MAT_DATE_LOCALE, useValue: 'pt-BR' },
@@ -496,7 +511,10 @@ class CoreMaterialModule {
496
511
  MatRadioModule,
497
512
  MatCheckboxModule,
498
513
  MatProgressSpinnerModule,
499
- MatExpansionModule] });
514
+ MatExpansionModule,
515
+ MatAutocompleteModule,
516
+ MatRippleModule,
517
+ MatTabsModule] });
500
518
  }
501
519
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CoreMaterialModule, decorators: [{
502
520
  type: NgModule,
@@ -3517,7 +3535,7 @@ class ProgressBarComponent {
3517
3535
  [color]="dynamicColorPrimary"
3518
3536
  ></mat-progress-bar>
3519
3537
  </p>
3520
- `, isInline: true, styles: [".progress-values{position:absolute;width:100%;text-align:center;bottom:0;transform:translateY(-50%);z-index:1;font-size:1.2rem}.progress-bar-container{position:relative}.custom-progress-bar{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
3538
+ `, isInline: true, styles: [".progress-values{position:absolute;width:100%;text-align:center;bottom:0;transform:translateY(-50%);z-index:1;font-size:1.2rem}.progress-bar-container{position:relative}.custom-progress-bar{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
3521
3539
  }
3522
3540
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarComponent, decorators: [{
3523
3541
  type: Component,
@@ -3582,7 +3600,7 @@ class ProgressBarMultipleComponent {
3582
3600
  return 'warn';
3583
3601
  }
3584
3602
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarMultipleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3585
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ProgressBarMultipleComponent, isStandalone: true, selector: "ptech-progress-bar-multiple", inputs: { progressStartPrimary: "progressStartPrimary", progressEndPrimary: "progressEndPrimary", labelPrimary: "labelPrimary", progressStartSecondary: "progressStartSecondary", progressEndSecondary: "progressEndSecondary", labelSecondary: "labelSecondary" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"progress-bar-vertical\">\n <!-- Progresso prim\u00E1rio -->\n <div class=\"progress-section\">\n <div class=\"progress-overlay\" *ngIf=\"labelPrimary\">\n {{ labelPrimary }}: {{ progressPercentagePrimary }}%\n </div>\n <div class=\"progress-overlay\" *ngIf=\"!labelPrimary\">\n {{ progressPercentagePrimary }}%\n </div>\n\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentagePrimary\"\n [color]=\"dynamicColorPrimary\"\n ></mat-progress-bar>\n </div>\n\n <!-- Progresso secund\u00E1rio -->\n <div\n *ngIf=\"progressPercentageSecondary !== undefined\"\n class=\"progress-section\"\n >\n <div class=\"progress-overlay\">\n {{ labelSecondary }}: {{ progressPercentageSecondary }}%\n </div>\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentageSecondary\"\n [color]=\"dynamicColorSecondary\"\n ></mat-progress-bar>\n </div>\n</div>\n", styles: [".progress-bar-vertical{display:flex;flex-direction:column;gap:16px}.progress-section{position:relative;height:30px}.custom-progress-bar{height:20px;border-radius:6px}.progress-overlay{position:absolute;width:100%;height:100%;top:-18px;left:0;display:flex;align-items:center;justify-content:center;font-size:1.2rem;z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
3603
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ProgressBarMultipleComponent, isStandalone: true, selector: "ptech-progress-bar-multiple", inputs: { progressStartPrimary: "progressStartPrimary", progressEndPrimary: "progressEndPrimary", labelPrimary: "labelPrimary", progressStartSecondary: "progressStartSecondary", progressEndSecondary: "progressEndSecondary", labelSecondary: "labelSecondary" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"progress-bar-vertical\">\n <!-- Progresso prim\u00E1rio -->\n <div class=\"progress-section\">\n <div class=\"progress-overlay\" *ngIf=\"labelPrimary\">\n {{ labelPrimary }}: {{ progressPercentagePrimary }}%\n </div>\n <div class=\"progress-overlay\" *ngIf=\"!labelPrimary\">\n {{ progressPercentagePrimary }}%\n </div>\n\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentagePrimary\"\n [color]=\"dynamicColorPrimary\"\n ></mat-progress-bar>\n </div>\n\n <!-- Progresso secund\u00E1rio -->\n <div\n *ngIf=\"progressPercentageSecondary !== undefined\"\n class=\"progress-section\"\n >\n <div class=\"progress-overlay\">\n {{ labelSecondary }}: {{ progressPercentageSecondary }}%\n </div>\n <mat-progress-bar\n class=\"custom-progress-bar\"\n mode=\"determinate\"\n [value]=\"progressPercentageSecondary\"\n [color]=\"dynamicColorSecondary\"\n ></mat-progress-bar>\n </div>\n</div>\n", styles: [".progress-bar-vertical{display:flex;flex-direction:column;gap:16px}.progress-section{position:relative;height:30px}.custom-progress-bar{height:20px;border-radius:6px}.progress-overlay{position:absolute;width:100%;height:100%;top:-18px;left:0;display:flex;align-items:center;justify-content:center;font-size:1.2rem;z-index:1;pointer-events:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
3586
3604
  }
3587
3605
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProgressBarMultipleComponent, decorators: [{
3588
3606
  type: Component,
@@ -4029,7 +4047,7 @@ class SlideToggleComponent extends BaseField {
4029
4047
  {{ label }}
4030
4048
  </mat-slide-toggle>
4031
4049
  </div>
4032
- `, isInline: true, styles: [":host{display:block}.ptech-slide-toggle-container{display:flex;flex-direction:column}:host ::ng-deep .mat-mdc-slide-toggle .mdc-label,:host ::ng-deep .mat-mdc-slide-toggle .mdc-form-field>label{color:var(--ptech-toggle-label, var(--app-text, inherit))!important}mat-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1$3.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4050
+ `, isInline: true, styles: [":host{display:block}.ptech-slide-toggle-container{display:flex;flex-direction:column}:host ::ng-deep .mat-mdc-slide-toggle .mdc-label,:host ::ng-deep .mat-mdc-slide-toggle .mdc-form-field>label{color:var(--ptech-toggle-label, var(--app-text, inherit))!important}mat-slide-toggle{margin-bottom:15px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i1$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4033
4051
  }
4034
4052
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SlideToggleComponent, decorators: [{
4035
4053
  type: Component,
@@ -4311,7 +4329,7 @@ class ConfirmationDialogComponent {
4311
4329
  cancel() {
4312
4330
  this.dialogRef.close(false);
4313
4331
  }
4314
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
4332
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, deps: [{ token: i1$3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
4315
4333
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ConfirmationDialogComponent, isStandalone: true, selector: "ptech-confirmation-dialog", ngImport: i0, template: `
4316
4334
  <div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
4317
4335
  <div class="ptech-dialog-header">
@@ -4348,7 +4366,7 @@ class ConfirmationDialogComponent {
4348
4366
  </button>
4349
4367
  </div>
4350
4368
  </div>
4351
- `, 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(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { 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.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { 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"] }] });
4369
+ `, 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(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: CoreMaterialModule }, { kind: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { 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"] }] });
4352
4370
  }
4353
4371
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ConfirmationDialogComponent, decorators: [{
4354
4372
  type: Component,
@@ -4389,7 +4407,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4389
4407
  </div>
4390
4408
  </div>
4391
4409
  `, 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(560px,92vw)}.dialog-title{font-size:1.4rem;font-weight:700;margin:0;text-align:left}.dialog-content{font-size:16px;text-align:left;color:var(--ptech-dialog-text, var(--app-text, inherit))}button{padding:8px 24px;font-size:14px;font-weight:500;text-transform:none}\n"] }]
4392
- }], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
4410
+ }], ctorParameters: () => [{ type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
4393
4411
  type: Inject,
4394
4412
  args: [MAT_DIALOG_DATA]
4395
4413
  }] }] });
@@ -4723,7 +4741,7 @@ class ActionDialogComponent {
4723
4741
  onSelectionChange($event) {
4724
4742
  // console.log('selection changed', $event);
4725
4743
  }
4726
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4744
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4727
4745
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ActionDialogComponent, isStandalone: true, selector: "ptech-action-dialog", ngImport: i0, template: `
4728
4746
  <div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
4729
4747
  <div class="ptech-dialog-header">
@@ -4824,7 +4842,7 @@ class ActionDialogComponent {
4824
4842
  ></ptech-button>
4825
4843
  </mat-dialog-actions>
4826
4844
  </div>
4827
- `, 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"] }] });
4845
+ `, 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$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.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
4846
  }
4829
4847
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionDialogComponent, decorators: [{
4830
4848
  type: Component,
@@ -4943,7 +4961,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
4943
4961
  }], ctorParameters: () => [{ type: undefined, decorators: [{
4944
4962
  type: Inject,
4945
4963
  args: [MAT_DIALOG_DATA]
4946
- }] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
4964
+ }] }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
4947
4965
  type: Optional
4948
4966
  }, {
4949
4967
  type: Inject,
@@ -4977,7 +4995,7 @@ class InfoDetailDialogComponent {
4977
4995
  close() {
4978
4996
  this.dialogRef.close();
4979
4997
  }
4980
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$4.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4998
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: MESSAGE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4981
4999
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailDialogComponent, isStandalone: true, selector: "ptech-info-detail-dialog", ngImport: i0, template: `
4982
5000
  <div class="ptech-dialog-shell" cdkDrag cdkDragRootElement=".cdk-overlay-pane">
4983
5001
  <div class="ptech-dialog-header">
@@ -5034,7 +5052,7 @@ class InfoDetailDialogComponent {
5034
5052
 
5035
5053
  </mat-dialog-actions>
5036
5054
  </div>
5037
- `, 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(840px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.6rem}.info-dialog-content{white-space:normal;word-break:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.5}.action-btn{margin:0}.link-reset{text-decoration:none}@media (max-width: 900px){.ptech-dialog-shell{min-width:min(92vw,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.3rem}}\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: 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"] }] });
5055
+ `, 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(840px,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.6rem}.info-dialog-content{white-space:normal;word-break:break-word;overflow-wrap:break-word;font-size:14px;line-height:1.5}.action-btn{margin:0}.link-reset{text-decoration:none}@media (max-width: 900px){.ptech-dialog-shell{min-width:min(92vw,92vw)}.ptech-dialog-heading h2[mat-dialog-title]{font-size:1.3rem}}\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: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.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"] }] });
5038
5056
  }
5039
5057
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailDialogComponent, decorators: [{
5040
5058
  type: Component,
@@ -5098,7 +5116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5098
5116
  }], ctorParameters: () => [{ type: undefined, decorators: [{
5099
5117
  type: Inject,
5100
5118
  args: [MAT_DIALOG_DATA]
5101
- }] }, { type: i1$4.MatDialogRef }, { type: undefined, decorators: [{
5119
+ }] }, { type: i1$3.MatDialogRef }, { type: undefined, decorators: [{
5102
5120
  type: Optional
5103
5121
  }, {
5104
5122
  type: Inject,
@@ -5126,7 +5144,7 @@ class InfoDetailComponent {
5126
5144
  },
5127
5145
  });
5128
5146
  }
5129
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
5147
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InfoDetailComponent, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
5130
5148
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: InfoDetailComponent, isStandalone: true, selector: "ptech-info-detail", inputs: { infoTitle: "infoTitle", infoSubtitle: "infoSubtitle", infoContent: "infoContent", infoRawContent: "infoRawContent", iconColor: "iconColor" }, ngImport: i0, template: `
5131
5149
  <div class="info-trigger" (click)="openInfo()" [style.color]="iconColor">
5132
5150
  <ptech-button
@@ -5152,7 +5170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5152
5170
  <ng-content></ng-content>
5153
5171
  </div>
5154
5172
  `, styles: [":host{display:inline-block;font-family:Inter,sans-serif;color:var(--text-color, var(--app-text, #ffffff))}.info-trigger{display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;transition:opacity .2s ease,transform .15s ease}.info-trigger:hover{opacity:.85;transform:translateY(-1px)}.info-trigger .detail-link{margin:0;line-height:1.2;font-size:.85rem;text-decoration:underline;color:inherit;transition:color .2s ease}.info-trigger .detail-link:hover{color:var(--link-hover-color, var(--app-link-accent, #00bfff))}@media (max-width: 600px){.info-trigger{gap:.625rem}.info-trigger .detail-link{font-size:.95rem}}\n"] }]
5155
- }], ctorParameters: () => [{ type: i1$4.MatDialog }], propDecorators: { infoTitle: [{
5173
+ }], ctorParameters: () => [{ type: i1$3.MatDialog }], propDecorators: { infoTitle: [{
5156
5174
  type: Input
5157
5175
  }], infoSubtitle: [{
5158
5176
  type: Input
@@ -5208,8 +5226,8 @@ class ActionResultDialogComponent {
5208
5226
  return;
5209
5227
  window.open(this.whatsappUrl, '_blank');
5210
5228
  }
5211
- 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 });
5212
- 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" }] });
5229
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: i1$3.MatDialogRef }, { token: i2$3.DomSanitizer }, { token: MESSAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
5230
+ 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$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$3.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" }] });
5213
5231
  }
5214
5232
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ActionResultDialogComponent, decorators: [{
5215
5233
  type: Component,
@@ -5217,7 +5235,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5217
5235
  }], ctorParameters: () => [{ type: undefined, decorators: [{
5218
5236
  type: Inject,
5219
5237
  args: [MAT_DIALOG_DATA]
5220
- }] }, { type: i1$4.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
5238
+ }] }, { type: i1$3.MatDialogRef }, { type: i2$3.DomSanitizer }, { type: undefined, decorators: [{
5221
5239
  type: Inject,
5222
5240
  args: [MESSAGE_SERVICE]
5223
5241
  }] }] });
@@ -5260,7 +5278,7 @@ class AlertComponent {
5260
5278
  second: '2-digit',
5261
5279
  });
5262
5280
  }
5263
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$5.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
5281
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, deps: [{ token: MAT_SNACK_BAR_DATA }, { token: i1$4.MatSnackBarRef }], target: i0.ɵɵFactoryTarget.Component });
5264
5282
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: AlertComponent, isStandalone: true, selector: "ptech-alert", ngImport: i0, template: "<div class=\"alert\" [ngClass]=\"data.type\" role=\"alert\">\n <mat-icon\n *ngIf=\"data.icon\"\n class=\"icon\"\n [ngStyle]=\"{ color: getIconColor(data.type) }\"\n >{{ data.icon }}</mat-icon\n >\n <div class=\"text-content\">\n <div class=\"title\">\n {{ data.title }}\n </div>\n <span class=\"text-content-date-hour\">{{\n data.timestamp | date : \"dd/MM/yyyy HH:mm:ss\"\n }}</span>\n <span>{{ data.message }}</span>\n <span *ngFor=\"let detail of data.details\">{{ detail }}</span>\n </div>\n\n <button mat-icon-button class=\"close-button\" (click)=\"closeSnackbar()\">\n <mat-icon>close</mat-icon>\n </button>\n</div>\n", styles: [".alert{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--ptech-alert-bg, var(--app-surface, #fff));border-radius:3px;padding:30px;border-left:5px solid var(--ptech-alert-border, var(--app-border-color, #ddd));box-shadow:var(--ptech-alert-shadow, 0 2px 7px rgba(0, 0, 0, .27));max-width:350px}.close-button{position:relative;bottom:30px;left:15px;margin:0;padding:0;color:var(--ptech-alert-close, var(--app-muted, #aaa));border:none;background:none;cursor:pointer}.close-button mat-icon{font-size:26px!important;margin-top:10px!important;margin-left:-3px!important}.alert mat-icon{height:35px;width:55px;font-size:35px;display:contents}.text-content{margin-left:10px!important;display:flex;flex-direction:column}.text-content-date-hour{margin-left:0!important;margin-bottom:10px}.title{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:16px;color:var(--ptech-alert-title, var(--app-text, #606267));font-weight:600;margin-bottom:3px}span{font-family:Roboto,Nunito,Helvetica Neue,sans-serif;font-size:14px;color:var(--ptech-alert-text, var(--app-muted, #9ea0a9));font-weight:400}.success{border-left-color:var(--ptech-alert-success, var(--app-status-success, #7fcb78))}.error{border-left-color:var(--ptech-alert-error, var(--app-status-error, #f25158))}.warn{border-left-color:var(--ptech-alert-warn, var(--app-status-warning, #f0c943))}.info{border-left-color:var(--ptech-alert-info, var(--app-link-accent, #2c80d2))}:host ::ng-deep .mat-mdc-snack-bar-container.ptech-snackbar{z-index:var(--ptech-snackbar-z-index, 12000)!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5265
5283
  }
5266
5284
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AlertComponent, decorators: [{
@@ -5269,7 +5287,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
5269
5287
  }], ctorParameters: () => [{ type: undefined, decorators: [{
5270
5288
  type: Inject,
5271
5289
  args: [MAT_SNACK_BAR_DATA]
5272
- }] }, { type: i1$5.MatSnackBarRef }] });
5290
+ }] }, { type: i1$4.MatSnackBarRef }] });
5273
5291
 
5274
5292
  class GetFirstStringBeforeSpacePipe {
5275
5293
  transform(value) {
@@ -6585,15 +6603,57 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
6585
6603
  args: ['tableCell']
6586
6604
  }] } });
6587
6605
 
6606
+ class PtechTableColumnBuilder {
6607
+ column = { key: '', header: '' };
6608
+ static instance(_breakpointObserverService) {
6609
+ return new PtechTableColumnBuilder();
6610
+ }
6611
+ name(name) { this.column.header = name; this.column.name = name; return this; }
6612
+ header(header) { return this.name(header); }
6613
+ property(property) { this.column.key = property; this.column.property = property; return this; }
6614
+ key(key) { return this.property(key); }
6615
+ value(value) { this.column.value = value; this.column.cell = value; return this; }
6616
+ cell(cell) { return this.value(cell); }
6617
+ sortable(sortable = true) { this.column.sortable = sortable; return this; }
6618
+ visible(visible = true) { this.column.visible = visible; return this; }
6619
+ hiddenSm(_hiddenSm = true) { return this; }
6620
+ align(align) { this.column.align = align; return this; }
6621
+ width(width) { this.column.width = width; return this; }
6622
+ breakpointWidth(_breakpointMap) { return this; }
6623
+ template(template) { this.column.template = template; return this; }
6624
+ templateHeader(templateHeader) { this.column.templateHeader = templateHeader; return this; }
6625
+ action(action) { this.column.action = action; return this; }
6626
+ type(type) { this.column.type = type; return this; }
6627
+ build() {
6628
+ const key = this.column.key || this.column.property || '';
6629
+ const header = this.column.header || this.column.name || '';
6630
+ return { ...this.column, key, property: this.column.property || key, header, name: this.column.name || header };
6631
+ }
6632
+ }
6588
6633
  class TableComponent {
6589
6634
  iterableDiffers;
6590
6635
  title = '';
6591
6636
  loading = false;
6637
+ shadow = true;
6638
+ disabled = false;
6639
+ emptyText = 'Sem dados.';
6640
+ stickyHeader = false;
6641
+ rowClickable = false;
6592
6642
  data = [];
6593
6643
  total = 0;
6594
6644
  pageIndex = 0; // zero-based
6595
6645
  pageSize = 10;
6596
6646
  pageSizeOptions = [5, 10, 20, 50];
6647
+ totalElements = null;
6648
+ paginatorLength = null;
6649
+ paginatorPageIndex = null;
6650
+ paginatorPageSize = null;
6651
+ serverSidePagination = false;
6652
+ backendPagination = false;
6653
+ paginator = true;
6654
+ sortField = '';
6655
+ sortDirection = '';
6656
+ serverSideSorting = false;
6597
6657
  columns = [];
6598
6658
  actions = [];
6599
6659
  // seleção de linhas
@@ -6612,15 +6672,22 @@ class TableComponent {
6612
6672
  selectedIds = new EventEmitter();
6613
6673
  selectionChange = new EventEmitter();
6614
6674
  page = new EventEmitter();
6675
+ pageChange = new EventEmitter();
6676
+ sortChange = new EventEmitter();
6677
+ rowClick = new EventEmitter();
6615
6678
  reorder = new EventEmitter();
6616
6679
  toggleChange = new EventEmitter();
6617
6680
  displayedColumns = [];
6681
+ visibleColumns = [];
6618
6682
  renderData = [];
6619
6683
  selection = new SelectionModel(this.selectMultipleRow, []);
6620
6684
  selectedIdSet = new Set();
6621
6685
  dataDiffer;
6622
6686
  matTable;
6623
6687
  cellTemplates;
6688
+ actionsTemplate;
6689
+ footerTemplate;
6690
+ emptyTemplate;
6624
6691
  cellTemplateMap = new Map();
6625
6692
  constructor(iterableDiffers) {
6626
6693
  this.iterableDiffers = iterableDiffers;
@@ -6643,17 +6710,57 @@ class TableComponent {
6643
6710
  getCellTemplate(key) {
6644
6711
  return this.cellTemplateMap.get(key) ?? null;
6645
6712
  }
6713
+ getColumnTemplate(column) {
6714
+ return column.template || this.getCellTemplate(this.columnKey(column));
6715
+ }
6716
+ get hasActionsColumn() {
6717
+ return !!this.actionsTemplate || !!this.actions?.length;
6718
+ }
6719
+ get resolvedTotal() {
6720
+ return this.totalElements ?? this.paginatorLength ?? this.total ?? this.renderData?.length ?? 0;
6721
+ }
6722
+ get resolvedPageIndex() {
6723
+ return this.paginatorPageIndex ?? this.pageIndex ?? 0;
6724
+ }
6725
+ get resolvedPageSize() {
6726
+ return this.paginatorPageSize ?? this.pageSize ?? 10;
6727
+ }
6728
+ normalizeColumn(column) {
6729
+ const key = this.columnKey(column);
6730
+ const header = this.columnHeader(column);
6731
+ return { ...column, key, property: column.property || key, header, name: column.name || header };
6732
+ }
6733
+ columnKey(column) {
6734
+ return column.key || column.property || '';
6735
+ }
6736
+ columnHeader(column) {
6737
+ return column.header || column.name || '';
6738
+ }
6739
+ cssAlign(align) {
6740
+ if (align === 'center' || align === 'center center')
6741
+ return 'center';
6742
+ if (align === 'right' || align === 'end center')
6743
+ return 'right';
6744
+ return 'left';
6745
+ }
6746
+ cssWidth(width) {
6747
+ if (width === undefined || width === null)
6748
+ return null;
6749
+ return typeof width === 'number' ? `${width}px` : width;
6750
+ }
6646
6751
  ngOnChanges(changes) {
6647
6752
  // API nova (selectionMode) sem quebrar a antiga (selectRow/selectMultipleRow)
6648
6753
  if (this.selectionMode) {
6649
6754
  this.selectRow = this.selectionMode !== 'none';
6650
6755
  this.selectMultipleRow = this.selectionMode === 'multiple';
6651
6756
  }
6652
- // colunas
6653
- const cols = [...this.columns.map(c => c.key)];
6757
+ this.visibleColumns = (this.columns || [])
6758
+ .filter(c => c?.visible !== false)
6759
+ .map(c => this.normalizeColumn(c));
6760
+ const cols = [...this.visibleColumns.map(c => this.columnKey(c))];
6654
6761
  if (this.selectRow)
6655
6762
  cols.unshift('select');
6656
- if (this.actions?.length)
6763
+ if (this.hasActionsColumn)
6657
6764
  cols.push('__actions');
6658
6765
  this.displayedColumns = cols;
6659
6766
  if (changes['data']) {
@@ -6760,7 +6867,34 @@ class TableComponent {
6760
6867
  return this.selectedIdSet.has(this.getRowId(row));
6761
6868
  }
6762
6869
  onPage(ev) {
6763
- this.page.emit({ pageIndex: ev.pageIndex, pageSize: ev.pageSize });
6870
+ const pageEvent = {
6871
+ pageIndex: ev.pageIndex,
6872
+ pageSize: ev.pageSize,
6873
+ length: ev.length ?? this.resolvedTotal,
6874
+ previousPageIndex: ev.previousPageIndex,
6875
+ };
6876
+ this.page.emit(pageEvent);
6877
+ this.pageChange.emit(pageEvent);
6878
+ }
6879
+ onSort(sort) {
6880
+ this.sortField = sort.active;
6881
+ this.sortDirection = sort.direction;
6882
+ this.sortChange.emit({ active: sort.active, direction: this.sortDirection });
6883
+ if (this.serverSideSorting || this.backendPagination || this.serverSidePagination) {
6884
+ const pageEvent = {
6885
+ pageIndex: 0,
6886
+ pageSize: this.resolvedPageSize,
6887
+ length: this.resolvedTotal,
6888
+ previousPageIndex: this.resolvedPageIndex,
6889
+ sort,
6890
+ };
6891
+ this.page.emit(pageEvent);
6892
+ this.pageChange.emit(pageEvent);
6893
+ }
6894
+ }
6895
+ onRowClick(row) {
6896
+ if (this.rowClickable)
6897
+ this.rowClick.emit(row);
6764
6898
  }
6765
6899
  onDrop(event) {
6766
6900
  if (!this.reorderable || !Array.isArray(this.renderData))
@@ -6787,7 +6921,9 @@ class TableComponent {
6787
6921
  renderCell(row, col) {
6788
6922
  if (col?.cell)
6789
6923
  return col.cell(row);
6790
- const v = this.read(row, col.key);
6924
+ if (col?.value)
6925
+ return col.value(row);
6926
+ const v = this.read(row, this.columnKey(col));
6791
6927
  if (col.type === 'date' && v)
6792
6928
  return new Date(v);
6793
6929
  return v ?? '—';
@@ -6842,9 +6978,9 @@ class TableComponent {
6842
6978
  });
6843
6979
  }
6844
6980
  badgeJustify(align) {
6845
- if (align === 'center')
6981
+ if (align === 'center' || align === 'center center')
6846
6982
  return 'center';
6847
- if (align === 'right')
6983
+ if (align === 'right' || align === 'end center')
6848
6984
  return 'end';
6849
6985
  return 'start';
6850
6986
  }
@@ -6864,6 +7000,9 @@ class TableComponent {
6864
7000
  return !!col.toggleDisabled(row);
6865
7001
  return !!col?.toggleDisabled;
6866
7002
  }
7003
+ onCellClick(row, col) {
7004
+ col.action?.(row);
7005
+ }
6867
7006
  onToggleColumnChange(row, col, value) {
6868
7007
  this.toggleChange.emit({
6869
7008
  row,
@@ -6872,8 +7011,8 @@ class TableComponent {
6872
7011
  });
6873
7012
  }
6874
7013
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, deps: [{ token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Component });
6875
- 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: `
6876
- <div class="table-container mat-elevation-z8">
7014
+ 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: `
7015
+ <div class="table-container mat-elevation-z8" [class.disabled]="disabled">
6877
7016
  <div class="header-row" *ngIf="title">
6878
7017
  <h3>{{ title }}</h3>
6879
7018
  </div>
@@ -6894,6 +7033,10 @@ class TableComponent {
6894
7033
  <div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
6895
7034
  <table
6896
7035
  mat-table
7036
+ matSort
7037
+ [matSortActive]="sortField"
7038
+ [matSortDirection]="sortDirection"
7039
+ (matSortChange)="onSort($event)"
6897
7040
  [dataSource]="renderData"
6898
7041
  cdkDropList
6899
7042
  [cdkDropListData]="renderData"
@@ -6947,21 +7090,31 @@ class TableComponent {
6947
7090
  </td>
6948
7091
  </ng-container>
6949
7092
 
6950
- <ng-container *ngFor="let c of columns" [matColumnDef]="c.key">
7093
+ <ng-container *ngFor="let c of visibleColumns" [matColumnDef]="columnKey(c)">
6951
7094
  <th
6952
7095
  mat-header-cell
6953
7096
  *matHeaderCellDef
6954
- [style.text-align]="c.align || 'left'"
7097
+ [style.text-align]="cssAlign(c.align)"
7098
+ [style.width]="cssWidth(c.width)"
7099
+ [mat-sort-header]="columnKey(c)"
7100
+ [disabled]="!c.sortable"
7101
+ [sticky]="stickyHeader"
6955
7102
  >
6956
- {{ c.header }}
7103
+ <ng-container *ngIf="c.templateHeader; else defaultHeader">
7104
+ <ng-container *ngTemplateOutlet="c.templateHeader; context: { $implicit: data, column: c }"></ng-container>
7105
+ </ng-container>
7106
+ <ng-template #defaultHeader>{{ columnHeader(c) }}</ng-template>
6957
7107
  </th>
6958
7108
  <td
6959
7109
  mat-cell
6960
7110
  *matCellDef="let row"
6961
- [style.text-align]="c.align || 'left'"
7111
+ [class.clickable]="!!c.action"
7112
+ (click)="onCellClick(row, c)"
7113
+ [style.text-align]="cssAlign(c.align)"
7114
+ [style.width]="cssWidth(c.width)"
6962
7115
  >
6963
7116
  <!-- se existir template customizado para a coluna, usa ele -->
6964
- <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
7117
+ <ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCell">
6965
7118
  <ng-container
6966
7119
  *ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
6967
7120
  ></ng-container>
@@ -7027,11 +7180,15 @@ class TableComponent {
7027
7180
 
7028
7181
  </ng-container>
7029
7182
 
7030
- <ng-container *ngIf="actions.length" matColumnDef="__actions">
7183
+ <ng-container *ngIf="hasActionsColumn" matColumnDef="__actions">
7031
7184
  <th mat-header-cell *matHeaderCellDef style="text-align: center">
7032
7185
  Ações
7033
7186
  </th>
7034
7187
  <td mat-cell *matCellDef="let r" style="text-align: center">
7188
+ <ng-container *ngIf="actionsTemplate; else configuredActions">
7189
+ <ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: r, row: r }"></ng-container>
7190
+ </ng-container>
7191
+ <ng-template #configuredActions>
7035
7192
  <ng-container *ngFor="let a of actions">
7036
7193
  <ptech-button
7037
7194
  *ngIf="!a.visible || a.visible(r)"
@@ -7043,14 +7200,17 @@ class TableComponent {
7043
7200
  >
7044
7201
  </ptech-button>
7045
7202
  </ng-container>
7203
+ </ng-template>
7046
7204
  </td>
7047
7205
  </ng-container>
7048
7206
 
7049
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
7207
+ <tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: stickyHeader"></tr>
7050
7208
  <tr
7051
7209
  mat-row
7052
7210
  *matRowDef="let row; columns: displayedColumns"
7053
7211
  [class.selected]="isSelected(row)"
7212
+ [class.clickable]="rowClickable"
7213
+ (click)="onRowClick(row)"
7054
7214
  cdkDrag
7055
7215
  [cdkDragDisabled]="!reorderable"
7056
7216
  ></tr>
@@ -7093,12 +7253,12 @@ class TableComponent {
7093
7253
  </ng-template>
7094
7254
  </div>
7095
7255
 
7096
- <div *ngFor="let c of columns" class="card-row">
7256
+ <div *ngFor="let c of visibleColumns" class="card-row">
7097
7257
  <!-- Se existir template customizado para a coluna, usa ele
7098
7258
  e adiciona o header dinamicamente -->
7099
- <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCardCell">
7259
+ <ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCardCell">
7100
7260
  <div>
7101
- <strong>{{ c.header }}:</strong>
7261
+ <strong>{{ columnHeader(c) }}:</strong>
7102
7262
  <ng-container
7103
7263
  *ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
7104
7264
  ></ng-container>
@@ -7121,7 +7281,7 @@ class TableComponent {
7121
7281
 
7122
7282
  <!-- BADGE -->
7123
7283
  <ng-container *ngSwitchCase="'badge'">
7124
- <div><strong>{{ c.header }}:</strong></div>
7284
+ <div><strong>{{ columnHeader(c) }}:</strong></div>
7125
7285
  <ptech-badge-stack
7126
7286
  [style.display]="'inline-flex'"
7127
7287
  [justify]="badgeJustify(c.align)"
@@ -7140,7 +7300,7 @@ class TableComponent {
7140
7300
  <!-- DATE -->
7141
7301
  <ng-container *ngSwitchCase="'date'">
7142
7302
  <div>
7143
- <strong>{{ c.header }}:</strong>
7303
+ <strong>{{ columnHeader(c) }}:</strong>
7144
7304
  {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
7145
7305
  </div>
7146
7306
  </ng-container>
@@ -7148,7 +7308,7 @@ class TableComponent {
7148
7308
  <!-- TOGGLE -->
7149
7309
  <ng-container *ngSwitchCase="'toggle'">
7150
7310
  <div>
7151
- <strong>{{ c.header }}:</strong>
7311
+ <strong>{{ columnHeader(c) }}:</strong>
7152
7312
  </div>
7153
7313
  <ptech-slide-toggle
7154
7314
  [label]="resolveToggleLabel(row, c)"
@@ -7161,7 +7321,7 @@ class TableComponent {
7161
7321
  <!-- DEFAULT -->
7162
7322
  <ng-container *ngSwitchDefault>
7163
7323
  <div>
7164
- <strong>{{ c.header }}:</strong>
7324
+ <strong>{{ columnHeader(c) }}:</strong>
7165
7325
  <span [style.color]="resolveColor(row, c)">
7166
7326
  {{ renderCell(row, c) }}
7167
7327
  </span>
@@ -7173,7 +7333,11 @@ class TableComponent {
7173
7333
 
7174
7334
 
7175
7335
  <!-- AÇÕES -->
7176
- <div *ngIf="actions?.length" class="card-actions">
7336
+ <div *ngIf="hasActionsColumn" class="card-actions">
7337
+ <ng-container *ngIf="actionsTemplate; else cardConfiguredActions">
7338
+ <ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: row, row: row }"></ng-container>
7339
+ </ng-container>
7340
+ <ng-template #cardConfiguredActions>
7177
7341
  <ng-container *ngFor="let a of actions">
7178
7342
  <ptech-button
7179
7343
  *ngIf="!a.visible || a.visible(row)"
@@ -7185,15 +7349,21 @@ class TableComponent {
7185
7349
  >
7186
7350
  </ptech-button>
7187
7351
  </ng-container>
7352
+ </ng-template>
7188
7353
  </div>
7189
7354
  </div>
7190
7355
  </div>
7191
7356
 
7357
+ <div class="table-footer" *ngIf="footerTemplate && renderData?.length">
7358
+ <ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: renderData, data: renderData }"></ng-container>
7359
+ </div>
7360
+
7192
7361
  <mat-paginator
7362
+ *ngIf="paginator"
7193
7363
  class="mat-paginator"
7194
- [length]="total"
7195
- [pageIndex]="pageIndex"
7196
- [pageSize]="pageSize"
7364
+ [length]="resolvedTotal"
7365
+ [pageIndex]="resolvedPageIndex"
7366
+ [pageSize]="resolvedPageSize"
7197
7367
  [pageSizeOptions]="pageSizeOptions"
7198
7368
  [selectConfig]="{ panelClass: 'ptech-table-paginator-panel' }"
7199
7369
  showFirstLastButtons
@@ -7202,7 +7372,10 @@ class TableComponent {
7202
7372
  </mat-paginator>
7203
7373
 
7204
7374
  <div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
7205
- Sem dados.
7375
+ <ng-container *ngIf="emptyTemplate; else defaultEmpty">
7376
+ <ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
7377
+ </ng-container>
7378
+ <ng-template #defaultEmpty>{{ emptyText }}</ng-template>
7206
7379
  </div>
7207
7380
  </ng-container>
7208
7381
 
@@ -7210,12 +7383,12 @@ class TableComponent {
7210
7383
  <mat-progress-bar mode="indeterminate"></mat-progress-bar>
7211
7384
  </ng-template>
7212
7385
  </div>
7213
- `, 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 });
7386
+ `, 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: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i3$4.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i9.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: FormsModule }, { kind: "component", type: BadgeComponent, selector: "ptech-badge", inputs: ["label", "icon", "tooltip", "ariaLabel", "clickable", "disabled", "pill", "uppercase", "size", "variant", "color", "col"], outputs: ["badgeClick", "badgeKey"] }, { kind: "component", type: BadgeStackComponent, selector: "ptech-badge-stack", inputs: ["direction", "gap", "wrap", "align", "justify", "ariaLabel", "col"] }, { kind: "component", type: ButtonComponent, selector: "ptech-button", inputs: ["type", "size", "tooltip", "icon", "iconColor", "iconWidth", "iconHeight", "textColor", "link", "target", "shape", "color", "backgroundColor", "hoverBackgroundColor", "radius"], outputs: ["buttonClick"] }, { kind: "component", type: CheckBoxComponent, selector: "ptech-check-box", inputs: ["color", "indeterminate", "value"], outputs: ["change", "indeterminateChange"] }, { kind: "component", type: SlideToggleComponent, selector: "ptech-slide-toggle", inputs: ["appearance", "color", "labelPosition", "disableRipple"], outputs: ["change"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
7214
7387
  }
7215
7388
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableComponent, decorators: [{
7216
7389
  type: Component,
7217
7390
  args: [{ selector: 'ptech-table', imports: [CoreMaterialModule, DragDropModule, FormsModule, BadgeComponent, BadgeStackComponent, ButtonComponent, TableCellDirective, CheckBoxComponent, SlideToggleComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: `
7218
- <div class="table-container mat-elevation-z8">
7391
+ <div class="table-container mat-elevation-z8" [class.disabled]="disabled">
7219
7392
  <div class="header-row" *ngIf="title">
7220
7393
  <h3>{{ title }}</h3>
7221
7394
  </div>
@@ -7236,6 +7409,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7236
7409
  <div class="table-scroll" [class.hide-on-mobile]="responsiveCards">
7237
7410
  <table
7238
7411
  mat-table
7412
+ matSort
7413
+ [matSortActive]="sortField"
7414
+ [matSortDirection]="sortDirection"
7415
+ (matSortChange)="onSort($event)"
7239
7416
  [dataSource]="renderData"
7240
7417
  cdkDropList
7241
7418
  [cdkDropListData]="renderData"
@@ -7289,21 +7466,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7289
7466
  </td>
7290
7467
  </ng-container>
7291
7468
 
7292
- <ng-container *ngFor="let c of columns" [matColumnDef]="c.key">
7469
+ <ng-container *ngFor="let c of visibleColumns" [matColumnDef]="columnKey(c)">
7293
7470
  <th
7294
7471
  mat-header-cell
7295
7472
  *matHeaderCellDef
7296
- [style.text-align]="c.align || 'left'"
7473
+ [style.text-align]="cssAlign(c.align)"
7474
+ [style.width]="cssWidth(c.width)"
7475
+ [mat-sort-header]="columnKey(c)"
7476
+ [disabled]="!c.sortable"
7477
+ [sticky]="stickyHeader"
7297
7478
  >
7298
- {{ c.header }}
7479
+ <ng-container *ngIf="c.templateHeader; else defaultHeader">
7480
+ <ng-container *ngTemplateOutlet="c.templateHeader; context: { $implicit: data, column: c }"></ng-container>
7481
+ </ng-container>
7482
+ <ng-template #defaultHeader>{{ columnHeader(c) }}</ng-template>
7299
7483
  </th>
7300
7484
  <td
7301
7485
  mat-cell
7302
7486
  *matCellDef="let row"
7303
- [style.text-align]="c.align || 'left'"
7487
+ [class.clickable]="!!c.action"
7488
+ (click)="onCellClick(row, c)"
7489
+ [style.text-align]="cssAlign(c.align)"
7490
+ [style.width]="cssWidth(c.width)"
7304
7491
  >
7305
7492
  <!-- se existir template customizado para a coluna, usa ele -->
7306
- <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCell">
7493
+ <ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCell">
7307
7494
  <ng-container
7308
7495
  *ngTemplateOutlet="tpl; context: cellTemplateContext(row, c)"
7309
7496
  ></ng-container>
@@ -7369,11 +7556,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7369
7556
 
7370
7557
  </ng-container>
7371
7558
 
7372
- <ng-container *ngIf="actions.length" matColumnDef="__actions">
7559
+ <ng-container *ngIf="hasActionsColumn" matColumnDef="__actions">
7373
7560
  <th mat-header-cell *matHeaderCellDef style="text-align: center">
7374
7561
  Ações
7375
7562
  </th>
7376
7563
  <td mat-cell *matCellDef="let r" style="text-align: center">
7564
+ <ng-container *ngIf="actionsTemplate; else configuredActions">
7565
+ <ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: r, row: r }"></ng-container>
7566
+ </ng-container>
7567
+ <ng-template #configuredActions>
7377
7568
  <ng-container *ngFor="let a of actions">
7378
7569
  <ptech-button
7379
7570
  *ngIf="!a.visible || a.visible(r)"
@@ -7385,14 +7576,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7385
7576
  >
7386
7577
  </ptech-button>
7387
7578
  </ng-container>
7579
+ </ng-template>
7388
7580
  </td>
7389
7581
  </ng-container>
7390
7582
 
7391
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
7583
+ <tr mat-header-row *matHeaderRowDef="displayedColumns; sticky: stickyHeader"></tr>
7392
7584
  <tr
7393
7585
  mat-row
7394
7586
  *matRowDef="let row; columns: displayedColumns"
7395
7587
  [class.selected]="isSelected(row)"
7588
+ [class.clickable]="rowClickable"
7589
+ (click)="onRowClick(row)"
7396
7590
  cdkDrag
7397
7591
  [cdkDragDisabled]="!reorderable"
7398
7592
  ></tr>
@@ -7435,12 +7629,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7435
7629
  </ng-template>
7436
7630
  </div>
7437
7631
 
7438
- <div *ngFor="let c of columns" class="card-row">
7632
+ <div *ngFor="let c of visibleColumns" class="card-row">
7439
7633
  <!-- Se existir template customizado para a coluna, usa ele
7440
7634
  e adiciona o header dinamicamente -->
7441
- <ng-container *ngIf="getCellTemplate(c.key) as tpl; else defaultCardCell">
7635
+ <ng-container *ngIf="getColumnTemplate(c) as tpl; else defaultCardCell">
7442
7636
  <div>
7443
- <strong>{{ c.header }}:</strong>
7637
+ <strong>{{ columnHeader(c) }}:</strong>
7444
7638
  <ng-container
7445
7639
  *ngTemplateOutlet="tpl; context: cellTemplateContext(row, c, rowIndex)"
7446
7640
  ></ng-container>
@@ -7463,7 +7657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7463
7657
 
7464
7658
  <!-- BADGE -->
7465
7659
  <ng-container *ngSwitchCase="'badge'">
7466
- <div><strong>{{ c.header }}:</strong></div>
7660
+ <div><strong>{{ columnHeader(c) }}:</strong></div>
7467
7661
  <ptech-badge-stack
7468
7662
  [style.display]="'inline-flex'"
7469
7663
  [justify]="badgeJustify(c.align)"
@@ -7482,7 +7676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7482
7676
  <!-- DATE -->
7483
7677
  <ng-container *ngSwitchCase="'date'">
7484
7678
  <div>
7485
- <strong>{{ c.header }}:</strong>
7679
+ <strong>{{ columnHeader(c) }}:</strong>
7486
7680
  {{ renderCell(row, c) | date : "dd/MM/yyyy HH:mm" }}
7487
7681
  </div>
7488
7682
  </ng-container>
@@ -7490,7 +7684,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7490
7684
  <!-- TOGGLE -->
7491
7685
  <ng-container *ngSwitchCase="'toggle'">
7492
7686
  <div>
7493
- <strong>{{ c.header }}:</strong>
7687
+ <strong>{{ columnHeader(c) }}:</strong>
7494
7688
  </div>
7495
7689
  <ptech-slide-toggle
7496
7690
  [label]="resolveToggleLabel(row, c)"
@@ -7503,7 +7697,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7503
7697
  <!-- DEFAULT -->
7504
7698
  <ng-container *ngSwitchDefault>
7505
7699
  <div>
7506
- <strong>{{ c.header }}:</strong>
7700
+ <strong>{{ columnHeader(c) }}:</strong>
7507
7701
  <span [style.color]="resolveColor(row, c)">
7508
7702
  {{ renderCell(row, c) }}
7509
7703
  </span>
@@ -7515,7 +7709,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7515
7709
 
7516
7710
 
7517
7711
  <!-- AÇÕES -->
7518
- <div *ngIf="actions?.length" class="card-actions">
7712
+ <div *ngIf="hasActionsColumn" class="card-actions">
7713
+ <ng-container *ngIf="actionsTemplate; else cardConfiguredActions">
7714
+ <ng-container *ngTemplateOutlet="actionsTemplate; context: { $implicit: row, row: row }"></ng-container>
7715
+ </ng-container>
7716
+ <ng-template #cardConfiguredActions>
7519
7717
  <ng-container *ngFor="let a of actions">
7520
7718
  <ptech-button
7521
7719
  *ngIf="!a.visible || a.visible(row)"
@@ -7527,15 +7725,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7527
7725
  >
7528
7726
  </ptech-button>
7529
7727
  </ng-container>
7728
+ </ng-template>
7530
7729
  </div>
7531
7730
  </div>
7532
7731
  </div>
7533
7732
 
7733
+ <div class="table-footer" *ngIf="footerTemplate && renderData?.length">
7734
+ <ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: renderData, data: renderData }"></ng-container>
7735
+ </div>
7736
+
7534
7737
  <mat-paginator
7738
+ *ngIf="paginator"
7535
7739
  class="mat-paginator"
7536
- [length]="total"
7537
- [pageIndex]="pageIndex"
7538
- [pageSize]="pageSize"
7740
+ [length]="resolvedTotal"
7741
+ [pageIndex]="resolvedPageIndex"
7742
+ [pageSize]="resolvedPageSize"
7539
7743
  [pageSizeOptions]="pageSizeOptions"
7540
7744
  [selectConfig]="{ panelClass: 'ptech-table-paginator-panel' }"
7541
7745
  showFirstLastButtons
@@ -7544,7 +7748,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7544
7748
  </mat-paginator>
7545
7749
 
7546
7750
  <div *ngIf="!renderData?.length" class="muted" style="padding: 12px">
7547
- Sem dados.
7751
+ <ng-container *ngIf="emptyTemplate; else defaultEmpty">
7752
+ <ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
7753
+ </ng-container>
7754
+ <ng-template #defaultEmpty>{{ emptyText }}</ng-template>
7548
7755
  </div>
7549
7756
  </ng-container>
7550
7757
 
@@ -7552,11 +7759,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7552
7759
  <mat-progress-bar mode="indeterminate"></mat-progress-bar>
7553
7760
  </ng-template>
7554
7761
  </div>
7555
- `, 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"] }]
7762
+ `, 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"] }]
7556
7763
  }], ctorParameters: () => [{ type: i0.IterableDiffers }], propDecorators: { title: [{
7557
7764
  type: Input
7558
7765
  }], loading: [{
7559
7766
  type: Input
7767
+ }], shadow: [{
7768
+ type: Input
7769
+ }], disabled: [{
7770
+ type: Input
7771
+ }], emptyText: [{
7772
+ type: Input
7773
+ }], stickyHeader: [{
7774
+ type: Input
7775
+ }], rowClickable: [{
7776
+ type: Input
7560
7777
  }], data: [{
7561
7778
  type: Input
7562
7779
  }], total: [{
@@ -7567,6 +7784,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7567
7784
  type: Input
7568
7785
  }], pageSizeOptions: [{
7569
7786
  type: Input
7787
+ }], totalElements: [{
7788
+ type: Input
7789
+ }], paginatorLength: [{
7790
+ type: Input
7791
+ }], paginatorPageIndex: [{
7792
+ type: Input
7793
+ }], paginatorPageSize: [{
7794
+ type: Input
7795
+ }], serverSidePagination: [{
7796
+ type: Input
7797
+ }], backendPagination: [{
7798
+ type: Input
7799
+ }], paginator: [{
7800
+ type: Input
7801
+ }], sortField: [{
7802
+ type: Input
7803
+ }], sortDirection: [{
7804
+ type: Input
7805
+ }], serverSideSorting: [{
7806
+ type: Input
7570
7807
  }], columns: [{
7571
7808
  type: Input
7572
7809
  }], actions: [{
@@ -7597,6 +7834,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7597
7834
  type: Output
7598
7835
  }], page: [{
7599
7836
  type: Output
7837
+ }], pageChange: [{
7838
+ type: Output
7839
+ }], sortChange: [{
7840
+ type: Output
7841
+ }], rowClick: [{
7842
+ type: Output
7600
7843
  }], reorder: [{
7601
7844
  type: Output
7602
7845
  }], toggleChange: [{
@@ -7607,6 +7850,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
7607
7850
  }], cellTemplates: [{
7608
7851
  type: ContentChildren,
7609
7852
  args: [TableCellDirective]
7853
+ }], actionsTemplate: [{
7854
+ type: ContentChild,
7855
+ args: ['actions']
7856
+ }], footerTemplate: [{
7857
+ type: ContentChild,
7858
+ args: ['footer']
7859
+ }], emptyTemplate: [{
7860
+ type: ContentChild,
7861
+ args: ['empty']
7610
7862
  }] } });
7611
7863
 
7612
7864
  class ListPaginationComponent {
@@ -8100,6 +8352,1163 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8100
8352
  type: Output
8101
8353
  }] } });
8102
8354
 
8355
+ class PtechAutocompleteComponent {
8356
+ searchInput;
8357
+ optionTemplate;
8358
+ label = '';
8359
+ placeholder = '';
8360
+ required = false;
8361
+ disabled = false;
8362
+ readonly = false;
8363
+ multiple = false;
8364
+ clearable = true;
8365
+ appearance = 'outline';
8366
+ property = 'description';
8367
+ propertyEnum;
8368
+ propertyFn;
8369
+ displayWith;
8370
+ idProperty = 'id';
8371
+ minLength = 0;
8372
+ debounce = 250;
8373
+ emptyText = 'Nenhum resultado';
8374
+ loadingText = 'Carregando';
8375
+ clearLabel = 'Limpar';
8376
+ datasource;
8377
+ entities = [];
8378
+ loading = false;
8379
+ search = new EventEmitter();
8380
+ selectionChange = new EventEmitter();
8381
+ loadingChange = new EventEmitter();
8382
+ filteredOptions = [];
8383
+ searchText = '';
8384
+ value = null;
8385
+ selectedValues = [];
8386
+ search$ = new Subject();
8387
+ subscription = this.search$.pipe(debounceTime(this.debounce), distinctUntilChanged(), tap(term => this.search.emit(term)), switchMap(term => this.resolveOptions(term))).subscribe(options => {
8388
+ this.filteredOptions = options || [];
8389
+ this.setLoading(false);
8390
+ });
8391
+ ngOnChanges(changes) {
8392
+ if (changes['entities']) {
8393
+ this.filteredOptions = this.filterLocal(this.searchText);
8394
+ }
8395
+ }
8396
+ ngOnDestroy() {
8397
+ this.subscription.unsubscribe();
8398
+ }
8399
+ writeValue(value) {
8400
+ this.value = value;
8401
+ this.selectedValues = Array.isArray(value) ? [...value] : [];
8402
+ this.searchText = !this.multiple && value ? this.getDisplay(value) : '';
8403
+ }
8404
+ registerOnChange(fn) { this.onChange = fn; }
8405
+ registerOnTouched(fn) { this.onTouched = fn; }
8406
+ setDisabledState(disabled) { this.disabled = disabled; }
8407
+ onChange = () => { };
8408
+ onTouched = () => { };
8409
+ onSearchInput(term) {
8410
+ this.searchText = term || '';
8411
+ if (this.searchText.length < this.minLength) {
8412
+ this.filteredOptions = [];
8413
+ return;
8414
+ }
8415
+ this.setLoading(!!this.datasource);
8416
+ this.search$.next(this.searchText);
8417
+ }
8418
+ select(event) {
8419
+ const selected = event.option.value;
8420
+ if (this.multiple) {
8421
+ if (!this.selectedValues.some(item => this.sameValue(item, selected))) {
8422
+ this.selectedValues = [...this.selectedValues, selected];
8423
+ }
8424
+ this.value = this.selectedValues;
8425
+ this.searchText = '';
8426
+ this.searchInput?.nativeElement.focus();
8427
+ }
8428
+ else {
8429
+ this.value = selected;
8430
+ this.searchText = this.getDisplay(selected);
8431
+ }
8432
+ this.onChange(this.value);
8433
+ this.selectionChange.emit(this.value);
8434
+ }
8435
+ clear() {
8436
+ this.value = this.multiple ? [] : null;
8437
+ this.selectedValues = [];
8438
+ this.searchText = '';
8439
+ this.filteredOptions = [];
8440
+ this.onChange(this.value);
8441
+ this.selectionChange.emit(this.value);
8442
+ }
8443
+ removeSelected(selected) {
8444
+ this.selectedValues = this.selectedValues.filter(item => !this.sameValue(item, selected));
8445
+ this.value = this.selectedValues;
8446
+ this.onChange(this.value);
8447
+ this.selectionChange.emit(this.value);
8448
+ }
8449
+ displaySelected = (value) => value ? this.getDisplay(value) : '';
8450
+ getDisplay(value) {
8451
+ if (!value)
8452
+ return '';
8453
+ if (this.displayWith)
8454
+ return this.displayWith(value);
8455
+ if (this.propertyFn)
8456
+ return this.propertyFn(value);
8457
+ const raw = this.getNestedValue(value, this.property);
8458
+ return this.propertyEnum && raw in this.propertyEnum ? this.propertyEnum[raw] : `${raw ?? ''}`;
8459
+ }
8460
+ highlight(label) {
8461
+ const safe = this.escapeHtml(label);
8462
+ if (!this.searchText)
8463
+ return safe;
8464
+ const term = this.escapeRegExp(this.searchText);
8465
+ return safe.replace(new RegExp(`(${term})`, 'ig'), '<span class="ptech-autocomplete-highlight">$1</span>');
8466
+ }
8467
+ trackByOption = (_, option) => this.getNestedValue(option, this.idProperty) ?? option;
8468
+ resolveOptions(term) {
8469
+ if (!this.datasource) {
8470
+ return of(this.filterLocal(term));
8471
+ }
8472
+ const result = this.datasource(term);
8473
+ if (isObservable(result))
8474
+ return result;
8475
+ if (result instanceof Promise)
8476
+ return from(result);
8477
+ return of(result);
8478
+ }
8479
+ filterLocal(term) {
8480
+ const normalized = this.normalize(term);
8481
+ return (this.entities || []).filter(item => this.normalize(this.getDisplay(item)).includes(normalized));
8482
+ }
8483
+ sameValue(left, right) {
8484
+ const leftId = this.getNestedValue(left, this.idProperty);
8485
+ const rightId = this.getNestedValue(right, this.idProperty);
8486
+ return leftId != null && rightId != null ? leftId === rightId : left === right;
8487
+ }
8488
+ getNestedValue(value, property) {
8489
+ return (property || '').split('.').reduce((current, key) => current?.[key], value);
8490
+ }
8491
+ setLoading(loading) {
8492
+ this.loading = loading;
8493
+ this.loadingChange.emit(loading);
8494
+ }
8495
+ normalize(value) {
8496
+ return (value || '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
8497
+ }
8498
+ escapeHtml(value) {
8499
+ return value.replace(/[&<>"']/g, char => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#039;' }[char] || char));
8500
+ }
8501
+ escapeRegExp(value) {
8502
+ return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
8503
+ }
8504
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8505
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechAutocompleteComponent, isStandalone: true, selector: "ptech-autocomplete", inputs: { label: "label", placeholder: "placeholder", required: "required", disabled: "disabled", readonly: "readonly", multiple: "multiple", clearable: "clearable", appearance: "appearance", property: "property", propertyEnum: "propertyEnum", propertyFn: "propertyFn", displayWith: "displayWith", idProperty: "idProperty", minLength: "minLength", debounce: "debounce", emptyText: "emptyText", loadingText: "loadingText", clearLabel: "clearLabel", datasource: "datasource", entities: "entities", loading: "loading" }, outputs: { search: "search", selectionChange: "selectionChange", loadingChange: "loadingChange" }, providers: [{
8506
+ provide: NG_VALUE_ACCESSOR,
8507
+ useExisting: forwardRef(() => PtechAutocompleteComponent),
8508
+ multi: true,
8509
+ }], queries: [{ propertyName: "optionTemplate", first: true, predicate: ["option"], descendants: true }], viewQueries: [{ propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: `
8510
+ <mat-form-field class="ptech-autocomplete-field" [appearance]="appearance">
8511
+ <mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
8512
+ <input
8513
+ #searchInput
8514
+ matInput
8515
+ type="text"
8516
+ autocomplete="off"
8517
+ [placeholder]="placeholder"
8518
+ [required]="required"
8519
+ [disabled]="disabled || loading"
8520
+ [readonly]="readonly"
8521
+ [matAutocomplete]="auto"
8522
+ [ngModel]="searchText"
8523
+ (ngModelChange)="onSearchInput($event)"
8524
+ (blur)="onTouched()"
8525
+ />
8526
+
8527
+ <button
8528
+ *ngIf="clearable && !!value && !disabled && !readonly"
8529
+ mat-icon-button
8530
+ matSuffix
8531
+ type="button"
8532
+ [attr.aria-label]="clearLabel"
8533
+ (click)="clear()">
8534
+ <mat-icon>close</mat-icon>
8535
+ </button>
8536
+ <mat-spinner *ngIf="loading" matSuffix mode="indeterminate" diameter="18"></mat-spinner>
8537
+
8538
+ <mat-autocomplete #auto="matAutocomplete" [displayWith]="displaySelected" (optionSelected)="select($event)">
8539
+ <mat-option *ngIf="loading" disabled>
8540
+ <mat-spinner mode="indeterminate" diameter="18"></mat-spinner>
8541
+ <span class="state-text">{{ loadingText }}</span>
8542
+ </mat-option>
8543
+ <mat-option *ngFor="let option of filteredOptions; trackBy: trackByOption" [value]="option">
8544
+ <ng-container *ngIf="optionTemplate; else defaultOption"
8545
+ [ngTemplateOutlet]="optionTemplate"
8546
+ [ngTemplateOutletContext]="{ $implicit: option, term: searchText }">
8547
+ </ng-container>
8548
+ <ng-template #defaultOption>
8549
+ <span [innerHTML]="highlight(getDisplay(option))"></span>
8550
+ </ng-template>
8551
+ </mat-option>
8552
+ <mat-option *ngIf="!loading && filteredOptions.length === 0" disabled>
8553
+ {{ emptyText }}
8554
+ </mat-option>
8555
+ </mat-autocomplete>
8556
+ </mat-form-field>
8557
+
8558
+ <div class="selected-list" *ngIf="multiple && selectedValues.length">
8559
+ <button type="button"
8560
+ class="selected-chip"
8561
+ *ngFor="let selected of selectedValues; trackBy: trackByOption"
8562
+ [disabled]="disabled || readonly"
8563
+ (click)="removeSelected(selected)">
8564
+ <span>{{ getDisplay(selected) }}</span>
8565
+ <mat-icon>close</mat-icon>
8566
+ </button>
8567
+ </div>
8568
+ `, isInline: true, styles: [":host{display:block}.ptech-autocomplete-field{width:100%}.state-text{margin-left:8px}.selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.selected-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--app-border-color, rgba(0,0,0,.14));background:var(--app-chip-bg, rgba(0,0,0,.05));color:var(--app-text, inherit);border-radius:999px;padding:4px 8px;cursor:pointer}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}\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: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i4$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i9$2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i9$2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8569
+ }
8570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechAutocompleteComponent, decorators: [{
8571
+ type: Component,
8572
+ args: [{ selector: 'ptech-autocomplete', imports: [CoreMaterialModule], template: `
8573
+ <mat-form-field class="ptech-autocomplete-field" [appearance]="appearance">
8574
+ <mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
8575
+ <input
8576
+ #searchInput
8577
+ matInput
8578
+ type="text"
8579
+ autocomplete="off"
8580
+ [placeholder]="placeholder"
8581
+ [required]="required"
8582
+ [disabled]="disabled || loading"
8583
+ [readonly]="readonly"
8584
+ [matAutocomplete]="auto"
8585
+ [ngModel]="searchText"
8586
+ (ngModelChange)="onSearchInput($event)"
8587
+ (blur)="onTouched()"
8588
+ />
8589
+
8590
+ <button
8591
+ *ngIf="clearable && !!value && !disabled && !readonly"
8592
+ mat-icon-button
8593
+ matSuffix
8594
+ type="button"
8595
+ [attr.aria-label]="clearLabel"
8596
+ (click)="clear()">
8597
+ <mat-icon>close</mat-icon>
8598
+ </button>
8599
+ <mat-spinner *ngIf="loading" matSuffix mode="indeterminate" diameter="18"></mat-spinner>
8600
+
8601
+ <mat-autocomplete #auto="matAutocomplete" [displayWith]="displaySelected" (optionSelected)="select($event)">
8602
+ <mat-option *ngIf="loading" disabled>
8603
+ <mat-spinner mode="indeterminate" diameter="18"></mat-spinner>
8604
+ <span class="state-text">{{ loadingText }}</span>
8605
+ </mat-option>
8606
+ <mat-option *ngFor="let option of filteredOptions; trackBy: trackByOption" [value]="option">
8607
+ <ng-container *ngIf="optionTemplate; else defaultOption"
8608
+ [ngTemplateOutlet]="optionTemplate"
8609
+ [ngTemplateOutletContext]="{ $implicit: option, term: searchText }">
8610
+ </ng-container>
8611
+ <ng-template #defaultOption>
8612
+ <span [innerHTML]="highlight(getDisplay(option))"></span>
8613
+ </ng-template>
8614
+ </mat-option>
8615
+ <mat-option *ngIf="!loading && filteredOptions.length === 0" disabled>
8616
+ {{ emptyText }}
8617
+ </mat-option>
8618
+ </mat-autocomplete>
8619
+ </mat-form-field>
8620
+
8621
+ <div class="selected-list" *ngIf="multiple && selectedValues.length">
8622
+ <button type="button"
8623
+ class="selected-chip"
8624
+ *ngFor="let selected of selectedValues; trackBy: trackByOption"
8625
+ [disabled]="disabled || readonly"
8626
+ (click)="removeSelected(selected)">
8627
+ <span>{{ getDisplay(selected) }}</span>
8628
+ <mat-icon>close</mat-icon>
8629
+ </button>
8630
+ </div>
8631
+ `, providers: [{
8632
+ provide: NG_VALUE_ACCESSOR,
8633
+ useExisting: forwardRef(() => PtechAutocompleteComponent),
8634
+ multi: true,
8635
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.ptech-autocomplete-field{width:100%}.state-text{margin-left:8px}.selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.selected-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--app-border-color, rgba(0,0,0,.14));background:var(--app-chip-bg, rgba(0,0,0,.05));color:var(--app-text, inherit);border-radius:999px;padding:4px 8px;cursor:pointer}.selected-chip mat-icon{font-size:16px;width:16px;height:16px}::ng-deep .ptech-autocomplete-highlight{font-weight:700;color:var(--app-primary, #3f51b5)}\n"] }]
8636
+ }], propDecorators: { searchInput: [{
8637
+ type: ViewChild,
8638
+ args: ['searchInput']
8639
+ }], optionTemplate: [{
8640
+ type: ContentChild,
8641
+ args: ['option', { static: false }]
8642
+ }], label: [{
8643
+ type: Input
8644
+ }], placeholder: [{
8645
+ type: Input
8646
+ }], required: [{
8647
+ type: Input
8648
+ }], disabled: [{
8649
+ type: Input
8650
+ }], readonly: [{
8651
+ type: Input
8652
+ }], multiple: [{
8653
+ type: Input
8654
+ }], clearable: [{
8655
+ type: Input
8656
+ }], appearance: [{
8657
+ type: Input
8658
+ }], property: [{
8659
+ type: Input
8660
+ }], propertyEnum: [{
8661
+ type: Input
8662
+ }], propertyFn: [{
8663
+ type: Input
8664
+ }], displayWith: [{
8665
+ type: Input
8666
+ }], idProperty: [{
8667
+ type: Input
8668
+ }], minLength: [{
8669
+ type: Input
8670
+ }], debounce: [{
8671
+ type: Input
8672
+ }], emptyText: [{
8673
+ type: Input
8674
+ }], loadingText: [{
8675
+ type: Input
8676
+ }], clearLabel: [{
8677
+ type: Input
8678
+ }], datasource: [{
8679
+ type: Input
8680
+ }], entities: [{
8681
+ type: Input
8682
+ }], loading: [{
8683
+ type: Input
8684
+ }], search: [{
8685
+ type: Output
8686
+ }], selectionChange: [{
8687
+ type: Output
8688
+ }], loadingChange: [{
8689
+ type: Output
8690
+ }] } });
8691
+
8692
+ class PtechInputFileComponent {
8693
+ label = '';
8694
+ placeholder = '';
8695
+ required = false;
8696
+ disabled = false;
8697
+ readonly = false;
8698
+ multiple = false;
8699
+ preview = true;
8700
+ showDropZone = true;
8701
+ dropText = 'Arraste arquivos aqui ou clique para selecionar';
8702
+ accept = '';
8703
+ extensions = [];
8704
+ maxSizeMb;
8705
+ appearance = 'outline';
8706
+ filesChange = new EventEmitter();
8707
+ fileRemove = new EventEmitter();
8708
+ fileDownload = new EventEmitter();
8709
+ items = [];
8710
+ dragging = false;
8711
+ get summary() {
8712
+ if (!this.items.length)
8713
+ return '';
8714
+ return this.multiple ? `${this.items.length} arquivo(s)` : this.items[0].name;
8715
+ }
8716
+ writeValue(value) {
8717
+ const values = Array.isArray(value) ? value : value ? [value] : [];
8718
+ this.items = values.map(item => item instanceof File ? this.toItem(item) : item);
8719
+ }
8720
+ registerOnChange(fn) { this.onChange = fn; }
8721
+ registerOnTouched(fn) { this.onTouched = fn; }
8722
+ setDisabledState(disabled) { this.disabled = disabled; }
8723
+ onChange = () => { };
8724
+ onTouched = () => { };
8725
+ onDragOver(event) {
8726
+ event.preventDefault();
8727
+ if (!this.disabled && !this.readonly)
8728
+ this.dragging = true;
8729
+ }
8730
+ onDragLeave(event) {
8731
+ event.preventDefault();
8732
+ this.dragging = false;
8733
+ }
8734
+ onDrop(event) {
8735
+ event.preventDefault();
8736
+ this.dragging = false;
8737
+ this.addFiles(Array.from(event.dataTransfer?.files || []));
8738
+ }
8739
+ onFileInput(event) {
8740
+ const input = event.target;
8741
+ this.addFiles(Array.from(input.files || []));
8742
+ input.value = '';
8743
+ }
8744
+ remove(index) {
8745
+ const [removed] = this.items.splice(index, 1);
8746
+ this.fileRemove.emit(removed);
8747
+ this.emit();
8748
+ }
8749
+ download(item) {
8750
+ if (item.url) {
8751
+ window.open(item.url, '_blank');
8752
+ }
8753
+ this.fileDownload.emit(item);
8754
+ }
8755
+ formatSize(size) {
8756
+ if (size < 1024)
8757
+ return `${size} B`;
8758
+ if (size < 1024 * 1024)
8759
+ return `${(size / 1024).toFixed(1)} KB`;
8760
+ return `${(size / 1024 / 1024).toFixed(1)} MB`;
8761
+ }
8762
+ addFiles(files) {
8763
+ const next = files.map(file => this.toItem(file));
8764
+ this.items = this.multiple ? [...this.items, ...next] : next.slice(0, 1);
8765
+ this.emit();
8766
+ }
8767
+ toItem(file) {
8768
+ const item = { file, name: file.name, size: file.size, type: file.type };
8769
+ if (!this.validExtension(file))
8770
+ item.error = `Extensão inválida`;
8771
+ if (!this.validSize(file))
8772
+ item.error = `Máximo ${this.maxSizeMb} MB`;
8773
+ if (this.preview && file.type.startsWith('image/'))
8774
+ item.previewUrl = URL.createObjectURL(file);
8775
+ return item;
8776
+ }
8777
+ validExtension(file) {
8778
+ const allowed = this.extensions.length ? this.extensions : this.accept.split(',').map(v => v.trim()).filter(Boolean);
8779
+ if (!allowed.length)
8780
+ return true;
8781
+ return allowed.some(extension => {
8782
+ if (extension.startsWith('.'))
8783
+ return file.name.toLowerCase().endsWith(extension.toLowerCase());
8784
+ return file.type === extension || file.type.startsWith(extension.replace('*', ''));
8785
+ });
8786
+ }
8787
+ validSize(file) {
8788
+ return !this.maxSizeMb || file.size <= this.maxSizeMb * 1024 * 1024;
8789
+ }
8790
+ emit() {
8791
+ const value = this.multiple ? this.items : this.items[0] ?? null;
8792
+ this.onChange(value);
8793
+ this.filesChange.emit(this.items);
8794
+ }
8795
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechInputFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8796
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechInputFileComponent, isStandalone: true, selector: "ptech-input-file", inputs: { label: "label", placeholder: "placeholder", required: "required", disabled: "disabled", readonly: "readonly", multiple: "multiple", preview: "preview", showDropZone: "showDropZone", dropText: "dropText", accept: "accept", extensions: "extensions", maxSizeMb: "maxSizeMb", appearance: "appearance" }, outputs: { filesChange: "filesChange", fileRemove: "fileRemove", fileDownload: "fileDownload" }, providers: [{
8797
+ provide: NG_VALUE_ACCESSOR,
8798
+ useExisting: forwardRef(() => PtechInputFileComponent),
8799
+ multi: true,
8800
+ }], ngImport: i0, template: `
8801
+ <div class="ptech-file" [class.dragging]="dragging" [class.disabled]="disabled || readonly"
8802
+ (dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)">
8803
+ <mat-form-field class="field" [appearance]="appearance">
8804
+ <mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
8805
+ <input matInput [placeholder]="placeholder" [required]="required" [disabled]="true" [value]="summary" />
8806
+ <button mat-icon-button matSuffix type="button" [disabled]="disabled || readonly" (click)="fileInput.click()">
8807
+ <mat-icon>upload_file</mat-icon>
8808
+ </button>
8809
+ </mat-form-field>
8810
+
8811
+ <input #fileInput hidden type="file" [multiple]="multiple" [accept]="accept" (change)="onFileInput($event)" />
8812
+ <div class="drop-zone" *ngIf="showDropZone">
8813
+ <mat-icon>cloud_upload</mat-icon>
8814
+ <span>{{ dropText }}</span>
8815
+ </div>
8816
+ </div>
8817
+
8818
+ <div class="file-list" *ngIf="items.length">
8819
+ <div class="file-item" *ngFor="let item of items; let i = index">
8820
+ <img *ngIf="preview && item.previewUrl" [src]="item.previewUrl" [alt]="item.name" />
8821
+ <mat-icon *ngIf="!item.previewUrl">description</mat-icon>
8822
+ <div class="file-meta">
8823
+ <strong>{{ item.name }}</strong>
8824
+ <small *ngIf="item.size">{{ formatSize(item.size) }}</small>
8825
+ <mat-progress-bar *ngIf="item.progress != null" mode="determinate" [value]="item.progress"></mat-progress-bar>
8826
+ <small class="error" *ngIf="item.error">{{ item.error }}</small>
8827
+ </div>
8828
+ <button mat-icon-button type="button" *ngIf="item.url || item.file" (click)="download(item)" [disabled]="disabled">
8829
+ <mat-icon>download</mat-icon>
8830
+ </button>
8831
+ <button mat-icon-button type="button" color="warn" (click)="remove(i)" [disabled]="disabled || readonly">
8832
+ <mat-icon>close</mat-icon>
8833
+ </button>
8834
+ </div>
8835
+ </div>
8836
+ `, isInline: true, styles: [":host{display:block}.field{width:100%}.ptech-file.disabled{opacity:.65;pointer-events:none}.drop-zone{border:1px dashed var(--app-border-color, rgba(0,0,0,.25));border-radius:8px;padding:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--app-text-muted, rgba(0,0,0,.55))}.dragging .drop-zone{border-color:var(--app-primary, #3f51b5);background:var(--app-chip-bg, rgba(0,0,0,.04))}.file-list{display:grid;gap:8px;margin-top:8px}.file-item{display:flex;align-items:center;gap:10px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:8px}.file-item img{width:42px;height:42px;object-fit:cover;border-radius:6px}.file-meta{flex:1;min-width:0;display:grid;gap:3px}.file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta small{color:var(--app-text-muted, rgba(0,0,0,.55))}.file-meta .error{color:var(--app-status-error, #f44336)}\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: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8837
+ }
8838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechInputFileComponent, decorators: [{
8839
+ type: Component,
8840
+ args: [{ selector: 'ptech-input-file', imports: [CoreMaterialModule], template: `
8841
+ <div class="ptech-file" [class.dragging]="dragging" [class.disabled]="disabled || readonly"
8842
+ (dragover)="onDragOver($event)" (dragleave)="onDragLeave($event)" (drop)="onDrop($event)">
8843
+ <mat-form-field class="field" [appearance]="appearance">
8844
+ <mat-label>{{ label }} <span *ngIf="required">*</span></mat-label>
8845
+ <input matInput [placeholder]="placeholder" [required]="required" [disabled]="true" [value]="summary" />
8846
+ <button mat-icon-button matSuffix type="button" [disabled]="disabled || readonly" (click)="fileInput.click()">
8847
+ <mat-icon>upload_file</mat-icon>
8848
+ </button>
8849
+ </mat-form-field>
8850
+
8851
+ <input #fileInput hidden type="file" [multiple]="multiple" [accept]="accept" (change)="onFileInput($event)" />
8852
+ <div class="drop-zone" *ngIf="showDropZone">
8853
+ <mat-icon>cloud_upload</mat-icon>
8854
+ <span>{{ dropText }}</span>
8855
+ </div>
8856
+ </div>
8857
+
8858
+ <div class="file-list" *ngIf="items.length">
8859
+ <div class="file-item" *ngFor="let item of items; let i = index">
8860
+ <img *ngIf="preview && item.previewUrl" [src]="item.previewUrl" [alt]="item.name" />
8861
+ <mat-icon *ngIf="!item.previewUrl">description</mat-icon>
8862
+ <div class="file-meta">
8863
+ <strong>{{ item.name }}</strong>
8864
+ <small *ngIf="item.size">{{ formatSize(item.size) }}</small>
8865
+ <mat-progress-bar *ngIf="item.progress != null" mode="determinate" [value]="item.progress"></mat-progress-bar>
8866
+ <small class="error" *ngIf="item.error">{{ item.error }}</small>
8867
+ </div>
8868
+ <button mat-icon-button type="button" *ngIf="item.url || item.file" (click)="download(item)" [disabled]="disabled">
8869
+ <mat-icon>download</mat-icon>
8870
+ </button>
8871
+ <button mat-icon-button type="button" color="warn" (click)="remove(i)" [disabled]="disabled || readonly">
8872
+ <mat-icon>close</mat-icon>
8873
+ </button>
8874
+ </div>
8875
+ </div>
8876
+ `, providers: [{
8877
+ provide: NG_VALUE_ACCESSOR,
8878
+ useExisting: forwardRef(() => PtechInputFileComponent),
8879
+ multi: true,
8880
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.field{width:100%}.ptech-file.disabled{opacity:.65;pointer-events:none}.drop-zone{border:1px dashed var(--app-border-color, rgba(0,0,0,.25));border-radius:8px;padding:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--app-text-muted, rgba(0,0,0,.55))}.dragging .drop-zone{border-color:var(--app-primary, #3f51b5);background:var(--app-chip-bg, rgba(0,0,0,.04))}.file-list{display:grid;gap:8px;margin-top:8px}.file-item{display:flex;align-items:center;gap:10px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:8px}.file-item img{width:42px;height:42px;object-fit:cover;border-radius:6px}.file-meta{flex:1;min-width:0;display:grid;gap:3px}.file-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta small{color:var(--app-text-muted, rgba(0,0,0,.55))}.file-meta .error{color:var(--app-status-error, #f44336)}\n"] }]
8881
+ }], propDecorators: { label: [{
8882
+ type: Input
8883
+ }], placeholder: [{
8884
+ type: Input
8885
+ }], required: [{
8886
+ type: Input
8887
+ }], disabled: [{
8888
+ type: Input
8889
+ }], readonly: [{
8890
+ type: Input
8891
+ }], multiple: [{
8892
+ type: Input
8893
+ }], preview: [{
8894
+ type: Input
8895
+ }], showDropZone: [{
8896
+ type: Input
8897
+ }], dropText: [{
8898
+ type: Input
8899
+ }], accept: [{
8900
+ type: Input
8901
+ }], extensions: [{
8902
+ type: Input
8903
+ }], maxSizeMb: [{
8904
+ type: Input
8905
+ }], appearance: [{
8906
+ type: Input
8907
+ }], filesChange: [{
8908
+ type: Output
8909
+ }], fileRemove: [{
8910
+ type: Output
8911
+ }], fileDownload: [{
8912
+ type: Output
8913
+ }] } });
8914
+
8915
+ class PtechDualListboxComponent {
8916
+ itemTemplate;
8917
+ items = [];
8918
+ selectedItems = [];
8919
+ selectedItemsChange = new EventEmitter();
8920
+ itemAdded = new EventEmitter();
8921
+ itemRemoved = new EventEmitter();
8922
+ allItemAdded = new EventEmitter();
8923
+ allItemRemoved = new EventEmitter();
8924
+ disabled = false;
8925
+ showFilter = true;
8926
+ height = '320px';
8927
+ filterPlaceholder = 'Pesquisar';
8928
+ availableLabel = 'Disponíveis';
8929
+ selectedLabel = 'Selecionados';
8930
+ addAllLabel = 'Adicionar todos';
8931
+ removeAllLabel = 'Remover todos';
8932
+ emptyText = 'Nenhum registro encontrado';
8933
+ displayWith;
8934
+ descProperty = 'description';
8935
+ descPropertyFn;
8936
+ idProperty = 'id';
8937
+ appearance = 'outline';
8938
+ availableSearch = '';
8939
+ selectedSearch = '';
8940
+ get availableFiltered() {
8941
+ return this.filterList(this.availableItems, this.availableSearch);
8942
+ }
8943
+ get selectedFiltered() {
8944
+ return this.filterList(this.selectedItems, this.selectedSearch);
8945
+ }
8946
+ get availableItems() {
8947
+ return (this.items || []).filter(item => !this.selectedItems.some(selected => this.sameValue(item, selected)));
8948
+ }
8949
+ writeValue(value) {
8950
+ this.selectedItems = value || [];
8951
+ }
8952
+ registerOnChange(fn) { this.onChange = fn; }
8953
+ registerOnTouched(fn) { this.onTouched = fn; }
8954
+ setDisabledState(disabled) { this.disabled = disabled; }
8955
+ onChange = () => { };
8956
+ onTouched = () => { };
8957
+ addItem(item) {
8958
+ if (this.disabled)
8959
+ return;
8960
+ this.selectedItems = [...this.selectedItems, item];
8961
+ this.itemAdded.emit(item);
8962
+ this.emit();
8963
+ }
8964
+ removeItem(item) {
8965
+ if (this.disabled)
8966
+ return;
8967
+ this.selectedItems = this.selectedItems.filter(selected => !this.sameValue(selected, item));
8968
+ this.itemRemoved.emit(item);
8969
+ this.emit();
8970
+ }
8971
+ addAll() {
8972
+ const next = this.availableFiltered.filter(item => !this.selectedItems.some(selected => this.sameValue(item, selected)));
8973
+ this.selectedItems = [...this.selectedItems, ...next];
8974
+ this.allItemAdded.emit(next);
8975
+ this.emit();
8976
+ }
8977
+ removeAll() {
8978
+ const removed = this.selectedFiltered;
8979
+ this.selectedItems = this.selectedItems.filter(item => !removed.some(selected => this.sameValue(item, selected)));
8980
+ this.allItemRemoved.emit(removed);
8981
+ this.emit();
8982
+ }
8983
+ filter() { }
8984
+ getDisplay(item) {
8985
+ if (!item)
8986
+ return '';
8987
+ if (this.displayWith)
8988
+ return this.displayWith(item);
8989
+ if (this.descPropertyFn)
8990
+ return this.descPropertyFn(item);
8991
+ return `${this.getNestedValue(item, this.descProperty) ?? ''}`;
8992
+ }
8993
+ trackByItem = (_, item) => this.getNestedValue(item, this.idProperty) ?? item;
8994
+ emit() {
8995
+ this.onChange(this.selectedItems);
8996
+ this.selectedItemsChange.emit(this.selectedItems);
8997
+ }
8998
+ filterList(list, term) {
8999
+ const normalized = this.normalize(term);
9000
+ return (list || []).filter(item => this.normalize(this.getDisplay(item)).includes(normalized));
9001
+ }
9002
+ sameValue(left, right) {
9003
+ const leftId = this.getNestedValue(left, this.idProperty);
9004
+ const rightId = this.getNestedValue(right, this.idProperty);
9005
+ return leftId != null && rightId != null ? leftId === rightId : left === right;
9006
+ }
9007
+ getNestedValue(value, property) {
9008
+ return (property || '').split('.').reduce((current, key) => current?.[key], value);
9009
+ }
9010
+ normalize(value) {
9011
+ return (value || '').normalize('NFD').replace(/[\u0300-\u036f]/g, '').toLowerCase();
9012
+ }
9013
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechDualListboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9014
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechDualListboxComponent, isStandalone: true, selector: "ptech-dual-listbox", inputs: { items: "items", selectedItems: "selectedItems", disabled: "disabled", showFilter: "showFilter", height: "height", filterPlaceholder: "filterPlaceholder", availableLabel: "availableLabel", selectedLabel: "selectedLabel", addAllLabel: "addAllLabel", removeAllLabel: "removeAllLabel", emptyText: "emptyText", displayWith: "displayWith", descProperty: "descProperty", descPropertyFn: "descPropertyFn", idProperty: "idProperty", appearance: "appearance" }, outputs: { selectedItemsChange: "selectedItemsChange", itemAdded: "itemAdded", itemRemoved: "itemRemoved", allItemAdded: "allItemAdded", allItemRemoved: "allItemRemoved" }, providers: [{
9015
+ provide: NG_VALUE_ACCESSOR,
9016
+ useExisting: forwardRef(() => PtechDualListboxComponent),
9017
+ multi: true,
9018
+ }], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["item"], descendants: true }], ngImport: i0, template: `
9019
+ <div class="dual-listbox" [class.disabled]="disabled">
9020
+ <section class="list-panel">
9021
+ <header>
9022
+ <strong>{{ availableLabel }}</strong>
9023
+ <button mat-button type="button" (click)="addAll()" [disabled]="disabled || !availableFiltered.length">{{ addAllLabel }}</button>
9024
+ </header>
9025
+ <mat-form-field *ngIf="showFilter" [appearance]="appearance">
9026
+ <mat-icon matPrefix>search</mat-icon>
9027
+ <input matInput [placeholder]="filterPlaceholder" [(ngModel)]="availableSearch" (ngModelChange)="filter()" />
9028
+ </mat-form-field>
9029
+ <div class="list" [style.height]="height">
9030
+ <button type="button" class="item" *ngFor="let item of availableFiltered; trackBy: trackByItem" (click)="addItem(item)" [disabled]="disabled">
9031
+ <ng-container *ngIf="itemTemplate; else defaultAvailable"
9032
+ [ngTemplateOutlet]="itemTemplate"
9033
+ [ngTemplateOutletContext]="{ $implicit: item, selected: false }"></ng-container>
9034
+ <ng-template #defaultAvailable>{{ getDisplay(item) }}</ng-template>
9035
+ </button>
9036
+ <div class="empty" *ngIf="!availableFiltered.length">{{ emptyText }}</div>
9037
+ </div>
9038
+ </section>
9039
+
9040
+ <div class="center-actions" aria-hidden="true">
9041
+ <mat-icon>keyboard_double_arrow_right</mat-icon>
9042
+ <mat-icon>keyboard_double_arrow_left</mat-icon>
9043
+ </div>
9044
+
9045
+ <section class="list-panel">
9046
+ <header>
9047
+ <strong>{{ selectedLabel }}</strong>
9048
+ <button mat-button type="button" color="warn" (click)="removeAll()" [disabled]="disabled || !selectedFiltered.length">{{ removeAllLabel }}</button>
9049
+ </header>
9050
+ <mat-form-field *ngIf="showFilter" [appearance]="appearance">
9051
+ <mat-icon matPrefix>search</mat-icon>
9052
+ <input matInput [placeholder]="filterPlaceholder" [(ngModel)]="selectedSearch" (ngModelChange)="filter()" />
9053
+ </mat-form-field>
9054
+ <div class="list" [style.height]="height">
9055
+ <button type="button" class="item selected" *ngFor="let item of selectedFiltered; trackBy: trackByItem" (click)="removeItem(item)" [disabled]="disabled">
9056
+ <ng-container *ngIf="itemTemplate; else defaultSelected"
9057
+ [ngTemplateOutlet]="itemTemplate"
9058
+ [ngTemplateOutletContext]="{ $implicit: item, selected: true }"></ng-container>
9059
+ <ng-template #defaultSelected>{{ getDisplay(item) }}</ng-template>
9060
+ </button>
9061
+ <div class="empty" *ngIf="!selectedFiltered.length">{{ emptyText }}</div>
9062
+ </div>
9063
+ </section>
9064
+ </div>
9065
+ `, isInline: true, styles: [":host{display:block}.dual-listbox{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch}.dual-listbox.disabled{opacity:.65}.list-panel{border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:10px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}mat-form-field{width:100%}.list{overflow:auto;display:grid;align-content:start;gap:4px}.item{width:100%;border:0;background:transparent;color:var(--app-text, inherit);text-align:left;border-radius:6px;padding:8px 10px;cursor:pointer}.item:hover{background:var(--app-chip-bg, rgba(0,0,0,.06))}.item.selected{background:var(--app-chip-bg, rgba(0,0,0,.04))}.empty{color:var(--app-text-muted, rgba(0,0,0,.55));padding:18px 8px;text-align:center}.center-actions{display:grid;align-content:center;color:var(--app-text-muted, rgba(0,0,0,.45))}@media (max-width: 720px){.dual-listbox{grid-template-columns:1fr}.center-actions{display:none}}\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: 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: "component", type: i2$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9066
+ }
9067
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechDualListboxComponent, decorators: [{
9068
+ type: Component,
9069
+ args: [{ selector: 'ptech-dual-listbox', imports: [CoreMaterialModule], template: `
9070
+ <div class="dual-listbox" [class.disabled]="disabled">
9071
+ <section class="list-panel">
9072
+ <header>
9073
+ <strong>{{ availableLabel }}</strong>
9074
+ <button mat-button type="button" (click)="addAll()" [disabled]="disabled || !availableFiltered.length">{{ addAllLabel }}</button>
9075
+ </header>
9076
+ <mat-form-field *ngIf="showFilter" [appearance]="appearance">
9077
+ <mat-icon matPrefix>search</mat-icon>
9078
+ <input matInput [placeholder]="filterPlaceholder" [(ngModel)]="availableSearch" (ngModelChange)="filter()" />
9079
+ </mat-form-field>
9080
+ <div class="list" [style.height]="height">
9081
+ <button type="button" class="item" *ngFor="let item of availableFiltered; trackBy: trackByItem" (click)="addItem(item)" [disabled]="disabled">
9082
+ <ng-container *ngIf="itemTemplate; else defaultAvailable"
9083
+ [ngTemplateOutlet]="itemTemplate"
9084
+ [ngTemplateOutletContext]="{ $implicit: item, selected: false }"></ng-container>
9085
+ <ng-template #defaultAvailable>{{ getDisplay(item) }}</ng-template>
9086
+ </button>
9087
+ <div class="empty" *ngIf="!availableFiltered.length">{{ emptyText }}</div>
9088
+ </div>
9089
+ </section>
9090
+
9091
+ <div class="center-actions" aria-hidden="true">
9092
+ <mat-icon>keyboard_double_arrow_right</mat-icon>
9093
+ <mat-icon>keyboard_double_arrow_left</mat-icon>
9094
+ </div>
9095
+
9096
+ <section class="list-panel">
9097
+ <header>
9098
+ <strong>{{ selectedLabel }}</strong>
9099
+ <button mat-button type="button" color="warn" (click)="removeAll()" [disabled]="disabled || !selectedFiltered.length">{{ removeAllLabel }}</button>
9100
+ </header>
9101
+ <mat-form-field *ngIf="showFilter" [appearance]="appearance">
9102
+ <mat-icon matPrefix>search</mat-icon>
9103
+ <input matInput [placeholder]="filterPlaceholder" [(ngModel)]="selectedSearch" (ngModelChange)="filter()" />
9104
+ </mat-form-field>
9105
+ <div class="list" [style.height]="height">
9106
+ <button type="button" class="item selected" *ngFor="let item of selectedFiltered; trackBy: trackByItem" (click)="removeItem(item)" [disabled]="disabled">
9107
+ <ng-container *ngIf="itemTemplate; else defaultSelected"
9108
+ [ngTemplateOutlet]="itemTemplate"
9109
+ [ngTemplateOutletContext]="{ $implicit: item, selected: true }"></ng-container>
9110
+ <ng-template #defaultSelected>{{ getDisplay(item) }}</ng-template>
9111
+ </button>
9112
+ <div class="empty" *ngIf="!selectedFiltered.length">{{ emptyText }}</div>
9113
+ </div>
9114
+ </section>
9115
+ </div>
9116
+ `, providers: [{
9117
+ provide: NG_VALUE_ACCESSOR,
9118
+ useExisting: forwardRef(() => PtechDualListboxComponent),
9119
+ multi: true,
9120
+ }], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.dual-listbox{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:stretch}.dual-listbox.disabled{opacity:.65}.list-panel{border:1px solid var(--app-border-color, rgba(0,0,0,.12));border-radius:8px;padding:10px;min-width:0}header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}mat-form-field{width:100%}.list{overflow:auto;display:grid;align-content:start;gap:4px}.item{width:100%;border:0;background:transparent;color:var(--app-text, inherit);text-align:left;border-radius:6px;padding:8px 10px;cursor:pointer}.item:hover{background:var(--app-chip-bg, rgba(0,0,0,.06))}.item.selected{background:var(--app-chip-bg, rgba(0,0,0,.04))}.empty{color:var(--app-text-muted, rgba(0,0,0,.55));padding:18px 8px;text-align:center}.center-actions{display:grid;align-content:center;color:var(--app-text-muted, rgba(0,0,0,.45))}@media (max-width: 720px){.dual-listbox{grid-template-columns:1fr}.center-actions{display:none}}\n"] }]
9121
+ }], propDecorators: { itemTemplate: [{
9122
+ type: ContentChild,
9123
+ args: ['item', { static: false }]
9124
+ }], items: [{
9125
+ type: Input
9126
+ }], selectedItems: [{
9127
+ type: Input
9128
+ }], selectedItemsChange: [{
9129
+ type: Output
9130
+ }], itemAdded: [{
9131
+ type: Output
9132
+ }], itemRemoved: [{
9133
+ type: Output
9134
+ }], allItemAdded: [{
9135
+ type: Output
9136
+ }], allItemRemoved: [{
9137
+ type: Output
9138
+ }], disabled: [{
9139
+ type: Input
9140
+ }], showFilter: [{
9141
+ type: Input
9142
+ }], height: [{
9143
+ type: Input
9144
+ }], filterPlaceholder: [{
9145
+ type: Input
9146
+ }], availableLabel: [{
9147
+ type: Input
9148
+ }], selectedLabel: [{
9149
+ type: Input
9150
+ }], addAllLabel: [{
9151
+ type: Input
9152
+ }], removeAllLabel: [{
9153
+ type: Input
9154
+ }], emptyText: [{
9155
+ type: Input
9156
+ }], displayWith: [{
9157
+ type: Input
9158
+ }], descProperty: [{
9159
+ type: Input
9160
+ }], descPropertyFn: [{
9161
+ type: Input
9162
+ }], idProperty: [{
9163
+ type: Input
9164
+ }], appearance: [{
9165
+ type: Input
9166
+ }] } });
9167
+
9168
+ class PtechTabComponent {
9169
+ index;
9170
+ label = '';
9171
+ icon = '';
9172
+ badge;
9173
+ counter;
9174
+ active = false;
9175
+ closeable = false;
9176
+ disabled = false;
9177
+ template;
9178
+ data;
9179
+ routerLink;
9180
+ selectionChange = new EventEmitter();
9181
+ action;
9182
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9183
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTabComponent, isStandalone: true, selector: "ptech-tab", inputs: { index: "index", label: "label", icon: "icon", badge: "badge", counter: "counter", active: "active", closeable: "closeable", disabled: "disabled", template: "template", data: "data", routerLink: "routerLink" }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: `
9184
+ <div *ngIf="active" class="ptech-tab-content">
9185
+ <ng-content></ng-content>
9186
+ <ng-container *ngIf="template"
9187
+ [ngTemplateOutlet]="template"
9188
+ [ngTemplateOutletContext]="{ $implicit: data }"></ng-container>
9189
+ </div>
9190
+ `, isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9191
+ }
9192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabComponent, decorators: [{
9193
+ type: Component,
9194
+ args: [{ selector: 'ptech-tab', imports: [CoreMaterialModule], template: `
9195
+ <div *ngIf="active" class="ptech-tab-content">
9196
+ <ng-content></ng-content>
9197
+ <ng-container *ngIf="template"
9198
+ [ngTemplateOutlet]="template"
9199
+ [ngTemplateOutletContext]="{ $implicit: data }"></ng-container>
9200
+ </div>
9201
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
9202
+ }], propDecorators: { index: [{
9203
+ type: Input
9204
+ }], label: [{
9205
+ type: Input
9206
+ }], icon: [{
9207
+ type: Input
9208
+ }], badge: [{
9209
+ type: Input
9210
+ }], counter: [{
9211
+ type: Input
9212
+ }], active: [{
9213
+ type: Input
9214
+ }], closeable: [{
9215
+ type: Input
9216
+ }], disabled: [{
9217
+ type: Input
9218
+ }], template: [{
9219
+ type: Input
9220
+ }], data: [{
9221
+ type: Input
9222
+ }], routerLink: [{
9223
+ type: Input
9224
+ }], selectionChange: [{
9225
+ type: Output
9226
+ }] } });
9227
+
9228
+ class PtechTabsComponent {
9229
+ tabs;
9230
+ scrollable = true;
9231
+ selectedTabChange = new EventEmitter();
9232
+ dynamicTabs = [];
9233
+ get projectedTabs() {
9234
+ return this.tabs?.toArray() || [];
9235
+ }
9236
+ ngAfterContentInit() {
9237
+ if (!this.allTabs.some(tab => tab.active) && this.allTabs.length) {
9238
+ this.selectTab(this.allTabs[0]);
9239
+ }
9240
+ }
9241
+ openTab(label, template, data, closeable = false, disabled = false, action) {
9242
+ this.openTabs([{ label, template, data, closeable, disabled, action }]);
9243
+ }
9244
+ openTabs(tabs) {
9245
+ this.dynamicTabs.push(...tabs.map(tab => this.createDynamicTab(tab)));
9246
+ if (this.dynamicTabs.length) {
9247
+ this.selectTab(this.dynamicTabs[this.dynamicTabs.length - tabs.length]);
9248
+ }
9249
+ }
9250
+ selectTab(tab) {
9251
+ if (tab.disabled)
9252
+ return;
9253
+ this.allTabs.forEach(item => item.active = false);
9254
+ tab.active = true;
9255
+ tab.selectionChange.emit(tab.data);
9256
+ tab.action?.(tab.data);
9257
+ this.selectedTabChange.emit(tab);
9258
+ }
9259
+ closeTab(tab) {
9260
+ const index = this.dynamicTabs.indexOf(tab);
9261
+ if (index >= 0) {
9262
+ this.dynamicTabs.splice(index, 1);
9263
+ this.selectTab(this.allTabs[0]);
9264
+ }
9265
+ }
9266
+ closeActiveTab() {
9267
+ const active = this.dynamicTabs.find(tab => tab.active);
9268
+ if (active)
9269
+ this.closeTab(active);
9270
+ }
9271
+ closeAllTabs() {
9272
+ this.dynamicTabs = [];
9273
+ if (this.projectedTabs.length)
9274
+ this.selectTab(this.projectedTabs[0]);
9275
+ }
9276
+ nextTab() {
9277
+ const tabs = this.allTabs;
9278
+ const index = tabs.findIndex(tab => tab.active);
9279
+ if (tabs[index + 1])
9280
+ this.selectTab(tabs[index + 1]);
9281
+ }
9282
+ previousTab() {
9283
+ const tabs = this.allTabs;
9284
+ const index = tabs.findIndex(tab => tab.active);
9285
+ if (tabs[index - 1])
9286
+ this.selectTab(tabs[index - 1]);
9287
+ }
9288
+ trackByTab = (_, tab) => tab.label;
9289
+ get allTabs() {
9290
+ return [...this.projectedTabs, ...this.dynamicTabs];
9291
+ }
9292
+ createDynamicTab(config) {
9293
+ const tab = new PtechTabComponent();
9294
+ tab.label = config.label;
9295
+ tab.icon = config.icon || '';
9296
+ tab.badge = config.badge;
9297
+ tab.counter = config.counter;
9298
+ tab.template = config.template;
9299
+ tab.data = config.data;
9300
+ tab.closeable = !!config.closeable;
9301
+ tab.disabled = !!config.disabled;
9302
+ tab.action = config.action;
9303
+ return tab;
9304
+ }
9305
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9306
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechTabsComponent, isStandalone: true, selector: "ptech-tabs", inputs: { scrollable: "scrollable" }, outputs: { selectedTabChange: "selectedTabChange" }, queries: [{ propertyName: "tabs", predicate: PtechTabComponent }], ngImport: i0, template: `
9307
+ <nav mat-tab-nav-bar [tabPanel]="tabPanel" class="ptech-tabs-nav" [class.scrollable]="scrollable">
9308
+ <a mat-tab-link
9309
+ *ngFor="let tab of projectedTabs; trackBy: trackByTab"
9310
+ [active]="tab.active"
9311
+ [disabled]="tab.disabled"
9312
+ [routerLink]="tab.routerLink || null"
9313
+ (click)="selectTab(tab)">
9314
+ <mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
9315
+ <span>{{ tab.label }}</span>
9316
+ <span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
9317
+ </a>
9318
+
9319
+ <a mat-tab-link
9320
+ *ngFor="let tab of dynamicTabs; trackBy: trackByTab"
9321
+ [active]="tab.active"
9322
+ [disabled]="tab.disabled"
9323
+ (click)="selectTab(tab)">
9324
+ <mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
9325
+ <span>{{ tab.label }}</span>
9326
+ <span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
9327
+ <button mat-icon-button type="button" *ngIf="tab.closeable" (click)="closeTab(tab); $event.stopPropagation()">
9328
+ <mat-icon>close</mat-icon>
9329
+ </button>
9330
+ </a>
9331
+ </nav>
9332
+
9333
+ <mat-tab-nav-panel #tabPanel>
9334
+ <ng-content></ng-content>
9335
+ <ng-container *ngFor="let tab of dynamicTabs; trackBy: trackByTab">
9336
+ <ptech-tab [active]="tab.active" [template]="tab.template" [data]="tab.data"></ptech-tab>
9337
+ </ng-container>
9338
+ </mat-tab-nav-panel>
9339
+ `, isInline: true, styles: [":host{display:block}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--app-chip-bg, rgba(0,0,0,.08));font-size:12px}\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: "component", type: i2$1.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4$4.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i4$4.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i4$4.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "component", type: PtechTabComponent, selector: "ptech-tab", inputs: ["index", "label", "icon", "badge", "counter", "active", "closeable", "disabled", "template", "data", "routerLink"], outputs: ["selectionChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9340
+ }
9341
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechTabsComponent, decorators: [{
9342
+ type: Component,
9343
+ args: [{ selector: 'ptech-tabs', imports: [CoreMaterialModule, PtechTabComponent], template: `
9344
+ <nav mat-tab-nav-bar [tabPanel]="tabPanel" class="ptech-tabs-nav" [class.scrollable]="scrollable">
9345
+ <a mat-tab-link
9346
+ *ngFor="let tab of projectedTabs; trackBy: trackByTab"
9347
+ [active]="tab.active"
9348
+ [disabled]="tab.disabled"
9349
+ [routerLink]="tab.routerLink || null"
9350
+ (click)="selectTab(tab)">
9351
+ <mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
9352
+ <span>{{ tab.label }}</span>
9353
+ <span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
9354
+ </a>
9355
+
9356
+ <a mat-tab-link
9357
+ *ngFor="let tab of dynamicTabs; trackBy: trackByTab"
9358
+ [active]="tab.active"
9359
+ [disabled]="tab.disabled"
9360
+ (click)="selectTab(tab)">
9361
+ <mat-icon *ngIf="tab.icon">{{ tab.icon }}</mat-icon>
9362
+ <span>{{ tab.label }}</span>
9363
+ <span class="badge" *ngIf="tab.badge || tab.counter">{{ tab.badge || tab.counter }}</span>
9364
+ <button mat-icon-button type="button" *ngIf="tab.closeable" (click)="closeTab(tab); $event.stopPropagation()">
9365
+ <mat-icon>close</mat-icon>
9366
+ </button>
9367
+ </a>
9368
+ </nav>
9369
+
9370
+ <mat-tab-nav-panel #tabPanel>
9371
+ <ng-content></ng-content>
9372
+ <ng-container *ngFor="let tab of dynamicTabs; trackBy: trackByTab">
9373
+ <ptech-tab [active]="tab.active" [template]="tab.template" [data]="tab.data"></ptech-tab>
9374
+ </ng-container>
9375
+ </mat-tab-nav-panel>
9376
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.ptech-tabs-nav.scrollable{overflow-x:auto;overflow-y:hidden}a[mat-tab-link]{display:inline-flex;align-items:center;gap:6px;min-width:max-content}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--app-chip-bg, rgba(0,0,0,.08));font-size:12px}\n"] }]
9377
+ }], propDecorators: { tabs: [{
9378
+ type: ContentChildren,
9379
+ args: [PtechTabComponent]
9380
+ }], scrollable: [{
9381
+ type: Input
9382
+ }], selectedTabChange: [{
9383
+ type: Output
9384
+ }] } });
9385
+
9386
+ class PtechPopoverComponent {
9387
+ contentTemplate;
9388
+ position = 'auto';
9389
+ trigger = 'click';
9390
+ dark = false;
9391
+ opened = false;
9392
+ open() { this.opened = true; }
9393
+ close() { this.opened = false; }
9394
+ toggle() { this.opened = !this.opened; }
9395
+ onClick() {
9396
+ if (this.trigger === 'click')
9397
+ this.toggle();
9398
+ }
9399
+ onMouseEnter() {
9400
+ if (this.trigger === 'hover')
9401
+ this.open();
9402
+ }
9403
+ onMouseLeave() {
9404
+ if (this.trigger === 'hover')
9405
+ this.close();
9406
+ }
9407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechPopoverComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9408
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechPopoverComponent, isStandalone: true, selector: "ptech-popover", inputs: { position: "position", trigger: "trigger", dark: "dark", opened: "opened" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: `
9409
+ <span class="anchor"
9410
+ (click)="onClick()"
9411
+ (mouseenter)="onMouseEnter()"
9412
+ (mouseleave)="onMouseLeave()">
9413
+ <ng-content select="[trigger]"></ng-content>
9414
+ <span class="panel"
9415
+ *ngIf="opened"
9416
+ [class.dark]="dark"
9417
+ [class.top]="position === 'top'"
9418
+ [class.bottom]="position === 'bottom' || position === 'auto'"
9419
+ [class.left]="position === 'left'"
9420
+ [class.right]="position === 'right'">
9421
+ <ng-container *ngIf="contentTemplate; else projected"
9422
+ [ngTemplateOutlet]="contentTemplate"></ng-container>
9423
+ <ng-template #projected><ng-content></ng-content></ng-template>
9424
+ </span>
9425
+ </span>
9426
+ `, isInline: true, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,90vw);padding:10px 12px;border-radius:8px;background:var(--app-surface, #fff);color:var(--app-text, inherit);border:1px solid var(--app-border-color, rgba(0,0,0,.12));box-shadow:0 14px 36px #0000002e}.panel.dark{background:#1f2937;color:#fff;border-color:#ffffff1f}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.left{right:calc(100% + 8px);top:0}.right{left:calc(100% + 8px);top:0}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9427
+ }
9428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechPopoverComponent, decorators: [{
9429
+ type: Component,
9430
+ args: [{ selector: 'ptech-popover', imports: [CoreMaterialModule], template: `
9431
+ <span class="anchor"
9432
+ (click)="onClick()"
9433
+ (mouseenter)="onMouseEnter()"
9434
+ (mouseleave)="onMouseLeave()">
9435
+ <ng-content select="[trigger]"></ng-content>
9436
+ <span class="panel"
9437
+ *ngIf="opened"
9438
+ [class.dark]="dark"
9439
+ [class.top]="position === 'top'"
9440
+ [class.bottom]="position === 'bottom' || position === 'auto'"
9441
+ [class.left]="position === 'left'"
9442
+ [class.right]="position === 'right'">
9443
+ <ng-container *ngIf="contentTemplate; else projected"
9444
+ [ngTemplateOutlet]="contentTemplate"></ng-container>
9445
+ <ng-template #projected><ng-content></ng-content></ng-template>
9446
+ </span>
9447
+ </span>
9448
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;position:relative}.anchor{position:relative;display:inline-flex}.panel{position:absolute;z-index:1000;min-width:180px;max-width:min(360px,90vw);padding:10px 12px;border-radius:8px;background:var(--app-surface, #fff);color:var(--app-text, inherit);border:1px solid var(--app-border-color, rgba(0,0,0,.12));box-shadow:0 14px 36px #0000002e}.panel.dark{background:#1f2937;color:#fff;border-color:#ffffff1f}.bottom{top:calc(100% + 8px);left:0}.top{bottom:calc(100% + 8px);left:0}.left{right:calc(100% + 8px);top:0}.right{left:calc(100% + 8px);top:0}\n"] }]
9449
+ }], propDecorators: { contentTemplate: [{
9450
+ type: ContentChild,
9451
+ args: ['content', { static: false }]
9452
+ }], position: [{
9453
+ type: Input
9454
+ }], trigger: [{
9455
+ type: Input
9456
+ }], dark: [{
9457
+ type: Input
9458
+ }], opened: [{
9459
+ type: Input
9460
+ }] } });
9461
+
9462
+ class PtechWidgetMenuComponent {
9463
+ label = '';
9464
+ subtitle = '';
9465
+ icon = '';
9466
+ actionsIcon = 'more_horiz';
9467
+ showActionsIcon = true;
9468
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechWidgetMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
9469
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: PtechWidgetMenuComponent, isStandalone: true, selector: "ptech-widget-menu", inputs: { label: "label", subtitle: "subtitle", icon: "icon", actionsIcon: "actionsIcon", showActionsIcon: "showActionsIcon" }, ngImport: i0, template: `
9470
+ <div class="widget-menu" matRipple>
9471
+ <div class="actions" *ngIf="showActionsIcon">
9472
+ <ptech-icon [icon]="actionsIcon"></ptech-icon>
9473
+ </div>
9474
+ <div class="content">
9475
+ <div class="icon-bg" *ngIf="icon">
9476
+ <ptech-icon [icon]="icon"></ptech-icon>
9477
+ </div>
9478
+ <div class="title">{{ label }}</div>
9479
+ <div class="subtitle" *ngIf="subtitle">{{ subtitle }}</div>
9480
+ </div>
9481
+ </div>
9482
+ `, isInline: true, styles: [":host{display:block}.widget-menu{min-height:132px;border-radius:8px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background:var(--app-surface, #fff);color:var(--app-text, inherit);position:relative;overflow:hidden;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.widget-menu:hover{transform:translateY(-1px);box-shadow:0 10px 26px #0000001f}.actions{position:absolute;top:10px;right:10px;color:var(--app-text-muted, rgba(0,0,0,.45))}.content{min-height:132px;display:grid;place-items:center;align-content:center;gap:10px;padding:20px;text-align:center}.icon-bg{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-primary, #3f51b5)}.title{font-weight:700}.subtitle{color:var(--app-text-muted, rgba(0,0,0,.55));font-size:13px}\n"], dependencies: [{ kind: "ngmodule", type: CoreMaterialModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.MatRipple, selector: "[mat-ripple], [matRipple]", inputs: ["matRippleColor", "matRippleUnbounded", "matRippleCentered", "matRippleRadius", "matRippleAnimation", "matRippleDisabled", "matRippleTrigger"], exportAs: ["matRipple"] }, { kind: "component", type: IconComponent, selector: "ptech-icon", inputs: ["icon", "color", "size", "ariaHidden", "ariaLabel", "col"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
9483
+ }
9484
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PtechWidgetMenuComponent, decorators: [{
9485
+ type: Component,
9486
+ args: [{ selector: 'ptech-widget-menu', imports: [CoreMaterialModule, IconComponent], template: `
9487
+ <div class="widget-menu" matRipple>
9488
+ <div class="actions" *ngIf="showActionsIcon">
9489
+ <ptech-icon [icon]="actionsIcon"></ptech-icon>
9490
+ </div>
9491
+ <div class="content">
9492
+ <div class="icon-bg" *ngIf="icon">
9493
+ <ptech-icon [icon]="icon"></ptech-icon>
9494
+ </div>
9495
+ <div class="title">{{ label }}</div>
9496
+ <div class="subtitle" *ngIf="subtitle">{{ subtitle }}</div>
9497
+ </div>
9498
+ </div>
9499
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}.widget-menu{min-height:132px;border-radius:8px;border:1px solid var(--app-border-color, rgba(0,0,0,.12));background:var(--app-surface, #fff);color:var(--app-text, inherit);position:relative;overflow:hidden;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}.widget-menu:hover{transform:translateY(-1px);box-shadow:0 10px 26px #0000001f}.actions{position:absolute;top:10px;right:10px;color:var(--app-text-muted, rgba(0,0,0,.45))}.content{min-height:132px;display:grid;place-items:center;align-content:center;gap:10px;padding:20px;text-align:center}.icon-bg{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--app-chip-bg, rgba(0,0,0,.06));color:var(--app-primary, #3f51b5)}.title{font-weight:700}.subtitle{color:var(--app-text-muted, rgba(0,0,0,.55));font-size:13px}\n"] }]
9500
+ }], propDecorators: { label: [{
9501
+ type: Input
9502
+ }], subtitle: [{
9503
+ type: Input
9504
+ }], icon: [{
9505
+ type: Input
9506
+ }], actionsIcon: [{
9507
+ type: Input
9508
+ }], showActionsIcon: [{
9509
+ type: Input
9510
+ }] } });
9511
+
8103
9512
  class SnackbarMessageService {
8104
9513
  snackBar;
8105
9514
  constructor(snackBar) {
@@ -8147,12 +9556,12 @@ class SnackbarMessageService {
8147
9556
  duration,
8148
9557
  });
8149
9558
  }
8150
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$5.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
9559
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, deps: [{ token: i1$4.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable });
8151
9560
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService });
8152
9561
  }
8153
9562
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SnackbarMessageService, decorators: [{
8154
9563
  type: Injectable
8155
- }], ctorParameters: () => [{ type: i1$5.MatSnackBar }] });
9564
+ }], ctorParameters: () => [{ type: i1$4.MatSnackBar }] });
8156
9565
 
8157
9566
  // src/lib/modules/pumpkin-tech.module.ts
8158
9567
  class PumpkinTechModule {
@@ -8197,7 +9606,14 @@ class PumpkinTechModule {
8197
9606
  ListPaginationComponent,
8198
9607
  DialogShellComponent,
8199
9608
  CardComponent,
8200
- ExpansionPanelComponent], exports: [
9609
+ ExpansionPanelComponent,
9610
+ PtechAutocompleteComponent,
9611
+ PtechInputFileComponent,
9612
+ PtechDualListboxComponent,
9613
+ PtechTabsComponent,
9614
+ PtechTabComponent,
9615
+ PtechPopoverComponent,
9616
+ PtechWidgetMenuComponent], exports: [
8201
9617
  // reexporta tudo junto
8202
9618
  InputComponent,
8203
9619
  TextareaComponent,
@@ -8237,6 +9653,13 @@ class PumpkinTechModule {
8237
9653
  DialogShellComponent,
8238
9654
  CardComponent,
8239
9655
  ExpansionPanelComponent,
9656
+ PtechAutocompleteComponent,
9657
+ PtechInputFileComponent,
9658
+ PtechDualListboxComponent,
9659
+ PtechTabsComponent,
9660
+ PtechTabComponent,
9661
+ PtechPopoverComponent,
9662
+ PtechWidgetMenuComponent,
8240
9663
  CoreMaterialModule] });
8241
9664
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, providers: [
8242
9665
  {
@@ -8281,7 +9704,14 @@ class PumpkinTechModule {
8281
9704
  ListPaginationComponent,
8282
9705
  DialogShellComponent,
8283
9706
  CardComponent,
8284
- ExpansionPanelComponent, CoreMaterialModule] });
9707
+ ExpansionPanelComponent,
9708
+ PtechAutocompleteComponent,
9709
+ PtechInputFileComponent,
9710
+ PtechDualListboxComponent,
9711
+ PtechTabsComponent,
9712
+ PtechTabComponent,
9713
+ PtechPopoverComponent,
9714
+ PtechWidgetMenuComponent, CoreMaterialModule] });
8285
9715
  }
8286
9716
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, decorators: [{
8287
9717
  type: NgModule,
@@ -8327,7 +9757,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8327
9757
  ListPaginationComponent,
8328
9758
  DialogShellComponent,
8329
9759
  CardComponent,
8330
- ExpansionPanelComponent
9760
+ ExpansionPanelComponent,
9761
+ PtechAutocompleteComponent,
9762
+ PtechInputFileComponent,
9763
+ PtechDualListboxComponent,
9764
+ PtechTabsComponent,
9765
+ PtechTabComponent,
9766
+ PtechPopoverComponent,
9767
+ PtechWidgetMenuComponent
8331
9768
  ],
8332
9769
  exports: [
8333
9770
  // reexporta tudo junto
@@ -8369,6 +9806,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
8369
9806
  DialogShellComponent,
8370
9807
  CardComponent,
8371
9808
  ExpansionPanelComponent,
9809
+ PtechAutocompleteComponent,
9810
+ PtechInputFileComponent,
9811
+ PtechDualListboxComponent,
9812
+ PtechTabsComponent,
9813
+ PtechTabComponent,
9814
+ PtechPopoverComponent,
9815
+ PtechWidgetMenuComponent,
8372
9816
  CoreMaterialModule,
8373
9817
  ],
8374
9818
  providers: [
@@ -9334,7 +10778,7 @@ class DialogService {
9334
10778
  this.openResultDialog(resultData);
9335
10779
  }), map(() => void 0));
9336
10780
  }
9337
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, deps: [{ token: i1$4.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
10781
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, deps: [{ token: i1$3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
9338
10782
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, providedIn: 'root' });
9339
10783
  }
9340
10784
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogService, decorators: [{
@@ -9342,7 +10786,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9342
10786
  args: [{
9343
10787
  providedIn: 'root',
9344
10788
  }]
9345
- }], ctorParameters: () => [{ type: i1$4.MatDialog }] });
10789
+ }], ctorParameters: () => [{ type: i1$3.MatDialog }] });
9346
10790
 
9347
10791
  class ModuleChangeService {
9348
10792
  moduleChangedSource = new BehaviorSubject('');
@@ -9472,7 +10916,7 @@ class BreadcrumbService {
9472
10916
  this.router = router;
9473
10917
  this.prefix$ = prefix$;
9474
10918
  this.router.events
9475
- .pipe(filter$1(e => e instanceof NavigationEnd), switchMap(() => this.prefix$), switchMap(prefix => of(this.buildDynamicCrumbs(this.router.routerState.snapshot.root, prefix))))
10919
+ .pipe(filter$1(e => e instanceof NavigationEnd), switchMap$1(() => this.prefix$), switchMap$1(prefix => of(this.buildDynamicCrumbs(this.router.routerState.snapshot.root, prefix))))
9476
10920
  .subscribe(rawCrumbs => {
9477
10921
  // filtra duplicatas consecutivas
9478
10922
  const crumbs = rawCrumbs.filter((c, i, a) => i === 0 || c.description !== a[i - 1].description);
@@ -9499,7 +10943,7 @@ class BreadcrumbService {
9499
10943
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BreadcrumbService, decorators: [{
9500
10944
  type: Injectable,
9501
10945
  args: [{ providedIn: 'root' }]
9502
- }], ctorParameters: () => [{ type: i3$2.Router }, { type: i2$4.Observable, decorators: [{
10946
+ }], ctorParameters: () => [{ type: i3$2.Router }, { type: i2$5.Observable, decorators: [{
9503
10947
  type: Optional
9504
10948
  }, {
9505
10949
  type: Inject,
@@ -9813,5 +11257,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
9813
11257
  * Generated bundle index. Do not edit.
9814
11258
  */
9815
11259
 
9816
- 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, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
11260
+ 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, PtechAutocompleteComponent, PtechColDirective, PtechDualListboxComponent, PtechGridDirective, PtechInputFileComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
9817
11261
  //# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map