joe-stencil-library 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-Bpj8H0oR.js → index-DUSIRKMT.js} +4 -0
- package/dist/cjs/joe-stencil-library.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/esm/{index-C7tGDF-T.js → index-CyyVqcfg.js} +4 -0
- package/dist/esm/joe-stencil-library.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/joe-stencil-library/joe-stencil-library.esm.js +1 -1
- package/dist/joe-stencil-library/p-183ce8bc.entry.js +1 -0
- package/dist/joe-stencil-library/{p-C7tGDF-T.js → p-CyyVqcfg.js} +1 -1
- package/package.json +1 -1
- package/dist/joe-stencil-library/p-26dfd114.entry.js +0 -1
|
@@ -145,6 +145,7 @@ var COMMENT_NODE_ID = "c";
|
|
|
145
145
|
var HYDRATE_ID = "s-id";
|
|
146
146
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
147
147
|
var HYDRATE_CHILD_ID = "c-id";
|
|
148
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
148
149
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
149
150
|
var win = typeof window !== "undefined" ? window : {};
|
|
150
151
|
var plt = {
|
|
@@ -1905,6 +1906,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1905
1906
|
});
|
|
1906
1907
|
});
|
|
1907
1908
|
if (cmpTags.length > 0) {
|
|
1909
|
+
{
|
|
1910
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1911
|
+
}
|
|
1908
1912
|
if (dataStyles.innerHTML.length) {
|
|
1909
1913
|
dataStyles.setAttribute("data-styles", "");
|
|
1910
1914
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -143,6 +143,7 @@ var COMMENT_NODE_ID = "c";
|
|
|
143
143
|
var HYDRATE_ID = "s-id";
|
|
144
144
|
var HYDRATED_STYLE_ID = "sty-id";
|
|
145
145
|
var HYDRATE_CHILD_ID = "c-id";
|
|
146
|
+
var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
|
|
146
147
|
var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
|
|
147
148
|
var win = typeof window !== "undefined" ? window : {};
|
|
148
149
|
var plt = {
|
|
@@ -1903,6 +1904,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1903
1904
|
});
|
|
1904
1905
|
});
|
|
1905
1906
|
if (cmpTags.length > 0) {
|
|
1907
|
+
{
|
|
1908
|
+
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
1909
|
+
}
|
|
1906
1910
|
if (dataStyles.innerHTML.length) {
|
|
1907
1911
|
dataStyles.setAttribute("data-styles", "");
|
|
1908
1912
|
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
@@ -1,5 +1,5 @@
|
|
|
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-CyyVqcfg.js';
|
|
2
|
+
export { s as setNonce } from './index-CyyVqcfg.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
/*
|
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-CyyVqcfg.js';
|
|
2
|
+
export { s as setNonce } from './index-CyyVqcfg.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as o}from"./p-
|
|
1
|
+
import{p as t,b as o}from"./p-CyyVqcfg.js";export{s as setNonce}from"./p-CyyVqcfg.js";import{g as m}from"./p-DQuL1Twl.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),t(o)})().then((async s=>(await m(),o([["p-183ce8bc",[[513,"my-component",{first:[1],middle:[1],last:[1]}]]]],s))));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as r}from"./p-CyyVqcfg.js";import{format as e}from"./index.esm.js";const t=class{constructor(r){o(this,r)}first;middle;last;getText(){return e(this.first,this.middle,this.last)}render(){return r("div",{key:"8a6d28dfa48a307c7e3435580dd1314f34d0446b",style:{color:"red",width:"100%",height:"60px",boxSizing:"border-box",border:"1px solid #eee",backgroundColor:"#f5f5f5",padding:"10px",borderRadius:"4px"}},"Stencil-Component: ",this.getText())}};t.style=":host{display:block}";export{t as my_component}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
var t,n=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(n||{}),e=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(e||{}),o="type",l="value",s="serialized:",i=(t,n)=>{var e;Object.entries(null!=(e=n.o.t)?e:{}).map((([e,[o]])=>{if(31&o||32&o){const o=t[e],l=function(t,n){for(;t;){const e=Object.getOwnPropertyDescriptor(t,n);if(null==e?void 0:e.get)return e;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),e)||Object.getOwnPropertyDescriptor(t,e);l&&Object.defineProperty(t,e,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[e]=n.l.has(e)?n.l.get(e):o}}))},r=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},c=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.i=t,512&n.o.u&&i(t,n))},u=(t,n)=>(0,console.error)(t,n),a=new Map,f=new Map,d="s-id",$="sty-id",p="c-id",h="undefined"!=typeof window?window:{},m={u:0,$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,o)=>t.addEventListener(n,e,o),rel:(t,n,e,o)=>t.removeEventListener(n,e,o),ce:(t,n)=>new CustomEvent(t,n)},v=t=>Promise.resolve(t),y=(()=>{try{return!!h.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),b=!!y&&(()=>!!h.document&&Object.getOwnPropertyDescriptor(h.document.adoptedStyleSheets,"length").writable)(),g=!1,w=[],j=[],S=(t,n)=>e=>{t.push(e),g||(g=!0,n&&4&m.u?x(k):m.raf(k))},O=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){u(t)}t.length=0},k=()=>{O(w),O(j),(g=w.length>0)&&m.raf(k)},x=t=>v().then(t),M=S(j,!0);function E(){const n=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(b?n.adoptedStyleSheets.push(t):n.adoptedStyleSheets=[...n.adoptedStyleSheets,t])}var N=(t,n,e,o)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const l=document.createTextNode("");if(l["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const s=n["s-cr"].parentNode,i=C(s,"appendChild");if(void 0!==o){l["s-oo"]=o;const t=C(s,"childNodes"),n=[l];t.forEach((t=>{t["s-nr"]&&n.push(t)})),n.sort(((t,n)=>!t["s-oo"]||t["s-oo"]<(n["s-oo"]||0)?-1:!n["s-oo"]||n["s-oo"]<t["s-oo"]?1:0)),n.forEach((t=>i.call(s,t)))}else i.call(s,l);t["s-ol"]=l,t["s-sh"]=n["s-hn"]};function C(t,n){if("__"+n in t){const e=t["__"+n];return"function"!=typeof e?e:e.bind(t)}return"function"!=typeof t[n]?t[n]:t[n].bind(t)}function I(t){var n,e,o;return null!=(o=null==(e=null==(n=t.head)?void 0:n.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?o:void 0}var L=new WeakMap,D=(t,n,e)=>{let o=f.get(t);y&&e?(o=o||new CSSStyleSheet,"string"==typeof o?o=n:o.replaceSync(n)):o=n,f.set(t,o)},R=(t,n)=>{var e,o,l;const s=A(n),i=f.get(s);if(!h.document)return s;if(t=11===t.nodeType?t:h.document,i)if("string"==typeof i){let l,r=L.get(t=t.head||t);r||L.set(t,r=new Set);const c=t.querySelector(`[${$}="${s}"]`);if(c)c.textContent=i;else if(!r.has(s)){l=h.document.createElement("style"),l.textContent=i;const c=null!=(e=m.p)?e:I(h.document);if(null!=c&&l.setAttribute("nonce",c),!(1&n.u))if("HEAD"===t.nodeName){const n=t.querySelectorAll("link[rel=preconnect]"),e=n.length>0?n[n.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==e?void 0:e.parentNode)===t?e:null)}else if("host"in t)if(y){const n=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;n.replaceSync(i),b?t.adoptedStyleSheets.unshift(n):t.adoptedStyleSheets=[n,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n?n.textContent=i+n.textContent:t.prepend(l)}else t.append(l);1&n.u&&t.insertBefore(l,null),4&n.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(s)}}else{let n=L.get(t);if(n||L.set(t,n=new Set),!n.has(s)){const e=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(i.constructor===e.CSSStyleSheet)o=i;else{o=new e.CSSStyleSheet;for(let t=0;t<i.cssRules.length;t++)o.insertRule(i.cssRules[t].cssText,t)}b?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],n.add(s)}}return s},A=t=>"sc-"+t.h,P=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),U=t=>"object"==(t=typeof t)||"function"===t,V=(t,n,...e)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=n=>{for(let e=0;e<n.length;e++)o=n[e],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!U(o))&&(o+=""),s&&i?r[r.length-1].m+=o:r.push(s?_(null,o):o),i=s)};c(e),n&&n.key&&(l=n.key);const u=_(t,null);return u.v=n,r.length>0&&(u.j=r),u.S=l,u},_=(t,n)=>({u:0,O:t,m:null!=n?n:null,k:null,j:null,v:null,S:null}),T={},W=(t,n,e,o,l,s,i,r=[])=>{let c,u,a,f;if(1===s.nodeType){if(c=s.getAttribute(p),c&&(u=c.split("."),u[0]===i||"0"===u[0])){a=B({u:0,M:u[0],N:u[1],C:u[2],I:u[3],O:s.tagName.toLowerCase(),k:s,v:{class:s.className||""}}),n.push(a),s.removeAttribute(p),t.j||(t.j=[]);const l=a.k.getAttribute("s-sn");"string"==typeof l&&("slot-fb"===a.O&&F(l,u[2],a,s,t,n,e,o,r),a.k["s-sn"]=l,a.k.removeAttribute("s-sn")),void 0!==a.I&&(t.j[a.I]=a),t=a,o&&"0"===a.C&&(o[a.I]=a.k)}if(s.shadowRoot)for(f=s.shadowRoot.childNodes.length-1;f>=0;f--)W(t,n,e,o,l,s.shadowRoot.childNodes[f],i,r);const d=s.__childNodes||s.childNodes;for(f=d.length-1;f>=0;f--)W(t,n,e,o,l,d[f],i,r)}else if(8===s.nodeType)u=s.nodeValue.split("."),(u[1]===i||"0"===u[1])&&(c=u[0],a=B({M:u[1],N:u[2],C:u[3],I:u[4]||"0",k:s,v:null,j:null,S:null,L:null,O:null,m:null}),"t"===c?(a.k=Y(s,3),a.k&&3===a.k.nodeType&&(a.m=a.k.textContent,n.push(a),s.remove(),i===a.M&&(t.j||(t.j=[]),t.j[a.I]=a),o&&"0"===a.C&&(o[a.I]=a.k))):"c"===c?(a.k=Y(s,8),a.k&&8===a.k.nodeType&&(n.push(a),s.remove())):a.M===i&&("s"===c?F(s["s-sn"]=u[5]||"",u[2],a,s,t,n,e,o,r):"r"===c&&o&&s.remove()));else if(t&&"style"===t.O){const n=_(null,s.textContent);n.k=s,n.I="0",t.j=[n]}return t},z=(t,n)=>{if(1===t.nodeType){const e=t[d]||t.getAttribute(d);e&&n.set(e,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)z(t.shadowRoot.childNodes[o],n);const l=t.__childNodes||t.childNodes;for(o=0;o<l.length;o++)z(l[o],n)}else if(8===t.nodeType){const e=t.nodeValue.split(".");"o"===e[0]&&(n.set(e[1]+"."+e[2],t),t.nodeValue="",t["s-en"]=e[3])}},B=t=>({u:0,M:null,N:null,C:null,I:"0",k:null,v:null,j:null,S:null,L:null,O:null,m:null,...t});function F(t,n,e,o,l,s,i,r,c){o["s-sr"]=!0,e.L=t||null,e.O="slot";const u=(null==l?void 0:l.k)?l.k["s-id"]||l.k.getAttribute("s-id"):"";if(r&&h.document){const s=e.k=h.document.createElement(e.O);e.L&&e.k.setAttribute("name",t),l.k.shadowRoot&&u&&u!==e.M?C(l.k,"insertBefore")(s,C(l.k,"children")[0]):C(C(o,"parentNode"),"insertBefore")(s,o),q(c,n,t,o,e.M),o.remove(),"0"===e.C&&(r[e.I]=e.k)}else{const s=e.k,i=u&&u!==e.M&&l.k.shadowRoot;q(c,n,t,o,i?u:e.M),function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const n=n=>function(t){const e=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const n=[];for(let e=0;e<t.length;e++){const o=t[e]["s-nr"]||void 0;o&&o.isConnected&&n.push(o)}return n})(l.childNodes)).forEach((t=>{o===(t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0)(t)&&e.push(t)})),n?e.filter((t=>1===t.nodeType)):e}.bind(t);t.assignedElements=n(!0),t.assignedNodes=n(!1)}(o),i&&l.k.insertBefore(s,l.k.children[0])}s.push(e),i.push(e),l.j||(l.j=[]),l.j[e.I]=e}var H,q=(t,n,e,o,l)=>{var s,i;let r=o.nextSibling;if(t[n]=t[n]||[],r&&!(null==(s=r.nodeValue)?void 0:s.startsWith("s.")))do{!r||(r.getAttribute&&r.getAttribute("slot")||r["s-sn"])!==e&&(""!==e||r["s-sn"]||r.getAttribute&&r.getAttribute("slot")||8!==r.nodeType&&3!==r.nodeType)||(r["s-sn"]=e,t[n].push({slot:o,node:r,hostId:l})),r=null==r?void 0:r.nextSibling}while(r&&!(null==(i=r.nodeValue)?void 0:i.startsWith("s.")))},Y=(t,n)=>{let e=t;do{e=e.nextSibling}while(e&&(e.nodeType!==n||!e.nodeValue));return e},G=class t{static fromLocalValue(n){const e=n[o],s=l in n?n[l]:void 0;switch(e){case"string":case"boolean":return s;case"bigint":return BigInt(s);case"undefined":return;case"null":return null;case"number":return"NaN"===s?NaN:"-0"===s?-0:"Infinity"===s?1/0:"-Infinity"===s?-1/0:s;case"array":return s.map((n=>t.fromLocalValue(n)));case"date":return new Date(s);case"map":const n=new Map;for(const[e,o]of s){const l="object"==typeof e&&null!==e?t.fromLocalValue(e):e,s=t.fromLocalValue(o);n.set(l,s)}return n;case"object":const o={};for(const[n,e]of s)o[n]=t.fromLocalValue(e);return o;case"regexp":const{pattern:l,flags:i}=s;return RegExp(l,i);case"set":const r=new Set;for(const n of s)r.add(t.fromLocalValue(n));return r;case"symbol":return Symbol(s);default:throw Error("Unsupported type: "+e)}}static fromLocalValueArray(n){return n.map((n=>t.fromLocalValue(n)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(o))return!1;const s=t[o];return!!Object.values({...n,...e}).includes(s)&&("null"===s||"undefined"===s||t.hasOwnProperty(l))}},J=(t,n)=>"string"==typeof t&&t.startsWith(s)?t=function(t){return"string"==typeof t&&t.startsWith(s)?G.fromLocalValue(JSON.parse(atob(t.slice(11)))):t}(t):null==t||U(t)?t:1&n?t+"":t,K=(t,n,e,o)=>{if(e!==o&&(n.toLowerCase(),"style"===n)){for(const n in e)o&&null!=o[n]||(n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in o)e&&o[n]===e[n]||(n.includes("-")?t.style.setProperty(n,o[n]):t.style[n]=o[n])}},Q=(t,n)=>{const e=11===n.k.nodeType&&n.k.host?n.k.host:n.k,o=t&&t.v||{},l=n.v||{};for(const t of X(Object.keys(o)))t in l||K(e,t,o[t],void 0);for(const t of X(Object.keys(l)))K(e,t,o[t],l[t])};function X(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Z=(t,n,e)=>{const o=n.j[e];let l,s,i=0;if(null!=o.m)l=o.k=h.document.createTextNode(o.m);else{if(!h.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.k=h.document.createElement(o.O),Q(null,o),o.j){const n="template"===o.O?l.content:l;for(i=0;i<o.j.length;++i)s=Z(t,o,i),s&&n.appendChild(s)}}return l["s-hn"]=H,l},tt=(t,n,e,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===H&&(r=r.shadowRoot),"template"===e.O&&(r=r.content);l<=s;++l)o[l]&&(i=Z(null,e,l),i&&(o[l].k=i,lt(r,i,n)))},nt=(t,n,e)=>{for(let o=n;o<=e;++o){const n=t[o];if(n){const t=n.k;t&&t.remove()}}},et=(t,n,e=!1)=>t.O===n.O&&(e?(e&&!t.S&&n.S&&(t.S=n.S),!0):t.S===n.S),ot=(t,n,e=!1)=>{const o=n.k=t.k,l=t.j,s=n.j,i=n.m;null==i?(Q(t,n),null!==l&&null!==s?((t,n,e,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=n.length-1,d=n[0],$=n[f],p=o.length-1,h=o[0],m=o[p];const v="template"===e.O?t.content:t;for(;r<=f&&c<=p;)if(null==d)d=n[++r];else if(null==$)$=n[--f];else if(null==h)h=o[++c];else if(null==m)m=o[--p];else if(et(d,h,l))ot(d,h,l),d=n[++r],h=o[++c];else if(et($,m,l))ot($,m,l),$=n[--f],m=o[--p];else if(et(d,m,l))ot(d,m,l),lt(v,d.k,$.k.nextSibling),d=n[++r],m=o[--p];else if(et($,h,l))ot($,h,l),lt(v,$.k,d.k),$=n[--f],h=o[++c];else{for(u=-1,a=r;a<=f;++a)if(n[a]&&null!==n[a].S&&n[a].S===h.S){u=a;break}u>=0?(i=n[u],i.O!==h.O?s=Z(n&&n[c],e,u):(ot(i,h,l),n[u]=void 0,s=i.k),h=o[++c]):(s=Z(n&&n[c],e,c),h=o[++c]),s&<(d.k.parentNode,s,d.k)}r>f?tt(t,null==o[p+1]?null:o[p+1].k,e,o,c,p):c>p&&nt(n,r,f)})(o,l,n,s,e):null!==s?(null!==t.m&&(o.textContent=""),tt(o,null,n,s,0,s.length-1)):e||null===l?e&&null!==l&&null===s&&(n.j=l):nt(l,0,l.length-1)):t.m!==i&&(o.data=i)},lt=(t,n,e)=>t.__insertBefore?t.__insertBefore(n,e):null==t?void 0:t.insertBefore(n,e),st=(t,n)=>{if(n&&!t.D&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.D=()=>{n["s-p"].splice(e-1,1),o()})))}},it=(t,n)=>{if(t.u|=16,4&t.u)return void(t.u|=512);st(t,t.R);const e=()=>rt(t,n);if(!n)return M(e);queueMicrotask((()=>{e()}))},rt=(t,n)=>{const e=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${e.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 n?(t.A.length&&t.A.forEach((t=>t(e))),l=pt(o,"componentWillLoad",void 0,e)):l=pt(o,"componentWillUpdate",void 0,e),l=ct(l,(()=>pt(o,"componentWillRender",void 0,e))),ct(l,(()=>at(t,o,n)))},ct=(t,n)=>ut(t)?t.then(n).catch((t=>{console.error(t),n()})):n(),ut=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,at=async(t,n,e)=>{var o;const l=t.$hostElement$,s=l["s-rc"];e&&(t=>{const n=t.o,e=t.$hostElement$,o=n.u,l=R(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);10&o&&(e["s-sc"]=l,e.classList.add(l+"-h"))})(t);ft(t,n,l,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const n=null!=(o=l["s-p"])?o:[],e=()=>dt(t);0===n.length?e():(Promise.all(n).then(e),t.u|=4,n.length=0)}},ft=(t,n,e,o)=>{try{n=n.render(),t.u&=-17,t.u|=2,((t,n,e=!1)=>{const o=t.$hostElement$,l=t.P||_(null,null),s=(t=>t&&t.O===T)(n)?n:V(null,null,n);if(H=o.tagName,e&&s.v)for(const t of Object.keys(s.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.v[t]=o[t]);s.O=null,s.u|=4,t.P=s,s.k=l.k=o.shadowRoot||o,ot(l,s,e)})(t,n,o)}catch(n){u(n,t.$hostElement$)}return null},dt=t=>{const n=t.$hostElement$,e=t.i,o=t.R;pt(e,"componentDidRender",void 0,n),64&t.u?pt(e,"componentDidUpdate",void 0,n):(t.u|=64,ht(n),pt(e,"componentDidLoad",void 0,n),t.U(n),o||$t()),t.D&&(t.D(),t.D=void 0),512&t.u&&x((()=>it(t,!1))),t.u&=-517},$t=()=>{var t;x((()=>(t=>{const n=m.ce("appload",{detail:{namespace:"joe-stencil-library"}});return t.dispatchEvent(n),n})(h))),(null==(t=m.V)?void 0:t.size)&&m.V.clear()},pt=(t,n,e,o)=>{if(t&&t[n])try{return t[n](e)}catch(t){u(t,o)}},ht=t=>t.classList.add("hydrated"),mt=(t,n,e,o)=>{const l=r(t);if(!l)return;if(!l)throw Error(`Couldn't find host element for "${o.h}" 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/stenciljs/core/issues/5457).`);const s=l.l.get(n),i=l.u,c=l.i;if(e=J(e,o.t[n][0]),!(8&i&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(l.l.set(n,e),2!=(18&i)))){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(e,s,n))return;it(l,!1)}},vt=(t,n,e)=>{var o,l;const s=t.prototype;if(n.t){const i=Object.entries(null!=(o=n.t)?o:{});if(i.map((([t,[o]])=>{if(31&o||2&e&&32&o){const{get:l,set:i}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(n.t[t][0]|=2048),i&&(n.t[t][0]|=4096),(1&e||!l)&&Object.defineProperty(s,t,{get(){{if(!(2048&n.t[t][0]))return((t,n)=>r(this).l.get(n))(0,t);const e=r(this),o=e?e.i:s;if(!o)return;return o[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=r(this);if(s){if(i)return void 0===(32&o?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(l=s.l.get(t)),i.call(this,J(l,o)),void mt(this,t,l=32&o?this[t]:s.$hostElement$[t],n);{if(!(1&e&&4096&n.t[t][0]))return mt(this,t,l,n),void(1&e&&!s.i&&s.A.push((()=>{4096&n.t[t][0]&&s.i[t]!==s.l.get(t)&&(s.i[t]=l)})));const i=()=>{const e=s.i[t];!s.l.get(t)&&e&&s.l.set(t,e),s.i[t]=J(l,o),mt(this,t,s.i[t],n)};s.i?i():s.A.push((()=>{i()}))}}}})}})),1&e){const e=new Map;s.attributeChangedCallback=function(t,o,l){m.jmp((()=>{var c;const u=e.get(t),a=r(this);if(this.hasOwnProperty(u)&&(l=this[u],delete this[u]),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==l)return;if(null==u){const e=null==a?void 0:a.u;if(a&&e&&!(8&e)&&l!==o){const s=a.i,i=null==(c=n._)?void 0:c[t];null==i||i.forEach((n=>{const[[i,r]]=Object.entries(n);null!=s[i]&&(128&e||1&r)&&s[i].call(s,l,o,t)}))}return}const f=i.find((([t])=>t===u));f&&4&f[1][0]&&(l=null!==l&&"false"!==l);const d=Object.getOwnPropertyDescriptor(s,u);l==this[u]||d.get&&!d.set||(this[u]=l)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=n._)?l:{}),...i.filter((([t,n])=>31&n[0])).map((([t,n])=>{const o=n[1]||t;return e.set(o,t),o}))]))}}return t},yt=(t,n)=>{pt(t,"connectedCallback",void 0,n)},bt=t=>{if(!(1&m.u)){const n=r(t);if(!n)return;const e=n.o,o=()=>{};if(1&n.u)(null==n?void 0:n.i)?yt(n.i,t):(null==n?void 0:n.T)&&n.T.then((()=>yt(n.i,t)));else{let o;if(n.u|=1,o=t.getAttribute(d),o){if(1&e.u){const n=R(t.shadowRoot,e);t.classList.remove(n+"-h",n+"-s")}((t,n,e,o)=>{var l,s,i,c;const u=t.shadowRoot,a=[],f=[],$=u?[]:null,p=_(n,null);p.k=t,!h.document||m.V&&m.V.size||z(h.document.body,m.V=new Map),t[d]=e,t.removeAttribute(d),o.P=W(p,a,[],$,t,t,e,f);let v=0;const y=a.length;let b;for(;v<y;v++){b=a[v];const e=b.M+"."+b.N,o=m.V.get(e),s=b.k;if(u){if((null==(l=b.O)?void 0:(""+l).includes("-"))&&"slot-fb"!==b.O&&!b.k.shadowRoot){const t=r(b.k);if(t){const n=A(t.o),e=h.document.querySelector(`style[sty-id="${n}"]`);e&&$.unshift(e.cloneNode(!0))}}}else s["s-hn"]=n.toUpperCase(),"slot"===b.O&&(s["s-cr"]=t["s-cr"]);"slot"===b.O&&(b.L=b.k["s-sn"]||b.k.name||null,b.j?(b.u|=2,b.k.childNodes.length||b.j.forEach((t=>{b.k.appendChild(t.k)}))):b.u|=1),o&&o.isConnected&&(o.parentElement.shadowRoot&&""===o["s-en"]&&o.parentNode.insertBefore(s,o.nextSibling),o.parentNode.removeChild(o),u||(s["s-oo"]=parseInt(b.N))),o&&!o["s-id"]&&m.V.delete(e)}const g=[],w=f.length;let j,S,O,k,x=0,M=0;for(;x<w;x++)if(j=f[x],j&&j.length)for(O=j.length,S=0;S<O;S++){if(k=j[S],g[k.hostId]||(g[k.hostId]=m.V.get(k.hostId)),!g[k.hostId])continue;const t=g[k.hostId];t.shadowRoot&&k.node.parentElement!==t&&t.insertBefore(k.node,null==(i=null==(s=j[S-1])?void 0:s.node)?void 0:i.nextSibling),t.shadowRoot&&u||(k.slot["s-cr"]||(k.slot["s-cr"]=t["s-cr"],k.slot["s-cr"]=!k.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),N(k.node,k.slot,0,k.node["s-oo"]||M),(null==(c=k.node.parentElement)?void 0:c.shadowRoot)&&k.node.getAttribute&&k.node.getAttribute("slot")&&k.node.removeAttribute("slot")),M=(k.node["s-oo"]||M)+1}if(u&&!u.childNodes.length){let n=0;const e=$.length;if(e){for(;n<e;n++){const t=$[n];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}o.$hostElement$=t})(t,e.h,o,n)}{let e=t;for(;e=e.parentNode||e.host;)if(1===e.nodeType&&e.hasAttribute("s-id")&&e["s-p"]||e["s-p"]){st(n,n.R=e);break}}e.t&&Object.entries(e.t).map((([n,[e]])=>{if(31&e&&n in t&&t[n]!==Object.prototype[n]){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e)=>{let o;if(!(32&n.u)){if(n.u|=32,e.W){const l=((t,n)=>{const e=t.h.replace(/-/g,"_"),o=t.W;if(!o)return;const l=a.get(o);return l?l[e]:import(`./${o}.entry.js`).then((t=>(a.set(o,t),t[e])),(t=>{u(t,n.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.h}#${n.B}" was not found`);o.isProxied||(vt(o,e,2),o.isProxied=!0);const s=()=>{};n.u|=8;try{new o(n)}catch(n){u(n,t)}n.u&=-9,s(),yt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=A(e);if(!f.has(n)){const o=()=>{};D(n,t,!!(1&e.u)),o()}}}const l=n.R,s=()=>it(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,n,e)}o()}},gt=(t,n)=>{pt(t,"disconnectedCallback",void 0,n||t)},wt=(t,n={})=>{var e;if(!h.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],s=h.customElements,i=h.document.head,c=i.querySelector("meta[charset]"),u=h.document.createElement("style"),a=[];let f,d=!0;if(Object.assign(m,n),m.$=new URL(n.resourcesUrl||"./",h.document.baseURI).href,m.u|=2,(()=>{if(!h.document)return;const t=h.document.querySelectorAll(`[${$}]`);let n=0;for(;n<t.length;n++)D(t[n].getAttribute($),P(t[n].innerHTML),!0)})(),t.map((t=>{t[1].map((n=>{const e={u:n[0],h:n[1],t:n[2],F:n[3]};e.t=n[2];const i=e.h,c=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,H:new Map};e.T=new Promise((t=>e.U=t)),t["s-p"]=[],t["s-rc"]=[],e.A=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,e),1&e.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${e.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else E.call(t,e)}connectedCallback(){r(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?a.push(this):m.jmp((()=>bt(this))))}disconnectedCallback(){m.jmp((()=>(async t=>{if(!(1&m.u)){const n=r(t);(null==n?void 0:n.i)?gt(n.i,t):(null==n?void 0:n.T)&&n.T.then((()=>gt(n.i,t)))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),m.raf((()=>{var t;const n=r(this);if(!n)return;const e=a.findIndex((t=>t===this));e>-1&&a.splice(e,1),(null==(t=null==n?void 0:n.P)?void 0:t.k)instanceof Node&&!n.P.k.isConnected&&delete n.P.k}))}componentOnReady(){var t;return null==(t=r(this))?void 0:t.T}};e.W=t[0],l.includes(i)||s.get(i)||(o.push(i),s.define(i,vt(c,e,1)))}))})),o.length>0&&u.innerHTML.length){u.setAttribute("data-styles","");const t=null!=(e=m.p)?e:I(h.document);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((t=>t.connectedCallback())):m.jmp((()=>f=setTimeout($t,30)))},jt=t=>m.p=t;export{wt as b,V as h,v as p,c as r,jt as s}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(e,n);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${e.h}#${n.B}" was not found`);o.isProxied||(vt(o,e,2),o.isProxied=!0);const s=()=>{};n.u|=8;try{new o(n)}catch(n){u(n,t)}n.u&=-9,s(),yt(n.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const n=A(e);if(!f.has(n)){const o=()=>{};D(n,t,!!(1&e.u)),o()}}}const l=n.R,s=()=>it(n,!0);l&&l["s-rc"]?l["s-rc"].push(s):s()})(t,n,e)}o()}},gt=(t,n)=>{pt(t,"disconnectedCallback",void 0,n||t)},wt=(t,n={})=>{var e;if(!h.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const o=[],l=n.exclude||[],s=h.customElements,i=h.document.head,c=i.querySelector("meta[charset]"),u=h.document.createElement("style"),a=[];let f,d=!0;if(Object.assign(m,n),m.$=new URL(n.resourcesUrl||"./",h.document.baseURI).href,m.u|=2,(()=>{if(!h.document)return;const t=h.document.querySelectorAll(`[${$}]`);let n=0;for(;n<t.length;n++)D(t[n].getAttribute($),P(t[n].innerHTML),!0)})(),t.map((t=>{t[1].map((n=>{const e={u:n[0],h:n[1],t:n[2],F:n[3]};e.t=n[2];const i=e.h,c=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,n)=>{const e={u:0,$hostElement$:t,o:n,l:new Map,H:new Map};e.T=new Promise((t=>e.U=t)),t["s-p"]=[],t["s-rc"]=[],e.A=[];const o=e;t.__stencil__getHostRef=()=>o})(t=this,e),1&e.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${e.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else E.call(t,e)}connectedCallback(){r(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),f&&(clearTimeout(f),f=null),d?a.push(this):m.jmp((()=>bt(this))))}disconnectedCallback(){m.jmp((()=>(async t=>{if(!(1&m.u)){const n=r(t);(null==n?void 0:n.i)?gt(n.i,t):(null==n?void 0:n.T)&&n.T.then((()=>gt(n.i,t)))}L.has(t)&&L.delete(t),t.shadowRoot&&L.has(t.shadowRoot)&&L.delete(t.shadowRoot)})(this))),m.raf((()=>{var t;const n=r(this);if(!n)return;const e=a.findIndex((t=>t===this));e>-1&&a.splice(e,1),(null==(t=null==n?void 0:n.P)?void 0:t.k)instanceof Node&&!n.P.k.isConnected&&delete n.P.k}))}componentOnReady(){var t;return null==(t=r(this))?void 0:t.T}};e.W=t[0],l.includes(i)||s.get(i)||(o.push(i),s.define(i,vt(c,e,1)))}))})),o.length>0&&(u.textContent+=o.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(e=m.p)?e:I(h.document);null!=t&&u.setAttribute("nonce",t),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((t=>t.connectedCallback())):m.jmp((()=>f=setTimeout($t,30)))},jt=t=>m.p=t;export{wt as b,V as h,v as p,c as r,jt as s}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as r}from"./p-C7tGDF-T.js";import{format as t}from"./index.esm.js";const e=class{constructor(r){o(this,r)}first;middle;last;getText(){return t(this.first,this.middle,this.last)}render(){return r("div",{key:"8a6d28dfa48a307c7e3435580dd1314f34d0446b",style:{color:"red",width:"100%",height:"60px",boxSizing:"border-box",border:"1px solid #eee",backgroundColor:"#f5f5f5",padding:"10px",borderRadius:"4px"}},"Stencil-Component: ",this.getText())}};e.style=":host{display:block}";export{e as my_component}
|