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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pjc-fields",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0",
@@ -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 };