analog-clock-components 0.2.2 → 0.2.3
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/analog-clock/analog-clock.esm.js +1 -1
- package/dist/analog-clock/p-a882fe9b.js +2 -0
- package/dist/analog-clock/{p-08fb2d5a.entry.js → p-bc7d9ba5.entry.js} +1 -1
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-15cfd0dd.js → index-b4b51eec.js} +73 -51
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-1ed6ca7f.js → index-593f7125.js} +73 -51
- package/dist/esm/loader.js +2 -2
- package/dist/types/components.d.ts +8 -0
- package/package.json +4 -4
- package/dist/analog-clock/p-dac57ec6.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-a882fe9b.js";export{s as setNonce}from"./p-a882fe9b.js";import{g as o}from"./p-e1255160.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((async e=>(await o(),a([["p-bc7d9ba5",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>(0,console.error)(t,e),l=new Map,i=new Map,s="slot-fb{display:contents}slot-fb[hidden]{display:none}",r="undefined"!=typeof window?window:{},c=r.document||{head:{}},u={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),f=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,h=[],p=[],m=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&u.o?w(y):u.raf(y))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},y=()=>{v(h),v(p),(d=h.length>0)&&u.raf(y)},w=t=>a().then(t),b=m(p,!0),$=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>S,unwrap:()=>C,unwrapErr:()=>E});var S=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>S(t))):S(n)}if(t.isErr)return j(t.value);throw"should never get here"}var k,C=t=>{if(t.isOk)return t.value;throw t.value},E=t=>{if(t.isErr)return t.value;throw t.value},M=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!$(o))&&(o+=""),i&&s?r[r.length-1].i+=o:r.push(i?x(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=x(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},x=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),P={},D=(t,e)=>null==t||$(t)?t:2&e?parseFloat(t):t,R=new WeakMap,U=t=>"sc-"+t.$,A=(t,e,n,o,l,i)=>{if(n===o)return;let s=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=N(n);let i=N(o);e.remove(...l.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{const r=$(o);if((s||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?s=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!s||4&i||l)&&!r&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},L=/\s/,N=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(L):[]),T=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},i=e.u||{};for(const t of W(Object.keys(l)))t in i||A(o,t,l[t],void 0,n,e.o);for(const t of W(Object.keys(i)))A(o,t,l[t],i[t],n,e.o)};function W(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var F=!1,H=(t,e,n)=>{const o=e.h[n];let l,i,s=0;if(F||(F="svg"===o.m),l=o.v=c.createElementNS(F?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),F&&"foreignObject"===o.m&&(F=!1),T(null,o,F),o.h)for(s=0;s<o.h.length;++s)i=H(t,o,s),i&&l.appendChild(i);return"svg"===o.m?F=!1:"foreignObject"===l.tagName&&(F=!0),l["s-hn"]=k,l},V=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===k&&(r=r.shadowRoot);l<=i;++l)o[l]&&(s=H(null,n,l),s&&(o[l].v=s,z(r,s,e)))},q=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},G=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),_=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,i=e.h,s=e.m;T(t,e,F="svg"===s||"foreignObject"!==s&&F),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(G(d,m,l))_(d,m,l),d=e[++r],m=o[++c];else if(G(h,v,l))_(h,v,l),h=e[--f],v=o[--p];else if(G(d,v,l))_(d,v,l),z(t,d.v,h.v.nextSibling),d=e[++r],v=o[--p];else if(G(h,m,l))_(h,m,l),z(t,h.v,d.v),h=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(s=e[u],s.m!==m.m?i=H(e&&e[c],n,u):(_(s,m,l),e[u]=void 0,i=s.v),m=o[++c]):(i=H(e&&e[c],n,c),m=o[++c]),i&&z(d.v.parentNode,i,d.v)}r>f?V(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&q(e,r,f)})(o,l,e,i,n):null!==i?V(o,null,e,i,0,i.length-1):!n&&null!==l&&q(l,0,l.length-1),F&&"svg"===s&&(F=!1)},z=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),B=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},I=(t,e)=>{if(t.o|=16,!(4&t.o))return B(t,t.j),b((()=>J(t,e)));t.o|=512},J=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=et(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=K(l,(()=>et(o,"componentWillRender",void 0,n))),K(l,(()=>X(t,o,e)))},K=(t,e)=>Q(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Q=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,X=async(t,e,n)=>{var o;const l=t.$hostElement$,r=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=U(e),l=i.get(o);if(t=11===t.nodeType?t:c,l)if("string"==typeof l){let i,r=R.get(t=t.head||t);if(r||R.set(t,r=new Set),!r.has(o)){{i=document.querySelector(`[sty-id="${o}"]`)||c.createElement("style"),i.innerHTML=l;const s=null!=(n=u.k)?n:g(c);if(null!=s&&i.setAttribute("nonce",s),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(f){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(i)}else t.append(i);1&e.o&&t.insertBefore(i,null)}4&e.o&&(i.innerHTML+=s),r&&r.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);Y(t,e,l,n),r&&(r.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Z(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Y=(t,e,n,l)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,i=t.C||x(null,null),s=(t=>t&&t.m===P)(e)?e:M(null,null,e);if(k=o.tagName,n&&s.u)for(const t of Object.keys(s.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.u[t]=o[t]);s.m=null,s.o|=4,t.C=s,s.v=i.v=o.shadowRoot||o,_(i,s,n)})(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Z=t=>{const e=t.$hostElement$,n=t.t,o=t.j;et(n,"componentDidRender",void 0,e),64&t.o?et(n,"componentDidUpdate",void 0,e):(t.o|=64,nt(e),et(n,"componentDidLoad",void 0,e),t.M(e),o||tt()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>I(t,!1))),t.o&=-517},tt=()=>{w((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(r)))},et=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},nt=t=>t.classList.add("hydrated"),ot=(t,n,o,l)=>{const i=e(t);if(!i)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const s=i.P.get(n),r=i.o,c=i.t;if(o=D(o,l.D[n][0]),(!(8&r)||void 0===s)&&o!==s&&(!Number.isNaN(s)||!Number.isNaN(o))&&(i.P.set(n,o),c&&2==(18&r))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(o,s,n))return;I(i,!1)}},lt=(t,n,o)=>{var l,i;const s=t.prototype;if(n.D){const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:i,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};i&&(n.D[t][0]|=2048),r&&(n.D[t][0]|=4096),(1&o||!i)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.D[t][0]))return((t,n)=>e(this).P.get(n))(0,t);const o=e(this),l=o?o.t:s;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(i){const s=e(this);if(r){const e=32&l?this[t]:s.$hostElement$[t];return void 0===e&&s.P.get(t)?i=s.P.get(t):!s.P.get(t)&&e&&s.P.set(t,e),r.call(this,D(i,l)),void ot(this,t,i=32&l?this[t]:s.$hostElement$[t],n)}{if(!(1&o&&4096&n.D[t][0]))return ot(this,t,i,n),void(1&o&&!s.t&&s.R.then((()=>{4096&n.D[t][0]&&s.t[t]!==s.P.get(t)&&(s.t[t]=i)})));const e=()=>{const e=s.t[t];!s.P.get(t)&&e&&s.P.set(t,e),s.t[t]=D(i,l),ot(this,t,s.t[t],n)};s.t?e():s.R.then((()=>e()))}}})}})),1&o){const o=new Map;s.attributeChangedCallback=function(t,l,i){u.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))i=this[c],delete this[c];else{if(s.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=e(this),s=null==o?void 0:o.o;if(s&&!(8&s)&&128&s&&i!==l){const e=o.t,s=null==(r=n.U)?void 0:r[t];null==s||s.forEach((n=>{null!=e[n]&&e[n].call(e,i,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(s,c);(i=(null!==i||"boolean"!=typeof this[c])&&i)===this[c]||u.get&&!u.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=n.U)?i:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},it=(t,e)=>{et(t,"connectedCallback",void 0,e)},st=(t,e)=>{et(t,"disconnectedCallback",void 0,e||t)},rt=(t,n={})=>{var a;const d=[],h=n.exclude||[],p=r.customElements,m=c.head,v=m.querySelector("meta[charset]"),y=c.createElement("style"),w=[];let b,$=!0;Object.assign(u,n),u.l=new URL(n.resourcesUrl||"./",c.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((n=>{const s={o:n[0],$:n[1],D:n[2],A:n[3]};4&s.o&&(S=!0),s.D=n[2];const r=s.$,c=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,O:e,P:new Map};n.R=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,s),1&s.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${s.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),$?w.push(this):u.jmp((()=>(t=>{if(!(1&u.o)){const n=e(t),s=n.O,r=()=>{};if(1&n.o)(null==n?void 0:n.t)?it(n.t,t):(null==n?void 0:n.R)&&n.R.then((()=>it(n.t,t)));else{n.o|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){B(n,n.j=e);break}}s.D&&Object.entries(s.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let s;if(!(32&e.o)){if(e.o|=32,n.L){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),i=t.L;if(!i)return;const s=l.get(i);return s?s[n]:import(`./${i}.entry.js`).then((t=>(l.set(i,t),t[n])),(t=>{o(t,e.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};s=await i,t()}else s=i;if(!s)throw Error(`Constructor for "${n.$}#${e.N}" was not found`);s.isProxied||(lt(s,n,2),s.isProxied=!0);const r=()=>{};e.o|=8;try{new s(e)}catch(e){o(e,t)}e.o&=-9,r(),it(e.t,t)}else s=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(s&&s.style){let t;"string"==typeof s.style&&(t=s.style);const e=U(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);f&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>I(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,s)}r()}})(this)))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.o)){const n=e(t);(null==n?void 0:n.t)?st(n.t,t):(null==n?void 0:n.R)&&n.R.then((()=>st(n.t,t)))}R.has(t)&&R.delete(t),t.shadowRoot&&R.has(t.shadowRoot)&&R.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const n=e(this),o=w.findIndex((t=>t===this));o>-1&&w.splice(o,1),(null==(t=null==n?void 0:n.C)?void 0:t.v)instanceof Node&&!n.C.v.isConnected&&delete n.C.v}))}componentOnReady(){return e(this).R}};s.L=t[0],h.includes(r)||p.get(r)||(d.push(r),p.define(r,lt(c,s,1)))}))})),d.length>0&&(S&&(y.textContent+=s),y.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const t=null!=(a=u.k)?a:g(c);null!=t&&y.setAttribute("nonce",t),m.insertBefore(y,v?v.nextSibling:m.firstChild)}$=!1,w.length?w.map((t=>t.connectedCallback())):u.jmp((()=>b=setTimeout(tt,30)))},ct=t=>u.k=t;export{rt as b,M as h,a as p,n as r,ct as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-a882fe9b.js";const c=class{constructor(t){e(this,t),this.size=void 0,this.timeZone=0,this.time=Date.now()}componentDidLoad(){this.timer=window.setInterval((()=>{this.time=Date.now()}),250)}disconnectedCallback(){clearInterval(this.timer)}get hour(){return new Date(this.time).getHours()}get minute(){return new Date(this.time).getMinutes()}get second(){return new Date(this.time).getSeconds()}hourToDegrees(){const e=this.hour+this.timeZone;return Math.floor(this.minute/2)+30*e}minuteToDegrees(){return Math.floor(this.second/10)+6*this.minute}secondToDegrees(){return 6*this.second}render(){return t("svg",{key:"39e3465d3bf04035966b00bb15186d1f712163cd",class:"clock",viewBox:"0 0 200 200",width:this.size,height:this.size},t("circle",{key:"e4c4288aa0efc9cf98027eef1f5bd7c550c23a18",id:"circle",cx:"100",cy:"100",r:"95","stroke-width":"10",fill:"transparent"}),t("line",{key:"296fb8ac19749103439f2ce1878db5ccfb214c20",id:"hour",transform:`rotate(${this.hourToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"60","stroke-width":"10","stroke-linecap":"round"}),t("line",{key:"acbe2c6ebdf05ff46e06144839dec43c45e8b40d",id:"minute",transform:`rotate(${this.minuteToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"30","stroke-width":"8","stroke-linecap":"round"}),t("line",{key:"f275abf7169379b2f61c9cdd185068f5e2373d4a",id:"second",transform:`rotate(${this.secondToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"20","stroke-width":"2","stroke-linecap":"round"}))}};c.style=".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";export{c as analog_clock}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b4b51eec.js');
|
|
6
6
|
|
|
7
7
|
const analogClockCss = ".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";
|
|
8
8
|
const AnalogClockStyle0 = analogClockCss;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b4b51eec.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
10
10
|
*/
|
|
11
11
|
var patchBrowser = () => {
|
|
12
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('analog-clock.cjs.js', document.baseURI).href));
|
|
@@ -21,10 +21,10 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'analog-clock';
|
|
24
|
-
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
24
|
+
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
Stencil Client Platform v4.
|
|
27
|
+
Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -37,10 +37,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
37
37
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
38
38
|
|
|
39
39
|
// src/client/client-host-ref.ts
|
|
40
|
-
var
|
|
41
|
-
|
|
40
|
+
var getHostRef = (ref) => {
|
|
41
|
+
if (ref.__stencil__getHostRef) {
|
|
42
|
+
return ref.__stencil__getHostRef();
|
|
43
|
+
}
|
|
44
|
+
return void 0;
|
|
45
|
+
};
|
|
42
46
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
43
|
-
|
|
47
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
48
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
44
49
|
};
|
|
45
50
|
var registerHost = (hostElement, cmpMeta) => {
|
|
46
51
|
const hostRef = {
|
|
@@ -54,7 +59,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
54
59
|
hostElement["s-p"] = [];
|
|
55
60
|
hostElement["s-rc"] = [];
|
|
56
61
|
}
|
|
57
|
-
const ref =
|
|
62
|
+
const ref = hostRef;
|
|
63
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
58
64
|
return ref;
|
|
59
65
|
};
|
|
60
66
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -397,50 +403,51 @@ var attachStyles = (hostRef) => {
|
|
|
397
403
|
};
|
|
398
404
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
399
405
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
400
|
-
if (oldValue
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
406
|
+
if (oldValue === newValue) {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
410
|
+
memberName.toLowerCase();
|
|
411
|
+
if (memberName === "class") {
|
|
412
|
+
const classList = elm.classList;
|
|
413
|
+
const oldClasses = parseClassList(oldValue);
|
|
414
|
+
let newClasses = parseClassList(newValue);
|
|
415
|
+
{
|
|
416
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
417
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
418
|
+
}
|
|
419
|
+
} else if (memberName === "key") ; else {
|
|
420
|
+
const isComplex = isComplexType(newValue);
|
|
421
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
422
|
+
try {
|
|
423
|
+
if (!elm.tagName.includes("-")) {
|
|
424
|
+
const n = newValue == null ? "" : newValue;
|
|
425
|
+
if (memberName === "list") {
|
|
426
|
+
isProp = false;
|
|
427
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
428
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
429
|
+
elm[memberName] = n;
|
|
430
|
+
} else {
|
|
431
|
+
elm.setAttribute(memberName, n);
|
|
425
432
|
}
|
|
426
|
-
} else if (elm[memberName] !== newValue) {
|
|
427
|
-
elm[memberName] = newValue;
|
|
428
433
|
}
|
|
429
|
-
}
|
|
434
|
+
} else if (elm[memberName] !== newValue) {
|
|
435
|
+
elm[memberName] = newValue;
|
|
430
436
|
}
|
|
437
|
+
} catch (e) {
|
|
431
438
|
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
elm.removeAttribute(memberName);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
439
|
-
newValue = newValue === true ? "" : newValue;
|
|
439
|
+
}
|
|
440
|
+
if (newValue == null || newValue === false) {
|
|
441
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
440
442
|
{
|
|
441
|
-
elm.
|
|
443
|
+
elm.removeAttribute(memberName);
|
|
442
444
|
}
|
|
443
445
|
}
|
|
446
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
447
|
+
newValue = newValue === true ? "" : newValue;
|
|
448
|
+
{
|
|
449
|
+
elm.setAttribute(memberName, newValue);
|
|
450
|
+
}
|
|
444
451
|
}
|
|
445
452
|
}
|
|
446
453
|
};
|
|
@@ -666,9 +673,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
666
673
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
667
674
|
}
|
|
668
675
|
{
|
|
669
|
-
|
|
670
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
671
|
-
}
|
|
676
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
672
677
|
}
|
|
673
678
|
if (oldChildren !== null && newChildren !== null) {
|
|
674
679
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -746,6 +751,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
746
751
|
);
|
|
747
752
|
}
|
|
748
753
|
let maybePromise;
|
|
754
|
+
if (isInitialLoad) {
|
|
755
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
756
|
+
} else {
|
|
757
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
758
|
+
}
|
|
759
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
749
760
|
endSchedule();
|
|
750
761
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
751
762
|
};
|
|
@@ -811,14 +822,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
811
822
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
812
823
|
const instance = hostRef.$lazyInstance$ ;
|
|
813
824
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
825
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
814
826
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
815
827
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
816
828
|
{
|
|
817
829
|
addHydratedFlag(elm);
|
|
818
830
|
}
|
|
819
|
-
|
|
820
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
821
|
-
}
|
|
831
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
822
832
|
endPostUpdate();
|
|
823
833
|
{
|
|
824
834
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -827,6 +837,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
827
837
|
}
|
|
828
838
|
}
|
|
829
839
|
} else {
|
|
840
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
830
841
|
endPostUpdate();
|
|
831
842
|
}
|
|
832
843
|
{
|
|
@@ -877,6 +888,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
877
888
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
878
889
|
if (instance) {
|
|
879
890
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
891
|
+
if (instance.componentShouldUpdate) {
|
|
892
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
893
|
+
return;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
880
896
|
scheduleUpdate(hostRef, false);
|
|
881
897
|
}
|
|
882
898
|
}
|
|
@@ -1039,6 +1055,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1039
1055
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1040
1056
|
}
|
|
1041
1057
|
endNewInstance();
|
|
1058
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1042
1059
|
} else {
|
|
1043
1060
|
Cstr = elm.constructor;
|
|
1044
1061
|
const cmpTag = elm.localName;
|
|
@@ -1066,6 +1083,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1066
1083
|
}
|
|
1067
1084
|
};
|
|
1068
1085
|
var fireConnectedCallback = (instance, elm) => {
|
|
1086
|
+
{
|
|
1087
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1088
|
+
}
|
|
1069
1089
|
};
|
|
1070
1090
|
|
|
1071
1091
|
// src/runtime/connected-callback.ts
|
|
@@ -1098,8 +1118,10 @@ var connectedCallback = (elm) => {
|
|
|
1098
1118
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1099
1119
|
}
|
|
1100
1120
|
} else {
|
|
1101
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1102
|
-
hostRef.$
|
|
1121
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1122
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1123
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1124
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1103
1125
|
}
|
|
1104
1126
|
}
|
|
1105
1127
|
endConnected();
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b4b51eec.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-593f7125.js';
|
|
2
2
|
|
|
3
3
|
const analogClockCss = ".clock #circle{stroke:var(--clock-circle-color, black)}.clock #hour{stroke:var(--clock-hour-color, black)}.clock #minute{stroke:var(--clock-minute-color, black)}.clock #second{stroke:var(--clock-second-color, black)}";
|
|
4
4
|
const AnalogClockStyle0 = analogClockCss;
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-593f7125.js';
|
|
2
|
+
export { s as setNonce } from './index-593f7125.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const NAMESPACE = 'analog-clock';
|
|
2
|
-
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false,
|
|
2
|
+
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: false, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: false, propMutable: false, propNumber: true, propString: false, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: false };
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Platform v4.
|
|
5
|
+
Stencil Client Platform v4.27.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -15,10 +15,15 @@ var SVG_NS = "http://www.w3.org/2000/svg";
|
|
|
15
15
|
var HTML_NS = "http://www.w3.org/1999/xhtml";
|
|
16
16
|
|
|
17
17
|
// src/client/client-host-ref.ts
|
|
18
|
-
var
|
|
19
|
-
|
|
18
|
+
var getHostRef = (ref) => {
|
|
19
|
+
if (ref.__stencil__getHostRef) {
|
|
20
|
+
return ref.__stencil__getHostRef();
|
|
21
|
+
}
|
|
22
|
+
return void 0;
|
|
23
|
+
};
|
|
20
24
|
var registerInstance = (lazyInstance, hostRef) => {
|
|
21
|
-
|
|
25
|
+
lazyInstance.__stencil__getHostRef = () => hostRef;
|
|
26
|
+
hostRef.$lazyInstance$ = lazyInstance;
|
|
22
27
|
};
|
|
23
28
|
var registerHost = (hostElement, cmpMeta) => {
|
|
24
29
|
const hostRef = {
|
|
@@ -32,7 +37,8 @@ var registerHost = (hostElement, cmpMeta) => {
|
|
|
32
37
|
hostElement["s-p"] = [];
|
|
33
38
|
hostElement["s-rc"] = [];
|
|
34
39
|
}
|
|
35
|
-
const ref =
|
|
40
|
+
const ref = hostRef;
|
|
41
|
+
hostElement.__stencil__getHostRef = () => ref;
|
|
36
42
|
return ref;
|
|
37
43
|
};
|
|
38
44
|
var isMemberInElement = (elm, memberName) => memberName in elm;
|
|
@@ -375,50 +381,51 @@ var attachStyles = (hostRef) => {
|
|
|
375
381
|
};
|
|
376
382
|
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
377
383
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
|
|
378
|
-
if (oldValue
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
384
|
+
if (oldValue === newValue) {
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
387
|
+
let isProp = isMemberInElement(elm, memberName);
|
|
388
|
+
memberName.toLowerCase();
|
|
389
|
+
if (memberName === "class") {
|
|
390
|
+
const classList = elm.classList;
|
|
391
|
+
const oldClasses = parseClassList(oldValue);
|
|
392
|
+
let newClasses = parseClassList(newValue);
|
|
393
|
+
{
|
|
394
|
+
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
395
|
+
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
396
|
+
}
|
|
397
|
+
} else if (memberName === "key") ; else {
|
|
398
|
+
const isComplex = isComplexType(newValue);
|
|
399
|
+
if ((isProp || isComplex && newValue !== null) && !isSvg) {
|
|
400
|
+
try {
|
|
401
|
+
if (!elm.tagName.includes("-")) {
|
|
402
|
+
const n = newValue == null ? "" : newValue;
|
|
403
|
+
if (memberName === "list") {
|
|
404
|
+
isProp = false;
|
|
405
|
+
} else if (oldValue == null || elm[memberName] != n) {
|
|
406
|
+
if (typeof elm.__lookupSetter__(memberName) === "function") {
|
|
407
|
+
elm[memberName] = n;
|
|
408
|
+
} else {
|
|
409
|
+
elm.setAttribute(memberName, n);
|
|
403
410
|
}
|
|
404
|
-
} else if (elm[memberName] !== newValue) {
|
|
405
|
-
elm[memberName] = newValue;
|
|
406
411
|
}
|
|
407
|
-
}
|
|
412
|
+
} else if (elm[memberName] !== newValue) {
|
|
413
|
+
elm[memberName] = newValue;
|
|
408
414
|
}
|
|
415
|
+
} catch (e) {
|
|
409
416
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
elm.removeAttribute(memberName);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
|
|
417
|
-
newValue = newValue === true ? "" : newValue;
|
|
417
|
+
}
|
|
418
|
+
if (newValue == null || newValue === false) {
|
|
419
|
+
if (newValue !== false || elm.getAttribute(memberName) === "") {
|
|
418
420
|
{
|
|
419
|
-
elm.
|
|
421
|
+
elm.removeAttribute(memberName);
|
|
420
422
|
}
|
|
421
423
|
}
|
|
424
|
+
} else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
|
|
425
|
+
newValue = newValue === true ? "" : newValue;
|
|
426
|
+
{
|
|
427
|
+
elm.setAttribute(memberName, newValue);
|
|
428
|
+
}
|
|
422
429
|
}
|
|
423
430
|
}
|
|
424
431
|
};
|
|
@@ -644,9 +651,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
644
651
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
645
652
|
}
|
|
646
653
|
{
|
|
647
|
-
|
|
648
|
-
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
649
|
-
}
|
|
654
|
+
updateElement(oldVNode, newVNode2, isSvgMode);
|
|
650
655
|
}
|
|
651
656
|
if (oldChildren !== null && newChildren !== null) {
|
|
652
657
|
updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
|
|
@@ -724,6 +729,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
724
729
|
);
|
|
725
730
|
}
|
|
726
731
|
let maybePromise;
|
|
732
|
+
if (isInitialLoad) {
|
|
733
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
734
|
+
} else {
|
|
735
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
736
|
+
}
|
|
737
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
727
738
|
endSchedule();
|
|
728
739
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
729
740
|
};
|
|
@@ -789,14 +800,13 @@ var postUpdateComponent = (hostRef) => {
|
|
|
789
800
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
790
801
|
const instance = hostRef.$lazyInstance$ ;
|
|
791
802
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
803
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
792
804
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
793
805
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
794
806
|
{
|
|
795
807
|
addHydratedFlag(elm);
|
|
796
808
|
}
|
|
797
|
-
|
|
798
|
-
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
799
|
-
}
|
|
809
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
800
810
|
endPostUpdate();
|
|
801
811
|
{
|
|
802
812
|
hostRef.$onReadyResolve$(elm);
|
|
@@ -805,6 +815,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
805
815
|
}
|
|
806
816
|
}
|
|
807
817
|
} else {
|
|
818
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
808
819
|
endPostUpdate();
|
|
809
820
|
}
|
|
810
821
|
{
|
|
@@ -855,6 +866,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
855
866
|
hostRef.$instanceValues$.set(propName, newVal);
|
|
856
867
|
if (instance) {
|
|
857
868
|
if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
|
|
869
|
+
if (instance.componentShouldUpdate) {
|
|
870
|
+
if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
}
|
|
858
874
|
scheduleUpdate(hostRef, false);
|
|
859
875
|
}
|
|
860
876
|
}
|
|
@@ -1017,6 +1033,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1017
1033
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
1018
1034
|
}
|
|
1019
1035
|
endNewInstance();
|
|
1036
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1020
1037
|
} else {
|
|
1021
1038
|
Cstr = elm.constructor;
|
|
1022
1039
|
const cmpTag = elm.localName;
|
|
@@ -1044,6 +1061,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1044
1061
|
}
|
|
1045
1062
|
};
|
|
1046
1063
|
var fireConnectedCallback = (instance, elm) => {
|
|
1064
|
+
{
|
|
1065
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
1066
|
+
}
|
|
1047
1067
|
};
|
|
1048
1068
|
|
|
1049
1069
|
// src/runtime/connected-callback.ts
|
|
@@ -1076,8 +1096,10 @@ var connectedCallback = (elm) => {
|
|
|
1076
1096
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1077
1097
|
}
|
|
1078
1098
|
} else {
|
|
1079
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1080
|
-
hostRef.$
|
|
1099
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1100
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
1101
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1102
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
1081
1103
|
}
|
|
1082
1104
|
}
|
|
1083
1105
|
endConnected();
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-593f7125.js';
|
|
2
|
+
export { s as setNonce } from './index-593f7125.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -9,6 +9,10 @@ export namespace Components {
|
|
|
9
9
|
interface AnalogClock {
|
|
10
10
|
"size": number;
|
|
11
11
|
"timeZone": number;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use camelCase instead. Support for dash-casing will be removed in Stencil v5.
|
|
14
|
+
*/
|
|
15
|
+
"time-zone"?: number;
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
18
|
declare global {
|
|
@@ -26,6 +30,10 @@ declare namespace LocalJSX {
|
|
|
26
30
|
interface AnalogClock {
|
|
27
31
|
"size"?: number;
|
|
28
32
|
"timeZone"?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated use camelCase instead. Support for dash-casing will be removed in Stencil v5.
|
|
35
|
+
*/
|
|
36
|
+
"time-zone"?: number;
|
|
29
37
|
}
|
|
30
38
|
interface IntrinsicElements {
|
|
31
39
|
"analog-clock": AnalogClock;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"format": "prettier --write src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@stencil/core": "4.
|
|
28
|
+
"@stencil/core": "4.27.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"cspell": "8.17.
|
|
32
|
+
"cspell": "8.17.5",
|
|
33
33
|
"eslint": "9.21.0",
|
|
34
|
-
"prettier": "3.5.
|
|
34
|
+
"prettier": "3.5.2",
|
|
35
35
|
"typescript": "5.7.3"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),d=!1,p=[],m=[],y=(t,e)=>n=>{t.push(n),d||(d=!0,e&&4&a.o?b(w):a.raf(w))},v=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},w=()=>{v(p),v(m),(d=p.length>0)&&a.raf(w)},b=t=>f().then(t),$=y(m,!0),g=t=>"object"==(t=typeof t)||"function"===t;function S(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>k,ok:()=>j,unwrap:()=>C,unwrapErr:()=>M});var j=t=>({isOk:!0,isErr:!1,value:t}),O=t=>({isOk:!1,isErr:!0,value:t});function k(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>j(t))):j(n)}if(t.isErr)return O(t.value);throw"should never get here"}var E,C=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},x=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!g(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?P(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=P(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},P=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),A={},N=(t,e)=>null==t||g(t)?t:2&e?parseFloat(t):t,T=new WeakMap,D=t=>"sc-"+t.$,F=(t,e,n,o,l,s)=>{if(n!==o){let i=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=L(n);let s=L(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{const r=g(o);if((i||r&&null!==o)&&!l)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?i=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!i||4&s||l)&&!r&&t.setAttribute(e,o=!0===o?"":o)}}},H=/\s/,L=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(H):[]),R=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of U(Object.keys(l)))t in s||F(o,t,l[t],void 0,n,e.o);for(const t of U(Object.keys(s)))F(o,t,l[t],s[t],n,e.o)};function U(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var V=!1,W=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(V||(V="svg"===o.m),l=o.v=u.createElementNS(V?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),V&&"foreignObject"===o.m&&(V=!1),R(null,o,V),o.h)for(i=0;i<o.h.length;++i)s=W(t,o,i),s&&l.appendChild(s);return"svg"===o.m?V=!1:"foreignObject"===l.tagName&&(V=!0),l["s-hn"]=E,l},q=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===E&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=W(null,n,l),i&&(o[l].v=i,B(r,i,e)))},G=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},_=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),z=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m;R(t,e,V="svg"===i||"foreignObject"!==i&&V),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(_(h,m,l))z(h,m,l),h=e[++r],m=o[++c];else if(_(d,y,l))z(d,y,l),d=e[--f],y=o[--p];else if(_(h,y,l))z(h,y,l),B(t,h.v,d.v.nextSibling),h=e[++r],y=o[--p];else if(_(d,m,l))z(d,m,l),B(t,d.v,h.v),d=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=W(e&&e[c],n,u):(z(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=W(e&&e[c],n,c),m=o[++c]),s&&B(h.v.parentNode,s,h.v)}r>f?q(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&G(e,r,f)})(o,l,e,s,n):null!==s?q(o,null,e,s,0,s.length-1):!n&&null!==l&&G(l,0,l.length-1),V&&"svg"===i&&(V=!1)},B=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),I=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},J=(t,e)=>{if(t.o|=16,!(4&t.o))return I(t,t.j),$((()=>K(t,e)));t.o|=512},K=(t,e)=>{const n=t.t;if(!n)throw Error(`Can't render component <${t.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);return Q(void 0,(()=>Y(t,n,e)))},Q=(t,e)=>X(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),X=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,Y=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=D(e),l=i.get(o);if(t=11===t.nodeType?t:u,l)if("string"==typeof l){let s,i=T.get(t=t.head||t);if(i||T.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.createElement("style"),s.innerHTML=l;const i=null!=(n=a.k)?n:S(u);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(h){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);Z(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>tt(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},Z=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||P(null,null),i=(t=>t&&t.m===A)(e)?e:x(null,null,e);if(E=o.tagName,n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.C=i,i.v=s.v=o.shadowRoot||o,z(s,i,n)})(t,e,o)}catch(e){l(e,t.$hostElement$)}return null},tt=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,ot(e),nt(n,"componentDidLoad",void 0,e),t.M(e),o||et()),t.S&&(t.S(),t.S=void 0),512&t.o&&b((()=>J(t,!1))),t.o&=-517},et=()=>{b((()=>(t=>{const e=a.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(c)))},nt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},ot=t=>t.classList.add("hydrated"),lt=(t,e,o,l)=>{const s=n(t);if(!s)throw Error(`Couldn't find host element for "${l.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=s.P.get(e),r=s.o,c=s.t;o=N(o,l.A[e][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(e,o),c&&2==(18&r)&&J(s,!1))},st=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A){const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).P.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.P.get(t)?s=i.P.get(t):!i.P.get(t)&&n&&i.P.set(t,n),r.call(this,N(s,l)),void lt(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return lt(this,t,s,e),void(1&o&&!i.t&&i.N.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.P.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.P.get(t)&&n&&i.P.set(t,n),i.t[t]=N(s,l),lt(this,t,i.t[t],e)};i.t?n():i.N.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){a.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.T)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.T)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},it=(t,e)=>{nt(t,"disconnectedCallback",void 0,e||t)},rt=(t,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,v=y.querySelector("meta[charset]"),w=u.createElement("style"),b=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let j=!1;if(t.map((t=>{t[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],D:o[3]};4&r.o&&(j=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,P:new Map};o.N=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?b.push(this):a.jmp((()=>(t=>{if(!(1&a.o)){const e=n(t),o=e.O,r=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(e,e.j=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.F){const i=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.F;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.$}#${e.H}" was not found`);o.isProxied||(st(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=D(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.j,c=()=>J(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,e,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async t=>{if(!(1&a.o)){const e=n(t);(null==e?void 0:e.t)?it(e.t,t):(null==e?void 0:e.N)&&e.N.then((()=>it(e.t,t)))}T.has(t)&&T.delete(t),t.shadowRoot&&T.has(t.shadowRoot)&&T.delete(t.shadowRoot)})(this))),a.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.v)instanceof Node&&!e.C.v.isConnected&&delete e.C.v}))}componentOnReady(){return n(this).N}};r.F=t[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,st(u,r,1)))}))})),d.length>0&&(j&&(w.textContent+=r),w.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(f=a.k)?f:S(u);null!=t&&w.setAttribute("nonce",t),y.insertBefore(w,v?v.nextSibling:y.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):a.jmp((()=>$=setTimeout(et,30)))},ct=t=>a.k=t;export{rt as b,x as h,f as p,o as r,ct as s}
|