pjc-fields 0.0.8 → 0.0.10

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 {
@@ -141,54 +140,58 @@ declare class PjcHoraFieldComponent implements ControlValueAccessor, Validator {
141
140
  readonly id: _angular_core.InputSignal<string>;
142
141
  readonly labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
143
142
  value: string;
144
- onChange: any;
145
- onTouched: any;
146
- writeValue(val: any): void;
147
- registerOnChange(fn: any): void;
148
- registerOnTouched(fn: any): void;
149
- onInput(): void;
150
- validate(control: FormControl): _angular_forms.ValidationErrors | null;
143
+ disabled: boolean;
144
+ onChange: (value: string) => void;
145
+ onTouched: () => void;
146
+ writeValue(val: string | null): void;
147
+ registerOnChange(fn: (value: string) => void): void;
148
+ registerOnTouched(fn: () => void): void;
149
+ setDisabledState(isDisabled: boolean): void;
150
+ onModelChange(value: string): void;
151
+ onModelTouched(): void;
152
+ validate(control: AbstractControl): ValidationErrors | null;
151
153
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcHoraFieldComponent, never>;
152
154
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcHoraFieldComponent, "pjc-hora-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>;
153
155
  }
154
156
 
155
- declare class PjcNomeFieldComponent implements ControlValueAccessor {
156
- label: string;
157
- placeholder: string;
158
- id: string;
157
+ declare class PjcUppercaseFieldComponent implements ControlValueAccessor {
158
+ label: _angular_core.InputSignal<string>;
159
+ placeholder: _angular_core.InputSignal<string>;
160
+ id: _angular_core.InputSignal<string>;
159
161
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
160
162
  value: string;
161
- onChange: any;
162
- onTouched: any;
163
- writeValue(val: any): void;
164
- registerOnChange(fn: any): void;
165
- 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;
166
168
  onInput(event: Event): void;
167
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcNomeFieldComponent, never>;
168
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcNomeFieldComponent, "pjc-nome-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>;
169
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcUppercaseFieldComponent, 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>;
169
171
  }
170
172
 
171
- declare class PjcCepFieldComponent implements ControlValueAccessor {
172
- label: string;
173
- hint: string;
174
- placeholder: string;
175
- id: string;
173
+ declare class PjcCepFieldComponent implements ControlValueAccessor, Validator {
174
+ label: _angular_core.InputSignal<string>;
175
+ hint: _angular_core.InputSignal<string>;
176
+ placeholder: _angular_core.InputSignal<string>;
177
+ id: _angular_core.InputSignal<string>;
176
178
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
177
179
  busca: _angular_core.OutputEmitterRef<string>;
178
180
  value: string;
179
181
  disabled: boolean;
180
- onChange: any;
181
- onTouched: any;
182
- writeValue(val: any): void;
183
- registerOnChange(fn: any): void;
184
- registerOnTouched(fn: any): void;
182
+ onChange: (value: string) => void;
183
+ onTouched: () => void;
184
+ writeValue(val: string | null): void;
185
+ registerOnChange(fn: (value: string) => void): void;
186
+ registerOnTouched(fn: () => void): void;
185
187
  setDisabledState(isDisabled: boolean): void;
186
- onModelChange(): void;
188
+ onModelChange(value: string): void;
187
189
  onModelTouched(): void;
188
190
  onComplete(): void;
189
191
  onSearch(): void;
192
+ validate(control: AbstractControl): ValidationErrors | null;
190
193
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcCepFieldComponent, never>;
191
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCepFieldComponent, "pjc-cep-field", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "labelVariant": { "alias": "labelVariant"; "required": false; "isSignal": true; }; }, { "busca": "busca"; }, never, never, true, never>;
194
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCepFieldComponent, "pjc-cep-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; }; }, { "busca": "busca"; }, never, never, true, never>;
192
195
  }
193
196
 
194
197
  interface PjcUf {
@@ -222,11 +225,11 @@ declare class PjcEmailFieldComponent implements ControlValueAccessor, Validator
222
225
  id: _angular_core.InputSignal<string>;
223
226
  labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
224
227
  value: string;
225
- onChange: any;
226
- onTouched: any;
227
- writeValue(val: any): void;
228
- registerOnChange(fn: any): void;
229
- 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;
230
233
  validate(control: AbstractControl): ValidationErrors | null;
231
234
  onInput(event: Event): void;
232
235
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcEmailFieldComponent, never>;
@@ -246,7 +249,8 @@ declare class PjcValidators {
246
249
  static hora(): ValidatorFn;
247
250
  static placaVeiculo(): ValidatorFn;
248
251
  static email(): ValidatorFn;
252
+ static cep(): ValidatorFn;
249
253
  }
250
254
 
251
- export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcNomeFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcValidators };
255
+ export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
252
256
  export type { PjcUf };