[ADF-5432] component template and code fixes after testing Angular strict mode (#7118)

* process list fixes

* template error fixes

* template and code fixes

* bug fixes in templates and types

* bugs, bugs are everywhere

* fix test

* test fixes

* enable strict templates for extensions lib

* enable strict mode for insights lib

* enable strict mode for core lib

* enable strict mode for content lib

* strict mode for process lib

* strict mode for process cloud

* fix demo shell template issues

* fix process cloud types
This commit is contained in:
Denys Vuika
2021-06-22 16:36:06 +01:00
committed by GitHub
parent e2b8557f4b
commit 829805e201
129 changed files with 534 additions and 435 deletions

View File

@@ -16,6 +16,7 @@
*/
import { Injectable, Output, EventEmitter } from '@angular/core';
import { ThemePalette } from '@angular/material/core';
@Injectable({
providedIn: 'root'
@@ -26,12 +27,12 @@ export class HeaderDataService {
show = true;
@Output() hideMenu = new EventEmitter<boolean>();
@Output() color = new EventEmitter<string>();
@Output() color = new EventEmitter<ThemePalette>();
@Output() title = new EventEmitter<string>();
@Output() logo = new EventEmitter<string>();
@Output() redirectUrl = new EventEmitter<string | any[]>();
@Output() tooltip = new EventEmitter<string>();
@Output() position = new EventEmitter<string>();
@Output() position = new EventEmitter<'start' | 'end'>();
@Output() hideSidenav = new EventEmitter<boolean>();
hideMenuButton() {
@@ -39,7 +40,7 @@ export class HeaderDataService {
this.hideMenu.emit(this.show);
}
changeColor(color: string) {
changeColor(color: ThemePalette) {
this.color.emit(color);
}
@@ -60,7 +61,7 @@ export class HeaderDataService {
this.tooltip.emit(tooltip);
}
changePosition(position: string) {
changePosition(position: 'start' | 'end') {
this.position.emit(position);
}