2026-04-27 21:53:11 +03:30
|
|
|
import { Component, Input } from '@angular/core';
|
|
|
|
|
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
|
|
|
import { InputComponent } from '../input/input.component';
|
|
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'field-fiscal-code',
|
2026-05-01 19:45:30 +03:30
|
|
|
template: `<app-input
|
|
|
|
|
label="کد مالیاتی"
|
|
|
|
|
[control]="control"
|
|
|
|
|
[name]="name"
|
|
|
|
|
[isLtrInput]="true"
|
|
|
|
|
/>`,
|
2026-04-27 21:53:11 +03:30
|
|
|
imports: [ReactiveFormsModule, InputComponent],
|
|
|
|
|
})
|
2026-05-01 19:45:30 +03:30
|
|
|
export class FiscalIdComponent {
|
2026-04-27 21:53:11 +03:30
|
|
|
@Input({ required: true }) control = new FormControl<string>('');
|
2026-05-01 19:45:30 +03:30
|
|
|
@Input() name = 'fiscal_id';
|
2026-04-27 21:53:11 +03:30
|
|
|
}
|