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

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 (406) hide show
  1. package/es/index.mjs +163 -156
  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.d.ts +5 -5
  23. package/es/src/ap-field/text/index.vue.mjs +29 -29
  24. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  25. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
  26. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
  27. package/es/src/ap-form/ap-form-item.vue.d.ts +3 -0
  28. package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
  29. package/es/src/ap-form/ap-form-item.vue2.mjs +80 -2
  30. package/es/src/ap-form/index.d.ts +31 -1682
  31. package/es/src/ap-form/index.mjs +12 -7
  32. package/es/src/ap-form/interface.d.ts +3 -1
  33. package/es/src/ap-form/items/index.d.ts +3 -0
  34. package/es/src/ap-form/items/index.mjs +1 -0
  35. package/es/src/ap-form/items/interface.d.ts +12 -0
  36. package/es/src/ap-form/items/text/index.vue.d.ts +69 -0
  37. package/es/src/ap-form/items/text/index.vue.mjs +102 -0
  38. package/es/src/ap-form/items/text/index.vue2.mjs +4 -0
  39. package/es/src/ap-form/style/ap-form-item.css +4 -0
  40. package/es/src/base-button/button.vue.mjs +2 -58
  41. package/es/src/base-button/button.vue2.mjs +59 -2
  42. package/es/src/base-button/index.mjs +8 -8
  43. package/es/src/base-button/interface.mjs +1 -0
  44. package/es/src/base-button/modal-button.vue.mjs +12 -11
  45. package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
  46. package/es/src/basic/arrow.vue.mjs +2 -38
  47. package/es/src/basic/arrow.vue2.mjs +38 -2
  48. package/es/src/basic/help.vue.mjs +2 -96
  49. package/es/src/basic/help.vue2.mjs +96 -2
  50. package/es/src/basic/index.mjs +11 -7
  51. package/es/src/basic/interface.mjs +1 -0
  52. package/es/src/basic/title.vue.mjs +2 -32
  53. package/es/src/basic/title.vue2.mjs +33 -2
  54. package/es/src/config-provider/config-provider-props.d.ts +4 -0
  55. package/es/src/config-provider/config-provider-props.mjs +6 -2
  56. package/es/src/config-provider/config-provider.d.ts +9 -0
  57. package/es/src/config-provider/config-provider.mjs +20 -16
  58. package/es/src/config-provider/hooks/use-global-config.d.ts +4 -0
  59. package/es/src/config-provider/hooks/use-locale.mjs +1 -0
  60. package/es/src/config-provider/index.d.ts +19 -0
  61. package/es/src/config-provider/index.mjs +26 -13
  62. package/es/src/container/collapse/header.vue.mjs +2 -49
  63. package/es/src/container/collapse/header.vue2.mjs +49 -2
  64. package/es/src/container/collapse/index.vue.mjs +2 -85
  65. package/es/src/container/collapse/index.vue2.mjs +86 -2
  66. package/es/src/container/collapse/style/header.css +1 -1
  67. package/es/src/container/collapse/style/index.css +1 -1
  68. package/es/src/container/index.mjs +8 -5
  69. package/es/src/container/interface.mjs +1 -0
  70. package/es/src/container/scroll-container.vue.mjs +2 -60
  71. package/es/src/container/scroll-container.vue2.mjs +60 -2
  72. package/es/src/count-down/button.vue.mjs +2 -44
  73. package/es/src/count-down/button.vue2.mjs +44 -2
  74. package/es/src/count-down/index.mjs +8 -5
  75. package/es/src/count-down/input.vue.mjs +2 -44
  76. package/es/src/count-down/input.vue2.mjs +45 -2
  77. package/es/src/count-down/interface.mjs +1 -0
  78. package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
  79. package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
  80. package/es/src/cropper/cropper-image.vue.mjs +2 -129
  81. package/es/src/cropper/cropper-image.vue2.mjs +129 -2
  82. package/es/src/cropper/cropper-modal.vue.mjs +2 -270
  83. package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
  84. package/es/src/cropper/index.mjs +8 -5
  85. package/es/src/cropper/interface.mjs +1 -0
  86. package/es/src/cropper/style/avatar.css +1 -1
  87. package/es/src/cropper/style/modal.css +2 -2
  88. package/es/src/description/description.vue.mjs +2 -169
  89. package/es/src/description/description.vue2.mjs +169 -2
  90. package/es/src/description/index.mjs +8 -5
  91. package/es/src/description/interface.mjs +1 -0
  92. package/es/src/dropdown/dropdown.vue.mjs +2 -92
  93. package/es/src/dropdown/dropdown.vue2.mjs +92 -2
  94. package/es/src/dropdown/index.mjs +5 -3
  95. package/es/src/dropdown/interface.mjs +1 -0
  96. package/es/src/hooks/index.mjs +6 -0
  97. package/es/src/hooks/useMessage.mjs +1 -1
  98. package/es/src/icon/icon.vue.mjs +2 -66
  99. package/es/src/icon/icon.vue2.mjs +67 -2
  100. package/es/src/icon/index.mjs +8 -5
  101. package/es/src/icon/interface.mjs +1 -0
  102. package/es/src/icon/svg-icon.vue.mjs +2 -32
  103. package/es/src/icon/svg-icon.vue2.mjs +32 -2
  104. package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
  105. package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
  106. package/es/src/icon-picker/index.mjs +7 -5
  107. package/es/src/icon-picker/interface.mjs +1 -0
  108. package/es/src/index.mjs +163 -155
  109. package/es/src/locale/index.mjs +7 -0
  110. package/es/src/locale/interface.mjs +1 -0
  111. package/es/src/modal/basic.vue.mjs +2 -195
  112. package/es/src/modal/basic.vue2.mjs +199 -2
  113. package/es/src/modal/components/modal-close.vue.mjs +2 -72
  114. package/es/src/modal/components/modal-close.vue2.mjs +72 -2
  115. package/es/src/modal/components/modal-footer.vue.mjs +2 -43
  116. package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
  117. package/es/src/modal/components/modal-header.vue.mjs +1 -18
  118. package/es/src/modal/components/modal-header.vue2.mjs +18 -1
  119. package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
  120. package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
  121. package/es/src/modal/components/modal.mjs +6 -6
  122. package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
  123. package/es/src/modal/hooks/use-modal.mjs +8 -8
  124. package/es/src/modal/index.mjs +10 -7
  125. package/es/src/modal/interface.mjs +1 -0
  126. package/es/src/modal/style/index.css +1 -1
  127. package/es/src/pro-form/component-map.mjs +56 -41
  128. package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
  129. package/es/src/pro-form/components/form-action.vue.mjs +2 -105
  130. package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
  131. package/es/src/pro-form/components/form-item.vue.mjs +2 -352
  132. package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
  133. package/es/src/pro-form/components/interface.mjs +1 -0
  134. package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
  135. package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
  136. package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
  137. package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
  138. package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
  139. package/es/src/pro-form/hooks/use-form.mjs +4 -4
  140. package/es/src/pro-form/index.d.ts +1 -0
  141. package/es/src/pro-form/index.mjs +34 -34
  142. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  143. package/es/src/pro-form/pro-form.vue.mjs +39 -37
  144. package/es/src/pro-form/types/form-item.mjs +1 -0
  145. package/es/src/pro-form/types/form.d.ts +8 -8
  146. package/es/src/pro-table/component-map.mjs +29 -37
  147. package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
  148. package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
  149. package/es/src/pro-table/components/editable/index.mjs +7 -6
  150. package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
  151. package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
  152. package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
  153. package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
  154. package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
  155. package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
  156. package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
  157. package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
  158. package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
  159. package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
  160. package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
  161. package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
  162. package/es/src/pro-table/components/table-action.vue.mjs +2 -2
  163. package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
  164. package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
  165. package/es/src/pro-table/components/table-header.vue.mjs +2 -86
  166. package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
  167. package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
  168. package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
  169. package/es/src/pro-table/components/table-title.vue.mjs +2 -41
  170. package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
  171. package/es/src/pro-table/hooks/use-columns.mjs +5 -5
  172. package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
  173. package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
  174. package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
  175. package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
  176. package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
  177. package/es/src/pro-table/index.mjs +12 -0
  178. package/es/src/pro-table/interface.d.ts +1 -1
  179. package/es/src/pro-table/interface.mjs +1 -0
  180. package/es/src/pro-table/pro-table.vue.d.ts +3 -0
  181. package/es/src/pro-table/pro-table.vue.mjs +69 -70
  182. package/es/src/pro-table/types/pagination.mjs +1 -0
  183. package/es/src/pro-table/types/table-action.mjs +1 -0
  184. package/es/src/pro-table/types/table.mjs +1 -0
  185. package/es/src/prompt/dialog.vue.mjs +2 -61
  186. package/es/src/prompt/dialog.vue2.mjs +58 -2
  187. package/es/src/prompt/index.mjs +9 -8
  188. package/es/src/prompt/utils.d.ts +3 -3
  189. package/es/src/scroll-bar/bar-item.mjs +4 -4
  190. package/es/src/scroll-bar/index.mjs +5 -3
  191. package/es/src/scroll-bar/interface.mjs +1 -0
  192. package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
  193. package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
  194. package/es/src/strength-meter/index.mjs +5 -3
  195. package/es/src/strength-meter/interface.mjs +1 -0
  196. package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
  197. package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
  198. package/es/src/theme/ap-form/ap-form-item.css +4 -0
  199. package/es/src/theme/collapse-container/header.css +1 -1
  200. package/es/src/theme/collapse-container/index.css +1 -1
  201. package/es/src/theme/cropper/avatar.css +1 -1
  202. package/es/src/theme/cropper/modal.css +2 -2
  203. package/es/src/theme/modal/index.css +1 -1
  204. package/es/src/transition/index.mjs +21 -24
  205. package/es/src/type.d.ts +1 -0
  206. package/es/src/utils/index.d.ts +1 -0
  207. package/es/src/utils/index.mjs +21 -8
  208. package/es/src/utils/tree.mjs +103 -13
  209. package/es/src/utils/uuid.mjs +15 -9
  210. package/lib/index.js +1 -1
  211. package/lib/src/ap-action/group/index.vue.js +1 -1
  212. package/lib/src/ap-action/index.js +1 -1
  213. package/lib/src/ap-action/interface.js +1 -0
  214. package/lib/src/ap-action/item/index.vue.js +1 -1
  215. package/lib/src/ap-action/item/index.vue2.js +1 -1
  216. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  217. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  218. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  219. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  220. package/lib/src/ap-field/date/index.vue.js +1 -1
  221. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  222. package/lib/src/ap-field/index.d.ts +12 -0
  223. package/lib/src/ap-field/index.js +1 -0
  224. package/lib/src/ap-field/interface.d.ts +3 -2
  225. package/lib/src/ap-field/interface.js +1 -0
  226. package/lib/src/ap-field/number/helper.js +1 -1
  227. package/lib/src/ap-field/number/index.vue.js +1 -1
  228. package/lib/src/ap-field/radio/index.vue.js +1 -1
  229. package/lib/src/ap-field/select/index.vue.js +1 -1
  230. package/lib/src/ap-field/switch/index.vue.js +1 -1
  231. package/lib/src/ap-field/text/index.vue.d.ts +5 -5
  232. package/lib/src/ap-field/text/index.vue.js +1 -1
  233. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  234. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  235. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  236. package/lib/src/ap-form/ap-form-item.vue.d.ts +3 -0
  237. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  238. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  239. package/lib/src/ap-form/index.d.ts +31 -1682
  240. package/lib/src/ap-form/index.js +1 -1
  241. package/lib/src/ap-form/interface.d.ts +3 -1
  242. package/lib/src/ap-form/items/index.d.ts +3 -0
  243. package/lib/src/ap-form/items/index.js +1 -0
  244. package/lib/src/ap-form/items/interface.d.ts +12 -0
  245. package/lib/src/ap-form/items/text/index.vue.d.ts +69 -0
  246. package/lib/src/ap-form/items/text/index.vue.js +1 -0
  247. package/lib/src/ap-form/items/text/index.vue2.js +1 -0
  248. package/lib/src/ap-form/style/ap-form-item.css +4 -0
  249. package/lib/src/base-button/button.vue.js +1 -1
  250. package/lib/src/base-button/button.vue2.js +1 -1
  251. package/lib/src/base-button/index.js +1 -1
  252. package/lib/src/base-button/interface.js +1 -0
  253. package/lib/src/base-button/modal-button.vue.js +1 -1
  254. package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
  255. package/lib/src/basic/arrow.vue.js +1 -1
  256. package/lib/src/basic/arrow.vue2.js +1 -1
  257. package/lib/src/basic/help.vue.js +1 -1
  258. package/lib/src/basic/help.vue2.js +1 -1
  259. package/lib/src/basic/index.js +1 -1
  260. package/lib/src/basic/interface.js +1 -0
  261. package/lib/src/basic/title.vue.js +1 -1
  262. package/lib/src/basic/title.vue2.js +1 -1
  263. package/lib/src/config-provider/config-provider-props.d.ts +4 -0
  264. package/lib/src/config-provider/config-provider-props.js +1 -1
  265. package/lib/src/config-provider/config-provider.d.ts +9 -0
  266. package/lib/src/config-provider/config-provider.js +1 -1
  267. package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -0
  268. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  269. package/lib/src/config-provider/index.d.ts +19 -0
  270. package/lib/src/config-provider/index.js +1 -1
  271. package/lib/src/container/collapse/header.vue.js +1 -1
  272. package/lib/src/container/collapse/header.vue2.js +1 -1
  273. package/lib/src/container/collapse/index.vue.js +1 -1
  274. package/lib/src/container/collapse/index.vue2.js +1 -1
  275. package/lib/src/container/collapse/style/header.css +1 -1
  276. package/lib/src/container/collapse/style/index.css +1 -1
  277. package/lib/src/container/index.js +1 -1
  278. package/lib/src/container/interface.js +1 -0
  279. package/lib/src/container/scroll-container.vue.js +1 -1
  280. package/lib/src/container/scroll-container.vue2.js +1 -1
  281. package/lib/src/count-down/button.vue.js +1 -1
  282. package/lib/src/count-down/button.vue2.js +1 -1
  283. package/lib/src/count-down/index.js +1 -1
  284. package/lib/src/count-down/input.vue.js +1 -1
  285. package/lib/src/count-down/input.vue2.js +1 -1
  286. package/lib/src/count-down/interface.js +1 -0
  287. package/lib/src/cropper/cropper-avatar.vue.js +1 -1
  288. package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
  289. package/lib/src/cropper/cropper-image.vue.js +1 -1
  290. package/lib/src/cropper/cropper-image.vue2.js +1 -1
  291. package/lib/src/cropper/cropper-modal.vue.js +1 -1
  292. package/lib/src/cropper/cropper-modal.vue2.js +1 -1
  293. package/lib/src/cropper/index.js +1 -1
  294. package/lib/src/cropper/interface.js +1 -0
  295. package/lib/src/cropper/style/avatar.css +1 -1
  296. package/lib/src/cropper/style/modal.css +2 -2
  297. package/lib/src/description/description.vue.js +1 -1
  298. package/lib/src/description/description.vue2.js +1 -1
  299. package/lib/src/description/index.js +1 -1
  300. package/lib/src/description/interface.js +1 -0
  301. package/lib/src/dropdown/dropdown.vue.js +1 -1
  302. package/lib/src/dropdown/dropdown.vue2.js +1 -1
  303. package/lib/src/dropdown/index.js +1 -1
  304. package/lib/src/dropdown/interface.js +1 -0
  305. package/lib/src/hooks/index.js +1 -0
  306. package/lib/src/icon/icon.vue.js +1 -1
  307. package/lib/src/icon/icon.vue2.js +1 -1
  308. package/lib/src/icon/index.js +1 -1
  309. package/lib/src/icon/interface.js +1 -0
  310. package/lib/src/icon/svg-icon.vue.js +1 -1
  311. package/lib/src/icon/svg-icon.vue2.js +1 -1
  312. package/lib/src/icon-picker/icon-picker.vue.js +1 -1
  313. package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
  314. package/lib/src/icon-picker/index.js +1 -1
  315. package/lib/src/icon-picker/interface.js +1 -0
  316. package/lib/src/index.js +1 -1
  317. package/lib/src/locale/index.js +1 -0
  318. package/lib/src/locale/interface.js +1 -0
  319. package/lib/src/modal/basic.vue.js +1 -1
  320. package/lib/src/modal/basic.vue2.js +1 -1
  321. package/lib/src/modal/components/modal-close.vue.js +1 -1
  322. package/lib/src/modal/components/modal-close.vue2.js +1 -1
  323. package/lib/src/modal/components/modal-footer.vue.js +1 -1
  324. package/lib/src/modal/components/modal-footer.vue2.js +1 -1
  325. package/lib/src/modal/components/modal-header.vue.js +1 -1
  326. package/lib/src/modal/components/modal-header.vue2.js +1 -1
  327. package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
  328. package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
  329. package/lib/src/modal/index.js +1 -1
  330. package/lib/src/modal/interface.js +1 -0
  331. package/lib/src/modal/style/index.css +1 -1
  332. package/lib/src/pro-form/component-map.js +1 -1
  333. package/lib/src/pro-form/components/form-action.vue.js +1 -1
  334. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  335. package/lib/src/pro-form/components/form-item.vue.js +1 -1
  336. package/lib/src/pro-form/components/form-item.vue2.js +1 -1
  337. package/lib/src/pro-form/components/interface.js +1 -0
  338. package/lib/src/pro-form/hooks/use-break-point.js +1 -1
  339. package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
  340. package/lib/src/pro-form/hooks/use-component-register.js +1 -0
  341. package/lib/src/pro-form/index.d.ts +1 -0
  342. package/lib/src/pro-form/index.js +1 -1
  343. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  344. package/lib/src/pro-form/pro-form.vue.js +1 -1
  345. package/lib/src/pro-form/types/form-item.js +1 -0
  346. package/lib/src/pro-form/types/form.d.ts +8 -8
  347. package/lib/src/pro-table/component-map.js +1 -1
  348. package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
  349. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  350. package/lib/src/pro-table/components/editable/index.js +1 -1
  351. package/lib/src/pro-table/components/header-cell.vue.js +1 -1
  352. package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
  353. package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
  354. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  355. package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
  356. package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
  357. package/lib/src/pro-table/components/settings/index.vue.js +1 -1
  358. package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
  359. package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
  360. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  361. package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
  362. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  363. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  364. package/lib/src/pro-table/components/table-footer.vue.js +1 -1
  365. package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
  366. package/lib/src/pro-table/components/table-header.vue.js +1 -1
  367. package/lib/src/pro-table/components/table-header.vue2.js +1 -1
  368. package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
  369. package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
  370. package/lib/src/pro-table/components/table-title.vue.js +1 -1
  371. package/lib/src/pro-table/components/table-title.vue2.js +1 -1
  372. package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
  373. package/lib/src/pro-table/hooks/use-table-header.js +1 -1
  374. package/lib/src/pro-table/index.js +1 -0
  375. package/lib/src/pro-table/interface.d.ts +1 -1
  376. package/lib/src/pro-table/interface.js +1 -0
  377. package/lib/src/pro-table/pro-table.vue.d.ts +3 -0
  378. package/lib/src/pro-table/pro-table.vue.js +1 -1
  379. package/lib/src/pro-table/types/pagination.js +1 -0
  380. package/lib/src/pro-table/types/table-action.js +1 -0
  381. package/lib/src/pro-table/types/table.js +1 -0
  382. package/lib/src/prompt/dialog.vue.js +1 -1
  383. package/lib/src/prompt/dialog.vue2.js +1 -1
  384. package/lib/src/prompt/index.js +1 -1
  385. package/lib/src/prompt/utils.d.ts +3 -3
  386. package/lib/src/scroll-bar/index.js +1 -1
  387. package/lib/src/scroll-bar/interface.js +1 -0
  388. package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
  389. package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
  390. package/lib/src/strength-meter/index.js +1 -1
  391. package/lib/src/strength-meter/interface.js +1 -0
  392. package/lib/src/strength-meter/strength-meter.vue.js +1 -1
  393. package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
  394. package/lib/src/theme/ap-form/ap-form-item.css +4 -0
  395. package/lib/src/theme/collapse-container/header.css +1 -1
  396. package/lib/src/theme/collapse-container/index.css +1 -1
  397. package/lib/src/theme/cropper/avatar.css +1 -1
  398. package/lib/src/theme/cropper/modal.css +2 -2
  399. package/lib/src/theme/modal/index.css +1 -1
  400. package/lib/src/transition/index.js +1 -1
  401. package/lib/src/type.d.ts +1 -0
  402. package/lib/src/utils/index.d.ts +1 -0
  403. package/lib/src/utils/index.js +1 -1
  404. package/lib/src/utils/tree.js +1 -1
  405. package/lib/src/utils/uuid.js +1 -1
  406. package/package.json +1 -1
@@ -1,32 +1,31 @@
1
1
  import { defineComponent as Je, useAttrs as Qe, useSlots as Ue, ref as d, computed as p, unref as e, inject as Xe, watchEffect as Ye, toRaw as O, openBlock as V, createElementBlock as L, normalizeClass as W, normalizeStyle as Ze, createVNode as D, mergeProps as j, createSlots as M, renderList as G, withCtx as S, renderSlot as C, normalizeProps as y, guardReactiveProps as b, createCommentVNode as et, withDirectives as tt, vShow as ot } from "vue";
2
2
  import { Table as at } from "ant-design-vue";
3
- import { isString as nt, omit as rt, isFunction as lt } from "lodash-unified";
4
- import "@ant-design/icons-vue";
3
+ import "../pro-form/index.mjs";
4
+ import "./components/header-cell.vue.mjs";
5
+ import { usePagination as nt } from "./hooks/use-pagination.mjs";
6
+ import { useColumns as lt } from "./hooks/use-columns.mjs";
7
+ import { useDataSource as rt } from "./hooks/use-data-source.mjs";
8
+ import { useLoading as st } from "./hooks/use-loading.mjs";
9
+ import { useRowSelection as it } from "./hooks/use-row-selection.mjs";
10
+ import { useTableScroll as ct } from "./hooks/use-table-scroll.mjs";
11
+ import { useTableScrollTo as ut } from "./hooks/use-scroll-to.mjs";
12
+ import { useCustomRow as mt } from "./hooks/use-custom-row.mjs";
13
+ import { useTableStyle as dt } from "./hooks/use-table-style.mjs";
14
+ import { useTableHeader as pt } from "./hooks/use-table-header.mjs";
15
+ import { useTableExpand as ft } from "./hooks/use-table-expand.mjs";
16
+ import { createTableContext as gt } from "./hooks/use-table-context.mjs";
17
+ import { useTableFooter as ht } from "./hooks/use-table-footer.mjs";
18
+ import { useTableForm as St } from "./hooks/use-table-form.mjs";
5
19
  import "../config-provider/index.mjs";
6
- import "@fruits-chain/utils";
7
- import "@aplus-frontend/hooks";
8
- import st from "../pro-form/pro-form.vue.mjs";
9
- import { useForm as it } from "../pro-form/hooks/use-form.mjs";
10
- import ct from "./components/header-cell.vue.mjs";
11
- import { usePagination as mt } from "./hooks/use-pagination.mjs";
12
- import { useColumns as ut } from "./hooks/use-columns.mjs";
13
- import { useDataSource as dt } from "./hooks/use-data-source.mjs";
14
- import { useLoading as pt } from "./hooks/use-loading.mjs";
15
- import { useRowSelection as ft } from "./hooks/use-row-selection.mjs";
16
- import { useTableScroll as gt } from "./hooks/use-table-scroll.mjs";
17
- import { useTableScrollTo as ht } from "./hooks/use-scroll-to.mjs";
18
- import { useCustomRow as St } from "./hooks/use-custom-row.mjs";
19
- import { useTableStyle as Ct } from "./hooks/use-table-style.mjs";
20
- import { useTableHeader as yt } from "./hooks/use-table-header.mjs";
21
- import { useTableExpand as bt } from "./hooks/use-table-expand.mjs";
22
- import { createTableContext as wt } from "./hooks/use-table-context.mjs";
23
- import { useTableFooter as Rt } from "./hooks/use-table-footer.mjs";
24
- import { useTableForm as Ft } from "./hooks/use-table-form.mjs";
20
+ import { isString as Ct, isFunction as yt, omit as bt } from "lodash-unified";
25
21
  import "./style/pro-table.css";
26
- import { formTableDivideSpaceMap as Tt } from "./const.mjs";
27
- import { useGlobalConfig as Bt } from "../config-provider/hooks/use-global-config.mjs";
28
- import { useNamespace as vt } from "../config-provider/hooks/use-namespace.mjs";
29
- const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
22
+ import { formTableDivideSpaceMap as wt } from "./const.mjs";
23
+ import { useGlobalConfig as Rt } from "../config-provider/hooks/use-global-config.mjs";
24
+ import { useNamespace as Ft } from "../config-provider/hooks/use-namespace.mjs";
25
+ import { useForm as Tt } from "../pro-form/hooks/use-form.mjs";
26
+ import Bt from "../pro-form/pro-form.vue.mjs";
27
+ import vt from "./components/header-cell.vue2.mjs";
28
+ const Pt = "PageWrapperFixedHeight", oo = /* @__PURE__ */ Je({
30
29
  name: "BasicTable",
31
30
  __name: "pro-table",
32
31
  props: {
@@ -72,7 +71,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
72
71
  dataSource: {},
73
72
  rowKey: { default: "" },
74
73
  bordered: { type: Boolean },
75
- pagination: { type: [Object, Boolean] },
74
+ pagination: { type: [Object, Boolean, null], default: null },
76
75
  loading: { type: Boolean },
77
76
  rowClassName: {},
78
77
  scroll: {},
@@ -99,42 +98,42 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
99
98
  "columns-change"
100
99
  ],
101
100
  setup(q, { expose: J, emit: Q }) {
102
- const f = Bt().value.table, r = q, l = Q, z = Qe(), x = Ue(), s = d(null), w = d([]), R = d(null), K = d(null), F = d(), { b: i, m: U } = vt("pro-table"), [X, k] = it(), T = p(() => nt(r.divideSpace) ? Tt[r.divideSpace] : r.divideSpace), a = p(() => ({
103
- ...r,
104
- sortFn: r.sortFn || f.defaultSortFn,
105
- filterFn: r.filterFn || f.defaultFilterFn,
106
- fetchSetting: r.fetchSetting || f.fetchSetting,
107
- size: r.size || f.defaultSize,
101
+ const f = Rt().value.table, l = q, r = Q, z = Qe(), x = Ue(), s = d(null), w = d([]), R = d(null), K = d(null), F = d(), { b: i, m: U } = Ft("pro-table"), [X, k] = Tt(), T = p(() => Ct(l.divideSpace) ? wt[l.divideSpace] : l.divideSpace), a = p(() => ({
102
+ ...l,
103
+ sortFn: l.sortFn || f.defaultSortFn,
104
+ filterFn: l.filterFn || f.defaultFilterFn,
105
+ fetchSetting: l.fetchSetting || f.fetchSetting,
106
+ size: l.size || f.defaultSize,
108
107
  ...e(F)
109
108
  })), Y = Xe(Pt, !1);
110
109
  Ye(() => {
111
- e(Y) && r.canResize && console.warn(
110
+ e(Y) && l.canResize && console.warn(
112
111
  "'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)"
113
112
  );
114
113
  });
115
- const { getLoading: E, setLoading: H } = pt(a), {
114
+ const { getLoading: E, setLoading: H } = st(a), {
116
115
  getPaginationInfo: B,
117
116
  getPagination: Z,
118
117
  setPagination: _,
119
118
  setShowPagination: ee,
120
119
  getShowPagination: te
121
- } = mt(a), {
120
+ } = nt(a), {
122
121
  getRowSelection: oe,
123
122
  getRowSelectionRef: A,
124
123
  getSelectRows: ae,
125
124
  setSelectedRows: ne,
126
125
  clearSelectedRowKeys: g,
127
126
  getSelectRowKeys: v,
128
- deleteSelectRowByKey: re,
127
+ deleteSelectRowByKey: le,
129
128
  setSelectedRowKeys: I
130
- } = ft(a, w, l), {
131
- handleTableChange: le,
129
+ } = it(a, w, r), {
130
+ handleTableChange: re,
132
131
  getDataSourceRef: c,
133
132
  getDataSource: se,
134
133
  getRawDataSource: ie,
135
134
  setTableData: ce,
136
- updateTableDataRecord: me,
137
- deleteTableDataRecord: ue,
135
+ updateTableDataRecord: ue,
136
+ deleteTableDataRecord: me,
138
137
  insertTableDataRecord: de,
139
138
  findTableDataRecord: pe,
140
139
  fetch: fe,
@@ -142,7 +141,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
142
141
  reload: he,
143
142
  getAutoCreateKey: Se,
144
143
  updateTableData: Ce
145
- } = dt(
144
+ } = rt(
146
145
  a,
147
146
  {
148
147
  tableData: w,
@@ -152,12 +151,12 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
152
151
  getFieldsValue: k.getFieldsValue,
153
152
  clearSelectedRowKeys: g
154
153
  },
155
- l
154
+ r
156
155
  );
157
- function ye(t, n, o, u) {
158
- le(t, n, o), l("change", t, n, o);
156
+ function ye(t, n, o, m) {
157
+ re(t, n, o), r("change", t, n, o);
159
158
  const { onChange: P } = e(a);
160
- P && lt(P) && P(t, n, o, u);
159
+ P && yt(P) && P(t, n, o, m);
161
160
  }
162
161
  const {
163
162
  getViewColumns: be,
@@ -168,7 +167,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
168
167
  setColumns: Be,
169
168
  getColumnsRef: ve,
170
169
  getCacheColumns: Pe
171
- } = ut(a, B), { getScrollRef: N, redoHeight: $ } = gt(
170
+ } = lt(a, B), { getScrollRef: N, redoHeight: $ } = ct(
172
171
  a,
173
172
  s,
174
173
  ve,
@@ -176,28 +175,28 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
176
175
  c,
177
176
  R,
178
177
  K
179
- ), { scrollTo: De } = ht(s, c), { customRow: ze } = St(a, {
178
+ ), { scrollTo: De } = ut(s, c), { customRow: ze } = mt(a, {
180
179
  setSelectedRowKeys: I,
181
180
  getSelectRowKeys: v,
182
181
  clearSelectedRowKeys: g,
183
182
  getAutoCreateKey: Se,
184
- emit: l
185
- }), { getRowClassName: xe } = Ct(a, i()), {
183
+ emit: r
184
+ }), { getRowClassName: xe } = dt(a, i()), {
186
185
  getExpandOption: Ke,
187
186
  expandAll: ke,
188
187
  expandRows: Ee,
189
188
  collapseRows: He,
190
189
  collapseAll: _e,
191
190
  handleTableExpand: Ae
192
- } = bt(a, w, l), Ie = {
191
+ } = ft(a, w, r), Ie = {
193
192
  onColumnsChange: (t) => {
194
193
  var n, o;
195
- l("columns-change", t), (o = (n = e(a)).onColumnsChange) == null || o.call(n, t);
194
+ r("columns-change", t), (o = (n = e(a)).onColumnsChange) == null || o.call(n, t);
196
195
  }
197
196
  }, Ne = {
198
197
  clearSelectedRowKeys: g,
199
198
  getSelectRowKeys: v
200
- }, { getHeaderProps: $e } = yt(a, x, Ie, Ne), { getFooterProps: Oe } = Rt(
199
+ }, { getHeaderProps: $e } = pt(a, x, Ie, Ne), { getFooterProps: Oe } = ht(
201
200
  a,
202
201
  N,
203
202
  s,
@@ -207,7 +206,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
207
206
  replaceFormSlotKey: Le,
208
207
  getFormSlotKeys: We,
209
208
  handleSearchInfoChange: je
210
- } = Ft(a, x, fe, E), m = p(() => {
209
+ } = St(a, x, fe, E), u = p(() => {
211
210
  const t = e(c);
212
211
  let n = {
213
212
  ...z,
@@ -225,9 +224,9 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
225
224
  footer: e(Oe),
226
225
  ...e(Ke)
227
226
  };
228
- return n = rt(n, ["class", "style", "onChange"]), n;
227
+ return n = bt(n, ["class", "style", "onChange"]), n;
229
228
  }), Me = p(() => {
230
- const t = e(m);
229
+ const t = e(u);
231
230
  return [
232
231
  i(),
233
232
  z.class,
@@ -249,11 +248,11 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
249
248
  setSelectedRows: ne,
250
249
  clearSelectedRowKeys: g,
251
250
  getSelectRowKeys: v,
252
- deleteSelectRowByKey: re,
251
+ deleteSelectRowByKey: le,
253
252
  setPagination: _,
254
253
  setTableData: ce,
255
- updateTableDataRecord: me,
256
- deleteTableDataRecord: ue,
254
+ updateTableDataRecord: ue,
255
+ deleteTableDataRecord: me,
257
256
  insertTableDataRecord: de,
258
257
  findTableDataRecord: pe,
259
258
  redoHeight: $,
@@ -267,7 +266,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
267
266
  getPaginationRef: Z,
268
267
  getColumns: we,
269
268
  getCacheColumns: Pe,
270
- emit: l,
269
+ emit: r,
271
270
  updateTableData: Ce,
272
271
  setShowPagination: ee,
273
272
  getShowPagination: te,
@@ -277,15 +276,15 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
277
276
  expandRows: Ee,
278
277
  collapseRows: He,
279
278
  scrollTo: De,
280
- getSize: () => e(m).size,
279
+ getSize: () => e(u).size,
281
280
  setCacheColumns: Fe
282
281
  };
283
- return wt({ ...h, wrapRef: R, getBindValues: m }), l("register", h, k), J({ tableElRef: s, ...h }), (t, n) => (V(), L("div", {
282
+ return gt({ ...h, wrapRef: R, getBindValues: u }), r("register", h, k), J({ tableElRef: s, ...h }), (t, n) => (V(), L("div", {
284
283
  ref_key: "wrapRef",
285
284
  ref: R,
286
285
  class: W(Me.value)
287
286
  }, [
288
- m.value.useSearchForm ? (V(), L("div", {
287
+ u.value.useSearchForm ? (V(), L("div", {
289
288
  key: 0,
290
289
  class: W([
291
290
  e(i)("form-container"),
@@ -293,7 +292,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
293
292
  ]),
294
293
  style: Ze({ marginBottom: T.value + "px" })
295
294
  }, [
296
- D(e(st), j({
295
+ D(e(Bt), j({
297
296
  ref_key: "formRef",
298
297
  ref: K,
299
298
  submitOnReset: ""
@@ -305,8 +304,8 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
305
304
  }), M({ _: 2 }, [
306
305
  G(e(We), (o) => ({
307
306
  name: e(Le)(o),
308
- fn: S((u) => [
309
- C(t.$slots, o, y(b(u || {})))
307
+ fn: S((m) => [
308
+ C(t.$slots, o, y(b(m || {})))
310
309
  ])
311
310
  }))
312
311
  ]), 1040, ["onRegister", "onSubmit", "onAdvancedChange"])
@@ -314,7 +313,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
314
313
  tt(D(e(at), j({
315
314
  ref_key: "tableElRef",
316
315
  ref: s
317
- }, m.value, {
316
+ }, u.value, {
318
317
  rowClassName: e(xe),
319
318
  onChange: ye,
320
319
  onResizeColumn: e(Te),
@@ -322,7 +321,7 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
322
321
  }), M({
323
322
  headerCell: S(({ column: o }) => [
324
323
  C(t.$slots, "headerCell", y(b({ column: o })), () => [
325
- D(ct, { column: o }, null, 8, ["column"])
324
+ D(vt, { column: o }, null, 8, ["column"])
326
325
  ])
327
326
  ]),
328
327
  bodyCell: S((o) => [
@@ -332,8 +331,8 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
332
331
  }, [
333
332
  G(Object.keys(t.$slots), (o) => ({
334
333
  name: o,
335
- fn: S((u) => [
336
- C(t.$slots, o, y(b(u || {})))
334
+ fn: S((m) => [
335
+ C(t.$slots, o, y(b(m || {})))
337
336
  ])
338
337
  }))
339
338
  ]), 1040, ["rowClassName", "onResizeColumn", "onExpand"]), [
@@ -343,5 +342,5 @@ const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
343
342
  }
344
343
  });
345
344
  export {
346
- ao as default
345
+ oo as default
347
346
  };
@@ -0,0 +1 @@
1
+
@@ -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
  };