|
|
@ -75,6 +75,7 @@ import { DialogService } from '@core/services/dialog.service'; |
|
|
import { CustomDialogService } from '@home/components/widget/dialog/custom-dialog.service'; |
|
|
import { CustomDialogService } from '@home/components/widget/dialog/custom-dialog.service'; |
|
|
import { AuthService } from '@core/auth/auth.service'; |
|
|
import { AuthService } from '@core/auth/auth.service'; |
|
|
import { ResourceService } from '@core/http/resource.service'; |
|
|
import { ResourceService } from '@core/http/resource.service'; |
|
|
|
|
|
import { TelemetryWebsocketService } from '@core/ws/telemetry-websocket.service'; |
|
|
import { DatePipe } from '@angular/common'; |
|
|
import { DatePipe } from '@angular/common'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
import { PageLink, TimePageLink } from '@shared/models/page/page-link'; |
|
|
import { PageLink, TimePageLink } from '@shared/models/page/page-link'; |
|
|
@ -87,6 +88,7 @@ import * as RxJSOperators from 'rxjs/operators'; |
|
|
import { TbPopoverComponent } from '@shared/components/popover.component'; |
|
|
import { TbPopoverComponent } from '@shared/components/popover.component'; |
|
|
import { EntityId } from '@shared/models/id/entity-id'; |
|
|
import { EntityId } from '@shared/models/id/entity-id'; |
|
|
import { AlarmQuery, AlarmSearchStatus, AlarmStatus} from '@app/shared/models/alarm.models'; |
|
|
import { AlarmQuery, AlarmSearchStatus, AlarmStatus} from '@app/shared/models/alarm.models'; |
|
|
|
|
|
import { TelemetrySubscriber } from '@app/shared/public-api'; |
|
|
|
|
|
|
|
|
export interface IWidgetAction { |
|
|
export interface IWidgetAction { |
|
|
name: string; |
|
|
name: string; |
|
|
@ -177,6 +179,8 @@ export class WidgetContext { |
|
|
dialogs: DialogService; |
|
|
dialogs: DialogService; |
|
|
customDialog: CustomDialogService; |
|
|
customDialog: CustomDialogService; |
|
|
resourceService: ResourceService; |
|
|
resourceService: ResourceService; |
|
|
|
|
|
telemetryWsService: TelemetryWebsocketService; |
|
|
|
|
|
telemetrySubscribers?: TelemetrySubscriber[]; |
|
|
date: DatePipe; |
|
|
date: DatePipe; |
|
|
translate: TranslateService; |
|
|
translate: TranslateService; |
|
|
http: HttpClient; |
|
|
http: HttpClient; |
|
|
|