@openremote/or-dashboard-builder 1.6.4 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.js +3 -3
- package/dist/umd/index.orbundle.js +4 -4
- package/lib/settings/gateway-settings.js +1 -1
- package/lib/settings/gateway-settings.js.map +1 -1
- package/lib/util/widget-config.d.ts +13 -0
- package/lib/widgets/attribute-input-widget.d.ts +2 -3
- package/lib/widgets/attribute-input-widget.js.map +1 -1
- package/lib/widgets/chart-widget.d.ts +2 -3
- package/lib/widgets/chart-widget.js.map +1 -1
- package/lib/widgets/gateway-widget.d.ts +2 -2
- package/lib/widgets/gateway-widget.js +2 -2
- package/lib/widgets/gateway-widget.js.map +1 -1
- package/lib/widgets/gauge-widget.d.ts +2 -3
- package/lib/widgets/gauge-widget.js.map +1 -1
- package/lib/widgets/image-widget.d.ts +2 -3
- package/lib/widgets/image-widget.js.map +1 -1
- package/lib/widgets/kpi-widget.d.ts +2 -3
- package/lib/widgets/kpi-widget.js.map +1 -1
- package/lib/widgets/map-widget.d.ts +3 -4
- package/lib/widgets/map-widget.js.map +1 -1
- package/package.json +10 -10
- package/src/settings/gateway-settings.ts +2 -1
- package/src/util/widget-config.ts +15 -0
- package/src/widgets/attribute-input-widget.ts +5 -6
- package/src/widgets/chart-widget.ts +2 -3
- package/src/widgets/gateway-widget.ts +13 -10
- package/src/widgets/gauge-widget.ts +2 -3
- package/src/widgets/image-widget.ts +2 -3
- package/src/widgets/kpi-widget.ts +2 -3
- package/src/widgets/map-widget.ts +3 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {html, css, TemplateResult} from "lit";
|
|
2
2
|
import {customElement, state} from "lit/decorators.js";
|
|
3
3
|
import {OrAssetWidget} from "../util/or-asset-widget";
|
|
4
|
-
import {
|
|
4
|
+
import {AssetWidgetConfig} from "../util/widget-config";
|
|
5
5
|
import {Attribute, AttributeRef} from "@openremote/model";
|
|
6
6
|
import {OrWidget, WidgetManifest} from "../util/or-widget";
|
|
7
7
|
import {WidgetSettings} from "../util/widget-settings";
|
|
@@ -9,8 +9,7 @@ import {GaugeSettings} from "../settings/gauge-settings";
|
|
|
9
9
|
import {when} from "lit/directives/when.js";
|
|
10
10
|
import "@openremote/or-gauge";
|
|
11
11
|
|
|
12
|
-
export interface GaugeWidgetConfig extends
|
|
13
|
-
attributeRefs: AttributeRef[];
|
|
12
|
+
export interface GaugeWidgetConfig extends AssetWidgetConfig {
|
|
14
13
|
thresholds: [number, string][];
|
|
15
14
|
decimals: number;
|
|
16
15
|
min: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {AssetWidgetConfig} from "../util/widget-config";
|
|
2
2
|
import {AssetModelUtil, Attribute, AttributeRef, WellknownValueTypes} from "@openremote/model";
|
|
3
3
|
import {OrWidget, WidgetManifest} from "../util/or-widget";
|
|
4
4
|
import { customElement } from "lit/decorators.js";
|
|
@@ -53,8 +53,7 @@ export interface ImageAssetMarker {
|
|
|
53
53
|
coordinates: [number, number]
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export interface ImageWidgetConfig extends
|
|
57
|
-
attributeRefs: AttributeRef[];
|
|
56
|
+
export interface ImageWidgetConfig extends AssetWidgetConfig {
|
|
58
57
|
markers: ImageAssetMarker[];
|
|
59
58
|
showTimestampControls: boolean;
|
|
60
59
|
imagePath: string;
|
|
@@ -3,14 +3,13 @@ import { when } from "lit/directives/when.js";
|
|
|
3
3
|
import {OrAssetWidget} from "../util/or-asset-widget";
|
|
4
4
|
import {OrWidget, WidgetManifest} from "../util/or-widget";
|
|
5
5
|
import {WidgetSettings} from "../util/widget-settings";
|
|
6
|
-
import {
|
|
6
|
+
import {AssetWidgetConfig} from "../util/widget-config";
|
|
7
7
|
import {Attribute, AttributeRef} from "@openremote/model";
|
|
8
8
|
import {html, TemplateResult } from "lit";
|
|
9
9
|
import {KpiSettings} from "../settings/kpi-settings";
|
|
10
10
|
import "@openremote/or-attribute-card";
|
|
11
11
|
|
|
12
|
-
export interface KpiWidgetConfig extends
|
|
13
|
-
attributeRefs: AttributeRef[];
|
|
12
|
+
export interface KpiWidgetConfig extends AssetWidgetConfig {
|
|
14
13
|
period?: 'year' | 'month' | 'week' | 'day' | 'hour';
|
|
15
14
|
decimals: number;
|
|
16
15
|
deltaFormat: "absolute" | "percentage";
|
|
@@ -4,8 +4,8 @@ import {OrAssetWidget} from "../util/or-asset-widget";
|
|
|
4
4
|
import {OrWidget, WidgetManifest} from "../util/or-widget";
|
|
5
5
|
import {WidgetSettings} from "../util/widget-settings";
|
|
6
6
|
import {MapSettings} from "../settings/map-settings";
|
|
7
|
-
import {
|
|
8
|
-
import {Asset, AssetDescriptor, Attribute,
|
|
7
|
+
import {AssetWidgetConfig} from "../util/widget-config";
|
|
8
|
+
import {Asset, AssetDescriptor, Attribute, GeoJSONPoint, WellknownAttributes, WellknownMetaItems} from "@openremote/model";
|
|
9
9
|
import {
|
|
10
10
|
LngLatLike,
|
|
11
11
|
AttributeMarkerColours,
|
|
@@ -18,9 +18,7 @@ import manager, {Util} from "@openremote/core";
|
|
|
18
18
|
import { showSnackbar } from "@openremote/or-mwc-components/or-mwc-snackbar";
|
|
19
19
|
import "@openremote/or-map";
|
|
20
20
|
|
|
21
|
-
export interface MapWidgetConfig extends
|
|
22
|
-
// General values
|
|
23
|
-
attributeRefs: AttributeRef[];
|
|
21
|
+
export interface MapWidgetConfig extends AssetWidgetConfig {
|
|
24
22
|
// Map related values
|
|
25
23
|
zoom?: number,
|
|
26
24
|
center?: LngLatLike,
|