pjc-fields 0.0.41 → 0.0.43
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/pjc-fields.mjs +74 -6
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +36 -2
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -708,6 +708,40 @@ interface PjcCidadeServiceContract {
|
|
|
708
708
|
}
|
|
709
709
|
declare const PJC_CIDADE_SERVICE: InjectionToken<PjcCidadeServiceContract>;
|
|
710
710
|
|
|
711
|
+
interface PjcTipoPessoa {
|
|
712
|
+
label: string;
|
|
713
|
+
value: string;
|
|
714
|
+
}
|
|
715
|
+
declare const TIPOS_PESSOA: PjcTipoPessoa[];
|
|
716
|
+
declare class PjcTipoPessoaFieldComponent implements ControlValueAccessor, OnInit {
|
|
717
|
+
label: _angular_core.InputSignal<string>;
|
|
718
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
719
|
+
id: _angular_core.InputSignal<string>;
|
|
720
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
721
|
+
readonly: _angular_core.InputSignal<boolean>;
|
|
722
|
+
erros: _angular_core.InputSignal<Record<string, string>>;
|
|
723
|
+
private readonly injector;
|
|
724
|
+
private readonly cdr;
|
|
725
|
+
private readonly destroyRef;
|
|
726
|
+
private ngControl;
|
|
727
|
+
readonly tiposPessoa: PjcTipoPessoa[];
|
|
728
|
+
value: string | null;
|
|
729
|
+
disabled: boolean;
|
|
730
|
+
onChange: (value: string | null) => void;
|
|
731
|
+
onTouched: () => void;
|
|
732
|
+
ngOnInit(): void;
|
|
733
|
+
get invalid(): boolean;
|
|
734
|
+
get errorMessage(): string;
|
|
735
|
+
writeValue(val: string | null): void;
|
|
736
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
737
|
+
registerOnTouched(fn: () => void): void;
|
|
738
|
+
setDisabledState(isDisabled: boolean): void;
|
|
739
|
+
onModelChange(value: string | null): void;
|
|
740
|
+
onModelTouched(): void;
|
|
741
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcTipoPessoaFieldComponent, never>;
|
|
742
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcTipoPessoaFieldComponent, "pjc-tipo-pessoa-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "erros": { "alias": "erros"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
743
|
+
}
|
|
744
|
+
|
|
711
745
|
declare class PjcValidators {
|
|
712
746
|
static cpf(): ValidatorFn;
|
|
713
747
|
private static validateCpfDigits;
|
|
@@ -745,5 +779,5 @@ declare class PjcValidators {
|
|
|
745
779
|
static decimalMenorIgualZero(): ValidatorFn;
|
|
746
780
|
}
|
|
747
781
|
|
|
748
|
-
export { ESTADOS, PJC_CIDADE_SERVICE, PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCidadeFieldComponent, PjcCidadeService, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcDataHoraFieldComponent, PjcEmailFieldComponent, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcImeiFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
|
|
749
|
-
export type { PjcCidadeServiceContract, PjcMunicipio, PjcUf };
|
|
782
|
+
export { ESTADOS, PJC_CIDADE_SERVICE, PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCidadeFieldComponent, PjcCidadeService, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcDataHoraFieldComponent, PjcEmailFieldComponent, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcImeiFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcTipoPessoaFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators, TIPOS_PESSOA };
|
|
783
|
+
export type { PjcCidadeServiceContract, PjcMunicipio, PjcTipoPessoa, PjcUf };
|