feat: implement fiscal ID validation; replace fiscal code validator and update related components
This commit is contained in:
@@ -3,11 +3,12 @@ import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
import { InputComponent } from '../input/input.component';
|
||||
|
||||
@Component({
|
||||
selector: 'field-fiscal-code',
|
||||
selector: 'field-fiscal-id',
|
||||
template: `<app-input
|
||||
label="کد مالیاتی"
|
||||
label="شناسه یکتا"
|
||||
[control]="control"
|
||||
[name]="name"
|
||||
[length]="6"
|
||||
[isLtrInput]="true"
|
||||
/>`,
|
||||
imports: [ReactiveFormsModule, InputComponent],
|
||||
|
||||
@@ -10,6 +10,7 @@ import { InputComponent } from '../input/input.component';
|
||||
[name]="name"
|
||||
type="number"
|
||||
[min]="min"
|
||||
[maxLength]="9"
|
||||
/>`,
|
||||
imports: [ReactiveFormsModule, InputComponent],
|
||||
})
|
||||
|
||||
@@ -4,12 +4,7 @@ import { InputComponent } from '../input/input.component';
|
||||
|
||||
@Component({
|
||||
selector: 'field-partner-token',
|
||||
template: `<app-input
|
||||
label="توکن پارتنر"
|
||||
[control]="control"
|
||||
[name]="name"
|
||||
[isLtrInput]="true"
|
||||
/>`,
|
||||
template: `<app-input label="توکن" [control]="control" [name]="name" [isLtrInput]="true" />`,
|
||||
imports: [ReactiveFormsModule, InputComponent],
|
||||
})
|
||||
export class PartnerTokenComponent {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { InputComponent } from '../input/input.component';
|
||||
|
||||
@Component({
|
||||
selector: 'field-terminal',
|
||||
template: `<app-input label="پرداخت با پایانه" [control]="control" [name]="name" type="price" />`,
|
||||
template: `<app-input label="پرداخت با پوز" [control]="control" [name]="name" type="price" />`,
|
||||
imports: [ReactiveFormsModule, InputComponent],
|
||||
})
|
||||
export class TerminalComponent {
|
||||
|
||||
Reference in New Issue
Block a user