@pumpkin-tech/pumpkin-tech-ng 0.2.54 → 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
|
@@ -280,6 +280,16 @@ declare class ButtonComponent extends BaseField {
|
|
|
280
280
|
};
|
|
281
281
|
private readonly DEFAULT_TEXT_COLOR;
|
|
282
282
|
get dashedTextColor(): string | null;
|
|
283
|
+
/**
|
|
284
|
+
* `textColor`'s default (white "on-accent") is only correct for variants Material actually
|
|
285
|
+
* fills with the theme color (raised/flat/fab/etc) - for unfilled variants (basic/stroked/
|
|
286
|
+
* link, transparent or outlined-only background) it made the label/icon invisible (white on
|
|
287
|
+
* white/transparent) unless every single consumer remembered to override [textColor]
|
|
288
|
+
* manually. Same "only apply when explicitly customized" pattern as dashedTextColor above;
|
|
289
|
+
* when not customized, returning null here lets Material's own [color]="themeColor" binding
|
|
290
|
+
* (already correct for these variants out of the box) take over unopposed.
|
|
291
|
+
*/
|
|
292
|
+
get unfilledTextColor(): string | null;
|
|
283
293
|
get dashedColor(): string;
|
|
284
294
|
get isThemeColor(): boolean;
|
|
285
295
|
get themeColor(): ThemePalette | undefined;
|
|
@@ -508,7 +518,7 @@ declare class BreadcrumbComponent {
|
|
|
508
518
|
hasStartIcon: boolean;
|
|
509
519
|
isLast(route: BreadcrumbRoute): boolean;
|
|
510
520
|
static ɵfac: i0.ɵɵFactoryDeclaration<BreadcrumbComponent, never>;
|
|
511
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ptech-breadcrumb", never, { "routes": { "alias": "routes"; "required": false; }; "hasStartIcon": { "alias": "hasStartIcon"; "required": false; }; }, {}, never, ["[start-icon]"], true, never>;
|
|
521
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BreadcrumbComponent, "ptech-breadcrumb", never, { "routes": { "alias": "routes"; "required": false; }; "hasStartIcon": { "alias": "hasStartIcon"; "required": false; }; }, {}, never, ["[start-icon]", "[end-content]"], true, never>;
|
|
512
522
|
}
|
|
513
523
|
|
|
514
524
|
interface HeaderData {
|
|
@@ -755,22 +765,36 @@ declare class TitleComponent implements OnChanges {
|
|
|
755
765
|
static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "ptech-title", never, { "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
756
766
|
}
|
|
757
767
|
|
|
758
|
-
|
|
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 {
|
|
759
774
|
title: string;
|
|
760
775
|
message: string;
|
|
761
|
-
accept: () => void;
|
|
762
|
-
cancelText?: string;
|
|
763
776
|
confirmText?: string;
|
|
777
|
+
cancelText?: string;
|
|
778
|
+
variant?: 'default' | 'danger' | 'warning';
|
|
779
|
+
disableClose?: boolean;
|
|
764
780
|
}
|
|
765
781
|
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
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;
|
|
770
794
|
confirm(): void;
|
|
771
795
|
cancel(): void;
|
|
772
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
773
|
-
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>;
|
|
774
798
|
}
|
|
775
799
|
|
|
776
800
|
interface PtechCurrencyConfig {
|
|
@@ -847,6 +871,7 @@ interface IMessageService {
|
|
|
847
871
|
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
848
872
|
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
849
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;
|
|
850
875
|
}
|
|
851
876
|
declare const MESSAGE_SERVICE: InjectionToken<IMessageService>;
|
|
852
877
|
declare const DefaultConsoleMessageService: IMessageService;
|
|
@@ -1492,7 +1517,8 @@ declare class ExpansionPanelComponent {
|
|
|
1492
1517
|
|
|
1493
1518
|
type PtechAutocompleteDataSource<T> = (term: string) => Observable<T[]> | Promise<T[]> | T[];
|
|
1494
1519
|
declare class PtechAutocompleteComponent<T = any> extends BaseField implements ControlValueAccessor, OnChanges, OnDestroy {
|
|
1495
|
-
|
|
1520
|
+
private cdr;
|
|
1521
|
+
constructor(el: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
|
|
1496
1522
|
searchInput?: ElementRef<HTMLInputElement>;
|
|
1497
1523
|
optionTemplate?: TemplateRef<any>;
|
|
1498
1524
|
multiple: boolean;
|
|
@@ -1813,6 +1839,32 @@ declare class PtechTimelineComponent {
|
|
|
1813
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>;
|
|
1814
1840
|
}
|
|
1815
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
|
+
|
|
1816
1868
|
declare const MY_DATE_FORMATS: {
|
|
1817
1869
|
parse: {
|
|
1818
1870
|
dateInput: string;
|
|
@@ -1832,7 +1884,7 @@ declare class CoreMaterialModule {
|
|
|
1832
1884
|
|
|
1833
1885
|
declare class PumpkinTechModule {
|
|
1834
1886
|
static ɵfac: i0.ɵɵFactoryDeclaration<PumpkinTechModule, never>;
|
|
1835
|
-
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]>;
|
|
1836
1888
|
static ɵinj: i0.ɵɵInjectorDeclaration<PumpkinTechModule>;
|
|
1837
1889
|
}
|
|
1838
1890
|
|
|
@@ -2018,6 +2070,7 @@ declare class SnackbarMessageService implements IMessageService {
|
|
|
2018
2070
|
successMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2019
2071
|
errorMessage(title: string, message: string, details?: string[], timestamp?: string, duration?: number): void;
|
|
2020
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;
|
|
2021
2074
|
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarMessageService, never>;
|
|
2022
2075
|
static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarMessageService>;
|
|
2023
2076
|
}
|
|
@@ -2044,7 +2097,6 @@ declare class DialogService {
|
|
|
2044
2097
|
}, width?: string): MatDialogRef<InfoDetailDialogComponent>;
|
|
2045
2098
|
openActionDialog(config: ActionDialogConfig, width?: string): MatDialogRef<ActionDialogComponent, any>;
|
|
2046
2099
|
openResultDialog(arg: ActionResultData, width?: string): MatDialogRef<ActionResultDialogComponent>;
|
|
2047
|
-
confirm(confirmation: ConfirmationDTO, width?: string): Observable<boolean>;
|
|
2048
2100
|
/**
|
|
2049
2101
|
* Abre um ActionDialog e, se houver resultado, usa o builder para criar
|
|
2050
2102
|
* o ActionResultData e abre o resultado.
|
|
@@ -2057,6 +2109,21 @@ declare class DialogService {
|
|
|
2057
2109
|
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
2058
2110
|
}
|
|
2059
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
|
+
|
|
2060
2127
|
declare class ModuleChangeService {
|
|
2061
2128
|
private moduleChangedSource;
|
|
2062
2129
|
moduleChanged$: rxjs.Observable<string>;
|
|
@@ -2234,5 +2301,5 @@ declare class FakeDataService {
|
|
|
2234
2301
|
static ɵprov: i0.ɵɵInjectableDeclaration<FakeDataService>;
|
|
2235
2302
|
}
|
|
2236
2303
|
|
|
2237
|
-
export { ActionDialogComponent, ActionResultDialogComponent, ActionRowComponent, AlertComponent, ArrayUtil, BREADCRUMB_PREFIX$, BadgeComponent, BadgeStackComponent, BreadcrumbComponent, BreadcrumbService, ButtonComponent, CardComponent, CheckBoxComponent, ClickCatcherDirective,
|
|
2238
|
-
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 };
|