@aplus-frontend/ui 0.0.1-beta.7 → 0.0.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/es/index.mjs +165 -160
  2. package/es/src/ap-action/group/index.vue.mjs +22 -18
  3. package/es/src/ap-action/index.mjs +7 -4
  4. package/es/src/ap-action/interface.mjs +1 -0
  5. package/es/src/ap-action/item/index.vue.mjs +2 -47
  6. package/es/src/ap-action/item/index.vue2.mjs +47 -2
  7. package/es/src/ap-action/item-dropdown/index.vue.mjs +14 -11
  8. package/es/src/ap-action/item-modal/index.vue.mjs +9 -8
  9. package/es/src/ap-action/item-popconfirm/index.vue.mjs +10 -8
  10. package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
  11. package/es/src/ap-field/date/index.vue.mjs +19 -20
  12. package/es/src/ap-field/date-range/index.vue.mjs +9 -9
  13. package/es/src/ap-field/index.d.ts +12 -0
  14. package/es/src/ap-field/index.mjs +42 -0
  15. package/es/src/ap-field/interface.d.ts +3 -2
  16. package/es/src/ap-field/interface.mjs +1 -0
  17. package/es/src/ap-field/number/helper.mjs +2 -2
  18. package/es/src/ap-field/number/index.vue.mjs +30 -32
  19. package/es/src/ap-field/radio/index.vue.mjs +40 -34
  20. package/es/src/ap-field/select/index.vue.mjs +1 -1
  21. package/es/src/ap-field/switch/index.vue.mjs +6 -6
  22. package/es/src/ap-field/text/index.vue.mjs +29 -29
  23. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  24. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
  25. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
  26. package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
  27. package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
  28. package/es/src/ap-form/components/interface.d.ts +0 -0
  29. package/es/src/ap-form/index.d.ts +11 -1682
  30. package/es/src/ap-form/index.mjs +11 -7
  31. package/es/src/base-button/button.vue.mjs +2 -58
  32. package/es/src/base-button/button.vue2.mjs +59 -2
  33. package/es/src/base-button/index.mjs +8 -8
  34. package/es/src/base-button/interface.mjs +1 -0
  35. package/es/src/base-button/modal-button.vue.mjs +12 -11
  36. package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
  37. package/es/src/basic/arrow.vue.mjs +2 -38
  38. package/es/src/basic/arrow.vue2.mjs +38 -2
  39. package/es/src/basic/help.vue.mjs +2 -96
  40. package/es/src/basic/help.vue2.mjs +96 -2
  41. package/es/src/basic/index.mjs +11 -7
  42. package/es/src/basic/interface.mjs +1 -0
  43. package/es/src/basic/title.vue.mjs +2 -32
  44. package/es/src/basic/title.vue2.mjs +33 -2
  45. package/es/src/config-provider/config-provider.mjs +4 -4
  46. package/es/src/config-provider/hooks/use-locale.mjs +1 -0
  47. package/es/src/config-provider/index.mjs +26 -13
  48. package/es/src/container/collapse/header.vue.mjs +2 -49
  49. package/es/src/container/collapse/header.vue2.mjs +49 -2
  50. package/es/src/container/collapse/index.vue.mjs +2 -85
  51. package/es/src/container/collapse/index.vue2.mjs +86 -2
  52. package/es/src/container/index.mjs +8 -5
  53. package/es/src/container/interface.mjs +1 -0
  54. package/es/src/container/scroll-container.vue.mjs +2 -60
  55. package/es/src/container/scroll-container.vue2.mjs +60 -2
  56. package/es/src/count-down/button.vue.mjs +2 -44
  57. package/es/src/count-down/button.vue2.mjs +44 -2
  58. package/es/src/count-down/index.mjs +8 -5
  59. package/es/src/count-down/input.vue.mjs +2 -44
  60. package/es/src/count-down/input.vue2.mjs +45 -2
  61. package/es/src/count-down/interface.mjs +1 -0
  62. package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
  63. package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
  64. package/es/src/cropper/cropper-image.vue.mjs +2 -129
  65. package/es/src/cropper/cropper-image.vue2.mjs +129 -2
  66. package/es/src/cropper/cropper-modal.vue.mjs +2 -270
  67. package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
  68. package/es/src/cropper/index.mjs +8 -5
  69. package/es/src/cropper/interface.mjs +1 -0
  70. package/es/src/description/description.vue.mjs +2 -169
  71. package/es/src/description/description.vue2.mjs +169 -2
  72. package/es/src/description/index.mjs +8 -5
  73. package/es/src/description/interface.mjs +1 -0
  74. package/es/src/dropdown/dropdown.vue.mjs +2 -92
  75. package/es/src/dropdown/dropdown.vue2.mjs +92 -2
  76. package/es/src/dropdown/index.mjs +5 -3
  77. package/es/src/dropdown/interface.mjs +1 -0
  78. package/es/src/hooks/index.mjs +6 -0
  79. package/es/src/hooks/useMessage.mjs +1 -1
  80. package/es/src/icon/icon.vue.mjs +2 -66
  81. package/es/src/icon/icon.vue2.mjs +67 -2
  82. package/es/src/icon/index.mjs +8 -5
  83. package/es/src/icon/interface.mjs +1 -0
  84. package/es/src/icon/svg-icon.vue.mjs +2 -32
  85. package/es/src/icon/svg-icon.vue2.mjs +32 -2
  86. package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
  87. package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
  88. package/es/src/icon-picker/index.mjs +7 -5
  89. package/es/src/icon-picker/interface.mjs +1 -0
  90. package/es/src/index.mjs +161 -155
  91. package/es/src/locale/index.mjs +7 -0
  92. package/es/src/locale/interface.mjs +1 -0
  93. package/es/src/modal/basic.vue.mjs +2 -195
  94. package/es/src/modal/basic.vue2.mjs +199 -2
  95. package/es/src/modal/components/modal-close.vue.mjs +2 -72
  96. package/es/src/modal/components/modal-close.vue2.mjs +72 -2
  97. package/es/src/modal/components/modal-footer.vue.mjs +2 -43
  98. package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
  99. package/es/src/modal/components/modal-header.vue.mjs +1 -18
  100. package/es/src/modal/components/modal-header.vue2.mjs +18 -1
  101. package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
  102. package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
  103. package/es/src/modal/components/modal.mjs +6 -6
  104. package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
  105. package/es/src/modal/hooks/use-modal.mjs +8 -8
  106. package/es/src/modal/index.mjs +10 -7
  107. package/es/src/modal/interface.mjs +1 -0
  108. package/es/src/pro-form/component-map.mjs +56 -41
  109. package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
  110. package/es/src/pro-form/components/form-action.vue.mjs +2 -105
  111. package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
  112. package/es/src/pro-form/components/form-item.vue.mjs +2 -352
  113. package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
  114. package/es/src/pro-form/components/interface.mjs +1 -0
  115. package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
  116. package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
  117. package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
  118. package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
  119. package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
  120. package/es/src/pro-form/hooks/use-form.mjs +4 -4
  121. package/es/src/pro-form/index.d.ts +1 -0
  122. package/es/src/pro-form/index.mjs +34 -34
  123. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  124. package/es/src/pro-form/pro-form.vue.mjs +39 -37
  125. package/es/src/pro-form/types/form-item.mjs +1 -0
  126. package/es/src/pro-form/types/form.d.ts +8 -8
  127. package/es/src/pro-table/component-map.mjs +29 -37
  128. package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
  129. package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
  130. package/es/src/pro-table/components/editable/index.mjs +7 -6
  131. package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
  132. package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
  133. package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
  134. package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
  135. package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
  136. package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
  137. package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
  138. package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
  139. package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
  140. package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
  141. package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
  142. package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
  143. package/es/src/pro-table/components/table-action.vue.mjs +2 -2
  144. package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
  145. package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
  146. package/es/src/pro-table/components/table-header.vue.mjs +2 -86
  147. package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
  148. package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
  149. package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
  150. package/es/src/pro-table/components/table-title.vue.mjs +2 -41
  151. package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
  152. package/es/src/pro-table/hooks/use-columns.mjs +5 -5
  153. package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
  154. package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
  155. package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
  156. package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
  157. package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
  158. package/es/src/pro-table/index.mjs +12 -0
  159. package/es/src/pro-table/interface.mjs +1 -0
  160. package/es/src/pro-table/pro-table.vue.mjs +55 -56
  161. package/es/src/pro-table/types/pagination.mjs +1 -0
  162. package/es/src/pro-table/types/table-action.mjs +1 -0
  163. package/es/src/pro-table/types/table.mjs +1 -0
  164. package/es/src/prompt/dialog.vue.mjs +2 -61
  165. package/es/src/prompt/dialog.vue2.mjs +58 -2
  166. package/es/src/prompt/index.mjs +9 -8
  167. package/es/src/prompt/utils.d.ts +3 -3
  168. package/es/src/scroll-bar/bar-item.mjs +4 -4
  169. package/es/src/scroll-bar/index.mjs +5 -3
  170. package/es/src/scroll-bar/interface.mjs +1 -0
  171. package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
  172. package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
  173. package/es/src/strength-meter/index.mjs +5 -3
  174. package/es/src/strength-meter/interface.mjs +1 -0
  175. package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
  176. package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
  177. package/es/src/transition/index.mjs +21 -24
  178. package/es/src/type.d.ts +1 -0
  179. package/es/src/utils/index.d.ts +1 -0
  180. package/es/src/utils/index.mjs +21 -8
  181. package/es/src/utils/tree.mjs +103 -13
  182. package/es/src/utils/uuid.mjs +15 -9
  183. package/lib/index.js +1 -1
  184. package/lib/src/ap-action/group/index.vue.js +1 -1
  185. package/lib/src/ap-action/index.js +1 -1
  186. package/lib/src/ap-action/interface.js +1 -0
  187. package/lib/src/ap-action/item/index.vue.js +1 -1
  188. package/lib/src/ap-action/item/index.vue2.js +1 -1
  189. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  190. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  191. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  192. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  193. package/lib/src/ap-field/date/index.vue.js +1 -1
  194. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  195. package/lib/src/ap-field/index.d.ts +12 -0
  196. package/lib/src/ap-field/index.js +1 -0
  197. package/lib/src/ap-field/interface.d.ts +3 -2
  198. package/lib/src/ap-field/interface.js +1 -0
  199. package/lib/src/ap-field/number/helper.js +1 -1
  200. package/lib/src/ap-field/number/index.vue.js +1 -1
  201. package/lib/src/ap-field/radio/index.vue.js +1 -1
  202. package/lib/src/ap-field/select/index.vue.js +1 -1
  203. package/lib/src/ap-field/switch/index.vue.js +1 -1
  204. package/lib/src/ap-field/text/index.vue.js +1 -1
  205. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  206. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  207. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  208. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  209. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  210. package/lib/src/ap-form/components/interface.d.ts +0 -0
  211. package/lib/src/ap-form/index.d.ts +11 -1682
  212. package/lib/src/ap-form/index.js +1 -1
  213. package/lib/src/base-button/button.vue.js +1 -1
  214. package/lib/src/base-button/button.vue2.js +1 -1
  215. package/lib/src/base-button/index.js +1 -1
  216. package/lib/src/base-button/interface.js +1 -0
  217. package/lib/src/base-button/modal-button.vue.js +1 -1
  218. package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
  219. package/lib/src/basic/arrow.vue.js +1 -1
  220. package/lib/src/basic/arrow.vue2.js +1 -1
  221. package/lib/src/basic/help.vue.js +1 -1
  222. package/lib/src/basic/help.vue2.js +1 -1
  223. package/lib/src/basic/index.js +1 -1
  224. package/lib/src/basic/interface.js +1 -0
  225. package/lib/src/basic/title.vue.js +1 -1
  226. package/lib/src/basic/title.vue2.js +1 -1
  227. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  228. package/lib/src/config-provider/index.js +1 -1
  229. package/lib/src/container/collapse/header.vue.js +1 -1
  230. package/lib/src/container/collapse/header.vue2.js +1 -1
  231. package/lib/src/container/collapse/index.vue.js +1 -1
  232. package/lib/src/container/collapse/index.vue2.js +1 -1
  233. package/lib/src/container/index.js +1 -1
  234. package/lib/src/container/interface.js +1 -0
  235. package/lib/src/container/scroll-container.vue.js +1 -1
  236. package/lib/src/container/scroll-container.vue2.js +1 -1
  237. package/lib/src/count-down/button.vue.js +1 -1
  238. package/lib/src/count-down/button.vue2.js +1 -1
  239. package/lib/src/count-down/index.js +1 -1
  240. package/lib/src/count-down/input.vue.js +1 -1
  241. package/lib/src/count-down/input.vue2.js +1 -1
  242. package/lib/src/count-down/interface.js +1 -0
  243. package/lib/src/cropper/cropper-avatar.vue.js +1 -1
  244. package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
  245. package/lib/src/cropper/cropper-image.vue.js +1 -1
  246. package/lib/src/cropper/cropper-image.vue2.js +1 -1
  247. package/lib/src/cropper/cropper-modal.vue.js +1 -1
  248. package/lib/src/cropper/cropper-modal.vue2.js +1 -1
  249. package/lib/src/cropper/index.js +1 -1
  250. package/lib/src/cropper/interface.js +1 -0
  251. package/lib/src/description/description.vue.js +1 -1
  252. package/lib/src/description/description.vue2.js +1 -1
  253. package/lib/src/description/index.js +1 -1
  254. package/lib/src/description/interface.js +1 -0
  255. package/lib/src/dropdown/dropdown.vue.js +1 -1
  256. package/lib/src/dropdown/dropdown.vue2.js +1 -1
  257. package/lib/src/dropdown/index.js +1 -1
  258. package/lib/src/dropdown/interface.js +1 -0
  259. package/lib/src/hooks/index.js +1 -0
  260. package/lib/src/icon/icon.vue.js +1 -1
  261. package/lib/src/icon/icon.vue2.js +1 -1
  262. package/lib/src/icon/index.js +1 -1
  263. package/lib/src/icon/interface.js +1 -0
  264. package/lib/src/icon/svg-icon.vue.js +1 -1
  265. package/lib/src/icon/svg-icon.vue2.js +1 -1
  266. package/lib/src/icon-picker/icon-picker.vue.js +1 -1
  267. package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
  268. package/lib/src/icon-picker/index.js +1 -1
  269. package/lib/src/icon-picker/interface.js +1 -0
  270. package/lib/src/index.js +1 -1
  271. package/lib/src/locale/index.js +1 -0
  272. package/lib/src/locale/interface.js +1 -0
  273. package/lib/src/modal/basic.vue.js +1 -1
  274. package/lib/src/modal/basic.vue2.js +1 -1
  275. package/lib/src/modal/components/modal-close.vue.js +1 -1
  276. package/lib/src/modal/components/modal-close.vue2.js +1 -1
  277. package/lib/src/modal/components/modal-footer.vue.js +1 -1
  278. package/lib/src/modal/components/modal-footer.vue2.js +1 -1
  279. package/lib/src/modal/components/modal-header.vue.js +1 -1
  280. package/lib/src/modal/components/modal-header.vue2.js +1 -1
  281. package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
  282. package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
  283. package/lib/src/modal/index.js +1 -1
  284. package/lib/src/modal/interface.js +1 -0
  285. package/lib/src/pro-form/component-map.js +1 -1
  286. package/lib/src/pro-form/components/form-action.vue.js +1 -1
  287. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  288. package/lib/src/pro-form/components/form-item.vue.js +1 -1
  289. package/lib/src/pro-form/components/form-item.vue2.js +1 -1
  290. package/lib/src/pro-form/components/interface.js +1 -0
  291. package/lib/src/pro-form/hooks/use-break-point.js +1 -1
  292. package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
  293. package/lib/src/pro-form/hooks/use-component-register.js +1 -0
  294. package/lib/src/pro-form/index.d.ts +1 -0
  295. package/lib/src/pro-form/index.js +1 -1
  296. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  297. package/lib/src/pro-form/pro-form.vue.js +1 -1
  298. package/lib/src/pro-form/types/form-item.js +1 -0
  299. package/lib/src/pro-form/types/form.d.ts +8 -8
  300. package/lib/src/pro-table/component-map.js +1 -1
  301. package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
  302. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  303. package/lib/src/pro-table/components/editable/index.js +1 -1
  304. package/lib/src/pro-table/components/header-cell.vue.js +1 -1
  305. package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
  306. package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
  307. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  308. package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
  309. package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
  310. package/lib/src/pro-table/components/settings/index.vue.js +1 -1
  311. package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
  312. package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
  313. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  314. package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
  315. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  316. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  317. package/lib/src/pro-table/components/table-footer.vue.js +1 -1
  318. package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
  319. package/lib/src/pro-table/components/table-header.vue.js +1 -1
  320. package/lib/src/pro-table/components/table-header.vue2.js +1 -1
  321. package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
  322. package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
  323. package/lib/src/pro-table/components/table-title.vue.js +1 -1
  324. package/lib/src/pro-table/components/table-title.vue2.js +1 -1
  325. package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
  326. package/lib/src/pro-table/hooks/use-table-header.js +1 -1
  327. package/lib/src/pro-table/index.js +1 -0
  328. package/lib/src/pro-table/interface.js +1 -0
  329. package/lib/src/pro-table/pro-table.vue.js +1 -1
  330. package/lib/src/pro-table/types/pagination.js +1 -0
  331. package/lib/src/pro-table/types/table-action.js +1 -0
  332. package/lib/src/pro-table/types/table.js +1 -0
  333. package/lib/src/prompt/dialog.vue.js +1 -1
  334. package/lib/src/prompt/dialog.vue2.js +1 -1
  335. package/lib/src/prompt/index.js +1 -1
  336. package/lib/src/prompt/utils.d.ts +3 -3
  337. package/lib/src/scroll-bar/index.js +1 -1
  338. package/lib/src/scroll-bar/interface.js +1 -0
  339. package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
  340. package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
  341. package/lib/src/strength-meter/index.js +1 -1
  342. package/lib/src/strength-meter/interface.js +1 -0
  343. package/lib/src/strength-meter/strength-meter.vue.js +1 -1
  344. package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
  345. package/lib/src/transition/index.js +1 -1
  346. package/lib/src/type.d.ts +1 -0
  347. package/lib/src/utils/index.d.ts +1 -0
  348. package/lib/src/utils/index.js +1 -1
  349. package/lib/src/utils/tree.js +1 -1
  350. package/lib/src/utils/uuid.js +1 -1
  351. package/package.json +3 -3
@@ -1,63 +1,4 @@
1
- import { defineComponent as f, ref as l, openBlock as h, createBlock as w, unref as o, withCtx as x, createElementVNode as g, normalizeClass as v, createVNode as y } from "vue";
2
- import { Modal as k } from "ant-design-vue";
3
- import "lodash-unified";
4
- import "@ant-design/icons-vue";
5
- import "../config-provider/index.mjs";
6
- import "@fruits-chain/utils";
7
- import "@aplus-frontend/hooks";
8
- import T from "../pro-form/pro-form.vue.mjs";
9
- import { useForm as O } from "../pro-form/hooks/use-form.mjs";
10
- import "./style/dialog.css";
11
- import { useLocale as _ } from "../config-provider/hooks/use-locale.mjs";
12
- import { useNamespace as b } from "../config-provider/hooks/use-namespace.mjs";
13
- const E = /* @__PURE__ */ f({
14
- __name: "dialog",
15
- props: {
16
- title: {},
17
- addFormSchemas: {},
18
- onOK: { type: Function },
19
- width: {},
20
- labelWidth: {},
21
- layout: {}
22
- },
23
- setup(m) {
24
- const t = m, a = l(!0), n = l(!1), { t: i } = _(), { e: s } = b("prompt-dialog"), [c, { validate: p }] = O({
25
- schemas: t.addFormSchemas,
26
- showActionButtonGroup: !1,
27
- labelWidth: t.labelWidth || 80,
28
- layout: t.layout || "horizontal"
29
- });
30
- async function d() {
31
- n.value = !0;
32
- try {
33
- const e = await p();
34
- t.onOK && await t.onOK(e.txt), a.value = !1;
35
- } finally {
36
- n.value = !1;
37
- }
38
- }
39
- return (e, r) => (h(), w(o(k), {
40
- open: a.value,
41
- "onUpdate:open": r[0] || (r[0] = (u) => a.value = u),
42
- title: e.title,
43
- onOk: d,
44
- confirmLoading: n.value,
45
- destroyOnClose: !0,
46
- width: e.width || "500px",
47
- okText: o(i)("ap.common.okText"),
48
- cancelText: o(i)("ap.common.cancelText")
49
- }, {
50
- default: x(() => [
51
- g("div", {
52
- class: v(o(s)("content"))
53
- }, [
54
- y(o(T), { onRegister: o(c) }, null, 8, ["onRegister"])
55
- ], 2)
56
- ]),
57
- _: 1
58
- }, 8, ["open", "title", "confirmLoading", "width", "okText", "cancelText"]));
59
- }
60
- });
1
+ import f from "./dialog.vue2.mjs";
61
2
  export {
62
- E as default
3
+ f as default
63
4
  };
@@ -1,4 +1,60 @@
1
- import f from "./dialog.vue.mjs";
1
+ import { defineComponent as f, ref as l, openBlock as h, createBlock as w, unref as o, withCtx as x, createElementVNode as g, normalizeClass as v, createVNode as y } from "vue";
2
+ import { Modal as k } from "ant-design-vue";
3
+ import "../pro-form/index.mjs";
4
+ import "../config-provider/index.mjs";
5
+ import "./style/dialog.css";
6
+ import { useLocale as T } from "../config-provider/hooks/use-locale.mjs";
7
+ import { useNamespace as O } from "../config-provider/hooks/use-namespace.mjs";
8
+ import { useForm as _ } from "../pro-form/hooks/use-form.mjs";
9
+ import b from "../pro-form/pro-form.vue.mjs";
10
+ const R = /* @__PURE__ */ f({
11
+ __name: "dialog",
12
+ props: {
13
+ title: {},
14
+ addFormSchemas: {},
15
+ onOK: { type: Function },
16
+ width: {},
17
+ labelWidth: {},
18
+ layout: {}
19
+ },
20
+ setup(m) {
21
+ const e = m, a = l(!0), n = l(!1), { t: i } = T(), { e: s } = O("prompt-dialog"), [c, { validate: p }] = _({
22
+ schemas: e.addFormSchemas,
23
+ showActionButtonGroup: !1,
24
+ labelWidth: e.labelWidth || 80,
25
+ layout: e.layout || "horizontal"
26
+ });
27
+ async function d() {
28
+ n.value = !0;
29
+ try {
30
+ const t = await p();
31
+ e.onOK && await e.onOK(t.txt), a.value = !1;
32
+ } finally {
33
+ n.value = !1;
34
+ }
35
+ }
36
+ return (t, r) => (h(), w(o(k), {
37
+ open: a.value,
38
+ "onUpdate:open": r[0] || (r[0] = (u) => a.value = u),
39
+ title: t.title,
40
+ onOk: d,
41
+ confirmLoading: n.value,
42
+ destroyOnClose: !0,
43
+ width: t.width || "500px",
44
+ okText: o(i)("ap.common.okText"),
45
+ cancelText: o(i)("ap.common.cancelText")
46
+ }, {
47
+ default: x(() => [
48
+ g("div", {
49
+ class: v(o(s)("content"))
50
+ }, [
51
+ y(o(b), { onRegister: o(c) }, null, 8, ["onRegister"])
52
+ ], 2)
53
+ ]),
54
+ _: 1
55
+ }, 8, ["open", "title", "confirmLoading", "width", "okText", "cancelText"]));
56
+ }
57
+ });
2
58
  export {
3
- f as default
59
+ R as default
4
60
  };
@@ -1,11 +1,12 @@
1
- import { reactive as a, defineComponent as o, h as d, createVNode as i, render as u } from "vue";
2
- import { genFormSchemas as c } from "./utils.mjs";
3
- import m from "./dialog.vue.mjs";
4
- function g(r) {
1
+ import { reactive as a, defineComponent as o, h as i, createVNode as d, render as u } from "vue";
2
+ import { genFormSchemas as m } from "./utils.mjs";
3
+ import "./dialog.vue.mjs";
4
+ import c from "./dialog.vue2.mjs";
5
+ function N(r) {
5
6
  let e = null;
6
7
  const t = a({
7
8
  ...r,
8
- addFormSchemas: c({
9
+ addFormSchemas: m({
9
10
  label: r.label,
10
11
  required: r.required,
11
12
  inputType: r.inputType,
@@ -13,10 +14,10 @@ function g(r) {
13
14
  })
14
15
  }), n = o({
15
16
  render() {
16
- return d(m, { ...t });
17
+ return i(c, { ...t });
17
18
  }
18
19
  });
19
- e = i(n), u(e, document.createElement("div"));
20
+ e = d(n), u(e, document.createElement("div"));
20
21
  function l() {
21
22
  e != null && e.el && e.el.parentNode && e.el.parentNode.removeChild(e.el);
22
23
  }
@@ -29,5 +30,5 @@ function g(r) {
29
30
  };
30
31
  }
31
32
  export {
32
- g as createPrompt
33
+ N as createPrompt
33
34
  };
@@ -1,5 +1,5 @@
1
- import { FormSchema } from '../pro-form';
2
-
1
+ import { ComponentFormSchema } from '../pro-form';
2
+ import { ComponentProps } from '../pro-form/types';
3
3
  type InputType = 'InputTextArea' | 'InputNumber' | 'Input';
4
4
  interface GenFormSchemasOptions {
5
5
  label?: string;
@@ -7,5 +7,5 @@ interface GenFormSchemasOptions {
7
7
  inputType?: InputType;
8
8
  defaultValue?: string | number;
9
9
  }
10
- export declare function genFormSchemas({ label, required, inputType, defaultValue }: GenFormSchemasOptions): FormSchema[];
10
+ export declare function genFormSchemas({ label, required, inputType, defaultValue }: GenFormSchemasOptions): ComponentFormSchema<keyof ComponentProps, any>[];
11
11
  export {};
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, getCurrentInstance as k, ref as m, inject as H, computed as M, onUnmounted as R, h as b } from "vue";
2
- import { off as h, on as P } from "@aplus-frontend/utils";
2
+ import { on as h, off as P } from "@aplus-frontend/utils";
3
3
  import { BAR_MAP as T, renderThumbStyle as x } from "./utils.mjs";
4
4
  import "./style/bar-item.css";
5
5
  import "../config-provider/index.mjs";
@@ -25,7 +25,7 @@ const { e: w, is: A } = y("scrollbar"), _ = S({
25
25
  ), i = r.value[e.value.offset] / 2, v = (l - i) * 100 / ((u = o == null ? void 0 : o.vnode.el) == null ? void 0 : u[e.value.offset]);
26
26
  n.value[e.value.scroll] = v * n.value[e.value.scrollSize] / 100;
27
27
  }, C = (t) => {
28
- t.stopImmediatePropagation(), c.value = !0, P(document, "mousemove", f), P(document, "mouseup", d), document.onselectstart = () => !1;
28
+ t.stopImmediatePropagation(), c.value = !0, h(document, "mousemove", f), h(document, "mouseup", d), document.onselectstart = () => !1;
29
29
  }, f = (t) => {
30
30
  var g, p;
31
31
  if (c.value === !1)
@@ -37,10 +37,10 @@ const { e: w, is: A } = y("scrollbar"), _ = S({
37
37
  n.value[e.value.scroll] = u * n.value[e.value.scrollSize] / 100;
38
38
  };
39
39
  function d() {
40
- c.value = !1, s.value[e.value.axis] = 0, h(document, "mousemove", f), document.onselectstart = null;
40
+ c.value = !1, s.value[e.value.axis] = 0, P(document, "mousemove", f), document.onselectstart = null;
41
41
  }
42
42
  return R(() => {
43
- h(document, "mouseup", d);
43
+ P(document, "mouseup", d);
44
44
  }), () => b(
45
45
  "div",
46
46
  {
@@ -1,6 +1,8 @@
1
- import o from "./scroll-bar.vue.mjs";
2
- import { withInstall as r } from "@aplus-frontend/utils";
3
- const l = r(o);
1
+ import "./scroll-bar.vue.mjs";
2
+ import { withInstall as o } from "@aplus-frontend/utils";
3
+ import "./interface.mjs";
4
+ import r from "./scroll-bar.vue2.mjs";
5
+ const l = o(r);
4
6
  export {
5
7
  l as Scrollbar,
6
8
  l as default
@@ -0,0 +1 @@
1
+
@@ -1,86 +1,4 @@
1
- import { defineComponent as W, computed as V, ref as a, provide as _, watch as P, onMounted as R, nextTick as T, unref as e, onBeforeUnmount as A, openBlock as c, createElementBlock as w, normalizeClass as u, createElementVNode as D, normalizeStyle as z, createBlock as F, resolveDynamicComponent as G, withCtx as M, renderSlot as U, Fragment as X, createVNode as g, createCommentVNode as Y } from "vue";
2
- import { addResizeListener as y, removeResizeListener as C } from "@aplus-frontend/utils";
3
- import b from "./bar-item.mjs";
4
- import "./style/index.css";
5
- import "../config-provider/index.mjs";
6
- import { useGlobalConfig as $ } from "../config-provider/hooks/use-global-config.mjs";
7
- import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
8
- const x = /* @__PURE__ */ W({
9
- name: "ApScrollbar",
10
- __name: "scroll-bar",
11
- props: {
12
- native: { type: Boolean },
13
- wrapStyle: { default: "" },
14
- wrapClass: { default: "" },
15
- viewClass: { default: "" },
16
- viewStyle: { default: "" },
17
- noresize: { type: Boolean },
18
- tag: { default: "div" },
19
- scrollHeight: { default: 0 }
20
- },
21
- setup(S, { expose: k }) {
22
- var h;
23
- const B = $(), s = S, H = !!((h = B.value.scrollbar) != null && h.native), r = V(() => s.native || H), v = a("0"), m = a("0"), d = a(0), f = a(0), t = a(), i = a(), { b: N, e: p, em: L } = j("scrollbar");
24
- _("scroll-bar-wrap", t);
25
- const E = () => {
26
- r.value || (f.value = e(t).scrollTop * 100 / e(t).clientHeight, d.value = e(t).scrollLeft * 100 / e(t).clientWidth);
27
- }, o = () => {
28
- if (!e(t))
29
- return;
30
- const l = e(t).clientHeight * 100 / e(t).scrollHeight, n = e(t).clientWidth * 100 / e(t).scrollWidth;
31
- m.value = l < 100 ? l + "%" : "", v.value = n < 100 ? n + "%" : "";
32
- };
33
- return P(
34
- () => s.scrollHeight,
35
- () => {
36
- r.value || o();
37
- }
38
- ), k({
39
- wrap: t
40
- }), R(() => {
41
- r.value || (T(o), s.noresize || (y(e(i), o), y(e(t), o), addEventListener("resize", o)));
42
- }), A(() => {
43
- r.value || s.noresize || (C(e(i), o), C(e(t), o), removeEventListener("resize", o));
44
- }), (l, n) => (c(), w("div", {
45
- class: u(e(N)())
46
- }, [
47
- D("div", {
48
- ref_key: "wrap",
49
- ref: t,
50
- class: u([
51
- l.wrapClass,
52
- e(p)("wrap"),
53
- r.value ? "" : e(L)("wrap", "hidden-default")
54
- ]),
55
- style: z(l.wrapStyle),
56
- onScroll: E
57
- }, [
58
- (c(), F(G(l.tag), {
59
- ref_key: "resize",
60
- ref: i,
61
- class: u([e(p)("view"), l.viewClass]),
62
- style: z(l.viewStyle)
63
- }, {
64
- default: M(() => [
65
- U(l.$slots, "default")
66
- ]),
67
- _: 3
68
- }, 8, ["class", "style"]))
69
- ], 38),
70
- r.value ? Y("", !0) : (c(), w(X, { key: 0 }, [
71
- g(e(b), {
72
- move: d.value,
73
- size: v.value
74
- }, null, 8, ["move", "size"]),
75
- g(e(b), {
76
- vertical: "",
77
- move: f.value,
78
- size: m.value
79
- }, null, 8, ["move", "size"])
80
- ], 64))
81
- ], 2));
82
- }
83
- });
1
+ import f from "./scroll-bar.vue2.mjs";
84
2
  export {
85
- x as default
3
+ f as default
86
4
  };
@@ -1,4 +1,86 @@
1
- import f from "./scroll-bar.vue.mjs";
1
+ import { defineComponent as W, computed as V, ref as a, provide as _, unref as e, watch as P, onMounted as R, nextTick as T, onBeforeUnmount as A, openBlock as c, createElementBlock as w, normalizeClass as u, createElementVNode as D, normalizeStyle as z, createBlock as F, resolveDynamicComponent as G, withCtx as M, renderSlot as U, Fragment as X, createVNode as g, createCommentVNode as Y } from "vue";
2
+ import { addResizeListener as y, removeResizeListener as C } from "@aplus-frontend/utils";
3
+ import b from "./bar-item.mjs";
4
+ import "./style/index.css";
5
+ import "../config-provider/index.mjs";
6
+ import { useGlobalConfig as $ } from "../config-provider/hooks/use-global-config.mjs";
7
+ import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
8
+ const x = /* @__PURE__ */ W({
9
+ name: "ApScrollbar",
10
+ __name: "scroll-bar",
11
+ props: {
12
+ native: { type: Boolean },
13
+ wrapStyle: { default: "" },
14
+ wrapClass: { default: "" },
15
+ viewClass: { default: "" },
16
+ viewStyle: { default: "" },
17
+ noresize: { type: Boolean },
18
+ tag: { default: "div" },
19
+ scrollHeight: { default: 0 }
20
+ },
21
+ setup(S, { expose: k }) {
22
+ var h;
23
+ const B = $(), s = S, H = !!((h = B.value.scrollbar) != null && h.native), r = V(() => s.native || H), v = a("0"), m = a("0"), d = a(0), f = a(0), t = a(), i = a(), { b: N, e: p, em: L } = j("scrollbar");
24
+ _("scroll-bar-wrap", t);
25
+ const E = () => {
26
+ r.value || (f.value = e(t).scrollTop * 100 / e(t).clientHeight, d.value = e(t).scrollLeft * 100 / e(t).clientWidth);
27
+ }, o = () => {
28
+ if (!e(t))
29
+ return;
30
+ const l = e(t).clientHeight * 100 / e(t).scrollHeight, n = e(t).clientWidth * 100 / e(t).scrollWidth;
31
+ m.value = l < 100 ? l + "%" : "", v.value = n < 100 ? n + "%" : "";
32
+ };
33
+ return P(
34
+ () => s.scrollHeight,
35
+ () => {
36
+ r.value || o();
37
+ }
38
+ ), k({
39
+ wrap: t
40
+ }), R(() => {
41
+ r.value || (T(o), s.noresize || (y(e(i), o), y(e(t), o), addEventListener("resize", o)));
42
+ }), A(() => {
43
+ r.value || s.noresize || (C(e(i), o), C(e(t), o), removeEventListener("resize", o));
44
+ }), (l, n) => (c(), w("div", {
45
+ class: u(e(N)())
46
+ }, [
47
+ D("div", {
48
+ ref_key: "wrap",
49
+ ref: t,
50
+ class: u([
51
+ l.wrapClass,
52
+ e(p)("wrap"),
53
+ r.value ? "" : e(L)("wrap", "hidden-default")
54
+ ]),
55
+ style: z(l.wrapStyle),
56
+ onScroll: E
57
+ }, [
58
+ (c(), F(G(l.tag), {
59
+ ref_key: "resize",
60
+ ref: i,
61
+ class: u([e(p)("view"), l.viewClass]),
62
+ style: z(l.viewStyle)
63
+ }, {
64
+ default: M(() => [
65
+ U(l.$slots, "default")
66
+ ]),
67
+ _: 3
68
+ }, 8, ["class", "style"]))
69
+ ], 38),
70
+ r.value ? Y("", !0) : (c(), w(X, { key: 0 }, [
71
+ g(e(b), {
72
+ move: d.value,
73
+ size: v.value
74
+ }, null, 8, ["move", "size"]),
75
+ g(e(b), {
76
+ vertical: "",
77
+ move: f.value,
78
+ size: m.value
79
+ }, null, 8, ["move", "size"])
80
+ ], 64))
81
+ ], 2));
82
+ }
83
+ });
2
84
  export {
3
- f as default
85
+ x as default
4
86
  };
@@ -1,6 +1,8 @@
1
- import t from "./strength-meter.vue.mjs";
2
- import { withInstall as r } from "@aplus-frontend/utils";
3
- const e = r(t);
1
+ import "./strength-meter.vue.mjs";
2
+ import { withInstall as t } from "@aplus-frontend/utils";
3
+ import "./interface.mjs";
4
+ import r from "./strength-meter.vue2.mjs";
5
+ const e = t(r);
4
6
  export {
5
7
  e as StrengthMeter
6
8
  };
@@ -1,63 +1,4 @@
1
- import { defineComponent as v, ref as b, computed as w, unref as t, watchEffect as C, watch as k, openBlock as c, createElementBlock as B, normalizeClass as o, createBlock as P, mergeProps as V, createSlots as y, renderList as S, withCtx as _, renderSlot as z, normalizeProps as E, guardReactiveProps as I, createCommentVNode as N, createElementVNode as u } from "vue";
2
- import { Input as $ } from "ant-design-vue";
3
- import { zxcvbn as R } from "@zxcvbn-ts/core";
4
- import "../config-provider/index.mjs";
5
- import "./style/index.css";
6
- import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
7
- const A = ["data-score"], G = /* @__PURE__ */ v({
8
- name: "ApStrengthMeter",
9
- __name: "strength-meter",
10
- props: {
11
- value: {},
12
- showInput: { type: Boolean, default: !0 },
13
- disabled: { type: Boolean }
14
- },
15
- emits: ["score-change", "change"],
16
- setup(i, { emit: m }) {
17
- const s = i, n = m, r = b(""), { b: l, bm: d } = j("strength-meter"), p = w(() => {
18
- const { disabled: e } = s;
19
- if (e)
20
- return -1;
21
- const a = t(r) ? R(t(r)).score : -1;
22
- return n("score-change", a), a;
23
- });
24
- function h(e) {
25
- n("change", e.target.value), r.value = e.target.value || "";
26
- }
27
- return C(() => {
28
- r.value = s.value || "";
29
- }), k(
30
- () => t(r),
31
- (e) => {
32
- n("change", e);
33
- }
34
- ), (e, f) => (c(), B("div", {
35
- class: o(t(l)())
36
- }, [
37
- e.showInput ? (c(), P(t($).Password, V({ key: 0 }, e.$attrs, {
38
- allowClear: "",
39
- value: r.value,
40
- onChange: h,
41
- disabled: e.disabled
42
- }), y({ _: 2 }, [
43
- S(Object.keys(e.$slots), (a) => ({
44
- name: a,
45
- fn: _((g) => [
46
- z(e.$slots, a, E(I(g || {})))
47
- ])
48
- }))
49
- ]), 1040, ["value", "disabled"])) : N("", !0),
50
- u("div", {
51
- class: o(t(l)("bar"))
52
- }, [
53
- u("div", {
54
- class: o(t(d)("bar", "fill")),
55
- "data-score": p.value
56
- }, null, 10, A)
57
- ], 2)
58
- ], 2));
59
- }
60
- });
1
+ import f from "./strength-meter.vue2.mjs";
61
2
  export {
62
- G as default
3
+ f as default
63
4
  };
@@ -1,4 +1,63 @@
1
- import f from "./strength-meter.vue.mjs";
1
+ import { defineComponent as v, ref as b, computed as w, unref as t, watchEffect as C, watch as k, openBlock as c, createElementBlock as B, normalizeClass as o, createBlock as P, mergeProps as V, createSlots as y, renderList as S, withCtx as _, renderSlot as z, normalizeProps as E, guardReactiveProps as I, createCommentVNode as N, createElementVNode as u } from "vue";
2
+ import { Input as $ } from "ant-design-vue";
3
+ import { zxcvbn as R } from "@zxcvbn-ts/core";
4
+ import "../config-provider/index.mjs";
5
+ import "./style/index.css";
6
+ import { useNamespace as j } from "../config-provider/hooks/use-namespace.mjs";
7
+ const A = ["data-score"], G = /* @__PURE__ */ v({
8
+ name: "ApStrengthMeter",
9
+ __name: "strength-meter",
10
+ props: {
11
+ value: {},
12
+ showInput: { type: Boolean, default: !0 },
13
+ disabled: { type: Boolean }
14
+ },
15
+ emits: ["score-change", "change"],
16
+ setup(i, { emit: m }) {
17
+ const s = i, n = m, r = b(""), { b: l, bm: d } = j("strength-meter"), p = w(() => {
18
+ const { disabled: e } = s;
19
+ if (e)
20
+ return -1;
21
+ const a = t(r) ? R(t(r)).score : -1;
22
+ return n("score-change", a), a;
23
+ });
24
+ function h(e) {
25
+ n("change", e.target.value), r.value = e.target.value || "";
26
+ }
27
+ return C(() => {
28
+ r.value = s.value || "";
29
+ }), k(
30
+ () => t(r),
31
+ (e) => {
32
+ n("change", e);
33
+ }
34
+ ), (e, f) => (c(), B("div", {
35
+ class: o(t(l)())
36
+ }, [
37
+ e.showInput ? (c(), P(t($).Password, V({ key: 0 }, e.$attrs, {
38
+ allowClear: "",
39
+ value: r.value,
40
+ onChange: h,
41
+ disabled: e.disabled
42
+ }), y({ _: 2 }, [
43
+ S(Object.keys(e.$slots), (a) => ({
44
+ name: a,
45
+ fn: _((g) => [
46
+ z(e.$slots, a, E(I(g || {})))
47
+ ])
48
+ }))
49
+ ]), 1040, ["value", "disabled"])) : N("", !0),
50
+ u("div", {
51
+ class: o(t(l)("bar"))
52
+ }, [
53
+ u("div", {
54
+ class: o(t(d)("bar", "fill")),
55
+ "data-score": p.value
56
+ }, null, 10, A)
57
+ ], 2)
58
+ ], 2));
59
+ }
60
+ });
2
61
  export {
3
- f as default
62
+ G as default
4
63
  };
@@ -1,38 +1,35 @@
1
1
  import { createSimpleTransition as n, createJavascriptTransition as i } from "./create-transition.mjs";
2
2
  import t from "./expand-transition.mjs";
3
- import "vue";
4
- import "@aplus-frontend/utils";
5
- import "../config-provider/index.mjs";
6
- import "./style/collapse.css";
7
- const c = n("fade-transition"), T = n("scale-transition"), d = n("slide-y-transition"), p = n("scroll-y-transition"), x = n(
3
+ import "./collapse-transition.vue2.mjs";
4
+ const e = n("fade-transition"), a = n("scale-transition"), l = n("slide-y-transition"), c = n("scroll-y-transition"), T = n(
8
5
  "slide-y-reverse-transition"
9
- ), S = n(
6
+ ), d = n(
10
7
  "scroll-y-reverse-transition"
11
- ), m = n("slide-x-transition"), v = n("scroll-x-transition"), R = n(
8
+ ), p = n("slide-x-transition"), x = n("scroll-x-transition"), S = n(
12
9
  "slide-x-reverse-transition"
13
- ), X = n(
10
+ ), v = n(
14
11
  "scroll-x-reverse-transition"
15
- ), y = n(
12
+ ), m = n(
16
13
  "scale-rotate-transition"
17
- ), Y = i(
14
+ ), R = i(
18
15
  "expand-x-transition",
19
16
  t("", !0)
20
- ), f = i(
17
+ ), X = i(
21
18
  "expand-transition",
22
19
  t("")
23
20
  );
24
21
  export {
25
- f as ExpandTransition,
26
- Y as ExpandXTransition,
27
- c as FadeTransition,
28
- y as ScaleRotateTransition,
29
- T as ScaleTransition,
30
- X as ScrollXReverseTransition,
31
- v as ScrollXTransition,
32
- S as ScrollYReverseTransition,
33
- p as ScrollYTransition,
34
- R as SlideXReverseTransition,
35
- m as SlideXTransition,
36
- x as SlideYReverseTransition,
37
- d as SlideYTransition
22
+ X as ExpandTransition,
23
+ R as ExpandXTransition,
24
+ e as FadeTransition,
25
+ m as ScaleRotateTransition,
26
+ a as ScaleTransition,
27
+ v as ScrollXReverseTransition,
28
+ x as ScrollXTransition,
29
+ d as ScrollYReverseTransition,
30
+ c as ScrollYTransition,
31
+ S as SlideXReverseTransition,
32
+ p as SlideXTransition,
33
+ T as SlideYReverseTransition,
34
+ l as SlideYTransition
38
35
  };
package/es/src/type.d.ts CHANGED
@@ -26,4 +26,5 @@ export type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRe
26
26
  export type EmitType = ReturnType<typeof defineEmits>;
27
27
  type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
28
28
  export type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode;
29
+ export type LiteralUnion<T extends U, U> = T | (U & {});
29
30
  export {};
@@ -11,3 +11,4 @@ export declare function getDynamicProps<T extends Record<string, unknown>, U>(pr
11
11
  * @returns
12
12
  */
13
13
  export declare function omitWhen<T extends object, K extends keyof T>(obj: T, fieldList?: K[], when?: (field: string, fieldValue: T[K]) => boolean): Omit<T, K>;
14
+ export declare function isPascalCase(str: string): boolean;
@@ -1,18 +1,31 @@
1
- import { unref as r } from "vue";
2
- function o(t) {
1
+ import { unref as s } from "vue";
2
+ function f(t) {
3
3
  return (t == null ? void 0 : t.parentNode) ?? document.body;
4
4
  }
5
- function f(t) {
5
+ function a(t) {
6
6
  return typeof t < "u";
7
7
  }
8
- function i(t) {
8
+ function l(t) {
9
9
  const n = {};
10
10
  return Object.keys(t).map((e) => {
11
- n[e] = r(t[e]);
11
+ n[e] = s(t[e]);
12
12
  }), n;
13
13
  }
14
+ function p(t, n = [], e) {
15
+ const r = Object.assign({}, t), i = Object.keys(r);
16
+ for (let c = 0; c < i.length; c += 1) {
17
+ const o = i[c];
18
+ (n.includes(o) || e != null && e(o, r[o])) && delete r[o];
19
+ }
20
+ return r;
21
+ }
22
+ function g(t) {
23
+ return /^[A-Z][A-Za-z]*$/.test(t);
24
+ }
14
25
  export {
15
- i as getDynamicProps,
16
- o as getPopupContainer,
17
- f as isDef
26
+ l as getDynamicProps,
27
+ f as getPopupContainer,
28
+ a as isDef,
29
+ g as isPascalCase,
30
+ p as omitWhen
18
31
  };