@pumpkin-tech/pumpkin-tech-ng 0.2.55 → 0.2.57
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/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs +1091 -763
- package/fesm2022/pumpkin-tech-pumpkin-tech-ng.mjs.map +1 -1
- package/index.d.ts +142 -38
- package/package.json +1 -1
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,53 @@ 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
|
+
effectiveZoneId: string;
|
|
1858
|
+
private tickSubscription?;
|
|
1859
|
+
constructor(cdr: ChangeDetectorRef);
|
|
1860
|
+
ngOnInit(): void;
|
|
1861
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1862
|
+
ngOnDestroy(): void;
|
|
1863
|
+
private startTicking;
|
|
1864
|
+
private tick;
|
|
1865
|
+
private resolveZoneId;
|
|
1866
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechTimezoneClockComponent, never>;
|
|
1867
|
+
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>;
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
interface PtechLogModel {
|
|
1871
|
+
creationDate?: Date | string | null;
|
|
1872
|
+
lastUpdateDate?: Date | string | null;
|
|
1873
|
+
changedBy?: number | string | null;
|
|
1874
|
+
}
|
|
1875
|
+
declare class PtechLogsComponent implements OnChanges {
|
|
1876
|
+
model: PtechLogModel | null | undefined;
|
|
1877
|
+
updatedLabel: string;
|
|
1878
|
+
atLabel: string;
|
|
1879
|
+
systemLabel: string;
|
|
1880
|
+
dateFormat: string;
|
|
1881
|
+
timeFormat: string;
|
|
1882
|
+
message: string;
|
|
1883
|
+
ngOnChanges(_: SimpleChanges): void;
|
|
1884
|
+
private buildMessage;
|
|
1885
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechLogsComponent, never>;
|
|
1886
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PtechLogsComponent, "ptech-logs", never, { "model": { "alias": "model"; "required": false; }; "updatedLabel": { "alias": "updatedLabel"; "required": false; }; "atLabel": { "alias": "atLabel"; "required": false; }; "systemLabel": { "alias": "systemLabel"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; }, {}, never, never, true, never>;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1827
1889
|
declare const MY_DATE_FORMATS: {
|
|
1828
1890
|
parse: {
|
|
1829
1891
|
dateInput: string;
|
|
@@ -1843,7 +1905,7 @@ declare class CoreMaterialModule {
|
|
|
1843
1905
|
|
|
1844
1906
|
declare class PumpkinTechModule {
|
|
1845
1907
|
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]>;
|
|
1908
|
+
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 PtechLogsComponent], [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 PtechLogsComponent, typeof CoreMaterialModule]>;
|
|
1847
1909
|
static ɵinj: i0.ɵɵInjectorDeclaration<PumpkinTechModule>;
|
|
1848
1910
|
}
|
|
1849
1911
|
|
|
@@ -1953,6 +2015,38 @@ declare class CurrencyBrlPipe implements PipeTransform {
|
|
|
1953
2015
|
static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyBrlPipe, "currencybrl", true>;
|
|
1954
2016
|
}
|
|
1955
2017
|
|
|
2018
|
+
type CurrencyCode = 'EUR' | 'USD' | 'BRL';
|
|
2019
|
+
declare class CurrencyPreferenceService {
|
|
2020
|
+
private _currency;
|
|
2021
|
+
private readonly _subject;
|
|
2022
|
+
readonly currency$: rxjs.Observable<CurrencyCode>;
|
|
2023
|
+
constructor();
|
|
2024
|
+
private loadInitialCurrency;
|
|
2025
|
+
private isSupported;
|
|
2026
|
+
private _setCurrencyInternal;
|
|
2027
|
+
getCurrency(): CurrencyCode;
|
|
2028
|
+
setCurrency(newCurrency: CurrencyCode): void;
|
|
2029
|
+
getCurrencySymbol(): string;
|
|
2030
|
+
getThousandSeparator(): string;
|
|
2031
|
+
getDecimalMarker(): string;
|
|
2032
|
+
getPlaceholder(): string;
|
|
2033
|
+
formatAmount(value: number, options?: {
|
|
2034
|
+
minimumFractionDigits?: number;
|
|
2035
|
+
maximumFractionDigits?: number;
|
|
2036
|
+
useSymbol?: boolean;
|
|
2037
|
+
}): string;
|
|
2038
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPreferenceService, never>;
|
|
2039
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CurrencyPreferenceService>;
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
declare class PtechCurrencyPipe implements PipeTransform {
|
|
2043
|
+
private currencyPreferenceService;
|
|
2044
|
+
constructor(currencyPreferenceService: CurrencyPreferenceService);
|
|
2045
|
+
transform(value: number | null | undefined, minimumFractionDigits?: number, maximumFractionDigits?: number, useSymbol?: boolean): string;
|
|
2046
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechCurrencyPipe, never>;
|
|
2047
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PtechCurrencyPipe, "ptechCurrency", true>;
|
|
2048
|
+
}
|
|
2049
|
+
|
|
1956
2050
|
declare class DateAgoPipe implements PipeTransform {
|
|
1957
2051
|
private readonly intervals;
|
|
1958
2052
|
transform(value: unknown): string;
|
|
@@ -2018,7 +2112,7 @@ declare class IsLongerThanPipe implements PipeTransform {
|
|
|
2018
2112
|
|
|
2019
2113
|
declare class PipesModule {
|
|
2020
2114
|
static ɵfac: i0.ɵɵFactoryDeclaration<PipesModule, never>;
|
|
2021
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, never, [typeof i1.CommonModule, typeof CurrencyBrlPipe, typeof DateAgoPipe, typeof GetFirstStringBeforeSpacePipe, typeof LineBreakAfterPeriodPipe, typeof LineBreakAfterPipe, typeof MemoryFormatPipe, typeof PhoneBrazilPipe, typeof PhoneSpainPipe, typeof UptimeFormatPipe, typeof TimeDurationPipe, typeof IsLongerThanPipe], [typeof CurrencyBrlPipe, typeof DateAgoPipe, typeof GetFirstStringBeforeSpacePipe, typeof LineBreakAfterPeriodPipe, typeof LineBreakAfterPipe, typeof MemoryFormatPipe, typeof PhoneBrazilPipe, typeof PhoneSpainPipe, typeof UptimeFormatPipe, typeof TimeDurationPipe, typeof IsLongerThanPipe]>;
|
|
2115
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PipesModule, never, [typeof i1.CommonModule, typeof CurrencyBrlPipe, typeof PtechCurrencyPipe, typeof DateAgoPipe, typeof GetFirstStringBeforeSpacePipe, typeof LineBreakAfterPeriodPipe, typeof LineBreakAfterPipe, typeof MemoryFormatPipe, typeof PhoneBrazilPipe, typeof PhoneSpainPipe, typeof UptimeFormatPipe, typeof TimeDurationPipe, typeof IsLongerThanPipe], [typeof CurrencyBrlPipe, typeof PtechCurrencyPipe, typeof DateAgoPipe, typeof GetFirstStringBeforeSpacePipe, typeof LineBreakAfterPeriodPipe, typeof LineBreakAfterPipe, typeof MemoryFormatPipe, typeof PhoneBrazilPipe, typeof PhoneSpainPipe, typeof UptimeFormatPipe, typeof TimeDurationPipe, typeof IsLongerThanPipe]>;
|
|
2022
2116
|
static ɵinj: i0.ɵɵInjectorDeclaration<PipesModule>;
|
|
2023
2117
|
}
|
|
2024
2118
|
|
|
@@ -2029,6 +2123,7 @@ declare class SnackbarMessageService implements IMessageService {
|
|
|
2029
2123
|
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2030
2124
|
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2031
2125
|
warnMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2126
|
+
infoMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2032
2127
|
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarMessageService, never>;
|
|
2033
2128
|
static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarMessageService>;
|
|
2034
2129
|
}
|
|
@@ -2055,7 +2150,6 @@ declare class DialogService {
|
|
|
2055
2150
|
}, width?: string): MatDialogRef<InfoDetailDialogComponent>;
|
|
2056
2151
|
openActionDialog(config: ActionDialogConfig, width?: string): MatDialogRef<ActionDialogComponent, any>;
|
|
2057
2152
|
openResultDialog(arg: ActionResultData, width?: string): MatDialogRef<ActionResultDialogComponent>;
|
|
2058
|
-
confirm(confirmation: ConfirmationDTO, width?: string): Observable<boolean>;
|
|
2059
2153
|
/**
|
|
2060
2154
|
* Abre um ActionDialog e, se houver resultado, usa o builder para criar
|
|
2061
2155
|
* o ActionResultData e abre o resultado.
|
|
@@ -2068,6 +2162,21 @@ declare class DialogService {
|
|
|
2068
2162
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
2069
2163
|
}
|
|
2070
2164
|
|
|
2165
|
+
/**
|
|
2166
|
+
* The single entry point consuming apps use for a destructive/confirmation prompt - opens
|
|
2167
|
+
* PtechConfirmationDialogComponent (itself just ptech-dialog-shell + ptech-button) and hands
|
|
2168
|
+
* back an Observable<boolean> instead of taking an accept/cancel callback pair, so the dialog
|
|
2169
|
+
* carries no application logic and the caller reads the result the same way it would from
|
|
2170
|
+
* MatDialogRef.afterClosed().
|
|
2171
|
+
*/
|
|
2172
|
+
declare class PtechConfirmationService {
|
|
2173
|
+
private dialog;
|
|
2174
|
+
constructor(dialog: MatDialog);
|
|
2175
|
+
confirm(options: PtechConfirmationOptions, width?: string): Observable<boolean>;
|
|
2176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PtechConfirmationService, never>;
|
|
2177
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PtechConfirmationService>;
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2071
2180
|
declare class ModuleChangeService {
|
|
2072
2181
|
private moduleChangedSource;
|
|
2073
2182
|
moduleChanged$: rxjs.Observable<string>;
|
|
@@ -2076,30 +2185,6 @@ declare class ModuleChangeService {
|
|
|
2076
2185
|
static ɵprov: i0.ɵɵInjectableDeclaration<ModuleChangeService>;
|
|
2077
2186
|
}
|
|
2078
2187
|
|
|
2079
|
-
type CurrencyCode = 'EUR' | 'USD' | 'BRL';
|
|
2080
|
-
declare class CurrencyPreferenceService {
|
|
2081
|
-
private _currency;
|
|
2082
|
-
private readonly _subject;
|
|
2083
|
-
readonly currency$: rxjs.Observable<CurrencyCode>;
|
|
2084
|
-
constructor();
|
|
2085
|
-
private loadInitialCurrency;
|
|
2086
|
-
private isSupported;
|
|
2087
|
-
private _setCurrencyInternal;
|
|
2088
|
-
getCurrency(): CurrencyCode;
|
|
2089
|
-
setCurrency(newCurrency: CurrencyCode): void;
|
|
2090
|
-
getCurrencySymbol(): string;
|
|
2091
|
-
getThousandSeparator(): string;
|
|
2092
|
-
getDecimalMarker(): string;
|
|
2093
|
-
getPlaceholder(): string;
|
|
2094
|
-
formatAmount(value: number, options?: {
|
|
2095
|
-
minimumFractionDigits?: number;
|
|
2096
|
-
maximumFractionDigits?: number;
|
|
2097
|
-
useSymbol?: boolean;
|
|
2098
|
-
}): string;
|
|
2099
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPreferenceService, never>;
|
|
2100
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CurrencyPreferenceService>;
|
|
2101
|
-
}
|
|
2102
|
-
|
|
2103
2188
|
declare class BreadcrumbService {
|
|
2104
2189
|
private router;
|
|
2105
2190
|
private prefix$;
|
|
@@ -2174,21 +2259,35 @@ declare class NumberUtil {
|
|
|
2174
2259
|
|
|
2175
2260
|
declare class DateUtil {
|
|
2176
2261
|
static readonly DATE_FORMAT = "dd/MM/yyyy";
|
|
2262
|
+
static readonly TIME_HOUR_MINUTE_FORMAT = "HH:mm";
|
|
2263
|
+
static readonly TIME_HOUR_MINUTE_SEC_FORMAT = "HH:mm:ss";
|
|
2177
2264
|
static readonly DATE_TIME_FORMAT = "dd/MM/yyyy HH:mm";
|
|
2178
2265
|
static readonly DATE_TIME_FORMAT_SLICED = "dd/MM/yy HH:mm";
|
|
2179
2266
|
static readonly DATE_TIME_FULL_FORMAT = "dd/MM/yyyy HH:mm:ss";
|
|
2267
|
+
static readonly DEFAULT_TIME_ZONE = "UTC";
|
|
2180
2268
|
/**
|
|
2181
2269
|
* Aceita Date | string | undefined. Retorna string formatada ou vazio.
|
|
2182
2270
|
*/
|
|
2183
2271
|
static format(value: Date | string | undefined | null, format: string): string;
|
|
2272
|
+
static formatDateToZone(utcDate: Date | string | number | undefined | null, timezone?: string | null, locale?: string): string;
|
|
2273
|
+
static getTimeFormat(value: Date | string | undefined | null, format: string): string;
|
|
2184
2274
|
static getTotalDaysInMonth(month: number, year: number): number;
|
|
2185
2275
|
static addMonthsToDate(date: Date, monthsToAdd: number): Date;
|
|
2186
2276
|
static addDaysToDate(days: number, date: Date): Date;
|
|
2187
2277
|
static isValid(value: any): boolean;
|
|
2188
2278
|
static isGreaterThan(initial: Date | string, final: Date | string): boolean;
|
|
2189
2279
|
static isLessThan(initial: Date | string, final: Date | string): boolean;
|
|
2280
|
+
static isEqual(initial: Date | string, final: Date | string): boolean;
|
|
2281
|
+
static isLessThanOrEqual(initial: Date | string, final: Date | string): boolean;
|
|
2282
|
+
static isGreaterThanOrEqual(initial: Date | string, final: Date | string): boolean;
|
|
2190
2283
|
static isBetween(date: Date | string, initial: Date | string, final: Date | string): boolean;
|
|
2191
2284
|
static getDayOfWeek(date: Date): string;
|
|
2285
|
+
static isValidWithString(value: string | null | undefined, pattern: string): boolean;
|
|
2286
|
+
static stringToDate(date: string, pattern: string, zoned?: boolean): Date;
|
|
2287
|
+
static dateAndStringHourToDate(date: Date, hour: string): Date;
|
|
2288
|
+
static stringFormattedToDate(date: string | null | undefined): Date | undefined;
|
|
2289
|
+
private static resolveZoneId;
|
|
2290
|
+
private static isSupportedTimeZone;
|
|
2192
2291
|
}
|
|
2193
2292
|
|
|
2194
2293
|
declare class CurrencyUtil {
|
|
@@ -2211,6 +2310,11 @@ declare class UuidUtil {
|
|
|
2211
2310
|
static extractUUID(uuid: string | null | undefined): string | null;
|
|
2212
2311
|
}
|
|
2213
2312
|
|
|
2313
|
+
declare class EmailUtil {
|
|
2314
|
+
private static readonly ALLOWED_TLDS;
|
|
2315
|
+
static isValid(value: string): boolean;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2214
2318
|
/**
|
|
2215
2319
|
* Modelo mínimo de usuário falso gerado.
|
|
2216
2320
|
*/
|
|
@@ -2245,5 +2349,5 @@ declare class FakeDataService {
|
|
|
2245
2349
|
static ɵprov: i0.ɵɵInjectableDeclaration<FakeDataService>;
|
|
2246
2350
|
}
|
|
2247
2351
|
|
|
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,
|
|
2352
|
+
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, EmailUtil, 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, PtechCurrencyPipe, PtechDualListboxComponent, PtechGridDirective, PtechInputFileComponent, PtechLogsComponent, 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 };
|
|
2353
|
+
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, PtechLogModel, PtechPopoverPosition, PtechPopoverTrigger, PtechTabConfig, PtechTableAction, PtechTableColumn, PtechTablePageEvent, PtechTableReorderEvent, PtechTableSelectionChangeEvent, PtechTableSortDirection, PtechTableSortEvent, PtechTableToggleChangeEvent, PtechTimelineItem, PtechTimelineStatus, TableAction, TableAlign, TableBadgeConfig, TableColType, TableColumn, TableReorderEvent, TableSelectionChangeEvent, TableToggleChangeEvent };
|