pjc-fields 0.0.39 → 0.0.41

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.39",
3
+ "version": "0.0.41",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0",
@@ -418,6 +418,36 @@ declare class PjcIntegerFieldComponent implements ControlValueAccessor, OnInit {
418
418
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcIntegerFieldComponent, "pjc-integer-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; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "erros": { "alias": "erros"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
419
419
  }
420
420
 
421
+ declare class PjcImeiFieldComponent implements ControlValueAccessor, Validator, OnInit {
422
+ label: _angular_core.InputSignal<string>;
423
+ hint: _angular_core.InputSignal<string>;
424
+ placeholder: _angular_core.InputSignal<string>;
425
+ id: _angular_core.InputSignal<string>;
426
+ labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
427
+ readonly: _angular_core.InputSignal<boolean>;
428
+ erros: _angular_core.InputSignal<Record<string, string>>;
429
+ private readonly injector;
430
+ private readonly cdr;
431
+ private readonly destroyRef;
432
+ private ngControl;
433
+ value: string;
434
+ disabled: boolean;
435
+ onChange: (value: string) => void;
436
+ onTouched: () => void;
437
+ ngOnInit(): void;
438
+ get invalid(): boolean;
439
+ get errorMessage(): string;
440
+ writeValue(val: string | null): void;
441
+ registerOnChange(fn: (value: string) => void): void;
442
+ registerOnTouched(fn: () => void): void;
443
+ setDisabledState(isDisabled: boolean): void;
444
+ onModelChange(value: string): void;
445
+ onModelTouched(): void;
446
+ validate(control: AbstractControl): ValidationErrors | null;
447
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcImeiFieldComponent, never>;
448
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcImeiFieldComponent, "pjc-imei-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "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>;
449
+ }
450
+
421
451
  declare class PjcNumeroCartaoFieldComponent implements ControlValueAccessor, Validator, OnInit {
422
452
  label: _angular_core.InputSignal<string>;
423
453
  hint: _angular_core.InputSignal<string>;
@@ -691,6 +721,8 @@ declare class PjcValidators {
691
721
  static hora(): ValidatorFn;
692
722
  static placaVeiculo(): ValidatorFn;
693
723
  static email(): ValidatorFn;
724
+ static imei(): ValidatorFn;
725
+ private static validateImei;
694
726
  static numeroCartao(): ValidatorFn;
695
727
  private static validateLuhn;
696
728
  static renavam(): ValidatorFn;
@@ -713,5 +745,5 @@ declare class PjcValidators {
713
745
  static decimalMenorIgualZero(): ValidatorFn;
714
746
  }
715
747
 
716
- export { ESTADOS, PJC_CIDADE_SERVICE, PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCidadeFieldComponent, PjcCidadeService, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcDataHoraFieldComponent, PjcEmailFieldComponent, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
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 };
717
749
  export type { PjcCidadeServiceContract, PjcMunicipio, PjcUf };