@tarojs/components 3.5.7-alpha.9 → 3.5.8

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 (898) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/helper-db78e01a.js +0 -2
  3. package/dist/cjs/index-47a1959e.js +0 -2
  4. package/dist/cjs/{index-9174e0b1.js → index-7c61bee9.js} +234 -477
  5. package/dist/cjs/index-f9d21cc5.js +0 -2
  6. package/dist/cjs/index.cjs.js +0 -2
  7. package/dist/cjs/intersection-observer-dc4cfcef.js +0 -2
  8. package/dist/cjs/loader.cjs.js +3 -5
  9. package/dist/cjs/taro-ad-core.cjs.entry.js +2 -4
  10. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +2 -4
  11. package/dist/cjs/taro-audio-core.cjs.entry.js +2 -5
  12. package/dist/cjs/taro-block-core.cjs.entry.js +2 -4
  13. package/dist/cjs/taro-button-core.cjs.entry.js +2 -7
  14. package/dist/cjs/taro-camera-core.cjs.entry.js +2 -4
  15. package/dist/cjs/taro-canvas-core.cjs.entry.js +3 -6
  16. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +9 -15
  17. package/dist/cjs/taro-components.cjs.js +3 -5
  18. package/dist/cjs/taro-cover-image-core.cjs.entry.js +4 -7
  19. package/dist/cjs/taro-cover-view-core.cjs.entry.js +3 -7
  20. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +2 -4
  21. package/dist/cjs/taro-editor-core.cjs.entry.js +2 -4
  22. package/dist/cjs/taro-form-core.cjs.entry.js +39 -34
  23. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +2 -4
  24. package/dist/cjs/taro-icon-core.cjs.entry.js +2 -6
  25. package/dist/cjs/taro-image-core.cjs.entry.js +4 -7
  26. package/dist/cjs/taro-input-core.cjs.entry.js +14 -29
  27. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +2 -4
  28. package/dist/cjs/taro-label-core.cjs.entry.js +2 -5
  29. package/dist/cjs/taro-live-player-core.cjs.entry.js +2 -4
  30. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +2 -4
  31. package/dist/cjs/taro-map-core.cjs.entry.js +2 -4
  32. package/dist/cjs/taro-match-media-core.cjs.entry.js +2 -4
  33. package/dist/cjs/taro-movable-area-core.cjs.entry.js +157 -0
  34. package/dist/cjs/{taro-movable-area-core_2.cjs.entry.js → taro-movable-view-core.cjs.entry.js} +54 -169
  35. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +2 -4
  36. package/dist/cjs/taro-navigator-core.cjs.entry.js +2 -6
  37. package/dist/cjs/taro-official-account-core.cjs.entry.js +2 -4
  38. package/dist/cjs/taro-open-data-core.cjs.entry.js +2 -4
  39. package/dist/cjs/taro-page-container-core.cjs.entry.js +2 -4
  40. package/dist/cjs/taro-page-meta-core.cjs.entry.js +2 -4
  41. package/dist/cjs/taro-picker-core_2.cjs.entry.js +15 -31
  42. package/dist/cjs/taro-picker-view-column-core.cjs.entry.js +95 -0
  43. package/dist/cjs/{taro-picker-view-column-core_2.cjs.entry.js → taro-picker-view-core.cjs.entry.js} +6 -101
  44. package/dist/cjs/taro-progress-core.cjs.entry.js +5 -7
  45. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +8 -10
  46. package/dist/cjs/taro-radio-core_2.cjs.entry.js +9 -15
  47. package/dist/cjs/taro-rich-text-core.cjs.entry.js +2 -5
  48. package/dist/cjs/taro-root-portal-core.cjs.entry.js +2 -4
  49. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +22 -28
  50. package/dist/cjs/taro-share-element-core.cjs.entry.js +2 -4
  51. package/dist/cjs/taro-slider-core.cjs.entry.js +40 -37
  52. package/dist/cjs/taro-slot-core.cjs.entry.js +7 -4
  53. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +77 -46
  54. package/dist/cjs/taro-switch-core.cjs.entry.js +8 -12
  55. package/dist/cjs/taro-tabbar.cjs.entry.js +4 -12
  56. package/dist/cjs/taro-text-core.cjs.entry.js +2 -4
  57. package/dist/cjs/taro-textarea-core.cjs.entry.js +10 -21
  58. package/dist/cjs/taro-video-control_3.cjs.entry.js +27723 -81
  59. package/dist/cjs/taro-view-core.cjs.entry.js +3 -7
  60. package/dist/cjs/taro-voip-room-core.cjs.entry.js +2 -4
  61. package/dist/cjs/taro-web-view-core.cjs.entry.js +2 -5
  62. package/dist/collection/collection-manifest.json +4 -16
  63. package/dist/collection/components/ad/ad.js +1 -2
  64. package/dist/collection/components/ad-custom/ad-custom.js +1 -2
  65. package/dist/collection/components/audio/audio.js +190 -199
  66. package/dist/collection/components/block/block.js +2 -2
  67. package/dist/collection/components/button/button.js +217 -230
  68. package/dist/collection/components/camera/camera.js +1 -2
  69. package/dist/collection/components/canvas/canvas.js +58 -67
  70. package/dist/collection/components/checkbox/checkbox-group.js +42 -50
  71. package/dist/collection/components/checkbox/checkbox.js +162 -175
  72. package/dist/collection/components/cover-image/cover-image.js +74 -83
  73. package/dist/collection/components/cover-view/cover-view.js +118 -131
  74. package/dist/collection/components/custom-wrapper/custom-wrapper.js +2 -2
  75. package/dist/collection/components/editor/editor.js +1 -2
  76. package/dist/collection/components/form/form.js +74 -66
  77. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +1 -2
  78. package/dist/collection/components/icon/icon.js +56 -61
  79. package/dist/collection/components/image/image.js +113 -125
  80. package/dist/collection/components/input/input.js +296 -336
  81. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +1 -2
  82. package/dist/collection/components/label/label.js +22 -27
  83. package/dist/collection/components/live-player/live-player.js +1 -2
  84. package/dist/collection/components/live-pusher/live-pusher.js +1 -2
  85. package/dist/collection/components/map/map.js +1 -2
  86. package/dist/collection/components/match-media/match-media.js +1 -2
  87. package/dist/collection/components/movable-area/movable-area.js +26 -34
  88. package/dist/collection/components/movable-area/movable-view.js +424 -397
  89. package/dist/collection/components/navigation-bar/navigation-bar.js +1 -2
  90. package/dist/collection/components/navigator/navigator.js +145 -158
  91. package/dist/collection/components/official-account/official-account.js +1 -2
  92. package/dist/collection/components/open-data/open-data.js +1 -2
  93. package/dist/collection/components/page-container/page-container.js +1 -2
  94. package/dist/collection/components/page-meta/page-meta.js +1 -2
  95. package/dist/collection/components/picker/constant.js +0 -1
  96. package/dist/collection/components/picker/picker-group.js +176 -240
  97. package/dist/collection/components/picker/picker.js +257 -261
  98. package/dist/collection/components/picker/utils.js +0 -1
  99. package/dist/collection/components/picker-view/picker-view-column.js +147 -158
  100. package/dist/collection/components/picker-view/picker-view.js +159 -171
  101. package/dist/collection/components/progress/progress.js +157 -153
  102. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js +114 -121
  103. package/dist/collection/components/radio/radio-group.js +43 -50
  104. package/dist/collection/components/radio/radio.js +144 -152
  105. package/dist/collection/components/rich-text/rich-text.js +23 -27
  106. package/dist/collection/components/root-portal/root-portal.js +1 -2
  107. package/dist/collection/components/scroll-view/scroll-view.js +220 -242
  108. package/dist/collection/components/share-element/share-element.js +1 -2
  109. package/dist/collection/components/slider/slider.js +283 -279
  110. package/dist/collection/components/slot/slot.js +5 -2
  111. package/dist/collection/components/swiper/swiper-item.js +21 -26
  112. package/dist/collection/components/swiper/swiper.js +391 -346
  113. package/dist/collection/components/switch/switch.js +139 -153
  114. package/dist/collection/components/tabbar/tabbar-item.js +6 -2
  115. package/dist/collection/components/tabbar/tabbar.js +70 -86
  116. package/dist/collection/components/text/text.js +30 -35
  117. package/dist/collection/components/textarea/textarea.js +227 -262
  118. package/dist/collection/components/video/utils.js +0 -1
  119. package/dist/collection/components/video/video-control.js +247 -252
  120. package/dist/collection/components/video/video-danmu.js +66 -72
  121. package/dist/collection/components/video/video.js +775 -733
  122. package/dist/collection/components/view/view.js +118 -131
  123. package/dist/collection/components/voip-room/voip-room.js +1 -2
  124. package/dist/collection/components/web-view/web-view.js +57 -68
  125. package/dist/collection/index.js +0 -1
  126. package/dist/collection/utils/helper.js +0 -1
  127. package/dist/collection/utils/index.js +0 -1
  128. package/dist/collection/utils/style.js +0 -1
  129. package/dist/collection/utils/url.js +0 -1
  130. package/dist/esm/helper-3d0ecf0f.js +0 -2
  131. package/dist/esm/index-1d8e8acd.js +0 -2
  132. package/dist/esm/{index-5d881caf.js → index-8809c729.js} +234 -477
  133. package/dist/esm/index-cad8203e.js +0 -2
  134. package/dist/esm/index.js +0 -2
  135. package/dist/esm/intersection-observer-8e4c7135.js +0 -2
  136. package/dist/esm/loader.js +3 -5
  137. package/dist/esm/polyfills/css-shim.js +1 -1
  138. package/dist/esm/taro-ad-core.entry.js +2 -4
  139. package/dist/esm/taro-ad-custom-core.entry.js +2 -4
  140. package/dist/esm/taro-audio-core.entry.js +2 -5
  141. package/dist/esm/taro-block-core.entry.js +2 -4
  142. package/dist/esm/taro-button-core.entry.js +2 -7
  143. package/dist/esm/taro-camera-core.entry.js +2 -4
  144. package/dist/esm/taro-canvas-core.entry.js +3 -6
  145. package/dist/esm/taro-checkbox-core_2.entry.js +9 -15
  146. package/dist/esm/taro-components.js +3 -5
  147. package/dist/esm/taro-cover-image-core.entry.js +4 -7
  148. package/dist/esm/taro-cover-view-core.entry.js +3 -7
  149. package/dist/esm/taro-custom-wrapper-core.entry.js +2 -4
  150. package/dist/esm/taro-editor-core.entry.js +2 -4
  151. package/dist/esm/taro-form-core.entry.js +39 -34
  152. package/dist/esm/taro-functional-page-navigator-core.entry.js +2 -4
  153. package/dist/esm/taro-icon-core.entry.js +2 -6
  154. package/dist/esm/taro-image-core.entry.js +4 -7
  155. package/dist/esm/taro-input-core.entry.js +14 -29
  156. package/dist/esm/taro-keyboard-accessory-core.entry.js +2 -4
  157. package/dist/esm/taro-label-core.entry.js +2 -5
  158. package/dist/esm/taro-live-player-core.entry.js +2 -4
  159. package/dist/esm/taro-live-pusher-core.entry.js +2 -4
  160. package/dist/esm/taro-map-core.entry.js +2 -4
  161. package/dist/esm/taro-match-media-core.entry.js +2 -4
  162. package/dist/esm/taro-movable-area-core.entry.js +153 -0
  163. package/dist/esm/{taro-movable-area-core_2.entry.js → taro-movable-view-core.entry.js} +55 -169
  164. package/dist/esm/taro-navigation-bar-core.entry.js +2 -4
  165. package/dist/esm/taro-navigator-core.entry.js +2 -6
  166. package/dist/esm/taro-official-account-core.entry.js +2 -4
  167. package/dist/esm/taro-open-data-core.entry.js +2 -4
  168. package/dist/esm/taro-page-container-core.entry.js +2 -4
  169. package/dist/esm/taro-page-meta-core.entry.js +2 -4
  170. package/dist/esm/taro-picker-core_2.entry.js +15 -31
  171. package/dist/esm/taro-picker-view-column-core.entry.js +91 -0
  172. package/dist/esm/{taro-picker-view-column-core_2.entry.js → taro-picker-view-core.entry.js} +3 -97
  173. package/dist/esm/taro-progress-core.entry.js +5 -7
  174. package/dist/esm/taro-pull-to-refresh.entry.js +8 -10
  175. package/dist/esm/taro-radio-core_2.entry.js +9 -15
  176. package/dist/esm/taro-rich-text-core.entry.js +2 -5
  177. package/dist/esm/taro-root-portal-core.entry.js +2 -4
  178. package/dist/esm/taro-scroll-view-core.entry.js +22 -28
  179. package/dist/esm/taro-share-element-core.entry.js +2 -4
  180. package/dist/esm/taro-slider-core.entry.js +40 -37
  181. package/dist/esm/taro-slot-core.entry.js +7 -4
  182. package/dist/esm/taro-swiper-core_2.entry.js +77 -46
  183. package/dist/esm/taro-switch-core.entry.js +8 -12
  184. package/dist/esm/taro-tabbar.entry.js +4 -12
  185. package/dist/esm/taro-text-core.entry.js +2 -4
  186. package/dist/esm/taro-textarea-core.entry.js +10 -21
  187. package/dist/esm/taro-video-control_3.entry.js +27717 -75
  188. package/dist/esm/taro-view-core.entry.js +3 -7
  189. package/dist/esm/taro-voip-room-core.entry.js +2 -4
  190. package/dist/esm/taro-web-view-core.entry.js +2 -5
  191. package/dist/esm-es5/helper-3d0ecf0f.js +1 -2
  192. package/dist/esm-es5/index-1d8e8acd.js +1 -2
  193. package/dist/esm-es5/index-8809c729.js +1 -0
  194. package/dist/esm-es5/index-cad8203e.js +1 -2
  195. package/dist/esm-es5/index.js +0 -2
  196. package/dist/esm-es5/intersection-observer-8e4c7135.js +1 -2
  197. package/dist/esm-es5/loader.js +1 -2
  198. package/dist/esm-es5/taro-ad-core.entry.js +1 -2
  199. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -2
  200. package/dist/esm-es5/taro-audio-core.entry.js +1 -2
  201. package/dist/esm-es5/taro-block-core.entry.js +1 -2
  202. package/dist/esm-es5/taro-button-core.entry.js +1 -2
  203. package/dist/esm-es5/taro-camera-core.entry.js +1 -2
  204. package/dist/esm-es5/taro-canvas-core.entry.js +1 -2
  205. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -2
  206. package/dist/esm-es5/taro-components.js +1 -2
  207. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -2
  208. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -2
  209. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -2
  210. package/dist/esm-es5/taro-editor-core.entry.js +1 -2
  211. package/dist/esm-es5/taro-form-core.entry.js +1 -2
  212. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -2
  213. package/dist/esm-es5/taro-icon-core.entry.js +1 -2
  214. package/dist/esm-es5/taro-image-core.entry.js +1 -2
  215. package/dist/esm-es5/taro-input-core.entry.js +1 -2
  216. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -2
  217. package/dist/esm-es5/taro-label-core.entry.js +1 -2
  218. package/dist/esm-es5/taro-live-player-core.entry.js +1 -2
  219. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -2
  220. package/dist/esm-es5/taro-map-core.entry.js +1 -2
  221. package/dist/esm-es5/taro-match-media-core.entry.js +1 -2
  222. package/dist/esm-es5/taro-movable-area-core.entry.js +1 -0
  223. package/dist/esm-es5/taro-movable-view-core.entry.js +1 -0
  224. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -2
  225. package/dist/esm-es5/taro-navigator-core.entry.js +1 -2
  226. package/dist/esm-es5/taro-official-account-core.entry.js +1 -2
  227. package/dist/esm-es5/taro-open-data-core.entry.js +1 -2
  228. package/dist/esm-es5/taro-page-container-core.entry.js +1 -2
  229. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -2
  230. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -2
  231. package/dist/esm-es5/taro-picker-view-column-core.entry.js +1 -0
  232. package/dist/esm-es5/taro-picker-view-core.entry.js +1 -0
  233. package/dist/esm-es5/taro-progress-core.entry.js +1 -2
  234. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -2
  235. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -2
  236. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -2
  237. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -2
  238. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -2
  239. package/dist/esm-es5/taro-share-element-core.entry.js +1 -2
  240. package/dist/esm-es5/taro-slider-core.entry.js +1 -2
  241. package/dist/esm-es5/taro-slot-core.entry.js +1 -2
  242. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -2
  243. package/dist/esm-es5/taro-switch-core.entry.js +1 -2
  244. package/dist/esm-es5/taro-tabbar.entry.js +1 -2
  245. package/dist/esm-es5/taro-text-core.entry.js +1 -2
  246. package/dist/esm-es5/taro-textarea-core.entry.js +1 -2
  247. package/dist/esm-es5/taro-video-control_3.entry.js +365 -2
  248. package/dist/esm-es5/taro-view-core.entry.js +1 -2
  249. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -2
  250. package/dist/esm-es5/taro-web-view-core.entry.js +1 -2
  251. package/dist/taro-components/index.esm.js +0 -2
  252. package/dist/taro-components/p-028e2728.entry.js +1 -0
  253. package/dist/taro-components/p-0380841f.system.js +1 -0
  254. package/dist/taro-components/p-059912fd.js +1 -0
  255. package/dist/taro-components/p-06178a0c.entry.js +1 -0
  256. package/dist/taro-components/{p-dcfb7d97.system.entry.js → p-06b9d39c.system.entry.js} +1 -2
  257. package/dist/taro-components/p-06e6864b.system.entry.js +1 -0
  258. package/dist/taro-components/{p-8a3620a6.system.entry.js → p-07294134.system.entry.js} +1 -2
  259. package/dist/taro-components/{p-9f1ca602.system.entry.js → p-075458e5.system.entry.js} +1 -2
  260. package/dist/taro-components/p-10c47df8.system.entry.js +1 -0
  261. package/dist/taro-components/p-15e45ed6.system.js +1 -2
  262. package/dist/taro-components/p-232ebfae.system.entry.js +1 -0
  263. package/dist/taro-components/p-25df0ce9.entry.js +1 -0
  264. package/dist/taro-components/p-27126803.system.entry.js +1 -0
  265. package/dist/taro-components/p-275d883f.system.entry.js +1 -0
  266. package/dist/taro-components/p-27c80869.system.entry.js +1 -0
  267. package/dist/taro-components/p-2ec47545.entry.js +1 -0
  268. package/dist/taro-components/p-3255f11f.system.entry.js +1 -0
  269. package/dist/taro-components/p-34178401.entry.js +1 -0
  270. package/dist/taro-components/p-3549b6d2.entry.js +1 -0
  271. package/dist/taro-components/p-362998cf.entry.js +1 -0
  272. package/dist/taro-components/p-3b1d2d37.system.js +1 -2
  273. package/dist/taro-components/p-3c6090fd.entry.js +1 -0
  274. package/dist/taro-components/{p-301a8b85.system.entry.js → p-3e11c8cc.system.entry.js} +1 -2
  275. package/dist/taro-components/p-4262d1b6.entry.js +1 -0
  276. package/dist/taro-components/p-42630f45.entry.js +1 -0
  277. package/dist/taro-components/p-44398c17.system.entry.js +1 -0
  278. package/dist/taro-components/p-44cbb351.system.js +1 -0
  279. package/dist/taro-components/p-4ada10aa.entry.js +1 -0
  280. package/dist/taro-components/{p-1743a04b.system.js → p-4c1a7cae.system.entry.js} +27 -28
  281. package/dist/taro-components/p-4cf436f9.entry.js +1 -0
  282. package/dist/taro-components/p-4d826fb7.entry.js +1 -0
  283. package/dist/taro-components/p-50ea2036.system.js +1 -2
  284. package/dist/taro-components/p-55266a1f.entry.js +1 -0
  285. package/dist/taro-components/p-56c86512.entry.js +1 -0
  286. package/dist/taro-components/p-5733124c.entry.js +1 -0
  287. package/dist/taro-components/p-5746d7ce.js +1 -2
  288. package/dist/taro-components/p-57a2a441.entry.js +1 -0
  289. package/dist/taro-components/p-59d93770.entry.js +1 -0
  290. package/dist/taro-components/p-5a2305e7.entry.js +1 -0
  291. package/dist/taro-components/p-5a374cb9.entry.js +1 -0
  292. package/dist/taro-components/p-5c87902f.system.entry.js +1 -0
  293. package/dist/taro-components/p-5e223bab.system.entry.js +1 -0
  294. package/dist/taro-components/p-5f18259d.system.entry.js +1 -0
  295. package/dist/taro-components/p-61f225ef.system.js +1 -2
  296. package/dist/taro-components/p-62fc514e.entry.js +1 -0
  297. package/dist/taro-components/p-64447f5a.system.entry.js +1 -0
  298. package/dist/taro-components/p-663d1bb9.system.js +1 -2
  299. package/dist/taro-components/p-67222d90.system.entry.js +1 -0
  300. package/dist/taro-components/{p-4b27df71.system.entry.js → p-692d986d.system.entry.js} +1 -2
  301. package/dist/taro-components/p-6a96da58.js +1 -2
  302. package/dist/taro-components/p-6aa557f0.entry.js +1 -0
  303. package/dist/taro-components/{p-580a72d1.system.entry.js → p-6ad59489.system.entry.js} +1 -2
  304. package/dist/taro-components/p-72f327e1.js +1 -2
  305. package/dist/taro-components/p-72f858e4.entry.js +1 -0
  306. package/dist/taro-components/{p-c4cf58af.system.entry.js → p-733cc64a.system.entry.js} +1 -2
  307. package/dist/taro-components/p-7374537f.entry.js +1 -0
  308. package/dist/taro-components/p-7407013d.entry.js +1 -0
  309. package/dist/taro-components/p-76724e58.js +2 -3
  310. package/dist/taro-components/p-7d329ab0.entry.js +1 -0
  311. package/dist/taro-components/{p-8bec95d4.system.entry.js → p-7e960ac3.system.entry.js} +1 -2
  312. package/dist/taro-components/p-82661d45.system.entry.js +1 -0
  313. package/dist/taro-components/p-8475421b.system.entry.js +1 -0
  314. package/dist/taro-components/p-8788dc46.system.entry.js +1 -0
  315. package/dist/taro-components/p-886571e5.entry.js +1 -0
  316. package/dist/taro-components/p-888fac99.entry.js +1 -0
  317. package/dist/taro-components/p-8aea3de3.entry.js +1 -0
  318. package/dist/taro-components/p-8c8be53b.entry.js +1 -0
  319. package/dist/taro-components/p-8cf86f31.system.entry.js +1 -0
  320. package/dist/taro-components/{p-f0d0160d.system.entry.js → p-8e2b048e.system.entry.js} +1 -2
  321. package/dist/taro-components/p-9234cc1d.entry.js +1 -0
  322. package/dist/taro-components/p-92699438.entry.js +1 -0
  323. package/dist/taro-components/{p-59418be7.system.entry.js → p-93eed5d7.system.entry.js} +1 -2
  324. package/dist/taro-components/p-99d17a1a.entry.js +365 -0
  325. package/dist/taro-components/p-9a0e70b1.entry.js +1 -0
  326. package/dist/taro-components/p-9afbb423.system.entry.js +1 -0
  327. package/dist/taro-components/p-9b39a940.entry.js +1 -0
  328. package/dist/taro-components/{p-1cd1c507.system.entry.js → p-a5496bf5.system.entry.js} +1 -2
  329. package/dist/taro-components/{p-439a3349.system.entry.js → p-a63fbc50.system.entry.js} +1 -2
  330. package/dist/taro-components/p-ab1256fe.entry.js +1 -0
  331. package/dist/taro-components/p-ad6ad7e3.system.entry.js +1 -0
  332. package/dist/taro-components/p-afbcd093.entry.js +1 -0
  333. package/dist/taro-components/{p-c5c331bf.system.entry.js → p-b11aaf69.system.entry.js} +1 -2
  334. package/dist/taro-components/p-b1ae9401.entry.js +1 -0
  335. package/dist/taro-components/p-b2800ccd.entry.js +1 -0
  336. package/dist/taro-components/p-b3b677fc.entry.js +1 -0
  337. package/dist/taro-components/p-b3d961f9.system.entry.js +1 -0
  338. package/dist/taro-components/p-b60820b4.entry.js +1 -0
  339. package/dist/taro-components/p-b7639674.entry.js +1 -0
  340. package/dist/taro-components/{p-c0e3c822.system.entry.js → p-b7681c76.system.entry.js} +1 -2
  341. package/dist/taro-components/p-b7ac0b7f.system.entry.js +1 -0
  342. package/dist/taro-components/p-b9903f15.system.entry.js +1 -0
  343. package/dist/taro-components/p-bd706d39.entry.js +1 -0
  344. package/dist/taro-components/{p-21b77a13.system.entry.js → p-c5fd5c7f.system.entry.js} +1 -2
  345. package/dist/taro-components/p-c92bafb6.system.entry.js +1 -0
  346. package/dist/taro-components/{p-b04a56bd.system.entry.js → p-c93bb915.system.entry.js} +1 -2
  347. package/dist/taro-components/p-cf048af9.entry.js +1 -0
  348. package/dist/taro-components/{p-45b6ea0c.system.entry.js → p-d075934f.system.entry.js} +1 -2
  349. package/dist/taro-components/{p-a6f2dc54.system.entry.js → p-d4da725f.system.entry.js} +1 -2
  350. package/dist/taro-components/p-d5f3080c.entry.js +1 -0
  351. package/dist/taro-components/{p-b500c116.system.entry.js → p-d6662ab3.system.entry.js} +1 -2
  352. package/dist/taro-components/p-df3b544a.system.entry.js +1 -0
  353. package/dist/taro-components/p-dff55efd.entry.js +1 -0
  354. package/dist/taro-components/{p-8c8fe164.system.entry.js → p-e671c8c5.system.entry.js} +1 -2
  355. package/dist/taro-components/p-eec00033.entry.js +1 -0
  356. package/dist/taro-components/p-eeed74e3.system.entry.js +1 -0
  357. package/dist/taro-components/p-ef006b23.entry.js +1 -0
  358. package/dist/taro-components/{p-f2c75971.system.entry.js → p-f2803c2e.system.entry.js} +1 -2
  359. package/dist/taro-components/p-f40e1218.system.entry.js +1 -0
  360. package/dist/taro-components/{p-701b0286.system.entry.js → p-f4ea8a56.system.entry.js} +1 -2
  361. package/dist/taro-components/p-f5f1c3b7.system.entry.js +1 -0
  362. package/dist/taro-components/{p-4fbb8b4c.system.entry.js → p-f7c80795.system.entry.js} +1 -2
  363. package/dist/taro-components/p-fa2a9bab.entry.js +1 -0
  364. package/dist/taro-components/{p-cbe2436d.system.entry.js → p-fc9f4fd7.system.entry.js} +1 -2
  365. package/dist/taro-components/p-fec6ac36.entry.js +1 -0
  366. package/dist/taro-components/p-ff84986d.entry.js +1 -0
  367. package/dist/taro-components/p-ffefd74f.entry.js +1 -0
  368. package/dist/taro-components/taro-components.esm.js +1 -2
  369. package/dist/taro-components/taro-components.js +1 -2
  370. package/dist/types/components/checkbox/checkbox.d.ts +2 -2
  371. package/dist/types/components/cover-image/cover-image.d.ts +1 -1
  372. package/dist/types/components/form/form.d.ts +7 -4
  373. package/dist/types/components/image/image.d.ts +1 -1
  374. package/dist/types/components/input/input.d.ts +3 -4
  375. package/dist/types/components/movable-area/movable-view.d.ts +3 -3
  376. package/dist/types/components/progress/progress.d.ts +1 -1
  377. package/dist/types/components/radio/radio.d.ts +2 -2
  378. package/dist/types/components/scroll-view/scroll-view.d.ts +1 -1
  379. package/dist/types/components/slider/slider.d.ts +4 -3
  380. package/dist/types/components/slot/slot.d.ts +1 -0
  381. package/dist/types/components/swiper/swiper.d.ts +4 -0
  382. package/dist/types/components/textarea/textarea.d.ts +0 -1
  383. package/dist/types/components/video/utils.d.ts +1 -1
  384. package/dist/types/components.d.ts +78 -183
  385. package/dist/types/stencil-public-runtime.d.ts +4 -20
  386. package/{dist/react/component-lib → dist-h5/react/components}/index.js +1 -1
  387. package/{dist/react/component-lib → dist-h5/react/components}/input.js +5 -5
  388. package/{dist → dist-h5}/react/index.js +0 -0
  389. package/{dist/react/component-lib → dist-h5/react/utils}/reactify-wc.js +20 -10
  390. package/{dist/vue2/component-lib → dist-h5/vue/components}/icon.js +2 -2
  391. package/{dist/vue2/component-lib → dist-h5/vue/components}/image.js +2 -2
  392. package/{dist/vue2/component-lib/components.js → dist-h5/vue/components/index.js} +0 -0
  393. package/{dist/vue2/component-lib → dist-h5/vue/components}/picker.js +2 -2
  394. package/{dist/vue2/component-lib → dist-h5/vue/components}/scroll-view.js +2 -2
  395. package/{dist/vue2/component-lib → dist-h5/vue/components}/text.js +2 -2
  396. package/{dist/vue2/component-lib → dist-h5/vue}/createComponent.js +0 -0
  397. package/{dist/vue2/component-lib → dist-h5/vue}/createFormsComponent.js +0 -0
  398. package/{dist/vue2/component-lib → dist-h5/vue}/index.js +3 -4
  399. package/{dist/vue2/component-lib → dist-h5/vue}/mixins/listeners.js +0 -0
  400. package/{dist/vue2/component-lib → dist-h5/vue}/mixins/refs.js +0 -0
  401. package/{dist/vue3/component-lib → dist-h5/vue3/components}/icon.js +2 -2
  402. package/{dist/vue3/component-lib → dist-h5/vue3/components}/image.js +2 -2
  403. package/{dist/vue3/component-lib → dist-h5/vue3/components}/index.js +2 -2
  404. package/{dist/vue3/component-lib → dist-h5/vue3/components}/scroll-view.js +2 -2
  405. package/{dist/vue3/component-lib → dist-h5/vue3/components}/text.js +2 -2
  406. package/{dist/vue3/component-lib → dist-h5/vue3}/createComponent.js +1 -1
  407. package/{dist/vue3/component-lib → dist-h5/vue3}/createFormsComponent.js +0 -0
  408. package/{dist/vue3/component-lib → dist-h5/vue3}/forwardRef.js +0 -0
  409. package/{dist → dist-h5}/vue3/index.js +0 -0
  410. package/loader/package.json +0 -1
  411. package/package.json +28 -25
  412. package/types/AnimationVideo.d.ts +62 -0
  413. package/types/AnimationView.d.ts +45 -0
  414. package/types/ArCamera.d.ts +50 -0
  415. package/types/AwemeData.d.ts +43 -0
  416. package/types/CommentDetail.d.ts +72 -0
  417. package/types/CommentList.d.ts +128 -0
  418. package/types/ContactButton.d.ts +53 -0
  419. package/types/FollowSwan.d.ts +28 -0
  420. package/types/InlinePaymentPanel.d.ts +58 -0
  421. package/types/Input.d.ts +3 -3
  422. package/types/Lifestyle.d.ts +26 -0
  423. package/types/Like.d.ts +107 -0
  424. package/types/Login.d.ts +45 -0
  425. package/types/Lottie.d.ts +113 -0
  426. package/types/Map.d.ts +1 -1
  427. package/types/NativeSlot.d.ts +32 -0
  428. package/types/RtcRoom.d.ts +104 -0
  429. package/types/RtcRoomItem.d.ts +26 -0
  430. package/types/Slot.d.ts +1 -1
  431. package/types/Swiper.d.ts +12 -0
  432. package/types/TabItem.d.ts +35 -0
  433. package/types/Tabs.d.ts +58 -0
  434. package/types/Video.d.ts +1 -3
  435. package/types/View.d.ts +7 -6
  436. package/types/VoipRoom.d.ts +1 -1
  437. package/types/index.vue3.d.ts +267 -259
  438. package/dist/cjs/helper-db78e01a.js.map +0 -1
  439. package/dist/cjs/hls-67cbc62d.js +0 -27624
  440. package/dist/cjs/hls-67cbc62d.js.map +0 -1
  441. package/dist/cjs/index-47a1959e.js.map +0 -1
  442. package/dist/cjs/index-9174e0b1.js.map +0 -1
  443. package/dist/cjs/index-f9d21cc5.js.map +0 -1
  444. package/dist/cjs/index.cjs.js.map +0 -1
  445. package/dist/cjs/intersection-observer-dc4cfcef.js.map +0 -1
  446. package/dist/cjs/loader.cjs.js.map +0 -1
  447. package/dist/cjs/taro-ad-core.cjs.entry.js.map +0 -1
  448. package/dist/cjs/taro-ad-custom-core.cjs.entry.js.map +0 -1
  449. package/dist/cjs/taro-audio-core.cjs.entry.js.map +0 -1
  450. package/dist/cjs/taro-block-core.cjs.entry.js.map +0 -1
  451. package/dist/cjs/taro-button-core.cjs.entry.js.map +0 -1
  452. package/dist/cjs/taro-camera-core.cjs.entry.js.map +0 -1
  453. package/dist/cjs/taro-canvas-core.cjs.entry.js.map +0 -1
  454. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js.map +0 -1
  455. package/dist/cjs/taro-components.cjs.js.map +0 -1
  456. package/dist/cjs/taro-cover-image-core.cjs.entry.js.map +0 -1
  457. package/dist/cjs/taro-cover-view-core.cjs.entry.js.map +0 -1
  458. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js.map +0 -1
  459. package/dist/cjs/taro-editor-core.cjs.entry.js.map +0 -1
  460. package/dist/cjs/taro-form-core.cjs.entry.js.map +0 -1
  461. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js.map +0 -1
  462. package/dist/cjs/taro-icon-core.cjs.entry.js.map +0 -1
  463. package/dist/cjs/taro-image-core.cjs.entry.js.map +0 -1
  464. package/dist/cjs/taro-input-core.cjs.entry.js.map +0 -1
  465. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js.map +0 -1
  466. package/dist/cjs/taro-label-core.cjs.entry.js.map +0 -1
  467. package/dist/cjs/taro-live-player-core.cjs.entry.js.map +0 -1
  468. package/dist/cjs/taro-live-pusher-core.cjs.entry.js.map +0 -1
  469. package/dist/cjs/taro-map-core.cjs.entry.js.map +0 -1
  470. package/dist/cjs/taro-match-media-core.cjs.entry.js.map +0 -1
  471. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js.map +0 -1
  472. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js.map +0 -1
  473. package/dist/cjs/taro-navigator-core.cjs.entry.js.map +0 -1
  474. package/dist/cjs/taro-official-account-core.cjs.entry.js.map +0 -1
  475. package/dist/cjs/taro-open-data-core.cjs.entry.js.map +0 -1
  476. package/dist/cjs/taro-page-container-core.cjs.entry.js.map +0 -1
  477. package/dist/cjs/taro-page-meta-core.cjs.entry.js.map +0 -1
  478. package/dist/cjs/taro-picker-core_2.cjs.entry.js.map +0 -1
  479. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js.map +0 -1
  480. package/dist/cjs/taro-progress-core.cjs.entry.js.map +0 -1
  481. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js.map +0 -1
  482. package/dist/cjs/taro-radio-core_2.cjs.entry.js.map +0 -1
  483. package/dist/cjs/taro-rich-text-core.cjs.entry.js.map +0 -1
  484. package/dist/cjs/taro-root-portal-core.cjs.entry.js.map +0 -1
  485. package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +0 -1
  486. package/dist/cjs/taro-share-element-core.cjs.entry.js.map +0 -1
  487. package/dist/cjs/taro-slider-core.cjs.entry.js.map +0 -1
  488. package/dist/cjs/taro-slot-core.cjs.entry.js.map +0 -1
  489. package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +0 -1
  490. package/dist/cjs/taro-switch-core.cjs.entry.js.map +0 -1
  491. package/dist/cjs/taro-tabbar.cjs.entry.js.map +0 -1
  492. package/dist/cjs/taro-text-core.cjs.entry.js.map +0 -1
  493. package/dist/cjs/taro-textarea-core.cjs.entry.js.map +0 -1
  494. package/dist/cjs/taro-video-control_3.cjs.entry.js.map +0 -1
  495. package/dist/cjs/taro-view-core.cjs.entry.js.map +0 -1
  496. package/dist/cjs/taro-voip-room-core.cjs.entry.js.map +0 -1
  497. package/dist/cjs/taro-web-view-core.cjs.entry.js.map +0 -1
  498. package/dist/collection/components/ad/ad.js.map +0 -1
  499. package/dist/collection/components/ad-custom/ad-custom.js.map +0 -1
  500. package/dist/collection/components/audio/audio.js.map +0 -1
  501. package/dist/collection/components/block/block.js.map +0 -1
  502. package/dist/collection/components/button/button.js.map +0 -1
  503. package/dist/collection/components/camera/camera.js.map +0 -1
  504. package/dist/collection/components/canvas/canvas.js.map +0 -1
  505. package/dist/collection/components/checkbox/checkbox-group.js.map +0 -1
  506. package/dist/collection/components/checkbox/checkbox.js.map +0 -1
  507. package/dist/collection/components/cover-image/cover-image.js.map +0 -1
  508. package/dist/collection/components/cover-view/cover-view.js.map +0 -1
  509. package/dist/collection/components/custom-wrapper/custom-wrapper.js.map +0 -1
  510. package/dist/collection/components/editor/editor.js.map +0 -1
  511. package/dist/collection/components/form/form.js.map +0 -1
  512. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js.map +0 -1
  513. package/dist/collection/components/icon/icon.js.map +0 -1
  514. package/dist/collection/components/image/image.js.map +0 -1
  515. package/dist/collection/components/input/input.js.map +0 -1
  516. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js.map +0 -1
  517. package/dist/collection/components/label/label.js.map +0 -1
  518. package/dist/collection/components/live-player/live-player.js.map +0 -1
  519. package/dist/collection/components/live-pusher/live-pusher.js.map +0 -1
  520. package/dist/collection/components/map/map.js.map +0 -1
  521. package/dist/collection/components/match-media/match-media.js.map +0 -1
  522. package/dist/collection/components/movable-area/movable-area.js.map +0 -1
  523. package/dist/collection/components/movable-area/movable-view.js.map +0 -1
  524. package/dist/collection/components/navigation-bar/navigation-bar.js.map +0 -1
  525. package/dist/collection/components/navigator/navigator.js.map +0 -1
  526. package/dist/collection/components/official-account/official-account.js.map +0 -1
  527. package/dist/collection/components/open-data/open-data.js.map +0 -1
  528. package/dist/collection/components/page-container/page-container.js.map +0 -1
  529. package/dist/collection/components/page-meta/page-meta.js.map +0 -1
  530. package/dist/collection/components/picker/constant.js.map +0 -1
  531. package/dist/collection/components/picker/picker-group.js.map +0 -1
  532. package/dist/collection/components/picker/picker.js.map +0 -1
  533. package/dist/collection/components/picker/utils.js.map +0 -1
  534. package/dist/collection/components/picker-view/picker-view-column.js.map +0 -1
  535. package/dist/collection/components/picker-view/picker-view.js.map +0 -1
  536. package/dist/collection/components/progress/progress.js.map +0 -1
  537. package/dist/collection/components/pull-to-refresh/pull-to-refresh.js.map +0 -1
  538. package/dist/collection/components/radio/radio-group.js.map +0 -1
  539. package/dist/collection/components/radio/radio.js.map +0 -1
  540. package/dist/collection/components/rich-text/rich-text.js.map +0 -1
  541. package/dist/collection/components/root-portal/root-portal.js.map +0 -1
  542. package/dist/collection/components/scroll-view/scroll-view.js.map +0 -1
  543. package/dist/collection/components/share-element/share-element.js.map +0 -1
  544. package/dist/collection/components/slider/slider.js.map +0 -1
  545. package/dist/collection/components/slot/slot.js.map +0 -1
  546. package/dist/collection/components/swiper/swiper-item.js.map +0 -1
  547. package/dist/collection/components/swiper/swiper.js.map +0 -1
  548. package/dist/collection/components/switch/switch.js.map +0 -1
  549. package/dist/collection/components/tabbar/tabbar-item.js.map +0 -1
  550. package/dist/collection/components/tabbar/tabbar.js.map +0 -1
  551. package/dist/collection/components/text/text.js.map +0 -1
  552. package/dist/collection/components/textarea/textarea.js.map +0 -1
  553. package/dist/collection/components/video/utils.js.map +0 -1
  554. package/dist/collection/components/video/video-control.js.map +0 -1
  555. package/dist/collection/components/video/video-danmu.js.map +0 -1
  556. package/dist/collection/components/video/video.js.map +0 -1
  557. package/dist/collection/components/view/view.js.map +0 -1
  558. package/dist/collection/components/voip-room/voip-room.js.map +0 -1
  559. package/dist/collection/components/web-view/web-view.js.map +0 -1
  560. package/dist/collection/index.js.map +0 -1
  561. package/dist/collection/utils/helper.js.map +0 -1
  562. package/dist/collection/utils/index.js.map +0 -1
  563. package/dist/collection/utils/style.js.map +0 -1
  564. package/dist/collection/utils/url.js.map +0 -1
  565. package/dist/esm/helper-3d0ecf0f.js.map +0 -1
  566. package/dist/esm/hls-221423a1.js +0 -27622
  567. package/dist/esm/hls-221423a1.js.map +0 -1
  568. package/dist/esm/index-1d8e8acd.js.map +0 -1
  569. package/dist/esm/index-5d881caf.js.map +0 -1
  570. package/dist/esm/index-cad8203e.js.map +0 -1
  571. package/dist/esm/index.js.map +0 -1
  572. package/dist/esm/intersection-observer-8e4c7135.js.map +0 -1
  573. package/dist/esm/loader.js.map +0 -1
  574. package/dist/esm/taro-ad-core.entry.js.map +0 -1
  575. package/dist/esm/taro-ad-custom-core.entry.js.map +0 -1
  576. package/dist/esm/taro-audio-core.entry.js.map +0 -1
  577. package/dist/esm/taro-block-core.entry.js.map +0 -1
  578. package/dist/esm/taro-button-core.entry.js.map +0 -1
  579. package/dist/esm/taro-camera-core.entry.js.map +0 -1
  580. package/dist/esm/taro-canvas-core.entry.js.map +0 -1
  581. package/dist/esm/taro-checkbox-core_2.entry.js.map +0 -1
  582. package/dist/esm/taro-components.js.map +0 -1
  583. package/dist/esm/taro-cover-image-core.entry.js.map +0 -1
  584. package/dist/esm/taro-cover-view-core.entry.js.map +0 -1
  585. package/dist/esm/taro-custom-wrapper-core.entry.js.map +0 -1
  586. package/dist/esm/taro-editor-core.entry.js.map +0 -1
  587. package/dist/esm/taro-form-core.entry.js.map +0 -1
  588. package/dist/esm/taro-functional-page-navigator-core.entry.js.map +0 -1
  589. package/dist/esm/taro-icon-core.entry.js.map +0 -1
  590. package/dist/esm/taro-image-core.entry.js.map +0 -1
  591. package/dist/esm/taro-input-core.entry.js.map +0 -1
  592. package/dist/esm/taro-keyboard-accessory-core.entry.js.map +0 -1
  593. package/dist/esm/taro-label-core.entry.js.map +0 -1
  594. package/dist/esm/taro-live-player-core.entry.js.map +0 -1
  595. package/dist/esm/taro-live-pusher-core.entry.js.map +0 -1
  596. package/dist/esm/taro-map-core.entry.js.map +0 -1
  597. package/dist/esm/taro-match-media-core.entry.js.map +0 -1
  598. package/dist/esm/taro-movable-area-core_2.entry.js.map +0 -1
  599. package/dist/esm/taro-navigation-bar-core.entry.js.map +0 -1
  600. package/dist/esm/taro-navigator-core.entry.js.map +0 -1
  601. package/dist/esm/taro-official-account-core.entry.js.map +0 -1
  602. package/dist/esm/taro-open-data-core.entry.js.map +0 -1
  603. package/dist/esm/taro-page-container-core.entry.js.map +0 -1
  604. package/dist/esm/taro-page-meta-core.entry.js.map +0 -1
  605. package/dist/esm/taro-picker-core_2.entry.js.map +0 -1
  606. package/dist/esm/taro-picker-view-column-core_2.entry.js.map +0 -1
  607. package/dist/esm/taro-progress-core.entry.js.map +0 -1
  608. package/dist/esm/taro-pull-to-refresh.entry.js.map +0 -1
  609. package/dist/esm/taro-radio-core_2.entry.js.map +0 -1
  610. package/dist/esm/taro-rich-text-core.entry.js.map +0 -1
  611. package/dist/esm/taro-root-portal-core.entry.js.map +0 -1
  612. package/dist/esm/taro-scroll-view-core.entry.js.map +0 -1
  613. package/dist/esm/taro-share-element-core.entry.js.map +0 -1
  614. package/dist/esm/taro-slider-core.entry.js.map +0 -1
  615. package/dist/esm/taro-slot-core.entry.js.map +0 -1
  616. package/dist/esm/taro-swiper-core_2.entry.js.map +0 -1
  617. package/dist/esm/taro-switch-core.entry.js.map +0 -1
  618. package/dist/esm/taro-tabbar.entry.js.map +0 -1
  619. package/dist/esm/taro-text-core.entry.js.map +0 -1
  620. package/dist/esm/taro-textarea-core.entry.js.map +0 -1
  621. package/dist/esm/taro-video-control_3.entry.js.map +0 -1
  622. package/dist/esm/taro-view-core.entry.js.map +0 -1
  623. package/dist/esm/taro-voip-room-core.entry.js.map +0 -1
  624. package/dist/esm/taro-web-view-core.entry.js.map +0 -1
  625. package/dist/esm-es5/helper-3d0ecf0f.js.map +0 -1
  626. package/dist/esm-es5/hls-221423a1.js +0 -366
  627. package/dist/esm-es5/hls-221423a1.js.map +0 -1
  628. package/dist/esm-es5/index-1d8e8acd.js.map +0 -1
  629. package/dist/esm-es5/index-5d881caf.js +0 -3
  630. package/dist/esm-es5/index-5d881caf.js.map +0 -1
  631. package/dist/esm-es5/index-cad8203e.js.map +0 -1
  632. package/dist/esm-es5/index.js.map +0 -1
  633. package/dist/esm-es5/intersection-observer-8e4c7135.js.map +0 -1
  634. package/dist/esm-es5/loader.js.map +0 -1
  635. package/dist/esm-es5/taro-ad-core.entry.js.map +0 -1
  636. package/dist/esm-es5/taro-ad-custom-core.entry.js.map +0 -1
  637. package/dist/esm-es5/taro-audio-core.entry.js.map +0 -1
  638. package/dist/esm-es5/taro-block-core.entry.js.map +0 -1
  639. package/dist/esm-es5/taro-button-core.entry.js.map +0 -1
  640. package/dist/esm-es5/taro-camera-core.entry.js.map +0 -1
  641. package/dist/esm-es5/taro-canvas-core.entry.js.map +0 -1
  642. package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +0 -1
  643. package/dist/esm-es5/taro-components.js.map +0 -1
  644. package/dist/esm-es5/taro-cover-image-core.entry.js.map +0 -1
  645. package/dist/esm-es5/taro-cover-view-core.entry.js.map +0 -1
  646. package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +0 -1
  647. package/dist/esm-es5/taro-editor-core.entry.js.map +0 -1
  648. package/dist/esm-es5/taro-form-core.entry.js.map +0 -1
  649. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +0 -1
  650. package/dist/esm-es5/taro-icon-core.entry.js.map +0 -1
  651. package/dist/esm-es5/taro-image-core.entry.js.map +0 -1
  652. package/dist/esm-es5/taro-input-core.entry.js.map +0 -1
  653. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +0 -1
  654. package/dist/esm-es5/taro-label-core.entry.js.map +0 -1
  655. package/dist/esm-es5/taro-live-player-core.entry.js.map +0 -1
  656. package/dist/esm-es5/taro-live-pusher-core.entry.js.map +0 -1
  657. package/dist/esm-es5/taro-map-core.entry.js.map +0 -1
  658. package/dist/esm-es5/taro-match-media-core.entry.js.map +0 -1
  659. package/dist/esm-es5/taro-movable-area-core_2.entry.js +0 -2
  660. package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +0 -1
  661. package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +0 -1
  662. package/dist/esm-es5/taro-navigator-core.entry.js.map +0 -1
  663. package/dist/esm-es5/taro-official-account-core.entry.js.map +0 -1
  664. package/dist/esm-es5/taro-open-data-core.entry.js.map +0 -1
  665. package/dist/esm-es5/taro-page-container-core.entry.js.map +0 -1
  666. package/dist/esm-es5/taro-page-meta-core.entry.js.map +0 -1
  667. package/dist/esm-es5/taro-picker-core_2.entry.js.map +0 -1
  668. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +0 -2
  669. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +0 -1
  670. package/dist/esm-es5/taro-progress-core.entry.js.map +0 -1
  671. package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +0 -1
  672. package/dist/esm-es5/taro-radio-core_2.entry.js.map +0 -1
  673. package/dist/esm-es5/taro-rich-text-core.entry.js.map +0 -1
  674. package/dist/esm-es5/taro-root-portal-core.entry.js.map +0 -1
  675. package/dist/esm-es5/taro-scroll-view-core.entry.js.map +0 -1
  676. package/dist/esm-es5/taro-share-element-core.entry.js.map +0 -1
  677. package/dist/esm-es5/taro-slider-core.entry.js.map +0 -1
  678. package/dist/esm-es5/taro-slot-core.entry.js.map +0 -1
  679. package/dist/esm-es5/taro-swiper-core_2.entry.js.map +0 -1
  680. package/dist/esm-es5/taro-switch-core.entry.js.map +0 -1
  681. package/dist/esm-es5/taro-tabbar.entry.js.map +0 -1
  682. package/dist/esm-es5/taro-text-core.entry.js.map +0 -1
  683. package/dist/esm-es5/taro-textarea-core.entry.js.map +0 -1
  684. package/dist/esm-es5/taro-video-control_3.entry.js.map +0 -1
  685. package/dist/esm-es5/taro-view-core.entry.js.map +0 -1
  686. package/dist/esm-es5/taro-voip-room-core.entry.js.map +0 -1
  687. package/dist/esm-es5/taro-web-view-core.entry.js.map +0 -1
  688. package/dist/react/components.js +0 -65
  689. package/dist/react/helper.js +0 -13
  690. package/dist/react/react-component-lib/createComponent.js +0 -126
  691. package/dist/react/react-component-lib/createOverlayComponent.js +0 -208
  692. package/dist/react/react-component-lib/index.js +0 -2
  693. package/dist/react/react-component-lib/interfaces.js +0 -1
  694. package/dist/react/react-component-lib/utils/attachProps.js +0 -107
  695. package/dist/react/react-component-lib/utils/case.js +0 -10
  696. package/dist/react/react-component-lib/utils/dev.js +0 -12
  697. package/dist/react/react-component-lib/utils/index.js +0 -35
  698. package/dist/taro-components/index.esm.js.map +0 -1
  699. package/dist/taro-components/p-001ef419.system.entry.js +0 -2
  700. package/dist/taro-components/p-001ef419.system.entry.js.map +0 -1
  701. package/dist/taro-components/p-01dc54a5.entry.js +0 -2
  702. package/dist/taro-components/p-01dc54a5.entry.js.map +0 -1
  703. package/dist/taro-components/p-0382d7d0.system.entry.js +0 -2
  704. package/dist/taro-components/p-0382d7d0.system.entry.js.map +0 -1
  705. package/dist/taro-components/p-0a896bc7.entry.js +0 -2
  706. package/dist/taro-components/p-0a896bc7.entry.js.map +0 -1
  707. package/dist/taro-components/p-0b38e6c7.system.entry.js +0 -2
  708. package/dist/taro-components/p-0b38e6c7.system.entry.js.map +0 -1
  709. package/dist/taro-components/p-0d36ef6b.entry.js +0 -2
  710. package/dist/taro-components/p-0d36ef6b.entry.js.map +0 -1
  711. package/dist/taro-components/p-0ee6a068.entry.js +0 -2
  712. package/dist/taro-components/p-0ee6a068.entry.js.map +0 -1
  713. package/dist/taro-components/p-12e4b019.entry.js +0 -2
  714. package/dist/taro-components/p-12e4b019.entry.js.map +0 -1
  715. package/dist/taro-components/p-15dced71.system.entry.js +0 -2
  716. package/dist/taro-components/p-15dced71.system.entry.js.map +0 -1
  717. package/dist/taro-components/p-15e45ed6.system.js.map +0 -1
  718. package/dist/taro-components/p-1743a04b.system.js.map +0 -1
  719. package/dist/taro-components/p-17657dca.entry.js +0 -2
  720. package/dist/taro-components/p-17657dca.entry.js.map +0 -1
  721. package/dist/taro-components/p-1b2556e2.system.entry.js +0 -2
  722. package/dist/taro-components/p-1b2556e2.system.entry.js.map +0 -1
  723. package/dist/taro-components/p-1b64d2a2.entry.js +0 -2
  724. package/dist/taro-components/p-1b64d2a2.entry.js.map +0 -1
  725. package/dist/taro-components/p-1bd3d09b.system.entry.js +0 -2
  726. package/dist/taro-components/p-1bd3d09b.system.entry.js.map +0 -1
  727. package/dist/taro-components/p-1cb76199.entry.js +0 -2
  728. package/dist/taro-components/p-1cb76199.entry.js.map +0 -1
  729. package/dist/taro-components/p-1cd1c507.system.entry.js.map +0 -1
  730. package/dist/taro-components/p-1e436d5b.entry.js +0 -2
  731. package/dist/taro-components/p-1e436d5b.entry.js.map +0 -1
  732. package/dist/taro-components/p-2096bc5f.entry.js +0 -2
  733. package/dist/taro-components/p-2096bc5f.entry.js.map +0 -1
  734. package/dist/taro-components/p-20ec6387.entry.js +0 -2
  735. package/dist/taro-components/p-20ec6387.entry.js.map +0 -1
  736. package/dist/taro-components/p-21b77a13.system.entry.js.map +0 -1
  737. package/dist/taro-components/p-2243a376.entry.js +0 -2
  738. package/dist/taro-components/p-2243a376.entry.js.map +0 -1
  739. package/dist/taro-components/p-29f04296.entry.js +0 -2
  740. package/dist/taro-components/p-29f04296.entry.js.map +0 -1
  741. package/dist/taro-components/p-301a8b85.system.entry.js.map +0 -1
  742. package/dist/taro-components/p-3b1d2d37.system.js.map +0 -1
  743. package/dist/taro-components/p-3b9a1125.entry.js +0 -2
  744. package/dist/taro-components/p-3b9a1125.entry.js.map +0 -1
  745. package/dist/taro-components/p-3c256e0e.entry.js +0 -2
  746. package/dist/taro-components/p-3c256e0e.entry.js.map +0 -1
  747. package/dist/taro-components/p-3e6b29c6.entry.js +0 -2
  748. package/dist/taro-components/p-3e6b29c6.entry.js.map +0 -1
  749. package/dist/taro-components/p-427a2872.entry.js +0 -2
  750. package/dist/taro-components/p-427a2872.entry.js.map +0 -1
  751. package/dist/taro-components/p-439a3349.system.entry.js.map +0 -1
  752. package/dist/taro-components/p-447386b2.system.entry.js +0 -2
  753. package/dist/taro-components/p-447386b2.system.entry.js.map +0 -1
  754. package/dist/taro-components/p-45b6ea0c.system.entry.js.map +0 -1
  755. package/dist/taro-components/p-49a6cae4.system.entry.js +0 -2
  756. package/dist/taro-components/p-49a6cae4.system.entry.js.map +0 -1
  757. package/dist/taro-components/p-4b05e003.entry.js +0 -2
  758. package/dist/taro-components/p-4b05e003.entry.js.map +0 -1
  759. package/dist/taro-components/p-4b27df71.system.entry.js.map +0 -1
  760. package/dist/taro-components/p-4b71c926.entry.js +0 -2
  761. package/dist/taro-components/p-4b71c926.entry.js.map +0 -1
  762. package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +0 -1
  763. package/dist/taro-components/p-50ea2036.system.js.map +0 -1
  764. package/dist/taro-components/p-55519002.entry.js +0 -2
  765. package/dist/taro-components/p-55519002.entry.js.map +0 -1
  766. package/dist/taro-components/p-570222e2.entry.js +0 -2
  767. package/dist/taro-components/p-570222e2.entry.js.map +0 -1
  768. package/dist/taro-components/p-5746d7ce.js.map +0 -1
  769. package/dist/taro-components/p-580a72d1.system.entry.js.map +0 -1
  770. package/dist/taro-components/p-59418be7.system.entry.js.map +0 -1
  771. package/dist/taro-components/p-59e02aca.system.entry.js +0 -2
  772. package/dist/taro-components/p-59e02aca.system.entry.js.map +0 -1
  773. package/dist/taro-components/p-5b552407.entry.js +0 -2
  774. package/dist/taro-components/p-5b552407.entry.js.map +0 -1
  775. package/dist/taro-components/p-5bfefd19.js +0 -3
  776. package/dist/taro-components/p-5bfefd19.js.map +0 -1
  777. package/dist/taro-components/p-61f225ef.system.js.map +0 -1
  778. package/dist/taro-components/p-663d1bb9.system.js.map +0 -1
  779. package/dist/taro-components/p-6a96da58.js.map +0 -1
  780. package/dist/taro-components/p-6af8be19.entry.js +0 -2
  781. package/dist/taro-components/p-6af8be19.entry.js.map +0 -1
  782. package/dist/taro-components/p-6ea2995b.entry.js +0 -2
  783. package/dist/taro-components/p-6ea2995b.entry.js.map +0 -1
  784. package/dist/taro-components/p-6f8af69f.entry.js +0 -2
  785. package/dist/taro-components/p-6f8af69f.entry.js.map +0 -1
  786. package/dist/taro-components/p-701b0286.system.entry.js.map +0 -1
  787. package/dist/taro-components/p-72f327e1.js.map +0 -1
  788. package/dist/taro-components/p-72f626ab.system.entry.js +0 -2
  789. package/dist/taro-components/p-72f626ab.system.entry.js.map +0 -1
  790. package/dist/taro-components/p-755be847.system.entry.js +0 -2
  791. package/dist/taro-components/p-755be847.system.entry.js.map +0 -1
  792. package/dist/taro-components/p-76724e58.js.map +0 -1
  793. package/dist/taro-components/p-8231e748.entry.js +0 -2
  794. package/dist/taro-components/p-8231e748.entry.js.map +0 -1
  795. package/dist/taro-components/p-8a3620a6.system.entry.js.map +0 -1
  796. package/dist/taro-components/p-8a8f286f.system.js +0 -3
  797. package/dist/taro-components/p-8a8f286f.system.js.map +0 -1
  798. package/dist/taro-components/p-8bec95d4.system.entry.js.map +0 -1
  799. package/dist/taro-components/p-8c8fe164.system.entry.js.map +0 -1
  800. package/dist/taro-components/p-93cc7adc.entry.js +0 -2
  801. package/dist/taro-components/p-93cc7adc.entry.js.map +0 -1
  802. package/dist/taro-components/p-96a784f1.entry.js +0 -2
  803. package/dist/taro-components/p-96a784f1.entry.js.map +0 -1
  804. package/dist/taro-components/p-99bbe34a.system.entry.js +0 -2
  805. package/dist/taro-components/p-99bbe34a.system.entry.js.map +0 -1
  806. package/dist/taro-components/p-9e20c25c.entry.js +0 -2
  807. package/dist/taro-components/p-9e20c25c.entry.js.map +0 -1
  808. package/dist/taro-components/p-9f1ca602.system.entry.js.map +0 -1
  809. package/dist/taro-components/p-a1ace8c7.system.entry.js +0 -2
  810. package/dist/taro-components/p-a1ace8c7.system.entry.js.map +0 -1
  811. package/dist/taro-components/p-a29509fa.system.entry.js +0 -2
  812. package/dist/taro-components/p-a29509fa.system.entry.js.map +0 -1
  813. package/dist/taro-components/p-a2aab820.entry.js +0 -2
  814. package/dist/taro-components/p-a2aab820.entry.js.map +0 -1
  815. package/dist/taro-components/p-a6f2dc54.system.entry.js.map +0 -1
  816. package/dist/taro-components/p-ab105c26.entry.js +0 -2
  817. package/dist/taro-components/p-ab105c26.entry.js.map +0 -1
  818. package/dist/taro-components/p-b04a56bd.system.entry.js.map +0 -1
  819. package/dist/taro-components/p-b10cb428.entry.js +0 -2
  820. package/dist/taro-components/p-b10cb428.entry.js.map +0 -1
  821. package/dist/taro-components/p-b4ec48c3.entry.js +0 -2
  822. package/dist/taro-components/p-b4ec48c3.entry.js.map +0 -1
  823. package/dist/taro-components/p-b500c116.system.entry.js.map +0 -1
  824. package/dist/taro-components/p-b832f4e8.entry.js +0 -2
  825. package/dist/taro-components/p-b832f4e8.entry.js.map +0 -1
  826. package/dist/taro-components/p-b88a55b4.system.entry.js +0 -2
  827. package/dist/taro-components/p-b88a55b4.system.entry.js.map +0 -1
  828. package/dist/taro-components/p-b90926cc.entry.js +0 -2
  829. package/dist/taro-components/p-b90926cc.entry.js.map +0 -1
  830. package/dist/taro-components/p-ba743573.entry.js +0 -2
  831. package/dist/taro-components/p-ba743573.entry.js.map +0 -1
  832. package/dist/taro-components/p-be3f5ac0.entry.js +0 -2
  833. package/dist/taro-components/p-be3f5ac0.entry.js.map +0 -1
  834. package/dist/taro-components/p-beea63a7.entry.js +0 -2
  835. package/dist/taro-components/p-beea63a7.entry.js.map +0 -1
  836. package/dist/taro-components/p-c0e3c822.system.entry.js.map +0 -1
  837. package/dist/taro-components/p-c3acf0ea.system.entry.js +0 -2
  838. package/dist/taro-components/p-c3acf0ea.system.entry.js.map +0 -1
  839. package/dist/taro-components/p-c3bb8fa6.entry.js +0 -2
  840. package/dist/taro-components/p-c3bb8fa6.entry.js.map +0 -1
  841. package/dist/taro-components/p-c4cf58af.system.entry.js.map +0 -1
  842. package/dist/taro-components/p-c5c331bf.system.entry.js.map +0 -1
  843. package/dist/taro-components/p-cb17d8bd.system.js +0 -2
  844. package/dist/taro-components/p-cb17d8bd.system.js.map +0 -1
  845. package/dist/taro-components/p-cbe2436d.system.entry.js.map +0 -1
  846. package/dist/taro-components/p-cd6a7eea.entry.js +0 -2
  847. package/dist/taro-components/p-cd6a7eea.entry.js.map +0 -1
  848. package/dist/taro-components/p-d4b6f19e.system.entry.js +0 -2
  849. package/dist/taro-components/p-d4b6f19e.system.entry.js.map +0 -1
  850. package/dist/taro-components/p-d5234e7e.js +0 -366
  851. package/dist/taro-components/p-d5234e7e.js.map +0 -1
  852. package/dist/taro-components/p-d5579efa.system.entry.js +0 -2
  853. package/dist/taro-components/p-d5579efa.system.entry.js.map +0 -1
  854. package/dist/taro-components/p-d619f198.system.entry.js +0 -2
  855. package/dist/taro-components/p-d619f198.system.entry.js.map +0 -1
  856. package/dist/taro-components/p-d7ab3e23.system.entry.js +0 -2
  857. package/dist/taro-components/p-d7ab3e23.system.entry.js.map +0 -1
  858. package/dist/taro-components/p-d7f4b10f.entry.js +0 -2
  859. package/dist/taro-components/p-d7f4b10f.entry.js.map +0 -1
  860. package/dist/taro-components/p-d85b216d.entry.js +0 -2
  861. package/dist/taro-components/p-d85b216d.entry.js.map +0 -1
  862. package/dist/taro-components/p-dcb48fd9.system.entry.js +0 -2
  863. package/dist/taro-components/p-dcb48fd9.system.entry.js.map +0 -1
  864. package/dist/taro-components/p-dcfb7d97.system.entry.js.map +0 -1
  865. package/dist/taro-components/p-de762042.entry.js +0 -2
  866. package/dist/taro-components/p-de762042.entry.js.map +0 -1
  867. package/dist/taro-components/p-df862d0c.entry.js +0 -2
  868. package/dist/taro-components/p-df862d0c.entry.js.map +0 -1
  869. package/dist/taro-components/p-e0d6b00b.entry.js +0 -2
  870. package/dist/taro-components/p-e0d6b00b.entry.js.map +0 -1
  871. package/dist/taro-components/p-e4f1cc50.entry.js +0 -2
  872. package/dist/taro-components/p-e4f1cc50.entry.js.map +0 -1
  873. package/dist/taro-components/p-e59f999e.entry.js +0 -2
  874. package/dist/taro-components/p-e59f999e.entry.js.map +0 -1
  875. package/dist/taro-components/p-e7239faa.system.entry.js +0 -2
  876. package/dist/taro-components/p-e7239faa.system.entry.js.map +0 -1
  877. package/dist/taro-components/p-e7965c55.system.entry.js +0 -2
  878. package/dist/taro-components/p-e7965c55.system.entry.js.map +0 -1
  879. package/dist/taro-components/p-e98c07c3.system.entry.js +0 -2
  880. package/dist/taro-components/p-e98c07c3.system.entry.js.map +0 -1
  881. package/dist/taro-components/p-e9abe3e2.entry.js +0 -2
  882. package/dist/taro-components/p-e9abe3e2.entry.js.map +0 -1
  883. package/dist/taro-components/p-eddd00e9.system.entry.js +0 -2
  884. package/dist/taro-components/p-eddd00e9.system.entry.js.map +0 -1
  885. package/dist/taro-components/p-ef029c30.system.entry.js +0 -2
  886. package/dist/taro-components/p-ef029c30.system.entry.js.map +0 -1
  887. package/dist/taro-components/p-f0d0160d.system.entry.js.map +0 -1
  888. package/dist/taro-components/p-f120c272.entry.js +0 -2
  889. package/dist/taro-components/p-f120c272.entry.js.map +0 -1
  890. package/dist/taro-components/p-f2c75971.system.entry.js.map +0 -1
  891. package/dist/taro-components/p-ffc44634.entry.js +0 -2
  892. package/dist/taro-components/p-ffc44634.entry.js.map +0 -1
  893. package/dist/taro-components/taro-components.esm.js.map +0 -1
  894. package/dist/vue2/components.js +0 -490
  895. package/dist/vue2/index.js +0 -26
  896. package/dist/vue2/vue-component-lib/utils.js +0 -45
  897. package/dist/vue3/components.js +0 -64
  898. package/dist/vue3/vue-component-lib/utils.js +0 -201
@@ -22,14 +22,6 @@ function _interopNamespace(e) {
22
22
 
23
23
  const NAMESPACE = 'taro-components';
24
24
 
25
- /**
26
- * Virtual DOM patching algorithm based on Snabbdom by
27
- * Simon Friis Vindum (@paldepind)
28
- * Licensed under the MIT License
29
- * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
- *
31
- * Modified for Stencil's renderer and slot projection
32
- */
33
25
  let contentRef;
34
26
  let hostTagName;
35
27
  let useNativeShadowDom = false;
@@ -37,6 +29,63 @@ let checkSlotFallbackVisibility = false;
37
29
  let checkSlotRelocate = false;
38
30
  let isSvgMode = false;
39
31
  let queuePending = false;
32
+ const win = typeof window !== 'undefined' ? window : {};
33
+ const doc = win.document || { head: {} };
34
+ const plt = {
35
+ $flags$: 0,
36
+ $resourcesUrl$: '',
37
+ jmp: (h) => h(),
38
+ raf: (h) => requestAnimationFrame(h),
39
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
40
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
41
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
42
+ };
43
+ const promiseResolve = (v) => Promise.resolve(v);
44
+ const supportsConstructibleStylesheets = /*@__PURE__*/ (() => {
45
+ try {
46
+ new CSSStyleSheet();
47
+ return typeof new CSSStyleSheet().replace === 'function';
48
+ }
49
+ catch (e) { }
50
+ return false;
51
+ })()
52
+ ;
53
+ const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
54
+ if (listeners) {
55
+ listeners.map(([flags, name, method]) => {
56
+ const target = getHostListenerTarget(elm, flags) ;
57
+ const handler = hostListenerProxy(hostRef, method);
58
+ const opts = hostListenerOpts(flags);
59
+ plt.ael(target, name, handler, opts);
60
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
61
+ });
62
+ }
63
+ };
64
+ const hostListenerProxy = (hostRef, methodName) => (ev) => {
65
+ try {
66
+ {
67
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
68
+ // instance is ready, let's call it's member method for this event
69
+ hostRef.$lazyInstance$[methodName](ev);
70
+ }
71
+ else {
72
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
73
+ }
74
+ }
75
+ }
76
+ catch (e) {
77
+ consoleError(e);
78
+ }
79
+ };
80
+ const getHostListenerTarget = (elm, flags) => {
81
+ if (flags & 4 /* TargetDocument */)
82
+ return doc;
83
+ return elm;
84
+ };
85
+ // prettier-ignore
86
+ const hostListenerOpts = (flags) => (flags & 2 /* Capture */) !== 0;
87
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
88
+ const XLINK_NS = 'http://www.w3.org/1999/xlink';
40
89
  const createTime = (fnName, tagName = '') => {
41
90
  {
42
91
  return () => {
@@ -51,8 +100,59 @@ const uniqueTime = (key, measureText) => {
51
100
  };
52
101
  }
53
102
  };
54
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
55
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
103
+ const rootAppliedStyles = new WeakMap();
104
+ const registerStyle = (scopeId, cssText, allowCS) => {
105
+ let style = styles.get(scopeId);
106
+ if (supportsConstructibleStylesheets && allowCS) {
107
+ style = (style || new CSSStyleSheet());
108
+ style.replace(cssText);
109
+ }
110
+ else {
111
+ style = cssText;
112
+ }
113
+ styles.set(scopeId, style);
114
+ };
115
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
116
+ let scopeId = getScopeId(cmpMeta);
117
+ let style = styles.get(scopeId);
118
+ // if an element is NOT connected then getRootNode() will return the wrong root node
119
+ // so the fallback is to always use the document for the root node in those cases
120
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : doc;
121
+ if (style) {
122
+ if (typeof style === 'string') {
123
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
124
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
125
+ let styleElm;
126
+ if (!appliedStyles) {
127
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
128
+ }
129
+ if (!appliedStyles.has(scopeId)) {
130
+ {
131
+ {
132
+ styleElm = doc.createElement('style');
133
+ styleElm.innerHTML = style;
134
+ }
135
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
136
+ }
137
+ if (appliedStyles) {
138
+ appliedStyles.add(scopeId);
139
+ }
140
+ }
141
+ }
142
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
143
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
144
+ }
145
+ }
146
+ return scopeId;
147
+ };
148
+ const attachStyles = (hostRef) => {
149
+ const cmpMeta = hostRef.$cmpMeta$;
150
+ const elm = hostRef.$hostElement$;
151
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
152
+ addStyle(elm.getRootNode(), cmpMeta);
153
+ endAttachStyles();
154
+ };
155
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
56
156
  /**
57
157
  * Default style mode id
58
158
  */
@@ -83,7 +183,7 @@ const h = (nodeName, vnodeData, ...children) => {
83
183
  let slotName = null;
84
184
  let simple = false;
85
185
  let lastSimple = false;
86
- const vNodeChildren = [];
186
+ let vNodeChildren = [];
87
187
  const walk = (c) => {
88
188
  for (let i = 0; i < c.length; i++) {
89
189
  child = c[i];
@@ -195,137 +295,6 @@ const convertToPrivate = (node) => {
195
295
  vnode.$name$ = node.vname;
196
296
  return vnode;
197
297
  };
198
- /**
199
- * Parse a new property value for a given property type.
200
- *
201
- * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
202
- * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
203
- * 1. `any`, the type given to `propValue` in the function signature
204
- * 2. the type stored from `propType`.
205
- *
206
- * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
207
- *
208
- * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
209
- * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
210
- * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
211
- * ```tsx
212
- * <my-cmp prop-val={0}></my-cmp>
213
- * ```
214
- *
215
- * HTML prop values on the other hand, will always a string
216
- *
217
- * @param propValue the new value to coerce to some type
218
- * @param propType the type of the prop, expressed as a binary number
219
- * @returns the parsed/coerced value
220
- */
221
- const parsePropertyValue = (propValue, propType) => {
222
- // ensure this value is of the correct prop type
223
- if (propValue != null && !isComplexType(propValue)) {
224
- if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
225
- // per the HTML spec, any string value means it is a boolean true value
226
- // but we'll cheat here and say that the string "false" is the boolean false
227
- return propValue === 'false' ? false : propValue === '' || !!propValue;
228
- }
229
- if (propType & 2 /* MEMBER_FLAGS.Number */) {
230
- // force it to be a number
231
- return parseFloat(propValue);
232
- }
233
- if (propType & 1 /* MEMBER_FLAGS.String */) {
234
- // could have been passed as a number or boolean
235
- // but we still want it as a string
236
- return String(propValue);
237
- }
238
- // redundant return here for better minification
239
- return propValue;
240
- }
241
- // not sure exactly what type we want
242
- // so no need to change to a different type
243
- return propValue;
244
- };
245
- const getElement = (ref) => (getHostRef(ref).$hostElement$ );
246
- const createEvent = (ref, name, flags) => {
247
- const elm = getElement(ref);
248
- return {
249
- emit: (detail) => {
250
- return emitEvent(elm, name, {
251
- bubbles: !!(flags & 4 /* EVENT_FLAGS.Bubbles */),
252
- composed: !!(flags & 2 /* EVENT_FLAGS.Composed */),
253
- cancelable: !!(flags & 1 /* EVENT_FLAGS.Cancellable */),
254
- detail,
255
- });
256
- },
257
- };
258
- };
259
- /**
260
- * Helper function to create & dispatch a custom Event on a provided target
261
- * @param elm the target of the Event
262
- * @param name the name to give the custom Event
263
- * @param opts options for configuring a custom Event
264
- * @returns the custom Event
265
- */
266
- const emitEvent = (elm, name, opts) => {
267
- const ev = plt.ce(name, opts);
268
- elm.dispatchEvent(ev);
269
- return ev;
270
- };
271
- const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
272
- const registerStyle = (scopeId, cssText, allowCS) => {
273
- let style = styles.get(scopeId);
274
- if (supportsConstructableStylesheets && allowCS) {
275
- style = (style || new CSSStyleSheet());
276
- if (typeof style === 'string') {
277
- style = cssText;
278
- }
279
- else {
280
- style.replaceSync(cssText);
281
- }
282
- }
283
- else {
284
- style = cssText;
285
- }
286
- styles.set(scopeId, style);
287
- };
288
- const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
289
- let scopeId = getScopeId(cmpMeta);
290
- const style = styles.get(scopeId);
291
- // if an element is NOT connected then getRootNode() will return the wrong root node
292
- // so the fallback is to always use the document for the root node in those cases
293
- styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
294
- if (style) {
295
- if (typeof style === 'string') {
296
- styleContainerNode = styleContainerNode.head || styleContainerNode;
297
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
298
- let styleElm;
299
- if (!appliedStyles) {
300
- rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
301
- }
302
- if (!appliedStyles.has(scopeId)) {
303
- {
304
- {
305
- styleElm = doc.createElement('style');
306
- styleElm.innerHTML = style;
307
- }
308
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
309
- }
310
- if (appliedStyles) {
311
- appliedStyles.add(scopeId);
312
- }
313
- }
314
- }
315
- else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
316
- styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
317
- }
318
- }
319
- return scopeId;
320
- };
321
- const attachStyles = (hostRef) => {
322
- const cmpMeta = hostRef.$cmpMeta$;
323
- const elm = hostRef.$hostElement$;
324
- const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
325
- addStyle(elm.getRootNode(), cmpMeta);
326
- endAttachStyles();
327
- };
328
- const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
329
298
  /**
330
299
  * Production setAccessor() function based on Preact by
331
300
  * Jason Miller (@developit)
@@ -423,7 +392,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
423
392
  if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
424
393
  try {
425
394
  if (!elm.tagName.includes('-')) {
426
- const n = newValue == null ? '' : newValue;
395
+ let n = newValue == null ? '' : newValue;
427
396
  // Workaround for Safari, moving the <input> caret when re-assigning the same valued
428
397
  if (memberName === 'list') {
429
398
  isProp = false;
@@ -462,7 +431,7 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
462
431
  }
463
432
  }
464
433
  }
465
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
434
+ else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
466
435
  newValue = newValue === true ? '' : newValue;
467
436
  if (xlink) {
468
437
  elm.setAttributeNS(XLINK_NS, memberName, newValue);
@@ -480,7 +449,7 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
480
449
  // if the element passed in is a shadow root, which is a document fragment
481
450
  // then we want to be adding attrs/props to the shadow root's "host" element
482
451
  // if it's not a shadow root, then we add attrs/props to the same element
483
- const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
452
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host
484
453
  ? newVnode.$elm$.host
485
454
  : newVnode.$elm$;
486
455
  const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
@@ -498,19 +467,9 @@ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
498
467
  setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
499
468
  }
500
469
  };
501
- /**
502
- * Create a DOM Node corresponding to one of the children of a given VNode.
503
- *
504
- * @param oldParentVNode the parent VNode from the previous render
505
- * @param newParentVNode the parent VNode from the current render
506
- * @param childIndex the index of the VNode, in the _new_ parent node's
507
- * children, for which we will create a new DOM node
508
- * @param parentElm the parent DOM node which our new node will be a child of
509
- * @returns the newly created node
510
- */
511
470
  const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
512
471
  // tslint:disable-next-line: prefer-const
513
- const newVNode = newParentVNode.$children$[childIndex];
472
+ let newVNode = newParentVNode.$children$[childIndex];
514
473
  let i = 0;
515
474
  let elm;
516
475
  let childNode;
@@ -521,23 +480,23 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
521
480
  if (newVNode.$tag$ === 'slot') {
522
481
  newVNode.$flags$ |= newVNode.$children$
523
482
  ? // slot element has fallback content
524
- 2 /* VNODE_FLAGS.isSlotFallback */
483
+ 2 /* isSlotFallback */
525
484
  : // slot element does not have fallback content
526
- 1 /* VNODE_FLAGS.isSlotReference */;
485
+ 1 /* isSlotReference */;
527
486
  }
528
487
  }
529
488
  if (newVNode.$text$ !== null) {
530
489
  // create text node
531
490
  elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
532
491
  }
533
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
492
+ else if (newVNode.$flags$ & 1 /* isSlotReference */) {
534
493
  // create a slot reference node
535
494
  elm = newVNode.$elm$ =
536
495
  doc.createTextNode('');
537
496
  }
538
497
  else {
539
498
  // create element
540
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
499
+ elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* isSlotFallback */
541
500
  ? 'slot-fb'
542
501
  : newVNode.$tag$));
543
502
  // add css classes, attrs, props, listeners, etc.
@@ -558,7 +517,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
558
517
  }
559
518
  {
560
519
  elm['s-hn'] = hostTagName;
561
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
520
+ if (newVNode.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
562
521
  // remember the content reference comment
563
522
  elm['s-sr'] = true;
564
523
  // remember the content reference comment
@@ -577,7 +536,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
577
536
  return elm;
578
537
  };
579
538
  const putBackInOriginalLocation = (parentElm, recursive) => {
580
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
539
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
581
540
  const oldSlotChildNodes = parentElm.childNodes;
582
541
  for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
583
542
  const childNode = oldSlotChildNodes[i];
@@ -598,7 +557,7 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
598
557
  putBackInOriginalLocation(childNode, recursive);
599
558
  }
600
559
  }
601
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
560
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
602
561
  };
603
562
  const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
604
563
  let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
@@ -637,74 +596,6 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
637
596
  }
638
597
  }
639
598
  };
640
- /**
641
- * Reconcile the children of a new VNode with the children of an old VNode by
642
- * traversing the two collections of children, identifying nodes that are
643
- * conserved or changed, calling out to `patch` to make any necessary
644
- * updates to the DOM, and rearranging DOM nodes as needed.
645
- *
646
- * The algorithm for reconciling children works by analyzing two 'windows' onto
647
- * the two arrays of children (`oldCh` and `newCh`). We keep track of the
648
- * 'windows' by storing start and end indices and references to the
649
- * corresponding array entries. Initially the two 'windows' are basically equal
650
- * to the entire array, but we progressively narrow the windows until there are
651
- * no children left to update by doing the following:
652
- *
653
- * 1. Skip any `null` entries at the beginning or end of the two arrays, so
654
- * that if we have an initial array like the following we'll end up dealing
655
- * only with a window bounded by the highlighted elements:
656
- *
657
- * [null, null, VNode1 , ... , VNode2, null, null]
658
- * ^^^^^^ ^^^^^^
659
- *
660
- * 2. Check to see if the elements at the head and tail positions are equal
661
- * across the windows. This will basically detect elements which haven't
662
- * been added, removed, or changed position, i.e. if you had the following
663
- * VNode elements (represented as HTML):
664
- *
665
- * oldVNode: `<div><p><span>HEY</span></p></div>`
666
- * newVNode: `<div><p><span>THERE</span></p></div>`
667
- *
668
- * Then when comparing the children of the `<div>` tag we check the equality
669
- * of the VNodes corresponding to the `<p>` tags and, since they are the
670
- * same tag in the same position, we'd be able to avoid completely
671
- * re-rendering the subtree under them with a new DOM element and would just
672
- * call out to `patch` to handle reconciling their children and so on.
673
- *
674
- * 3. Check, for both windows, to see if the element at the beginning of the
675
- * window corresponds to the element at the end of the other window. This is
676
- * a heuristic which will let us identify _some_ situations in which
677
- * elements have changed position, for instance it _should_ detect that the
678
- * children nodes themselves have not changed but merely moved in the
679
- * following example:
680
- *
681
- * oldVNode: `<div><element-one /><element-two /></div>`
682
- * newVNode: `<div><element-two /><element-one /></div>`
683
- *
684
- * If we find cases like this then we also need to move the concrete DOM
685
- * elements corresponding to the moved children to write the re-order to the
686
- * DOM.
687
- *
688
- * 4. Finally, if VNodes have the `key` attribute set on them we check for any
689
- * nodes in the old children which have the same key as the first element in
690
- * our window on the new children. If we find such a node we handle calling
691
- * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
692
- * what we find.
693
- *
694
- * Finally, once we've narrowed our 'windows' to the point that either of them
695
- * collapse (i.e. they have length 0) we then handle any remaining VNode
696
- * insertion or deletion that needs to happen to get a DOM state that correctly
697
- * reflects the new child VNodes. If, for instance, after our window on the old
698
- * children has collapsed we still have more nodes on the new children that
699
- * we haven't dealt with yet then we need to add them, or if the new children
700
- * collapse but we still have unhandled _old_ children then we need to make
701
- * sure the corresponding DOM nodes are removed.
702
- *
703
- * @param parentElm the node into which the parent VNode is rendered
704
- * @param oldCh the old children of the parent node
705
- * @param newVNode the new VNode which will replace the parent
706
- * @param newCh the new children of the parent node
707
- */
708
599
  const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
709
600
  let oldStartIdx = 0;
710
601
  let newStartIdx = 0;
@@ -720,7 +611,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
720
611
  let elmToMove;
721
612
  while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
722
613
  if (oldStartVnode == null) {
723
- // VNode might have been moved left
614
+ // Vnode might have been moved left
724
615
  oldStartVnode = oldCh[++oldStartIdx];
725
616
  }
726
617
  else if (oldEndVnode == null) {
@@ -733,100 +624,37 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
733
624
  newEndVnode = newCh[--newEndIdx];
734
625
  }
735
626
  else if (isSameVnode(oldStartVnode, newStartVnode)) {
736
- // if the start nodes are the same then we should patch the new VNode
737
- // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
738
- // indices to reflect that. We don't need to move any DOM Nodes around
739
- // since things are matched up in order.
740
627
  patch(oldStartVnode, newStartVnode);
741
628
  oldStartVnode = oldCh[++oldStartIdx];
742
629
  newStartVnode = newCh[++newStartIdx];
743
630
  }
744
631
  else if (isSameVnode(oldEndVnode, newEndVnode)) {
745
- // likewise, if the end nodes are the same we patch new onto old and
746
- // decrement our end indices, and also likewise in this case we don't
747
- // need to move any DOM Nodes.
748
632
  patch(oldEndVnode, newEndVnode);
749
633
  oldEndVnode = oldCh[--oldEndIdx];
750
634
  newEndVnode = newCh[--newEndIdx];
751
635
  }
752
636
  else if (isSameVnode(oldStartVnode, newEndVnode)) {
753
- // case: "Vnode moved right"
754
- //
755
- // We've found that the last node in our window on the new children is
756
- // the same VNode as the _first_ node in our window on the old children
757
- // we're dealing with now. Visually, this is the layout of these two
758
- // nodes:
759
- //
760
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
761
- // ^^^^^^^^^^^
762
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
763
- // ^^^^^^^^^^^^^
764
- //
765
- // In this situation we need to patch `newEndVnode` onto `oldStartVnode`
766
- // and move the DOM element for `oldStartVnode`.
637
+ // Vnode moved right
767
638
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
768
639
  putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
769
640
  }
770
641
  patch(oldStartVnode, newEndVnode);
771
- // We need to move the element for `oldStartVnode` into a position which
772
- // will be appropriate for `newEndVnode`. For this we can use
773
- // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
774
- // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
775
- // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
776
- //
777
- // <old-start-node />
778
- // <some-intervening-node />
779
- // <old-end-node />
780
- // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
781
- // <next-sibling />
782
- //
783
- // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
784
- // the node for `oldStartVnode` at the end of the children of
785
- // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
786
- // aren't any siblings, and passing `null` to `Node.insertBefore` will
787
- // append it to the children of the parent element.
788
642
  parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
789
643
  oldStartVnode = oldCh[++oldStartIdx];
790
644
  newEndVnode = newCh[--newEndIdx];
791
645
  }
792
646
  else if (isSameVnode(oldEndVnode, newStartVnode)) {
793
- // case: "Vnode moved left"
794
- //
795
- // We've found that the first node in our window on the new children is
796
- // the same VNode as the _last_ node in our window on the old children.
797
- // Visually, this is the layout of these two nodes:
798
- //
799
- // newCh: [..., newStartVnode , ... , newEndVnode , ...]
800
- // ^^^^^^^^^^^^^
801
- // oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
802
- // ^^^^^^^^^^^
803
- //
804
- // In this situation we need to patch `newStartVnode` onto `oldEndVnode`
805
- // (which will handle updating any changed attributes, reconciling their
806
- // children etc) but we also need to move the DOM node to which
807
- // `oldEndVnode` corresponds.
647
+ // Vnode moved left
808
648
  if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
809
649
  putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
810
650
  }
811
651
  patch(oldEndVnode, newStartVnode);
812
- // We've already checked above if `oldStartVnode` and `newStartVnode` are
813
- // the same node, so since we're here we know that they are not. Thus we
814
- // can move the element for `oldEndVnode` _before_ the element for
815
- // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
816
- // future.
817
652
  parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
818
653
  oldEndVnode = oldCh[--oldEndIdx];
819
654
  newStartVnode = newCh[++newStartIdx];
820
655
  }
821
656
  else {
822
- // Here we do some checks to match up old and new nodes based on the
823
- // `$key$` attribute, which is set by putting a `key="my-key"` attribute
824
- // in the JSX for a DOM element in the implementation of a Stencil
825
- // component.
826
- //
827
- // First we check to see if there are any nodes in the array of old
828
- // children which have the same key as the first node in the new
829
- // children.
657
+ // createKeyToOldIdx
830
658
  idxInOld = -1;
831
659
  {
832
660
  for (i = oldStartIdx; i <= oldEndIdx; ++i) {
@@ -837,32 +665,23 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
837
665
  }
838
666
  }
839
667
  if (idxInOld >= 0) {
840
- // We found a node in the old children which matches up with the first
841
- // node in the new children! So let's deal with that
842
668
  elmToMove = oldCh[idxInOld];
843
669
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
844
- // the tag doesn't match so we'll need a new DOM element
845
670
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
846
671
  }
847
672
  else {
848
673
  patch(elmToMove, newStartVnode);
849
- // invalidate the matching old node so that we won't try to update it
850
- // again later on
851
674
  oldCh[idxInOld] = undefined;
852
675
  node = elmToMove.$elm$;
853
676
  }
854
677
  newStartVnode = newCh[++newStartIdx];
855
678
  }
856
679
  else {
857
- // We either didn't find an element in the old children that matches
858
- // the key of the first new child OR the build is not using `key`
859
- // attributes at all. In either case we need to create a new element
860
- // for the new node.
680
+ // new element
861
681
  node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
862
682
  newStartVnode = newCh[++newStartIdx];
863
683
  }
864
684
  if (node) {
865
- // if we created a new node then handle inserting it to the DOM
866
685
  {
867
686
  parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
868
687
  }
@@ -870,43 +689,21 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
870
689
  }
871
690
  }
872
691
  if (oldStartIdx > oldEndIdx) {
873
- // we have some more new nodes to add which don't match up with old nodes
874
692
  addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
875
693
  }
876
694
  else if (newStartIdx > newEndIdx) {
877
- // there are nodes in the `oldCh` array which no longer correspond to nodes
878
- // in the new array, so lets remove them (which entails cleaning up the
879
- // relevant DOM nodes)
880
695
  removeVnodes(oldCh, oldStartIdx, oldEndIdx);
881
696
  }
882
697
  };
883
- /**
884
- * Compare two VNodes to determine if they are the same
885
- *
886
- * **NB**: This function is an equality _heuristic_ based on the available
887
- * information set on the two VNodes and can be misleading under certain
888
- * circumstances. In particular, if the two nodes do not have `key` attrs
889
- * (available under `$key$` on VNodes) then the function falls back on merely
890
- * checking that they have the same tag.
891
- *
892
- * So, in other words, if `key` attrs are not set on VNodes which may be
893
- * changing order within a `children` array or something along those lines then
894
- * we could obtain a false positive and then have to do needless re-rendering.
895
- *
896
- * @param leftVNode the first VNode to check
897
- * @param rightVNode the second VNode to check
898
- * @returns whether they're equal or not
899
- */
900
- const isSameVnode = (leftVNode, rightVNode) => {
698
+ const isSameVnode = (vnode1, vnode2) => {
901
699
  // compare if two vnode to see if they're "technically" the same
902
700
  // need to have the same element tag, and same key to be the same
903
- if (leftVNode.$tag$ === rightVNode.$tag$) {
904
- if (leftVNode.$tag$ === 'slot') {
905
- return leftVNode.$name$ === rightVNode.$name$;
701
+ if (vnode1.$tag$ === vnode2.$tag$) {
702
+ if (vnode1.$tag$ === 'slot') {
703
+ return vnode1.$name$ === vnode2.$name$;
906
704
  }
907
- // this will be set if components in the build have `key` attrs set on them
908
705
  {
909
- return leftVNode.$key$ === rightVNode.$key$;
706
+ return vnode1.$key$ === vnode2.$key$;
910
707
  }
911
708
  }
912
709
  return false;
@@ -919,14 +716,6 @@ const referenceNode = (node) => {
919
716
  return (node && node['s-ol']) || node;
920
717
  };
921
718
  const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
922
- /**
923
- * Handle reconciling an outdated VNode with a new one which corresponds to
924
- * it. This function handles flushing updates to the DOM and reconciling the
925
- * children of the two nodes (if any).
926
- *
927
- * @param oldVNode an old VNode whose DOM element and children we want to update
928
- * @param newVNode a new VNode representing an updated version of the old one
929
- */
930
719
  const patch = (oldVNode, newVNode) => {
931
720
  const elm = (newVNode.$elm$ = oldVNode.$elm$);
932
721
  const oldChildren = oldVNode.$children$;
@@ -935,6 +724,7 @@ const patch = (oldVNode, newVNode) => {
935
724
  const text = newVNode.$text$;
936
725
  let defaultHolder;
937
726
  if (text === null) {
727
+ // element node
938
728
  {
939
729
  if (tag === 'slot')
940
730
  ;
@@ -947,7 +737,6 @@ const patch = (oldVNode, newVNode) => {
947
737
  }
948
738
  if (oldChildren !== null && newChildren !== null) {
949
739
  // looks like there's child vnodes for both the old and new vnodes
950
- // so we need to call `updateChildren` to reconcile them
951
740
  updateChildren(elm, oldChildren, newVNode, newChildren);
952
741
  }
953
742
  else if (newChildren !== null) {
@@ -976,7 +765,7 @@ const patch = (oldVNode, newVNode) => {
976
765
  };
977
766
  const updateFallbackSlotVisibility = (elm) => {
978
767
  // tslint:disable-next-line: prefer-const
979
- const childNodes = elm.childNodes;
768
+ let childNodes = elm.childNodes;
980
769
  let childNode;
981
770
  let i;
982
771
  let ilen;
@@ -985,7 +774,7 @@ const updateFallbackSlotVisibility = (elm) => {
985
774
  let nodeType;
986
775
  for (i = 0, ilen = childNodes.length; i < ilen; i++) {
987
776
  childNode = childNodes[i];
988
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
777
+ if (childNode.nodeType === 1 /* ElementNode */) {
989
778
  if (childNode['s-sr']) {
990
779
  // this is a slot fallback node
991
780
  // get the slot name for this slot reference node
@@ -997,7 +786,7 @@ const updateFallbackSlotVisibility = (elm) => {
997
786
  nodeType = childNodes[j].nodeType;
998
787
  if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
999
788
  // this sibling node is from a different component OR is a named fallback slot node
1000
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
789
+ if (nodeType === 1 /* ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
1001
790
  childNode.hidden = true;
1002
791
  break;
1003
792
  }
@@ -1006,8 +795,8 @@ const updateFallbackSlotVisibility = (elm) => {
1006
795
  // this is a default fallback slot node
1007
796
  // any element or text node (with content)
1008
797
  // should hide the default fallback slot node
1009
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1010
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
798
+ if (nodeType === 1 /* ElementNode */ ||
799
+ (nodeType === 3 /* TextNode */ && childNodes[j].textContent.trim() !== '')) {
1011
800
  childNode.hidden = true;
1012
801
  break;
1013
802
  }
@@ -1029,8 +818,8 @@ const relocateSlotContent = (elm) => {
1029
818
  let relocateNodeData;
1030
819
  let j;
1031
820
  let i = 0;
1032
- const childNodes = elm.childNodes;
1033
- const ilen = childNodes.length;
821
+ let childNodes = elm.childNodes;
822
+ let ilen = childNodes.length;
1034
823
  for (; i < ilen; i++) {
1035
824
  childNode = childNodes[i];
1036
825
  if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
@@ -1085,13 +874,13 @@ const relocateSlotContent = (elm) => {
1085
874
  }
1086
875
  }
1087
876
  }
1088
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
877
+ if (childNode.nodeType === 1 /* ElementNode */) {
1089
878
  relocateSlotContent(childNode);
1090
879
  }
1091
880
  }
1092
881
  };
1093
882
  const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1094
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
883
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1095
884
  if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1096
885
  return true;
1097
886
  }
@@ -1117,17 +906,13 @@ const renderVdom = (hostRef, renderFnResults) => {
1117
906
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1118
907
  const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1119
908
  hostTagName = hostElm.tagName;
1120
- if (cmpMeta.$attrsToReflect$) {
1121
- rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1122
- cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
1123
- }
1124
909
  rootVnode.$tag$ = null;
1125
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
910
+ rootVnode.$flags$ |= 4 /* isHost */;
1126
911
  hostRef.$vnode$ = rootVnode;
1127
912
  rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
1128
913
  {
1129
914
  contentRef = hostElm['s-cr'];
1130
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
915
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1131
916
  // always reset
1132
917
  checkSlotFallbackVisibility = false;
1133
918
  }
@@ -1136,7 +921,7 @@ const renderVdom = (hostRef, renderFnResults) => {
1136
921
  {
1137
922
  // while we're moving nodes around existing nodes, temporarily disable
1138
923
  // the disconnectCallback from working
1139
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
924
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1140
925
  if (checkSlotRelocate) {
1141
926
  relocateSlotContent(rootVnode.$elm$);
1142
927
  let relocateData;
@@ -1194,7 +979,7 @@ const renderVdom = (hostRef, renderFnResults) => {
1194
979
  }
1195
980
  else {
1196
981
  // this node doesn't have a slot home to go to, so let's hide it
1197
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
982
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1198
983
  nodeToRelocate.hidden = true;
1199
984
  }
1200
985
  }
@@ -1205,11 +990,37 @@ const renderVdom = (hostRef, renderFnResults) => {
1205
990
  }
1206
991
  // done moving nodes around
1207
992
  // allow the disconnect callback to work again
1208
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
993
+ plt.$flags$ &= ~1 /* isTmpDisconnected */;
1209
994
  // always reset
1210
995
  relocateNodes.length = 0;
1211
996
  }
1212
997
  };
998
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
999
+ const createEvent = (ref, name, flags) => {
1000
+ const elm = getElement(ref);
1001
+ return {
1002
+ emit: (detail) => {
1003
+ return emitEvent(elm, name, {
1004
+ bubbles: !!(flags & 4 /* Bubbles */),
1005
+ composed: !!(flags & 2 /* Composed */),
1006
+ cancelable: !!(flags & 1 /* Cancellable */),
1007
+ detail,
1008
+ });
1009
+ },
1010
+ };
1011
+ };
1012
+ /**
1013
+ * Helper function to create & dispatch a custom Event on a provided target
1014
+ * @param elm the target of the Event
1015
+ * @param name the name to give the custom Event
1016
+ * @param opts options for configuring a custom Event
1017
+ * @returns the custom Event
1018
+ */
1019
+ const emitEvent = (elm, name, opts) => {
1020
+ const ev = plt.ce(name, opts);
1021
+ elm.dispatchEvent(ev);
1022
+ return ev;
1023
+ };
1213
1024
  const attachToAncestor = (hostRef, ancestorComponent) => {
1214
1025
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1215
1026
  ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
@@ -1217,10 +1028,10 @@ const attachToAncestor = (hostRef, ancestorComponent) => {
1217
1028
  };
1218
1029
  const scheduleUpdate = (hostRef, isInitialLoad) => {
1219
1030
  {
1220
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1031
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
1221
1032
  }
1222
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1223
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1033
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
1034
+ hostRef.$flags$ |= 512 /* needsRerender */;
1224
1035
  return;
1225
1036
  }
1226
1037
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
@@ -1236,7 +1047,7 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1236
1047
  let promise;
1237
1048
  if (isInitialLoad) {
1238
1049
  {
1239
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1050
+ hostRef.$flags$ |= 256 /* isListenReady */;
1240
1051
  if (hostRef.$queuedListeners$) {
1241
1052
  hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1242
1053
  hostRef.$queuedListeners$ = null;
@@ -1284,7 +1095,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
1284
1095
  }
1285
1096
  else {
1286
1097
  Promise.all(childrenPromises).then(postUpdate);
1287
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1098
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
1288
1099
  childrenPromises.length = 0;
1289
1100
  }
1290
1101
  }
@@ -1293,10 +1104,10 @@ const callRender = (hostRef, instance, elm) => {
1293
1104
  try {
1294
1105
  instance = instance.render() ;
1295
1106
  {
1296
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1107
+ hostRef.$flags$ &= ~16 /* isQueuedForUpdate */;
1297
1108
  }
1298
1109
  {
1299
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1110
+ hostRef.$flags$ |= 2 /* hasRendered */;
1300
1111
  }
1301
1112
  {
1302
1113
  {
@@ -1323,8 +1134,8 @@ const postUpdateComponent = (hostRef) => {
1323
1134
  {
1324
1135
  safeCall(instance, 'componentDidRender');
1325
1136
  }
1326
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1327
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1137
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1138
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
1328
1139
  {
1329
1140
  // DOM WRITE!
1330
1141
  addHydratedFlag(elm);
@@ -1356,10 +1167,10 @@ const postUpdateComponent = (hostRef) => {
1356
1167
  hostRef.$onRenderResolve$();
1357
1168
  hostRef.$onRenderResolve$ = undefined;
1358
1169
  }
1359
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1170
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
1360
1171
  nextTick(() => scheduleUpdate(hostRef, false));
1361
1172
  }
1362
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1173
+ hostRef.$flags$ &= ~(4 /* isWaitingForChildren */ | 512 /* needsRerender */);
1363
1174
  }
1364
1175
  // ( •_•)
1365
1176
  // ( •_•)>⌐■-■
@@ -1389,6 +1200,30 @@ const then = (promise, thenFn) => {
1389
1200
  };
1390
1201
  const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1391
1202
  ;
1203
+ const parsePropertyValue = (propValue, propType) => {
1204
+ // ensure this value is of the correct prop type
1205
+ if (propValue != null && !isComplexType(propValue)) {
1206
+ if (propType & 4 /* Boolean */) {
1207
+ // per the HTML spec, any string value means it is a boolean true value
1208
+ // but we'll cheat here and say that the string "false" is the boolean false
1209
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
1210
+ }
1211
+ if (propType & 2 /* Number */) {
1212
+ // force it to be a number
1213
+ return parseFloat(propValue);
1214
+ }
1215
+ if (propType & 1 /* String */) {
1216
+ // could have been passed as a number or boolean
1217
+ // but we still want it as a string
1218
+ return String(propValue);
1219
+ }
1220
+ // redundant return here for better minification
1221
+ return propValue;
1222
+ }
1223
+ // not sure exactly what type we want
1224
+ // so no need to change to a different type
1225
+ return propValue;
1226
+ };
1392
1227
  const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1393
1228
  const setValue = (ref, propName, newVal, cmpMeta) => {
1394
1229
  // check our new property value against our internal value
@@ -1398,16 +1233,13 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1398
1233
  const flags = hostRef.$flags$;
1399
1234
  const instance = hostRef.$lazyInstance$ ;
1400
1235
  newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1401
- // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1402
- const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1403
- const didValueChange = newVal !== oldVal && !areBothNaN;
1404
- if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1236
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === undefined) && newVal !== oldVal) {
1405
1237
  // gadzooks! the property's value has changed!!
1406
1238
  // set our new value!
1407
1239
  hostRef.$instanceValues$.set(propName, newVal);
1408
1240
  if (instance) {
1409
1241
  // get an array of method names of watch functions to call
1410
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1242
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
1411
1243
  const watchMethods = cmpMeta.$watchers$[propName];
1412
1244
  if (watchMethods) {
1413
1245
  // this instance is watching for when this property changed
@@ -1422,7 +1254,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1422
1254
  });
1423
1255
  }
1424
1256
  }
1425
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1257
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
1426
1258
  // looks like this value actually changed, so we've got work to do!
1427
1259
  // but only if we've already rendered, otherwise just chill out
1428
1260
  // queue that we need to do an update, but don't worry about queuing
@@ -1432,16 +1264,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1432
1264
  }
1433
1265
  }
1434
1266
  };
1435
- /**
1436
- * Attach a series of runtime constructs to a compiled Stencil component
1437
- * constructor, including getters and setters for the `@Prop` and `@State`
1438
- * decorators, callbacks for when attributes change, and so on.
1439
- *
1440
- * @param Cstr the constructor for a component that we need to process
1441
- * @param cmpMeta metadata collected previously about the component
1442
- * @param flags a number used to store a series of bit flags
1443
- * @returns a reference to the same constructor passed in (but now mutated)
1444
- */
1445
1267
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1446
1268
  if (cmpMeta.$members$) {
1447
1269
  if (Cstr.watchers) {
@@ -1451,8 +1273,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1451
1273
  const members = Object.entries(cmpMeta.$members$);
1452
1274
  const prototype = Cstr.prototype;
1453
1275
  members.map(([memberName, [memberFlags]]) => {
1454
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1455
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1276
+ if ((memberFlags & 31 /* Prop */ ||
1277
+ ((flags & 2 /* proxyState */) && memberFlags & 32 /* State */))) {
1456
1278
  // proxyComponent - prop
1457
1279
  Object.defineProperty(prototype, memberName, {
1458
1280
  get() {
@@ -1467,8 +1289,8 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1467
1289
  enumerable: true,
1468
1290
  });
1469
1291
  }
1470
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1471
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1292
+ else if (flags & 1 /* isElementConstructor */ &&
1293
+ memberFlags & 64 /* Method */) {
1472
1294
  // proxyComponent - method
1473
1295
  Object.defineProperty(prototype, memberName, {
1474
1296
  value(...args) {
@@ -1478,7 +1300,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1478
1300
  });
1479
1301
  }
1480
1302
  });
1481
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1303
+ if ((flags & 1 /* isElementConstructor */)) {
1482
1304
  const attrNameToPropName = new Map();
1483
1305
  prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1484
1306
  plt.jmp(() => {
@@ -1534,13 +1356,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1534
1356
  // create an array of attributes to observe
1535
1357
  // and also create a map of html attribute name to js property name
1536
1358
  Cstr.observedAttributes = members
1537
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1359
+ .filter(([_, m]) => m[0] & 15 /* HasAttribute */) // filter to only keep props that should match attributes
1538
1360
  .map(([propName, m]) => {
1539
1361
  const attrName = m[1] || propName;
1540
1362
  attrNameToPropName.set(attrName, propName);
1541
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1542
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1543
- }
1544
1363
  return attrName;
1545
1364
  });
1546
1365
  }
@@ -1549,10 +1368,10 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1549
1368
  };
1550
1369
  const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1551
1370
  // initializeComponent
1552
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1371
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1553
1372
  {
1554
1373
  // we haven't initialized this element yet
1555
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1374
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1556
1375
  // lazy loaded components
1557
1376
  // request the component's implementation to be
1558
1377
  // wired up with the host element
@@ -1570,7 +1389,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1570
1389
  {
1571
1390
  cmpMeta.$watchers$ = Cstr.watchers;
1572
1391
  }
1573
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1392
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
1574
1393
  Cstr.isProxied = true;
1575
1394
  }
1576
1395
  const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
@@ -1578,7 +1397,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1578
1397
  // but let's keep track of when we start and stop
1579
1398
  // so that the getters/setters don't incorrectly step on data
1580
1399
  {
1581
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1400
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
1582
1401
  }
1583
1402
  // construct the lazy-loaded component implementation
1584
1403
  // passing the hostRef is very important during
@@ -1591,10 +1410,10 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1591
1410
  consoleError(e);
1592
1411
  }
1593
1412
  {
1594
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1413
+ hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1595
1414
  }
1596
1415
  {
1597
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1416
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1598
1417
  }
1599
1418
  endNewInstance();
1600
1419
  fireConnectedCallback(hostRef.$lazyInstance$);
@@ -1605,7 +1424,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1605
1424
  const scopeId = getScopeId(cmpMeta);
1606
1425
  if (!styles.has(scopeId)) {
1607
1426
  const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1608
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1427
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
1609
1428
  endRegisterStyles();
1610
1429
  }
1611
1430
  }
@@ -1632,19 +1451,19 @@ const fireConnectedCallback = (instance) => {
1632
1451
  }
1633
1452
  };
1634
1453
  const connectedCallback = (elm) => {
1635
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1454
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1636
1455
  const hostRef = getHostRef(elm);
1637
1456
  const cmpMeta = hostRef.$cmpMeta$;
1638
1457
  const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1639
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1458
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
1640
1459
  // first time this component has connected
1641
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1460
+ hostRef.$flags$ |= 1 /* hasConnected */;
1642
1461
  {
1643
1462
  // initUpdate
1644
1463
  // if the slot polyfill is required we'll need to put some nodes
1645
1464
  // in here to act as original content anchors as we move nodes around
1646
1465
  // host element has been connected to the DOM
1647
- if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1466
+ if ((cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */))) {
1648
1467
  setContentReference(elm);
1649
1468
  }
1650
1469
  }
@@ -1667,7 +1486,7 @@ const connectedCallback = (elm) => {
1667
1486
  // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1668
1487
  if (cmpMeta.$members$) {
1669
1488
  Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1670
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1489
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
1671
1490
  const value = elm[memberName];
1672
1491
  delete elm[memberName];
1673
1492
  elm[memberName] = value;
@@ -1701,7 +1520,7 @@ const setContentReference = (elm) => {
1701
1520
  elm.insertBefore(contentRefElm, elm.firstChild);
1702
1521
  };
1703
1522
  const disconnectedCallback = (elm) => {
1704
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1523
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1705
1524
  const hostRef = getHostRef(elm);
1706
1525
  const instance = hostRef.$lazyInstance$ ;
1707
1526
  {
@@ -1742,9 +1561,6 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1742
1561
  {
1743
1562
  cmpMeta.$listeners$ = compactMeta[3];
1744
1563
  }
1745
- {
1746
- cmpMeta.$attrsToReflect$ = [];
1747
- }
1748
1564
  {
1749
1565
  cmpMeta.$watchers$ = {};
1750
1566
  }
@@ -1780,7 +1596,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1780
1596
  cmpMeta.$lazyBundleId$ = lazyBundle[0];
1781
1597
  if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1782
1598
  cmpTags.push(tagName);
1783
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1599
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */));
1784
1600
  }
1785
1601
  });
1786
1602
  });
@@ -1802,41 +1618,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1802
1618
  // Fallback appLoad event
1803
1619
  endBootstrap();
1804
1620
  };
1805
- const addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
1806
- if (listeners) {
1807
- listeners.map(([flags, name, method]) => {
1808
- const target = getHostListenerTarget(elm, flags) ;
1809
- const handler = hostListenerProxy(hostRef, method);
1810
- const opts = hostListenerOpts(flags);
1811
- plt.ael(target, name, handler, opts);
1812
- (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
1813
- });
1814
- }
1815
- };
1816
- const hostListenerProxy = (hostRef, methodName) => (ev) => {
1817
- try {
1818
- {
1819
- if (hostRef.$flags$ & 256 /* HOST_FLAGS.isListenReady */) {
1820
- // instance is ready, let's call it's member method for this event
1821
- hostRef.$lazyInstance$[methodName](ev);
1822
- }
1823
- else {
1824
- (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
1825
- }
1826
- }
1827
- }
1828
- catch (e) {
1829
- consoleError(e);
1830
- }
1831
- };
1832
- const getHostListenerTarget = (elm, flags) => {
1833
- if (flags & 4 /* LISTENER_FLAGS.TargetDocument */)
1834
- return doc;
1835
- return elm;
1836
- };
1837
- // prettier-ignore
1838
- const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !== 0;
1839
- const hostRefs = /*@__PURE__*/ new WeakMap();
1621
+ const hostRefs = new WeakMap();
1840
1622
  const getHostRef = (ref) => hostRefs.get(ref);
1841
1623
  const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1842
1624
  const registerHost = (elm, cmpMeta) => {
@@ -1868,9 +1650,7 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1868
1650
  if (module) {
1869
1651
  return module[exportName];
1870
1652
  }
1871
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1872
1653
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1873
- /* @vite-ignore */
1874
1654
  /* webpackInclude: /\.entry\.js$/ */
1875
1655
  /* webpackExclude: /\.system\.entry\.js$/ */
1876
1656
  /* webpackMode: "lazy" */
@@ -1881,35 +1661,14 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1881
1661
  return importedModule[exportName];
1882
1662
  }, consoleError);
1883
1663
  };
1884
- const styles = /*@__PURE__*/ new Map();
1885
- const win = typeof window !== 'undefined' ? window : {};
1886
- const doc = win.document || { head: {} };
1887
- const plt = {
1888
- $flags$: 0,
1889
- $resourcesUrl$: '',
1890
- jmp: (h) => h(),
1891
- raf: (h) => requestAnimationFrame(h),
1892
- ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1893
- rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1894
- ce: (eventName, opts) => new CustomEvent(eventName, opts),
1895
- };
1896
- const promiseResolve = (v) => Promise.resolve(v);
1897
- const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1898
- try {
1899
- new CSSStyleSheet();
1900
- return typeof new CSSStyleSheet().replaceSync === 'function';
1901
- }
1902
- catch (e) { }
1903
- return false;
1904
- })()
1905
- ;
1664
+ const styles = new Map();
1906
1665
  const queueDomReads = [];
1907
1666
  const queueDomWrites = [];
1908
1667
  const queueTask = (queue, write) => (cb) => {
1909
1668
  queue.push(cb);
1910
1669
  if (!queuePending) {
1911
1670
  queuePending = true;
1912
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1671
+ if (write && plt.$flags$ & 4 /* queueSync */) {
1913
1672
  nextTick(flush);
1914
1673
  }
1915
1674
  else {
@@ -1953,5 +1712,3 @@ exports.getElement = getElement;
1953
1712
  exports.h = h;
1954
1713
  exports.promiseResolve = promiseResolve;
1955
1714
  exports.registerInstance = registerInstance;
1956
-
1957
- //# sourceMappingURL=index-9174e0b1.js.map