@openremote/or-chart 1.6.0 → 1.7.0-snapshot.20250522134530
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.bundle.js
CHANGED
|
@@ -974,10 +974,10 @@
|
|
|
974
974
|
<div class="period-controls">
|
|
975
975
|
${this.timePresetOptions&&this.timePresetKey?N`
|
|
976
976
|
${this.timestampControls?N`
|
|
977
|
-
${function(t,e,n,i,r,a=!1,o=!0,s=!1,l=!1){return N`
|
|
977
|
+
${function(t,e,n,i,r,a=!1,o=!0,s=!1,l=!1,d="menu",c=!1){let u=null;return N`
|
|
978
978
|
<span>
|
|
979
|
-
<span @click="${t=>{e&&t.currentTarget.parentElement.lastElementChild.open()}}">${t}</span>
|
|
980
|
-
${e?N`<or-mwc-menu ?multiselect="${a}" @or-mwc-menu-closed="${()=>{r&&r()}}" @or-mwc-menu-changed="${t=>{i&&i(t.detail)}}" .translateValues="${o}" .values="${n}" .menuItems="${e}" .midHeight="${s}" .fullWidth="${l}" id="
|
|
979
|
+
<span @click="${t=>{if(e){if(c&&u){const e=t.currentTarget;!function(t,e){e||(e=document.body);const n=e.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:`${n.bottom}px`,left:`${n.left}px`,zIndex:"1000",display:"block"})}(u,e)}t.currentTarget.parentElement.lastElementChild.open()}}}">${t}</span>
|
|
980
|
+
${e?N`<or-mwc-menu ?multiselect="${a}" @or-mwc-menu-closed="${()=>{r&&r()}}" @or-mwc-menu-changed="${t=>{i&&i(t.detail)}}" .translateValues="${o}" .values="${n}" .menuItems="${e}" .midHeight="${s}" .fullWidth="${l}" id="${d}" ${pn((t=>u=t))}></or-mwc-menu>`:""}
|
|
981
981
|
</span>
|
|
982
982
|
`}(N`<or-mwc-input .type="${Ca.BUTTON}" label="${this.timeframe?"dashboard.customTimeSpan":this.timePresetKey}"></or-mwc-input>`,Array.from(this.timePresetOptions.keys()).map((t=>({value:t}))),this.timePresetKey,(t=>{this.timeframe=void 0,this.timePresetKey=t.toString()}),void 0,void 0,void 0,!0)}
|
|
983
983
|
<!-- Button that opens custom time selection -->
|
package/dist/umd/index.js
CHANGED
|
@@ -974,10 +974,10 @@
|
|
|
974
974
|
<div class="period-controls">
|
|
975
975
|
${this.timePresetOptions&&this.timePresetKey?j`
|
|
976
976
|
${this.timestampControls?j`
|
|
977
|
-
${function(t,e,n,i,r,o=!1,a=!0,l=!1,c=!1){return j`
|
|
977
|
+
${function(t,e,n,i,r,o=!1,a=!0,l=!1,c=!1,s="menu",d=!1){let p=null;return j`
|
|
978
978
|
<span>
|
|
979
|
-
<span @click="${t=>{e&&t.currentTarget.parentElement.lastElementChild.open()}}">${t}</span>
|
|
980
|
-
${e?j`<or-mwc-menu ?multiselect="${o}" @or-mwc-menu-closed="${()=>{r&&r()}}" @or-mwc-menu-changed="${t=>{i&&i(t.detail)}}" .translateValues="${a}" .values="${n}" .menuItems="${e}" .midHeight="${l}" .fullWidth="${c}" id="
|
|
979
|
+
<span @click="${t=>{if(e){if(d&&p){const e=t.currentTarget;!function(t,e){e||(e=document.body);const n=e.getBoundingClientRect();Object.assign(t.style,{position:"fixed",top:`${n.bottom}px`,left:`${n.left}px`,zIndex:"1000",display:"block"})}(p,e)}t.currentTarget.parentElement.lastElementChild.open()}}}">${t}</span>
|
|
980
|
+
${e?j`<or-mwc-menu ?multiselect="${o}" @or-mwc-menu-closed="${()=>{r&&r()}}" @or-mwc-menu-changed="${t=>{i&&i(t.detail)}}" .translateValues="${a}" .values="${n}" .menuItems="${e}" .midHeight="${l}" .fullWidth="${c}" id="${s}" ${fn((t=>p=t))}></or-mwc-menu>`:""}
|
|
981
981
|
</span>
|
|
982
982
|
`}(j`<or-mwc-input .type="${No.BUTTON}" label="${this.timeframe?"dashboard.customTimeSpan":this.timePresetKey}"></or-mwc-input>`,Array.from(this.timePresetOptions.keys()).map((t=>({value:t}))),this.timePresetKey,(t=>{this.timeframe=void 0,this.timePresetKey=t.toString()}),void 0,void 0,void 0,!0)}
|
|
983
983
|
<!-- Button that opens custom time selection -->
|