@meteo28093/equinox-ui 0.1.5 → 0.1.6
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/equinox-ui.0.1.6.esm.js +2875 -0
- package/dist/equinox-ui.0.1.6.global.js +2875 -0
- package/dist/equinox-ui.esm.js +2 -2
- package/dist/equinox-ui.global.js +2 -2
- package/package.json +1 -1
package/dist/equinox-ui.esm.js
CHANGED
|
@@ -2842,7 +2842,7 @@ Please report this to https://github.com/markedjs/marked.`,h){let e="<p>An error
|
|
|
2842
2842
|
border-bottom: 1px solid var(--cs-border);
|
|
2843
2843
|
}
|
|
2844
2844
|
.item:last-child { border-bottom: none; }
|
|
2845
|
-
`;function Dt(h){return String(h||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var _t=class extends HTMLElement{static get observedAttributes(){return["api-url","hostname","slug","question","subtitle"]}constructor(){super(),this.attachShadow({mode:"open"}),this.items=[],this._loadTimeout=null}connectedCallback(){this.requestLoad()}attributeChangedCallback(){this.isConnected&&this.requestLoad()}requestLoad(){this._loadTimeout&&clearTimeout(this._loadTimeout),this._loadTimeout=setTimeout(()=>this.load(),10)}async load(t){this.renderLoading();try{let a=this.getAttribute("api-url"),e=window.location.hostname,r=window.location.pathname,i=await y.citizenScience.get(e,r,a);console.log("API response:",i),this.render(t)}catch(a){this.renderError(a.message)}}async submit(t){t.preventDefault();let a=this.shadowRoot.querySelector("form"),e=a.querySelector("button");e.disabled=!0,e.textContent="Submitting...";let r={researchQuestion:this.getAttribute("question")||"No Question",city:a.city.value,date:a.date.value};try{let i=this.getAttribute("api-url"),s=window.location.hostname,o=window.location.pathname,d=await y.citizenScience.post(s,o,r,i);await this.load(d)}catch(i){alert("Error: "+i.message),e.disabled=!1,e.textContent="Submit
|
|
2845
|
+
`;function Dt(h){return String(h||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var _t=class extends HTMLElement{static get observedAttributes(){return["api-url","hostname","slug","question","subtitle"]}constructor(){super(),this.attachShadow({mode:"open"}),this.items=[],this._loadTimeout=null}connectedCallback(){this.requestLoad()}attributeChangedCallback(){this.isConnected&&this.requestLoad()}requestLoad(){this._loadTimeout&&clearTimeout(this._loadTimeout),this._loadTimeout=setTimeout(()=>this.load(),10)}async load(t){this.renderLoading();try{let a=this.getAttribute("api-url"),e=window.location.hostname,r=window.location.pathname,i=await y.citizenScience.get(e,r,a);console.log("API response:",i),this.render(t)}catch(a){this.renderError(a.message)}}async submit(t){t.preventDefault();let a=this.shadowRoot.querySelector("form"),e=a.querySelector("button");e.disabled=!0,e.textContent="Submitting...";let r={researchQuestion:this.getAttribute("question")||"No Question",city:a.city.value,date:a.date.value};try{let i=this.getAttribute("api-url"),s=window.location.hostname,o=window.location.pathname,d=await y.citizenScience.post(s,o,r,i);await this.load(d)}catch(i){alert("Error: "+i.message),e.disabled=!1,e.textContent="Submit"}}renderLoading(){this.shadowRoot.innerHTML=`<style>${Bt}</style><div class="container"><p>Loading...</p></div>`}renderError(t){this.shadowRoot.innerHTML=`<style>${Bt}</style><div class="container"><p style="color:#ef4444">Error: ${Dt(t)}</p></div>`}render(t=null){console.log("Rendering with data:",t),this.shadowRoot.innerHTML=`
|
|
2846
2846
|
<style>
|
|
2847
2847
|
|
|
2848
2848
|
@import url('/equinox.css');
|
|
@@ -2866,7 +2866,7 @@ Please report this to https://github.com/markedjs/marked.`,h){let e="<p>An error
|
|
|
2866
2866
|
</form>
|
|
2867
2867
|
|
|
2868
2868
|
</div>
|
|
2869
|
-
`,this.shadowRoot.querySelector("form").addEventListener("submit",a=>this.submit(a));try{Z({icons:$,root:this.shadowRoot})}catch{}}};customElements.get("ee-
|
|
2869
|
+
`,this.shadowRoot.querySelector("form").addEventListener("submit",a=>this.submit(a));try{Z({icons:$,root:this.shadowRoot})}catch{}}};customElements.get("ee-cs-weather")||customElements.define("ee-cs-weather",_t);var cH=!0;export{cH as EQUINOX_UI_LOADED};
|
|
2870
2870
|
/**
|
|
2871
2871
|
* @license lucide v1.16.0 - ISC
|
|
2872
2872
|
*
|
|
@@ -2842,7 +2842,7 @@ Please report this to https://github.com/markedjs/marked.`,h){let e="<p>An error
|
|
|
2842
2842
|
border-bottom: 1px solid var(--cs-border);
|
|
2843
2843
|
}
|
|
2844
2844
|
.item:last-child { border-bottom: none; }
|
|
2845
|
-
`;function _t(h){return String(h||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var Ot=class extends HTMLElement{static get observedAttributes(){return["api-url","hostname","slug","question","subtitle"]}constructor(){super(),this.attachShadow({mode:"open"}),this.items=[],this._loadTimeout=null}connectedCallback(){this.requestLoad()}attributeChangedCallback(){this.isConnected&&this.requestLoad()}requestLoad(){this._loadTimeout&&clearTimeout(this._loadTimeout),this._loadTimeout=setTimeout(()=>this.load(),10)}async load(t){this.renderLoading();try{let a=this.getAttribute("api-url"),e=window.location.hostname,r=window.location.pathname,i=await y.citizenScience.get(e,r,a);console.log("API response:",i),this.render(t)}catch(a){this.renderError(a.message)}}async submit(t){t.preventDefault();let a=this.shadowRoot.querySelector("form"),e=a.querySelector("button");e.disabled=!0,e.textContent="Submitting...";let r={researchQuestion:this.getAttribute("question")||"No Question",city:a.city.value,date:a.date.value};try{let i=this.getAttribute("api-url"),s=window.location.hostname,o=window.location.pathname,d=await y.citizenScience.post(s,o,r,i);await this.load(d)}catch(i){alert("Error: "+i.message),e.disabled=!1,e.textContent="Submit
|
|
2845
|
+
`;function _t(h){return String(h||"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var Ot=class extends HTMLElement{static get observedAttributes(){return["api-url","hostname","slug","question","subtitle"]}constructor(){super(),this.attachShadow({mode:"open"}),this.items=[],this._loadTimeout=null}connectedCallback(){this.requestLoad()}attributeChangedCallback(){this.isConnected&&this.requestLoad()}requestLoad(){this._loadTimeout&&clearTimeout(this._loadTimeout),this._loadTimeout=setTimeout(()=>this.load(),10)}async load(t){this.renderLoading();try{let a=this.getAttribute("api-url"),e=window.location.hostname,r=window.location.pathname,i=await y.citizenScience.get(e,r,a);console.log("API response:",i),this.render(t)}catch(a){this.renderError(a.message)}}async submit(t){t.preventDefault();let a=this.shadowRoot.querySelector("form"),e=a.querySelector("button");e.disabled=!0,e.textContent="Submitting...";let r={researchQuestion:this.getAttribute("question")||"No Question",city:a.city.value,date:a.date.value};try{let i=this.getAttribute("api-url"),s=window.location.hostname,o=window.location.pathname,d=await y.citizenScience.post(s,o,r,i);await this.load(d)}catch(i){alert("Error: "+i.message),e.disabled=!1,e.textContent="Submit"}}renderLoading(){this.shadowRoot.innerHTML=`<style>${Bt}</style><div class="container"><p>Loading...</p></div>`}renderError(t){this.shadowRoot.innerHTML=`<style>${Bt}</style><div class="container"><p style="color:#ef4444">Error: ${_t(t)}</p></div>`}render(t=null){console.log("Rendering with data:",t),this.shadowRoot.innerHTML=`
|
|
2846
2846
|
<style>
|
|
2847
2847
|
|
|
2848
2848
|
@import url('/equinox.css');
|
|
@@ -2866,7 +2866,7 @@ Please report this to https://github.com/markedjs/marked.`,h){let e="<p>An error
|
|
|
2866
2866
|
</form>
|
|
2867
2867
|
|
|
2868
2868
|
</div>
|
|
2869
|
-
`,this.shadowRoot.querySelector("form").addEventListener("submit",a=>this.submit(a));try{Z({icons:$,root:this.shadowRoot})}catch{}}};customElements.get("ee-
|
|
2869
|
+
`,this.shadowRoot.querySelector("form").addEventListener("submit",a=>this.submit(a));try{Z({icons:$,root:this.shadowRoot})}catch{}}};customElements.get("ee-cs-weather")||customElements.define("ee-cs-weather",Ot);var Sr=!0;var Hr=Object.freeze({loaded:Sr});typeof window<"u"&&(window.EquinoxUI=Hr);var xA=Hr;return _r(yA);})();
|
|
2870
2870
|
/**
|
|
2871
2871
|
* @license lucide v1.16.0 - ISC
|
|
2872
2872
|
*
|