Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 1x 1x 1x 1x 1x | import { Component, OnInit, ViewChild } from '@angular/core'; import { NgControl, ReactiveFormsModule } from '@angular/forms'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatInput, MatInputModule } from '@angular/material/input'; import { DynamicFormElementComponent, DynamicFormValidationService } from '@dynamic-forms/core'; import { DynamicFormInputMaskBase, DynamicFormInputMaskDirective } from '@dynamic-forms/core/input-mask'; @Component({ selector: 'mat-dynamic-form-input-mask', templateUrl: './dynamic-form-input-mask.component.html', imports: [ReactiveFormsModule, DynamicFormInputMaskDirective, DynamicFormElementComponent, MatInputModule, MatFormFieldModule], }) export class MatDynamicFormInputMaskComponent extends DynamicFormInputMaskBase implements OnInit { @ViewChild(MatInput, { static: true }) protected _matInput: MatInput; @ViewChild(NgControl, { static: true }) protected _ngControl: NgControl; constructor(protected override validationService: DynamicFormValidationService) { super(validationService); } ngOnInit(): void { this._matInput.ngControl = this._ngControl; this._matInput['_errorStateTracker'].ngControl = this._ngControl; } } |