From 4813e1353cb363f24908c32e0304fe0bc1b280eb Mon Sep 17 00:00:00 2001 From: Pavel Zhdanovich Date: Sun, 17 Oct 2021 04:15:43 +0300 Subject: [PATCH] feat: Enabled Strict Templates --- src/app/@core/data/traffic-list.ts | 2 +- src/app/@core/mock/traffic-list.service.ts | 4 ++-- .../components/search-input/search-input.component.ts | 6 +++--- src/app/pages/dashboard/dashboard.component.ts | 2 +- .../dashboard/rooms/player/player.component.html | 4 ++-- .../temperature-dragger.component.ts | 11 +++++++---- .../chart-panel-header.component.ts | 3 ++- .../country-orders/country-orders.component.ts | 2 +- .../front-side/traffic-front-card.component.ts | 2 +- .../traffic-reveal-card.component.ts | 2 +- .../visitors-analytics.component.ts | 3 ++- .../visitors-statistics.component.ts | 3 ++- .../nebular-select/nebular-select.component.html | 9 ++++++++- .../spinner-in-tabs/spinner-in-tabs.component.html | 2 +- tsconfig.json | 7 +++++++ 15 files changed, 41 insertions(+), 21 deletions(-) diff --git a/src/app/@core/data/traffic-list.ts b/src/app/@core/data/traffic-list.ts index aee4a8b4..56f86148 100644 --- a/src/app/@core/data/traffic-list.ts +++ b/src/app/@core/data/traffic-list.ts @@ -16,5 +16,5 @@ export interface TrafficList { } export abstract class TrafficListData { - abstract getTrafficListData(period: string): Observable; + abstract getTrafficListData(period: string): Observable; } diff --git a/src/app/@core/mock/traffic-list.service.ts b/src/app/@core/mock/traffic-list.service.ts index 369aa331..b25453a4 100644 --- a/src/app/@core/mock/traffic-list.service.ts +++ b/src/app/@core/mock/traffic-list.service.ts @@ -7,7 +7,7 @@ import { TrafficList, TrafficListData } from '../data/traffic-list'; export class TrafficListService extends TrafficListData { private getRandom = (roundTo: number) => Math.round(Math.random() * roundTo); - private data = {}; + private data: Record = {}; constructor(private period: PeriodsService) { super(); @@ -79,7 +79,7 @@ export class TrafficListService extends TrafficListData { }, []); } - getTrafficListData(period: string): Observable { + getTrafficListData(period: string): Observable { return observableOf(this.data[period]); } } diff --git a/src/app/@theme/components/search-input/search-input.component.ts b/src/app/@theme/components/search-input/search-input.component.ts index 8527c65a..69af4dc0 100644 --- a/src/app/@theme/components/search-input/search-input.component.ts +++ b/src/app/@theme/components/search-input/search-input.component.ts @@ -14,7 +14,7 @@ import { Component, ElementRef, EventEmitter, Output, ViewChild } from '@angular `, }) export class SearchInputComponent { - @ViewChild('input', { static: true }) input: ElementRef; + @ViewChild('input', { static: true }) input: ElementRef; @Output() search: EventEmitter = new EventEmitter(); @@ -29,7 +29,7 @@ export class SearchInputComponent { this.isInputShown = false; } - onInput(val: string) { - this.search.emit(val); + onInput(val: Event) { + this.search.emit(this.input.nativeElement.value); } } diff --git a/src/app/pages/dashboard/dashboard.component.ts b/src/app/pages/dashboard/dashboard.component.ts index c359216a..b39b45b7 100644 --- a/src/app/pages/dashboard/dashboard.component.ts +++ b/src/app/pages/dashboard/dashboard.component.ts @@ -40,7 +40,7 @@ export class DashboardComponent implements OnDestroy { type: 'warning', }; - statusCards: string; + statusCards: CardSettings[]; commonStatusCardsSet: CardSettings[] = [ this.lightCard, diff --git a/src/app/pages/dashboard/rooms/player/player.component.html b/src/app/pages/dashboard/rooms/player/player.component.html index 75323a8a..a76bf858 100644 --- a/src/app/pages/dashboard/rooms/player/player.component.html +++ b/src/app/pages/dashboard/rooms/player/player.component.html @@ -12,7 +12,7 @@
+ (input)="setProgress(duration.valueAsNumber)" #duration>
@@ -48,7 +48,7 @@
+ (input)="setVolume(volume.valueAsNumber)" #volume>