mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
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:
@@ -4,7 +4,7 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/lib",
|
||||
"declarationMap": true,
|
||||
"target": "es2015",
|
||||
"target": "es2020",
|
||||
"declaration": true,
|
||||
"inlineSources": true,
|
||||
"types": [],
|
||||
|
@@ -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();
|
||||
});
|
||||
|
@@ -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();
|
||||
});
|
||||
|
@@ -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',
|
||||
|
@@ -3,7 +3,7 @@
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/lib",
|
||||
"target": "es2015",
|
||||
"target": "es2020",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"inlineSources": true,
|
||||
|
@@ -25,7 +25,7 @@
|
||||
|
||||
import { Component, ViewEncapsulation, OnInit } from '@angular/core';
|
||||
import { AppConfigService, StorageService, OauthConfigModel } from '@alfresco/adf-core';
|
||||
import { Validators, FormGroup, FormBuilder } from '@angular/forms';
|
||||
import { Validators, UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||
import { Observable } from 'rxjs';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { AppStore, getHeaderColor, getAppName, getUserProfile, SetSettingsParameterAction } from '@alfresco/aca-shared/store';
|
||||
@@ -48,7 +48,7 @@ interface RepositoryConfig {
|
||||
export class SettingsComponent implements OnInit {
|
||||
private defaultPath = '/assets/images/alfresco-logo-white.svg';
|
||||
|
||||
form: FormGroup;
|
||||
form: UntypedFormGroup;
|
||||
|
||||
profile$: Observable<ProfileState>;
|
||||
appName$: Observable<string>;
|
||||
@@ -63,7 +63,7 @@ export class SettingsComponent implements OnInit {
|
||||
private store: Store<AppStore>,
|
||||
private appConfig: AppConfigService,
|
||||
private storage: StorageService,
|
||||
private fb: FormBuilder
|
||||
private fb: UntypedFormBuilder
|
||||
) {
|
||||
this.profile$ = store.select(getUserProfile);
|
||||
this.appName$ = store.select(getAppName);
|
||||
|
@@ -4,7 +4,7 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/lib",
|
||||
"declarationMap": true,
|
||||
"target": "es2015",
|
||||
"target": "es2020",
|
||||
"declaration": true,
|
||||
"inlineSources": true,
|
||||
"types": [],
|
||||
|
5
projects/aca-shared/rules/ng-package.json
Normal file
5
projects/aca-shared/rules/ng-package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"ngPackage": {
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
}
|
5
projects/aca-shared/store/ng-package.json
Normal file
5
projects/aca-shared/store/ng-package.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"ngPackage": {
|
||||
"lib": {
|
||||
"entryFile": "src/public-api.ts"
|
||||
}
|
||||
}
|
||||
}
|
@@ -3,7 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/lib",
|
||||
"declarationMap": true,
|
||||
"target": "es2015",
|
||||
"target": "es2020",
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
|
@@ -3,7 +3,7 @@
|
||||
"compilerOptions": {
|
||||
"outDir": "../../out-tsc/lib",
|
||||
"declarationMap": true,
|
||||
"target": "es2015",
|
||||
"target": "es2020",
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
|
Reference in New Issue
Block a user