@watermarkinsights/ripple 5.16.0-alpha.10 → 5.16.0-alpha.12

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 (307) hide show
  1. package/dist/cjs/app-globals-1079ca72.js +92 -0
  2. package/dist/cjs/{chartFunctions-C8PCmGmn.js → chartFunctions-ce91b2c9.js} +3 -2
  3. package/dist/cjs/{functions-DfuY5Jtp.js → functions-ea3eae05.js} +95 -78
  4. package/dist/cjs/{index-DwhNqnaT.js → index-788526f5.js} +410 -777
  5. package/dist/cjs/{intl-Bl-0Yn5n.js → intl-ea56dd40.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +5 -3
  7. package/dist/cjs/priv-calendar.cjs.entry.js +12 -6
  8. package/dist/cjs/priv-chart-popover.cjs.entry.js +8 -4
  9. package/dist/cjs/priv-navigator-button.cjs.entry.js +5 -2
  10. package/dist/cjs/priv-navigator-item.cjs.entry.js +5 -2
  11. package/dist/cjs/priv-option-list.cjs.entry.js +16 -10
  12. package/dist/cjs/ripple.cjs.js +7 -7
  13. package/dist/cjs/wm-action-menu_2.cjs.entry.js +18 -9
  14. package/dist/cjs/wm-button.cjs.entry.js +16 -8
  15. package/dist/cjs/wm-chart-slice.cjs.entry.js +8 -1
  16. package/dist/cjs/wm-chart.cjs.entry.js +18 -14
  17. package/dist/cjs/wm-date-range.cjs.entry.js +14 -9
  18. package/dist/cjs/wm-datepicker.cjs.entry.js +11 -6
  19. package/dist/cjs/wm-file-list.cjs.entry.js +5 -2
  20. package/dist/cjs/wm-file.cjs.entry.js +15 -5
  21. package/dist/cjs/wm-flyout.cjs.entry.js +16 -5
  22. package/dist/cjs/wm-input.cjs.entry.js +17 -5
  23. package/dist/cjs/wm-line-chart.cjs.entry.js +28 -18
  24. package/dist/cjs/wm-modal-pss_3.cjs.entry.js +14 -8
  25. package/dist/cjs/wm-modal_3.cjs.entry.js +14 -7
  26. package/dist/cjs/wm-navigation_3.cjs.entry.js +18 -9
  27. package/dist/cjs/wm-navigator.cjs.entry.js +15 -17
  28. package/dist/cjs/wm-nested-select.cjs.entry.js +16 -11
  29. package/dist/cjs/wm-optgroup.cjs.entry.js +7 -3
  30. package/dist/cjs/wm-option_2.cjs.entry.js +17 -10
  31. package/dist/cjs/wm-pagination.cjs.entry.js +13 -10
  32. package/dist/cjs/wm-progress-indicator_3.cjs.entry.js +27 -10
  33. package/dist/cjs/wm-search.cjs.entry.js +9 -25
  34. package/dist/cjs/wm-snackbar.cjs.entry.js +10 -8
  35. package/dist/cjs/wm-tab-item_3.cjs.entry.js +16 -20
  36. package/dist/cjs/wm-tag-input.cjs.entry.js +25 -12
  37. package/dist/cjs/wm-tag-option.cjs.entry.js +8 -2
  38. package/dist/cjs/wm-textarea.cjs.entry.js +12 -5
  39. package/dist/cjs/wm-timepicker.cjs.entry.js +14 -9
  40. package/dist/cjs/wm-toggletip.cjs.entry.js +12 -7
  41. package/dist/cjs/wm-uploader.cjs.entry.js +24 -11
  42. package/dist/cjs/wm-wrapper.cjs.entry.js +3 -1
  43. package/dist/collection/collection-manifest.json +2 -2
  44. package/dist/collection/components/charts/priv-chart-popover/priv-chart-popover.js +4 -8
  45. package/dist/collection/components/charts/wm-chart/wm-chart-slice.js +12 -15
  46. package/dist/collection/components/charts/wm-chart/wm-chart.js +22 -45
  47. package/dist/collection/components/charts/wm-line-chart/wm-line-chart.js +33 -52
  48. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-indicator.js +16 -23
  49. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-monitor.js +6 -9
  50. package/dist/collection/components/charts/wm-progress-monitor/wm-progress-slice.js +12 -15
  51. package/dist/collection/components/datepickers/priv-calendar/priv-calendar.js +12 -21
  52. package/dist/collection/components/datepickers/wm-date-range.js +19 -39
  53. package/dist/collection/components/datepickers/wm-datepicker.js +13 -27
  54. package/dist/collection/components/selects/priv-option-list/priv-option-list.js +16 -27
  55. package/dist/collection/components/selects/wm-nested-select/wm-nested-select.js +22 -46
  56. package/dist/collection/components/selects/wm-optgroup/wm-optgroup.js +5 -12
  57. package/dist/collection/components/selects/wm-option/wm-option.js +6 -15
  58. package/dist/collection/components/selects/wm-select/wm-select.js +19 -41
  59. package/dist/collection/components/wm-action-menu/wm-action-menu.js +15 -24
  60. package/dist/collection/components/wm-button/wm-button.js +22 -43
  61. package/dist/collection/components/wm-file/wm-file.js +18 -29
  62. package/dist/collection/components/wm-file-list/wm-file-list.js +1 -3
  63. package/dist/collection/components/wm-flyout/wm-flyout.js +19 -31
  64. package/dist/collection/components/wm-input/wm-input.js +28 -55
  65. package/dist/collection/components/wm-menuitem/wm-menuitem.js +4 -10
  66. package/dist/collection/components/wm-modal/wm-modal-footer.js +5 -15
  67. package/dist/collection/components/wm-modal/wm-modal-header.js +2 -6
  68. package/dist/collection/components/wm-modal/wm-modal.js +7 -13
  69. package/dist/collection/components/wm-modal-pss/wm-modal-pss-footer.js +5 -15
  70. package/dist/collection/components/wm-modal-pss/wm-modal-pss-header.js +2 -6
  71. package/dist/collection/components/wm-modal-pss/wm-modal-pss.js +7 -14
  72. package/dist/collection/components/wm-navigation/wm-navigation-hamburger.js +4 -5
  73. package/dist/collection/components/wm-navigation/wm-navigation-item.js +8 -9
  74. package/dist/collection/components/wm-navigation/wm-navigation.js +2 -4
  75. package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +2 -6
  76. package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +3 -9
  77. package/dist/collection/components/wm-navigator/wm-navigator.js +15 -34
  78. package/dist/collection/components/wm-pagination/wm-pagination.js +11 -21
  79. package/dist/collection/components/wm-search/wm-search.js +10 -45
  80. package/dist/collection/components/wm-snackbar/wm-snackbar.js +4 -7
  81. package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +6 -18
  82. package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.js +6 -9
  83. package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +2 -12
  84. package/dist/collection/components/wm-tag-input/wm-tag-input.js +32 -50
  85. package/dist/collection/components/wm-tag-input/wm-tag-option/wm-tag-option.js +10 -18
  86. package/dist/collection/components/wm-textarea/wm-textarea.js +16 -34
  87. package/dist/collection/components/wm-timepicker/wm-timepicker.js +15 -27
  88. package/dist/collection/components/wm-toggletip/wm-toggletip.js +11 -19
  89. package/dist/collection/components/wm-uploader/wm-uploader.js +28 -40
  90. package/dist/esm/app-globals-1087214a.js +90 -0
  91. package/dist/esm/{chartFunctions-BocRhQ0T.js → chartFunctions-ebe4f673.js} +4 -3
  92. package/dist/esm/{functions-B9BrPorY.js → functions-fbf8519f.js} +96 -79
  93. package/dist/esm/{index-C20glyTb.js → index-130e07bb.js} +406 -774
  94. package/dist/esm/{intl-D-bH9lQF.js → intl-30a9319d.js} +1 -1
  95. package/dist/esm/loader.js +4 -4
  96. package/dist/esm/priv-calendar.entry.js +10 -6
  97. package/dist/esm/priv-chart-popover.entry.js +6 -4
  98. package/dist/esm/priv-navigator-button.entry.js +3 -2
  99. package/dist/esm/priv-navigator-item.entry.js +3 -2
  100. package/dist/esm/priv-option-list.entry.js +14 -10
  101. package/dist/esm/ripple.js +5 -6
  102. package/dist/esm/wm-action-menu_2.entry.js +16 -9
  103. package/dist/esm/wm-button.entry.js +14 -8
  104. package/dist/esm/wm-chart-slice.entry.js +6 -1
  105. package/dist/esm/wm-chart.entry.js +16 -14
  106. package/dist/esm/wm-date-range.entry.js +12 -9
  107. package/dist/esm/wm-datepicker.entry.js +9 -6
  108. package/dist/esm/wm-file-list.entry.js +3 -2
  109. package/dist/esm/wm-file.entry.js +13 -5
  110. package/dist/esm/wm-flyout.entry.js +14 -5
  111. package/dist/esm/wm-input.entry.js +15 -5
  112. package/dist/esm/wm-line-chart.entry.js +26 -18
  113. package/dist/esm/wm-modal-pss_3.entry.js +12 -8
  114. package/dist/esm/wm-modal_3.entry.js +12 -7
  115. package/dist/esm/wm-navigation_3.entry.js +16 -9
  116. package/dist/esm/wm-navigator.entry.js +13 -17
  117. package/dist/esm/wm-nested-select.entry.js +14 -11
  118. package/dist/esm/wm-optgroup.entry.js +5 -3
  119. package/dist/esm/wm-option_2.entry.js +15 -10
  120. package/dist/esm/wm-pagination.entry.js +11 -10
  121. package/dist/esm/wm-progress-indicator_3.entry.js +25 -10
  122. package/dist/esm/wm-search.entry.js +7 -25
  123. package/dist/esm/wm-snackbar.entry.js +8 -8
  124. package/dist/esm/wm-tab-item_3.entry.js +14 -20
  125. package/dist/esm/wm-tag-input.entry.js +23 -12
  126. package/dist/esm/wm-tag-option.entry.js +6 -2
  127. package/dist/esm/wm-textarea.entry.js +10 -5
  128. package/dist/esm/wm-timepicker.entry.js +12 -9
  129. package/dist/esm/wm-toggletip.entry.js +10 -7
  130. package/dist/esm/wm-uploader.entry.js +22 -11
  131. package/dist/esm/wm-wrapper.entry.js +1 -1
  132. package/dist/esm-es5/app-globals-1087214a.js +1 -0
  133. package/dist/esm-es5/chartFunctions-ebe4f673.js +1 -0
  134. package/dist/esm-es5/functions-fbf8519f.js +1 -0
  135. package/dist/esm-es5/index-130e07bb.js +1 -0
  136. package/dist/esm-es5/{intl-D-bH9lQF.js → intl-30a9319d.js} +1 -1
  137. package/dist/esm-es5/loader.js +1 -1
  138. package/dist/esm-es5/priv-calendar.entry.js +1 -1
  139. package/dist/esm-es5/priv-chart-popover.entry.js +1 -1
  140. package/dist/esm-es5/priv-navigator-button.entry.js +1 -1
  141. package/dist/esm-es5/priv-navigator-item.entry.js +1 -1
  142. package/dist/esm-es5/priv-option-list.entry.js +1 -1
  143. package/dist/esm-es5/ripple.js +1 -1
  144. package/dist/esm-es5/wm-action-menu_2.entry.js +1 -1
  145. package/dist/esm-es5/wm-button.entry.js +1 -1
  146. package/dist/esm-es5/wm-chart-slice.entry.js +1 -1
  147. package/dist/esm-es5/wm-chart.entry.js +1 -1
  148. package/dist/esm-es5/wm-date-range.entry.js +1 -1
  149. package/dist/esm-es5/wm-datepicker.entry.js +1 -1
  150. package/dist/esm-es5/wm-file-list.entry.js +1 -1
  151. package/dist/esm-es5/wm-file.entry.js +1 -1
  152. package/dist/esm-es5/wm-flyout.entry.js +1 -1
  153. package/dist/esm-es5/wm-input.entry.js +1 -1
  154. package/dist/esm-es5/wm-line-chart.entry.js +1 -1
  155. package/dist/esm-es5/wm-modal-pss_3.entry.js +1 -1
  156. package/dist/esm-es5/wm-modal_3.entry.js +1 -1
  157. package/dist/esm-es5/wm-navigation_3.entry.js +1 -1
  158. package/dist/esm-es5/wm-navigator.entry.js +1 -1
  159. package/dist/esm-es5/wm-nested-select.entry.js +1 -1
  160. package/dist/esm-es5/wm-optgroup.entry.js +1 -1
  161. package/dist/esm-es5/wm-option_2.entry.js +1 -1
  162. package/dist/esm-es5/wm-pagination.entry.js +1 -1
  163. package/dist/esm-es5/wm-progress-indicator_3.entry.js +1 -1
  164. package/dist/esm-es5/wm-search.entry.js +1 -1
  165. package/dist/esm-es5/wm-snackbar.entry.js +1 -1
  166. package/dist/esm-es5/wm-tab-item_3.entry.js +1 -1
  167. package/dist/esm-es5/wm-tag-input.entry.js +1 -1
  168. package/dist/esm-es5/wm-tag-option.entry.js +1 -1
  169. package/dist/esm-es5/wm-textarea.entry.js +1 -1
  170. package/dist/esm-es5/wm-timepicker.entry.js +1 -1
  171. package/dist/esm-es5/wm-toggletip.entry.js +1 -1
  172. package/dist/esm-es5/wm-uploader.entry.js +1 -1
  173. package/dist/esm-es5/wm-wrapper.entry.js +1 -1
  174. package/dist/loader/package.json +11 -0
  175. package/dist/ripple/p-02951ad1.system.js +1 -0
  176. package/dist/ripple/{p-59f7cfd7.system.entry.js → p-03381d63.system.entry.js} +1 -1
  177. package/dist/ripple/{p-70cdc5ce.system.entry.js → p-043901ab.system.entry.js} +1 -1
  178. package/dist/ripple/{p-d11e4c6e.system.entry.js → p-086c2905.system.entry.js} +1 -1
  179. package/dist/ripple/{p-85afd9bf.system.entry.js → p-09f61d38.system.entry.js} +1 -1
  180. package/dist/ripple/p-0d3a26ff.entry.js +1 -0
  181. package/dist/ripple/{p-a1cd3c29.entry.js → p-12174831.entry.js} +1 -1
  182. package/dist/ripple/p-13b1d775.entry.js +1 -0
  183. package/dist/ripple/p-13ddc53d.entry.js +1 -0
  184. package/dist/ripple/p-17e93d1b.entry.js +1 -0
  185. package/dist/ripple/{p-4a50f797.system.entry.js → p-22d9b079.system.entry.js} +1 -1
  186. package/dist/ripple/{p-caef27f1.system.entry.js → p-2a85d4ce.system.entry.js} +1 -1
  187. package/dist/ripple/p-2be53f45.entry.js +1 -0
  188. package/dist/ripple/{p-81783193.system.entry.js → p-2e10a2dc.system.entry.js} +1 -1
  189. package/dist/ripple/{p-03e28e65.system.entry.js → p-31d35d2d.system.entry.js} +1 -1
  190. package/dist/ripple/{p-de4c51e2.system.entry.js → p-324aed64.system.entry.js} +1 -1
  191. package/dist/ripple/{p-1b8f9ff1.system.entry.js → p-34808b52.system.entry.js} +1 -1
  192. package/dist/ripple/{p-5a728ced.system.entry.js → p-42174be5.system.entry.js} +1 -1
  193. package/dist/ripple/p-4436c014.entry.js +1 -0
  194. package/dist/ripple/{p-d17bf683.system.entry.js → p-4af5ad94.system.entry.js} +1 -1
  195. package/dist/ripple/{p-3fa20b7a.entry.js → p-4df89f8f.entry.js} +1 -1
  196. package/dist/ripple/{p-b2604e2b.system.entry.js → p-4e97bf26.system.entry.js} +1 -1
  197. package/dist/ripple/p-4f13d03e.entry.js +1 -0
  198. package/dist/ripple/p-535165fc.system.js +1 -0
  199. package/dist/ripple/{p-d1ea5d4c.system.entry.js → p-5405f9d3.system.entry.js} +1 -1
  200. package/dist/ripple/p-55f979d4.system.js +1 -0
  201. package/dist/ripple/p-57bce206.system.js +1 -0
  202. package/dist/ripple/{p-734d06dc.system.entry.js → p-5a5d5833.system.entry.js} +1 -1
  203. package/dist/ripple/p-5b7d56aa.entry.js +1 -0
  204. package/dist/ripple/p-5c0db525.entry.js +1 -0
  205. package/dist/ripple/{p-27c1933e.system.entry.js → p-5f9d81df.system.entry.js} +1 -1
  206. package/dist/ripple/p-67109fb1.entry.js +1 -0
  207. package/dist/ripple/{p-cf3defe6.system.entry.js → p-6723e469.system.entry.js} +1 -1
  208. package/dist/ripple/{p-1a96dc5e.entry.js → p-6b4e1fe9.entry.js} +1 -1
  209. package/dist/ripple/{p-d3d5306c.system.entry.js → p-75ad7567.system.entry.js} +1 -1
  210. package/dist/ripple/{p-c164a1cb.entry.js → p-76aef56f.entry.js} +1 -1
  211. package/dist/ripple/{p-e63b30bd.system.entry.js → p-7b06e308.system.entry.js} +1 -1
  212. package/dist/ripple/{p-0a9f8d0d.entry.js → p-7c6e0168.entry.js} +1 -1
  213. package/dist/ripple/{p-e2e2929f.system.entry.js → p-80664bf3.system.entry.js} +1 -1
  214. package/dist/ripple/p-823d7b4e.system.entry.js +1 -0
  215. package/dist/ripple/{p-7ea000d6.system.entry.js → p-840ad3a3.system.entry.js} +1 -1
  216. package/dist/ripple/{p-fb4367a8.system.entry.js → p-86c752be.system.entry.js} +1 -1
  217. package/dist/ripple/p-8905ad76.entry.js +1 -0
  218. package/dist/ripple/{p-5827cae3.system.entry.js → p-8a64e2bd.system.entry.js} +1 -1
  219. package/dist/ripple/p-8c2f8f78.entry.js +1 -0
  220. package/dist/ripple/{p-757b04eb.entry.js → p-8c33cb29.entry.js} +1 -1
  221. package/dist/ripple/{p-82a66121.system.entry.js → p-8ee90e17.system.entry.js} +1 -1
  222. package/dist/ripple/p-904f4c90.entry.js +1 -0
  223. package/dist/ripple/{p-0616bd1c.entry.js → p-924ab54c.entry.js} +1 -1
  224. package/dist/ripple/p-94c6bde9.js +1 -0
  225. package/dist/ripple/p-9627b8a6.entry.js +1 -0
  226. package/dist/ripple/{p-DAuKYO5n.js → p-9c6bacb9.js} +1 -1
  227. package/dist/ripple/p-9f2b6c58.entry.js +1 -0
  228. package/dist/ripple/{p-ef56fc5a.system.entry.js → p-a424e0a7.system.entry.js} +1 -1
  229. package/dist/ripple/p-b8dd9e8c.entry.js +1 -0
  230. package/dist/ripple/{p-b593e93c.system.entry.js → p-b9d609fb.system.entry.js} +1 -1
  231. package/dist/ripple/{p-ebd318c6.entry.js → p-be3213fc.entry.js} +1 -1
  232. package/dist/ripple/{p-476e2913.entry.js → p-c242e70f.entry.js} +1 -1
  233. package/dist/ripple/{p-d293be99.system.entry.js → p-c4b48cd4.system.entry.js} +1 -1
  234. package/dist/ripple/p-c6ba7e07.entry.js +1 -0
  235. package/dist/ripple/{p-d61938ca.entry.js → p-c7a57fc7.entry.js} +1 -1
  236. package/dist/ripple/{p-b140b04d.system.entry.js → p-c8d2c849.system.entry.js} +1 -1
  237. package/dist/ripple/{p-5166de03.system.entry.js → p-c9e9ce61.system.entry.js} +1 -1
  238. package/dist/ripple/{p-5cc5b46b.entry.js → p-cd0cc88d.entry.js} +1 -1
  239. package/dist/ripple/p-cef8a45b.system.js +2 -0
  240. package/dist/ripple/p-d210db32.entry.js +1 -0
  241. package/dist/ripple/{p-f878d184.system.entry.js → p-d2b60968.system.entry.js} +1 -1
  242. package/dist/ripple/p-d45bcccf.js +1 -0
  243. package/dist/ripple/p-d9da0502.js +2 -0
  244. package/dist/ripple/p-dc7acef5.entry.js +1 -0
  245. package/dist/ripple/p-dd62178f.system.entry.js +1 -0
  246. package/dist/ripple/p-e0d21c51.entry.js +1 -0
  247. package/dist/ripple/{p-BVUnLeDz.system.js → p-e71b1146.system.js} +1 -1
  248. package/dist/ripple/p-e7d03cf5.js +1 -0
  249. package/dist/ripple/p-efe8c61e.entry.js +1 -0
  250. package/dist/ripple/p-f0eae6dc.entry.js +1 -0
  251. package/dist/ripple/p-f0f57f41.system.entry.js +1 -0
  252. package/dist/ripple/{p-dca6cfbd.entry.js → p-f3b31fae.entry.js} +1 -1
  253. package/dist/ripple/p-f46983da.entry.js +1 -0
  254. package/dist/ripple/{p-719b7087.system.entry.js → p-f9f9fbae.system.entry.js} +1 -1
  255. package/dist/ripple/{p-e6e4e23a.system.entry.js → p-fde1212a.system.entry.js} +1 -1
  256. package/dist/ripple/ripple.esm.js +1 -1
  257. package/dist/ripple/ripple.js +1 -1
  258. package/dist/types/components.d.ts +0 -986
  259. package/dist/types/stencil-public-runtime.d.ts +2 -37
  260. package/package.json +2 -2
  261. package/dist/cjs/app-globals-C-IAhycr.js +0 -7
  262. package/dist/esm/app-globals-CrcR41XQ.js +0 -5
  263. package/dist/esm-es5/app-globals-CrcR41XQ.js +0 -1
  264. package/dist/esm-es5/chartFunctions-BocRhQ0T.js +0 -1
  265. package/dist/esm-es5/functions-B9BrPorY.js +0 -1
  266. package/dist/esm-es5/index-C20glyTb.js +0 -1
  267. package/dist/ripple/p-088a84b6.entry.js +0 -1
  268. package/dist/ripple/p-09116c34.entry.js +0 -1
  269. package/dist/ripple/p-21728198.entry.js +0 -1
  270. package/dist/ripple/p-25227bec.entry.js +0 -1
  271. package/dist/ripple/p-264fb4fc.entry.js +0 -1
  272. package/dist/ripple/p-27de107e.entry.js +0 -1
  273. package/dist/ripple/p-338835e6.entry.js +0 -1
  274. package/dist/ripple/p-3678e285.entry.js +0 -1
  275. package/dist/ripple/p-384f6dc8.entry.js +0 -1
  276. package/dist/ripple/p-5026b7e8.entry.js +0 -1
  277. package/dist/ripple/p-5c8e802a.system.entry.js +0 -1
  278. package/dist/ripple/p-6c66e270.entry.js +0 -1
  279. package/dist/ripple/p-6ffa9bfc.entry.js +0 -1
  280. package/dist/ripple/p-8eWf5O5Z.system.js +0 -1
  281. package/dist/ripple/p-90d11417.system.entry.js +0 -1
  282. package/dist/ripple/p-979cd9f4.entry.js +0 -1
  283. package/dist/ripple/p-B0uE_ID-.system.js +0 -2
  284. package/dist/ripple/p-B9BrPorY.js +0 -1
  285. package/dist/ripple/p-BOTV28v8.system.js +0 -1
  286. package/dist/ripple/p-Bboe1S7O.js +0 -1
  287. package/dist/ripple/p-C20glyTb.js +0 -2
  288. package/dist/ripple/p-CKTNcFzW.system.js +0 -1
  289. package/dist/ripple/p-D_issjBT.system.js +0 -1
  290. package/dist/ripple/p-a634e9f5.entry.js +0 -1
  291. package/dist/ripple/p-b0653ac3.entry.js +0 -1
  292. package/dist/ripple/p-b2433a3c.system.entry.js +0 -1
  293. package/dist/ripple/p-c344e3c0.entry.js +0 -1
  294. package/dist/ripple/p-d3bc9393.entry.js +0 -1
  295. package/dist/ripple/p-d5232e7d.entry.js +0 -1
  296. package/dist/ripple/p-dECFx5ly.js +0 -1
  297. package/dist/ripple/p-dc3e43aa.entry.js +0 -1
  298. package/dist/ripple/p-e9b67596.entry.js +0 -1
  299. package/dist/ripple/p-ee0e88ed.entry.js +0 -1
  300. package/dist/ripple/p-fc35bcf9.entry.js +0 -1
  301. package/dist/ripple/p-ffd7de48.entry.js +0 -1
  302. /package/dist/cjs/{interfaces-C7YbtGnk.js → interfaces-85d78ae9.js} +0 -0
  303. /package/dist/esm/{interfaces-COwzv5zO.js → interfaces-cc5b177f.js} +0 -0
  304. /package/dist/esm-es5/{interfaces-COwzv5zO.js → interfaces-cc5b177f.js} +0 -0
  305. /package/dist/ripple/{p-COwzv5zO.js → p-2732bddd.js} +0 -0
  306. /package/dist/ripple/{p-ClUp3GkF.system.js → p-42fa7a77.system.js} +0 -0
  307. /package/dist/ripple/{p-YWpyar7R.system.js → p-50ea2036.system.js} +0 -0
@@ -1,115 +1,17 @@
1
1
  const NAMESPACE = 'ripple';
2
- const BUILD = /* ripple */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
3
-
4
- const version = "5.16.0-alpha.10";
5
-
6
- // PRINT RIPPLE VERSION IN CONSOLE
7
- // test envs return 0 for plugin.length
8
- // do not print version number there as it causes issues
9
- if (window.navigator.plugins.length > 0) {
10
- console.log("%cRipple component library %c%s", "color: #575195; font-weight: bold", "font-weight: bold", version);
11
- }
12
- // Dispatching events to track whether user is navigating with keyboard or mouse
13
- // no longer necessary for keyboard focus indicators (thanks to :focus-visible)
14
- // but still used in several components for other things (search for isTabbing)
15
- function wmComponentKeys(ev) {
16
- if (ev.key == "Tab") {
17
- var event = new Event("wmUserIsTabbing");
18
- window.dispatchEvent(event);
19
- document.querySelector("body").classList.add("wmcl-user-is-tabbing");
20
- }
21
- if (ev.key == "ArrowLeft" || ev.key == "ArrowUp" || ev.key == "ArrowRight" || ev.key == "ArrowDown") {
22
- var event = new Event("wmUserIsKeying");
23
- window.dispatchEvent(event);
24
- document.querySelector("body").classList.add("wmcl-user-is-keying");
25
- }
26
- }
27
- function wmComponentMouseDownOnce() {
28
- var event = new Event("wmUserIsNotTabbing");
29
- window.dispatchEvent(event);
30
- document.querySelector("body").classList.remove("wmcl-user-is-tabbing");
31
- document.querySelector("body").classList.remove("wmcl-user-is-keying");
32
- }
33
- window.addEventListener("keydown", wmComponentKeys);
34
- window.addEventListener("mousedown", wmComponentMouseDownOnce);
35
- // TOOLTIP
36
- // Add a tooltip element
37
- // This allows tooltips to be always at the highest stacking context (always on top)
38
- // Element is added withing a container to avoid performance impact
39
- const tooltipContainer = document.createElement("div");
40
- tooltipContainer.id = "wm-tooltip-container";
41
- const tooltipEl = document.createElement("div");
42
- tooltipEl.id = "wm-tooltip";
43
- tooltipEl.classList.add("wm-tooltip");
44
- tooltipEl.setAttribute("popover", "manual");
45
- tooltipEl.setAttribute("aria-hidden", "true");
46
- const tooltipStyles = document.createElement("style");
47
- tooltipStyles.textContent = `
48
- .wm-tooltip {
49
- position: fixed;
50
- overflow: hidden;
51
- pointer-events: none;
52
- line-height: normal;
53
- font-family: inherit;
54
- font-size: 0.875rem;
55
- text-transform: none;
56
- font-weight: normal;
57
- background: var(--wmcolor-tooltip-background);
58
- color: var(--wmcolor-tooltip-text);
59
- z-index: 999999;
60
- max-width: var(--wmTooltipMaxWidth, 13.75rem);
61
- margin-right: 1.5rem;
62
- padding: 0.375rem;
63
- transition-property: opacity;
64
- transition-delay: 0s;
65
- opacity: 0;
66
- inset: unset;
67
- top: 0;
68
- left: 0;
69
- transform: translateZ(0);
70
- will-change: transform;
71
- transform: translate(var(--wmTooltipLeft), var(--wmTooltipTop));
72
- border: none;
73
- }
74
-
75
- .wm-tooltip:popover-open {
76
- opacity: 0;
77
- }
78
-
79
- .wm-tooltip.show {
80
- transition-delay: 500ms;
81
- opacity: 1;
82
- }
83
- `;
84
- document.head.appendChild(tooltipStyles);
85
- tooltipContainer.appendChild(tooltipEl);
86
- document.querySelector("body").appendChild(tooltipContainer);
87
- const globalFn = () => { };
2
+ const BUILD = /* ripple */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
88
3
 
89
4
  /*
90
- Stencil Client Platform v4.36.2 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.21.0 | MIT Licensed | https://stenciljs.com
91
6
  */
92
7
  var __defProp = Object.defineProperty;
93
8
  var __export = (target, all) => {
94
9
  for (var name in all)
95
10
  __defProp(target, name, { get: all[name], enumerable: true });
96
11
  };
97
-
98
- // src/utils/constants.ts
99
- var SVG_NS = "http://www.w3.org/2000/svg";
100
- var HTML_NS = "http://www.w3.org/1999/xhtml";
101
-
102
- // src/client/client-host-ref.ts
103
- var getHostRef = (ref) => {
104
- if (ref.__stencil__getHostRef) {
105
- return ref.__stencil__getHostRef();
106
- }
107
- return void 0;
108
- };
109
- var registerInstance = (lazyInstance, hostRef) => {
110
- lazyInstance.__stencil__getHostRef = () => hostRef;
111
- hostRef.$lazyInstance$ = lazyInstance;
112
- };
12
+ var hostRefs = /* @__PURE__ */ new WeakMap();
13
+ var getHostRef = (ref) => hostRefs.get(ref);
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
113
15
  var registerHost = (hostElement, cmpMeta) => {
114
16
  const hostRef = {
115
17
  $flags$: 0,
@@ -125,9 +27,7 @@ var registerHost = (hostElement, cmpMeta) => {
125
27
  hostElement["s-p"] = [];
126
28
  hostElement["s-rc"] = [];
127
29
  }
128
- const ref = hostRef;
129
- hostElement.__stencil__getHostRef = () => ref;
130
- return ref;
30
+ return hostRefs.set(hostElement, hostRef);
131
31
  };
132
32
  var isMemberInElement = (elm, memberName) => memberName in elm;
133
33
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -152,18 +52,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
152
52
  }
153
53
  switch(bundleId) {
154
54
 
155
- case 'wm-tag-option':
156
- return import(
157
- /* webpackMode: "lazy" */
158
- './wm-tag-option.entry.js').then(processMod, consoleError);
159
- case 'wm-wrapper':
160
- return import(
161
- /* webpackMode: "lazy" */
162
- './wm-wrapper.entry.js').then(processMod, consoleError);
163
- case 'wm-chart-slice':
164
- return import(
165
- /* webpackMode: "lazy" */
166
- './wm-chart-slice.entry.js').then(processMod, consoleError);
167
55
  case 'wm-button':
168
56
  return import(
169
57
  /* webpackMode: "lazy" */
@@ -192,6 +80,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
192
80
  return import(
193
81
  /* webpackMode: "lazy" */
194
82
  './wm-input.entry.js').then(processMod, consoleError);
83
+ case 'wm-navigator':
84
+ return import(
85
+ /* webpackMode: "lazy" */
86
+ './wm-navigator.entry.js').then(processMod, consoleError);
195
87
  case 'wm-pagination':
196
88
  return import(
197
89
  /* webpackMode: "lazy" */
@@ -216,6 +108,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
216
108
  return import(
217
109
  /* webpackMode: "lazy" */
218
110
  './wm-tag-input.entry.js').then(processMod, consoleError);
111
+ case 'wm-tag-option':
112
+ return import(
113
+ /* webpackMode: "lazy" */
114
+ './wm-tag-option.entry.js').then(processMod, consoleError);
219
115
  case 'wm-textarea':
220
116
  return import(
221
117
  /* webpackMode: "lazy" */
@@ -224,6 +120,42 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
224
120
  return import(
225
121
  /* webpackMode: "lazy" */
226
122
  './wm-uploader.entry.js').then(processMod, consoleError);
123
+ case 'wm-wrapper':
124
+ return import(
125
+ /* webpackMode: "lazy" */
126
+ './wm-wrapper.entry.js').then(processMod, consoleError);
127
+ case 'wm-action-menu_2':
128
+ return import(
129
+ /* webpackMode: "lazy" */
130
+ './wm-action-menu_2.entry.js').then(processMod, consoleError);
131
+ case 'wm-option_2':
132
+ return import(
133
+ /* webpackMode: "lazy" */
134
+ './wm-option_2.entry.js').then(processMod, consoleError);
135
+ case 'wm-modal_3':
136
+ return import(
137
+ /* webpackMode: "lazy" */
138
+ './wm-modal_3.entry.js').then(processMod, consoleError);
139
+ case 'wm-modal-pss_3':
140
+ return import(
141
+ /* webpackMode: "lazy" */
142
+ './wm-modal-pss_3.entry.js').then(processMod, consoleError);
143
+ case 'wm-navigation_3':
144
+ return import(
145
+ /* webpackMode: "lazy" */
146
+ './wm-navigation_3.entry.js').then(processMod, consoleError);
147
+ case 'wm-progress-indicator_3':
148
+ return import(
149
+ /* webpackMode: "lazy" */
150
+ './wm-progress-indicator_3.entry.js').then(processMod, consoleError);
151
+ case 'wm-tab-item_3':
152
+ return import(
153
+ /* webpackMode: "lazy" */
154
+ './wm-tab-item_3.entry.js').then(processMod, consoleError);
155
+ case 'wm-chart-slice':
156
+ return import(
157
+ /* webpackMode: "lazy" */
158
+ './wm-chart-slice.entry.js').then(processMod, consoleError);
227
159
  case 'wm-date-range':
228
160
  return import(
229
161
  /* webpackMode: "lazy" */
@@ -260,38 +192,6 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
260
192
  return import(
261
193
  /* webpackMode: "lazy" */
262
194
  './priv-option-list.entry.js').then(processMod, consoleError);
263
- case 'wm-navigator':
264
- return import(
265
- /* webpackMode: "lazy" */
266
- './wm-navigator.entry.js').then(processMod, consoleError);
267
- case 'wm-action-menu_2':
268
- return import(
269
- /* webpackMode: "lazy" */
270
- './wm-action-menu_2.entry.js').then(processMod, consoleError);
271
- case 'wm-option_2':
272
- return import(
273
- /* webpackMode: "lazy" */
274
- './wm-option_2.entry.js').then(processMod, consoleError);
275
- case 'wm-progress-indicator_3':
276
- return import(
277
- /* webpackMode: "lazy" */
278
- './wm-progress-indicator_3.entry.js').then(processMod, consoleError);
279
- case 'wm-modal_3':
280
- return import(
281
- /* webpackMode: "lazy" */
282
- './wm-modal_3.entry.js').then(processMod, consoleError);
283
- case 'wm-modal-pss_3':
284
- return import(
285
- /* webpackMode: "lazy" */
286
- './wm-modal-pss_3.entry.js').then(processMod, consoleError);
287
- case 'wm-navigation_3':
288
- return import(
289
- /* webpackMode: "lazy" */
290
- './wm-navigation_3.entry.js').then(processMod, consoleError);
291
- case 'wm-tab-item_3':
292
- return import(
293
- /* webpackMode: "lazy" */
294
- './wm-tab-item_3.entry.js').then(processMod, consoleError);
295
195
  }
296
196
  }
297
197
  return import(
@@ -300,17 +200,12 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
300
200
  /* webpackExclude: /\.system\.entry\.js$/ */
301
201
  /* webpackMode: "lazy" */
302
202
  `./${bundleId}.entry.js${""}`
303
- ).then(
304
- (importedModule) => {
305
- {
306
- cmpModules.set(bundleId, importedModule);
307
- }
308
- return importedModule[exportName];
309
- },
310
- (e) => {
311
- consoleError(e, hostRef.$hostElement$);
203
+ ).then((importedModule) => {
204
+ {
205
+ cmpModules.set(bundleId, importedModule);
312
206
  }
313
- );
207
+ return importedModule[exportName];
208
+ }, consoleError);
314
209
  };
315
210
 
316
211
  // src/client/client-style.ts
@@ -319,6 +214,7 @@ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
319
214
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
320
215
  var XLINK_NS = "http://www.w3.org/1999/xlink";
321
216
  var win = typeof window !== "undefined" ? window : {};
217
+ var doc = win.document || { head: {} };
322
218
  var plt = {
323
219
  $flags$: 0,
324
220
  $resourcesUrl$: "",
@@ -329,10 +225,9 @@ var plt = {
329
225
  ce: (eventName, opts) => new CustomEvent(eventName, opts)
330
226
  };
331
227
  var supportsListenerOptions = /* @__PURE__ */ (() => {
332
- var _a;
333
228
  let supportsListenerOptions2 = false;
334
229
  try {
335
- (_a = win.document) == null ? void 0 : _a.addEventListener(
230
+ doc.addEventListener(
336
231
  "e",
337
232
  null,
338
233
  Object.defineProperty({}, "passive", {
@@ -354,7 +249,6 @@ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
354
249
  }
355
250
  return false;
356
251
  })() ;
357
- var supportsMutableAdoptedStyleSheets = supportsConstructableStylesheets ? /* @__PURE__ */ (() => !!win.document && Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets, "length").writable)() : false;
358
252
  var queuePending = false;
359
253
  var queueDomReads = [];
360
254
  var queueDomWrites = [];
@@ -390,22 +284,25 @@ var flush = () => {
390
284
  };
391
285
  var nextTick = (cb) => promiseResolve().then(cb);
392
286
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
287
+
288
+ // src/utils/constants.ts
289
+ var EMPTY_OBJ = {};
290
+ var SVG_NS = "http://www.w3.org/2000/svg";
291
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
292
+
293
+ // src/utils/helpers.ts
294
+ var isDef = (v) => v != null;
393
295
  var isComplexType = (o) => {
394
296
  o = typeof o;
395
297
  return o === "object" || o === "function";
396
298
  };
397
299
 
398
300
  // src/utils/query-nonce-meta-tag-content.ts
399
- function queryNonceMetaTagContent(doc) {
301
+ function queryNonceMetaTagContent(doc2) {
400
302
  var _a, _b, _c;
401
- return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
303
+ return (_c = (_b = (_a = doc2.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
402
304
  }
403
305
 
404
- // src/utils/regular-expression.ts
405
- var escapeRegExpSpecialCharacters = (text) => {
406
- return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
407
- };
408
-
409
306
  // src/utils/result.ts
410
307
  var result_exports = {};
411
308
  __export(result_exports, {
@@ -454,135 +351,6 @@ var unwrapErr = (result) => {
454
351
  throw result.value;
455
352
  }
456
353
  };
457
-
458
- // src/utils/style.ts
459
- function createStyleSheetIfNeededAndSupported(styles2) {
460
- return void 0;
461
- }
462
-
463
- // src/utils/shadow-root.ts
464
- var globalStyleSheet;
465
- function createShadowRoot(cmpMeta) {
466
- var _a;
467
- const shadowRoot = this.attachShadow({
468
- mode: "open",
469
- delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
470
- }) ;
471
- if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
472
- if (globalStyleSheet) {
473
- if (supportsMutableAdoptedStyleSheets) {
474
- shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
475
- } else {
476
- shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
477
- }
478
- }
479
- }
480
- var updateFallbackSlotVisibility = (elm) => {
481
- const childNodes = internalCall(elm, "childNodes");
482
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
483
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
484
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
485
- if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
486
- slotNode.hidden = true;
487
- } else {
488
- slotNode.hidden = false;
489
- }
490
- }
491
- });
492
- }
493
- let i2 = 0;
494
- for (i2 = 0; i2 < childNodes.length; i2++) {
495
- const childNode = childNodes[i2];
496
- if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
497
- updateFallbackSlotVisibility(childNode);
498
- }
499
- }
500
- };
501
- var getSlottedChildNodes = (childNodes) => {
502
- const result = [];
503
- for (let i2 = 0; i2 < childNodes.length; i2++) {
504
- const slottedNode = childNodes[i2]["s-nr"] || void 0;
505
- if (slottedNode && slottedNode.isConnected) {
506
- result.push(slottedNode);
507
- }
508
- }
509
- return result;
510
- };
511
- function getHostSlotNodes(childNodes, hostName, slotName) {
512
- let i2 = 0;
513
- let slottedNodes = [];
514
- let childNode;
515
- for (; i2 < childNodes.length; i2++) {
516
- childNode = childNodes[i2];
517
- if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
518
- slottedNodes.push(childNode);
519
- }
520
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
521
- }
522
- return slottedNodes;
523
- }
524
- var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
525
- const childNodes = [];
526
- if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
527
- let node = slot;
528
- while (node = node.nextSibling) {
529
- if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
530
- }
531
- return childNodes;
532
- };
533
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
534
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
535
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
536
- return true;
537
- }
538
- if (nodeToRelocate.getAttribute("slot") === slotName) {
539
- return true;
540
- }
541
- return false;
542
- }
543
- if (nodeToRelocate["s-sn"] === slotName) {
544
- return true;
545
- }
546
- return slotName === "";
547
- };
548
- var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
549
- function patchSlotNode(node) {
550
- if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
551
- const assignedFactory = (elementsOnly) => (function(opts) {
552
- const toReturn = [];
553
- const slotName = this["s-sn"];
554
- if (opts == null ? void 0 : opts.flatten) {
555
- console.error(`
556
- Flattening is not supported for Stencil non-shadow slots.
557
- You can use \`.childNodes\` to nested slot fallback content.
558
- If you have a particular use case, please open an issue on the Stencil repo.
559
- `);
560
- }
561
- const parent = this["s-cr"].parentElement;
562
- const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
563
- slottedNodes.forEach((n) => {
564
- if (slotName === getSlotName(n)) {
565
- toReturn.push(n);
566
- }
567
- });
568
- if (elementsOnly) {
569
- return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
570
- }
571
- return toReturn;
572
- }).bind(node);
573
- node.assignedElements = assignedFactory(true);
574
- node.assignedNodes = assignedFactory(false);
575
- }
576
- function internalCall(node, method) {
577
- if ("__" + method in node) {
578
- const toReturn = node["__" + method];
579
- if (typeof toReturn !== "function") return toReturn;
580
- return toReturn.bind(node);
581
- } else {
582
- if (typeof node[method] !== "function") return node[method];
583
- return node[method].bind(node);
584
- }
585
- }
586
354
  var createTime = (fnName, tagName = "") => {
587
355
  {
588
356
  return () => {
@@ -597,110 +365,6 @@ var uniqueTime = (key, measureText) => {
597
365
  };
598
366
  }
599
367
  };
600
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
601
- var registerStyle = (scopeId2, cssText, allowCS) => {
602
- let style = styles.get(scopeId2);
603
- if (supportsConstructableStylesheets && allowCS) {
604
- style = style || new CSSStyleSheet();
605
- if (typeof style === "string") {
606
- style = cssText;
607
- } else {
608
- style.replaceSync(cssText);
609
- }
610
- } else {
611
- style = cssText;
612
- }
613
- styles.set(scopeId2, style);
614
- };
615
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
616
- var _a;
617
- const scopeId2 = getScopeId(cmpMeta);
618
- const style = styles.get(scopeId2);
619
- if (!win.document) {
620
- return scopeId2;
621
- }
622
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
623
- if (style) {
624
- if (typeof style === "string") {
625
- styleContainerNode = styleContainerNode.head || styleContainerNode;
626
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
627
- let styleElm;
628
- if (!appliedStyles) {
629
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
630
- }
631
- if (!appliedStyles.has(scopeId2)) {
632
- {
633
- styleElm = win.document.createElement("style");
634
- styleElm.innerHTML = style;
635
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
636
- if (nonce != null) {
637
- styleElm.setAttribute("nonce", nonce);
638
- }
639
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
640
- if (styleContainerNode.nodeName === "HEAD") {
641
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
642
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
643
- styleContainerNode.insertBefore(
644
- styleElm,
645
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
646
- );
647
- } else if ("host" in styleContainerNode) {
648
- if (supportsConstructableStylesheets) {
649
- const stylesheet = new CSSStyleSheet();
650
- stylesheet.replaceSync(style);
651
- if (supportsMutableAdoptedStyleSheets) {
652
- styleContainerNode.adoptedStyleSheets.unshift(stylesheet);
653
- } else {
654
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
655
- }
656
- } else {
657
- const existingStyleContainer = styleContainerNode.querySelector("style");
658
- if (existingStyleContainer) {
659
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
660
- } else {
661
- styleContainerNode.prepend(styleElm);
662
- }
663
- }
664
- } else {
665
- styleContainerNode.append(styleElm);
666
- }
667
- }
668
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
669
- styleContainerNode.insertBefore(styleElm, null);
670
- }
671
- }
672
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
673
- styleElm.innerHTML += SLOT_FB_CSS;
674
- }
675
- if (appliedStyles) {
676
- appliedStyles.add(scopeId2);
677
- }
678
- }
679
- } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
680
- if (supportsMutableAdoptedStyleSheets) {
681
- styleContainerNode.adoptedStyleSheets.push(style);
682
- } else {
683
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
684
- }
685
- }
686
- }
687
- return scopeId2;
688
- };
689
- var attachStyles = (hostRef) => {
690
- const cmpMeta = hostRef.$cmpMeta$;
691
- const elm = hostRef.$hostElement$;
692
- const flags = cmpMeta.$flags$;
693
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
694
- const scopeId2 = addStyle(
695
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
696
- cmpMeta);
697
- if (flags & 10 /* needsScopedEncapsulation */) {
698
- elm["s-sc"] = scopeId2;
699
- elm.classList.add(scopeId2 + "-h");
700
- }
701
- endAttachStyles();
702
- };
703
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
704
368
  var h = (nodeName, vnodeData, ...children) => {
705
369
  let child = null;
706
370
  let key = null;
@@ -812,33 +476,13 @@ var convertToPrivate = (node) => {
812
476
  vnode.$name$ = node.vname;
813
477
  return vnode;
814
478
  };
815
- var createSupportsRuleRe = (selector) => {
816
- const safeSelector2 = escapeRegExpSpecialCharacters(selector);
817
- return new RegExp(
818
- // First capture group: match any context before the selector that's not inside @supports selector()
819
- // Using negative lookahead to avoid matching inside @supports selector(...) condition
820
- `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
821
- "g"
822
- );
823
- };
824
- createSupportsRuleRe("::slotted");
825
- createSupportsRuleRe(":host");
826
- createSupportsRuleRe(":host-context");
827
- var parsePropertyValue = (propValue, propType, isFormAssociated) => {
828
- if (typeof propValue === "string" && (propType & 16 /* Unknown */ || propType & 8 /* Any */) && (propValue.startsWith("{") && propValue.endsWith("}") || propValue.startsWith("[") && propValue.endsWith("]"))) {
829
- try {
830
- return JSON.parse(propValue);
831
- } catch (e) {
832
- }
833
- }
479
+ var parsePropertyValue = (propValue, propType) => {
834
480
  if (propValue != null && !isComplexType(propValue)) {
835
481
  if (propType & 4 /* Boolean */) {
836
- {
837
- return propValue === "false" ? false : propValue === "" || !!propValue;
838
- }
482
+ return propValue === "false" ? false : propValue === "" || !!propValue;
839
483
  }
840
484
  if (propType & 2 /* Number */) {
841
- return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
485
+ return parseFloat(propValue);
842
486
  }
843
487
  if (propType & 1 /* String */) {
844
488
  return String(propValue);
@@ -847,10 +491,7 @@ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
847
491
  }
848
492
  return propValue;
849
493
  };
850
- var getElement = (ref) => {
851
- var _a;
852
- return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
853
- };
494
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
854
495
 
855
496
  // src/runtime/event-emitter.ts
856
497
  var createEvent = (ref, name, flags) => {
@@ -871,148 +512,204 @@ var emitEvent = (elm, name, opts) => {
871
512
  elm.dispatchEvent(ev);
872
513
  return ev;
873
514
  };
874
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
875
- if (oldValue === newValue) {
876
- return;
515
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
516
+ var registerStyle = (scopeId2, cssText, allowCS) => {
517
+ let style = styles.get(scopeId2);
518
+ if (supportsConstructableStylesheets && allowCS) {
519
+ style = style || new CSSStyleSheet();
520
+ if (typeof style === "string") {
521
+ style = cssText;
522
+ } else {
523
+ style.replaceSync(cssText);
524
+ }
525
+ } else {
526
+ style = cssText;
877
527
  }
878
- let isProp = isMemberInElement(elm, memberName);
879
- let ln = memberName.toLowerCase();
880
- if (memberName === "class") {
881
- const classList = elm.classList;
882
- const oldClasses = parseClassList(oldValue);
883
- let newClasses = parseClassList(newValue);
884
- {
528
+ styles.set(scopeId2, style);
529
+ };
530
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
531
+ var _a;
532
+ const scopeId2 = getScopeId(cmpMeta);
533
+ const style = styles.get(scopeId2);
534
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
535
+ if (style) {
536
+ if (typeof style === "string") {
537
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
538
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
539
+ let styleElm;
540
+ if (!appliedStyles) {
541
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
542
+ }
543
+ if (!appliedStyles.has(scopeId2)) {
544
+ {
545
+ styleElm = doc.createElement("style");
546
+ styleElm.innerHTML = style;
547
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
548
+ if (nonce != null) {
549
+ styleElm.setAttribute("nonce", nonce);
550
+ }
551
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
552
+ if (styleContainerNode.nodeName === "HEAD") {
553
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
554
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : document.querySelector("style");
555
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
556
+ } else if ("host" in styleContainerNode) {
557
+ styleContainerNode.prepend(styleElm);
558
+ } else {
559
+ styleContainerNode.append(styleElm);
560
+ }
561
+ }
562
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
563
+ styleContainerNode.insertBefore(styleElm, null);
564
+ }
565
+ }
566
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
567
+ styleElm.innerHTML += SLOT_FB_CSS;
568
+ }
569
+ if (appliedStyles) {
570
+ appliedStyles.add(scopeId2);
571
+ }
572
+ }
573
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
574
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
575
+ }
576
+ }
577
+ return scopeId2;
578
+ };
579
+ var attachStyles = (hostRef) => {
580
+ const cmpMeta = hostRef.$cmpMeta$;
581
+ const elm = hostRef.$hostElement$;
582
+ const flags = cmpMeta.$flags$;
583
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
584
+ const scopeId2 = addStyle(
585
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
586
+ cmpMeta);
587
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
588
+ elm["s-sc"] = scopeId2;
589
+ elm.classList.add(scopeId2 + "-h");
590
+ }
591
+ endAttachStyles();
592
+ };
593
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
594
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
595
+ if (oldValue !== newValue) {
596
+ let isProp = isMemberInElement(elm, memberName);
597
+ let ln = memberName.toLowerCase();
598
+ if (memberName === "class") {
599
+ const classList = elm.classList;
600
+ const oldClasses = parseClassList(oldValue);
601
+ const newClasses = parseClassList(newValue);
885
602
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
886
603
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
887
- }
888
- } else if (memberName === "style") {
889
- {
890
- for (const prop in oldValue) {
891
- if (!newValue || newValue[prop] == null) {
604
+ } else if (memberName === "style") {
605
+ {
606
+ for (const prop in oldValue) {
607
+ if (!newValue || newValue[prop] == null) {
608
+ if (prop.includes("-")) {
609
+ elm.style.removeProperty(prop);
610
+ } else {
611
+ elm.style[prop] = "";
612
+ }
613
+ }
614
+ }
615
+ }
616
+ for (const prop in newValue) {
617
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
892
618
  if (prop.includes("-")) {
893
- elm.style.removeProperty(prop);
619
+ elm.style.setProperty(prop, newValue[prop]);
894
620
  } else {
895
- elm.style[prop] = "";
621
+ elm.style[prop] = newValue[prop];
896
622
  }
897
623
  }
898
624
  }
899
- }
900
- for (const prop in newValue) {
901
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
902
- if (prop.includes("-")) {
903
- elm.style.setProperty(prop, newValue[prop]);
904
- } else {
905
- elm.style[prop] = newValue[prop];
906
- }
625
+ } else if (memberName === "key") ; else if (memberName === "ref") {
626
+ if (newValue) {
627
+ newValue(elm);
907
628
  }
908
- }
909
- } else if (memberName === "key") ; else if (memberName === "ref") {
910
- if (newValue) {
911
- newValue(elm);
912
- }
913
- } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
914
- if (memberName[2] === "-") {
915
- memberName = memberName.slice(3);
916
- } else if (isMemberInElement(win, ln)) {
917
- memberName = ln.slice(2);
918
- } else {
919
- memberName = ln[2] + memberName.slice(3);
920
- }
921
- if (oldValue || newValue) {
922
- const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
923
- memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
924
- if (oldValue) {
925
- plt.rel(elm, memberName, oldValue, capture);
629
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
630
+ if (memberName[2] === "-") {
631
+ memberName = memberName.slice(3);
632
+ } else if (isMemberInElement(win, ln)) {
633
+ memberName = ln.slice(2);
634
+ } else {
635
+ memberName = ln[2] + memberName.slice(3);
926
636
  }
927
- if (newValue) {
928
- plt.ael(elm, memberName, newValue, capture);
637
+ if (oldValue || newValue) {
638
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
639
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
640
+ if (oldValue) {
641
+ plt.rel(elm, memberName, oldValue, capture);
642
+ }
643
+ if (newValue) {
644
+ plt.ael(elm, memberName, newValue, capture);
645
+ }
929
646
  }
930
- }
931
- } else {
932
- const isComplex = isComplexType(newValue);
933
- if ((isProp || isComplex && newValue !== null) && !isSvg) {
934
- try {
935
- if (!elm.tagName.includes("-")) {
936
- const n = newValue == null ? "" : newValue;
937
- if (memberName === "list") {
938
- isProp = false;
939
- } else if (oldValue == null || elm[memberName] != n) {
940
- if (typeof elm.__lookupSetter__(memberName) === "function") {
941
- elm[memberName] = n;
942
- } else {
943
- elm.setAttribute(memberName, n);
647
+ } else {
648
+ const isComplex = isComplexType(newValue);
649
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
650
+ try {
651
+ if (!elm.tagName.includes("-")) {
652
+ const n = newValue == null ? "" : newValue;
653
+ if (memberName === "list") {
654
+ isProp = false;
655
+ } else if (oldValue == null || elm[memberName] != n) {
656
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
657
+ elm[memberName] = n;
658
+ } else {
659
+ elm.setAttribute(memberName, n);
660
+ }
944
661
  }
662
+ } else {
663
+ elm[memberName] = newValue;
945
664
  }
946
- } else if (elm[memberName] !== newValue) {
947
- elm[memberName] = newValue;
665
+ } catch (e) {
948
666
  }
949
- } catch (e) {
950
667
  }
951
- }
952
- let xlink = false;
953
- {
954
- if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
955
- memberName = ln;
956
- xlink = true;
668
+ let xlink = false;
669
+ {
670
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
671
+ memberName = ln;
672
+ xlink = true;
673
+ }
957
674
  }
958
- }
959
- if (newValue == null || newValue === false) {
960
- if (newValue !== false || elm.getAttribute(memberName) === "") {
675
+ if (newValue == null || newValue === false) {
676
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
677
+ if (xlink) {
678
+ elm.removeAttributeNS(XLINK_NS, memberName);
679
+ } else {
680
+ elm.removeAttribute(memberName);
681
+ }
682
+ }
683
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
684
+ newValue = newValue === true ? "" : newValue;
961
685
  if (xlink) {
962
- elm.removeAttributeNS(XLINK_NS, memberName);
686
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
963
687
  } else {
964
- elm.removeAttribute(memberName);
688
+ elm.setAttribute(memberName, newValue);
965
689
  }
966
690
  }
967
- } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
968
- newValue = newValue === true ? "" : newValue;
969
- if (xlink) {
970
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
971
- } else {
972
- elm.setAttribute(memberName, newValue);
973
- }
974
691
  }
975
692
  }
976
693
  };
977
694
  var parseClassListRegex = /\s/;
978
- var parseClassList = (value) => {
979
- if (typeof value === "object" && value && "baseVal" in value) {
980
- value = value.baseVal;
981
- }
982
- if (!value || typeof value !== "string") {
983
- return [];
984
- }
985
- return value.split(parseClassListRegex);
986
- };
695
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
987
696
  var CAPTURE_EVENT_SUFFIX = "Capture";
988
697
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
989
698
 
990
699
  // src/runtime/vdom/update-element.ts
991
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
700
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
992
701
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
993
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
994
- const newVnodeAttrs = newVnode.$attrs$ || {};
702
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
703
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
995
704
  {
996
705
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
997
706
  if (!(memberName in newVnodeAttrs)) {
998
- setAccessor(
999
- elm,
1000
- memberName,
1001
- oldVnodeAttrs[memberName],
1002
- void 0,
1003
- isSvgMode2,
1004
- newVnode.$flags$);
707
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
1005
708
  }
1006
709
  }
1007
710
  }
1008
711
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1009
- setAccessor(
1010
- elm,
1011
- memberName,
1012
- oldVnodeAttrs[memberName],
1013
- newVnodeAttrs[memberName],
1014
- isSvgMode2,
1015
- newVnode.$flags$);
712
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
1016
713
  }
1017
714
  };
1018
715
  function sortedAttrNames(attrNames) {
@@ -1024,13 +721,16 @@ function sortedAttrNames(attrNames) {
1024
721
  attrNames
1025
722
  );
1026
723
  }
724
+
725
+ // src/runtime/vdom/vdom-render.ts
726
+ var scopeId;
1027
727
  var contentRef;
1028
728
  var hostTagName;
1029
729
  var useNativeShadowDom = false;
1030
730
  var checkSlotFallbackVisibility = false;
1031
731
  var checkSlotRelocate = false;
1032
732
  var isSvgMode = false;
1033
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
733
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
1034
734
  var _a;
1035
735
  const newVNode2 = newParentVNode.$children$[childIndex];
1036
736
  let i2 = 0;
@@ -1040,6 +740,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1040
740
  if (!useNativeShadowDom) {
1041
741
  checkSlotRelocate = true;
1042
742
  if (newVNode2.$tag$ === "slot") {
743
+ if (scopeId) {
744
+ parentElm.classList.add(scopeId + "-s");
745
+ }
1043
746
  newVNode2.$flags$ |= newVNode2.$children$ ? (
1044
747
  // slot element has fallback content
1045
748
  // still create an element that "mocks" the slot element
@@ -1053,22 +756,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1053
756
  }
1054
757
  }
1055
758
  if (newVNode2.$text$ !== null) {
1056
- elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
759
+ elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
1057
760
  } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1058
- elm = newVNode2.$elm$ = win.document.createTextNode("");
1059
- {
1060
- updateElement(null, newVNode2, isSvgMode);
1061
- }
761
+ elm = newVNode2.$elm$ = doc.createTextNode("");
1062
762
  } else {
1063
763
  if (!isSvgMode) {
1064
764
  isSvgMode = newVNode2.$tag$ === "svg";
1065
765
  }
1066
- if (!win.document) {
1067
- throw new Error(
1068
- "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
1069
- );
1070
- }
1071
- elm = newVNode2.$elm$ = win.document.createElementNS(
766
+ elm = newVNode2.$elm$ = doc.createElementNS(
1072
767
  isSvgMode ? SVG_NS : HTML_NS,
1073
768
  !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1074
769
  ) ;
@@ -1078,9 +773,14 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1078
773
  {
1079
774
  updateElement(null, newVNode2, isSvgMode);
1080
775
  }
776
+ const rootNode = elm.getRootNode();
777
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
778
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
779
+ elm.classList.add(elm["s-si"] = scopeId);
780
+ }
1081
781
  if (newVNode2.$children$) {
1082
782
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1083
- childNode = createElm(oldParentVNode, newVNode2, i2);
783
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
1084
784
  if (childNode) {
1085
785
  elm.appendChild(childNode);
1086
786
  }
@@ -1101,7 +801,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1101
801
  elm["s-cr"] = contentRef;
1102
802
  elm["s-sn"] = newVNode2.$name$ || "";
1103
803
  elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1104
- patchSlotNode(elm);
1105
804
  oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1106
805
  if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1107
806
  {
@@ -1114,11 +813,19 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1114
813
  };
1115
814
  var putBackInOriginalLocation = (parentElm, recursive) => {
1116
815
  plt.$flags$ |= 1 /* isTmpDisconnected */;
1117
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
816
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
817
+ if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
818
+ let node = parentElm;
819
+ while (node = node.nextSibling) {
820
+ if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
821
+ oldSlotChildNodes.push(node);
822
+ }
823
+ }
824
+ }
1118
825
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1119
826
  const childNode = oldSlotChildNodes[i2];
1120
827
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1121
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
828
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
1122
829
  childNode["s-ol"].remove();
1123
830
  childNode["s-ol"] = void 0;
1124
831
  childNode["s-sh"] = void 0;
@@ -1128,7 +835,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
1128
835
  putBackInOriginalLocation(childNode, recursive);
1129
836
  }
1130
837
  }
1131
- plt.$flags$ &= -2 /* isTmpDisconnected */;
838
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1132
839
  };
1133
840
  var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1134
841
  let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
@@ -1138,7 +845,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1138
845
  }
1139
846
  for (; startIdx <= endIdx; ++startIdx) {
1140
847
  if (vnodes[startIdx]) {
1141
- childNode = createElm(null, parentVNode, startIdx);
848
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
1142
849
  if (childNode) {
1143
850
  vnodes[startIdx].$elm$ = childNode;
1144
851
  insertBefore(containerElm, childNode, referenceNode(before) );
@@ -1225,7 +932,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1225
932
  if (idxInOld >= 0) {
1226
933
  elmToMove = oldCh[idxInOld];
1227
934
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
1228
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
935
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
1229
936
  } else {
1230
937
  patch(elmToMove, newStartVnode, isInitialRender);
1231
938
  oldCh[idxInOld] = void 0;
@@ -1233,16 +940,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1233
940
  }
1234
941
  newStartVnode = newCh[++newStartIdx];
1235
942
  } else {
1236
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
943
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
1237
944
  newStartVnode = newCh[++newStartIdx];
1238
945
  }
1239
946
  if (node) {
1240
947
  {
1241
- insertBefore(
1242
- referenceNode(oldStartVnode.$elm$).parentNode,
1243
- node,
1244
- referenceNode(oldStartVnode.$elm$)
1245
- );
948
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
1246
949
  }
1247
950
  }
1248
951
  }
@@ -1263,19 +966,28 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
1263
966
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
1264
967
  if (leftVNode.$tag$ === rightVNode.$tag$) {
1265
968
  if (leftVNode.$tag$ === "slot") {
969
+ if (
970
+ // The component gets hydrated and no VDOM has been initialized.
971
+ // Here the comparison can't happen as $name$ property is not set for `leftNode`.
972
+ "$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
973
+ // hydration comments to be removed
974
+ leftVNode.$elm$.nodeType !== 8
975
+ ) {
976
+ return false;
977
+ }
1266
978
  return leftVNode.$name$ === rightVNode.$name$;
1267
979
  }
1268
980
  if (!isInitialRender) {
1269
981
  return leftVNode.$key$ === rightVNode.$key$;
1270
982
  }
1271
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
1272
- leftVNode.$key$ = rightVNode.$key$;
1273
- }
1274
983
  return true;
1275
984
  }
1276
985
  return false;
1277
986
  };
1278
- var referenceNode = (node) => node && node["s-ol"] || node;
987
+ var referenceNode = (node) => {
988
+ return node && node["s-ol"] || node;
989
+ };
990
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
1279
991
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1280
992
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
1281
993
  const oldChildren = oldVNode.$children$;
@@ -1288,7 +1000,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1288
1000
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
1289
1001
  }
1290
1002
  {
1291
- updateElement(oldVNode, newVNode2, isSvgMode);
1003
+ if (tag === "slot" && !useNativeShadowDom) ; else {
1004
+ updateElement(oldVNode, newVNode2, isSvgMode);
1005
+ }
1292
1006
  }
1293
1007
  if (oldChildren !== null && newChildren !== null) {
1294
1008
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
@@ -1302,7 +1016,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1302
1016
  !isInitialRender && BUILD.updatable && oldChildren !== null
1303
1017
  ) {
1304
1018
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
1305
- } else ;
1019
+ }
1306
1020
  if (isSvgMode && tag === "svg") {
1307
1021
  isSvgMode = false;
1308
1022
  }
@@ -1312,19 +1026,45 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1312
1026
  elm.data = text;
1313
1027
  }
1314
1028
  };
1029
+ var updateFallbackSlotVisibility = (elm) => {
1030
+ const childNodes = elm.childNodes;
1031
+ for (const childNode of childNodes) {
1032
+ if (childNode.nodeType === 1 /* ElementNode */) {
1033
+ if (childNode["s-sr"]) {
1034
+ const slotName = childNode["s-sn"];
1035
+ childNode.hidden = false;
1036
+ for (const siblingNode of childNodes) {
1037
+ if (siblingNode !== childNode) {
1038
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
1039
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
1040
+ childNode.hidden = true;
1041
+ break;
1042
+ }
1043
+ } else {
1044
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
1045
+ childNode.hidden = true;
1046
+ break;
1047
+ }
1048
+ }
1049
+ }
1050
+ }
1051
+ }
1052
+ updateFallbackSlotVisibility(childNode);
1053
+ }
1054
+ }
1055
+ };
1315
1056
  var relocateNodes = [];
1316
1057
  var markSlotContentForRelocation = (elm) => {
1317
1058
  let node;
1318
1059
  let hostContentNodes;
1319
1060
  let j;
1320
- const children = elm.__childNodes || elm.childNodes;
1321
- for (const childNode of children) {
1061
+ for (const childNode of elm.childNodes) {
1322
1062
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1323
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
1063
+ hostContentNodes = node.parentNode.childNodes;
1324
1064
  const slotName = childNode["s-sn"];
1325
1065
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1326
1066
  node = hostContentNodes[j];
1327
- if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
1067
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
1328
1068
  if (isNodeLocatedInSlot(node, slotName)) {
1329
1069
  let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1330
1070
  checkSlotFallbackVisibility = true;
@@ -1362,6 +1102,21 @@ var markSlotContentForRelocation = (elm) => {
1362
1102
  }
1363
1103
  }
1364
1104
  };
1105
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1106
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1107
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1108
+ return true;
1109
+ }
1110
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
1111
+ return true;
1112
+ }
1113
+ return false;
1114
+ }
1115
+ if (nodeToRelocate["s-sn"] === slotName) {
1116
+ return true;
1117
+ }
1118
+ return slotName === "";
1119
+ };
1365
1120
  var nullifyVNodeRefs = (vNode) => {
1366
1121
  {
1367
1122
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -1369,17 +1124,15 @@ var nullifyVNodeRefs = (vNode) => {
1369
1124
  }
1370
1125
  };
1371
1126
  var insertBefore = (parent, newNode, reference) => {
1372
- {
1373
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1374
- }
1127
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
1128
+ return inserted;
1375
1129
  };
1376
1130
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1377
1131
  var _a, _b, _c, _d;
1378
1132
  const hostElm = hostRef.$hostElement$;
1379
1133
  const cmpMeta = hostRef.$cmpMeta$;
1380
1134
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1381
- const isHostElement = isHost(renderFnResults);
1382
- const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1135
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1383
1136
  hostTagName = hostElm.tagName;
1384
1137
  if (cmpMeta.$attrsToReflect$) {
1385
1138
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
@@ -1398,7 +1151,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1398
1151
  rootVnode.$flags$ |= 4 /* isHost */;
1399
1152
  hostRef.$vnode$ = rootVnode;
1400
1153
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1401
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1154
+ {
1155
+ scopeId = hostElm["s-sc"];
1156
+ }
1157
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1402
1158
  {
1403
1159
  contentRef = hostElm["s-cr"];
1404
1160
  checkSlotFallbackVisibility = false;
@@ -1410,8 +1166,8 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1410
1166
  markSlotContentForRelocation(rootVnode.$elm$);
1411
1167
  for (const relocateData of relocateNodes) {
1412
1168
  const nodeToRelocate = relocateData.$nodeToRelocate$;
1413
- if (!nodeToRelocate["s-ol"] && win.document) {
1414
- const orgLocationNode = win.document.createTextNode("");
1169
+ if (!nodeToRelocate["s-ol"]) {
1170
+ const orgLocationNode = doc.createTextNode("");
1415
1171
  orgLocationNode["s-nr"] = nodeToRelocate;
1416
1172
  insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
1417
1173
  }
@@ -1426,7 +1182,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1426
1182
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1427
1183
  while (orgLocationNode) {
1428
1184
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1429
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1185
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1430
1186
  refNode = refNode.nextSibling;
1431
1187
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1432
1188
  refNode = refNode == null ? void 0 : refNode.nextSibling;
@@ -1439,20 +1195,18 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1439
1195
  orgLocationNode = orgLocationNode.previousSibling;
1440
1196
  }
1441
1197
  }
1442
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1443
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1444
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1198
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1445
1199
  if (nodeToRelocate !== insertBeforeNode) {
1446
1200
  if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1447
1201
  nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1448
1202
  }
1449
1203
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1450
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1204
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1451
1205
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1452
1206
  }
1453
1207
  }
1454
1208
  }
1455
- nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
1209
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
1456
1210
  } else {
1457
1211
  if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1458
1212
  if (isInitialLoad) {
@@ -1466,7 +1220,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1466
1220
  if (checkSlotFallbackVisibility) {
1467
1221
  updateFallbackSlotVisibility(rootVnode.$elm$);
1468
1222
  }
1469
- plt.$flags$ &= -2 /* isTmpDisconnected */;
1223
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1470
1224
  relocateNodes.length = 0;
1471
1225
  }
1472
1226
  contentRef = void 0;
@@ -1475,14 +1229,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1475
1229
  // src/runtime/update-component.ts
1476
1230
  var attachToAncestor = (hostRef, ancestorComponent) => {
1477
1231
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1478
- const index = ancestorComponent["s-p"].push(
1479
- new Promise(
1480
- (r) => hostRef.$onRenderResolve$ = () => {
1481
- ancestorComponent["s-p"].splice(index - 1, 1);
1482
- r();
1483
- }
1484
- )
1485
- );
1232
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1486
1233
  }
1487
1234
  };
1488
1235
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -1495,12 +1242,6 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
1495
1242
  }
1496
1243
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1497
1244
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1498
- if (isInitialLoad) {
1499
- queueMicrotask(() => {
1500
- dispatch();
1501
- });
1502
- return;
1503
- }
1504
1245
  return writeTask(dispatch) ;
1505
1246
  };
1506
1247
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -1517,15 +1258,18 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1517
1258
  {
1518
1259
  hostRef.$flags$ |= 256 /* isListenReady */;
1519
1260
  if (hostRef.$queuedListeners$) {
1520
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1261
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1521
1262
  hostRef.$queuedListeners$ = void 0;
1522
1263
  }
1523
1264
  }
1524
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1265
+ {
1266
+ maybePromise = safeCall(instance, "componentWillLoad");
1267
+ }
1525
1268
  } else {
1526
- maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
1269
+ {
1270
+ maybePromise = safeCall(instance, "componentWillUpdate");
1271
+ }
1527
1272
  }
1528
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
1529
1273
  endSchedule();
1530
1274
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1531
1275
  };
@@ -1568,7 +1312,7 @@ var callRender = (hostRef, instance, elm, isInitialLoad) => {
1568
1312
  try {
1569
1313
  instance = instance.render && instance.render();
1570
1314
  {
1571
- hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
1315
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1572
1316
  }
1573
1317
  {
1574
1318
  hostRef.$flags$ |= 2 /* hasRendered */;
@@ -1591,13 +1335,17 @@ var postUpdateComponent = (hostRef) => {
1591
1335
  const endPostUpdate = createTime("postUpdate", tagName);
1592
1336
  const instance = hostRef.$lazyInstance$ ;
1593
1337
  const ancestorComponent = hostRef.$ancestorComponent$;
1594
- safeCall(instance, "componentDidRender", void 0, elm);
1338
+ {
1339
+ safeCall(instance, "componentDidRender");
1340
+ }
1595
1341
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1596
1342
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1597
1343
  {
1598
1344
  addHydratedFlag(elm);
1599
1345
  }
1600
- safeCall(instance, "componentDidLoad", void 0, elm);
1346
+ {
1347
+ safeCall(instance, "componentDidLoad");
1348
+ }
1601
1349
  endPostUpdate();
1602
1350
  {
1603
1351
  hostRef.$onReadyResolve$(elm);
@@ -1606,7 +1354,9 @@ var postUpdateComponent = (hostRef) => {
1606
1354
  }
1607
1355
  }
1608
1356
  } else {
1609
- safeCall(instance, "componentDidUpdate", void 0, elm);
1357
+ {
1358
+ safeCall(instance, "componentDidUpdate");
1359
+ }
1610
1360
  endPostUpdate();
1611
1361
  }
1612
1362
  {
@@ -1620,14 +1370,13 @@ var postUpdateComponent = (hostRef) => {
1620
1370
  if (hostRef.$flags$ & 512 /* needsRerender */) {
1621
1371
  nextTick(() => scheduleUpdate(hostRef, false));
1622
1372
  }
1623
- hostRef.$flags$ &= -517;
1373
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1624
1374
  }
1625
1375
  };
1626
1376
  var forceUpdate = (ref) => {
1627
- var _a;
1628
1377
  {
1629
1378
  const hostRef = getHostRef(ref);
1630
- const isConnected = (_a = hostRef == null ? void 0 : hostRef.$hostElement$) == null ? void 0 : _a.isConnected;
1379
+ const isConnected = hostRef.$hostElement$.isConnected;
1631
1380
  if (isConnected && (hostRef.$flags$ & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1632
1381
  scheduleUpdate(hostRef, false);
1633
1382
  }
@@ -1635,14 +1384,17 @@ var forceUpdate = (ref) => {
1635
1384
  }
1636
1385
  };
1637
1386
  var appDidLoad = (who) => {
1387
+ {
1388
+ addHydratedFlag(doc.documentElement);
1389
+ }
1638
1390
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1639
1391
  };
1640
- var safeCall = (instance, method, arg, elm) => {
1392
+ var safeCall = (instance, method, arg) => {
1641
1393
  if (instance && instance[method]) {
1642
1394
  try {
1643
1395
  return instance[method](arg);
1644
1396
  } catch (e) {
1645
- consoleError(e, elm);
1397
+ consoleError(e);
1646
1398
  }
1647
1399
  }
1648
1400
  return void 0;
@@ -1656,21 +1408,16 @@ var addHydratedFlag = (elm) => {
1656
1408
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1657
1409
  var setValue = (ref, propName, newVal, cmpMeta) => {
1658
1410
  const hostRef = getHostRef(ref);
1659
- if (!hostRef) {
1660
- return;
1661
- }
1662
1411
  if (!hostRef) {
1663
1412
  throw new Error(
1664
- `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
1413
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
1665
1414
  );
1666
1415
  }
1667
1416
  const elm = hostRef.$hostElement$ ;
1668
1417
  const oldVal = hostRef.$instanceValues$.get(propName);
1669
1418
  const flags = hostRef.$flags$;
1670
1419
  const instance = hostRef.$lazyInstance$ ;
1671
- newVal = parsePropertyValue(
1672
- newVal,
1673
- cmpMeta.$members$[propName][0]);
1420
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1674
1421
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1675
1422
  const didValueChange = newVal !== oldVal && !areBothNaN;
1676
1423
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -1689,11 +1436,6 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
1689
1436
  }
1690
1437
  }
1691
1438
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1692
- if (instance.componentShouldUpdate) {
1693
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1694
- return;
1695
- }
1696
- }
1697
1439
  scheduleUpdate(hostRef, false);
1698
1440
  }
1699
1441
  }
@@ -1711,77 +1453,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1711
1453
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1712
1454
  members.map(([memberName, [memberFlags]]) => {
1713
1455
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1714
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1715
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1716
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1717
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1718
- Object.defineProperty(prototype, memberName, {
1719
- get() {
1720
- {
1721
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1722
- return getValue(this, memberName);
1723
- }
1724
- const ref = getHostRef(this);
1725
- const instance = ref ? ref.$lazyInstance$ : prototype;
1726
- if (!instance) return;
1727
- return instance[memberName];
1728
- }
1729
- },
1730
- configurable: true,
1731
- enumerable: true
1732
- });
1733
- }
1734
1456
  Object.defineProperty(prototype, memberName, {
1457
+ get() {
1458
+ return getValue(this, memberName);
1459
+ },
1735
1460
  set(newValue) {
1736
- const ref = getHostRef(this);
1737
- if (!ref) {
1738
- return;
1739
- }
1740
- if (origSetter) {
1741
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1742
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1743
- newValue = ref.$instanceValues$.get(memberName);
1744
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1745
- ref.$instanceValues$.set(memberName, currentValue);
1746
- }
1747
- origSetter.apply(this, [
1748
- parsePropertyValue(
1749
- newValue,
1750
- memberFlags)
1751
- ]);
1752
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1753
- setValue(this, memberName, newValue, cmpMeta);
1754
- return;
1755
- }
1756
- {
1757
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1758
- setValue(this, memberName, newValue, cmpMeta);
1759
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1760
- ref.$onReadyPromise$.then(() => {
1761
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1762
- ref.$lazyInstance$[memberName] = newValue;
1763
- }
1764
- });
1765
- }
1766
- return;
1767
- }
1768
- const setterSetVal = () => {
1769
- const currentValue = ref.$lazyInstance$[memberName];
1770
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1771
- ref.$instanceValues$.set(memberName, currentValue);
1772
- }
1773
- ref.$lazyInstance$[memberName] = parsePropertyValue(
1774
- newValue,
1775
- memberFlags);
1776
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1777
- };
1778
- if (ref.$lazyInstance$) {
1779
- setterSetVal();
1780
- } else {
1781
- ref.$onReadyPromise$.then(() => setterSetVal());
1782
- }
1783
- }
1784
- }
1461
+ setValue(this, memberName, newValue, cmpMeta);
1462
+ },
1463
+ configurable: true,
1464
+ enumerable: true
1785
1465
  });
1786
1466
  } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
1787
1467
  Object.defineProperty(prototype, memberName, {
@@ -1802,7 +1482,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1802
1482
  plt.jmp(() => {
1803
1483
  var _a2;
1804
1484
  const propName = attrNameToPropName.get(attrName);
1805
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1485
+ if (this.hasOwnProperty(propName)) {
1806
1486
  newValue = this[propName];
1807
1487
  delete this[propName];
1808
1488
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1811,7 +1491,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1811
1491
  } else if (propName == null) {
1812
1492
  const hostRef = getHostRef(this);
1813
1493
  const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
1814
- if (hostRef && flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1494
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
1815
1495
  const instance = hostRef.$lazyInstance$ ;
1816
1496
  const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
1817
1497
  entry == null ? void 0 : entry.forEach((callbackName) => {
@@ -1822,11 +1502,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1822
1502
  }
1823
1503
  return;
1824
1504
  }
1825
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1826
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1827
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1828
- this[propName] = newValue;
1829
- }
1505
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1830
1506
  });
1831
1507
  };
1832
1508
  Cstr.observedAttributes = Array.from(
@@ -1855,7 +1531,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1855
1531
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1856
1532
  const bundleId = cmpMeta.$lazyBundleId$;
1857
1533
  if (bundleId) {
1858
- const CstrImport = loadModule(cmpMeta, hostRef);
1534
+ const CstrImport = loadModule(cmpMeta);
1859
1535
  if (CstrImport && "then" in CstrImport) {
1860
1536
  const endLoad = uniqueTime();
1861
1537
  Cstr = await CstrImport;
@@ -1880,16 +1556,15 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1880
1556
  try {
1881
1557
  new Cstr(hostRef);
1882
1558
  } catch (e) {
1883
- consoleError(e, elm);
1559
+ consoleError(e);
1884
1560
  }
1885
1561
  {
1886
- hostRef.$flags$ &= -9 /* isConstructingInstance */;
1562
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1887
1563
  }
1888
1564
  {
1889
1565
  hostRef.$flags$ |= 128 /* isWatchReady */;
1890
1566
  }
1891
1567
  endNewInstance();
1892
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1893
1568
  } else {
1894
1569
  Cstr = elm.constructor;
1895
1570
  const cmpTag = elm.localName;
@@ -1916,19 +1591,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1916
1591
  schedule();
1917
1592
  }
1918
1593
  };
1919
- var fireConnectedCallback = (instance, elm) => {
1920
- {
1921
- safeCall(instance, "connectedCallback", void 0, elm);
1922
- }
1594
+ var fireConnectedCallback = (instance) => {
1923
1595
  };
1924
1596
 
1925
1597
  // src/runtime/connected-callback.ts
1926
1598
  var connectedCallback = (elm) => {
1927
1599
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1928
1600
  const hostRef = getHostRef(elm);
1929
- if (!hostRef) {
1930
- return;
1931
- }
1932
1601
  const cmpMeta = hostRef.$cmpMeta$;
1933
1602
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
1934
1603
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -1962,72 +1631,52 @@ var connectedCallback = (elm) => {
1962
1631
  }
1963
1632
  } else {
1964
1633
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1965
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1966
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1967
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1968
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1634
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1635
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1969
1636
  }
1970
1637
  }
1971
1638
  endConnected();
1972
1639
  }
1973
1640
  };
1974
1641
  var setContentReference = (elm) => {
1975
- if (!win.document) {
1976
- return;
1977
- }
1978
- const contentRefElm = elm["s-cr"] = win.document.createComment(
1642
+ const contentRefElm = elm["s-cr"] = doc.createComment(
1979
1643
  ""
1980
1644
  );
1981
1645
  contentRefElm["s-cn"] = true;
1982
1646
  insertBefore(elm, contentRefElm, elm.firstChild);
1983
1647
  };
1984
- var disconnectInstance = (instance, elm) => {
1985
- {
1986
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1987
- }
1648
+ var disconnectInstance = (instance) => {
1988
1649
  };
1989
1650
  var disconnectedCallback = async (elm) => {
1990
1651
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1991
1652
  const hostRef = getHostRef(elm);
1992
1653
  {
1993
- if (hostRef == null ? void 0 : hostRef.$rmListeners$) {
1654
+ if (hostRef.$rmListeners$) {
1994
1655
  hostRef.$rmListeners$.map((rmListener) => rmListener());
1995
1656
  hostRef.$rmListeners$ = void 0;
1996
1657
  }
1997
1658
  }
1998
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1999
- disconnectInstance(hostRef.$lazyInstance$, elm);
2000
- } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2001
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1659
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1660
+ hostRef.$onReadyPromise$.then(() => disconnectInstance());
2002
1661
  }
2003
1662
  }
2004
- if (rootAppliedStyles.has(elm)) {
2005
- rootAppliedStyles.delete(elm);
2006
- }
2007
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2008
- rootAppliedStyles.delete(elm.shadowRoot);
2009
- }
2010
1663
  };
2011
1664
 
2012
1665
  // src/runtime/bootstrap-lazy.ts
2013
1666
  var bootstrapLazy = (lazyBundles, options = {}) => {
2014
1667
  var _a;
2015
- if (!win.document) {
2016
- console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2017
- return;
2018
- }
2019
1668
  const endBootstrap = createTime();
2020
1669
  const cmpTags = [];
2021
1670
  const exclude = options.exclude || [];
2022
1671
  const customElements2 = win.customElements;
2023
- const head = win.document.head;
1672
+ const head = doc.head;
2024
1673
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2025
- const dataStyles = /* @__PURE__ */ win.document.createElement("style");
1674
+ const dataStyles = /* @__PURE__ */ doc.createElement("style");
2026
1675
  const deferredConnectedCallbacks = [];
2027
1676
  let appLoadFallback;
2028
1677
  let isBootstrapping = true;
2029
1678
  Object.assign(plt, options);
2030
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
1679
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
2031
1680
  let hasSlotRelocation = false;
2032
1681
  lazyBundles.map((lazyBundle) => {
2033
1682
  lazyBundle[1].map((compactMeta) => {
@@ -2064,7 +1713,12 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2064
1713
  if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2065
1714
  {
2066
1715
  if (!self.shadowRoot) {
2067
- createShadowRoot.call(self, cmpMeta);
1716
+ {
1717
+ self.attachShadow({
1718
+ mode: "open",
1719
+ delegatesFocus: !!(cmpMeta.$flags$ & 16 /* shadowDelegatesFocus */)
1720
+ });
1721
+ }
2068
1722
  } else {
2069
1723
  if (self.shadowRoot.mode !== "open") {
2070
1724
  throw new Error(
@@ -2077,9 +1731,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2077
1731
  }
2078
1732
  connectedCallback() {
2079
1733
  const hostRef = getHostRef(this);
2080
- if (!hostRef) {
2081
- return;
2082
- }
2083
1734
  if (!this.hasRegisteredEventListeners) {
2084
1735
  this.hasRegisteredEventListeners = true;
2085
1736
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
@@ -2096,24 +1747,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2096
1747
  }
2097
1748
  disconnectedCallback() {
2098
1749
  plt.jmp(() => disconnectedCallback(this));
2099
- plt.raf(() => {
2100
- var _a3;
2101
- const hostRef = getHostRef(this);
2102
- if (!hostRef) {
2103
- return;
2104
- }
2105
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2106
- if (i2 > -1) {
2107
- deferredConnectedCallbacks.splice(i2, 1);
2108
- }
2109
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2110
- delete hostRef.$vnode$.$elm$;
2111
- }
2112
- });
2113
1750
  }
2114
1751
  componentOnReady() {
2115
- var _a3;
2116
- return (_a3 = getHostRef(this)) == null ? void 0 : _a3.$onReadyPromise$;
1752
+ return getHostRef(this).$onReadyPromise$;
2117
1753
  }
2118
1754
  };
2119
1755
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
@@ -2135,7 +1771,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2135
1771
  }
2136
1772
  if (dataStyles.innerHTML.length) {
2137
1773
  dataStyles.setAttribute("data-styles", "");
2138
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1774
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
2139
1775
  if (nonce != null) {
2140
1776
  dataStyles.setAttribute("nonce", nonce);
2141
1777
  }
@@ -2156,9 +1792,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2156
1792
  // src/runtime/fragment.ts
2157
1793
  var Fragment = (_, children) => children;
2158
1794
  var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2159
- if (listeners && win.document) {
1795
+ if (listeners) {
2160
1796
  listeners.map(([flags, name, method]) => {
2161
- const target = getHostListenerTarget(win.document, elm, flags) ;
1797
+ const target = getHostListenerTarget(elm, flags) ;
2162
1798
  const handler = hostListenerProxy(hostRef, method);
2163
1799
  const opts = hostListenerOpts(flags);
2164
1800
  plt.ael(target, name, handler, opts);
@@ -2177,16 +1813,12 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2177
1813
  }
2178
1814
  }
2179
1815
  } catch (e) {
2180
- consoleError(e, hostRef.$hostElement$);
1816
+ consoleError(e);
2181
1817
  }
2182
1818
  };
2183
- var getHostListenerTarget = (doc, elm, flags) => {
2184
- if (flags & 4 /* TargetDocument */) {
2185
- return doc;
2186
- }
2187
- if (flags & 8 /* TargetWindow */) {
2188
- return win;
2189
- }
1819
+ var getHostListenerTarget = (elm, flags) => {
1820
+ if (flags & 4 /* TargetDocument */) return doc;
1821
+ if (flags & 8 /* TargetWindow */) return win;
2190
1822
  return elm;
2191
1823
  };
2192
1824
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -2197,4 +1829,4 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2197
1829
  // src/runtime/nonce.ts
2198
1830
  var setNonce = (nonce) => plt.$nonce$ = nonce;
2199
1831
 
2200
- export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, forceUpdate as f, globalFn as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1832
+ export { Fragment as F, Host as H, bootstrapLazy as b, createEvent as c, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };