@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.
@@ -156,19 +156,19 @@ let OrConfRealmCard = class OrConfRealmCard extends LitElement {
156
156
  showDialog(new OrMwcDialog()
157
157
  .setHeading(i18next.t('delete'))
158
158
  .setActions(dialogActions)
159
- .setContent(html `
160
- ${i18next.t('configuration.deleteRealmCustomizationConfirm')}
159
+ .setContent(html `
160
+ ${i18next.t('configuration.deleteRealmCustomizationConfirm')}
161
161
  `)
162
- .setStyles(html `
163
- <style>
164
- .mdc-dialog__surface {
165
- padding: 4px 8px;
166
- }
167
-
168
- #dialog-content {
169
- padding: 24px;
170
- }
171
- </style>
162
+ .setStyles(html `
163
+ <style>
164
+ .mdc-dialog__surface {
165
+ padding: 4px 8px;
166
+ }
167
+
168
+ #dialog-content {
169
+ padding: 24px;
170
+ }
171
+ </style>
172
172
  `)
173
173
  .setDismissAction(null));
174
174
  }
@@ -188,104 +188,104 @@ let OrConfRealmCard = class OrConfRealmCard extends LitElement {
188
188
  (!search && ((_a = app.realm.notifications) === null || _a === void 0 ? void 0 : _a.languages.includes(entry[0]))) ||
189
189
  entry[1].toLowerCase().includes(search === null || search === void 0 ? void 0 : search.toLowerCase());
190
190
  });
191
- return html `
192
- <or-collapsible-panel .expanded="${app.expanded}">
193
- <div slot="header" class="header-container">
194
- ${app.name}
195
- </div>
196
- <div slot="content" class="panel-content">
197
- <div class="subheader">${i18next.t("configuration.main")}</div>
198
- <or-mwc-input class="appTitle" .type="${InputType.TEXT}" .label="${i18next.t("configuration.realmTitle")}" value="${(_b = app.realm) === null || _b === void 0 ? void 0 : _b.appTitle}"
191
+ return html `
192
+ <or-collapsible-panel .expanded="${app.expanded}">
193
+ <div slot="header" class="header-container">
194
+ ${app.name}
195
+ </div>
196
+ <div slot="content" class="panel-content">
197
+ <div class="subheader">${i18next.t("configuration.main")}</div>
198
+ <or-mwc-input class="appTitle" .type="${InputType.TEXT}" .label="${i18next.t("configuration.realmTitle")}" value="${(_b = app.realm) === null || _b === void 0 ? void 0 : _b.appTitle}"
199
199
  @or-mwc-input-changed="${(e) => {
200
200
  app.realm.appTitle = e.detail.value;
201
201
  app.notifyConfigChange(app.realm);
202
- }}"
203
- ></or-mwc-input>
204
- <or-mwc-input class="language" .type="${InputType.SELECT}" .label="${i18next.t("configuration.defaultLanguage")}" value="${(_c = app.realm) === null || _c === void 0 ? void 0 : _c.language}"
205
- .options="${Object.entries(DEFAULT_LANGUAGES).map(([key, value]) => [key, i18next.t(value)])}"
202
+ }}"
203
+ ></or-mwc-input>
204
+ <or-mwc-input class="language" .type="${InputType.SELECT}" .label="${i18next.t("configuration.defaultLanguage")}" value="${(_c = app.realm) === null || _c === void 0 ? void 0 : _c.language}"
205
+ .options="${Object.entries(DEFAULT_LANGUAGES).map(([key, value]) => [key, i18next.t(value)])}"
206
206
  @or-mwc-input-changed="${(e) => {
207
207
  app.realm.language = e.detail.value;
208
208
  app.notifyConfigChange(app.realm);
209
- }}"
210
- ></or-mwc-input>
211
- <div class="logo-group">
212
- <div class="subheader">${i18next.t("configuration.images")}</div>
213
- <div class="d-inline-flex">
214
- <or-file-uploader .title="${i18next.t('configuration.logo')}"
215
- @change="${(e) => __awaiter(this, void 0, void 0, function* () { return yield app._setImageForUpload(e.detail.value[0], "logo"); })}"
216
- .src="${app.logo ? app.logo : app.realm.logo}" .managerUrl="${managerUrl}"></or-file-uploader>
217
- <or-file-uploader .title="${i18next.t('configuration.logoMobile')}"
218
- @change="${(e) => __awaiter(this, void 0, void 0, function* () { return yield app._setImageForUpload(e.detail.value[0], "logoMobile"); })}"
219
- .src="${app.logoMobile ? app.logoMobile : app.realm.logoMobile}" .managerUrl="${managerUrl}"></or-file-uploader>
220
- <or-file-uploader .title="${html `Favicon`}"
221
- @change="${(e) => __awaiter(this, void 0, void 0, function* () { return yield app._setImageForUpload(e.detail.value[0], "favicon"); })}"
222
- .src="${app.favicon ? app.favicon : app.realm.favicon}" .managerUrl="${managerUrl}"></or-file-uploader>
223
- </div>
224
- </div>
225
- <div class="color-group">
226
- <div class="subheader">${i18next.t('configuration.realmColors')}</div>
227
- <div>
228
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color4"]}"
229
- .label="${i18next.t('configuration.--or-app-color4')}"
230
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color4", e.detail.value)}"></or-mwc-input>
231
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color5"]}"
232
- .label="${i18next.t('configuration.--or-app-color5')}"
233
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color5", e.detail.value)}"></or-mwc-input>
234
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color6"]}"
235
- .label="${i18next.t("configuration.--or-app-color6")}"
236
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color6", e.detail.value)}"></or-mwc-input>
237
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color1"]}"
238
- .label="${i18next.t("configuration.--or-app-color1")}"
239
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color1", e.detail.value)}"></or-mwc-input>
240
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color2"]}"
241
- .label="${i18next.t("configuration.--or-app-color2")}"
242
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color2", e.detail.value)}"></or-mwc-input>
243
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color3"]}"
244
- .label="${i18next.t("configuration.--or-app-color3")}"
245
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color3", e.detail.value)}"></or-mwc-input>
246
- <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color8"]}"
247
- .label="${i18next.t("configuration.--or-app-color8")}"
248
- @or-mwc-input-changed="${(e) => app._setColor("--or-app-color8", e.detail.value)}"></or-mwc-input>
249
- </div>
250
- </div>
251
- <div class="header-group">
252
- <div class="subheader">${i18next.t("configuration.navigation")}</div>
253
- <span>${i18next.t("configuration.navigationDescription")}</span>
254
- <div>
255
- <or-mwc-input
256
- .type="${InputType.SELECT}" multiple
257
- class="header-item"
258
- .label="${i18next.t("configuration.primaryNavigation")}"
209
+ }}"
210
+ ></or-mwc-input>
211
+ <div class="logo-group">
212
+ <div class="subheader">${i18next.t("configuration.images")}</div>
213
+ <div class="d-inline-flex">
214
+ <or-file-uploader .title="${i18next.t('configuration.logo')}"
215
+ @change="${(e) => __awaiter(this, void 0, void 0, function* () { return yield app._setImageForUpload(e.detail.value[0], "logo"); })}"
216
+ .src="${app.logo ? app.logo : app.realm.logo}" .managerUrl="${managerUrl}"></or-file-uploader>
217
+ <or-file-uploader .title="${i18next.t('configuration.logoMobile')}"
218
+ @change="${(e) => __awaiter(this, void 0, void 0, function* () { return yield app._setImageForUpload(e.detail.value[0], "logoMobile"); })}"
219
+ .src="${app.logoMobile ? app.logoMobile : app.realm.logoMobile}" .managerUrl="${managerUrl}"></or-file-uploader>
220
+ <or-file-uploader .title="${html `Favicon`}"
221
+ @change="${(e) => __awaiter(this, void 0, void 0, function* () { return yield app._setImageForUpload(e.detail.value[0], "favicon"); })}"
222
+ .src="${app.favicon ? app.favicon : app.realm.favicon}" .managerUrl="${managerUrl}"></or-file-uploader>
223
+ </div>
224
+ </div>
225
+ <div class="color-group">
226
+ <div class="subheader">${i18next.t('configuration.realmColors')}</div>
227
+ <div>
228
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color4"]}"
229
+ .label="${i18next.t('configuration.--or-app-color4')}"
230
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color4", e.detail.value)}"></or-mwc-input>
231
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color5"]}"
232
+ .label="${i18next.t('configuration.--or-app-color5')}"
233
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color5", e.detail.value)}"></or-mwc-input>
234
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color6"]}"
235
+ .label="${i18next.t("configuration.--or-app-color6")}"
236
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color6", e.detail.value)}"></or-mwc-input>
237
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color1"]}"
238
+ .label="${i18next.t("configuration.--or-app-color1")}"
239
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color1", e.detail.value)}"></or-mwc-input>
240
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color2"]}"
241
+ .label="${i18next.t("configuration.--or-app-color2")}"
242
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color2", e.detail.value)}"></or-mwc-input>
243
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color3"]}"
244
+ .label="${i18next.t("configuration.--or-app-color3")}"
245
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color3", e.detail.value)}"></or-mwc-input>
246
+ <or-mwc-input class="color-item" .type="${InputType.COLOUR}" value="${colors["--or-app-color8"]}"
247
+ .label="${i18next.t("configuration.--or-app-color8")}"
248
+ @or-mwc-input-changed="${(e) => app._setColor("--or-app-color8", e.detail.value)}"></or-mwc-input>
249
+ </div>
250
+ </div>
251
+ <div class="header-group">
252
+ <div class="subheader">${i18next.t("configuration.navigation")}</div>
253
+ <span>${i18next.t("configuration.navigationDescription")}</span>
254
+ <div>
255
+ <or-mwc-input
256
+ .type="${InputType.SELECT}" multiple
257
+ class="header-item"
258
+ .label="${i18next.t("configuration.primaryNavigation")}"
259
259
  .value="${!!app.realm.headers ? (_d = app.realm.headers) === null || _d === void 0 ? void 0 : _d.filter(function (ele) {
260
260
  return app.headerListPrimary.includes(ele);
261
- }) : app.headerListPrimary}"
262
- .options="${app.headerListPrimary}"
263
- @or-mwc-input-changed="${(e) => app._setHeader(e.detail.value, app.headerListPrimary)}"
264
- ></or-mwc-input>
265
- <or-mwc-input
266
- .type="${InputType.SELECT}" multiple
267
- class="header-item"
268
- .label="${i18next.t("configuration.secondaryNavigation")}"
261
+ }) : app.headerListPrimary}"
262
+ .options="${app.headerListPrimary}"
263
+ @or-mwc-input-changed="${(e) => app._setHeader(e.detail.value, app.headerListPrimary)}"
264
+ ></or-mwc-input>
265
+ <or-mwc-input
266
+ .type="${InputType.SELECT}" multiple
267
+ class="header-item"
268
+ .label="${i18next.t("configuration.secondaryNavigation")}"
269
269
  .value="${!!app.realm.headers ? (_e = app.realm.headers) === null || _e === void 0 ? void 0 : _e.filter(function (ele) {
270
270
  return app.headerListSecondary.includes(ele);
271
- }) : app.headerListSecondary}"
272
- .options="${app.headerListSecondary}"
273
- @or-mwc-input-changed="${(e) => app._setHeader(e.detail.value, app.headerListSecondary)}"
274
- ></or-mwc-input>
275
- </div>
276
- </div>
277
- <div class="header-group">
278
- <div class="subheader">${i18next.t("configuration.notificationLanguages")}</div>
279
- <span>${i18next.t("configuration.notificationLanguagesDesc")}</span>
280
- <div>
281
- <or-mwc-input
282
- .type="${InputType.SELECT}" multiple
283
- class="header-item"
284
- searchLabel="configuration.notificationLanguagesLabel"
285
- .label="${i18next.t("configuration.notificationLanguages")}"
286
- .value="${((_f = app.realm.notifications) === null || _f === void 0 ? void 0 : _f.languages) || []}"
287
- .options="${this._languages}"
288
- .searchProvider="${searchProvider}"
271
+ }) : app.headerListSecondary}"
272
+ .options="${app.headerListSecondary}"
273
+ @or-mwc-input-changed="${(e) => app._setHeader(e.detail.value, app.headerListSecondary)}"
274
+ ></or-mwc-input>
275
+ </div>
276
+ </div>
277
+ <div class="header-group">
278
+ <div class="subheader">${i18next.t("configuration.notificationLanguages")}</div>
279
+ <span>${i18next.t("configuration.notificationLanguagesDesc")}</span>
280
+ <div>
281
+ <or-mwc-input
282
+ .type="${InputType.SELECT}" multiple
283
+ class="header-item"
284
+ searchLabel="configuration.notificationLanguagesLabel"
285
+ .label="${i18next.t("configuration.notificationLanguages")}"
286
+ .value="${((_f = app.realm.notifications) === null || _f === void 0 ? void 0 : _f.languages) || []}"
287
+ .options="${this._languages}"
288
+ .searchProvider="${searchProvider}"
289
289
  @or-mwc-input-changed="${(e) => {
290
290
  var _a;
291
291
  const newLanguages = e.detail.value;
@@ -296,116 +296,116 @@ let OrConfRealmCard = class OrConfRealmCard extends LitElement {
296
296
  };
297
297
  app.notifyConfigChange(app.realm);
298
298
  this.requestUpdate(); // force render
299
- }}"
300
- ></or-mwc-input>
299
+ }}"
300
+ ></or-mwc-input>
301
301
  ${when(((_h = (_g = app.realm.notifications) === null || _g === void 0 ? void 0 : _g.languages) === null || _h === void 0 ? void 0 : _h.length) > 0, () => {
302
302
  var _a;
303
- return html `
304
- <or-mwc-input
305
- .type="${InputType.SELECT}"
306
- class="header-item"
307
- .label="${i18next.t("configuration.defaultLanguage")}"
308
- .value="${((_a = app.realm.notifications) === null || _a === void 0 ? void 0 : _a.defaultLanguage) || []}"
309
- .options="${this._languages.filter(entry => { var _a; return (_a = app.realm.notifications) === null || _a === void 0 ? void 0 : _a.languages.includes(entry[0]); })}"
303
+ return html `
304
+ <or-mwc-input
305
+ .type="${InputType.SELECT}"
306
+ class="header-item"
307
+ .label="${i18next.t("configuration.defaultLanguage")}"
308
+ .value="${((_a = app.realm.notifications) === null || _a === void 0 ? void 0 : _a.defaultLanguage) || []}"
309
+ .options="${this._languages.filter(entry => { var _a; return (_a = app.realm.notifications) === null || _a === void 0 ? void 0 : _a.languages.includes(entry[0]); })}"
310
310
  @or-mwc-input-changed="${(e) => {
311
311
  app.realm.notifications.defaultLanguage = e.detail.value;
312
312
  app.notifyConfigChange(app.realm);
313
313
  this.requestUpdate(); // force render
314
- }}"
315
- ></or-mwc-input>
314
+ }}"
315
+ ></or-mwc-input>
316
316
  `;
317
- }, () => html `
318
- <or-mwc-input
319
- .type="${InputType.SELECT}" disabled
320
- class="header-item"
321
- .label="${i18next.t("configuration.defaultLanguage")}"
322
- ></or-mwc-input>
323
- `)}
324
- </div>
325
- </div>
326
-
327
- ${when(app.canRemove, () => html `
328
- <or-mwc-input outlined id="remove-realm" .type="${InputType.BUTTON}"
329
- label="configuration.deleteRealmCustomization"
330
- @click="${() => { app._showRemoveRealmDialog(); }}"
331
- ></or-mwc-input>
332
- `)}
333
- </div>
334
- </or-collapsible-panel>
317
+ }, () => html `
318
+ <or-mwc-input
319
+ .type="${InputType.SELECT}" disabled
320
+ class="header-item"
321
+ .label="${i18next.t("configuration.defaultLanguage")}"
322
+ ></or-mwc-input>
323
+ `)}
324
+ </div>
325
+ </div>
326
+
327
+ ${when(app.canRemove, () => html `
328
+ <or-mwc-input outlined id="remove-realm" .type="${InputType.BUTTON}"
329
+ label="configuration.deleteRealmCustomization"
330
+ @click="${() => { app._showRemoveRealmDialog(); }}"
331
+ ></or-mwc-input>
332
+ `)}
333
+ </div>
334
+ </or-collapsible-panel>
335
335
  `;
336
336
  }
337
337
  };
338
- OrConfRealmCard.styles = css `
339
- .language {
340
- width: 100%;
341
- padding: 10px 0px;
342
- max-width: 800px;
343
- }
344
-
345
- .appTitle {
346
- width: 100%;
347
- max-width: 800px;
348
- padding: 10px 0px;
349
- }
350
-
351
- .header-group .header-item {
352
- width: 100%;
353
- padding: 10px 0px;
354
- max-width: 800px;
355
- }
356
-
357
- .color-group .color-item {
358
- width: 100%;
359
- }
360
-
361
- .logo-group {
362
- width: 100%;
363
- }
364
-
365
- @media screen and (max-width: 768px) {
366
- .logo-group or-file-uploader {
367
- min-width: calc(50% - 6px);
368
- padding: 0 12px 12px 0!important;
369
- }
370
-
371
- .logo-group or-file-uploader:nth-child(2n + 2){
372
- padding: 0 0 12px 0!important;
373
- }
374
-
375
- .logo-group .d-inline-flex{
376
- display: flex;
377
- flex-wrap: wrap;
378
- }
379
- }
380
-
381
- .logo-group or-file-uploader {
382
- padding: 0 24px 12px 0;
383
- }
384
-
385
- #remove-realm {
386
- margin: 12px 0 0 0;
387
- }
388
-
389
- .subheader {
390
- padding: 10px 0 4px;
391
- font-weight: bolder;
392
- }
393
-
394
- .d-inline-flex {
395
- display: inline-flex;
396
- }
397
-
398
- .panel-content {
399
- padding: 0 24px 24px;
400
- }
401
-
402
- .description {
403
- font-size: 12px;
404
- }
405
-
406
- or-collapsible-panel {
407
- margin-bottom: 10px;
408
- }
338
+ OrConfRealmCard.styles = css `
339
+ .language {
340
+ width: 100%;
341
+ padding: 10px 0px;
342
+ max-width: 800px;
343
+ }
344
+
345
+ .appTitle {
346
+ width: 100%;
347
+ max-width: 800px;
348
+ padding: 10px 0px;
349
+ }
350
+
351
+ .header-group .header-item {
352
+ width: 100%;
353
+ padding: 10px 0px;
354
+ max-width: 800px;
355
+ }
356
+
357
+ .color-group .color-item {
358
+ width: 100%;
359
+ }
360
+
361
+ .logo-group {
362
+ width: 100%;
363
+ }
364
+
365
+ @media screen and (max-width: 768px) {
366
+ .logo-group or-file-uploader {
367
+ min-width: calc(50% - 6px);
368
+ padding: 0 12px 12px 0!important;
369
+ }
370
+
371
+ .logo-group or-file-uploader:nth-child(2n + 2){
372
+ padding: 0 0 12px 0!important;
373
+ }
374
+
375
+ .logo-group .d-inline-flex{
376
+ display: flex;
377
+ flex-wrap: wrap;
378
+ }
379
+ }
380
+
381
+ .logo-group or-file-uploader {
382
+ padding: 0 24px 12px 0;
383
+ }
384
+
385
+ #remove-realm {
386
+ margin: 12px 0 0 0;
387
+ }
388
+
389
+ .subheader {
390
+ padding: 10px 0 4px;
391
+ font-weight: bolder;
392
+ }
393
+
394
+ .d-inline-flex {
395
+ display: inline-flex;
396
+ }
397
+
398
+ .panel-content {
399
+ padding: 0 24px 24px;
400
+ }
401
+
402
+ .description {
403
+ font-size: 12px;
404
+ }
405
+
406
+ or-collapsible-panel {
407
+ margin-bottom: 10px;
408
+ }
409
409
  `;
410
410
  __decorate([
411
411
  property({ attribute: false })