@pumpkin-tech/pumpkin-tech-ng 0.2.3 → 0.2.5
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.
|
@@ -8,7 +8,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';
|
|
10
10
|
import * as i1$1 from '@angular/common';
|
|
11
|
-
import { CommonModule, CurrencyPipe, formatNumber, formatDate, formatCurrency } from '@angular/common';
|
|
11
|
+
import { CommonModule, NgIf, CurrencyPipe, formatNumber, formatDate, formatCurrency } from '@angular/common';
|
|
12
12
|
import * as i3$2 from '@angular/material/toolbar';
|
|
13
13
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
14
14
|
import * as i4$1 from '@angular/material/sidenav';
|
|
@@ -6764,6 +6764,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6764
6764
|
args: [TableCellDirective]
|
|
6765
6765
|
}] } });
|
|
6766
6766
|
|
|
6767
|
+
class DialogShellComponent {
|
|
6768
|
+
title = '';
|
|
6769
|
+
subtitle;
|
|
6770
|
+
draggable = true;
|
|
6771
|
+
showDrag = true;
|
|
6772
|
+
showClose = true;
|
|
6773
|
+
dragRootElement = '.cdk-overlay-pane';
|
|
6774
|
+
close = new EventEmitter();
|
|
6775
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogShellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6776
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DialogShellComponent, isStandalone: true, selector: "ptech-dialog-shell", inputs: { title: "title", subtitle: "subtitle", draggable: "draggable", showDrag: "showDrag", showClose: "showClose", dragRootElement: "dragRootElement" }, outputs: { close: "close" }, ngImport: i0, template: `
|
|
6777
|
+
<div
|
|
6778
|
+
class="ptech-dialog-shell"
|
|
6779
|
+
cdkDrag
|
|
6780
|
+
[cdkDragDisabled]="!draggable"
|
|
6781
|
+
[cdkDragRootElement]="dragRootElement"
|
|
6782
|
+
>
|
|
6783
|
+
<div class="ptech-dialog-header">
|
|
6784
|
+
<div class="ptech-dialog-drag" *ngIf="showDrag" cdkDragHandle aria-hidden="true">
|
|
6785
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
6786
|
+
</div>
|
|
6787
|
+
<div class="ptech-dialog-drag ptech-dialog-drag--spacer" *ngIf="!showDrag" aria-hidden="true"></div>
|
|
6788
|
+
|
|
6789
|
+
<div class="ptech-dialog-heading">
|
|
6790
|
+
<h2 mat-dialog-title>{{ title }}</h2>
|
|
6791
|
+
<p class="ptech-dialog-subtitle" *ngIf="subtitle">{{ subtitle }}</p>
|
|
6792
|
+
</div>
|
|
6793
|
+
|
|
6794
|
+
<button
|
|
6795
|
+
*ngIf="showClose"
|
|
6796
|
+
type="button"
|
|
6797
|
+
class="ptech-dialog-close"
|
|
6798
|
+
aria-label="Fechar"
|
|
6799
|
+
(click)="close.emit()"
|
|
6800
|
+
>
|
|
6801
|
+
<mat-icon>close</mat-icon>
|
|
6802
|
+
</button>
|
|
6803
|
+
<div *ngIf="!showClose" class="ptech-dialog-drag ptech-dialog-drag--spacer" aria-hidden="true"></div>
|
|
6804
|
+
</div>
|
|
6805
|
+
|
|
6806
|
+
<div class="ptech-dialog-divider"></div>
|
|
6807
|
+
|
|
6808
|
+
<div class="ptech-dialog-content">
|
|
6809
|
+
<ng-content></ng-content>
|
|
6810
|
+
</div>
|
|
6811
|
+
</div>
|
|
6812
|
+
`, 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::-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))}::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}\n", ".ptech-dialog-drag--spacer{border-color:transparent!important;background:transparent!important}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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: "ngmodule", type: MatIconModule }, { kind: "component", type: i3$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] });
|
|
6813
|
+
}
|
|
6814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogShellComponent, decorators: [{
|
|
6815
|
+
type: Component,
|
|
6816
|
+
args: [{ selector: 'ptech-dialog-shell', standalone: true, imports: [NgIf, CdkDrag, CdkDragHandle, MatIconModule], template: `
|
|
6817
|
+
<div
|
|
6818
|
+
class="ptech-dialog-shell"
|
|
6819
|
+
cdkDrag
|
|
6820
|
+
[cdkDragDisabled]="!draggable"
|
|
6821
|
+
[cdkDragRootElement]="dragRootElement"
|
|
6822
|
+
>
|
|
6823
|
+
<div class="ptech-dialog-header">
|
|
6824
|
+
<div class="ptech-dialog-drag" *ngIf="showDrag" cdkDragHandle aria-hidden="true">
|
|
6825
|
+
<mat-icon>drag_indicator</mat-icon>
|
|
6826
|
+
</div>
|
|
6827
|
+
<div class="ptech-dialog-drag ptech-dialog-drag--spacer" *ngIf="!showDrag" aria-hidden="true"></div>
|
|
6828
|
+
|
|
6829
|
+
<div class="ptech-dialog-heading">
|
|
6830
|
+
<h2 mat-dialog-title>{{ title }}</h2>
|
|
6831
|
+
<p class="ptech-dialog-subtitle" *ngIf="subtitle">{{ subtitle }}</p>
|
|
6832
|
+
</div>
|
|
6833
|
+
|
|
6834
|
+
<button
|
|
6835
|
+
*ngIf="showClose"
|
|
6836
|
+
type="button"
|
|
6837
|
+
class="ptech-dialog-close"
|
|
6838
|
+
aria-label="Fechar"
|
|
6839
|
+
(click)="close.emit()"
|
|
6840
|
+
>
|
|
6841
|
+
<mat-icon>close</mat-icon>
|
|
6842
|
+
</button>
|
|
6843
|
+
<div *ngIf="!showClose" class="ptech-dialog-drag ptech-dialog-drag--spacer" aria-hidden="true"></div>
|
|
6844
|
+
</div>
|
|
6845
|
+
|
|
6846
|
+
<div class="ptech-dialog-divider"></div>
|
|
6847
|
+
|
|
6848
|
+
<div class="ptech-dialog-content">
|
|
6849
|
+
<ng-content></ng-content>
|
|
6850
|
+
</div>
|
|
6851
|
+
</div>
|
|
6852
|
+
`, 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::-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))}::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}\n", ".ptech-dialog-drag--spacer{border-color:transparent!important;background:transparent!important}\n"] }]
|
|
6853
|
+
}], propDecorators: { title: [{
|
|
6854
|
+
type: Input
|
|
6855
|
+
}], subtitle: [{
|
|
6856
|
+
type: Input
|
|
6857
|
+
}], draggable: [{
|
|
6858
|
+
type: Input
|
|
6859
|
+
}], showDrag: [{
|
|
6860
|
+
type: Input
|
|
6861
|
+
}], showClose: [{
|
|
6862
|
+
type: Input
|
|
6863
|
+
}], dragRootElement: [{
|
|
6864
|
+
type: Input
|
|
6865
|
+
}], close: [{
|
|
6866
|
+
type: Output
|
|
6867
|
+
}] } });
|
|
6868
|
+
|
|
6767
6869
|
class SnackbarMessageService {
|
|
6768
6870
|
snackBar;
|
|
6769
6871
|
constructor(snackBar) {
|
|
@@ -6857,7 +6959,8 @@ class PumpkinTechModule {
|
|
|
6857
6959
|
ProgressBarComponent,
|
|
6858
6960
|
ProgressBarMultipleComponent,
|
|
6859
6961
|
FlagComponent,
|
|
6860
|
-
TableComponent
|
|
6962
|
+
TableComponent,
|
|
6963
|
+
DialogShellComponent], exports: [
|
|
6861
6964
|
// reexporta tudo junto
|
|
6862
6965
|
InputComponent,
|
|
6863
6966
|
TextareaComponent,
|
|
@@ -6893,6 +6996,7 @@ class PumpkinTechModule {
|
|
|
6893
6996
|
ProgressBarMultipleComponent,
|
|
6894
6997
|
FlagComponent,
|
|
6895
6998
|
TableComponent,
|
|
6999
|
+
DialogShellComponent,
|
|
6896
7000
|
CoreMaterialModule] });
|
|
6897
7001
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, providers: [
|
|
6898
7002
|
{
|
|
@@ -6933,7 +7037,8 @@ class PumpkinTechModule {
|
|
|
6933
7037
|
ProgressBarComponent,
|
|
6934
7038
|
ProgressBarMultipleComponent,
|
|
6935
7039
|
FlagComponent,
|
|
6936
|
-
TableComponent,
|
|
7040
|
+
TableComponent,
|
|
7041
|
+
DialogShellComponent, CoreMaterialModule] });
|
|
6937
7042
|
}
|
|
6938
7043
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: PumpkinTechModule, decorators: [{
|
|
6939
7044
|
type: NgModule,
|
|
@@ -6975,7 +7080,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6975
7080
|
ProgressBarComponent,
|
|
6976
7081
|
ProgressBarMultipleComponent,
|
|
6977
7082
|
FlagComponent,
|
|
6978
|
-
TableComponent
|
|
7083
|
+
TableComponent,
|
|
7084
|
+
DialogShellComponent
|
|
6979
7085
|
],
|
|
6980
7086
|
exports: [
|
|
6981
7087
|
// reexporta tudo junto
|
|
@@ -7013,6 +7119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
7013
7119
|
ProgressBarMultipleComponent,
|
|
7014
7120
|
FlagComponent,
|
|
7015
7121
|
TableComponent,
|
|
7122
|
+
DialogShellComponent,
|
|
7016
7123
|
CoreMaterialModule,
|
|
7017
7124
|
],
|
|
7018
7125
|
providers: [
|
|
@@ -8455,5 +8562,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8455
8562
|
* Generated bundle index. Do not edit.
|
|
8456
8563
|
*/
|
|
8457
8564
|
|
|
8458
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, LoadingOverlayComponent, LoadingService, LowerCaseDirective, MESSAGE_SERVICE, MY_DATE_FORMATS, MemoryFormatPipe, ModuleChangeService, NavComponent, NavService, NumberUtil, ObjectUtil, PhoneBrazilPipe, PhoneMaskBrazilDirective, PhoneMaskSpainDirective, PhoneSpainPipe, PipesModule, ProfileMenuComponent, ProgressBarComponent, ProgressBarMultipleComponent, PtechColDirective, PtechGridDirective, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
8565
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CheckBoxComponent, ClickCatcherDirective, ConfirmationDialogComponent, CoreMaterialModule, CurrencyBrlPipe, CurrencyPreferenceService, CurrencyUtil, DateAgoPipe, DateMaskDirective, DateUtil, DefaultConsoleMessageService, DefaultMessageService, DialogService, DialogShellComponent, DirectivesModule, DocumentUtil, DynamicTabDirective, FakeDataService, FlagComponent, FooterComponent, ForDirective, GetFirstStringBeforeSpacePipe, HeaderComponent, IconComponent, InfoDetailComponent, InfoDetailDialogComponent, InputComponent, InputCurrencyComponent, InputDateComponent, InputDateRangeComponent, InputTimeComponent, IsLongerThanPipe, LineBreakAfterPeriodPipe, LineBreakAfterPipe, 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 };
|
|
8459
8566
|
//# sourceMappingURL=pumpkin-tech-pumpkin-tech-ng.mjs.map
|