proto-ikons-wc 0.0.82 → 0.0.84
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/acura-ikon_119.cjs.entry.js +1 -1
- package/dist/cjs/{index-70c493e0.js → index-5d33f0ae.js} +32 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/proto-ikons-wc.cjs.js +6 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-08330180.js → index-c27f5881.js} +32 -2
- package/dist/esm/loader.js +3 -2
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/proto-ikons-wc.js +3 -2
- package/dist/proto-ikons-wc/{p-58c3720b.entry.js → p-83fbc649.entry.js} +1 -1
- package/dist/proto-ikons-wc/p-f7e8a1cb.js +2 -0
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/dist/types/stencil-public-runtime.d.ts +48 -3
- package/loader/index.d.ts +9 -0
- package/package.json +2 -2
- package/dist/proto-ikons-wc/p-db0404e3.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let t=!1,n=!1;const e="http://www.w3.org/1999/xlink",l={},o=t=>"object"==(t=typeof t)||"function"===t;function s(t){var n,e,l;return null!==(l=null===(e=null===(n=t.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const i=(t,n,...e)=>{let l=null,s=!1,i=!1;const c=[],u=n=>{for(let e=0;e<n.length;e++)l=n[e],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!o(l))&&(l+=""),s&&i?c[c.length-1].t+=l:c.push(s?r(null,l):l),i=s)};if(u(e),n){const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((n=>t[n])).join(" "))}const a=r(t,null);return a.l=n,c.length>0&&(a.o=c),a},r=(t,n)=>({i:0,u:t,t:n,h:null,o:null,l:null}),c={},u=new WeakMap,a=t=>"sc-"+t.p,f=(t,n,l,s,i,r)=>{if(l!==s){let c=R(t,n),u=n.toLowerCase();if("class"===n){const n=t.classList,e=h(l),o=h(s);n.remove(...e.filter((t=>t&&!o.includes(t)))),n.add(...o.filter((t=>t&&!e.includes(t))))}else{const a=o(s);if((c||a&&null!==s)&&!i)try{if(t.tagName.includes("-"))t[n]=s;else{const e=null==s?"":s;"list"===n?c=!1:null!=l&&t[n]==e||(t[n]=e)}}catch(t){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,f=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(n)||(f?t.removeAttributeNS(e,n):t.removeAttribute(n)):(!c||4&r||i)&&!a&&(s=!0===s?"":s,f?t.setAttributeNS(e,n,s):t.setAttribute(n,s))}}},d=/\s/,h=t=>t?t.split(d):[],p=(t,n,e,o)=>{const s=11===n.h.nodeType&&n.h.host?n.h.host:n.h,i=t&&t.l||l,r=n.l||l;for(o in i)o in r||f(s,o,i[o],void 0,e,n.i);for(o in r)f(s,o,i[o],r[o],e,n.i)},w=(n,e,l)=>{const o=e.o[l];let s,i,r=0;if(null!==o.t)s=o.h=_.createTextNode(o.t);else{if(t||(t="svg"===o.u),s=o.h=_.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),t&&"foreignObject"===o.u&&(t=!1),p(null,o,t),o.o)for(r=0;r<o.o.length;++r)i=w(n,o,r),i&&s.appendChild(i);"svg"===o.u?t=!1:"foreignObject"===s.tagName&&(t=!0)}return s},$=(t,n,e,l,o,s)=>{let i,r=t;for(;o<=s;++o)l[o]&&(i=w(null,e,o),i&&(l[o].h=i,r.insertBefore(i,n)))},y=(t,n,e,l)=>{for(;n<=e;++n)(l=t[n])&&l.h.remove()},m=(t,n)=>t.u===n.u,b=(n,e)=>{const l=e.h=n.h,o=n.o,s=e.o,i=e.u,r=e.t;null===r?(t="svg"===i||"foreignObject"!==i&&t,p(n,e,t),null!==o&&null!==s?((t,n,e,l)=>{let o,s=0,i=0,r=n.length-1,c=n[0],u=n[r],a=l.length-1,f=l[0],d=l[a];for(;s<=r&&i<=a;)null==c?c=n[++s]:null==u?u=n[--r]:null==f?f=l[++i]:null==d?d=l[--a]:m(c,f)?(b(c,f),c=n[++s],f=l[++i]):m(u,d)?(b(u,d),u=n[--r],d=l[--a]):m(c,d)?(b(c,d),t.insertBefore(c.h,u.h.nextSibling),c=n[++s],d=l[--a]):m(u,f)?(b(u,f),t.insertBefore(u.h,c.h),u=n[--r],f=l[++i]):(o=w(n&&n[i],e,i),f=l[++i],o&&c.h.parentNode.insertBefore(o,c.h));s>r?$(t,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&y(n,s,r)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),$(l,null,e,s,0,s.length-1)):null!==o&&y(o,0,o.length-1),t&&"svg"===i&&(t=!1)):n.t!==r&&(l.data=r)},v=(t,n)=>{n&&!t.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>t.$=n)))},g=(t,n)=>{if(t.i|=16,!(4&t.i))return v(t,t.m),Y((()=>S(t,n)));t.i|=512},S=(t,n)=>{const e=t.v;return x(void 0,(()=>j(t,e,n)))},j=async(t,n,e)=>{const l=t.g,o=l["s-rc"];e&&(t=>{const n=t.S;((t,n)=>{var e;let l=a(n);const o=H.get(l);if(t=11===t.nodeType?t:_,o)if("string"==typeof o){let n,i=u.get(t=t.head||t);if(i||u.set(t,i=new Set),!i.has(l)){{n=_.createElement("style"),n.innerHTML=o;const l=null!==(e=z.j)&&void 0!==e?e:s(_);null!=l&&n.setAttribute("nonce",l),t.insertBefore(n,t.querySelector("link"))}i&&i.add(l)}}else t.adoptedStyleSheets.includes(o)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,o])})(t.g.getRootNode(),n)})(t);k(t,n),o&&(o.map((t=>t())),l["s-rc"]=void 0);{const n=l["s-p"],e=()=>O(t);0===n.length?e():(Promise.all(n).then(e),t.i|=4,n.length=0)}},k=(t,n)=>{try{n=n.render(),t.i&=-17,t.i|=2,((t,n)=>{const e=t.g,l=t.k||r(null,null),o=(t=>t&&t.u===c)(n)?n:i(null,null,n);o.u=null,o.i|=4,t.k=o,o.h=l.h=e,b(l,o)})(t,n)}catch(n){U(n,t.g)}return null},O=t=>{const n=t.g,e=t.m;64&t.i||(t.i|=64,C(n),t.O(n),e||M()),t.$&&(t.$(),t.$=void 0),512&t.i&&X((()=>g(t,!1))),t.i&=-517},M=()=>{C(_.documentElement),X((()=>(t=>{const n=z.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return t.dispatchEvent(n),n})(V)))},x=(t,n)=>t&&t.then?t.then(n):n(),C=t=>t.classList.add("hydrated"),P=(t,n,e)=>{if(n.M){const l=Object.entries(n.M),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(s,t,{get(){return((t,n)=>A(this).C.get(n))(0,t)},set(e){((t,n,e,l)=>{const s=A(t),i=s.C.get(n),r=s.i,c=s.v;e=((t,n)=>null==t||o(t)?t:4&n?"false"!==t&&(""===t||!!t):2&n?parseFloat(t):1&n?t+"":t)(e,l.M[n][0]),8&r&&void 0!==i||e===i||Number.isNaN(i)&&Number.isNaN(e)||(s.C.set(n,e),c&&2==(18&r)&&g(s,!1))})(this,t,e,n)},configurable:!0,enumerable:!0})})),1&e){const n=new Map;s.attributeChangedCallback=function(t,e,l){z.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,n])=>15&n[0])).map((([t,e])=>{const l=e[1]||t;return n.set(l,t),l}))}}return t},E=(t,n={})=>{var e;const l=[],o=n.exclude||[],i=V.customElements,r=_.head,c=r.querySelector("meta[charset]"),u=_.createElement("style"),f=[];let d,h=!0;Object.assign(z,n),z.P=new URL(n.resourcesUrl||"./",_.baseURI).href,t.map((t=>{t[1].map((n=>{const e={i:n[0],p:n[1],M:n[2],N:n[3]};e.M=n[2];const s=e.p,r=class extends HTMLElement{constructor(t){super(t),L(t=this,e)}connectedCallback(){d&&(clearTimeout(d),d=null),h?f.push(this):z.jmp((()=>(t=>{if(0==(1&z.i)){const n=A(t),e=n.S,l=()=>{};if(!(1&n.i)){n.i|=1;{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){v(n,n.m=e);break}}e.M&&Object.entries(e.M).map((([n,[e]])=>{if(31&e&&t.hasOwnProperty(n)){const e=t[n];delete t[n],t[n]=e}})),(async(t,n,e,l,o)=>{if(0==(32&n.i)){{if(n.i|=32,(o=q(e)).then){const t=()=>{};o=await o,t()}o.isProxied||(P(o,e,2),o.isProxied=!0);const t=()=>{};n.i|=8;try{new o(n)}catch(t){U(t)}n.i&=-9,t()}if(o.style){let t=o.style;const n=a(e);if(!H.has(n)){const l=()=>{};((t,n,e)=>{let l=H.get(t);D&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,H.set(t,l)})(n,t,!!(1&e.i)),l()}}}const s=n.m,i=()=>g(n,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,n,e)}l()}})(this)))}disconnectedCallback(){z.jmp((()=>{}))}componentOnReady(){return A(this).T}};e.A=t[0],o.includes(s)||i.get(s)||(l.push(s),i.define(s,P(r,e,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const t=null!==(e=z.j)&&void 0!==e?e:s(_);null!=t&&u.setAttribute("nonce",t),r.insertBefore(u,c?c.nextSibling:r.firstChild)}h=!1,f.length?f.map((t=>t.connectedCallback())):z.jmp((()=>d=setTimeout(M,30)))},N=t=>z.j=t,T=new WeakMap,A=t=>T.get(t),F=(t,n)=>T.set(n.v=t,n),L=(t,n)=>{const e={i:0,g:t,S:n,C:new Map};return e.T=new Promise((t=>e.O=t)),t["s-p"]=[],t["s-rc"]=[],T.set(t,e)},R=(t,n)=>n in t,U=(t,n)=>(0,console.error)(t,n),W=new Map,q=t=>{const n=t.p.replace(/-/g,"_"),e=t.A,l=W.get(e);return l?l[n]:import(`./${e}.entry.js`).then((t=>(W.set(e,t),t[n])),U)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},H=new Map,V="undefined"!=typeof window?window:{},_=V.document||{head:{}},z={i:0,P:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,l)=>t.addEventListener(n,e,l),rel:(t,n,e,l)=>t.removeEventListener(n,e,l),ce:(t,n)=>new CustomEvent(t,n)},B=t=>Promise.resolve(t),D=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),G=[],I=[],J=(t,e)=>l=>{t.push(l),n||(n=!0,e&&4&z.i?X(Q):z.raf(Q))},K=t=>{for(let n=0;n<t.length;n++)try{t[n](performance.now())}catch(t){U(t)}t.length=0},Q=()=>{K(G),K(I),(n=G.length>0)&&z.raf(Q)},X=t=>B().then(t),Y=J(I,!0);export{E as b,i as h,B as p,F as r,N as s}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./p-
|
|
1
|
+
import{p as e,b as i}from"./p-f7e8a1cb.js";export{s as setNonce}from"./p-f7e8a1cb.js";(()=>{const i=import.meta.url,n={};return""!==i&&(n.resourcesUrl=new URL(".",i).href),e(n)})().then((e=>i([["p-83fbc649",[[0,"acura-ikon",{hex:[1],name:[1],size:[2]}],[0,"alfa-romeo-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"alfa-romeo-ikon",{hex:[1],name:[1],size:[2]}],[0,"alien-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"am-general-ikon",{hex:[1],name:[1],size:[2]}],[0,"asterisk-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"aston-martin-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"aston-martin-ikon",{hex:[1],name:[1],size:[2]}],[0,"audi-ikon",{hex:[1],name:[1],size:[2]}],[0,"barcode-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"barcode-scan-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"bash-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"beaker-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"bently-ikon",{hex:[1],name:[1],size:[2]}],[0,"bmw-ikon",{hex:[1],name:[1],size:[2]}],[0,"bugatti-ikon",{hex:[1],name:[1],size:[2]}],[0,"buick-ikon",{hex:[1],name:[1],size:[2]}],[0,"cadillac-ikon",{hex:[1],name:[1],size:[2]}],[0,"chart-bar-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"chart-bubble-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"chart-donut-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"chart-donuts-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"check-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}],[0,"chevrolet-ikon",{hex:[1],name:[1],size:[2]}],[0,"chevron-double-left-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"chrysler-ikon",{hex:[1],name:[1],size:[2]}],[0,"circular-saw-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"citroen-ikon",{hex:[1],name:[1],size:[2]}],[0,"close-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"daewoo-ikon",{hex:[1],name:[1],size:[2]}],[0,"dodge-ikon",{hex:[1],name:[1],size:[2]}],[0,"eagle-ikon",{hex:[1],name:[1],size:[2]}],[0,"ferrari-ikon",{hex:[1],name:[1],size:[2]}],[0,"fiat-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"fiat-ikon",{hex:[1],name:[1],size:[2]}],[0,"fingerprint-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"fire-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"fisker-ikon",{hex:[1],name:[1],size:[2]}],[0,"flask-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"ford-ikon",{hex:[1],name:[1],size:[2]}],[0,"genesis-ikon",{hex:[1],name:[1],size:[2]}],[0,"geo-ikon",{hex:[1],name:[1],size:[2]}],[0,"git-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"gmc-ikon",{hex:[1],name:[1],size:[2]}],[0,"honda-ikon",{hex:[1],name:[1],size:[2]}],[0,"hummer-ikon",{hex:[1],name:[1],size:[2]}],[0,"hyundai-ikon",{hex:[1],name:[1],size:[2]}],[0,"infiniti-ikon",{hex:[1],name:[1],size:[2]}],[0,"isuzu-ikon",{hex:[1],name:[1],size:[2]}],[0,"jaguar-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"jaguar-ikon",{hex:[1],name:[1],size:[2]}],[0,"java-script-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"jeep-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"jeep-ikon",{hex:[1],name:[1],size:[2]}],[0,"kia-ikon",{hex:[1],name:[1],size:[2]}],[0,"lamborghini-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"lamborghini-ikon",{hex:[1],name:[1],size:[2]}],[0,"land-rover-ikon",{hex:[1],name:[1],size:[2]}],[0,"lexus-ikon",{hex:[1],name:[1],size:[2]}],[0,"lincoln-ikon",{hex:[1],name:[1],size:[2]}],[0,"lotus-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"lotus-ikon",{hex:[1],name:[1],size:[2]}],[0,"maserati-ikon",{hex:[1],name:[1],size:[2]}],[0,"maybach-ikon",{hex:[1],name:[1],size:[2]}],[0,"mazda-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"mazda-ikon",{hex:[1],name:[1],size:[2]}],[0,"mclaren-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"mclaren-ikon",{hex:[1],name:[1],size:[2]}],[0,"mercedes-benz-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"mercedes-benz-ikon",{hex:[1],name:[1],size:[2]}],[0,"mercury-ikon",{hex:[1],name:[1],size:[2]}],[0,"mini-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"mini-ikon",{hex:[1],name:[1],size:[2]}],[0,"mitsubishi-ikon",{hex:[1],name:[1],size:[2]}],[0,"nissan-ikon",{hex:[1],name:[1],size:[2]}],[0,"oldsmobile-ikon",{hex:[1],name:[1],size:[2]}],[0,"one-password-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"opel-ikon",{hex:[1],name:[1],size:[2]}],[0,"panoz-ikon",{hex:[1],name:[1],size:[2]}],[0,"paw-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"peugeot-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"peugeot-ikon",{hex:[1],name:[1],size:[2]}],[0,"plymouth-ikon",{hex:[1],name:[1],size:[2]}],[0,"pontiac-ikon",{hex:[1],name:[1],size:[2]}],[0,"porsche-ikon",{hex:[1],name:[1],size:[2]}],[0,"protocol-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"pulse-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"puzzle-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}],[0,"qr-code-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"radio-2-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}],[0,"radio-icon",{selected:[4],hex:[1],label:[1],name:[1],size:[2]}],[0,"ram-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"ram-ikon",{hex:[1],name:[1],size:[2]}],[0,"refresh-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"renault-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"renault-ikon",{hex:[1],name:[1],size:[2]}],[0,"rolls-royce-ikon",{hex:[1],name:[1],size:[2]}],[0,"saab-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"saab-ikon",{hex:[1],name:[1],size:[2]}],[0,"saturn-ikon",{hex:[1],name:[1],size:[2]}],[0,"scion-ikon",{hex:[1],name:[1],size:[2]}],[0,"seat-ikon",{hex:[1],name:[1],size:[2]}],[0,"skoda-ikon",{hex:[1],name:[1],size:[2]}],[0,"slug-icon",{label:[1],name:[1],size:[2]}],[0,"smart-ikon",{hex:[1],name:[1],size:[2]}],[0,"spider-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"spyker-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"spyker-ikon",{hex:[1],name:[1],size:[2]}],[0,"subaru-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"subaru-ikon",{hex:[1],name:[1],size:[2]}],[0,"suzuki-ikon",{hex:[1],name:[1],size:[2]}],[0,"svg-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"tesla-ikon",{hex:[1],name:[1],size:[2]}],[0,"toyota-ikon",{hex:[1],name:[1],size:[2]}],[0,"vector-curve-icon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"volkswagen-ikon",{hex:[1],name:[1],size:[2]}],[0,"volvo-alt-ikon",{hex:[1],label:[1],name:[1],size:[2]}],[0,"volvo-ikon",{hex:[1],name:[1],size:[2]}],[0,"webhook-icon",{hex:[1],label:[1],name:[1],size:[2]}]]]],e)));
|
|
@@ -133,7 +133,7 @@ export interface ListenOptions {
|
|
|
133
133
|
*/
|
|
134
134
|
passive?: boolean;
|
|
135
135
|
}
|
|
136
|
-
export
|
|
136
|
+
export type ListenTargetOptions = 'body' | 'document' | 'window';
|
|
137
137
|
export interface StateDecorator {
|
|
138
138
|
(): PropertyDecorator;
|
|
139
139
|
}
|
|
@@ -214,8 +214,8 @@ export declare const State: StateDecorator;
|
|
|
214
214
|
* https://stenciljs.com/docs/reactive-data#watch-decorator
|
|
215
215
|
*/
|
|
216
216
|
export declare const Watch: WatchDecorator;
|
|
217
|
-
export
|
|
218
|
-
export
|
|
217
|
+
export type ResolutionHandler = (elm: HTMLElement) => string | undefined | null;
|
|
218
|
+
export type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
219
219
|
/**
|
|
220
220
|
* `setMode()` is used for libraries which provide multiple "modes" for styles.
|
|
221
221
|
*/
|
|
@@ -257,6 +257,15 @@ export declare function getAssetPath(path: string): string;
|
|
|
257
257
|
* @returns the set path
|
|
258
258
|
*/
|
|
259
259
|
export declare function setAssetPath(path: string): string;
|
|
260
|
+
/**
|
|
261
|
+
* Used to specify a nonce value that corresponds with an application's
|
|
262
|
+
* [Content Security Policy (CSP)](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP).
|
|
263
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
264
|
+
* Alternatively, the nonce value can be set on a `meta` tag in the DOM head
|
|
265
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) and will result in the same behavior.
|
|
266
|
+
* @param nonce The value to be used for the nonce attribute.
|
|
267
|
+
*/
|
|
268
|
+
export declare function setNonce(nonce: string): void;
|
|
260
269
|
/**
|
|
261
270
|
* Retrieve a Stencil element for a given reference
|
|
262
271
|
* @param ref the ref to get the Stencil element for
|
|
@@ -433,8 +442,44 @@ interface HostAttributes {
|
|
|
433
442
|
ref?: (el: HTMLElement | null) => void;
|
|
434
443
|
[prop: string]: any;
|
|
435
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* Utilities for working with functional Stencil components. An object
|
|
447
|
+
* conforming to this interface is passed by the Stencil runtime as the third
|
|
448
|
+
* argument to a functional component, allowing component authors to work with
|
|
449
|
+
* features like children.
|
|
450
|
+
*
|
|
451
|
+
* The children of a functional component will be passed as the second
|
|
452
|
+
* argument, so a functional component which uses these utils to transform its
|
|
453
|
+
* children might look like the following:
|
|
454
|
+
*
|
|
455
|
+
* ```ts
|
|
456
|
+
* export const AddClass: FunctionalComponent = (_, children, utils) => (
|
|
457
|
+
* utils.map(children, child => ({
|
|
458
|
+
* ...child,
|
|
459
|
+
* vattrs: {
|
|
460
|
+
* ...child.vattrs,
|
|
461
|
+
* class: `${child.vattrs.class} add-class`
|
|
462
|
+
* }
|
|
463
|
+
* }))
|
|
464
|
+
* );
|
|
465
|
+
* ```
|
|
466
|
+
*
|
|
467
|
+
* For more see the Stencil documentation, here:
|
|
468
|
+
* https://stenciljs.com/docs/functional-components
|
|
469
|
+
*/
|
|
436
470
|
export interface FunctionalUtilities {
|
|
471
|
+
/**
|
|
472
|
+
* Utility for reading the children of a functional component at runtime.
|
|
473
|
+
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
+
* not recommendeded to read the children directly, and is preferable to use
|
|
475
|
+
* this utility to, for instance, perform a side effect for each child.
|
|
476
|
+
*/
|
|
437
477
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
478
|
+
/**
|
|
479
|
+
* Utility for transforming the children of a functional component. Given an
|
|
480
|
+
* array of children and a callback this will return a list of the results of
|
|
481
|
+
* passing each child to the supplied callback.
|
|
482
|
+
*/
|
|
438
483
|
map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
|
|
439
484
|
}
|
|
440
485
|
export interface FunctionalComponent<T = {}> {
|
package/loader/index.d.ts
CHANGED
|
@@ -10,3 +10,12 @@ export interface CustomElementsDefineOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "proto-ikons-wc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.84",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"format": "prettier --write src cSpell.json"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@stencil/core": "2.
|
|
30
|
+
"@stencil/core": "2.22.1"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let t=!1,e=!1;const n="http://www.w3.org/1999/xlink",l={},s=t=>"object"==(t=typeof t)||"function"===t,o=(t,e,...n)=>{let l=null,o=!1,i=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof t&&!s(l))&&(l+=""),o&&i?c[c.length-1].t+=l:c.push(o?r(null,l):l),i=o)};if(u(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const a=r(t,null);return a.l=e,c.length>0&&(a.o=c),a},r=(t,e)=>({i:0,u:t,t:e,h:null,o:null,l:null}),i={},c=new WeakMap,u=t=>"sc-"+t.$,a=(t,e,l,o,r,i)=>{if(l!==o){let c=F(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,n=h(l),s=h(o);e.remove(...n.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!n.includes(t))))}else{const a=s(o);if((c||a&&null!==o)&&!r)try{if(t.tagName.includes("-"))t[e]=o;else{const n=null==o?"":o;"list"===e?c=!1:null!=l&&t[e]==n||(t[e]=n)}}catch(t){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(n,e):t.removeAttribute(e)):(!c||4&i||r)&&!a&&(o=!0===o?"":o,f?t.setAttributeNS(n,e,o):t.setAttribute(e,o))}}},f=/\s/,h=t=>t?t.split(f):[],w=(t,e,n,s)=>{const o=11===e.h.nodeType&&e.h.host?e.h.host:e.h,r=t&&t.l||l,i=e.l||l;for(s in r)s in i||a(o,s,r[s],void 0,n,e.i);for(s in i)a(o,s,r[s],i[s],n,e.i)},$=(e,n,l)=>{const s=n.o[l];let o,r,i=0;if(null!==s.t)o=s.h=H.createTextNode(s.t);else{if(t||(t="svg"===s.u),o=s.h=H.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),w(null,s,t),s.o)for(i=0;i<s.o.length;++i)r=$(e,s,i),r&&o.appendChild(r);"svg"===s.u?t=!1:"foreignObject"===o.tagName&&(t=!0)}return o},p=(t,e,n,l,s,o)=>{let r,i=t;for(;s<=o;++s)l[s]&&(r=$(null,n,s),r&&(l[s].h=r,i.insertBefore(r,e)))},y=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.h.remove()},d=(t,e)=>t.u===e.u,m=(e,n)=>{const l=n.h=e.h,s=e.o,o=n.o,r=n.u,i=n.t;null===i?(t="svg"===r||"foreignObject"!==r&&t,w(e,n,t),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,i=e.length-1,c=e[0],u=e[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=e[++o]:null==u?u=e[--i]:null==f?f=l[++r]:null==h?h=l[--a]:d(c,f)?(m(c,f),c=e[++o],f=l[++r]):d(u,h)?(m(u,h),u=e[--i],h=l[--a]):d(c,h)?(m(c,h),t.insertBefore(c.h,u.h.nextSibling),c=e[++o],h=l[--a]):d(u,f)?(m(u,f),t.insertBefore(u.h,c.h),u=e[--i],f=l[++r]):(s=$(e&&e[r],n,r),f=l[++r],s&&c.h.parentNode.insertBefore(s,c.h));o>i?p(t,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&y(e,o,i)})(l,s,n,o):null!==o?(null!==e.t&&(l.textContent=""),p(l,null,n,o,0,o.length-1)):null!==s&&y(s,0,s.length-1),t&&"svg"===r&&(t=!1)):e.t!==i&&(l.data=i)},b=(t,e)=>{e&&!t.p&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.p=e)))},g=(t,e)=>{if(t.i|=16,!(4&t.i))return b(t,t.m),Q((()=>v(t,e)));t.i|=512},v=(t,e)=>{const n=t.g;return M(void 0,(()=>S(t,n,e)))},S=async(t,e,n)=>{const l=t.v,s=l["s-rc"];n&&(t=>{const e=t.S;((t,e)=>{let n=u(e);const l=W.get(n);if(t=11===t.nodeType?t:H,l)if("string"==typeof l){let e,s=c.get(t=t.head||t);s||c.set(t,s=new Set),s.has(n)||(e=H.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])})(t.v.getRootNode(),e)})(t);j(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>k(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},j=(t,e)=>{try{e=e.render(),t.i&=-17,t.i|=2,((t,e)=>{const n=t.v,l=t.j||r(null,null),s=(t=>t&&t.u===i)(e)?e:o(null,null,e);s.u=null,s.i|=4,t.j=s,s.h=l.h=n,m(l,s)})(t,e)}catch(e){L(e,t.v)}return null},k=t=>{const e=t.v,n=t.m;64&t.i||(t.i|=64,x(e),t.k(e),n||O()),t.p&&(t.p(),t.p=void 0),512&t.i&&K((()=>g(t,!1))),t.i&=-517},O=()=>{x(H.documentElement),K((()=>(t=>{const e=V.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return t.dispatchEvent(e),e})(q)))},M=(t,e)=>t&&t.then?t.then(e):e(),x=t=>t.classList.add("hydrated"),C=(t,e,n)=>{if(e.O){const l=Object.entries(e.O),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>N(this).M.get(e))(0,t)},set(n){((t,e,n,l)=>{const o=N(t),r=o.M.get(e),i=o.i,c=o.g;n=((t,e)=>null==t||s(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t)(n,l.O[e][0]),8&i&&void 0!==r||n===r||Number.isNaN(r)&&Number.isNaN(n)||(o.M.set(e,n),c&&2==(18&i)&&g(o,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){V.jmp((()=>{const n=e.get(t);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.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},P=(t,e={})=>{const n=[],l=e.exclude||[],s=q.customElements,o=H.head,r=o.querySelector("meta[charset]"),i=H.createElement("style"),c=[];let a,f=!0;Object.assign(V,e),V.C=new URL(e.resourcesUrl||"./",H.baseURI).href,t.map((t=>{t[1].map((e=>{const o={i:e[0],$:e[1],O:e[2],P:e[3]};o.O=e[2];const r=o.$,i=class extends HTMLElement{constructor(t){super(t),A(t=this,o)}connectedCallback(){a&&(clearTimeout(a),a=null),f?c.push(this):V.jmp((()=>(t=>{if(0==(1&V.i)){const e=N(t),n=e.S,l=()=>{};if(!(1&e.i)){e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){b(e,e.m=n);break}}n.O&&Object.entries(n.O).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.i)){{if(e.i|=32,(s=U(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(C(s,n,2),s.isProxied=!0);const t=()=>{};e.i|=8;try{new s(e)}catch(t){L(t)}e.i&=-9,t()}if(s.style){let t=s.style;const e=u(n);if(!W.has(e)){const l=()=>{};((t,e,n)=>{let l=W.get(t);z&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,W.set(t,l)})(e,t,!!(1&n.i)),l()}}}const o=e.m,r=()=>g(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){V.jmp((()=>{}))}componentOnReady(){return N(this).N}};o.T=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,C(i,o,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,r?r.nextSibling:o.firstChild),f=!1,c.length?c.map((t=>t.connectedCallback())):V.jmp((()=>a=setTimeout(O,30)))},E=new WeakMap,N=t=>E.get(t),T=(t,e)=>E.set(e.g=t,e),A=(t,e)=>{const n={i:0,v:t,S:e,M:new Map};return n.N=new Promise((t=>n.k=t)),t["s-p"]=[],t["s-rc"]=[],E.set(t,n)},F=(t,e)=>e in t,L=(t,e)=>(0,console.error)(t,e),R=new Map,U=t=>{const e=t.$.replace(/-/g,"_"),n=t.T,l=R.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(R.set(n,t),t[e])),L)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},W=new Map,q="undefined"!=typeof window?window:{},H=q.document||{head:{}},V={i:0,C:"",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)},_=t=>Promise.resolve(t),z=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),B=[],D=[],G=(t,n)=>l=>{t.push(l),e||(e=!0,n&&4&V.i?K(J):V.raf(J))},I=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){L(t)}t.length=0},J=()=>{I(B),I(D),(e=B.length>0)&&V.raf(J)},K=t=>_().then(t),Q=G(D,!0);export{P as b,o as h,_ as p,T as r}
|