@openremote/manager 1.5.0-snapshot.20250422072347 → 1.5.0-snapshot.20250422151242
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/{bundle.7a6750c6ff4b79984a28.js → bundle.6141073e288bdc22cab8.js} +338 -241
- package/dist/{bundle.c4c0a592e52f4368f31b.js → bundle.c676c17ecd6ca6679df7.js} +338 -241
- package/dist/index.html +1 -1
- package/lib/components/configuration/or-conf-map/or-conf-map-card.d.ts +3 -2
- package/lib/components/configuration/or-conf-map/or-conf-map-card.js +187 -173
- package/lib/components/configuration/or-conf-map/or-conf-map-card.js.map +1 -1
- package/lib/components/configuration/or-conf-panel.d.ts +5 -11
- package/lib/components/configuration/or-conf-panel.js +8 -5
- package/lib/components/configuration/or-conf-panel.js.map +1 -1
- package/lib/pages/page-configuration.d.ts +15 -11
- package/lib/pages/page-configuration.js +198 -13
- package/lib/pages/page-configuration.js.map +1 -1
- package/package.json +3 -3
- /package/dist/{bundle.7a6750c6ff4b79984a28.js.LICENSE.txt → bundle.6141073e288bdc22cab8.js.LICENSE.txt} +0 -0
- /package/dist/{bundle.c4c0a592e52f4368f31b.js.LICENSE.txt → bundle.c676c17ecd6ca6679df7.js.LICENSE.txt} +0 -0
package/dist/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
document.addEventListener('WebComponentsReady', function componentsReady() {
|
|
13
13
|
document.removeEventListener('WebComponentsReady', componentsReady, false);
|
|
14
14
|
var script = document.createElement('script');
|
|
15
|
-
script.src = './bundle.
|
|
15
|
+
script.src = './bundle.c676c17ecd6ca6679df7.js';
|
|
16
16
|
var refScript = document.getElementsByTagName('script')[0];
|
|
17
17
|
refScript.parentNode.insertBefore(script, refScript);
|
|
18
18
|
}, false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
1
|
+
import { TemplateResult, LitElement } from "lit";
|
|
2
2
|
import "@openremote/or-components/or-file-uploader";
|
|
3
3
|
import { MapRealmConfig } from "@openremote/model";
|
|
4
4
|
import { LngLat } from "maplibre-gl";
|
|
@@ -15,5 +15,6 @@ export declare class OrConfMapCard extends LitElement {
|
|
|
15
15
|
protected setBoundary(key: number, value: any): void;
|
|
16
16
|
protected setCenter(cor: LngLat | string): void;
|
|
17
17
|
protected setZoom(nr: number): void;
|
|
18
|
-
|
|
18
|
+
protected getMapContentTemplate(map: MapRealmConfig): Promise<TemplateResult>;
|
|
19
|
+
render(): TemplateResult<1>;
|
|
19
20
|
}
|
|
@@ -4,6 +4,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
7
16
|
/*
|
|
8
17
|
* Copyright 2022, OpenRemote Inc.
|
|
9
18
|
*
|
|
@@ -110,195 +119,200 @@ let OrConfMapCard = class OrConfMapCard extends LitElement {
|
|
|
110
119
|
setZoom(nr) {
|
|
111
120
|
this.zoom = nr;
|
|
112
121
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
getMapContentTemplate(map) {
|
|
123
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
124
|
+
return html `
|
|
125
|
+
<style>
|
|
126
|
+
#remove-map {
|
|
127
|
+
margin: 12px 0 0 0;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.subheader {
|
|
131
|
+
padding: 10px 0 4px;
|
|
132
|
+
font-weight: bolder;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.d-inline-flex {
|
|
136
|
+
display: inline-flex;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.panel-content {
|
|
140
|
+
padding: 0 24px 24px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.description {
|
|
144
|
+
font-size: 12px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.boundary-container {
|
|
148
|
+
width: 50%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.boundary-item, .input {
|
|
152
|
+
width: 100%;
|
|
153
|
+
max-width: 800px;
|
|
154
|
+
padding: 10px 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.input or-mwc-input:not([icon]) {
|
|
158
|
+
width: 80%;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.zoom-group {
|
|
162
|
+
width: 50%;
|
|
163
|
+
padding-left: 12px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.map-container {
|
|
167
|
+
width: 100%
|
|
168
|
+
}
|
|
169
|
+
.settings-container{
|
|
170
|
+
display: inline-flex;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media screen and (max-width: 768px) {
|
|
174
|
+
.zoom-group, .boundary-container{
|
|
175
|
+
width: 100%;
|
|
176
|
+
padding: unset;
|
|
177
|
+
}
|
|
178
|
+
.settings-container{
|
|
179
|
+
display: block;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
</style>
|
|
183
|
+
<div slot="content" class="panel-content">
|
|
184
|
+
<div class="map-container">
|
|
185
|
+
<div class="subheader">${i18next.t("map")}</div>
|
|
186
|
+
<or-map id="vectorMap" .showBoundaryBoxControl="${true}" .zoom="${this.zoom}"
|
|
187
|
+
.boundary="${map.bounds}"
|
|
188
|
+
@or-map-long-press="${(ev) => {
|
|
189
|
+
this.setCenter(ev.detail.lngLat);
|
|
190
|
+
}}" .showGeoCodingControl="${true}"
|
|
191
|
+
.showGeoJson="${map.geoJson != undefined}"
|
|
192
|
+
.geoJson="${map.geoJson}"
|
|
193
|
+
.useZoomControl="${false}"
|
|
194
|
+
style="height: 500px; width: 100%;">
|
|
195
|
+
${when(map.center, () => html `
|
|
196
|
+
<or-map-marker id="geo-json-point-marker" .lng="${map.center[0]}" .lat="${map.center[1]}"></or-map-marker>
|
|
197
|
+
`)}
|
|
198
|
+
</or-map>
|
|
119
199
|
</div>
|
|
120
|
-
<div slot="content" class="panel-content">
|
|
121
|
-
<div class="map-container">
|
|
122
|
-
<div class="subheader">${i18next.t("map")}</div>
|
|
123
|
-
<or-map id="vectorMap" .showBoundaryBoxControl="${true}" .zoom="${this.zoom}"
|
|
124
|
-
.boundary="${this.map.bounds}"
|
|
125
|
-
@or-map-long-press="${(ev) => {
|
|
126
|
-
this.setCenter(ev.detail.lngLat);
|
|
127
|
-
}}" .showGeoCodingControl="${true}"
|
|
128
|
-
.showGeoJson="${this.map.geoJson != undefined}"
|
|
129
|
-
.geoJson="${this.map.geoJson}"
|
|
130
|
-
.useZoomControl="${false}"
|
|
131
|
-
style="height: 500px; width: 100%;">
|
|
132
|
-
${when(this.map.center, () => html `
|
|
133
|
-
<or-map-marker id="geo-json-point-marker" .lng="${this.map.center[0]}" .lat="${this.map.center[1]}"></or-map-marker>
|
|
134
|
-
`)}
|
|
135
|
-
</or-map>
|
|
136
|
-
</div>
|
|
137
200
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
</div>
|
|
201
|
+
<div class="settings-container">
|
|
202
|
+
<div class="boundary-container">
|
|
203
|
+
<div class="subheader">${i18next.t("configuration.mapBounds")}</div>
|
|
204
|
+
<span>${i18next.t("configuration.mapBoundsDescription")}</span>
|
|
205
|
+
<or-mwc-input .value="${map === null || map === void 0 ? void 0 : map.bounds[3]}" .type="${InputType.NUMBER}" .label="${i18next.t("north")}"
|
|
206
|
+
class="boundary-item"
|
|
207
|
+
@or-mwc-input-changed="${(e) => this.setBoundary(3, e.detail.value)}"
|
|
208
|
+
.step="${.01}"></or-mwc-input>
|
|
209
|
+
<or-mwc-input .value="${map === null || map === void 0 ? void 0 : map.bounds[2]}" .type="${InputType.NUMBER}" .label="${i18next.t("east")}"
|
|
210
|
+
class="boundary-item"
|
|
211
|
+
@or-mwc-input-changed="${(e) => this.setBoundary(2, e.detail.value)}"
|
|
212
|
+
.step="${.01}"></or-mwc-input>
|
|
213
|
+
<or-mwc-input .value="${map === null || map === void 0 ? void 0 : map.bounds[1]}" .type="${InputType.NUMBER}" .label="${i18next.t("south")}"
|
|
214
|
+
class="boundary-item"
|
|
215
|
+
@or-mwc-input-changed="${(e) => this.setBoundary(1, e.detail.value)}"
|
|
216
|
+
.step="${.01}"></or-mwc-input>
|
|
217
|
+
<or-mwc-input .value="${map === null || map === void 0 ? void 0 : map.bounds[0]}" .type="${InputType.NUMBER}" .label="${i18next.t("west")}"
|
|
218
|
+
class="boundary-item"
|
|
219
|
+
@or-mwc-input-changed="${(e) => this.setBoundary(0, e.detail.value)}"
|
|
220
|
+
.step="${.01}"></or-mwc-input>
|
|
221
|
+
<div class="subheader">${i18next.t("configuration.center")}</div>
|
|
222
|
+
<span>${i18next.t("configuration.centerDescription")}</span>
|
|
223
|
+
<or-mwc-input .value="${Array.isArray(map.center) ? map.center.join() : undefined}"
|
|
224
|
+
.type="${InputType.TEXT}" label="${i18next.t("configuration.center")}"
|
|
225
|
+
class="boundary-item"
|
|
226
|
+
@or-mwc-input-changed="${(e) => this.setCenter(e.detail.value)}"
|
|
227
|
+
.step="${.01}"></or-mwc-input>
|
|
228
|
+
<div class="subheader">${i18next.t("configuration.geoJson")}</div>
|
|
229
|
+
<span>${i18next.t("configuration.geoJsonDescription")}</span>
|
|
230
|
+
<div class="input" style="height: 56px; display: flex; align-items: center;">
|
|
231
|
+
<or-conf-map-geojson .geoJson="${map.geoJson}" @update="${(e) => {
|
|
232
|
+
map.geoJson = e.detail.value;
|
|
233
|
+
this.requestUpdate();
|
|
234
|
+
this.notifyConfigChange(map);
|
|
235
|
+
}}"></or-conf-map-geojson>
|
|
174
236
|
</div>
|
|
237
|
+
</div>
|
|
175
238
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
239
|
+
<div class="zoom-group">
|
|
240
|
+
<div class="subheader">${i18next.t("configuration.mapZoom")}</div>
|
|
241
|
+
<span>${i18next.t("configuration.mapZoomDescription")}</span>
|
|
242
|
+
<div class="input">
|
|
243
|
+
<or-mwc-input .value="${map.zoom}" .type="${InputType.NUMBER}" .label="${i18next.t('default')}"
|
|
244
|
+
@or-mwc-input-changed="${(e) => {
|
|
245
|
+
map.zoom = e.detail.value;
|
|
246
|
+
this.notifyConfigChange(map);
|
|
247
|
+
}}"
|
|
248
|
+
.step="${1}"></or-mwc-input>
|
|
249
|
+
<or-mwc-input .type="${InputType.BUTTON}" icon="eye"
|
|
250
|
+
@or-mwc-input-changed="${(e) => this.setZoom(map.zoom)}"
|
|
251
|
+
.step="${1}"></or-mwc-input>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="input">
|
|
254
|
+
<or-mwc-input .value="${map.minZoom}" .type="${InputType.NUMBER}"
|
|
255
|
+
.label="${i18next.t("configuration.minZoom")}"
|
|
256
|
+
max="${map.maxZoom}"
|
|
257
|
+
@or-mwc-input-changed="${(e) => {
|
|
258
|
+
map.minZoom = e.detail.value;
|
|
259
|
+
this.requestUpdate();
|
|
260
|
+
this.notifyConfigChange(map);
|
|
261
|
+
}}"
|
|
262
|
+
.step="${1}"></or-mwc-input>
|
|
263
|
+
<or-mwc-input .type="${InputType.BUTTON}" icon="eye"
|
|
264
|
+
@or-mwc-input-changed="${(e) => this.setZoom(map.minZoom)}"
|
|
265
|
+
.step="${1}"></or-mwc-input>
|
|
266
|
+
</div>
|
|
267
|
+
<div class="input">
|
|
268
|
+
<or-mwc-input .value="${map.maxZoom}" .type="${InputType.NUMBER}"
|
|
269
|
+
.label="${i18next.t("configuration.maxZoom")}"
|
|
270
|
+
min="${map.minZoom}"
|
|
271
|
+
@or-mwc-input-changed="${(e) => {
|
|
272
|
+
map.maxZoom = e.detail.value;
|
|
273
|
+
this.requestUpdate("map");
|
|
274
|
+
this.notifyConfigChange(map);
|
|
275
|
+
}}"
|
|
276
|
+
.step="${1}"></or-mwc-input>
|
|
277
|
+
<or-mwc-input .type="${InputType.BUTTON}" icon="eye"
|
|
278
|
+
@or-mwc-input-changed="${(e) => this.setZoom(map.maxZoom)}"
|
|
279
|
+
.step="${1}"></or-mwc-input>
|
|
280
|
+
</div>
|
|
218
281
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
</div>
|
|
282
|
+
<div class="input" style="height: 56px;">
|
|
283
|
+
<or-mwc-input .value="${map.boxZoom}" .type="${InputType.SWITCH}" label="BoxZoom"
|
|
284
|
+
@or-mwc-input-changed="${(e) => {
|
|
285
|
+
map.boxZoom = e.detail.value;
|
|
286
|
+
this.notifyConfigChange(map);
|
|
287
|
+
}}"
|
|
288
|
+
.step="${1}"></or-mwc-input>
|
|
227
289
|
</div>
|
|
228
290
|
</div>
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
${when(this.canRemove, () => html `
|
|
294
|
+
<or-mwc-input outlined .type="${InputType.BUTTON}" id="remove-map"
|
|
295
|
+
label="configuration.deleteMapCustomization"
|
|
296
|
+
@click="${() => { this._showRemoveMapDialog(); }}"
|
|
297
|
+
></or-mwc-input>
|
|
298
|
+
`)}
|
|
299
|
+
</div>`;
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
render() {
|
|
303
|
+
return html `
|
|
304
|
+
<or-collapsible-panel .expanded="${this.expanded}" .lazycontent=${this.getMapContentTemplate(this.map)}>
|
|
305
|
+
<div slot="header" class="header-container">
|
|
306
|
+
${this.name}
|
|
236
307
|
</div>
|
|
237
308
|
</or-collapsible-panel>
|
|
238
309
|
`;
|
|
239
310
|
}
|
|
240
311
|
};
|
|
241
312
|
OrConfMapCard.styles = css `
|
|
242
|
-
#remove-map {
|
|
243
|
-
margin: 12px 0 0 0;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.subheader {
|
|
247
|
-
padding: 10px 0 4px;
|
|
248
|
-
font-weight: bolder;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.d-inline-flex {
|
|
252
|
-
display: inline-flex;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.panel-content {
|
|
256
|
-
padding: 0 24px 24px;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.description {
|
|
260
|
-
font-size: 12px;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
313
|
or-collapsible-panel {
|
|
264
314
|
margin-bottom: 10px;
|
|
265
315
|
}
|
|
266
|
-
|
|
267
|
-
.boundary-container {
|
|
268
|
-
width: 50%;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.boundary-item, .input {
|
|
272
|
-
width: 100%;
|
|
273
|
-
max-width: 800px;
|
|
274
|
-
padding: 10px 0;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.input or-mwc-input:not([icon]) {
|
|
278
|
-
width: 80%;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.zoom-group {
|
|
282
|
-
width: 50%;
|
|
283
|
-
padding-left: 12px;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.map-container {
|
|
287
|
-
width: 100%
|
|
288
|
-
}
|
|
289
|
-
.settings-container{
|
|
290
|
-
display: inline-flex;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@media screen and (max-width: 768px) {
|
|
294
|
-
.zoom-group, .boundary-container{
|
|
295
|
-
width: 100%;
|
|
296
|
-
padding: unset;
|
|
297
|
-
}
|
|
298
|
-
.settings-container{
|
|
299
|
-
display: block;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
316
|
`;
|
|
303
317
|
__decorate([
|
|
304
318
|
property({ attribute: false })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-conf-map-card.js","sourceRoot":"","sources":["../../../../src/components/configuration/or-conf-map/or-conf-map-card.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"or-conf-map-card.js","sourceRoot":"","sources":["../../../../src/components/configuration/or-conf-map/or-conf-map-card.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAkB,UAAU,EAAE,MAAM,KAAK,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAgB,WAAW,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,SAAS,EAAuB,MAAM,4CAA4C,CAAC;AAG5F,OAAO,uBAAuB,CAAC;AAGxB,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,UAAU;IAAtC;;QASI,QAAG,GAAmB,EAAE,CAAC;QAGzB,SAAI,GAAW,EAAE,CAAC;QAGzB,aAAQ,GAAY,KAAK,CAAC;QAGnB,cAAS,GAAY,KAAK,CAAC;QAGxB,SAAI,GAAW,CAAC,CAAC;IA2Q/B,CAAC;IAzQa,kBAAkB,CAAC,MAAsB;QAC/C,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACtE,CAAC;IAES,oBAAoB;QAE1B,MAAM,aAAa,GAAmB;YAClC;gBACI,UAAU,EAAE,QAAQ;gBACpB,OAAO,EAAE,QAAQ;aACpB;YACD;gBACI,OAAO,EAAE,IAAI;gBACb,UAAU,EAAE,IAAI;gBAChB,OAAO,EAAE,KAAK;gBACd,MAAM,EAAE,GAAG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from "@openremote/model";
|
|
3
3
|
import "@openremote/or-components/or-loading-indicator";
|
|
4
4
|
import "./or-conf-map/or-conf-map-card";
|
|
5
5
|
import "./or-conf-realm/or-conf-realm-card";
|
|
6
6
|
import { OrConfRealmCard } from "./or-conf-realm/or-conf-realm-card";
|
|
7
7
|
import { OrConfMapCard } from "./or-conf-map/or-conf-map-card";
|
|
8
8
|
export declare class OrConfPanel extends LitElement {
|
|
9
|
-
config?:
|
|
10
|
-
[id: string]: any;
|
|
11
|
-
} | ManagerAppConfig;
|
|
9
|
+
config?: MapConfig | ManagerAppConfig;
|
|
12
10
|
realmOptions: {
|
|
13
11
|
name: string;
|
|
14
12
|
displayName: string;
|
|
@@ -19,16 +17,12 @@ export declare class OrConfPanel extends LitElement {
|
|
|
19
17
|
protected getRealmsProperty(config: unknown): {
|
|
20
18
|
[index: string]: any;
|
|
21
19
|
} | undefined;
|
|
22
|
-
protected isMapConfig(object: unknown):
|
|
20
|
+
protected isMapConfig(object: unknown): object is MapConfig;
|
|
23
21
|
protected isManagerConfig(object: any): object is ManagerAppConfig;
|
|
24
|
-
protected notifyConfigChange(config:
|
|
25
|
-
[id: string]: any;
|
|
26
|
-
} | ManagerAppConfig): void;
|
|
22
|
+
protected notifyConfigChange(config: MapConfig | ManagerAppConfig): void;
|
|
27
23
|
render(): TemplateResult;
|
|
28
24
|
protected _removeRealm(realm: string): void;
|
|
29
|
-
protected getAvailableRealms(config?: ManagerAppConfig | {
|
|
30
|
-
[id: string]: any;
|
|
31
|
-
}, realmOptions?: {
|
|
25
|
+
protected getAvailableRealms(config?: ManagerAppConfig | MapConfig, realmOptions?: {
|
|
32
26
|
name: string;
|
|
33
27
|
displayName: string;
|
|
34
28
|
canDelete: boolean;
|
|
@@ -34,15 +34,18 @@ let OrConfPanel = class OrConfPanel extends LitElement {
|
|
|
34
34
|
return config.realms;
|
|
35
35
|
}
|
|
36
36
|
else if (this.isMapConfig(config)) {
|
|
37
|
-
return config;
|
|
37
|
+
return config.options;
|
|
38
38
|
}
|
|
39
39
|
return undefined;
|
|
40
40
|
}
|
|
41
41
|
isMapConfig(object) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
if (typeof object === 'object' && 'options' in object) {
|
|
43
|
+
const keys = Object.keys(object.options);
|
|
44
|
+
// Instead of looking for the exact same entries, ensure that at least one of them can be mapped.
|
|
45
|
+
// This also shows realm configs that don't have parent realms, but are still existing in the mapsettings.json
|
|
46
|
+
return this.realmOptions.filter((o) => keys.includes(o.name)).length > 0;
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
46
49
|
}
|
|
47
50
|
isManagerConfig(object) {
|
|
48
51
|
return 'realms' in object;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-conf-panel.js","sourceRoot":"","sources":["../../../src/components/configuration/or-conf-panel.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,SAAS,EAAsB,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAE5C,OAAO,EAAe,WAAW,EAAE,UAAU,EAAC,MAAM,6CAA6C,CAAC;AAClG,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAC;AACjD,OAAO,gDAAgD,CAAC;AACxD,OAAO,gCAAgC,CAAC;AACxC,OAAO,oCAAoC,CAAC;AAKrC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU;IAApC;;QAGI,WAAM,
|
|
1
|
+
{"version":3,"file":"or-conf-panel.js","sourceRoot":"","sources":["../../../src/components/configuration/or-conf-panel.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,UAAU,EAAiB,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,S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C,aAAa,CAAC;aACzB,UAAU,CAAC,IAAI,CAAA;sFAC0D,CAAC,CAAsB,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,KAAK,YAAY,SAAS,CAAC,MAAM;0CACrI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE;YACpH,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAA;QAC1C,CAAC,CAAC;;aAED,CAAC;aACD,SAAS,CAAC,IAAI,CAAA;;;;;;;;;;;;;;;;;;;aAmBd,CAAC;aACD,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC;IAEjC,CAAC;CACJ,CAAA;AA/LU;IADN,QAAQ,EAAE;2CACuC;AAG3C;IADN,QAAQ,EAAE;iDAC2E;AAN7E,WAAW;IADvB,aAAa,CAAC,eAAe,CAAC;GAClB,WAAW,CAkMvB"}
|
|
@@ -7,31 +7,35 @@ import "@openremote/or-components/or-collapsible-panel";
|
|
|
7
7
|
import "@openremote/or-mwc-components/or-mwc-input";
|
|
8
8
|
import "../components/configuration/or-conf-json";
|
|
9
9
|
import "../components/configuration/or-conf-panel";
|
|
10
|
-
import { ManagerAppConfig,
|
|
10
|
+
import { ManagerAppConfig, MapConfig, Realm } from "@openremote/model";
|
|
11
11
|
import "@openremote/or-components/or-loading-indicator";
|
|
12
12
|
import { OrConfPanel } from "../components/configuration/or-conf-panel";
|
|
13
|
+
import { OrInputChangedEvent } from "@openremote/or-mwc-components/or-mwc-input";
|
|
13
14
|
export declare function pageConfigurationProvider(store: Store<AppStateKeyed>): PageProvider<AppStateKeyed>;
|
|
14
15
|
export declare class PageConfiguration extends Page<AppStateKeyed> {
|
|
15
16
|
static get styles(): import("lit").CSSResult;
|
|
16
17
|
get name(): string;
|
|
17
18
|
managerConfiguration?: ManagerAppConfig;
|
|
18
|
-
mapConfig?:
|
|
19
|
-
[id: string]: any;
|
|
20
|
-
};
|
|
19
|
+
mapConfig?: MapConfig;
|
|
21
20
|
protected realms?: Realm[];
|
|
22
21
|
protected loading: boolean;
|
|
23
22
|
protected managerConfigurationChanged: boolean;
|
|
24
23
|
protected mapConfigChanged: boolean;
|
|
24
|
+
protected customMapFilename: string;
|
|
25
|
+
protected customMapLimit: number;
|
|
26
|
+
protected tilesForUpload: File;
|
|
27
|
+
protected tilesForDeletion: boolean;
|
|
25
28
|
protected realmConfigPanel?: OrConfPanel;
|
|
26
29
|
stateChanged(state: AppStateKeyed): void;
|
|
30
|
+
firstUpdated(): Promise<void>;
|
|
31
|
+
humanReadableBytes(bytes: number): string;
|
|
27
32
|
willUpdate(changedProps: PropertyValues<this>): void;
|
|
28
33
|
protected render(): TemplateResult | void;
|
|
29
|
-
protected
|
|
30
|
-
protected
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
protected setCustomVectorTilesUrl(e: OrInputChangedEvent): Promise<void>;
|
|
35
|
+
protected uploadCustomMap(e: CustomEvent): Promise<void>;
|
|
36
|
+
protected deleteCustomMap(): Promise<void>;
|
|
37
|
+
protected getManagerConfig(): Promise<ManagerAppConfig | undefined>;
|
|
38
|
+
protected getMapConfig(): Promise<MapConfig>;
|
|
33
39
|
protected getAccessibleRealms(): Promise<Realm[]>;
|
|
34
|
-
protected saveAllConfigs(config: ManagerAppConfig, mapConfig:
|
|
35
|
-
[p: string]: MapRealmConfig;
|
|
36
|
-
}): void;
|
|
40
|
+
protected saveAllConfigs(config: ManagerAppConfig, mapConfig: MapConfig): void;
|
|
37
41
|
}
|