feat: implement fiscal ID validation; replace fiscal code validator and update related components
This commit is contained in:
@@ -66,6 +66,7 @@ export class InputComponent {
|
||||
@Input() isLtrInput = false;
|
||||
@Input() suffix: string = '';
|
||||
@Input() maxLength?: number;
|
||||
@Input() length?: number;
|
||||
@Input() min?: number;
|
||||
@Input() max?: number;
|
||||
@Input() fixed?: number;
|
||||
@@ -132,6 +133,8 @@ export class InputComponent {
|
||||
}
|
||||
|
||||
get preparedMaxLength(): number | null {
|
||||
const length = this.length || this.maxLength;
|
||||
if (length) return length;
|
||||
switch (this.type) {
|
||||
case 'mobile':
|
||||
return 11;
|
||||
|
||||
Reference in New Issue
Block a user