pjc-fields 0.0.24 → 0.0.29
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 +145 -5
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +32 -2
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -126,8 +126,11 @@ declare class PjcDataFieldComponent implements ControlValueAccessor, Validator,
|
|
|
126
126
|
maxDate: _angular_core.InputSignal<Date | undefined>;
|
|
127
127
|
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
128
128
|
readonly: _angular_core.InputSignal<boolean>;
|
|
129
|
+
mostrarAniversario: _angular_core.InputSignal<boolean>;
|
|
129
130
|
value: Date | null;
|
|
130
131
|
disabled: boolean;
|
|
132
|
+
valueSignal: _angular_core.WritableSignal<Date | null>;
|
|
133
|
+
age: _angular_core.Signal<number | null>;
|
|
131
134
|
onChange: (value: Date | null) => void;
|
|
132
135
|
onTouched: () => void;
|
|
133
136
|
private el;
|
|
@@ -140,9 +143,36 @@ declare class PjcDataFieldComponent implements ControlValueAccessor, Validator,
|
|
|
140
143
|
registerOnTouched(fn: () => void): void;
|
|
141
144
|
setDisabledState(isDisabled: boolean): void;
|
|
142
145
|
onValueChange(date: Date | null): void;
|
|
146
|
+
private calculateAge;
|
|
143
147
|
validate(_control: AbstractControl): ValidationErrors | null;
|
|
144
148
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcDataFieldComponent, never>;
|
|
145
|
-
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; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
149
|
+
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; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "mostrarAniversario": { "alias": "mostrarAniversario"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
declare class PjcDataHoraFieldComponent implements ControlValueAccessor, Validator, AfterViewInit, OnDestroy {
|
|
153
|
+
label: _angular_core.InputSignal<string>;
|
|
154
|
+
id: _angular_core.InputSignal<string>;
|
|
155
|
+
minDate: _angular_core.InputSignal<Date | undefined>;
|
|
156
|
+
maxDate: _angular_core.InputSignal<Date | undefined>;
|
|
157
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
158
|
+
readonly: _angular_core.InputSignal<boolean>;
|
|
159
|
+
value: Date | null;
|
|
160
|
+
disabled: boolean;
|
|
161
|
+
onChange: (value: Date | null) => void;
|
|
162
|
+
onTouched: () => void;
|
|
163
|
+
private el;
|
|
164
|
+
private isFormatting;
|
|
165
|
+
ngAfterViewInit(): void;
|
|
166
|
+
ngOnDestroy(): void;
|
|
167
|
+
private handleDateInput;
|
|
168
|
+
writeValue(val: Date | null): void;
|
|
169
|
+
registerOnChange(fn: (value: Date | null) => void): void;
|
|
170
|
+
registerOnTouched(fn: () => void): void;
|
|
171
|
+
setDisabledState(isDisabled: boolean): void;
|
|
172
|
+
onValueChange(date: Date | null): void;
|
|
173
|
+
validate(_control: AbstractControl): ValidationErrors | null;
|
|
174
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcDataHoraFieldComponent, never>;
|
|
175
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcDataHoraFieldComponent, "pjc-data-hora-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; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
146
176
|
}
|
|
147
177
|
|
|
148
178
|
declare class PjcHoraFieldComponent implements ControlValueAccessor, Validator {
|
|
@@ -470,5 +500,5 @@ declare class PjcValidators {
|
|
|
470
500
|
static decimalMenorIgualZero(): ValidatorFn;
|
|
471
501
|
}
|
|
472
502
|
|
|
473
|
-
export { PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
|
|
503
|
+
export { PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcDataHoraFieldComponent, PjcEmailFieldComponent, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
|
|
474
504
|
export type { PjcUf };
|