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.
- package/fesm2022/pjc-fields.mjs +129 -111
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +80 -76
package/types/pjc-fields.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
-
import
|
|
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:
|
|
62
|
-
onTouched:
|
|
63
|
-
writeValue(val:
|
|
64
|
-
registerOnChange(fn:
|
|
65
|
-
registerOnTouched(fn:
|
|
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:
|
|
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:
|
|
83
|
-
onTouched:
|
|
84
|
-
writeValue(val:
|
|
85
|
-
registerOnChange(fn:
|
|
86
|
-
registerOnTouched(fn:
|
|
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:
|
|
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:
|
|
102
|
-
onTouched:
|
|
103
|
-
writeValue(val:
|
|
104
|
-
registerOnChange(fn:
|
|
105
|
-
registerOnTouched(fn:
|
|
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:
|
|
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
|
|
120
|
-
maxDate
|
|
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:
|
|
124
|
-
onTouched:
|
|
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:
|
|
132
|
-
registerOnTouched(fn:
|
|
130
|
+
registerOnChange(fn: (value: Date | null) => void): void;
|
|
131
|
+
registerOnTouched(fn: () => void): void;
|
|
133
132
|
onValueChange(date: Date | null): void;
|
|
134
|
-
validate(_control:
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
|
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:
|
|
162
|
-
onTouched:
|
|
163
|
-
writeValue(val:
|
|
164
|
-
registerOnChange(fn:
|
|
165
|
-
registerOnTouched(fn:
|
|
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<
|
|
168
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
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:
|
|
181
|
-
onTouched:
|
|
182
|
-
writeValue(val:
|
|
183
|
-
registerOnChange(fn:
|
|
184
|
-
registerOnTouched(fn:
|
|
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:
|
|
226
|
-
onTouched:
|
|
227
|
-
writeValue(val:
|
|
228
|
-
registerOnChange(fn:
|
|
229
|
-
registerOnTouched(fn:
|
|
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,
|
|
255
|
+
export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
|
|
252
256
|
export type { PjcUf };
|