proto-ikons-wc 0.0.121 → 0.0.123
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-f1bf25d7.js → index-246d2976.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/acura-ikon_119.entry.js +1 -1
- package/dist/esm/{index-8f3312cf.js → index-292101b6.js} +5 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-ikons-wc.js +3 -3
- package/dist/proto-ikons-wc/p-088d87b9.js +2 -0
- package/dist/proto-ikons-wc/{p-59442da7.entry.js → p-a78325a1.entry.js} +1 -1
- package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
- package/package.json +3 -3
- package/dist/proto-ikons-wc/p-f9a39ed5.js +0 -2
|
@@ -30,6 +30,7 @@ const NAMESPACE = 'proto-ikons-wc';
|
|
|
30
30
|
*
|
|
31
31
|
* Modified for Stencil's renderer and slot projection
|
|
32
32
|
*/
|
|
33
|
+
let hostTagName;
|
|
33
34
|
let isSvgMode = false;
|
|
34
35
|
let queuePending = false;
|
|
35
36
|
const createTime = (fnName, tagName = '') => {
|
|
@@ -485,6 +486,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
485
486
|
}
|
|
486
487
|
}
|
|
487
488
|
}
|
|
489
|
+
// This needs to always happen so we can hide nodes that are projected
|
|
490
|
+
// to another component but don't end up in a slot
|
|
491
|
+
elm['s-hn'] = hostTagName;
|
|
488
492
|
return elm;
|
|
489
493
|
};
|
|
490
494
|
/**
|
|
@@ -813,6 +817,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
813
817
|
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
814
818
|
// contains attrs that need to be set on the host element.
|
|
815
819
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
820
|
+
hostTagName = hostElm.tagName;
|
|
816
821
|
// On the first render and *only* on the first render we want to check for
|
|
817
822
|
// any attributes set on the host element which are also set on the vdom
|
|
818
823
|
// node. If we find them, we override the value on the VDom node attrs with
|
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-246d2976.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -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-246d2976.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.8.
|
|
8
|
+
Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('proto-ikons-wc.cjs.js', document.baseURI).href));
|
|
@@ -8,6 +8,7 @@ const NAMESPACE = 'proto-ikons-wc';
|
|
|
8
8
|
*
|
|
9
9
|
* Modified for Stencil's renderer and slot projection
|
|
10
10
|
*/
|
|
11
|
+
let hostTagName;
|
|
11
12
|
let isSvgMode = false;
|
|
12
13
|
let queuePending = false;
|
|
13
14
|
const createTime = (fnName, tagName = '') => {
|
|
@@ -463,6 +464,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
466
|
}
|
|
467
|
+
// This needs to always happen so we can hide nodes that are projected
|
|
468
|
+
// to another component but don't end up in a slot
|
|
469
|
+
elm['s-hn'] = hostTagName;
|
|
466
470
|
return elm;
|
|
467
471
|
};
|
|
468
472
|
/**
|
|
@@ -791,6 +795,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
791
795
|
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
792
796
|
// contains attrs that need to be set on the host element.
|
|
793
797
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
798
|
+
hostTagName = hostElm.tagName;
|
|
794
799
|
// On the first render and *only* on the first render we want to check for
|
|
795
800
|
// any attributes set on the host element which are also set on the vdom
|
|
796
801
|
// node. If we find them, we override the value on the VDom node attrs with
|
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-292101b6.js';
|
|
2
|
+
export { s as setNonce } from './index-292101b6.js';
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
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-292101b6.js';
|
|
2
|
+
export { s as setNonce } from './index-292101b6.js';
|
|
3
3
|
|
|
4
4
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.8.
|
|
5
|
+
Stencil Client Patch Browser v4.8.2 | MIT Licensed | https://stenciljs.com
|
|
6
6
|
*/
|
|
7
7
|
const patchBrowser = () => {
|
|
8
8
|
const importMeta = import.meta.url;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let n,t=!1,e=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o="http://www.w3.org/1999/xlink",s={},i=n=>"object"==(n=typeof n)||"function"===n;function c(n){var t,e,l;return null!==(l=null===(e=null===(t=n.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===e?void 0:e.getAttribute("content"))&&void 0!==l?l:void 0}const r=(n,t,...e)=>{let l=null,o=!1,s=!1;const c=[],r=t=>{for(let e=0;e<t.length;e++)l=t[e],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof n&&!i(l))&&(l+=""),o&&s?c[c.length-1].t+=l:c.push(o?u(null,l):l),s=o)};if(r(e),t){const n=t.className||t.class;n&&(t.class="object"!=typeof n?n:Object.keys(n).filter((t=>n[t])).join(" "))}const a=u(n,null);return a.l=t,c.length>0&&(a.o=c),a},u=(n,t)=>({i:0,u:n,t,h:null,o:null,l:null}),a={},f=new WeakMap,d=n=>"sc-"+n.p,y=(n,t,e,l,s,c)=>{if(e!==l){let r=q(n,t),u=t.toLowerCase();if("class"===t){const t=n.classList,o=p(e),s=p(l);t.remove(...o.filter((n=>n&&!s.includes(n)))),t.add(...s.filter((n=>n&&!o.includes(n))))}else{const a=i(l);if((r||a&&null!==l)&&!s)try{if(n.tagName.includes("-"))n[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=e&&n[t]==o||(n[t]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(t)||(f?n.removeAttributeNS(o,t):n.removeAttribute(t)):(!r||4&c||s)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(o,t,l):n.setAttribute(t,l))}}},h=/\s/,p=n=>n?n.split(h):[],v=(n,t,e,l)=>{const o=11===t.h.nodeType&&t.h.host?t.h.host:t.h,i=n&&n.l||s,c=t.l||s;for(l in i)l in c||y(o,l,i[l],void 0,e,t.i);for(l in c)y(o,l,i[l],c[l],e,t.i)},w=(e,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.h=D.createTextNode(s.t);else{if(t||(t="svg"===s.u),i=s.h=D.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.u),t&&"foreignObject"===s.u&&(t=!1),v(null,s,t),s.o)for(r=0;r<s.o.length;++r)c=w(e,s,r),c&&i.appendChild(c);"svg"===s.u?t=!1:"foreignObject"===i.tagName&&(t=!0)}return i["s-hn"]=n,i},$=(n,t,e,l,o,s)=>{let i,c=n;for(;o<=s;++o)l[o]&&(i=w(null,e,o),i&&(l[o].h=i,c.insertBefore(i,t)))},m=(n,t,e)=>{for(let l=t;l<=e;++l){const t=n[l];if(t){const n=t.h;n&&n.remove()}}},b=(n,t)=>n.u===t.u,g=(n,e)=>{const l=e.h=n.h,o=n.o,s=e.o,i=e.u,c=e.t;null===c?(t="svg"===i||"foreignObject"!==i&&t,v(n,e,t),null!==o&&null!==s?((n,t,e,l)=>{let o,s=0,i=0,c=t.length-1,r=t[0],u=t[c],a=l.length-1,f=l[0],d=l[a];for(;s<=c&&i<=a;)null==r?r=t[++s]:null==u?u=t[--c]:null==f?f=l[++i]:null==d?d=l[--a]:b(r,f)?(g(r,f),r=t[++s],f=l[++i]):b(u,d)?(g(u,d),u=t[--c],d=l[--a]):b(r,d)?(g(r,d),n.insertBefore(r.h,u.h.nextSibling),r=t[++s],d=l[--a]):b(u,f)?(g(u,f),n.insertBefore(u.h,r.h),u=t[--c],f=l[++i]):(o=w(t&&t[i],e,i),f=l[++i],o&&r.h.parentNode.insertBefore(o,r.h));s>c?$(n,null==l[a+1]?null:l[a+1].h,e,l,i,a):i>a&&m(t,s,c)})(l,o,e,s):null!==s?(null!==n.t&&(l.textContent=""),$(l,null,e,s,0,s.length-1)):null!==o&&m(o,0,o.length-1),t&&"svg"===i&&(t=!1)):n.t!==c&&(l.data=c)},j=(n,t)=>{t&&!n.v&&t["s-p"]&&t["s-p"].push(new Promise((t=>n.v=t)))},S=(n,t)=>{if(n.i|=16,!(4&n.i))return j(n,n.$),tn((()=>O(n,t)));n.i|=512},O=(n,t)=>{const e=n.m;return k(void 0,(()=>x(n,e,t)))},k=(n,t)=>M(n)?n.then(t):t(),M=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,x=async(n,t,e)=>{var o;const s=n.$hostElement$,i=s["s-rc"];e&&(n=>{const t=n.j;((n,t)=>{var e;const o=d(t),s=z.get(o);if(n=11===n.nodeType?n:D,s)if("string"==typeof s){let i,r=f.get(n=n.head||n);if(r||f.set(n,r=new Set),!r.has(o)){{i=D.createElement("style"),i.innerHTML=s;const t=null!==(e=G.S)&&void 0!==e?e:c(D);null!=t&&i.setAttribute("nonce",t),n.insertBefore(i,n.querySelector("link"))}4&t.i&&(i.innerHTML+=l),r&&r.add(o)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s])})(n.$hostElement$.getRootNode(),t)})(n);C(n,t,s,e),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const t=null!==(o=s["s-p"])&&void 0!==o?o:[],e=()=>P(n);0===t.length?e():(Promise.all(t).then(e),n.i|=4,t.length=0)}},C=(t,e,l,o)=>{try{e=e.render(),t.i&=-17,t.i|=2,((t,e,l=!1)=>{const o=t.$hostElement$,s=t.O||u(null,null),i=(n=>n&&n.u===a)(e)?e:r(null,null,e);if(n=o.tagName,l&&i.l)for(const n of Object.keys(i.l))o.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(i.l[n]=o[n]);i.u=null,i.i|=4,t.O=i,i.h=s.h=o,g(s,i)})(t,e,o)}catch(n){H(n,t.$hostElement$)}return null},P=n=>{const t=n.$hostElement$,e=n.$;64&n.i||(n.i|=64,E(t),n.k(t),e||A()),n.v&&(n.v(),n.v=void 0),512&n.i&&nn((()=>S(n,!1))),n.i&=-517},A=()=>{E(D.documentElement),nn((()=>(n=>{const t=G.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return n.dispatchEvent(t),t})(B)))},E=n=>n.classList.add("hydrated"),N=(n,t,e)=>{var l;const o=n.prototype;if(t.M){const s=Object.entries(t.M);if(s.map((([n,[l]])=>{(31&l||2&e&&32&l)&&Object.defineProperty(o,n,{get(){return((n,t)=>R(this).C.get(t))(0,n)},set(e){((n,t,e,l)=>{const o=R(n),s=o.C.get(t),c=o.i,r=o.m;e=((n,t)=>null==n||i(n)?n:4&t?"false"!==n&&(""===n||!!n):2&t?parseFloat(n):1&t?n+"":n)(e,l.M[t][0]),8&c&&void 0!==s||e===s||Number.isNaN(s)&&Number.isNaN(e)||(o.C.set(t,e),r&&2==(18&c)&&S(o,!1))})(this,n,e,t)},configurable:!0,enumerable:!0})})),1&e){const e=new Map;o.attributeChangedCallback=function(n,l,s){G.jmp((()=>{var i;const c=e.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const e=R(this),o=null==e?void 0:e.i;if(o&&!(8&o)&&128&o&&s!==l){const o=e.m,c=null===(i=t.P)||void 0===i?void 0:i[n];null==c||c.forEach((t=>{null!=o[t]&&o[t].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=t.P)&&void 0!==l?l:{}),...s.filter((([n,t])=>15&t[0])).map((([n,t])=>{const l=t[1]||n;return e.set(l,n),l}))]))}}return n},T=(n,t={})=>{var e;const o=[],s=t.exclude||[],i=B.customElements,r=D.head,u=r.querySelector("meta[charset]"),a=D.createElement("style"),f=[];let y,h=!0;Object.assign(G,t),G.A=new URL(t.resourcesUrl||"./",D.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((t=>{const e={i:t[0],p:t[1],M:t[2],N:t[3]};4&e.i&&(p=!0),e.M=t[2];const l=e.p,c=class extends HTMLElement{constructor(n){super(n),W(n=this,e)}connectedCallback(){y&&(clearTimeout(y),y=null),h?f.push(this):G.jmp((()=>(n=>{if(0==(1&G.i)){const t=R(n),e=t.j,l=()=>{};if(1&t.i)(null==t?void 0:t.m)||(null==t?void 0:t.T)&&t.T.then((()=>{}));else{t.i|=1;{let e=n;for(;e=e.parentNode||e.host;)if(e["s-p"]){j(t,t.$=e);break}}e.M&&Object.entries(e.M).map((([t,[e]])=>{if(31&e&&n.hasOwnProperty(t)){const e=n[t];delete n[t],n[t]=e}})),(async(n,t,e)=>{let l;if(0==(32&t.i)){t.i|=32;{if(l=_(e),l.then){const n=()=>{};l=await l,n()}l.isProxied||(N(l,e,2),l.isProxied=!0);const n=()=>{};t.i|=8;try{new l(t)}catch(n){H(n)}t.i&=-9,n()}if(l.style){let n=l.style;const t=d(e);if(!z.has(t)){const l=()=>{};((n,t,e)=>{let l=z.get(n);J&&e?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,z.set(n,l)})(t,n,!!(1&e.i)),l()}}}const o=t.$,s=()=>S(t,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,t,e)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.i)){const n=R(this);(null==n?void 0:n.m)||(null==n?void 0:n.T)&&n.T.then((()=>{}))}})()))}componentOnReady(){return R(this).T}};e.F=n[0],s.includes(l)||i.get(l)||(o.push(l),i.define(l,N(c,e,1)))}))})),p&&(a.innerHTML+=l),a.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(e=G.S)&&void 0!==e?e:c(D);null!=n&&a.setAttribute("nonce",n),r.insertBefore(a,u?u.nextSibling:r.firstChild)}h=!1,f.length?f.map((n=>n.connectedCallback())):G.jmp((()=>y=setTimeout(A,30)))},F=n=>G.S=n,L=new WeakMap,R=n=>L.get(n),U=(n,t)=>L.set(t.m=n,t),W=(n,t)=>{const e={i:0,$hostElement$:n,j:t,C:new Map};return e.T=new Promise((n=>e.k=n)),n["s-p"]=[],n["s-rc"]=[],L.set(n,e)},q=(n,t)=>t in n,H=(n,t)=>(0,console.error)(n,t),V=new Map,_=n=>{const t=n.p.replace(/-/g,"_"),e=n.F,l=V.get(e);return l?l[t]:import(`./${e}.entry.js`).then((n=>(V.set(e,n),n[t])),H)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={i:0,A:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,t,e,l)=>n.addEventListener(t,e,l),rel:(n,t,e,l)=>n.removeEventListener(t,e,l),ce:(n,t)=>new CustomEvent(n,t)},I=n=>Promise.resolve(n),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),K=[],Q=[],X=(n,t)=>l=>{n.push(l),e||(e=!0,t&&4&G.i?nn(Z):G.raf(Z))},Y=n=>{for(let t=0;t<n.length;t++)try{n[t](performance.now())}catch(n){H(n)}n.length=0},Z=()=>{Y(K),Y(Q),(e=K.length>0)&&G.raf(Z)},nn=n=>I().then(n),tn=X(Q,!0);export{T as b,r as h,I as p,U as r,F as s}
|