@zanichelli/delta_share 3.2.3 → 3.2.5-rc1

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 (333) hide show
  1. package/dist/wc/cjs/delta_share.cjs.js +2 -2
  2. package/dist/wc/cjs/{index-32a6c022.js → index-23e5e843.js} +1 -1
  3. package/dist/wc/cjs/{index-6d707e7c.js → index-2693f4d5.js} +1 -1
  4. package/dist/wc/cjs/{index-5da586ad.js → index-30694024.js} +1 -1
  5. package/dist/wc/cjs/{index-2cac2542.js → index-3171b6c3.js} +1 -1
  6. package/dist/wc/cjs/{index-1a5d1f46.js → index-3218642b.js} +3 -3
  7. package/dist/wc/cjs/{index-e5699190.js → index-422e5a81.js} +1 -1
  8. package/dist/wc/cjs/{index-42c0b32c.js → index-452ee215.js} +1 -1
  9. package/dist/wc/cjs/{index-0c6fe5a8.js → index-668dd84e.js} +1 -1
  10. package/dist/wc/cjs/{index-77820e6c.js → index-675ba3c5.js} +1 -1
  11. package/dist/wc/cjs/{index-a8dfd3f3.js → index-68c03627.js} +1 -1
  12. package/dist/wc/cjs/{index-903cb132.js → index-72da8f73.js} +1 -1
  13. package/dist/wc/cjs/{index-ef01acde.js → index-8a564949.js} +1 -1
  14. package/dist/wc/cjs/{index-2bd3ba9a.js → index-929abcb2.js} +1 -1
  15. package/dist/wc/cjs/{index-fd6e6c28.js → index-c98ff1cc.js} +791 -175
  16. package/dist/wc/cjs/{index-d6d2e8ac.js → index-dbb9c380.js} +1 -1
  17. package/dist/wc/cjs/{index-9ad9039f.js → index-e47a42d9.js} +1 -1
  18. package/dist/wc/cjs/{index-7b42e7ce.js → index-e790a3c5.js} +1 -1
  19. package/dist/wc/cjs/license-activation_10.cjs.entry.js +2 -2
  20. package/dist/wc/cjs/loader.cjs.js +2 -2
  21. package/dist/wc/cjs/z-accordion.cjs.entry.js +1 -1
  22. package/dist/wc/cjs/z-alert.cjs.entry.js +1 -1
  23. package/dist/wc/cjs/z-anchor-navigation.cjs.entry.js +1 -1
  24. package/dist/wc/cjs/z-app-header.cjs.entry.js +1 -1
  25. package/dist/wc/cjs/z-aria-alert.cjs.entry.js +1 -1
  26. package/dist/wc/cjs/z-avatar.cjs.entry.js +1 -1
  27. package/dist/wc/cjs/z-book-card.cjs.entry.js +1 -1
  28. package/dist/wc/cjs/z-breadcrumb.cjs.entry.js +1 -1
  29. package/dist/wc/cjs/z-button-sort.cjs.entry.js +1 -1
  30. package/dist/wc/cjs/z-card.cjs.entry.js +1 -1
  31. package/dist/wc/cjs/z-carousel.cjs.entry.js +1 -1
  32. package/dist/wc/cjs/z-chip.cjs.entry.js +1 -1
  33. package/dist/wc/cjs/z-combobox.cjs.entry.js +1 -1
  34. package/dist/wc/cjs/z-contextual-menu.cjs.entry.js +1 -1
  35. package/dist/wc/cjs/z-cover-hero.cjs.entry.js +1 -1
  36. package/dist/wc/cjs/z-date-picker.cjs.entry.js +1 -1
  37. package/dist/wc/cjs/z-divider.cjs.entry.js +1 -1
  38. package/dist/wc/cjs/z-dragdrop-area.cjs.entry.js +1 -1
  39. package/dist/wc/cjs/z-file-upload.cjs.entry.js +1 -1
  40. package/dist/wc/cjs/z-file.cjs.entry.js +1 -1
  41. package/dist/wc/cjs/z-ghost-loading.cjs.entry.js +1 -1
  42. package/dist/wc/cjs/z-info-reveal.cjs.entry.js +1 -1
  43. package/dist/wc/cjs/z-link.cjs.entry.js +1 -1
  44. package/dist/wc/cjs/z-list_3.cjs.entry.js +1 -1
  45. package/dist/wc/cjs/z-logo.cjs.entry.js +1 -1
  46. package/dist/wc/cjs/z-menu-section.cjs.entry.js +1 -1
  47. package/dist/wc/cjs/z-menu.cjs.entry.js +1 -1
  48. package/dist/wc/cjs/z-messages-pocket.cjs.entry.js +1 -1
  49. package/dist/wc/cjs/z-myz-card-alert.cjs.entry.js +1 -1
  50. package/dist/wc/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
  51. package/dist/wc/cjs/z-myz-card-footer-sections.cjs.entry.js +1 -1
  52. package/dist/wc/cjs/z-myz-card-footer.cjs.entry.js +1 -1
  53. package/dist/wc/cjs/z-myz-card-icon.cjs.entry.js +1 -1
  54. package/dist/wc/cjs/z-myz-card-info.cjs.entry.js +1 -1
  55. package/dist/wc/cjs/z-myz-card-list.cjs.entry.js +1 -1
  56. package/dist/wc/cjs/z-myz-card_4.cjs.entry.js +1 -1
  57. package/dist/wc/cjs/z-myz-list-item.cjs.entry.js +1 -1
  58. package/dist/wc/cjs/z-myz-list.cjs.entry.js +1 -1
  59. package/dist/wc/cjs/z-navigation-tab-link.cjs.entry.js +1 -1
  60. package/dist/wc/cjs/z-navigation-tab.cjs.entry.js +1 -1
  61. package/dist/wc/cjs/z-navigation-tabs.cjs.entry.js +1 -1
  62. package/dist/wc/cjs/z-notification.cjs.entry.js +1 -1
  63. package/dist/wc/cjs/z-offcanvas_2.cjs.entry.js +1 -1
  64. package/dist/wc/cjs/z-otp.cjs.entry.js +1 -1
  65. package/dist/wc/cjs/z-pagination.cjs.entry.js +1 -1
  66. package/dist/wc/cjs/z-panel-elem.cjs.entry.js +1 -1
  67. package/dist/wc/cjs/z-pocket-message.cjs.entry.js +1 -1
  68. package/dist/wc/cjs/z-pocket_3.cjs.entry.js +1 -1
  69. package/dist/wc/cjs/z-popover.cjs.entry.js +1 -1
  70. package/dist/wc/cjs/z-range-picker.cjs.entry.js +1 -1
  71. package/dist/wc/cjs/z-section-title.cjs.entry.js +1 -1
  72. package/dist/wc/cjs/z-select.cjs.entry.js +1 -1
  73. package/dist/wc/cjs/z-skip-to-content.cjs.entry.js +1 -1
  74. package/dist/wc/cjs/z-slideshow.cjs.entry.js +1 -1
  75. package/dist/wc/cjs/z-stepper-item.cjs.entry.js +1 -1
  76. package/dist/wc/cjs/z-stepper.cjs.entry.js +1 -1
  77. package/dist/wc/cjs/z-table-body.cjs.entry.js +2 -2
  78. package/dist/wc/cjs/z-table-cell.cjs.entry.js +2 -2
  79. package/dist/wc/cjs/z-table-deprecated.cjs.entry.js +11 -11
  80. package/dist/wc/cjs/z-table-empty-box.cjs.entry.js +2 -2
  81. package/dist/wc/cjs/z-table-expanded-row.cjs.entry.js +2 -2
  82. package/dist/wc/cjs/z-table-footer.cjs.entry.js +2 -2
  83. package/dist/wc/cjs/z-table-head.cjs.entry.js +2 -2
  84. package/dist/wc/cjs/z-table-header-row.cjs.entry.js +2 -2
  85. package/dist/wc/cjs/z-table-header.cjs.entry.js +2 -2
  86. package/dist/wc/cjs/z-table-row.cjs.entry.js +2 -2
  87. package/dist/wc/cjs/z-table-sticky-footer.cjs.entry.js +2 -2
  88. package/dist/wc/cjs/z-table.cjs.entry.js +7 -7
  89. package/dist/wc/cjs/z-tag.cjs.entry.js +1 -1
  90. package/dist/wc/cjs/z-tbody.cjs.entry.js +2 -2
  91. package/dist/wc/cjs/z-td.cjs.entry.js +2 -2
  92. package/dist/wc/cjs/z-tfoot.cjs.entry.js +2 -2
  93. package/dist/wc/cjs/z-th.cjs.entry.js +2 -2
  94. package/dist/wc/cjs/z-thead.cjs.entry.js +2 -2
  95. package/dist/wc/cjs/z-toast-notification-list.cjs.entry.js +1 -1
  96. package/dist/wc/cjs/z-toast-notification.cjs.entry.js +1 -1
  97. package/dist/wc/cjs/z-toggle-button.cjs.entry.js +1 -1
  98. package/dist/wc/cjs/z-toggle-switch.cjs.entry.js +1 -1
  99. package/dist/wc/cjs/z-tooltip.cjs.entry.js +1 -1
  100. package/dist/wc/cjs/z-tr.cjs.entry.js +4 -4
  101. package/dist/wc/cjs/z-visually-hidden.cjs.entry.js +1 -1
  102. package/dist/wc/collection/collection-manifest.json +2 -2
  103. package/dist/wc/collection/components/license-activation/license-activation.js +358 -348
  104. package/dist/wc/collection/components/license-activation-box/license-activation-box.js +49 -44
  105. package/dist/wc/collection/components/license-activation-form/license-activation-form.js +238 -247
  106. package/dist/wc/collection/components/license-activation-modal/license-activation-modal.js +64 -60
  107. package/dist/wc/custom-elements/index.js +169 -169
  108. package/dist/wc/delta_share/delta_share.esm.js +1 -1
  109. package/dist/wc/delta_share/{p-7cb2f788.entry.js → p-007a1bc5.entry.js} +1 -1
  110. package/dist/wc/delta_share/{p-2ed166b8.entry.js → p-0188e962.entry.js} +1 -1
  111. package/dist/wc/delta_share/{p-f903c87f.entry.js → p-01dd7a45.entry.js} +1 -1
  112. package/dist/wc/delta_share/{p-6f95cb22.entry.js → p-029a7353.entry.js} +1 -1
  113. package/dist/wc/delta_share/{p-fe486d84.entry.js → p-032199e9.entry.js} +1 -1
  114. package/dist/wc/delta_share/{p-a3dc62bb.js → p-043cdbf1.js} +1 -1
  115. package/dist/wc/delta_share/{p-1e9b4693.entry.js → p-047a8524.entry.js} +1 -1
  116. package/dist/wc/delta_share/p-0fe4e8b2.entry.js +1 -0
  117. package/dist/wc/delta_share/p-162d0233.entry.js +1 -0
  118. package/dist/wc/delta_share/p-1b701b0e.entry.js +1 -0
  119. package/dist/wc/delta_share/{p-47ec520c.js → p-1bb7af24.js} +1 -1
  120. package/dist/wc/delta_share/{p-05c9d96f.entry.js → p-1d427e0a.entry.js} +1 -1
  121. package/dist/wc/delta_share/{p-6cb698e0.entry.js → p-1e3d2b14.entry.js} +1 -1
  122. package/dist/wc/delta_share/{p-d4fbf66b.entry.js → p-1f4909c7.entry.js} +1 -1
  123. package/dist/wc/delta_share/{p-16e61c27.entry.js → p-20ff5410.entry.js} +1 -1
  124. package/dist/wc/delta_share/{p-69d9835f.js → p-2427835b.js} +1 -1
  125. package/dist/wc/delta_share/{p-e182b6dc.entry.js → p-26d1744f.entry.js} +1 -1
  126. package/dist/wc/delta_share/{p-551bf917.js → p-271ab47a.js} +1 -1
  127. package/dist/wc/delta_share/{p-2b4c3aab.js → p-2b5da773.js} +1 -1
  128. package/dist/wc/delta_share/{p-f894f849.entry.js → p-2da22eda.entry.js} +1 -1
  129. package/dist/wc/delta_share/{p-18ac49f8.entry.js → p-32498aa3.entry.js} +1 -1
  130. package/dist/wc/delta_share/{p-8a0d51f7.entry.js → p-354d0aa4.entry.js} +1 -1
  131. package/dist/wc/delta_share/{p-595c8d39.entry.js → p-3747affc.entry.js} +1 -1
  132. package/dist/wc/delta_share/{p-6bd46452.entry.js → p-38341cfb.entry.js} +1 -1
  133. package/dist/wc/delta_share/{p-9faa9434.entry.js → p-3b046489.entry.js} +1 -1
  134. package/dist/wc/delta_share/p-3e0d58c3.entry.js +1 -0
  135. package/dist/wc/delta_share/{p-3fac6e84.entry.js → p-40b1f526.entry.js} +1 -1
  136. package/dist/wc/delta_share/{p-44d6f07c.entry.js → p-40db0c2f.entry.js} +1 -1
  137. package/dist/wc/delta_share/{p-18fcc8c7.js → p-41580384.js} +1 -1
  138. package/dist/wc/delta_share/{p-0e74cc07.entry.js → p-45e62587.entry.js} +1 -1
  139. package/dist/wc/delta_share/{p-ff24a080.js → p-46575ead.js} +1 -1
  140. package/dist/wc/delta_share/p-4666e9fb.entry.js +1 -0
  141. package/dist/wc/delta_share/p-47c1de64.entry.js +1 -0
  142. package/dist/wc/delta_share/p-4b9be5d5.entry.js +1 -0
  143. package/dist/wc/delta_share/{p-47f3e677.js → p-4bf8f33b.js} +1 -1
  144. package/dist/wc/delta_share/p-50d72747.entry.js +1 -0
  145. package/dist/wc/delta_share/{p-dd409bfb.js → p-553d3d4e.js} +1 -1
  146. package/dist/wc/delta_share/{p-7142f1dc.entry.js → p-5ab3a4b0.entry.js} +1 -1
  147. package/dist/wc/delta_share/{p-5f97902c.entry.js → p-5bb251dd.entry.js} +1 -1
  148. package/dist/wc/delta_share/{p-536412c7.entry.js → p-5cecb6db.entry.js} +1 -1
  149. package/dist/wc/delta_share/{p-7b668937.entry.js → p-62970c74.entry.js} +1 -1
  150. package/dist/wc/delta_share/{p-065a8ef6.entry.js → p-6347f0d8.entry.js} +1 -1
  151. package/dist/wc/delta_share/p-66454c1b.entry.js +1 -0
  152. package/dist/wc/delta_share/p-6676c375.entry.js +1 -0
  153. package/dist/wc/delta_share/{p-58991db7.js → p-697c4ac9.js} +1 -1
  154. package/dist/wc/delta_share/{p-6be926f4.js → p-72442d2b.js} +1 -1
  155. package/dist/wc/delta_share/p-72c4a523.entry.js +1 -0
  156. package/dist/wc/delta_share/{p-8f286d70.entry.js → p-7856ba3d.entry.js} +1 -1
  157. package/dist/wc/delta_share/{p-293a7ee2.entry.js → p-7eb297a7.entry.js} +1 -1
  158. package/dist/wc/delta_share/{p-042bd3f6.js → p-8589abd7.js} +1 -1
  159. package/dist/wc/delta_share/{p-2439bd5d.entry.js → p-86f2958b.entry.js} +1 -1
  160. package/dist/wc/delta_share/p-8745c480.entry.js +1 -0
  161. package/dist/wc/delta_share/{p-08af13db.entry.js → p-8f123d77.entry.js} +1 -1
  162. package/dist/wc/delta_share/{p-d231964b.entry.js → p-90289241.entry.js} +1 -1
  163. package/dist/wc/delta_share/{p-f8091230.entry.js → p-95056ca8.entry.js} +1 -1
  164. package/dist/wc/delta_share/{p-059e9ee0.entry.js → p-95945f29.entry.js} +1 -1
  165. package/dist/wc/delta_share/p-97577c0b.entry.js +1 -0
  166. package/dist/wc/delta_share/{p-4c9ec16c.entry.js → p-97d82f7e.entry.js} +1 -1
  167. package/dist/wc/delta_share/{p-e7f23a1e.entry.js → p-9ebfdadf.entry.js} +1 -1
  168. package/dist/wc/delta_share/{p-c0ccd95c.entry.js → p-a430cb52.entry.js} +1 -1
  169. package/dist/wc/delta_share/{p-4018719d.entry.js → p-a6a819d5.entry.js} +1 -1
  170. package/dist/wc/delta_share/{p-319c1a3e.entry.js → p-ac9574a6.entry.js} +1 -1
  171. package/dist/wc/delta_share/{p-a14153cc.entry.js → p-aefef80d.entry.js} +1 -1
  172. package/dist/wc/delta_share/p-b052dab7.entry.js +3 -0
  173. package/dist/wc/delta_share/{p-db7371fa.entry.js → p-b2f3596c.entry.js} +1 -1
  174. package/dist/wc/delta_share/{p-82630451.entry.js → p-b4d3ca7d.entry.js} +1 -1
  175. package/dist/wc/delta_share/{p-105ddd7d.entry.js → p-b7a409df.entry.js} +1 -1
  176. package/dist/wc/delta_share/{p-2a4fe864.entry.js → p-b7b93904.entry.js} +1 -1
  177. package/dist/wc/delta_share/{p-4a51a3c6.entry.js → p-b9b6c478.entry.js} +1 -1
  178. package/dist/wc/delta_share/{p-8650dcb7.entry.js → p-bb8ec114.entry.js} +1 -1
  179. package/dist/wc/delta_share/{p-0365fad8.entry.js → p-c3bcf36d.entry.js} +1 -1
  180. package/dist/wc/delta_share/{p-c64950a2.entry.js → p-c4faf4eb.entry.js} +1 -1
  181. package/dist/wc/delta_share/{p-5989869c.js → p-c61d7a11.js} +1 -1
  182. package/dist/wc/delta_share/{p-ce115f77.entry.js → p-c64b3da1.entry.js} +1 -1
  183. package/dist/wc/delta_share/{p-6e8df0ae.entry.js → p-c72a8f42.entry.js} +1 -1
  184. package/dist/wc/delta_share/{p-84e4e924.entry.js → p-ca2494fb.entry.js} +1 -1
  185. package/dist/wc/delta_share/p-cc222b2f.entry.js +1 -0
  186. package/dist/wc/delta_share/{p-ff98ef8e.entry.js → p-ce15fdd1.entry.js} +1 -1
  187. package/dist/wc/delta_share/{p-67f03907.entry.js → p-cf6854c4.entry.js} +1 -1
  188. package/dist/wc/delta_share/{p-3984a6c2.entry.js → p-d79b35a8.entry.js} +1 -1
  189. package/dist/wc/delta_share/{p-172a32d0.entry.js → p-d86cd1ff.entry.js} +1 -1
  190. package/dist/wc/delta_share/{p-8f6424ca.entry.js → p-da254424.entry.js} +1 -1
  191. package/dist/wc/delta_share/{p-6658206d.entry.js → p-db4d5b29.entry.js} +1 -1
  192. package/dist/wc/delta_share/p-dbf33c0f.entry.js +1 -0
  193. package/dist/wc/delta_share/{p-8f38cd92.entry.js → p-e4fdcfc5.entry.js} +1 -1
  194. package/dist/wc/delta_share/{p-a051e83a.entry.js → p-e573c206.entry.js} +1 -1
  195. package/dist/wc/delta_share/{p-2ca8ccb2.entry.js → p-e708b262.entry.js} +1 -1
  196. package/dist/wc/delta_share/{p-1c37c8f2.js → p-e8cda39a.js} +1 -1
  197. package/dist/wc/delta_share/{p-7b00c3b1.entry.js → p-e94ef0ed.entry.js} +1 -1
  198. package/dist/wc/delta_share/p-eb889b01.js +2 -0
  199. package/dist/wc/delta_share/{p-09de99b2.entry.js → p-edaf6126.entry.js} +1 -1
  200. package/dist/wc/delta_share/{p-d1062520.js → p-efa66157.js} +1 -1
  201. package/dist/wc/delta_share/{p-84a8b959.entry.js → p-f1bf817c.entry.js} +1 -1
  202. package/dist/wc/delta_share/{p-37c5c92e.js → p-f25116a7.js} +1 -1
  203. package/dist/wc/delta_share/p-f3023043.entry.js +1 -0
  204. package/dist/wc/delta_share/{p-c1b16c6e.entry.js → p-f42019e4.entry.js} +1 -1
  205. package/dist/wc/delta_share/{p-57a1a7a3.entry.js → p-f5bb55e0.entry.js} +1 -1
  206. package/dist/wc/delta_share/p-f635c868.entry.js +1 -0
  207. package/dist/wc/delta_share/{p-eddfcccc.entry.js → p-fbc9f1bc.entry.js} +1 -1
  208. package/dist/wc/esm/delta_share.js +2 -2
  209. package/dist/wc/esm/{index-b6d67648.js → index-03cc51b1.js} +1 -1
  210. package/dist/wc/esm/{index-c8e57c08.js → index-1082a536.js} +1 -1
  211. package/dist/wc/esm/{index-6642fa3a.js → index-113e6780.js} +1 -1
  212. package/dist/wc/esm/{index-396432db.js → index-1b01fa0e.js} +791 -175
  213. package/dist/wc/esm/{index-81516a9a.js → index-2be1634d.js} +1 -1
  214. package/dist/wc/esm/{index-cbe7ef0a.js → index-4854c8af.js} +1 -1
  215. package/dist/wc/esm/{index-e14dd015.js → index-485971a0.js} +1 -1
  216. package/dist/wc/esm/{index-0cf1e7ae.js → index-64993358.js} +1 -1
  217. package/dist/wc/esm/{index-be084691.js → index-b3f3a99c.js} +1 -1
  218. package/dist/wc/esm/{index-48b6c0e6.js → index-ba38e8d5.js} +1 -1
  219. package/dist/wc/esm/{index-ea60f2c2.js → index-ce7e02a3.js} +1 -1
  220. package/dist/wc/esm/{index-2ae14d02.js → index-cfd5ec9b.js} +3 -3
  221. package/dist/wc/esm/{index-2a8923e8.js → index-de36993f.js} +1 -1
  222. package/dist/wc/esm/{index-df217b14.js → index-df808f62.js} +1 -1
  223. package/dist/wc/esm/{index-5445c84d.js → index-f7dfdf1f.js} +1 -1
  224. package/dist/wc/esm/{index-c74188e2.js → index-faec138b.js} +1 -1
  225. package/dist/wc/esm/{index-c3e3c74b.js → index-ff4885bf.js} +1 -1
  226. package/dist/wc/esm/license-activation_10.entry.js +2 -2
  227. package/dist/wc/esm/loader.js +2 -2
  228. package/dist/wc/esm/polyfills/css-shim.js +1 -1
  229. package/dist/wc/esm/z-accordion.entry.js +1 -1
  230. package/dist/wc/esm/z-alert.entry.js +1 -1
  231. package/dist/wc/esm/z-anchor-navigation.entry.js +1 -1
  232. package/dist/wc/esm/z-app-header.entry.js +1 -1
  233. package/dist/wc/esm/z-aria-alert.entry.js +1 -1
  234. package/dist/wc/esm/z-avatar.entry.js +1 -1
  235. package/dist/wc/esm/z-book-card.entry.js +1 -1
  236. package/dist/wc/esm/z-breadcrumb.entry.js +1 -1
  237. package/dist/wc/esm/z-button-sort.entry.js +1 -1
  238. package/dist/wc/esm/z-card.entry.js +1 -1
  239. package/dist/wc/esm/z-carousel.entry.js +1 -1
  240. package/dist/wc/esm/z-chip.entry.js +1 -1
  241. package/dist/wc/esm/z-combobox.entry.js +1 -1
  242. package/dist/wc/esm/z-contextual-menu.entry.js +1 -1
  243. package/dist/wc/esm/z-cover-hero.entry.js +1 -1
  244. package/dist/wc/esm/z-date-picker.entry.js +1 -1
  245. package/dist/wc/esm/z-divider.entry.js +1 -1
  246. package/dist/wc/esm/z-dragdrop-area.entry.js +1 -1
  247. package/dist/wc/esm/z-file-upload.entry.js +1 -1
  248. package/dist/wc/esm/z-file.entry.js +1 -1
  249. package/dist/wc/esm/z-ghost-loading.entry.js +1 -1
  250. package/dist/wc/esm/z-info-reveal.entry.js +1 -1
  251. package/dist/wc/esm/z-link.entry.js +1 -1
  252. package/dist/wc/esm/z-list_3.entry.js +1 -1
  253. package/dist/wc/esm/z-logo.entry.js +1 -1
  254. package/dist/wc/esm/z-menu-section.entry.js +1 -1
  255. package/dist/wc/esm/z-menu.entry.js +1 -1
  256. package/dist/wc/esm/z-messages-pocket.entry.js +1 -1
  257. package/dist/wc/esm/z-myz-card-alert.entry.js +1 -1
  258. package/dist/wc/esm/z-myz-card-dictionary.entry.js +1 -1
  259. package/dist/wc/esm/z-myz-card-footer-sections.entry.js +1 -1
  260. package/dist/wc/esm/z-myz-card-footer.entry.js +1 -1
  261. package/dist/wc/esm/z-myz-card-icon.entry.js +1 -1
  262. package/dist/wc/esm/z-myz-card-info.entry.js +1 -1
  263. package/dist/wc/esm/z-myz-card-list.entry.js +1 -1
  264. package/dist/wc/esm/z-myz-card_4.entry.js +1 -1
  265. package/dist/wc/esm/z-myz-list-item.entry.js +1 -1
  266. package/dist/wc/esm/z-myz-list.entry.js +1 -1
  267. package/dist/wc/esm/z-navigation-tab-link.entry.js +1 -1
  268. package/dist/wc/esm/z-navigation-tab.entry.js +1 -1
  269. package/dist/wc/esm/z-navigation-tabs.entry.js +1 -1
  270. package/dist/wc/esm/z-notification.entry.js +1 -1
  271. package/dist/wc/esm/z-offcanvas_2.entry.js +1 -1
  272. package/dist/wc/esm/z-otp.entry.js +1 -1
  273. package/dist/wc/esm/z-pagination.entry.js +1 -1
  274. package/dist/wc/esm/z-panel-elem.entry.js +1 -1
  275. package/dist/wc/esm/z-pocket-message.entry.js +1 -1
  276. package/dist/wc/esm/z-pocket_3.entry.js +1 -1
  277. package/dist/wc/esm/z-popover.entry.js +1 -1
  278. package/dist/wc/esm/z-range-picker.entry.js +1 -1
  279. package/dist/wc/esm/z-section-title.entry.js +1 -1
  280. package/dist/wc/esm/z-select.entry.js +1 -1
  281. package/dist/wc/esm/z-skip-to-content.entry.js +1 -1
  282. package/dist/wc/esm/z-slideshow.entry.js +1 -1
  283. package/dist/wc/esm/z-stepper-item.entry.js +1 -1
  284. package/dist/wc/esm/z-stepper.entry.js +1 -1
  285. package/dist/wc/esm/z-table-body.entry.js +2 -2
  286. package/dist/wc/esm/z-table-cell.entry.js +2 -2
  287. package/dist/wc/esm/z-table-deprecated.entry.js +11 -11
  288. package/dist/wc/esm/z-table-empty-box.entry.js +2 -2
  289. package/dist/wc/esm/z-table-expanded-row.entry.js +2 -2
  290. package/dist/wc/esm/z-table-footer.entry.js +2 -2
  291. package/dist/wc/esm/z-table-head.entry.js +2 -2
  292. package/dist/wc/esm/z-table-header-row.entry.js +2 -2
  293. package/dist/wc/esm/z-table-header.entry.js +2 -2
  294. package/dist/wc/esm/z-table-row.entry.js +2 -2
  295. package/dist/wc/esm/z-table-sticky-footer.entry.js +2 -2
  296. package/dist/wc/esm/z-table.entry.js +7 -7
  297. package/dist/wc/esm/z-tag.entry.js +1 -1
  298. package/dist/wc/esm/z-tbody.entry.js +2 -2
  299. package/dist/wc/esm/z-td.entry.js +2 -2
  300. package/dist/wc/esm/z-tfoot.entry.js +2 -2
  301. package/dist/wc/esm/z-th.entry.js +2 -2
  302. package/dist/wc/esm/z-thead.entry.js +2 -2
  303. package/dist/wc/esm/z-toast-notification-list.entry.js +1 -1
  304. package/dist/wc/esm/z-toast-notification.entry.js +1 -1
  305. package/dist/wc/esm/z-toggle-button.entry.js +1 -1
  306. package/dist/wc/esm/z-toggle-switch.entry.js +1 -1
  307. package/dist/wc/esm/z-tooltip.entry.js +1 -1
  308. package/dist/wc/esm/z-tr.entry.js +4 -4
  309. package/dist/wc/esm/z-visually-hidden.entry.js +1 -1
  310. package/dist/wc/loader/index.d.ts +0 -1
  311. package/dist/wc/loader/package.json +1 -0
  312. package/dist/wc/types/components.d.ts +17 -5
  313. package/dist/wc/types/stencil-public-runtime.d.ts +189 -186
  314. package/package.json +1 -1
  315. package/dist/wc/delta_share/p-1553bc63.entry.js +0 -1
  316. package/dist/wc/delta_share/p-3b3f83a6.entry.js +0 -1
  317. package/dist/wc/delta_share/p-4b2719fc.entry.js +0 -1
  318. package/dist/wc/delta_share/p-4ff6d958.entry.js +0 -1
  319. package/dist/wc/delta_share/p-80f171a4.entry.js +0 -3
  320. package/dist/wc/delta_share/p-96f53236.entry.js +0 -1
  321. package/dist/wc/delta_share/p-9ef9046f.entry.js +0 -1
  322. package/dist/wc/delta_share/p-aa8f533e.entry.js +0 -1
  323. package/dist/wc/delta_share/p-ab6dbdae.entry.js +0 -1
  324. package/dist/wc/delta_share/p-aeec6792.entry.js +0 -1
  325. package/dist/wc/delta_share/p-af60173c.entry.js +0 -1
  326. package/dist/wc/delta_share/p-bb15cf8b.entry.js +0 -1
  327. package/dist/wc/delta_share/p-c5f5fb78.entry.js +0 -1
  328. package/dist/wc/delta_share/p-d52d3e5c.js +0 -1
  329. package/dist/wc/delta_share/p-d6eef1ed.entry.js +0 -1
  330. package/dist/wc/delta_share/p-d888ec2a.entry.js +0 -1
  331. package/dist/wc/delta_share/p-ebd0e41d.entry.js +0 -1
  332. package/dist/wc/delta_share/p-f77ae63f.entry.js +0 -1
  333. package/dist/wc/delta_share/p-fe53cbde.entry.js +0 -1
@@ -14,17 +14,17 @@ const doc = win.document || { head: {} };
14
14
  const plt = {
15
15
  $flags$: 0,
16
16
  $resourcesUrl$: '',
17
- jmp: h => h(),
18
- raf: h => requestAnimationFrame(h),
17
+ jmp: (h) => h(),
18
+ raf: (h) => requestAnimationFrame(h),
19
19
  ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
20
20
  rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
21
21
  ce: (eventName, opts) => new CustomEvent(eventName, opts),
22
22
  };
23
23
  const promiseResolve = (v) => Promise.resolve(v);
24
- const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
24
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
25
25
  try {
26
26
  new CSSStyleSheet();
27
- return typeof (new CSSStyleSheet()).replace === 'function';
27
+ return typeof new CSSStyleSheet().replaceSync === 'function';
28
28
  }
29
29
  catch (e) { }
30
30
  return false;
@@ -44,7 +44,7 @@ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) =
44
44
  const hostListenerProxy = (hostRef, methodName) => (ev) => {
45
45
  try {
46
46
  {
47
- if (hostRef.$flags$ & 256 /* isListenReady */) {
47
+ if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
48
48
  // instance is ready, let's call it's member method for this event
49
49
  hostRef.$lazyInstance$[methodName](ev);
50
50
  }
@@ -58,16 +58,16 @@ const hostListenerProxy = (hostRef, methodName) => (ev) => {
58
58
  }
59
59
  };
60
60
  const getHostListenerTarget = (elm, flags) => {
61
- if (flags & 4 /* TargetDocument */)
61
+ if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
62
62
  return doc;
63
- if (flags & 8 /* TargetWindow */)
63
+ if (flags & 8 /* LISTENER_FLAGS.TargetWindow */)
64
64
  return win;
65
- if (flags & 16 /* TargetBody */)
65
+ if (flags & 16 /* LISTENER_FLAGS.TargetBody */)
66
66
  return doc.body;
67
67
  return elm;
68
68
  };
69
69
  // prettier-ignore
70
- const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
70
+ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
71
71
  const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
72
72
  const XLINK_NS = 'http://www.w3.org/1999/xlink';
73
73
  const createTime = (fnName, tagName = '') => {
@@ -84,12 +84,17 @@ const uniqueTime = (key, measureText) => {
84
84
  };
85
85
  }
86
86
  };
87
- const rootAppliedStyles = new WeakMap();
87
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
88
88
  const registerStyle = (scopeId, cssText, allowCS) => {
89
89
  let style = styles.get(scopeId);
90
- if (supportsConstructibleStylesheets && allowCS) {
90
+ if (supportsConstructableStylesheets && allowCS) {
91
91
  style = (style || new CSSStyleSheet());
92
- style.replace(cssText);
92
+ if (typeof style === 'string') {
93
+ style = cssText;
94
+ }
95
+ else {
96
+ style.replaceSync(cssText);
97
+ }
93
98
  }
94
99
  else {
95
100
  style = cssText;
@@ -98,10 +103,10 @@ const registerStyle = (scopeId, cssText, allowCS) => {
98
103
  };
99
104
  const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
100
105
  let scopeId = getScopeId(cmpMeta);
101
- let style = styles.get(scopeId);
106
+ const style = styles.get(scopeId);
102
107
  // if an element is NOT connected then getRootNode() will return the wrong root node
103
108
  // so the fallback is to always use the document for the root node in those cases
104
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
109
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
105
110
  if (style) {
106
111
  if (typeof style === 'string') {
107
112
  styleContainerNode = styleContainerNode.head || styleContainerNode;
@@ -135,7 +140,7 @@ const attachStyles = (hostRef) => {
135
140
  const flags = cmpMeta.$flags$;
136
141
  const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
137
142
  const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
138
- if (flags & 10 /* needsScopedEncapsulation */) {
143
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
139
144
  // only required when we're NOT using native shadow dom (slot)
140
145
  // or this browser doesn't support native shadow dom
141
146
  // and this host element was NOT created with SSR
@@ -145,7 +150,7 @@ const attachStyles = (hostRef) => {
145
150
  // DOM WRITE!!
146
151
  elm['s-sc'] = scopeId;
147
152
  elm.classList.add(scopeId + '-h');
148
- if (flags & 2 /* scopedCssEncapsulation */) {
153
+ if (flags & 2 /* CMP_FLAGS.scopedCssEncapsulation */) {
149
154
  elm.classList.add(scopeId + '-s');
150
155
  }
151
156
  }
@@ -188,7 +193,7 @@ const h = (nodeName, vnodeData, ...children) => {
188
193
  let slotName = null;
189
194
  let simple = false;
190
195
  let lastSimple = false;
191
- let vNodeChildren = [];
196
+ const vNodeChildren = [];
192
197
  const walk = (c) => {
193
198
  for (let i = 0; i < c.length; i++) {
194
199
  child = c[i];
@@ -227,7 +232,7 @@ const h = (nodeName, vnodeData, ...children) => {
227
232
  typeof classData !== 'object'
228
233
  ? classData
229
234
  : Object.keys(classData)
230
- .filter(k => classData[k])
235
+ .filter((k) => classData[k])
231
236
  .join(' ');
232
237
  }
233
238
  }
@@ -282,8 +287,8 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
282
287
  const classList = elm.classList;
283
288
  const oldClasses = parseClassList(oldValue);
284
289
  const newClasses = parseClassList(newValue);
285
- classList.remove(...oldClasses.filter(c => c && !newClasses.includes(c)));
286
- classList.add(...newClasses.filter(c => c && !oldClasses.includes(c)));
290
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
291
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
287
292
  }
288
293
  else if (memberName === 'style') {
289
294
  // update style attribute, css properties and values
@@ -318,7 +323,9 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
318
323
  newValue(elm);
319
324
  }
320
325
  }
321
- else if ((!isProp ) && memberName[0] === 'o' && memberName[1] === 'n') {
326
+ else if ((!isProp ) &&
327
+ memberName[0] === 'o' &&
328
+ memberName[1] === 'n') {
322
329
  // Event Handlers
323
330
  // so if the member name starts with "on" and the 3rd characters is
324
331
  // a capital letter, and it's not already a member on the element,
@@ -361,11 +368,10 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
361
368
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
362
369
  try {
363
370
  if (!elm.tagName.includes('-')) {
364
- let n = newValue == null ? '' : newValue;
371
+ const n = newValue == null ? '' : newValue;
365
372
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
366
373
  if (memberName === 'list') {
367
374
  isProp = false;
368
- // tslint:disable-next-line: triple-equals
369
375
  }
370
376
  else if (oldValue == null || elm[memberName] != n) {
371
377
  elm[memberName] = n;
@@ -401,7 +407,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
401
407
  }
402
408
  }
403
409
  }
404
- else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
410
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
405
411
  newValue = newValue === true ? '' : newValue;
406
412
  if (xlink) {
407
413
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
@@ -419,7 +425,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
419
425
  // if the element passed in is a shadow root, which is a document fragment
420
426
  // then we want to be adding attrs/props to the shadow root's "host" element
421
427
  // if it's not a shadow root, then we add attrs/props to the same element
422
- const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
428
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
429
+ ? newVnode.$elm$.host
430
+ : newVnode.$elm$;
423
431
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
424
432
  const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
425
433
  {
@@ -435,9 +443,19 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
435
443
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
436
444
  }
437
445
  };
446
+ /**
447
+ * Create a DOM Node corresponding to one of the children of a given VNode.
448
+ *
449
+ * @param oldParentVNode the parent VNode from the previous render
450
+ * @param newParentVNode the parent VNode from the current render
451
+ * @param childIndex the index of the VNode, in the _new_ parent node's
452
+ * children, for which we will create a new DOM node
453
+ * @param parentElm the parent DOM node which our new node will be a child of
454
+ * @returns the newly created node
455
+ */
438
456
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
439
457
  // tslint:disable-next-line: prefer-const
440
- let newVNode = newParentVNode.$children$[childIndex];
458
+ const newVNode = newParentVNode.$children$[childIndex];
441
459
  let i = 0;
442
460
  let elm;
443
461
  let childNode;
@@ -452,25 +470,28 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
452
470
  }
453
471
  newVNode.$flags$ |= newVNode.$children$
454
472
  ? // slot element has fallback content
455
- 2 /* isSlotFallback */
473
+ 2 /* VNODE_FLAGS.isSlotFallback */
456
474
  : // slot element does not have fallback content
457
- 1 /* isSlotReference */;
475
+ 1 /* VNODE_FLAGS.isSlotReference */;
458
476
  }
459
477
  }
460
478
  if (newVNode.$text$ !== null) {
461
479
  // create text node
462
480
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
463
481
  }
464
- else if (newVNode.$flags$ & 1 /* isSlotReference */) {
482
+ else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
465
483
  // create a slot reference node
466
- elm = newVNode.$elm$ = doc.createTextNode('');
484
+ elm = newVNode.$elm$ =
485
+ doc.createTextNode('');
467
486
  }
468
487
  else {
469
488
  if (!isSvgMode) {
470
489
  isSvgMode = newVNode.$tag$ === 'svg';
471
490
  }
472
491
  // create element
473
- elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* isSlotFallback */ ? 'slot-fb' : newVNode.$tag$)
492
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
493
+ ? 'slot-fb'
494
+ : newVNode.$tag$)
474
495
  );
475
496
  if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
476
497
  isSvgMode = false;
@@ -508,7 +529,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
508
529
  }
509
530
  {
510
531
  elm['s-hn'] = hostTagName;
511
- if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
532
+ if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
512
533
  // remember the content reference comment
513
534
  elm['s-sr'] = true;
514
535
  // remember the content reference comment
@@ -527,7 +548,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
527
548
  return elm;
528
549
  };
529
550
  const putBackInOriginalLocation = (parentElm, recursive) => {
530
- plt.$flags$ |= 1 /* isTmpDisconnected */;
551
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
531
552
  const oldSlotChildNodes = parentElm.childNodes;
532
553
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
533
554
  const childNode = oldSlotChildNodes[i];
@@ -548,7 +569,7 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
548
569
  putBackInOriginalLocation(childNode, recursive);
549
570
  }
550
571
  }
551
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
572
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
552
573
  };
553
574
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
554
575
  let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
@@ -590,6 +611,74 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
590
611
  }
591
612
  }
592
613
  };
614
+ /**
615
+ * Reconcile the children of a new VNode with the children of an old VNode by
616
+ * traversing the two collections of children, identifying nodes that are
617
+ * conserved or changed, calling out to `patch` to make any necessary
618
+ * updates to the DOM, and rearranging DOM nodes as needed.
619
+ *
620
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
621
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
622
+ * 'windows' by storing start and end indices and references to the
623
+ * corresponding array entries. Initially the two 'windows' are basically equal
624
+ * to the entire array, but we progressively narrow the windows until there are
625
+ * no children left to update by doing the following:
626
+ *
627
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
628
+ * that if we have an initial array like the following we'll end up dealing
629
+ * only with a window bounded by the highlighted elements:
630
+ *
631
+ * [null, null, VNode1 , ... , VNode2, null, null]
632
+ * ^^^^^^ ^^^^^^
633
+ *
634
+ * 2. Check to see if the elements at the head and tail positions are equal
635
+ * across the windows. This will basically detect elements which haven't
636
+ * been added, removed, or changed position, i.e. if you had the following
637
+ * VNode elements (represented as HTML):
638
+ *
639
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
640
+ * newVNode: `<div><p><span>THERE</span></p></div>`
641
+ *
642
+ * Then when comparing the children of the `<div>` tag we check the equality
643
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
644
+ * same tag in the same position, we'd be able to avoid completely
645
+ * re-rendering the subtree under them with a new DOM element and would just
646
+ * call out to `patch` to handle reconciling their children and so on.
647
+ *
648
+ * 3. Check, for both windows, to see if the element at the beginning of the
649
+ * window corresponds to the element at the end of the other window. This is
650
+ * a heuristic which will let us identify _some_ situations in which
651
+ * elements have changed position, for instance it _should_ detect that the
652
+ * children nodes themselves have not changed but merely moved in the
653
+ * following example:
654
+ *
655
+ * oldVNode: `<div><element-one /><element-two /></div>`
656
+ * newVNode: `<div><element-two /><element-one /></div>`
657
+ *
658
+ * If we find cases like this then we also need to move the concrete DOM
659
+ * elements corresponding to the moved children to write the re-order to the
660
+ * DOM.
661
+ *
662
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
663
+ * nodes in the old children which have the same key as the first element in
664
+ * our window on the new children. If we find such a node we handle calling
665
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
666
+ * what we find.
667
+ *
668
+ * Finally, once we've narrowed our 'windows' to the point that either of them
669
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
670
+ * insertion or deletion that needs to happen to get a DOM state that correctly
671
+ * reflects the new child VNodes. If, for instance, after our window on the old
672
+ * children has collapsed we still have more nodes on the new children that
673
+ * we haven't dealt with yet then we need to add them, or if the new children
674
+ * collapse but we still have unhandled _old_ children then we need to make
675
+ * sure the corresponding DOM nodes are removed.
676
+ *
677
+ * @param parentElm the node into which the parent VNode is rendered
678
+ * @param oldCh the old children of the parent node
679
+ * @param newVNode the new VNode which will replace the parent
680
+ * @param newCh the new children of the parent node
681
+ */
593
682
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
594
683
  let oldStartIdx = 0;
595
684
  let newStartIdx = 0;
@@ -605,7 +694,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
605
694
  let elmToMove;
606
695
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
607
696
  if (oldStartVnode == null) {
608
- // Vnode might have been moved left
697
+ // VNode might have been moved left
609
698
  oldStartVnode = oldCh[++oldStartIdx];
610
699
  }
611
700
  else if (oldEndVnode == null) {
@@ -618,37 +707,100 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
618
707
  newEndVnode = newCh[--newEndIdx];
619
708
  }
620
709
  else if (isSameVnode(oldStartVnode, newStartVnode)) {
710
+ // if the start nodes are the same then we should patch the new VNode
711
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
712
+ // indices to reflect that. We don't need to move any DOM Nodes around
713
+ // since things are matched up in order.
621
714
  patch(oldStartVnode, newStartVnode);
622
715
  oldStartVnode = oldCh[++oldStartIdx];
623
716
  newStartVnode = newCh[++newStartIdx];
624
717
  }
625
718
  else if (isSameVnode(oldEndVnode, newEndVnode)) {
719
+ // likewise, if the end nodes are the same we patch new onto old and
720
+ // decrement our end indices, and also likewise in this case we don't
721
+ // need to move any DOM Nodes.
626
722
  patch(oldEndVnode, newEndVnode);
627
723
  oldEndVnode = oldCh[--oldEndIdx];
628
724
  newEndVnode = newCh[--newEndIdx];
629
725
  }
630
726
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
631
- // Vnode moved right
727
+ // case: "Vnode moved right"
728
+ //
729
+ // We've found that the last node in our window on the new children is
730
+ // the same VNode as the _first_ node in our window on the old children
731
+ // we're dealing with now. Visually, this is the layout of these two
732
+ // nodes:
733
+ //
734
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
735
+ // ^^^^^^^^^^^
736
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
737
+ // ^^^^^^^^^^^^^
738
+ //
739
+ // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
740
+ // and move the DOM element for `oldStartVnode`.
632
741
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
633
742
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
634
743
  }
635
744
  patch(oldStartVnode, newEndVnode);
745
+ // We need to move the element for `oldStartVnode` into a position which
746
+ // will be appropriate for `newEndVnode`. For this we can use
747
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
748
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
749
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
750
+ //
751
+ // <old-start-node />
752
+ // <some-intervening-node />
753
+ // <old-end-node />
754
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
755
+ // <next-sibling />
756
+ //
757
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
758
+ // the node for `oldStartVnode` at the end of the children of
759
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
760
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
761
+ // append it to the children of the parent element.
636
762
  parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
637
763
  oldStartVnode = oldCh[++oldStartIdx];
638
764
  newEndVnode = newCh[--newEndIdx];
639
765
  }
640
766
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
641
- // Vnode moved left
767
+ // case: "Vnode moved left"
768
+ //
769
+ // We've found that the first node in our window on the new children is
770
+ // the same VNode as the _last_ node in our window on the old children.
771
+ // Visually, this is the layout of these two nodes:
772
+ //
773
+ // newCh: [..., newStartVnode , ... , newEndVnode , ...]
774
+ // ^^^^^^^^^^^^^
775
+ // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
776
+ // ^^^^^^^^^^^
777
+ //
778
+ // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
779
+ // (which will handle updating any changed attributes, reconciling their
780
+ // children etc) but we also need to move the DOM node to which
781
+ // `oldEndVnode` corresponds.
642
782
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
643
783
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
644
784
  }
645
785
  patch(oldEndVnode, newStartVnode);
786
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
787
+ // the same node, so since we're here we know that they are not. Thus we
788
+ // can move the element for `oldEndVnode` _before_ the element for
789
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
790
+ // future.
646
791
  parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
647
792
  oldEndVnode = oldCh[--oldEndIdx];
648
793
  newStartVnode = newCh[++newStartIdx];
649
794
  }
650
795
  else {
651
- // createKeyToOldIdx
796
+ // Here we do some checks to match up old and new nodes based on the
797
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
798
+ // in the JSX for a DOM element in the implementation of a Stencil
799
+ // component.
800
+ //
801
+ // First we check to see if there are any nodes in the array of old
802
+ // children which have the same key as the first node in the new
803
+ // children.
652
804
  idxInOld = -1;
653
805
  {
654
806
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
@@ -659,23 +811,32 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
659
811
  }
660
812
  }
661
813
  if (idxInOld >= 0) {
814
+ // We found a node in the old children which matches up with the first
815
+ // node in the new children! So let's deal with that
662
816
  elmToMove = oldCh[idxInOld];
663
817
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
818
+ // the tag doesn't match so we'll need a new DOM element
664
819
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld, parentElm);
665
820
  }
666
821
  else {
667
822
  patch(elmToMove, newStartVnode);
823
+ // invalidate the matching old node so that we won't try to update it
824
+ // again later on
668
825
  oldCh[idxInOld] = undefined;
669
826
  node = elmToMove.$elm$;
670
827
  }
671
828
  newStartVnode = newCh[++newStartIdx];
672
829
  }
673
830
  else {
674
- // new element
831
+ // We either didn't find an element in the old children that matches
832
+ // the key of the first new child OR the build is not using `key`
833
+ // attributes at all. In either case we need to create a new element
834
+ // for the new node.
675
835
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx, parentElm);
676
836
  newStartVnode = newCh[++newStartIdx];
677
837
  }
678
838
  if (node) {
839
+ // if we created a new node then handle inserting it to the DOM
679
840
  {
680
841
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
681
842
  }
@@ -683,21 +844,43 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
683
844
  }
684
845
  }
685
846
  if (oldStartIdx > oldEndIdx) {
847
+ // we have some more new nodes to add which don't match up with old nodes
686
848
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
687
849
  }
688
850
  else if (newStartIdx > newEndIdx) {
851
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
852
+ // in the new array, so lets remove them (which entails cleaning up the
853
+ // relevant DOM nodes)
689
854
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
690
855
  }
691
856
  };
692
- const isSameVnode = (vnode1, vnode2) => {
857
+ /**
858
+ * Compare two VNodes to determine if they are the same
859
+ *
860
+ * **NB**: This function is an equality _heuristic_ based on the available
861
+ * information set on the two VNodes and can be misleading under certain
862
+ * circumstances. In particular, if the two nodes do not have `key` attrs
863
+ * (available under `$key$` on VNodes) then the function falls back on merely
864
+ * checking that they have the same tag.
865
+ *
866
+ * So, in other words, if `key` attrs are not set on VNodes which may be
867
+ * changing order within a `children` array or something along those lines then
868
+ * we could obtain a false positive and then have to do needless re-rendering.
869
+ *
870
+ * @param leftVNode the first VNode to check
871
+ * @param rightVNode the second VNode to check
872
+ * @returns whether they're equal or not
873
+ */
874
+ const isSameVnode = (leftVNode, rightVNode) => {
693
875
  // compare if two vnode to see if they're "technically" the same
694
876
  // need to have the same element tag, and same key to be the same
695
- if (vnode1.$tag$ === vnode2.$tag$) {
696
- if (vnode1.$tag$ === 'slot') {
697
- return vnode1.$name$ === vnode2.$name$;
877
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
878
+ if (leftVNode.$tag$ === 'slot') {
879
+ return leftVNode.$name$ === rightVNode.$name$;
698
880
  }
881
+ // this will be set if components in the build have `key` attrs set on them
699
882
  {
700
- return vnode1.$key$ === vnode2.$key$;
883
+ return leftVNode.$key$ === rightVNode.$key$;
701
884
  }
702
885
  }
703
886
  return false;
@@ -710,6 +893,14 @@ const referenceNode = (node) => {
710
893
  return (node && node['s-ol']) || node;
711
894
  };
712
895
  const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
896
+ /**
897
+ * Handle reconciling an outdated VNode with a new one which corresponds to
898
+ * it. This function handles flushing updates to the DOM and reconciling the
899
+ * children of the two nodes (if any).
900
+ *
901
+ * @param oldVNode an old VNode whose DOM element and children we want to update
902
+ * @param newVNode a new VNode representing an updated version of the old one
903
+ */
713
904
  const patch = (oldVNode, newVNode) => {
714
905
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
715
906
  const oldChildren = oldVNode.$children$;
@@ -723,7 +914,6 @@ const patch = (oldVNode, newVNode) => {
723
914
  // only add this to the when the compiler sees we're using an svg somewhere
724
915
  isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
725
916
  }
726
- // element node
727
917
  {
728
918
  if (tag === 'slot')
729
919
  ;
@@ -736,6 +926,7 @@ const patch = (oldVNode, newVNode) => {
736
926
  }
737
927
  if (oldChildren !== null && newChildren !== null) {
738
928
  // looks like there's child vnodes for both the old and new vnodes
929
+ // so we need to call `updateChildren` to reconcile them
739
930
  updateChildren(elm, oldChildren, newVNode, newChildren);
740
931
  }
741
932
  else if (newChildren !== null) {
@@ -767,7 +958,7 @@ const patch = (oldVNode, newVNode) => {
767
958
  };
768
959
  const updateFallbackSlotVisibility = (elm) => {
769
960
  // tslint:disable-next-line: prefer-const
770
- let childNodes = elm.childNodes;
961
+ const childNodes = elm.childNodes;
771
962
  let childNode;
772
963
  let i;
773
964
  let ilen;
@@ -776,7 +967,7 @@ const updateFallbackSlotVisibility = (elm) => {
776
967
  let nodeType;
777
968
  for (i = 0, ilen = childNodes.length; i < ilen; i++) {
778
969
  childNode = childNodes[i];
779
- if (childNode.nodeType === 1 /* ElementNode */) {
970
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
780
971
  if (childNode['s-sr']) {
781
972
  // this is a slot fallback node
782
973
  // get the slot name for this slot reference node
@@ -788,7 +979,7 @@ const updateFallbackSlotVisibility = (elm) => {
788
979
  nodeType = childNodes[j].nodeType;
789
980
  if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
790
981
  // this sibling node is from a different component OR is a named fallback slot node
791
- if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
982
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
792
983
  childNode.hidden = true;
793
984
  break;
794
985
  }
@@ -797,8 +988,8 @@ const updateFallbackSlotVisibility = (elm) => {
797
988
  // this is a default fallback slot node
798
989
  // any element or text node (with content)
799
990
  // should hide the default fallback slot node
800
- if (nodeType === 1 /* ElementNode */ ||
801
- (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
991
+ if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
992
+ (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
802
993
  childNode.hidden = true;
803
994
  break;
804
995
  }
@@ -820,8 +1011,8 @@ const relocateSlotContent = (elm) => {
820
1011
  let relocateNodeData;
821
1012
  let j;
822
1013
  let i = 0;
823
- let childNodes = elm.childNodes;
824
- let ilen = childNodes.length;
1014
+ const childNodes = elm.childNodes;
1015
+ const ilen = childNodes.length;
825
1016
  for (; i < ilen; i++) {
826
1017
  childNode = childNodes[i];
827
1018
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
@@ -837,7 +1028,7 @@ const relocateSlotContent = (elm) => {
837
1028
  // that is suppose to always represent the original content location
838
1029
  if (isNodeLocatedInSlot(node, slotNameAttr)) {
839
1030
  // it's possible we've already decided to relocate this node
840
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
1031
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
841
1032
  // made some changes to slots
842
1033
  // let's make sure we also double check
843
1034
  // fallbacks are correctly hidden or shown
@@ -856,9 +1047,9 @@ const relocateSlotContent = (elm) => {
856
1047
  });
857
1048
  }
858
1049
  if (node['s-sr']) {
859
- relocateNodes.map(relocateNode => {
1050
+ relocateNodes.map((relocateNode) => {
860
1051
  if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
861
- relocateNodeData = relocateNodes.find(r => r.$nodeToRelocate$ === node);
1052
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
862
1053
  if (relocateNodeData && !relocateNode.$slotRefNode$) {
863
1054
  relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
864
1055
  }
@@ -866,7 +1057,7 @@ const relocateSlotContent = (elm) => {
866
1057
  });
867
1058
  }
868
1059
  }
869
- else if (!relocateNodes.some(r => r.$nodeToRelocate$ === node)) {
1060
+ else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
870
1061
  // so far this element does not have a slot home, not setting slotRefNode on purpose
871
1062
  // if we never find a home for this element then we'll need to hide it
872
1063
  relocateNodes.push({
@@ -876,13 +1067,13 @@ const relocateSlotContent = (elm) => {
876
1067
  }
877
1068
  }
878
1069
  }
879
- if (childNode.nodeType === 1 /* ElementNode */) {
1070
+ if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
880
1071
  relocateSlotContent(childNode);
881
1072
  }
882
1073
  }
883
1074
  };
884
1075
  const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
885
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1076
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
886
1077
  if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
887
1078
  return true;
888
1079
  }
@@ -913,7 +1104,7 @@ const renderVdom = (hostRef, renderFnResults) => {
913
1104
  cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
914
1105
  }
915
1106
  rootVnode.$tag$ = null;
916
- rootVnode.$flags$ |= 4 /* isHost */;
1107
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
917
1108
  hostRef.$vnode$ = rootVnode;
918
1109
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
919
1110
  {
@@ -921,7 +1112,7 @@ const renderVdom = (hostRef, renderFnResults) => {
921
1112
  }
922
1113
  {
923
1114
  contentRef = hostElm['s-cr'];
924
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1115
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
925
1116
  // always reset
926
1117
  checkSlotFallbackVisibility = false;
927
1118
  }
@@ -930,7 +1121,7 @@ const renderVdom = (hostRef, renderFnResults) => {
930
1121
  {
931
1122
  // while we're moving nodes around existing nodes, temporarily disable
932
1123
  // the disconnectCallback from working
933
- plt.$flags$ |= 1 /* isTmpDisconnected */;
1124
+ plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
934
1125
  if (checkSlotRelocate) {
935
1126
  relocateSlotContent(rootVnode.$elm$);
936
1127
  let relocateData;
@@ -946,7 +1137,8 @@ const renderVdom = (hostRef, renderFnResults) => {
946
1137
  if (!nodeToRelocate['s-ol']) {
947
1138
  // add a reference node marking this node's original location
948
1139
  // keep a reference to this node for later lookups
949
- orgLocationNode = doc.createTextNode('');
1140
+ orgLocationNode =
1141
+ doc.createTextNode('');
950
1142
  orgLocationNode['s-nr'] = nodeToRelocate;
951
1143
  nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
952
1144
  }
@@ -970,7 +1162,8 @@ const renderVdom = (hostRef, renderFnResults) => {
970
1162
  }
971
1163
  }
972
1164
  }
973
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) || nodeToRelocate.nextSibling !== insertBeforeNode) {
1165
+ if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1166
+ nodeToRelocate.nextSibling !== insertBeforeNode) {
974
1167
  // we've checked that it's worth while to relocate
975
1168
  // since that the node to relocate
976
1169
  // has a different next sibling or parent relocated
@@ -986,7 +1179,7 @@ const renderVdom = (hostRef, renderFnResults) => {
986
1179
  }
987
1180
  else {
988
1181
  // this node doesn't have a slot home to go to, so let's hide it
989
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1182
+ if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
990
1183
  nodeToRelocate.hidden = true;
991
1184
  }
992
1185
  }
@@ -997,7 +1190,7 @@ const renderVdom = (hostRef, renderFnResults) => {
997
1190
  }
998
1191
  // done moving nodes around
999
1192
  // allow the disconnect callback to work again
1000
- plt.$flags$ &= ~1 /* isTmpDisconnected */;
1193
+ plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1001
1194
  // always reset
1002
1195
  relocateNodes.length = 0;
1003
1196
  }
@@ -1008,14 +1201,21 @@ const createEvent = (ref, name, flags) => {
1008
1201
  return {
1009
1202
  emit: (detail) => {
1010
1203
  return emitEvent(elm, name, {
1011
- bubbles: !!(flags & 4 /* Bubbles */),
1012
- composed: !!(flags & 2 /* Composed */),
1013
- cancelable: !!(flags & 1 /* Cancellable */),
1204
+ bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
1205
+ composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
1206
+ cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
1014
1207
  detail,
1015
1208
  });
1016
1209
  },
1017
1210
  };
1018
1211
  };
1212
+ /**
1213
+ * Helper function to create & dispatch a custom Event on a provided target
1214
+ * @param elm the target of the Event
1215
+ * @param name the name to give the custom Event
1216
+ * @param opts options for configuring a custom Event
1217
+ * @returns the custom Event
1218
+ */
1019
1219
  const emitEvent = (elm, name, opts) => {
1020
1220
  const ev = plt.ce(name, opts);
1021
1221
  elm.dispatchEvent(ev);
@@ -1023,15 +1223,15 @@ const emitEvent = (elm, name, opts) => {
1023
1223
  };
1024
1224
  const attachToAncestor = (hostRef, ancestorComponent) => {
1025
1225
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1026
- ancestorComponent['s-p'].push(new Promise(r => (hostRef.$onRenderResolve$ = r)));
1226
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1027
1227
  }
1028
1228
  };
1029
1229
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1030
1230
  {
1031
- hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1231
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1032
1232
  }
1033
- if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1034
- hostRef.$flags$ |= 512 /* needsRerender */;
1233
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1234
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1035
1235
  return;
1036
1236
  }
1037
1237
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
@@ -1047,7 +1247,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1047
1247
  let promise;
1048
1248
  if (isInitialLoad) {
1049
1249
  {
1050
- hostRef.$flags$ |= 256 /* isListenReady */;
1250
+ hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1051
1251
  if (hostRef.$queuedListeners$) {
1052
1252
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1053
1253
  hostRef.$queuedListeners$ = null;
@@ -1085,7 +1285,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1085
1285
  // ok, so turns out there are some child host elements
1086
1286
  // waiting on this parent element to load
1087
1287
  // let's fire off all update callbacks waiting
1088
- rc.map(cb => cb());
1288
+ rc.map((cb) => cb());
1089
1289
  elm['s-rc'] = undefined;
1090
1290
  }
1091
1291
  endRender();
@@ -1098,7 +1298,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1098
1298
  }
1099
1299
  else {
1100
1300
  Promise.all(childrenPromises).then(postUpdate);
1101
- hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1301
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1102
1302
  childrenPromises.length = 0;
1103
1303
  }
1104
1304
  }
@@ -1108,10 +1308,10 @@ const callRender = (hostRef, instance, elm) => {
1108
1308
  renderingRef = instance;
1109
1309
  instance = instance.render() ;
1110
1310
  {
1111
- hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1311
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1112
1312
  }
1113
1313
  {
1114
- hostRef.$flags$ |= 2 /* hasRendered */;
1314
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1115
1315
  }
1116
1316
  {
1117
1317
  {
@@ -1140,8 +1340,8 @@ const postUpdateComponent = (hostRef) => {
1140
1340
  {
1141
1341
  safeCall(instance, 'componentDidRender');
1142
1342
  }
1143
- if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1144
- hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1343
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1344
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1145
1345
  {
1146
1346
  // DOM WRITE!
1147
1347
  addHydratedFlag(elm);
@@ -1173,10 +1373,10 @@ const postUpdateComponent = (hostRef) => {
1173
1373
  hostRef.$onRenderResolve$();
1174
1374
  hostRef.$onRenderResolve$ = undefined;
1175
1375
  }
1176
- if (hostRef.$flags$ & 512 /* needsRerender */) {
1376
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1177
1377
  nextTick(() => scheduleUpdate(hostRef, false));
1178
1378
  }
1179
- hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1379
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1180
1380
  }
1181
1381
  // ( •_•)
1182
1382
  // ( •_•)>⌐■-■
@@ -1186,7 +1386,8 @@ const forceUpdate = (ref) => {
1186
1386
  {
1187
1387
  const hostRef = getHostRef(ref);
1188
1388
  const isConnected = hostRef.$hostElement$.isConnected;
1189
- if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1389
+ if (isConnected &&
1390
+ (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1190
1391
  scheduleUpdate(hostRef, false);
1191
1392
  }
1192
1393
  // Returns "true" when the forced update was successfully scheduled
@@ -1215,20 +1416,44 @@ const safeCall = (instance, method, arg) => {
1215
1416
  const then = (promise, thenFn) => {
1216
1417
  return promise && promise.then ? promise.then(thenFn) : thenFn();
1217
1418
  };
1218
- const addHydratedFlag = (elm) => (elm.classList.add('hydrated') );
1419
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1420
+ ;
1421
+ /**
1422
+ * Parse a new property value for a given property type.
1423
+ *
1424
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
1425
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
1426
+ * 1. `any`, the type given to `propValue` in the function signature
1427
+ * 2. the type stored from `propType`.
1428
+ *
1429
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
1430
+ *
1431
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
1432
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
1433
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
1434
+ * ```tsx
1435
+ * <my-cmp prop-val={0}></my-cmp>
1436
+ * ```
1437
+ *
1438
+ * HTML prop values on the other hand, will always a string
1439
+ *
1440
+ * @param propValue the new value to coerce to some type
1441
+ * @param propType the type of the prop, expressed as a binary number
1442
+ * @returns the parsed/coerced value
1443
+ */
1219
1444
  const parsePropertyValue = (propValue, propType) => {
1220
1445
  // ensure this value is of the correct prop type
1221
1446
  if (propValue != null && !isComplexType(propValue)) {
1222
- if (propType & 4 /* Boolean */) {
1447
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
1223
1448
  // per the HTML spec, any string value means it is a boolean true value
1224
1449
  // but we'll cheat here and say that the string "false" is the boolean false
1225
1450
  return propValue === 'false' ? false : propValue === '' || !!propValue;
1226
1451
  }
1227
- if (propType & 2 /* Number */) {
1452
+ if (propType & 2 /* MEMBER_FLAGS.Number */) {
1228
1453
  // force it to be a number
1229
1454
  return parseFloat(propValue);
1230
1455
  }
1231
- if (propType & 1 /* String */) {
1456
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
1232
1457
  // could have been passed as a number or boolean
1233
1458
  // but we still want it as a string
1234
1459
  return String(propValue);
@@ -1249,17 +1474,20 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1249
1474
  const flags = hostRef.$flags$;
1250
1475
  const instance = hostRef.$lazyInstance$ ;
1251
1476
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1252
- if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1477
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1478
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1479
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1480
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1253
1481
  // gadzooks! the property's value has changed!!
1254
1482
  // set our new value!
1255
1483
  hostRef.$instanceValues$.set(propName, newVal);
1256
1484
  if (instance) {
1257
1485
  // get an array of method names of watch functions to call
1258
- if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1486
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1259
1487
  const watchMethods = cmpMeta.$watchers$[propName];
1260
1488
  if (watchMethods) {
1261
1489
  // this instance is watching for when this property changed
1262
- watchMethods.map(watchMethodName => {
1490
+ watchMethods.map((watchMethodName) => {
1263
1491
  try {
1264
1492
  // fire off each of the watch methods that are watching this property
1265
1493
  instance[watchMethodName](newVal, oldVal, propName);
@@ -1270,7 +1498,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1270
1498
  });
1271
1499
  }
1272
1500
  }
1273
- if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1501
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1274
1502
  // looks like this value actually changed, so we've got work to do!
1275
1503
  // but only if we've already rendered, otherwise just chill out
1276
1504
  // queue that we need to do an update, but don't worry about queuing
@@ -1289,7 +1517,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1289
1517
  const members = Object.entries(cmpMeta.$members$);
1290
1518
  const prototype = Cstr.prototype;
1291
1519
  members.map(([memberName, [memberFlags]]) => {
1292
- if ((memberFlags & 31 /* Prop */ || ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1520
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1521
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1293
1522
  // proxyComponent - prop
1294
1523
  Object.defineProperty(prototype, memberName, {
1295
1524
  get() {
@@ -1304,7 +1533,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1304
1533
  enumerable: true,
1305
1534
  });
1306
1535
  }
1307
- else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1536
+ else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1537
+ memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1308
1538
  // proxyComponent - method
1309
1539
  Object.defineProperty(prototype, memberName, {
1310
1540
  value(...args) {
@@ -1314,22 +1544,67 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1314
1544
  });
1315
1545
  }
1316
1546
  });
1317
- if ((flags & 1 /* isElementConstructor */)) {
1547
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1318
1548
  const attrNameToPropName = new Map();
1319
1549
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1320
1550
  plt.jmp(() => {
1321
1551
  const propName = attrNameToPropName.get(attrName);
1552
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1553
+ // in the case where an attribute was set inline.
1554
+ // ```html
1555
+ // <my-component some-attribute="some-value"></my-component>
1556
+ // ```
1557
+ //
1558
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1559
+ // programmatically changes it before it has been upgraded as shown below:
1560
+ //
1561
+ // ```html
1562
+ // <!-- this component has _not_ been upgraded yet -->
1563
+ // <my-component id="test" some-attribute="some-value"></my-component>
1564
+ // <script>
1565
+ // // grab non-upgraded component
1566
+ // el = document.querySelector("#test");
1567
+ // el.someAttribute = "another-value";
1568
+ // // upgrade component
1569
+ // customElements.define('my-component', MyComponent);
1570
+ // </script>
1571
+ // ```
1572
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1573
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1574
+ // to the value that was set inline i.e. "some-value" from above example. When
1575
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1576
+ //
1577
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1578
+ // by connectedCallback as this attributeChangedCallback will not fire.
1579
+ //
1580
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1581
+ //
1582
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1583
+ // properties here given that this goes against best practices outlined here
1584
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1585
+ if (this.hasOwnProperty(propName)) {
1586
+ newValue = this[propName];
1587
+ delete this[propName];
1588
+ }
1589
+ else if (prototype.hasOwnProperty(propName) &&
1590
+ typeof this[propName] === 'number' &&
1591
+ this[propName] == newValue) {
1592
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1593
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1594
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1595
+ return;
1596
+ }
1322
1597
  this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1323
1598
  });
1324
1599
  };
1325
1600
  // create an array of attributes to observe
1326
1601
  // and also create a map of html attribute name to js property name
1327
1602
  Cstr.observedAttributes = members
1328
- .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1603
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1329
1604
  .map(([propName, m]) => {
1330
1605
  const attrName = m[1] || propName;
1331
1606
  attrNameToPropName.set(attrName, propName);
1332
- if (m[0] & 512 /* ReflectAttr */) {
1607
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1333
1608
  cmpMeta.$attrsToReflect$.push([propName, attrName]);
1334
1609
  }
1335
1610
  return attrName;
@@ -1340,10 +1615,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1340
1615
  };
1341
1616
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1342
1617
  // initializeComponent
1343
- if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1618
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1344
1619
  {
1345
1620
  // we haven't initialized this element yet
1346
- hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1621
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1347
1622
  // lazy loaded components
1348
1623
  // request the component's implementation to be
1349
1624
  // wired up with the host element
@@ -1355,13 +1630,13 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1355
1630
  endLoad();
1356
1631
  }
1357
1632
  if (!Cstr.isProxied) {
1358
- // we'eve never proxied this Constructor before
1633
+ // we've never proxied this Constructor before
1359
1634
  // let's add the getters/setters to its prototype before
1360
1635
  // the first time we create an instance of the implementation
1361
1636
  {
1362
1637
  cmpMeta.$watchers$ = Cstr.watchers;
1363
1638
  }
1364
- proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1639
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1365
1640
  Cstr.isProxied = true;
1366
1641
  }
1367
1642
  const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
@@ -1369,7 +1644,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1369
1644
  // but let's keep track of when we start and stop
1370
1645
  // so that the getters/setters don't incorrectly step on data
1371
1646
  {
1372
- hostRef.$flags$ |= 8 /* isConstructingInstance */;
1647
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1373
1648
  }
1374
1649
  // construct the lazy-loaded component implementation
1375
1650
  // passing the hostRef is very important during
@@ -1382,10 +1657,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1382
1657
  consoleError(e);
1383
1658
  }
1384
1659
  {
1385
- hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1660
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1386
1661
  }
1387
1662
  {
1388
- hostRef.$flags$ |= 128 /* isWatchReady */;
1663
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1389
1664
  }
1390
1665
  endNewInstance();
1391
1666
  fireConnectedCallback(hostRef.$lazyInstance$);
@@ -1396,7 +1671,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1396
1671
  const scopeId = getScopeId(cmpMeta);
1397
1672
  if (!styles.has(scopeId)) {
1398
1673
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1399
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1674
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1400
1675
  endRegisterStyles();
1401
1676
  }
1402
1677
  }
@@ -1405,7 +1680,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1405
1680
  const ancestorComponent = hostRef.$ancestorComponent$;
1406
1681
  const schedule = () => scheduleUpdate(hostRef, true);
1407
1682
  if (ancestorComponent && ancestorComponent['s-rc']) {
1408
- // this is the intial load and this component it has an ancestor component
1683
+ // this is the initial load and this component it has an ancestor component
1409
1684
  // but the ancestor component has NOT fired its will update lifecycle yet
1410
1685
  // so let's just cool our jets and wait for the ancestor to continue first
1411
1686
  // this will get fired off when the ancestor component
@@ -1423,19 +1698,19 @@ const fireConnectedCallback = (instance) => {
1423
1698
  }
1424
1699
  };
1425
1700
  const connectedCallback = (elm) => {
1426
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1701
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1427
1702
  const hostRef = getHostRef(elm);
1428
1703
  const cmpMeta = hostRef.$cmpMeta$;
1429
1704
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1430
- if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1705
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1431
1706
  // first time this component has connected
1432
- hostRef.$flags$ |= 1 /* hasConnected */;
1707
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1433
1708
  {
1434
1709
  // initUpdate
1435
1710
  // if the slot polyfill is required we'll need to put some nodes
1436
1711
  // in here to act as original content anchors as we move nodes around
1437
1712
  // host element has been connected to the DOM
1438
- if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1713
+ if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1439
1714
  setContentReference(elm);
1440
1715
  }
1441
1716
  }
@@ -1458,7 +1733,7 @@ const connectedCallback = (elm) => {
1458
1733
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1459
1734
  if (cmpMeta.$members$) {
1460
1735
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1461
- if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1736
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1462
1737
  const value = elm[memberName];
1463
1738
  delete elm[memberName];
1464
1739
  elm[memberName] = value;
@@ -1492,12 +1767,12 @@ const setContentReference = (elm) => {
1492
1767
  elm.insertBefore(contentRefElm, elm.firstChild);
1493
1768
  };
1494
1769
  const disconnectedCallback = (elm) => {
1495
- if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1770
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1496
1771
  const hostRef = getHostRef(elm);
1497
1772
  const instance = hostRef.$lazyInstance$ ;
1498
1773
  {
1499
1774
  if (hostRef.$rmListeners$) {
1500
- hostRef.$rmListeners$.map(rmListener => rmListener());
1775
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
1501
1776
  hostRef.$rmListeners$ = undefined;
1502
1777
  }
1503
1778
  }
@@ -1519,71 +1794,73 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1519
1794
  let isBootstrapping = true;
1520
1795
  Object.assign(plt, options);
1521
1796
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1522
- lazyBundles.map(lazyBundle => lazyBundle[1].map(compactMeta => {
1523
- const cmpMeta = {
1524
- $flags$: compactMeta[0],
1525
- $tagName$: compactMeta[1],
1526
- $members$: compactMeta[2],
1527
- $listeners$: compactMeta[3],
1528
- };
1529
- {
1530
- cmpMeta.$members$ = compactMeta[2];
1531
- }
1532
- {
1533
- cmpMeta.$listeners$ = compactMeta[3];
1534
- }
1535
- {
1536
- cmpMeta.$attrsToReflect$ = [];
1537
- }
1538
- {
1539
- cmpMeta.$watchers$ = {};
1540
- }
1541
- const tagName = cmpMeta.$tagName$;
1542
- const HostElement = class extends HTMLElement {
1543
- // StencilLazyHost
1544
- constructor(self) {
1545
- // @ts-ignore
1546
- super(self);
1547
- self = this;
1548
- registerHost(self, cmpMeta);
1549
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1550
- // this component is using shadow dom
1551
- // and this browser supports shadow dom
1552
- // add the read-only property "shadowRoot" to the host element
1553
- // adding the shadow root build conditionals to minimize runtime
1554
- {
1797
+ lazyBundles.map((lazyBundle) => {
1798
+ lazyBundle[1].map((compactMeta) => {
1799
+ const cmpMeta = {
1800
+ $flags$: compactMeta[0],
1801
+ $tagName$: compactMeta[1],
1802
+ $members$: compactMeta[2],
1803
+ $listeners$: compactMeta[3],
1804
+ };
1805
+ {
1806
+ cmpMeta.$members$ = compactMeta[2];
1807
+ }
1808
+ {
1809
+ cmpMeta.$listeners$ = compactMeta[3];
1810
+ }
1811
+ {
1812
+ cmpMeta.$attrsToReflect$ = [];
1813
+ }
1814
+ {
1815
+ cmpMeta.$watchers$ = {};
1816
+ }
1817
+ const tagName = cmpMeta.$tagName$;
1818
+ const HostElement = class extends HTMLElement {
1819
+ // StencilLazyHost
1820
+ constructor(self) {
1821
+ // @ts-ignore
1822
+ super(self);
1823
+ self = this;
1824
+ registerHost(self, cmpMeta);
1825
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1826
+ // this component is using shadow dom
1827
+ // and this browser supports shadow dom
1828
+ // add the read-only property "shadowRoot" to the host element
1829
+ // adding the shadow root build conditionals to minimize runtime
1555
1830
  {
1556
- self.attachShadow({ mode: 'open' });
1831
+ {
1832
+ self.attachShadow({ mode: 'open' });
1833
+ }
1557
1834
  }
1558
1835
  }
1559
1836
  }
1560
- }
1561
- connectedCallback() {
1562
- if (appLoadFallback) {
1563
- clearTimeout(appLoadFallback);
1564
- appLoadFallback = null;
1837
+ connectedCallback() {
1838
+ if (appLoadFallback) {
1839
+ clearTimeout(appLoadFallback);
1840
+ appLoadFallback = null;
1841
+ }
1842
+ if (isBootstrapping) {
1843
+ // connectedCallback will be processed once all components have been registered
1844
+ deferredConnectedCallbacks.push(this);
1845
+ }
1846
+ else {
1847
+ plt.jmp(() => connectedCallback(this));
1848
+ }
1565
1849
  }
1566
- if (isBootstrapping) {
1567
- // connectedCallback will be processed once all components have been registered
1568
- deferredConnectedCallbacks.push(this);
1850
+ disconnectedCallback() {
1851
+ plt.jmp(() => disconnectedCallback(this));
1569
1852
  }
1570
- else {
1571
- plt.jmp(() => connectedCallback(this));
1853
+ componentOnReady() {
1854
+ return getHostRef(this).$onReadyPromise$;
1572
1855
  }
1856
+ };
1857
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1858
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1859
+ cmpTags.push(tagName);
1860
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1573
1861
  }
1574
- disconnectedCallback() {
1575
- plt.jmp(() => disconnectedCallback(this));
1576
- }
1577
- componentOnReady() {
1578
- return getHostRef(this).$onReadyPromise$;
1579
- }
1580
- };
1581
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1582
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1583
- cmpTags.push(tagName);
1584
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1585
- }
1586
- }));
1862
+ });
1863
+ });
1587
1864
  {
1588
1865
  visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1589
1866
  visibilityStyle.setAttribute('data-styles', '');
@@ -1592,7 +1869,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1592
1869
  // Process deferred connectedCallbacks now all components have been registered
1593
1870
  isBootstrapping = false;
1594
1871
  if (deferredConnectedCallbacks.length) {
1595
- deferredConnectedCallbacks.map(host => host.connectedCallback());
1872
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1596
1873
  }
1597
1874
  else {
1598
1875
  {
@@ -1602,7 +1879,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1602
1879
  // Fallback appLoad event
1603
1880
  endBootstrap();
1604
1881
  };
1605
- const hostRefs = new WeakMap();
1882
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1606
1883
  const getHostRef = (ref) => hostRefs.get(ref);
1607
1884
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1608
1885
  const registerHost = (elm, cmpMeta) => {
@@ -1613,10 +1890,10 @@ const registerHost = (elm, cmpMeta) => {
1613
1890
  $instanceValues$: new Map(),
1614
1891
  };
1615
1892
  {
1616
- hostRef.$onInstancePromise$ = new Promise(r => (hostRef.$onInstanceResolve$ = r));
1893
+ hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1617
1894
  }
1618
1895
  {
1619
- hostRef.$onReadyPromise$ = new Promise(r => (hostRef.$onReadyResolve$ = r));
1896
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1620
1897
  elm['s-p'] = [];
1621
1898
  elm['s-rc'] = [];
1622
1899
  }
@@ -1634,25 +1911,364 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1634
1911
  if (module) {
1635
1912
  return module[exportName];
1636
1913
  }
1914
+
1915
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1916
+ const processMod = importedModule => {
1917
+ cmpModules.set(bundleId, importedModule);
1918
+ return importedModule[exportName];
1919
+ }
1920
+ switch(bundleId) {
1921
+
1922
+ case 'license-activation_10':
1923
+ return import(
1924
+ /* webpackMode: "lazy" */
1925
+ './license-activation_10.entry.js').then(processMod, consoleError);
1926
+ case 'z-accordion':
1927
+ return import(
1928
+ /* webpackMode: "lazy" */
1929
+ './z-accordion.entry.js').then(processMod, consoleError);
1930
+ case 'z-anchor-navigation':
1931
+ return import(
1932
+ /* webpackMode: "lazy" */
1933
+ './z-anchor-navigation.entry.js').then(processMod, consoleError);
1934
+ case 'z-app-header':
1935
+ return import(
1936
+ /* webpackMode: "lazy" */
1937
+ './z-app-header.entry.js').then(processMod, consoleError);
1938
+ case 'z-aria-alert':
1939
+ return import(
1940
+ /* webpackMode: "lazy" */
1941
+ './z-aria-alert.entry.js').then(processMod, consoleError);
1942
+ case 'z-avatar':
1943
+ return import(
1944
+ /* webpackMode: "lazy" */
1945
+ './z-avatar.entry.js').then(processMod, consoleError);
1946
+ case 'z-book-card':
1947
+ return import(
1948
+ /* webpackMode: "lazy" */
1949
+ './z-book-card.entry.js').then(processMod, consoleError);
1950
+ case 'z-breadcrumb':
1951
+ return import(
1952
+ /* webpackMode: "lazy" */
1953
+ './z-breadcrumb.entry.js').then(processMod, consoleError);
1954
+ case 'z-button-sort':
1955
+ return import(
1956
+ /* webpackMode: "lazy" */
1957
+ './z-button-sort.entry.js').then(processMod, consoleError);
1958
+ case 'z-card':
1959
+ return import(
1960
+ /* webpackMode: "lazy" */
1961
+ './z-card.entry.js').then(processMod, consoleError);
1962
+ case 'z-carousel':
1963
+ return import(
1964
+ /* webpackMode: "lazy" */
1965
+ './z-carousel.entry.js').then(processMod, consoleError);
1966
+ case 'z-combobox':
1967
+ return import(
1968
+ /* webpackMode: "lazy" */
1969
+ './z-combobox.entry.js').then(processMod, consoleError);
1970
+ case 'z-contextual-menu':
1971
+ return import(
1972
+ /* webpackMode: "lazy" */
1973
+ './z-contextual-menu.entry.js').then(processMod, consoleError);
1974
+ case 'z-cover-hero':
1975
+ return import(
1976
+ /* webpackMode: "lazy" */
1977
+ './z-cover-hero.entry.js').then(processMod, consoleError);
1978
+ case 'z-date-picker':
1979
+ return import(
1980
+ /* webpackMode: "lazy" */
1981
+ './z-date-picker.entry.js').then(processMod, consoleError);
1982
+ case 'z-file':
1983
+ return import(
1984
+ /* webpackMode: "lazy" */
1985
+ './z-file.entry.js').then(processMod, consoleError);
1986
+ case 'z-file-upload':
1987
+ return import(
1988
+ /* webpackMode: "lazy" */
1989
+ './z-file-upload.entry.js').then(processMod, consoleError);
1990
+ case 'z-info-reveal':
1991
+ return import(
1992
+ /* webpackMode: "lazy" */
1993
+ './z-info-reveal.entry.js').then(processMod, consoleError);
1994
+ case 'z-link':
1995
+ return import(
1996
+ /* webpackMode: "lazy" */
1997
+ './z-link.entry.js').then(processMod, consoleError);
1998
+ case 'z-logo':
1999
+ return import(
2000
+ /* webpackMode: "lazy" */
2001
+ './z-logo.entry.js').then(processMod, consoleError);
2002
+ case 'z-menu':
2003
+ return import(
2004
+ /* webpackMode: "lazy" */
2005
+ './z-menu.entry.js').then(processMod, consoleError);
2006
+ case 'z-menu-section':
2007
+ return import(
2008
+ /* webpackMode: "lazy" */
2009
+ './z-menu-section.entry.js').then(processMod, consoleError);
2010
+ case 'z-messages-pocket':
2011
+ return import(
2012
+ /* webpackMode: "lazy" */
2013
+ './z-messages-pocket.entry.js').then(processMod, consoleError);
2014
+ case 'z-myz-card-alert':
2015
+ return import(
2016
+ /* webpackMode: "lazy" */
2017
+ './z-myz-card-alert.entry.js').then(processMod, consoleError);
2018
+ case 'z-myz-card-dictionary':
2019
+ return import(
2020
+ /* webpackMode: "lazy" */
2021
+ './z-myz-card-dictionary.entry.js').then(processMod, consoleError);
2022
+ case 'z-myz-card-footer':
2023
+ return import(
2024
+ /* webpackMode: "lazy" */
2025
+ './z-myz-card-footer.entry.js').then(processMod, consoleError);
2026
+ case 'z-myz-card-footer-sections':
2027
+ return import(
2028
+ /* webpackMode: "lazy" */
2029
+ './z-myz-card-footer-sections.entry.js').then(processMod, consoleError);
2030
+ case 'z-myz-card-icon':
2031
+ return import(
2032
+ /* webpackMode: "lazy" */
2033
+ './z-myz-card-icon.entry.js').then(processMod, consoleError);
2034
+ case 'z-myz-card-info':
2035
+ return import(
2036
+ /* webpackMode: "lazy" */
2037
+ './z-myz-card-info.entry.js').then(processMod, consoleError);
2038
+ case 'z-myz-card-list':
2039
+ return import(
2040
+ /* webpackMode: "lazy" */
2041
+ './z-myz-card-list.entry.js').then(processMod, consoleError);
2042
+ case 'z-myz-list':
2043
+ return import(
2044
+ /* webpackMode: "lazy" */
2045
+ './z-myz-list.entry.js').then(processMod, consoleError);
2046
+ case 'z-navigation-tab':
2047
+ return import(
2048
+ /* webpackMode: "lazy" */
2049
+ './z-navigation-tab.entry.js').then(processMod, consoleError);
2050
+ case 'z-navigation-tab-link':
2051
+ return import(
2052
+ /* webpackMode: "lazy" */
2053
+ './z-navigation-tab-link.entry.js').then(processMod, consoleError);
2054
+ case 'z-navigation-tabs':
2055
+ return import(
2056
+ /* webpackMode: "lazy" */
2057
+ './z-navigation-tabs.entry.js').then(processMod, consoleError);
2058
+ case 'z-notification':
2059
+ return import(
2060
+ /* webpackMode: "lazy" */
2061
+ './z-notification.entry.js').then(processMod, consoleError);
2062
+ case 'z-otp':
2063
+ return import(
2064
+ /* webpackMode: "lazy" */
2065
+ './z-otp.entry.js').then(processMod, consoleError);
2066
+ case 'z-pagination':
2067
+ return import(
2068
+ /* webpackMode: "lazy" */
2069
+ './z-pagination.entry.js').then(processMod, consoleError);
2070
+ case 'z-panel-elem':
2071
+ return import(
2072
+ /* webpackMode: "lazy" */
2073
+ './z-panel-elem.entry.js').then(processMod, consoleError);
2074
+ case 'z-pocket-message':
2075
+ return import(
2076
+ /* webpackMode: "lazy" */
2077
+ './z-pocket-message.entry.js').then(processMod, consoleError);
2078
+ case 'z-range-picker':
2079
+ return import(
2080
+ /* webpackMode: "lazy" */
2081
+ './z-range-picker.entry.js').then(processMod, consoleError);
2082
+ case 'z-section-title':
2083
+ return import(
2084
+ /* webpackMode: "lazy" */
2085
+ './z-section-title.entry.js').then(processMod, consoleError);
2086
+ case 'z-select':
2087
+ return import(
2088
+ /* webpackMode: "lazy" */
2089
+ './z-select.entry.js').then(processMod, consoleError);
2090
+ case 'z-skip-to-content':
2091
+ return import(
2092
+ /* webpackMode: "lazy" */
2093
+ './z-skip-to-content.entry.js').then(processMod, consoleError);
2094
+ case 'z-slideshow':
2095
+ return import(
2096
+ /* webpackMode: "lazy" */
2097
+ './z-slideshow.entry.js').then(processMod, consoleError);
2098
+ case 'z-stepper':
2099
+ return import(
2100
+ /* webpackMode: "lazy" */
2101
+ './z-stepper.entry.js').then(processMod, consoleError);
2102
+ case 'z-stepper-item':
2103
+ return import(
2104
+ /* webpackMode: "lazy" */
2105
+ './z-stepper-item.entry.js').then(processMod, consoleError);
2106
+ case 'z-table':
2107
+ return import(
2108
+ /* webpackMode: "lazy" */
2109
+ './z-table.entry.js').then(processMod, consoleError);
2110
+ case 'z-table-body':
2111
+ return import(
2112
+ /* webpackMode: "lazy" */
2113
+ './z-table-body.entry.js').then(processMod, consoleError);
2114
+ case 'z-table-deprecated':
2115
+ return import(
2116
+ /* webpackMode: "lazy" */
2117
+ './z-table-deprecated.entry.js').then(processMod, consoleError);
2118
+ case 'z-table-expanded-row':
2119
+ return import(
2120
+ /* webpackMode: "lazy" */
2121
+ './z-table-expanded-row.entry.js').then(processMod, consoleError);
2122
+ case 'z-table-footer':
2123
+ return import(
2124
+ /* webpackMode: "lazy" */
2125
+ './z-table-footer.entry.js').then(processMod, consoleError);
2126
+ case 'z-table-head':
2127
+ return import(
2128
+ /* webpackMode: "lazy" */
2129
+ './z-table-head.entry.js').then(processMod, consoleError);
2130
+ case 'z-table-header-row':
2131
+ return import(
2132
+ /* webpackMode: "lazy" */
2133
+ './z-table-header-row.entry.js').then(processMod, consoleError);
2134
+ case 'z-table-row':
2135
+ return import(
2136
+ /* webpackMode: "lazy" */
2137
+ './z-table-row.entry.js').then(processMod, consoleError);
2138
+ case 'z-table-sticky-footer':
2139
+ return import(
2140
+ /* webpackMode: "lazy" */
2141
+ './z-table-sticky-footer.entry.js').then(processMod, consoleError);
2142
+ case 'z-tag':
2143
+ return import(
2144
+ /* webpackMode: "lazy" */
2145
+ './z-tag.entry.js').then(processMod, consoleError);
2146
+ case 'z-tbody':
2147
+ return import(
2148
+ /* webpackMode: "lazy" */
2149
+ './z-tbody.entry.js').then(processMod, consoleError);
2150
+ case 'z-td':
2151
+ return import(
2152
+ /* webpackMode: "lazy" */
2153
+ './z-td.entry.js').then(processMod, consoleError);
2154
+ case 'z-tfoot':
2155
+ return import(
2156
+ /* webpackMode: "lazy" */
2157
+ './z-tfoot.entry.js').then(processMod, consoleError);
2158
+ case 'z-th':
2159
+ return import(
2160
+ /* webpackMode: "lazy" */
2161
+ './z-th.entry.js').then(processMod, consoleError);
2162
+ case 'z-thead':
2163
+ return import(
2164
+ /* webpackMode: "lazy" */
2165
+ './z-thead.entry.js').then(processMod, consoleError);
2166
+ case 'z-toast-notification':
2167
+ return import(
2168
+ /* webpackMode: "lazy" */
2169
+ './z-toast-notification.entry.js').then(processMod, consoleError);
2170
+ case 'z-toast-notification-list':
2171
+ return import(
2172
+ /* webpackMode: "lazy" */
2173
+ './z-toast-notification-list.entry.js').then(processMod, consoleError);
2174
+ case 'z-toggle-button':
2175
+ return import(
2176
+ /* webpackMode: "lazy" */
2177
+ './z-toggle-button.entry.js').then(processMod, consoleError);
2178
+ case 'z-toggle-switch':
2179
+ return import(
2180
+ /* webpackMode: "lazy" */
2181
+ './z-toggle-switch.entry.js').then(processMod, consoleError);
2182
+ case 'z-tooltip':
2183
+ return import(
2184
+ /* webpackMode: "lazy" */
2185
+ './z-tooltip.entry.js').then(processMod, consoleError);
2186
+ case 'z-tr':
2187
+ return import(
2188
+ /* webpackMode: "lazy" */
2189
+ './z-tr.entry.js').then(processMod, consoleError);
2190
+ case 'z-visually-hidden':
2191
+ return import(
2192
+ /* webpackMode: "lazy" */
2193
+ './z-visually-hidden.entry.js').then(processMod, consoleError);
2194
+ case 'z-alert':
2195
+ return import(
2196
+ /* webpackMode: "lazy" */
2197
+ './z-alert.entry.js').then(processMod, consoleError);
2198
+ case 'z-chip':
2199
+ return import(
2200
+ /* webpackMode: "lazy" */
2201
+ './z-chip.entry.js').then(processMod, consoleError);
2202
+ case 'z-dragdrop-area':
2203
+ return import(
2204
+ /* webpackMode: "lazy" */
2205
+ './z-dragdrop-area.entry.js').then(processMod, consoleError);
2206
+ case 'z-ghost-loading':
2207
+ return import(
2208
+ /* webpackMode: "lazy" */
2209
+ './z-ghost-loading.entry.js').then(processMod, consoleError);
2210
+ case 'z-myz-card_4':
2211
+ return import(
2212
+ /* webpackMode: "lazy" */
2213
+ './z-myz-card_4.entry.js').then(processMod, consoleError);
2214
+ case 'z-offcanvas_2':
2215
+ return import(
2216
+ /* webpackMode: "lazy" */
2217
+ './z-offcanvas_2.entry.js').then(processMod, consoleError);
2218
+ case 'z-pocket_3':
2219
+ return import(
2220
+ /* webpackMode: "lazy" */
2221
+ './z-pocket_3.entry.js').then(processMod, consoleError);
2222
+ case 'z-table-cell':
2223
+ return import(
2224
+ /* webpackMode: "lazy" */
2225
+ './z-table-cell.entry.js').then(processMod, consoleError);
2226
+ case 'z-table-empty-box':
2227
+ return import(
2228
+ /* webpackMode: "lazy" */
2229
+ './z-table-empty-box.entry.js').then(processMod, consoleError);
2230
+ case 'z-table-header':
2231
+ return import(
2232
+ /* webpackMode: "lazy" */
2233
+ './z-table-header.entry.js').then(processMod, consoleError);
2234
+ case 'z-myz-list-item':
2235
+ return import(
2236
+ /* webpackMode: "lazy" */
2237
+ './z-myz-list-item.entry.js').then(processMod, consoleError);
2238
+ case 'z-list_3':
2239
+ return import(
2240
+ /* webpackMode: "lazy" */
2241
+ './z-list_3.entry.js').then(processMod, consoleError);
2242
+ case 'z-popover':
2243
+ return import(
2244
+ /* webpackMode: "lazy" */
2245
+ './z-popover.entry.js').then(processMod, consoleError);
2246
+ case 'z-divider':
2247
+ return import(
2248
+ /* webpackMode: "lazy" */
2249
+ './z-divider.entry.js').then(processMod, consoleError);
2250
+ }
2251
+ }
1637
2252
  return import(
2253
+ /* @vite-ignore */
1638
2254
  /* webpackInclude: /\.entry\.js$/ */
1639
2255
  /* webpackExclude: /\.system\.entry\.js$/ */
1640
2256
  /* webpackMode: "lazy" */
1641
- `./${bundleId}.entry.js${''}`).then(importedModule => {
2257
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1642
2258
  {
1643
2259
  cmpModules.set(bundleId, importedModule);
1644
2260
  }
1645
2261
  return importedModule[exportName];
1646
2262
  }, consoleError);
1647
2263
  };
1648
- const styles = new Map();
2264
+ const styles = /*@__PURE__*/ new Map();
1649
2265
  const queueDomReads = [];
1650
2266
  const queueDomWrites = [];
1651
2267
  const queueTask = (queue, write) => (cb) => {
1652
2268
  queue.push(cb);
1653
2269
  if (!queuePending) {
1654
2270
  queuePending = true;
1655
- if (write && plt.$flags$ & 4 /* queueSync */) {
2271
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1656
2272
  nextTick(flush);
1657
2273
  }
1658
2274
  else {