ep-craft 0.1.36 → 0.1.38

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 (356) hide show
  1. package/dist/components/avatar/EpAvatar.vue.d.ts +20 -0
  2. package/dist/components/avatar/EpAvatar.vue.js +72 -0
  3. package/dist/components/avatar/EpAvatar2.vue.js +4 -0
  4. package/dist/components/avatar/avatar.d.ts +68 -0
  5. package/dist/components/avatar/avatar.js +59 -0
  6. package/dist/components/avatar/constants.d.ts +7 -0
  7. package/dist/components/avatar/constants.js +6 -0
  8. package/dist/components/avatar/index.d.ts +13 -2
  9. package/dist/components/avatar/index.js +8 -3
  10. package/dist/components/avatar/instance.d.ts +2 -0
  11. package/dist/components/badge/EpBadge.vue.d.ts +28 -0
  12. package/dist/components/badge/EpBadge.vue.js +75 -0
  13. package/dist/components/badge/EpBadge2.vue.js +4 -0
  14. package/dist/components/badge/badge.d.ts +67 -0
  15. package/dist/components/badge/badge.js +69 -0
  16. package/dist/components/badge/index.d.ts +11 -2
  17. package/dist/components/badge/index.js +9 -4
  18. package/dist/components/badge/instance.d.ts +2 -0
  19. package/dist/components/calendar/EpCalendar.vue.d.ts +50 -0
  20. package/dist/components/calendar/EpCalendar.vue.js +154 -0
  21. package/dist/components/calendar/EpCalendar2.vue.js +4 -0
  22. package/dist/components/calendar/EpDateTable.vue.d.ts +27 -0
  23. package/dist/components/calendar/EpDateTable.vue.js +89 -0
  24. package/dist/components/calendar/EpDateTable2.vue.js +4 -0
  25. package/dist/components/calendar/EpSelectController.vue.d.ts +8 -0
  26. package/dist/components/calendar/EpSelectController.vue.js +88 -0
  27. package/dist/components/calendar/EpSelectController2.vue.js +4 -0
  28. package/dist/components/calendar/calendar.d.ts +54 -0
  29. package/dist/components/calendar/calendar.js +45 -0
  30. package/dist/components/calendar/date-table.d.ts +53 -0
  31. package/dist/components/calendar/date-table.js +41 -0
  32. package/dist/components/calendar/index.d.ts +13 -2
  33. package/dist/components/calendar/index.js +9 -4
  34. package/dist/components/calendar/instance.d.ts +5 -0
  35. package/dist/components/calendar/select-controller.d.ts +31 -0
  36. package/dist/components/calendar/select-controller.js +21 -0
  37. package/dist/components/calendar/use-calendar.d.ts +13 -0
  38. package/dist/components/calendar/use-calendar.js +84 -0
  39. package/dist/components/calendar/use-date-table.d.ts +18 -0
  40. package/dist/components/calendar/use-date-table.js +99 -0
  41. package/dist/components/card/EpCard.vue.d.ts +22 -0
  42. package/dist/components/card/EpCard.vue.js +64 -0
  43. package/dist/components/card/EpCard2.vue.js +4 -0
  44. package/dist/components/card/card.d.ts +51 -0
  45. package/dist/components/card/card.js +49 -0
  46. package/dist/components/card/index.d.ts +11 -2
  47. package/dist/components/card/index.js +5 -4
  48. package/dist/components/card/instance.d.ts +2 -0
  49. package/dist/components/carousel/EpCarousel.vue.d.ts +1 -1
  50. package/dist/components/cascader/EpCascader.vue.d.ts +4 -4
  51. package/dist/components/config-provider/index.js +5 -4
  52. package/dist/components/config-provider/src/config-provider-props.d.ts +3 -6
  53. package/dist/components/config-provider/src/config-provider-props.js +1 -1
  54. package/dist/components/config-provider/src/hooks/use-global-config.js +75 -47
  55. package/dist/components/countdown/EpCountdown.vue.d.ts +28 -0
  56. package/dist/components/countdown/EpCountdown.vue.js +71 -0
  57. package/dist/components/countdown/EpCountdown2.vue.js +4 -0
  58. package/dist/components/countdown/countdown.d.ts +48 -0
  59. package/dist/components/countdown/countdown.js +50 -0
  60. package/dist/components/countdown/index.d.ts +11 -2
  61. package/dist/components/countdown/index.js +9 -4
  62. package/dist/components/countdown/instance.d.ts +2 -0
  63. package/dist/components/countdown/utils.d.ts +3 -0
  64. package/dist/components/countdown/utils.js +40 -0
  65. package/dist/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  66. package/dist/components/date-picker-panel/src/date-picker-panel.d.ts +1 -1
  67. package/dist/components/dialog/EpDialog.vue.d.ts +61 -0
  68. package/dist/components/dialog/EpDialog.vue.js +214 -0
  69. package/dist/components/dialog/EpDialog2.vue.js +4 -0
  70. package/dist/components/dialog/EpDialogContent.vue.d.ts +31 -0
  71. package/dist/components/dialog/EpDialogContent.vue.js +108 -0
  72. package/dist/components/dialog/EpDialogContent2.vue.js +4 -0
  73. package/dist/components/dialog/constants.d.ts +12 -0
  74. package/dist/components/dialog/constants.js +5 -0
  75. package/dist/components/dialog/dialog-content.d.ts +84 -0
  76. package/dist/components/dialog/dialog-content.js +90 -0
  77. package/dist/components/dialog/dialog.d.ts +173 -0
  78. package/dist/components/dialog/dialog.js +156 -0
  79. package/dist/components/dialog/index.d.ts +20 -2
  80. package/dist/components/dialog/index.js +24 -4
  81. package/dist/components/dialog/instance.d.ts +2 -0
  82. package/dist/components/dialog/use-dialog.d.ts +35 -0
  83. package/dist/components/dialog/use-dialog.js +176 -0
  84. package/dist/components/drawer/EpDrawer.vue.d.ts +67 -0
  85. package/dist/components/drawer/EpDrawer.vue.js +234 -0
  86. package/dist/components/drawer/EpDrawer2.vue.js +4 -0
  87. package/dist/components/drawer/drawer.d.ts +105 -0
  88. package/dist/components/drawer/drawer.js +42 -0
  89. package/dist/components/drawer/index.d.ts +14 -2
  90. package/dist/components/drawer/index.js +9 -4
  91. package/dist/components/drawer/instance.d.ts +2 -0
  92. package/dist/components/drawer/useResizable.d.ts +7 -0
  93. package/dist/components/drawer/useResizable.js +50 -0
  94. package/dist/components/empty/EpEmpty.vue.d.ts +20 -0
  95. package/dist/components/empty/EpEmpty.vue.js +62 -0
  96. package/dist/components/empty/EpEmpty2.vue.js +4 -0
  97. package/dist/components/empty/empty.d.ts +27 -0
  98. package/dist/components/empty/empty.js +26 -0
  99. package/dist/components/empty/img-empty.vue.d.ts +2 -0
  100. package/dist/components/empty/img-empty.vue.js +141 -0
  101. package/dist/components/empty/img-empty2.vue.js +4 -0
  102. package/dist/components/empty/index.d.ts +11 -2
  103. package/dist/components/empty/index.js +9 -4
  104. package/dist/components/empty/instance.d.ts +2 -0
  105. package/dist/components/form/index.js +11 -9
  106. package/dist/components/form/src/form-item.js +5 -5
  107. package/dist/components/form/src/form.js +5 -6
  108. package/dist/components/form-item/index.js +6 -5
  109. package/dist/components/infinite-scroll/index.d.ts +26 -0
  110. package/dist/components/infinite-scroll/index.js +15 -0
  111. package/dist/components/infinite-scroll/src/index.d.ts +20 -0
  112. package/dist/components/infinite-scroll/src/index.js +109 -0
  113. package/dist/components/link/EpLink.vue.d.ts +24 -0
  114. package/dist/components/link/EpLink.vue.js +86 -0
  115. package/dist/components/link/EpLink2.vue.js +4 -0
  116. package/dist/components/link/index.d.ts +11 -2
  117. package/dist/components/link/index.js +5 -3
  118. package/dist/components/link/instance.d.ts +2 -0
  119. package/dist/components/link/link.d.ts +56 -0
  120. package/dist/components/link/link.js +51 -0
  121. package/dist/components/loading/index.d.ts +15 -0
  122. package/dist/components/loading/index.js +13 -0
  123. package/dist/components/loading/src/directive.d.ts +13 -0
  124. package/dist/components/loading/src/directive.js +62 -0
  125. package/dist/components/loading/src/loading.d.ts +34 -0
  126. package/dist/components/loading/src/loading.js +121 -0
  127. package/dist/components/loading/src/service.d.ts +8 -0
  128. package/dist/components/loading/src/service.js +67 -0
  129. package/dist/components/loading/src/types.d.ts +47 -0
  130. package/dist/components/message/index.d.ts +3 -0
  131. package/dist/components/message/index.js +18 -0
  132. package/dist/components/message/src/instance.d.ts +18 -0
  133. package/dist/components/message/src/instance.js +18 -0
  134. package/dist/components/message/src/message.d.ts +175 -0
  135. package/dist/components/message/src/message.js +160 -0
  136. package/dist/components/message/src/message.vue.d.ts +38 -0
  137. package/dist/components/message/src/message.vue.js +156 -0
  138. package/dist/components/message/src/message2.vue.js +4 -0
  139. package/dist/components/message/src/method.d.ts +5 -0
  140. package/dist/components/message/src/method.js +123 -0
  141. package/dist/components/message-box/index.d.ts +6 -0
  142. package/dist/components/message-box/index.js +9 -0
  143. package/dist/components/message-box/src/index.vue.d.ts +5517 -0
  144. package/dist/components/message-box/src/index.vue.js +203 -0
  145. package/dist/components/message-box/src/index2.vue.js +237 -0
  146. package/dist/components/message-box/src/message-box.type.d.ts +167 -0
  147. package/dist/components/message-box/src/messageBox.d.ts +3 -0
  148. package/dist/components/message-box/src/messageBox.js +102 -0
  149. package/dist/components/notification/index.d.ts +3 -0
  150. package/dist/components/notification/index.js +15 -0
  151. package/dist/components/notification/src/notification.d.ts +157 -0
  152. package/dist/components/notification/src/notification.js +127 -0
  153. package/dist/components/notification/src/notification.vue.d.ts +34 -0
  154. package/dist/components/notification/src/notification.vue.js +146 -0
  155. package/dist/components/notification/src/notification2.vue.js +4 -0
  156. package/dist/components/notification/src/notify.d.ts +15 -0
  157. package/dist/components/notification/src/notify.js +100 -0
  158. package/dist/components/option/index.js +3 -3
  159. package/dist/components/overlay/index.d.ts +8 -0
  160. package/dist/components/overlay/overlay.d.ts +73 -0
  161. package/dist/components/overlay/overlay.js +80 -0
  162. package/dist/components/page-header/EpPageHeader.vue.d.ts +30 -0
  163. package/dist/components/page-header/EpPageHeader.vue.js +109 -0
  164. package/dist/components/page-header/EpPageHeader2.vue.js +4 -0
  165. package/dist/components/page-header/index.d.ts +13 -2
  166. package/dist/components/page-header/index.js +9 -4
  167. package/dist/components/page-header/instance.d.ts +2 -0
  168. package/dist/components/page-header/page-header.d.ts +26 -0
  169. package/dist/components/page-header/page-header.js +33 -0
  170. package/dist/components/popconfirm/EpPopconfirm.vue.d.ts +36 -0
  171. package/dist/components/popconfirm/EpPopconfirm.vue.js +146 -0
  172. package/dist/components/popconfirm/EpPopconfirm2.vue.js +4 -0
  173. package/dist/components/popconfirm/index.d.ts +14 -2
  174. package/dist/components/popconfirm/index.js +9 -4
  175. package/dist/components/popconfirm/instance.d.ts +2 -0
  176. package/dist/components/popconfirm/popconfirm.d.ts +106 -0
  177. package/dist/components/popconfirm/popconfirm.js +103 -0
  178. package/dist/components/progress/src/progress.vue.d.ts +1 -1
  179. package/dist/components/result/EpResult.vue.d.ts +23 -0
  180. package/dist/components/result/EpResult.vue.js +71 -0
  181. package/dist/components/result/EpResult2.vue.js +4 -0
  182. package/dist/components/result/index.d.ts +11 -2
  183. package/dist/components/result/index.js +10 -4
  184. package/dist/components/result/instance.d.ts +2 -0
  185. package/dist/components/result/result.d.ts +35 -0
  186. package/dist/components/result/result.js +47 -0
  187. package/dist/components/select/index.d.ts +21 -21
  188. package/dist/components/select/select.vue.d.ts +7 -7
  189. package/dist/components/select/select2.vue.js +12 -12
  190. package/dist/components/select/src/option.vue.js +5 -5
  191. package/dist/components/select-v2/src/select.vue.d.ts +8 -8
  192. package/dist/components/space/index.d.ts +15 -2
  193. package/dist/components/space/index.js +23 -4
  194. package/dist/components/space/instance.d.ts +2 -0
  195. package/dist/components/space/item.d.ts +29 -0
  196. package/dist/components/space/item.js +30 -0
  197. package/dist/components/space/space.d.ts +92 -0
  198. package/dist/components/space/space.js +182 -0
  199. package/dist/components/space/use-space.d.ts +7 -0
  200. package/dist/components/space/use-space.js +47 -0
  201. package/dist/components/statistic/EpStatistic.vue.d.ts +28 -0
  202. package/dist/components/statistic/EpStatistic.vue.js +82 -0
  203. package/dist/components/statistic/EpStatistic2.vue.js +4 -0
  204. package/dist/components/statistic/index.d.ts +11 -2
  205. package/dist/components/statistic/index.js +8 -4
  206. package/dist/components/statistic/instance.d.ts +2 -0
  207. package/dist/components/statistic/statistic.d.ts +58 -0
  208. package/dist/components/statistic/statistic.js +59 -0
  209. package/dist/components/table-v2/index.d.ts +21 -2
  210. package/dist/components/table-v2/index.js +11 -4
  211. package/dist/components/table-v2/src/EpTableV2.d.ts +359 -0
  212. package/dist/components/table-v2/src/EpTableV2.js +287 -0
  213. package/dist/components/table-v2/src/cell.d.ts +27 -0
  214. package/dist/components/table-v2/src/common.d.ts +42 -0
  215. package/dist/components/table-v2/src/common.js +38 -0
  216. package/dist/components/table-v2/src/components/cell.d.ts +4 -0
  217. package/dist/components/table-v2/src/components/cell.js +20 -0
  218. package/dist/components/table-v2/src/components/expand-icon.d.ts +15 -0
  219. package/dist/components/table-v2/src/components/expand-icon.js +30 -0
  220. package/dist/components/table-v2/src/components/header-cell.d.ts +4 -0
  221. package/dist/components/table-v2/src/components/header-cell.js +15 -0
  222. package/dist/components/table-v2/src/components/header-row.d.ts +59 -0
  223. package/dist/components/table-v2/src/components/header-row.js +41 -0
  224. package/dist/components/table-v2/src/components/header.d.ts +105 -0
  225. package/dist/components/table-v2/src/components/header.js +98 -0
  226. package/dist/components/table-v2/src/components/index.d.ts +11 -0
  227. package/dist/components/table-v2/src/components/row.d.ts +166 -0
  228. package/dist/components/table-v2/src/components/row.js +176 -0
  229. package/dist/components/table-v2/src/components/sort-icon.d.ts +9 -0
  230. package/dist/components/table-v2/src/components/sort-icon.js +21 -0
  231. package/dist/components/table-v2/src/composables/index.d.ts +11 -0
  232. package/dist/components/table-v2/src/composables/use-columns.d.ts +128 -0
  233. package/dist/components/table-v2/src/composables/use-columns.js +73 -0
  234. package/dist/components/table-v2/src/composables/use-data.d.ts +14 -0
  235. package/dist/components/table-v2/src/composables/use-data.js +33 -0
  236. package/dist/components/table-v2/src/composables/use-row.d.ts +31 -0
  237. package/dist/components/table-v2/src/composables/use-row.js +83 -0
  238. package/dist/components/table-v2/src/composables/use-scrollbar.d.ts +31 -0
  239. package/dist/components/table-v2/src/composables/use-scrollbar.js +53 -0
  240. package/dist/components/table-v2/src/composables/use-styles.d.ts +23 -0
  241. package/dist/components/table-v2/src/composables/use-styles.js +66 -0
  242. package/dist/components/table-v2/src/composables/utils.d.ts +3 -0
  243. package/dist/components/table-v2/src/composables/utils.js +19 -0
  244. package/dist/components/table-v2/src/constants.d.ts +18 -0
  245. package/dist/components/table-v2/src/constants.js +12 -0
  246. package/dist/components/table-v2/src/grid.d.ts +105 -0
  247. package/dist/components/table-v2/src/grid.js +56 -0
  248. package/dist/components/table-v2/src/header-cell.d.ts +13 -0
  249. package/dist/components/table-v2/src/header-row.d.ts +26 -0
  250. package/dist/components/table-v2/src/header-row.js +20 -0
  251. package/dist/components/table-v2/src/header.d.ts +44 -0
  252. package/dist/components/table-v2/src/header.js +35 -0
  253. package/dist/components/table-v2/src/private.d.ts +1 -0
  254. package/dist/components/table-v2/src/private.js +4 -0
  255. package/dist/components/table-v2/src/renderers/cell.d.ts +11 -0
  256. package/dist/components/table-v2/src/renderers/cell.js +101 -0
  257. package/dist/components/table-v2/src/renderers/empty.d.ts +7 -0
  258. package/dist/components/table-v2/src/renderers/empty.js +15 -0
  259. package/dist/components/table-v2/src/renderers/footer.d.ts +7 -0
  260. package/dist/components/table-v2/src/renderers/footer.js +14 -0
  261. package/dist/components/table-v2/src/renderers/header-cell.d.ts +14 -0
  262. package/dist/components/table-v2/src/renderers/header-cell.js +77 -0
  263. package/dist/components/table-v2/src/renderers/header.d.ts +9 -0
  264. package/dist/components/table-v2/src/renderers/header.js +53 -0
  265. package/dist/components/table-v2/src/renderers/left-table.d.ts +8 -0
  266. package/dist/components/table-v2/src/renderers/left-table.js +22 -0
  267. package/dist/components/table-v2/src/renderers/main-table.d.ts +8 -0
  268. package/dist/components/table-v2/src/renderers/main-table.js +21 -0
  269. package/dist/components/table-v2/src/renderers/overlay.d.ts +3 -0
  270. package/dist/components/table-v2/src/renderers/overlay.js +14 -0
  271. package/dist/components/table-v2/src/renderers/right-table.d.ts +8 -0
  272. package/dist/components/table-v2/src/renderers/right-table.js +22 -0
  273. package/dist/components/table-v2/src/renderers/row.d.ts +11 -0
  274. package/dist/components/table-v2/src/renderers/row.js +98 -0
  275. package/dist/components/table-v2/src/row.d.ts +101 -0
  276. package/dist/components/table-v2/src/row.js +53 -0
  277. package/dist/components/table-v2/src/table-grid.d.ts +236 -0
  278. package/dist/components/table-v2/src/table-grid.js +240 -0
  279. package/dist/components/table-v2/src/table.d.ts +194 -0
  280. package/dist/components/table-v2/src/table.js +134 -0
  281. package/dist/components/table-v2/src/tokens.d.ts +9 -0
  282. package/dist/components/table-v2/src/tokens.js +5 -0
  283. package/dist/components/table-v2/src/types.d.ts +99 -0
  284. package/dist/components/table-v2/src/use-table.d.ts +98 -0
  285. package/dist/components/table-v2/src/use-table.js +162 -0
  286. package/dist/components/table-v2/src/utils.d.ts +8 -0
  287. package/dist/components/table-v2/src/utils.js +15 -0
  288. package/dist/components/time-picker/src/time-picker-com/panel-time-pick.vue.d.ts +2 -2
  289. package/dist/components/time-picker/src/time-picker-com/panel-time-range.vue.d.ts +2 -2
  290. package/dist/components/tour/EpTour.vue.d.ts +1 -1
  291. package/dist/components/tree-select/src/tree-select.vue.d.ts +10 -10
  292. package/dist/components/tree-v2/EpTreeNode.vue.d.ts +17 -0
  293. package/dist/components/tree-v2/EpTreeNode.vue.js +127 -0
  294. package/dist/components/tree-v2/EpTreeNode2.vue.js +4 -0
  295. package/dist/components/tree-v2/EpTreeV2.vue.d.ts +61 -0
  296. package/dist/components/tree-v2/EpTreeV2.vue.js +168 -0
  297. package/dist/components/tree-v2/EpTreeV22.vue.js +4 -0
  298. package/dist/components/tree-v2/composables/useCheck.d.ts +15 -0
  299. package/dist/components/tree-v2/composables/useCheck.js +142 -0
  300. package/dist/components/tree-v2/composables/useFilter.d.ts +8 -0
  301. package/dist/components/tree-v2/composables/useFilter.js +50 -0
  302. package/dist/components/tree-v2/composables/useTree.d.ts +404 -0
  303. package/dist/components/tree-v2/composables/useTree.js +228 -0
  304. package/dist/components/tree-v2/index.d.ts +11 -2
  305. package/dist/components/tree-v2/index.js +5 -2
  306. package/dist/components/tree-v2/instance.d.ts +2 -0
  307. package/dist/components/tree-v2/tree-node-content.d.ts +20 -0
  308. package/dist/components/tree-v2/tree-node-content.js +33 -0
  309. package/dist/components/tree-v2/types.d.ts +97 -0
  310. package/dist/components/tree-v2/virtual-tree.d.ts +122 -0
  311. package/dist/components/tree-v2/virtual-tree.js +140 -0
  312. package/dist/components/virtual-list/src/builders/build-grid.d.ts +211 -0
  313. package/dist/components/virtual-list/src/builders/build-grid.js +449 -0
  314. package/dist/components/virtual-list/src/components/dynamic-size-grid.d.ts +212 -0
  315. package/dist/components/virtual-list/src/components/dynamic-size-grid.js +200 -0
  316. package/dist/components/virtual-list/src/components/fixed-size-grid.d.ts +199 -0
  317. package/dist/components/virtual-list/src/components/fixed-size-grid.js +126 -0
  318. package/dist/components/virtual-list/src/hooks/use-grid-touch.d.ts +8 -0
  319. package/dist/components/virtual-list/src/hooks/use-grid-touch.js +40 -0
  320. package/dist/components/virtual-list/src/hooks/use-grid-wheel.d.ts +13 -0
  321. package/dist/components/virtual-list/src/hooks/use-grid-wheel.js +30 -0
  322. package/dist/components/virtual-list/src/props.js +16 -17
  323. package/dist/components/virtual-list/src/utils.js +14 -13
  324. package/dist/components/watermark/EpWatermark.vue.d.ts +18 -0
  325. package/dist/components/watermark/EpWatermark.vue.js +174 -0
  326. package/dist/components/watermark/EpWatermark2.vue.js +4 -0
  327. package/dist/components/watermark/index.d.ts +13 -2
  328. package/dist/components/watermark/index.js +8 -4
  329. package/dist/components/watermark/instance.d.ts +2 -0
  330. package/dist/components/watermark/useClips.d.ts +6 -0
  331. package/dist/components/watermark/useClips.js +91 -0
  332. package/dist/components/watermark/utils.d.ts +8 -0
  333. package/dist/components/watermark/utils.js +21 -0
  334. package/dist/components/watermark/watermark.d.ts +71 -0
  335. package/dist/components/watermark/watermark.js +60 -0
  336. package/dist/constants/date.js +9 -0
  337. package/dist/directives/index.d.ts +11 -0
  338. package/dist/directives/index.js +25 -0
  339. package/dist/directives/trap-focus/index.js +40 -0
  340. package/dist/ep-craft.js +410 -373
  341. package/dist/hooks/index.d.ts +2 -0
  342. package/dist/hooks/use-draggable/index.d.ts +6 -0
  343. package/dist/hooks/use-draggable/index.js +51 -0
  344. package/dist/hooks/use-locale/index.js +12 -12
  345. package/dist/hooks/use-namespace/index.js +23 -23
  346. package/dist/hooks/use-same-target/index.d.ts +5 -0
  347. package/dist/hooks/use-same-target/index.js +20 -0
  348. package/dist/hooks/use-z-index/index.js +15 -15
  349. package/dist/index.d.ts +32 -2
  350. package/dist/utils/dom/aria.js +16 -12
  351. package/dist/utils/vue/icon.js +10 -6
  352. package/dist/utils/vue/install.js +23 -20
  353. package/dist/utils/vue/vnode.js +32 -22
  354. package/dist/vendored-components.d.ts +1 -1
  355. package/dist/vendored-components.js +34 -1
  356. package/package.json +1 -1
@@ -1,66 +1,94 @@
1
- import { ref as c, getCurrentInstance as f, inject as v, computed as i, unref as d, provide as C } from "vue";
1
+ import { ref as C, getCurrentInstance as f, inject as g, computed as t, unref as c, provide as x } from "vue";
2
2
  import "@vue/shared";
3
- import "lodash-unified";
3
+ import { isNil as I } from "lodash-unified";
4
4
  import "@vueuse/core";
5
- import { debugWarn as g } from "../../../../utils/error.js";
6
- import { keysOf as u } from "../../../../utils/objects.js";
5
+ import { debugWarn as y } from "../../../../utils/error.js";
6
+ import { keysOf as p } from "../../../../utils/objects.js";
7
7
  import "@element-plus/icons-vue";
8
- import { namespaceContextKey as y } from "../../../../hooks/use-namespace/index.js";
9
- import { localeContextKey as x } from "../../../../hooks/use-locale/index.js";
10
- import { SIZE_INJECTION_KEY as b } from "../../../../hooks/use-size/index.js";
8
+ import { namespaceContextKey as z, useNamespace as b, defaultNamespace as N } from "../../../../hooks/use-namespace/index.js";
9
+ import { localeContextKey as K, useLocale as G } from "../../../../hooks/use-locale/index.js";
10
+ import { SIZE_INJECTION_KEY as O } from "../../../../hooks/use-size/index.js";
11
11
  import "@popperjs/core";
12
- import { zIndexContextKey as I } from "../../../../hooks/use-z-index/index.js";
12
+ import { zIndexContextKey as S, useZIndex as E, defaultInitialZIndex as V } from "../../../../hooks/use-z-index/index.js";
13
13
  import "../../../../hooks/use-delayed-toggle/index.js";
14
14
  import "../../../../hooks/use-aria/index.js";
15
15
  import "../../../../hooks/use-model-toggle/index.js";
16
- import { emptyValuesContextKey as K } from "../../../../hooks/use-empty-values/index.js";
17
- import { configProviderContextKey as s } from "../constants.js";
18
- const m = c();
19
- function z(r, l = void 0) {
20
- const a = f() ? v(s, m) : m;
21
- return r ? i(() => {
22
- var t;
23
- return ((t = a.value) == null ? void 0 : t[r]) ?? l;
24
- }) : a;
16
+ import { emptyValuesContextKey as Z } from "../../../../hooks/use-empty-values/index.js";
17
+ import { configProviderContextKey as v } from "../constants.js";
18
+ const u = C();
19
+ function d(a, s = void 0) {
20
+ const o = f() ? g(v, u) : u;
21
+ return a ? t(() => {
22
+ var i;
23
+ return ((i = o.value) == null ? void 0 : i[a]) ?? s;
24
+ }) : o;
25
25
  }
26
- const q = (r, l, a = !1) => {
27
- const t = !!f(), e = t ? z() : void 0, n = t ? C : void 0;
28
- if (!n) {
29
- g(
26
+ function R(a, s) {
27
+ const o = d(), i = b(
28
+ a,
29
+ t(() => {
30
+ var e;
31
+ return ((e = o.value) == null ? void 0 : e.namespace) || N;
32
+ })
33
+ ), n = G(t(() => {
34
+ var e;
35
+ return (e = o.value) == null ? void 0 : e.locale;
36
+ })), l = E(
37
+ t(() => {
38
+ var m;
39
+ const e = (m = o.value) == null ? void 0 : m.zIndex;
40
+ return I(e) || Number.isNaN(e) ? V : e;
41
+ })
42
+ ), r = t(() => {
43
+ var e;
44
+ return c(s) || ((e = o.value) == null ? void 0 : e.size) || "";
45
+ });
46
+ return j(t(() => c(o) || {})), {
47
+ ns: i,
48
+ locale: n,
49
+ zIndex: l,
50
+ size: r
51
+ };
52
+ }
53
+ const j = (a, s, o = !1) => {
54
+ const i = !!f(), n = i ? d() : void 0, l = i ? x : void 0;
55
+ if (!l) {
56
+ y(
30
57
  "provideGlobalConfig",
31
58
  "provideGlobalConfig() can only be used inside setup()."
32
59
  );
33
60
  return;
34
61
  }
35
- const o = i(() => {
36
- const p = d(r);
37
- return e != null && e.value ? G(e.value, p) : p;
62
+ const r = t(() => {
63
+ const e = c(a);
64
+ return n != null && n.value ? k(n.value, e) : e;
38
65
  });
39
- return n(s, o), n(
40
- x,
41
- i(() => o.value.locale)
42
- ), n(
43
- y,
44
- i(() => o.value.namespace)
45
- ), n(
46
- I,
47
- i(() => o.value.zIndex)
48
- ), n(b, {
49
- size: i(() => o.value.size || "")
50
- }), n(
66
+ return l(v, r), l(
51
67
  K,
52
- i(() => ({
53
- emptyValues: o.value.emptyValues,
54
- valueOnClear: o.value.valueOnClear
68
+ t(() => r.value.locale)
69
+ ), l(
70
+ z,
71
+ t(() => r.value.namespace)
72
+ ), l(
73
+ S,
74
+ t(() => r.value.zIndex)
75
+ ), l(O, {
76
+ size: t(() => r.value.size || "")
77
+ }), l(
78
+ Z,
79
+ t(() => ({
80
+ emptyValues: r.value.emptyValues,
81
+ valueOnClear: r.value.valueOnClear
55
82
  }))
56
- ), (a || !m.value) && (m.value = o.value), o;
57
- }, G = (r, l) => {
58
- const a = [.../* @__PURE__ */ new Set([...u(r), ...u(l)])], t = {};
59
- for (const e of a)
60
- t[e] = l[e] !== void 0 ? l[e] : r[e];
61
- return t;
83
+ ), (o || !u.value) && (u.value = r.value), r;
84
+ }, k = (a, s) => {
85
+ const o = [.../* @__PURE__ */ new Set([...p(a), ...p(s)])], i = {};
86
+ for (const n of o)
87
+ i[n] = s[n] !== void 0 ? s[n] : a[n];
88
+ return i;
62
89
  };
63
90
  export {
64
- q as provideGlobalConfig,
65
- z as useGlobalConfig
91
+ j as provideGlobalConfig,
92
+ R as useGlobalComponentSettings,
93
+ d as useGlobalConfig
66
94
  };
@@ -0,0 +1,28 @@
1
+ import type { CountdownProps } from './countdown';
2
+ declare var __VLS_6: string | number, __VLS_7: {};
3
+ type __VLS_Slots = {} & {
4
+ [K in NonNullable<typeof __VLS_6>]?: (props: typeof __VLS_7) => any;
5
+ };
6
+ declare const __VLS_component: import("vue").DefineComponent<CountdownProps, {
7
+ /**
8
+ * @description current display value
9
+ */
10
+ displayValue: import("vue").ComputedRef<string>;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ change: (value: number) => void;
13
+ finish: () => void;
14
+ }, string, import("vue").PublicProps, Readonly<CountdownProps> & Readonly<{
15
+ onChange?: ((value: number) => any) | undefined;
16
+ onFinish?: (() => any) | undefined;
17
+ }>, {
18
+ value: number | import("dayjs").Dayjs;
19
+ format: string;
20
+ valueStyle: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
+ export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -0,0 +1,71 @@
1
+ import { defineComponent as y, ref as E, computed as C, onMounted as S, watch as T, onBeforeUnmount as h, openBlock as A, createBlock as B, createSlots as F, renderList as H, withCtx as V, renderSlot as $ } from "vue";
2
+ import "@vue/shared";
3
+ import "lodash-unified";
4
+ import "@vueuse/core";
5
+ import { rAF as u, cAF as g } from "../../utils/raf.js";
6
+ import { CHANGE_EVENT as k } from "../../constants/event.js";
7
+ import "@element-plus/icons-vue";
8
+ import D from "../statistic/EpStatistic.vue.js";
9
+ import { countdownEmits as N } from "./countdown.js";
10
+ import { formatTime as s, getTime as c } from "./utils.js";
11
+ const I = /* @__PURE__ */ y({
12
+ name: "EpCountdown",
13
+ __name: "EpCountdown",
14
+ props: {
15
+ format: { default: "HH:mm:ss" },
16
+ prefix: {},
17
+ suffix: {},
18
+ title: {},
19
+ value: { default: 0 },
20
+ valueStyle: { type: [Boolean, null, String, Object, Array], default: void 0 }
21
+ },
22
+ emits: N,
23
+ setup(o, { expose: p, emit: d }) {
24
+ const t = o, n = d;
25
+ let r;
26
+ const a = E(0), v = C(() => s(a.value, t.format)), x = (e) => s(e, t.format), m = () => {
27
+ r && (g(r), r = void 0);
28
+ }, w = () => {
29
+ const e = c(t.value), l = () => {
30
+ let i = e - Date.now();
31
+ n(k, i), i <= 0 ? (i = 0, m(), n("finish")) : r = u(l), a.value = i;
32
+ };
33
+ r = u(l);
34
+ };
35
+ return S(() => {
36
+ a.value = c(t.value) - Date.now(), T(
37
+ () => [t.value, t.format],
38
+ () => {
39
+ m(), w();
40
+ },
41
+ {
42
+ immediate: !0
43
+ }
44
+ );
45
+ }), h(() => {
46
+ m();
47
+ }), p({
48
+ /**
49
+ * @description current display value
50
+ */
51
+ displayValue: v
52
+ }), (e, l) => (A(), B(D, {
53
+ value: a.value,
54
+ title: o.title,
55
+ prefix: o.prefix,
56
+ suffix: o.suffix,
57
+ "value-style": o.valueStyle,
58
+ formatter: x
59
+ }, F({ _: 2 }, [
60
+ H(e.$slots, (i, f) => ({
61
+ name: f,
62
+ fn: V(() => [
63
+ $(e.$slots, f)
64
+ ])
65
+ }))
66
+ ]), 1032, ["value", "title", "prefix", "suffix", "value-style"]));
67
+ }
68
+ });
69
+ export {
70
+ I as default
71
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./EpCountdown.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,48 @@
1
+ import type { ExtractPublicPropTypes, StyleValue } from 'vue';
2
+ import type { Dayjs } from 'dayjs';
3
+ export interface CountdownProps {
4
+ /**
5
+ * @description Formatting the countdown display
6
+ */
7
+ format?: string;
8
+ /**
9
+ * @description Sets the prefix of a countdown
10
+ */
11
+ prefix?: string;
12
+ /**
13
+ * @description Sets the suffix of a countdown
14
+ */
15
+ suffix?: string;
16
+ /**
17
+ * @description countdown titles
18
+ */
19
+ title?: string;
20
+ /**
21
+ * @description target time
22
+ */
23
+ value?: number | Dayjs;
24
+ /**
25
+ * @description Styles countdown values
26
+ */
27
+ valueStyle?: StyleValue;
28
+ }
29
+ /**
30
+ * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
31
+ */
32
+ export declare const countdownProps: {
33
+ readonly format: import("@element-plus/utils").EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
34
+ readonly prefix: StringConstructor;
35
+ readonly suffix: StringConstructor;
36
+ readonly title: StringConstructor;
37
+ readonly value: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => number | Dayjs) | (() => number | Dayjs) | (((new (...args: any[]) => number | Dayjs) | (() => number | Dayjs)) | null)[], unknown, unknown, 0, boolean>;
38
+ readonly valueStyle: import("@element-plus/utils").EpPropFinalized<(new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue) | (((new (...args: any[]) => string | false | import("vue").CSSProperties | StyleValue[]) | (() => StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
39
+ };
40
+ /**
41
+ * @deprecated Removed after 3.0.0, Use `CountdownProps` instead.
42
+ */
43
+ export type CountdownPropsPublic = ExtractPublicPropTypes<typeof countdownProps>;
44
+ export declare const countdownEmits: {
45
+ finish: () => boolean;
46
+ change: (value: number) => boolean;
47
+ };
48
+ export type CountdownEmits = typeof countdownEmits;
@@ -0,0 +1,50 @@
1
+ import { isNumber as i } from "../../utils/types.js";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@vue/shared";
5
+ import { CHANGE_EVENT as e } from "../../constants/event.js";
6
+ import "@element-plus/icons-vue";
7
+ import { buildProps as o, definePropType as t } from "../../utils/vue/props/runtime.js";
8
+ import "vue";
9
+ o({
10
+ /**
11
+ * @description Formatting the countdown display
12
+ */
13
+ format: {
14
+ type: String,
15
+ default: "HH:mm:ss"
16
+ },
17
+ /**
18
+ * @description Sets the prefix of a countdown
19
+ */
20
+ prefix: String,
21
+ /**
22
+ * @description Sets the suffix of a countdown
23
+ */
24
+ suffix: String,
25
+ /**
26
+ * @description countdown titles
27
+ */
28
+ title: String,
29
+ /**
30
+ * @description target time
31
+ */
32
+ value: {
33
+ type: t([Number, Object]),
34
+ default: 0
35
+ },
36
+ /**
37
+ * @description Styles countdown values
38
+ */
39
+ valueStyle: {
40
+ type: t([String, Object, Array, Boolean]),
41
+ default: void 0
42
+ }
43
+ });
44
+ const d = {
45
+ finish: () => !0,
46
+ [e]: (r) => i(r)
47
+ };
48
+ export {
49
+ d as countdownEmits
50
+ };
@@ -1,4 +1,13 @@
1
1
  import type { Plugin } from 'vue';
2
- import { ElCountdown } from 'element-plus';
3
- export declare const EpCountdown: typeof ElCountdown & Plugin;
2
+ import _EpCountdown from './EpCountdown.vue';
3
+ /**
4
+ * countdown 自持 barrel(vendor-batch-5 产出)。
5
+ *
6
+ * 统计数值外观消费本地 `EpStatistic`,不再引入上游对应组件。
7
+ * 保留 `displayValue` 暴露契约,不导出 `ElCountdown` 别名。
8
+ */
9
+ export declare const EpCountdown: typeof _EpCountdown & Plugin;
4
10
  export default EpCountdown;
11
+ export { countdownEmits, countdownProps } from './countdown';
12
+ export type { CountdownEmits, CountdownProps, CountdownPropsPublic, } from './countdown';
13
+ export type { CountdownInstance } from './instance';
@@ -1,6 +1,11 @@
1
- import { ElCountdown as o } from "element-plus";
2
- import { withInstall as n } from "../../utils/with-install.js";
3
- const t = Object.assign({}, o, { name: "EpCountdown" }), d = n(t, "ep-countdown");
1
+ import { withInstall as o } from "../../utils/with-install.js";
2
+ import t from "./EpCountdown.vue.js";
3
+ import { countdownEmits as c } from "./countdown.js";
4
+ const r = o(
5
+ t,
6
+ "ep-countdown"
7
+ );
4
8
  export {
5
- d as EpCountdown
9
+ r as EpCountdown,
10
+ c as countdownEmits
6
11
  };
@@ -0,0 +1,2 @@
1
+ import type Countdown from './EpCountdown.vue';
2
+ export type CountdownInstance = InstanceType<typeof Countdown> & unknown;
@@ -0,0 +1,3 @@
1
+ import type { Dayjs } from 'dayjs';
2
+ export declare const getTime: (value: number | Dayjs) => number;
3
+ export declare const formatTime: (timestamp: number, format: string) => string;
@@ -0,0 +1,40 @@
1
+ import { isNumber as a } from "../../utils/types.js";
2
+ import "lodash-unified";
3
+ import "@vueuse/core";
4
+ import "@vue/shared";
5
+ import "@element-plus/icons-vue";
6
+ import "vue";
7
+ const g = [
8
+ ["Y", 1e3 * 60 * 60 * 24 * 365],
9
+ // years
10
+ ["M", 1e3 * 60 * 60 * 24 * 30],
11
+ // months
12
+ ["D", 1e3 * 60 * 60 * 24],
13
+ // days
14
+ ["H", 1e3 * 60 * 60],
15
+ // hours
16
+ ["m", 1e3 * 60],
17
+ // minutes
18
+ ["s", 1e3],
19
+ // seconds
20
+ ["S", 1]
21
+ // million seconds
22
+ ], S = (e) => a(e) ? new Date(e).getTime() : e.valueOf(), h = (e, i) => {
23
+ let r = e;
24
+ const n = /\[([^\]]*)]/g;
25
+ return g.reduce((t, [c, o]) => {
26
+ const m = new RegExp(`${c}+(?![^\\[\\]]*\\])`, "g");
27
+ if (m.test(t)) {
28
+ const p = Math.floor(r / o);
29
+ return r -= p * o, t.replace(
30
+ m,
31
+ (s) => String(p).padStart(s.length, "0")
32
+ );
33
+ }
34
+ return t;
35
+ }, i).replace(n, "$1");
36
+ };
37
+ export {
38
+ h as formatTime,
39
+ S as getTime
40
+ };
@@ -161,7 +161,7 @@ export declare const useBasicDateTable: (props: BasicDateTableProps, emit: Setup
161
161
  isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
162
162
  isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean;
163
163
  } | undefined;
164
- type?: ("normal" | "week" | "today" | "next-month" | "prev-month") | undefined;
164
+ type?: ("normal" | "week" | "today" | "prev-month" | "next-month") | undefined;
165
165
  }[][]>;
166
166
  tbodyRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
167
167
  currentCellRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
@@ -121,9 +121,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
121
121
  }>> & Readonly<{
122
122
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
123
123
  onClear?: ((...args: any[]) => any) | undefined;
124
+ "onVisible-change"?: ((...args: any[]) => any) | undefined;
124
125
  "onCalendar-change"?: ((...args: any[]) => any) | undefined;
125
126
  "onPanel-change"?: ((...args: any[]) => any) | undefined;
126
- "onVisible-change"?: ((...args: any[]) => any) | undefined;
127
127
  }>, {
128
128
  readonly border: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
129
129
  readonly disabled: import("@element-plus/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -0,0 +1,61 @@
1
+ import type { DialogProps } from './dialog';
2
+ declare var __VLS_35: {
3
+ close: () => void;
4
+ titleId: string;
5
+ titleClass: string;
6
+ }, __VLS_37: {}, __VLS_39: {}, __VLS_41: {};
7
+ type __VLS_Slots = {} & {
8
+ header?: (props: typeof __VLS_35) => any;
9
+ } & {
10
+ title?: (props: typeof __VLS_37) => any;
11
+ } & {
12
+ default?: (props: typeof __VLS_39) => any;
13
+ } & {
14
+ footer?: (props: typeof __VLS_41) => any;
15
+ };
16
+ declare const __VLS_component: import("vue").DefineComponent<DialogProps, {
17
+ /** @description whether the dialog is visible */
18
+ visible: import("vue").Ref<boolean, boolean>;
19
+ dialogContentRef: import("vue").Ref<any, any>;
20
+ resetPosition: () => void;
21
+ handleClose: () => void;
22
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:modelValue": (value: boolean) => void;
24
+ open: () => void;
25
+ close: () => void;
26
+ opened: () => void;
27
+ closed: () => void;
28
+ openAutoFocus: () => void;
29
+ closeAutoFocus: () => void;
30
+ }, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
31
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
32
+ onOpen?: (() => any) | undefined;
33
+ onClose?: (() => any) | undefined;
34
+ onOpened?: (() => any) | undefined;
35
+ onClosed?: (() => any) | undefined;
36
+ onOpenAutoFocus?: (() => any) | undefined;
37
+ onCloseAutoFocus?: (() => any) | undefined;
38
+ }>, {
39
+ overflow: boolean;
40
+ transition: import("./dialog").DialogTransition;
41
+ title: string;
42
+ appendTo: string | HTMLElement;
43
+ draggable: boolean;
44
+ ariaLevel: string;
45
+ showClose: boolean;
46
+ alignCenter: boolean;
47
+ closeOnClickModal: boolean;
48
+ closeOnPressEscape: boolean;
49
+ lockScroll: boolean;
50
+ modal: boolean;
51
+ openDelay: number;
52
+ closeDelay: number;
53
+ headerAriaLevel: string;
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
56
+ export default _default;
57
+ type __VLS_WithSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };