hzzt-plus 0.0.1

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 (386) hide show
  1. package/README.md +45 -0
  2. package/dist/index.css +1 -0
  3. package/dist/index.full.js +6928 -0
  4. package/dist/index.full.min.js +29 -0
  5. package/dist/index.full.min.js.map +1 -0
  6. package/dist/index.full.min.mjs +29 -0
  7. package/dist/index.full.min.mjs.map +1 -0
  8. package/dist/index.full.mjs +6916 -0
  9. package/dist/locale/en.js +16 -0
  10. package/dist/locale/en.min.js +2 -0
  11. package/dist/locale/en.min.js.map +1 -0
  12. package/dist/locale/en.min.mjs +2 -0
  13. package/dist/locale/en.min.mjs.map +1 -0
  14. package/dist/locale/en.mjs +8 -0
  15. package/dist/locale/zh-cn.js +16 -0
  16. package/dist/locale/zh-cn.min.js +2 -0
  17. package/dist/locale/zh-cn.min.js.map +1 -0
  18. package/dist/locale/zh-cn.min.mjs +2 -0
  19. package/dist/locale/zh-cn.min.mjs.map +1 -0
  20. package/dist/locale/zh-cn.mjs +8 -0
  21. package/es/_virtual/plugin-vue_export-helper.mjs +10 -0
  22. package/es/_virtual/plugin-vue_export-helper.mjs.map +1 -0
  23. package/es/component.d.ts +3 -0
  24. package/es/component.mjs +8 -0
  25. package/es/component.mjs.map +1 -0
  26. package/es/components/base/style/css.d.ts +1 -0
  27. package/es/components/base/style/index.d.ts +1 -0
  28. package/es/components/index.d.ts +1 -0
  29. package/es/components/title/index.d.ts +30 -0
  30. package/es/components/title/src/index.vue.d.ts +30 -0
  31. package/es/components/title/style/css.d.ts +2 -0
  32. package/es/components/title/style/index.d.ts +2 -0
  33. package/es/constants/aria.d.ts +17 -0
  34. package/es/constants/date.d.ts +3 -0
  35. package/es/constants/event.d.ts +3 -0
  36. package/es/constants/index.d.ts +3 -0
  37. package/es/constants/key.d.ts +1 -0
  38. package/es/constants/size.d.ts +7 -0
  39. package/es/defaults.d.ts +5 -0
  40. package/es/defaults.mjs +8 -0
  41. package/es/defaults.mjs.map +1 -0
  42. package/es/index.d.ts +6 -0
  43. package/es/index.mjs +11 -0
  44. package/es/index.mjs.map +1 -0
  45. package/es/locale/index.d.ts +9 -0
  46. package/es/locale/lang/en.d.ts +5 -0
  47. package/es/locale/lang/zh-cn.d.ts +5 -0
  48. package/es/make-installer.d.ts +5 -0
  49. package/es/make-installer.mjs +19 -0
  50. package/es/make-installer.mjs.map +1 -0
  51. package/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.mjs +5764 -0
  52. package/es/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.mjs.map +1 -0
  53. package/es/packages/components/base/style/css.mjs +2 -0
  54. package/es/packages/components/base/style/css.mjs.map +1 -0
  55. package/es/packages/components/base/style/index.mjs +2 -0
  56. package/es/packages/components/base/style/index.mjs.map +1 -0
  57. package/es/packages/components/index.mjs +2 -0
  58. package/es/packages/components/index.mjs.map +1 -0
  59. package/es/packages/components/title/index.mjs +8 -0
  60. package/es/packages/components/title/index.mjs.map +1 -0
  61. package/es/packages/components/title/src/index.mjs +48 -0
  62. package/es/packages/components/title/src/index.mjs.map +1 -0
  63. package/es/packages/components/title/style/css.mjs +3 -0
  64. package/es/packages/components/title/style/css.mjs.map +1 -0
  65. package/es/packages/components/title/style/index.mjs +3 -0
  66. package/es/packages/components/title/style/index.mjs.map +1 -0
  67. package/es/packages/constants/aria.mjs +20 -0
  68. package/es/packages/constants/aria.mjs.map +1 -0
  69. package/es/packages/constants/date.mjs +25 -0
  70. package/es/packages/constants/date.mjs.map +1 -0
  71. package/es/packages/constants/event.mjs +6 -0
  72. package/es/packages/constants/event.mjs.map +1 -0
  73. package/es/packages/constants/index.mjs +4 -0
  74. package/es/packages/constants/index.mjs.map +1 -0
  75. package/es/packages/constants/key.mjs +4 -0
  76. package/es/packages/constants/key.mjs.map +1 -0
  77. package/es/packages/constants/size.mjs +9 -0
  78. package/es/packages/constants/size.mjs.map +1 -0
  79. package/es/packages/locale/index.mjs +3 -0
  80. package/es/packages/locale/index.mjs.map +1 -0
  81. package/es/packages/locale/lang/en.mjs +7 -0
  82. package/es/packages/locale/lang/en.mjs.map +1 -0
  83. package/es/packages/locale/lang/zh-cn.mjs +7 -0
  84. package/es/packages/locale/lang/zh-cn.mjs.map +1 -0
  85. package/es/packages/utils/arrays.mjs +11 -0
  86. package/es/packages/utils/arrays.mjs.map +1 -0
  87. package/es/packages/utils/browser.mjs +7 -0
  88. package/es/packages/utils/browser.mjs.map +1 -0
  89. package/es/packages/utils/dom/aria.mjs +74 -0
  90. package/es/packages/utils/dom/aria.mjs.map +1 -0
  91. package/es/packages/utils/dom/element.mjs +20 -0
  92. package/es/packages/utils/dom/element.mjs.map +1 -0
  93. package/es/packages/utils/dom/event.mjs +15 -0
  94. package/es/packages/utils/dom/event.mjs.map +1 -0
  95. package/es/packages/utils/dom/index.mjs +7 -0
  96. package/es/packages/utils/dom/index.mjs.map +1 -0
  97. package/es/packages/utils/dom/position.mjs +53 -0
  98. package/es/packages/utils/dom/position.mjs.map +1 -0
  99. package/es/packages/utils/dom/scroll.mjs +116 -0
  100. package/es/packages/utils/dom/scroll.mjs.map +1 -0
  101. package/es/packages/utils/dom/style.mjs +76 -0
  102. package/es/packages/utils/dom/style.mjs.map +1 -0
  103. package/es/packages/utils/easings.mjs +11 -0
  104. package/es/packages/utils/easings.mjs.map +1 -0
  105. package/es/packages/utils/error.mjs +21 -0
  106. package/es/packages/utils/error.mjs.map +1 -0
  107. package/es/packages/utils/functions.mjs +2 -0
  108. package/es/packages/utils/functions.mjs.map +1 -0
  109. package/es/packages/utils/i18n.mjs +4 -0
  110. package/es/packages/utils/i18n.mjs.map +1 -0
  111. package/es/packages/utils/index.mjs +34 -0
  112. package/es/packages/utils/index.mjs.map +1 -0
  113. package/es/packages/utils/objects.mjs +18 -0
  114. package/es/packages/utils/objects.mjs.map +1 -0
  115. package/es/packages/utils/raf.mjs +8 -0
  116. package/es/packages/utils/raf.mjs.map +1 -0
  117. package/es/packages/utils/rand.mjs +5 -0
  118. package/es/packages/utils/rand.mjs.map +1 -0
  119. package/es/packages/utils/strings.mjs +8 -0
  120. package/es/packages/utils/strings.mjs.map +1 -0
  121. package/es/packages/utils/throttleByRaf.mjs +22 -0
  122. package/es/packages/utils/throttleByRaf.mjs.map +1 -0
  123. package/es/packages/utils/types.mjs +29 -0
  124. package/es/packages/utils/types.mjs.map +1 -0
  125. package/es/packages/utils/typescript.mjs +4 -0
  126. package/es/packages/utils/typescript.mjs.map +1 -0
  127. package/es/packages/utils/vue/global-node.mjs +33 -0
  128. package/es/packages/utils/vue/global-node.mjs.map +1 -0
  129. package/es/packages/utils/vue/icon.mjs +33 -0
  130. package/es/packages/utils/vue/icon.mjs.map +1 -0
  131. package/es/packages/utils/vue/index.mjs +11 -0
  132. package/es/packages/utils/vue/index.mjs.map +1 -0
  133. package/es/packages/utils/vue/install.mjs +41 -0
  134. package/es/packages/utils/vue/install.mjs.map +1 -0
  135. package/es/packages/utils/vue/props/index.mjs +4 -0
  136. package/es/packages/utils/vue/props/index.mjs.map +1 -0
  137. package/es/packages/utils/vue/props/runtime.mjs +48 -0
  138. package/es/packages/utils/vue/props/runtime.mjs.map +1 -0
  139. package/es/packages/utils/vue/props/types.mjs +2 -0
  140. package/es/packages/utils/vue/props/types.mjs.map +1 -0
  141. package/es/packages/utils/vue/props/util.mjs +2 -0
  142. package/es/packages/utils/vue/props/util.mjs.map +1 -0
  143. package/es/packages/utils/vue/refs.mjs +17 -0
  144. package/es/packages/utils/vue/refs.mjs.map +1 -0
  145. package/es/packages/utils/vue/size.mjs +9 -0
  146. package/es/packages/utils/vue/size.mjs.map +1 -0
  147. package/es/packages/utils/vue/typescript.mjs +2 -0
  148. package/es/packages/utils/vue/typescript.mjs.map +1 -0
  149. package/es/packages/utils/vue/validator.mjs +9 -0
  150. package/es/packages/utils/vue/validator.mjs.map +1 -0
  151. package/es/packages/utils/vue/vnode.mjs +104 -0
  152. package/es/packages/utils/vue/vnode.mjs.map +1 -0
  153. package/es/plugin.d.ts +3 -0
  154. package/es/plugin.mjs +4 -0
  155. package/es/plugin.mjs.map +1 -0
  156. package/es/utils/arrays.d.ts +5 -0
  157. package/es/utils/browser.d.ts +3 -0
  158. package/es/utils/dom/aria.d.ts +30 -0
  159. package/es/utils/dom/element.d.ts +3 -0
  160. package/es/utils/dom/event.d.ts +6 -0
  161. package/es/utils/dom/index.d.ts +6 -0
  162. package/es/utils/dom/position.d.ts +7 -0
  163. package/es/utils/dom/scroll.d.ts +11 -0
  164. package/es/utils/dom/style.d.ts +9 -0
  165. package/es/utils/easings.d.ts +1 -0
  166. package/es/utils/error.d.ts +3 -0
  167. package/es/utils/functions.d.ts +1 -0
  168. package/es/utils/i18n.d.ts +1 -0
  169. package/es/utils/index.d.ts +15 -0
  170. package/es/utils/objects.d.ts +8 -0
  171. package/es/utils/raf.d.ts +2 -0
  172. package/es/utils/rand.d.ts +12 -0
  173. package/es/utils/strings.d.ts +6 -0
  174. package/es/utils/throttleByRaf.d.ts +4 -0
  175. package/es/utils/types.d.ts +10 -0
  176. package/es/utils/typescript.d.ts +12 -0
  177. package/es/utils/vue/global-node.d.ts +3 -0
  178. package/es/utils/vue/icon.d.ts +23 -0
  179. package/es/utils/vue/index.d.ts +9 -0
  180. package/es/utils/vue/install.d.ts +6 -0
  181. package/es/utils/vue/props/index.d.ts +3 -0
  182. package/es/utils/vue/props/runtime.d.ts +29 -0
  183. package/es/utils/vue/props/types.d.ts +120 -0
  184. package/es/utils/vue/props/util.d.ts +8 -0
  185. package/es/utils/vue/refs.d.ts +3 -0
  186. package/es/utils/vue/size.d.ts +1 -0
  187. package/es/utils/vue/typescript.d.ts +5 -0
  188. package/es/utils/vue/validator.d.ts +2 -0
  189. package/es/utils/vue/vnode.d.ts +51 -0
  190. package/es/version.d.ts +1 -0
  191. package/es/version.mjs +4 -0
  192. package/es/version.mjs.map +1 -0
  193. package/global.d.ts +8 -0
  194. package/lib/_virtual/plugin-vue_export-helper.js +14 -0
  195. package/lib/_virtual/plugin-vue_export-helper.js.map +1 -0
  196. package/lib/component.d.ts +3 -0
  197. package/lib/component.js +12 -0
  198. package/lib/component.js.map +1 -0
  199. package/lib/components/base/style/css.d.ts +1 -0
  200. package/lib/components/base/style/index.d.ts +1 -0
  201. package/lib/components/index.d.ts +1 -0
  202. package/lib/components/title/index.d.ts +30 -0
  203. package/lib/components/title/src/index.vue.d.ts +30 -0
  204. package/lib/components/title/style/css.d.ts +2 -0
  205. package/lib/components/title/style/index.d.ts +2 -0
  206. package/lib/constants/aria.d.ts +17 -0
  207. package/lib/constants/date.d.ts +3 -0
  208. package/lib/constants/event.d.ts +3 -0
  209. package/lib/constants/index.d.ts +3 -0
  210. package/lib/constants/key.d.ts +1 -0
  211. package/lib/constants/size.d.ts +7 -0
  212. package/lib/defaults.d.ts +5 -0
  213. package/lib/defaults.js +12 -0
  214. package/lib/defaults.js.map +1 -0
  215. package/lib/index.d.ts +6 -0
  216. package/lib/index.js +18 -0
  217. package/lib/index.js.map +1 -0
  218. package/lib/locale/index.d.ts +9 -0
  219. package/lib/locale/lang/en.d.ts +5 -0
  220. package/lib/locale/lang/zh-cn.d.ts +5 -0
  221. package/lib/make-installer.d.ts +5 -0
  222. package/lib/make-installer.js +23 -0
  223. package/lib/make-installer.js.map +1 -0
  224. package/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.js +6060 -0
  225. package/lib/node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.js.map +1 -0
  226. package/lib/packages/components/base/style/css.js +5 -0
  227. package/lib/packages/components/base/style/css.js.map +1 -0
  228. package/lib/packages/components/base/style/index.js +5 -0
  229. package/lib/packages/components/base/style/index.js.map +1 -0
  230. package/lib/packages/components/index.js +10 -0
  231. package/lib/packages/components/index.js.map +1 -0
  232. package/lib/packages/components/title/index.js +13 -0
  233. package/lib/packages/components/title/index.js.map +1 -0
  234. package/lib/packages/components/title/src/index.js +52 -0
  235. package/lib/packages/components/title/src/index.js.map +1 -0
  236. package/lib/packages/components/title/style/css.js +6 -0
  237. package/lib/packages/components/title/style/css.js.map +1 -0
  238. package/lib/packages/components/title/style/index.js +6 -0
  239. package/lib/packages/components/title/style/index.js.map +1 -0
  240. package/lib/packages/constants/aria.js +24 -0
  241. package/lib/packages/constants/aria.js.map +1 -0
  242. package/lib/packages/constants/date.js +30 -0
  243. package/lib/packages/constants/date.js.map +1 -0
  244. package/lib/packages/constants/event.js +12 -0
  245. package/lib/packages/constants/event.js.map +1 -0
  246. package/lib/packages/constants/index.js +16 -0
  247. package/lib/packages/constants/index.js.map +1 -0
  248. package/lib/packages/constants/key.js +8 -0
  249. package/lib/packages/constants/key.js.map +1 -0
  250. package/lib/packages/constants/size.js +14 -0
  251. package/lib/packages/constants/size.js.map +1 -0
  252. package/lib/packages/locale/index.js +12 -0
  253. package/lib/packages/locale/index.js.map +1 -0
  254. package/lib/packages/locale/lang/en.js +11 -0
  255. package/lib/packages/locale/lang/en.js.map +1 -0
  256. package/lib/packages/locale/lang/zh-cn.js +11 -0
  257. package/lib/packages/locale/lang/zh-cn.js.map +1 -0
  258. package/lib/packages/utils/arrays.js +20 -0
  259. package/lib/packages/utils/arrays.js.map +1 -0
  260. package/lib/packages/utils/browser.js +18 -0
  261. package/lib/packages/utils/browser.js.map +1 -0
  262. package/lib/packages/utils/dom/aria.js +85 -0
  263. package/lib/packages/utils/dom/aria.js.map +1 -0
  264. package/lib/packages/utils/dom/element.js +24 -0
  265. package/lib/packages/utils/dom/element.js.map +1 -0
  266. package/lib/packages/utils/dom/event.js +20 -0
  267. package/lib/packages/utils/dom/event.js.map +1 -0
  268. package/lib/packages/utils/dom/index.js +44 -0
  269. package/lib/packages/utils/dom/index.js.map +1 -0
  270. package/lib/packages/utils/dom/position.js +60 -0
  271. package/lib/packages/utils/dom/position.js.map +1 -0
  272. package/lib/packages/utils/dom/scroll.js +126 -0
  273. package/lib/packages/utils/dom/scroll.js.map +1 -0
  274. package/lib/packages/utils/dom/style.js +87 -0
  275. package/lib/packages/utils/dom/style.js.map +1 -0
  276. package/lib/packages/utils/easings.js +15 -0
  277. package/lib/packages/utils/easings.js.map +1 -0
  278. package/lib/packages/utils/error.js +26 -0
  279. package/lib/packages/utils/error.js.map +1 -0
  280. package/lib/packages/utils/functions.js +13 -0
  281. package/lib/packages/utils/functions.js.map +1 -0
  282. package/lib/packages/utils/i18n.js +8 -0
  283. package/lib/packages/utils/i18n.js.map +1 -0
  284. package/lib/packages/utils/index.js +194 -0
  285. package/lib/packages/utils/index.js.map +1 -0
  286. package/lib/packages/utils/objects.js +28 -0
  287. package/lib/packages/utils/objects.js.map +1 -0
  288. package/lib/packages/utils/raf.js +13 -0
  289. package/lib/packages/utils/raf.js.map +1 -0
  290. package/lib/packages/utils/rand.js +10 -0
  291. package/lib/packages/utils/rand.js.map +1 -0
  292. package/lib/packages/utils/strings.js +24 -0
  293. package/lib/packages/utils/strings.js.map +1 -0
  294. package/lib/packages/utils/throttleByRaf.js +26 -0
  295. package/lib/packages/utils/throttleByRaf.js.map +1 -0
  296. package/lib/packages/utils/types.js +71 -0
  297. package/lib/packages/utils/types.js.map +1 -0
  298. package/lib/packages/utils/typescript.js +8 -0
  299. package/lib/packages/utils/typescript.js.map +1 -0
  300. package/lib/packages/utils/vue/global-node.js +39 -0
  301. package/lib/packages/utils/vue/global-node.js.map +1 -0
  302. package/lib/packages/utils/vue/icon.js +41 -0
  303. package/lib/packages/utils/vue/icon.js.map +1 -0
  304. package/lib/packages/utils/vue/index.js +51 -0
  305. package/lib/packages/utils/vue/index.js.map +1 -0
  306. package/lib/packages/utils/vue/install.js +48 -0
  307. package/lib/packages/utils/vue/install.js.map +1 -0
  308. package/lib/packages/utils/vue/props/index.js +16 -0
  309. package/lib/packages/utils/vue/props/index.js.map +1 -0
  310. package/lib/packages/utils/vue/props/runtime.js +56 -0
  311. package/lib/packages/utils/vue/props/runtime.js.map +1 -0
  312. package/lib/packages/utils/vue/props/types.js +3 -0
  313. package/lib/packages/utils/vue/props/types.js.map +1 -0
  314. package/lib/packages/utils/vue/props/util.js +3 -0
  315. package/lib/packages/utils/vue/props/util.js.map +1 -0
  316. package/lib/packages/utils/vue/refs.js +21 -0
  317. package/lib/packages/utils/vue/refs.js.map +1 -0
  318. package/lib/packages/utils/vue/size.js +13 -0
  319. package/lib/packages/utils/vue/size.js.map +1 -0
  320. package/lib/packages/utils/vue/typescript.js +3 -0
  321. package/lib/packages/utils/vue/typescript.js.map +1 -0
  322. package/lib/packages/utils/vue/validator.js +14 -0
  323. package/lib/packages/utils/vue/validator.js.map +1 -0
  324. package/lib/packages/utils/vue/vnode.js +119 -0
  325. package/lib/packages/utils/vue/vnode.js.map +1 -0
  326. package/lib/plugin.d.ts +3 -0
  327. package/lib/plugin.js +8 -0
  328. package/lib/plugin.js.map +1 -0
  329. package/lib/utils/arrays.d.ts +5 -0
  330. package/lib/utils/browser.d.ts +3 -0
  331. package/lib/utils/dom/aria.d.ts +30 -0
  332. package/lib/utils/dom/element.d.ts +3 -0
  333. package/lib/utils/dom/event.d.ts +6 -0
  334. package/lib/utils/dom/index.d.ts +6 -0
  335. package/lib/utils/dom/position.d.ts +7 -0
  336. package/lib/utils/dom/scroll.d.ts +11 -0
  337. package/lib/utils/dom/style.d.ts +9 -0
  338. package/lib/utils/easings.d.ts +1 -0
  339. package/lib/utils/error.d.ts +3 -0
  340. package/lib/utils/functions.d.ts +1 -0
  341. package/lib/utils/i18n.d.ts +1 -0
  342. package/lib/utils/index.d.ts +15 -0
  343. package/lib/utils/objects.d.ts +8 -0
  344. package/lib/utils/raf.d.ts +2 -0
  345. package/lib/utils/rand.d.ts +12 -0
  346. package/lib/utils/strings.d.ts +6 -0
  347. package/lib/utils/throttleByRaf.d.ts +4 -0
  348. package/lib/utils/types.d.ts +10 -0
  349. package/lib/utils/typescript.d.ts +12 -0
  350. package/lib/utils/vue/global-node.d.ts +3 -0
  351. package/lib/utils/vue/icon.d.ts +23 -0
  352. package/lib/utils/vue/index.d.ts +9 -0
  353. package/lib/utils/vue/install.d.ts +6 -0
  354. package/lib/utils/vue/props/index.d.ts +3 -0
  355. package/lib/utils/vue/props/runtime.d.ts +29 -0
  356. package/lib/utils/vue/props/types.d.ts +120 -0
  357. package/lib/utils/vue/props/util.d.ts +8 -0
  358. package/lib/utils/vue/refs.d.ts +3 -0
  359. package/lib/utils/vue/size.d.ts +1 -0
  360. package/lib/utils/vue/typescript.d.ts +5 -0
  361. package/lib/utils/vue/validator.d.ts +2 -0
  362. package/lib/utils/vue/vnode.d.ts +51 -0
  363. package/lib/version.d.ts +1 -0
  364. package/lib/version.js +8 -0
  365. package/lib/version.js.map +1 -0
  366. package/package.json +106 -0
  367. package/theme/base.css +1 -0
  368. package/theme/hzzt-title.css +1 -0
  369. package/theme/hzzt-var.css +1 -0
  370. package/theme/index.css +1 -0
  371. package/theme/src/base.scss +5 -0
  372. package/theme/src/common/box.scss +93 -0
  373. package/theme/src/common/flex.scss +119 -0
  374. package/theme/src/common/font.scss +39 -0
  375. package/theme/src/common/position.scss +41 -0
  376. package/theme/src/common/var.scss +1540 -0
  377. package/theme/src/index.scss +3 -0
  378. package/theme/src/mixins/_button.scss +165 -0
  379. package/theme/src/mixins/_col.scss +33 -0
  380. package/theme/src/mixins/_var.scss +66 -0
  381. package/theme/src/mixins/config.scss +5 -0
  382. package/theme/src/mixins/function.scss +86 -0
  383. package/theme/src/mixins/mixins.scss +235 -0
  384. package/theme/src/mixins/utils.scss +39 -0
  385. package/theme/src/title.scss +22 -0
  386. package/theme/src/var.scss +87 -0
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var raf = require('./raf.js');
6
+
7
+ function throttleByRaf(cb) {
8
+ let timer = 0;
9
+ const throttle = (...args) => {
10
+ if (timer) {
11
+ raf.cAF(timer);
12
+ }
13
+ timer = raf.rAF(() => {
14
+ cb(...args);
15
+ timer = 0;
16
+ });
17
+ };
18
+ throttle.cancel = () => {
19
+ raf.cAF(timer);
20
+ timer = 0;
21
+ };
22
+ return throttle;
23
+ }
24
+
25
+ exports.throttleByRaf = throttleByRaf;
26
+ //# sourceMappingURL=throttleByRaf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttleByRaf.js","sources":["../../../../../packages/utils/throttleByRaf.ts"],"sourcesContent":["import { cAF, rAF } from './raf'\n\nexport function throttleByRaf(cb: (...args: any[]) => void) {\n let timer = 0\n\n const throttle = (...args: any[]): void => {\n if (timer) {\n cAF(timer)\n }\n timer = rAF(() => {\n cb(...args)\n timer = 0\n })\n }\n\n throttle.cancel = () => {\n cAF(timer)\n timer = 0\n }\n\n return throttle\n}\n"],"names":["cAF","rAF"],"mappings":";;;;;;AACO,SAAS,aAAa,CAAC,EAAE,EAAE;AAClC,EAAE,IAAI,KAAK,GAAG,CAAC,CAAC;AAChB,EAAE,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,KAAK;AAChC,IAAI,IAAI,KAAK,EAAE;AACf,MAAMA,OAAG,CAAC,KAAK,CAAC,CAAC;AACjB,KAAK;AACL,IAAI,KAAK,GAAGC,OAAG,CAAC,MAAM;AACtB,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AAClB,MAAM,KAAK,GAAG,CAAC,CAAC;AAChB,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ,EAAE,QAAQ,CAAC,MAAM,GAAG,MAAM;AAC1B,IAAID,OAAG,CAAC,KAAK,CAAC,CAAC;AACf,IAAI,KAAK,GAAG,CAAC,CAAC;AACd,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC;AAClB;;;;"}
@@ -0,0 +1,71 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var shared = require('@vue/shared');
6
+ var lodashUnified = require('lodash-unified');
7
+ var vue = require('vue');
8
+
9
+ const isUndefined = (val) => val === void 0;
10
+ const isBoolean = (val) => typeof val === "boolean";
11
+ const isNumber = (val) => typeof val === "number";
12
+ const isEmpty = (val) => !val && val !== 0 || shared.isArray(val) && val.length === 0 || shared.isObject(val) && !Object.keys(val).length;
13
+ const isElement = (e) => {
14
+ if (typeof Element === "undefined")
15
+ return false;
16
+ return e instanceof Element;
17
+ };
18
+ const isPropAbsent = (prop) => {
19
+ return lodashUnified.isNil(prop);
20
+ };
21
+ const isStringNumber = (val) => {
22
+ if (!shared.isString(val)) {
23
+ return false;
24
+ }
25
+ return !Number.isNaN(Number(val));
26
+ };
27
+ const isWindow = (val) => {
28
+ return val === window;
29
+ };
30
+
31
+ Object.defineProperty(exports, 'isArray', {
32
+ enumerable: true,
33
+ get: function () { return shared.isArray; }
34
+ });
35
+ Object.defineProperty(exports, 'isDate', {
36
+ enumerable: true,
37
+ get: function () { return shared.isDate; }
38
+ });
39
+ Object.defineProperty(exports, 'isFunction', {
40
+ enumerable: true,
41
+ get: function () { return shared.isFunction; }
42
+ });
43
+ Object.defineProperty(exports, 'isObject', {
44
+ enumerable: true,
45
+ get: function () { return shared.isObject; }
46
+ });
47
+ Object.defineProperty(exports, 'isPromise', {
48
+ enumerable: true,
49
+ get: function () { return shared.isPromise; }
50
+ });
51
+ Object.defineProperty(exports, 'isString', {
52
+ enumerable: true,
53
+ get: function () { return shared.isString; }
54
+ });
55
+ Object.defineProperty(exports, 'isSymbol', {
56
+ enumerable: true,
57
+ get: function () { return shared.isSymbol; }
58
+ });
59
+ Object.defineProperty(exports, 'isVNode', {
60
+ enumerable: true,
61
+ get: function () { return vue.isVNode; }
62
+ });
63
+ exports.isBoolean = isBoolean;
64
+ exports.isElement = isElement;
65
+ exports.isEmpty = isEmpty;
66
+ exports.isNumber = isNumber;
67
+ exports.isPropAbsent = isPropAbsent;
68
+ exports.isStringNumber = isStringNumber;
69
+ exports.isUndefined = isUndefined;
70
+ exports.isWindow = isWindow;
71
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":["../../../../../packages/utils/types.ts"],"sourcesContent":["import { isArray, isObject, isString } from '@vue/shared'\nimport { isNil } from 'lodash-unified'\n\nexport {\n isArray,\n isFunction,\n isObject,\n isString,\n isDate,\n isPromise,\n isSymbol,\n} from '@vue/shared'\nexport { isVNode } from 'vue'\n\nexport const isUndefined = (val: any): val is undefined => val === undefined\nexport const isBoolean = (val: any): val is boolean => typeof val === 'boolean'\nexport const isNumber = (val: any): val is number => typeof val === 'number'\n\nexport const isEmpty = (val: unknown) =>\n (!val && val !== 0) ||\n (isArray(val) && val.length === 0) ||\n (isObject(val) && !Object.keys(val).length)\n\nexport const isElement = (e: unknown): e is Element => {\n if (typeof Element === 'undefined') return false\n return e instanceof Element\n}\n\nexport const isPropAbsent = (prop: unknown): prop is null | undefined => {\n return isNil(prop)\n}\n\nexport const isStringNumber = (val: string): boolean => {\n if (!isString(val)) {\n return false\n }\n return !Number.isNaN(Number(val))\n}\n\nexport const isWindow = (val: unknown): val is Window => {\n return val === window\n}\n"],"names":["isArray","isObject","isNil","isString"],"mappings":";;;;;;;;AAYY,MAAC,WAAW,GAAG,CAAC,GAAG,KAAK,GAAG,KAAK,KAAK,EAAE;AACvC,MAAC,SAAS,GAAG,CAAC,GAAG,KAAK,OAAO,GAAG,KAAK,UAAU;AAC/C,MAAC,QAAQ,GAAG,CAAC,GAAG,KAAK,OAAO,GAAG,KAAK,SAAS;AAC7C,MAAC,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,IAAIA,cAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,IAAIC,eAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO;AACvH,MAAC,SAAS,GAAG,CAAC,CAAC,KAAK;AAChC,EAAE,IAAI,OAAO,OAAO,KAAK,WAAW;AACpC,IAAI,OAAO,KAAK,CAAC;AACjB,EAAE,OAAO,CAAC,YAAY,OAAO,CAAC;AAC9B,EAAE;AACU,MAAC,YAAY,GAAG,CAAC,IAAI,KAAK;AACtC,EAAE,OAAOC,mBAAK,CAAC,IAAI,CAAC,CAAC;AACrB,EAAE;AACU,MAAC,cAAc,GAAG,CAAC,GAAG,KAAK;AACvC,EAAE,IAAI,CAACC,eAAQ,CAAC,GAAG,CAAC,EAAE;AACtB,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG;AACH,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACpC,EAAE;AACU,MAAC,QAAQ,GAAG,CAAC,GAAG,KAAK;AACjC,EAAE,OAAO,GAAG,KAAK,MAAM,CAAC;AACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const mutable = (val) => val;
6
+
7
+ exports.mutable = mutable;
8
+ //# sourceMappingURL=typescript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.js","sources":["../../../../../packages/utils/typescript.ts"],"sourcesContent":["export const mutable = <T extends readonly any[] | Record<string, unknown>>(\n val: T\n) => val as Mutable<typeof val>\nexport type Mutable<T> = { -readonly [P in keyof T]: T[P] }\n\nexport type HTMLElementCustomized<T> = HTMLElement & T\n\n/**\n * @deprecated stop to use null\n * @see {@link https://github.com/sindresorhus/meta/discussions/7}\n */\nexport type Nullable<T> = T | null\n\nexport type Arrayable<T> = T | T[]\nexport type Awaitable<T> = Promise<T> | T\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG,CAAC,GAAG,KAAK;;;;"}
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../browser.js');
6
+ var core = require('@vueuse/core');
7
+
8
+ const globalNodes = [];
9
+ let target = !core.isClient ? void 0 : document.body;
10
+ function createGlobalNode(id) {
11
+ const el = document.createElement("div");
12
+ if (id !== void 0) {
13
+ el.setAttribute("id", id);
14
+ }
15
+ if (target) {
16
+ target.appendChild(el);
17
+ globalNodes.push(el);
18
+ }
19
+ return el;
20
+ }
21
+ function removeGlobalNode(el) {
22
+ globalNodes.splice(globalNodes.indexOf(el), 1);
23
+ el.remove();
24
+ }
25
+ function changeGlobalNodesTarget(el) {
26
+ if (el === target)
27
+ return;
28
+ target = el;
29
+ globalNodes.forEach((el2) => {
30
+ if (target && !el2.contains(target)) {
31
+ target.appendChild(el2);
32
+ }
33
+ });
34
+ }
35
+
36
+ exports.changeGlobalNodesTarget = changeGlobalNodesTarget;
37
+ exports.createGlobalNode = createGlobalNode;
38
+ exports.removeGlobalNode = removeGlobalNode;
39
+ //# sourceMappingURL=global-node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-node.js","sources":["../../../../../../packages/utils/vue/global-node.ts"],"sourcesContent":["import { isClient } from '../browser'\n\nconst globalNodes: HTMLElement[] = []\nlet target: HTMLElement | undefined = !isClient ? undefined : document.body\n\nexport function createGlobalNode(id?: string) {\n const el = document.createElement('div')\n if (id !== undefined) {\n el.setAttribute('id', id)\n }\n\n if (target) {\n target.appendChild(el)\n globalNodes.push(el)\n }\n\n return el\n}\n\nexport function removeGlobalNode(el: HTMLElement) {\n globalNodes.splice(globalNodes.indexOf(el), 1)\n el.remove()\n}\n\nexport function changeGlobalNodesTarget(el: HTMLElement) {\n if (el === target) return\n\n target = el\n globalNodes.forEach((el) => {\n if (target && !el.contains(target)) {\n target.appendChild(el)\n }\n })\n}\n"],"names":["isClient"],"mappings":";;;;;;;AACA,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,IAAI,MAAM,GAAG,CAACA,aAAQ,GAAG,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;AACzC,SAAS,gBAAgB,CAAC,EAAE,EAAE;AACrC,EAAE,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAC3C,EAAE,IAAI,EAAE,KAAK,KAAK,CAAC,EAAE;AACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;AAC9B,GAAG;AACH,EAAE,IAAI,MAAM,EAAE;AACd,IAAI,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;AAC3B,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzB,GAAG;AACH,EAAE,OAAO,EAAE,CAAC;AACZ,CAAC;AACM,SAAS,gBAAgB,CAAC,EAAE,EAAE;AACrC,EAAE,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACjD,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC;AACd,CAAC;AACM,SAAS,uBAAuB,CAAC,EAAE,EAAE;AAC5C,EAAE,IAAI,EAAE,KAAK,MAAM;AACnB,IAAI,OAAO;AACX,EAAE,MAAM,GAAG,EAAE,CAAC;AACd,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC/B,IAAI,IAAI,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;AACzC,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,CAAC,CAAC;AACL;;;;;;"}
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index = require('../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.2.37/node_modules/@element-plus/icons-vue/dist/index.js');
6
+ require('./props/index.js');
7
+ var runtime = require('./props/runtime.js');
8
+
9
+ const iconPropType = runtime.definePropType([
10
+ String,
11
+ Object,
12
+ Function
13
+ ]);
14
+ const CloseComponents = {
15
+ Close: index.Close
16
+ };
17
+ const TypeComponents = {
18
+ Close: index.Close,
19
+ SuccessFilled: index.SuccessFilled,
20
+ InfoFilled: index.InfoFilled,
21
+ WarningFilled: index.WarningFilled,
22
+ CircleCloseFilled: index.CircleCloseFilled
23
+ };
24
+ const TypeComponentsMap = {
25
+ success: index.SuccessFilled,
26
+ warning: index.WarningFilled,
27
+ error: index.CircleCloseFilled,
28
+ info: index.InfoFilled
29
+ };
30
+ const ValidateComponentsMap = {
31
+ validating: index.Loading,
32
+ success: index.CircleCheck,
33
+ error: index.CircleClose
34
+ };
35
+
36
+ exports.CloseComponents = CloseComponents;
37
+ exports.TypeComponents = TypeComponents;
38
+ exports.TypeComponentsMap = TypeComponentsMap;
39
+ exports.ValidateComponentsMap = ValidateComponentsMap;
40
+ exports.iconPropType = iconPropType;
41
+ //# sourceMappingURL=icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.js","sources":["../../../../../../packages/utils/vue/icon.ts"],"sourcesContent":["import {\n CircleCheck,\n CircleClose,\n CircleCloseFilled,\n Close,\n InfoFilled,\n Loading,\n SuccessFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\nimport { definePropType } from './props'\n\nimport type { Component } from 'vue'\n\nexport const iconPropType = definePropType<string | Component>([\n String,\n Object,\n Function,\n])\n\nexport const CloseComponents = {\n Close,\n}\n\nexport const TypeComponents = {\n Close,\n SuccessFilled,\n InfoFilled,\n WarningFilled,\n CircleCloseFilled,\n}\n\nexport const TypeComponentsMap = {\n success: SuccessFilled,\n warning: WarningFilled,\n error: CircleCloseFilled,\n info: InfoFilled,\n}\n\nexport const ValidateComponentsMap = {\n validating: Loading,\n success: CircleCheck,\n error: CircleClose,\n}\n"],"names":["definePropType","Close","SuccessFilled","InfoFilled","WarningFilled","CircleCloseFilled","Loading","CircleCheck","CircleClose"],"mappings":";;;;;;;;AAWY,MAAC,YAAY,GAAGA,sBAAc,CAAC;AAC3C,EAAE,MAAM;AACR,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,SAAEC,WAAK;AACP,EAAE;AACU,MAAC,cAAc,GAAG;AAC9B,SAAEA,WAAK;AACP,iBAAEC,mBAAa;AACf,cAAEC,gBAAU;AACZ,iBAAEC,mBAAa;AACf,qBAAEC,uBAAiB;AACnB,EAAE;AACU,MAAC,iBAAiB,GAAG;AACjC,EAAE,OAAO,EAAEH,mBAAa;AACxB,EAAE,OAAO,EAAEE,mBAAa;AACxB,EAAE,KAAK,EAAEC,uBAAiB;AAC1B,EAAE,IAAI,EAAEF,gBAAU;AAClB,EAAE;AACU,MAAC,qBAAqB,GAAG;AACrC,EAAE,UAAU,EAAEG,aAAO;AACrB,EAAE,OAAO,EAAEC,iBAAW;AACtB,EAAE,KAAK,EAAEC,iBAAW;AACpB;;;;;;;;"}
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var globalNode = require('./global-node.js');
6
+ var icon = require('./icon.js');
7
+ var install = require('./install.js');
8
+ require('./props/index.js');
9
+ var refs = require('./refs.js');
10
+ var size = require('./size.js');
11
+ require('./typescript.js');
12
+ var validator = require('./validator.js');
13
+ var vnode = require('./vnode.js');
14
+ var runtime = require('./props/runtime.js');
15
+
16
+
17
+
18
+ exports.changeGlobalNodesTarget = globalNode.changeGlobalNodesTarget;
19
+ exports.createGlobalNode = globalNode.createGlobalNode;
20
+ exports.removeGlobalNode = globalNode.removeGlobalNode;
21
+ exports.CloseComponents = icon.CloseComponents;
22
+ exports.TypeComponents = icon.TypeComponents;
23
+ exports.TypeComponentsMap = icon.TypeComponentsMap;
24
+ exports.ValidateComponentsMap = icon.ValidateComponentsMap;
25
+ exports.iconPropType = icon.iconPropType;
26
+ exports.withInstall = install.withInstall;
27
+ exports.withInstallDirective = install.withInstallDirective;
28
+ exports.withInstallFunction = install.withInstallFunction;
29
+ exports.withNoopInstall = install.withNoopInstall;
30
+ exports.composeRefs = refs.composeRefs;
31
+ exports.getComponentSize = size.getComponentSize;
32
+ exports.isValidComponentSize = validator.isValidComponentSize;
33
+ exports.isValidDatePickType = validator.isValidDatePickType;
34
+ exports.PatchFlags = vnode.PatchFlags;
35
+ exports.ensureOnlyChild = vnode.ensureOnlyChild;
36
+ exports.flattedChildren = vnode.flattedChildren;
37
+ exports.getFirstValidNode = vnode.getFirstValidNode;
38
+ exports.getNormalizedProps = vnode.getNormalizedProps;
39
+ exports.isComment = vnode.isComment;
40
+ exports.isFragment = vnode.isFragment;
41
+ exports.isTemplate = vnode.isTemplate;
42
+ exports.isText = vnode.isText;
43
+ exports.isValidElementNode = vnode.isValidElementNode;
44
+ exports.renderBlock = vnode.renderBlock;
45
+ exports.renderIf = vnode.renderIf;
46
+ exports.buildProp = runtime.buildProp;
47
+ exports.buildProps = runtime.buildProps;
48
+ exports.definePropType = runtime.definePropType;
49
+ exports.epPropKey = runtime.epPropKey;
50
+ exports.isEpProp = runtime.isEpProp;
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var shared = require('@vue/shared');
6
+
7
+ const withInstall = (main, extra) => {
8
+ ;
9
+ main.install = (app) => {
10
+ for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
11
+ app.component(comp.name, comp);
12
+ }
13
+ };
14
+ if (extra) {
15
+ for (const [key, comp] of Object.entries(extra)) {
16
+ ;
17
+ main[key] = comp;
18
+ }
19
+ }
20
+ return main;
21
+ };
22
+ const withInstallFunction = (fn, name) => {
23
+ ;
24
+ fn.install = (app) => {
25
+ ;
26
+ fn._context = app._context;
27
+ app.config.globalProperties[name] = fn;
28
+ };
29
+ return fn;
30
+ };
31
+ const withInstallDirective = (directive, name) => {
32
+ ;
33
+ directive.install = (app) => {
34
+ app.directive(name, directive);
35
+ };
36
+ return directive;
37
+ };
38
+ const withNoopInstall = (component) => {
39
+ ;
40
+ component.install = shared.NOOP;
41
+ return component;
42
+ };
43
+
44
+ exports.withInstall = withInstall;
45
+ exports.withInstallDirective = withInstallDirective;
46
+ exports.withInstallFunction = withInstallFunction;
47
+ exports.withNoopInstall = withNoopInstall;
48
+ //# sourceMappingURL=install.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.js","sources":["../../../../../../packages/utils/vue/install.ts"],"sourcesContent":["import { NOOP } from '@vue/shared'\n\nimport type { App, Directive } from 'vue'\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript'\n\nexport const withInstall = <T, E extends Record<string, any>>(\n main: T,\n extra?: E\n) => {\n ;(main as SFCWithInstall<T>).install = (app): void => {\n for (const comp of [main, ...Object.values(extra ?? {})]) {\n app.component(comp.name, comp)\n }\n }\n\n if (extra) {\n for (const [key, comp] of Object.entries(extra)) {\n ;(main as any)[key] = comp\n }\n }\n return main as SFCWithInstall<T> & E\n}\n\nexport const withInstallFunction = <T>(fn: T, name: string) => {\n ;(fn as SFCWithInstall<T>).install = (app: App) => {\n ;(fn as SFCInstallWithContext<T>)._context = app._context\n app.config.globalProperties[name] = fn\n }\n\n return fn as SFCInstallWithContext<T>\n}\n\nexport const withInstallDirective = <T extends Directive>(\n directive: T,\n name: string\n) => {\n ;(directive as SFCWithInstall<T>).install = (app: App): void => {\n app.directive(name, directive)\n }\n\n return directive as SFCWithInstall<T>\n}\n\nexport const withNoopInstall = <T>(component: T) => {\n ;(component as SFCWithInstall<T>).install = NOOP\n\n return component as SFCWithInstall<T>\n}\n"],"names":["NOOP"],"mappings":";;;;;;AACY,MAAC,WAAW,GAAG,CAAC,IAAI,EAAE,KAAK,KAAK;AAC5C,EAAE,CAAC;AACH,EAAE,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC1B,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC,CAAC,EAAE;AAC7E,MAAM,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACrC,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,IAAI,KAAK,EAAE;AACb,IAAI,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACrD,MAAM,CAAC;AACP,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACvB,KAAK;AACL,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd,EAAE;AACU,MAAC,mBAAmB,GAAG,CAAC,EAAE,EAAE,IAAI,KAAK;AACjD,EAAE,CAAC;AACH,EAAE,EAAE,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AACxB,IAAI,CAAC;AACL,IAAI,EAAE,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC/B,IAAI,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AAC3C,GAAG,CAAC;AACJ,EAAE,OAAO,EAAE,CAAC;AACZ,EAAE;AACU,MAAC,oBAAoB,GAAG,CAAC,SAAS,EAAE,IAAI,KAAK;AACzD,EAAE,CAAC;AACH,EAAE,SAAS,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC/B,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACnC,GAAG,CAAC;AACJ,EAAE,OAAO,SAAS,CAAC;AACnB,EAAE;AACU,MAAC,eAAe,GAAG,CAAC,SAAS,KAAK;AAC9C,EAAE,CAAC;AACH,EAAE,SAAS,CAAC,OAAO,GAAGA,WAAI,CAAC;AAC3B,EAAE,OAAO,SAAS,CAAC;AACnB;;;;;;;"}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./util.js');
6
+ require('./types.js');
7
+ var runtime = require('./runtime.js');
8
+
9
+
10
+
11
+ exports.buildProp = runtime.buildProp;
12
+ exports.buildProps = runtime.buildProps;
13
+ exports.definePropType = runtime.definePropType;
14
+ exports.epPropKey = runtime.epPropKey;
15
+ exports.isEpProp = runtime.isEpProp;
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var lodashUnified = require('lodash-unified');
7
+ require('../../types.js');
8
+ require('../../objects.js');
9
+ var shared = require('@vue/shared');
10
+
11
+ const epPropKey = "__epPropKey";
12
+ const definePropType = (val) => val;
13
+ const isEpProp = (val) => shared.isObject(val) && !!val[epPropKey];
14
+ const buildProp = (prop, key) => {
15
+ if (!shared.isObject(prop) || isEpProp(prop))
16
+ return prop;
17
+ const { values, required, default: defaultValue, type, validator } = prop;
18
+ const _validator = values || validator ? (val) => {
19
+ let valid = false;
20
+ let allowedValues = [];
21
+ if (values) {
22
+ allowedValues = Array.from(values);
23
+ if (shared.hasOwn(prop, "default")) {
24
+ allowedValues.push(defaultValue);
25
+ }
26
+ valid || (valid = allowedValues.includes(val));
27
+ }
28
+ if (validator)
29
+ valid || (valid = validator(val));
30
+ if (!valid && allowedValues.length > 0) {
31
+ const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(", ");
32
+ vue.warn(`Invalid prop: validation failed${key ? ` for prop "${key}"` : ""}. Expected one of [${allowValuesText}], got value ${JSON.stringify(val)}.`);
33
+ }
34
+ return valid;
35
+ } : void 0;
36
+ const epProp = {
37
+ type,
38
+ required: !!required,
39
+ validator: _validator,
40
+ [epPropKey]: true
41
+ };
42
+ if (shared.hasOwn(prop, "default"))
43
+ epProp.default = defaultValue;
44
+ return epProp;
45
+ };
46
+ const buildProps = (props) => lodashUnified.fromPairs(Object.entries(props).map(([key, option]) => [
47
+ key,
48
+ buildProp(option, key)
49
+ ]));
50
+
51
+ exports.buildProp = buildProp;
52
+ exports.buildProps = buildProps;
53
+ exports.definePropType = definePropType;
54
+ exports.epPropKey = epPropKey;
55
+ exports.isEpProp = isEpProp;
56
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.js","sources":["../../../../../../../packages/utils/vue/props/runtime.ts"],"sourcesContent":["import { warn } from 'vue'\nimport { fromPairs } from 'lodash-unified'\nimport { isObject } from '../../types'\nimport { hasOwn } from '../../objects'\n\nimport type { PropType } from 'vue'\nimport type {\n EpProp,\n EpPropConvert,\n EpPropFinalized,\n EpPropInput,\n EpPropMergeType,\n IfEpProp,\n IfNativePropType,\n NativePropType,\n} from './types'\n\nexport const epPropKey = '__epPropKey'\n\nexport const definePropType = <T>(val: any): PropType<T> => val\n\nexport const isEpProp = (val: unknown): val is EpProp<any, any, any> =>\n isObject(val) && !!(val as any)[epPropKey]\n\n/**\n * @description Build prop. It can better optimize prop types\n * @description 生成 prop,能更好地优化类型\n * @example\n // limited options\n // the type will be PropType<'light' | 'dark'>\n buildProp({\n type: String,\n values: ['light', 'dark'],\n } as const)\n * @example\n // limited options and other types\n // the type will be PropType<'small' | 'large' | number>\n buildProp({\n type: [String, Number],\n values: ['small', 'large'],\n validator: (val: unknown): val is number => typeof val === 'number',\n } as const)\n @link see more: https://github.com/element-plus/element-plus/pull/3341\n */\nexport const buildProp = <\n Type = never,\n Value = never,\n Validator = never,\n Default extends EpPropMergeType<Type, Value, Validator> = never,\n Required extends boolean = false\n>(\n prop: EpPropInput<Type, Value, Validator, Default, Required>,\n key?: string\n): EpPropFinalized<Type, Value, Validator, Default, Required> => {\n // filter native prop type and nested prop, e.g `null`, `undefined` (from `buildProps`)\n if (!isObject(prop) || isEpProp(prop)) return prop as any\n\n const { values, required, default: defaultValue, type, validator } = prop\n\n const _validator =\n values || validator\n ? (val: unknown) => {\n let valid = false\n let allowedValues: unknown[] = []\n\n if (values) {\n allowedValues = Array.from(values)\n if (hasOwn(prop, 'default')) {\n allowedValues.push(defaultValue)\n }\n valid ||= allowedValues.includes(val)\n }\n if (validator) valid ||= validator(val)\n\n if (!valid && allowedValues.length > 0) {\n const allowValuesText = [...new Set(allowedValues)]\n .map((value) => JSON.stringify(value))\n .join(', ')\n warn(\n `Invalid prop: validation failed${\n key ? ` for prop \"${key}\"` : ''\n }. Expected one of [${allowValuesText}], got value ${JSON.stringify(\n val\n )}.`\n )\n }\n return valid\n }\n : undefined\n\n const epProp: any = {\n type,\n required: !!required,\n validator: _validator,\n [epPropKey]: true,\n }\n if (hasOwn(prop, 'default')) epProp.default = defaultValue\n return epProp\n}\n\nexport const buildProps = <\n Props extends Record<\n string,\n | { [epPropKey]: true }\n | NativePropType\n | EpPropInput<any, any, any, any, any>\n >\n>(\n props: Props\n): {\n [K in keyof Props]: IfEpProp<\n Props[K],\n Props[K],\n IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>\n >\n} =>\n fromPairs(\n Object.entries(props).map(([key, option]) => [\n key,\n buildProp(option as any, key),\n ])\n ) as any\n"],"names":["isObject","hasOwn","warn","fromPairs"],"mappings":";;;;;;;;;;AAIY,MAAC,SAAS,GAAG,cAAc;AAC3B,MAAC,cAAc,GAAG,CAAC,GAAG,KAAK,IAAI;AAC/B,MAAC,QAAQ,GAAG,CAAC,GAAG,KAAKA,eAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,SAAS,EAAE;AACvD,MAAC,SAAS,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK;AACxC,EAAE,IAAI,CAACA,eAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC;AACvC,IAAI,OAAO,IAAI,CAAC;AAChB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;AAC5E,EAAE,MAAM,UAAU,GAAG,MAAM,IAAI,SAAS,GAAG,CAAC,GAAG,KAAK;AACpD,IAAI,IAAI,KAAK,GAAG,KAAK,CAAC;AACtB,IAAI,IAAI,aAAa,GAAG,EAAE,CAAC;AAC3B,IAAI,IAAI,MAAM,EAAE;AAChB,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACzC,MAAM,IAAIC,aAAM,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE;AACnC,QAAQ,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACzC,OAAO;AACP,MAAM,KAAK,KAAK,KAAK,GAAG,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACrD,KAAK;AACL,IAAI,IAAI,SAAS;AACjB,MAAM,KAAK,KAAK,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACxC,IAAI,IAAI,CAAC,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE;AAC5C,MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3G,MAAMC,QAAI,CAAC,CAAC,+BAA+B,EAAE,GAAG,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,mBAAmB,EAAE,eAAe,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzJ,KAAK;AACL,IAAI,OAAO,KAAK,CAAC;AACjB,GAAG,GAAG,KAAK,CAAC,CAAC;AACb,EAAE,MAAM,MAAM,GAAG;AACjB,IAAI,IAAI;AACR,IAAI,QAAQ,EAAE,CAAC,CAAC,QAAQ;AACxB,IAAI,SAAS,EAAE,UAAU;AACzB,IAAI,CAAC,SAAS,GAAG,IAAI;AACrB,GAAG,CAAC;AACJ,EAAE,IAAID,aAAM,CAAC,IAAI,EAAE,SAAS,CAAC;AAC7B,IAAI,MAAM,CAAC,OAAO,GAAG,YAAY,CAAC;AAClC,EAAE,OAAO,MAAM,CAAC;AAChB,EAAE;AACU,MAAC,UAAU,GAAG,CAAC,KAAK,KAAKE,uBAAS,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK;AAC5F,EAAE,GAAG;AACL,EAAE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;AACxB,CAAC,CAAC;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../types.js');
6
+ var shared = require('@vue/shared');
7
+
8
+ const composeRefs = (...refs) => {
9
+ return (el) => {
10
+ refs.forEach((ref) => {
11
+ if (shared.isFunction(ref)) {
12
+ ref(el);
13
+ } else {
14
+ ref.value = el;
15
+ }
16
+ });
17
+ };
18
+ };
19
+
20
+ exports.composeRefs = composeRefs;
21
+ //# sourceMappingURL=refs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refs.js","sources":["../../../../../../packages/utils/vue/refs.ts"],"sourcesContent":["import { isFunction } from '../types'\n\nimport type { ComponentPublicInstance, Ref } from 'vue'\n\nexport type RefSetter = (\n el: Element | ComponentPublicInstance | undefined\n) => void\n\nexport const composeRefs = (\n ...refs: (Ref<HTMLElement | undefined> | RefSetter)[]\n) => {\n return (el: Element | ComponentPublicInstance | null) => {\n refs.forEach((ref) => {\n if (isFunction(ref)) {\n ref(el as Element | ComponentPublicInstance)\n } else {\n ref.value = el as HTMLElement | undefined\n }\n })\n }\n}\n"],"names":["isFunction"],"mappings":";;;;;;;AACY,MAAC,WAAW,GAAG,CAAC,GAAG,IAAI,KAAK;AACxC,EAAE,OAAO,CAAC,EAAE,KAAK;AACjB,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,KAAK;AAC1B,MAAM,IAAIA,iBAAU,CAAC,GAAG,CAAC,EAAE;AAC3B,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,OAAO,MAAM;AACb,QAAQ,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC;AACvB,OAAO;AACP,KAAK,CAAC,CAAC;AACP,GAAG,CAAC;AACJ;;;;"}
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../constants/index.js');
6
+ var size = require('../../constants/size.js');
7
+
8
+ const getComponentSize = (size$1) => {
9
+ return size.componentSizeMap[size$1 || "default"];
10
+ };
11
+
12
+ exports.getComponentSize = getComponentSize;
13
+ //# sourceMappingURL=size.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"size.js","sources":["../../../../../../packages/utils/vue/size.ts"],"sourcesContent":["import { componentSizeMap } from '@hzzt-plus/constants'\n\nimport type { ComponentSize } from '@hzzt-plus/constants'\n\nexport const getComponentSize = (size?: ComponentSize) => {\n return componentSizeMap[size || 'default']\n}\n"],"names":["size","componentSizeMap"],"mappings":";;;;;;;AACY,MAAC,gBAAgB,GAAG,CAACA,MAAI,KAAK;AAC1C,EAAE,OAAOC,qBAAgB,CAACD,MAAI,IAAI,SAAS,CAAC,CAAC;AAC7C;;;;"}
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=typescript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../../constants/index.js');
6
+ var size = require('../../constants/size.js');
7
+ var date = require('../../constants/date.js');
8
+
9
+ const isValidComponentSize = (val) => ["", ...size.componentSizes].includes(val);
10
+ const isValidDatePickType = (val) => [...date.datePickTypes].includes(val);
11
+
12
+ exports.isValidComponentSize = isValidComponentSize;
13
+ exports.isValidDatePickType = isValidDatePickType;
14
+ //# sourceMappingURL=validator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.js","sources":["../../../../../../packages/utils/vue/validator.ts"],"sourcesContent":["import { componentSizes, datePickTypes } from '@hzzt-plus/constants'\nimport type { ComponentSize, DatePickType } from '@hzzt-plus/constants'\n\nexport const isValidComponentSize = (val: string): val is ComponentSize | '' =>\n ['', ...componentSizes].includes(val)\n\nexport const isValidDatePickType = (val: string): val is DatePickType =>\n ([...datePickTypes] as string[]).includes(val)\n"],"names":["componentSizes","datePickTypes"],"mappings":";;;;;;;;AACY,MAAC,oBAAoB,GAAG,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,GAAGA,mBAAc,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE;AACvE,MAAC,mBAAmB,GAAG,CAAC,GAAG,KAAK,CAAC,GAAGC,kBAAa,CAAC,CAAC,QAAQ,CAAC,GAAG;;;;;"}
@@ -0,0 +1,119 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var shared = require('@vue/shared');
7
+ require('../objects.js');
8
+ var error = require('../error.js');
9
+
10
+ const SCOPE = "utils/vue/vnode";
11
+ var PatchFlags = /* @__PURE__ */ ((PatchFlags2) => {
12
+ PatchFlags2[PatchFlags2["TEXT"] = 1] = "TEXT";
13
+ PatchFlags2[PatchFlags2["CLASS"] = 2] = "CLASS";
14
+ PatchFlags2[PatchFlags2["STYLE"] = 4] = "STYLE";
15
+ PatchFlags2[PatchFlags2["PROPS"] = 8] = "PROPS";
16
+ PatchFlags2[PatchFlags2["FULL_PROPS"] = 16] = "FULL_PROPS";
17
+ PatchFlags2[PatchFlags2["HYDRATE_EVENTS"] = 32] = "HYDRATE_EVENTS";
18
+ PatchFlags2[PatchFlags2["STABLE_FRAGMENT"] = 64] = "STABLE_FRAGMENT";
19
+ PatchFlags2[PatchFlags2["KEYED_FRAGMENT"] = 128] = "KEYED_FRAGMENT";
20
+ PatchFlags2[PatchFlags2["UNKEYED_FRAGMENT"] = 256] = "UNKEYED_FRAGMENT";
21
+ PatchFlags2[PatchFlags2["NEED_PATCH"] = 512] = "NEED_PATCH";
22
+ PatchFlags2[PatchFlags2["DYNAMIC_SLOTS"] = 1024] = "DYNAMIC_SLOTS";
23
+ PatchFlags2[PatchFlags2["HOISTED"] = -1] = "HOISTED";
24
+ PatchFlags2[PatchFlags2["BAIL"] = -2] = "BAIL";
25
+ return PatchFlags2;
26
+ })(PatchFlags || {});
27
+ function isFragment(node) {
28
+ return vue.isVNode(node) && node.type === vue.Fragment;
29
+ }
30
+ function isText(node) {
31
+ return vue.isVNode(node) && node.type === vue.Text;
32
+ }
33
+ function isComment(node) {
34
+ return vue.isVNode(node) && node.type === vue.Comment;
35
+ }
36
+ const TEMPLATE = "template";
37
+ function isTemplate(node) {
38
+ return vue.isVNode(node) && node.type === TEMPLATE;
39
+ }
40
+ function isValidElementNode(node) {
41
+ return vue.isVNode(node) && !isFragment(node) && !isComment(node);
42
+ }
43
+ function getChildren(node, depth) {
44
+ if (isComment(node))
45
+ return;
46
+ if (isFragment(node) || isTemplate(node)) {
47
+ return depth > 0 ? getFirstValidNode(node.children, depth - 1) : void 0;
48
+ }
49
+ return node;
50
+ }
51
+ const getFirstValidNode = (nodes, maxDepth = 3) => {
52
+ if (Array.isArray(nodes)) {
53
+ return getChildren(nodes[0], maxDepth);
54
+ } else {
55
+ return getChildren(nodes, maxDepth);
56
+ }
57
+ };
58
+ function renderIf(condition, ...args) {
59
+ return condition ? renderBlock(...args) : vue.createCommentVNode("v-if", true);
60
+ }
61
+ function renderBlock(...args) {
62
+ return vue.openBlock(), vue.createBlock(...args);
63
+ }
64
+ const getNormalizedProps = (node) => {
65
+ if (!vue.isVNode(node)) {
66
+ error.debugWarn(SCOPE, "[getNormalizedProps] must be a VNode");
67
+ return {};
68
+ }
69
+ const raw = node.props || {};
70
+ const type = (vue.isVNode(node.type) ? node.type.props : void 0) || {};
71
+ const props = {};
72
+ Object.keys(type).forEach((key) => {
73
+ if (shared.hasOwn(type[key], "default")) {
74
+ props[key] = type[key].default;
75
+ }
76
+ });
77
+ Object.keys(raw).forEach((key) => {
78
+ props[shared.camelize(key)] = raw[key];
79
+ });
80
+ return props;
81
+ };
82
+ const ensureOnlyChild = (children) => {
83
+ if (!shared.isArray(children) || children.length > 1) {
84
+ throw new Error("expect to receive a single Vue element child");
85
+ }
86
+ return children[0];
87
+ };
88
+ const flattedChildren = (children) => {
89
+ const vNodes = shared.isArray(children) ? children : [children];
90
+ const result = [];
91
+ vNodes.forEach((child) => {
92
+ var _a;
93
+ if (shared.isArray(child)) {
94
+ result.push(...flattedChildren(child));
95
+ } else if (vue.isVNode(child) && shared.isArray(child.children)) {
96
+ result.push(...flattedChildren(child.children));
97
+ } else {
98
+ result.push(child);
99
+ if (vue.isVNode(child) && ((_a = child.component) == null ? void 0 : _a.subTree)) {
100
+ result.push(...flattedChildren(child.component.subTree));
101
+ }
102
+ }
103
+ });
104
+ return result;
105
+ };
106
+
107
+ exports.PatchFlags = PatchFlags;
108
+ exports.ensureOnlyChild = ensureOnlyChild;
109
+ exports.flattedChildren = flattedChildren;
110
+ exports.getFirstValidNode = getFirstValidNode;
111
+ exports.getNormalizedProps = getNormalizedProps;
112
+ exports.isComment = isComment;
113
+ exports.isFragment = isFragment;
114
+ exports.isTemplate = isTemplate;
115
+ exports.isText = isText;
116
+ exports.isValidElementNode = isValidElementNode;
117
+ exports.renderBlock = renderBlock;
118
+ exports.renderIf = renderIf;
119
+ //# sourceMappingURL=vnode.js.map