@aplus-frontend/ui 0.0.1-beta.6 → 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 (453) hide show
  1. package/es/index.mjs +157 -142
  2. package/es/src/ap-action/constant.d.ts +0 -0
  3. package/es/src/ap-action/group/index.vue.d.ts +38 -0
  4. package/es/src/ap-action/group/index.vue.mjs +68 -0
  5. package/es/src/ap-action/group/index.vue2.mjs +4 -0
  6. package/es/src/ap-action/index.d.ts +14 -0
  7. package/es/src/ap-action/index.mjs +20 -0
  8. package/es/src/ap-action/interface.d.ts +81 -0
  9. package/es/src/ap-action/interface.mjs +1 -0
  10. package/es/src/ap-action/item/index.vue.d.ts +44 -0
  11. package/es/src/ap-action/item/index.vue.mjs +4 -0
  12. package/es/src/ap-action/item/index.vue2.mjs +49 -0
  13. package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
  14. package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
  15. package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
  16. package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
  17. package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
  18. package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
  19. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
  20. package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
  21. package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
  22. package/es/src/ap-action/style/item-dropdown.css +11 -0
  23. package/es/src/ap-action/style/item.css +28 -0
  24. package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
  25. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  26. package/es/src/ap-field/date/index.vue.mjs +19 -20
  27. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  28. package/es/src/ap-field/date-range/index.vue.mjs +9 -9
  29. package/es/src/ap-field/index.d.ts +12 -0
  30. package/es/src/ap-field/index.mjs +42 -0
  31. package/es/src/ap-field/interface.d.ts +6 -4
  32. package/es/src/ap-field/interface.mjs +1 -0
  33. package/es/src/ap-field/number/helper.mjs +2 -2
  34. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  35. package/es/src/ap-field/number/index.vue.mjs +30 -32
  36. package/es/src/ap-field/radio/index.vue.mjs +40 -34
  37. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  38. package/es/src/ap-field/select/index.vue.mjs +1 -1
  39. package/es/src/ap-field/switch/index.vue.d.ts +1 -1
  40. package/es/src/ap-field/switch/index.vue.mjs +69 -40
  41. package/es/src/ap-field/text/index.vue.d.ts +3 -3
  42. package/es/src/ap-field/text/index.vue.mjs +29 -29
  43. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  44. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  45. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
  46. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
  47. package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
  48. package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
  49. package/es/src/ap-form/components/interface.d.ts +0 -0
  50. package/es/src/ap-form/index.d.ts +87 -1758
  51. package/es/src/ap-form/index.mjs +11 -7
  52. package/es/src/base-button/button.vue.mjs +2 -58
  53. package/es/src/base-button/button.vue2.mjs +59 -2
  54. package/es/src/base-button/index.d.ts +28 -28
  55. package/es/src/base-button/index.mjs +8 -8
  56. package/es/src/base-button/interface.mjs +1 -0
  57. package/es/src/base-button/modal-button.vue.mjs +12 -11
  58. package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
  59. package/es/src/basic/arrow.vue.mjs +2 -38
  60. package/es/src/basic/arrow.vue2.mjs +38 -2
  61. package/es/src/basic/help.vue.mjs +2 -96
  62. package/es/src/basic/help.vue2.mjs +96 -2
  63. package/es/src/basic/index.mjs +11 -7
  64. package/es/src/basic/interface.mjs +1 -0
  65. package/es/src/basic/title.vue.mjs +2 -32
  66. package/es/src/basic/title.vue2.mjs +33 -2
  67. package/es/src/config-provider/config-provider.d.ts +4 -4
  68. package/es/src/config-provider/config-provider.mjs +4 -4
  69. package/es/src/config-provider/hooks/use-locale.mjs +1 -0
  70. package/es/src/config-provider/index.d.ts +12 -12
  71. package/es/src/config-provider/index.mjs +26 -13
  72. package/es/src/container/collapse/header.vue.mjs +2 -49
  73. package/es/src/container/collapse/header.vue2.mjs +49 -2
  74. package/es/src/container/collapse/index.vue.mjs +2 -85
  75. package/es/src/container/collapse/index.vue2.mjs +86 -2
  76. package/es/src/container/index.mjs +8 -5
  77. package/es/src/container/interface.mjs +1 -0
  78. package/es/src/container/scroll-container.vue.mjs +2 -60
  79. package/es/src/container/scroll-container.vue2.mjs +60 -2
  80. package/es/src/count-down/button.vue.mjs +2 -44
  81. package/es/src/count-down/button.vue2.mjs +44 -2
  82. package/es/src/count-down/index.d.ts +12 -12
  83. package/es/src/count-down/index.mjs +8 -5
  84. package/es/src/count-down/input.vue.mjs +2 -44
  85. package/es/src/count-down/input.vue2.mjs +45 -2
  86. package/es/src/count-down/interface.mjs +1 -0
  87. package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
  88. package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
  89. package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
  90. package/es/src/cropper/cropper-image.vue.d.ts +1 -1
  91. package/es/src/cropper/cropper-image.vue.mjs +2 -129
  92. package/es/src/cropper/cropper-image.vue2.mjs +129 -2
  93. package/es/src/cropper/cropper-modal.vue.mjs +2 -270
  94. package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
  95. package/es/src/cropper/index.d.ts +42 -42
  96. package/es/src/cropper/index.mjs +8 -5
  97. package/es/src/cropper/interface.mjs +1 -0
  98. package/es/src/description/description.vue.d.ts +1 -1
  99. package/es/src/description/description.vue.mjs +2 -169
  100. package/es/src/description/description.vue2.mjs +169 -2
  101. package/es/src/description/index.d.ts +3 -3
  102. package/es/src/description/index.mjs +8 -5
  103. package/es/src/description/interface.mjs +1 -0
  104. package/es/src/dropdown/dropdown.vue.d.ts +1 -1
  105. package/es/src/dropdown/dropdown.vue.mjs +2 -92
  106. package/es/src/dropdown/dropdown.vue2.mjs +92 -2
  107. package/es/src/dropdown/index.d.ts +7 -7
  108. package/es/src/dropdown/index.mjs +5 -3
  109. package/es/src/dropdown/interface.mjs +1 -0
  110. package/es/src/hooks/index.mjs +6 -0
  111. package/es/src/hooks/useMessage.mjs +1 -1
  112. package/es/src/icon/icon.vue.mjs +2 -66
  113. package/es/src/icon/icon.vue2.mjs +67 -2
  114. package/es/src/icon/index.d.ts +41 -41
  115. package/es/src/icon/index.mjs +8 -5
  116. package/es/src/icon/interface.mjs +1 -0
  117. package/es/src/icon/svg-icon.vue.mjs +2 -32
  118. package/es/src/icon/svg-icon.vue2.mjs +32 -2
  119. package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
  120. package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
  121. package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
  122. package/es/src/icon-picker/index.d.ts +45 -45
  123. package/es/src/icon-picker/index.mjs +7 -5
  124. package/es/src/icon-picker/interface.mjs +1 -0
  125. package/es/src/index.d.ts +1 -0
  126. package/es/src/index.mjs +161 -145
  127. package/es/src/locale/index.mjs +7 -0
  128. package/es/src/locale/interface.mjs +1 -0
  129. package/es/src/modal/basic.vue.d.ts +4 -3
  130. package/es/src/modal/basic.vue.mjs +2 -191
  131. package/es/src/modal/basic.vue2.mjs +199 -2
  132. package/es/src/modal/components/modal-close.vue.mjs +2 -72
  133. package/es/src/modal/components/modal-close.vue2.mjs +72 -2
  134. package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
  135. package/es/src/modal/components/modal-footer.vue.mjs +2 -43
  136. package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
  137. package/es/src/modal/components/modal-header.vue.mjs +1 -18
  138. package/es/src/modal/components/modal-header.vue2.mjs +18 -1
  139. package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
  140. package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
  141. package/es/src/modal/components/modal.d.ts +2 -2
  142. package/es/src/modal/components/modal.mjs +6 -6
  143. package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
  144. package/es/src/modal/hooks/use-modal.mjs +8 -8
  145. package/es/src/modal/index.d.ts +10 -11
  146. package/es/src/modal/index.mjs +10 -8
  147. package/es/src/modal/interface.mjs +1 -0
  148. package/es/src/modal/props.mjs +1 -1
  149. package/es/src/modal/style/index.css +29 -30
  150. package/es/src/pro-form/component-map.mjs +56 -41
  151. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  152. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  153. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  154. package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
  155. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  156. package/es/src/pro-form/components/form-action.vue.mjs +2 -105
  157. package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
  158. package/es/src/pro-form/components/form-item.vue.mjs +2 -352
  159. package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
  160. package/es/src/pro-form/components/interface.mjs +1 -0
  161. package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
  162. package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
  163. package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
  164. package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
  165. package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
  166. package/es/src/pro-form/hooks/use-form.mjs +4 -4
  167. package/es/src/pro-form/hooks/use-label-width.d.ts +8 -8
  168. package/es/src/pro-form/index.d.ts +1 -0
  169. package/es/src/pro-form/index.mjs +34 -34
  170. package/es/src/pro-form/pro-form.vue.d.ts +2 -2
  171. package/es/src/pro-form/pro-form.vue.mjs +39 -37
  172. package/es/src/pro-form/types/form-item.mjs +1 -0
  173. package/es/src/pro-form/types/form.d.ts +8 -8
  174. package/es/src/pro-table/component-map.mjs +29 -37
  175. package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
  176. package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
  177. package/es/src/pro-table/components/editable/index.mjs +7 -6
  178. package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
  179. package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
  180. package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
  181. package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
  182. package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
  183. package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
  184. package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
  185. package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
  186. package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
  187. package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
  188. package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
  189. package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
  190. package/es/src/pro-table/components/table-action.vue.mjs +2 -2
  191. package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
  192. package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
  193. package/es/src/pro-table/components/table-header.vue.mjs +2 -86
  194. package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
  195. package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
  196. package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
  197. package/es/src/pro-table/components/table-title.vue.mjs +2 -41
  198. package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
  199. package/es/src/pro-table/hooks/use-columns.mjs +5 -5
  200. package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
  201. package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
  202. package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
  203. package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
  204. package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
  205. package/es/src/pro-table/index.mjs +12 -0
  206. package/es/src/pro-table/interface.mjs +1 -0
  207. package/es/src/pro-table/pro-table.vue.mjs +55 -56
  208. package/es/src/pro-table/types/pagination.mjs +1 -0
  209. package/es/src/pro-table/types/table-action.mjs +1 -0
  210. package/es/src/pro-table/types/table.mjs +1 -0
  211. package/es/src/prompt/dialog.vue.mjs +2 -61
  212. package/es/src/prompt/dialog.vue2.mjs +58 -2
  213. package/es/src/prompt/index.mjs +9 -8
  214. package/es/src/prompt/utils.d.ts +3 -3
  215. package/es/src/scroll-bar/bar-item.mjs +4 -4
  216. package/es/src/scroll-bar/index.mjs +5 -3
  217. package/es/src/scroll-bar/interface.mjs +1 -0
  218. package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
  219. package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
  220. package/es/src/strength-meter/index.d.ts +12 -12
  221. package/es/src/strength-meter/index.mjs +5 -3
  222. package/es/src/strength-meter/interface.mjs +1 -0
  223. package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
  224. package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
  225. package/es/src/theme/ap-action/item-dropdown.css +11 -0
  226. package/es/src/theme/ap-action/item.css +28 -0
  227. package/es/src/theme/modal/index.css +29 -30
  228. package/es/src/transition/index.mjs +21 -24
  229. package/es/src/type.d.ts +1 -0
  230. package/es/src/utils/index.d.ts +1 -0
  231. package/es/src/utils/index.mjs +21 -8
  232. package/es/src/utils/tree.mjs +103 -13
  233. package/es/src/utils/uuid.mjs +15 -9
  234. package/lib/index.js +1 -1
  235. package/lib/src/ap-action/constant.d.ts +0 -0
  236. package/lib/src/ap-action/group/index.vue.d.ts +38 -0
  237. package/lib/src/ap-action/group/index.vue.js +1 -0
  238. package/lib/src/ap-action/group/index.vue2.js +1 -0
  239. package/lib/src/ap-action/index.d.ts +14 -0
  240. package/lib/src/ap-action/index.js +1 -0
  241. package/lib/src/ap-action/interface.d.ts +81 -0
  242. package/lib/src/ap-action/interface.js +1 -0
  243. package/lib/src/ap-action/item/index.vue.d.ts +44 -0
  244. package/lib/src/ap-action/item/index.vue.js +1 -0
  245. package/lib/src/ap-action/item/index.vue2.js +1 -0
  246. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
  247. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
  248. package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
  249. package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
  250. package/lib/src/ap-action/item-modal/index.vue.js +1 -0
  251. package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
  252. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
  253. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
  254. package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
  255. package/lib/src/ap-action/style/item-dropdown.css +11 -0
  256. package/lib/src/ap-action/style/item.css +28 -0
  257. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  258. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  259. package/lib/src/ap-field/date/index.vue.js +1 -1
  260. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  261. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  262. package/lib/src/ap-field/index.d.ts +12 -0
  263. package/lib/src/ap-field/index.js +1 -0
  264. package/lib/src/ap-field/interface.d.ts +6 -4
  265. package/lib/src/ap-field/interface.js +1 -0
  266. package/lib/src/ap-field/number/helper.js +1 -1
  267. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  268. package/lib/src/ap-field/number/index.vue.js +1 -1
  269. package/lib/src/ap-field/radio/index.vue.js +1 -1
  270. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  271. package/lib/src/ap-field/select/index.vue.js +1 -1
  272. package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
  273. package/lib/src/ap-field/switch/index.vue.js +1 -1
  274. package/lib/src/ap-field/text/index.vue.d.ts +3 -3
  275. package/lib/src/ap-field/text/index.vue.js +1 -1
  276. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  277. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  278. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  279. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  280. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  281. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  282. package/lib/src/ap-form/components/interface.d.ts +0 -0
  283. package/lib/src/ap-form/index.d.ts +87 -1758
  284. package/lib/src/ap-form/index.js +1 -1
  285. package/lib/src/base-button/button.vue.js +1 -1
  286. package/lib/src/base-button/button.vue2.js +1 -1
  287. package/lib/src/base-button/index.d.ts +28 -28
  288. package/lib/src/base-button/index.js +1 -1
  289. package/lib/src/base-button/interface.js +1 -0
  290. package/lib/src/base-button/modal-button.vue.js +1 -1
  291. package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
  292. package/lib/src/basic/arrow.vue.js +1 -1
  293. package/lib/src/basic/arrow.vue2.js +1 -1
  294. package/lib/src/basic/help.vue.js +1 -1
  295. package/lib/src/basic/help.vue2.js +1 -1
  296. package/lib/src/basic/index.js +1 -1
  297. package/lib/src/basic/interface.js +1 -0
  298. package/lib/src/basic/title.vue.js +1 -1
  299. package/lib/src/basic/title.vue2.js +1 -1
  300. package/lib/src/config-provider/config-provider.d.ts +4 -4
  301. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  302. package/lib/src/config-provider/index.d.ts +12 -12
  303. package/lib/src/config-provider/index.js +1 -1
  304. package/lib/src/container/collapse/header.vue.js +1 -1
  305. package/lib/src/container/collapse/header.vue2.js +1 -1
  306. package/lib/src/container/collapse/index.vue.js +1 -1
  307. package/lib/src/container/collapse/index.vue2.js +1 -1
  308. package/lib/src/container/index.js +1 -1
  309. package/lib/src/container/interface.js +1 -0
  310. package/lib/src/container/scroll-container.vue.js +1 -1
  311. package/lib/src/container/scroll-container.vue2.js +1 -1
  312. package/lib/src/count-down/button.vue.js +1 -1
  313. package/lib/src/count-down/button.vue2.js +1 -1
  314. package/lib/src/count-down/index.d.ts +12 -12
  315. package/lib/src/count-down/index.js +1 -1
  316. package/lib/src/count-down/input.vue.js +1 -1
  317. package/lib/src/count-down/input.vue2.js +1 -1
  318. package/lib/src/count-down/interface.js +1 -0
  319. package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
  320. package/lib/src/cropper/cropper-avatar.vue.js +1 -1
  321. package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
  322. package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
  323. package/lib/src/cropper/cropper-image.vue.js +1 -1
  324. package/lib/src/cropper/cropper-image.vue2.js +1 -1
  325. package/lib/src/cropper/cropper-modal.vue.js +1 -1
  326. package/lib/src/cropper/cropper-modal.vue2.js +1 -1
  327. package/lib/src/cropper/index.d.ts +42 -42
  328. package/lib/src/cropper/index.js +1 -1
  329. package/lib/src/cropper/interface.js +1 -0
  330. package/lib/src/description/description.vue.d.ts +1 -1
  331. package/lib/src/description/description.vue.js +1 -1
  332. package/lib/src/description/description.vue2.js +1 -1
  333. package/lib/src/description/index.d.ts +3 -3
  334. package/lib/src/description/index.js +1 -1
  335. package/lib/src/description/interface.js +1 -0
  336. package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
  337. package/lib/src/dropdown/dropdown.vue.js +1 -1
  338. package/lib/src/dropdown/dropdown.vue2.js +1 -1
  339. package/lib/src/dropdown/index.d.ts +7 -7
  340. package/lib/src/dropdown/index.js +1 -1
  341. package/lib/src/dropdown/interface.js +1 -0
  342. package/lib/src/hooks/index.js +1 -0
  343. package/lib/src/icon/icon.vue.js +1 -1
  344. package/lib/src/icon/icon.vue2.js +1 -1
  345. package/lib/src/icon/index.d.ts +41 -41
  346. package/lib/src/icon/index.js +1 -1
  347. package/lib/src/icon/interface.js +1 -0
  348. package/lib/src/icon/svg-icon.vue.js +1 -1
  349. package/lib/src/icon/svg-icon.vue2.js +1 -1
  350. package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
  351. package/lib/src/icon-picker/icon-picker.vue.js +1 -1
  352. package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
  353. package/lib/src/icon-picker/index.d.ts +45 -45
  354. package/lib/src/icon-picker/index.js +1 -1
  355. package/lib/src/icon-picker/interface.js +1 -0
  356. package/lib/src/index.d.ts +1 -0
  357. package/lib/src/index.js +1 -1
  358. package/lib/src/locale/index.js +1 -0
  359. package/lib/src/locale/interface.js +1 -0
  360. package/lib/src/modal/basic.vue.d.ts +4 -3
  361. package/lib/src/modal/basic.vue.js +1 -1
  362. package/lib/src/modal/basic.vue2.js +1 -1
  363. package/lib/src/modal/components/modal-close.vue.js +1 -1
  364. package/lib/src/modal/components/modal-close.vue2.js +1 -1
  365. package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
  366. package/lib/src/modal/components/modal-footer.vue.js +1 -1
  367. package/lib/src/modal/components/modal-footer.vue2.js +1 -1
  368. package/lib/src/modal/components/modal-header.vue.js +1 -1
  369. package/lib/src/modal/components/modal-header.vue2.js +1 -1
  370. package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
  371. package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
  372. package/lib/src/modal/components/modal.d.ts +2 -2
  373. package/lib/src/modal/index.d.ts +10 -11
  374. package/lib/src/modal/index.js +1 -1
  375. package/lib/src/modal/interface.js +1 -0
  376. package/lib/src/modal/props.js +1 -1
  377. package/lib/src/modal/style/index.css +29 -30
  378. package/lib/src/pro-form/component-map.js +1 -1
  379. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  380. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  381. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  382. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  383. package/lib/src/pro-form/components/form-action.vue.js +1 -1
  384. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  385. package/lib/src/pro-form/components/form-item.vue.js +1 -1
  386. package/lib/src/pro-form/components/form-item.vue2.js +1 -1
  387. package/lib/src/pro-form/components/interface.js +1 -0
  388. package/lib/src/pro-form/hooks/use-break-point.js +1 -1
  389. package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
  390. package/lib/src/pro-form/hooks/use-component-register.js +1 -0
  391. package/lib/src/pro-form/hooks/use-label-width.d.ts +8 -8
  392. package/lib/src/pro-form/index.d.ts +1 -0
  393. package/lib/src/pro-form/index.js +1 -1
  394. package/lib/src/pro-form/pro-form.vue.d.ts +2 -2
  395. package/lib/src/pro-form/pro-form.vue.js +1 -1
  396. package/lib/src/pro-form/types/form-item.js +1 -0
  397. package/lib/src/pro-form/types/form.d.ts +8 -8
  398. package/lib/src/pro-table/component-map.js +1 -1
  399. package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
  400. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  401. package/lib/src/pro-table/components/editable/index.js +1 -1
  402. package/lib/src/pro-table/components/header-cell.vue.js +1 -1
  403. package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
  404. package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
  405. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  406. package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
  407. package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
  408. package/lib/src/pro-table/components/settings/index.vue.js +1 -1
  409. package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
  410. package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
  411. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  412. package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
  413. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  414. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  415. package/lib/src/pro-table/components/table-footer.vue.js +1 -1
  416. package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
  417. package/lib/src/pro-table/components/table-header.vue.js +1 -1
  418. package/lib/src/pro-table/components/table-header.vue2.js +1 -1
  419. package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
  420. package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
  421. package/lib/src/pro-table/components/table-title.vue.js +1 -1
  422. package/lib/src/pro-table/components/table-title.vue2.js +1 -1
  423. package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
  424. package/lib/src/pro-table/hooks/use-table-header.js +1 -1
  425. package/lib/src/pro-table/index.js +1 -0
  426. package/lib/src/pro-table/interface.js +1 -0
  427. package/lib/src/pro-table/pro-table.vue.js +1 -1
  428. package/lib/src/pro-table/types/pagination.js +1 -0
  429. package/lib/src/pro-table/types/table-action.js +1 -0
  430. package/lib/src/pro-table/types/table.js +1 -0
  431. package/lib/src/prompt/dialog.vue.js +1 -1
  432. package/lib/src/prompt/dialog.vue2.js +1 -1
  433. package/lib/src/prompt/index.js +1 -1
  434. package/lib/src/prompt/utils.d.ts +3 -3
  435. package/lib/src/scroll-bar/index.js +1 -1
  436. package/lib/src/scroll-bar/interface.js +1 -0
  437. package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
  438. package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
  439. package/lib/src/strength-meter/index.d.ts +12 -12
  440. package/lib/src/strength-meter/index.js +1 -1
  441. package/lib/src/strength-meter/interface.js +1 -0
  442. package/lib/src/strength-meter/strength-meter.vue.js +1 -1
  443. package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
  444. package/lib/src/theme/ap-action/item-dropdown.css +11 -0
  445. package/lib/src/theme/ap-action/item.css +28 -0
  446. package/lib/src/theme/modal/index.css +29 -30
  447. package/lib/src/transition/index.js +1 -1
  448. package/lib/src/type.d.ts +1 -0
  449. package/lib/src/utils/index.d.ts +1 -0
  450. package/lib/src/utils/index.js +1 -1
  451. package/lib/src/utils/tree.js +1 -1
  452. package/lib/src/utils/uuid.js +1 -1
  453. package/package.json +2 -2
@@ -0,0 +1,28 @@
1
+ .aplus-action-item {
2
+ display: inline-block;
3
+ font-size: 14px;
4
+ line-height: 22px;
5
+ cursor: pointer;
6
+ }
7
+ .aplus-action-item--primary {
8
+ color: #0070ff;
9
+ }
10
+ .aplus-action-item--success {
11
+ color: #2ed1a3;
12
+ }
13
+ .aplus-action-item--error {
14
+ color: #FF4D4F;
15
+ }
16
+ .aplus-action-item--warn {
17
+ color: #FFA940;
18
+ }
19
+ .aplus-action-item--loading {
20
+ opacity: 0.35;
21
+ transition: opacity 0.2s;
22
+ }
23
+ .aplus-action-item--loading .btn-loading-icon {
24
+ margin-right: 4px;
25
+ }
26
+ .aplus-action-item--disabled {
27
+ color: #ABB7CC;
28
+ }
@@ -1,10 +1,10 @@
1
- import { defineComponent as x, ref as k, onMounted as y, openBlock as o, createElementBlock as i, Fragment as p, unref as e, createTextVNode as m, toDisplayString as s, createBlock as g, mergeProps as h } from "vue";
2
- import { isFunction as C, isNil as V } from "lodash-unified";
3
- import { CheckboxGroup as b } from "ant-design-vue";
4
- import "../../hooks/useMessage.mjs";
5
- import { useControllableValue as _ } from "../../hooks/useControllableValue.mjs";
6
- import { getOptionValue as B, getOptionLabel as T } from "./helper.mjs";
7
- const D = /* @__PURE__ */ x({
1
+ import { defineComponent as g, ref as m, onMounted as h, openBlock as o, createElementBlock as a, Fragment as l, unref as e, createTextVNode as d, toDisplayString as f, createBlock as c, mergeProps as C } from "vue";
2
+ import { isFunction as V, isNil as b } from "lodash-unified";
3
+ import { Spin as _, CheckboxGroup as B } from "ant-design-vue";
4
+ import "../../hooks/index.mjs";
5
+ import { getOptionValue as T, getOptionLabel as q } from "./helper.mjs";
6
+ import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
7
+ const D = /* @__PURE__ */ g({
8
8
  name: "ApFieldCheckbox",
9
9
  inheritAttrs: !1,
10
10
  __name: "index",
@@ -23,31 +23,38 @@ const D = /* @__PURE__ */ x({
23
23
  request: {}
24
24
  },
25
25
  emits: ["update:value"],
26
- setup(d, { emit: f }) {
27
- const c = f, t = d, a = k(t.options);
28
- y(() => {
29
- C(t.request) && t.request().then((l) => a.value = l);
26
+ setup(v, { emit: y }) {
27
+ const k = y, t = v, n = m(t.options), i = m(!1);
28
+ h(() => {
29
+ V(t.request) && (i.value = !0, t.request().then((r) => n.value = r).finally(() => {
30
+ i.value = !1;
31
+ }));
30
32
  });
31
- const { value: n, updateValue: v } = _(
33
+ const { value: u, updateValue: x } = F(
32
34
  t,
33
- c,
35
+ k,
34
36
  {
35
37
  defaultValue: []
36
38
  }
37
39
  );
38
- return (l, q) => {
39
- var u;
40
- return l.mode === "read" ? (o(), i(p, { key: 0 }, [
41
- e(V)(e(n)) ? (o(), i(p, { key: 0 }, [
42
- m(s(t.emptyText), 1)
43
- ], 64)) : (o(), i(p, { key: 1 }, [
44
- m(s(((u = a.value) == null ? void 0 : u.filter((r) => e(n).indexOf(e(B)(r)) > -1).map((r) => e(T)(r)).join("、")) || t.emptyText), 1)
40
+ return (r, O) => {
41
+ var s;
42
+ return r.mode === "read" ? (o(), a(l, { key: 0 }, [
43
+ e(b)(e(u)) ? (o(), a(l, { key: 0 }, [
44
+ d(f(t.emptyText), 1)
45
+ ], 64)) : (o(), a(l, { key: 1 }, [
46
+ d(f(((s = n.value) == null ? void 0 : s.filter((p) => e(u).indexOf(e(T)(p)) > -1).map((p) => e(q)(p)).join("、")) || t.emptyText), 1)
45
47
  ], 64))
46
- ], 64)) : (o(), g(e(b), h({ key: 1 }, t, {
47
- options: a.value,
48
- value: e(n),
49
- "onUpdate:value": e(v)
50
- }), null, 16, ["options", "value", "onUpdate:value"]));
48
+ ], 64)) : (o(), a(l, { key: 1 }, [
49
+ i.value ? (o(), c(e(_), {
50
+ key: 0,
51
+ size: "small"
52
+ })) : (o(), c(e(B), C({ key: 1 }, t, {
53
+ options: n.value,
54
+ value: e(u),
55
+ "onUpdate:value": e(x)
56
+ }), null, 16, ["options", "value", "onUpdate:value"]))
57
+ ], 64));
51
58
  };
52
59
  }
53
60
  });
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
30
30
  }, {
31
31
  mode: FieldMode;
32
32
  format: string;
33
- fieldProps: Omit< DatePickerProps, "value" | "defaultValue" | "onChange" | "mode" | "format" | "onOk">;
33
+ fieldProps: Omit< DatePickerProps, "mode" | "onOk" | "onChange" | "value" | "defaultValue" | "format">;
34
34
  }, {}>, Readonly<ApFieldDataSlots> & ApFieldDataSlots>;
35
35
  export default _default;
36
36
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -2,13 +2,12 @@ import { defineComponent as C, computed as s, unref as o, openBlock as p, create
2
2
  import i from "dayjs";
3
3
  import { DatePicker as U } from "ant-design-vue";
4
4
  import { ApFieldDatePresetFormats as $, PRESET_FORMAT_MAP as b, PRESET_FORMAT_PICK_MAP as w, PRESET_FORMAT_TIME_MAP as z } from "./constant.mjs";
5
- import "../../hooks/useMessage.mjs";
6
- import { useControllableValue as K } from "../../hooks/useControllableValue.mjs";
5
+ import "../../hooks/index.mjs";
7
6
  import { isNil as P } from "lodash-unified";
8
7
  import { formatDay as d } from "./helper.mjs";
8
+ import { useControllableValue as K } from "../../hooks/useControllableValue.mjs";
9
9
  const X = /* @__PURE__ */ C({
10
10
  name: "ApFieldDate",
11
- inheritAttrs: !1,
12
11
  __name: "index",
13
12
  props: {
14
13
  mode: { default: "edit" },
@@ -26,45 +25,45 @@ const X = /* @__PURE__ */ C({
26
25
  () => $.indexOf(e.format) > -1
27
26
  ), l = s(
28
27
  () => n.value ? b[e.format] : e.format
29
- ), O = s(() => P(o(u)) ? void 0 : i(o(u))), g = s(() => o(n) ? e.fieldProps.picker ?? w[e.format] : e.fieldProps.picker), h = s(() => {
28
+ ), O = s(() => P(o(u)) ? void 0 : i(o(u))), g = s(() => o(n) ? e.fieldProps.picker ?? w[e.format] : e.fieldProps.picker), y = s(() => {
30
29
  const t = o(n) ? z[e.format] : {};
31
30
  return {
32
31
  ...e.fieldProps,
33
32
  ...t
34
33
  };
35
34
  });
36
- function y(t) {
35
+ function T(t) {
37
36
  if (P(t)) {
38
37
  c(null);
39
38
  return;
40
39
  }
41
- const r = i(t);
42
- o(n) ? c(d(r, o(l))) : c(r.valueOf());
40
+ const a = i(t);
41
+ o(n) ? c(d(a, o(l))) : c(a.valueOf());
43
42
  }
44
- function T(t, r) {
43
+ function h(t, a) {
45
44
  var f;
46
- const m = i(t), a = o(n) ? d(m, o(l)) : t ? m.valueOf() : null;
47
- (f = e.onChange) == null || f.call(e, a, r);
45
+ const m = i(t), r = o(n) ? d(m, o(l)) : t ? m.valueOf() : null;
46
+ (f = e.onChange) == null || f.call(e, r, a);
48
47
  }
49
48
  function A(t) {
50
- var a;
51
- const r = i(t), m = o(n) ? d(r, o(l)) : t ? r.valueOf() : null;
52
- (a = e.onOk) == null || a.call(e, m);
49
+ var r;
50
+ const a = i(t), m = o(n) ? d(a, o(l)) : t ? a.valueOf() : null;
51
+ (r = e.onOk) == null || r.call(e, m);
53
52
  }
54
- return (t, r) => t.mode === "read" ? (p(), E(F, { key: 0 }, [
53
+ return (t, a) => t.mode === "read" ? (p(), E(F, { key: 0 }, [
55
54
  R(M(o(u) ? o(i)(o(u)).format(l.value) : t.emptyText), 1)
56
- ], 64)) : (p(), D(o(U), S({ key: 1 }, h.value, {
55
+ ], 64)) : (p(), D(o(U), S({ key: 1 }, y.value, {
57
56
  value: O.value,
58
57
  format: l.value,
59
- "onUpdate:value": y,
60
- onChange: T,
58
+ "onUpdate:value": T,
59
+ onChange: h,
61
60
  onOk: A,
62
61
  picker: g.value
63
62
  }), V({ _: 2 }, [
64
- x(t.$slots, (m, a) => ({
65
- name: a,
63
+ x(t.$slots, (m, r) => ({
64
+ name: r,
66
65
  fn: j((f) => [
67
- B(t.$slots, a, I(N(f || {})))
66
+ B(t.$slots, r, I(N(f || {})))
68
67
  ])
69
68
  }))
70
69
  ]), 1040, ["value", "format", "picker"]));
@@ -32,7 +32,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
32
32
  mode: FieldMode;
33
33
  format: string;
34
34
  emptyText: string;
35
- fieldProps: Omit< RangePickerProps, "value" | "defaultValue" | "onChange" | "renderExtraFooter" | "onPanelChange" | "onOk">;
35
+ fieldProps: Omit< RangePickerProps, "onOk" | "onChange" | "value" | "defaultValue" | "renderExtraFooter" | "onPanelChange">;
36
36
  }, {}>, Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots>;
37
37
  export default _default;
38
38
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as V, computed as m, unref as t, openBlock as p, createElementBlock as k, Fragment as _, createTextVNode as T, toDisplayString as O, createVNode as C, createBlock as x, mergeProps as B, createSlots as N, renderList as w, withCtx as I, renderSlot as U, normalizeProps as $, guardReactiveProps as b } from "vue";
2
2
  import { ApFieldDatePresetFormats as j, PRESET_FORMAT_MAP as z, PRESET_FORMAT_PICK_MAP as K, PRESET_FORMAT_TIME_MAP as L } from "../date/constant.mjs";
3
- import "../../hooks/useMessage.mjs";
4
- import { useControllableValue as Y } from "../../hooks/useControllableValue.mjs";
5
- import { isNil as q, isString as c } from "lodash-unified";
3
+ import "../../hooks/index.mjs";
4
+ import { isNil as Y, isString as c } from "lodash-unified";
6
5
  import u from "dayjs";
7
- import { DatePicker as G } from "ant-design-vue";
6
+ import { DatePicker as q } from "ant-design-vue";
8
7
  import { formatDay as d, formatValue as R } from "../date/helper.mjs";
9
- import { SwapRightOutlined as H } from "@ant-design/icons-vue";
8
+ import { SwapRightOutlined as G } from "@ant-design/icons-vue";
9
+ import { useControllableValue as H } from "../../hooks/useControllableValue.mjs";
10
10
  const ae = /* @__PURE__ */ V({
11
11
  __name: "index",
12
12
  props: {
@@ -25,12 +25,12 @@ const ae = /* @__PURE__ */ V({
25
25
  () => j.indexOf(o.format) > -1
26
26
  ), n = m(
27
27
  () => l.value ? z[o.format] : o.format
28
- ), { value: P, updateValue: v } = Y(
28
+ ), { value: P, updateValue: v } = H(
29
29
  o,
30
30
  E
31
31
  ), s = m(() => {
32
32
  var e, r;
33
- if (!q(t(P)))
33
+ if (!Y(t(P)))
34
34
  return [
35
35
  u((e = t(P)) == null ? void 0 : e[0]),
36
36
  u((r = t(P)) == null ? void 0 : r[1])
@@ -60,12 +60,12 @@ const ae = /* @__PURE__ */ V({
60
60
  return e.mode === "read" ? (p(), k(_, { key: 0 }, [
61
61
  s.value ? (p(), k(_, { key: 0 }, [
62
62
  T(O((a = s.value[0]) == null ? void 0 : a.format(n.value)) + " ", 1),
63
- C(t(H)),
63
+ C(t(G)),
64
64
  T(" " + O((f = s.value[1]) == null ? void 0 : f.format(n.value)), 1)
65
65
  ], 64)) : (p(), k(_, { key: 1 }, [
66
66
  T(O(e.emptyText), 1)
67
67
  ], 64))
68
- ], 64)) : (p(), x(t(G).RangePicker, B({ key: 1 }, A.value, {
68
+ ], 64)) : (p(), x(t(q).RangePicker, B({ key: 1 }, A.value, {
69
69
  value: s.value,
70
70
  "onUpdate:value": F,
71
71
  picker: S.value,
@@ -8,5 +8,17 @@ import { default as ApFieldTextArea } from './text-area/index.vue';
8
8
  import { default as ApFieldDateRange } from './date-range/index.vue';
9
9
  import { default as ApFieldSelect } from './select/index.vue';
10
10
 
11
+ export type FieldType = {
12
+ Text: typeof ApFieldText;
13
+ TextArea: typeof ApFieldTextArea;
14
+ Number: typeof ApFieldNumber;
15
+ Date: typeof ApFieldDate;
16
+ DateRange: typeof ApFieldDateRange;
17
+ Radio: typeof ApFieldRadio;
18
+ Checkbox: typeof ApFieldCheckbox;
19
+ Select: typeof ApFieldSelect;
20
+ Switch: typeof ApFieldSwitch;
21
+ };
22
+ export declare const ApField: FieldType;
11
23
  export * from './interface';
12
24
  export { ApFieldText, ApFieldCheckbox, ApFieldDate, ApFieldNumber, ApFieldRadio, ApFieldSwitch, ApFieldTextArea, ApFieldDateRange, ApFieldSelect };
@@ -0,0 +1,42 @@
1
+ import "./text/index.vue2.mjs";
2
+ import "./checkbox/index.vue2.mjs";
3
+ import "./date/index.vue2.mjs";
4
+ import "./number/index.vue2.mjs";
5
+ import "./radio/index.vue2.mjs";
6
+ import "./switch/index.vue2.mjs";
7
+ import "./text-area/index.vue2.mjs";
8
+ import "./date-range/index.vue2.mjs";
9
+ import "./select/index.vue2.mjs";
10
+ import "./interface.mjs";
11
+ import i from "./text/index.vue.mjs";
12
+ import m from "./text-area/index.vue.mjs";
13
+ import o from "./number/index.vue.mjs";
14
+ import r from "./date/index.vue.mjs";
15
+ import t from "./date-range/index.vue.mjs";
16
+ import e from "./radio/index.vue.mjs";
17
+ import p from "./checkbox/index.vue.mjs";
18
+ import a from "./select/index.vue.mjs";
19
+ import s from "./switch/index.vue.mjs";
20
+ const w = {
21
+ Text: i,
22
+ TextArea: m,
23
+ Number: o,
24
+ Date: r,
25
+ DateRange: t,
26
+ Radio: e,
27
+ Checkbox: p,
28
+ Select: a,
29
+ Switch: s
30
+ };
31
+ export {
32
+ w as ApField,
33
+ p as ApFieldCheckbox,
34
+ r as ApFieldDate,
35
+ t as ApFieldDateRange,
36
+ o as ApFieldNumber,
37
+ e as ApFieldRadio,
38
+ a as ApFieldSelect,
39
+ s as ApFieldSwitch,
40
+ i as ApFieldText,
41
+ m as ApFieldTextArea
42
+ };
@@ -1,8 +1,9 @@
1
- import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps } from 'ant-design-vue';
1
+ import { InputProps, CheckboxGroupProps, DatePickerProps, InputNumberProps, RadioGroupProps, SwitchProps, TextAreaProps, SelectProps, PopconfirmProps } from 'ant-design-vue';
2
2
  import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
3
3
  import { ApFormatPresetType } from './date/interface';
4
4
  import { RangeValue } from 'ant-design-vue/es/vc-picker/interface';
5
5
  import { RangePickerProps } from 'ant-design-vue/es/date-picker/dayjs';
6
+ import { LiteralUnion } from '../type';
6
7
 
7
8
  export type FieldMode = 'read' | 'edit';
8
9
  export type BasicApFieldProps<FieldPropsType = any> = {
@@ -32,7 +33,7 @@ export type ApFieldDateProps = ApFieldComposedProps<Omit<DatePickerProps, 'mode'
32
33
  defaultValue?: number;
33
34
  onChange?: (ts: number | null, dayStr: string) => void;
34
35
  onOk?: (ts: number | null) => void;
35
- format?: ApFormatPresetType | string;
36
+ format?: LiteralUnion<ApFormatPresetType, string>;
36
37
  };
37
38
  export type ApFieldNumberProps = BasicApFieldProps<InputNumberProps> & {
38
39
  emptyText?: string;
@@ -59,7 +60,8 @@ export type ApiFieldRadioExpose = {
59
60
  };
60
61
  export type ApFieldSwitchProps = BasicApFieldProps<Omit<SwitchProps, 'onClick'>> & {
61
62
  emptyText?: string;
62
- onAction?: (checked: string | boolean | number, e: Event) => boolean | Promise<boolean>;
63
+ onAction?: (checked: string | boolean | number, e?: Event) => boolean | Promise<boolean>;
64
+ confirm?: Pick<PopconfirmProps, 'title' | 'okText' | 'cancelText' | 'description' | 'showCancel' | 'icon' | 'okType' | 'onCancel'>;
63
65
  };
64
66
  export type ApFieldTextAreaProps = BasicApFieldProps<TextAreaProps> & {
65
67
  emptyText?: string;
@@ -75,7 +77,7 @@ export type ApFieldDateRangeProps = ApFieldComposedProps<Omit<RangePickerProps,
75
77
  defaultValue?: RangeValue<number>;
76
78
  onChange?: (ts: RangeValue<number>, dayStr: string) => void;
77
79
  onOk?: (ts: RangeValue<number>) => void;
78
- format?: ApFormatPresetType | string;
80
+ format?: LiteralUnion<ApFormatPresetType, string>;
79
81
  };
80
82
  export type ApFieldSelectProps = ApFieldComposedProps<Omit<SelectProps, 'mode' | 'value' | 'onUpdate:value' | 'onSearch'>> & {
81
83
  emptyText?: string;
@@ -0,0 +1 @@
1
+
@@ -2,8 +2,8 @@ import { isNil as i } from "lodash-unified";
2
2
  function a(t, r) {
3
3
  if (i(r))
4
4
  return t;
5
- let [f, e] = t.split(".");
6
- if (!e || e.length >= r)
5
+ let [f, e = ""] = t.split(".");
6
+ if (e.length >= r)
7
7
  return t;
8
8
  for (let l = e.length; l < r; l++)
9
9
  e += "0";
@@ -38,12 +38,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
38
38
  }>>> & {
39
39
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
40
40
  }, {
41
+ keyboard: boolean;
41
42
  bordered: boolean;
42
43
  min: ValueType;
43
44
  max: ValueType;
44
45
  step: ValueType;
45
46
  controls: boolean;
46
- keyboard: boolean;
47
47
  emptyText: string;
48
48
  thousands: boolean;
49
49
  }, {}>, Readonly<ApFieldNumberSlots> & ApFieldNumberSlots>;
@@ -1,16 +1,15 @@
1
- import { defineComponent as C, ref as S, computed as N, unref as o, openBlock as r, createElementBlock as n, Fragment as V, normalizeClass as m, renderSlot as i, createCommentVNode as d, createElementVNode as $, toDisplayString as x, createBlock as A, mergeProps as D, createSlots as P, renderList as R, withCtx as I, normalizeProps as z, guardReactiveProps as E } from "vue";
1
+ import { defineComponent as h, ref as C, computed as x, unref as o, openBlock as r, createElementBlock as n, Fragment as N, normalizeClass as d, renderSlot as s, createCommentVNode as m, createElementVNode as V, toDisplayString as $, createBlock as D, mergeProps as P, createSlots as R, renderList as A, withCtx as I, normalizeProps as z, guardReactiveProps as E } from "vue";
2
2
  import { InputNumber as F } from "ant-design-vue";
3
- import "../../hooks/useMessage.mjs";
4
- import { useControllableValue as M } from "../../hooks/useControllableValue.mjs";
5
- import { isNil as T, omit as U } from "lodash-unified";
6
- import { toDecimalMark as w } from "@fruits-chain/utils";
7
- import { addZeroToDecimalPlaces as L } from "./helper.mjs";
3
+ import "../../hooks/index.mjs";
4
+ import { isNil as M, omit as T } from "lodash-unified";
5
+ import { toDecimalMark as U } from "@fruits-chain/utils";
6
+ import { addZeroToDecimalPlaces as _ } from "./helper.mjs";
8
7
  import "../../config-provider/index.mjs";
9
8
  import "./style.css";
10
- import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
11
- const Y = /* @__PURE__ */ C({
9
+ import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as L } from "../../hooks/useControllableValue.mjs";
11
+ const Y = /* @__PURE__ */ h({
12
12
  name: "ApFieldNumber",
13
- inheritAttrs: !1,
14
13
  __name: "index",
15
14
  props: {
16
15
  mode: {},
@@ -55,15 +54,15 @@ const Y = /* @__PURE__ */ C({
55
54
  },
56
55
  emits: ["update:value"],
57
56
  setup(f, { expose: c, emit: y }) {
58
- const v = y, { b: s } = Z("field-number"), t = f, l = S(), { value: p, updateValue: B } = M(
57
+ const v = y, { b: i } = w("field-number"), t = f, l = C(), { value: u, updateValue: B } = L(
59
58
  t,
60
59
  v
61
- ), b = N(() => {
62
- let e = o(p);
63
- if (T(e))
60
+ ), b = x(() => {
61
+ let e = o(u);
62
+ if (M(e))
64
63
  return t.emptyText;
65
- let a = w(e, t.precision);
66
- return t.precision && t.limitDecimalsRetain && (a = L(a, t.precision)), a;
64
+ let a = t.thousands ? U(e, t.precision) : String(e);
65
+ return t.precision && t.limitDecimalsRetain && (a = _(a, t.precision)), a;
67
66
  });
68
67
  function k() {
69
68
  var e;
@@ -73,34 +72,33 @@ const Y = /* @__PURE__ */ C({
73
72
  var e;
74
73
  (e = l.value) == null || e.blur();
75
74
  }
76
- return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(V, { key: 0 }, [
75
+ return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n(N, { key: 0 }, [
77
76
  e.$slots.prefix ? (r(), n("span", {
78
77
  key: 0,
79
- class: m(o(s)("label-left"))
78
+ class: d(o(i)("label-left"))
80
79
  }, [
81
- i(e.$slots, "prefix")
82
- ], 2)) : d("", !0),
83
- $("span", null, x(b.value), 1),
80
+ s(e.$slots, "prefix")
81
+ ], 2)) : m("", !0),
82
+ V("span", null, $(b.value), 1),
84
83
  e.$slots.addonAfter ? (r(), n("span", {
85
84
  key: 1,
86
- class: m(o(s)("label-right"))
85
+ class: d(o(i)("label-right"))
87
86
  }, [
88
- i(e.$slots, "addonAfter")
89
- ], 2)) : d("", !0)
90
- ], 64)) : (r(), A(o(F), D({ key: 1 }, o(U)(t, ["precision", "value", "update:value"]), {
91
- value: o(p),
87
+ s(e.$slots, "addonAfter")
88
+ ], 2)) : m("", !0)
89
+ ], 64)) : (r(), D(o(F), P({ key: 1 }, o(T)(t, ["value", "update:value"]), {
90
+ value: o(u),
92
91
  "onUpdate:value": o(B),
93
- precision: e.precision,
94
92
  ref_key: "inputRef",
95
93
  ref: l
96
- }), P({ _: 2 }, [
97
- R(e.$slots, (_, u) => ({
98
- name: u,
99
- fn: I((h) => [
100
- i(e.$slots, u, z(E(h || {})))
94
+ }), R({ _: 2 }, [
95
+ A(e.$slots, (Z, p) => ({
96
+ name: p,
97
+ fn: I((S) => [
98
+ s(e.$slots, p, z(E(S || {})))
101
99
  ])
102
100
  }))
103
- ]), 1040, ["value", "onUpdate:value", "precision"]));
101
+ ]), 1040, ["value", "onUpdate:value"]));
104
102
  }
105
103
  });
106
104
  export {
@@ -1,12 +1,11 @@
1
- import { defineComponent as b, ref as i, onMounted as k, computed as T, unref as o, openBlock as p, createElementBlock as _, Fragment as V, createTextVNode as h, toDisplayString as B, createBlock as C, mergeProps as R } from "vue";
2
- import { RadioGroup as G } from "ant-design-vue";
3
- import "../../hooks/useMessage.mjs";
4
- import { useControllableValue as U } from "../../hooks/useControllableValue.mjs";
5
- import { isNil as q, omit as A } from "lodash-unified";
1
+ import { defineComponent as V, ref as i, onMounted as q, computed as B, unref as o, openBlock as n, createElementBlock as m, Fragment as d, createTextVNode as C, toDisplayString as R, createBlock as f, mergeProps as h } from "vue";
2
+ import { Spin as G, RadioGroup as S } from "ant-design-vue";
3
+ import "../../hooks/index.mjs";
4
+ import { isNil as U, omit as z } from "lodash-unified";
6
5
  import { getOptionValue as F, getOptionLabel as N } from "./helper.mjs";
7
- const M = /* @__PURE__ */ b({
6
+ import { useControllableValue as O } from "../../hooks/useControllableValue.mjs";
7
+ const j = /* @__PURE__ */ V({
8
8
  name: "ApFieldRadio",
9
- inheritAttrs: !1,
10
9
  __name: "index",
11
10
  props: {
12
11
  mode: { default: "edit" },
@@ -25,44 +24,51 @@ const M = /* @__PURE__ */ b({
25
24
  request: {}
26
25
  },
27
26
  emits: ["update:value"],
28
- setup(s, { expose: m, emit: d }) {
29
- const t = s, f = d, n = i(), u = i((t == null ? void 0 : t.options) || []), { value: l, updateValue: c } = U(t, f);
30
- k(() => {
27
+ setup(c, { expose: v, emit: y }) {
28
+ const t = c, g = y, u = i(), l = i((t == null ? void 0 : t.options) || []), { value: s, updateValue: x } = O(t, g), r = i(!1);
29
+ q(() => {
31
30
  var e;
32
- (e = t.request) == null || e.call(t).then((a) => u.value = a);
31
+ t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => l.value = a).finally(() => {
32
+ r.value = !1;
33
+ }));
33
34
  });
34
- const v = T(() => {
35
- var r;
36
- const e = o(l);
37
- if (q(e))
35
+ const k = B(() => {
36
+ var p;
37
+ const e = o(s);
38
+ if (U(e))
38
39
  return t.emptyText;
39
- const a = (r = u.value) == null ? void 0 : r.find(
40
- (g) => e === F(g)
40
+ const a = (p = l.value) == null ? void 0 : p.find(
41
+ (_) => e === F(_)
41
42
  );
42
43
  return N(a) || t.emptyText;
43
44
  });
44
- function y() {
45
+ function b() {
45
46
  var e;
46
- (e = n.value) == null || e.focus();
47
+ (e = u.value) == null || e.focus();
47
48
  }
48
- function x() {
49
+ function T() {
49
50
  var e;
50
- (e = n.value) == null || e.blur();
51
+ (e = u.value) == null || e.blur();
51
52
  }
52
- return m({
53
- focus: y,
54
- blur: x
55
- }), (e, a) => e.mode === "read" ? (p(), _(V, { key: 0 }, [
56
- h(B(v.value), 1)
57
- ], 64)) : (p(), C(o(G), R({ key: 1 }, o(A)(t, ["value", "update:value", "options"]), {
58
- value: o(l),
59
- "onUpdate:value": o(c),
60
- options: u.value,
61
- ref_key: "radioGroupRef",
62
- ref: n
63
- }), null, 16, ["value", "onUpdate:value", "options"]));
53
+ return v({
54
+ focus: b,
55
+ blur: T
56
+ }), (e, a) => e.mode === "read" ? (n(), m(d, { key: 0 }, [
57
+ C(R(k.value), 1)
58
+ ], 64)) : (n(), m(d, { key: 1 }, [
59
+ r.value ? (n(), f(o(G), {
60
+ key: 0,
61
+ size: "small"
62
+ })) : (n(), f(o(S), h({ key: 1 }, o(z)(t, ["value", "update:value", "options", "request"]), {
63
+ value: o(s),
64
+ "onUpdate:value": o(x),
65
+ options: l.value,
66
+ ref_key: "radioGroupRef",
67
+ ref: u
68
+ }), null, 16, ["value", "onUpdate:value", "options"]))
69
+ ], 64));
64
70
  }
65
71
  });
66
72
  export {
67
- M as default
73
+ j as default
68
74
  };
@@ -208,7 +208,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
208
208
  type: BooleanConstructor;
209
209
  default: any;
210
210
  };
211
- }>>, "value" | "mode" | "onUpdate:value" | "onSearch">;
211
+ }>>, "mode" | "value" | "onUpdate:value" | "onSearch">;
212
212
  }, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
213
213
  export default _default;
214
214
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as B, ref as d, onMounted as C, computed as v, unref as a, openBlock as h, createElementBlock as V, toDisplayString as T, createBlock as I, mergeProps as M, createSlots as R, renderList as U, withCtx as y, renderSlot as z, normalizeProps as N, guardReactiveProps as $, createVNode as j } from "vue";
2
2
  import { debounce as D, isFunction as P, isArray as E, isNil as L } from "lodash-unified";
3
3
  import { Select as G, Spin as H } from "ant-design-vue";
4
- import "../../hooks/useMessage.mjs";
4
+ import "../../hooks/index.mjs";
5
5
  import { useControllableValue as J } from "../../hooks/useControllableValue.mjs";
6
6
  const K = { key: 0 }, ee = /* @__PURE__ */ B({
7
7
  name: "ApFieldSelect",
@@ -23,8 +23,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
23
23
  }>>> & {
24
24
  "onUpdate:checked"?: ((...args: any[]) => any) | undefined;
25
25
  }, {
26
- size: "small" | "default";
27
26
  loading: boolean;
27
+ size: "default" | "small";
28
28
  checkedValue: string | number | boolean;
29
29
  unCheckedValue: string | number | boolean;
30
30
  emptyText: string;