@openremote/or-dashboard-builder 1.3.0-snapshot.20250110090901 → 1.3.0-snapshot.20250113074157
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/package.json +6 -6
- package/tsconfig.tsbuildinfo +1 -1
package/dist/umd/index.js
CHANGED
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
<or-mwc-input type="button" class="mdc-button mdc-snackbar__action" label="${this.buttonText}">
|
|
715
715
|
</or-mwc-input>
|
|
716
716
|
</div>
|
|
717
|
-
`:$``}
|
|
717
|
+
`:$``}
|
|
718
718
|
</div>
|
|
719
719
|
</div>
|
|
720
720
|
`}updated(t){super.updated(t),t.has("_open")&&this._open&&this.open()}onClose(t){this.buttonAction&&this.buttonAction(),this.dispatchChangedEvent({opened:!1,closeReason:t})}onOpen(){this.dispatchChangedEvent({opened:!0})}dispatchChangedEvent(t){this.dispatchEvent(new la(t))}};oa([ft({type:String,attribute:!1})],ca.prototype,"text",void 0),oa([ft({type:String})],ca.prototype,"buttonText",void 0),oa([ft({type:Object,attribute:!1})],ca.prototype,"buttonAction",void 0),oa([ft({type:Number})],ca.prototype,"timeout",void 0),oa([ft({type:Boolean})],ca.prototype,"_open",void 0),oa([yt("#mdc-snackbar")],ca.prototype,"_mdcElem",void 0),ca=oa([ht("or-mwc-snackbar")],ca);var ua,ha=p(8880),ma=function(t,e,i,n){return new(i||(i=Promise))((function(r,a){function o(t){try{l(n.next(t))}catch(t){a(t)}}function s(t){try{l(n.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(o,s)}l((n=n.apply(t,e||[])).next())}))};!function(t){t[t.DESKTOP=0]="DESKTOP",t[t.MOBILE=1]="MOBILE"}(ua||(ua={}));class pa{static create(t,e=ua.DESKTOP,i=An().displayRealm,n=!0){var r;return ma(this,void 0,void 0,(function*(){const a=()=>(Math.random()+1).toString(36).substring(2);return t?(t.id=a(),t.template&&(t.template.id=a(),null===(r=t.template.widgets)||void 0===r||r.forEach((t=>t.id=a())))):t={realm:i,displayName:this.getDefaultDisplayName(e),template:{id:a(),columns:this.getDefaultColumns(e),maxScreenWidth:this.getDefaultMaxScreenWidth(e),refreshInterval:"OFF",screenPresets:this.getDefaultScreenPresets(e)}},n?(yield An().rest.api.DashboardResource.create(t)).data:t}))}static delete(t,e=An().displayRealm){return ma(this,void 0,void 0,(function*(){return(yield An().rest.api.DashboardResource.delete(e,t)).data}))}static getDefaultColumns(t){switch(t){case ua.MOBILE:return 4;case ua.DESKTOP:default:return 12}}static getDefaultDisplayName(t){switch(t){case ua.DESKTOP:return In.i18next.t("dashboard.initialName");case ua.MOBILE:return In.i18next.t("dashboard.initialName")+" ("+In.i18next.t("dashboard.size.mobile")+")"}}static getDefaultScreenPresets(t){return t===ua.MOBILE?[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"KEEP_LAYOUT"}]:[{id:"mobile",displayName:"dashboard.size.mobile",breakpoint:640,scalingPreset:"WRAP_TO_SINGLE_COLUMN"}]}static getDefaultMaxScreenWidth(t){switch(t){case ua.DESKTOP:return 4e3;case ua.MOBILE:return 640}}}var fa=p(768),ga=function(t,e,i,n){var r,a=arguments.length,o=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(a<3?r(o):a>3?r(e,i,o):r(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o};const _a=o`
|