@openremote/manager 1.8.0-snapshot.20250725120000 → 1.8.0-snapshot.20250725123024
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.5f4402fd359cc316.js +3678 -0
- package/dist/bundle.ddd2e478dcd11d3c.js +3678 -0
- package/dist/images/Icon-128.png +0 -0
- package/dist/images/Icon-144.png +0 -0
- package/dist/images/Icon-196.png +0 -0
- package/dist/images/Icon-256.png +0 -0
- package/dist/images/Icon-48.png +0 -0
- package/dist/images/Icon-512.png +0 -0
- package/dist/images/Icon-72.png +0 -0
- package/dist/images/favicon.ico +0 -0
- package/dist/index.html +19 -0
- package/dist/modules/@webcomponents/webcomponentsjs/CHANGELOG.md +76 -0
- package/dist/modules/@webcomponents/webcomponentsjs/LICENSE.md +19 -0
- package/dist/modules/@webcomponents/webcomponentsjs/README.md +259 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-ce.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_dom.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-pf_js.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce-pf.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd-ce.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/bundles/webcomponents-sd.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/package.json +51 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/custom-elements-es5-adapter-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-bundle-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-ce-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_dom-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-pf_js-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-ce-pf-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/entrypoints/webcomponents-sd-index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/flag-parser.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/baseuri.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/child-node/after.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/child-node/before.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/child-node/index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/child-node/remove.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/child-node/replace-with.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/custom-event.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/es6-misc.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/event-listener-options.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/get-attribute-names.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/matches.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/parent-node/append.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/parent-node/index.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/parent-node/prepend.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/parent-node/replace-children.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/promise.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/svg-element-class-list.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/symbol.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/platform/toggle-attribute.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/src/unresolved.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/webcomponents-bundle.d.ts +175 -0
- package/dist/modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js.map +1 -0
- package/dist/modules/@webcomponents/webcomponentsjs/webcomponents-loader.js +1 -0
- package/index.html +88 -88
- package/lib/components/alarms/or-alarms-table.js +56 -56
- package/lib/components/configuration/or-conf-json.js +25 -25
- package/lib/components/configuration/or-conf-map/or-conf-map-card.js +177 -177
- package/lib/components/configuration/or-conf-map/or-conf-map-geojson.js +24 -24
- package/lib/components/configuration/or-conf-map/or-conf-map-global.js +153 -153
- package/lib/components/configuration/or-conf-panel.js +43 -43
- package/lib/components/configuration/or-conf-realm/or-conf-realm-card.js +200 -200
- package/lib/pages/page-account.js +243 -243
- package/lib/pages/page-alarms.js +369 -369
- package/lib/pages/page-assets.js +100 -100
- package/lib/pages/page-configuration.js +152 -152
- package/lib/pages/page-export.js +191 -191
- package/lib/pages/page-gateway-tunnel.js +106 -106
- package/lib/pages/page-gateway.js +252 -252
- package/lib/pages/page-insights.js +19 -19
- package/lib/pages/page-logs.js +11 -11
- package/lib/pages/page-map.js +37 -37
- package/lib/pages/page-provisioning.js +294 -294
- package/lib/pages/page-realms.js +284 -284
- package/lib/pages/page-roles.js +279 -279
- package/lib/pages/page-rules.js +11 -11
- package/lib/pages/page-users.js +383 -383
- package/package.json +3 -3
package/lib/pages/page-assets.js
CHANGED
|
@@ -92,57 +92,57 @@ export function pageAssetsProvider(store, config) {
|
|
|
92
92
|
let PageAssets = class PageAssets extends Page {
|
|
93
93
|
static get styles() {
|
|
94
94
|
// language=CSS
|
|
95
|
-
return css `
|
|
96
|
-
|
|
97
|
-
or-asset-tree {
|
|
98
|
-
align-items: stretch;
|
|
99
|
-
z-index: 1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.hideMobile {
|
|
103
|
-
display: none;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
or-asset-viewer {
|
|
107
|
-
align-items: stretch;
|
|
108
|
-
z-index: 0;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.multipleAssetsView {
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
align-items: center;
|
|
115
|
-
text-align: center;
|
|
116
|
-
height: 100%;
|
|
117
|
-
width: 100%;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.multipleAssetsView > div {
|
|
121
|
-
display: flex;
|
|
122
|
-
flex-direction: column;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.multipleAssetsView > div > *:first-child {
|
|
126
|
-
margin: 30px;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media only screen and (min-width: 768px){
|
|
130
|
-
or-asset-tree {
|
|
131
|
-
width: 300px;
|
|
132
|
-
min-width: 300px;
|
|
133
|
-
box-shadow: ${unsafeCSS(DefaultBoxShadow)}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.hideMobile {
|
|
137
|
-
display: flex;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
or-asset-viewer,
|
|
141
|
-
or-asset-viewer.hideMobile {
|
|
142
|
-
display: initial;
|
|
143
|
-
max-width: calc(100vw - 300px);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
95
|
+
return css `
|
|
96
|
+
|
|
97
|
+
or-asset-tree {
|
|
98
|
+
align-items: stretch;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.hideMobile {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
or-asset-viewer {
|
|
107
|
+
align-items: stretch;
|
|
108
|
+
z-index: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.multipleAssetsView {
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
align-items: center;
|
|
115
|
+
text-align: center;
|
|
116
|
+
height: 100%;
|
|
117
|
+
width: 100%;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.multipleAssetsView > div {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.multipleAssetsView > div > *:first-child {
|
|
126
|
+
margin: 30px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@media only screen and (min-width: 768px){
|
|
130
|
+
or-asset-tree {
|
|
131
|
+
width: 300px;
|
|
132
|
+
min-width: 300px;
|
|
133
|
+
box-shadow: ${unsafeCSS(DefaultBoxShadow)}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.hideMobile {
|
|
137
|
+
display: flex;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
or-asset-viewer,
|
|
141
|
+
or-asset-viewer.hideMobile {
|
|
142
|
+
display: initial;
|
|
143
|
+
max-width: calc(100vw - 300px);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
146
|
`;
|
|
147
147
|
}
|
|
148
148
|
get name() {
|
|
@@ -188,32 +188,32 @@ let PageAssets = class PageAssets extends Page {
|
|
|
188
188
|
let viewerHTML;
|
|
189
189
|
const multiSelection = this._assetIds && this._assetIds.length > 1;
|
|
190
190
|
if (multiSelection) {
|
|
191
|
-
viewerHTML = html `
|
|
192
|
-
<div class="multipleAssetsView hideMobile">
|
|
193
|
-
<div>
|
|
194
|
-
<or-translate value="multiAssetSelected" .options="${{ assetNbr: this._assetIds.length }}"></or-translate>
|
|
195
|
-
<or-mwc-input .type="${InputType.BUTTON}" label="changeParent" @click="${() => this._onParentChangeClick()}" outlined></or-mwc-input>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
191
|
+
viewerHTML = html `
|
|
192
|
+
<div class="multipleAssetsView hideMobile">
|
|
193
|
+
<div>
|
|
194
|
+
<or-translate value="multiAssetSelected" .options="${{ assetNbr: this._assetIds.length }}"></or-translate>
|
|
195
|
+
<or-mwc-input .type="${InputType.BUTTON}" label="changeParent" @click="${() => this._onParentChangeClick()}" outlined></or-mwc-input>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
198
|
`;
|
|
199
199
|
}
|
|
200
200
|
else {
|
|
201
201
|
const assetId = this._assetIds && this._assetIds.length === 1 ? this._assetIds[0] : undefined;
|
|
202
|
-
viewerHTML = html `
|
|
203
|
-
<or-asset-viewer id="viewer"
|
|
204
|
-
.config="${this.config && this.config.viewer ? this.config.viewer : undefined}"
|
|
205
|
-
class="${!assetId ? "hideMobile" : ""}" .assetId="${assetId}"
|
|
206
|
-
.editMode="${this._editMode}"
|
|
207
|
-
></or-asset-viewer>
|
|
202
|
+
viewerHTML = html `
|
|
203
|
+
<or-asset-viewer id="viewer"
|
|
204
|
+
.config="${this.config && this.config.viewer ? this.config.viewer : undefined}"
|
|
205
|
+
class="${!assetId ? "hideMobile" : ""}" .assetId="${assetId}"
|
|
206
|
+
.editMode="${this._editMode}"
|
|
207
|
+
></or-asset-viewer>
|
|
208
208
|
`;
|
|
209
209
|
}
|
|
210
|
-
return html `
|
|
211
|
-
<or-asset-tree id="tree" .config="${this.config && this.config.tree ? this.config.tree : PAGE_ASSETS_CONFIG_DEFAULT.tree}"
|
|
212
|
-
class="${this._assetIds && this._assetIds.length === 1 ? "hideMobile" : ""}"
|
|
213
|
-
.selectedIds="${this._assetIds}"
|
|
214
|
-
.expandedIds="${this._expandedIds}"
|
|
215
|
-
></or-asset-tree>
|
|
216
|
-
${viewerHTML}
|
|
210
|
+
return html `
|
|
211
|
+
<or-asset-tree id="tree" .config="${this.config && this.config.tree ? this.config.tree : PAGE_ASSETS_CONFIG_DEFAULT.tree}"
|
|
212
|
+
class="${this._assetIds && this._assetIds.length === 1 ? "hideMobile" : ""}"
|
|
213
|
+
.selectedIds="${this._assetIds}"
|
|
214
|
+
.expandedIds="${this._expandedIds}"
|
|
215
|
+
></or-asset-tree>
|
|
216
|
+
${viewerHTML}
|
|
217
217
|
`;
|
|
218
218
|
}
|
|
219
219
|
// State is only utilised for initial loading, and for changes within the store.
|
|
@@ -228,9 +228,9 @@ let PageAssets = class PageAssets extends Page {
|
|
|
228
228
|
const blockEvent = (ev) => {
|
|
229
229
|
ev.stopPropagation();
|
|
230
230
|
};
|
|
231
|
-
const dialogContent = html `
|
|
232
|
-
<or-asset-tree id="parent-asset-tree" disableSubscribe readonly .selectedIds="${[]}"
|
|
233
|
-
@or-asset-tree-request-select="${blockEvent}"
|
|
231
|
+
const dialogContent = html `
|
|
232
|
+
<or-asset-tree id="parent-asset-tree" disableSubscribe readonly .selectedIds="${[]}"
|
|
233
|
+
@or-asset-tree-request-select="${blockEvent}"
|
|
234
234
|
@or-asset-tree-selection-changed="${blockEvent}"></or-asset-tree>`;
|
|
235
235
|
const setParent = () => {
|
|
236
236
|
const assetTree = dialog.shadowRoot.getElementById("parent-asset-tree");
|
|
@@ -260,32 +260,32 @@ let PageAssets = class PageAssets extends Page {
|
|
|
260
260
|
dialog = showDialog(new OrMwcDialog()
|
|
261
261
|
.setContent(dialogContent)
|
|
262
262
|
.setActions(dialogActions)
|
|
263
|
-
.setStyles(html `
|
|
264
|
-
<style>
|
|
265
|
-
.mdc-dialog__surface {
|
|
266
|
-
width: 400px;
|
|
267
|
-
height: 800px;
|
|
268
|
-
display: flex;
|
|
269
|
-
overflow: visible;
|
|
270
|
-
overflow-x: visible !important;
|
|
271
|
-
overflow-y: visible !important;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
#dialog-content {
|
|
275
|
-
flex: 1;
|
|
276
|
-
overflow: visible;
|
|
277
|
-
min-height: 0;
|
|
278
|
-
padding: 0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
footer.mdc-dialog__actions {
|
|
282
|
-
border-top: 1px solid ${unsafeCSS(DefaultColor5)};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
or-asset-tree {
|
|
286
|
-
height: 100%;
|
|
287
|
-
}
|
|
288
|
-
</style>
|
|
263
|
+
.setStyles(html `
|
|
264
|
+
<style>
|
|
265
|
+
.mdc-dialog__surface {
|
|
266
|
+
width: 400px;
|
|
267
|
+
height: 800px;
|
|
268
|
+
display: flex;
|
|
269
|
+
overflow: visible;
|
|
270
|
+
overflow-x: visible !important;
|
|
271
|
+
overflow-y: visible !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
#dialog-content {
|
|
275
|
+
flex: 1;
|
|
276
|
+
overflow: visible;
|
|
277
|
+
min-height: 0;
|
|
278
|
+
padding: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
footer.mdc-dialog__actions {
|
|
282
|
+
border-top: 1px solid ${unsafeCSS(DefaultColor5)};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
or-asset-tree {
|
|
286
|
+
height: 100%;
|
|
287
|
+
}
|
|
288
|
+
</style>
|
|
289
289
|
`)
|
|
290
290
|
.setHeading(i18next.t("setParent"))
|
|
291
291
|
.setDismissAction(null));
|
|
@@ -68,97 +68,97 @@ let PageConfiguration = class PageConfiguration extends Page {
|
|
|
68
68
|
}
|
|
69
69
|
static get styles() {
|
|
70
70
|
// language=CSS
|
|
71
|
-
return css `
|
|
72
|
-
:host {
|
|
73
|
-
flex: 1;
|
|
74
|
-
width: 100%;
|
|
75
|
-
|
|
76
|
-
display: flex;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
|
|
79
|
-
--or-collapisble-panel-background-color: #fff;
|
|
80
|
-
--or-panel-background-color: #fff;
|
|
81
|
-
--or-panel-padding: 12px 24px 24px;
|
|
82
|
-
--or-panel-heading-margin: 0 0 10px 0;
|
|
83
|
-
--or-panel-background-color: var(--or-app-color1, ${unsafeCSS(DefaultColor1)});
|
|
84
|
-
--or-panel-heading-font-size: 14px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
or-panel {
|
|
88
|
-
width: calc(100% - 40px);
|
|
89
|
-
max-width: 1360px;
|
|
90
|
-
margin-bottom: 16px;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
#wrapper {
|
|
94
|
-
display: flex;
|
|
95
|
-
min-width: 0px;
|
|
96
|
-
width: 100%;
|
|
97
|
-
height: 100%;
|
|
98
|
-
flex-direction: column;
|
|
99
|
-
align-items: center;
|
|
100
|
-
overflow: auto;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
#header-wrapper {
|
|
104
|
-
display: flex;
|
|
105
|
-
width: calc(100% - 40px);
|
|
106
|
-
max-width: 1360px;
|
|
107
|
-
padding: 0 20px;
|
|
108
|
-
flex-direction: row;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: space-between;
|
|
111
|
-
margin: 15px auto;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
#header-title {
|
|
115
|
-
font-size: 18px;
|
|
116
|
-
font-weight: bold;
|
|
117
|
-
align-items: center;
|
|
118
|
-
display: flex;
|
|
119
|
-
color: var(--or-app-color3, ${unsafeCSS(DefaultColor3)});
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
#header-title > or-icon {
|
|
123
|
-
margin-right: 10px;
|
|
124
|
-
margin-left: 14px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
#header-actions or-mwc-input {
|
|
128
|
-
margin-left: 12px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
or-icon {
|
|
132
|
-
vertical-align: middle;
|
|
133
|
-
--or-icon-width: 20px;
|
|
134
|
-
--or-icon-height: 20px;
|
|
135
|
-
margin-right: 2px;
|
|
136
|
-
margin-left: -5px;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.notFound-container {
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
gap: 24px;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@media screen and (max-width: 768px) {
|
|
146
|
-
or-panel {
|
|
147
|
-
border-left: 0px;
|
|
148
|
-
border-right: 0px;
|
|
149
|
-
width: 100%;
|
|
150
|
-
--or-panel-border-radius: 0;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.hide-mobile {
|
|
154
|
-
display: none;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.subheader {
|
|
159
|
-
padding: 10px 0 4px;
|
|
160
|
-
font-weight: bolder;
|
|
161
|
-
}
|
|
71
|
+
return css `
|
|
72
|
+
:host {
|
|
73
|
+
flex: 1;
|
|
74
|
+
width: 100%;
|
|
75
|
+
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
|
|
79
|
+
--or-collapisble-panel-background-color: #fff;
|
|
80
|
+
--or-panel-background-color: #fff;
|
|
81
|
+
--or-panel-padding: 12px 24px 24px;
|
|
82
|
+
--or-panel-heading-margin: 0 0 10px 0;
|
|
83
|
+
--or-panel-background-color: var(--or-app-color1, ${unsafeCSS(DefaultColor1)});
|
|
84
|
+
--or-panel-heading-font-size: 14px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
or-panel {
|
|
88
|
+
width: calc(100% - 40px);
|
|
89
|
+
max-width: 1360px;
|
|
90
|
+
margin-bottom: 16px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#wrapper {
|
|
94
|
+
display: flex;
|
|
95
|
+
min-width: 0px;
|
|
96
|
+
width: 100%;
|
|
97
|
+
height: 100%;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
overflow: auto;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#header-wrapper {
|
|
104
|
+
display: flex;
|
|
105
|
+
width: calc(100% - 40px);
|
|
106
|
+
max-width: 1360px;
|
|
107
|
+
padding: 0 20px;
|
|
108
|
+
flex-direction: row;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: space-between;
|
|
111
|
+
margin: 15px auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#header-title {
|
|
115
|
+
font-size: 18px;
|
|
116
|
+
font-weight: bold;
|
|
117
|
+
align-items: center;
|
|
118
|
+
display: flex;
|
|
119
|
+
color: var(--or-app-color3, ${unsafeCSS(DefaultColor3)});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
#header-title > or-icon {
|
|
123
|
+
margin-right: 10px;
|
|
124
|
+
margin-left: 14px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
#header-actions or-mwc-input {
|
|
128
|
+
margin-left: 12px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
or-icon {
|
|
132
|
+
vertical-align: middle;
|
|
133
|
+
--or-icon-width: 20px;
|
|
134
|
+
--or-icon-height: 20px;
|
|
135
|
+
margin-right: 2px;
|
|
136
|
+
margin-left: -5px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.notFound-container {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
gap: 24px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
@media screen and (max-width: 768px) {
|
|
146
|
+
or-panel {
|
|
147
|
+
border-left: 0px;
|
|
148
|
+
border-right: 0px;
|
|
149
|
+
width: 100%;
|
|
150
|
+
--or-panel-border-radius: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.hide-mobile {
|
|
154
|
+
display: none;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.subheader {
|
|
159
|
+
padding: 10px 0 4px;
|
|
160
|
+
font-weight: bolder;
|
|
161
|
+
}
|
|
162
162
|
`;
|
|
163
163
|
}
|
|
164
164
|
get name() {
|
|
@@ -215,59 +215,59 @@ let PageConfiguration = class PageConfiguration extends Page {
|
|
|
215
215
|
if (!manager.authenticated) {
|
|
216
216
|
return html `<or-translate value="notAuthenticated"></or-translate>`;
|
|
217
217
|
}
|
|
218
|
-
return html `
|
|
219
|
-
${when(this.loading, () => html `
|
|
220
|
-
<or-loading-indicator></or-loading-indicator>
|
|
218
|
+
return html `
|
|
219
|
+
${when(this.loading, () => html `
|
|
220
|
+
<or-loading-indicator></or-loading-indicator>
|
|
221
221
|
`, () => {
|
|
222
222
|
var _a;
|
|
223
223
|
const saveDisabled = !this.managerConfigurationChanged && !this.mapConfigChanged && !this.tilesForUpload && !this.tilesForDeletion;
|
|
224
|
-
const realmHeading = html `
|
|
225
|
-
<div id="heading" style="justify-content: space-between;">
|
|
226
|
-
<span style="margin: 0;"><or-translate style="text-transform: uppercase;" value="configuration.realmStyling"></or-translate></span>
|
|
224
|
+
const realmHeading = html `
|
|
225
|
+
<div id="heading" style="justify-content: space-between;">
|
|
226
|
+
<span style="margin: 0;"><or-translate style="text-transform: uppercase;" value="configuration.realmStyling"></or-translate></span>
|
|
227
227
|
<or-conf-json .heading="${'manager_config.json'}" .config="${this.managerConfiguration}" class="hide-mobile" @saveLocalConfig="${(ev) => {
|
|
228
228
|
this.managerConfiguration = ev.detail.value;
|
|
229
229
|
this.managerConfigurationChanged = true;
|
|
230
|
-
}}"
|
|
231
|
-
></or-conf-json>
|
|
230
|
+
}}"
|
|
231
|
+
></or-conf-json>
|
|
232
232
|
</div>`;
|
|
233
|
-
const mapHeading = html `<div id="heading" style="justify-content: space-between;">
|
|
234
|
-
<span style="margin: 0;"><or-translate style="text-transform: uppercase;" value="configuration.mapSettings"></or-translate></span>
|
|
233
|
+
const mapHeading = html `<div id="heading" style="justify-content: space-between;">
|
|
234
|
+
<span style="margin: 0;"><or-translate style="text-transform: uppercase;" value="configuration.mapSettings"></or-translate></span>
|
|
235
235
|
</div>`;
|
|
236
236
|
const realmOptions = (_a = this.realms) === null || _a === void 0 ? void 0 : _a.map((r) => ({ name: r.name, displayName: r.displayName, canDelete: true }));
|
|
237
237
|
realmOptions.push({ name: 'default', displayName: 'Default', canDelete: false });
|
|
238
|
-
return html `
|
|
239
|
-
<div id="wrapper">
|
|
240
|
-
<div id="header-wrapper">
|
|
241
|
-
<div id="header-title">
|
|
242
|
-
<or-icon icon="palette-outline"></or-icon>
|
|
243
|
-
<or-translate value="appearance"></or-translate>
|
|
244
|
-
</div>
|
|
245
|
-
<div id="header-actions">
|
|
246
|
-
<or-mwc-input id="save-btn" .disabled="${saveDisabled}" raised type="button" label="save"
|
|
247
|
-
@or-mwc-input-changed="${() => this.saveAllConfigs(this.managerConfiguration, this.mapConfig)}"
|
|
248
|
-
></or-mwc-input>
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
<or-panel .heading="${realmHeading}">
|
|
252
|
-
${when(this.managerConfiguration, () => html `
|
|
253
|
-
<or-conf-panel id="managerConfig-panel" .config="${this.managerConfiguration}" .realmOptions="${realmOptions}"
|
|
254
|
-
@change="${() => { this.managerConfigurationChanged = true; }}"
|
|
255
|
-
></or-conf-panel>
|
|
256
|
-
`, () => html `
|
|
257
|
-
<div class="notFound-container">
|
|
258
|
-
<span><or-translate value="configuration.managerConfigNotFound"></or-translate></span>
|
|
259
|
-
<or-mwc-input type="${InputType.BUTTON}" label="configuration.tryAgain"
|
|
238
|
+
return html `
|
|
239
|
+
<div id="wrapper">
|
|
240
|
+
<div id="header-wrapper">
|
|
241
|
+
<div id="header-title">
|
|
242
|
+
<or-icon icon="palette-outline"></or-icon>
|
|
243
|
+
<or-translate value="appearance"></or-translate>
|
|
244
|
+
</div>
|
|
245
|
+
<div id="header-actions">
|
|
246
|
+
<or-mwc-input id="save-btn" .disabled="${saveDisabled}" raised type="button" label="save"
|
|
247
|
+
@or-mwc-input-changed="${() => this.saveAllConfigs(this.managerConfiguration, this.mapConfig)}"
|
|
248
|
+
></or-mwc-input>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
<or-panel .heading="${realmHeading}">
|
|
252
|
+
${when(this.managerConfiguration, () => html `
|
|
253
|
+
<or-conf-panel id="managerConfig-panel" .config="${this.managerConfiguration}" .realmOptions="${realmOptions}"
|
|
254
|
+
@change="${() => { this.managerConfigurationChanged = true; }}"
|
|
255
|
+
></or-conf-panel>
|
|
256
|
+
`, () => html `
|
|
257
|
+
<div class="notFound-container">
|
|
258
|
+
<span><or-translate value="configuration.managerConfigNotFound"></or-translate></span>
|
|
259
|
+
<or-mwc-input type="${InputType.BUTTON}" label="configuration.tryAgain"
|
|
260
260
|
@or-mwc-input-changed="${() => this.getManagerConfig().then(val => {
|
|
261
261
|
this.managerConfiguration = val;
|
|
262
|
-
}).catch(e => console.error(e))}"
|
|
263
|
-
></or-mwc-input>
|
|
264
|
-
</div>
|
|
265
|
-
`)}
|
|
266
|
-
</or-panel>
|
|
267
|
-
<or-panel .heading="${mapHeading}">
|
|
268
|
-
${when(this.mapConfig, () => html `
|
|
269
|
-
<or-conf-map-global .config="${this.mapConfig}" .filename="${this.customMapFilename}" .limit="${this.customMapLimit}"
|
|
270
|
-
@change="${() => { this.mapConfigChanged = true; }}"
|
|
262
|
+
}).catch(e => console.error(e))}"
|
|
263
|
+
></or-mwc-input>
|
|
264
|
+
</div>
|
|
265
|
+
`)}
|
|
266
|
+
</or-panel>
|
|
267
|
+
<or-panel .heading="${mapHeading}">
|
|
268
|
+
${when(this.mapConfig, () => html `
|
|
269
|
+
<or-conf-map-global .config="${this.mapConfig}" .filename="${this.customMapFilename}" .limit="${this.customMapLimit}"
|
|
270
|
+
@change="${() => { this.mapConfigChanged = true; }}"
|
|
271
271
|
@map-file-changed="${(e) => {
|
|
272
272
|
// If a map file is provided prepare for upload
|
|
273
273
|
if (e.detail) {
|
|
@@ -278,29 +278,29 @@ let PageConfiguration = class PageConfiguration extends Page {
|
|
|
278
278
|
}
|
|
279
279
|
// Otherwise assume it is meant for deletion
|
|
280
280
|
this.tilesForDeletion = !e.detail;
|
|
281
|
-
}}"
|
|
282
|
-
></or-conf-map-global>
|
|
283
|
-
<div class="subheader"><or-translate value="configuration.realmMapSettingsTitle"></or-translate></div>
|
|
284
|
-
<or-conf-panel id="mapConfig-panel" .config="${this.mapConfig}" .realmOptions="${realmOptions}"
|
|
285
|
-
@change="${() => { this.mapConfigChanged = true; }}"
|
|
286
|
-
></or-conf-panel>
|
|
287
|
-
`, () => html `
|
|
288
|
-
<div class="notFound-container">
|
|
289
|
-
<span><or-translate value="configuration.mapSettingsNotFound"></or-translate></span>
|
|
290
|
-
<or-mwc-input type="${InputType.BUTTON}" label="configuration.tryAgain"
|
|
281
|
+
}}"
|
|
282
|
+
></or-conf-map-global>
|
|
283
|
+
<div class="subheader"><or-translate value="configuration.realmMapSettingsTitle"></or-translate></div>
|
|
284
|
+
<or-conf-panel id="mapConfig-panel" .config="${this.mapConfig}" .realmOptions="${realmOptions}"
|
|
285
|
+
@change="${() => { this.mapConfigChanged = true; }}"
|
|
286
|
+
></or-conf-panel>
|
|
287
|
+
`, () => html `
|
|
288
|
+
<div class="notFound-container">
|
|
289
|
+
<span><or-translate value="configuration.mapSettingsNotFound"></or-translate></span>
|
|
290
|
+
<or-mwc-input type="${InputType.BUTTON}" label="configuration.tryAgain"
|
|
291
291
|
@or-mwc-input-changed="${() => this.getMapConfig().then(val => {
|
|
292
292
|
this.mapConfig = val;
|
|
293
|
-
}).catch(e => console.error(e))}"
|
|
294
|
-
></or-mwc-input>
|
|
295
|
-
</div>
|
|
296
|
-
`)}
|
|
297
|
-
</or-panel>
|
|
298
|
-
<div style="margin: 0px auto; font-size: smaller;">
|
|
299
|
-
OpenRemote Manager v${APP_VERSION}
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
293
|
+
}).catch(e => console.error(e))}"
|
|
294
|
+
></or-mwc-input>
|
|
295
|
+
</div>
|
|
296
|
+
`)}
|
|
297
|
+
</or-panel>
|
|
298
|
+
<div style="margin: 0px auto; font-size: smaller;">
|
|
299
|
+
OpenRemote Manager v${APP_VERSION}
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
302
|
`;
|
|
303
|
-
})}
|
|
303
|
+
})}
|
|
304
304
|
`;
|
|
305
305
|
}
|
|
306
306
|
/* ---------------- */
|