101108: Automatic ng update @angular/core@14

This commit is contained in:
Kristof De Langhe
2023-04-11 16:18:20 +02:00
parent 4e7cad9e17
commit d21ce38011
95 changed files with 3842 additions and 3701 deletions

View File

@@ -1,5 +1,5 @@
import { Component, forwardRef, Input, OnInit } from '@angular/core';
import { FormControl, FormGroup, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
import { UntypedFormControl, UntypedFormGroup, NG_VALUE_ACCESSOR, Validators } from '@angular/forms';
import { ObjectUpdatesService } from '../../../core/data/object-updates/object-updates.service';
import { MetadatumViewModel } from '../../../core/shared/metadata.models';
import { MetadataFieldValidator } from '../../utils/metadatafield-validator.directive';
@@ -26,7 +26,7 @@ import { InputSuggestion } from '../input-suggestions.model';
*/
export class ValidationSuggestionsComponent extends InputSuggestionsComponent implements OnInit {
form: FormGroup;
form: UntypedFormGroup;
/**
* The current url of this page
@@ -52,8 +52,8 @@ export class ValidationSuggestionsComponent extends InputSuggestionsComponent im
}
ngOnInit() {
this.form = new FormGroup({
metadataNameField: new FormControl(this._value, {
this.form = new UntypedFormGroup({
metadataNameField: new UntypedFormControl(this._value, {
asyncValidators: [this.metadataFieldValidator.validate.bind(this.metadataFieldValidator)],
validators: [Validators.required]
})