code-monkey-ui 1.1.6-alpha.1 → 1.1.6-alpha.2

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 (561) hide show
  1. package/dist/index.full.js +1 -5
  2. package/dist/index.full.min.js +1 -1
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +1 -1
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +1 -5
  7. package/es/components/autocomplete/index.mjs +2 -2
  8. package/es/components/autocomplete/src/autocomplete.mjs +361 -81
  9. package/es/components/autocomplete/src/autocomplete.mjs.map +1 -1
  10. package/es/components/autocomplete/src/autocomplete2.mjs +81 -361
  11. package/es/components/autocomplete/src/autocomplete2.mjs.map +1 -1
  12. package/es/components/avatar/index.mjs +2 -2
  13. package/es/components/avatar/src/avatar.mjs +67 -32
  14. package/es/components/avatar/src/avatar.mjs.map +1 -1
  15. package/es/components/avatar/src/avatar2.mjs +32 -67
  16. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  17. package/es/components/batch/index.mjs +2 -2
  18. package/es/components/batch/src/batch.mjs +337 -46
  19. package/es/components/batch/src/batch.mjs.map +1 -1
  20. package/es/components/batch/src/batch2.mjs +46 -337
  21. package/es/components/batch/src/batch2.mjs.map +1 -1
  22. package/es/components/breadcrumb/index.mjs +2 -2
  23. package/es/components/breadcrumb/src/breadcrumb-item.mjs +11 -56
  24. package/es/components/breadcrumb/src/breadcrumb-item.mjs.map +1 -1
  25. package/es/components/breadcrumb/src/breadcrumb-item2.mjs +56 -11
  26. package/es/components/breadcrumb/src/breadcrumb-item2.mjs.map +1 -1
  27. package/es/components/calendar/index.mjs +2 -2
  28. package/es/components/calendar/src/calendar.mjs +131 -18
  29. package/es/components/calendar/src/calendar.mjs.map +1 -1
  30. package/es/components/calendar/src/calendar2.mjs +18 -131
  31. package/es/components/calendar/src/calendar2.mjs.map +1 -1
  32. package/es/components/calendar/src/date-table.mjs +33 -87
  33. package/es/components/calendar/src/date-table.mjs.map +1 -1
  34. package/es/components/calendar/src/date-table2.mjs +87 -33
  35. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  36. package/es/components/calendar/src/use-date-table.mjs +1 -1
  37. package/es/components/carousel/index.mjs +2 -2
  38. package/es/components/carousel/src/carousel-item.mjs +69 -8
  39. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  40. package/es/components/carousel/src/carousel-item2.mjs +8 -69
  41. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  42. package/es/components/cascader/index.mjs +2 -2
  43. package/es/components/cascader/src/cascader.mjs +626 -65
  44. package/es/components/cascader/src/cascader.mjs.map +1 -1
  45. package/es/components/cascader/src/cascader2.mjs +65 -626
  46. package/es/components/cascader/src/cascader2.mjs.map +1 -1
  47. package/es/components/checkbox/index.mjs +4 -4
  48. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  49. package/es/components/checkbox/src/checkbox-group.mjs +72 -28
  50. package/es/components/checkbox/src/checkbox-group.mjs.map +1 -1
  51. package/es/components/checkbox/src/checkbox-group2.mjs +28 -72
  52. package/es/components/checkbox/src/checkbox-group2.mjs.map +1 -1
  53. package/es/components/checkbox/src/checkbox.mjs +117 -50
  54. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  55. package/es/components/checkbox/src/checkbox2.mjs +50 -117
  56. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  57. package/es/components/col/index.mjs +2 -2
  58. package/es/components/col/src/col.mjs +43 -66
  59. package/es/components/col/src/col.mjs.map +1 -1
  60. package/es/components/col/src/col2.mjs +66 -43
  61. package/es/components/col/src/col2.mjs.map +1 -1
  62. package/es/components/collection/index.mjs +1 -1
  63. package/es/components/collection/src/collection.mjs +10 -62
  64. package/es/components/collection/src/collection.mjs.map +1 -1
  65. package/es/components/collection/src/collection2.mjs +62 -10
  66. package/es/components/collection/src/collection2.mjs.map +1 -1
  67. package/es/components/color-picker/index.mjs +2 -2
  68. package/es/components/color-picker/src/color-picker.mjs +40 -402
  69. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  70. package/es/components/color-picker/src/color-picker2.mjs +402 -40
  71. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  72. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  73. package/es/components/countdown/index.mjs +2 -2
  74. package/es/components/countdown/src/countdown.mjs +23 -74
  75. package/es/components/countdown/src/countdown.mjs.map +1 -1
  76. package/es/components/countdown/src/countdown2.mjs +74 -23
  77. package/es/components/countdown/src/countdown2.mjs.map +1 -1
  78. package/es/components/descriptions/src/description.mjs +1 -1
  79. package/es/components/descriptions/src/descriptions-row.mjs +7 -64
  80. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  81. package/es/components/descriptions/src/descriptions-row2.mjs +64 -7
  82. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  83. package/es/components/dialog/src/dialog-content.mjs +89 -29
  84. package/es/components/dialog/src/dialog-content.mjs.map +1 -1
  85. package/es/components/dialog/src/dialog-content2.mjs +29 -89
  86. package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
  87. package/es/components/dialog/src/dialog.mjs +1 -1
  88. package/es/components/dialog/src/dialog2.mjs +1 -1
  89. package/es/components/divider/index.mjs +2 -2
  90. package/es/components/divider/src/divider.mjs +17 -35
  91. package/es/components/divider/src/divider.mjs.map +1 -1
  92. package/es/components/divider/src/divider2.mjs +35 -17
  93. package/es/components/divider/src/divider2.mjs.map +1 -1
  94. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  95. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  96. package/es/components/dropdown/src/dropdown.mjs +1 -1
  97. package/es/components/dropdown/src/dropdown2.mjs +3 -3
  98. package/es/components/dsh-cascader/src/dsh-cascader.mjs +1 -1
  99. package/es/components/dsh-cascader-panel/src/index.mjs +1 -1
  100. package/es/components/dsh-cascader-panel/src/menu.mjs +1 -1
  101. package/es/components/dsh-cascader-panel/src/node.mjs +115 -229
  102. package/es/components/dsh-cascader-panel/src/node.mjs.map +1 -1
  103. package/es/components/dsh-cascader-panel/src/node2.mjs +229 -115
  104. package/es/components/dsh-cascader-panel/src/node2.mjs.map +1 -1
  105. package/es/components/dsh-cascader-panel/src/store.mjs +1 -1
  106. package/es/components/dsh-select/src/select.mjs +1 -1
  107. package/es/components/dsh-select/src/useOption.mjs +1 -5
  108. package/es/components/dsh-select/src/useOption.mjs.map +1 -1
  109. package/es/components/empty/index.mjs +2 -2
  110. package/es/components/empty/src/empty.mjs +55 -11
  111. package/es/components/empty/src/empty.mjs.map +1 -1
  112. package/es/components/empty/src/empty2.mjs +11 -55
  113. package/es/components/empty/src/empty2.mjs.map +1 -1
  114. package/es/components/form/index.mjs +2 -2
  115. package/es/components/form/src/form-item.mjs +317 -43
  116. package/es/components/form/src/form-item.mjs.map +1 -1
  117. package/es/components/form/src/form-item2.mjs +43 -317
  118. package/es/components/form/src/form-item2.mjs.map +1 -1
  119. package/es/components/icon/index.mjs +2 -2
  120. package/es/components/icon/src/icon.mjs +8 -36
  121. package/es/components/icon/src/icon.mjs.map +1 -1
  122. package/es/components/icon/src/icon2.mjs +36 -8
  123. package/es/components/icon/src/icon2.mjs.map +1 -1
  124. package/es/components/image-viewer/index.mjs +2 -2
  125. package/es/components/image-viewer/src/image-viewer.mjs +41 -401
  126. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  127. package/es/components/image-viewer/src/image-viewer2.mjs +401 -41
  128. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  129. package/es/components/index.mjs +36 -36
  130. package/es/components/input/index.mjs +2 -2
  131. package/es/components/input/src/input.mjs +109 -453
  132. package/es/components/input/src/input.mjs.map +1 -1
  133. package/es/components/input/src/input2.mjs +453 -109
  134. package/es/components/input/src/input2.mjs.map +1 -1
  135. package/es/components/input-number/index.mjs +2 -2
  136. package/es/components/input-number/src/input-number.mjs +58 -314
  137. package/es/components/input-number/src/input-number.mjs.map +1 -1
  138. package/es/components/input-number/src/input-number2.mjs +314 -58
  139. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  140. package/es/components/link/index.mjs +2 -2
  141. package/es/components/link/src/link.mjs +21 -50
  142. package/es/components/link/src/link.mjs.map +1 -1
  143. package/es/components/link/src/link2.mjs +50 -21
  144. package/es/components/link/src/link2.mjs.map +1 -1
  145. package/es/components/menu/index.mjs +4 -4
  146. package/es/components/menu/src/menu-item-group.mjs +4 -35
  147. package/es/components/menu/src/menu-item-group.mjs.map +1 -1
  148. package/es/components/menu/src/menu-item-group2.mjs +35 -4
  149. package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
  150. package/es/components/menu/src/menu-item.mjs +14 -97
  151. package/es/components/menu/src/menu-item.mjs.map +1 -1
  152. package/es/components/menu/src/menu-item2.mjs +97 -14
  153. package/es/components/menu/src/menu-item2.mjs.map +1 -1
  154. package/es/components/message/index.mjs +1 -1
  155. package/es/components/message/src/message.mjs +148 -86
  156. package/es/components/message/src/message.mjs.map +1 -1
  157. package/es/components/message/src/message2.mjs +86 -148
  158. package/es/components/message/src/message2.mjs.map +1 -1
  159. package/es/components/message/src/method.mjs +2 -2
  160. package/es/components/notification/index.mjs +1 -1
  161. package/es/components/notification/src/notification.mjs +149 -67
  162. package/es/components/notification/src/notification.mjs.map +1 -1
  163. package/es/components/notification/src/notification2.mjs +67 -149
  164. package/es/components/notification/src/notification2.mjs.map +1 -1
  165. package/es/components/notification/src/notify.mjs +2 -2
  166. package/es/components/page-header/index.mjs +2 -2
  167. package/es/components/page-header/src/page-header.mjs +17 -103
  168. package/es/components/page-header/src/page-header.mjs.map +1 -1
  169. package/es/components/page-header/src/page-header2.mjs +103 -17
  170. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  171. package/es/components/pagination/src/components/pager.mjs +216 -17
  172. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  173. package/es/components/pagination/src/components/pager2.mjs +17 -216
  174. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  175. package/es/components/pagination/src/components/total.mjs +7 -28
  176. package/es/components/pagination/src/components/total.mjs.map +1 -1
  177. package/es/components/pagination/src/components/total2.mjs +28 -7
  178. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  179. package/es/components/pagination/src/pagination.mjs +2 -2
  180. package/es/components/popconfirm/index.mjs +2 -2
  181. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  182. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  183. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  184. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  185. package/es/components/popover/src/popover2.mjs +2 -2
  186. package/es/components/result/index.mjs +2 -2
  187. package/es/components/result/src/result.mjs +29 -63
  188. package/es/components/result/src/result.mjs.map +1 -1
  189. package/es/components/result/src/result2.mjs +63 -29
  190. package/es/components/result/src/result2.mjs.map +1 -1
  191. package/es/components/roving-focus-group/index.mjs +3 -3
  192. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  193. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  194. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  195. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  196. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  197. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  198. package/es/components/scrollbar/index.mjs +1 -1
  199. package/es/components/scrollbar/src/bar.mjs +17 -42
  200. package/es/components/scrollbar/src/bar.mjs.map +1 -1
  201. package/es/components/scrollbar/src/bar2.mjs +42 -17
  202. package/es/components/scrollbar/src/bar2.mjs.map +1 -1
  203. package/es/components/scrollbar/src/scrollbar.mjs +1 -1
  204. package/es/components/scrollbar/src/thumb.mjs +130 -11
  205. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  206. package/es/components/scrollbar/src/thumb2.mjs +11 -130
  207. package/es/components/scrollbar/src/thumb2.mjs.map +1 -1
  208. package/es/components/select/src/select.mjs +1 -1
  209. package/es/components/select-v2/src/defaults.mjs +1 -1
  210. package/es/components/skeleton/index.mjs +2 -2
  211. package/es/components/skeleton/src/skeleton.mjs +22 -49
  212. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  213. package/es/components/skeleton/src/skeleton2.mjs +49 -22
  214. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  215. package/es/components/slider/index.mjs +2 -2
  216. package/es/components/slider/src/slider.mjs +91 -233
  217. package/es/components/slider/src/slider.mjs.map +1 -1
  218. package/es/components/slider/src/slider2.mjs +233 -91
  219. package/es/components/slider/src/slider2.mjs.map +1 -1
  220. package/es/components/steps/index.mjs +2 -2
  221. package/es/components/steps/src/steps.mjs +39 -36
  222. package/es/components/steps/src/steps.mjs.map +1 -1
  223. package/es/components/steps/src/steps2.mjs +36 -39
  224. package/es/components/steps/src/steps2.mjs.map +1 -1
  225. package/es/components/tabs/index.mjs +1 -1
  226. package/es/components/tabs/src/tab-bar.mjs +7 -75
  227. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  228. package/es/components/tabs/src/tab-bar2.mjs +75 -7
  229. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  230. package/es/components/tabs/src/tab-nav.mjs +1 -1
  231. package/es/components/text/index.mjs +2 -2
  232. package/es/components/text/src/text.mjs +24 -38
  233. package/es/components/text/src/text.mjs.map +1 -1
  234. package/es/components/text/src/text2.mjs +38 -24
  235. package/es/components/text/src/text2.mjs.map +1 -1
  236. package/es/components/time-select/index.mjs +1 -1
  237. package/es/components/time-select/src/time-select.mjs +120 -48
  238. package/es/components/time-select/src/time-select.mjs.map +1 -1
  239. package/es/components/time-select/src/time-select2.mjs +48 -120
  240. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  241. package/es/components/tooltip/index.mjs +2 -2
  242. package/es/components/tooltip/src/content.mjs +177 -31
  243. package/es/components/tooltip/src/content.mjs.map +1 -1
  244. package/es/components/tooltip/src/content2.mjs +31 -177
  245. package/es/components/tooltip/src/content2.mjs.map +1 -1
  246. package/es/components/tooltip/src/tooltip.mjs +2 -2
  247. package/es/components/tooltip/src/tooltip2.mjs +2 -2
  248. package/es/components/tooltip/src/trigger.mjs +16 -73
  249. package/es/components/tooltip/src/trigger.mjs.map +1 -1
  250. package/es/components/tooltip/src/trigger2.mjs +73 -16
  251. package/es/components/tooltip/src/trigger2.mjs.map +1 -1
  252. package/es/components/tooltip-v2/index.mjs +3 -3
  253. package/es/components/tooltip-v2/src/content.mjs +50 -112
  254. package/es/components/tooltip-v2/src/content.mjs.map +1 -1
  255. package/es/components/tooltip-v2/src/content2.mjs +112 -50
  256. package/es/components/tooltip-v2/src/content2.mjs.map +1 -1
  257. package/es/components/tooltip-v2/src/root.mjs +80 -17
  258. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  259. package/es/components/tooltip-v2/src/root2.mjs +17 -80
  260. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  261. package/es/components/tooltip-v2/src/tooltip.mjs +3 -3
  262. package/es/components/tooltip-v2/src/tooltip2.mjs +6 -6
  263. package/es/components/tooltip-v2/src/trigger.mjs +12 -89
  264. package/es/components/tooltip-v2/src/trigger.mjs.map +1 -1
  265. package/es/components/tooltip-v2/src/trigger2.mjs +89 -12
  266. package/es/components/tooltip-v2/src/trigger2.mjs.map +1 -1
  267. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  268. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  269. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  270. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  271. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  272. package/es/components/transfer/src/transfer2.mjs +1 -1
  273. package/es/components/visual-hidden/index.mjs +3 -3
  274. package/es/components/visual-hidden/src/visual-hidden.mjs +35 -7
  275. package/es/components/visual-hidden/src/visual-hidden.mjs.map +1 -1
  276. package/es/components/visual-hidden/src/visual-hidden2.mjs +7 -35
  277. package/es/components/visual-hidden/src/visual-hidden2.mjs.map +1 -1
  278. package/es/components/watermark/index.mjs +2 -2
  279. package/es/components/watermark/src/watermark.mjs +28 -207
  280. package/es/components/watermark/src/watermark.mjs.map +1 -1
  281. package/es/components/watermark/src/watermark2.mjs +207 -28
  282. package/es/components/watermark/src/watermark2.mjs.map +1 -1
  283. package/es/index.mjs +36 -36
  284. package/lib/components/autocomplete/index.js +2 -2
  285. package/lib/components/autocomplete/src/autocomplete.js +360 -81
  286. package/lib/components/autocomplete/src/autocomplete.js.map +1 -1
  287. package/lib/components/autocomplete/src/autocomplete2.js +81 -360
  288. package/lib/components/autocomplete/src/autocomplete2.js.map +1 -1
  289. package/lib/components/avatar/index.js +2 -2
  290. package/lib/components/avatar/src/avatar.js +67 -33
  291. package/lib/components/avatar/src/avatar.js.map +1 -1
  292. package/lib/components/avatar/src/avatar2.js +33 -67
  293. package/lib/components/avatar/src/avatar2.js.map +1 -1
  294. package/lib/components/batch/index.js +2 -2
  295. package/lib/components/batch/src/batch.js +337 -47
  296. package/lib/components/batch/src/batch.js.map +1 -1
  297. package/lib/components/batch/src/batch2.js +47 -337
  298. package/lib/components/batch/src/batch2.js.map +1 -1
  299. package/lib/components/breadcrumb/index.js +2 -2
  300. package/lib/components/breadcrumb/src/breadcrumb-item.js +11 -56
  301. package/lib/components/breadcrumb/src/breadcrumb-item.js.map +1 -1
  302. package/lib/components/breadcrumb/src/breadcrumb-item2.js +56 -11
  303. package/lib/components/breadcrumb/src/breadcrumb-item2.js.map +1 -1
  304. package/lib/components/calendar/index.js +2 -2
  305. package/lib/components/calendar/src/calendar.js +131 -19
  306. package/lib/components/calendar/src/calendar.js.map +1 -1
  307. package/lib/components/calendar/src/calendar2.js +19 -131
  308. package/lib/components/calendar/src/calendar2.js.map +1 -1
  309. package/lib/components/calendar/src/date-table.js +37 -87
  310. package/lib/components/calendar/src/date-table.js.map +1 -1
  311. package/lib/components/calendar/src/date-table2.js +87 -37
  312. package/lib/components/calendar/src/date-table2.js.map +1 -1
  313. package/lib/components/calendar/src/use-date-table.js +1 -1
  314. package/lib/components/carousel/index.js +2 -2
  315. package/lib/components/carousel/src/carousel-item.js +69 -8
  316. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  317. package/lib/components/carousel/src/carousel-item2.js +8 -69
  318. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  319. package/lib/components/cascader/index.js +2 -2
  320. package/lib/components/cascader/src/cascader.js +626 -66
  321. package/lib/components/cascader/src/cascader.js.map +1 -1
  322. package/lib/components/cascader/src/cascader2.js +66 -626
  323. package/lib/components/cascader/src/cascader2.js.map +1 -1
  324. package/lib/components/checkbox/index.js +4 -4
  325. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  326. package/lib/components/checkbox/src/checkbox-group.js +72 -29
  327. package/lib/components/checkbox/src/checkbox-group.js.map +1 -1
  328. package/lib/components/checkbox/src/checkbox-group2.js +29 -72
  329. package/lib/components/checkbox/src/checkbox-group2.js.map +1 -1
  330. package/lib/components/checkbox/src/checkbox.js +117 -51
  331. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  332. package/lib/components/checkbox/src/checkbox2.js +51 -117
  333. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  334. package/lib/components/col/index.js +2 -2
  335. package/lib/components/col/src/col.js +43 -66
  336. package/lib/components/col/src/col.js.map +1 -1
  337. package/lib/components/col/src/col2.js +66 -43
  338. package/lib/components/col/src/col2.js.map +1 -1
  339. package/lib/components/collection/index.js +1 -1
  340. package/lib/components/collection/src/collection.js +9 -62
  341. package/lib/components/collection/src/collection.js.map +1 -1
  342. package/lib/components/collection/src/collection2.js +62 -9
  343. package/lib/components/collection/src/collection2.js.map +1 -1
  344. package/lib/components/color-picker/index.js +2 -2
  345. package/lib/components/color-picker/src/color-picker.js +40 -400
  346. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  347. package/lib/components/color-picker/src/color-picker2.js +400 -40
  348. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  349. package/lib/components/color-picker/src/components/predefine.js +1 -1
  350. package/lib/components/countdown/index.js +2 -2
  351. package/lib/components/countdown/src/countdown.js +24 -74
  352. package/lib/components/countdown/src/countdown.js.map +1 -1
  353. package/lib/components/countdown/src/countdown2.js +74 -24
  354. package/lib/components/countdown/src/countdown2.js.map +1 -1
  355. package/lib/components/descriptions/src/description.js +1 -1
  356. package/lib/components/descriptions/src/descriptions-row.js +7 -64
  357. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  358. package/lib/components/descriptions/src/descriptions-row2.js +64 -7
  359. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  360. package/lib/components/dialog/src/dialog-content.js +88 -29
  361. package/lib/components/dialog/src/dialog-content.js.map +1 -1
  362. package/lib/components/dialog/src/dialog-content2.js +29 -88
  363. package/lib/components/dialog/src/dialog-content2.js.map +1 -1
  364. package/lib/components/dialog/src/dialog.js +1 -1
  365. package/lib/components/dialog/src/dialog2.js +1 -1
  366. package/lib/components/divider/index.js +2 -2
  367. package/lib/components/divider/src/divider.js +17 -35
  368. package/lib/components/divider/src/divider.js.map +1 -1
  369. package/lib/components/divider/src/divider2.js +35 -17
  370. package/lib/components/divider/src/divider2.js.map +1 -1
  371. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  372. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  373. package/lib/components/dropdown/src/dropdown.js +1 -1
  374. package/lib/components/dropdown/src/dropdown2.js +3 -3
  375. package/lib/components/dsh-cascader/src/dsh-cascader.js +1 -1
  376. package/lib/components/dsh-cascader-panel/src/index.js +1 -1
  377. package/lib/components/dsh-cascader-panel/src/menu.js +1 -1
  378. package/lib/components/dsh-cascader-panel/src/node.js +115 -229
  379. package/lib/components/dsh-cascader-panel/src/node.js.map +1 -1
  380. package/lib/components/dsh-cascader-panel/src/node2.js +229 -115
  381. package/lib/components/dsh-cascader-panel/src/node2.js.map +1 -1
  382. package/lib/components/dsh-cascader-panel/src/store.js +1 -1
  383. package/lib/components/dsh-select/src/select.js +1 -1
  384. package/lib/components/dsh-select/src/useOption.js +1 -5
  385. package/lib/components/dsh-select/src/useOption.js.map +1 -1
  386. package/lib/components/empty/index.js +2 -2
  387. package/lib/components/empty/src/empty.js +55 -11
  388. package/lib/components/empty/src/empty.js.map +1 -1
  389. package/lib/components/empty/src/empty2.js +11 -55
  390. package/lib/components/empty/src/empty2.js.map +1 -1
  391. package/lib/components/form/index.js +2 -2
  392. package/lib/components/form/src/form-item.js +321 -44
  393. package/lib/components/form/src/form-item.js.map +1 -1
  394. package/lib/components/form/src/form-item2.js +44 -321
  395. package/lib/components/form/src/form-item2.js.map +1 -1
  396. package/lib/components/icon/index.js +2 -2
  397. package/lib/components/icon/src/icon.js +8 -36
  398. package/lib/components/icon/src/icon.js.map +1 -1
  399. package/lib/components/icon/src/icon2.js +36 -8
  400. package/lib/components/icon/src/icon2.js.map +1 -1
  401. package/lib/components/image-viewer/index.js +2 -2
  402. package/lib/components/image-viewer/src/image-viewer.js +42 -401
  403. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  404. package/lib/components/image-viewer/src/image-viewer2.js +401 -42
  405. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  406. package/lib/components/index.js +36 -36
  407. package/lib/components/input/index.js +2 -2
  408. package/lib/components/input/src/input.js +109 -452
  409. package/lib/components/input/src/input.js.map +1 -1
  410. package/lib/components/input/src/input2.js +452 -109
  411. package/lib/components/input/src/input2.js.map +1 -1
  412. package/lib/components/input-number/index.js +2 -2
  413. package/lib/components/input-number/src/input-number.js +57 -312
  414. package/lib/components/input-number/src/input-number.js.map +1 -1
  415. package/lib/components/input-number/src/input-number2.js +312 -57
  416. package/lib/components/input-number/src/input-number2.js.map +1 -1
  417. package/lib/components/link/index.js +2 -2
  418. package/lib/components/link/src/link.js +22 -50
  419. package/lib/components/link/src/link.js.map +1 -1
  420. package/lib/components/link/src/link2.js +50 -22
  421. package/lib/components/link/src/link2.js.map +1 -1
  422. package/lib/components/menu/index.js +4 -4
  423. package/lib/components/menu/src/menu-item-group.js +4 -35
  424. package/lib/components/menu/src/menu-item-group.js.map +1 -1
  425. package/lib/components/menu/src/menu-item-group2.js +35 -4
  426. package/lib/components/menu/src/menu-item-group2.js.map +1 -1
  427. package/lib/components/menu/src/menu-item.js +15 -97
  428. package/lib/components/menu/src/menu-item.js.map +1 -1
  429. package/lib/components/menu/src/menu-item2.js +97 -15
  430. package/lib/components/menu/src/menu-item2.js.map +1 -1
  431. package/lib/components/message/index.js +1 -1
  432. package/lib/components/message/src/message.js +147 -88
  433. package/lib/components/message/src/message.js.map +1 -1
  434. package/lib/components/message/src/message2.js +88 -147
  435. package/lib/components/message/src/message2.js.map +1 -1
  436. package/lib/components/message/src/method.js +2 -2
  437. package/lib/components/notification/index.js +1 -1
  438. package/lib/components/notification/src/notification.js +148 -68
  439. package/lib/components/notification/src/notification.js.map +1 -1
  440. package/lib/components/notification/src/notification2.js +68 -148
  441. package/lib/components/notification/src/notification2.js.map +1 -1
  442. package/lib/components/notification/src/notify.js +2 -2
  443. package/lib/components/page-header/index.js +2 -2
  444. package/lib/components/page-header/src/page-header.js +18 -103
  445. package/lib/components/page-header/src/page-header.js.map +1 -1
  446. package/lib/components/page-header/src/page-header2.js +103 -18
  447. package/lib/components/page-header/src/page-header2.js.map +1 -1
  448. package/lib/components/pagination/src/components/pager.js +216 -17
  449. package/lib/components/pagination/src/components/pager.js.map +1 -1
  450. package/lib/components/pagination/src/components/pager2.js +17 -216
  451. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  452. package/lib/components/pagination/src/components/total.js +7 -28
  453. package/lib/components/pagination/src/components/total.js.map +1 -1
  454. package/lib/components/pagination/src/components/total2.js +28 -7
  455. package/lib/components/pagination/src/components/total2.js.map +1 -1
  456. package/lib/components/pagination/src/pagination.js +2 -2
  457. package/lib/components/popconfirm/index.js +2 -2
  458. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  459. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  460. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  461. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  462. package/lib/components/popover/src/popover2.js +2 -2
  463. package/lib/components/result/index.js +2 -2
  464. package/lib/components/result/src/result.js +31 -63
  465. package/lib/components/result/src/result.js.map +1 -1
  466. package/lib/components/result/src/result2.js +63 -31
  467. package/lib/components/result/src/result2.js.map +1 -1
  468. package/lib/components/roving-focus-group/index.js +2 -2
  469. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  470. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  471. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  472. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  473. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  474. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  475. package/lib/components/scrollbar/index.js +1 -1
  476. package/lib/components/scrollbar/src/bar.js +17 -42
  477. package/lib/components/scrollbar/src/bar.js.map +1 -1
  478. package/lib/components/scrollbar/src/bar2.js +42 -17
  479. package/lib/components/scrollbar/src/bar2.js.map +1 -1
  480. package/lib/components/scrollbar/src/scrollbar.js +1 -1
  481. package/lib/components/scrollbar/src/thumb.js +130 -11
  482. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  483. package/lib/components/scrollbar/src/thumb2.js +11 -130
  484. package/lib/components/scrollbar/src/thumb2.js.map +1 -1
  485. package/lib/components/select/src/select.js +1 -1
  486. package/lib/components/select-v2/src/defaults.js +1 -1
  487. package/lib/components/skeleton/index.js +2 -2
  488. package/lib/components/skeleton/src/skeleton.js +22 -49
  489. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  490. package/lib/components/skeleton/src/skeleton2.js +49 -22
  491. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  492. package/lib/components/slider/index.js +2 -2
  493. package/lib/components/slider/src/slider.js +92 -233
  494. package/lib/components/slider/src/slider.js.map +1 -1
  495. package/lib/components/slider/src/slider2.js +233 -92
  496. package/lib/components/slider/src/slider2.js.map +1 -1
  497. package/lib/components/steps/index.js +2 -2
  498. package/lib/components/steps/src/steps.js +39 -37
  499. package/lib/components/steps/src/steps.js.map +1 -1
  500. package/lib/components/steps/src/steps2.js +37 -39
  501. package/lib/components/steps/src/steps2.js.map +1 -1
  502. package/lib/components/tabs/index.js +1 -1
  503. package/lib/components/tabs/src/tab-bar.js +7 -75
  504. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  505. package/lib/components/tabs/src/tab-bar2.js +75 -7
  506. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  507. package/lib/components/tabs/src/tab-nav.js +1 -1
  508. package/lib/components/text/index.js +2 -2
  509. package/lib/components/text/src/text.js +24 -38
  510. package/lib/components/text/src/text.js.map +1 -1
  511. package/lib/components/text/src/text2.js +38 -24
  512. package/lib/components/text/src/text2.js.map +1 -1
  513. package/lib/components/time-select/index.js +1 -1
  514. package/lib/components/time-select/src/time-select.js +125 -48
  515. package/lib/components/time-select/src/time-select.js.map +1 -1
  516. package/lib/components/time-select/src/time-select2.js +48 -125
  517. package/lib/components/time-select/src/time-select2.js.map +1 -1
  518. package/lib/components/tooltip/index.js +2 -2
  519. package/lib/components/tooltip/src/content.js +177 -31
  520. package/lib/components/tooltip/src/content.js.map +1 -1
  521. package/lib/components/tooltip/src/content2.js +31 -177
  522. package/lib/components/tooltip/src/content2.js.map +1 -1
  523. package/lib/components/tooltip/src/tooltip.js +2 -2
  524. package/lib/components/tooltip/src/tooltip2.js +2 -2
  525. package/lib/components/tooltip/src/trigger.js +16 -73
  526. package/lib/components/tooltip/src/trigger.js.map +1 -1
  527. package/lib/components/tooltip/src/trigger2.js +73 -16
  528. package/lib/components/tooltip/src/trigger2.js.map +1 -1
  529. package/lib/components/tooltip-v2/index.js +3 -3
  530. package/lib/components/tooltip-v2/src/content.js +50 -112
  531. package/lib/components/tooltip-v2/src/content.js.map +1 -1
  532. package/lib/components/tooltip-v2/src/content2.js +112 -50
  533. package/lib/components/tooltip-v2/src/content2.js.map +1 -1
  534. package/lib/components/tooltip-v2/src/root.js +80 -17
  535. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  536. package/lib/components/tooltip-v2/src/root2.js +17 -80
  537. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  538. package/lib/components/tooltip-v2/src/tooltip.js +3 -3
  539. package/lib/components/tooltip-v2/src/tooltip2.js +6 -6
  540. package/lib/components/tooltip-v2/src/trigger.js +12 -89
  541. package/lib/components/tooltip-v2/src/trigger.js.map +1 -1
  542. package/lib/components/tooltip-v2/src/trigger2.js +89 -12
  543. package/lib/components/tooltip-v2/src/trigger2.js.map +1 -1
  544. package/lib/components/transfer/src/composables/use-check.js +1 -1
  545. package/lib/components/transfer/src/transfer-panel.js +128 -21
  546. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  547. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  548. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  549. package/lib/components/transfer/src/transfer2.js +1 -1
  550. package/lib/components/visual-hidden/index.js +2 -2
  551. package/lib/components/visual-hidden/src/visual-hidden.js +35 -7
  552. package/lib/components/visual-hidden/src/visual-hidden.js.map +1 -1
  553. package/lib/components/visual-hidden/src/visual-hidden2.js +7 -35
  554. package/lib/components/visual-hidden/src/visual-hidden2.js.map +1 -1
  555. package/lib/components/watermark/index.js +2 -2
  556. package/lib/components/watermark/src/watermark.js +28 -207
  557. package/lib/components/watermark/src/watermark.js.map +1 -1
  558. package/lib/components/watermark/src/watermark2.js +207 -28
  559. package/lib/components/watermark/src/watermark2.js.map +1 -1
  560. package/lib/index.js +36 -36
  561. package/package.json +1 -1
@@ -1,116 +1,53 @@
1
- import { defineComponent, ref, computed, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, createTextVNode, toDisplayString, createVNode, renderSlot } from 'vue';
2
- import { ElButton } from '../../button/index.mjs';
3
- import { ElIcon } from '../../icon/index.mjs';
4
- import { ElTooltip } from '../../tooltip/index.mjs';
5
- import '../../../hooks/index.mjs';
1
+ import { QuestionFilled } from '@element-plus/icons-vue';
2
+ import '../../button/index.mjs';
6
3
  import '../../../utils/index.mjs';
7
- import { popconfirmProps, popconfirmEmits } from './popconfirm.mjs';
8
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
- import { useLocale } from '../../../hooks/use-locale/index.mjs';
10
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
11
- import { addUnit } from '../../../utils/dom/style.mjs';
4
+ import '../../tooltip/index.mjs';
5
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
+ import { buttonTypes } from '../../button/src/button2.mjs';
7
+ import { iconPropType } from '../../../utils/vue/icon.mjs';
8
+ import { useTooltipContentProps } from '../../tooltip/src/content2.mjs';
12
9
 
13
- const __default__ = defineComponent({
14
- name: "ElPopconfirm"
15
- });
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- ...__default__,
18
- props: popconfirmProps,
19
- emits: popconfirmEmits,
20
- setup(__props, { emit }) {
21
- const props = __props;
22
- const { t } = useLocale();
23
- const ns = useNamespace("popconfirm");
24
- const tooltipRef = ref();
25
- const hidePopper = () => {
26
- var _a, _b;
27
- (_b = (_a = tooltipRef.value) == null ? void 0 : _a.onClose) == null ? void 0 : _b.call(_a);
28
- };
29
- const style = computed(() => {
30
- return {
31
- width: addUnit(props.width)
32
- };
33
- });
34
- const confirm = (e) => {
35
- emit("confirm", e);
36
- hidePopper();
37
- };
38
- const cancel = (e) => {
39
- emit("cancel", e);
40
- hidePopper();
41
- };
42
- const finalConfirmButtonText = computed(() => props.confirmButtonText || t("el.popconfirm.confirmButtonText"));
43
- const finalCancelButtonText = computed(() => props.cancelButtonText || t("el.popconfirm.cancelButtonText"));
44
- return (_ctx, _cache) => {
45
- return openBlock(), createBlock(unref(ElTooltip), mergeProps({
46
- ref_key: "tooltipRef",
47
- ref: tooltipRef,
48
- trigger: "click",
49
- effect: "light"
50
- }, _ctx.$attrs, {
51
- "popper-class": `${unref(ns).namespace.value}-popover`,
52
- "popper-style": unref(style),
53
- teleported: _ctx.teleported,
54
- "fallback-placements": ["bottom", "top", "right", "left"],
55
- "hide-after": _ctx.hideAfter,
56
- persistent: _ctx.persistent
57
- }), {
58
- content: withCtx(() => [
59
- createElementVNode("div", {
60
- class: normalizeClass(unref(ns).b())
61
- }, [
62
- createElementVNode("div", {
63
- class: normalizeClass(unref(ns).e("main"))
64
- }, [
65
- !_ctx.hideIcon && _ctx.icon ? (openBlock(), createBlock(unref(ElIcon), {
66
- key: 0,
67
- class: normalizeClass(unref(ns).e("icon")),
68
- style: normalizeStyle({ color: _ctx.iconColor })
69
- }, {
70
- default: withCtx(() => [
71
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon)))
72
- ]),
73
- _: 1
74
- }, 8, ["class", "style"])) : createCommentVNode("v-if", true),
75
- createTextVNode(" " + toDisplayString(_ctx.title), 1)
76
- ], 2),
77
- createElementVNode("div", {
78
- class: normalizeClass(unref(ns).e("action"))
79
- }, [
80
- createVNode(unref(ElButton), {
81
- size: "small",
82
- type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
83
- text: _ctx.cancelButtonType === "text",
84
- onClick: cancel
85
- }, {
86
- default: withCtx(() => [
87
- createTextVNode(toDisplayString(unref(finalCancelButtonText)), 1)
88
- ]),
89
- _: 1
90
- }, 8, ["type", "text"]),
91
- createVNode(unref(ElButton), {
92
- size: "small",
93
- type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
94
- text: _ctx.confirmButtonType === "text",
95
- onClick: confirm
96
- }, {
97
- default: withCtx(() => [
98
- createTextVNode(toDisplayString(unref(finalConfirmButtonText)), 1)
99
- ]),
100
- _: 1
101
- }, 8, ["type", "text"])
102
- ], 2)
103
- ], 2)
104
- ]),
105
- default: withCtx(() => [
106
- _ctx.$slots.reference ? renderSlot(_ctx.$slots, "reference", { key: 0 }) : createCommentVNode("v-if", true)
107
- ]),
108
- _: 3
109
- }, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
110
- };
10
+ const popconfirmProps = buildProps({
11
+ title: String,
12
+ confirmButtonText: String,
13
+ cancelButtonText: String,
14
+ confirmButtonType: {
15
+ type: String,
16
+ values: buttonTypes,
17
+ default: "primary"
18
+ },
19
+ cancelButtonType: {
20
+ type: String,
21
+ values: buttonTypes,
22
+ default: "text"
23
+ },
24
+ icon: {
25
+ type: iconPropType,
26
+ default: () => QuestionFilled
27
+ },
28
+ iconColor: {
29
+ type: String,
30
+ default: "#f90"
31
+ },
32
+ hideIcon: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ hideAfter: {
37
+ type: Number,
38
+ default: 200
39
+ },
40
+ teleported: useTooltipContentProps.teleported,
41
+ persistent: useTooltipContentProps.persistent,
42
+ width: {
43
+ type: [String, Number],
44
+ default: 150
111
45
  }
112
46
  });
113
- var Popconfirm = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\project\\work\\code-monkey-ui\\packages\\components\\popconfirm\\src\\popconfirm.vue"]]);
47
+ const popconfirmEmits = {
48
+ confirm: (e) => e instanceof MouseEvent,
49
+ cancel: (e) => e instanceof MouseEvent
50
+ };
114
51
 
115
- export { Popconfirm as default };
52
+ export { popconfirmEmits, popconfirmProps };
116
53
  //# sourceMappingURL=popconfirm2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"popconfirm2.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.vue"],"sourcesContent":["<template>\n <el-tooltip\n ref=\"tooltipRef\"\n trigger=\"click\"\n effect=\"light\"\n v-bind=\"$attrs\"\n :popper-class=\"`${ns.namespace.value}-popover`\"\n :popper-style=\"style\"\n :teleported=\"teleported\"\n :fallback-placements=\"['bottom', 'top', 'right', 'left']\"\n :hide-after=\"hideAfter\"\n :persistent=\"persistent\"\n >\n <template #content>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('main')\">\n <el-icon\n v-if=\"!hideIcon && icon\"\n :class=\"ns.e('icon')\"\n :style=\"{ color: iconColor }\"\n >\n <component :is=\"icon\" />\n </el-icon>\n {{ title }}\n </div>\n <div :class=\"ns.e('action')\">\n <el-button\n size=\"small\"\n :type=\"cancelButtonType === 'text' ? '' : cancelButtonType\"\n :text=\"cancelButtonType === 'text'\"\n @click=\"cancel\"\n >\n {{ finalCancelButtonText }}\n </el-button>\n <el-button\n size=\"small\"\n :type=\"confirmButtonType === 'text' ? '' : confirmButtonType\"\n :text=\"confirmButtonType === 'text'\"\n @click=\"confirm\"\n >\n {{ finalConfirmButtonText }}\n </el-button>\n </div>\n </div>\n </template>\n <template v-if=\"$slots.reference\">\n <slot name=\"reference\" />\n </template>\n </el-tooltip>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport ElButton from '@code-monkey-ui/components/button'\nimport ElIcon from '@code-monkey-ui/components/icon'\nimport ElTooltip from '@code-monkey-ui/components/tooltip'\nimport { useLocale, useNamespace } from '@code-monkey-ui/hooks'\nimport { addUnit } from '@code-monkey-ui/utils'\nimport { popconfirmEmits, popconfirmProps } from './popconfirm'\n\nimport type { TooltipInstance } from '@code-monkey-ui/components/tooltip'\n\ndefineOptions({\n name: 'ElPopconfirm',\n})\n\nconst props = defineProps(popconfirmProps)\nconst emit = defineEmits(popconfirmEmits)\n\nconst { t } = useLocale()\nconst ns = useNamespace('popconfirm')\nconst tooltipRef = ref<TooltipInstance>()\n\nconst hidePopper = () => {\n tooltipRef.value?.onClose?.()\n}\n\nconst style = computed(() => {\n return {\n width: addUnit(props.width),\n }\n})\n\nconst confirm = (e: MouseEvent) => {\n emit('confirm', e)\n hidePopper()\n}\nconst cancel = (e: MouseEvent) => {\n emit('cancel', e)\n hidePopper()\n}\n\nconst finalConfirmButtonText = computed(\n () => props.confirmButtonText || t('el.popconfirm.confirmButtonText')\n)\nconst finalCancelButtonText = computed(\n () => props.cancelButtonText || t('el.popconfirm.cancelButtonText')\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;mCA8Dc,CAAA;AAAA,EACZ,IAAM,EAAA,cAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,EAAE,MAAM,SAAU,EAAA,CAAA;AACxB,IAAM,MAAA,EAAA,GAAK,aAAa,YAAY,CAAA,CAAA;AACpC,IAAA,MAAM,aAAa,GAAqB,EAAA,CAAA;AAExC,IAAA,MAAM,aAAa,MAAM;AACvB,MAAA,IAAA,EAAA,EAAA,EAAA,CAAW;AAAiB,MAC9B,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,UAAA,CAAA,KAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA;AAEA,KAAM,CAAA;AACJ,IAAO,MAAA,KAAA,GAAA,QAAA,CAAA,MAAA;AAAA,MACL,OAAA;AAA0B,QAC5B,KAAA,EAAA,OAAA,CAAA,KAAA,CAAA,KAAA,CAAA;AAAA,OACD,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAA,MAAA,YAAgB,KAAC;AACjB,MAAW,IAAA,CAAA,SAAA,EAAA,CAAA,CAAA,CAAA;AAAA,MACb,UAAA,EAAA,CAAA;AACA,KAAM,CAAA;AACJ,IAAA,MAAA,WAAe,KAAC;AAChB,MAAW,IAAA,CAAA,QAAA,EAAA,CAAA,CAAA,CAAA;AAAA,MACb,UAAA,EAAA,CAAA;AAEA,KAAA,CAAA;AAGA,IAAA,MAAM,yBACJ,QAAA,CAAA,WAAY,CAAoB,iBAAA,IAAE,mCACpC,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"popconfirm2.mjs","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { QuestionFilled } from '@element-plus/icons-vue'\nimport { buttonTypes } from '@code-monkey-ui/components/button'\nimport { buildProps, iconPropType } from '@code-monkey-ui/utils'\nimport { useTooltipContentProps } from '@code-monkey-ui/components/tooltip'\nimport type { ExtractPropTypes } from 'vue'\nimport type Popconfirm from './popconfirm.vue'\n\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: {\n type: Boolean,\n default: false,\n },\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\nexport type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm>\n"],"names":[],"mappings":";;;;;;;;;AAIY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,iBAAiB,EAAE,MAAM;AAC3B,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,iBAAiB,EAAE;AACrB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,SAAS;AACtB,GAAG;AACH,EAAE,gBAAgB,EAAE;AACpB,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,YAAY;AACtB,IAAI,OAAO,EAAE,MAAM,cAAc;AACjC,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,UAAU,EAAE,sBAAsB,CAAC,UAAU;AAC/C,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,GAAG;AAChB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACzC,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,UAAU;AACxC;;;;"}
@@ -2,9 +2,9 @@ import '../../../utils/index.mjs';
2
2
  import '../../tooltip/index.mjs';
3
3
  import '../../dropdown/index.mjs';
4
4
  import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
- import { useTooltipTriggerProps } from '../../tooltip/src/trigger2.mjs';
5
+ import { useTooltipTriggerProps } from '../../tooltip/src/trigger.mjs';
6
6
  import { dropdownProps } from '../../dropdown/src/dropdown2.mjs';
7
- import { useTooltipContentProps } from '../../tooltip/src/content.mjs';
7
+ import { useTooltipContentProps } from '../../tooltip/src/content2.mjs';
8
8
  import { isBoolean } from '../../../utils/types.mjs';
9
9
 
10
10
  const popoverProps = buildProps({
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import Result from './src/result.mjs';
3
- export { IconComponentMap, IconMap, resultProps } from './src/result2.mjs';
2
+ import Result from './src/result2.mjs';
3
+ export { IconComponentMap, IconMap, resultProps } from './src/result.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const ElResult = withInstall(Result);
@@ -1,68 +1,34 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
2
- import '../../../hooks/index.mjs';
3
- import { resultProps, IconMap, IconComponentMap } from './result2.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
1
+ import { CircleCheckFilled, WarningFilled, CircleCloseFilled, InfoFilled } from '@element-plus/icons-vue';
2
+ import '../../../utils/index.mjs';
3
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
6
4
 
7
- const __default__ = defineComponent({
8
- name: "ElResult"
9
- });
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- ...__default__,
12
- props: resultProps,
13
- setup(__props) {
14
- const props = __props;
15
- const ns = useNamespace("result");
16
- const resultIcon = computed(() => {
17
- const icon = props.icon;
18
- const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
19
- const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
20
- return {
21
- class: iconClass,
22
- component: iconComponent
23
- };
24
- });
25
- return (_ctx, _cache) => {
26
- return openBlock(), createElementBlock("div", {
27
- class: normalizeClass(unref(ns).b())
28
- }, [
29
- createElementVNode("div", {
30
- class: normalizeClass(unref(ns).e("icon"))
31
- }, [
32
- renderSlot(_ctx.$slots, "icon", {}, () => [
33
- unref(resultIcon).component ? (openBlock(), createBlock(resolveDynamicComponent(unref(resultIcon).component), {
34
- key: 0,
35
- class: normalizeClass(unref(resultIcon).class)
36
- }, null, 8, ["class"])) : createCommentVNode("v-if", true)
37
- ])
38
- ], 2),
39
- _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
40
- key: 0,
41
- class: normalizeClass(unref(ns).e("title"))
42
- }, [
43
- renderSlot(_ctx.$slots, "title", {}, () => [
44
- createElementVNode("p", null, toDisplayString(_ctx.title), 1)
45
- ])
46
- ], 2)) : createCommentVNode("v-if", true),
47
- _ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock("div", {
48
- key: 1,
49
- class: normalizeClass(unref(ns).e("subtitle"))
50
- }, [
51
- renderSlot(_ctx.$slots, "sub-title", {}, () => [
52
- createElementVNode("p", null, toDisplayString(_ctx.subTitle), 1)
53
- ])
54
- ], 2)) : createCommentVNode("v-if", true),
55
- _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
56
- key: 2,
57
- class: normalizeClass(unref(ns).e("extra"))
58
- }, [
59
- renderSlot(_ctx.$slots, "extra")
60
- ], 2)) : createCommentVNode("v-if", true)
61
- ], 2);
62
- };
5
+ const IconMap = {
6
+ success: "icon-success",
7
+ warning: "icon-warning",
8
+ error: "icon-error",
9
+ info: "icon-info"
10
+ };
11
+ const IconComponentMap = {
12
+ [IconMap.success]: CircleCheckFilled,
13
+ [IconMap.warning]: WarningFilled,
14
+ [IconMap.error]: CircleCloseFilled,
15
+ [IconMap.info]: InfoFilled
16
+ };
17
+ const resultProps = buildProps({
18
+ title: {
19
+ type: String,
20
+ default: ""
21
+ },
22
+ subTitle: {
23
+ type: String,
24
+ default: ""
25
+ },
26
+ icon: {
27
+ type: String,
28
+ values: ["success", "warning", "info", "error"],
29
+ default: "info"
63
30
  }
64
31
  });
65
- var Result = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\project\\work\\code-monkey-ui\\packages\\components\\result\\src\\result.vue"]]);
66
32
 
67
- export { Result as default };
33
+ export { IconComponentMap, IconMap, resultProps };
68
34
  //# sourceMappingURL=result.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots['sub-title']\" :class=\"ns.e('subtitle')\">\n <slot name=\"sub-title\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@code-monkey-ui/hooks'\nimport { IconComponentMap, IconMap, resultProps } from './result'\n\ndefineOptions({\n name: 'ElResult',\n})\n\nconst props = defineProps(resultProps)\n\nconst ns = useNamespace('result')\n\nconst resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,MAAM,SAAY,GAAA,IAAA,IAAQ,OAAQ,CAAA,IAAA,CAAA,GAAQ,QAAQ,IAAQ,CAAA,GAAA,WAAA,CAAA;AAC1D,MAAM,MAAA,aAAA,GACJ,gBAAiB,CAAA,SAAA,CAAA,IAAc,gBAAiB,CAAA,WAAA,CAAA,CAAA;AAElD,MAAO,OAAA;AAAA,QACL,KAAO,EAAA,SAAA;AAAA,QACP,SAAW,EAAA,aAAA;AAAA,OACb,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"result.mjs","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\nimport { buildProps } from '@code-monkey-ui/utils'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result>\n"],"names":[],"mappings":";;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,iBAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,aAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,iBAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,UAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,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,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
@@ -1,34 +1,68 @@
1
- import { CircleCheckFilled, WarningFilled, CircleCloseFilled, InfoFilled } from '@element-plus/icons-vue';
2
- import '../../../utils/index.mjs';
3
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
2
+ import '../../../hooks/index.mjs';
3
+ import { resultProps, IconMap, IconComponentMap } from './result.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
4
6
 
5
- const IconMap = {
6
- success: "icon-success",
7
- warning: "icon-warning",
8
- error: "icon-error",
9
- info: "icon-info"
10
- };
11
- const IconComponentMap = {
12
- [IconMap.success]: CircleCheckFilled,
13
- [IconMap.warning]: WarningFilled,
14
- [IconMap.error]: CircleCloseFilled,
15
- [IconMap.info]: InfoFilled
16
- };
17
- const resultProps = buildProps({
18
- title: {
19
- type: String,
20
- default: ""
21
- },
22
- subTitle: {
23
- type: String,
24
- default: ""
25
- },
26
- icon: {
27
- type: String,
28
- values: ["success", "warning", "info", "error"],
29
- default: "info"
7
+ const __default__ = defineComponent({
8
+ name: "ElResult"
9
+ });
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ ...__default__,
12
+ props: resultProps,
13
+ setup(__props) {
14
+ const props = __props;
15
+ const ns = useNamespace("result");
16
+ const resultIcon = computed(() => {
17
+ const icon = props.icon;
18
+ const iconClass = icon && IconMap[icon] ? IconMap[icon] : "icon-info";
19
+ const iconComponent = IconComponentMap[iconClass] || IconComponentMap["icon-info"];
20
+ return {
21
+ class: iconClass,
22
+ component: iconComponent
23
+ };
24
+ });
25
+ return (_ctx, _cache) => {
26
+ return openBlock(), createElementBlock("div", {
27
+ class: normalizeClass(unref(ns).b())
28
+ }, [
29
+ createElementVNode("div", {
30
+ class: normalizeClass(unref(ns).e("icon"))
31
+ }, [
32
+ renderSlot(_ctx.$slots, "icon", {}, () => [
33
+ unref(resultIcon).component ? (openBlock(), createBlock(resolveDynamicComponent(unref(resultIcon).component), {
34
+ key: 0,
35
+ class: normalizeClass(unref(resultIcon).class)
36
+ }, null, 8, ["class"])) : createCommentVNode("v-if", true)
37
+ ])
38
+ ], 2),
39
+ _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
40
+ key: 0,
41
+ class: normalizeClass(unref(ns).e("title"))
42
+ }, [
43
+ renderSlot(_ctx.$slots, "title", {}, () => [
44
+ createElementVNode("p", null, toDisplayString(_ctx.title), 1)
45
+ ])
46
+ ], 2)) : createCommentVNode("v-if", true),
47
+ _ctx.subTitle || _ctx.$slots["sub-title"] ? (openBlock(), createElementBlock("div", {
48
+ key: 1,
49
+ class: normalizeClass(unref(ns).e("subtitle"))
50
+ }, [
51
+ renderSlot(_ctx.$slots, "sub-title", {}, () => [
52
+ createElementVNode("p", null, toDisplayString(_ctx.subTitle), 1)
53
+ ])
54
+ ], 2)) : createCommentVNode("v-if", true),
55
+ _ctx.$slots.extra ? (openBlock(), createElementBlock("div", {
56
+ key: 2,
57
+ class: normalizeClass(unref(ns).e("extra"))
58
+ }, [
59
+ renderSlot(_ctx.$slots, "extra")
60
+ ], 2)) : createCommentVNode("v-if", true)
61
+ ], 2);
62
+ };
30
63
  }
31
64
  });
65
+ var Result = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\project\\work\\code-monkey-ui\\packages\\components\\result\\src\\result.vue"]]);
32
66
 
33
- export { IconComponentMap, IconMap, resultProps };
67
+ export { Result as default };
34
68
  //# sourceMappingURL=result2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"result2.mjs","sources":["../../../../../../packages/components/result/src/result.ts"],"sourcesContent":["import {\n CircleCheckFilled,\n CircleCloseFilled,\n InfoFilled,\n WarningFilled,\n} from '@element-plus/icons-vue'\nimport { buildProps } from '@code-monkey-ui/utils'\nimport type { Component, ExtractPropTypes } from 'vue'\nimport type Result from './result.vue'\n\nexport const IconMap = {\n success: 'icon-success',\n warning: 'icon-warning',\n error: 'icon-error',\n info: 'icon-info',\n} as const\n\nexport const IconComponentMap: Record<\n typeof IconMap[keyof typeof IconMap],\n Component\n> = {\n [IconMap.success]: CircleCheckFilled,\n [IconMap.warning]: WarningFilled,\n [IconMap.error]: CircleCloseFilled,\n [IconMap.info]: InfoFilled,\n}\n\nexport const resultProps = buildProps({\n /**\n * @description title of result\n */\n title: {\n type: String,\n default: '',\n },\n /**\n * @description sub title of result\n */\n subTitle: {\n type: String,\n default: '',\n },\n /**\n * @description icon type of result\n */\n icon: {\n type: String,\n values: ['success', 'warning', 'info', 'error'],\n default: 'info',\n },\n} as const)\n\nexport type ResultProps = ExtractPropTypes<typeof resultProps>\n\nexport type ResultInstance = InstanceType<typeof Result>\n"],"names":[],"mappings":";;;;AAOY,MAAC,OAAO,GAAG;AACvB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,OAAO,EAAE,cAAc;AACzB,EAAE,KAAK,EAAE,YAAY;AACrB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE;AACU,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,iBAAiB;AACtC,EAAE,CAAC,OAAO,CAAC,OAAO,GAAG,aAAa;AAClC,EAAE,CAAC,OAAO,CAAC,KAAK,GAAG,iBAAiB;AACpC,EAAE,CAAC,OAAO,CAAC,IAAI,GAAG,UAAU;AAC5B,EAAE;AACU,MAAC,WAAW,GAAG,UAAU,CAAC;AACtC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,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,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;AACnD,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,CAAC;;;;"}
1
+ {"version":3,"file":"result2.mjs","sources":["../../../../../../packages/components/result/src/result.vue"],"sourcesContent":["<template>\n <div :class=\"ns.b()\">\n <div :class=\"ns.e('icon')\">\n <slot name=\"icon\">\n <component\n :is=\"resultIcon.component\"\n v-if=\"resultIcon.component\"\n :class=\"resultIcon.class\"\n />\n </slot>\n </div>\n <div v-if=\"title || $slots.title\" :class=\"ns.e('title')\">\n <slot name=\"title\">\n <p>{{ title }}</p>\n </slot>\n </div>\n <div v-if=\"subTitle || $slots['sub-title']\" :class=\"ns.e('subtitle')\">\n <slot name=\"sub-title\">\n <p>{{ subTitle }}</p>\n </slot>\n </div>\n <div v-if=\"$slots.extra\" :class=\"ns.e('extra')\">\n <slot name=\"extra\" />\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { computed } from 'vue'\nimport { useNamespace } from '@code-monkey-ui/hooks'\nimport { IconComponentMap, IconMap, resultProps } from './result'\n\ndefineOptions({\n name: 'ElResult',\n})\n\nconst props = defineProps(resultProps)\n\nconst ns = useNamespace('result')\n\nconst resultIcon = computed(() => {\n const icon = props.icon\n const iconClass = icon && IconMap[icon] ? IconMap[icon] : 'icon-info'\n const iconComponent =\n IconComponentMap[iconClass] || IconComponentMap['icon-info']\n\n return {\n class: iconClass,\n component: iconComponent,\n }\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAM,MAAA,EAAA,GAAK,aAAa,QAAQ,CAAA,CAAA;AAEhC,IAAM,MAAA,UAAA,GAAa,SAAS,MAAM;AAChC,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,MAAM,SAAY,GAAA,IAAA,IAAQ,OAAQ,CAAA,IAAA,CAAA,GAAQ,QAAQ,IAAQ,CAAA,GAAA,WAAA,CAAA;AAC1D,MAAM,MAAA,aAAA,GACJ,gBAAiB,CAAA,SAAA,CAAA,IAAc,gBAAiB,CAAA,WAAA,CAAA,CAAA;AAElD,MAAO,OAAA;AAAA,QACL,KAAO,EAAA,SAAA;AAAA,QACP,SAAW,EAAA,aAAA;AAAA,OACb,CAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
- import ElRovingFocusGroup from './src/roving-focus-group.mjs';
2
- export { default as ElRovingFocusGroup, default } from './src/roving-focus-group.mjs';
1
+ import ElRovingFocusGroup from './src/roving-focus-group2.mjs';
2
+ export { default as ElRovingFocusGroup, default } from './src/roving-focus-group2.mjs';
3
3
  export { default as ElRovingFocusItem } from './src/roving-focus-item.mjs';
4
4
  export { ROVING_FOCUS_GROUP_INJECTION_KEY, ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY } from './src/tokens.mjs';
5
5
  export { focusFirst, getFocusIntent, reorderArray } from './src/utils.mjs';
6
- export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group2.mjs';
6
+ export { ROVING_FOCUS_COLLECTION_INJECTION_KEY, ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY } from './src/roving-focus-group.mjs';
7
7
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, inject, computed, unref, provide, readonly, toRef, watch, renderSlot } from 'vue';
2
2
  import { useEventListener } from '@vueuse/core';
3
3
  import '../../../utils/index.mjs';
4
- import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group2.mjs';
4
+ import { rovingFocusGroupProps, ROVING_FOCUS_COLLECTION_INJECTION_KEY as COLLECTION_INJECTION_KEY } from './roving-focus-group.mjs';
5
5
  import { ROVING_FOCUS_GROUP_INJECTION_KEY } from './tokens.mjs';
6
6
  import { focusFirst } from './utils.mjs';
7
7
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
@@ -1,31 +1,33 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
- import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
- import { ElCollection } from './roving-focus-group2.mjs';
4
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
1
+ import '../../../utils/index.mjs';
2
+ import '../../collection/index.mjs';
3
+ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
+ import { createCollectionWithScope } from '../../collection/src/collection2.mjs';
5
5
 
6
- const _sfc_main = defineComponent({
7
- name: "ElRovingFocusGroup",
8
- components: {
9
- ElFocusGroupCollection: ElCollection,
10
- ElRovingFocusGroupImpl
11
- }
6
+ const rovingFocusGroupProps = buildProps({
7
+ style: { type: definePropType([String, Array, Object]) },
8
+ currentTabId: {
9
+ type: definePropType(String)
10
+ },
11
+ defaultCurrentTabId: String,
12
+ loop: Boolean,
13
+ dir: {
14
+ type: String,
15
+ values: ["ltr", "rtl"],
16
+ default: "ltr"
17
+ },
18
+ orientation: {
19
+ type: definePropType(String)
20
+ },
21
+ onBlur: Function,
22
+ onFocus: Function,
23
+ onMousedown: Function
12
24
  });
13
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
- const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
- const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
- return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
- default: withCtx(() => [
18
- createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
- default: withCtx(() => [
20
- renderSlot(_ctx.$slots, "default")
21
- ]),
22
- _: 3
23
- }, 16)
24
- ]),
25
- _: 3
26
- });
27
- }
28
- var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\work\\code-monkey-ui\\packages\\components\\roving-focus-group\\src\\roving-focus-group.vue"]]);
25
+ const {
26
+ ElCollection,
27
+ ElCollectionItem,
28
+ COLLECTION_INJECTION_KEY,
29
+ COLLECTION_ITEM_INJECTION_KEY
30
+ } = createCollectionWithScope("RovingFocusGroup");
29
31
 
30
- export { ElRovingFocusGroup as default };
32
+ export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
31
33
  //# sourceMappingURL=roving-focus-group.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.vue"],"sourcesContent":["<template>\n <el-focus-group-collection>\n <el-roving-focus-group-impl v-bind=\"$attrs\">\n <slot />\n </el-roving-focus-group-impl>\n </el-focus-group-collection>\n</template>\n\n<script lang=\"ts\">\nimport { defineComponent } from 'vue'\nimport ElRovingFocusGroupImpl from './roving-focus-group-impl.vue'\nimport { ElCollection as ElFocusGroupCollection } from './roving-focus-group'\n\nexport default defineComponent({\n name: 'ElRovingFocusGroup',\n components: {\n ElFocusGroupCollection,\n ElRovingFocusGroupImpl,\n },\n})\n</script>\n"],"names":["ElFocusGroupCollection","_createBlock","_withCtx","_createVNode","_renderSlot"],"mappings":";;;;;AAaA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,oBAAA;AAAA,EACN,UAAY,EAAA;AAAA,4BACVA,YAAA;AAAA,IACA,sBAAA;AAAA,GACF;AACF,CAAC,CAAA,CAAA;;;;sBAlBCC,WAI4B,CAAA,oCAAA,EAAA,IAAA,EAAA;AAAA,IAAA,OAAA,EAAAC,OAAA,CAH1B,MAE6B;AAAA,MAF7BC,WAAA,CAE6B,yEAFO,IAAM,CAAA,MAAA,CAAA,CAAA,EAAA;AAAA,QAAA,OAAA,EAAAD,OAAA,CACxC,MAAQ;AAAA,UAARE,UAAQ,CAAA,IAAA,CAAA,MAAA,EAAA,SAAA,CAAA;AAAA,SAAA,CAAA;;;;;;;;;;;"}
1
+ {"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@code-monkey-ui/utils'\nimport { createCollectionWithScope } from '@code-monkey-ui/components/collection'\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\n\nexport const rovingFocusGroupProps = buildProps({\n style: { type: definePropType<StyleValue>([String, Array, Object]) },\n currentTabId: {\n type: definePropType<string | null>(String),\n },\n defaultCurrentTabId: String,\n loop: Boolean,\n dir: {\n type: String, // left for direction support\n values: ['ltr', 'rtl'],\n default: 'ltr',\n },\n orientation: {\n // left for orientation support\n type: definePropType<HTMLAttributes['aria-orientation']>(String),\n },\n\n onBlur: Function,\n onFocus: Function,\n onMousedown: Function,\n})\n\nexport type ElRovingFocusGroupProps = ExtractPropTypes<\n typeof rovingFocusGroupProps\n>\n\nconst {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY,\n} = createCollectionWithScope('RovingFocusGroup')\n\nexport {\n ElCollection,\n ElCollectionItem,\n COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n}\n"],"names":[],"mappings":";;;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}
@@ -1,33 +1,31 @@
1
- import '../../../utils/index.mjs';
2
- import '../../collection/index.mjs';
3
- import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
4
- import { createCollectionWithScope } from '../../collection/src/collection.mjs';
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeProps, guardReactiveProps, renderSlot } from 'vue';
2
+ import ElRovingFocusGroupImpl from './roving-focus-group-impl.mjs';
3
+ import { ElCollection } from './roving-focus-group.mjs';
4
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
5
 
6
- const rovingFocusGroupProps = buildProps({
7
- style: { type: definePropType([String, Array, Object]) },
8
- currentTabId: {
9
- type: definePropType(String)
10
- },
11
- defaultCurrentTabId: String,
12
- loop: Boolean,
13
- dir: {
14
- type: String,
15
- values: ["ltr", "rtl"],
16
- default: "ltr"
17
- },
18
- orientation: {
19
- type: definePropType(String)
20
- },
21
- onBlur: Function,
22
- onFocus: Function,
23
- onMousedown: Function
6
+ const _sfc_main = defineComponent({
7
+ name: "ElRovingFocusGroup",
8
+ components: {
9
+ ElFocusGroupCollection: ElCollection,
10
+ ElRovingFocusGroupImpl
11
+ }
24
12
  });
25
- const {
26
- ElCollection,
27
- ElCollectionItem,
28
- COLLECTION_INJECTION_KEY,
29
- COLLECTION_ITEM_INJECTION_KEY
30
- } = createCollectionWithScope("RovingFocusGroup");
13
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
14
+ const _component_el_roving_focus_group_impl = resolveComponent("el-roving-focus-group-impl");
15
+ const _component_el_focus_group_collection = resolveComponent("el-focus-group-collection");
16
+ return openBlock(), createBlock(_component_el_focus_group_collection, null, {
17
+ default: withCtx(() => [
18
+ createVNode(_component_el_roving_focus_group_impl, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
19
+ default: withCtx(() => [
20
+ renderSlot(_ctx.$slots, "default")
21
+ ]),
22
+ _: 3
23
+ }, 16)
24
+ ]),
25
+ _: 3
26
+ });
27
+ }
28
+ var ElRovingFocusGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "D:\\project\\work\\code-monkey-ui\\packages\\components\\roving-focus-group\\src\\roving-focus-group.vue"]]);
31
29
 
32
- export { ElCollection, ElCollectionItem, COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY, COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, rovingFocusGroupProps };
30
+ export { ElRovingFocusGroup as default };
33
31
  //# sourceMappingURL=roving-focus-group2.mjs.map