proto-ikons-wc 0.0.127 → 0.0.129

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.
Files changed (253) hide show
  1. package/dist/cjs/acura-ikon_119.cjs.entry.js +120 -120
  2. package/dist/cjs/{index-5a3b525d.js → index-85c2e762.js} +92 -20
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/proto-ikons-wc.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/acura-ikon/acura-ikon.js +1 -1
  7. package/dist/collection/components/alfa-romeo-alt-ikon/alfa-romeo-alt-ikon.js +1 -1
  8. package/dist/collection/components/alfa-romeo-ikon/alfa-romeo-ikon.js +1 -1
  9. package/dist/collection/components/alien-icon/alien-icon.js +1 -1
  10. package/dist/collection/components/am-general-ikon/am-general-ikon.js +1 -1
  11. package/dist/collection/components/asterisk-icon/asterisk-icon.js +1 -1
  12. package/dist/collection/components/aston-martin-alt-ikon/aston-martin-alt-ikon.js +1 -1
  13. package/dist/collection/components/aston-martin-ikon/aston-martin-ikon.js +1 -1
  14. package/dist/collection/components/audi-ikon/audi-ikon.js +1 -1
  15. package/dist/collection/components/barcode-icon/barcode-icon.js +1 -1
  16. package/dist/collection/components/barcode-scan-icon/barcode-scan-icon.js +1 -1
  17. package/dist/collection/components/bash-icon/bash-icon.js +1 -1
  18. package/dist/collection/components/beaker-icon/beaker-icon.js +1 -1
  19. package/dist/collection/components/bently-ikon/bently-ikon.js +1 -1
  20. package/dist/collection/components/bmw-ikon/bmw-ikon.js +1 -1
  21. package/dist/collection/components/bugatti-ikon/bugatti-ikon.js +1 -1
  22. package/dist/collection/components/buick-ikon/buick-ikon.js +1 -1
  23. package/dist/collection/components/cadillac-ikon/cadillac-ikon.js +1 -1
  24. package/dist/collection/components/chart-bar-icon/chart-bar-icon.js +1 -1
  25. package/dist/collection/components/chart-bubble-icon/chart-bubble-icon.js +1 -1
  26. package/dist/collection/components/chart-donut-icon/chart-donut-icon.js +1 -1
  27. package/dist/collection/components/chart-donuts-icon/chart-donuts-icon.js +1 -1
  28. package/dist/collection/components/check-icon/check-icon.js +1 -1
  29. package/dist/collection/components/chevrolet-ikon/chevrolet-ikon.js +1 -1
  30. package/dist/collection/components/chevron-double-left-icon/chevron-double-left-icon.js +1 -1
  31. package/dist/collection/components/chrysler-ikon/chrysler-ikon.js +1 -1
  32. package/dist/collection/components/circular-saw-icon/circular-saw-icon.js +1 -1
  33. package/dist/collection/components/citroen-ikon/citroen-ikon.js +1 -1
  34. package/dist/collection/components/close-icon/close-icon.js +1 -1
  35. package/dist/collection/components/daewoo-ikon/daewoo-ikon.js +1 -1
  36. package/dist/collection/components/dodge-ikon/dodge-ikon.js +1 -1
  37. package/dist/collection/components/eagle-ikon/eagle-ikon.js +1 -1
  38. package/dist/collection/components/ferrari-ikon/ferrari-ikon.js +1 -1
  39. package/dist/collection/components/fiat-alt-ikon/fiat-alt-ikon.js +1 -1
  40. package/dist/collection/components/fiat-ikon/fiat-ikon.js +1 -1
  41. package/dist/collection/components/fingerprint-icon/fingerprint-icon.js +1 -1
  42. package/dist/collection/components/fire-icon/fire-icon.js +1 -1
  43. package/dist/collection/components/fisker-ikon/fisker-ikon.js +1 -1
  44. package/dist/collection/components/flask-icon/flask-icon.js +1 -1
  45. package/dist/collection/components/ford-ikon/ford-ikon.js +1 -1
  46. package/dist/collection/components/genesis-ikon/genesis-ikon.js +1 -1
  47. package/dist/collection/components/geo-ikon/geo-ikon.js +1 -1
  48. package/dist/collection/components/git-icon/git-icon.js +1 -1
  49. package/dist/collection/components/gmc-ikon/gmc-ikon.js +1 -1
  50. package/dist/collection/components/honda-ikon/honda-ikon.js +1 -1
  51. package/dist/collection/components/hummer-ikon/hummer-ikon.js +1 -1
  52. package/dist/collection/components/hyundai-ikon/hyundai-ikon.js +1 -1
  53. package/dist/collection/components/infiniti-ikon/infiniti-ikon.js +1 -1
  54. package/dist/collection/components/isuzu-ikon/isuzu-ikon.js +1 -1
  55. package/dist/collection/components/jaguar-alt-ikon/jaguar-alt-ikon.js +1 -1
  56. package/dist/collection/components/jaguar-ikon/jaguar-ikon.js +1 -1
  57. package/dist/collection/components/java-script-icon/java-script-icon.js +1 -1
  58. package/dist/collection/components/jeep-alt-ikon/jeep-alt-ikon.js +1 -1
  59. package/dist/collection/components/jeep-ikon/jeep-ikon.js +1 -1
  60. package/dist/collection/components/kia-ikon/kia-ikon.js +1 -1
  61. package/dist/collection/components/lamborghini-alt-ikon/lamborghini-alt-ikon.js +1 -1
  62. package/dist/collection/components/lamborghini-ikon/lamborghini-ikon.js +1 -1
  63. package/dist/collection/components/land-rover-ikon/land-rover-ikon.js +1 -1
  64. package/dist/collection/components/lexus-ikon/lexus-ikon.js +1 -1
  65. package/dist/collection/components/lincoln-ikon/lincoln-ikon.js +1 -1
  66. package/dist/collection/components/lotus-alt-ikon/lotus-alt-ikon.js +1 -1
  67. package/dist/collection/components/lotus-ikon/lotus-ikon.js +1 -1
  68. package/dist/collection/components/maserati-ikon/maserati-ikon.js +1 -1
  69. package/dist/collection/components/maybach-ikon/maybach-ikon.js +1 -1
  70. package/dist/collection/components/mazda-alt-ikon/mazda-alt-ikon.js +1 -1
  71. package/dist/collection/components/mazda-ikon/mazda-ikon.js +1 -1
  72. package/dist/collection/components/mclaren-alt-ikon/mclaren-alt-ikon.js +1 -1
  73. package/dist/collection/components/mclaren-ikon/mclaren-ikon.js +1 -1
  74. package/dist/collection/components/mercedes-benz-alt-ikon/mercedes-benz-alt-ikon.js +1 -1
  75. package/dist/collection/components/mercedes-benz-ikon/mercedes-benz-ikon.js +1 -1
  76. package/dist/collection/components/mercury-ikon/mercury-ikon.js +1 -1
  77. package/dist/collection/components/mini-alt-ikon/mini-alt-ikon.js +1 -1
  78. package/dist/collection/components/mini-ikon/mini-ikon.js +1 -1
  79. package/dist/collection/components/mitsubishi-ikon/mitsubishi-ikon.js +1 -1
  80. package/dist/collection/components/nissan-ikon/nissan-ikon.js +1 -1
  81. package/dist/collection/components/oldsmobile-ikon/oldsmobile-ikon.js +1 -1
  82. package/dist/collection/components/one-password-icon/one-password-icon.js +1 -1
  83. package/dist/collection/components/opel-ikon/opel-ikon.js +1 -1
  84. package/dist/collection/components/panoz-ikon/panoz-ikon.js +1 -1
  85. package/dist/collection/components/paw-icon/paw-icon.js +1 -1
  86. package/dist/collection/components/peugeot-alt-ikon/peugeot-alt-ikon.js +1 -1
  87. package/dist/collection/components/peugeot-ikon/peugeot-ikon.js +1 -1
  88. package/dist/collection/components/plymouth-ikon/plymouth-ikon.js +1 -1
  89. package/dist/collection/components/pontiac-ikon/pontiac-ikon.js +1 -1
  90. package/dist/collection/components/porsche-ikon/porsche-ikon.js +1 -1
  91. package/dist/collection/components/protocol-icon/protocol-icon.js +1 -1
  92. package/dist/collection/components/pulse-icon/pulse-icon.js +1 -1
  93. package/dist/collection/components/puzzle-icon/puzzle-icon.js +1 -1
  94. package/dist/collection/components/qr-code-icon/qr-code-icon.js +1 -1
  95. package/dist/collection/components/radio-2-icon/radio-2-icon.js +1 -1
  96. package/dist/collection/components/radio-icon/radio-icon.js +1 -1
  97. package/dist/collection/components/ram-alt-ikon/ram-alt-ikon.js +1 -1
  98. package/dist/collection/components/ram-ikon/ram-ikon.js +1 -1
  99. package/dist/collection/components/refresh-icon/refresh-icon.js +1 -1
  100. package/dist/collection/components/renault-alt-ikon/renault-alt-ikon.js +1 -1
  101. package/dist/collection/components/renault-ikon/renault-ikon.js +1 -1
  102. package/dist/collection/components/rolls-royce-ikon/rolls-royce-ikon.js +1 -1
  103. package/dist/collection/components/saab-alt-ikon/saab-alt-ikon.js +1 -1
  104. package/dist/collection/components/saab-ikon/saab-ikon.js +1 -1
  105. package/dist/collection/components/saturn-ikon/saturn-ikon.js +1 -1
  106. package/dist/collection/components/scion-ikon/scion-ikon.js +1 -1
  107. package/dist/collection/components/seat-ikon/seat-ikon.js +1 -1
  108. package/dist/collection/components/skoda-ikon/skoda-ikon.js +1 -1
  109. package/dist/collection/components/slug-icon/slug-icon.js +1 -1
  110. package/dist/collection/components/smart-ikon/smart-ikon.js +1 -1
  111. package/dist/collection/components/spider-icon/spider-icon.js +1 -1
  112. package/dist/collection/components/spyker-alt-ikon/spyker-alt-ikon.js +1 -1
  113. package/dist/collection/components/spyker-ikon/spyker-ikon.js +1 -1
  114. package/dist/collection/components/subaru-alt-ikon/subaru-alt-ikon.js +1 -1
  115. package/dist/collection/components/subaru-ikon/subaru-ikon.js +1 -1
  116. package/dist/collection/components/suzuki-ikon/suzuki-ikon.js +1 -1
  117. package/dist/collection/components/svg-icon/svg-icon.js +1 -1
  118. package/dist/collection/components/tesla-ikon/tesla-ikon.js +1 -1
  119. package/dist/collection/components/toyota-ikon/toyota-ikon.js +1 -1
  120. package/dist/collection/components/vector-curve-icon/vector-curve-icon.js +1 -1
  121. package/dist/collection/components/volkswagen-ikon/volkswagen-ikon.js +1 -1
  122. package/dist/collection/components/volvo-alt-ikon/volvo-alt-ikon.js +1 -1
  123. package/dist/collection/components/volvo-ikon/volvo-ikon.js +1 -1
  124. package/dist/collection/components/webhook-icon/webhook-icon.js +1 -1
  125. package/dist/components/acura-ikon.js +1 -1
  126. package/dist/components/alfa-romeo-alt-ikon.js +1 -1
  127. package/dist/components/alfa-romeo-ikon.js +1 -1
  128. package/dist/components/alien-icon.js +1 -1
  129. package/dist/components/am-general-ikon.js +1 -1
  130. package/dist/components/asterisk-icon.js +1 -1
  131. package/dist/components/aston-martin-alt-ikon.js +1 -1
  132. package/dist/components/aston-martin-ikon.js +1 -1
  133. package/dist/components/audi-ikon.js +1 -1
  134. package/dist/components/barcode-icon.js +1 -1
  135. package/dist/components/barcode-scan-icon.js +1 -1
  136. package/dist/components/bash-icon.js +1 -1
  137. package/dist/components/beaker-icon.js +1 -1
  138. package/dist/components/bently-ikon.js +1 -1
  139. package/dist/components/bmw-ikon.js +1 -1
  140. package/dist/components/bugatti-ikon.js +1 -1
  141. package/dist/components/buick-ikon.js +1 -1
  142. package/dist/components/cadillac-ikon.js +1 -1
  143. package/dist/components/chart-bar-icon.js +1 -1
  144. package/dist/components/chart-bubble-icon.js +1 -1
  145. package/dist/components/chart-donut-icon.js +1 -1
  146. package/dist/components/chart-donuts-icon.js +1 -1
  147. package/dist/components/check-icon.js +1 -1
  148. package/dist/components/chevrolet-ikon.js +1 -1
  149. package/dist/components/chevron-double-left-icon.js +1 -1
  150. package/dist/components/chrysler-ikon.js +1 -1
  151. package/dist/components/circular-saw-icon.js +1 -1
  152. package/dist/components/citroen-ikon.js +1 -1
  153. package/dist/components/close-icon.js +1 -1
  154. package/dist/components/daewoo-ikon.js +1 -1
  155. package/dist/components/dodge-ikon.js +1 -1
  156. package/dist/components/eagle-ikon.js +1 -1
  157. package/dist/components/ferrari-ikon.js +1 -1
  158. package/dist/components/fiat-alt-ikon.js +1 -1
  159. package/dist/components/fiat-ikon.js +1 -1
  160. package/dist/components/fingerprint-icon.js +1 -1
  161. package/dist/components/fire-icon.js +1 -1
  162. package/dist/components/fisker-ikon.js +1 -1
  163. package/dist/components/flask-icon.js +1 -1
  164. package/dist/components/ford-ikon.js +1 -1
  165. package/dist/components/genesis-ikon.js +1 -1
  166. package/dist/components/geo-ikon.js +1 -1
  167. package/dist/components/git-icon.js +1 -1
  168. package/dist/components/gmc-ikon.js +1 -1
  169. package/dist/components/honda-ikon.js +1 -1
  170. package/dist/components/hummer-ikon.js +1 -1
  171. package/dist/components/hyundai-ikon.js +1 -1
  172. package/dist/components/infiniti-ikon.js +1 -1
  173. package/dist/components/isuzu-ikon.js +1 -1
  174. package/dist/components/jaguar-alt-ikon.js +1 -1
  175. package/dist/components/jaguar-ikon.js +1 -1
  176. package/dist/components/java-script-icon.js +1 -1
  177. package/dist/components/jeep-alt-ikon.js +1 -1
  178. package/dist/components/jeep-ikon.js +1 -1
  179. package/dist/components/kia-ikon.js +1 -1
  180. package/dist/components/lamborghini-alt-ikon.js +1 -1
  181. package/dist/components/lamborghini-ikon.js +1 -1
  182. package/dist/components/land-rover-ikon.js +1 -1
  183. package/dist/components/lexus-ikon.js +1 -1
  184. package/dist/components/lincoln-ikon.js +1 -1
  185. package/dist/components/lotus-alt-ikon.js +1 -1
  186. package/dist/components/lotus-ikon.js +1 -1
  187. package/dist/components/maserati-ikon.js +1 -1
  188. package/dist/components/maybach-ikon.js +1 -1
  189. package/dist/components/mazda-alt-ikon.js +1 -1
  190. package/dist/components/mazda-ikon.js +1 -1
  191. package/dist/components/mclaren-alt-ikon.js +1 -1
  192. package/dist/components/mclaren-ikon.js +1 -1
  193. package/dist/components/mercedes-benz-alt-ikon.js +1 -1
  194. package/dist/components/mercedes-benz-ikon.js +1 -1
  195. package/dist/components/mercury-ikon.js +1 -1
  196. package/dist/components/mini-alt-ikon.js +1 -1
  197. package/dist/components/mini-ikon.js +1 -1
  198. package/dist/components/mitsubishi-ikon.js +1 -1
  199. package/dist/components/nissan-ikon.js +1 -1
  200. package/dist/components/oldsmobile-ikon.js +1 -1
  201. package/dist/components/one-password-icon.js +1 -1
  202. package/dist/components/opel-ikon.js +1 -1
  203. package/dist/components/panoz-ikon.js +1 -1
  204. package/dist/components/paw-icon.js +1 -1
  205. package/dist/components/peugeot-alt-ikon.js +1 -1
  206. package/dist/components/peugeot-ikon.js +1 -1
  207. package/dist/components/plymouth-ikon.js +1 -1
  208. package/dist/components/pontiac-ikon.js +1 -1
  209. package/dist/components/porsche-ikon.js +1 -1
  210. package/dist/components/protocol-icon.js +1 -1
  211. package/dist/components/pulse-icon.js +1 -1
  212. package/dist/components/puzzle-icon.js +1 -1
  213. package/dist/components/qr-code-icon.js +1 -1
  214. package/dist/components/radio-2-icon.js +1 -1
  215. package/dist/components/radio-icon.js +1 -1
  216. package/dist/components/ram-alt-ikon.js +1 -1
  217. package/dist/components/ram-ikon.js +1 -1
  218. package/dist/components/refresh-icon.js +1 -1
  219. package/dist/components/renault-alt-ikon.js +1 -1
  220. package/dist/components/renault-ikon.js +1 -1
  221. package/dist/components/rolls-royce-ikon.js +1 -1
  222. package/dist/components/saab-alt-ikon.js +1 -1
  223. package/dist/components/saab-ikon.js +1 -1
  224. package/dist/components/saturn-ikon.js +1 -1
  225. package/dist/components/scion-ikon.js +1 -1
  226. package/dist/components/seat-ikon.js +1 -1
  227. package/dist/components/skoda-ikon.js +1 -1
  228. package/dist/components/slug-icon.js +1 -1
  229. package/dist/components/smart-ikon.js +1 -1
  230. package/dist/components/spider-icon.js +1 -1
  231. package/dist/components/spyker-alt-ikon.js +1 -1
  232. package/dist/components/spyker-ikon.js +1 -1
  233. package/dist/components/subaru-alt-ikon.js +1 -1
  234. package/dist/components/subaru-ikon.js +1 -1
  235. package/dist/components/suzuki-ikon.js +1 -1
  236. package/dist/components/svg-icon.js +1 -1
  237. package/dist/components/tesla-ikon.js +1 -1
  238. package/dist/components/toyota-ikon.js +1 -1
  239. package/dist/components/vector-curve-icon.js +1 -1
  240. package/dist/components/volkswagen-ikon.js +1 -1
  241. package/dist/components/volvo-alt-ikon.js +1 -1
  242. package/dist/components/volvo-ikon.js +1 -1
  243. package/dist/components/webhook-icon.js +1 -1
  244. package/dist/esm/acura-ikon_119.entry.js +120 -120
  245. package/dist/esm/{index-73342eec.js → index-f27a3666.js} +92 -20
  246. package/dist/esm/loader.js +2 -2
  247. package/dist/esm/proto-ikons-wc.js +3 -3
  248. package/dist/proto-ikons-wc/p-9981b0d2.js +2 -0
  249. package/dist/proto-ikons-wc/p-ed90c553.entry.js +1 -0
  250. package/dist/proto-ikons-wc/proto-ikons-wc.esm.js +1 -1
  251. package/package.json +2 -2
  252. package/dist/proto-ikons-wc/p-09949d21.js +0 -2
  253. package/dist/proto-ikons-wc/p-601a951c.entry.js +0 -1
@@ -83,6 +83,7 @@ function queryNonceMetaTagContent(doc) {
83
83
  // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
84
84
  const h = (nodeName, vnodeData, ...children) => {
85
85
  let child = null;
86
+ let key = null;
86
87
  let simple = false;
87
88
  let lastSimple = false;
88
89
  const vNodeChildren = [];
@@ -110,6 +111,9 @@ const h = (nodeName, vnodeData, ...children) => {
110
111
  };
111
112
  walk(children);
112
113
  if (vnodeData) {
114
+ if (vnodeData.key) {
115
+ key = vnodeData.key;
116
+ }
113
117
  // normalize class / className attributes
114
118
  {
115
119
  const classData = vnodeData.className || vnodeData.class;
@@ -128,6 +132,9 @@ const h = (nodeName, vnodeData, ...children) => {
128
132
  if (vNodeChildren.length > 0) {
129
133
  vnode.$children$ = vNodeChildren;
130
134
  }
135
+ {
136
+ vnode.$key$ = key;
137
+ }
131
138
  return vnode;
132
139
  };
133
140
  /**
@@ -149,6 +156,9 @@ const newVNode = (tag, text) => {
149
156
  {
150
157
  vnode.$attrs$ = null;
151
158
  }
159
+ {
160
+ vnode.$key$ = null;
161
+ }
152
162
  return vnode;
153
163
  };
154
164
  const Host = {};
@@ -318,6 +328,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
318
328
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
319
329
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
320
330
  }
331
+ else if (memberName === 'key')
332
+ ;
321
333
  else {
322
334
  // Set property if it exists and it's not a SVG
323
335
  const isComplex = isComplexType(newValue);
@@ -592,6 +604,8 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
592
604
  const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = false) => {
593
605
  let oldStartIdx = 0;
594
606
  let newStartIdx = 0;
607
+ let idxInOld = 0;
608
+ let i = 0;
595
609
  let oldEndIdx = oldCh.length - 1;
596
610
  let oldStartVnode = oldCh[0];
597
611
  let oldEndVnode = oldCh[oldEndIdx];
@@ -599,6 +613,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
599
613
  let newStartVnode = newCh[0];
600
614
  let newEndVnode = newCh[newEndIdx];
601
615
  let node;
616
+ let elmToMove;
602
617
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
603
618
  if (oldStartVnode == null) {
604
619
  // VNode might have been moved left
@@ -665,7 +680,41 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh, isInitialRender = fal
665
680
  newStartVnode = newCh[++newStartIdx];
666
681
  }
667
682
  else {
683
+ // Here we do some checks to match up old and new nodes based on the
684
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
685
+ // in the JSX for a DOM element in the implementation of a Stencil
686
+ // component.
687
+ //
688
+ // First we check to see if there are any nodes in the array of old
689
+ // children which have the same key as the first node in the new
690
+ // children.
691
+ idxInOld = -1;
668
692
  {
693
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
694
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
695
+ idxInOld = i;
696
+ break;
697
+ }
698
+ }
699
+ }
700
+ if (idxInOld >= 0) {
701
+ // We found a node in the old children which matches up with the first
702
+ // node in the new children! So let's deal with that
703
+ elmToMove = oldCh[idxInOld];
704
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
705
+ // the tag doesn't match so we'll need a new DOM element
706
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
707
+ }
708
+ else {
709
+ patch(elmToMove, newStartVnode, isInitialRender);
710
+ // invalidate the matching old node so that we won't try to update it
711
+ // again later on
712
+ oldCh[idxInOld] = undefined;
713
+ node = elmToMove.$elm$;
714
+ }
715
+ newStartVnode = newCh[++newStartIdx];
716
+ }
717
+ else {
669
718
  // We either didn't find an element in the old children that matches
670
719
  // the key of the first new child OR the build is not using `key`
671
720
  // attributes at all. In either case we need to create a new element
@@ -715,6 +764,14 @@ const isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
715
764
  // compare if two vnode to see if they're "technically" the same
716
765
  // need to have the same element tag, and same key to be the same
717
766
  if (leftVNode.$tag$ === rightVNode.$tag$) {
767
+ // this will be set if JSX tags in the build have `key` attrs set on them
768
+ // we only want to check this if we're not on the first render since on
769
+ // first render `leftVNode.$key$` will always be `null`, so we can be led
770
+ // astray and, for instance, accidentally delete a DOM node that we want to
771
+ // keep around.
772
+ if (!isInitialRender) {
773
+ return leftVNode.$key$ === rightVNode.$key$;
774
+ }
718
775
  return true;
719
776
  }
720
777
  return false;
@@ -1403,25 +1460,29 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1403
1460
  }
1404
1461
  });
1405
1462
  });
1406
- // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1407
- if (hasSlotRelocation) {
1408
- dataStyles.innerHTML += SLOT_FB_CSS;
1409
- }
1410
- // Add hydration styles
1411
- {
1412
- dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1413
- }
1414
- // If we have styles, add them to the DOM
1415
- if (dataStyles.innerHTML.length) {
1416
- dataStyles.setAttribute('data-styles', '');
1417
- // Apply CSP nonce to the style tag if it exists
1418
- const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1419
- if (nonce != null) {
1420
- dataStyles.setAttribute('nonce', nonce);
1421
- }
1422
- // Insert the styles into the document head
1423
- // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1424
- head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1463
+ // Only bother generating CSS if we have components
1464
+ // TODO(STENCIL-1118): Add test cases for CSS content based on conditionals
1465
+ if (cmpTags.length > 0) {
1466
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1467
+ if (hasSlotRelocation) {
1468
+ dataStyles.innerHTML += SLOT_FB_CSS;
1469
+ }
1470
+ // Add hydration styles
1471
+ {
1472
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1473
+ }
1474
+ // If we have styles, add them to the DOM
1475
+ if (dataStyles.innerHTML.length) {
1476
+ dataStyles.setAttribute('data-styles', '');
1477
+ // Apply CSP nonce to the style tag if it exists
1478
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1479
+ if (nonce != null) {
1480
+ dataStyles.setAttribute('nonce', nonce);
1481
+ }
1482
+ // Insert the styles into the document head
1483
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1484
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1485
+ }
1425
1486
  }
1426
1487
  // Process deferred connectedCallbacks now all components have been registered
1427
1488
  isBootstrapping = false;
@@ -1446,8 +1507,19 @@ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1446
1507
  /**
1447
1508
  * A WeakMap mapping runtime component references to their corresponding host reference
1448
1509
  * instances.
1510
+ *
1511
+ * **Note**: If we're in an HMR context we need to store a reference to this
1512
+ * value on `window` in order to maintain the mapping of {@link d.RuntimeRef}
1513
+ * to {@link d.HostRef} across HMR updates.
1514
+ *
1515
+ * This is necessary because when HMR updates for a component are processed by
1516
+ * the browser-side dev server client the JS bundle for that component is
1517
+ * re-fetched. Since the module containing {@link hostRefs} is included in
1518
+ * that bundle, if we do not store a reference to it the new iteration of the
1519
+ * component will not have access to the previous hostRef map, leading to a
1520
+ * bug where the new version of the component cannot properly initialize.
1449
1521
  */
1450
- const hostRefs = /*@__PURE__*/ new WeakMap();
1522
+ const hostRefs = new WeakMap();
1451
1523
  /**
1452
1524
  * Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
1453
1525
  *
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-73342eec.js';
2
- export { s as setNonce } from './index-73342eec.js';
1
+ import { b as bootstrapLazy } from './index-f27a3666.js';
2
+ export { s as setNonce } from './index-f27a3666.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-73342eec.js';
2
- export { s as setNonce } from './index-73342eec.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-f27a3666.js';
2
+ export { s as setNonce } from './index-f27a3666.js';
3
3
 
4
4
  /*
5
- Stencil Client Patch Browser v4.11.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Patch Browser v4.12.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  const patchBrowser = () => {
8
8
  const importMeta = import.meta.url;
@@ -0,0 +1,2 @@
1
+ let e,n=!1,t=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",o="http://www.w3.org/1999/xlink",s={},i=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,o=null,s=!1,c=!1;const r=[],f=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!i(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?u(null,l):l),c=s)};if(f(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const a=u(e,null);return a.l=n,r.length>0&&(a.o=r),a.i=o,a},u=(e,n)=>({u:0,v:e,t:n,h:null,o:null,l:null,i:null}),f={},a=new WeakMap,d=e=>"sc-"+e.p,y=(e,n,t,l,s,c)=>{if(t!==l){let r=q(e,n),u=n.toLowerCase();if("class"===n){const n=e.classList,o=h(t),s=h(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else{const f=i(l);if((r||f&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?r=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}let a=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(n=u,a=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(n)||(a?e.removeAttributeNS(o,n):e.removeAttribute(n)):(!r||4&c||s)&&!f&&(l=!0===l?"":l,a?e.setAttributeNS(o,n,l):e.setAttribute(n,l))}}},v=/\s/,h=e=>e?e.split(v):[],p=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,i=e&&e.l||s,c=n.l||s;for(l in i)l in c||y(o,l,i[l],void 0,t,n.u);for(l in c)y(o,l,i[l],c[l],t,n.u)},$=(t,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(n||(n="svg"===s.v),i=s.h=D.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.v),n&&"foreignObject"===s.v&&(n=!1),p(null,s,n),s.o)for(r=0;r<s.o.length;++r)c=$(t,s,r),c&&i.appendChild(c);"svg"===s.v?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i["s-hn"]=e,i},w=(e,n,t,l,o,s)=>{let i,c=e;for(;o<=s;++o)l[o]&&(i=$(null,t,o),i&&(l[o].h=i,c.insertBefore(i,n)))},m=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;e&&e.remove()}}},b=(e,n,t=!1)=>e.v===n.v&&(!!t||e.i===n.i),g=(e,t,l=!1)=>{const o=t.h=e.h,s=e.o,i=t.o,c=t.v,r=t.t;null===r?(n="svg"===c||"foreignObject"!==c&&n,p(e,t,n),null!==s&&null!==i?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],v=l.length-1,h=l[0],p=l[v];for(;c<=a&&r<=v;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==h)h=l[++r];else if(null==p)p=l[--v];else if(b(d,h,o))g(d,h,o),d=n[++c],h=l[++r];else if(b(y,p,o))g(y,p,o),y=n[--a],p=l[--v];else if(b(d,p,o))g(d,p,o),e.insertBefore(d.h,y.h.nextSibling),d=n[++c],p=l[--v];else if(b(y,h,o))g(y,h,o),e.insertBefore(y.h,d.h),y=n[--a],h=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===h.i){u=f;break}u>=0?(i=n[u],i.v!==h.v?s=$(n&&n[r],t,u):(g(i,h,o),n[u]=void 0,s=i.h),h=l[++r]):(s=$(n&&n[r],t,r),h=l[++r]),s&&d.h.parentNode.insertBefore(s,d.h)}c>a?w(e,null==l[v+1]?null:l[v+1].h,t,l,r,v):r>v&&m(n,c,a)})(o,s,t,i,l):null!==i?(null!==e.t&&(o.textContent=""),w(o,null,t,i,0,i.length-1)):null!==s&&m(s,0,s.length-1),n&&"svg"===c&&(n=!1)):e.t!==r&&(o.data=r)},j=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},S=(e,n)=>{if(e.u|=16,!(4&e.u))return j(e,e.m),ne((()=>k(e,n)));e.u|=512},k=(e,n)=>{const t=e.j;return O(void 0,(()=>x(e,t,n)))},O=(e,n)=>M(e)?e.then(n):n(),M=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,x=async(e,n,t)=>{var o;const s=e.$hostElement$,i=s["s-rc"];t&&(e=>{const n=e.S;((e,n)=>{var t;const o=d(n),s=z.get(o);if(e=11===e.nodeType?e:D,s)if("string"==typeof s){let i,r=a.get(e=e.head||e);if(r||a.set(e,r=new Set),!r.has(o)){{i=D.createElement("style"),i.innerHTML=s;const n=null!==(t=G.k)&&void 0!==t?t:c(D);null!=n&&i.setAttribute("nonce",n),e.insertBefore(i,e.querySelector("link"))}4&n.u&&(i.innerHTML+=l),r&&r.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s])})(e.$hostElement$.getRootNode(),n)})(e);C(e,n,s,t),i&&(i.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(o=s["s-p"])&&void 0!==o?o:[],t=()=>P(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},C=(n,t,l,o)=>{try{t=t.render(),n.u&=-17,n.u|=2,((n,t,l=!1)=>{const o=n.$hostElement$,s=n.O||u(null,null),i=(e=>e&&e.v===f)(t)?t:r(null,null,t);if(e=o.tagName,l&&i.l)for(const e of Object.keys(i.l))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.l[e]=o[e]);i.v=null,i.u|=4,n.O=i,i.h=s.h=o,g(s,i,l)})(n,t,o)}catch(e){H(e,n.$hostElement$)}return null},P=e=>{const n=e.$hostElement$,t=e.m;64&e.u||(e.u|=64,E(n),e.M(n),t||A()),e.$&&(e.$(),e.$=void 0),512&e.u&&ee((()=>S(e,!1))),e.u&=-517},A=()=>{E(D.documentElement),ee((()=>(e=>{const n=G.ce("appload",{detail:{namespace:"proto-ikons-wc"}});return e.dispatchEvent(n),n})(B)))},E=e=>e.classList.add("hydrated"),N=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const s=Object.entries(n.C);if(s.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>R(this).P.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=R(e),s=o.P.get(n),c=o.u,r=o.j;t=((e,n)=>null==e||i(e)?e:4&n?"false"!==e&&(""===e||!!e):2&n?parseFloat(e):1&n?e+"":e)(t,l.C[n][0]),8&c&&void 0!==s||t===s||Number.isNaN(s)&&Number.isNaN(t)||(o.P.set(n,t),r&&2==(18&c)&&S(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){G.jmp((()=>{var i;const c=t.get(e);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 t=R(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=n.A)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.A)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},T=(e,n={})=>{var t;const o=[],s=n.exclude||[],i=B.customElements,r=D.head,u=r.querySelector("meta[charset]"),f=D.createElement("style"),a=[];let y,v=!0;Object.assign(G,n),G.N=new URL(n.resourcesUrl||"./",D.baseURI).href;let h=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],p:n[1],C:n[2],T:n[3]};4&t.u&&(h=!0),t.C=n[2];const l=t.p,c=class extends HTMLElement{constructor(e){super(e),W(e=this,t)}connectedCallback(){y&&(clearTimeout(y),y=null),v?a.push(this):G.jmp((()=>(e=>{if(0==(1&G.u)){const n=R(e),t=n.S,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(null==n?void 0:n.F)&&n.F.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){j(n,n.m=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t)=>{let l;if(0==(32&n.u)){n.u|=32;{if(l=_(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(N(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){H(e)}n.u&=-9,e()}if(l.style){let e=l.style;const n=d(t);if(!z.has(n)){const l=()=>{};((e,n,t)=>{let l=z.get(e);J&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,z.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.m,s=()=>S(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,n,t)}l()}})(this)))}disconnectedCallback(){G.jmp((()=>(async()=>{if(0==(1&G.u)){const e=R(this);(null==e?void 0:e.j)||(null==e?void 0:e.F)&&e.F.then((()=>{}))}})()))}componentOnReady(){return R(this).F}};t.L=e[0],s.includes(l)||i.get(l)||(o.push(l),i.define(l,N(c,t,1)))}))})),o.length>0&&(h&&(f.innerHTML+=l),f.innerHTML+=o+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const e=null!==(t=G.k)&&void 0!==t?t:c(D);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}v=!1,a.length?a.map((e=>e.connectedCallback())):G.jmp((()=>y=setTimeout(A,30)))},F=e=>G.k=e,L=new WeakMap,R=e=>L.get(e),U=(e,n)=>L.set(n.j=e,n),W=(e,n)=>{const t={u:0,$hostElement$:e,S:n,P:new Map};return t.F=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],L.set(e,t)},q=(e,n)=>n in e,H=(e,n)=>(0,console.error)(e,n),V=new Map,_=e=>{const n=e.p.replace(/-/g,"_"),t=e.L,l=V.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(V.set(t,e),e[n])),H)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},z=new Map,B="undefined"!=typeof window?window:{},D=B.document||{head:{}},G={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},I=e=>Promise.resolve(e),J=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),K=[],Q=[],X=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&G.u?ee(Z):G.raf(Z))},Y=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){H(e)}e.length=0},Z=()=>{Y(K),Y(Q),(t=K.length>0)&&G.raf(Z)},ee=e=>I().then(e),ne=X(Q,!0);export{T as b,r as h,I as p,U as r,F as s}