proto-ikons-wc 0.0.150 → 0.0.151

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-bc8d9a41.js');
5
+ const index = require('./index-92de18bc.js');
6
6
 
7
7
  const acuraIkonCss = "";
8
8
  const AcuraIkonStyle0 = acuraIkonCss;
@@ -23,7 +23,7 @@ function _interopNamespace(e) {
23
23
  const NAMESPACE = 'proto-ikons-wc';
24
24
 
25
25
  /*
26
- Stencil Client Platform v4.18.0 | MIT Licensed | https://stenciljs.com
26
+ Stencil Client Platform v4.18.1 | MIT Licensed | https://stenciljs.com
27
27
  */
28
28
  var __defProp = Object.defineProperty;
29
29
  var __export = (target, all) => {
@@ -387,7 +387,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
387
387
  childNode = createElm(null, parentVNode, startIdx);
388
388
  if (childNode) {
389
389
  vnodes[startIdx].$elm$ = childNode;
390
- containerElm.insertBefore(childNode, before);
390
+ insertBefore(containerElm, childNode, before);
391
391
  }
392
392
  }
393
393
  }
@@ -435,12 +435,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
435
435
  newEndVnode = newCh[--newEndIdx];
436
436
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
437
437
  patch(oldStartVnode, newEndVnode, isInitialRender);
438
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
438
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
439
439
  oldStartVnode = oldCh[++oldStartIdx];
440
440
  newEndVnode = newCh[--newEndIdx];
441
441
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
442
442
  patch(oldEndVnode, newStartVnode, isInitialRender);
443
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
443
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
444
444
  oldEndVnode = oldCh[--oldEndIdx];
445
445
  newStartVnode = newCh[++newStartIdx];
446
446
  } else {
@@ -469,7 +469,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
469
469
  }
470
470
  if (node) {
471
471
  {
472
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
472
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
473
473
  }
474
474
  }
475
475
  }
@@ -528,6 +528,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
528
528
  elm.data = text;
529
529
  }
530
530
  };
531
+ var insertBefore = (parent, newNode, reference) => {
532
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
533
+ return inserted;
534
+ };
531
535
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
532
536
  const hostElm = hostRef.$hostElement$;
533
537
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -668,6 +672,11 @@ var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
668
672
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
669
673
  var setValue = (ref, propName, newVal, cmpMeta) => {
670
674
  const hostRef = getHostRef(ref);
675
+ if (!hostRef) {
676
+ throw new Error(
677
+ `Couldn't find host element for "${cmpMeta.$tagName$}" 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/ionic-team/stencil/issues/5457).`
678
+ );
679
+ }
671
680
  const oldVal = hostRef.$instanceValues$.get(propName);
672
681
  const flags = hostRef.$flags$;
673
682
  const instance = hostRef.$lazyInstance$ ;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bc8d9a41.js');
5
+ const index = require('./index-92de18bc.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bc8d9a41.js');
5
+ const index = require('./index-92de18bc.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.18.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.18.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  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": "4.18.0",
125
+ "version": "4.18.1",
126
126
  "typescriptVersion": "5.4.5"
127
127
  },
128
128
  "collections": [],
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-ec9da504.js';
1
+ import { r as registerInstance, h } from './index-420ab443.js';
2
2
 
3
3
  const acuraIkonCss = "";
4
4
  const AcuraIkonStyle0 = acuraIkonCss;
@@ -1,7 +1,7 @@
1
1
  const NAMESPACE = 'proto-ikons-wc';
2
2
 
3
3
  /*
4
- Stencil Client Platform v4.18.0 | MIT Licensed | https://stenciljs.com
4
+ Stencil Client Platform v4.18.1 | MIT Licensed | https://stenciljs.com
5
5
  */
6
6
  var __defProp = Object.defineProperty;
7
7
  var __export = (target, all) => {
@@ -365,7 +365,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
365
365
  childNode = createElm(null, parentVNode, startIdx);
366
366
  if (childNode) {
367
367
  vnodes[startIdx].$elm$ = childNode;
368
- containerElm.insertBefore(childNode, before);
368
+ insertBefore(containerElm, childNode, before);
369
369
  }
370
370
  }
371
371
  }
@@ -413,12 +413,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
413
413
  newEndVnode = newCh[--newEndIdx];
414
414
  } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
415
415
  patch(oldStartVnode, newEndVnode, isInitialRender);
416
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
416
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
417
417
  oldStartVnode = oldCh[++oldStartIdx];
418
418
  newEndVnode = newCh[--newEndIdx];
419
419
  } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
420
420
  patch(oldEndVnode, newStartVnode, isInitialRender);
421
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
421
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
422
422
  oldEndVnode = oldCh[--oldEndIdx];
423
423
  newStartVnode = newCh[++newStartIdx];
424
424
  } else {
@@ -447,7 +447,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
447
447
  }
448
448
  if (node) {
449
449
  {
450
- oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
450
+ insertBefore(oldStartVnode.$elm$.parentNode, node, oldStartVnode.$elm$);
451
451
  }
452
452
  }
453
453
  }
@@ -506,6 +506,10 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
506
506
  elm.data = text;
507
507
  }
508
508
  };
509
+ var insertBefore = (parent, newNode, reference) => {
510
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
511
+ return inserted;
512
+ };
509
513
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
510
514
  const hostElm = hostRef.$hostElement$;
511
515
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -646,6 +650,11 @@ var addHydratedFlag = (elm) => elm.classList.add("hydrated") ;
646
650
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
647
651
  var setValue = (ref, propName, newVal, cmpMeta) => {
648
652
  const hostRef = getHostRef(ref);
653
+ if (!hostRef) {
654
+ throw new Error(
655
+ `Couldn't find host element for "${cmpMeta.$tagName$}" 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/ionic-team/stencil/issues/5457).`
656
+ );
657
+ }
649
658
  const oldVal = hostRef.$instanceValues$.get(propName);
650
659
  const flags = hostRef.$flags$;
651
660
  const instance = hostRef.$lazyInstance$ ;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-ec9da504.js';
2
- export { s as setNonce } from './index-ec9da504.js';
1
+ import { b as bootstrapLazy } from './index-420ab443.js';
2
+ export { s as setNonce } from './index-420ab443.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-ec9da504.js';
2
- export { s as setNonce } from './index-ec9da504.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-420ab443.js';
2
+ export { s as setNonce } from './index-420ab443.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.18.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.18.1 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;