UNPKG

jb-notification

Version:
2 lines 1.02 kB
var t=class extends HTMLElement{constructor(){super(),this.initWebComponent()}initWebComponent(){const t=this.attachShadow({mode:"open"}),e=document.createElement("template");e.innerHTML='<style>.jb-notification-wrapper-web-component{position:var(--jb-notification-wrapper-position, absolute);box-sizing:border-box;overflow:hidden;display:flex;align-items:center;flex-direction:column;gap:.5rem;width:100vw;height:100vh;padding-top:var(--jb-notification-wrapper-padding-top, 64px);z-index:9999;top:0;left:0;pointer-events:none}</style>\n\n <div class="jb-notification-wrapper-web-component">\n <slot></slot>\n </div>\n ',t.appendChild(e.content.cloneNode(!0))}static get observedAttributes(){return["x-position","y-position"]}attributeChangedCallback(t,e,n){this.onAttributeChange(t,n)}onAttributeChange(t,e){t}};!customElements.get("jb-notification-wrapper")&&window.customElements.define("jb-notification-wrapper",t);export{t as JBNotificationWrapperWebComponent}; //# sourceMappingURL=jb-notification-wrapper.js.map