Angular 14 upgrade (#2598)

* angular 14

* material 14 and ADF 14

* latest ADF 5.x and theme import fixes

* use latest ADF 5.x

* update build command

* update travis command

* upgrade ngrx to v14

* upgrade flex layout lib

* fix after rebase

* fix after rebase

* upgrade to latest ADF
This commit is contained in:
Denys Vuika
2022-08-25 12:05:00 +01:00
committed by GitHub
parent c60a3b51cf
commit 69cb107dd9
23 changed files with 1825 additions and 1946 deletions

View File

@@ -66,7 +66,7 @@ export class RuleCompositeConditionUiComponent implements ControlValueAccessor,
this.setDisabledState(isReadOnly);
}
private formSubscription = this.form.valueChanges.subscribe((value) => {
private formSubscription = this.form.valueChanges.subscribe((value: any) => {
this.onChange(value);
this.onTouch();
});

View File

@@ -61,7 +61,7 @@ export class RuleSimpleConditionUiComponent implements ControlValueAccessor, OnD
this.setDisabledState(isReadOnly);
}
private formSubscription = this.form.valueChanges.subscribe((value) => {
private formSubscription = this.form.valueChanges.subscribe((value: any) => {
this.onChange(value);
this.onTouch();
});

View File

@@ -24,7 +24,7 @@
*/
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewEncapsulation } from '@angular/core';
import { AbstractControl, FormControl, FormGroup, Validators } from '@angular/forms';
import { AbstractControl, UntypedFormGroup, UntypedFormControl, Validators } from '@angular/forms';
import { Subject } from 'rxjs';
import { distinctUntilChanged, map, takeUntil } from 'rxjs/operators';
import { Rule } from '../model/rule.model';
@@ -79,27 +79,27 @@ export class RuleDetailsUiComponent implements OnInit, OnDestroy {
formValueChanged = new EventEmitter<Partial<Rule>>();
private onDestroy$ = new Subject();
form: FormGroup;
form: UntypedFormGroup;
get name(): FormControl {
return this.form.get('name') as FormControl;
get name(): UntypedFormControl {
return this.form.get('name') as UntypedFormControl;
}
get description(): FormControl {
return this.form.get('description') as FormControl;
get description(): UntypedFormControl {
return this.form.get('description') as UntypedFormControl;
}
get triggers(): FormControl {
return this.form.get('triggers') as FormControl;
get triggers(): UntypedFormControl {
return this.form.get('triggers') as UntypedFormControl;
}
get conditions(): FormControl {
return this.form.get('conditions') as FormControl;
get conditions(): UntypedFormControl {
return this.form.get('conditions') as UntypedFormControl;
}
ngOnInit() {
this.form = new FormGroup({
name: new FormControl(this.value.name || '', Validators.required),
description: new FormControl(this.value.description || ''),
triggers: new FormControl(this.value.triggers || ['inbound'], Validators.required),
conditions: new FormControl(
this.form = new UntypedFormGroup({
name: new UntypedFormControl(this.value.name || '', Validators.required),
description: new UntypedFormControl(this.value.description || ''),
triggers: new UntypedFormControl(this.value.triggers || ['inbound'], Validators.required),
conditions: new UntypedFormControl(
this.value.conditions || {
inverted: false,
booleanMode: 'and',

View File

@@ -3,7 +3,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"target": "es2020",
"declaration": true,
"declarationMap": true,
"inlineSources": true,