angular update 14.1.2

This commit is contained in:
2022-08-14 23:09:05 +02:00
parent 01fb6ab144
commit 829786cbed
22 changed files with 10448 additions and 10835 deletions

View File

@@ -1,5 +1,5 @@
import {Component, OnInit} from '@angular/core';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {UntypedFormControl, UntypedFormGroup, Validators} from '@angular/forms';
import {Router} from '@angular/router';
import {UserService} from '../../../services/user/user.service';
import {faSignInAlt, faUserPlus} from '@fortawesome/free-solid-svg-icons';
@@ -10,9 +10,9 @@ import {faSignInAlt, faUserPlus} from '@fortawesome/free-solid-svg-icons';
styleUrls: ['./login.component.less'],
})
export class LoginComponent implements OnInit {
public form: FormGroup = new FormGroup({
user: new FormControl(null, [Validators.required, Validators.email]),
pass: new FormControl(null, [Validators.required]),
public form: UntypedFormGroup = new UntypedFormGroup({
user: new UntypedFormControl(null, [Validators.required, Validators.email]),
pass: new UntypedFormControl(null, [Validators.required]),
});
public errorMessage = '';
public faSignIn = faSignInAlt;

View File

@@ -1,5 +1,5 @@
import {Component, OnInit} from '@angular/core';
import {FormBuilder, FormControl, FormGroup, Validators} from '@angular/forms';
import {UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators} from '@angular/forms';
import {UserService} from '../../../services/user/user.service';
import {faUserPlus} from '@fortawesome/free-solid-svg-icons';
@@ -9,14 +9,14 @@ import {faUserPlus} from '@fortawesome/free-solid-svg-icons';
styleUrls: ['./new.component.less'],
})
export class NewComponent implements OnInit {
public form: FormGroup = this.fb.group({
email: new FormControl(null, [Validators.required, Validators.email]),
name: new FormControl(null, [Validators.required]),
password: new FormControl(null, [Validators.required, Validators.minLength(6)]),
public form: UntypedFormGroup = this.fb.group({
email: new UntypedFormControl(null, [Validators.required, Validators.email]),
name: new UntypedFormControl(null, [Validators.required]),
password: new UntypedFormControl(null, [Validators.required, Validators.minLength(6)]),
});
public faNewUser = faUserPlus;
public constructor(private fb: FormBuilder, private userService: UserService) {}
public constructor(private fb: UntypedFormBuilder, private userService: UserService) {}
public ngOnInit(): void {
this.form.reset();

View File

@@ -1,5 +1,5 @@
import {Component, OnInit} from '@angular/core';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {UntypedFormControl, UntypedFormGroup, Validators} from '@angular/forms';
import {Router} from '@angular/router';
import {UserService} from '../../../services/user/user.service';
import {faWindowRestore} from '@fortawesome/free-solid-svg-icons';
@@ -10,8 +10,8 @@ import {faWindowRestore} from '@fortawesome/free-solid-svg-icons';
styleUrls: ['./password.component.less'],
})
export class PasswordComponent implements OnInit {
public form: FormGroup = new FormGroup({
user: new FormControl(null, [Validators.required, Validators.email]),
public form: UntypedFormGroup = new UntypedFormGroup({
user: new UntypedFormControl(null, [Validators.required, Validators.email]),
});
public errorMessage = '';