@pumpkin-tech/pumpkin-tech-ng 0.2.0 → 0.2.2
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
|
@@ -18,7 +18,6 @@ import * as i7 from '@angular/material/snack-bar';
|
|
|
18
18
|
import { MatSnackBarRef, MatSnackBar } from '@angular/material/snack-bar';
|
|
19
19
|
import * as i19 from '@angular/material/datepicker';
|
|
20
20
|
import { MatDatepickerInputEvent, MatDatepicker } from '@angular/material/datepicker';
|
|
21
|
-
import { NgxCurrencyConfig } from 'ngx-currency';
|
|
22
21
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
23
22
|
import * as i1 from '@angular/common';
|
|
24
23
|
import * as i3 from '@angular/material/toolbar';
|
|
@@ -402,6 +401,26 @@ declare class QuantityItemsComponent extends BaseField implements ControlValueAc
|
|
|
402
401
|
static ɵcmp: i0.ɵɵComponentDeclaration<QuantityItemsComponent, "ptech-quantity-items", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "quantity": { "alias": "quantity"; "required": false; }; }, { "quantityChange": "quantityChange"; }, never, never, true, never>;
|
|
403
402
|
}
|
|
404
403
|
|
|
404
|
+
declare class SelectQuantityItemsComponent extends BaseField implements ControlValueAccessor {
|
|
405
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
406
|
+
appearance: MatFormFieldAppearance;
|
|
407
|
+
min: number;
|
|
408
|
+
max: number;
|
|
409
|
+
step: number;
|
|
410
|
+
quantity: number;
|
|
411
|
+
quantityChange: EventEmitter<number>;
|
|
412
|
+
get quantityOptions(): number[];
|
|
413
|
+
private onChange;
|
|
414
|
+
private onTouched;
|
|
415
|
+
onSelect(value: number): void;
|
|
416
|
+
writeValue(value: number | null): void;
|
|
417
|
+
registerOnChange(fn: (value: number) => void): void;
|
|
418
|
+
registerOnTouched(fn: () => void): void;
|
|
419
|
+
setDisabledState(isDisabled: boolean): void;
|
|
420
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectQuantityItemsComponent, never>;
|
|
421
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectQuantityItemsComponent, "ptech-select-quantity-items", never, { "appearance": { "alias": "appearance"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "quantity": { "alias": "quantity"; "required": false; }; }, { "quantityChange": "quantityChange"; }, never, never, true, never>;
|
|
422
|
+
}
|
|
423
|
+
|
|
405
424
|
type Entity = Record<string, any>;
|
|
406
425
|
declare class SelectEntityComponent extends BaseField implements ControlValueAccessor, OnChanges {
|
|
407
426
|
constructor(el: ElementRef<HTMLElement>);
|
|
@@ -515,24 +534,27 @@ declare class NavComponent {
|
|
|
515
534
|
coverFooter: boolean;
|
|
516
535
|
/** Classe opcional adicional para estilização do dimmer. */
|
|
517
536
|
backdropClass?: string;
|
|
537
|
+
backdropOverlapPx: number;
|
|
518
538
|
snavRef?: ElementRef<HTMLElement>;
|
|
519
539
|
private backdropRight?;
|
|
520
540
|
private backdropBottom?;
|
|
521
541
|
private sub?;
|
|
522
|
-
private backdropEl?;
|
|
523
542
|
stack: NavLink[];
|
|
524
543
|
constructor(navService: NavService, zone: NgZone, cdr: ChangeDetectorRef);
|
|
525
544
|
ngAfterViewInit(): void;
|
|
526
545
|
ngOnDestroy(): void;
|
|
527
546
|
ngOnChanges(changes: SimpleChanges): void;
|
|
528
547
|
onWinResize(): void;
|
|
548
|
+
onOrientationChange(): void;
|
|
529
549
|
private attachBackdrop;
|
|
530
550
|
private updateBackdropStyles;
|
|
531
551
|
private detachBackdrop;
|
|
532
552
|
private onBackdropClick;
|
|
533
553
|
private resolveTop;
|
|
534
554
|
private resolveLeft;
|
|
555
|
+
private resolveBackdropOverlapPx;
|
|
535
556
|
private get sidenavWidthPx();
|
|
557
|
+
private get sidenavRightPx();
|
|
536
558
|
get overlayTop(): string;
|
|
537
559
|
get overlayBottom(): string;
|
|
538
560
|
get currentLevel(): NavLink[];
|
|
@@ -540,7 +562,7 @@ declare class NavComponent {
|
|
|
540
562
|
clickItem(item: NavLink, ev: MouseEvent): void;
|
|
541
563
|
onHeaderClick(): void;
|
|
542
564
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavComponent, never>;
|
|
543
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavComponent, "ptech-nav", never, { "links": { "alias": "links"; "required": false; }; "currentModuleName": { "alias": "currentModuleName"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; "footerItems": { "alias": "footerItems"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "useDarkenBackdrop": { "alias": "useDarkenBackdrop"; "required": false; }; "backdropOpacity": { "alias": "backdropOpacity"; "required": false; }; "backdropZIndex": { "alias": "backdropZIndex"; "required": false; }; "backdropTop": { "alias": "backdropTop"; "required": false; }; "coverFooter": { "alias": "coverFooter"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; }, { "backdropClick": "backdropClick"; "headerClick": "headerClick"; "navigate": "navigate"; "logout": "logout"; }, never, never, true, never>;
|
|
565
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavComponent, "ptech-nav", never, { "links": { "alias": "links"; "required": false; }; "currentModuleName": { "alias": "currentModuleName"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; "footerItems": { "alias": "footerItems"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "sidenavWidth": { "alias": "sidenavWidth"; "required": false; }; "useDarkenBackdrop": { "alias": "useDarkenBackdrop"; "required": false; }; "backdropOpacity": { "alias": "backdropOpacity"; "required": false; }; "backdropZIndex": { "alias": "backdropZIndex"; "required": false; }; "backdropTop": { "alias": "backdropTop"; "required": false; }; "coverFooter": { "alias": "coverFooter"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "backdropOverlapPx": { "alias": "backdropOverlapPx"; "required": false; }; }, { "backdropClick": "backdropClick"; "headerClick": "headerClick"; "navigate": "navigate"; "logout": "logout"; }, never, never, true, never>;
|
|
544
566
|
}
|
|
545
567
|
|
|
546
568
|
declare class FooterComponent {
|
|
@@ -624,13 +646,15 @@ declare class RadioGroupEnumComponent extends BaseField implements ControlValueA
|
|
|
624
646
|
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupEnumComponent, "ptech-radio-group-enum", never, { "orientation": { "alias": "orientation"; "required": false; }; "enums": { "alias": "enums"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
625
647
|
}
|
|
626
648
|
|
|
627
|
-
declare class RadioGroupEntityComponent extends BaseField implements ControlValueAccessor {
|
|
649
|
+
declare class RadioGroupEntityComponent extends BaseField implements ControlValueAccessor, OnChanges {
|
|
628
650
|
constructor(el: ElementRef<HTMLElement>);
|
|
629
651
|
property: string;
|
|
652
|
+
idProp: string;
|
|
630
653
|
entities: any[];
|
|
631
654
|
private _value;
|
|
632
655
|
get value(): any;
|
|
633
656
|
set value(val: any);
|
|
657
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
634
658
|
getPropertyValue(entity: any): string;
|
|
635
659
|
onChange: (value: any) => void;
|
|
636
660
|
onTouch: () => void;
|
|
@@ -638,8 +662,10 @@ declare class RadioGroupEntityComponent extends BaseField implements ControlValu
|
|
|
638
662
|
registerOnChange(fn: any): void;
|
|
639
663
|
registerOnTouched(fn: any): void;
|
|
640
664
|
setDisabledState?(isDisabled: boolean): void;
|
|
665
|
+
private syncModelReference;
|
|
666
|
+
private resolveId;
|
|
641
667
|
static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupEntityComponent, never>;
|
|
642
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupEntityComponent, "ptech-radio-group-entity", never, { "property": { "alias": "property"; "required": false; }; "entities": { "alias": "entities"; "required": false; }; }, {}, never, never, true, never>;
|
|
668
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupEntityComponent, "ptech-radio-group-entity", never, { "property": { "alias": "property"; "required": false; }; "idProp": { "alias": "idProp"; "required": false; }; "entities": { "alias": "entities"; "required": false; }; }, {}, never, never, true, never>;
|
|
643
669
|
}
|
|
644
670
|
|
|
645
671
|
declare class SelectEnumComponent extends BaseField implements ControlValueAccessor {
|
|
@@ -725,14 +751,67 @@ declare class ConfirmationDialogComponent {
|
|
|
725
751
|
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "ptech-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
726
752
|
}
|
|
727
753
|
|
|
754
|
+
interface PtechCurrencyConfig {
|
|
755
|
+
align?: 'left' | 'right' | 'center';
|
|
756
|
+
allowNegative?: boolean;
|
|
757
|
+
allowZero?: boolean;
|
|
758
|
+
locale?: string;
|
|
759
|
+
currency?: string;
|
|
760
|
+
currencyDisplay?: 'symbol' | 'narrowSymbol' | 'code' | 'name';
|
|
761
|
+
useGrouping?: boolean;
|
|
762
|
+
decimal?: string;
|
|
763
|
+
precision?: number;
|
|
764
|
+
prefix?: string;
|
|
765
|
+
suffix?: string;
|
|
766
|
+
thousands?: string;
|
|
767
|
+
nullable?: boolean;
|
|
768
|
+
}
|
|
769
|
+
declare class InputCurrencyComponent extends BaseField implements ControlValueAccessor {
|
|
770
|
+
constructor(el: ElementRef<HTMLElement>);
|
|
771
|
+
/** Config por input (parcial) */
|
|
772
|
+
options: Partial<PtechCurrencyConfig>;
|
|
773
|
+
valueChange: EventEmitter<any>;
|
|
774
|
+
private defaultOptions;
|
|
775
|
+
get resolvedOptions(): PtechCurrencyConfig;
|
|
776
|
+
private _val;
|
|
777
|
+
displayValue: string;
|
|
778
|
+
onChange: (val: any) => void;
|
|
779
|
+
onTouch: () => void;
|
|
780
|
+
private parseToNumber;
|
|
781
|
+
private formatNumber;
|
|
782
|
+
onInput(raw: string): void;
|
|
783
|
+
onBlur(): void;
|
|
784
|
+
writeValue(value: any): void;
|
|
785
|
+
registerOnChange(fn: any): void;
|
|
786
|
+
registerOnTouched(fn: any): void;
|
|
787
|
+
setDisabledState(isDisabled: boolean): void;
|
|
788
|
+
private getLocale;
|
|
789
|
+
private getCurrency;
|
|
790
|
+
private getIntlFormatter;
|
|
791
|
+
private detectLocaleSeparators;
|
|
792
|
+
private getDecimalSeparator;
|
|
793
|
+
private getThousandsSeparator;
|
|
794
|
+
private normalizeInput;
|
|
795
|
+
private parseUsingSeparators;
|
|
796
|
+
private parseFlexible;
|
|
797
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent, never>;
|
|
798
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent, "ptech-input-currency", never, { "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
799
|
+
}
|
|
800
|
+
|
|
728
801
|
interface ActionDialogField<T = any> {
|
|
729
|
-
type: 'select' | 'number' | 'text' | 'checkbox';
|
|
802
|
+
type: 'select' | 'number' | 'text' | 'checkbox' | 'currency' | 'quantity-select';
|
|
730
803
|
label: string;
|
|
731
804
|
value?: any;
|
|
732
805
|
options?: T[];
|
|
806
|
+
min?: number;
|
|
807
|
+
max?: number;
|
|
808
|
+
step?: number;
|
|
809
|
+
placeholder?: string;
|
|
810
|
+
currencyOptions?: Partial<PtechCurrencyConfig>;
|
|
733
811
|
}
|
|
734
812
|
interface ActionDialogConfig {
|
|
735
813
|
title: string;
|
|
814
|
+
subtitle?: string;
|
|
736
815
|
fields: ActionDialogField[];
|
|
737
816
|
infoBox?: string;
|
|
738
817
|
content?: string;
|
|
@@ -758,7 +837,7 @@ declare class ActionDialogComponent {
|
|
|
758
837
|
private get msg();
|
|
759
838
|
onConfirm(): void;
|
|
760
839
|
onCancel(): void;
|
|
761
|
-
|
|
840
|
+
onQuantityChange(field: any, value: number): void;
|
|
762
841
|
onSelectionChange($event: any): void;
|
|
763
842
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionDialogComponent, [null, null, { optional: true; }]>;
|
|
764
843
|
static ɵcmp: i0.ɵɵComponentDeclaration<ActionDialogComponent, "ptech-action-dialog", never, {}, {}, never, never, true, never>;
|
|
@@ -767,18 +846,20 @@ declare class ActionDialogComponent {
|
|
|
767
846
|
declare class InfoDetailComponent {
|
|
768
847
|
private dialog;
|
|
769
848
|
infoTitle: string;
|
|
849
|
+
infoSubtitle: string;
|
|
770
850
|
infoContent: string;
|
|
771
851
|
infoRawContent: string;
|
|
772
852
|
iconColor: string;
|
|
773
853
|
constructor(dialog: MatDialog);
|
|
774
854
|
openInfo(): void;
|
|
775
855
|
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDetailComponent, never>;
|
|
776
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDetailComponent, "ptech-info-detail", never, { "infoTitle": { "alias": "infoTitle"; "required": false; }; "infoContent": { "alias": "infoContent"; "required": false; }; "infoRawContent": { "alias": "infoRawContent"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
856
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDetailComponent, "ptech-info-detail", never, { "infoTitle": { "alias": "infoTitle"; "required": false; }; "infoSubtitle": { "alias": "infoSubtitle"; "required": false; }; "infoContent": { "alias": "infoContent"; "required": false; }; "infoRawContent": { "alias": "infoRawContent"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
777
857
|
}
|
|
778
858
|
|
|
779
859
|
declare class InfoDetailDialogComponent {
|
|
780
860
|
data: {
|
|
781
861
|
title: string;
|
|
862
|
+
subtitle?: string;
|
|
782
863
|
content: string;
|
|
783
864
|
rawContent?: string;
|
|
784
865
|
};
|
|
@@ -787,6 +868,7 @@ declare class InfoDetailDialogComponent {
|
|
|
787
868
|
private readonly msgService;
|
|
788
869
|
constructor(data: {
|
|
789
870
|
title: string;
|
|
871
|
+
subtitle?: string;
|
|
790
872
|
content: string;
|
|
791
873
|
rawContent?: string;
|
|
792
874
|
}, dialogRef: MatDialogRef<InfoDetailDialogComponent>, messageService: IMessageService | null);
|
|
@@ -798,6 +880,7 @@ declare class InfoDetailDialogComponent {
|
|
|
798
880
|
|
|
799
881
|
interface ActionResultData {
|
|
800
882
|
title: string;
|
|
883
|
+
subtitle?: string;
|
|
801
884
|
content?: string;
|
|
802
885
|
rawContent?: string;
|
|
803
886
|
details?: unknown;
|
|
@@ -856,19 +939,14 @@ declare class ProfileMenuComponent {
|
|
|
856
939
|
|
|
857
940
|
declare class CheckBoxComponent extends BaseField implements ControlValueAccessor {
|
|
858
941
|
constructor(el: ElementRef<HTMLElement>);
|
|
859
|
-
/** Cor do checkbox: 'primary' | 'accent' | 'warn' (ou custom) */
|
|
860
942
|
color: string;
|
|
861
|
-
/** Estado indeterminado com coerção booleana */
|
|
862
943
|
static ngAcceptInputType_indeterminate: BooleanInput;
|
|
863
944
|
private _indeterminate;
|
|
864
945
|
get indeterminate(): boolean;
|
|
865
946
|
set indeterminate(v: any);
|
|
866
|
-
/** Eventos públicos */
|
|
867
947
|
change: EventEmitter<boolean>;
|
|
868
948
|
indeterminateChange: EventEmitter<boolean>;
|
|
869
|
-
/** Modelo interno (CVA) */
|
|
870
949
|
_value: boolean;
|
|
871
|
-
/** Atualização programática não emite eventos */
|
|
872
950
|
set value(v: any);
|
|
873
951
|
get value(): boolean;
|
|
874
952
|
private onChangeFn;
|
|
@@ -877,9 +955,7 @@ declare class CheckBoxComponent extends BaseField implements ControlValueAccesso
|
|
|
877
955
|
registerOnChange(fn: any): void;
|
|
878
956
|
registerOnTouched(fn: any): void;
|
|
879
957
|
setDisabledState(isDisabled: boolean): void;
|
|
880
|
-
/** Apenas interação do usuário dispara CVA + outputs */
|
|
881
958
|
onCheckboxChange(checked: boolean): void;
|
|
882
|
-
/** Coerção robusta para boolean */
|
|
883
959
|
private toBool;
|
|
884
960
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
|
|
885
961
|
static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "ptech-check-box", never, { "color": { "alias": "color"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, never, true, never>;
|
|
@@ -894,6 +970,8 @@ declare class InputDateRangeComponent extends BaseField implements ControlValueA
|
|
|
894
970
|
firstPlaceholder: string;
|
|
895
971
|
secondPlaceholder: string;
|
|
896
972
|
hint: string;
|
|
973
|
+
panelClass?: string | string[];
|
|
974
|
+
get resolvedPanelClass(): string[];
|
|
897
975
|
/** Valor interno como string com offset ou null */
|
|
898
976
|
start: string | null;
|
|
899
977
|
end: string | null;
|
|
@@ -913,7 +991,7 @@ declare class InputDateRangeComponent extends BaseField implements ControlValueA
|
|
|
913
991
|
private toIsoWithLocalOffset;
|
|
914
992
|
private pad;
|
|
915
993
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateRangeComponent, never>;
|
|
916
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateRangeComponent, "ptech-input-date-range", never, {}, { "dateChange": "dateChange"; }, never, never, true, never>;
|
|
994
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateRangeComponent, "ptech-input-date-range", never, { "panelClass": { "alias": "panelClass"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
|
|
917
995
|
}
|
|
918
996
|
|
|
919
997
|
type EmitMode = 'date' | 'isoDate' | 'isoDateTimeZ' | 'isoDateTimeTZ' | 'localOffset';
|
|
@@ -931,6 +1009,7 @@ declare class InputDateComponent extends BaseField implements ControlValueAccess
|
|
|
931
1009
|
startView: 'month' | 'year' | 'multi-year';
|
|
932
1010
|
touchUi: boolean;
|
|
933
1011
|
panelClass?: string | string[];
|
|
1012
|
+
get resolvedPanelClass(): string[];
|
|
934
1013
|
dateFilter?: (d: Date | null) => boolean;
|
|
935
1014
|
withTime: boolean;
|
|
936
1015
|
seconds: boolean;
|
|
@@ -993,26 +1072,6 @@ declare class InputTimeComponent extends BaseField implements ControlValueAccess
|
|
|
993
1072
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputTimeComponent, "ptech-input-time", never, { "format": { "alias": "format"; "required": false; }; "seconds": { "alias": "seconds"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
994
1073
|
}
|
|
995
1074
|
|
|
996
|
-
declare class InputCurrencyComponent extends BaseField implements ControlValueAccessor {
|
|
997
|
-
constructor(el: ElementRef<HTMLElement>);
|
|
998
|
-
/** Config por input (parcial) */
|
|
999
|
-
options: Partial<NgxCurrencyConfig>;
|
|
1000
|
-
valueChange: EventEmitter<any>;
|
|
1001
|
-
private defaultOptions;
|
|
1002
|
-
get resolvedOptions(): NgxCurrencyConfig;
|
|
1003
|
-
private _val;
|
|
1004
|
-
onChange: (val: any) => void;
|
|
1005
|
-
onTouch: () => void;
|
|
1006
|
-
get value(): any;
|
|
1007
|
-
set value(v: any);
|
|
1008
|
-
writeValue(value: any): void;
|
|
1009
|
-
registerOnChange(fn: any): void;
|
|
1010
|
-
registerOnTouched(fn: any): void;
|
|
1011
|
-
setDisabledState(isDisabled: boolean): void;
|
|
1012
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent, never>;
|
|
1013
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent, "ptech-input-currency", never, { "options": { "alias": "options"; "required": false; }; }, { "valueChange": "valueChange"; }, never, ["mat-hint, [mat-hint], mat-error, [mat-error]"], true, never>;
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
1075
|
declare class FlagComponent {
|
|
1017
1076
|
/** ISO 3166-1 alpha-2 (ex.: 'BR', 'ES', 'US'). */
|
|
1018
1077
|
code: string | null | undefined;
|
|
@@ -1155,6 +1214,8 @@ declare class TableComponent<T> implements OnChanges, AfterContentInit {
|
|
|
1155
1214
|
variant: BadgeVariant;
|
|
1156
1215
|
size: BadgeSize;
|
|
1157
1216
|
}>;
|
|
1217
|
+
badgeJustify(align?: TableAlign): 'start' | 'center' | 'end';
|
|
1218
|
+
resolveActionColor(action: TableAction<T>): string;
|
|
1158
1219
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
1159
1220
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "ptech-table", never, { "title": { "alias": "title"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "data": { "alias": "data"; "required": false; }; "total": { "alias": "total"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "selectRow": { "alias": "selectRow"; "required": false; }; "selectMultipleRow": { "alias": "selectMultipleRow"; "required": false; }; "getRowId": { "alias": "getRowId"; "required": false; }; "imageFallback": { "alias": "imageFallback"; "required": false; }; "responsiveCards": { "alias": "responsiveCards"; "required": false; }; }, { "selectedRows": "selectedRows"; "selectedIds": "selectedIds"; "page": "page"; }, ["cellTemplates"], ["[table-filters]", "[table-filters-actions]"], true, never>;
|
|
1160
1221
|
}
|
|
@@ -1178,7 +1239,7 @@ declare class CoreMaterialModule {
|
|
|
1178
1239
|
|
|
1179
1240
|
declare class PumpkinTechModule {
|
|
1180
1241
|
static ɵfac: i0.ɵɵFactoryDeclaration<PumpkinTechModule, never>;
|
|
1181
|
-
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 LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent], [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 LoadingOverlayComponent, typeof ProfileMenuComponent, typeof CheckBoxComponent, typeof ProgressBarComponent, typeof ProgressBarMultipleComponent, typeof FlagComponent, typeof TableComponent, typeof CoreMaterialModule]>;
|
|
1242
|
+
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 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 CoreMaterialModule]>;
|
|
1182
1243
|
static ɵinj: i0.ɵɵInjectorDeclaration<PumpkinTechModule>;
|
|
1183
1244
|
}
|
|
1184
1245
|
|
|
@@ -1380,9 +1441,11 @@ interface DialogModel<T = any, D = any> {
|
|
|
1380
1441
|
declare class DialogService {
|
|
1381
1442
|
private dialog;
|
|
1382
1443
|
constructor(dialog: MatDialog);
|
|
1444
|
+
private resolvePanelClass;
|
|
1383
1445
|
open<T = any, R = any>(model: DialogModel<T, any>): MatDialogRef<T, R>;
|
|
1384
1446
|
openInfo(arg: {
|
|
1385
1447
|
title: string;
|
|
1448
|
+
subtitle?: string;
|
|
1386
1449
|
content: string;
|
|
1387
1450
|
rawContent?: string;
|
|
1388
1451
|
}, width?: string): MatDialogRef<InfoDetailDialogComponent>;
|
|
@@ -1578,5 +1641,5 @@ declare class FakeDataService {
|
|
|
1578
1641
|
static ɵprov: i0.ɵɵInjectableDeclaration<FakeDataService>;
|
|
1579
1642
|
}
|
|
1580
1643
|
|
|
1581
|
-
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, SlideToggleComponent, SnackbarMessageService, SpaceDropDirective, StringUtil, TableCellDirective, TableComponent, TextareaComponent, TimeDurationPipe, TitleComponent, UpperCaseDirective, UptimeFormatPipe, UuidUtil };
|
|
1582
|
-
export type { ActionDialogConfig, ActionDialogField, ActionResultData, AlertData, AlertType, BadgePreset, BadgeSize, BadgeVariant, BreadcrumbRoute, ConfirmationDTO, CurrencyCode, DialogModel, FakeUser, FooterItem, HeaderData, IMessageService, NavLink, PasswordOptions, ProfileMenuItem, TableAction, TableAlign, TableBadgeConfig, TableColType, TableColumn };
|
|
1644
|
+
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 };
|
|
1645
|
+
export type { ActionDialogConfig, ActionDialogField, ActionResultData, AlertData, AlertType, BadgePreset, BadgeSize, BadgeVariant, BreadcrumbRoute, ConfirmationDTO, CurrencyCode, DialogModel, FakeUser, FooterItem, HeaderData, IMessageService, NavLink, PasswordOptions, ProfileMenuItem, PtechCurrencyConfig, TableAction, TableAlign, TableBadgeConfig, TableColType, TableColumn };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pumpkin-tech/pumpkin-tech-ng",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Biblioteca Angular com utilitários e componentes Pumpkin Tech",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"moment": "^2.29.4",
|
|
27
27
|
"@faker-js/faker": "^9.0.3",
|
|
28
28
|
"@ngx-translate/core": "^17.0.0",
|
|
29
|
-
"ngx-currency": "^19.0.0",
|
|
30
29
|
"ngx-material-timepicker": "^13.1.1",
|
|
31
30
|
"flag-icons": "^7.5.0"
|
|
32
31
|
},
|
|
Binary file
|