@tarojs/components 3.6.0-canary.9 → 3.6.1-alpha.0

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 (1358) hide show
  1. package/LICENSE +119 -1
  2. package/dist/cjs/index-dfd8638f.js +40 -0
  3. package/dist/cjs/index-dfd8638f.js.map +1 -0
  4. package/dist/cjs/index-e1b469cd.js +2066 -0
  5. package/dist/cjs/index-e1b469cd.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +4 -3
  7. package/dist/cjs/loader.cjs.js.map +1 -1
  8. package/dist/cjs/taro-ad-core.cjs.entry.js +1 -1
  9. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +1 -1
  10. package/dist/cjs/taro-animation-video-core.cjs.entry.js +1 -1
  11. package/dist/cjs/taro-animation-view-core.cjs.entry.js +1 -1
  12. package/dist/cjs/taro-ar-camera-core.cjs.entry.js +1 -1
  13. package/dist/cjs/taro-audio-core.cjs.entry.js +1 -1
  14. package/dist/cjs/taro-aweme-data-core.cjs.entry.js +1 -1
  15. package/dist/cjs/taro-block-core.cjs.entry.js +1 -1
  16. package/dist/cjs/taro-button-core.cjs.entry.js +1 -1
  17. package/dist/cjs/taro-camera-core.cjs.entry.js +1 -1
  18. package/dist/cjs/taro-canvas-core.cjs.entry.js +1 -1
  19. package/dist/cjs/taro-checkbox-core_2.cjs.entry.js +1 -1
  20. package/dist/cjs/taro-comment-detail-core.cjs.entry.js +1 -1
  21. package/dist/cjs/taro-comment-list-core.cjs.entry.js +1 -1
  22. package/dist/cjs/taro-components.cjs.js +7 -3
  23. package/dist/cjs/taro-components.cjs.js.map +1 -1
  24. package/dist/cjs/taro-contact-button-core.cjs.entry.js +1 -1
  25. package/dist/cjs/taro-cover-image-core.cjs.entry.js +1 -1
  26. package/dist/cjs/taro-cover-view-core.cjs.entry.js +1 -1
  27. package/dist/cjs/taro-custom-wrapper-core.cjs.entry.js +1 -1
  28. package/dist/cjs/taro-editor-core.cjs.entry.js +1 -1
  29. package/dist/cjs/taro-follow-swan-core.cjs.entry.js +1 -1
  30. package/dist/cjs/taro-form-core.cjs.entry.js +1 -1
  31. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +1 -1
  32. package/dist/cjs/taro-icon-core.cjs.entry.js +1 -1
  33. package/dist/cjs/taro-image-core.cjs.entry.js +1 -1
  34. package/dist/cjs/taro-inline-payment-panel-core.cjs.entry.js +1 -1
  35. package/dist/cjs/taro-input-core.cjs.entry.js +2 -2
  36. package/dist/cjs/taro-input-core.cjs.entry.js.map +1 -1
  37. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +1 -1
  38. package/dist/cjs/taro-label-core.cjs.entry.js +1 -1
  39. package/dist/cjs/taro-lifestyle-core.cjs.entry.js +1 -1
  40. package/dist/cjs/taro-like-core.cjs.entry.js +1 -1
  41. package/dist/cjs/taro-live-player-core.cjs.entry.js +1 -1
  42. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +1 -1
  43. package/dist/cjs/taro-login-core.cjs.entry.js +1 -1
  44. package/dist/cjs/taro-lottie-core.cjs.entry.js +1 -1
  45. package/dist/cjs/taro-map-core.cjs.entry.js +1 -1
  46. package/dist/cjs/taro-match-media-core.cjs.entry.js +1 -1
  47. package/dist/cjs/taro-movable-area-core_2.cjs.entry.js +1 -1
  48. package/dist/cjs/taro-native-slot-core.cjs.entry.js +1 -1
  49. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +1 -1
  50. package/dist/cjs/taro-navigator-core.cjs.entry.js +1 -1
  51. package/dist/cjs/taro-navigator-core.cjs.entry.js.map +1 -1
  52. package/dist/cjs/taro-official-account-core.cjs.entry.js +1 -1
  53. package/dist/cjs/taro-open-data-core.cjs.entry.js +1 -1
  54. package/dist/cjs/taro-page-container-core.cjs.entry.js +1 -1
  55. package/dist/cjs/taro-page-meta-core.cjs.entry.js +1 -1
  56. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  57. package/dist/cjs/taro-picker-view-column-core_2.cjs.entry.js +2 -2
  58. package/dist/cjs/taro-progress-core.cjs.entry.js +1 -1
  59. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +1 -1
  60. package/dist/cjs/taro-radio-core_2.cjs.entry.js +1 -1
  61. package/dist/cjs/taro-rich-text-core.cjs.entry.js +1 -1
  62. package/dist/cjs/taro-root-portal-core.cjs.entry.js +1 -1
  63. package/dist/cjs/taro-rtc-room-core.cjs.entry.js +1 -1
  64. package/dist/cjs/taro-rtc-room-item-core.cjs.entry.js +1 -1
  65. package/dist/cjs/taro-scroll-view-core.cjs.entry.js +48 -52
  66. package/dist/cjs/taro-scroll-view-core.cjs.entry.js.map +1 -1
  67. package/dist/cjs/taro-share-element-core.cjs.entry.js +1 -1
  68. package/dist/cjs/taro-slider-core.cjs.entry.js +1 -1
  69. package/dist/cjs/taro-slot-core.cjs.entry.js +1 -1
  70. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +49 -8
  71. package/dist/cjs/taro-swiper-core_2.cjs.entry.js.map +1 -1
  72. package/dist/cjs/taro-switch-core.cjs.entry.js +1 -1
  73. package/dist/cjs/taro-tab-item-core.cjs.entry.js +1 -1
  74. package/dist/cjs/taro-tabbar.cjs.entry.js +18 -20
  75. package/dist/cjs/taro-tabbar.cjs.entry.js.map +1 -1
  76. package/dist/cjs/taro-tabs-core.cjs.entry.js +1 -1
  77. package/dist/cjs/taro-text-core.cjs.entry.js +1 -1
  78. package/dist/cjs/taro-textarea-core.cjs.entry.js +1 -1
  79. package/dist/cjs/taro-video-control_3.cjs.entry.js +6 -2
  80. package/dist/cjs/taro-video-control_3.cjs.entry.js.map +1 -1
  81. package/dist/cjs/taro-view-core.cjs.entry.js +1 -1
  82. package/dist/cjs/taro-voip-room-core.cjs.entry.js +1 -1
  83. package/dist/cjs/taro-web-view-core.cjs.entry.js +1 -1
  84. package/dist/collection/collection-manifest.json +2 -2
  85. package/dist/collection/components/input/input.js +6 -2
  86. package/dist/collection/components/input/input.js.map +1 -1
  87. package/dist/collection/components/navigator/navigator.js +0 -16
  88. package/dist/collection/components/navigator/navigator.js.map +1 -1
  89. package/dist/collection/components/scroll-view/scroll-view.js +93 -51
  90. package/dist/collection/components/scroll-view/scroll-view.js.map +1 -1
  91. package/dist/collection/components/swiper/swiper-item.js +37 -1
  92. package/dist/collection/components/swiper/swiper-item.js.map +1 -1
  93. package/dist/collection/components/swiper/swiper.js +12 -5
  94. package/dist/collection/components/swiper/swiper.js.map +1 -1
  95. package/dist/collection/components/tabbar/tabbar-item.js +7 -1
  96. package/dist/collection/components/tabbar/tabbar-item.js.map +1 -1
  97. package/dist/collection/components/tabbar/tabbar.js +4 -17
  98. package/dist/collection/components/tabbar/tabbar.js.map +1 -1
  99. package/dist/collection/components/video/video.js +23 -0
  100. package/dist/collection/components/video/video.js.map +1 -1
  101. package/dist/collection/utils/index.js +3 -0
  102. package/dist/collection/utils/index.js.map +1 -1
  103. package/dist/components/helper.js +15 -0
  104. package/dist/components/helper.js.map +1 -0
  105. package/dist/components/hls.js +27622 -0
  106. package/dist/components/hls.js.map +1 -0
  107. package/dist/components/index.d.ts +106 -0
  108. package/dist/components/index.js +79 -0
  109. package/dist/components/index.js.map +1 -0
  110. package/dist/components/index2.js +78 -0
  111. package/dist/components/index2.js.map +1 -0
  112. package/dist/components/index3.js +36 -0
  113. package/dist/components/index3.js.map +1 -0
  114. package/dist/components/intersection-observer.js +728 -0
  115. package/dist/components/intersection-observer.js.map +1 -0
  116. package/dist/components/picker-group.js +220 -0
  117. package/dist/components/picker-group.js.map +1 -0
  118. package/dist/components/taro-ad-core.d.ts +11 -0
  119. package/dist/components/taro-ad-core.js +35 -0
  120. package/dist/components/taro-ad-core.js.map +1 -0
  121. package/dist/components/taro-ad-custom-core.d.ts +11 -0
  122. package/dist/components/taro-ad-custom-core.js +35 -0
  123. package/dist/components/taro-ad-custom-core.js.map +1 -0
  124. package/dist/components/taro-animation-video-core.d.ts +11 -0
  125. package/dist/components/taro-animation-video-core.js +35 -0
  126. package/dist/components/taro-animation-video-core.js.map +1 -0
  127. package/dist/components/taro-animation-view-core.d.ts +11 -0
  128. package/dist/components/taro-animation-view-core.js +35 -0
  129. package/dist/components/taro-animation-view-core.js.map +1 -0
  130. package/dist/components/taro-ar-camera-core.d.ts +11 -0
  131. package/dist/components/taro-ar-camera-core.js +35 -0
  132. package/dist/components/taro-ar-camera-core.js.map +1 -0
  133. package/dist/components/taro-audio-core.d.ts +11 -0
  134. package/dist/components/taro-audio-core.js +80 -0
  135. package/dist/components/taro-audio-core.js.map +1 -0
  136. package/dist/components/taro-aweme-data-core.d.ts +11 -0
  137. package/dist/components/taro-aweme-data-core.js +35 -0
  138. package/dist/components/taro-aweme-data-core.js.map +1 -0
  139. package/dist/components/taro-block-core.d.ts +11 -0
  140. package/dist/components/taro-block-core.js +31 -0
  141. package/dist/components/taro-block-core.js.map +1 -0
  142. package/dist/components/taro-button-core.d.ts +11 -0
  143. package/dist/components/taro-button-core.js +102 -0
  144. package/dist/components/taro-button-core.js.map +1 -0
  145. package/dist/components/taro-camera-core.d.ts +11 -0
  146. package/dist/components/taro-camera-core.js +35 -0
  147. package/dist/components/taro-camera-core.js.map +1 -0
  148. package/dist/components/taro-canvas-core.d.ts +11 -0
  149. package/dist/components/taro-canvas-core.js +57 -0
  150. package/dist/components/taro-canvas-core.js.map +1 -0
  151. package/dist/components/taro-checkbox-core.d.ts +11 -0
  152. package/dist/components/taro-checkbox-core.js +81 -0
  153. package/dist/components/taro-checkbox-core.js.map +1 -0
  154. package/dist/components/taro-checkbox-group-core.d.ts +11 -0
  155. package/dist/components/taro-checkbox-group-core.js +71 -0
  156. package/dist/components/taro-checkbox-group-core.js.map +1 -0
  157. package/dist/components/taro-comment-detail-core.d.ts +11 -0
  158. package/dist/components/taro-comment-detail-core.js +35 -0
  159. package/dist/components/taro-comment-detail-core.js.map +1 -0
  160. package/dist/components/taro-comment-list-core.d.ts +11 -0
  161. package/dist/components/taro-comment-list-core.js +35 -0
  162. package/dist/components/taro-comment-list-core.js.map +1 -0
  163. package/dist/components/taro-contact-button-core.d.ts +11 -0
  164. package/dist/components/taro-contact-button-core.js +35 -0
  165. package/dist/components/taro-contact-button-core.js.map +1 -0
  166. package/dist/components/taro-cover-image-core.d.ts +11 -0
  167. package/dist/components/taro-cover-image-core.js +52 -0
  168. package/dist/components/taro-cover-image-core.js.map +1 -0
  169. package/dist/components/taro-cover-view-core.d.ts +11 -0
  170. package/dist/components/taro-cover-view-core.js +89 -0
  171. package/dist/components/taro-cover-view-core.js.map +1 -0
  172. package/dist/components/taro-custom-wrapper-core.d.ts +11 -0
  173. package/dist/components/taro-custom-wrapper-core.js +31 -0
  174. package/dist/components/taro-custom-wrapper-core.js.map +1 -0
  175. package/dist/components/taro-editor-core.d.ts +11 -0
  176. package/dist/components/taro-editor-core.js +35 -0
  177. package/dist/components/taro-editor-core.js.map +1 -0
  178. package/dist/components/taro-follow-swan-core.d.ts +11 -0
  179. package/dist/components/taro-follow-swan-core.js +35 -0
  180. package/dist/components/taro-follow-swan-core.js.map +1 -0
  181. package/dist/components/taro-form-core.d.ts +11 -0
  182. package/dist/components/taro-form-core.js +140 -0
  183. package/dist/components/taro-form-core.js.map +1 -0
  184. package/dist/components/taro-functional-page-navigator-core.d.ts +11 -0
  185. package/dist/components/taro-functional-page-navigator-core.js +35 -0
  186. package/dist/components/taro-functional-page-navigator-core.js.map +1 -0
  187. package/dist/components/taro-icon-core.d.ts +11 -0
  188. package/dist/components/taro-icon-core.js +48 -0
  189. package/dist/components/taro-icon-core.js.map +1 -0
  190. package/dist/components/taro-image-core.d.ts +11 -0
  191. package/dist/components/taro-image-core.js +81 -0
  192. package/dist/components/taro-image-core.js.map +1 -0
  193. package/dist/components/taro-inline-payment-panel-core.d.ts +11 -0
  194. package/dist/components/taro-inline-payment-panel-core.js +35 -0
  195. package/dist/components/taro-inline-payment-panel-core.js.map +1 -0
  196. package/dist/components/taro-input-core.d.ts +11 -0
  197. package/dist/components/taro-input-core.js +246 -0
  198. package/dist/components/taro-input-core.js.map +1 -0
  199. package/dist/components/taro-keyboard-accessory-core.d.ts +11 -0
  200. package/dist/components/taro-keyboard-accessory-core.js +35 -0
  201. package/dist/components/taro-keyboard-accessory-core.js.map +1 -0
  202. package/dist/components/taro-label-core.d.ts +11 -0
  203. package/dist/components/taro-label-core.js +34 -0
  204. package/dist/components/taro-label-core.js.map +1 -0
  205. package/dist/components/taro-lifestyle-core.d.ts +11 -0
  206. package/dist/components/taro-lifestyle-core.js +35 -0
  207. package/dist/components/taro-lifestyle-core.js.map +1 -0
  208. package/dist/components/taro-like-core.d.ts +11 -0
  209. package/dist/components/taro-like-core.js +35 -0
  210. package/dist/components/taro-like-core.js.map +1 -0
  211. package/dist/components/taro-live-player-core.d.ts +11 -0
  212. package/dist/components/taro-live-player-core.js +35 -0
  213. package/dist/components/taro-live-player-core.js.map +1 -0
  214. package/dist/components/taro-live-pusher-core.d.ts +11 -0
  215. package/dist/components/taro-live-pusher-core.js +35 -0
  216. package/dist/components/taro-live-pusher-core.js.map +1 -0
  217. package/dist/components/taro-login-core.d.ts +11 -0
  218. package/dist/components/taro-login-core.js +35 -0
  219. package/dist/components/taro-login-core.js.map +1 -0
  220. package/dist/components/taro-lottie-core.d.ts +11 -0
  221. package/dist/components/taro-lottie-core.js +35 -0
  222. package/dist/components/taro-lottie-core.js.map +1 -0
  223. package/dist/components/taro-map-core.d.ts +11 -0
  224. package/dist/components/taro-map-core.js +35 -0
  225. package/dist/components/taro-map-core.js.map +1 -0
  226. package/dist/components/taro-match-media-core.d.ts +11 -0
  227. package/dist/components/taro-match-media-core.js +35 -0
  228. package/dist/components/taro-match-media-core.js.map +1 -0
  229. package/dist/components/taro-movable-area-core.d.ts +11 -0
  230. package/dist/components/taro-movable-area-core.js +175 -0
  231. package/dist/components/taro-movable-area-core.js.map +1 -0
  232. package/dist/components/taro-movable-view-core.d.ts +11 -0
  233. package/dist/components/taro-movable-view-core.js +361 -0
  234. package/dist/components/taro-movable-view-core.js.map +1 -0
  235. package/dist/components/taro-native-slot-core.d.ts +11 -0
  236. package/dist/components/taro-native-slot-core.js +35 -0
  237. package/dist/components/taro-native-slot-core.js.map +1 -0
  238. package/dist/components/taro-navigation-bar-core.d.ts +11 -0
  239. package/dist/components/taro-navigation-bar-core.js +35 -0
  240. package/dist/components/taro-navigation-bar-core.js.map +1 -0
  241. package/dist/components/taro-navigator-core.d.ts +11 -0
  242. package/dist/components/taro-navigator-core.js +96 -0
  243. package/dist/components/taro-navigator-core.js.map +1 -0
  244. package/dist/components/taro-official-account-core.d.ts +11 -0
  245. package/dist/components/taro-official-account-core.js +35 -0
  246. package/dist/components/taro-official-account-core.js.map +1 -0
  247. package/dist/components/taro-open-data-core.d.ts +11 -0
  248. package/dist/components/taro-open-data-core.js +35 -0
  249. package/dist/components/taro-open-data-core.js.map +1 -0
  250. package/dist/components/taro-page-container-core.d.ts +11 -0
  251. package/dist/components/taro-page-container-core.js +35 -0
  252. package/dist/components/taro-page-container-core.js.map +1 -0
  253. package/dist/components/taro-page-meta-core.d.ts +11 -0
  254. package/dist/components/taro-page-meta-core.js +35 -0
  255. package/dist/components/taro-page-meta-core.js.map +1 -0
  256. package/dist/components/taro-picker-core.d.ts +11 -0
  257. package/dist/components/taro-picker-core.js +538 -0
  258. package/dist/components/taro-picker-core.js.map +1 -0
  259. package/dist/components/taro-picker-group.d.ts +11 -0
  260. package/dist/components/taro-picker-group.js +8 -0
  261. package/dist/components/taro-picker-group.js.map +1 -0
  262. package/dist/components/taro-picker-view-column-core.d.ts +11 -0
  263. package/dist/components/taro-picker-view-column-core.js +115 -0
  264. package/dist/components/taro-picker-view-column-core.js.map +1 -0
  265. package/dist/components/taro-picker-view-core.d.ts +11 -0
  266. package/dist/components/taro-picker-view-core.js +114 -0
  267. package/dist/components/taro-picker-view-core.js.map +1 -0
  268. package/dist/components/taro-progress-core.d.ts +11 -0
  269. package/dist/components/taro-progress-core.js +62 -0
  270. package/dist/components/taro-progress-core.js.map +1 -0
  271. package/dist/components/taro-pull-to-refresh.d.ts +11 -0
  272. package/dist/components/taro-pull-to-refresh.js +284 -0
  273. package/dist/components/taro-pull-to-refresh.js.map +1 -0
  274. package/dist/components/taro-radio-core.d.ts +11 -0
  275. package/dist/components/taro-radio-core.js +83 -0
  276. package/dist/components/taro-radio-core.js.map +1 -0
  277. package/dist/components/taro-radio-group-core.d.ts +11 -0
  278. package/dist/components/taro-radio-group-core.js +82 -0
  279. package/dist/components/taro-radio-group-core.js.map +1 -0
  280. package/dist/components/taro-rich-text-core.d.ts +11 -0
  281. package/dist/components/taro-rich-text-core.js +86 -0
  282. package/dist/components/taro-rich-text-core.js.map +1 -0
  283. package/dist/components/taro-root-portal-core.d.ts +11 -0
  284. package/dist/components/taro-root-portal-core.js +35 -0
  285. package/dist/components/taro-root-portal-core.js.map +1 -0
  286. package/dist/components/taro-rtc-room-core.d.ts +11 -0
  287. package/dist/components/taro-rtc-room-core.js +35 -0
  288. package/dist/components/taro-rtc-room-core.js.map +1 -0
  289. package/dist/components/taro-rtc-room-item-core.d.ts +11 -0
  290. package/dist/components/taro-rtc-room-item-core.js +35 -0
  291. package/dist/components/taro-rtc-room-item-core.js.map +1 -0
  292. package/dist/components/taro-scroll-view-core.d.ts +11 -0
  293. package/dist/components/taro-scroll-view-core.js +182 -0
  294. package/dist/components/taro-scroll-view-core.js.map +1 -0
  295. package/dist/components/taro-share-element-core.d.ts +11 -0
  296. package/dist/components/taro-share-element-core.js +35 -0
  297. package/dist/components/taro-share-element-core.js.map +1 -0
  298. package/dist/components/taro-slider-core.d.ts +11 -0
  299. package/dist/components/taro-slider-core.js +196 -0
  300. package/dist/components/taro-slider-core.js.map +1 -0
  301. package/dist/components/taro-slot-core.d.ts +11 -0
  302. package/dist/components/taro-slot-core.js +35 -0
  303. package/dist/components/taro-slot-core.js.map +1 -0
  304. package/dist/components/taro-swiper-core.d.ts +11 -0
  305. package/dist/components/taro-swiper-core.js +10172 -0
  306. package/dist/components/taro-swiper-core.js.map +1 -0
  307. package/dist/components/taro-swiper-item-core.d.ts +11 -0
  308. package/dist/components/taro-swiper-item-core.js +70 -0
  309. package/dist/components/taro-swiper-item-core.js.map +1 -0
  310. package/dist/components/taro-switch-core.d.ts +11 -0
  311. package/dist/components/taro-switch-core.js +87 -0
  312. package/dist/components/taro-switch-core.js.map +1 -0
  313. package/dist/components/taro-tab-item-core.d.ts +11 -0
  314. package/dist/components/taro-tab-item-core.js +35 -0
  315. package/dist/components/taro-tab-item-core.js.map +1 -0
  316. package/dist/components/taro-tabbar.d.ts +11 -0
  317. package/dist/components/taro-tabbar.js +455 -0
  318. package/dist/components/taro-tabbar.js.map +1 -0
  319. package/dist/components/taro-tabs-core.d.ts +11 -0
  320. package/dist/components/taro-tabs-core.js +35 -0
  321. package/dist/components/taro-tabs-core.js.map +1 -0
  322. package/dist/components/taro-text-core.d.ts +11 -0
  323. package/dist/components/taro-text-core.js +41 -0
  324. package/dist/components/taro-text-core.js.map +1 -0
  325. package/dist/components/taro-textarea-core.d.ts +11 -0
  326. package/dist/components/taro-textarea-core.js +164 -0
  327. package/dist/components/taro-textarea-core.js.map +1 -0
  328. package/dist/components/taro-video-control.d.ts +11 -0
  329. package/dist/components/taro-video-control.js +8 -0
  330. package/dist/components/taro-video-control.js.map +1 -0
  331. package/dist/components/taro-video-core.d.ts +11 -0
  332. package/dist/components/taro-video-core.js +490 -0
  333. package/dist/components/taro-video-core.js.map +1 -0
  334. package/dist/components/taro-video-danmu.d.ts +11 -0
  335. package/dist/components/taro-video-danmu.js +8 -0
  336. package/dist/components/taro-video-danmu.js.map +1 -0
  337. package/dist/components/taro-view-core.d.ts +11 -0
  338. package/dist/components/taro-view-core.js +101 -0
  339. package/dist/components/taro-view-core.js.map +1 -0
  340. package/dist/components/taro-voip-room-core.d.ts +11 -0
  341. package/dist/components/taro-voip-room-core.js +35 -0
  342. package/dist/components/taro-voip-room-core.js.map +1 -0
  343. package/dist/components/taro-web-view-core.d.ts +11 -0
  344. package/dist/components/taro-web-view-core.js +46 -0
  345. package/dist/components/taro-web-view-core.js.map +1 -0
  346. package/dist/components/video-control.js +233 -0
  347. package/dist/components/video-control.js.map +1 -0
  348. package/dist/components/video-danmu.js +110 -0
  349. package/dist/components/video-danmu.js.map +1 -0
  350. package/dist/esm/index-c948674f.js +2037 -0
  351. package/dist/esm/index-c948674f.js.map +1 -0
  352. package/dist/esm/index-d1b03e47.js +36 -0
  353. package/dist/esm/index-d1b03e47.js.map +1 -0
  354. package/dist/esm/loader.js +4 -3
  355. package/dist/esm/loader.js.map +1 -1
  356. package/dist/esm/polyfills/css-shim.js +1 -1
  357. package/dist/esm/taro-ad-core.entry.js +1 -1
  358. package/dist/esm/taro-ad-custom-core.entry.js +1 -1
  359. package/dist/esm/taro-animation-video-core.entry.js +1 -1
  360. package/dist/esm/taro-animation-view-core.entry.js +1 -1
  361. package/dist/esm/taro-ar-camera-core.entry.js +1 -1
  362. package/dist/esm/taro-audio-core.entry.js +1 -1
  363. package/dist/esm/taro-aweme-data-core.entry.js +1 -1
  364. package/dist/esm/taro-block-core.entry.js +1 -1
  365. package/dist/esm/taro-button-core.entry.js +1 -1
  366. package/dist/esm/taro-camera-core.entry.js +1 -1
  367. package/dist/esm/taro-canvas-core.entry.js +1 -1
  368. package/dist/esm/taro-checkbox-core_2.entry.js +1 -1
  369. package/dist/esm/taro-comment-detail-core.entry.js +1 -1
  370. package/dist/esm/taro-comment-list-core.entry.js +1 -1
  371. package/dist/esm/taro-components.js +4 -3
  372. package/dist/esm/taro-components.js.map +1 -1
  373. package/dist/esm/taro-contact-button-core.entry.js +1 -1
  374. package/dist/esm/taro-cover-image-core.entry.js +1 -1
  375. package/dist/esm/taro-cover-view-core.entry.js +1 -1
  376. package/dist/esm/taro-custom-wrapper-core.entry.js +1 -1
  377. package/dist/esm/taro-editor-core.entry.js +1 -1
  378. package/dist/esm/taro-follow-swan-core.entry.js +1 -1
  379. package/dist/esm/taro-form-core.entry.js +1 -1
  380. package/dist/esm/taro-functional-page-navigator-core.entry.js +1 -1
  381. package/dist/esm/taro-icon-core.entry.js +1 -1
  382. package/dist/esm/taro-image-core.entry.js +1 -1
  383. package/dist/esm/taro-inline-payment-panel-core.entry.js +1 -1
  384. package/dist/esm/taro-input-core.entry.js +2 -2
  385. package/dist/esm/taro-input-core.entry.js.map +1 -1
  386. package/dist/esm/taro-keyboard-accessory-core.entry.js +1 -1
  387. package/dist/esm/taro-label-core.entry.js +1 -1
  388. package/dist/esm/taro-lifestyle-core.entry.js +1 -1
  389. package/dist/esm/taro-like-core.entry.js +1 -1
  390. package/dist/esm/taro-live-player-core.entry.js +1 -1
  391. package/dist/esm/taro-live-pusher-core.entry.js +1 -1
  392. package/dist/esm/taro-login-core.entry.js +1 -1
  393. package/dist/esm/taro-lottie-core.entry.js +1 -1
  394. package/dist/esm/taro-map-core.entry.js +1 -1
  395. package/dist/esm/taro-match-media-core.entry.js +1 -1
  396. package/dist/esm/taro-movable-area-core_2.entry.js +1 -1
  397. package/dist/esm/taro-native-slot-core.entry.js +1 -1
  398. package/dist/esm/taro-navigation-bar-core.entry.js +1 -1
  399. package/dist/esm/taro-navigator-core.entry.js +1 -1
  400. package/dist/esm/taro-navigator-core.entry.js.map +1 -1
  401. package/dist/esm/taro-official-account-core.entry.js +1 -1
  402. package/dist/esm/taro-open-data-core.entry.js +1 -1
  403. package/dist/esm/taro-page-container-core.entry.js +1 -1
  404. package/dist/esm/taro-page-meta-core.entry.js +1 -1
  405. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  406. package/dist/esm/taro-picker-view-column-core_2.entry.js +2 -2
  407. package/dist/esm/taro-progress-core.entry.js +1 -1
  408. package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
  409. package/dist/esm/taro-radio-core_2.entry.js +1 -1
  410. package/dist/esm/taro-rich-text-core.entry.js +1 -1
  411. package/dist/esm/taro-root-portal-core.entry.js +1 -1
  412. package/dist/esm/taro-rtc-room-core.entry.js +1 -1
  413. package/dist/esm/taro-rtc-room-item-core.entry.js +1 -1
  414. package/dist/esm/taro-scroll-view-core.entry.js +48 -52
  415. package/dist/esm/taro-scroll-view-core.entry.js.map +1 -1
  416. package/dist/esm/taro-share-element-core.entry.js +1 -1
  417. package/dist/esm/taro-slider-core.entry.js +1 -1
  418. package/dist/esm/taro-slot-core.entry.js +1 -1
  419. package/dist/esm/taro-swiper-core_2.entry.js +49 -8
  420. package/dist/esm/taro-swiper-core_2.entry.js.map +1 -1
  421. package/dist/esm/taro-switch-core.entry.js +1 -1
  422. package/dist/esm/taro-tab-item-core.entry.js +1 -1
  423. package/dist/esm/taro-tabbar.entry.js +16 -18
  424. package/dist/esm/taro-tabbar.entry.js.map +1 -1
  425. package/dist/esm/taro-tabs-core.entry.js +1 -1
  426. package/dist/esm/taro-text-core.entry.js +1 -1
  427. package/dist/esm/taro-textarea-core.entry.js +1 -1
  428. package/dist/esm/taro-video-control_3.entry.js +6 -2
  429. package/dist/esm/taro-video-control_3.entry.js.map +1 -1
  430. package/dist/esm/taro-view-core.entry.js +1 -1
  431. package/dist/esm/taro-voip-room-core.entry.js +1 -1
  432. package/dist/esm/taro-web-view-core.entry.js +1 -1
  433. package/dist/esm-es5/helper-3d0ecf0f.js.map +1 -1
  434. package/dist/esm-es5/hls-221423a1.js.map +1 -1
  435. package/dist/esm-es5/index-1d8e8acd.js.map +1 -1
  436. package/dist/esm-es5/index-c948674f.js +3 -0
  437. package/dist/esm-es5/index-c948674f.js.map +1 -0
  438. package/dist/esm-es5/index-d1b03e47.js +2 -0
  439. package/dist/esm-es5/index-d1b03e47.js.map +1 -0
  440. package/dist/esm-es5/index.js.map +1 -1
  441. package/dist/esm-es5/intersection-observer-8e4c7135.js.map +1 -1
  442. package/dist/esm-es5/loader.js +1 -1
  443. package/dist/esm-es5/loader.js.map +1 -1
  444. package/dist/esm-es5/taro-ad-core.entry.js +1 -1
  445. package/dist/esm-es5/taro-ad-core.entry.js.map +1 -1
  446. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -1
  447. package/dist/esm-es5/taro-ad-custom-core.entry.js.map +1 -1
  448. package/dist/esm-es5/taro-animation-video-core.entry.js +1 -1
  449. package/dist/esm-es5/taro-animation-video-core.entry.js.map +1 -1
  450. package/dist/esm-es5/taro-animation-view-core.entry.js +1 -1
  451. package/dist/esm-es5/taro-animation-view-core.entry.js.map +1 -1
  452. package/dist/esm-es5/taro-ar-camera-core.entry.js +1 -1
  453. package/dist/esm-es5/taro-ar-camera-core.entry.js.map +1 -1
  454. package/dist/esm-es5/taro-audio-core.entry.js +1 -1
  455. package/dist/esm-es5/taro-audio-core.entry.js.map +1 -1
  456. package/dist/esm-es5/taro-aweme-data-core.entry.js +1 -1
  457. package/dist/esm-es5/taro-aweme-data-core.entry.js.map +1 -1
  458. package/dist/esm-es5/taro-block-core.entry.js +1 -1
  459. package/dist/esm-es5/taro-block-core.entry.js.map +1 -1
  460. package/dist/esm-es5/taro-button-core.entry.js +1 -1
  461. package/dist/esm-es5/taro-button-core.entry.js.map +1 -1
  462. package/dist/esm-es5/taro-camera-core.entry.js +1 -1
  463. package/dist/esm-es5/taro-camera-core.entry.js.map +1 -1
  464. package/dist/esm-es5/taro-canvas-core.entry.js +1 -1
  465. package/dist/esm-es5/taro-canvas-core.entry.js.map +1 -1
  466. package/dist/esm-es5/taro-checkbox-core_2.entry.js +1 -1
  467. package/dist/esm-es5/taro-checkbox-core_2.entry.js.map +1 -1
  468. package/dist/esm-es5/taro-comment-detail-core.entry.js +1 -1
  469. package/dist/esm-es5/taro-comment-detail-core.entry.js.map +1 -1
  470. package/dist/esm-es5/taro-comment-list-core.entry.js +1 -1
  471. package/dist/esm-es5/taro-comment-list-core.entry.js.map +1 -1
  472. package/dist/esm-es5/taro-components.js +1 -1
  473. package/dist/esm-es5/taro-components.js.map +1 -1
  474. package/dist/esm-es5/taro-contact-button-core.entry.js +1 -1
  475. package/dist/esm-es5/taro-contact-button-core.entry.js.map +1 -1
  476. package/dist/esm-es5/taro-cover-image-core.entry.js +1 -1
  477. package/dist/esm-es5/taro-cover-image-core.entry.js.map +1 -1
  478. package/dist/esm-es5/taro-cover-view-core.entry.js +1 -1
  479. package/dist/esm-es5/taro-cover-view-core.entry.js.map +1 -1
  480. package/dist/esm-es5/taro-custom-wrapper-core.entry.js +1 -1
  481. package/dist/esm-es5/taro-custom-wrapper-core.entry.js.map +1 -1
  482. package/dist/esm-es5/taro-editor-core.entry.js +1 -1
  483. package/dist/esm-es5/taro-editor-core.entry.js.map +1 -1
  484. package/dist/esm-es5/taro-follow-swan-core.entry.js +1 -1
  485. package/dist/esm-es5/taro-follow-swan-core.entry.js.map +1 -1
  486. package/dist/esm-es5/taro-form-core.entry.js +1 -1
  487. package/dist/esm-es5/taro-form-core.entry.js.map +1 -1
  488. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -1
  489. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js.map +1 -1
  490. package/dist/esm-es5/taro-icon-core.entry.js +1 -1
  491. package/dist/esm-es5/taro-icon-core.entry.js.map +1 -1
  492. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  493. package/dist/esm-es5/taro-image-core.entry.js.map +1 -1
  494. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js +1 -1
  495. package/dist/esm-es5/taro-inline-payment-panel-core.entry.js.map +1 -1
  496. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  497. package/dist/esm-es5/taro-input-core.entry.js.map +1 -1
  498. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -1
  499. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js.map +1 -1
  500. package/dist/esm-es5/taro-label-core.entry.js +1 -1
  501. package/dist/esm-es5/taro-label-core.entry.js.map +1 -1
  502. package/dist/esm-es5/taro-lifestyle-core.entry.js +1 -1
  503. package/dist/esm-es5/taro-lifestyle-core.entry.js.map +1 -1
  504. package/dist/esm-es5/taro-like-core.entry.js +1 -1
  505. package/dist/esm-es5/taro-like-core.entry.js.map +1 -1
  506. package/dist/esm-es5/taro-live-player-core.entry.js +1 -1
  507. package/dist/esm-es5/taro-live-player-core.entry.js.map +1 -1
  508. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -1
  509. package/dist/esm-es5/taro-live-pusher-core.entry.js.map +1 -1
  510. package/dist/esm-es5/taro-login-core.entry.js +1 -1
  511. package/dist/esm-es5/taro-login-core.entry.js.map +1 -1
  512. package/dist/esm-es5/taro-lottie-core.entry.js +1 -1
  513. package/dist/esm-es5/taro-lottie-core.entry.js.map +1 -1
  514. package/dist/esm-es5/taro-map-core.entry.js +1 -1
  515. package/dist/esm-es5/taro-map-core.entry.js.map +1 -1
  516. package/dist/esm-es5/taro-match-media-core.entry.js +1 -1
  517. package/dist/esm-es5/taro-match-media-core.entry.js.map +1 -1
  518. package/dist/esm-es5/taro-movable-area-core_2.entry.js +1 -1
  519. package/dist/esm-es5/taro-movable-area-core_2.entry.js.map +1 -1
  520. package/dist/esm-es5/taro-native-slot-core.entry.js +1 -1
  521. package/dist/esm-es5/taro-native-slot-core.entry.js.map +1 -1
  522. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -1
  523. package/dist/esm-es5/taro-navigation-bar-core.entry.js.map +1 -1
  524. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  525. package/dist/esm-es5/taro-navigator-core.entry.js.map +1 -1
  526. package/dist/esm-es5/taro-official-account-core.entry.js +1 -1
  527. package/dist/esm-es5/taro-official-account-core.entry.js.map +1 -1
  528. package/dist/esm-es5/taro-open-data-core.entry.js +1 -1
  529. package/dist/esm-es5/taro-open-data-core.entry.js.map +1 -1
  530. package/dist/esm-es5/taro-page-container-core.entry.js +1 -1
  531. package/dist/esm-es5/taro-page-container-core.entry.js.map +1 -1
  532. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -1
  533. package/dist/esm-es5/taro-page-meta-core.entry.js.map +1 -1
  534. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  535. package/dist/esm-es5/taro-picker-core_2.entry.js.map +1 -1
  536. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js +1 -1
  537. package/dist/esm-es5/taro-picker-view-column-core_2.entry.js.map +1 -1
  538. package/dist/esm-es5/taro-progress-core.entry.js +1 -1
  539. package/dist/esm-es5/taro-progress-core.entry.js.map +1 -1
  540. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  541. package/dist/esm-es5/taro-pull-to-refresh.entry.js.map +1 -1
  542. package/dist/esm-es5/taro-radio-core_2.entry.js +1 -1
  543. package/dist/esm-es5/taro-radio-core_2.entry.js.map +1 -1
  544. package/dist/esm-es5/taro-rich-text-core.entry.js +1 -1
  545. package/dist/esm-es5/taro-rich-text-core.entry.js.map +1 -1
  546. package/dist/esm-es5/taro-root-portal-core.entry.js +1 -1
  547. package/dist/esm-es5/taro-root-portal-core.entry.js.map +1 -1
  548. package/dist/esm-es5/taro-rtc-room-core.entry.js +1 -1
  549. package/dist/esm-es5/taro-rtc-room-core.entry.js.map +1 -1
  550. package/dist/esm-es5/taro-rtc-room-item-core.entry.js +1 -1
  551. package/dist/esm-es5/taro-rtc-room-item-core.entry.js.map +1 -1
  552. package/dist/esm-es5/taro-scroll-view-core.entry.js +1 -1
  553. package/dist/esm-es5/taro-scroll-view-core.entry.js.map +1 -1
  554. package/dist/esm-es5/taro-share-element-core.entry.js +1 -1
  555. package/dist/esm-es5/taro-share-element-core.entry.js.map +1 -1
  556. package/dist/esm-es5/taro-slider-core.entry.js +1 -1
  557. package/dist/esm-es5/taro-slider-core.entry.js.map +1 -1
  558. package/dist/esm-es5/taro-slot-core.entry.js +1 -1
  559. package/dist/esm-es5/taro-slot-core.entry.js.map +1 -1
  560. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  561. package/dist/esm-es5/taro-swiper-core_2.entry.js.map +1 -1
  562. package/dist/esm-es5/taro-switch-core.entry.js +1 -1
  563. package/dist/esm-es5/taro-switch-core.entry.js.map +1 -1
  564. package/dist/esm-es5/taro-tab-item-core.entry.js +1 -1
  565. package/dist/esm-es5/taro-tab-item-core.entry.js.map +1 -1
  566. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  567. package/dist/esm-es5/taro-tabbar.entry.js.map +1 -1
  568. package/dist/esm-es5/taro-tabs-core.entry.js +1 -1
  569. package/dist/esm-es5/taro-tabs-core.entry.js.map +1 -1
  570. package/dist/esm-es5/taro-text-core.entry.js +1 -1
  571. package/dist/esm-es5/taro-text-core.entry.js.map +1 -1
  572. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  573. package/dist/esm-es5/taro-textarea-core.entry.js.map +1 -1
  574. package/dist/esm-es5/taro-video-control_3.entry.js +1 -1
  575. package/dist/esm-es5/taro-video-control_3.entry.js.map +1 -1
  576. package/dist/esm-es5/taro-view-core.entry.js +1 -1
  577. package/dist/esm-es5/taro-view-core.entry.js.map +1 -1
  578. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -1
  579. package/dist/esm-es5/taro-voip-room-core.entry.js.map +1 -1
  580. package/dist/esm-es5/taro-web-view-core.entry.js +1 -1
  581. package/dist/esm-es5/taro-web-view-core.entry.js.map +1 -1
  582. package/dist/taro-components/index.esm.js.map +1 -1
  583. package/dist/taro-components/p-020bcd8c.entry.js +2 -0
  584. package/dist/taro-components/p-020bcd8c.entry.js.map +1 -0
  585. package/dist/taro-components/p-03d4de13.entry.js +2 -0
  586. package/dist/taro-components/p-03d4de13.entry.js.map +1 -0
  587. package/dist/taro-components/p-05f3f84a.entry.js +2 -0
  588. package/dist/taro-components/p-05f3f84a.entry.js.map +1 -0
  589. package/dist/taro-components/p-087bf23a.system.entry.js +2 -0
  590. package/dist/taro-components/p-087bf23a.system.entry.js.map +1 -0
  591. package/dist/taro-components/p-0895120a.system.entry.js +2 -0
  592. package/dist/taro-components/p-0895120a.system.entry.js.map +1 -0
  593. package/dist/taro-components/p-08bb8dfc.system.entry.js +2 -0
  594. package/dist/taro-components/p-08bb8dfc.system.entry.js.map +1 -0
  595. package/dist/taro-components/p-09db02e6.entry.js +2 -0
  596. package/dist/taro-components/p-09db02e6.entry.js.map +1 -0
  597. package/dist/taro-components/p-0a165ad3.system.entry.js +2 -0
  598. package/dist/taro-components/p-0a165ad3.system.entry.js.map +1 -0
  599. package/dist/taro-components/p-0a9b984e.system.entry.js +2 -0
  600. package/dist/taro-components/p-0a9b984e.system.entry.js.map +1 -0
  601. package/dist/taro-components/p-0accc602.entry.js +2 -0
  602. package/dist/taro-components/p-0accc602.entry.js.map +1 -0
  603. package/dist/taro-components/p-0faf45d5.entry.js +2 -0
  604. package/dist/taro-components/p-0faf45d5.entry.js.map +1 -0
  605. package/dist/taro-components/p-10046f1a.system.entry.js +2 -0
  606. package/dist/taro-components/p-10046f1a.system.entry.js.map +1 -0
  607. package/dist/taro-components/p-10be7fb5.system.entry.js +2 -0
  608. package/dist/taro-components/p-10be7fb5.system.entry.js.map +1 -0
  609. package/dist/taro-components/p-15e45ed6.system.js.map +1 -1
  610. package/dist/taro-components/p-17302fe9.system.entry.js +2 -0
  611. package/dist/taro-components/p-17302fe9.system.entry.js.map +1 -0
  612. package/dist/taro-components/p-1743a04b.system.js.map +1 -1
  613. package/dist/taro-components/p-1941d333.system.entry.js +2 -0
  614. package/dist/taro-components/p-1941d333.system.entry.js.map +1 -0
  615. package/dist/taro-components/p-19e87e18.entry.js +2 -0
  616. package/dist/taro-components/p-19e87e18.entry.js.map +1 -0
  617. package/dist/taro-components/p-1a0e1932.system.js +3 -0
  618. package/dist/taro-components/p-1a0e1932.system.js.map +1 -0
  619. package/dist/taro-components/p-1c320250.system.entry.js +2 -0
  620. package/dist/taro-components/p-1c320250.system.entry.js.map +1 -0
  621. package/dist/taro-components/p-1c446c65.system.js +2 -0
  622. package/dist/taro-components/p-1c446c65.system.js.map +1 -0
  623. package/dist/taro-components/p-2024e133.system.entry.js +2 -0
  624. package/dist/taro-components/p-2024e133.system.entry.js.map +1 -0
  625. package/dist/taro-components/p-2049bdc4.entry.js +2 -0
  626. package/dist/taro-components/p-2049bdc4.entry.js.map +1 -0
  627. package/dist/taro-components/p-2357313b.entry.js +2 -0
  628. package/dist/taro-components/p-2357313b.entry.js.map +1 -0
  629. package/dist/taro-components/p-24c2fd23.entry.js +2 -0
  630. package/dist/taro-components/p-24c2fd23.entry.js.map +1 -0
  631. package/dist/taro-components/p-26889f3c.system.entry.js +2 -0
  632. package/dist/taro-components/p-26889f3c.system.entry.js.map +1 -0
  633. package/dist/taro-components/p-281278cf.entry.js +2 -0
  634. package/dist/taro-components/p-281278cf.entry.js.map +1 -0
  635. package/dist/taro-components/p-30f32fa2.system.entry.js +2 -0
  636. package/dist/taro-components/p-30f32fa2.system.entry.js.map +1 -0
  637. package/dist/taro-components/p-30fe0e81.system.entry.js +2 -0
  638. package/dist/taro-components/p-30fe0e81.system.entry.js.map +1 -0
  639. package/dist/taro-components/p-33223303.system.entry.js +2 -0
  640. package/dist/taro-components/p-33223303.system.entry.js.map +1 -0
  641. package/dist/taro-components/p-386ae2b2.entry.js +2 -0
  642. package/dist/taro-components/p-386ae2b2.entry.js.map +1 -0
  643. package/dist/taro-components/p-3b1d2d37.system.js.map +1 -1
  644. package/dist/taro-components/p-3bce88d9.entry.js +2 -0
  645. package/dist/taro-components/p-3bce88d9.entry.js.map +1 -0
  646. package/dist/taro-components/p-3f07f3d3.entry.js +2 -0
  647. package/dist/taro-components/p-3f07f3d3.entry.js.map +1 -0
  648. package/dist/taro-components/p-4086e546.system.entry.js +2 -0
  649. package/dist/taro-components/p-4086e546.system.entry.js.map +1 -0
  650. package/dist/taro-components/p-4190e20b.system.entry.js +2 -0
  651. package/dist/taro-components/p-4190e20b.system.entry.js.map +1 -0
  652. package/dist/taro-components/p-4263c9d9.entry.js +2 -0
  653. package/dist/taro-components/p-4263c9d9.entry.js.map +1 -0
  654. package/dist/taro-components/p-46244579.system.entry.js +2 -0
  655. package/dist/taro-components/p-46244579.system.entry.js.map +1 -0
  656. package/dist/taro-components/p-4915fdc1.system.entry.js +2 -0
  657. package/dist/taro-components/p-4915fdc1.system.entry.js.map +1 -0
  658. package/dist/taro-components/p-4a462c95.entry.js +2 -0
  659. package/dist/taro-components/p-4a462c95.entry.js.map +1 -0
  660. package/dist/taro-components/p-4bc85eb7.entry.js +2 -0
  661. package/dist/taro-components/p-4bc85eb7.entry.js.map +1 -0
  662. package/dist/taro-components/p-4d0da795.system.entry.js +2 -0
  663. package/dist/taro-components/p-4d0da795.system.entry.js.map +1 -0
  664. package/dist/taro-components/p-50ea2036.system.js.map +1 -1
  665. package/dist/taro-components/p-518146fd.system.entry.js +2 -0
  666. package/dist/taro-components/p-518146fd.system.entry.js.map +1 -0
  667. package/dist/taro-components/p-51b6fc09.system.entry.js +2 -0
  668. package/dist/taro-components/p-51b6fc09.system.entry.js.map +1 -0
  669. package/dist/taro-components/p-51caa3f3.entry.js +2 -0
  670. package/dist/taro-components/p-51caa3f3.entry.js.map +1 -0
  671. package/dist/taro-components/p-56da1da3.system.entry.js +2 -0
  672. package/dist/taro-components/p-56da1da3.system.entry.js.map +1 -0
  673. package/dist/taro-components/p-58877ef2.system.entry.js +2 -0
  674. package/dist/taro-components/p-58877ef2.system.entry.js.map +1 -0
  675. package/dist/taro-components/p-59590806.system.entry.js +2 -0
  676. package/dist/taro-components/p-59590806.system.entry.js.map +1 -0
  677. package/dist/taro-components/p-5d3acf86.entry.js +2 -0
  678. package/dist/taro-components/p-5d3acf86.entry.js.map +1 -0
  679. package/dist/taro-components/p-5f3c65f0.entry.js +2 -0
  680. package/dist/taro-components/p-5f3c65f0.entry.js.map +1 -0
  681. package/dist/taro-components/p-603ceecd.entry.js +2 -0
  682. package/dist/taro-components/p-603ceecd.entry.js.map +1 -0
  683. package/dist/taro-components/p-61f225ef.system.js.map +1 -1
  684. package/dist/taro-components/p-623b3eb6.system.entry.js +2 -0
  685. package/dist/taro-components/p-623b3eb6.system.entry.js.map +1 -0
  686. package/dist/taro-components/p-651586f8.system.entry.js +2 -0
  687. package/dist/taro-components/p-651586f8.system.entry.js.map +1 -0
  688. package/dist/taro-components/p-663e27a0.entry.js +2 -0
  689. package/dist/taro-components/p-663e27a0.entry.js.map +1 -0
  690. package/dist/taro-components/p-66b07ac0.entry.js +2 -0
  691. package/dist/taro-components/p-66b07ac0.entry.js.map +1 -0
  692. package/dist/taro-components/p-67c3a0ba.entry.js +2 -0
  693. package/dist/taro-components/p-67c3a0ba.entry.js.map +1 -0
  694. package/dist/taro-components/p-69f6784d.system.entry.js +2 -0
  695. package/dist/taro-components/p-69f6784d.system.entry.js.map +1 -0
  696. package/dist/taro-components/p-69fa7272.system.entry.js +2 -0
  697. package/dist/taro-components/p-69fa7272.system.entry.js.map +1 -0
  698. package/dist/taro-components/p-6a96da58.js.map +1 -1
  699. package/dist/taro-components/p-6bb1fdf2.entry.js +2 -0
  700. package/dist/taro-components/p-6bb1fdf2.entry.js.map +1 -0
  701. package/dist/taro-components/p-6dae898a.system.entry.js +2 -0
  702. package/dist/taro-components/p-6dae898a.system.entry.js.map +1 -0
  703. package/dist/taro-components/p-6f048097.system.entry.js +2 -0
  704. package/dist/taro-components/p-6f048097.system.entry.js.map +1 -0
  705. package/dist/taro-components/p-6f214fc3.system.entry.js +2 -0
  706. package/dist/taro-components/p-6f214fc3.system.entry.js.map +1 -0
  707. package/dist/taro-components/p-72f327e1.js.map +1 -1
  708. package/dist/taro-components/p-736053bb.system.entry.js +2 -0
  709. package/dist/taro-components/p-736053bb.system.entry.js.map +1 -0
  710. package/dist/taro-components/p-74bf8246.system.entry.js +2 -0
  711. package/dist/taro-components/p-74bf8246.system.entry.js.map +1 -0
  712. package/dist/taro-components/p-76724e58.js.map +1 -1
  713. package/dist/taro-components/p-76e6fbff.entry.js +2 -0
  714. package/dist/taro-components/p-76e6fbff.entry.js.map +1 -0
  715. package/dist/taro-components/p-780870eb.entry.js +2 -0
  716. package/dist/taro-components/p-780870eb.entry.js.map +1 -0
  717. package/dist/taro-components/p-78c30850.system.entry.js +2 -0
  718. package/dist/taro-components/p-78c30850.system.entry.js.map +1 -0
  719. package/dist/taro-components/p-78e3ebb9.js +3 -0
  720. package/dist/taro-components/p-78e3ebb9.js.map +1 -0
  721. package/dist/taro-components/p-7a2f11dc.entry.js +2 -0
  722. package/dist/taro-components/p-7a2f11dc.entry.js.map +1 -0
  723. package/dist/taro-components/p-7c1fec76.entry.js +2 -0
  724. package/dist/taro-components/p-7c1fec76.entry.js.map +1 -0
  725. package/dist/taro-components/p-7c6f0d5c.entry.js +2 -0
  726. package/dist/taro-components/p-7c6f0d5c.entry.js.map +1 -0
  727. package/dist/taro-components/p-7dd9c8da.system.entry.js +2 -0
  728. package/dist/taro-components/p-7dd9c8da.system.entry.js.map +1 -0
  729. package/dist/taro-components/p-8027e1c6.system.entry.js +2 -0
  730. package/dist/taro-components/p-8027e1c6.system.entry.js.map +1 -0
  731. package/dist/taro-components/p-828bd091.entry.js +2 -0
  732. package/dist/taro-components/p-828bd091.entry.js.map +1 -0
  733. package/dist/taro-components/p-8425ff09.entry.js +2 -0
  734. package/dist/taro-components/p-8425ff09.entry.js.map +1 -0
  735. package/dist/taro-components/p-8594d1e5.entry.js +2 -0
  736. package/dist/taro-components/p-8594d1e5.entry.js.map +1 -0
  737. package/dist/taro-components/p-8625c29c.entry.js +2 -0
  738. package/dist/taro-components/p-8625c29c.entry.js.map +1 -0
  739. package/dist/taro-components/p-88d64daa.system.entry.js +2 -0
  740. package/dist/taro-components/p-88d64daa.system.entry.js.map +1 -0
  741. package/dist/taro-components/p-88fbacdb.entry.js +2 -0
  742. package/dist/taro-components/p-88fbacdb.entry.js.map +1 -0
  743. package/dist/taro-components/p-895cd7c9.system.entry.js +2 -0
  744. package/dist/taro-components/p-895cd7c9.system.entry.js.map +1 -0
  745. package/dist/taro-components/p-8d2101be.system.entry.js +2 -0
  746. package/dist/taro-components/p-8d2101be.system.entry.js.map +1 -0
  747. package/dist/taro-components/p-8e5cc8fe.system.entry.js +2 -0
  748. package/dist/taro-components/p-8e5cc8fe.system.entry.js.map +1 -0
  749. package/dist/taro-components/p-908ddbb0.entry.js +2 -0
  750. package/dist/taro-components/p-908ddbb0.entry.js.map +1 -0
  751. package/dist/taro-components/p-91f8cd40.entry.js +2 -0
  752. package/dist/taro-components/p-91f8cd40.entry.js.map +1 -0
  753. package/dist/taro-components/p-93ccd68a.entry.js +2 -0
  754. package/dist/taro-components/p-93ccd68a.entry.js.map +1 -0
  755. package/dist/taro-components/p-955fbcfa.entry.js +2 -0
  756. package/dist/taro-components/p-955fbcfa.entry.js.map +1 -0
  757. package/dist/taro-components/p-95f70aea.system.entry.js +2 -0
  758. package/dist/taro-components/p-95f70aea.system.entry.js.map +1 -0
  759. package/dist/taro-components/p-97782cdd.system.entry.js +2 -0
  760. package/dist/taro-components/p-97782cdd.system.entry.js.map +1 -0
  761. package/dist/taro-components/p-982e431d.entry.js +2 -0
  762. package/dist/taro-components/p-982e431d.entry.js.map +1 -0
  763. package/dist/taro-components/p-9bc9f3a0.entry.js +2 -0
  764. package/dist/taro-components/p-9bc9f3a0.entry.js.map +1 -0
  765. package/dist/taro-components/p-9d4fa0d3.system.entry.js +2 -0
  766. package/dist/taro-components/p-9d4fa0d3.system.entry.js.map +1 -0
  767. package/dist/taro-components/p-a23a21e1.entry.js +2 -0
  768. package/dist/taro-components/p-a23a21e1.entry.js.map +1 -0
  769. package/dist/taro-components/p-a7789ed6.entry.js +2 -0
  770. package/dist/taro-components/p-a7789ed6.entry.js.map +1 -0
  771. package/dist/taro-components/p-adc37a00.entry.js +2 -0
  772. package/dist/taro-components/p-adc37a00.entry.js.map +1 -0
  773. package/dist/taro-components/p-ae3f1ed4.system.entry.js +2 -0
  774. package/dist/taro-components/p-ae3f1ed4.system.entry.js.map +1 -0
  775. package/dist/taro-components/p-b1249ebb.system.entry.js +2 -0
  776. package/dist/taro-components/p-b1249ebb.system.entry.js.map +1 -0
  777. package/dist/taro-components/p-b1c972e2.system.entry.js +2 -0
  778. package/dist/taro-components/p-b1c972e2.system.entry.js.map +1 -0
  779. package/dist/taro-components/p-b2bb02d7.system.entry.js +2 -0
  780. package/dist/taro-components/p-b2bb02d7.system.entry.js.map +1 -0
  781. package/dist/taro-components/p-b313c11a.entry.js +2 -0
  782. package/dist/taro-components/p-b313c11a.entry.js.map +1 -0
  783. package/dist/taro-components/p-b39b973e.entry.js +2 -0
  784. package/dist/taro-components/p-b39b973e.entry.js.map +1 -0
  785. package/dist/taro-components/p-b4419d86.entry.js +2 -0
  786. package/dist/taro-components/p-b4419d86.entry.js.map +1 -0
  787. package/dist/taro-components/p-b8ba5d0a.entry.js +2 -0
  788. package/dist/taro-components/p-b8ba5d0a.entry.js.map +1 -0
  789. package/dist/taro-components/p-bac3deb0.system.entry.js +2 -0
  790. package/dist/taro-components/p-bac3deb0.system.entry.js.map +1 -0
  791. package/dist/taro-components/p-bba8c3a7.system.entry.js +2 -0
  792. package/dist/taro-components/p-bba8c3a7.system.entry.js.map +1 -0
  793. package/dist/taro-components/p-bd5177d3.system.js +2 -0
  794. package/dist/taro-components/p-bd5177d3.system.js.map +1 -0
  795. package/dist/taro-components/p-c0bb8610.entry.js +2 -0
  796. package/dist/taro-components/p-c0bb8610.entry.js.map +1 -0
  797. package/dist/taro-components/p-c1c0e16d.entry.js +2 -0
  798. package/dist/taro-components/p-c1c0e16d.entry.js.map +1 -0
  799. package/dist/taro-components/p-c2ac8f08.entry.js +2 -0
  800. package/dist/taro-components/p-c2ac8f08.entry.js.map +1 -0
  801. package/dist/taro-components/p-c33733b3.system.entry.js +2 -0
  802. package/dist/taro-components/p-c33733b3.system.entry.js.map +1 -0
  803. package/dist/taro-components/p-c3e98fdf.entry.js +2 -0
  804. package/dist/taro-components/p-c3e98fdf.entry.js.map +1 -0
  805. package/dist/taro-components/p-c4fdb669.system.entry.js +2 -0
  806. package/dist/taro-components/p-c4fdb669.system.entry.js.map +1 -0
  807. package/dist/taro-components/p-c50087fd.entry.js +2 -0
  808. package/dist/taro-components/p-c50087fd.entry.js.map +1 -0
  809. package/dist/taro-components/p-c586a796.system.entry.js +2 -0
  810. package/dist/taro-components/p-c586a796.system.entry.js.map +1 -0
  811. package/dist/taro-components/p-c6385fc2.system.entry.js +2 -0
  812. package/dist/taro-components/p-c6385fc2.system.entry.js.map +1 -0
  813. package/dist/taro-components/p-c6e6dab1.system.entry.js +2 -0
  814. package/dist/taro-components/p-c6e6dab1.system.entry.js.map +1 -0
  815. package/dist/taro-components/p-c70dd956.system.entry.js +2 -0
  816. package/dist/taro-components/p-c70dd956.system.entry.js.map +1 -0
  817. package/dist/taro-components/p-d1d19ce9.entry.js +2 -0
  818. package/dist/taro-components/p-d1d19ce9.entry.js.map +1 -0
  819. package/dist/taro-components/p-d3c7f87d.js +2 -0
  820. package/dist/taro-components/p-d3c7f87d.js.map +1 -0
  821. package/dist/taro-components/p-d5234e7e.js.map +1 -1
  822. package/dist/taro-components/p-d562aae3.entry.js +2 -0
  823. package/dist/taro-components/p-d562aae3.entry.js.map +1 -0
  824. package/dist/taro-components/p-d61d3394.entry.js +2 -0
  825. package/dist/taro-components/p-d61d3394.entry.js.map +1 -0
  826. package/dist/taro-components/p-d621d190.entry.js +2 -0
  827. package/dist/taro-components/p-d621d190.entry.js.map +1 -0
  828. package/dist/taro-components/p-d8c8c63f.entry.js +2 -0
  829. package/dist/taro-components/p-d8c8c63f.entry.js.map +1 -0
  830. package/dist/taro-components/p-da5cdbf5.system.entry.js +2 -0
  831. package/dist/taro-components/p-da5cdbf5.system.entry.js.map +1 -0
  832. package/dist/taro-components/p-de2d8e2e.system.entry.js +2 -0
  833. package/dist/taro-components/p-de2d8e2e.system.entry.js.map +1 -0
  834. package/dist/taro-components/p-de356b29.system.entry.js +2 -0
  835. package/dist/taro-components/p-de356b29.system.entry.js.map +1 -0
  836. package/dist/taro-components/p-e0e4a403.entry.js +2 -0
  837. package/dist/taro-components/p-e0e4a403.entry.js.map +1 -0
  838. package/dist/taro-components/p-e3f8265d.system.entry.js +2 -0
  839. package/dist/taro-components/p-e3f8265d.system.entry.js.map +1 -0
  840. package/dist/taro-components/p-e53feb03.system.entry.js +2 -0
  841. package/dist/taro-components/p-e53feb03.system.entry.js.map +1 -0
  842. package/dist/taro-components/p-e67165fd.entry.js +2 -0
  843. package/dist/taro-components/p-e67165fd.entry.js.map +1 -0
  844. package/dist/taro-components/p-eb2a7609.entry.js +2 -0
  845. package/dist/taro-components/p-eb2a7609.entry.js.map +1 -0
  846. package/dist/taro-components/p-eb9adf17.entry.js +2 -0
  847. package/dist/taro-components/p-eb9adf17.entry.js.map +1 -0
  848. package/dist/taro-components/p-ef4c1fd4.entry.js +2 -0
  849. package/dist/taro-components/p-ef4c1fd4.entry.js.map +1 -0
  850. package/dist/taro-components/p-ef7e7d73.system.entry.js +2 -0
  851. package/dist/taro-components/p-ef7e7d73.system.entry.js.map +1 -0
  852. package/dist/taro-components/p-efa51030.system.entry.js +2 -0
  853. package/dist/taro-components/p-efa51030.system.entry.js.map +1 -0
  854. package/dist/taro-components/p-efe31b23.entry.js +2 -0
  855. package/dist/taro-components/p-efe31b23.entry.js.map +1 -0
  856. package/dist/taro-components/p-f034fb11.system.entry.js +2 -0
  857. package/dist/taro-components/p-f034fb11.system.entry.js.map +1 -0
  858. package/dist/taro-components/p-f499c0a0.system.entry.js +2 -0
  859. package/dist/taro-components/p-f499c0a0.system.entry.js.map +1 -0
  860. package/dist/taro-components/p-f88f0f55.entry.js +2 -0
  861. package/dist/taro-components/p-f88f0f55.entry.js.map +1 -0
  862. package/dist/taro-components/p-f9ac515e.system.entry.js +2 -0
  863. package/dist/taro-components/p-f9ac515e.system.entry.js.map +1 -0
  864. package/dist/taro-components/p-fa36fe8e.system.entry.js +2 -0
  865. package/dist/taro-components/p-fa36fe8e.system.entry.js.map +1 -0
  866. package/dist/taro-components/p-fcdac6ec.system.entry.js +2 -0
  867. package/dist/taro-components/p-fcdac6ec.system.entry.js.map +1 -0
  868. package/dist/taro-components/p-fda82bc1.entry.js +2 -0
  869. package/dist/taro-components/p-fda82bc1.entry.js.map +1 -0
  870. package/dist/taro-components/p-fe58b450.entry.js +2 -0
  871. package/dist/taro-components/p-fe58b450.entry.js.map +1 -0
  872. package/dist/taro-components/p-fec6746d.entry.js +2 -0
  873. package/dist/taro-components/p-fec6746d.entry.js.map +1 -0
  874. package/dist/taro-components/taro-components.esm.js +1 -1
  875. package/dist/taro-components/taro-components.esm.js.map +1 -1
  876. package/dist/taro-components/taro-components.js +1 -1
  877. package/dist/types/components/icon/icon.d.ts +1 -1
  878. package/dist/types/components/image/image.d.ts +1 -1
  879. package/dist/types/components/input/input.d.ts +1 -1
  880. package/dist/types/components/navigator/navigator.d.ts +0 -16
  881. package/dist/types/components/picker/picker.d.ts +3 -3
  882. package/dist/types/components/rich-text/rich-text.d.ts +3 -3
  883. package/dist/types/components/scroll-view/scroll-view.d.ts +4 -1
  884. package/dist/types/components/swiper/swiper-item.d.ts +2 -0
  885. package/dist/types/components/swiper/swiper.d.ts +1 -0
  886. package/dist/types/components/tabbar/tabbar-item.d.ts +2 -1
  887. package/dist/types/components.d.ts +26 -2
  888. package/dist/types/stencil-public-runtime.d.ts +59 -3
  889. package/dist/types/utils/index.d.ts +1 -0
  890. package/lib/react/component-lib/index.d.ts +55 -0
  891. package/lib/react/component-lib/index.js +68 -0
  892. package/lib/react/component-lib/index.js.map +1 -0
  893. package/lib/react/component-lib/input.d.ts +3 -0
  894. package/lib/react/component-lib/input.js +17 -0
  895. package/lib/react/component-lib/input.js.map +1 -0
  896. package/lib/react/component-lib/reactify-wc.d.ts +7 -0
  897. package/lib/react/component-lib/reactify-wc.js +176 -0
  898. package/lib/react/component-lib/reactify-wc.js.map +1 -0
  899. package/lib/react/components.d.ts +82 -0
  900. package/lib/react/components.js +85 -0
  901. package/lib/react/components.js.map +1 -0
  902. package/lib/react/helper.d.ts +10 -0
  903. package/lib/react/helper.js +7 -0
  904. package/lib/react/helper.js.map +1 -0
  905. package/lib/react/index.d.ts +1 -0
  906. package/lib/react/index.js +2 -0
  907. package/lib/react/index.js.map +1 -0
  908. package/lib/react/interfaces-4f837811.d.ts +30 -0
  909. package/lib/react/react-component-lib/createComponent.d.ts +10 -0
  910. package/lib/react/react-component-lib/createComponent.js +70 -0
  911. package/lib/react/react-component-lib/createComponent.js.map +1 -0
  912. package/lib/react/react-component-lib/createOverlayComponent.d.ts +21 -0
  913. package/lib/react/react-component-lib/createOverlayComponent.js +91 -0
  914. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -0
  915. package/lib/react/react-component-lib/index.d.ts +2 -0
  916. package/lib/react/react-component-lib/index.js +3 -0
  917. package/lib/react/react-component-lib/index.js.map +1 -0
  918. package/lib/react/react-component-lib/utils/attachProps.d.ts +13 -0
  919. package/lib/react/react-component-lib/utils/attachProps.js +87 -0
  920. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -0
  921. package/lib/react/react-component-lib/utils/case.d.ts +3 -0
  922. package/lib/react/react-component-lib/utils/case.js +9 -0
  923. package/lib/react/react-component-lib/utils/case.js.map +1 -0
  924. package/lib/react/react-component-lib/utils/index.d.ts +11 -0
  925. package/lib/react/react-component-lib/utils/index.js +37 -0
  926. package/lib/react/react-component-lib/utils/index.js.map +1 -0
  927. package/lib/vue2/component-lib/components.d.ts +111 -0
  928. package/lib/vue2/component-lib/components.js +74 -0
  929. package/lib/vue2/component-lib/components.js.map +1 -0
  930. package/lib/vue2/component-lib/createComponent.d.ts +14 -0
  931. package/lib/vue2/component-lib/createComponent.js +23 -0
  932. package/lib/vue2/component-lib/createComponent.js.map +1 -0
  933. package/lib/vue2/component-lib/createFormsComponent.d.ts +22 -0
  934. package/lib/vue2/component-lib/createFormsComponent.js +53 -0
  935. package/lib/vue2/component-lib/createFormsComponent.js.map +1 -0
  936. package/lib/vue2/component-lib/icon.d.ts +16 -0
  937. package/lib/vue2/component-lib/icon.js +23 -0
  938. package/lib/vue2/component-lib/icon.js.map +1 -0
  939. package/lib/vue2/component-lib/image.d.ts +16 -0
  940. package/lib/vue2/component-lib/image.js +24 -0
  941. package/lib/vue2/component-lib/image.js.map +1 -0
  942. package/lib/vue2/component-lib/index.d.ts +1 -0
  943. package/lib/vue2/component-lib/index.js +30 -0
  944. package/lib/vue2/component-lib/index.js.map +1 -0
  945. package/lib/vue2/component-lib/mixins/listeners.d.ts +6 -0
  946. package/lib/vue2/component-lib/mixins/listeners.js +14 -0
  947. package/lib/vue2/component-lib/mixins/listeners.js.map +1 -0
  948. package/lib/vue2/component-lib/mixins/refs.d.ts +5 -0
  949. package/lib/vue2/component-lib/mixins/refs.js +53 -0
  950. package/lib/vue2/component-lib/mixins/refs.js.map +1 -0
  951. package/lib/vue2/component-lib/picker.d.ts +25 -0
  952. package/lib/vue2/component-lib/picker.js +41 -0
  953. package/lib/vue2/component-lib/picker.js.map +1 -0
  954. package/lib/vue2/component-lib/scroll-view.d.ts +17 -0
  955. package/lib/vue2/component-lib/scroll-view.js +35 -0
  956. package/lib/vue2/component-lib/scroll-view.js.map +1 -0
  957. package/lib/vue2/component-lib/text.d.ts +16 -0
  958. package/lib/vue2/component-lib/text.js +24 -0
  959. package/lib/vue2/component-lib/text.js.map +1 -0
  960. package/lib/vue2/components.d.ts +356 -0
  961. package/lib/vue2/components.js +645 -0
  962. package/lib/vue2/components.js.map +1 -0
  963. package/lib/vue2/index.d.ts +3 -0
  964. package/lib/vue2/index.js +23 -0
  965. package/lib/vue2/index.js.map +1 -0
  966. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.6.14/node_modules/vue-fragment/dist/vue-fragment.esm.js +4 -0
  967. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue-fragment@1.6.0_vue@2.6.14/node_modules/vue-fragment/dist/vue-fragment.esm.js.map +1 -0
  968. package/lib/vue2/vue-component-lib/utils.d.ts +6 -0
  969. package/lib/vue2/vue-component-lib/utils.js +34 -0
  970. package/lib/vue2/vue-component-lib/utils.js.map +1 -0
  971. package/lib/vue3/component-lib/createComponent.d.ts +10 -0
  972. package/lib/vue3/component-lib/createComponent.js +21 -0
  973. package/lib/vue3/component-lib/createComponent.js.map +1 -0
  974. package/lib/vue3/component-lib/createFormsComponent.d.ts +11 -0
  975. package/lib/vue3/component-lib/createFormsComponent.js +38 -0
  976. package/lib/vue3/component-lib/createFormsComponent.js.map +1 -0
  977. package/lib/vue3/component-lib/forwardRef.d.ts +2 -0
  978. package/lib/vue3/component-lib/forwardRef.js +13 -0
  979. package/lib/vue3/component-lib/forwardRef.js.map +1 -0
  980. package/lib/vue3/component-lib/icon.d.ts +11 -0
  981. package/lib/vue3/component-lib/icon.js +20 -0
  982. package/lib/vue3/component-lib/icon.js.map +1 -0
  983. package/lib/vue3/component-lib/image.d.ts +11 -0
  984. package/lib/vue3/component-lib/image.js +21 -0
  985. package/lib/vue3/component-lib/image.js.map +1 -0
  986. package/lib/vue3/component-lib/index.d.ts +442 -0
  987. package/lib/vue3/component-lib/index.js +68 -0
  988. package/lib/vue3/component-lib/index.js.map +1 -0
  989. package/lib/vue3/component-lib/scroll-view.d.ts +11 -0
  990. package/lib/vue3/component-lib/scroll-view.js +27 -0
  991. package/lib/vue3/component-lib/scroll-view.js.map +1 -0
  992. package/lib/vue3/component-lib/text.d.ts +11 -0
  993. package/lib/vue3/component-lib/text.js +21 -0
  994. package/lib/vue3/component-lib/text.js.map +1 -0
  995. package/lib/vue3/components.d.ts +82 -0
  996. package/lib/vue3/components.js +387 -0
  997. package/lib/vue3/components.js.map +1 -0
  998. package/lib/vue3/index.d.ts +3 -0
  999. package/lib/vue3/index.js +15 -0
  1000. package/lib/vue3/index.js.map +1 -0
  1001. package/lib/vue3/vue-component-lib/utils.d.ts +21 -0
  1002. package/lib/vue3/vue-component-lib/utils.js +163 -0
  1003. package/lib/vue3/vue-component-lib/utils.js.map +1 -0
  1004. package/loader/index.d.ts +9 -0
  1005. package/package.json +15 -13
  1006. package/types/ChannelLive.d.ts +22 -0
  1007. package/types/CommentList.d.ts +1 -0
  1008. package/types/CoverImage.d.ts +4 -4
  1009. package/types/CoverView.d.ts +2 -2
  1010. package/types/Input.d.ts +11 -6
  1011. package/types/LivePusher.d.ts +39 -0
  1012. package/types/Map.d.ts +6 -0
  1013. package/types/MovableArea.d.ts +2 -2
  1014. package/types/Navigator.d.ts +8 -8
  1015. package/types/Radio.d.ts +6 -6
  1016. package/types/RadioGroup.d.ts +2 -2
  1017. package/types/RootPortal.d.ts +0 -1
  1018. package/types/ScrollView.d.ts +1 -1
  1019. package/types/ShareElement.d.ts +0 -5
  1020. package/types/Swiper.d.ts +2 -2
  1021. package/types/Textarea.d.ts +22 -28
  1022. package/types/Video.d.ts +13 -9
  1023. package/types/VoipRoom.d.ts +6 -0
  1024. package/types/index.d.ts +1 -0
  1025. package/types/index.vue3.d.ts +4 -4
  1026. package/dist/cjs/index-47a1959e.js +0 -36
  1027. package/dist/cjs/index-47a1959e.js.map +0 -1
  1028. package/dist/cjs/index-9174e0b1.js +0 -1957
  1029. package/dist/cjs/index-9174e0b1.js.map +0 -1
  1030. package/dist/esm/index-5d881caf.js +0 -1929
  1031. package/dist/esm/index-5d881caf.js.map +0 -1
  1032. package/dist/esm/index-cad8203e.js +0 -33
  1033. package/dist/esm/index-cad8203e.js.map +0 -1
  1034. package/dist/esm-es5/index-5d881caf.js +0 -3
  1035. package/dist/esm-es5/index-5d881caf.js.map +0 -1
  1036. package/dist/esm-es5/index-cad8203e.js +0 -2
  1037. package/dist/esm-es5/index-cad8203e.js.map +0 -1
  1038. package/dist/react/component-lib/index.js +0 -74
  1039. package/dist/react/component-lib/input.js +0 -17
  1040. package/dist/react/component-lib/reactify-wc.js +0 -206
  1041. package/dist/react/components.js +0 -82
  1042. package/dist/react/helper.js +0 -8
  1043. package/dist/react/index.js +0 -1
  1044. package/dist/react/react-component-lib/createComponent.js +0 -99
  1045. package/dist/react/react-component-lib/createOverlayComponent.js +0 -178
  1046. package/dist/react/react-component-lib/index.js +0 -2
  1047. package/dist/react/react-component-lib/interfaces.js +0 -0
  1048. package/dist/react/react-component-lib/utils/attachProps.js +0 -98
  1049. package/dist/react/react-component-lib/utils/case.js +0 -10
  1050. package/dist/react/react-component-lib/utils/dev.js +0 -12
  1051. package/dist/react/react-component-lib/utils/index.js +0 -37
  1052. package/dist/taro-components/p-001ef419.system.entry.js +0 -2
  1053. package/dist/taro-components/p-001ef419.system.entry.js.map +0 -1
  1054. package/dist/taro-components/p-01dc54a5.entry.js +0 -2
  1055. package/dist/taro-components/p-01dc54a5.entry.js.map +0 -1
  1056. package/dist/taro-components/p-0382d7d0.system.entry.js +0 -2
  1057. package/dist/taro-components/p-0382d7d0.system.entry.js.map +0 -1
  1058. package/dist/taro-components/p-0a896bc7.entry.js +0 -2
  1059. package/dist/taro-components/p-0a896bc7.entry.js.map +0 -1
  1060. package/dist/taro-components/p-0b38e6c7.system.entry.js +0 -2
  1061. package/dist/taro-components/p-0b38e6c7.system.entry.js.map +0 -1
  1062. package/dist/taro-components/p-0be383a9.system.entry.js +0 -2
  1063. package/dist/taro-components/p-0be383a9.system.entry.js.map +0 -1
  1064. package/dist/taro-components/p-0d36ef6b.entry.js +0 -2
  1065. package/dist/taro-components/p-0d36ef6b.entry.js.map +0 -1
  1066. package/dist/taro-components/p-0ee6a068.entry.js +0 -2
  1067. package/dist/taro-components/p-0ee6a068.entry.js.map +0 -1
  1068. package/dist/taro-components/p-12e4b019.entry.js +0 -2
  1069. package/dist/taro-components/p-12e4b019.entry.js.map +0 -1
  1070. package/dist/taro-components/p-15dced71.system.entry.js +0 -2
  1071. package/dist/taro-components/p-15dced71.system.entry.js.map +0 -1
  1072. package/dist/taro-components/p-17657dca.entry.js +0 -2
  1073. package/dist/taro-components/p-17657dca.entry.js.map +0 -1
  1074. package/dist/taro-components/p-186ad7ff.entry.js +0 -2
  1075. package/dist/taro-components/p-186ad7ff.entry.js.map +0 -1
  1076. package/dist/taro-components/p-19afe402.entry.js +0 -2
  1077. package/dist/taro-components/p-19afe402.entry.js.map +0 -1
  1078. package/dist/taro-components/p-1a47133c.system.entry.js +0 -2
  1079. package/dist/taro-components/p-1a47133c.system.entry.js.map +0 -1
  1080. package/dist/taro-components/p-1ad0aa95.system.entry.js +0 -2
  1081. package/dist/taro-components/p-1ad0aa95.system.entry.js.map +0 -1
  1082. package/dist/taro-components/p-1b1420c9.system.entry.js +0 -2
  1083. package/dist/taro-components/p-1b1420c9.system.entry.js.map +0 -1
  1084. package/dist/taro-components/p-1b2556e2.system.entry.js +0 -2
  1085. package/dist/taro-components/p-1b2556e2.system.entry.js.map +0 -1
  1086. package/dist/taro-components/p-1b64d2a2.entry.js +0 -2
  1087. package/dist/taro-components/p-1b64d2a2.entry.js.map +0 -1
  1088. package/dist/taro-components/p-1bd3d09b.system.entry.js +0 -2
  1089. package/dist/taro-components/p-1bd3d09b.system.entry.js.map +0 -1
  1090. package/dist/taro-components/p-1cb76199.entry.js +0 -2
  1091. package/dist/taro-components/p-1cb76199.entry.js.map +0 -1
  1092. package/dist/taro-components/p-2096bc5f.entry.js +0 -2
  1093. package/dist/taro-components/p-2096bc5f.entry.js.map +0 -1
  1094. package/dist/taro-components/p-20ec6387.entry.js +0 -2
  1095. package/dist/taro-components/p-20ec6387.entry.js.map +0 -1
  1096. package/dist/taro-components/p-21b77a13.system.entry.js +0 -2
  1097. package/dist/taro-components/p-21b77a13.system.entry.js.map +0 -1
  1098. package/dist/taro-components/p-2243a376.entry.js +0 -2
  1099. package/dist/taro-components/p-2243a376.entry.js.map +0 -1
  1100. package/dist/taro-components/p-281a2bcf.entry.js +0 -2
  1101. package/dist/taro-components/p-281a2bcf.entry.js.map +0 -1
  1102. package/dist/taro-components/p-28dade4f.entry.js +0 -2
  1103. package/dist/taro-components/p-28dade4f.entry.js.map +0 -1
  1104. package/dist/taro-components/p-29f04296.entry.js +0 -2
  1105. package/dist/taro-components/p-29f04296.entry.js.map +0 -1
  1106. package/dist/taro-components/p-301a8b85.system.entry.js +0 -2
  1107. package/dist/taro-components/p-301a8b85.system.entry.js.map +0 -1
  1108. package/dist/taro-components/p-31e10d77.system.entry.js +0 -2
  1109. package/dist/taro-components/p-31e10d77.system.entry.js.map +0 -1
  1110. package/dist/taro-components/p-36c64ed0.system.entry.js +0 -2
  1111. package/dist/taro-components/p-36c64ed0.system.entry.js.map +0 -1
  1112. package/dist/taro-components/p-37d71e63.entry.js +0 -2
  1113. package/dist/taro-components/p-37d71e63.entry.js.map +0 -1
  1114. package/dist/taro-components/p-386b9de8.entry.js +0 -2
  1115. package/dist/taro-components/p-386b9de8.entry.js.map +0 -1
  1116. package/dist/taro-components/p-3b9a1125.entry.js +0 -2
  1117. package/dist/taro-components/p-3b9a1125.entry.js.map +0 -1
  1118. package/dist/taro-components/p-3c256e0e.entry.js +0 -2
  1119. package/dist/taro-components/p-3c256e0e.entry.js.map +0 -1
  1120. package/dist/taro-components/p-3e6b29c6.entry.js +0 -2
  1121. package/dist/taro-components/p-3e6b29c6.entry.js.map +0 -1
  1122. package/dist/taro-components/p-427a2872.entry.js +0 -2
  1123. package/dist/taro-components/p-427a2872.entry.js.map +0 -1
  1124. package/dist/taro-components/p-439a3349.system.entry.js +0 -2
  1125. package/dist/taro-components/p-439a3349.system.entry.js.map +0 -1
  1126. package/dist/taro-components/p-447386b2.system.entry.js +0 -2
  1127. package/dist/taro-components/p-447386b2.system.entry.js.map +0 -1
  1128. package/dist/taro-components/p-45b6ea0c.system.entry.js +0 -2
  1129. package/dist/taro-components/p-45b6ea0c.system.entry.js.map +0 -1
  1130. package/dist/taro-components/p-49a6cae4.system.entry.js +0 -2
  1131. package/dist/taro-components/p-49a6cae4.system.entry.js.map +0 -1
  1132. package/dist/taro-components/p-4b05e003.entry.js +0 -2
  1133. package/dist/taro-components/p-4b05e003.entry.js.map +0 -1
  1134. package/dist/taro-components/p-4b27df71.system.entry.js +0 -2
  1135. package/dist/taro-components/p-4b27df71.system.entry.js.map +0 -1
  1136. package/dist/taro-components/p-4b71c926.entry.js +0 -2
  1137. package/dist/taro-components/p-4b71c926.entry.js.map +0 -1
  1138. package/dist/taro-components/p-4fbb8b4c.system.entry.js +0 -2
  1139. package/dist/taro-components/p-4fbb8b4c.system.entry.js.map +0 -1
  1140. package/dist/taro-components/p-51040638.entry.js +0 -2
  1141. package/dist/taro-components/p-51040638.entry.js.map +0 -1
  1142. package/dist/taro-components/p-55519002.entry.js +0 -2
  1143. package/dist/taro-components/p-55519002.entry.js.map +0 -1
  1144. package/dist/taro-components/p-570222e2.entry.js +0 -2
  1145. package/dist/taro-components/p-570222e2.entry.js.map +0 -1
  1146. package/dist/taro-components/p-5746d7ce.js +0 -2
  1147. package/dist/taro-components/p-5746d7ce.js.map +0 -1
  1148. package/dist/taro-components/p-580a72d1.system.entry.js +0 -2
  1149. package/dist/taro-components/p-580a72d1.system.entry.js.map +0 -1
  1150. package/dist/taro-components/p-59418be7.system.entry.js +0 -2
  1151. package/dist/taro-components/p-59418be7.system.entry.js.map +0 -1
  1152. package/dist/taro-components/p-59e02aca.system.entry.js +0 -2
  1153. package/dist/taro-components/p-59e02aca.system.entry.js.map +0 -1
  1154. package/dist/taro-components/p-5b552407.entry.js +0 -2
  1155. package/dist/taro-components/p-5b552407.entry.js.map +0 -1
  1156. package/dist/taro-components/p-5bd1c1a1.entry.js +0 -2
  1157. package/dist/taro-components/p-5bd1c1a1.entry.js.map +0 -1
  1158. package/dist/taro-components/p-5bfefd19.js +0 -3
  1159. package/dist/taro-components/p-5bfefd19.js.map +0 -1
  1160. package/dist/taro-components/p-62d750a7.entry.js +0 -2
  1161. package/dist/taro-components/p-62d750a7.entry.js.map +0 -1
  1162. package/dist/taro-components/p-632f9a72.system.entry.js +0 -2
  1163. package/dist/taro-components/p-632f9a72.system.entry.js.map +0 -1
  1164. package/dist/taro-components/p-65971d99.entry.js +0 -2
  1165. package/dist/taro-components/p-65971d99.entry.js.map +0 -1
  1166. package/dist/taro-components/p-663d1bb9.system.js +0 -2
  1167. package/dist/taro-components/p-663d1bb9.system.js.map +0 -1
  1168. package/dist/taro-components/p-6831f7b1.system.entry.js +0 -2
  1169. package/dist/taro-components/p-6831f7b1.system.entry.js.map +0 -1
  1170. package/dist/taro-components/p-6af8be19.entry.js +0 -2
  1171. package/dist/taro-components/p-6af8be19.entry.js.map +0 -1
  1172. package/dist/taro-components/p-6c622fa2.system.entry.js +0 -2
  1173. package/dist/taro-components/p-6c622fa2.system.entry.js.map +0 -1
  1174. package/dist/taro-components/p-6cd941bc.entry.js +0 -2
  1175. package/dist/taro-components/p-6cd941bc.entry.js.map +0 -1
  1176. package/dist/taro-components/p-6ea2995b.entry.js +0 -2
  1177. package/dist/taro-components/p-6ea2995b.entry.js.map +0 -1
  1178. package/dist/taro-components/p-6f8af69f.entry.js +0 -2
  1179. package/dist/taro-components/p-6f8af69f.entry.js.map +0 -1
  1180. package/dist/taro-components/p-701b0286.system.entry.js +0 -2
  1181. package/dist/taro-components/p-701b0286.system.entry.js.map +0 -1
  1182. package/dist/taro-components/p-70defa84.entry.js +0 -2
  1183. package/dist/taro-components/p-70defa84.entry.js.map +0 -1
  1184. package/dist/taro-components/p-72f626ab.system.entry.js +0 -2
  1185. package/dist/taro-components/p-72f626ab.system.entry.js.map +0 -1
  1186. package/dist/taro-components/p-73106bc9.entry.js +0 -2
  1187. package/dist/taro-components/p-73106bc9.entry.js.map +0 -1
  1188. package/dist/taro-components/p-755be847.system.entry.js +0 -2
  1189. package/dist/taro-components/p-755be847.system.entry.js.map +0 -1
  1190. package/dist/taro-components/p-7afc274a.entry.js +0 -2
  1191. package/dist/taro-components/p-7afc274a.entry.js.map +0 -1
  1192. package/dist/taro-components/p-7bafbe22.entry.js +0 -2
  1193. package/dist/taro-components/p-7bafbe22.entry.js.map +0 -1
  1194. package/dist/taro-components/p-7e7a1e62.entry.js +0 -2
  1195. package/dist/taro-components/p-7e7a1e62.entry.js.map +0 -1
  1196. package/dist/taro-components/p-8231e748.entry.js +0 -2
  1197. package/dist/taro-components/p-8231e748.entry.js.map +0 -1
  1198. package/dist/taro-components/p-876edf66.entry.js +0 -2
  1199. package/dist/taro-components/p-876edf66.entry.js.map +0 -1
  1200. package/dist/taro-components/p-898aba38.system.entry.js +0 -2
  1201. package/dist/taro-components/p-898aba38.system.entry.js.map +0 -1
  1202. package/dist/taro-components/p-8a3620a6.system.entry.js +0 -2
  1203. package/dist/taro-components/p-8a3620a6.system.entry.js.map +0 -1
  1204. package/dist/taro-components/p-8a8f286f.system.js +0 -3
  1205. package/dist/taro-components/p-8a8f286f.system.js.map +0 -1
  1206. package/dist/taro-components/p-8bec95d4.system.entry.js +0 -2
  1207. package/dist/taro-components/p-8bec95d4.system.entry.js.map +0 -1
  1208. package/dist/taro-components/p-8c8fe164.system.entry.js +0 -2
  1209. package/dist/taro-components/p-8c8fe164.system.entry.js.map +0 -1
  1210. package/dist/taro-components/p-93cc7adc.entry.js +0 -2
  1211. package/dist/taro-components/p-93cc7adc.entry.js.map +0 -1
  1212. package/dist/taro-components/p-96a784f1.entry.js +0 -2
  1213. package/dist/taro-components/p-96a784f1.entry.js.map +0 -1
  1214. package/dist/taro-components/p-98901e99.system.entry.js +0 -2
  1215. package/dist/taro-components/p-98901e99.system.entry.js.map +0 -1
  1216. package/dist/taro-components/p-99bbe34a.system.entry.js +0 -2
  1217. package/dist/taro-components/p-99bbe34a.system.entry.js.map +0 -1
  1218. package/dist/taro-components/p-9e20c25c.entry.js +0 -2
  1219. package/dist/taro-components/p-9e20c25c.entry.js.map +0 -1
  1220. package/dist/taro-components/p-9f1ca602.system.entry.js +0 -2
  1221. package/dist/taro-components/p-9f1ca602.system.entry.js.map +0 -1
  1222. package/dist/taro-components/p-9f780103.system.entry.js +0 -2
  1223. package/dist/taro-components/p-9f780103.system.entry.js.map +0 -1
  1224. package/dist/taro-components/p-a1ace8c7.system.entry.js +0 -2
  1225. package/dist/taro-components/p-a1ace8c7.system.entry.js.map +0 -1
  1226. package/dist/taro-components/p-a29509fa.system.entry.js +0 -2
  1227. package/dist/taro-components/p-a29509fa.system.entry.js.map +0 -1
  1228. package/dist/taro-components/p-a4961ddd.entry.js +0 -2
  1229. package/dist/taro-components/p-a4961ddd.entry.js.map +0 -1
  1230. package/dist/taro-components/p-a6f2dc54.system.entry.js +0 -2
  1231. package/dist/taro-components/p-a6f2dc54.system.entry.js.map +0 -1
  1232. package/dist/taro-components/p-ab105c26.entry.js +0 -2
  1233. package/dist/taro-components/p-ab105c26.entry.js.map +0 -1
  1234. package/dist/taro-components/p-ad25cc91.system.entry.js +0 -2
  1235. package/dist/taro-components/p-ad25cc91.system.entry.js.map +0 -1
  1236. package/dist/taro-components/p-b04a56bd.system.entry.js +0 -2
  1237. package/dist/taro-components/p-b04a56bd.system.entry.js.map +0 -1
  1238. package/dist/taro-components/p-b10cb428.entry.js +0 -2
  1239. package/dist/taro-components/p-b10cb428.entry.js.map +0 -1
  1240. package/dist/taro-components/p-b4cccb3e.system.entry.js +0 -2
  1241. package/dist/taro-components/p-b4cccb3e.system.entry.js.map +0 -1
  1242. package/dist/taro-components/p-b4ec48c3.entry.js +0 -2
  1243. package/dist/taro-components/p-b4ec48c3.entry.js.map +0 -1
  1244. package/dist/taro-components/p-b500c116.system.entry.js +0 -2
  1245. package/dist/taro-components/p-b500c116.system.entry.js.map +0 -1
  1246. package/dist/taro-components/p-b6733e23.system.entry.js +0 -2
  1247. package/dist/taro-components/p-b6733e23.system.entry.js.map +0 -1
  1248. package/dist/taro-components/p-b832f4e8.entry.js +0 -2
  1249. package/dist/taro-components/p-b832f4e8.entry.js.map +0 -1
  1250. package/dist/taro-components/p-b88a55b4.system.entry.js +0 -2
  1251. package/dist/taro-components/p-b88a55b4.system.entry.js.map +0 -1
  1252. package/dist/taro-components/p-b90926cc.entry.js +0 -2
  1253. package/dist/taro-components/p-b90926cc.entry.js.map +0 -1
  1254. package/dist/taro-components/p-ba743573.entry.js +0 -2
  1255. package/dist/taro-components/p-ba743573.entry.js.map +0 -1
  1256. package/dist/taro-components/p-be3f5ac0.entry.js +0 -2
  1257. package/dist/taro-components/p-be3f5ac0.entry.js.map +0 -1
  1258. package/dist/taro-components/p-beea63a7.entry.js +0 -2
  1259. package/dist/taro-components/p-beea63a7.entry.js.map +0 -1
  1260. package/dist/taro-components/p-c0e3c822.system.entry.js +0 -2
  1261. package/dist/taro-components/p-c0e3c822.system.entry.js.map +0 -1
  1262. package/dist/taro-components/p-c3bb8fa6.entry.js +0 -2
  1263. package/dist/taro-components/p-c3bb8fa6.entry.js.map +0 -1
  1264. package/dist/taro-components/p-c43fe342.system.entry.js +0 -2
  1265. package/dist/taro-components/p-c43fe342.system.entry.js.map +0 -1
  1266. package/dist/taro-components/p-c4cf58af.system.entry.js +0 -2
  1267. package/dist/taro-components/p-c4cf58af.system.entry.js.map +0 -1
  1268. package/dist/taro-components/p-c5c331bf.system.entry.js +0 -2
  1269. package/dist/taro-components/p-c5c331bf.system.entry.js.map +0 -1
  1270. package/dist/taro-components/p-cb17d8bd.system.js +0 -2
  1271. package/dist/taro-components/p-cb17d8bd.system.js.map +0 -1
  1272. package/dist/taro-components/p-cbe2436d.system.entry.js +0 -2
  1273. package/dist/taro-components/p-cbe2436d.system.entry.js.map +0 -1
  1274. package/dist/taro-components/p-cd6a7eea.entry.js +0 -2
  1275. package/dist/taro-components/p-cd6a7eea.entry.js.map +0 -1
  1276. package/dist/taro-components/p-d388c097.entry.js +0 -2
  1277. package/dist/taro-components/p-d388c097.entry.js.map +0 -1
  1278. package/dist/taro-components/p-d4b6f19e.system.entry.js +0 -2
  1279. package/dist/taro-components/p-d4b6f19e.system.entry.js.map +0 -1
  1280. package/dist/taro-components/p-d619f198.system.entry.js +0 -2
  1281. package/dist/taro-components/p-d619f198.system.entry.js.map +0 -1
  1282. package/dist/taro-components/p-d6441fd8.entry.js +0 -2
  1283. package/dist/taro-components/p-d6441fd8.entry.js.map +0 -1
  1284. package/dist/taro-components/p-d7ab3e23.system.entry.js +0 -2
  1285. package/dist/taro-components/p-d7ab3e23.system.entry.js.map +0 -1
  1286. package/dist/taro-components/p-d7f4b10f.entry.js +0 -2
  1287. package/dist/taro-components/p-d7f4b10f.entry.js.map +0 -1
  1288. package/dist/taro-components/p-d85b216d.entry.js +0 -2
  1289. package/dist/taro-components/p-d85b216d.entry.js.map +0 -1
  1290. package/dist/taro-components/p-dcb48fd9.system.entry.js +0 -2
  1291. package/dist/taro-components/p-dcb48fd9.system.entry.js.map +0 -1
  1292. package/dist/taro-components/p-dcfb7d97.system.entry.js +0 -2
  1293. package/dist/taro-components/p-dcfb7d97.system.entry.js.map +0 -1
  1294. package/dist/taro-components/p-de762042.entry.js +0 -2
  1295. package/dist/taro-components/p-de762042.entry.js.map +0 -1
  1296. package/dist/taro-components/p-df862d0c.entry.js +0 -2
  1297. package/dist/taro-components/p-df862d0c.entry.js.map +0 -1
  1298. package/dist/taro-components/p-e0d6b00b.entry.js +0 -2
  1299. package/dist/taro-components/p-e0d6b00b.entry.js.map +0 -1
  1300. package/dist/taro-components/p-e4f1cc50.entry.js +0 -2
  1301. package/dist/taro-components/p-e4f1cc50.entry.js.map +0 -1
  1302. package/dist/taro-components/p-e5607803.system.entry.js +0 -2
  1303. package/dist/taro-components/p-e5607803.system.entry.js.map +0 -1
  1304. package/dist/taro-components/p-e59f999e.entry.js +0 -2
  1305. package/dist/taro-components/p-e59f999e.entry.js.map +0 -1
  1306. package/dist/taro-components/p-e7239faa.system.entry.js +0 -2
  1307. package/dist/taro-components/p-e7239faa.system.entry.js.map +0 -1
  1308. package/dist/taro-components/p-e7965c55.system.entry.js +0 -2
  1309. package/dist/taro-components/p-e7965c55.system.entry.js.map +0 -1
  1310. package/dist/taro-components/p-e98c07c3.system.entry.js +0 -2
  1311. package/dist/taro-components/p-e98c07c3.system.entry.js.map +0 -1
  1312. package/dist/taro-components/p-eddd00e9.system.entry.js +0 -2
  1313. package/dist/taro-components/p-eddd00e9.system.entry.js.map +0 -1
  1314. package/dist/taro-components/p-ef029c30.system.entry.js +0 -2
  1315. package/dist/taro-components/p-ef029c30.system.entry.js.map +0 -1
  1316. package/dist/taro-components/p-f00ee372.system.entry.js +0 -2
  1317. package/dist/taro-components/p-f00ee372.system.entry.js.map +0 -1
  1318. package/dist/taro-components/p-f0d0160d.system.entry.js +0 -2
  1319. package/dist/taro-components/p-f0d0160d.system.entry.js.map +0 -1
  1320. package/dist/taro-components/p-f120c272.entry.js +0 -2
  1321. package/dist/taro-components/p-f120c272.entry.js.map +0 -1
  1322. package/dist/taro-components/p-f2c75971.system.entry.js +0 -2
  1323. package/dist/taro-components/p-f2c75971.system.entry.js.map +0 -1
  1324. package/dist/taro-components/p-f81d14ad.entry.js +0 -2
  1325. package/dist/taro-components/p-f81d14ad.entry.js.map +0 -1
  1326. package/dist/taro-components/p-fae28cc1.system.entry.js +0 -2
  1327. package/dist/taro-components/p-fae28cc1.system.entry.js.map +0 -1
  1328. package/dist/taro-components/p-fb843ff2.system.entry.js +0 -2
  1329. package/dist/taro-components/p-fb843ff2.system.entry.js.map +0 -1
  1330. package/dist/taro-components/p-fc0fbcce.system.entry.js +0 -2
  1331. package/dist/taro-components/p-fc0fbcce.system.entry.js.map +0 -1
  1332. package/dist/taro-components/p-ffc44634.entry.js +0 -2
  1333. package/dist/taro-components/p-ffc44634.entry.js.map +0 -1
  1334. package/dist/vue2/component-lib/components.js +0 -71
  1335. package/dist/vue2/component-lib/createComponent.js +0 -21
  1336. package/dist/vue2/component-lib/createFormsComponent.js +0 -53
  1337. package/dist/vue2/component-lib/icon.js +0 -19
  1338. package/dist/vue2/component-lib/image.js +0 -20
  1339. package/dist/vue2/component-lib/index.js +0 -28
  1340. package/dist/vue2/component-lib/mixins/listeners.js +0 -14
  1341. package/dist/vue2/component-lib/mixins/refs.js +0 -44
  1342. package/dist/vue2/component-lib/picker.js +0 -40
  1343. package/dist/vue2/component-lib/scroll-view.js +0 -32
  1344. package/dist/vue2/component-lib/text.js +0 -20
  1345. package/dist/vue2/components.js +0 -542
  1346. package/dist/vue2/index.js +0 -22
  1347. package/dist/vue2/vue-component-lib/utils.js +0 -40
  1348. package/dist/vue3/component-lib/createComponent.js +0 -23
  1349. package/dist/vue3/component-lib/createFormsComponent.js +0 -43
  1350. package/dist/vue3/component-lib/forwardRef.js +0 -9
  1351. package/dist/vue3/component-lib/icon.js +0 -21
  1352. package/dist/vue3/component-lib/image.js +0 -22
  1353. package/dist/vue3/component-lib/index.js +0 -76
  1354. package/dist/vue3/component-lib/scroll-view.js +0 -28
  1355. package/dist/vue3/component-lib/text.js +0 -22
  1356. package/dist/vue3/components.js +0 -80
  1357. package/dist/vue3/index.js +0 -17
  1358. package/dist/vue3/vue-component-lib/utils.js +0 -175
@@ -1,1957 +0,0 @@
1
- 'use strict';
2
-
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) return e;
5
- var n = Object.create(null);
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- if (k !== 'default') {
9
- var d = Object.getOwnPropertyDescriptor(e, k);
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: function () {
13
- return e[k];
14
- }
15
- });
16
- }
17
- });
18
- }
19
- n['default'] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
- const NAMESPACE = 'taro-components';
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
- let contentRef;
34
- let hostTagName;
35
- let useNativeShadowDom = false;
36
- let checkSlotFallbackVisibility = false;
37
- let checkSlotRelocate = false;
38
- let isSvgMode = false;
39
- let queuePending = false;
40
- const createTime = (fnName, tagName = '') => {
41
- {
42
- return () => {
43
- return;
44
- };
45
- }
46
- };
47
- const uniqueTime = (key, measureText) => {
48
- {
49
- return () => {
50
- return;
51
- };
52
- }
53
- };
54
- const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
55
- const XLINK_NS = 'http://www.w3.org/1999/xlink';
56
- /**
57
- * Default style mode id
58
- */
59
- /**
60
- * Reusable empty obj/array
61
- * Don't add values to these!!
62
- */
63
- const EMPTY_OBJ = {};
64
- const isComplexType = (o) => {
65
- // https://jsperf.com/typeof-fn-object/5
66
- o = typeof o;
67
- return o === 'object' || o === 'function';
68
- };
69
- /**
70
- * Production h() function based on Preact by
71
- * Jason Miller (@developit)
72
- * Licensed under the MIT License
73
- * https://github.com/developit/preact/blob/master/LICENSE
74
- *
75
- * Modified for Stencil's compiler and vdom
76
- */
77
- // const stack: any[] = [];
78
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
79
- // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
80
- const h = (nodeName, vnodeData, ...children) => {
81
- let child = null;
82
- let key = null;
83
- let slotName = null;
84
- let simple = false;
85
- let lastSimple = false;
86
- const vNodeChildren = [];
87
- const walk = (c) => {
88
- for (let i = 0; i < c.length; i++) {
89
- child = c[i];
90
- if (Array.isArray(child)) {
91
- walk(child);
92
- }
93
- else if (child != null && typeof child !== 'boolean') {
94
- if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
95
- child = String(child);
96
- }
97
- if (simple && lastSimple) {
98
- // If the previous child was simple (string), we merge both
99
- vNodeChildren[vNodeChildren.length - 1].$text$ += child;
100
- }
101
- else {
102
- // Append a new vNode, if it's text, we create a text vNode
103
- vNodeChildren.push(simple ? newVNode(null, child) : child);
104
- }
105
- lastSimple = simple;
106
- }
107
- }
108
- };
109
- walk(children);
110
- if (vnodeData) {
111
- // normalize class / classname attributes
112
- if (vnodeData.key) {
113
- key = vnodeData.key;
114
- }
115
- if (vnodeData.name) {
116
- slotName = vnodeData.name;
117
- }
118
- {
119
- const classData = vnodeData.className || vnodeData.class;
120
- if (classData) {
121
- vnodeData.class =
122
- typeof classData !== 'object'
123
- ? classData
124
- : Object.keys(classData)
125
- .filter((k) => classData[k])
126
- .join(' ');
127
- }
128
- }
129
- }
130
- if (typeof nodeName === 'function') {
131
- // nodeName is a functional component
132
- return nodeName(vnodeData === null ? {} : vnodeData, vNodeChildren, vdomFnUtils);
133
- }
134
- const vnode = newVNode(nodeName, null);
135
- vnode.$attrs$ = vnodeData;
136
- if (vNodeChildren.length > 0) {
137
- vnode.$children$ = vNodeChildren;
138
- }
139
- {
140
- vnode.$key$ = key;
141
- }
142
- {
143
- vnode.$name$ = slotName;
144
- }
145
- return vnode;
146
- };
147
- const newVNode = (tag, text) => {
148
- const vnode = {
149
- $flags$: 0,
150
- $tag$: tag,
151
- $text$: text,
152
- $elm$: null,
153
- $children$: null,
154
- };
155
- {
156
- vnode.$attrs$ = null;
157
- }
158
- {
159
- vnode.$key$ = null;
160
- }
161
- {
162
- vnode.$name$ = null;
163
- }
164
- return vnode;
165
- };
166
- const Host = {};
167
- const isHost = (node) => node && node.$tag$ === Host;
168
- const vdomFnUtils = {
169
- forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
170
- map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate),
171
- };
172
- const convertToPublic = (node) => ({
173
- vattrs: node.$attrs$,
174
- vchildren: node.$children$,
175
- vkey: node.$key$,
176
- vname: node.$name$,
177
- vtag: node.$tag$,
178
- vtext: node.$text$,
179
- });
180
- const convertToPrivate = (node) => {
181
- if (typeof node.vtag === 'function') {
182
- const vnodeData = Object.assign({}, node.vattrs);
183
- if (node.vkey) {
184
- vnodeData.key = node.vkey;
185
- }
186
- if (node.vname) {
187
- vnodeData.name = node.vname;
188
- }
189
- return h(node.vtag, vnodeData, ...(node.vchildren || []));
190
- }
191
- const vnode = newVNode(node.vtag, node.vtext);
192
- vnode.$attrs$ = node.vattrs;
193
- vnode.$children$ = node.vchildren;
194
- vnode.$key$ = node.vkey;
195
- vnode.$name$ = node.vname;
196
- return vnode;
197
- };
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
- /**
330
- * Production setAccessor() function based on Preact by
331
- * Jason Miller (@developit)
332
- * Licensed under the MIT License
333
- * https://github.com/developit/preact/blob/master/LICENSE
334
- *
335
- * Modified for Stencil's compiler and vdom
336
- */
337
- const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
338
- if (oldValue !== newValue) {
339
- let isProp = isMemberInElement(elm, memberName);
340
- let ln = memberName.toLowerCase();
341
- if (memberName === 'class') {
342
- const classList = elm.classList;
343
- const oldClasses = parseClassList(oldValue);
344
- const newClasses = parseClassList(newValue);
345
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
346
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
347
- }
348
- else if (memberName === 'style') {
349
- // update style attribute, css properties and values
350
- {
351
- for (const prop in oldValue) {
352
- if (!newValue || newValue[prop] == null) {
353
- if (prop.includes('-')) {
354
- elm.style.removeProperty(prop);
355
- }
356
- else {
357
- elm.style[prop] = '';
358
- }
359
- }
360
- }
361
- }
362
- for (const prop in newValue) {
363
- if (!oldValue || newValue[prop] !== oldValue[prop]) {
364
- if (prop.includes('-')) {
365
- elm.style.setProperty(prop, newValue[prop]);
366
- }
367
- else {
368
- elm.style[prop] = newValue[prop];
369
- }
370
- }
371
- }
372
- }
373
- else if (memberName === 'key')
374
- ;
375
- else if (memberName === 'ref') {
376
- // minifier will clean this up
377
- if (newValue) {
378
- newValue(elm);
379
- }
380
- }
381
- else if ((!isProp ) &&
382
- memberName[0] === 'o' &&
383
- memberName[1] === 'n') {
384
- // Event Handlers
385
- // so if the member name starts with "on" and the 3rd characters is
386
- // a capital letter, and it's not already a member on the element,
387
- // then we're assuming it's an event listener
388
- if (memberName[2] === '-') {
389
- // on- prefixed events
390
- // allows to be explicit about the dom event to listen without any magic
391
- // under the hood:
392
- // <my-cmp on-click> // listens for "click"
393
- // <my-cmp on-Click> // listens for "Click"
394
- // <my-cmp on-ionChange> // listens for "ionChange"
395
- // <my-cmp on-EVENTS> // listens for "EVENTS"
396
- memberName = memberName.slice(3);
397
- }
398
- else if (isMemberInElement(win, ln)) {
399
- // standard event
400
- // the JSX attribute could have been "onMouseOver" and the
401
- // member name "onmouseover" is on the window's prototype
402
- // so let's add the listener "mouseover", which is all lowercased
403
- memberName = ln.slice(2);
404
- }
405
- else {
406
- // custom event
407
- // the JSX attribute could have been "onMyCustomEvent"
408
- // so let's trim off the "on" prefix and lowercase the first character
409
- // and add the listener "myCustomEvent"
410
- // except for the first character, we keep the event name case
411
- memberName = ln[2] + memberName.slice(3);
412
- }
413
- if (oldValue) {
414
- plt.rel(elm, memberName, oldValue, false);
415
- }
416
- if (newValue) {
417
- plt.ael(elm, memberName, newValue, false);
418
- }
419
- }
420
- else {
421
- // Set property if it exists and it's not a SVG
422
- const isComplex = isComplexType(newValue);
423
- if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
424
- try {
425
- if (!elm.tagName.includes('-')) {
426
- const n = newValue == null ? '' : newValue;
427
- // Workaround for Safari, moving the <input> caret when re-assigning the same valued
428
- if (memberName === 'list') {
429
- isProp = false;
430
- }
431
- else if (oldValue == null || elm[memberName] != n) {
432
- elm[memberName] = n;
433
- }
434
- }
435
- else {
436
- elm[memberName] = newValue;
437
- }
438
- }
439
- catch (e) { }
440
- }
441
- /**
442
- * Need to manually update attribute if:
443
- * - memberName is not an attribute
444
- * - if we are rendering the host element in order to reflect attribute
445
- * - if it's a SVG, since properties might not work in <svg>
446
- * - if the newValue is null/undefined or 'false'.
447
- */
448
- let xlink = false;
449
- {
450
- if (ln !== (ln = ln.replace(/^xlink\:?/, ''))) {
451
- memberName = ln;
452
- xlink = true;
453
- }
454
- }
455
- if (newValue == null || newValue === false) {
456
- if (newValue !== false || elm.getAttribute(memberName) === '') {
457
- if (xlink) {
458
- elm.removeAttributeNS(XLINK_NS, memberName);
459
- }
460
- else {
461
- elm.removeAttribute(memberName);
462
- }
463
- }
464
- }
465
- else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
466
- newValue = newValue === true ? '' : newValue;
467
- if (xlink) {
468
- elm.setAttributeNS(XLINK_NS, memberName, newValue);
469
- }
470
- else {
471
- elm.setAttribute(memberName, newValue);
472
- }
473
- }
474
- }
475
- }
476
- };
477
- const parseClassListRegex = /\s/;
478
- const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
479
- const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
480
- // if the element passed in is a shadow root, which is a document fragment
481
- // then we want to be adding attrs/props to the shadow root's "host" element
482
- // 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
484
- ? newVnode.$elm$.host
485
- : newVnode.$elm$;
486
- const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
487
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
488
- {
489
- // remove attributes no longer present on the vnode by setting them to undefined
490
- for (memberName in oldVnodeAttrs) {
491
- if (!(memberName in newVnodeAttrs)) {
492
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
493
- }
494
- }
495
- }
496
- // add new & update changed attributes
497
- for (memberName in newVnodeAttrs) {
498
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
499
- }
500
- };
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
- const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
512
- // tslint:disable-next-line: prefer-const
513
- const newVNode = newParentVNode.$children$[childIndex];
514
- let i = 0;
515
- let elm;
516
- let childNode;
517
- let oldVNode;
518
- if (!useNativeShadowDom) {
519
- // remember for later we need to check to relocate nodes
520
- checkSlotRelocate = true;
521
- if (newVNode.$tag$ === 'slot') {
522
- newVNode.$flags$ |= newVNode.$children$
523
- ? // slot element has fallback content
524
- 2 /* VNODE_FLAGS.isSlotFallback */
525
- : // slot element does not have fallback content
526
- 1 /* VNODE_FLAGS.isSlotReference */;
527
- }
528
- }
529
- if (newVNode.$text$ !== null) {
530
- // create text node
531
- elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
532
- }
533
- else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
534
- // create a slot reference node
535
- elm = newVNode.$elm$ =
536
- doc.createTextNode('');
537
- }
538
- else {
539
- // create element
540
- elm = newVNode.$elm$ = (doc.createElement(newVNode.$flags$ & 2 /* VNODE_FLAGS.isSlotFallback */
541
- ? 'slot-fb'
542
- : newVNode.$tag$));
543
- // add css classes, attrs, props, listeners, etc.
544
- {
545
- updateElement(null, newVNode, isSvgMode);
546
- }
547
- if (newVNode.$children$) {
548
- for (i = 0; i < newVNode.$children$.length; ++i) {
549
- // create the node
550
- childNode = createElm(oldParentVNode, newVNode, i);
551
- // return node could have been null
552
- if (childNode) {
553
- // append our new node
554
- elm.appendChild(childNode);
555
- }
556
- }
557
- }
558
- }
559
- {
560
- elm['s-hn'] = hostTagName;
561
- if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
562
- // remember the content reference comment
563
- elm['s-sr'] = true;
564
- // remember the content reference comment
565
- elm['s-cr'] = contentRef;
566
- // remember the slot name, or empty string for default slot
567
- elm['s-sn'] = newVNode.$name$ || '';
568
- // check if we've got an old vnode for this slot
569
- oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
570
- if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
571
- // we've got an old slot vnode and the wrapper is being replaced
572
- // so let's move the old slot content back to it's original location
573
- putBackInOriginalLocation(oldParentVNode.$elm$, false);
574
- }
575
- }
576
- }
577
- return elm;
578
- };
579
- const putBackInOriginalLocation = (parentElm, recursive) => {
580
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
581
- const oldSlotChildNodes = parentElm.childNodes;
582
- for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
583
- const childNode = oldSlotChildNodes[i];
584
- if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
585
- // // this child node in the old element is from another component
586
- // // remove this node from the old slot's parent
587
- // childNode.remove();
588
- // and relocate it back to it's original location
589
- parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
590
- // remove the old original location comment entirely
591
- // later on the patch function will know what to do
592
- // and move this to the correct spot in need be
593
- childNode['s-ol'].remove();
594
- childNode['s-ol'] = undefined;
595
- checkSlotRelocate = true;
596
- }
597
- if (recursive) {
598
- putBackInOriginalLocation(childNode, recursive);
599
- }
600
- }
601
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
602
- };
603
- const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
604
- let containerElm = ((parentElm['s-cr'] && parentElm['s-cr'].parentNode) || parentElm);
605
- let childNode;
606
- for (; startIdx <= endIdx; ++startIdx) {
607
- if (vnodes[startIdx]) {
608
- childNode = createElm(null, parentVNode, startIdx);
609
- if (childNode) {
610
- vnodes[startIdx].$elm$ = childNode;
611
- containerElm.insertBefore(childNode, referenceNode(before) );
612
- }
613
- }
614
- }
615
- };
616
- const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
617
- for (; startIdx <= endIdx; ++startIdx) {
618
- if ((vnode = vnodes[startIdx])) {
619
- elm = vnode.$elm$;
620
- callNodeRefs(vnode);
621
- {
622
- // we're removing this element
623
- // so it's possible we need to show slot fallback content now
624
- checkSlotFallbackVisibility = true;
625
- if (elm['s-ol']) {
626
- // remove the original location comment
627
- elm['s-ol'].remove();
628
- }
629
- else {
630
- // it's possible that child nodes of the node
631
- // that's being removed are slot nodes
632
- putBackInOriginalLocation(elm, true);
633
- }
634
- }
635
- // remove the vnode's element from the dom
636
- elm.remove();
637
- }
638
- }
639
- };
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
- const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
709
- let oldStartIdx = 0;
710
- let newStartIdx = 0;
711
- let idxInOld = 0;
712
- let i = 0;
713
- let oldEndIdx = oldCh.length - 1;
714
- let oldStartVnode = oldCh[0];
715
- let oldEndVnode = oldCh[oldEndIdx];
716
- let newEndIdx = newCh.length - 1;
717
- let newStartVnode = newCh[0];
718
- let newEndVnode = newCh[newEndIdx];
719
- let node;
720
- let elmToMove;
721
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
722
- if (oldStartVnode == null) {
723
- // VNode might have been moved left
724
- oldStartVnode = oldCh[++oldStartIdx];
725
- }
726
- else if (oldEndVnode == null) {
727
- oldEndVnode = oldCh[--oldEndIdx];
728
- }
729
- else if (newStartVnode == null) {
730
- newStartVnode = newCh[++newStartIdx];
731
- }
732
- else if (newEndVnode == null) {
733
- newEndVnode = newCh[--newEndIdx];
734
- }
735
- 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
- patch(oldStartVnode, newStartVnode);
741
- oldStartVnode = oldCh[++oldStartIdx];
742
- newStartVnode = newCh[++newStartIdx];
743
- }
744
- 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
- patch(oldEndVnode, newEndVnode);
749
- oldEndVnode = oldCh[--oldEndIdx];
750
- newEndVnode = newCh[--newEndIdx];
751
- }
752
- 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`.
767
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
768
- putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
769
- }
770
- 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
- parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
789
- oldStartVnode = oldCh[++oldStartIdx];
790
- newEndVnode = newCh[--newEndIdx];
791
- }
792
- 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.
808
- if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
809
- putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
810
- }
811
- 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
- parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
818
- oldEndVnode = oldCh[--oldEndIdx];
819
- newStartVnode = newCh[++newStartIdx];
820
- }
821
- 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.
830
- idxInOld = -1;
831
- {
832
- for (i = oldStartIdx; i <= oldEndIdx; ++i) {
833
- if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
834
- idxInOld = i;
835
- break;
836
- }
837
- }
838
- }
839
- 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
- elmToMove = oldCh[idxInOld];
843
- if (elmToMove.$tag$ !== newStartVnode.$tag$) {
844
- // the tag doesn't match so we'll need a new DOM element
845
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
846
- }
847
- else {
848
- patch(elmToMove, newStartVnode);
849
- // invalidate the matching old node so that we won't try to update it
850
- // again later on
851
- oldCh[idxInOld] = undefined;
852
- node = elmToMove.$elm$;
853
- }
854
- newStartVnode = newCh[++newStartIdx];
855
- }
856
- 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.
861
- node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
862
- newStartVnode = newCh[++newStartIdx];
863
- }
864
- if (node) {
865
- // if we created a new node then handle inserting it to the DOM
866
- {
867
- parentReferenceNode(oldStartVnode.$elm$).insertBefore(node, referenceNode(oldStartVnode.$elm$));
868
- }
869
- }
870
- }
871
- }
872
- if (oldStartIdx > oldEndIdx) {
873
- // we have some more new nodes to add which don't match up with old nodes
874
- addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
875
- }
876
- 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
- removeVnodes(oldCh, oldStartIdx, oldEndIdx);
881
- }
882
- };
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) => {
901
- // compare if two vnode to see if they're "technically" the same
902
- // 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$;
906
- }
907
- // this will be set if components in the build have `key` attrs set on them
908
- {
909
- return leftVNode.$key$ === rightVNode.$key$;
910
- }
911
- }
912
- return false;
913
- };
914
- const referenceNode = (node) => {
915
- // this node was relocated to a new location in the dom
916
- // because of some other component's slot
917
- // but we still have an html comment in place of where
918
- // it's original location was according to it's original vdom
919
- return (node && node['s-ol']) || node;
920
- };
921
- 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
- const patch = (oldVNode, newVNode) => {
931
- const elm = (newVNode.$elm$ = oldVNode.$elm$);
932
- const oldChildren = oldVNode.$children$;
933
- const newChildren = newVNode.$children$;
934
- const tag = newVNode.$tag$;
935
- const text = newVNode.$text$;
936
- let defaultHolder;
937
- if (text === null) {
938
- {
939
- if (tag === 'slot')
940
- ;
941
- else {
942
- // either this is the first render of an element OR it's an update
943
- // AND we already know it's possible it could have changed
944
- // this updates the element's css classes, attrs, props, listeners, etc.
945
- updateElement(oldVNode, newVNode, isSvgMode);
946
- }
947
- }
948
- if (oldChildren !== null && newChildren !== null) {
949
- // looks like there's child vnodes for both the old and new vnodes
950
- // so we need to call `updateChildren` to reconcile them
951
- updateChildren(elm, oldChildren, newVNode, newChildren);
952
- }
953
- else if (newChildren !== null) {
954
- // no old child vnodes, but there are new child vnodes to add
955
- if (oldVNode.$text$ !== null) {
956
- // the old vnode was text, so be sure to clear it out
957
- elm.textContent = '';
958
- }
959
- // add the new vnode children
960
- addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
961
- }
962
- else if (oldChildren !== null) {
963
- // no new child vnodes, but there are old child vnodes to remove
964
- removeVnodes(oldChildren, 0, oldChildren.length - 1);
965
- }
966
- }
967
- else if ((defaultHolder = elm['s-cr'])) {
968
- // this element has slotted content
969
- defaultHolder.parentNode.textContent = text;
970
- }
971
- else if (oldVNode.$text$ !== text) {
972
- // update the text content for the text only vnode
973
- // and also only if the text is different than before
974
- elm.data = text;
975
- }
976
- };
977
- const updateFallbackSlotVisibility = (elm) => {
978
- // tslint:disable-next-line: prefer-const
979
- const childNodes = elm.childNodes;
980
- let childNode;
981
- let i;
982
- let ilen;
983
- let j;
984
- let slotNameAttr;
985
- let nodeType;
986
- for (i = 0, ilen = childNodes.length; i < ilen; i++) {
987
- childNode = childNodes[i];
988
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
989
- if (childNode['s-sr']) {
990
- // this is a slot fallback node
991
- // get the slot name for this slot reference node
992
- slotNameAttr = childNode['s-sn'];
993
- // by default always show a fallback slot node
994
- // then hide it if there are other slots in the light dom
995
- childNode.hidden = false;
996
- for (j = 0; j < ilen; j++) {
997
- nodeType = childNodes[j].nodeType;
998
- if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
999
- // 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')) {
1001
- childNode.hidden = true;
1002
- break;
1003
- }
1004
- }
1005
- else {
1006
- // this is a default fallback slot node
1007
- // any element or text node (with content)
1008
- // should hide the default fallback slot node
1009
- if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
1010
- (nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
1011
- childNode.hidden = true;
1012
- break;
1013
- }
1014
- }
1015
- }
1016
- }
1017
- // keep drilling down
1018
- updateFallbackSlotVisibility(childNode);
1019
- }
1020
- }
1021
- };
1022
- const relocateNodes = [];
1023
- const relocateSlotContent = (elm) => {
1024
- // tslint:disable-next-line: prefer-const
1025
- let childNode;
1026
- let node;
1027
- let hostContentNodes;
1028
- let slotNameAttr;
1029
- let relocateNodeData;
1030
- let j;
1031
- let i = 0;
1032
- const childNodes = elm.childNodes;
1033
- const ilen = childNodes.length;
1034
- for (; i < ilen; i++) {
1035
- childNode = childNodes[i];
1036
- if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
1037
- // first got the content reference comment node
1038
- // then we got it's parent, which is where all the host content is in now
1039
- hostContentNodes = node.parentNode.childNodes;
1040
- slotNameAttr = childNode['s-sn'];
1041
- for (j = hostContentNodes.length - 1; j >= 0; j--) {
1042
- node = hostContentNodes[j];
1043
- if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
1044
- // let's do some relocating to its new home
1045
- // but never relocate a content reference node
1046
- // that is suppose to always represent the original content location
1047
- if (isNodeLocatedInSlot(node, slotNameAttr)) {
1048
- // it's possible we've already decided to relocate this node
1049
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1050
- // made some changes to slots
1051
- // let's make sure we also double check
1052
- // fallbacks are correctly hidden or shown
1053
- checkSlotFallbackVisibility = true;
1054
- node['s-sn'] = node['s-sn'] || slotNameAttr;
1055
- if (relocateNodeData) {
1056
- // previously we never found a slot home for this node
1057
- // but turns out we did, so let's remember it now
1058
- relocateNodeData.$slotRefNode$ = childNode;
1059
- }
1060
- else {
1061
- // add to our list of nodes to relocate
1062
- relocateNodes.push({
1063
- $slotRefNode$: childNode,
1064
- $nodeToRelocate$: node,
1065
- });
1066
- }
1067
- if (node['s-sr']) {
1068
- relocateNodes.map((relocateNode) => {
1069
- if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
1070
- relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
1071
- if (relocateNodeData && !relocateNode.$slotRefNode$) {
1072
- relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
1073
- }
1074
- }
1075
- });
1076
- }
1077
- }
1078
- else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
1079
- // so far this element does not have a slot home, not setting slotRefNode on purpose
1080
- // if we never find a home for this element then we'll need to hide it
1081
- relocateNodes.push({
1082
- $nodeToRelocate$: node,
1083
- });
1084
- }
1085
- }
1086
- }
1087
- }
1088
- if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1089
- relocateSlotContent(childNode);
1090
- }
1091
- }
1092
- };
1093
- const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
1094
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1095
- if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
1096
- return true;
1097
- }
1098
- if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
1099
- return true;
1100
- }
1101
- return false;
1102
- }
1103
- if (nodeToRelocate['s-sn'] === slotNameAttr) {
1104
- return true;
1105
- }
1106
- return slotNameAttr === '';
1107
- };
1108
- const callNodeRefs = (vNode) => {
1109
- {
1110
- vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
1111
- vNode.$children$ && vNode.$children$.map(callNodeRefs);
1112
- }
1113
- };
1114
- const renderVdom = (hostRef, renderFnResults) => {
1115
- const hostElm = hostRef.$hostElement$;
1116
- const cmpMeta = hostRef.$cmpMeta$;
1117
- const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1118
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
1119
- 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
- rootVnode.$tag$ = null;
1125
- rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
1126
- hostRef.$vnode$ = rootVnode;
1127
- rootVnode.$elm$ = oldVNode.$elm$ = (hostElm);
1128
- {
1129
- contentRef = hostElm['s-cr'];
1130
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
1131
- // always reset
1132
- checkSlotFallbackVisibility = false;
1133
- }
1134
- // synchronous patch
1135
- patch(oldVNode, rootVnode);
1136
- {
1137
- // while we're moving nodes around existing nodes, temporarily disable
1138
- // the disconnectCallback from working
1139
- plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1140
- if (checkSlotRelocate) {
1141
- relocateSlotContent(rootVnode.$elm$);
1142
- let relocateData;
1143
- let nodeToRelocate;
1144
- let orgLocationNode;
1145
- let parentNodeRef;
1146
- let insertBeforeNode;
1147
- let refNode;
1148
- let i = 0;
1149
- for (; i < relocateNodes.length; i++) {
1150
- relocateData = relocateNodes[i];
1151
- nodeToRelocate = relocateData.$nodeToRelocate$;
1152
- if (!nodeToRelocate['s-ol']) {
1153
- // add a reference node marking this node's original location
1154
- // keep a reference to this node for later lookups
1155
- orgLocationNode =
1156
- doc.createTextNode('');
1157
- orgLocationNode['s-nr'] = nodeToRelocate;
1158
- nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
1159
- }
1160
- }
1161
- for (i = 0; i < relocateNodes.length; i++) {
1162
- relocateData = relocateNodes[i];
1163
- nodeToRelocate = relocateData.$nodeToRelocate$;
1164
- if (relocateData.$slotRefNode$) {
1165
- // by default we're just going to insert it directly
1166
- // after the slot reference node
1167
- parentNodeRef = relocateData.$slotRefNode$.parentNode;
1168
- insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
1169
- orgLocationNode = nodeToRelocate['s-ol'];
1170
- while ((orgLocationNode = orgLocationNode.previousSibling)) {
1171
- refNode = orgLocationNode['s-nr'];
1172
- if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
1173
- refNode = refNode.nextSibling;
1174
- if (!refNode || !refNode['s-nr']) {
1175
- insertBeforeNode = refNode;
1176
- break;
1177
- }
1178
- }
1179
- }
1180
- if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
1181
- nodeToRelocate.nextSibling !== insertBeforeNode) {
1182
- // we've checked that it's worth while to relocate
1183
- // since that the node to relocate
1184
- // has a different next sibling or parent relocated
1185
- if (nodeToRelocate !== insertBeforeNode) {
1186
- if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
1187
- // probably a component in the index.html that doesn't have it's hostname set
1188
- nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
1189
- }
1190
- // add it back to the dom but in its new home
1191
- parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
1192
- }
1193
- }
1194
- }
1195
- else {
1196
- // this node doesn't have a slot home to go to, so let's hide it
1197
- if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
1198
- nodeToRelocate.hidden = true;
1199
- }
1200
- }
1201
- }
1202
- }
1203
- if (checkSlotFallbackVisibility) {
1204
- updateFallbackSlotVisibility(rootVnode.$elm$);
1205
- }
1206
- // done moving nodes around
1207
- // allow the disconnect callback to work again
1208
- plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
1209
- // always reset
1210
- relocateNodes.length = 0;
1211
- }
1212
- };
1213
- const attachToAncestor = (hostRef, ancestorComponent) => {
1214
- if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
1215
- ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
1216
- }
1217
- };
1218
- const scheduleUpdate = (hostRef, isInitialLoad) => {
1219
- {
1220
- hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
1221
- }
1222
- if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
1223
- hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
1224
- return;
1225
- }
1226
- attachToAncestor(hostRef, hostRef.$ancestorComponent$);
1227
- // there is no ancestor component or the ancestor component
1228
- // has already fired off its lifecycle update then
1229
- // fire off the initial update
1230
- const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
1231
- return writeTask(dispatch) ;
1232
- };
1233
- const dispatchHooks = (hostRef, isInitialLoad) => {
1234
- const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
1235
- const instance = hostRef.$lazyInstance$ ;
1236
- let promise;
1237
- if (isInitialLoad) {
1238
- {
1239
- hostRef.$flags$ |= 256 /* HOST_FLAGS.isListenReady */;
1240
- if (hostRef.$queuedListeners$) {
1241
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1242
- hostRef.$queuedListeners$ = null;
1243
- }
1244
- }
1245
- {
1246
- promise = safeCall(instance, 'componentWillLoad');
1247
- }
1248
- }
1249
- else {
1250
- {
1251
- promise = safeCall(instance, 'componentWillUpdate');
1252
- }
1253
- }
1254
- endSchedule();
1255
- return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
1256
- };
1257
- const updateComponent = async (hostRef, instance, isInitialLoad) => {
1258
- // updateComponent
1259
- const elm = hostRef.$hostElement$;
1260
- const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
1261
- const rc = elm['s-rc'];
1262
- if (isInitialLoad) {
1263
- // DOM WRITE!
1264
- attachStyles(hostRef);
1265
- }
1266
- const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
1267
- {
1268
- callRender(hostRef, instance);
1269
- }
1270
- if (rc) {
1271
- // ok, so turns out there are some child host elements
1272
- // waiting on this parent element to load
1273
- // let's fire off all update callbacks waiting
1274
- rc.map((cb) => cb());
1275
- elm['s-rc'] = undefined;
1276
- }
1277
- endRender();
1278
- endUpdate();
1279
- {
1280
- const childrenPromises = elm['s-p'];
1281
- const postUpdate = () => postUpdateComponent(hostRef);
1282
- if (childrenPromises.length === 0) {
1283
- postUpdate();
1284
- }
1285
- else {
1286
- Promise.all(childrenPromises).then(postUpdate);
1287
- hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
1288
- childrenPromises.length = 0;
1289
- }
1290
- }
1291
- };
1292
- const callRender = (hostRef, instance, elm) => {
1293
- try {
1294
- instance = instance.render() ;
1295
- {
1296
- hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1297
- }
1298
- {
1299
- hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
1300
- }
1301
- {
1302
- {
1303
- // looks like we've got child nodes to render into this host element
1304
- // or we need to update the css class/attrs on the host element
1305
- // DOM WRITE!
1306
- {
1307
- renderVdom(hostRef, instance);
1308
- }
1309
- }
1310
- }
1311
- }
1312
- catch (e) {
1313
- consoleError(e, hostRef.$hostElement$);
1314
- }
1315
- return null;
1316
- };
1317
- const postUpdateComponent = (hostRef) => {
1318
- const tagName = hostRef.$cmpMeta$.$tagName$;
1319
- const elm = hostRef.$hostElement$;
1320
- const endPostUpdate = createTime('postUpdate', tagName);
1321
- const instance = hostRef.$lazyInstance$ ;
1322
- const ancestorComponent = hostRef.$ancestorComponent$;
1323
- {
1324
- safeCall(instance, 'componentDidRender');
1325
- }
1326
- if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1327
- hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1328
- {
1329
- // DOM WRITE!
1330
- addHydratedFlag(elm);
1331
- }
1332
- {
1333
- safeCall(instance, 'componentDidLoad');
1334
- }
1335
- endPostUpdate();
1336
- {
1337
- hostRef.$onReadyResolve$(elm);
1338
- if (!ancestorComponent) {
1339
- appDidLoad();
1340
- }
1341
- }
1342
- }
1343
- else {
1344
- {
1345
- safeCall(instance, 'componentDidUpdate');
1346
- }
1347
- endPostUpdate();
1348
- }
1349
- {
1350
- hostRef.$onInstanceResolve$(elm);
1351
- }
1352
- // load events fire from bottom to top
1353
- // the deepest elements load first then bubbles up
1354
- {
1355
- if (hostRef.$onRenderResolve$) {
1356
- hostRef.$onRenderResolve$();
1357
- hostRef.$onRenderResolve$ = undefined;
1358
- }
1359
- if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1360
- nextTick(() => scheduleUpdate(hostRef, false));
1361
- }
1362
- hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1363
- }
1364
- // ( •_•)
1365
- // ( •_•)>⌐■-■
1366
- // (⌐■_■)
1367
- };
1368
- const appDidLoad = (who) => {
1369
- // on appload
1370
- // we have finish the first big initial render
1371
- {
1372
- addHydratedFlag(doc.documentElement);
1373
- }
1374
- nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1375
- };
1376
- const safeCall = (instance, method, arg) => {
1377
- if (instance && instance[method]) {
1378
- try {
1379
- return instance[method](arg);
1380
- }
1381
- catch (e) {
1382
- consoleError(e);
1383
- }
1384
- }
1385
- return undefined;
1386
- };
1387
- const then = (promise, thenFn) => {
1388
- return promise && promise.then ? promise.then(thenFn) : thenFn();
1389
- };
1390
- const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1391
- ;
1392
- const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1393
- const setValue = (ref, propName, newVal, cmpMeta) => {
1394
- // check our new property value against our internal value
1395
- const hostRef = getHostRef(ref);
1396
- const elm = hostRef.$hostElement$ ;
1397
- const oldVal = hostRef.$instanceValues$.get(propName);
1398
- const flags = hostRef.$flags$;
1399
- const instance = hostRef.$lazyInstance$ ;
1400
- 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) {
1405
- // gadzooks! the property's value has changed!!
1406
- // set our new value!
1407
- hostRef.$instanceValues$.set(propName, newVal);
1408
- if (instance) {
1409
- // get an array of method names of watch functions to call
1410
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1411
- const watchMethods = cmpMeta.$watchers$[propName];
1412
- if (watchMethods) {
1413
- // this instance is watching for when this property changed
1414
- watchMethods.map((watchMethodName) => {
1415
- try {
1416
- // fire off each of the watch methods that are watching this property
1417
- instance[watchMethodName](newVal, oldVal, propName);
1418
- }
1419
- catch (e) {
1420
- consoleError(e, elm);
1421
- }
1422
- });
1423
- }
1424
- }
1425
- if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1426
- // looks like this value actually changed, so we've got work to do!
1427
- // but only if we've already rendered, otherwise just chill out
1428
- // queue that we need to do an update, but don't worry about queuing
1429
- // up millions cuz this function ensures it only runs once
1430
- scheduleUpdate(hostRef, false);
1431
- }
1432
- }
1433
- }
1434
- };
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
- const proxyComponent = (Cstr, cmpMeta, flags) => {
1446
- if (cmpMeta.$members$) {
1447
- if (Cstr.watchers) {
1448
- cmpMeta.$watchers$ = Cstr.watchers;
1449
- }
1450
- // It's better to have a const than two Object.entries()
1451
- const members = Object.entries(cmpMeta.$members$);
1452
- const prototype = Cstr.prototype;
1453
- members.map(([memberName, [memberFlags]]) => {
1454
- if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1455
- ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1456
- // proxyComponent - prop
1457
- Object.defineProperty(prototype, memberName, {
1458
- get() {
1459
- // proxyComponent, get value
1460
- return getValue(this, memberName);
1461
- },
1462
- set(newValue) {
1463
- // proxyComponent, set value
1464
- setValue(this, memberName, newValue, cmpMeta);
1465
- },
1466
- configurable: true,
1467
- enumerable: true,
1468
- });
1469
- }
1470
- else if (flags & 1 /* PROXY_FLAGS.isElementConstructor */ &&
1471
- memberFlags & 64 /* MEMBER_FLAGS.Method */) {
1472
- // proxyComponent - method
1473
- Object.defineProperty(prototype, memberName, {
1474
- value(...args) {
1475
- const ref = getHostRef(this);
1476
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1477
- },
1478
- });
1479
- }
1480
- });
1481
- if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1482
- const attrNameToPropName = new Map();
1483
- prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1484
- plt.jmp(() => {
1485
- const propName = attrNameToPropName.get(attrName);
1486
- // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1487
- // in the case where an attribute was set inline.
1488
- // ```html
1489
- // <my-component some-attribute="some-value"></my-component>
1490
- // ```
1491
- //
1492
- // There is an edge case where a developer sets the attribute inline on a custom element and then
1493
- // programmatically changes it before it has been upgraded as shown below:
1494
- //
1495
- // ```html
1496
- // <!-- this component has _not_ been upgraded yet -->
1497
- // <my-component id="test" some-attribute="some-value"></my-component>
1498
- // <script>
1499
- // // grab non-upgraded component
1500
- // el = document.querySelector("#test");
1501
- // el.someAttribute = "another-value";
1502
- // // upgrade component
1503
- // customElements.define('my-component', MyComponent);
1504
- // </script>
1505
- // ```
1506
- // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1507
- // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1508
- // to the value that was set inline i.e. "some-value" from above example. When
1509
- // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1510
- //
1511
- // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1512
- // by connectedCallback as this attributeChangedCallback will not fire.
1513
- //
1514
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1515
- //
1516
- // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1517
- // properties here given that this goes against best practices outlined here
1518
- // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1519
- if (this.hasOwnProperty(propName)) {
1520
- newValue = this[propName];
1521
- delete this[propName];
1522
- }
1523
- else if (prototype.hasOwnProperty(propName) &&
1524
- typeof this[propName] === 'number' &&
1525
- this[propName] == newValue) {
1526
- // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1527
- // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1528
- // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1529
- return;
1530
- }
1531
- this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1532
- });
1533
- };
1534
- // create an array of attributes to observe
1535
- // and also create a map of html attribute name to js property name
1536
- Cstr.observedAttributes = members
1537
- .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1538
- .map(([propName, m]) => {
1539
- const attrName = m[1] || propName;
1540
- attrNameToPropName.set(attrName, propName);
1541
- if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1542
- cmpMeta.$attrsToReflect$.push([propName, attrName]);
1543
- }
1544
- return attrName;
1545
- });
1546
- }
1547
- }
1548
- return Cstr;
1549
- };
1550
- const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1551
- // initializeComponent
1552
- if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1553
- {
1554
- // we haven't initialized this element yet
1555
- hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1556
- // lazy loaded components
1557
- // request the component's implementation to be
1558
- // wired up with the host element
1559
- Cstr = loadModule(cmpMeta);
1560
- if (Cstr.then) {
1561
- // Await creates a micro-task avoid if possible
1562
- const endLoad = uniqueTime();
1563
- Cstr = await Cstr;
1564
- endLoad();
1565
- }
1566
- if (!Cstr.isProxied) {
1567
- // we've never proxied this Constructor before
1568
- // let's add the getters/setters to its prototype before
1569
- // the first time we create an instance of the implementation
1570
- {
1571
- cmpMeta.$watchers$ = Cstr.watchers;
1572
- }
1573
- proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1574
- Cstr.isProxied = true;
1575
- }
1576
- const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1577
- // ok, time to construct the instance
1578
- // but let's keep track of when we start and stop
1579
- // so that the getters/setters don't incorrectly step on data
1580
- {
1581
- hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1582
- }
1583
- // construct the lazy-loaded component implementation
1584
- // passing the hostRef is very important during
1585
- // construction in order to directly wire together the
1586
- // host element and the lazy-loaded instance
1587
- try {
1588
- new Cstr(hostRef);
1589
- }
1590
- catch (e) {
1591
- consoleError(e);
1592
- }
1593
- {
1594
- hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1595
- }
1596
- {
1597
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1598
- }
1599
- endNewInstance();
1600
- fireConnectedCallback(hostRef.$lazyInstance$);
1601
- }
1602
- if (Cstr.style) {
1603
- // this component has styles but we haven't registered them yet
1604
- let style = Cstr.style;
1605
- const scopeId = getScopeId(cmpMeta);
1606
- if (!styles.has(scopeId)) {
1607
- const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1608
- registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1609
- endRegisterStyles();
1610
- }
1611
- }
1612
- }
1613
- // we've successfully created a lazy instance
1614
- const ancestorComponent = hostRef.$ancestorComponent$;
1615
- const schedule = () => scheduleUpdate(hostRef, true);
1616
- if (ancestorComponent && ancestorComponent['s-rc']) {
1617
- // this is the initial load and this component it has an ancestor component
1618
- // but the ancestor component has NOT fired its will update lifecycle yet
1619
- // so let's just cool our jets and wait for the ancestor to continue first
1620
- // this will get fired off when the ancestor component
1621
- // finally gets around to rendering its lazy self
1622
- // fire off the initial update
1623
- ancestorComponent['s-rc'].push(schedule);
1624
- }
1625
- else {
1626
- schedule();
1627
- }
1628
- };
1629
- const fireConnectedCallback = (instance) => {
1630
- {
1631
- safeCall(instance, 'connectedCallback');
1632
- }
1633
- };
1634
- const connectedCallback = (elm) => {
1635
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1636
- const hostRef = getHostRef(elm);
1637
- const cmpMeta = hostRef.$cmpMeta$;
1638
- const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1639
- if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1640
- // first time this component has connected
1641
- hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1642
- {
1643
- // initUpdate
1644
- // if the slot polyfill is required we'll need to put some nodes
1645
- // in here to act as original content anchors as we move nodes around
1646
- // host element has been connected to the DOM
1647
- if ((cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
1648
- setContentReference(elm);
1649
- }
1650
- }
1651
- {
1652
- // find the first ancestor component (if there is one) and register
1653
- // this component as one of the actively loading child components for its ancestor
1654
- let ancestorComponent = elm;
1655
- while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1656
- // climb up the ancestors looking for the first
1657
- // component that hasn't finished its lifecycle update yet
1658
- if (ancestorComponent['s-p']) {
1659
- // we found this components first ancestor component
1660
- // keep a reference to this component's ancestor component
1661
- attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1662
- break;
1663
- }
1664
- }
1665
- }
1666
- // Lazy properties
1667
- // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1668
- if (cmpMeta.$members$) {
1669
- Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1670
- if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1671
- const value = elm[memberName];
1672
- delete elm[memberName];
1673
- elm[memberName] = value;
1674
- }
1675
- });
1676
- }
1677
- {
1678
- initializeComponent(elm, hostRef, cmpMeta);
1679
- }
1680
- }
1681
- else {
1682
- // not the first time this has connected
1683
- // reattach any event listeners to the host
1684
- // since they would have been removed when disconnected
1685
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1686
- // fire off connectedCallback() on component instance
1687
- fireConnectedCallback(hostRef.$lazyInstance$);
1688
- }
1689
- endConnected();
1690
- }
1691
- };
1692
- const setContentReference = (elm) => {
1693
- // only required when we're NOT using native shadow dom (slot)
1694
- // or this browser doesn't support native shadow dom
1695
- // and this host element was NOT created with SSR
1696
- // let's pick out the inner content for slot projection
1697
- // create a node to represent where the original
1698
- // content was first placed, which is useful later on
1699
- const contentRefElm = (elm['s-cr'] = doc.createComment(''));
1700
- contentRefElm['s-cn'] = true;
1701
- elm.insertBefore(contentRefElm, elm.firstChild);
1702
- };
1703
- const disconnectedCallback = (elm) => {
1704
- if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1705
- const hostRef = getHostRef(elm);
1706
- const instance = hostRef.$lazyInstance$ ;
1707
- {
1708
- if (hostRef.$rmListeners$) {
1709
- hostRef.$rmListeners$.map((rmListener) => rmListener());
1710
- hostRef.$rmListeners$ = undefined;
1711
- }
1712
- }
1713
- {
1714
- safeCall(instance, 'disconnectedCallback');
1715
- }
1716
- }
1717
- };
1718
- const bootstrapLazy = (lazyBundles, options = {}) => {
1719
- const endBootstrap = createTime();
1720
- const cmpTags = [];
1721
- const exclude = options.exclude || [];
1722
- const customElements = win.customElements;
1723
- const head = doc.head;
1724
- const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1725
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1726
- const deferredConnectedCallbacks = [];
1727
- let appLoadFallback;
1728
- let isBootstrapping = true;
1729
- Object.assign(plt, options);
1730
- plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1731
- lazyBundles.map((lazyBundle) => {
1732
- lazyBundle[1].map((compactMeta) => {
1733
- const cmpMeta = {
1734
- $flags$: compactMeta[0],
1735
- $tagName$: compactMeta[1],
1736
- $members$: compactMeta[2],
1737
- $listeners$: compactMeta[3],
1738
- };
1739
- {
1740
- cmpMeta.$members$ = compactMeta[2];
1741
- }
1742
- {
1743
- cmpMeta.$listeners$ = compactMeta[3];
1744
- }
1745
- {
1746
- cmpMeta.$attrsToReflect$ = [];
1747
- }
1748
- {
1749
- cmpMeta.$watchers$ = {};
1750
- }
1751
- const tagName = cmpMeta.$tagName$;
1752
- const HostElement = class extends HTMLElement {
1753
- // StencilLazyHost
1754
- constructor(self) {
1755
- // @ts-ignore
1756
- super(self);
1757
- self = this;
1758
- registerHost(self, cmpMeta);
1759
- }
1760
- connectedCallback() {
1761
- if (appLoadFallback) {
1762
- clearTimeout(appLoadFallback);
1763
- appLoadFallback = null;
1764
- }
1765
- if (isBootstrapping) {
1766
- // connectedCallback will be processed once all components have been registered
1767
- deferredConnectedCallbacks.push(this);
1768
- }
1769
- else {
1770
- plt.jmp(() => connectedCallback(this));
1771
- }
1772
- }
1773
- disconnectedCallback() {
1774
- plt.jmp(() => disconnectedCallback(this));
1775
- }
1776
- componentOnReady() {
1777
- return getHostRef(this).$onReadyPromise$;
1778
- }
1779
- };
1780
- cmpMeta.$lazyBundleId$ = lazyBundle[0];
1781
- if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1782
- cmpTags.push(tagName);
1783
- customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1784
- }
1785
- });
1786
- });
1787
- {
1788
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1789
- visibilityStyle.setAttribute('data-styles', '');
1790
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1791
- }
1792
- // Process deferred connectedCallbacks now all components have been registered
1793
- isBootstrapping = false;
1794
- if (deferredConnectedCallbacks.length) {
1795
- deferredConnectedCallbacks.map((host) => host.connectedCallback());
1796
- }
1797
- else {
1798
- {
1799
- plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1800
- }
1801
- }
1802
- // Fallback appLoad event
1803
- endBootstrap();
1804
- };
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();
1840
- const getHostRef = (ref) => hostRefs.get(ref);
1841
- const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1842
- const registerHost = (elm, cmpMeta) => {
1843
- const hostRef = {
1844
- $flags$: 0,
1845
- $hostElement$: elm,
1846
- $cmpMeta$: cmpMeta,
1847
- $instanceValues$: new Map(),
1848
- };
1849
- {
1850
- hostRef.$onInstancePromise$ = new Promise((r) => (hostRef.$onInstanceResolve$ = r));
1851
- }
1852
- {
1853
- hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1854
- elm['s-p'] = [];
1855
- elm['s-rc'] = [];
1856
- }
1857
- addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1858
- return hostRefs.set(elm, hostRef);
1859
- };
1860
- const isMemberInElement = (elm, memberName) => memberName in elm;
1861
- const consoleError = (e, el) => (0, console.error)(e, el);
1862
- const cmpModules = /*@__PURE__*/ new Map();
1863
- const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1864
- // loadModuleImport
1865
- const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1866
- const bundleId = cmpMeta.$lazyBundleId$;
1867
- const module = cmpModules.get(bundleId) ;
1868
- if (module) {
1869
- return module[exportName];
1870
- }
1871
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1872
- return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1873
- /* @vite-ignore */
1874
- /* webpackInclude: /\.entry\.js$/ */
1875
- /* webpackExclude: /\.system\.entry\.js$/ */
1876
- /* webpackMode: "lazy" */
1877
- `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1878
- {
1879
- cmpModules.set(bundleId, importedModule);
1880
- }
1881
- return importedModule[exportName];
1882
- }, consoleError);
1883
- };
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
- ;
1906
- const queueDomReads = [];
1907
- const queueDomWrites = [];
1908
- const queueTask = (queue, write) => (cb) => {
1909
- queue.push(cb);
1910
- if (!queuePending) {
1911
- queuePending = true;
1912
- if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1913
- nextTick(flush);
1914
- }
1915
- else {
1916
- plt.raf(flush);
1917
- }
1918
- }
1919
- };
1920
- const consume = (queue) => {
1921
- for (let i = 0; i < queue.length; i++) {
1922
- try {
1923
- queue[i](performance.now());
1924
- }
1925
- catch (e) {
1926
- consoleError(e);
1927
- }
1928
- }
1929
- queue.length = 0;
1930
- };
1931
- const flush = () => {
1932
- // always force a bunch of medium callbacks to run, but still have
1933
- // a throttle on how many can run in a certain time
1934
- // DOM READS!!!
1935
- consume(queueDomReads);
1936
- // DOM WRITES!!!
1937
- {
1938
- consume(queueDomWrites);
1939
- if ((queuePending = queueDomReads.length > 0)) {
1940
- // still more to do yet, but we've run out of time
1941
- // let's let this thing cool off and try again in the next tick
1942
- plt.raf(flush);
1943
- }
1944
- }
1945
- };
1946
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1947
- const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1948
-
1949
- exports.Host = Host;
1950
- exports.bootstrapLazy = bootstrapLazy;
1951
- exports.createEvent = createEvent;
1952
- exports.getElement = getElement;
1953
- exports.h = h;
1954
- exports.promiseResolve = promiseResolve;
1955
- exports.registerInstance = registerInstance;
1956
-
1957
- //# sourceMappingURL=index-9174e0b1.js.map