analog-clock-components 0.1.239 → 0.1.242
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-6527c290.js +2 -0
- package/dist/analog-clock/{p-4dfb66bf.entry.js → p-e80850ca.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-3fb91516.js → index-1a71a23b.js} +6 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/analog-clock.entry.js +1 -1
- package/dist/esm/analog-clock.js +2 -2
- package/dist/esm/{index-769dedbf.js → index-4010169b.js} +6 -4
- package/dist/esm/loader.js +2 -2
- package/package.json +6 -6
- package/dist/analog-clock/p-ef659518.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-
|
|
1
|
+
import{p as e,b as o}from"./p-6527c290.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-e80850ca",[[1,"analog-clock",{timeZone:[2,"time-zone"],time:[32]}]]]],e)));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let t,e,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=t=>Promise.resolve(t),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),a=new WeakMap,u=t=>"sc-"+t.o,f={},h=t=>"object"==(t=typeof t)||"function"===t,$=(t,e,...n)=>{let l=null,s=!1,o=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!h(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?d(null,l):l),o=s)};if(c(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const i=d(t,null);return i.u=e,r.length>0&&(i.h=r),i},d=(t,e)=>({t:0,$:t,i:e,p:null,h:null,u:null}),p={},y=(t,e,n,l,s,o)=>{if(n!==l){let r=H(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,s=w(n),o=w(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else{const c=h(l);if((r||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}}},m=/\s/,w=t=>t?t.split(m):[],b=(t,e,n,l)=>{const s=11===e.p.nodeType&&e.p.host?e.p.host:e.p,o=t&&t.u||f,r=e.u||f;for(l in o)l in r||y(s,l,o[l],void 0,n,e.t);for(l in r)y(s,l,o[l],r[l],n,e.t)},g=(e,l,s)=>{const r=l.h[s];let c,i,a=0;if(n||(n="svg"===r.$),c=r.p=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r.$),n&&"foreignObject"===r.$&&(n=!1),b(null,r,n),null!=t&&c["s-si"]!==t&&c.classList.add(c["s-si"]=t),r.h)for(a=0;a<r.h.length;++a)i=g(e,r,a),i&&c.appendChild(i);return"svg"===r.$?n=!1:"foreignObject"===c.tagName&&(n=!0),c},v=(t,n,l,s,o,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=g(null,l,o),c&&(s[o].p=c,i.insertBefore(c,n)))},S=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.p.remove()},j=(t,e)=>t.$===e.$,O=(t,e)=>{const l=e.p=t.p,s=t.h,o=e.h,r=e.$;n="svg"===r||"foreignObject"!==r&&n,b(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],a=e[c],u=l.length-1,f=l[0],h=l[u];for(;o<=c&&r<=u;)null==i?i=e[++o]:null==a?a=e[--c]:null==f?f=l[++r]:null==h?h=l[--u]:j(i,f)?(O(i,f),i=e[++o],f=l[++r]):j(a,h)?(O(a,h),a=e[--c],h=l[--u]):j(i,h)?(O(i,h),t.insertBefore(i.p,a.p.nextSibling),i=e[++o],h=l[--u]):j(a,f)?(O(a,f),t.insertBefore(a.p,i.p),a=e[--c],f=l[++r]):(s=g(e&&e[r],n,r),f=l[++r],s&&i.p.parentNode.insertBefore(s,i.p));o>c?v(t,null==l[u+1]?null:l[u+1].p,n,l,r,u):r>u&&S(e,o,c)})(l,s,e,o):null!==o?v(l,null,e,o,0,o.length-1):null!==s&&S(s,0,s.length-1),n&&"svg"===r&&(n=!1)},k=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},M=(t,e)=>{if(t.t|=16,!(4&t.t))return k(t,t.g),Y((()=>C(t,e)));t.t|=512},C=(t,e)=>{const n=t.v;return T(void 0,(()=>x(t,n,e)))},x=async(t,e,n)=>{const l=t.S,s=l["s-rc"];n&&(t=>{const e=t.j,n=t.S,l=e.t,s=((t,e)=>{let n=u(e);const l=B.get(n);if(t=11===t.nodeType?t:o,l)if("string"==typeof l){let e,s=a.get(t=t.head||t);s||a.set(t,s=new Set),s.has(n)||(e=o.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);P(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>E(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.O||d(null,null),r=(t=>t&&t.$===p)(l)?l:$(null,null,l);e=s.tagName,r.$=null,r.t|=4,n.O=r,r.p=o.p=s.shadowRoot||s,t=s["s-sc"],O(o,r)})(n,l)}catch(t){V(t,n.S)}return null},E=t=>{const e=t.S,n=t.v,l=t.g;64&t.t||(t.t|=64,A(e),N(n,"componentDidLoad"),t.k(e),l||L()),t.m&&(t.m(),t.m=void 0),512&t.t&&X((()=>M(t,!1))),t.t&=-517},L=()=>{A(o.documentElement),X((()=>(t=>{const e=r.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(s)))},N=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){V(t)}},T=(t,e)=>t&&t.then?t.then(e):e(),A=t=>t.classList.add("hydrated"),F=(t,e,n)=>{if(e.M){const l=Object.entries(e.M),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>W(this).C.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=W(t),o=s.C.get(e),r=s.t,c=s.v;n=((t,e)=>null==t||h(t)?t:2&e?parseFloat(t):t)(n,l.M[e][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.C.set(e,n),c&&2==(18&r)&&M(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){r.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},R=(t,e={})=>{const n=[],l=e.exclude||[],c=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let d,p=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",o.baseURI).href,t.map((t=>{t[1].map((e=>{const s={t:e[0],o:e[1],M:e[2],P:e[3]};s.M=e[2];const o=s.o,a=class extends HTMLElement{constructor(t){super(t),D(t=this,s),1&s.t&&t.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?$.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=W(t),n=e.j,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(e,e.g=n);break}}n.M&&Object.entries(n.M).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=z(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(F(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){V(t)}e.t&=-9,t()}if(s.style){let t=s.style;const e=u(n);if(!B.has(e)){const l=()=>{};((t,e,n)=>{let l=B.get(t);i&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,B.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.g,r=()=>M(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{0==(1&r.t)&&N(W(this).v,"disconnectedCallback")})()))}componentOnReady(){return W(this).L}};s.N=t[0],l.includes(o)||c.get(o)||(n.push(o),c.define(o,F(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,$.length?$.map((t=>t.connectedCallback())):r.jmp((()=>d=setTimeout(L,30)))},U=new WeakMap,W=t=>U.get(t),q=(t,e)=>U.set(e.v=t,e),D=(t,e)=>{const n={t:0,S:t,j:e,C:new Map};return n.L=new Promise((t=>n.k=t)),t["s-p"]=[],t["s-rc"]=[],U.set(t,n)},H=(t,e)=>e in t,V=(t,e)=>(0,console.error)(t,e),_=new Map,z=t=>{const e=t.o.replace(/-/g,"_"),n=t.N,l=_.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(_.set(n,t),t[e])),V)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},B=new Map,G=[],I=[],J=(t,e)=>n=>{t.push(n),l||(l=!0,e&&4&r.t?X(Q):r.raf(Q))},K=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){V(t)}t.length=0},Q=()=>{K(G),K(I),(l=G.length>0)&&r.raf(Q)},X=t=>c().then(t),Y=J(I,!0);export{R as b,$ as h,c as p,q as r}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e}from"./p-
|
|
1
|
+
import{r as t,h as e}from"./p-6527c290.js";const r=class{constructor(e){t(this,e),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 t=this.hour+this.timeZone;return Math.floor(this.minute/2)+30*t}minuteToDegrees(){return Math.floor(this.second/10)+6*this.minute}secondToDegrees(){return 6*this.second}render(){return e("svg",{class:"clock",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"},e("circle",{id:"circle",cx:"100",cy:"100",r:"95","stroke-width":"10",fill:"transparent"}),e("line",{id:"hour",transform:`rotate(${this.hourToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"60","stroke-width":"10","stroke-linecap":"round"}),e("line",{id:"minute",transform:`rotate(${this.minuteToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"30","stroke-width":"8","stroke-linecap":"round"}),e("line",{id:"second",transform:`rotate(${this.secondToDegrees()}, 100, 100)`,x1:"100",y1:"100",x2:"100",y2:"20","stroke-width":"2","stroke-linecap":"round"}))}};r.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{r 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-1a71a23b.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
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-1a71a23b.js');
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v2.
|
|
6
|
+
Stencil Client Patch Browser v2.16.0 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
const patchBrowser = () => {
|
|
9
9
|
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));
|
|
@@ -76,7 +76,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
76
76
|
};
|
|
77
77
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
78
78
|
let scopeId = getScopeId(cmpMeta);
|
|
79
|
-
|
|
79
|
+
const style = styles.get(scopeId);
|
|
80
80
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
81
81
|
// so the fallback is to always use the document for the root node in those cases
|
|
82
82
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -161,7 +161,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
161
161
|
let child = null;
|
|
162
162
|
let simple = false;
|
|
163
163
|
let lastSimple = false;
|
|
164
|
-
|
|
164
|
+
const vNodeChildren = [];
|
|
165
165
|
const walk = (c) => {
|
|
166
166
|
for (let i = 0; i < c.length; i++) {
|
|
167
167
|
child = c[i];
|
|
@@ -245,7 +245,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
245
245
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
246
246
|
try {
|
|
247
247
|
if (!elm.tagName.includes('-')) {
|
|
248
|
-
|
|
248
|
+
const n = newValue == null ? '' : newValue;
|
|
249
249
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
250
250
|
if (memberName === 'list') {
|
|
251
251
|
isProp = false;
|
|
@@ -302,7 +302,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
302
302
|
};
|
|
303
303
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
304
304
|
// tslint:disable-next-line: prefer-const
|
|
305
|
-
|
|
305
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
306
306
|
let i = 0;
|
|
307
307
|
let elm;
|
|
308
308
|
let childNode;
|
|
@@ -1053,7 +1053,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1053
1053
|
if (module) {
|
|
1054
1054
|
return module[exportName];
|
|
1055
1055
|
}
|
|
1056
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1056
1057
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
1058
|
+
/* @vite-ignore */
|
|
1057
1059
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1058
1060
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1059
1061
|
/* webpackMode: "lazy" */
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1a71a23b.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Esm v2.
|
|
8
|
+
Stencil Client Patch Esm v2.16.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchEsm = () => {
|
|
11
11
|
return index.promiseResolve();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-4010169b.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
|
|
package/dist/esm/analog-clock.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-4010169b.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Browser v2.
|
|
4
|
+
Stencil Client Patch Browser v2.16.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchBrowser = () => {
|
|
7
7
|
const importMeta = import.meta.url;
|
|
@@ -54,7 +54,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
54
54
|
};
|
|
55
55
|
const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
56
56
|
let scopeId = getScopeId(cmpMeta);
|
|
57
|
-
|
|
57
|
+
const style = styles.get(scopeId);
|
|
58
58
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
59
59
|
// so the fallback is to always use the document for the root node in those cases
|
|
60
60
|
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
|
|
@@ -139,7 +139,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
139
139
|
let child = null;
|
|
140
140
|
let simple = false;
|
|
141
141
|
let lastSimple = false;
|
|
142
|
-
|
|
142
|
+
const vNodeChildren = [];
|
|
143
143
|
const walk = (c) => {
|
|
144
144
|
for (let i = 0; i < c.length; i++) {
|
|
145
145
|
child = c[i];
|
|
@@ -223,7 +223,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
223
223
|
if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
|
|
224
224
|
try {
|
|
225
225
|
if (!elm.tagName.includes('-')) {
|
|
226
|
-
|
|
226
|
+
const n = newValue == null ? '' : newValue;
|
|
227
227
|
// Workaround for Safari, moving the <input> caret when re-assigning the same valued
|
|
228
228
|
if (memberName === 'list') {
|
|
229
229
|
isProp = false;
|
|
@@ -280,7 +280,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
|
|
|
280
280
|
};
|
|
281
281
|
const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
282
282
|
// tslint:disable-next-line: prefer-const
|
|
283
|
-
|
|
283
|
+
const newVNode = newParentVNode.$children$[childIndex];
|
|
284
284
|
let i = 0;
|
|
285
285
|
let elm;
|
|
286
286
|
let childNode;
|
|
@@ -1031,7 +1031,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1031
1031
|
if (module) {
|
|
1032
1032
|
return module[exportName];
|
|
1033
1033
|
}
|
|
1034
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/
|
|
1034
1035
|
return import(
|
|
1036
|
+
/* @vite-ignore */
|
|
1035
1037
|
/* webpackInclude: /\.entry\.js$/ */
|
|
1036
1038
|
/* webpackExclude: /\.system\.entry\.js$/ */
|
|
1037
1039
|
/* webpackMode: "lazy" */
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-4010169b.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
|
-
Stencil Client Patch Esm v2.
|
|
4
|
+
Stencil Client Patch Esm v2.16.0 | MIT Licensed | https://stenciljs.com
|
|
5
5
|
*/
|
|
6
6
|
const patchEsm = () => {
|
|
7
7
|
return promiseResolve();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "analog-clock-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.242",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"format": "prettier --write src"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "2.
|
|
30
|
+
"@stencil/core": "2.16.0"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@types/jest": "27.5.
|
|
34
|
+
"@types/jest": "27.5.2",
|
|
35
35
|
"@types/puppeteer": "5.4.6",
|
|
36
|
-
"cspell": "6.
|
|
36
|
+
"cspell": "6.1.0",
|
|
37
37
|
"eslint": "8.16.0",
|
|
38
38
|
"jest": "28.1.0",
|
|
39
39
|
"prettier": "2.6.2",
|
|
40
|
-
"puppeteer": "14.1.
|
|
40
|
+
"puppeteer": "14.1.2",
|
|
41
41
|
"tslint": "6.1.3",
|
|
42
|
-
"typescript": "4.
|
|
42
|
+
"typescript": "4.7.2"
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
let t,e,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},c=t=>Promise.resolve(t),i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),a=new WeakMap,u=t=>"sc-"+t.o,f={},h=t=>"object"==(t=typeof t)||"function"===t,$=(t,e,...n)=>{let l=null,s=!1,o=!1,r=[];const c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!h(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?d(null,l):l),o=s)};if(c(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const i=d(t,null);return i.u=e,r.length>0&&(i.h=r),i},d=(t,e)=>({t:0,$:t,i:e,p:null,h:null,u:null}),p={},y=(t,e,n,l,s,o)=>{if(n!==l){let r=H(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,s=w(n),o=w(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else{const c=h(l);if((r||c&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{let s=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&o||s)&&!c&&t.setAttribute(e,l=!0===l?"":l)}}},m=/\s/,w=t=>t?t.split(m):[],b=(t,e,n,l)=>{const s=11===e.p.nodeType&&e.p.host?e.p.host:e.p,o=t&&t.u||f,r=e.u||f;for(l in o)l in r||y(s,l,o[l],void 0,n,e.t);for(l in r)y(s,l,o[l],r[l],n,e.t)},g=(e,l,s)=>{let r,c,i=l.h[s],a=0;if(n||(n="svg"===i.$),r=i.p=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.$),n&&"foreignObject"===i.$&&(n=!1),b(null,i,n),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),i.h)for(a=0;a<i.h.length;++a)c=g(e,i,a),c&&r.appendChild(c);return"svg"===i.$?n=!1:"foreignObject"===r.tagName&&(n=!0),r},v=(t,n,l,s,o,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=g(null,l,o),c&&(s[o].p=c,i.insertBefore(c,n)))},S=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.p.remove()},j=(t,e)=>t.$===e.$,O=(t,e)=>{const l=e.p=t.p,s=t.h,o=e.h,r=e.$;n="svg"===r||"foreignObject"!==r&&n,b(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],a=e[c],u=l.length-1,f=l[0],h=l[u];for(;o<=c&&r<=u;)null==i?i=e[++o]:null==a?a=e[--c]:null==f?f=l[++r]:null==h?h=l[--u]:j(i,f)?(O(i,f),i=e[++o],f=l[++r]):j(a,h)?(O(a,h),a=e[--c],h=l[--u]):j(i,h)?(O(i,h),t.insertBefore(i.p,a.p.nextSibling),i=e[++o],h=l[--u]):j(a,f)?(O(a,f),t.insertBefore(a.p,i.p),a=e[--c],f=l[++r]):(s=g(e&&e[r],n,r),f=l[++r],s&&i.p.parentNode.insertBefore(s,i.p));o>c?v(t,null==l[u+1]?null:l[u+1].p,n,l,r,u):r>u&&S(e,o,c)})(l,s,e,o):null!==o?v(l,null,e,o,0,o.length-1):null!==s&&S(s,0,s.length-1),n&&"svg"===r&&(n=!1)},k=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},M=(t,e)=>{if(t.t|=16,!(4&t.t))return k(t,t.g),Y((()=>C(t,e)));t.t|=512},C=(t,e)=>{const n=t.v;return T(void 0,(()=>x(t,n,e)))},x=async(t,e,n)=>{const l=t.S,s=l["s-rc"];n&&(t=>{const e=t.j,n=t.S,l=e.t,s=((t,e)=>{let n=u(e),l=B.get(n);if(t=11===t.nodeType?t:o,l)if("string"==typeof l){let e,s=a.get(t=t.head||t);s||a.set(t,s=new Set),s.has(n)||(e=o.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);P(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>E(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},P=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.O||d(null,null),r=(t=>t&&t.$===p)(l)?l:$(null,null,l);e=s.tagName,r.$=null,r.t|=4,n.O=r,r.p=o.p=s.shadowRoot||s,t=s["s-sc"],O(o,r)})(n,l)}catch(t){V(t,n.S)}return null},E=t=>{const e=t.S,n=t.v,l=t.g;64&t.t||(t.t|=64,A(e),N(n,"componentDidLoad"),t.k(e),l||L()),t.m&&(t.m(),t.m=void 0),512&t.t&&X((()=>M(t,!1))),t.t&=-517},L=()=>{A(o.documentElement),X((()=>(t=>{const e=r.ce("appload",{detail:{namespace:"analog-clock"}});return t.dispatchEvent(e),e})(s)))},N=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){V(t)}},T=(t,e)=>t&&t.then?t.then(e):e(),A=t=>t.classList.add("hydrated"),F=(t,e,n)=>{if(e.M){const l=Object.entries(e.M),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>W(this).C.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=W(t),o=s.C.get(e),r=s.t,c=s.v;n=((t,e)=>null==t||h(t)?t:2&e?parseFloat(t):t)(n,l.M[e][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.C.set(e,n),c&&2==(18&r)&&M(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;s.attributeChangedCallback=function(t,n,l){r.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,n])=>{const l=n[1]||t;return e.set(l,t),l}))}}return t},R=(t,e={})=>{const n=[],l=e.exclude||[],c=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let d,p=!0;Object.assign(r,e),r.l=new URL(e.resourcesUrl||"./",o.baseURI).href,t.map((t=>{t[1].map((e=>{const s={t:e[0],o:e[1],M:e[2],P:e[3]};s.M=e[2];const o=s.o,a=class extends HTMLElement{constructor(t){super(t),D(t=this,s),1&s.t&&t.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?$.push(this):r.jmp((()=>(t=>{if(0==(1&r.t)){const e=W(t),n=e.j,l=()=>{};if(!(1&e.t)){e.t|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(e,e.g=n);break}}n.M&&Object.entries(n.M).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.t)){{if(e.t|=32,(s=z(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(F(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){V(t)}e.t&=-9,t()}if(s.style){let t=s.style;const e=u(n);if(!B.has(e)){const l=()=>{};((t,e,n)=>{let l=B.get(t);i&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,B.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.g,r=()=>M(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{0==(1&r.t)&&N(W(this).v,"disconnectedCallback")})()))}componentOnReady(){return W(this).L}};s.N=t[0],l.includes(o)||c.get(o)||(n.push(o),c.define(o,F(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,$.length?$.map((t=>t.connectedCallback())):r.jmp((()=>d=setTimeout(L,30)))},U=new WeakMap,W=t=>U.get(t),q=(t,e)=>U.set(e.v=t,e),D=(t,e)=>{const n={t:0,S:t,j:e,C:new Map};return n.L=new Promise((t=>n.k=t)),t["s-p"]=[],t["s-rc"]=[],U.set(t,n)},H=(t,e)=>e in t,V=(t,e)=>(0,console.error)(t,e),_=new Map,z=t=>{const e=t.o.replace(/-/g,"_"),n=t.N,l=_.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(_.set(n,t),t[e])),V)},B=new Map,G=[],I=[],J=(t,e)=>n=>{t.push(n),l||(l=!0,e&&4&r.t?X(Q):r.raf(Q))},K=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){V(t)}t.length=0},Q=()=>{K(G),K(I),(l=G.length>0)&&r.raf(Q)},X=t=>c().then(t),Y=J(I,!0);export{R as b,$ as h,c as p,q as r}
|