code-monkey-ui 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (456) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/components/alert/index.mjs +2 -2
  4. package/es/components/alert/src/alert.mjs +96 -36
  5. package/es/components/alert/src/alert.mjs.map +1 -1
  6. package/es/components/alert/src/alert2.mjs +36 -96
  7. package/es/components/alert/src/alert2.mjs.map +1 -1
  8. package/es/components/autocomplete/index.mjs +2 -2
  9. package/es/components/autocomplete/src/autocomplete.mjs +361 -81
  10. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  11. package/es/components/autocomplete/src/autocomplete2.mjs +81 -361
  12. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  13. package/es/components/avatar/index.mjs +2 -2
  14. package/es/components/avatar/src/avatar.mjs +67 -32
  15. package/es/components/avatar/src/avatar.mjs.map +1 -1
  16. package/es/components/avatar/src/avatar2.mjs +32 -67
  17. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  18. package/es/components/breadcrumb/index.mjs +4 -4
  19. package/es/components/breadcrumb/src/breadcrumb-item.mjs +56 -11
  20. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  21. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +11 -56
  22. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  23. package/es/components/breadcrumb/src/breadcrumb.mjs +11 -36
  24. package/es/components/breadcrumb/src/breadcrumb.mjs.map +1 -1
  25. package/es/components/breadcrumb/src/breadcrumb2.mjs +36 -11
  26. package/es/components/breadcrumb/src/breadcrumb2.mjs.map +1 -1
  27. package/es/components/button/index.mjs +1 -1
  28. package/es/components/button/src/button-group.mjs +6 -30
  29. package/es/components/button/src/button-group.mjs.map +1 -1
  30. package/es/components/button/src/button-group2.mjs +30 -6
  31. package/es/components/button/src/button-group2.mjs.map +1 -1
  32. package/es/components/carousel/index.mjs +2 -2
  33. package/es/components/carousel/src/carousel.mjs +169 -56
  34. package/es/components/carousel/src/carousel.mjs.map +1 -1
  35. package/es/components/carousel/src/carousel2.mjs +56 -169
  36. package/es/components/carousel/src/carousel2.mjs.map +1 -1
  37. package/es/components/cascader/src/cascader2.mjs +2 -2
  38. package/es/components/cascader-panel/src/index.mjs +1 -1
  39. package/es/components/cascader-panel/src/menu.mjs +1 -1
  40. package/es/components/cascader-panel/src/node.mjs +116 -209
  41. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  42. package/es/components/cascader-panel/src/node2.mjs +209 -116
  43. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  44. package/es/components/cascader-panel/src/store.mjs +1 -1
  45. package/es/components/checkbox/index.mjs +4 -4
  46. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  47. package/es/components/checkbox/src/checkbox-group.mjs +72 -28
  48. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  49. package/es/components/checkbox/src/checkbox-group2.mjs +28 -72
  50. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  51. package/es/components/checkbox/src/checkbox.mjs +117 -50
  52. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  53. package/es/components/checkbox/src/checkbox2.mjs +50 -117
  54. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  55. package/es/components/collection/index.mjs +1 -1
  56. package/es/components/collection/src/collection.mjs +62 -10
  57. package/es/components/collection/src/collection.mjs.map +1 -1
  58. package/es/components/collection/src/collection2.mjs +10 -62
  59. package/es/components/collection/src/collection2.mjs.map +1 -1
  60. package/es/components/color-picker/index.mjs +2 -2
  61. package/es/components/color-picker/src/color-picker.mjs +40 -402
  62. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  63. package/es/components/color-picker/src/color-picker2.mjs +402 -40
  64. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  65. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  66. package/es/components/descriptions/index.mjs +2 -2
  67. package/es/components/descriptions/src/description.mjs +25 -112
  68. package/es/components/descriptions/src/description.mjs.map +1 -1
  69. package/es/components/descriptions/src/description2.mjs +112 -25
  70. package/es/components/descriptions/src/description2.mjs.map +1 -1
  71. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  72. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  73. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  74. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  75. package/es/components/dialog/index.mjs +2 -2
  76. package/es/components/dialog/src/dialog.mjs +170 -65
  77. package/es/components/dialog/src/dialog.mjs.map +1 -1
  78. package/es/components/dialog/src/dialog2.mjs +65 -170
  79. package/es/components/dialog/src/dialog2.mjs.map +1 -1
  80. package/es/components/divider/index.mjs +2 -2
  81. package/es/components/divider/src/divider.mjs +35 -17
  82. package/es/components/divider/src/divider.mjs.map +1 -1
  83. package/es/components/divider/src/divider2.mjs +17 -35
  84. package/es/components/divider/src/divider2.mjs.map +1 -1
  85. package/es/components/drawer/index.mjs +2 -2
  86. package/es/components/drawer/src/drawer.mjs +176 -26
  87. package/es/components/drawer/src/drawer.mjs.map +1 -1
  88. package/es/components/drawer/src/drawer2.mjs +26 -176
  89. package/es/components/drawer/src/drawer2.mjs.map +1 -1
  90. package/es/components/dropdown/index.mjs +2 -2
  91. package/es/components/dropdown/src/dropdown-item-impl.mjs +3 -3
  92. package/es/components/dropdown/src/dropdown-item.mjs +1 -1
  93. package/es/components/dropdown/src/dropdown-menu.mjs +2 -2
  94. package/es/components/dropdown/src/dropdown.mjs +306 -97
  95. package/es/components/dropdown/src/dropdown.mjs.map +1 -1
  96. package/es/components/dropdown/src/dropdown2.mjs +97 -306
  97. package/es/components/dropdown/src/dropdown2.mjs.map +1 -1
  98. package/es/components/dsh-cascader/src/dsh-cascader2.mjs +2 -2
  99. package/es/components/dsh-select/src/select.mjs +2 -2
  100. package/es/components/empty/index.mjs +2 -2
  101. package/es/components/empty/src/empty.mjs +11 -55
  102. package/es/components/empty/src/empty.mjs.map +1 -1
  103. package/es/components/empty/src/empty2.mjs +55 -11
  104. package/es/components/empty/src/empty2.mjs.map +1 -1
  105. package/es/components/form/index.mjs +2 -2
  106. package/es/components/form/src/form.mjs +54 -148
  107. package/es/components/form/src/form.mjs.map +1 -1
  108. package/es/components/form/src/form2.mjs +148 -54
  109. package/es/components/form/src/form2.mjs.map +1 -1
  110. package/es/components/image/index.mjs +2 -2
  111. package/es/components/image/src/image.mjs +225 -61
  112. package/es/components/image/src/image.mjs.map +1 -1
  113. package/es/components/image/src/image2.mjs +61 -225
  114. package/es/components/image/src/image2.mjs.map +1 -1
  115. package/es/components/index.mjs +33 -33
  116. package/es/components/menu/index.mjs +4 -4
  117. package/es/components/menu/src/menu-item-group.mjs +4 -35
  118. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  119. package/es/components/menu/src/menu-item-group2.mjs +35 -4
  120. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  121. package/es/components/menu/src/menu-item.mjs +97 -14
  122. package/es/components/menu/src/menu-item.mjs.map +1 -1
  123. package/es/components/menu/src/menu-item2.mjs +14 -97
  124. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  125. package/es/components/notification/index.mjs +1 -1
  126. package/es/components/notification/src/notification.mjs +149 -67
  127. package/es/components/notification/src/notification.mjs.map +1 -1
  128. package/es/components/notification/src/notification2.mjs +67 -149
  129. package/es/components/notification/src/notification2.mjs.map +1 -1
  130. package/es/components/notification/src/notify.mjs +2 -2
  131. package/es/components/pagination/src/components/jumper.mjs +60 -9
  132. package/es/components/pagination/src/components/jumper.mjs.map +1 -1
  133. package/es/components/pagination/src/components/jumper2.mjs +9 -60
  134. package/es/components/pagination/src/components/jumper2.mjs.map +1 -1
  135. package/es/components/pagination/src/pagination.mjs +1 -1
  136. package/es/components/popconfirm/index.mjs +2 -2
  137. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  138. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  139. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  140. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  141. package/es/components/popover/src/popover2.mjs +2 -2
  142. package/es/components/popper/index.mjs +4 -4
  143. package/es/components/popper/src/content.mjs +94 -137
  144. package/es/components/popper/src/content.mjs.map +1 -1
  145. package/es/components/popper/src/content2.mjs +137 -94
  146. package/es/components/popper/src/content2.mjs.map +1 -1
  147. package/es/components/popper/src/popper.mjs +32 -25
  148. package/es/components/popper/src/popper.mjs.map +1 -1
  149. package/es/components/popper/src/popper2.mjs +25 -32
  150. package/es/components/popper/src/popper2.mjs.map +1 -1
  151. package/es/components/rate/index.mjs +2 -2
  152. package/es/components/rate/src/rate.mjs +260 -87
  153. package/es/components/rate/src/rate.mjs.map +1 -1
  154. package/es/components/rate/src/rate2.mjs +87 -260
  155. package/es/components/rate/src/rate2.mjs.map +1 -1
  156. package/es/components/result/index.mjs +2 -2
  157. package/es/components/result/src/result.mjs +63 -29
  158. package/es/components/result/src/result.mjs.map +1 -1
  159. package/es/components/result/src/result2.mjs +29 -63
  160. package/es/components/result/src/result2.mjs.map +1 -1
  161. package/es/components/roving-focus-group/index.mjs +3 -3
  162. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  163. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  164. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  165. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  166. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  167. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  168. package/es/components/select/src/select.mjs +2 -2
  169. package/es/components/select-v2/src/defaults.mjs +1 -1
  170. package/es/components/slider/src/button.mjs +21 -93
  171. package/es/components/slider/src/button.mjs.map +1 -1
  172. package/es/components/slider/src/button2.mjs +93 -21
  173. package/es/components/slider/src/button2.mjs.map +1 -1
  174. package/es/components/slider/src/slider2.mjs +1 -1
  175. package/es/components/statistic/index.mjs +2 -2
  176. package/es/components/statistic/src/statistic.mjs +25 -70
  177. package/es/components/statistic/src/statistic.mjs.map +1 -1
  178. package/es/components/statistic/src/statistic2.mjs +70 -25
  179. package/es/components/statistic/src/statistic2.mjs.map +1 -1
  180. package/es/components/tag/index.mjs +2 -2
  181. package/es/components/tag/src/tag.mjs +33 -94
  182. package/es/components/tag/src/tag.mjs.map +1 -1
  183. package/es/components/tag/src/tag2.mjs +94 -33
  184. package/es/components/tag/src/tag2.mjs.map +1 -1
  185. package/es/components/text/index.mjs +2 -2
  186. package/es/components/text/src/text.mjs +24 -38
  187. package/es/components/text/src/text.mjs.map +1 -1
  188. package/es/components/text/src/text2.mjs +38 -24
  189. package/es/components/text/src/text2.mjs.map +1 -1
  190. package/es/components/timeline/index.mjs +2 -2
  191. package/es/components/timeline/src/timeline-item.mjs +42 -72
  192. package/es/components/timeline/src/timeline-item.mjs.map +1 -1
  193. package/es/components/timeline/src/timeline-item2.mjs +72 -42
  194. package/es/components/timeline/src/timeline-item2.mjs.map +1 -1
  195. package/es/components/tooltip/index.mjs +1 -1
  196. package/es/components/tooltip/src/content.mjs +177 -31
  197. package/es/components/tooltip/src/content.mjs.map +1 -1
  198. package/es/components/tooltip/src/content2.mjs +31 -177
  199. package/es/components/tooltip/src/content2.mjs.map +1 -1
  200. package/es/components/tooltip/src/tooltip.mjs +2 -2
  201. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  202. package/es/components/tooltip-v2/index.mjs +2 -2
  203. package/es/components/tooltip-v2/src/arrow.mjs +37 -22
  204. package/es/components/tooltip-v2/src/arrow.mjs.map +1 -1
  205. package/es/components/tooltip-v2/src/arrow2.mjs +22 -37
  206. package/es/components/tooltip-v2/src/arrow2.mjs.map +1 -1
  207. package/es/components/tooltip-v2/src/root.mjs +80 -17
  208. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  209. package/es/components/tooltip-v2/src/root2.mjs +17 -80
  210. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  211. package/es/components/tooltip-v2/src/tooltip.mjs +4 -4
  212. package/es/components/tooltip-v2/src/tooltip2.mjs +2 -2
  213. package/es/components/upload/index.mjs +3 -3
  214. package/es/components/upload/src/upload-content.mjs +1 -1
  215. package/es/components/upload/src/upload-content2.mjs +2 -2
  216. package/es/components/upload/src/upload-dragger.mjs +11 -72
  217. package/es/components/upload/src/upload-dragger.mjs.map +1 -1
  218. package/es/components/upload/src/upload-dragger2.mjs +72 -11
  219. package/es/components/upload/src/upload-dragger2.mjs.map +1 -1
  220. package/es/components/upload/src/upload-list.mjs +1 -1
  221. package/es/components/upload/src/upload.mjs +101 -116
  222. package/es/components/upload/src/upload.mjs.map +1 -1
  223. package/es/components/upload/src/upload2.mjs +116 -101
  224. package/es/components/upload/src/upload2.mjs.map +1 -1
  225. package/es/components/upload/src/use-handlers.mjs +1 -1
  226. package/es/index.mjs +33 -33
  227. package/lib/components/alert/index.js +2 -2
  228. package/lib/components/alert/src/alert.js +95 -37
  229. package/lib/components/alert/src/alert.js.map +1 -1
  230. package/lib/components/alert/src/alert2.js +37 -95
  231. package/lib/components/alert/src/alert2.js.map +1 -1
  232. package/lib/components/autocomplete/index.js +2 -2
  233. package/lib/components/autocomplete/src/autocomplete.js +360 -81
  234. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  235. package/lib/components/autocomplete/src/autocomplete2.js +81 -360
  236. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  237. package/lib/components/avatar/index.js +2 -2
  238. package/lib/components/avatar/src/avatar.js +67 -33
  239. package/lib/components/avatar/src/avatar.js.map +1 -1
  240. package/lib/components/avatar/src/avatar2.js +33 -67
  241. package/lib/components/avatar/src/avatar2.js.map +1 -1
  242. package/lib/components/breadcrumb/index.js +4 -4
  243. package/lib/components/breadcrumb/src/breadcrumb-item.js +56 -11
  244. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  245. package/lib/components/breadcrumb/src/breadcrumb-item2.js +11 -56
  246. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  247. package/lib/components/breadcrumb/src/breadcrumb.js +11 -36
  248. package/lib/components/breadcrumb/src/breadcrumb.js.map +1 -1
  249. package/lib/components/breadcrumb/src/breadcrumb2.js +36 -11
  250. package/lib/components/breadcrumb/src/breadcrumb2.js.map +1 -1
  251. package/lib/components/button/index.js +1 -1
  252. package/lib/components/button/src/button-group.js +6 -30
  253. package/lib/components/button/src/button-group.js.map +1 -1
  254. package/lib/components/button/src/button-group2.js +30 -6
  255. package/lib/components/button/src/button-group2.js.map +1 -1
  256. package/lib/components/carousel/index.js +2 -2
  257. package/lib/components/carousel/src/carousel.js +169 -57
  258. package/lib/components/carousel/src/carousel.js.map +1 -1
  259. package/lib/components/carousel/src/carousel2.js +57 -169
  260. package/lib/components/carousel/src/carousel2.js.map +1 -1
  261. package/lib/components/cascader/src/cascader2.js +2 -2
  262. package/lib/components/cascader-panel/src/index.js +1 -1
  263. package/lib/components/cascader-panel/src/menu.js +1 -1
  264. package/lib/components/cascader-panel/src/node.js +116 -209
  265. package/lib/components/cascader-panel/src/node.js.map +1 -1
  266. package/lib/components/cascader-panel/src/node2.js +209 -116
  267. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  268. package/lib/components/cascader-panel/src/store.js +1 -1
  269. package/lib/components/checkbox/index.js +4 -4
  270. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  271. package/lib/components/checkbox/src/checkbox-group.js +72 -29
  272. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  273. package/lib/components/checkbox/src/checkbox-group2.js +29 -72
  274. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  275. package/lib/components/checkbox/src/checkbox.js +117 -51
  276. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  277. package/lib/components/checkbox/src/checkbox2.js +51 -117
  278. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  279. package/lib/components/collection/index.js +1 -1
  280. package/lib/components/collection/src/collection.js +62 -9
  281. package/lib/components/collection/src/collection.js.map +1 -1
  282. package/lib/components/collection/src/collection2.js +9 -62
  283. package/lib/components/collection/src/collection2.js.map +1 -1
  284. package/lib/components/color-picker/index.js +2 -2
  285. package/lib/components/color-picker/src/color-picker.js +40 -400
  286. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  287. package/lib/components/color-picker/src/color-picker2.js +400 -40
  288. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  289. package/lib/components/color-picker/src/components/predefine.js +1 -1
  290. package/lib/components/descriptions/index.js +2 -2
  291. package/lib/components/descriptions/src/description.js +25 -112
  292. package/lib/components/descriptions/src/description.js.map +1 -1
  293. package/lib/components/descriptions/src/description2.js +112 -25
  294. package/lib/components/descriptions/src/description2.js.map +1 -1
  295. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  296. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  297. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  298. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  299. package/lib/components/dialog/index.js +2 -2
  300. package/lib/components/dialog/src/dialog.js +170 -66
  301. package/lib/components/dialog/src/dialog.js.map +1 -1
  302. package/lib/components/dialog/src/dialog2.js +66 -170
  303. package/lib/components/dialog/src/dialog2.js.map +1 -1
  304. package/lib/components/divider/index.js +2 -2
  305. package/lib/components/divider/src/divider.js +35 -17
  306. package/lib/components/divider/src/divider.js.map +1 -1
  307. package/lib/components/divider/src/divider2.js +17 -35
  308. package/lib/components/divider/src/divider2.js.map +1 -1
  309. package/lib/components/drawer/index.js +2 -2
  310. package/lib/components/drawer/src/drawer.js +176 -27
  311. package/lib/components/drawer/src/drawer.js.map +1 -1
  312. package/lib/components/drawer/src/drawer2.js +27 -176
  313. package/lib/components/drawer/src/drawer2.js.map +1 -1
  314. package/lib/components/dropdown/index.js +2 -2
  315. package/lib/components/dropdown/src/dropdown-item-impl.js +3 -3
  316. package/lib/components/dropdown/src/dropdown-item.js +1 -1
  317. package/lib/components/dropdown/src/dropdown-menu.js +2 -2
  318. package/lib/components/dropdown/src/dropdown.js +306 -106
  319. package/lib/components/dropdown/src/dropdown.js.map +1 -1
  320. package/lib/components/dropdown/src/dropdown2.js +106 -306
  321. package/lib/components/dropdown/src/dropdown2.js.map +1 -1
  322. package/lib/components/dsh-cascader/src/dsh-cascader2.js +2 -2
  323. package/lib/components/dsh-select/src/select.js +2 -2
  324. package/lib/components/empty/index.js +2 -2
  325. package/lib/components/empty/src/empty.js +11 -55
  326. package/lib/components/empty/src/empty.js.map +1 -1
  327. package/lib/components/empty/src/empty2.js +55 -11
  328. package/lib/components/empty/src/empty2.js.map +1 -1
  329. package/lib/components/form/index.js +2 -2
  330. package/lib/components/form/src/form.js +54 -147
  331. package/lib/components/form/src/form.js.map +1 -1
  332. package/lib/components/form/src/form2.js +147 -54
  333. package/lib/components/form/src/form2.js.map +1 -1
  334. package/lib/components/image/index.js +2 -2
  335. package/lib/components/image/src/image.js +224 -61
  336. package/lib/components/image/src/image.js.map +1 -1
  337. package/lib/components/image/src/image2.js +61 -224
  338. package/lib/components/image/src/image2.js.map +1 -1
  339. package/lib/components/index.js +33 -33
  340. package/lib/components/menu/index.js +4 -4
  341. package/lib/components/menu/src/menu-item-group.js +4 -35
  342. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  343. package/lib/components/menu/src/menu-item-group2.js +35 -4
  344. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  345. package/lib/components/menu/src/menu-item.js +97 -15
  346. package/lib/components/menu/src/menu-item.js.map +1 -1
  347. package/lib/components/menu/src/menu-item2.js +15 -97
  348. package/lib/components/menu/src/menu-item2.js.map +1 -1
  349. package/lib/components/notification/index.js +1 -1
  350. package/lib/components/notification/src/notification.js +148 -68
  351. package/lib/components/notification/src/notification.js.map +1 -1
  352. package/lib/components/notification/src/notification2.js +68 -148
  353. package/lib/components/notification/src/notification2.js.map +1 -1
  354. package/lib/components/notification/src/notify.js +2 -2
  355. package/lib/components/pagination/src/components/jumper.js +60 -9
  356. package/lib/components/pagination/src/components/jumper.js.map +1 -1
  357. package/lib/components/pagination/src/components/jumper2.js +9 -60
  358. package/lib/components/pagination/src/components/jumper2.js.map +1 -1
  359. package/lib/components/pagination/src/pagination.js +1 -1
  360. package/lib/components/popconfirm/index.js +2 -2
  361. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  362. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  363. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  364. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  365. package/lib/components/popover/src/popover2.js +2 -2
  366. package/lib/components/popper/index.js +4 -4
  367. package/lib/components/popper/src/content.js +99 -137
  368. package/lib/components/popper/src/content.js.map +1 -1
  369. package/lib/components/popper/src/content2.js +137 -99
  370. package/lib/components/popper/src/content2.js.map +1 -1
  371. package/lib/components/popper/src/popper.js +32 -28
  372. package/lib/components/popper/src/popper.js.map +1 -1
  373. package/lib/components/popper/src/popper2.js +28 -32
  374. package/lib/components/popper/src/popper2.js.map +1 -1
  375. package/lib/components/rate/index.js +2 -2
  376. package/lib/components/rate/src/rate.js +259 -87
  377. package/lib/components/rate/src/rate.js.map +1 -1
  378. package/lib/components/rate/src/rate2.js +87 -259
  379. package/lib/components/rate/src/rate2.js.map +1 -1
  380. package/lib/components/result/index.js +2 -2
  381. package/lib/components/result/src/result.js +63 -31
  382. package/lib/components/result/src/result.js.map +1 -1
  383. package/lib/components/result/src/result2.js +31 -63
  384. package/lib/components/result/src/result2.js.map +1 -1
  385. package/lib/components/roving-focus-group/index.js +2 -2
  386. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  387. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  388. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  389. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  390. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  391. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  392. package/lib/components/select/src/select.js +2 -2
  393. package/lib/components/select-v2/src/defaults.js +1 -1
  394. package/lib/components/slider/src/button.js +22 -93
  395. package/lib/components/slider/src/button.js.map +1 -1
  396. package/lib/components/slider/src/button2.js +93 -22
  397. package/lib/components/slider/src/button2.js.map +1 -1
  398. package/lib/components/slider/src/slider2.js +1 -1
  399. package/lib/components/statistic/index.js +2 -2
  400. package/lib/components/statistic/src/statistic.js +25 -70
  401. package/lib/components/statistic/src/statistic.js.map +1 -1
  402. package/lib/components/statistic/src/statistic2.js +70 -25
  403. package/lib/components/statistic/src/statistic2.js.map +1 -1
  404. package/lib/components/tag/index.js +2 -2
  405. package/lib/components/tag/src/tag.js +34 -94
  406. package/lib/components/tag/src/tag.js.map +1 -1
  407. package/lib/components/tag/src/tag2.js +94 -34
  408. package/lib/components/tag/src/tag2.js.map +1 -1
  409. package/lib/components/text/index.js +2 -2
  410. package/lib/components/text/src/text.js +24 -38
  411. package/lib/components/text/src/text.js.map +1 -1
  412. package/lib/components/text/src/text2.js +38 -24
  413. package/lib/components/text/src/text2.js.map +1 -1
  414. package/lib/components/timeline/index.js +2 -2
  415. package/lib/components/timeline/src/timeline-item.js +42 -72
  416. package/lib/components/timeline/src/timeline-item.js.map +1 -1
  417. package/lib/components/timeline/src/timeline-item2.js +72 -42
  418. package/lib/components/timeline/src/timeline-item2.js.map +1 -1
  419. package/lib/components/tooltip/index.js +1 -1
  420. package/lib/components/tooltip/src/content.js +177 -31
  421. package/lib/components/tooltip/src/content.js.map +1 -1
  422. package/lib/components/tooltip/src/content2.js +31 -177
  423. package/lib/components/tooltip/src/content2.js.map +1 -1
  424. package/lib/components/tooltip/src/tooltip.js +2 -2
  425. package/lib/components/tooltip/src/tooltip2.js +1 -1
  426. package/lib/components/tooltip-v2/index.js +2 -2
  427. package/lib/components/tooltip-v2/src/arrow.js +37 -23
  428. package/lib/components/tooltip-v2/src/arrow.js.map +1 -1
  429. package/lib/components/tooltip-v2/src/arrow2.js +23 -37
  430. package/lib/components/tooltip-v2/src/arrow2.js.map +1 -1
  431. package/lib/components/tooltip-v2/src/root.js +80 -17
  432. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  433. package/lib/components/tooltip-v2/src/root2.js +17 -80
  434. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  435. package/lib/components/tooltip-v2/src/tooltip.js +4 -4
  436. package/lib/components/tooltip-v2/src/tooltip2.js +2 -2
  437. package/lib/components/upload/index.js +3 -3
  438. package/lib/components/upload/src/upload-content.js +1 -1
  439. package/lib/components/upload/src/upload-content2.js +2 -2
  440. package/lib/components/upload/src/upload-dragger.js +12 -72
  441. package/lib/components/upload/src/upload-dragger.js.map +1 -1
  442. package/lib/components/upload/src/upload-dragger2.js +72 -12
  443. package/lib/components/upload/src/upload-dragger2.js.map +1 -1
  444. package/lib/components/upload/src/upload-list.js +1 -1
  445. package/lib/components/upload/src/upload.js +104 -116
  446. package/lib/components/upload/src/upload.js.map +1 -1
  447. package/lib/components/upload/src/upload2.js +116 -104
  448. package/lib/components/upload/src/upload2.js.map +1 -1
  449. package/lib/components/upload/src/use-handlers.js +1 -1
  450. package/lib/index.js +33 -33
  451. package/package.json +1 -1
  452. package/tags.json +1 -1
  453. package/theme-chalk/base.css +1 -1
  454. package/theme-chalk/index.css +1 -1
  455. package/theme-chalk/src/dsh/index.scss +8 -8
  456. package/web-types.json +1 -1
@@ -1,76 +1,31 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
2
- import '../../../hooks/index.mjs';
3
1
  import '../../../utils/index.mjs';
4
- import { statisticProps } from './statistic2.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
- import { isFunction } from '@vue/shared';
8
- import { isNumber } from '../../../utils/types.mjs';
2
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
9
3
 
10
- const __default__ = defineComponent({
11
- name: "ElStatistic"
12
- });
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- ...__default__,
15
- props: statisticProps,
16
- setup(__props, { expose }) {
17
- const props = __props;
18
- const ns = useNamespace("statistic");
19
- const displayValue = computed(() => {
20
- const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
21
- if (isFunction(formatter))
22
- return formatter(value);
23
- if (!isNumber(value))
24
- return value;
25
- let [integer, decimal = ""] = String(value).split(".");
26
- decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
27
- integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
28
- return [integer, decimal].join(decimal ? decimalSeparator : "");
29
- });
30
- expose({
31
- displayValue
32
- });
33
- return (_ctx, _cache) => {
34
- return openBlock(), createElementBlock("div", {
35
- class: normalizeClass(unref(ns).b())
36
- }, [
37
- _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
38
- key: 0,
39
- class: normalizeClass(unref(ns).e("head"))
40
- }, [
41
- renderSlot(_ctx.$slots, "title", {}, () => [
42
- createTextVNode(toDisplayString(_ctx.title), 1)
43
- ])
44
- ], 2)) : createCommentVNode("v-if", true),
45
- createElementVNode("div", {
46
- class: normalizeClass(unref(ns).e("content"))
47
- }, [
48
- _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock("div", {
49
- key: 0,
50
- class: normalizeClass(unref(ns).e("prefix"))
51
- }, [
52
- renderSlot(_ctx.$slots, "prefix", {}, () => [
53
- createElementVNode("span", null, toDisplayString(_ctx.prefix), 1)
54
- ])
55
- ], 2)) : createCommentVNode("v-if", true),
56
- createElementVNode("span", {
57
- class: normalizeClass(unref(ns).e("number")),
58
- style: normalizeStyle(_ctx.valueStyle)
59
- }, toDisplayString(unref(displayValue)), 7),
60
- _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock("div", {
61
- key: 1,
62
- class: normalizeClass(unref(ns).e("suffix"))
63
- }, [
64
- renderSlot(_ctx.$slots, "suffix", {}, () => [
65
- createElementVNode("span", null, toDisplayString(_ctx.suffix), 1)
66
- ])
67
- ], 2)) : createCommentVNode("v-if", true)
68
- ], 2)
69
- ], 2);
70
- };
4
+ const statisticProps = buildProps({
5
+ decimalSeparator: {
6
+ type: String,
7
+ default: "."
8
+ },
9
+ groupSeparator: {
10
+ type: String,
11
+ default: ","
12
+ },
13
+ precision: {
14
+ type: Number,
15
+ default: 0
16
+ },
17
+ formatter: Function,
18
+ value: {
19
+ type: definePropType([Number, Object]),
20
+ default: 0
21
+ },
22
+ prefix: String,
23
+ suffix: String,
24
+ title: String,
25
+ valueStyle: {
26
+ type: definePropType([String, Object, Array])
71
27
  }
72
28
  });
73
- var Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\openResource\\code-monkey-ui\\packages\\components\\statistic\\src\\statistic.vue"]]);
74
29
 
75
- export { Statistic as default };
30
+ export { statisticProps };
76
31
  //# sourceMappingURL=statistic.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n if (!isNumber(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAA,EAAO,SAAW,EAAA,SAAA,EAAW,kBAAkB,cACrD,EAAA,GAAA,KAAA,CAAA;AAEF,MAAA,IAAI,WAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAEjD,MAAI,IAAA,CAAC,SAAS,KAAK,CAAA;AAAG,QAAO,OAAA,KAAA,CAAA;AAE7B,MAAI,IAAA,CAAC,SAAS,OAAU,GAAA,EAAA,CAAA,GAAM,OAAO,KAAK,CAAA,CAAE,MAAM,GAAG,CAAA,CAAA;AACrD,MAAU,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AACzC,MAAU,OAAA,GAAA,OAAA,CAAQ,OAAQ,CAAA,uBAAA,EAAyB,cAAc,CAAA,CAAA;AACjE,MAAA,OAAO,CAAC,OAAS,EAAA,OAAO,EAAE,IAAK,CAAA,OAAA,GAAU,mBAAmB,EAAE,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"statistic.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":[],"mappings":";;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
@@ -1,31 +1,76 @@
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle } from 'vue';
2
+ import '../../../hooks/index.mjs';
1
3
  import '../../../utils/index.mjs';
2
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { statisticProps } from './statistic.mjs';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { isFunction } from '@vue/shared';
8
+ import { isNumber } from '../../../utils/types.mjs';
3
9
 
4
- const statisticProps = buildProps({
5
- decimalSeparator: {
6
- type: String,
7
- default: "."
8
- },
9
- groupSeparator: {
10
- type: String,
11
- default: ","
12
- },
13
- precision: {
14
- type: Number,
15
- default: 0
16
- },
17
- formatter: Function,
18
- value: {
19
- type: definePropType([Number, Object]),
20
- default: 0
21
- },
22
- prefix: String,
23
- suffix: String,
24
- title: String,
25
- valueStyle: {
26
- type: definePropType([String, Object, Array])
10
+ const __default__ = defineComponent({
11
+ name: "ElStatistic"
12
+ });
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: statisticProps,
16
+ setup(__props, { expose }) {
17
+ const props = __props;
18
+ const ns = useNamespace("statistic");
19
+ const displayValue = computed(() => {
20
+ const { value, formatter, precision, decimalSeparator, groupSeparator } = props;
21
+ if (isFunction(formatter))
22
+ return formatter(value);
23
+ if (!isNumber(value))
24
+ return value;
25
+ let [integer, decimal = ""] = String(value).split(".");
26
+ decimal = decimal.padEnd(precision, "0").slice(0, precision > 0 ? precision : 0);
27
+ integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, groupSeparator);
28
+ return [integer, decimal].join(decimal ? decimalSeparator : "");
29
+ });
30
+ expose({
31
+ displayValue
32
+ });
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createElementBlock("div", {
35
+ class: normalizeClass(unref(ns).b())
36
+ }, [
37
+ _ctx.$slots.title || _ctx.title ? (openBlock(), createElementBlock("div", {
38
+ key: 0,
39
+ class: normalizeClass(unref(ns).e("head"))
40
+ }, [
41
+ renderSlot(_ctx.$slots, "title", {}, () => [
42
+ createTextVNode(toDisplayString(_ctx.title), 1)
43
+ ])
44
+ ], 2)) : createCommentVNode("v-if", true),
45
+ createElementVNode("div", {
46
+ class: normalizeClass(unref(ns).e("content"))
47
+ }, [
48
+ _ctx.$slots.prefix || _ctx.prefix ? (openBlock(), createElementBlock("div", {
49
+ key: 0,
50
+ class: normalizeClass(unref(ns).e("prefix"))
51
+ }, [
52
+ renderSlot(_ctx.$slots, "prefix", {}, () => [
53
+ createElementVNode("span", null, toDisplayString(_ctx.prefix), 1)
54
+ ])
55
+ ], 2)) : createCommentVNode("v-if", true),
56
+ createElementVNode("span", {
57
+ class: normalizeClass(unref(ns).e("number")),
58
+ style: normalizeStyle(_ctx.valueStyle)
59
+ }, toDisplayString(unref(displayValue)), 7),
60
+ _ctx.$slots.suffix || _ctx.suffix ? (openBlock(), createElementBlock("div", {
61
+ key: 1,
62
+ class: normalizeClass(unref(ns).e("suffix"))
63
+ }, [
64
+ renderSlot(_ctx.$slots, "suffix", {}, () => [
65
+ createElementVNode("span", null, toDisplayString(_ctx.suffix), 1)
66
+ ])
67
+ ], 2)) : createCommentVNode("v-if", true)
68
+ ], 2)
69
+ ], 2);
70
+ };
27
71
  }
28
72
  });
73
+ var Statistic = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\openResource\\code-monkey-ui\\packages\\components\\statistic\\src\\statistic.vue"]]);
29
74
 
30
- export { statisticProps };
75
+ export { Statistic as default };
31
76
  //# sourceMappingURL=statistic2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"statistic2.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Dayjs } from 'dayjs'\nimport type Statistic from './statistic.vue'\n\nexport const statisticProps = buildProps({\n /**\n * @description Setting the decimal point\n */\n decimalSeparator: {\n type: String,\n default: '.',\n },\n /**\n * @description Sets the thousandth identifier\n */\n groupSeparator: {\n type: String,\n default: ',',\n },\n /**\n * @description numerical precision\n */\n precision: {\n type: Number,\n default: 0,\n },\n /**\n * @description Custom numerical presentation\n */\n formatter: Function,\n /**\n * @description Numerical content\n */\n value: {\n type: definePropType<number | Dayjs>([Number, Object]),\n default: 0,\n },\n /**\n * @description Sets the prefix of a number\n */\n prefix: String,\n\n /**\n * @description Sets the suffix of a number\n */\n suffix: String,\n /**\n * @description Numeric titles\n */\n title: String,\n /**\n * @description Styles numeric values\n */\n valueStyle: {\n type: definePropType<StyleValue>([String, Object, Array]),\n },\n} as const)\nexport type StatisticProps = ExtractPropTypes<typeof statisticProps>\n\nexport type StatisticInstance = InstanceType<typeof Statistic>\n"],"names":[],"mappings":";;;AACY,MAAC,cAAc,GAAG,UAAU,CAAC;AACzC,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,SAAS,EAAE,QAAQ;AACrB,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,MAAM,EAAE,MAAM;AAChB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjD,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"statistic2.mjs","sources":["../../../../../../packages/components/statistic/src/statistic.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div v-if=\"$slots.title || title\" :class=\"ns.e('head')\">\n <slot name=\"title\">\n {{ title }}\n </slot>\n </div>\n <div :class=\"ns.e('content')\">\n <div v-if=\"$slots.prefix || prefix\" :class=\"ns.e('prefix')\">\n <slot name=\"prefix\">\n <span>{{ prefix }}</span>\n </slot>\n </div>\n <span :class=\"ns.e('number')\" :style=\"valueStyle\">\n {{ displayValue }}\n </span>\n <div v-if=\"$slots.suffix || suffix\" :class=\"ns.e('suffix')\">\n <slot name=\"suffix\">\n <span>{{ suffix }}</span>\n </slot>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { isFunction, isNumber } from '@element-plus/utils'\nimport { statisticProps } from './statistic'\n\ndefineOptions({\n name: 'ElStatistic',\n})\n\nconst props = defineProps(statisticProps)\nconst ns = useNamespace('statistic')\n\nconst displayValue = computed(() => {\n const { value, formatter, precision, decimalSeparator, groupSeparator } =\n props\n\n if (isFunction(formatter)) return formatter(value)\n\n if (!isNumber(value)) return value\n\n let [integer, decimal = ''] = String(value).split('.')\n decimal = decimal\n .padEnd(precision, '0')\n .slice(0, precision > 0 ? precision : 0)\n integer = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, groupSeparator)\n return [integer, decimal].join(decimal ? decimalSeparator : '')\n})\n\ndefineExpose({\n /**\n * @description current display value\n */\n displayValue,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;mCA8Bc,CAAA;AAAA,EACZ,IAAM,EAAA,aAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAGA,IAAM,MAAA,EAAA,GAAK,aAAa,WAAW,CAAA,CAAA;AAEnC,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,KAAA,EAAO,SAAW,EAAA,SAAA,EAAW,kBAAkB,cACrD,EAAA,GAAA,KAAA,CAAA;AAEF,MAAA,IAAI,WAAW,SAAS,CAAA;AAAG,QAAA,OAAO,UAAU,KAAK,CAAA,CAAA;AAEjD,MAAI,IAAA,CAAC,SAAS,KAAK,CAAA;AAAG,QAAO,OAAA,KAAA,CAAA;AAE7B,MAAI,IAAA,CAAC,SAAS,OAAU,GAAA,EAAA,CAAA,GAAM,OAAO,KAAK,CAAA,CAAE,MAAM,GAAG,CAAA,CAAA;AACrD,MAAU,OAAA,GAAA,OAAA,CACP,MAAO,CAAA,SAAA,EAAW,GAAG,CAAA,CACrB,MAAM,CAAG,EAAA,SAAA,GAAY,CAAI,GAAA,SAAA,GAAY,CAAC,CAAA,CAAA;AACzC,MAAU,OAAA,GAAA,OAAA,CAAQ,OAAQ,CAAA,uBAAA,EAAyB,cAAc,CAAA,CAAA;AACjE,MAAA,OAAO,CAAC,OAAS,EAAA,OAAO,EAAE,IAAK,CAAA,OAAA,GAAU,mBAAmB,EAAE,CAAA,CAAA;AAAA,KAC/D,CAAA,CAAA;AAED,IAAa,MAAA,CAAA;AAAA,MAIX,YAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Tag from './src/tag.mjs';
3
- export { tagEmits, tagProps } from './src/tag2.mjs';
2
+ import Tag from './src/tag2.mjs';
3
+ export { tagEmits, tagProps } from './src/tag.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElTag = withInstall(Tag);
@@ -1,98 +1,37 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
2
- import { ElIcon } from '../../icon/index.mjs';
3
- import { Close } from '@element-plus/icons-vue';
4
- import '../../../hooks/index.mjs';
5
- import '../../form/index.mjs';
6
- import { tagProps, tagEmits } from './tag2.mjs';
7
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
- import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
9
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../../constants/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
+ import { componentSizes } from '../../../constants/size.mjs';
10
5
 
11
- const __default__ = defineComponent({
12
- name: "ElTag"
6
+ const tagProps = buildProps({
7
+ type: {
8
+ type: String,
9
+ values: ["success", "info", "warning", "danger", ""],
10
+ default: ""
11
+ },
12
+ closable: Boolean,
13
+ disableTransitions: Boolean,
14
+ hit: Boolean,
15
+ color: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ size: {
20
+ type: String,
21
+ values: componentSizes,
22
+ default: ""
23
+ },
24
+ effect: {
25
+ type: String,
26
+ values: ["dark", "light", "plain"],
27
+ default: "light"
28
+ },
29
+ round: Boolean
13
30
  });
14
- const _sfc_main = /* @__PURE__ */ defineComponent({
15
- ...__default__,
16
- props: tagProps,
17
- emits: tagEmits,
18
- setup(__props, { emit }) {
19
- const props = __props;
20
- const tagSize = useFormSize();
21
- const ns = useNamespace("tag");
22
- const containerKls = computed(() => {
23
- const { type, hit, effect, closable, round } = props;
24
- return [
25
- ns.b(),
26
- ns.is("closable", closable),
27
- ns.m(type),
28
- ns.m(tagSize.value),
29
- ns.m(effect),
30
- ns.is("hit", hit),
31
- ns.is("round", round)
32
- ];
33
- });
34
- const handleClose = (event) => {
35
- emit("close", event);
36
- };
37
- const handleClick = (event) => {
38
- emit("click", event);
39
- };
40
- return (_ctx, _cache) => {
41
- return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
42
- key: 0,
43
- class: normalizeClass(unref(containerKls)),
44
- style: normalizeStyle({ backgroundColor: _ctx.color }),
45
- onClick: handleClick
46
- }, [
47
- createElementVNode("span", {
48
- class: normalizeClass(unref(ns).e("content"))
49
- }, [
50
- renderSlot(_ctx.$slots, "default")
51
- ], 2),
52
- _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
53
- key: 0,
54
- class: normalizeClass(unref(ns).e("close")),
55
- onClick: withModifiers(handleClose, ["stop"])
56
- }, {
57
- default: withCtx(() => [
58
- createVNode(unref(Close))
59
- ]),
60
- _: 1
61
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
62
- ], 6)) : (openBlock(), createBlock(Transition, {
63
- key: 1,
64
- name: `${unref(ns).namespace.value}-zoom-in-center`,
65
- appear: ""
66
- }, {
67
- default: withCtx(() => [
68
- createElementVNode("span", {
69
- class: normalizeClass(unref(containerKls)),
70
- style: normalizeStyle({ backgroundColor: _ctx.color }),
71
- onClick: handleClick
72
- }, [
73
- createElementVNode("span", {
74
- class: normalizeClass(unref(ns).e("content"))
75
- }, [
76
- renderSlot(_ctx.$slots, "default")
77
- ], 2),
78
- _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
79
- key: 0,
80
- class: normalizeClass(unref(ns).e("close")),
81
- onClick: withModifiers(handleClose, ["stop"])
82
- }, {
83
- default: withCtx(() => [
84
- createVNode(unref(Close))
85
- ]),
86
- _: 1
87
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
88
- ], 6)
89
- ]),
90
- _: 3
91
- }, 8, ["name"]));
92
- };
93
- }
94
- });
95
- var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\openResource\\code-monkey-ui\\packages\\components\\tag\\src\\tag.vue"]]);
31
+ const tagEmits = {
32
+ close: (evt) => evt instanceof MouseEvent,
33
+ click: (evt) => evt instanceof MouseEvent
34
+ };
96
35
 
97
- export { Tag as default };
36
+ export { tagEmits, tagProps };
98
37
  //# sourceMappingURL=tag.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAuCc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,EAAE,IAAI,CAAA;AAAA,QACT,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: {\n type: String,\n default: '',\n },\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
@@ -1,37 +1,98 @@
1
- import '../../../utils/index.mjs';
2
- import '../../../constants/index.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
4
- import { componentSizes } from '../../../constants/size.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode, renderSlot, createBlock, withModifiers, withCtx, createVNode, createCommentVNode, Transition } from 'vue';
2
+ import { ElIcon } from '../../icon/index.mjs';
3
+ import { Close } from '@element-plus/icons-vue';
4
+ import '../../../hooks/index.mjs';
5
+ import '../../form/index.mjs';
6
+ import { tagProps, tagEmits } from './tag.mjs';
7
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
8
+ import { useFormSize } from '../../form/src/hooks/use-form-common-props.mjs';
9
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
5
10
 
6
- const tagProps = buildProps({
7
- type: {
8
- type: String,
9
- values: ["success", "info", "warning", "danger", ""],
10
- default: ""
11
- },
12
- closable: Boolean,
13
- disableTransitions: Boolean,
14
- hit: Boolean,
15
- color: {
16
- type: String,
17
- default: ""
18
- },
19
- size: {
20
- type: String,
21
- values: componentSizes,
22
- default: ""
23
- },
24
- effect: {
25
- type: String,
26
- values: ["dark", "light", "plain"],
27
- default: "light"
28
- },
29
- round: Boolean
11
+ const __default__ = defineComponent({
12
+ name: "ElTag"
30
13
  });
31
- const tagEmits = {
32
- close: (evt) => evt instanceof MouseEvent,
33
- click: (evt) => evt instanceof MouseEvent
34
- };
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ ...__default__,
16
+ props: tagProps,
17
+ emits: tagEmits,
18
+ setup(__props, { emit }) {
19
+ const props = __props;
20
+ const tagSize = useFormSize();
21
+ const ns = useNamespace("tag");
22
+ const containerKls = computed(() => {
23
+ const { type, hit, effect, closable, round } = props;
24
+ return [
25
+ ns.b(),
26
+ ns.is("closable", closable),
27
+ ns.m(type),
28
+ ns.m(tagSize.value),
29
+ ns.m(effect),
30
+ ns.is("hit", hit),
31
+ ns.is("round", round)
32
+ ];
33
+ });
34
+ const handleClose = (event) => {
35
+ emit("close", event);
36
+ };
37
+ const handleClick = (event) => {
38
+ emit("click", event);
39
+ };
40
+ return (_ctx, _cache) => {
41
+ return _ctx.disableTransitions ? (openBlock(), createElementBlock("span", {
42
+ key: 0,
43
+ class: normalizeClass(unref(containerKls)),
44
+ style: normalizeStyle({ backgroundColor: _ctx.color }),
45
+ onClick: handleClick
46
+ }, [
47
+ createElementVNode("span", {
48
+ class: normalizeClass(unref(ns).e("content"))
49
+ }, [
50
+ renderSlot(_ctx.$slots, "default")
51
+ ], 2),
52
+ _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
53
+ key: 0,
54
+ class: normalizeClass(unref(ns).e("close")),
55
+ onClick: withModifiers(handleClose, ["stop"])
56
+ }, {
57
+ default: withCtx(() => [
58
+ createVNode(unref(Close))
59
+ ]),
60
+ _: 1
61
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
62
+ ], 6)) : (openBlock(), createBlock(Transition, {
63
+ key: 1,
64
+ name: `${unref(ns).namespace.value}-zoom-in-center`,
65
+ appear: ""
66
+ }, {
67
+ default: withCtx(() => [
68
+ createElementVNode("span", {
69
+ class: normalizeClass(unref(containerKls)),
70
+ style: normalizeStyle({ backgroundColor: _ctx.color }),
71
+ onClick: handleClick
72
+ }, [
73
+ createElementVNode("span", {
74
+ class: normalizeClass(unref(ns).e("content"))
75
+ }, [
76
+ renderSlot(_ctx.$slots, "default")
77
+ ], 2),
78
+ _ctx.closable ? (openBlock(), createBlock(unref(ElIcon), {
79
+ key: 0,
80
+ class: normalizeClass(unref(ns).e("close")),
81
+ onClick: withModifiers(handleClose, ["stop"])
82
+ }, {
83
+ default: withCtx(() => [
84
+ createVNode(unref(Close))
85
+ ]),
86
+ _: 1
87
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
88
+ ], 6)
89
+ ]),
90
+ _: 3
91
+ }, 8, ["name"]));
92
+ };
93
+ }
94
+ });
95
+ var Tag = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\openResource\\code-monkey-ui\\packages\\components\\tag\\src\\tag.vue"]]);
35
96
 
36
- export { tagEmits, tagProps };
97
+ export { Tag as default };
37
98
  //# sourceMappingURL=tag2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\nimport { componentSizes } from '@element-plus/constants'\nimport type Tag from './tag.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tagProps = buildProps({\n /**\n * @description type of Tag\n */\n type: {\n type: String,\n values: ['success', 'info', 'warning', 'danger', ''],\n default: '',\n },\n /**\n * @description whether Tag can be removed\n */\n closable: Boolean,\n /**\n * @description whether to disable animations\n */\n disableTransitions: Boolean,\n /**\n * @description whether Tag has a highlighted border\n */\n hit: Boolean,\n /**\n * @description background color of the Tag\n */\n color: {\n type: String,\n default: '',\n },\n /**\n * @description size of Tag\n */\n size: {\n type: String,\n values: componentSizes,\n default: '',\n },\n /**\n * @description theme of Tag\n */\n effect: {\n type: String,\n values: ['dark', 'light', 'plain'],\n default: 'light',\n },\n /**\n * @description whether Tag is rounded\n */\n round: Boolean,\n} as const)\nexport type TagProps = ExtractPropTypes<typeof tagProps>\n\nexport const tagEmits = {\n close: (evt: MouseEvent) => evt instanceof MouseEvent,\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\nexport type TagEmits = typeof tagEmits\n\nexport type TagInstance = InstanceType<typeof Tag>\n"],"names":[],"mappings":";;;;;AAEY,MAAC,QAAQ,GAAG,UAAU,CAAC;AACnC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AACxD,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,kBAAkB,EAAE,OAAO;AAC7B,EAAE,GAAG,EAAE,OAAO;AACd,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,cAAc;AAC1B,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC;AACtC,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,CAAC,EAAE;AACS,MAAC,QAAQ,GAAG;AACxB,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;"}
1
+ {"version":3,"file":"tag2.mjs","sources":["../../../../../../packages/components/tag/src/tag.vue"],"sourcesContent":["<template>\n <span\n v-if=\"disableTransitions\"\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n <transition v-else :name=\"`${ns.namespace.value}-zoom-in-center`\" appear>\n <span\n :class=\"containerKls\"\n :style=\"{ backgroundColor: color }\"\n @click=\"handleClick\"\n >\n <span :class=\"ns.e('content')\">\n <slot />\n </span>\n <el-icon v-if=\"closable\" :class=\"ns.e('close')\" @click.stop=\"handleClose\">\n <Close />\n </el-icon>\n </span>\n </transition>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport ElIcon from '@element-plus/components/icon'\nimport { Close } from '@element-plus/icons-vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useFormSize } from '@element-plus/components/form'\n\nimport { tagEmits, tagProps } from './tag'\n\ndefineOptions({\n name: 'ElTag',\n})\nconst props = defineProps(tagProps)\nconst emit = defineEmits(tagEmits)\n\nconst tagSize = useFormSize()\nconst ns = useNamespace('tag')\nconst containerKls = computed(() => {\n const { type, hit, effect, closable, round } = props\n return [\n ns.b(),\n ns.is('closable', closable),\n ns.m(type),\n ns.m(tagSize.value),\n ns.m(effect),\n ns.is('hit', hit),\n ns.is('round', round),\n ]\n})\n\n// methods\nconst handleClose = (event: MouseEvent) => {\n emit('close', event)\n}\n\nconst handleClick = (event: MouseEvent) => {\n emit('click', event)\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCAuCc,CAAA;AAAA,EACZ,IAAM,EAAA,OAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,UAAU,WAAY,EAAA,CAAA;AAC5B,IAAM,MAAA,EAAA,GAAK,aAAa,KAAK,CAAA,CAAA;AAC7B,IAAM,MAAA,YAAA,GAAe,SAAS,MAAM;AAClC,MAAA,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,MAAA,EAAQ,UAAU,KAAU,EAAA,GAAA,KAAA,CAAA;AAC/C,MAAO,OAAA;AAAA,QACL,GAAG,CAAE,EAAA;AAAA,QACL,EAAA,CAAG,EAAG,CAAA,UAAA,EAAY,QAAQ,CAAA;AAAA,QAC1B,EAAA,CAAG,EAAE,IAAI,CAAA;AAAA,QACT,EAAA,CAAG,CAAE,CAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,QAClB,EAAA,CAAG,EAAE,MAAM,CAAA;AAAA,QACX,EAAA,CAAG,EAAG,CAAA,KAAA,EAAO,GAAG,CAAA;AAAA,QAChB,EAAA,CAAG,EAAG,CAAA,OAAA,EAAS,KAAK,CAAA;AAAA,OACtB,CAAA;AAAA,KACD,CAAA,CAAA;AAGD,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAM,MAAA,WAAA,GAAc,CAAC,KAAsB,KAAA;AACzC,MAAA,IAAA,CAAK,SAAS,KAAK,CAAA,CAAA;AAAA,KACrB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Text from './src/text.mjs';
3
- export { textProps } from './src/text2.mjs';
2
+ import Text from './src/text2.mjs';
3
+ export { textProps } from './src/text.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElText = withInstall(Text);