@openremote/manager 1.8.0-snapshot.20250725120002 → 1.8.0-snapshot.20250728102340
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.f7ad544556328801.js → bundle.2f74225bd5fbdc3d.js} +3415 -3415
- package/dist/bundle.9b2e58b2584ef430.js +3678 -0
- package/dist/index.html +18 -18
- 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
|
@@ -49,132 +49,132 @@ let PageGateway = class PageGateway extends Page {
|
|
|
49
49
|
}
|
|
50
50
|
static get styles() {
|
|
51
51
|
// language=CSS
|
|
52
|
-
return css `
|
|
53
|
-
:host {
|
|
54
|
-
flex: 1;
|
|
55
|
-
width: 100%;
|
|
56
|
-
|
|
57
|
-
display: flex;
|
|
58
|
-
justify-content: center;
|
|
59
|
-
|
|
60
|
-
--or-panel-heading-min-height: 0px;
|
|
61
|
-
--or-panel-heading-margin: 4px 0 0 10px;
|
|
62
|
-
--or-panel-background-color: var(--or-app-color1, ${unsafeCSS(DefaultColor1)});
|
|
63
|
-
--or-panel-heading-font-size: 14px;
|
|
64
|
-
--or-panel-padding: 14px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
#wrapper {
|
|
68
|
-
height: 100%;
|
|
69
|
-
width: 100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
overflow: auto;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
#title {
|
|
76
|
-
display: flex;
|
|
77
|
-
width: calc(100% - 40px);
|
|
78
|
-
max-width: 1360px;
|
|
79
|
-
padding: 0px 20px;
|
|
80
|
-
flex-direction: row;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: space-between;
|
|
83
|
-
margin: 8px auto;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
#title div {
|
|
87
|
-
display: flex;
|
|
88
|
-
align-items: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
#title > div > span {
|
|
92
|
-
font-size: 18px;
|
|
93
|
-
font-weight: bold;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
#title > div > or-icon {
|
|
97
|
-
--or-icon-width: 20px;
|
|
98
|
-
--or-icon-height: 20px;
|
|
99
|
-
margin-right: 10px;
|
|
100
|
-
margin-left: 14px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
or-panel {
|
|
104
|
-
position: relative;
|
|
105
|
-
width: calc(100% - 40px);
|
|
106
|
-
max-width: 1360px;
|
|
107
|
-
margin: 0 auto 16px;
|
|
108
|
-
--or-panel-heading-text-transform: uppercase;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.gateway-status-header {
|
|
112
|
-
position: absolute;
|
|
113
|
-
top: 18px;
|
|
114
|
-
right: 25px;
|
|
115
|
-
font-weight: bold;
|
|
116
|
-
display: flex;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
#gateway-content {
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-wrap: wrap;
|
|
122
|
-
padding: 10px;
|
|
123
|
-
gap: 40px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.gateway-column {
|
|
127
|
-
flex: 1;
|
|
128
|
-
flex-basis: 45%;
|
|
129
|
-
min-width: 350px;
|
|
130
|
-
display: flex;
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
gap: 20px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.gateway-sharing-control {
|
|
136
|
-
display: flex;
|
|
137
|
-
flex-direction: column;
|
|
138
|
-
gap: 10px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.gateway-sharing-control-child {
|
|
142
|
-
margin-left: 20px;
|
|
143
|
-
display: flex;
|
|
144
|
-
gap: 10px;
|
|
145
|
-
align-items: center;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
#gateway-footer {
|
|
149
|
-
margin-top: 40px;
|
|
150
|
-
display: flex;
|
|
151
|
-
justify-content: space-between;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
#gateway-footer > div {
|
|
155
|
-
display: flex;
|
|
156
|
-
gap: 10px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
@media only screen and (max-width: 780px){
|
|
160
|
-
:host {
|
|
161
|
-
--or-panel-border-radius: 0;
|
|
162
|
-
}
|
|
163
|
-
or-panel {
|
|
164
|
-
width: 100%;
|
|
165
|
-
min-width: auto;
|
|
166
|
-
}
|
|
167
|
-
#title {
|
|
168
|
-
width: 100%;
|
|
169
|
-
min-width: auto;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@media only screen and (max-width: 1200px) {
|
|
174
|
-
#gateway-content {
|
|
175
|
-
gap: 20px;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
52
|
+
return css `
|
|
53
|
+
:host {
|
|
54
|
+
flex: 1;
|
|
55
|
+
width: 100%;
|
|
56
|
+
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
|
|
60
|
+
--or-panel-heading-min-height: 0px;
|
|
61
|
+
--or-panel-heading-margin: 4px 0 0 10px;
|
|
62
|
+
--or-panel-background-color: var(--or-app-color1, ${unsafeCSS(DefaultColor1)});
|
|
63
|
+
--or-panel-heading-font-size: 14px;
|
|
64
|
+
--or-panel-padding: 14px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#wrapper {
|
|
68
|
+
height: 100%;
|
|
69
|
+
width: 100%;
|
|
70
|
+
display: flex;
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
overflow: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
#title {
|
|
76
|
+
display: flex;
|
|
77
|
+
width: calc(100% - 40px);
|
|
78
|
+
max-width: 1360px;
|
|
79
|
+
padding: 0px 20px;
|
|
80
|
+
flex-direction: row;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: space-between;
|
|
83
|
+
margin: 8px auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#title div {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
#title > div > span {
|
|
92
|
+
font-size: 18px;
|
|
93
|
+
font-weight: bold;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#title > div > or-icon {
|
|
97
|
+
--or-icon-width: 20px;
|
|
98
|
+
--or-icon-height: 20px;
|
|
99
|
+
margin-right: 10px;
|
|
100
|
+
margin-left: 14px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
or-panel {
|
|
104
|
+
position: relative;
|
|
105
|
+
width: calc(100% - 40px);
|
|
106
|
+
max-width: 1360px;
|
|
107
|
+
margin: 0 auto 16px;
|
|
108
|
+
--or-panel-heading-text-transform: uppercase;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.gateway-status-header {
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: 18px;
|
|
114
|
+
right: 25px;
|
|
115
|
+
font-weight: bold;
|
|
116
|
+
display: flex;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#gateway-content {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-wrap: wrap;
|
|
122
|
+
padding: 10px;
|
|
123
|
+
gap: 40px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.gateway-column {
|
|
127
|
+
flex: 1;
|
|
128
|
+
flex-basis: 45%;
|
|
129
|
+
min-width: 350px;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: 20px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.gateway-sharing-control {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
gap: 10px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.gateway-sharing-control-child {
|
|
142
|
+
margin-left: 20px;
|
|
143
|
+
display: flex;
|
|
144
|
+
gap: 10px;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#gateway-footer {
|
|
149
|
+
margin-top: 40px;
|
|
150
|
+
display: flex;
|
|
151
|
+
justify-content: space-between;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
#gateway-footer > div {
|
|
155
|
+
display: flex;
|
|
156
|
+
gap: 10px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media only screen and (max-width: 780px){
|
|
160
|
+
:host {
|
|
161
|
+
--or-panel-border-radius: 0;
|
|
162
|
+
}
|
|
163
|
+
or-panel {
|
|
164
|
+
width: 100%;
|
|
165
|
+
min-width: auto;
|
|
166
|
+
}
|
|
167
|
+
#title {
|
|
168
|
+
width: 100%;
|
|
169
|
+
min-width: auto;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@media only screen and (max-width: 1200px) {
|
|
174
|
+
#gateway-content {
|
|
175
|
+
gap: 20px;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
178
|
`;
|
|
179
179
|
}
|
|
180
180
|
get name() {
|
|
@@ -222,63 +222,63 @@ let PageGateway = class PageGateway extends Page {
|
|
|
222
222
|
render() {
|
|
223
223
|
const connection = this._connection;
|
|
224
224
|
const disabled = this._loading || this._readonly;
|
|
225
|
-
return html `
|
|
226
|
-
<div id="wrapper">
|
|
227
|
-
|
|
228
|
-
${until(this._getTitleTemplate(connection, this._connectionStatus, disabled))}
|
|
229
|
-
|
|
230
|
-
<or-panel ?disabled="${disabled}" .heading="${i18next.t("gateway.connectionDetails")}">
|
|
231
|
-
${when(this._connectionStatus, () => html `
|
|
232
|
-
<div class="gateway-status-header">
|
|
233
|
-
<or-translate value="status" style="font-weight: normal;"></or-translate>:
|
|
234
|
-
<span style="margin-left: 10px;">${this._connectionStatus}</span>
|
|
235
|
-
</div>
|
|
236
|
-
`)}
|
|
237
|
-
${until(this._getContentTemplate(() => this._getSettingsColumns(connection, disabled)))}
|
|
238
|
-
</or-panel>
|
|
239
|
-
|
|
240
|
-
<or-panel ?disabled="${disabled}" heading="${i18next.t("gateway.dataSharing")}">
|
|
241
|
-
<div class="gateway-status-header">
|
|
242
|
-
<or-mwc-input .type="${InputType.BUTTON}" label="JSON" outlined icon="pencil"
|
|
243
|
-
@or-mwc-input-changed="${() => this._openConnectionJSONEditor(connection)}"
|
|
244
|
-
></or-mwc-input>
|
|
245
|
-
</div>
|
|
246
|
-
${until(this._getContentTemplate(() => this._getDataSharingColumns(connection, this._isDataSharingCustom(connection), disabled)))}
|
|
247
|
-
</or-panel>
|
|
248
|
-
|
|
249
|
-
<or-panel ?disabled="${disabled}" heading="${i18next.t("gateway.assetSyncRules")}">
|
|
250
|
-
${until(this._getContentTemplate(() => this._getAssetSyncRulesColumns(connection, disabled)))}
|
|
251
|
-
</or-panel>
|
|
252
|
-
</div>
|
|
225
|
+
return html `
|
|
226
|
+
<div id="wrapper">
|
|
227
|
+
|
|
228
|
+
${until(this._getTitleTemplate(connection, this._connectionStatus, disabled))}
|
|
229
|
+
|
|
230
|
+
<or-panel ?disabled="${disabled}" .heading="${i18next.t("gateway.connectionDetails")}">
|
|
231
|
+
${when(this._connectionStatus, () => html `
|
|
232
|
+
<div class="gateway-status-header">
|
|
233
|
+
<or-translate value="status" style="font-weight: normal;"></or-translate>:
|
|
234
|
+
<span style="margin-left: 10px;">${this._connectionStatus}</span>
|
|
235
|
+
</div>
|
|
236
|
+
`)}
|
|
237
|
+
${until(this._getContentTemplate(() => this._getSettingsColumns(connection, disabled)))}
|
|
238
|
+
</or-panel>
|
|
239
|
+
|
|
240
|
+
<or-panel ?disabled="${disabled}" heading="${i18next.t("gateway.dataSharing")}">
|
|
241
|
+
<div class="gateway-status-header">
|
|
242
|
+
<or-mwc-input .type="${InputType.BUTTON}" label="JSON" outlined icon="pencil"
|
|
243
|
+
@or-mwc-input-changed="${() => this._openConnectionJSONEditor(connection)}"
|
|
244
|
+
></or-mwc-input>
|
|
245
|
+
</div>
|
|
246
|
+
${until(this._getContentTemplate(() => this._getDataSharingColumns(connection, this._isDataSharingCustom(connection), disabled)))}
|
|
247
|
+
</or-panel>
|
|
248
|
+
|
|
249
|
+
<or-panel ?disabled="${disabled}" heading="${i18next.t("gateway.assetSyncRules")}">
|
|
250
|
+
${until(this._getContentTemplate(() => this._getAssetSyncRulesColumns(connection, disabled)))}
|
|
251
|
+
</or-panel>
|
|
252
|
+
</div>
|
|
253
253
|
`;
|
|
254
254
|
}
|
|
255
255
|
_getTitleTemplate(connection_1, _status_1) {
|
|
256
256
|
return __awaiter(this, arguments, void 0, function* (connection, _status, disabled = true) {
|
|
257
|
-
return html `
|
|
258
|
-
<div id="title">
|
|
259
|
-
<div>
|
|
260
|
-
<or-icon icon="cloud"></or-icon>
|
|
261
|
-
<span>${i18next.t("gatewayConnection")}</span>
|
|
262
|
-
</div>
|
|
263
|
-
<div style="gap: 20px;">
|
|
264
|
-
<div>
|
|
265
|
-
<or-translate value="enabled"></or-translate>
|
|
266
|
-
<or-mwc-input .type="${InputType.SWITCH}" .value="${!connection.disabled}" ?disabled="${disabled}"
|
|
267
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("disabled", !e.detail.value)}"
|
|
268
|
-
></or-mwc-input>
|
|
269
|
-
</div>
|
|
270
|
-
<or-mwc-input label="save" ?disabled="${!this._dirty || !this._invalid || disabled}" .type="${InputType.BUTTON}" raised @click="${() => this._save()}"></or-mwc-input>
|
|
271
|
-
</div>
|
|
272
|
-
</div>
|
|
257
|
+
return html `
|
|
258
|
+
<div id="title">
|
|
259
|
+
<div>
|
|
260
|
+
<or-icon icon="cloud"></or-icon>
|
|
261
|
+
<span>${i18next.t("gatewayConnection")}</span>
|
|
262
|
+
</div>
|
|
263
|
+
<div style="gap: 20px;">
|
|
264
|
+
<div>
|
|
265
|
+
<or-translate value="enabled"></or-translate>
|
|
266
|
+
<or-mwc-input .type="${InputType.SWITCH}" .value="${!connection.disabled}" ?disabled="${disabled}"
|
|
267
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("disabled", !e.detail.value)}"
|
|
268
|
+
></or-mwc-input>
|
|
269
|
+
</div>
|
|
270
|
+
<or-mwc-input label="save" ?disabled="${!this._dirty || !this._invalid || disabled}" .type="${InputType.BUTTON}" raised @click="${() => this._save()}"></or-mwc-input>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
273
|
`;
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
_getContentTemplate(content) {
|
|
277
277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
-
return html `
|
|
279
|
-
<div id="gateway-content">
|
|
280
|
-
${until(content(), html `<or-loading></or-loading>`)}
|
|
281
|
-
</div>
|
|
278
|
+
return html `
|
|
279
|
+
<div id="gateway-content">
|
|
280
|
+
${until(content(), html `<or-loading></or-loading>`)}
|
|
281
|
+
</div>
|
|
282
282
|
`;
|
|
283
283
|
});
|
|
284
284
|
}
|
|
@@ -288,33 +288,33 @@ let PageGateway = class PageGateway extends Page {
|
|
|
288
288
|
*/
|
|
289
289
|
_getSettingsColumns(connection_1) {
|
|
290
290
|
return __awaiter(this, arguments, void 0, function* (connection, disabled = true) {
|
|
291
|
-
return html `
|
|
292
|
-
<div id="gateway-column-1" class="gateway-column">
|
|
293
|
-
<div></div>
|
|
294
|
-
<or-mwc-input id="gateway-host" .label="${i18next.t("host")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.host}"
|
|
295
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("host", e.detail.value)}"
|
|
296
|
-
></or-mwc-input>
|
|
297
|
-
<or-mwc-input id="gateway-port" .label="${i18next.t("port")}" .type="${InputType.NUMBER}"
|
|
298
|
-
?disabled="${disabled}" min="1" max="65536" step="1" .value="${connection === null || connection === void 0 ? void 0 : connection.port}"
|
|
299
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("port", e.detail.value)}"
|
|
300
|
-
></or-mwc-input>
|
|
301
|
-
<or-mwc-input id="gateway-realm" .label="${i18next.t("realm")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.realm}"
|
|
302
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("realm", e.detail.value)}"
|
|
303
|
-
></or-mwc-input>
|
|
304
|
-
<div></div>
|
|
305
|
-
</div>
|
|
306
|
-
<div id="gateway-column-2" class="gateway-column">
|
|
307
|
-
<div></div>
|
|
308
|
-
<or-mwc-input id="gateway-clientid" .label="${i18next.t("clientId")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.clientId}"
|
|
309
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("clientId", e.detail.value)}"
|
|
310
|
-
></or-mwc-input>
|
|
311
|
-
<or-mwc-input id="gateway-clientsecret" .label="${i18next.t("clientSecret")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.clientSecret}"
|
|
312
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("clientSecret", e.detail.value)}"
|
|
313
|
-
></or-mwc-input>
|
|
314
|
-
<or-mwc-input id="gateway-secured" .label="${i18next.t("secured")}" .type="${InputType.CHECKBOX}" style="height: 56px;" ?disabled="${disabled}" .value="${(connection === null || connection === void 0 ? void 0 : connection.secured) || false}"
|
|
315
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("secured", e.detail.value)}"
|
|
316
|
-
></or-mwc-input>
|
|
317
|
-
</div>
|
|
291
|
+
return html `
|
|
292
|
+
<div id="gateway-column-1" class="gateway-column">
|
|
293
|
+
<div></div>
|
|
294
|
+
<or-mwc-input id="gateway-host" .label="${i18next.t("host")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.host}"
|
|
295
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("host", e.detail.value)}"
|
|
296
|
+
></or-mwc-input>
|
|
297
|
+
<or-mwc-input id="gateway-port" .label="${i18next.t("port")}" .type="${InputType.NUMBER}"
|
|
298
|
+
?disabled="${disabled}" min="1" max="65536" step="1" .value="${connection === null || connection === void 0 ? void 0 : connection.port}"
|
|
299
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("port", e.detail.value)}"
|
|
300
|
+
></or-mwc-input>
|
|
301
|
+
<or-mwc-input id="gateway-realm" .label="${i18next.t("realm")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.realm}"
|
|
302
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("realm", e.detail.value)}"
|
|
303
|
+
></or-mwc-input>
|
|
304
|
+
<div></div>
|
|
305
|
+
</div>
|
|
306
|
+
<div id="gateway-column-2" class="gateway-column">
|
|
307
|
+
<div></div>
|
|
308
|
+
<or-mwc-input id="gateway-clientid" .label="${i18next.t("clientId")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.clientId}"
|
|
309
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("clientId", e.detail.value)}"
|
|
310
|
+
></or-mwc-input>
|
|
311
|
+
<or-mwc-input id="gateway-clientsecret" .label="${i18next.t("clientSecret")}" required .type="${InputType.TEXT}" ?disabled="${disabled}" .value="${connection === null || connection === void 0 ? void 0 : connection.clientSecret}"
|
|
312
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("clientSecret", e.detail.value)}"
|
|
313
|
+
></or-mwc-input>
|
|
314
|
+
<or-mwc-input id="gateway-secured" .label="${i18next.t("secured")}" .type="${InputType.CHECKBOX}" style="height: 56px;" ?disabled="${disabled}" .value="${(connection === null || connection === void 0 ? void 0 : connection.secured) || false}"
|
|
315
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("secured", e.detail.value)}"
|
|
316
|
+
></or-mwc-input>
|
|
317
|
+
</div>
|
|
318
318
|
`;
|
|
319
319
|
});
|
|
320
320
|
}
|
|
@@ -333,61 +333,61 @@ let PageGateway = class PageGateway extends Page {
|
|
|
333
333
|
const attrAmountArr = (_d = connection.attributeFilters) === null || _d === void 0 ? void 0 : _d.map(filter => { var _a, _b, _c; return ((_c = (_b = (_a = filter.matcher) === null || _a === void 0 ? void 0 : _a.attributes) === null || _b === void 0 ? void 0 : _b.items) === null || _c === void 0 ? void 0 : _c.length) || 0; });
|
|
334
334
|
const attrAmount = attrAmountArr === null || attrAmountArr === void 0 ? void 0 : attrAmountArr.reduce((a, b) => a + b, 0);
|
|
335
335
|
const controlStyling = controlsDisabled ? "--mdc-theme-text-primary-on-background: lightgray; color: lightgray" : undefined;
|
|
336
|
-
return html `
|
|
337
|
-
<div id="gateway-column-3" class="gateway-column">
|
|
338
|
-
${when(isCustom, () => html `
|
|
339
|
-
<or-translate value="gateway.limit_sharing_is_custom_error"></or-translate>
|
|
340
|
-
`, () => html `
|
|
341
|
-
<div></div>
|
|
342
|
-
`)}
|
|
343
|
-
<div class="gateway-sharing-control" style="${controlStyling}">
|
|
344
|
-
<or-mwc-input .label="${i18next.t("gateway.limit_sharing_attribute")}" .type="${InputType.CHECKBOX}"
|
|
345
|
-
?disabled="${controlsDisabled}" .value="${controlsDisabled ? undefined : filterChecked}"
|
|
346
|
-
@or-mwc-input-changed="${(e) => this._onLimitAttributesCheck(e)}"
|
|
347
|
-
></or-mwc-input>
|
|
348
|
-
<div class="gateway-sharing-control-child">
|
|
349
|
-
<or-mwc-input .type="${InputType.BUTTON}" raised ?disabled="${filterDisabled}"
|
|
350
|
-
label="${attrAmount || 0} ${i18next.t("gateway.limit_sharing_attribute_selected")}"
|
|
351
|
-
@or-mwc-input-changed="${(e) => this._onLimitAttributesButtonClick(e)}"
|
|
352
|
-
></or-mwc-input>
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
<div class="gateway-sharing-control" style="${controlStyling}">
|
|
356
|
-
<or-mwc-input .label="${i18next.t("gateway.limit_sharing_rate")}" .type="${InputType.CHECKBOX}"
|
|
357
|
-
?disabled="${controlsDisabled}" .value="${!controlsDisabled && interval !== undefined}"
|
|
358
|
-
@or-mwc-input-changed="${(e) => this._onAttributesIntervalUpdate(e.detail.value ? 1 : undefined)}"
|
|
359
|
-
></or-mwc-input>
|
|
360
|
-
<div class="gateway-sharing-control-child">
|
|
361
|
-
<or-mwc-input .type="${InputType.NUMBER}" compact outlined ?disabled="${intervalDisabled}" .value="${controlsDisabled ? undefined : interval}" style="width: 84px;"
|
|
362
|
-
@or-mwc-input-changed="${(e) => this._onAttributesIntervalUpdate(e.detail.value)}"
|
|
363
|
-
></or-mwc-input>
|
|
364
|
-
<or-translate value="gateway.limit_sharing_rate_suffix"></or-translate>
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
336
|
+
return html `
|
|
337
|
+
<div id="gateway-column-3" class="gateway-column">
|
|
338
|
+
${when(isCustom, () => html `
|
|
339
|
+
<or-translate value="gateway.limit_sharing_is_custom_error"></or-translate>
|
|
340
|
+
`, () => html `
|
|
341
|
+
<div></div>
|
|
342
|
+
`)}
|
|
343
|
+
<div class="gateway-sharing-control" style="${controlStyling}">
|
|
344
|
+
<or-mwc-input .label="${i18next.t("gateway.limit_sharing_attribute")}" .type="${InputType.CHECKBOX}"
|
|
345
|
+
?disabled="${controlsDisabled}" .value="${controlsDisabled ? undefined : filterChecked}"
|
|
346
|
+
@or-mwc-input-changed="${(e) => this._onLimitAttributesCheck(e)}"
|
|
347
|
+
></or-mwc-input>
|
|
348
|
+
<div class="gateway-sharing-control-child">
|
|
349
|
+
<or-mwc-input .type="${InputType.BUTTON}" raised ?disabled="${filterDisabled}"
|
|
350
|
+
label="${attrAmount || 0} ${i18next.t("gateway.limit_sharing_attribute_selected")}"
|
|
351
|
+
@or-mwc-input-changed="${(e) => this._onLimitAttributesButtonClick(e)}"
|
|
352
|
+
></or-mwc-input>
|
|
353
|
+
</div>
|
|
354
|
+
</div>
|
|
355
|
+
<div class="gateway-sharing-control" style="${controlStyling}">
|
|
356
|
+
<or-mwc-input .label="${i18next.t("gateway.limit_sharing_rate")}" .type="${InputType.CHECKBOX}"
|
|
357
|
+
?disabled="${controlsDisabled}" .value="${!controlsDisabled && interval !== undefined}"
|
|
358
|
+
@or-mwc-input-changed="${(e) => this._onAttributesIntervalUpdate(e.detail.value ? 1 : undefined)}"
|
|
359
|
+
></or-mwc-input>
|
|
360
|
+
<div class="gateway-sharing-control-child">
|
|
361
|
+
<or-mwc-input .type="${InputType.NUMBER}" compact outlined ?disabled="${intervalDisabled}" .value="${controlsDisabled ? undefined : interval}" style="width: 84px;"
|
|
362
|
+
@or-mwc-input-changed="${(e) => this._onAttributesIntervalUpdate(e.detail.value)}"
|
|
363
|
+
></or-mwc-input>
|
|
364
|
+
<or-translate value="gateway.limit_sharing_rate_suffix"></or-translate>
|
|
365
|
+
</div>
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
368
|
`;
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
371
|
_getAssetSyncRulesColumns(connection_1) {
|
|
372
372
|
return __awaiter(this, arguments, void 0, function* (connection, disabled = true) {
|
|
373
373
|
const controlStyling = disabled ? "--mdc-theme-text-primary-on-background: lightgray; color: lightgray" : undefined;
|
|
374
|
-
return html `
|
|
375
|
-
<div id="gateway-column-4" class="gateway-column">
|
|
376
|
-
<div class="gateway-sharing-control" style="${controlStyling}">
|
|
377
|
-
<or-mwc-input .label="${i18next.t("gateway.assetSyncRulesEnable")}" .type="${InputType.CHECKBOX}"
|
|
378
|
-
?disabled="${disabled}" .value="${!!connection.assetSyncRules}"
|
|
379
|
-
@or-mwc-input-changed="${(e) => this._onAssetSyncRulesToggle(!!e.detail.value)}"
|
|
380
|
-
></or-mwc-input>
|
|
381
|
-
<div class="gateway-sharing-control-child">
|
|
382
|
-
<or-mwc-input .type="${InputType.JSON_OBJECT}" ?disabled="${disabled || !connection.assetSyncRules}"
|
|
383
|
-
.value="${connection === null || connection === void 0 ? void 0 : connection.assetSyncRules}"
|
|
384
|
-
resizevertical
|
|
385
|
-
@or-mwc-input-changed="${(e) => this._setConnectionProperty("assetSyncRules", e.detail.value)}"
|
|
386
|
-
.label="${i18next.t('gateway.assetSyncRulesInput')}" style="width: 100%;"></or-mwc-input>
|
|
387
|
-
<or-translate value=""></or-translate>
|
|
388
|
-
</div>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
374
|
+
return html `
|
|
375
|
+
<div id="gateway-column-4" class="gateway-column">
|
|
376
|
+
<div class="gateway-sharing-control" style="${controlStyling}">
|
|
377
|
+
<or-mwc-input .label="${i18next.t("gateway.assetSyncRulesEnable")}" .type="${InputType.CHECKBOX}"
|
|
378
|
+
?disabled="${disabled}" .value="${!!connection.assetSyncRules}"
|
|
379
|
+
@or-mwc-input-changed="${(e) => this._onAssetSyncRulesToggle(!!e.detail.value)}"
|
|
380
|
+
></or-mwc-input>
|
|
381
|
+
<div class="gateway-sharing-control-child">
|
|
382
|
+
<or-mwc-input .type="${InputType.JSON_OBJECT}" ?disabled="${disabled || !connection.assetSyncRules}"
|
|
383
|
+
.value="${connection === null || connection === void 0 ? void 0 : connection.assetSyncRules}"
|
|
384
|
+
resizevertical
|
|
385
|
+
@or-mwc-input-changed="${(e) => this._setConnectionProperty("assetSyncRules", e.detail.value)}"
|
|
386
|
+
.label="${i18next.t('gateway.assetSyncRulesInput')}" style="width: 100%;"></or-mwc-input>
|
|
387
|
+
<or-translate value=""></or-translate>
|
|
388
|
+
</div>
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
391
|
`;
|
|
392
392
|
});
|
|
393
393
|
}
|
|
@@ -626,8 +626,8 @@ let PageGateway = class PageGateway extends Page {
|
|
|
626
626
|
const editorRef = createRef();
|
|
627
627
|
showDialog(new OrMwcDialog()
|
|
628
628
|
.setHeading("JSON Editor")
|
|
629
|
-
.setContent(html `
|
|
630
|
-
<or-ace-editor ${ref(editorRef)} .value="${connection === null || connection === void 0 ? void 0 : connection.attributeFilters}" style="height: 60vh; width: 1024px;"></or-ace-editor>
|
|
629
|
+
.setContent(html `
|
|
630
|
+
<or-ace-editor ${ref(editorRef)} .value="${connection === null || connection === void 0 ? void 0 : connection.attributeFilters}" style="height: 60vh; width: 1024px;"></or-ace-editor>
|
|
631
631
|
`)
|
|
632
632
|
.setActions([
|
|
633
633
|
{ actionName: "cancel", content: "cancel" },
|
|
@@ -41,16 +41,16 @@ export function pageInsightsProvider(store, config) {
|
|
|
41
41
|
let PageInsights = class PageInsights extends Page {
|
|
42
42
|
static get styles() {
|
|
43
43
|
// language=CSS
|
|
44
|
-
return css `
|
|
45
|
-
|
|
46
|
-
:host {
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
#builder {
|
|
51
|
-
z-index: 0;
|
|
52
|
-
background: transparent;
|
|
53
|
-
}
|
|
44
|
+
return css `
|
|
45
|
+
|
|
46
|
+
:host {
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#builder {
|
|
51
|
+
z-index: 0;
|
|
52
|
+
background: transparent;
|
|
53
|
+
}
|
|
54
54
|
`;
|
|
55
55
|
}
|
|
56
56
|
/* ------------------ */
|
|
@@ -84,15 +84,15 @@ let PageInsights = class PageInsights extends Page {
|
|
|
84
84
|
super.connectedCallback();
|
|
85
85
|
}
|
|
86
86
|
render() {
|
|
87
|
-
return html `
|
|
88
|
-
<div style="width: 100%;">
|
|
89
|
-
<or-dashboard-builder id="builder" .editMode="${this._editMode}" .fullscreen="${this._fullscreen}" .selectedId="${this._dashboardId}"
|
|
90
|
-
.realm="${manager.displayRealm}" .userId="${this._userId}" .readonly="${!manager.hasRole("write:insights" /* ClientRole.WRITE_INSIGHTS */)}"
|
|
91
|
-
@selected="${(event) => { var _a; this._dashboardId = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.id; }}"
|
|
92
|
-
@editToggle="${(event) => { this._editMode = event.detail; this._fullscreen = true; this._updateRoute(false); }}"
|
|
93
|
-
@fullscreenToggle="${(event) => { this._fullscreen = event.detail; }}"
|
|
94
|
-
></or-dashboard-builder>
|
|
95
|
-
</div>
|
|
87
|
+
return html `
|
|
88
|
+
<div style="width: 100%;">
|
|
89
|
+
<or-dashboard-builder id="builder" .editMode="${this._editMode}" .fullscreen="${this._fullscreen}" .selectedId="${this._dashboardId}"
|
|
90
|
+
.realm="${manager.displayRealm}" .userId="${this._userId}" .readonly="${!manager.hasRole("write:insights" /* ClientRole.WRITE_INSIGHTS */)}"
|
|
91
|
+
@selected="${(event) => { var _a; this._dashboardId = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.id; }}"
|
|
92
|
+
@editToggle="${(event) => { this._editMode = event.detail; this._fullscreen = true; this._updateRoute(false); }}"
|
|
93
|
+
@fullscreenToggle="${(event) => { this._fullscreen = event.detail; }}"
|
|
94
|
+
></or-dashboard-builder>
|
|
95
|
+
</div>
|
|
96
96
|
`;
|
|
97
97
|
}
|
|
98
98
|
stateChanged(state) {
|
package/lib/pages/page-logs.js
CHANGED
|
@@ -25,15 +25,15 @@ export function pageLogsProvider(store, config) {
|
|
|
25
25
|
let PageLogs = class PageLogs extends Page {
|
|
26
26
|
static get styles() {
|
|
27
27
|
// language=CSS
|
|
28
|
-
return css `
|
|
29
|
-
:host {
|
|
30
|
-
flex: 1;
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
or-log-viewer {
|
|
35
|
-
width: 100%;
|
|
36
|
-
}
|
|
28
|
+
return css `
|
|
29
|
+
:host {
|
|
30
|
+
flex: 1;
|
|
31
|
+
width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
or-log-viewer {
|
|
35
|
+
width: 100%;
|
|
36
|
+
}
|
|
37
37
|
`;
|
|
38
38
|
}
|
|
39
39
|
get name() {
|
|
@@ -46,8 +46,8 @@ let PageLogs = class PageLogs extends Page {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
var _a;
|
|
49
|
-
return html `
|
|
50
|
-
<or-log-viewer .config="${(_a = this.config) === null || _a === void 0 ? void 0 : _a.viewer}"></or-log-viewer>
|
|
49
|
+
return html `
|
|
50
|
+
<or-log-viewer .config="${(_a = this.config) === null || _a === void 0 ? void 0 : _a.viewer}"></or-log-viewer>
|
|
51
51
|
`;
|
|
52
52
|
}
|
|
53
53
|
};
|