@pumpkin-tech/pumpkin-tech-ng 0.2.55 → 0.2.56
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.
package/index.d.ts
CHANGED
|
@@ -765,22 +765,36 @@ declare class TitleComponent implements OnChanges {
|
|
|
765
765
|
static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "ptech-title", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
|
|
768
|
+
/**
|
|
769
|
+
* Callback-free by design: PtechConfirmationService.confirm() returns an Observable<boolean>
|
|
770
|
+
* instead (mirroring MatDialogRef.afterClosed()) - the caller decides what to do with the
|
|
771
|
+
* result, the dialog itself never carries application logic.
|
|
772
|
+
*/
|
|
773
|
+
interface PtechConfirmationOptions {
|
|
769
774
|
title: string;
|
|
770
775
|
message: string;
|
|
771
|
-
accept: () => void;
|
|
772
|
-
cancelText?: string;
|
|
773
776
|
confirmText?: string;
|
|
777
|
+
cancelText?: string;
|
|
778
|
+
variant?: 'default' | 'danger' | 'warning';
|
|
779
|
+
disableClose?: boolean;
|
|
774
780
|
}
|
|
775
781
|
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
782
|
+
/**
|
|
783
|
+
* Confirmation dialog built on the same ptech-dialog-shell/ptech-button chrome every other
|
|
784
|
+
* dialog uses - it used to hand-roll its own header/footer markup (duplicating dialog-shell's
|
|
785
|
+
* structure), which is exactly the per-dialog CSS this component now avoids by delegating the
|
|
786
|
+
* shell entirely.
|
|
787
|
+
*/
|
|
788
|
+
declare class PtechConfirmationDialogComponent {
|
|
789
|
+
dialogRef: MatDialogRef<PtechConfirmationDialogComponent, boolean>;
|
|
790
|
+
data: PtechConfirmationOptions;
|
|
791
|
+
constructor(dialogRef: MatDialogRef<PtechConfirmationDialogComponent, boolean>, data: PtechConfirmationOptions);
|
|
792
|
+
get confirmColor(): string;
|
|
793
|
+
get confirmIcon(): string;
|
|
780
794
|
confirm(): void;
|
|
781
795
|
cancel(): void;
|
|
782
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
783
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
796
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechConfirmationDialogComponent, never>;
|
|
797
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtechConfirmationDialogComponent, "ptech-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
784
798
|
}
|
|
785
799
|
|
|
786
800
|
interface PtechCurrencyConfig {
|
|
@@ -857,6 +871,7 @@ interface IMessageService {
|
|
|
857
871
|
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
858
872
|
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
859
873
|
warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
874
|
+
infoMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
860
875
|
}
|
|
861
876
|
declare const MESSAGE_SERVICE: InjectionToken<IMessageService>;
|
|
862
877
|
declare const DefaultConsoleMessageService: IMessageService;
|
|
@@ -1824,6 +1839,32 @@ declare class PtechTimelineComponent {
|
|
|
1824
1839
|
static ɵcmp: i0.ɵɵComponentDeclaration<PtechTimelineComponent, "ptech-timeline", never, { "items": { "alias": "items"; "required": false; }; "itemTemplate": { "alias": "itemTemplate"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "clickable": { "alias": "clickable"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "error": { "alias": "error"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; }, { "itemClick": "itemClick"; }, never, never, true, never>;
|
|
1825
1840
|
}
|
|
1826
1841
|
|
|
1842
|
+
/**
|
|
1843
|
+
* Renders a local clock for a given IANA zone id - purely presentational, no business rule.
|
|
1844
|
+
* It does not know what a "user" or a "preference" is: the consuming app is responsible for
|
|
1845
|
+
* resolving zoneId (from wherever its own domain keeps it) and passing it in as a plain input.
|
|
1846
|
+
* Ticks its own internal timer (1s if seconds are shown, 30s otherwise) so it works standalone
|
|
1847
|
+
* with zero external services - OnPush requires an explicit markForCheck() on each tick since
|
|
1848
|
+
* the update originates outside any zone-triggered template event.
|
|
1849
|
+
*/
|
|
1850
|
+
declare class PtechTimezoneClockComponent implements OnInit, OnChanges, OnDestroy {
|
|
1851
|
+
private cdr;
|
|
1852
|
+
zoneId: string | null;
|
|
1853
|
+
compact: boolean;
|
|
1854
|
+
showTimezone: boolean;
|
|
1855
|
+
showSeconds: boolean;
|
|
1856
|
+
time: string;
|
|
1857
|
+
private tickSubscription?;
|
|
1858
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1859
|
+
ngOnInit(): void;
|
|
1860
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1861
|
+
ngOnDestroy(): void;
|
|
1862
|
+
private startTicking;
|
|
1863
|
+
private tick;
|
|
1864
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechTimezoneClockComponent, never>;
|
|
1865
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtechTimezoneClockComponent, "ptech-timezone-clock", never, { "zoneId": { "alias": "zoneId"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "showTimezone": { "alias": "showTimezone"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; }, {}, never, never, true, never>;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1827
1868
|
declare const MY_DATE_FORMATS: {
|
|
1828
1869
|
parse: {
|
|
1829
1870
|
dateInput: string;
|
|
@@ -1843,7 +1884,7 @@ declare class CoreMaterialModule {
|
|
|
1843
1884
|
|
|
1844
1885
|
declare class PumpkinTechModule {
|
|
1845
1886
|
static ɵfac: i0.ɵɵFactoryDeclaration<PumpkinTechModule, never>;
|
|
1846
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PumpkinTechModule, never, [typeof i1.CommonModule, typeof CoreMaterialModule, typeof InputComponent, typeof TextareaComponent, typeof InputDateComponent, typeof InputDateRangeComponent, typeof InputTimeComponent, typeof InputCurrencyComponent, typeof InfoDetailComponent, typeof InfoDetailDialogComponent, typeof ActionDialogComponent, typeof ActionResultDialogComponent, typeof ButtonComponent, typeof BadgeComponent, typeof BadgeStackComponent, typeof BreadcrumbComponent, typeof TitleComponent, typeof ActionRowComponent, typeof HeaderComponent, typeof NavComponent, typeof FooterComponent, typeof IconComponent, typeof SelectEntityComponent, typeof SelectEnumComponent, typeof RadioGroupEnumComponent, typeof RadioGroupEntityComponent, typeof SlideToggleComponent, typeof QuantityItemsComponent, typeof SelectQuantityItemsComponent, typeof LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent, typeof ListPaginationComponent, typeof DialogShellComponent, typeof CardComponent, typeof ExpansionPanelComponent, typeof PtechAutocompleteComponent, typeof PtechInputFileComponent, typeof PtechDualListboxComponent, typeof PtechTabsComponent, typeof PtechTabComponent, typeof PtechPopoverComponent, typeof PtechWidgetMenuComponent, typeof PtechCarouselComponent, typeof PtechTimelineComponent], [typeof InputComponent, typeof TextareaComponent, typeof InputDateComponent, typeof InputDateRangeComponent, typeof InputTimeComponent, typeof InputCurrencyComponent, typeof InfoDetailComponent, typeof InfoDetailDialogComponent, typeof ActionDialogComponent, typeof ActionResultDialogComponent, typeof ButtonComponent, typeof BadgeComponent, typeof BadgeStackComponent, typeof BreadcrumbComponent, typeof TitleComponent, typeof ActionRowComponent, typeof HeaderComponent, typeof NavComponent, typeof FooterComponent, typeof IconComponent, typeof SelectEntityComponent, typeof SelectEnumComponent, typeof RadioGroupEnumComponent, typeof RadioGroupEntityComponent, typeof SlideToggleComponent, typeof QuantityItemsComponent, typeof SelectQuantityItemsComponent, typeof LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent, typeof ListPaginationComponent, typeof DialogShellComponent, typeof CardComponent, typeof ExpansionPanelComponent, typeof PtechAutocompleteComponent, typeof PtechInputFileComponent, typeof PtechDualListboxComponent, typeof PtechTabsComponent, typeof PtechTabComponent, typeof PtechPopoverComponent, typeof PtechWidgetMenuComponent, typeof PtechCarouselComponent, typeof PtechTimelineComponent, typeof CoreMaterialModule]>;
|
|
1887
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PumpkinTechModule, never, [typeof i1.CommonModule, typeof CoreMaterialModule, typeof InputComponent, typeof TextareaComponent, typeof InputDateComponent, typeof InputDateRangeComponent, typeof InputTimeComponent, typeof InputCurrencyComponent, typeof InfoDetailComponent, typeof InfoDetailDialogComponent, typeof ActionDialogComponent, typeof ActionResultDialogComponent, typeof ButtonComponent, typeof BadgeComponent, typeof BadgeStackComponent, typeof BreadcrumbComponent, typeof TitleComponent, typeof ActionRowComponent, typeof HeaderComponent, typeof NavComponent, typeof FooterComponent, typeof IconComponent, typeof SelectEntityComponent, typeof SelectEnumComponent, typeof RadioGroupEnumComponent, typeof RadioGroupEntityComponent, typeof SlideToggleComponent, typeof QuantityItemsComponent, typeof SelectQuantityItemsComponent, typeof LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent, typeof ListPaginationComponent, typeof DialogShellComponent, typeof CardComponent, typeof ExpansionPanelComponent, typeof PtechAutocompleteComponent, typeof PtechInputFileComponent, typeof PtechDualListboxComponent, typeof PtechTabsComponent, typeof PtechTabComponent, typeof PtechPopoverComponent, typeof PtechWidgetMenuComponent, typeof PtechCarouselComponent, typeof PtechTimelineComponent, typeof PtechTimezoneClockComponent], [typeof InputComponent, typeof TextareaComponent, typeof InputDateComponent, typeof InputDateRangeComponent, typeof InputTimeComponent, typeof InputCurrencyComponent, typeof InfoDetailComponent, typeof InfoDetailDialogComponent, typeof ActionDialogComponent, typeof ActionResultDialogComponent, typeof ButtonComponent, typeof BadgeComponent, typeof BadgeStackComponent, typeof BreadcrumbComponent, typeof TitleComponent, typeof ActionRowComponent, typeof HeaderComponent, typeof NavComponent, typeof FooterComponent, typeof IconComponent, typeof SelectEntityComponent, typeof SelectEnumComponent, typeof RadioGroupEnumComponent, typeof RadioGroupEntityComponent, typeof SlideToggleComponent, typeof QuantityItemsComponent, typeof SelectQuantityItemsComponent, typeof LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent, typeof ListPaginationComponent, typeof DialogShellComponent, typeof CardComponent, typeof ExpansionPanelComponent, typeof PtechAutocompleteComponent, typeof PtechInputFileComponent, typeof PtechDualListboxComponent, typeof PtechTabsComponent, typeof PtechTabComponent, typeof PtechPopoverComponent, typeof PtechWidgetMenuComponent, typeof PtechCarouselComponent, typeof PtechTimelineComponent, typeof PtechTimezoneClockComponent, typeof CoreMaterialModule]>;
|
|
1847
1888
|
static ɵinj: i0.ɵɵInjectorDeclaration<PumpkinTechModule>;
|
|
1848
1889
|
}
|
|
1849
1890
|
|
|
@@ -2029,6 +2070,7 @@ declare class SnackbarMessageService implements IMessageService {
|
|
|
2029
2070
|
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2030
2071
|
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2031
2072
|
warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2073
|
+
infoMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2032
2074
|
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarMessageService, never>;
|
|
2033
2075
|
static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarMessageService>;
|
|
2034
2076
|
}
|
|
@@ -2055,7 +2097,6 @@ declare class DialogService {
|
|
|
2055
2097
|
}, width?: string): MatDialogRef<InfoDetailDialogComponent>;
|
|
2056
2098
|
openActionDialog(config: ActionDialogConfig, width?: string): MatDialogRef<ActionDialogComponent, any>;
|
|
2057
2099
|
openResultDialog(arg: ActionResultData, width?: string): MatDialogRef<ActionResultDialogComponent>;
|
|
2058
|
-
confirm(confirmation: ConfirmationDTO, width?: string): Observable<boolean>;
|
|
2059
2100
|
/**
|
|
2060
2101
|
* Abre um ActionDialog e, se houver resultado, usa o builder para criar
|
|
2061
2102
|
* o ActionResultData e abre o resultado.
|
|
@@ -2068,6 +2109,21 @@ declare class DialogService {
|
|
|
2068
2109
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
2069
2110
|
}
|
|
2070
2111
|
|
|
2112
|
+
/**
|
|
2113
|
+
* The single entry point consuming apps use for a destructive/confirmation prompt - opens
|
|
2114
|
+
* PtechConfirmationDialogComponent (itself just ptech-dialog-shell + ptech-button) and hands
|
|
2115
|
+
* back an Observable<boolean> instead of taking an accept/cancel callback pair, so the dialog
|
|
2116
|
+
* carries no application logic and the caller reads the result the same way it would from
|
|
2117
|
+
* MatDialogRef.afterClosed().
|
|
2118
|
+
*/
|
|
2119
|
+
declare class PtechConfirmationService {
|
|
2120
|
+
private dialog;
|
|
2121
|
+
constructor(dialog: MatDialog);
|
|
2122
|
+
confirm(options: PtechConfirmationOptions, width?: string): Observable<boolean>;
|
|
2123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechConfirmationService, never>;
|
|
2124
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PtechConfirmationService>;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2071
2127
|
declare class ModuleChangeService {
|
|
2072
2128
|
private moduleChangedSource;
|
|
2073
2129
|
moduleChanged$: rxjs.Observable<string>;
|
|
@@ -2245,5 +2301,5 @@ declare class FakeDataService {
|
|
|
2245
2301
|
static ɵprov: i0.ɵɵInjectableDeclaration<FakeDataService>;
|
|
2246
2302
|
}
|
|
2247
2303
|
|
|
2248
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective,
|
|
2249
|
-
export type { ActionDialogConfig, ActionDialogField, ActionResultData, AlertData, AlertType, BadgePreset, BadgeSize, BadgeVariant, BreadcrumbRoute, CardVariant,
|
|
2304
|
+
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective, 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, PtechCarouselComponent, PtechColDirective, PtechConfirmationDialogComponent, PtechConfirmationService, PtechDualListboxComponent, PtechGridDirective, PtechInputFileComponent, PtechPopoverComponent, PtechTabComponent, PtechTableColumnBuilder, PtechTabsComponent, PtechTimelineComponent, PtechTimezoneClockComponent, PtechWidgetMenuComponent, PumpkinTechModule, QuantityItemsComponent, RadioGroupEntityComponent, RadioGroupEnumComponent, RedDirective, SelectEntityComponent, SelectEnumComponent, SelectQuantityItemsComponent, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
2305
|
+
export type { ActionDialogConfig, ActionDialogField, ActionResultData, AlertData, AlertType, BadgePreset, BadgeSize, BadgeVariant, BreadcrumbRoute, CardVariant, CurrencyCode, DialogModel, FakeUser, FooterItem, HeaderData, IMessageService, NavLink, PasswordOptions, ProfileMenuItem, PtechAutocompleteDataSource, PtechCarouselItem, PtechConfirmationOptions, PtechCurrencyConfig, PtechFileItem, PtechPopoverPosition, PtechPopoverTrigger, PtechTabConfig, PtechTableAction, PtechTableColumn, PtechTablePageEvent, PtechTableReorderEvent, PtechTableSelectionChangeEvent, PtechTableSortDirection, PtechTableSortEvent, PtechTableToggleChangeEvent, PtechTimelineItem, PtechTimelineStatus, TableAction, TableAlign, TableBadgeConfig, TableColType, TableColumn, TableReorderEvent, TableSelectionChangeEvent, TableToggleChangeEvent };
|