|
|
@ -160,6 +160,16 @@ export class WidgetSubscription implements IWidgetSubscription { |
|
|
warnOnPageDataOverflow: boolean; |
|
|
warnOnPageDataOverflow: boolean; |
|
|
ignoreDataUpdateOnIntervalTick: boolean; |
|
|
ignoreDataUpdateOnIntervalTick: boolean; |
|
|
|
|
|
|
|
|
|
|
|
get firstDatasource(): Datasource { |
|
|
|
|
|
if (this.type === widgetType.alarm) { |
|
|
|
|
|
return this.alarmSource; |
|
|
|
|
|
} else if (this.datasources?.length) { |
|
|
|
|
|
return this.datasources[0]; |
|
|
|
|
|
} else { |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
datasourcePages: PageData<Datasource>[]; |
|
|
datasourcePages: PageData<Datasource>[]; |
|
|
dataPages: PageData<Array<DatasourceData>>[]; |
|
|
dataPages: PageData<Array<DatasourceData>>[]; |
|
|
entityDataListeners: Array<EntityDataListener>; |
|
|
entityDataListeners: Array<EntityDataListener>; |
|
|
|