@openremote/or-asset-tree 1.24.0 → 1.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/umd/index.js CHANGED
@@ -256,9 +256,9 @@
256
256
  <or-translate id="type-description" .value="${s.Util.getAssetTypeLabel(t)}"></or-translate>
257
257
  </div>
258
258
  <div id="name-wrapper">
259
- <or-mwc-input id="name-input" .type="${a.NZ.TEXT}" min="1" max="1023" required .label="${d.i18next.t("name")}" .value="${this.name}" @or-mwc-input-changed="${t=>this.onNameChanged(t.detail.value)}"></or-mwc-input>
259
+ <or-mwc-input id="name-input" .type="${a.NZ.TEXT}" min="1" max="1023" required label="${d.i18next.t("name")}" .value="${this.name}" @or-mwc-input-changed="${t=>this.onNameChanged(t.detail.value)}"></or-mwc-input>
260
260
  <div id="parent-wrapper">
261
- <or-mwc-input id="parent" .type="${a.NZ.TEXT}" readonly .label="${d.i18next.t("parent")}" .value="${e}" @click="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
261
+ <or-mwc-input id="parent" .type="${a.NZ.TEXT}" readonly label="${d.i18next.t("parent")}" .value="${e}" @click="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
262
262
  <or-mwc-input id="remove-parent" ?disabled="${!this.parent}" type="${a.NZ.BUTTON}" icon="close" @or-mwc-input-changed="${()=>this._onDeselectClicked()}"></or-mwc-input>
263
263
  <or-mwc-input id="toggle-parent-selector" icon="${this.showParentAssetSelector?"pencil-off":"pencil"}" type="${a.NZ.BUTTON}" @or-mwc-input-changed="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
264
264
  </div>
@@ -266,10 +266,10 @@
266
266
 
267
267
  ${!c?(0,i.qy)``:(0,i.qy)`
268
268
  <div>
269
- <div class="heading">${d.i18next.t("attribute_plural")}</div>
269
+ <div class="heading"><or-translate value="attribute_plural"></or-translate></div>
270
270
  <div style="display: grid">
271
- ${c.sort(s.Util.sortByString(t=>t.name)).map(t=>(0,i.qy)`
272
- <or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,t,void 0,!0)}"
271
+ ${c.sort(s.Util.sortByString(t=>t.name)).map(e=>(0,i.qy)`
272
+ <or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,e,t.name,!0)}"
273
273
  .disabled="${!0}" .value="${!0}"></or-mwc-input>
274
274
  `)}
275
275
  </div>
@@ -277,12 +277,12 @@
277
277
 
278
278
  ${!m?(0,i.qy)``:(0,i.qy)`
279
279
  <div>
280
- <div class="heading">${d.i18next.t("optional_attributes")}</div>
280
+ <div class="heading"><or-translate value="optional_attributes"></or-translate></div>
281
281
  <div style="display: grid">
282
- ${m.sort(s.Util.sortByString(t=>t.name)).map(t=>(0,i.qy)`
283
- <or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,t,void 0,!0)}"
284
- .value="${this.selectedAttributes.find(e=>e===t)}"
285
- @or-mwc-input-changed="${e=>e.detail.value?this.selectedAttributes.push(t):this.selectedAttributes.splice(this.selectedAttributes.findIndex(e=>e===t),1)}"></or-mwc-input>
282
+ ${m.sort(s.Util.sortByString(t=>t.name)).map(e=>(0,i.qy)`
283
+ <or-mwc-input .type="${a.NZ.CHECKBOX}" .label="${s.Util.getAttributeLabel(void 0,e,t.name,!0)}"
284
+ .value="${this.selectedAttributes.find(t=>t===e)}"
285
+ @or-mwc-input-changed="${t=>t.detail.value?this.selectedAttributes.push(e):this.selectedAttributes.splice(this.selectedAttributes.findIndex(t=>t===e),1)}"></or-mwc-input>
286
286
  `)}
287
287
  </div>
288
288
  </div>