pjc-fields 0.0.12 → 0.0.13
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 +293 -13
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +72 -1
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -280,6 +280,72 @@ declare class PjcNumeroCartaoFieldComponent implements ControlValueAccessor, Val
|
|
|
280
280
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcNumeroCartaoFieldComponent, "pjc-numero-cartao-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>;
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
declare class PjcRenavamFieldComponent implements ControlValueAccessor, Validator {
|
|
284
|
+
label: _angular_core.InputSignal<string>;
|
|
285
|
+
hint: _angular_core.InputSignal<string>;
|
|
286
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
287
|
+
id: _angular_core.InputSignal<string>;
|
|
288
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
289
|
+
value: string;
|
|
290
|
+
disabled: boolean;
|
|
291
|
+
onChange: (value: string) => void;
|
|
292
|
+
onTouched: () => void;
|
|
293
|
+
writeValue(val: string | null): void;
|
|
294
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
295
|
+
registerOnTouched(fn: () => void): void;
|
|
296
|
+
setDisabledState(isDisabled: boolean): void;
|
|
297
|
+
onModelChange(value: string): void;
|
|
298
|
+
onModelTouched(): void;
|
|
299
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
300
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcRenavamFieldComponent, never>;
|
|
301
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcRenavamFieldComponent, "pjc-renavam-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>;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
declare class PjcChassiFieldComponent implements ControlValueAccessor, Validator {
|
|
305
|
+
label: _angular_core.InputSignal<string>;
|
|
306
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
307
|
+
id: _angular_core.InputSignal<string>;
|
|
308
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
309
|
+
value: string;
|
|
310
|
+
onChange: (value: string) => void;
|
|
311
|
+
onTouched: () => void;
|
|
312
|
+
writeValue(val: string | null): void;
|
|
313
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
314
|
+
registerOnTouched(fn: () => void): void;
|
|
315
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
316
|
+
onInput(event: Event): void;
|
|
317
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcChassiFieldComponent, never>;
|
|
318
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcChassiFieldComponent, "pjc-chassi-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>;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare class PjcChassiInputDirective {
|
|
322
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
323
|
+
onInput(event: Event): void;
|
|
324
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcChassiInputDirective, never>;
|
|
325
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PjcChassiInputDirective, "input[pjcChassi]", never, {}, {}, never, never, true, never>;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare class PjcCnhFieldComponent implements ControlValueAccessor, Validator {
|
|
329
|
+
label: _angular_core.InputSignal<string>;
|
|
330
|
+
hint: _angular_core.InputSignal<string>;
|
|
331
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
332
|
+
id: _angular_core.InputSignal<string>;
|
|
333
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
334
|
+
value: string;
|
|
335
|
+
disabled: boolean;
|
|
336
|
+
onChange: (value: string) => void;
|
|
337
|
+
onTouched: () => void;
|
|
338
|
+
writeValue(val: string | null): void;
|
|
339
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
340
|
+
registerOnTouched(fn: () => void): void;
|
|
341
|
+
setDisabledState(isDisabled: boolean): void;
|
|
342
|
+
onModelChange(value: string): void;
|
|
343
|
+
onModelTouched(): void;
|
|
344
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
345
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcCnhFieldComponent, never>;
|
|
346
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcCnhFieldComponent, "pjc-cnh-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>;
|
|
347
|
+
}
|
|
348
|
+
|
|
283
349
|
declare class PjcValidators {
|
|
284
350
|
static cpf(): ValidatorFn;
|
|
285
351
|
private static validateCpfDigits;
|
|
@@ -295,6 +361,11 @@ declare class PjcValidators {
|
|
|
295
361
|
static email(): ValidatorFn;
|
|
296
362
|
static numeroCartao(): ValidatorFn;
|
|
297
363
|
private static validateLuhn;
|
|
364
|
+
static renavam(): ValidatorFn;
|
|
365
|
+
private static validateRenavam;
|
|
366
|
+
static chassi(): ValidatorFn;
|
|
367
|
+
static cnh(): ValidatorFn;
|
|
368
|
+
private static validateCnh;
|
|
298
369
|
static cep(): ValidatorFn;
|
|
299
370
|
static inteiroMaiorIgualZero(): ValidatorFn;
|
|
300
371
|
static inteiroMaiorZero(): ValidatorFn;
|
|
@@ -306,5 +377,5 @@ declare class PjcValidators {
|
|
|
306
377
|
static inteiroNuloOuMenorIgualZero(): ValidatorFn;
|
|
307
378
|
}
|
|
308
379
|
|
|
309
|
-
export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, PjcNumeroCartaoFieldComponent, PjcPlacaFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
|
|
380
|
+
export { PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, PjcNumeroCartaoFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcValidators };
|
|
310
381
|
export type { PjcUf };
|