analog-clock-components 0.1.547 → 0.1.549
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-cc3fdca9.entry.js → p-b3898573.entry.js} +1 -1
- package/dist/analog-clock/p-b4c31ef1.js +2 -0
- package/dist/cjs/analog-clock.cjs.entry.js +1 -1
- package/dist/cjs/analog-clock.cjs.js +2 -2
- package/dist/cjs/{index-70182119.js → index-30610aea.js} +182 -130
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/analog-clock/analog-clock.js +4 -0
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +3 -3
- package/dist/esm/{index-afc9d459.js → index-ae58e5d5.js} +182 -130
- package/dist/esm/loader.js +2 -2
- package/package.json +3 -3
- package/dist/analog-clock/p-dce7e551.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-b4c31ef1.js";export{s as setNonce}from"./p-b4c31ef1.js";import{g as t}from"./p-e1255160.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((async e=>(await t(),o([["p-b3898573",[[1,"analog-clock",{size:[2],timeZone:[2,"time-zone"],time:[32]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t}from"./p-
|
|
1
|
+
import{r as e,h as t}from"./p-b4c31ef1.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}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>(0,console.error)(e,t),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:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,p=[],m=[],y=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&a.o?v(b):a.raf(b))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},b=()=>{w(p),w(m),(d=p.length>0)&&a.raf(b)},v=e=>f().then(e),$=y(m,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=e=>({isOk:!0,isErr:!1,value:e}),k=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return k(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?A(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},H=(e,t,n,o,l,s)=>{if(n!==o){let i=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=F(n),s=F(o);e["s-si"]&&s.indexOf(e["s-si"])<0&&s.push(e["s-si"]),t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else{const r=S(o);if((i||r&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&s||l)&&!r&&e.setAttribute(t,o=!0===o?"":o)}}},T=/\s/,F=e=>e?e.split(T):[],L=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||g,s=t.u||g;for(const e of N(Object.keys(l)))e in s||H(o,e,l[e],void 0,n,t.o);for(const e of N(Object.keys(s)))H(o,e,l[e],s[e],n,t.o)};function N(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var R=!1,U=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(R||(R="svg"===o.m),l=o.v=u.createElementNS(R?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),R&&"foreignObject"===o.m&&(R=!1),L(null,o,R),l.getRootNode().querySelector("body"),o.h)for(i=0;i<o.h.length;++i)s=U(e,o,i),s&&l.appendChild(s);return"svg"===o.m?R=!1:"foreignObject"===l.tagName&&(R=!0),l["s-hn"]=C,l},W=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=U(null,n,l),i&&(o[l].v=i,_(r,i,t)))},q=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;e&&e.remove()}}},G=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),V=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m;L(e,t,R="svg"===i||"foreignObject"!==i&&R),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=o.length-1,m=o[0],y=o[p];for(;r<=f&&c<=p;)if(null==h)h=t[++r];else if(null==d)d=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--p];else if(G(h,m,l))V(h,m,l),h=t[++r],m=o[++c];else if(G(d,y,l))V(d,y,l),d=t[--f],y=o[--p];else if(G(h,y,l))V(h,y,l),_(e,h.v,d.v.nextSibling),h=t[++r],y=o[--p];else if(G(d,m,l))V(d,m,l),_(e,d.v,h.v),d=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=U(t&&t[c],n,u):(V(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=U(t&&t[c],n,c),m=o[++c]),s&&_(h.v.parentNode,s,h.v)}r>f?W(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&q(t,r,f)})(o,l,t,s,n):null!==s?W(o,null,t,s,0,s.length-1):!n&&null!==l&&q(l,0,l.length-1),R&&"svg"===i&&(R=!1)},_=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),z=(e,t)=>null==e||S(e)?e:2&t?parseFloat(e):e,B=new WeakMap,I=e=>"sc-"+e.$,J=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},K=(e,t)=>{if(e.o|=16,!(4&e.o))return J(e,e.j),$((()=>Q(e,t)));e.o|=512},Q=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$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 X(void 0,(()=>Z(e,n,t)))},X=(e,t)=>Y(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Y=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Z=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=I(t),l=i.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=B.get(e=e.head||e);if(i||B.set(e,i=new Set),!i.has(o)){{s=u.createElement("style"),s.innerHTML=l;const o=null!=(n=a.k)?n:j(u);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ee(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>te(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ee=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.O,s=e.C||A(null,null),i=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.C=i,i.v=s.v=o.shadowRoot||o,V(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},te=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,le(t),oe(n,"componentDidLoad"),e.M(t),o||ne()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>K(e,!1))),e.o&=-517},ne=()=>{le(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},oe=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},le=e=>e.classList.add("hydrated"),se=(e,t,o,l)=>{const s=n(e);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(t),r=s.o,c=s.t;o=z(o,l.A[t][0]),8&r&&void 0!==i||o===i||Number.isNaN(i)&&Number.isNaN(o)||(s.P.set(t,o),c&&2==(18&r)&&K(s,!1))},ie=(e,t,o)=>{var l,s;const i=e.prototype;if(t.A){const r=Object.entries(null!=(l=t.A)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l)if(2048&l){if(1&o&&2048&l&&(Object.defineProperty(i,e,{get(){const t=n(this),o=t?t.t:i;if(o)return o[e]},configurable:!0,enumerable:!0}),4096&l)){const o=Object.getOwnPropertyDescriptor(i,e).set;Object.defineProperty(i,e,{set(l){const s=n(this);if(o){const n=s.$hostElement$[e];return!s.P.get(e)&&n&&s.P.set(e,n),o.call(this,z(l,t.A[e][0])),void se(this,e,s.$hostElement$[e],t)}if(!s)return;const i=()=>{const n=s.t[e];!s.P.get(e)&&n&&s.P.set(e,n),s.t[e]=z(l,t.A[e][0]),se(this,e,s.t[e],t)};s.t?i():s.D.then((()=>i()))}})}}else Object.defineProperty(i,e,{get(){return((e,t)=>n(this).P.get(t))(0,e)},set(n){se(this,e,n,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);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=t.H)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);u.get&&!u.set||(this[c]=(null!==s||"boolean"!=typeof this[c])&&s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.H)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},re=e=>{oe(e,"disconnectedCallback")},ce=(e,o={})=>{var f;const d=[],p=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),b=u.createElement("style"),v=[];let $,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const r={o:o[0],$:o[1],A:o[2],T:o[3]};4&r.o&&(S=!0),r.A=o[2];const c=r.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,O:n,P:new Map};o.D=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),$&&(clearTimeout($),$=null),g?v.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.O,r=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.D)&&t.D.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){J(t,t.j=n);break}}o.A&&Object.entries(o.A).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.F){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.F;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.$}#${t.L}" was not found`);o.isProxied||(ie(o,n,2),o.isProxied=!0);const i=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,i()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=I(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.j,c=()=>K(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,t,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)?re(e.t):(null==e?void 0:e.D)&&e.D.then((()=>re(e.t)))}})()))}componentOnReady(){return n(this).D}};r.F=e[0],p.includes(c)||m.get(c)||(d.push(c),m.define(c,ie(u,r,1)))}))})),d.length>0&&(S&&(b.textContent+=r),b.textContent+=d.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(f=a.k)?f:j(u);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,w?w.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>$=setTimeout(ne,30)))},ue=e=>a.k=e;export{ce as b,P as h,f as p,o as r,ue as s}
|
|
@@ -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-30610aea.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-30610aea.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.23.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));
|
|
@@ -24,7 +24,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
24
24
|
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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, 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.23.0 | MIT Licensed | https://stenciljs.com
|
|
28
28
|
*/
|
|
29
29
|
var __defProp = Object.defineProperty;
|
|
30
30
|
var __export = (target, all) => {
|
|
@@ -204,20 +204,6 @@ var unwrapErr = (result) => {
|
|
|
204
204
|
throw result.value;
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
var createTime = (fnName, tagName = "") => {
|
|
208
|
-
{
|
|
209
|
-
return () => {
|
|
210
|
-
return;
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
};
|
|
214
|
-
var uniqueTime = (key, measureText) => {
|
|
215
|
-
{
|
|
216
|
-
return () => {
|
|
217
|
-
return;
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
207
|
var h = (nodeName, vnodeData, ...children) => {
|
|
222
208
|
let child = null;
|
|
223
209
|
let key = null;
|
|
@@ -282,110 +268,6 @@ var newVNode = (tag, text) => {
|
|
|
282
268
|
};
|
|
283
269
|
var Host = {};
|
|
284
270
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
285
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
286
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
287
|
-
if (propType & 2 /* Number */) {
|
|
288
|
-
return parseFloat(propValue);
|
|
289
|
-
}
|
|
290
|
-
return propValue;
|
|
291
|
-
}
|
|
292
|
-
return propValue;
|
|
293
|
-
};
|
|
294
|
-
var emitEvent = (elm, name, opts) => {
|
|
295
|
-
const ev = plt.ce(name, opts);
|
|
296
|
-
elm.dispatchEvent(ev);
|
|
297
|
-
return ev;
|
|
298
|
-
};
|
|
299
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
300
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
301
|
-
let style = styles.get(scopeId2);
|
|
302
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
303
|
-
style = style || new CSSStyleSheet();
|
|
304
|
-
if (typeof style === "string") {
|
|
305
|
-
style = cssText;
|
|
306
|
-
} else {
|
|
307
|
-
style.replaceSync(cssText);
|
|
308
|
-
}
|
|
309
|
-
} else {
|
|
310
|
-
style = cssText;
|
|
311
|
-
}
|
|
312
|
-
styles.set(scopeId2, style);
|
|
313
|
-
};
|
|
314
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
315
|
-
var _a;
|
|
316
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
317
|
-
const style = styles.get(scopeId2);
|
|
318
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
319
|
-
if (style) {
|
|
320
|
-
if (typeof style === "string") {
|
|
321
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
322
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
323
|
-
let styleElm;
|
|
324
|
-
if (!appliedStyles) {
|
|
325
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
326
|
-
}
|
|
327
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
328
|
-
{
|
|
329
|
-
styleElm = doc.createElement("style");
|
|
330
|
-
styleElm.innerHTML = style;
|
|
331
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
332
|
-
if (nonce != null) {
|
|
333
|
-
styleElm.setAttribute("nonce", nonce);
|
|
334
|
-
}
|
|
335
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
336
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
337
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
338
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
339
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
340
|
-
} else if ("host" in styleContainerNode) {
|
|
341
|
-
if (supportsConstructableStylesheets) {
|
|
342
|
-
const stylesheet = new CSSStyleSheet();
|
|
343
|
-
stylesheet.replaceSync(style);
|
|
344
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
345
|
-
} else {
|
|
346
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
347
|
-
if (existingStyleContainer) {
|
|
348
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
349
|
-
} else {
|
|
350
|
-
styleContainerNode.prepend(styleElm);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
} else {
|
|
354
|
-
styleContainerNode.append(styleElm);
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
358
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
362
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
363
|
-
}
|
|
364
|
-
if (appliedStyles) {
|
|
365
|
-
appliedStyles.add(scopeId2);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
369
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
return scopeId2;
|
|
373
|
-
};
|
|
374
|
-
var attachStyles = (hostRef) => {
|
|
375
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
376
|
-
const elm = hostRef.$hostElement$;
|
|
377
|
-
const flags = cmpMeta.$flags$;
|
|
378
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
379
|
-
const scopeId2 = addStyle(
|
|
380
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
381
|
-
cmpMeta);
|
|
382
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
383
|
-
elm["s-sc"] = scopeId2;
|
|
384
|
-
elm.classList.add(scopeId2 + "-h");
|
|
385
|
-
}
|
|
386
|
-
endAttachStyles();
|
|
387
|
-
};
|
|
388
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
389
271
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
390
272
|
if (oldValue !== newValue) {
|
|
391
273
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -394,6 +276,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
394
276
|
const classList = elm.classList;
|
|
395
277
|
const oldClasses = parseClassList(oldValue);
|
|
396
278
|
const newClasses = parseClassList(newValue);
|
|
279
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
280
|
+
newClasses.push(elm["s-si"]);
|
|
281
|
+
}
|
|
397
282
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
398
283
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
399
284
|
} else if (memberName === "key") ; else {
|
|
@@ -685,6 +570,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
685
570
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
686
571
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
687
572
|
};
|
|
573
|
+
var createTime = (fnName, tagName = "") => {
|
|
574
|
+
{
|
|
575
|
+
return () => {
|
|
576
|
+
return;
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
var uniqueTime = (key, measureText) => {
|
|
581
|
+
{
|
|
582
|
+
return () => {
|
|
583
|
+
return;
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
588
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
589
|
+
if (propType & 2 /* Number */) {
|
|
590
|
+
return parseFloat(propValue);
|
|
591
|
+
}
|
|
592
|
+
return propValue;
|
|
593
|
+
}
|
|
594
|
+
return propValue;
|
|
595
|
+
};
|
|
596
|
+
var emitEvent = (elm, name, opts) => {
|
|
597
|
+
const ev = plt.ce(name, opts);
|
|
598
|
+
elm.dispatchEvent(ev);
|
|
599
|
+
return ev;
|
|
600
|
+
};
|
|
601
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
602
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
603
|
+
let style = styles.get(scopeId2);
|
|
604
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
605
|
+
style = style || new CSSStyleSheet();
|
|
606
|
+
if (typeof style === "string") {
|
|
607
|
+
style = cssText;
|
|
608
|
+
} else {
|
|
609
|
+
style.replaceSync(cssText);
|
|
610
|
+
}
|
|
611
|
+
} else {
|
|
612
|
+
style = cssText;
|
|
613
|
+
}
|
|
614
|
+
styles.set(scopeId2, style);
|
|
615
|
+
};
|
|
616
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
617
|
+
var _a;
|
|
618
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
619
|
+
const style = styles.get(scopeId2);
|
|
620
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
621
|
+
if (style) {
|
|
622
|
+
if (typeof style === "string") {
|
|
623
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
624
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
625
|
+
let styleElm;
|
|
626
|
+
if (!appliedStyles) {
|
|
627
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
628
|
+
}
|
|
629
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
630
|
+
{
|
|
631
|
+
styleElm = doc.createElement("style");
|
|
632
|
+
styleElm.innerHTML = style;
|
|
633
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
634
|
+
if (nonce != null) {
|
|
635
|
+
styleElm.setAttribute("nonce", nonce);
|
|
636
|
+
}
|
|
637
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
638
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
639
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
640
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
641
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
642
|
+
} else if ("host" in styleContainerNode) {
|
|
643
|
+
if (supportsConstructableStylesheets) {
|
|
644
|
+
const stylesheet = new CSSStyleSheet();
|
|
645
|
+
stylesheet.replaceSync(style);
|
|
646
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
647
|
+
} else {
|
|
648
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
649
|
+
if (existingStyleContainer) {
|
|
650
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
651
|
+
} else {
|
|
652
|
+
styleContainerNode.prepend(styleElm);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
} else {
|
|
656
|
+
styleContainerNode.append(styleElm);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
660
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
664
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
665
|
+
}
|
|
666
|
+
if (appliedStyles) {
|
|
667
|
+
appliedStyles.add(scopeId2);
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
671
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return scopeId2;
|
|
675
|
+
};
|
|
676
|
+
var attachStyles = (hostRef) => {
|
|
677
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
678
|
+
const elm = hostRef.$hostElement$;
|
|
679
|
+
const flags = cmpMeta.$flags$;
|
|
680
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
681
|
+
const scopeId2 = addStyle(
|
|
682
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
683
|
+
cmpMeta);
|
|
684
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
685
|
+
elm["s-sc"] = scopeId2;
|
|
686
|
+
elm.classList.add(scopeId2 + "-h");
|
|
687
|
+
}
|
|
688
|
+
endAttachStyles();
|
|
689
|
+
};
|
|
690
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
688
691
|
|
|
689
692
|
// src/runtime/update-component.ts
|
|
690
693
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -862,16 +865,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
862
865
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
863
866
|
members.map(([memberName, [memberFlags]]) => {
|
|
864
867
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
868
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
869
|
+
Object.defineProperty(prototype, memberName, {
|
|
870
|
+
get() {
|
|
871
|
+
return getValue(this, memberName);
|
|
872
|
+
},
|
|
873
|
+
set(newValue) {
|
|
874
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
875
|
+
},
|
|
876
|
+
configurable: true,
|
|
877
|
+
enumerable: true
|
|
878
|
+
});
|
|
879
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
880
|
+
{
|
|
881
|
+
Object.defineProperty(prototype, memberName, {
|
|
882
|
+
get() {
|
|
883
|
+
const ref = getHostRef(this);
|
|
884
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
885
|
+
if (!instance) return;
|
|
886
|
+
return instance[memberName];
|
|
887
|
+
},
|
|
888
|
+
configurable: true,
|
|
889
|
+
enumerable: true
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
893
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
894
|
+
Object.defineProperty(prototype, memberName, {
|
|
895
|
+
set(newValue) {
|
|
896
|
+
const ref = getHostRef(this);
|
|
897
|
+
if (origSetter) {
|
|
898
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
899
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
900
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
901
|
+
}
|
|
902
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
903
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
if (!ref) return;
|
|
907
|
+
const setterSetVal = () => {
|
|
908
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
909
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
910
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
911
|
+
}
|
|
912
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
913
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
914
|
+
};
|
|
915
|
+
if (ref.$lazyInstance$) {
|
|
916
|
+
setterSetVal();
|
|
917
|
+
} else {
|
|
918
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
}
|
|
875
924
|
}
|
|
876
925
|
});
|
|
877
926
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -900,7 +949,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
900
949
|
}
|
|
901
950
|
return;
|
|
902
951
|
}
|
|
903
|
-
|
|
952
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
953
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
954
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
955
|
+
}
|
|
904
956
|
});
|
|
905
957
|
};
|
|
906
958
|
Cstr.observedAttributes = Array.from(
|
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-30610aea.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
@@ -63,6 +63,8 @@ export class AnalogClock {
|
|
|
63
63
|
"tags": [],
|
|
64
64
|
"text": ""
|
|
65
65
|
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
66
68
|
"attribute": "size",
|
|
67
69
|
"reflect": false,
|
|
68
70
|
"defaultValue": "undefined"
|
|
@@ -81,6 +83,8 @@ export class AnalogClock {
|
|
|
81
83
|
"tags": [],
|
|
82
84
|
"text": ""
|
|
83
85
|
},
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
84
88
|
"attribute": "time-zone",
|
|
85
89
|
"reflect": false,
|
|
86
90
|
"defaultValue": "0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-ae58e5d5.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-ae58e5d5.js';
|
|
2
|
+
export { s as setNonce } from './index-ae58e5d5.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.23.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -2,7 +2,7 @@ const NAMESPACE = 'analog-clock';
|
|
|
2
2
|
const BUILD = /* analog-clock */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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, 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.23.0 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
8
|
var __export = (target, all) => {
|
|
@@ -182,20 +182,6 @@ var unwrapErr = (result) => {
|
|
|
182
182
|
throw result.value;
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
|
-
var createTime = (fnName, tagName = "") => {
|
|
186
|
-
{
|
|
187
|
-
return () => {
|
|
188
|
-
return;
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
var uniqueTime = (key, measureText) => {
|
|
193
|
-
{
|
|
194
|
-
return () => {
|
|
195
|
-
return;
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
185
|
var h = (nodeName, vnodeData, ...children) => {
|
|
200
186
|
let child = null;
|
|
201
187
|
let key = null;
|
|
@@ -260,110 +246,6 @@ var newVNode = (tag, text) => {
|
|
|
260
246
|
};
|
|
261
247
|
var Host = {};
|
|
262
248
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
263
|
-
var parsePropertyValue = (propValue, propType) => {
|
|
264
|
-
if (propValue != null && !isComplexType(propValue)) {
|
|
265
|
-
if (propType & 2 /* Number */) {
|
|
266
|
-
return parseFloat(propValue);
|
|
267
|
-
}
|
|
268
|
-
return propValue;
|
|
269
|
-
}
|
|
270
|
-
return propValue;
|
|
271
|
-
};
|
|
272
|
-
var emitEvent = (elm, name, opts) => {
|
|
273
|
-
const ev = plt.ce(name, opts);
|
|
274
|
-
elm.dispatchEvent(ev);
|
|
275
|
-
return ev;
|
|
276
|
-
};
|
|
277
|
-
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
278
|
-
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
279
|
-
let style = styles.get(scopeId2);
|
|
280
|
-
if (supportsConstructableStylesheets && allowCS) {
|
|
281
|
-
style = style || new CSSStyleSheet();
|
|
282
|
-
if (typeof style === "string") {
|
|
283
|
-
style = cssText;
|
|
284
|
-
} else {
|
|
285
|
-
style.replaceSync(cssText);
|
|
286
|
-
}
|
|
287
|
-
} else {
|
|
288
|
-
style = cssText;
|
|
289
|
-
}
|
|
290
|
-
styles.set(scopeId2, style);
|
|
291
|
-
};
|
|
292
|
-
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
293
|
-
var _a;
|
|
294
|
-
const scopeId2 = getScopeId(cmpMeta);
|
|
295
|
-
const style = styles.get(scopeId2);
|
|
296
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
297
|
-
if (style) {
|
|
298
|
-
if (typeof style === "string") {
|
|
299
|
-
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
300
|
-
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
301
|
-
let styleElm;
|
|
302
|
-
if (!appliedStyles) {
|
|
303
|
-
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
304
|
-
}
|
|
305
|
-
if (!appliedStyles.has(scopeId2)) {
|
|
306
|
-
{
|
|
307
|
-
styleElm = doc.createElement("style");
|
|
308
|
-
styleElm.innerHTML = style;
|
|
309
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
310
|
-
if (nonce != null) {
|
|
311
|
-
styleElm.setAttribute("nonce", nonce);
|
|
312
|
-
}
|
|
313
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
314
|
-
if (styleContainerNode.nodeName === "HEAD") {
|
|
315
|
-
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
316
|
-
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
317
|
-
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
318
|
-
} else if ("host" in styleContainerNode) {
|
|
319
|
-
if (supportsConstructableStylesheets) {
|
|
320
|
-
const stylesheet = new CSSStyleSheet();
|
|
321
|
-
stylesheet.replaceSync(style);
|
|
322
|
-
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
323
|
-
} else {
|
|
324
|
-
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
325
|
-
if (existingStyleContainer) {
|
|
326
|
-
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
327
|
-
} else {
|
|
328
|
-
styleContainerNode.prepend(styleElm);
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
} else {
|
|
332
|
-
styleContainerNode.append(styleElm);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
336
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
340
|
-
styleElm.innerHTML += SLOT_FB_CSS;
|
|
341
|
-
}
|
|
342
|
-
if (appliedStyles) {
|
|
343
|
-
appliedStyles.add(scopeId2);
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
347
|
-
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
return scopeId2;
|
|
351
|
-
};
|
|
352
|
-
var attachStyles = (hostRef) => {
|
|
353
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
354
|
-
const elm = hostRef.$hostElement$;
|
|
355
|
-
const flags = cmpMeta.$flags$;
|
|
356
|
-
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
357
|
-
const scopeId2 = addStyle(
|
|
358
|
-
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
359
|
-
cmpMeta);
|
|
360
|
-
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
361
|
-
elm["s-sc"] = scopeId2;
|
|
362
|
-
elm.classList.add(scopeId2 + "-h");
|
|
363
|
-
}
|
|
364
|
-
endAttachStyles();
|
|
365
|
-
};
|
|
366
|
-
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
367
249
|
var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
368
250
|
if (oldValue !== newValue) {
|
|
369
251
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -372,6 +254,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
372
254
|
const classList = elm.classList;
|
|
373
255
|
const oldClasses = parseClassList(oldValue);
|
|
374
256
|
const newClasses = parseClassList(newValue);
|
|
257
|
+
if (elm["s-si"] && newClasses.indexOf(elm["s-si"]) < 0) {
|
|
258
|
+
newClasses.push(elm["s-si"]);
|
|
259
|
+
}
|
|
375
260
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
376
261
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
377
262
|
} else if (memberName === "key") ; else {
|
|
@@ -663,6 +548,124 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
663
548
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
|
664
549
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
665
550
|
};
|
|
551
|
+
var createTime = (fnName, tagName = "") => {
|
|
552
|
+
{
|
|
553
|
+
return () => {
|
|
554
|
+
return;
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
var uniqueTime = (key, measureText) => {
|
|
559
|
+
{
|
|
560
|
+
return () => {
|
|
561
|
+
return;
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
};
|
|
565
|
+
var parsePropertyValue = (propValue, propType) => {
|
|
566
|
+
if (propValue != null && !isComplexType(propValue)) {
|
|
567
|
+
if (propType & 2 /* Number */) {
|
|
568
|
+
return parseFloat(propValue);
|
|
569
|
+
}
|
|
570
|
+
return propValue;
|
|
571
|
+
}
|
|
572
|
+
return propValue;
|
|
573
|
+
};
|
|
574
|
+
var emitEvent = (elm, name, opts) => {
|
|
575
|
+
const ev = plt.ce(name, opts);
|
|
576
|
+
elm.dispatchEvent(ev);
|
|
577
|
+
return ev;
|
|
578
|
+
};
|
|
579
|
+
var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
|
|
580
|
+
var registerStyle = (scopeId2, cssText, allowCS) => {
|
|
581
|
+
let style = styles.get(scopeId2);
|
|
582
|
+
if (supportsConstructableStylesheets && allowCS) {
|
|
583
|
+
style = style || new CSSStyleSheet();
|
|
584
|
+
if (typeof style === "string") {
|
|
585
|
+
style = cssText;
|
|
586
|
+
} else {
|
|
587
|
+
style.replaceSync(cssText);
|
|
588
|
+
}
|
|
589
|
+
} else {
|
|
590
|
+
style = cssText;
|
|
591
|
+
}
|
|
592
|
+
styles.set(scopeId2, style);
|
|
593
|
+
};
|
|
594
|
+
var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
595
|
+
var _a;
|
|
596
|
+
const scopeId2 = getScopeId(cmpMeta);
|
|
597
|
+
const style = styles.get(scopeId2);
|
|
598
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
599
|
+
if (style) {
|
|
600
|
+
if (typeof style === "string") {
|
|
601
|
+
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
602
|
+
let appliedStyles = rootAppliedStyles.get(styleContainerNode);
|
|
603
|
+
let styleElm;
|
|
604
|
+
if (!appliedStyles) {
|
|
605
|
+
rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
|
|
606
|
+
}
|
|
607
|
+
if (!appliedStyles.has(scopeId2)) {
|
|
608
|
+
{
|
|
609
|
+
styleElm = doc.createElement("style");
|
|
610
|
+
styleElm.innerHTML = style;
|
|
611
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
|
|
612
|
+
if (nonce != null) {
|
|
613
|
+
styleElm.setAttribute("nonce", nonce);
|
|
614
|
+
}
|
|
615
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
|
|
616
|
+
if (styleContainerNode.nodeName === "HEAD") {
|
|
617
|
+
const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
|
|
618
|
+
const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
|
|
619
|
+
styleContainerNode.insertBefore(styleElm, referenceNode2);
|
|
620
|
+
} else if ("host" in styleContainerNode) {
|
|
621
|
+
if (supportsConstructableStylesheets) {
|
|
622
|
+
const stylesheet = new CSSStyleSheet();
|
|
623
|
+
stylesheet.replaceSync(style);
|
|
624
|
+
styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
|
|
625
|
+
} else {
|
|
626
|
+
const existingStyleContainer = styleContainerNode.querySelector("style");
|
|
627
|
+
if (existingStyleContainer) {
|
|
628
|
+
existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
|
|
629
|
+
} else {
|
|
630
|
+
styleContainerNode.prepend(styleElm);
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
} else {
|
|
634
|
+
styleContainerNode.append(styleElm);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
638
|
+
styleContainerNode.insertBefore(styleElm, null);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
642
|
+
styleElm.innerHTML += SLOT_FB_CSS;
|
|
643
|
+
}
|
|
644
|
+
if (appliedStyles) {
|
|
645
|
+
appliedStyles.add(scopeId2);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
} else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
|
|
649
|
+
styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return scopeId2;
|
|
653
|
+
};
|
|
654
|
+
var attachStyles = (hostRef) => {
|
|
655
|
+
const cmpMeta = hostRef.$cmpMeta$;
|
|
656
|
+
const elm = hostRef.$hostElement$;
|
|
657
|
+
const flags = cmpMeta.$flags$;
|
|
658
|
+
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
659
|
+
const scopeId2 = addStyle(
|
|
660
|
+
elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
|
|
661
|
+
cmpMeta);
|
|
662
|
+
if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
|
|
663
|
+
elm["s-sc"] = scopeId2;
|
|
664
|
+
elm.classList.add(scopeId2 + "-h");
|
|
665
|
+
}
|
|
666
|
+
endAttachStyles();
|
|
667
|
+
};
|
|
668
|
+
var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
|
|
666
669
|
|
|
667
670
|
// src/runtime/update-component.ts
|
|
668
671
|
var attachToAncestor = (hostRef, ancestorComponent) => {
|
|
@@ -840,16 +843,62 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
840
843
|
const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
|
|
841
844
|
members.map(([memberName, [memberFlags]]) => {
|
|
842
845
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
846
|
+
if ((memberFlags & 2048 /* Getter */) === 0) {
|
|
847
|
+
Object.defineProperty(prototype, memberName, {
|
|
848
|
+
get() {
|
|
849
|
+
return getValue(this, memberName);
|
|
850
|
+
},
|
|
851
|
+
set(newValue) {
|
|
852
|
+
setValue(this, memberName, newValue, cmpMeta);
|
|
853
|
+
},
|
|
854
|
+
configurable: true,
|
|
855
|
+
enumerable: true
|
|
856
|
+
});
|
|
857
|
+
} else if (flags & 1 /* isElementConstructor */ && memberFlags & 2048 /* Getter */) {
|
|
858
|
+
{
|
|
859
|
+
Object.defineProperty(prototype, memberName, {
|
|
860
|
+
get() {
|
|
861
|
+
const ref = getHostRef(this);
|
|
862
|
+
const instance = ref ? ref.$lazyInstance$ : prototype;
|
|
863
|
+
if (!instance) return;
|
|
864
|
+
return instance[memberName];
|
|
865
|
+
},
|
|
866
|
+
configurable: true,
|
|
867
|
+
enumerable: true
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
if (memberFlags & 4096 /* Setter */) {
|
|
871
|
+
const origSetter = Object.getOwnPropertyDescriptor(prototype, memberName).set;
|
|
872
|
+
Object.defineProperty(prototype, memberName, {
|
|
873
|
+
set(newValue) {
|
|
874
|
+
const ref = getHostRef(this);
|
|
875
|
+
if (origSetter) {
|
|
876
|
+
const currentValue = ref.$hostElement$[memberName];
|
|
877
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
878
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
879
|
+
}
|
|
880
|
+
origSetter.apply(this, [parsePropertyValue(newValue, cmpMeta.$members$[memberName][0])]);
|
|
881
|
+
setValue(this, memberName, ref.$hostElement$[memberName], cmpMeta);
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
if (!ref) return;
|
|
885
|
+
const setterSetVal = () => {
|
|
886
|
+
const currentValue = ref.$lazyInstance$[memberName];
|
|
887
|
+
if (!ref.$instanceValues$.get(memberName) && currentValue) {
|
|
888
|
+
ref.$instanceValues$.set(memberName, currentValue);
|
|
889
|
+
}
|
|
890
|
+
ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, cmpMeta.$members$[memberName][0]);
|
|
891
|
+
setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
|
|
892
|
+
};
|
|
893
|
+
if (ref.$lazyInstance$) {
|
|
894
|
+
setterSetVal();
|
|
895
|
+
} else {
|
|
896
|
+
ref.$onReadyPromise$.then(() => setterSetVal());
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
}
|
|
853
902
|
}
|
|
854
903
|
});
|
|
855
904
|
if ((flags & 1 /* isElementConstructor */)) {
|
|
@@ -878,7 +927,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
878
927
|
}
|
|
879
928
|
return;
|
|
880
929
|
}
|
|
881
|
-
|
|
930
|
+
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
931
|
+
if (!propDesc.get || !!propDesc.set) {
|
|
932
|
+
this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
|
|
933
|
+
}
|
|
882
934
|
});
|
|
883
935
|
};
|
|
884
936
|
Cstr.observedAttributes = Array.from(
|
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-ae58e5d5.js';
|
|
2
|
+
export { s as setNonce } from './index-ae58e5d5.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.549",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"format": "prettier --write src"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@stencil/core": "4.
|
|
28
|
+
"@stencil/core": "4.23.0"
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"cspell": "8.16.1",
|
|
33
|
-
"eslint": "9.
|
|
33
|
+
"eslint": "9.17.0",
|
|
34
34
|
"prettier": "3.4.2",
|
|
35
35
|
"typescript": "5.7.2"
|
|
36
36
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>(0,console.error)(e,t),s=new Map,r=new Map,i="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="undefined"!=typeof window?window:{},u=c.document||{head:{}},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),h=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,d=[],m=[],y=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&a.o?v($):a.raf($))},w=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},$=()=>{w(d),w(m),(p=d.length>0)&&a.raf($)},v=e=>f().then(e),b=y(m,!0),g={},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>x});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,M=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},P=(e,t,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&r?i[i.length-1].i+=o:i.push(s?A(null,o):o),r=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=l,u},A=(e,t)=>({o:0,m:e,i:t,$:null,h:null,u:null,p:null}),D={},H=new WeakMap,T=e=>"sc-"+e.v,F=(e,t,n,o,l,s)=>{if(n!==o){let r=((e,t)=>t in e)(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,l=N(n),s=N(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("key"===t);else{const i=S(o);if((r||i&&null!==o)&&!l)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||("function"==typeof e.__lookupSetter__(t)?e[t]=l:e.setAttribute(t,l))}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&s||l)&&!i&&e.setAttribute(t,o=!0===o?"":o)}}},L=/\s/,N=e=>e?e.split(L):[],R=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||g,s=t.u||g;for(const e of U(Object.keys(l)))e in s||F(o,e,l[e],void 0,n,t.o);for(const e of U(Object.keys(s)))F(o,e,l[e],s[e],n,t.o)};function U(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var W=!1,q=(e,t,n)=>{const o=t.h[n];let l,s,r=0;if(W||(W="svg"===o.m),l=o.$=u.createElementNS(W?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),W&&"foreignObject"===o.m&&(W=!1),R(null,o,W),l.getRootNode().querySelector("body"),o.h)for(r=0;r<o.h.length;++r)s=q(e,o,r),s&&l.appendChild(s);return"svg"===o.m?W=!1:"foreignObject"===l.tagName&&(W=!0),l["s-hn"]=C,l},G=(e,t,n,o,l,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===C&&(i=i.shadowRoot);l<=s;++l)o[l]&&(r=q(null,n,l),r&&(o[l].$=r,B(i,r,t)))},V=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;e&&e.remove()}}},_=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),z=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,r=t.m;R(e,t,W="svg"===r||"foreignObject"!==r&&W),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=o.length-1,m=o[0],y=o[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=o[++c];else if(null==y)y=o[--d];else if(_(h,m,l))z(h,m,l),h=t[++i],m=o[++c];else if(_(p,y,l))z(p,y,l),p=t[--f],y=o[--d];else if(_(h,y,l))z(h,y,l),B(e,h.$,p.$.nextSibling),h=t[++i],y=o[--d];else if(_(p,m,l))z(p,m,l),B(e,p.$,h.$),p=t[--f],m=o[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=q(t&&t[c],n,u):(z(r,m,l),t[u]=void 0,s=r.$),m=o[++c]):(s=q(t&&t[c],n,c),m=o[++c]),s&&B(h.$.parentNode,s,h.$)}i>f?G(e,null==o[d+1]?null:o[d+1].$,n,o,c,d):c>d&&V(t,i,f)})(o,l,t,s,n):null!==s?G(o,null,t,s,0,s.length-1):!n&&null!==l&&V(l,0,l.length-1),W&&"svg"===r&&(W=!1)},B=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),I=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},J=(e,t)=>{if(e.o|=16,!(4&e.o))return I(e,e.j),b((()=>K(e,t)));e.o|=512},K=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$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(e,n,t)))},Q=(e,t)=>X(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),X=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Y=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=T(t),l=r.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,r=H.get(e=e.head||e);if(r||H.set(e,r=new Set),!r.has(o)){{s=u.createElement("style"),s.innerHTML=l;const o=null!=(n=a.O)?n:j(u);if(null!=o&&s.setAttribute("nonce",o),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(h){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=i),r&&r.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);Z(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>ee(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},Z=(e,t,n,o)=>{try{t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.k,s=e.C||A(null,null),r=(e=>e&&e.m===D)(t)?t:P(null,null,t);if(C=o.tagName,n&&r.u)for(const e of Object.keys(r.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=o[e]);r.m=null,r.o|=4,e.C=r,r.$=s.$=o.shadowRoot||o,z(s,r,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return null},ee=e=>{const t=e.$hostElement$,n=e.t,o=e.j;64&e.o||(e.o|=64,oe(t),ne(n,"componentDidLoad"),e.M(t),o||te()),e.S&&(e.S(),e.S=void 0),512&e.o&&v((()=>J(e,!1))),e.o&=-517},te=()=>{oe(u.documentElement),v((()=>(e=>{const t=a.ce("appload",{detail:{namespace:"analog-clock"}});return e.dispatchEvent(t),t})(c)))},ne=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e)}},oe=e=>e.classList.add("hydrated"),le=(e,t,o)=>{var l,s;const r=e.prototype;if(t.P){const i=Object.entries(null!=(l=t.P)?l:{});if(i.map((([e,[l]])=>{(31&l||2&o&&32&l)&&Object.defineProperty(r,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(o){((e,t,o,l)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${l.v}" 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 r=s.A.get(t),i=s.o,c=s.t;o=((e,t)=>null==e||S(e)?e:2&t?parseFloat(e):e)(o,l.P[t][0]),8&i&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o)||(s.A.set(t,o),c&&2==(18&i)&&J(s,!1))})(this,e,o,t)},configurable:!0,enumerable:!0})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.D)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.D)?s:{}),...i.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},se=e=>{ne(e,"disconnectedCallback")},re=(e,o={})=>{var f;const p=[],d=o.exclude||[],m=c.customElements,y=u.head,w=y.querySelector("meta[charset]"),$=u.createElement("style"),v=[];let b,g=!0;Object.assign(a,o),a.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((o=>{const i={o:o[0],v:o[1],P:o[2],H:o[3]};4&i.o&&(S=!0),i.P=o[2];const c=i.v,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,k:n,A:new Map};o.T=new Promise((e=>o.M=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,i),1&i.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${i.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?v.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const t=n(e),o=t.k,i=()=>{};if(1&t.o)(null==t?void 0:t.t)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.o|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){I(t,t.j=n);break}}o.P&&Object.entries(o.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.F){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.F;if(!n)return;const o=s.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(s.set(n,e),e[t])),l)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.v}#${t.L}" was not found`);o.isProxied||(le(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(e){l(e)}t.o&=-9,r()}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=T(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);h&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const i=t.j,c=()=>J(t,!0);i&&i["s-rc"]?i["s-rc"].push(c):c()})(e,t,o)}i()}})(this)))}disconnectedCallback(){a.jmp((()=>(async()=>{if(!(1&a.o)){const e=n(this);(null==e?void 0:e.t)?se(e.t):(null==e?void 0:e.T)&&e.T.then((()=>se(e.t)))}})()))}componentOnReady(){return n(this).T}};i.F=e[0],d.includes(c)||m.get(c)||(p.push(c),m.define(c,le(u,i,1)))}))})),p.length>0&&(S&&($.textContent+=i),$.textContent+=p.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(f=a.O)?f:j(u);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,w?w.nextSibling:y.firstChild)}g=!1,v.length?v.map((e=>e.connectedCallback())):a.jmp((()=>b=setTimeout(te,30)))},ie=e=>a.O=e;export{re as b,P as h,f as p,o as r,ie as s}
|