pjc-fields 0.0.9 → 0.0.11

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.
@@ -1,7 +1,6 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { AfterViewInit, OnDestroy } from '@angular/core';
3
- import * as _angular_forms from '@angular/forms';
4
- import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, FormControl, ValidatorFn } from '@angular/forms';
3
+ import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
5
4
 
6
5
  declare class PjcFields {
7
6
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcFields, never>;
@@ -51,89 +50,89 @@ declare class PjcCnpjFieldComponent implements ControlValueAccessor, Validator {
51
50
  }
52
51
 
53
52
  declare class PjcCpfCnpjFieldComponent implements ControlValueAccessor, Validator {
54
- label: string;
55
- id: string;
53
+ label: _angular_core.InputSignal<string>;
54
+ id: _angular_core.InputSignal<string>;
56
55
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
57
56
  displayValue: string;
58
57
  placeholder: string;
59
58
  disabled: boolean;
60
59
  private rawValue;
61
- onChange: any;
62
- onTouched: any;
63
- writeValue(val: any): void;
64
- registerOnChange(fn: any): void;
65
- registerOnTouched(fn: any): void;
60
+ onChange: (value: string) => void;
61
+ onTouched: () => void;
62
+ writeValue(val: string | null): void;
63
+ registerOnChange(fn: (value: string) => void): void;
64
+ registerOnTouched(fn: () => void): void;
66
65
  setDisabledState(isDisabled: boolean): void;
67
66
  onInputChange(event: Event): void;
68
67
  onModelTouched(): void;
69
68
  private formatValue;
70
69
  private updatePlaceholder;
71
- validate(control: FormControl): _angular_forms.ValidationErrors | null;
70
+ validate(control: AbstractControl): ValidationErrors | null;
72
71
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcCpfCnpjFieldComponent, never>;
73
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCpfCnpjFieldComponent, "pjc-cpf-cnpj-field", never, { "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
72
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCpfCnpjFieldComponent, "pjc-cpf-cnpj-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
74
73
  }
75
74
 
76
75
  declare class PjcPlacaFieldComponent implements ControlValueAccessor, Validator {
77
- label: string;
78
- placeholder: string;
79
- id: string;
76
+ label: _angular_core.InputSignal<string>;
77
+ placeholder: _angular_core.InputSignal<string>;
78
+ id: _angular_core.InputSignal<string>;
80
79
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
81
80
  value: string;
82
- onChange: any;
83
- onTouched: any;
84
- writeValue(val: any): void;
85
- registerOnChange(fn: any): void;
86
- registerOnTouched(fn: any): void;
81
+ onChange: (value: string) => void;
82
+ onTouched: () => void;
83
+ writeValue(val: string | null): void;
84
+ registerOnChange(fn: (value: string) => void): void;
85
+ registerOnTouched(fn: () => void): void;
87
86
  onModelChange(event: Event): void;
88
- validate(control: FormControl): _angular_forms.ValidationErrors | null;
87
+ validate(control: AbstractControl): ValidationErrors | null;
89
88
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcPlacaFieldComponent, never>;
90
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcPlacaFieldComponent, "pjc-placa-field", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
89
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcPlacaFieldComponent, "pjc-placa-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; }; }, {}, never, never, true, never>;
91
90
  }
92
91
 
93
92
  declare class PjcTelefoneFieldComponent implements ControlValueAccessor, Validator {
94
- label: string;
95
- id: string;
93
+ label: _angular_core.InputSignal<string>;
94
+ id: _angular_core.InputSignal<string>;
96
95
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
97
96
  displayValue: string;
98
97
  placeholder: string;
99
98
  disabled: boolean;
100
99
  private rawValue;
101
- onChange: any;
102
- onTouched: any;
103
- writeValue(val: any): void;
104
- registerOnChange(fn: any): void;
105
- registerOnTouched(fn: any): void;
100
+ onChange: (value: string) => void;
101
+ onTouched: () => void;
102
+ writeValue(val: string | null): void;
103
+ registerOnChange(fn: (value: string) => void): void;
104
+ registerOnTouched(fn: () => void): void;
106
105
  setDisabledState(isDisabled: boolean): void;
107
106
  onInputChange(event: Event): void;
108
107
  onModelTouched(): void;
109
108
  private formatValue;
110
109
  private updatePlaceholder;
111
- validate(control: FormControl): _angular_forms.ValidationErrors | null;
110
+ validate(control: AbstractControl): ValidationErrors | null;
112
111
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcTelefoneFieldComponent, never>;
113
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcTelefoneFieldComponent, "pjc-telefone-field", never, { "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
112
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcTelefoneFieldComponent, "pjc-telefone-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
114
113
  }
115
114
 
116
115
  declare class PjcDataFieldComponent implements ControlValueAccessor, Validator, AfterViewInit, OnDestroy {
117
- label: string;
118
- id: string;
119
- minDate?: Date;
120
- maxDate?: Date;
116
+ label: _angular_core.InputSignal<string>;
117
+ id: _angular_core.InputSignal<string>;
118
+ minDate: _angular_core.InputSignal<Date | undefined>;
119
+ maxDate: _angular_core.InputSignal<Date | undefined>;
121
120
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
122
121
  value: Date | null;
123
- onChange: any;
124
- onTouched: any;
122
+ onChange: (value: Date | null) => void;
123
+ onTouched: () => void;
125
124
  private el;
126
125
  private isFormatting;
127
126
  ngAfterViewInit(): void;
128
127
  ngOnDestroy(): void;
129
128
  private handleDateInput;
130
129
  writeValue(val: Date | null): void;
131
- registerOnChange(fn: any): void;
132
- registerOnTouched(fn: any): void;
130
+ registerOnChange(fn: (value: Date | null) => void): void;
131
+ registerOnTouched(fn: () => void): void;
133
132
  onValueChange(date: Date | null): void;
134
- validate(_control: FormControl): ValidationErrors | null;
133
+ validate(_control: AbstractControl): ValidationErrors | null;
135
134
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcDataFieldComponent, never>;
136
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcDataFieldComponent, "pjc-data-field", never, { "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
135
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcDataFieldComponent, "pjc-data-field", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
137
136
  }
138
137
 
139
138
  declare class PjcHoraFieldComponent implements ControlValueAccessor, Validator {
@@ -156,19 +155,19 @@ declare class PjcHoraFieldComponent implements ControlValueAccessor, Validator {
156
155
  }
157
156
 
158
157
  declare class PjcUppercaseFieldComponent implements ControlValueAccessor {
159
- label: string;
160
- placeholder: string;
161
- id: string;
158
+ label: _angular_core.InputSignal<string>;
159
+ placeholder: _angular_core.InputSignal<string>;
160
+ id: _angular_core.InputSignal<string>;
162
161
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
163
162
  value: string;
164
- onChange: any;
165
- onTouched: any;
166
- writeValue(val: any): void;
167
- registerOnChange(fn: any): void;
168
- registerOnTouched(fn: any): void;
163
+ onChange: (value: string) => void;
164
+ onTouched: () => void;
165
+ writeValue(val: string | null): void;
166
+ registerOnChange(fn: (value: string) => void): void;
167
+ registerOnTouched(fn: () => void): void;
169
168
  onInput(event: Event): void;
170
169
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcUppercaseFieldComponent, never>;
171
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcUppercaseFieldComponent, "pjc-uppercase-field", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
170
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcUppercaseFieldComponent, "pjc-uppercase-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; }; }, {}, never, never, true, never>;
172
171
  }
173
172
 
174
173
  declare class PjcCepFieldComponent implements ControlValueAccessor, Validator {
@@ -226,17 +225,40 @@ declare class PjcEmailFieldComponent implements ControlValueAccessor, Validator
226
225
  id: _angular_core.InputSignal<string>;
227
226
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
228
227
  value: string;
229
- onChange: any;
230
- onTouched: any;
231
- writeValue(val: any): void;
232
- registerOnChange(fn: any): void;
233
- registerOnTouched(fn: any): void;
228
+ onChange: (value: string) => void;
229
+ onTouched: () => void;
230
+ writeValue(val: string | null): void;
231
+ registerOnChange(fn: (value: string) => void): void;
232
+ registerOnTouched(fn: () => void): void;
234
233
  validate(control: AbstractControl): ValidationErrors | null;
235
234
  onInput(event: Event): void;
236
235
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcEmailFieldComponent, never>;
237
236
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcEmailFieldComponent, "pjc-email-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; }; }, {}, never, never, true, never>;
238
237
  }
239
238
 
239
+ declare class PjcIntegerFieldComponent implements ControlValueAccessor {
240
+ label: _angular_core.InputSignal<string>;
241
+ placeholder: _angular_core.InputSignal<string>;
242
+ id: _angular_core.InputSignal<string>;
243
+ labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
244
+ prefix: _angular_core.InputSignal<string>;
245
+ suffix: _angular_core.InputSignal<string>;
246
+ useGrouping: _angular_core.InputSignal<boolean>;
247
+ min: _angular_core.InputSignal<number | null>;
248
+ max: _angular_core.InputSignal<number | null>;
249
+ value: number | null;
250
+ disabled: boolean;
251
+ onChange: (value: number | null) => void;
252
+ onTouched: () => void;
253
+ writeValue(val: number | null): void;
254
+ registerOnChange(fn: (value: number | null) => void): void;
255
+ registerOnTouched(fn: () => void): void;
256
+ setDisabledState(isDisabled: boolean): void;
257
+ onValueChange(value: number | null): void;
258
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcIntegerFieldComponent, never>;
259
+ 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; }; }, {}, never, never, true, never>;
260
+ }
261
+
240
262
  declare class PjcValidators {
241
263
  static cpf(): ValidatorFn;
242
264
  private static validateCpfDigits;
@@ -253,5 +275,5 @@ declare class PjcValidators {
253
275
  static cep(): ValidatorFn;
254
276
  }
255
277
 
256
- export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
278
+ export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
257
279
  export type { PjcUf };