pjc-fields 0.0.11 → 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 +449 -13
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +103 -1
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -259,6 +259,93 @@ declare class PjcIntegerFieldComponent implements ControlValueAccessor {
|
|
|
259
259
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PjcIntegerFieldComponent, "pjc-integer-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; }; "prefix": { "alias": "prefix"; "required": false; "isSignal": true; }; "suffix": { "alias": "suffix"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
declare class PjcNumeroCartaoFieldComponent implements ControlValueAccessor, Validator {
|
|
263
|
+
label: _angular_core.InputSignal<string>;
|
|
264
|
+
hint: _angular_core.InputSignal<string>;
|
|
265
|
+
placeholder: _angular_core.InputSignal<string>;
|
|
266
|
+
id: _angular_core.InputSignal<string>;
|
|
267
|
+
labelVariant: _angular_core.InputSignal<"over" | "in" | "on">;
|
|
268
|
+
value: string;
|
|
269
|
+
disabled: boolean;
|
|
270
|
+
onChange: (value: string) => void;
|
|
271
|
+
onTouched: () => void;
|
|
272
|
+
writeValue(val: string | null): void;
|
|
273
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
274
|
+
registerOnTouched(fn: () => void): void;
|
|
275
|
+
setDisabledState(isDisabled: boolean): void;
|
|
276
|
+
onModelChange(value: string): void;
|
|
277
|
+
onModelTouched(): void;
|
|
278
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
279
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PjcNumeroCartaoFieldComponent, never>;
|
|
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
|
+
}
|
|
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
|
+
|
|
262
349
|
declare class PjcValidators {
|
|
263
350
|
static cpf(): ValidatorFn;
|
|
264
351
|
private static validateCpfDigits;
|
|
@@ -272,8 +359,23 @@ declare class PjcValidators {
|
|
|
272
359
|
static hora(): ValidatorFn;
|
|
273
360
|
static placaVeiculo(): ValidatorFn;
|
|
274
361
|
static email(): ValidatorFn;
|
|
362
|
+
static numeroCartao(): ValidatorFn;
|
|
363
|
+
private static validateLuhn;
|
|
364
|
+
static renavam(): ValidatorFn;
|
|
365
|
+
private static validateRenavam;
|
|
366
|
+
static chassi(): ValidatorFn;
|
|
367
|
+
static cnh(): ValidatorFn;
|
|
368
|
+
private static validateCnh;
|
|
275
369
|
static cep(): ValidatorFn;
|
|
370
|
+
static inteiroMaiorIgualZero(): ValidatorFn;
|
|
371
|
+
static inteiroMaiorZero(): ValidatorFn;
|
|
372
|
+
static inteiroMenorZero(): ValidatorFn;
|
|
373
|
+
static inteiroMenorIgualZero(): ValidatorFn;
|
|
374
|
+
static inteiroNuloOuMaiorIgualZero(): ValidatorFn;
|
|
375
|
+
static inteiroNuloOuMaiorZero(): ValidatorFn;
|
|
376
|
+
static inteiroNuloOuMenorZero(): ValidatorFn;
|
|
377
|
+
static inteiroNuloOuMenorIgualZero(): ValidatorFn;
|
|
276
378
|
}
|
|
277
379
|
|
|
278
|
-
export { PjcCepFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcEmailFieldComponent, PjcFields, PjcHoraFieldComponent, PjcIntegerFieldComponent, 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 };
|
|
279
381
|
export type { PjcUf };
|