@openremote/or-asset-viewer 1.4.0-snapshot.20250304170726 → 1.4.0-snapshot.20250311100033
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 +1 -1
- package/dist/umd/index.orbundle.js +2 -2
- package/lib/or-edit-asset-panel.js +14 -14
- package/lib/or-edit-asset-panel.js.map +1 -1
- package/package.json +15 -15
package/dist/umd/index.js
CHANGED
|
@@ -1322,7 +1322,7 @@
|
|
|
1322
1322
|
.overflow-visible {
|
|
1323
1323
|
overflow: visible;
|
|
1324
1324
|
}
|
|
1325
|
-
`;class go extends CustomEvent{constructor(e){super(go.NAME,{bubbles:!0,composed:!0,detail:e})}}go.NAME="or-edit-asset-modified";const bo=/^\w+$/;let yo=class extends le{constructor(){super(...arguments),this.attributeTemplatesAndValidators=[],this.changedAttributes=[],this.expandedAll=!1}static get styles(){return[r(fo),er,_o]}attributeUpdated(e){this.asset&&(this.changedAttributes.push(e),this.requestUpdate())}shouldUpdate(e){
|
|
1325
|
+
`;class go extends CustomEvent{constructor(e){super(go.NAME,{bubbles:!0,composed:!0,detail:e})}}go.NAME="or-edit-asset-modified";const bo=/^\w+$/;let yo=class extends le{constructor(){super(...arguments),this.attributeTemplatesAndValidators=[],this.changedAttributes=[],this.expandedAll=!1}static get styles(){return[r(fo),er,_o]}attributeUpdated(e){this.asset&&(this.changedAttributes.push(e),this.requestUpdate())}shouldUpdate(e){if(e.has("asset")){const t=e.get("asset");this.asset.attributes&&(null==t?void 0:t.attributes)&&this.asset.id===t.id?this.changedAttributes=Object.values(t.attributes).filter((({name:e,timestamp:t})=>{var n;return t!==(null===(n=this.asset.attributes)||void 0===n?void 0:n[e].timestamp)})).map((({name:e})=>e)):this.changedAttributes=[]}return super.shouldUpdate(e)}render(){const e=e=>{this.asset.accessPublicRead=e,this._onModified()},t=[ss("type",void 0,os(this.asset,"type",this,void 0,void 0,{readonly:!0,label:co.t("assetType")})),ss("parent",void 0,this._getParentTemplate()),$`<div @or-mwc-input-changed="${t=>e(t.detail.value)}">
|
|
1326
1326
|
${ss("accessPublicRead",void 0,os(this.asset,"accessPublicRead",this,void 0,void 0,{readonly:!1,label:co.t("accessPublicRead")}))}
|
|
1327
1327
|
</div>`],n=e=>{const t=e.getElementsByTagName("or-icon")[0],n=e.parentElement,i=n.parentElement.rows[n.rowIndex],a=i.firstElementChild.firstElementChild,r=Math.max(500,a.firstElementChild.getBoundingClientRect().height);"chevron-right"===t.icon?(t.icon="chevron-down",i.classList.add("expanded"),a.style.maxHeight=r+"px",e.classList.add("expanding"),window.setTimeout((()=>{e.classList.remove("expanding"),a.style.maxHeight="unset"}),250)):(t.icon="chevron-right",i.classList.remove("expanded"),a.style.maxHeight=Math.max(500,a.firstElementChild.getBoundingClientRect().height)+"px",window.setTimeout((()=>{a.style.maxHeight=""})))};this.attributeTemplatesAndValidators=this.asset.attributes?Object.entries(this.asset.attributes).sort(gi.Util.sortByString((([e,t])=>e.toUpperCase()))).map((([e,t])=>(t.name=e,this._getAttributeTemplate(this.asset.type,t)))):[];const i=$`
|
|
1328
1328
|
<div id="attribute-table" class="mdc-data-table">
|