pjc-fields 0.0.4 → 0.0.6
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 +199 -70
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +102 -60
package/types/pjc-fields.d.ts
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as _angular_forms from '@angular/forms';
|
|
4
|
-
import { ControlValueAccessor, Validator,
|
|
4
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, FormControl, ValidatorFn } from '@angular/forms';
|
|
5
5
|
|
|
6
6
|
declare class PjcFields {
|
|
7
|
-
static ɵfac:
|
|
8
|
-
static ɵcmp:
|
|
7
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcFields, never>;
|
|
8
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcFields, "lib-pjc-fields", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare class PjcCpfFieldComponent implements ControlValueAccessor, Validator {
|
|
12
|
-
label: string
|
|
13
|
-
hint: string
|
|
14
|
-
placeholder: string
|
|
15
|
-
id: string
|
|
16
|
-
labelVariant:
|
|
12
|
+
label: _angular_core.InputSignal<string>;
|
|
13
|
+
hint: _angular_core.InputSignal<string>;
|
|
14
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
15
|
+
id: _angular_core.InputSignal<string>;
|
|
16
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
17
17
|
value: string;
|
|
18
18
|
disabled: boolean;
|
|
19
|
-
onChange:
|
|
20
|
-
onTouched:
|
|
21
|
-
writeValue(val:
|
|
22
|
-
registerOnChange(fn:
|
|
23
|
-
registerOnTouched(fn:
|
|
19
|
+
onChange: (value: string) => void;
|
|
20
|
+
onTouched: () => void;
|
|
21
|
+
writeValue(val: string | null): void;
|
|
22
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
23
|
+
registerOnTouched(fn: () => void): void;
|
|
24
24
|
setDisabledState(isDisabled: boolean): void;
|
|
25
|
-
onModelChange(): void;
|
|
25
|
+
onModelChange(value: string): void;
|
|
26
26
|
onModelTouched(): void;
|
|
27
|
-
validate(control:
|
|
28
|
-
static ɵfac:
|
|
29
|
-
static ɵcmp:
|
|
27
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcCpfFieldComponent, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCpfFieldComponent, "pjc-cpf-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; }; }, {}, never, never, true, never>;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
declare class PjcCnpjFieldComponent implements ControlValueAccessor, Validator {
|
|
33
|
-
label: string
|
|
34
|
-
hint: string
|
|
35
|
-
placeholder: string
|
|
36
|
-
id: string
|
|
37
|
-
labelVariant:
|
|
33
|
+
label: _angular_core.InputSignal<string>;
|
|
34
|
+
hint: _angular_core.InputSignal<string>;
|
|
35
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
36
|
+
id: _angular_core.InputSignal<string>;
|
|
37
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
38
38
|
value: string;
|
|
39
39
|
disabled: boolean;
|
|
40
|
-
onChange:
|
|
41
|
-
onTouched:
|
|
42
|
-
writeValue(val:
|
|
43
|
-
registerOnChange(fn:
|
|
44
|
-
registerOnTouched(fn:
|
|
40
|
+
onChange: (value: string) => void;
|
|
41
|
+
onTouched: () => void;
|
|
42
|
+
writeValue(val: string | null): void;
|
|
43
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
44
|
+
registerOnTouched(fn: () => void): void;
|
|
45
45
|
setDisabledState(isDisabled: boolean): void;
|
|
46
|
-
onModelChange(
|
|
46
|
+
onModelChange(value: string): void;
|
|
47
47
|
onModelTouched(): void;
|
|
48
|
-
validate(control:
|
|
49
|
-
static ɵfac:
|
|
50
|
-
static ɵcmp:
|
|
48
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
49
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcCnpjFieldComponent, never>;
|
|
50
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCnpjFieldComponent, "pjc-cnpj-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; }; }, {}, never, never, true, never>;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
declare class PjcCpfCnpjFieldComponent implements ControlValueAccessor, Validator {
|
|
54
54
|
label: string;
|
|
55
55
|
id: string;
|
|
56
|
-
labelVariant:
|
|
56
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
57
57
|
displayValue: string;
|
|
58
58
|
placeholder: string;
|
|
59
59
|
disabled: boolean;
|
|
@@ -69,15 +69,15 @@ declare class PjcCpfCnpjFieldComponent implements ControlValueAccessor, Validato
|
|
|
69
69
|
private formatValue;
|
|
70
70
|
private updatePlaceholder;
|
|
71
71
|
validate(control: FormControl): _angular_forms.ValidationErrors | null;
|
|
72
|
-
static ɵfac:
|
|
73
|
-
static ɵcmp:
|
|
72
|
+
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>;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
declare class PjcPlacaFieldComponent implements ControlValueAccessor, Validator {
|
|
77
77
|
label: string;
|
|
78
78
|
placeholder: string;
|
|
79
79
|
id: string;
|
|
80
|
-
labelVariant:
|
|
80
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
81
81
|
value: string;
|
|
82
82
|
onChange: any;
|
|
83
83
|
onTouched: any;
|
|
@@ -86,14 +86,14 @@ declare class PjcPlacaFieldComponent implements ControlValueAccessor, Validator
|
|
|
86
86
|
registerOnTouched(fn: any): void;
|
|
87
87
|
onModelChange(): void;
|
|
88
88
|
validate(control: FormControl): _angular_forms.ValidationErrors | null;
|
|
89
|
-
static ɵfac:
|
|
90
|
-
static ɵcmp:
|
|
89
|
+
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>;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
declare class PjcTelefoneFieldComponent implements ControlValueAccessor, Validator {
|
|
94
94
|
label: string;
|
|
95
95
|
id: string;
|
|
96
|
-
labelVariant:
|
|
96
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
97
97
|
displayValue: string;
|
|
98
98
|
placeholder: string;
|
|
99
99
|
disabled: boolean;
|
|
@@ -109,8 +109,8 @@ declare class PjcTelefoneFieldComponent implements ControlValueAccessor, Validat
|
|
|
109
109
|
private formatValue;
|
|
110
110
|
private updatePlaceholder;
|
|
111
111
|
validate(control: FormControl): _angular_forms.ValidationErrors | null;
|
|
112
|
-
static ɵfac:
|
|
113
|
-
static ɵcmp:
|
|
112
|
+
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>;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
declare class PjcDataFieldComponent implements ControlValueAccessor, Validator, AfterViewInit, OnDestroy {
|
|
@@ -118,7 +118,7 @@ declare class PjcDataFieldComponent implements ControlValueAccessor, Validator,
|
|
|
118
118
|
id: string;
|
|
119
119
|
minDate?: Date;
|
|
120
120
|
maxDate?: Date;
|
|
121
|
-
labelVariant:
|
|
121
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
122
122
|
value: Date | null;
|
|
123
123
|
onChange: any;
|
|
124
124
|
onTouched: any;
|
|
@@ -132,14 +132,14 @@ declare class PjcDataFieldComponent implements ControlValueAccessor, Validator,
|
|
|
132
132
|
registerOnTouched(fn: any): void;
|
|
133
133
|
onValueChange(date: Date | null): void;
|
|
134
134
|
validate(_control: FormControl): ValidationErrors | null;
|
|
135
|
-
static ɵfac:
|
|
136
|
-
static ɵcmp:
|
|
135
|
+
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>;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
declare class PjcHoraFieldComponent implements ControlValueAccessor, Validator {
|
|
140
|
-
readonly label:
|
|
141
|
-
readonly id:
|
|
142
|
-
readonly labelVariant:
|
|
140
|
+
readonly label: _angular_core.InputSignal<string>;
|
|
141
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
142
|
+
readonly labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
143
143
|
value: string;
|
|
144
144
|
onChange: any;
|
|
145
145
|
onTouched: any;
|
|
@@ -148,15 +148,15 @@ declare class PjcHoraFieldComponent implements ControlValueAccessor, Validator {
|
|
|
148
148
|
registerOnTouched(fn: any): void;
|
|
149
149
|
onInput(): void;
|
|
150
150
|
validate(control: FormControl): _angular_forms.ValidationErrors | null;
|
|
151
|
-
static ɵfac:
|
|
152
|
-
static ɵcmp:
|
|
151
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcHoraFieldComponent, never>;
|
|
152
|
+
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
153
|
}
|
|
154
154
|
|
|
155
155
|
declare class PjcNomeFieldComponent implements ControlValueAccessor {
|
|
156
156
|
label: string;
|
|
157
157
|
placeholder: string;
|
|
158
158
|
id: string;
|
|
159
|
-
labelVariant:
|
|
159
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
160
160
|
value: string;
|
|
161
161
|
onChange: any;
|
|
162
162
|
onTouched: any;
|
|
@@ -164,17 +164,17 @@ declare class PjcNomeFieldComponent implements ControlValueAccessor {
|
|
|
164
164
|
registerOnChange(fn: any): void;
|
|
165
165
|
registerOnTouched(fn: any): void;
|
|
166
166
|
onInput(event: Event): void;
|
|
167
|
-
static ɵfac:
|
|
168
|
-
static ɵcmp:
|
|
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
169
|
}
|
|
170
170
|
|
|
171
|
-
declare class PjcCepFieldComponent implements ControlValueAccessor
|
|
171
|
+
declare class PjcCepFieldComponent implements ControlValueAccessor {
|
|
172
172
|
label: string;
|
|
173
173
|
hint: string;
|
|
174
174
|
placeholder: string;
|
|
175
175
|
id: string;
|
|
176
|
-
labelVariant:
|
|
177
|
-
busca:
|
|
176
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
177
|
+
busca: _angular_core.OutputEmitterRef<string>;
|
|
178
178
|
value: string;
|
|
179
179
|
disabled: boolean;
|
|
180
180
|
onChange: any;
|
|
@@ -187,9 +187,50 @@ declare class PjcCepFieldComponent implements ControlValueAccessor, Validator {
|
|
|
187
187
|
onModelTouched(): void;
|
|
188
188
|
onComplete(): void;
|
|
189
189
|
onSearch(): void;
|
|
190
|
-
|
|
191
|
-
static
|
|
192
|
-
|
|
190
|
+
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>;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
interface PjcUf {
|
|
195
|
+
uf: string;
|
|
196
|
+
descricao: string;
|
|
197
|
+
}
|
|
198
|
+
declare class PjcUfFieldComponent implements ControlValueAccessor {
|
|
199
|
+
label: _angular_core.InputSignal<string>;
|
|
200
|
+
hint: _angular_core.InputSignal<string>;
|
|
201
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
202
|
+
id: _angular_core.InputSignal<string>;
|
|
203
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
204
|
+
readonly estados: PjcUf[];
|
|
205
|
+
value: PjcUf | null;
|
|
206
|
+
disabled: boolean;
|
|
207
|
+
onChange: (value: PjcUf | null) => void;
|
|
208
|
+
onTouched: () => void;
|
|
209
|
+
writeValue(val: PjcUf | null): void;
|
|
210
|
+
registerOnChange(fn: (value: PjcUf | null) => void): void;
|
|
211
|
+
registerOnTouched(fn: () => void): void;
|
|
212
|
+
setDisabledState(isDisabled: boolean): void;
|
|
213
|
+
onModelChange(value: PjcUf | null): void;
|
|
214
|
+
onModelTouched(): void;
|
|
215
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcUfFieldComponent, never>;
|
|
216
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcUfFieldComponent, "pjc-uf-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; }; }, {}, never, never, true, never>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
declare class PjcEmailFieldComponent implements ControlValueAccessor, Validator {
|
|
220
|
+
label: _angular_core.InputSignal<string>;
|
|
221
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
222
|
+
id: _angular_core.InputSignal<string>;
|
|
223
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
224
|
+
value: string;
|
|
225
|
+
onChange: any;
|
|
226
|
+
onTouched: any;
|
|
227
|
+
writeValue(val: any): void;
|
|
228
|
+
registerOnChange(fn: any): void;
|
|
229
|
+
registerOnTouched(fn: any): void;
|
|
230
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
231
|
+
onInput(event: Event): void;
|
|
232
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcEmailFieldComponent, never>;
|
|
233
|
+
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>;
|
|
193
234
|
}
|
|
194
235
|
|
|
195
236
|
declare class PjcValidators {
|
|
@@ -203,8 +244,9 @@ declare class PjcValidators {
|
|
|
203
244
|
static cpfCnpj(): ValidatorFn;
|
|
204
245
|
static telefone(): ValidatorFn;
|
|
205
246
|
static hora(): ValidatorFn;
|
|
206
|
-
static cep(): ValidatorFn;
|
|
207
247
|
static placaVeiculo(): ValidatorFn;
|
|
248
|
+
static email(): ValidatorFn;
|
|
208
249
|
}
|
|
209
250
|
|
|
210
|
-
export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcFields, PjcHoraFieldComponent, PjcNomeFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcValidators };
|
|
251
|
+
export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcNomeFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcValidators };
|
|
252
|
+
export type { PjcUf };
|