proto-ikons-wc 0.0.55 → 0.0.58

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-39582561.js');
5
+ const index = require('./index-d996d2af.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
 
@@ -75,7 +75,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
75
75
  };
76
76
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
77
77
  let scopeId = getScopeId(cmpMeta);
78
- let style = styles.get(scopeId);
78
+ const style = styles.get(scopeId);
79
79
  // if an element is NOT connected then getRootNode() will return the wrong root node
80
80
  // so the fallback is to always use the document for the root node in those cases
81
81
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -147,7 +147,7 @@ const h = (nodeName, vnodeData, ...children) => {
147
147
  let child = null;
148
148
  let simple = false;
149
149
  let lastSimple = false;
150
- let vNodeChildren = [];
150
+ const vNodeChildren = [];
151
151
  const walk = (c) => {
152
152
  for (let i = 0; i < c.length; i++) {
153
153
  child = c[i];
@@ -231,7 +231,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
231
231
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
232
232
  try {
233
233
  if (!elm.tagName.includes('-')) {
234
- let n = newValue == null ? '' : newValue;
234
+ const n = newValue == null ? '' : newValue;
235
235
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
236
236
  if (memberName === 'list') {
237
237
  isProp = false;
@@ -308,7 +308,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
308
308
  };
309
309
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
310
310
  // tslint:disable-next-line: prefer-const
311
- let newVNode = newParentVNode.$children$[childIndex];
311
+ const newVNode = newParentVNode.$children$[childIndex];
312
312
  let i = 0;
313
313
  let elm;
314
314
  let childNode;
@@ -1042,7 +1042,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1042
1042
  if (module) {
1043
1043
  return module[exportName];
1044
1044
  }
1045
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1045
1046
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1047
+ /* @vite-ignore */
1046
1048
  /* webpackInclude: /\.entry\.js$/ */
1047
1049
  /* webpackExclude: /\.system\.entry\.js$/ */
1048
1050
  /* webpackMode: "lazy" */
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-39582561.js');
5
+ const index = require('./index-d996d2af.js');
6
6
 
7
7
  /*
8
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
  const patchEsm = () => {
11
11
  return index.promiseResolve();
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-39582561.js');
3
+ const index = require('./index-d996d2af.js');
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v2.16.1 | 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('proto-ikons-wc.cjs.js', document.baseURI).href));
@@ -122,7 +122,7 @@
122
122
  ],
123
123
  "compiler": {
124
124
  "name": "@stencil/core",
125
- "version": "2.15.2",
125
+ "version": "2.16.1",
126
126
  "typescriptVersion": "4.5.4"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-47a6f3f7.js';
1
+ import { r as registerInstance, h } from './index-df670746.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
 
@@ -53,7 +53,7 @@ const registerStyle = (scopeId, cssText, allowCS) => {
53
53
  };
54
54
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
55
55
  let scopeId = getScopeId(cmpMeta);
56
- let style = styles.get(scopeId);
56
+ const style = styles.get(scopeId);
57
57
  // if an element is NOT connected then getRootNode() will return the wrong root node
58
58
  // so the fallback is to always use the document for the root node in those cases
59
59
  styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
@@ -125,7 +125,7 @@ const h = (nodeName, vnodeData, ...children) => {
125
125
  let child = null;
126
126
  let simple = false;
127
127
  let lastSimple = false;
128
- let vNodeChildren = [];
128
+ const vNodeChildren = [];
129
129
  const walk = (c) => {
130
130
  for (let i = 0; i < c.length; i++) {
131
131
  child = c[i];
@@ -209,7 +209,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
209
209
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
210
210
  try {
211
211
  if (!elm.tagName.includes('-')) {
212
- let n = newValue == null ? '' : newValue;
212
+ const n = newValue == null ? '' : newValue;
213
213
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
214
214
  if (memberName === 'list') {
215
215
  isProp = false;
@@ -286,7 +286,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
286
286
  };
287
287
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
288
288
  // tslint:disable-next-line: prefer-const
289
- let newVNode = newParentVNode.$children$[childIndex];
289
+ const newVNode = newParentVNode.$children$[childIndex];
290
290
  let i = 0;
291
291
  let elm;
292
292
  let childNode;
@@ -1020,7 +1020,9 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1020
1020
  if (module) {
1021
1021
  return module[exportName];
1022
1022
  }
1023
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1023
1024
  return import(
1025
+ /* @vite-ignore */
1024
1026
  /* webpackInclude: /\.entry\.js$/ */
1025
1027
  /* webpackExclude: /\.system\.entry\.js$/ */
1026
1028
  /* webpackMode: "lazy" */
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-47a6f3f7.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-df670746.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Esm v2.16.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchEsm = () => {
7
7
  return promiseResolve();
@@ -1,7 +1,7 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-47a6f3f7.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-df670746.js';
2
2
 
3
3
  /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Patch Browser v2.16.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  const patchBrowser = () => {
7
7
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ let t=!1,e=!1;const n="undefined"!=typeof window?window:{},l=n.document||{head:{}},s={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)},o=t=>Promise.resolve(t),r=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(t){}return!1})(),i="http://www.w3.org/1999/xlink",c=new WeakMap,u=t=>"sc-"+t.o,a={},f=t=>"object"==(t=typeof t)||"function"===t,h=(t,e,...n)=>{let l=null,s=!1,o=!1;const r=[],i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!f(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?w(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=w(t,null);return c.u=e,r.length>0&&(c.h=r),c},w=(t,e)=>({t:0,$:t,i:e,p:null,h:null,u:null}),$={},p=(t,e,n,l,s,o)=>{if(n!==l){let r=q(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,s=d(n),o=d(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else{const u=f(l);if((r||u&&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){}let a=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,a=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(a?t.removeAttributeNS(i,e):t.removeAttribute(e)):(!r||4&o||s)&&!u&&(l=!0===l?"":l,a?t.setAttributeNS(i,e,l):t.setAttribute(e,l))}}},y=/\s/,d=t=>t?t.split(y):[],m=(t,e,n,l)=>{const s=11===e.p.nodeType&&e.p.host?e.p.host:e.p,o=t&&t.u||a,r=e.u||a;for(l in o)l in r||p(s,l,o[l],void 0,n,e.t);for(l in r)p(s,l,o[l],r[l],n,e.t)},b=(e,n,s)=>{const o=n.h[s];let r,i,c=0;if(null!==o.i)r=o.p=l.createTextNode(o.i);else{if(t||(t="svg"===o.$),r=o.p=l.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.$),t&&"foreignObject"===o.$&&(t=!1),m(null,o,t),o.h)for(c=0;c<o.h.length;++c)i=b(e,o,c),i&&r.appendChild(i);"svg"===o.$?t=!1:"foreignObject"===r.tagName&&(t=!0)}return r},g=(t,e,n,l,s,o)=>{let r,i=t;for(;s<=o;++s)l[s]&&(r=b(null,n,s),r&&(l[s].p=r,i.insertBefore(r,e)))},v=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.p.remove()},S=(t,e)=>t.$===e.$,j=(e,n)=>{const l=n.p=e.p,s=e.h,o=n.h,r=n.$,i=n.i;null===i?(t="svg"===r||"foreignObject"!==r&&t,m(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]:S(c,f)?(j(c,f),c=e[++o],f=l[++r]):S(u,h)?(j(u,h),u=e[--i],h=l[--a]):S(c,h)?(j(c,h),t.insertBefore(c.p,u.p.nextSibling),c=e[++o],h=l[--a]):S(u,f)?(j(u,f),t.insertBefore(u.p,c.p),u=e[--i],f=l[++r]):(s=b(e&&e[r],n,r),f=l[++r],s&&c.p.parentNode.insertBefore(s,c.p));o>i?g(t,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&v(e,o,i)})(l,s,n,o):null!==o?(null!==e.i&&(l.textContent=""),g(l,null,n,o,0,o.length-1)):null!==s&&v(s,0,s.length-1),t&&"svg"===r&&(t=!1)):e.i!==i&&(l.data=i)},k=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},O=(t,e)=>{if(t.t|=16,!(4&t.t))return k(t,t.g),Q((()=>M(t,e)));t.t|=512},M=(t,e)=>{const n=t.v;return N(void 0,(()=>x(t,n,e)))},x=async(t,e,n)=>{const s=t.S,o=s["s-rc"];n&&(t=>{const e=t.j;((t,e)=>{let n=u(e);const s=z.get(n);if(t=11===t.nodeType?t:l,s)if("string"==typeof s){let e,o=c.get(t=t.head||t);o||c.set(t,o=new Set),o.has(n)||(e=l.createElement("style"),e.innerHTML=s,t.insertBefore(e,t.querySelector("link")),o&&o.add(n))}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s])})(t.S.getRootNode(),e)})(t);C(t,e),o&&(o.map((t=>t())),s["s-rc"]=void 0);{const e=s["s-p"],n=()=>P(t);0===e.length?n():(Promise.all(e).then(n),t.t|=4,e.length=0)}},C=(t,e)=>{try{e=e.render(),t.t&=-17,t.t|=2,((t,e)=>{const n=t.S,l=t.k||w(null,null),s=(t=>t&&t.$===$)(e)?e:h(null,null,e);s.$=null,s.t|=4,t.k=s,s.p=l.p=n,j(l,s)})(t,e)}catch(e){H(e,t.S)}return null},P=t=>{const e=t.S,n=t.g;64&t.t||(t.t|=64,T(e),t.O(e),n||E()),t.m&&(t.m(),t.m=void 0),512&t.t&&K((()=>O(t,!1))),t.t&=-517},E=()=>{T(l.documentElement),K((()=>(t=>{const e=s.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return t.dispatchEvent(e),e})(n)))},N=(t,e)=>t&&t.then?t.then(e):e(),T=t=>t.classList.add("hydrated"),A=(t,e,n)=>{if(e.M){const l=Object.entries(e.M),o=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(o,t,{get(){return((t,e)=>R(this).C.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=R(t),o=s.C.get(e),r=s.t,i=s.v;n=((t,e)=>null==t||f(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?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),i&&2==(18&r)&&O(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const e=new Map;o.attributeChangedCallback=function(t,n,l){s.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},F=(t,e={})=>{const o=[],i=e.exclude||[],c=n.customElements,a=l.head,f=a.querySelector("meta[charset]"),h=l.createElement("style"),w=[];let $,p=!0;Object.assign(s,e),s.l=new URL(e.resourcesUrl||"./",l.baseURI).href,t.map((t=>{t[1].map((e=>{const n={t:e[0],o:e[1],M:e[2],P:e[3]};n.M=e[2];const l=n.o,a=class extends HTMLElement{constructor(t){super(t),W(t=this,n)}connectedCallback(){$&&(clearTimeout($),$=null),p?w.push(this):s.jmp((()=>(t=>{if(0==(1&s.t)){const e=R(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=_(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(A(s,n,2),s.isProxied=!0);const t=()=>{};e.t|=8;try{new s(e)}catch(t){H(t)}e.t&=-9,t()}if(s.style){let t=s.style;const e=u(n);if(!z.has(e)){const l=()=>{};((t,e,n)=>{let l=z.get(t);r&&n?(l=l||new CSSStyleSheet,l.replace(e)):l=e,z.set(t,l)})(e,t,!!(1&n.t)),l()}}}const o=e.g,i=()=>O(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,e,n)}l()}})(this)))}disconnectedCallback(){s.jmp((()=>{}))}componentOnReady(){return R(this).N}};n.T=t[0],i.includes(l)||c.get(l)||(o.push(l),c.define(l,A(a,n,1)))}))})),h.innerHTML=o+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,w.length?w.map((t=>t.connectedCallback())):s.jmp((()=>$=setTimeout(E,30)))},L=new WeakMap,R=t=>L.get(t),U=(t,e)=>L.set(e.v=t,e),W=(t,e)=>{const n={t:0,S:t,j:e,C:new Map};return n.N=new Promise((t=>n.O=t)),t["s-p"]=[],t["s-rc"]=[],L.set(t,n)},q=(t,e)=>e in t,H=(t,e)=>(0,console.error)(t,e),V=new Map,_=t=>{const e=t.o.replace(/-/g,"_"),n=t.T,l=V.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(V.set(n,t),t[e])),H)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B=[],D=[],G=(t,n)=>l=>{t.push(l),e||(e=!0,n&&4&s.t?K(J):s.raf(J))},I=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){H(t)}t.length=0},J=()=>{I(B),I(D),(e=B.length>0)&&s.raf(J)},K=t=>o().then(t),Q=G(D,!0);export{F as b,h,o as p,U as r}