@aplus-frontend/ui 0.2.0-beta.5 → 0.2.1

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 (383) hide show
  1. package/es/index.mjs +1 -1
  2. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  3. package/es/src/ap-action/group/index.vue.mjs +1 -1
  4. package/es/src/ap-action/interface.d.ts +1 -1
  5. package/es/src/ap-action/item/index.vue2.mjs +1 -1
  6. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  7. package/es/src/ap-action/item-dropdown/index.vue.mjs +1 -1
  8. package/es/src/ap-action/item-modal/index.vue.d.ts +1 -1
  9. package/es/src/ap-action/item-modal/index.vue.mjs +1 -1
  10. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
  11. package/es/src/ap-action/item-popconfirm/index.vue.mjs +1 -1
  12. package/es/src/ap-button/ap-action-button.vue.d.ts +1 -1
  13. package/es/src/ap-button/ap-action-button.vue.mjs +1 -0
  14. package/es/src/ap-button/ap-button.vue.d.ts +4 -1
  15. package/es/src/ap-button/ap-button.vue.mjs +47 -66
  16. package/es/src/ap-button/interface.d.ts +2 -1
  17. package/es/src/ap-button/utils/index.d.ts +3 -0
  18. package/es/src/ap-button/utils/index.mjs +33 -0
  19. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +1 -1
  20. package/es/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
  21. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  22. package/es/src/ap-descriptions/interface.d.ts +2 -2
  23. package/es/src/ap-download/ap-download.vue.d.ts +1 -1
  24. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  25. package/es/src/ap-download/interface.d.ts +1 -1
  26. package/es/src/ap-field/checkbox/helper.d.ts +3 -3
  27. package/es/src/ap-field/checkbox/index.vue.d.ts +1 -1
  28. package/es/src/ap-field/checkbox/index.vue.mjs +24 -23
  29. package/es/src/ap-field/date/constant.d.ts +1 -1
  30. package/es/src/ap-field/date/helper.d.ts +1 -1
  31. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  32. package/es/src/ap-field/date/index.vue.mjs +1 -1
  33. package/es/src/ap-field/date-range/index.vue.mjs +1 -1
  34. package/es/src/ap-field/hooks/use-options.d.ts +8 -0
  35. package/es/src/ap-field/hooks/use-options.mjs +22 -0
  36. package/es/src/ap-field/interface.d.ts +5 -5
  37. package/es/src/ap-field/number/index.vue.d.ts +4 -4
  38. package/es/src/ap-field/number/index.vue.mjs +1 -1
  39. package/es/src/ap-field/radio/helper.d.ts +1 -1
  40. package/es/src/ap-field/radio/index.vue.mjs +26 -25
  41. package/es/src/ap-field/rate/index.vue.d.ts +3 -3
  42. package/es/src/ap-field/rate/index.vue.mjs +1 -1
  43. package/es/src/ap-field/segmented/index.vue.mjs +37 -33
  44. package/es/src/ap-field/select/index.vue.d.ts +6 -6
  45. package/es/src/ap-field/select/index.vue.mjs +74 -73
  46. package/es/src/ap-field/slider/index.vue.d.ts +4 -4
  47. package/es/src/ap-field/slider/index.vue.mjs +1 -1
  48. package/es/src/ap-field/switch/index.vue.mjs +1 -1
  49. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  50. package/es/src/ap-field/text/index.vue2.mjs +1 -1
  51. package/es/src/ap-field/text/input-password-props.d.ts +1 -1
  52. package/es/src/ap-field/text/password.vue.mjs +1 -1
  53. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  54. package/es/src/ap-field/text-area/index.vue.mjs +1 -1
  55. package/es/src/ap-form/ap-form.vue.d.ts +7 -7
  56. package/es/src/ap-form/ap-form.vue2.mjs +1 -1
  57. package/es/src/ap-form/context.d.ts +1 -1
  58. package/es/src/ap-form/drawer-form/index.vue.d.ts +6 -6
  59. package/es/src/ap-form/drawer-form/index.vue.mjs +1 -1
  60. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  61. package/es/src/ap-form/interface.d.ts +3 -3
  62. package/es/src/ap-form/item/index.vue.d.ts +4 -4
  63. package/es/src/ap-form/item/index.vue.mjs +2 -2
  64. package/es/src/ap-form/item-group/index.vue.d.ts +2 -2
  65. package/es/src/ap-form/item-group/index.vue.mjs +1 -1
  66. package/es/src/ap-form/items/interface.d.ts +1 -1
  67. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  68. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  69. package/es/src/ap-form/items/text/group.vue2.mjs +1 -1
  70. package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
  71. package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
  72. package/es/src/ap-form/items/text-area/index.vue.d.ts +4 -4
  73. package/es/src/ap-form/modal-form/index.vue.d.ts +8 -8
  74. package/es/src/ap-form/modal-form/index.vue.mjs +1 -1
  75. package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
  76. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  77. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  78. package/es/src/ap-list/index.vue.mjs +1 -1
  79. package/es/src/ap-modal/index.d.ts +1 -1
  80. package/es/src/ap-modal/index.mjs +1 -1
  81. package/es/src/ap-modal/interface.d.ts +1 -1
  82. package/es/src/ap-modal/utils/createModal.mjs +1 -1
  83. package/es/src/ap-table/ap-table.vue.d.ts +1 -1
  84. package/es/src/ap-table/ap-table.vue.mjs +2 -428
  85. package/es/src/ap-table/ap-table.vue2.mjs +428 -2
  86. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
  87. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +23 -21
  88. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  89. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  90. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
  91. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  92. package/es/src/ap-table/components/setting/utils.d.ts +1 -1
  93. package/es/src/ap-table/components/status/index.vue2.mjs +1 -1
  94. package/es/src/ap-table/constants.d.ts +30 -30
  95. package/es/src/ap-table/context.d.ts +1 -1
  96. package/es/src/ap-table/hooks/use-table-column-state.mjs +75 -71
  97. package/es/src/ap-table/hooks/use-table-paging.d.ts +3 -3
  98. package/es/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
  99. package/es/src/ap-table/index.d.ts +6 -1
  100. package/es/src/ap-table/index.mjs +9 -3
  101. package/es/src/ap-table/interface.d.ts +3 -3
  102. package/es/src/ap-table/utils.d.ts +8 -7
  103. package/es/src/ap-table/utils.mjs +1 -1
  104. package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
  105. package/es/src/ap-tag/interface.d.ts +1 -1
  106. package/es/src/ap-upload/apUpload.vue.mjs +1 -1
  107. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +1 -1
  108. package/es/src/ap-upload/components/Picture.vue2.mjs +1 -1
  109. package/es/src/ap-upload/components/SingleFile.vue2.mjs +1 -1
  110. package/es/src/business/ap-attachment/ApAttachment.d.ts +1 -1
  111. package/es/src/business/ap-attachment/ApAttachment.mjs +1 -1
  112. package/es/src/business/ap-attachment/index.d.ts +1 -1
  113. package/es/src/business/ap-attachment/interface.d.ts +1 -1
  114. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
  115. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +42 -29
  116. package/es/src/business/ap-batch-action/index.d.ts +8 -3
  117. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +14 -13
  118. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  119. package/es/src/business/ap-batch-action-group/index.d.ts +12 -8
  120. package/es/src/business/ap-batch-action-group/interface.d.ts +2 -2
  121. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  122. package/es/src/business/ap-button-group/index.d.ts +13 -5
  123. package/es/src/business/ap-button-group/interface.d.ts +1 -1
  124. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +1 -1
  125. package/es/src/business/ap-expand-alert/interface.d.ts +1 -1
  126. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +42 -40
  127. package/es/src/business/ap-export-group/handleExportDownload.mjs +1 -1
  128. package/es/src/business/ap-export-group/interface.d.ts +1 -1
  129. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  130. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +1 -1
  131. package/es/src/business/ap-input-radio/index.d.ts +2 -2
  132. package/es/src/business/ap-input-radio/interface.d.ts +1 -1
  133. package/es/src/business/ap-label/ApLabel.d.ts +2 -2
  134. package/es/src/business/ap-label/ApLabel.mjs +1 -1
  135. package/es/src/business/ap-label/constans.d.ts +2 -2
  136. package/es/src/business/ap-label/constans.mjs +1 -1
  137. package/es/src/business/ap-label/group/ApLabelGroup.mjs +1 -1
  138. package/es/src/business/ap-label/index.d.ts +2 -2
  139. package/es/src/business/ap-label/interface.d.ts +3 -3
  140. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
  141. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
  142. package/es/src/business/ap-ladder/index.d.ts +5 -5
  143. package/es/src/business/ap-ladder/interface.d.ts +1 -1
  144. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +1 -1
  145. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  146. package/es/src/business/ap-summary/interface.d.ts +2 -2
  147. package/es/src/business/ap-summary/utils.d.ts +1 -1
  148. package/es/src/business/ap-summary/utils.mjs +16 -16
  149. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  150. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  151. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  152. package/es/src/business/ap-table-modal/index.d.ts +43 -6
  153. package/es/src/business/ap-table-modal/interface.d.ts +17 -2
  154. package/es/src/business/ap-table-modal/style/css.js +1 -1
  155. package/es/src/business/ap-table-modal/style/index.js +1 -1
  156. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
  157. package/es/src/business/ap-table-modal/table-layout/index.vue.mjs +4 -0
  158. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +74 -0
  159. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  160. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +134 -79
  161. package/es/src/business/ap-title/ApTitle.vue2.mjs +1 -1
  162. package/es/src/business/hooks/usePageListApTable.d.ts +1 -1
  163. package/es/src/check-card/index.vue2.mjs +1 -1
  164. package/es/src/config-provider/config-provider-props.d.ts +8 -8
  165. package/es/src/config-provider/config-provider-props.mjs +1 -1
  166. package/es/src/config-provider/config-provider.d.ts +9 -8
  167. package/es/src/config-provider/config-provider.mjs +1 -1
  168. package/es/src/config-provider/constants.d.ts +1 -1
  169. package/es/src/config-provider/css-var.d.ts +1 -0
  170. package/es/src/config-provider/css-var.mjs +7 -5
  171. package/es/src/config-provider/hooks/use-global-config.d.ts +8 -8
  172. package/es/src/config-provider/index.d.ts +14 -8
  173. package/es/src/design-token/index.d.ts +1 -1
  174. package/es/src/editable-table/form-item.vue.d.ts +1 -0
  175. package/es/src/editable-table/form-item.vue.mjs +60 -55
  176. package/es/src/editable-table/hooks/use-get-columns.d.ts +1 -1
  177. package/es/src/editable-table/hooks/use-get-columns.mjs +1 -1
  178. package/es/src/editable-table/index.vue.d.ts +1 -1
  179. package/es/src/editable-table/index.vue.mjs +1 -1
  180. package/es/src/editable-table/interface.d.ts +6 -6
  181. package/es/src/editable-table/utils.mjs +69 -69
  182. package/es/src/hooks/useMessage.d.ts +4 -4
  183. package/es/src/hooks/useMessage.mjs +1 -1
  184. package/es/src/index.mjs +201 -202
  185. package/es/src/locale/lang/en.mjs +3 -1
  186. package/es/src/locale/lang/zh-cn.mjs +3 -1
  187. package/es/src/path-map.mjs +2 -0
  188. package/es/src/utils/config-provider-preset.d.ts +10 -10
  189. package/es/src/work-order-modal/help-message.vue2.mjs +1 -1
  190. package/es/src/work-order-modal/interfaces.d.ts +1 -1
  191. package/es/src/work-order-modal/work-order-modal.vue.mjs +1 -1
  192. package/lib/index.js +1 -1
  193. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  194. package/lib/src/ap-action/group/index.vue.js +1 -1
  195. package/lib/src/ap-action/interface.d.ts +1 -1
  196. package/lib/src/ap-action/item/index.vue2.js +1 -1
  197. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  198. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  199. package/lib/src/ap-action/item-modal/index.vue.d.ts +1 -1
  200. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  201. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +8 -8
  202. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  203. package/lib/src/ap-button/ap-action-button.vue.d.ts +1 -1
  204. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  205. package/lib/src/ap-button/ap-button.vue.d.ts +4 -1
  206. package/lib/src/ap-button/ap-button.vue.js +1 -1
  207. package/lib/src/ap-button/interface.d.ts +2 -1
  208. package/lib/src/ap-button/utils/index.d.ts +3 -0
  209. package/lib/src/ap-button/utils/index.js +1 -0
  210. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  211. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +2 -2
  212. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  213. package/lib/src/ap-descriptions/interface.d.ts +2 -2
  214. package/lib/src/ap-download/ap-download.vue.d.ts +1 -1
  215. package/lib/src/ap-download/ap-download.vue.js +1 -1
  216. package/lib/src/ap-download/interface.d.ts +1 -1
  217. package/lib/src/ap-field/checkbox/helper.d.ts +3 -3
  218. package/lib/src/ap-field/checkbox/index.vue.d.ts +1 -1
  219. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  220. package/lib/src/ap-field/date/constant.d.ts +1 -1
  221. package/lib/src/ap-field/date/helper.d.ts +1 -1
  222. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  223. package/lib/src/ap-field/date/index.vue.js +1 -1
  224. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  225. package/lib/src/ap-field/hooks/use-options.d.ts +8 -0
  226. package/lib/src/ap-field/hooks/use-options.js +1 -0
  227. package/lib/src/ap-field/interface.d.ts +5 -5
  228. package/lib/src/ap-field/number/index.vue.d.ts +4 -4
  229. package/lib/src/ap-field/number/index.vue.js +1 -1
  230. package/lib/src/ap-field/radio/helper.d.ts +1 -1
  231. package/lib/src/ap-field/radio/index.vue.js +1 -1
  232. package/lib/src/ap-field/rate/index.vue.d.ts +3 -3
  233. package/lib/src/ap-field/rate/index.vue.js +1 -1
  234. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  235. package/lib/src/ap-field/select/index.vue.d.ts +6 -6
  236. package/lib/src/ap-field/select/index.vue.js +1 -1
  237. package/lib/src/ap-field/slider/index.vue.d.ts +4 -4
  238. package/lib/src/ap-field/slider/index.vue.js +1 -1
  239. package/lib/src/ap-field/switch/index.vue.js +1 -1
  240. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  241. package/lib/src/ap-field/text/index.vue2.js +1 -1
  242. package/lib/src/ap-field/text/input-password-props.d.ts +1 -1
  243. package/lib/src/ap-field/text/password.vue.js +1 -1
  244. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  245. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  246. package/lib/src/ap-form/ap-form.vue.d.ts +7 -7
  247. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  248. package/lib/src/ap-form/context.d.ts +1 -1
  249. package/lib/src/ap-form/drawer-form/index.vue.d.ts +6 -6
  250. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  251. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  252. package/lib/src/ap-form/interface.d.ts +3 -3
  253. package/lib/src/ap-form/item/index.vue.d.ts +4 -4
  254. package/lib/src/ap-form/item/index.vue.js +1 -1
  255. package/lib/src/ap-form/item-group/index.vue.d.ts +2 -2
  256. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  257. package/lib/src/ap-form/items/interface.d.ts +1 -1
  258. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  259. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  260. package/lib/src/ap-form/items/text/group.vue2.js +1 -1
  261. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
  262. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
  263. package/lib/src/ap-form/items/text-area/index.vue.d.ts +4 -4
  264. package/lib/src/ap-form/modal-form/index.vue.d.ts +8 -8
  265. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  266. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
  267. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  268. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +1 -1
  269. package/lib/src/ap-list/index.vue.js +1 -1
  270. package/lib/src/ap-modal/index.d.ts +1 -1
  271. package/lib/src/ap-modal/index.js +1 -1
  272. package/lib/src/ap-modal/interface.d.ts +1 -1
  273. package/lib/src/ap-modal/utils/createModal.js +1 -1
  274. package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
  275. package/lib/src/ap-table/ap-table.vue.js +1 -1
  276. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  277. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +16 -1
  278. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  279. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  280. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  281. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  282. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  283. package/lib/src/ap-table/components/setting/utils.d.ts +1 -1
  284. package/lib/src/ap-table/components/status/index.vue2.js +1 -1
  285. package/lib/src/ap-table/constants.d.ts +30 -30
  286. package/lib/src/ap-table/context.d.ts +1 -1
  287. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  288. package/lib/src/ap-table/hooks/use-table-paging.d.ts +3 -3
  289. package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +1 -1
  290. package/lib/src/ap-table/index.d.ts +6 -1
  291. package/lib/src/ap-table/index.js +1 -1
  292. package/lib/src/ap-table/interface.d.ts +3 -3
  293. package/lib/src/ap-table/utils.d.ts +8 -7
  294. package/lib/src/ap-table/utils.js +1 -1
  295. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  296. package/lib/src/ap-tag/interface.d.ts +1 -1
  297. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  298. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  299. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  300. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  301. package/lib/src/business/ap-attachment/ApAttachment.d.ts +1 -1
  302. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  303. package/lib/src/business/ap-attachment/index.d.ts +1 -1
  304. package/lib/src/business/ap-attachment/interface.d.ts +1 -1
  305. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -3
  306. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  307. package/lib/src/business/ap-batch-action/index.d.ts +8 -3
  308. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  309. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  310. package/lib/src/business/ap-batch-action-group/index.d.ts +12 -8
  311. package/lib/src/business/ap-batch-action-group/interface.d.ts +2 -2
  312. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  313. package/lib/src/business/ap-button-group/index.d.ts +13 -5
  314. package/lib/src/business/ap-button-group/interface.d.ts +1 -1
  315. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  316. package/lib/src/business/ap-expand-alert/interface.d.ts +1 -1
  317. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  318. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  319. package/lib/src/business/ap-export-group/interface.d.ts +1 -1
  320. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  321. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  322. package/lib/src/business/ap-input-radio/index.d.ts +2 -2
  323. package/lib/src/business/ap-input-radio/interface.d.ts +1 -1
  324. package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
  325. package/lib/src/business/ap-label/ApLabel.js +1 -1
  326. package/lib/src/business/ap-label/constans.d.ts +2 -2
  327. package/lib/src/business/ap-label/constans.js +1 -1
  328. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  329. package/lib/src/business/ap-label/index.d.ts +2 -2
  330. package/lib/src/business/ap-label/interface.d.ts +3 -3
  331. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +5 -5
  332. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  333. package/lib/src/business/ap-ladder/index.d.ts +5 -5
  334. package/lib/src/business/ap-ladder/interface.d.ts +1 -1
  335. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  336. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  337. package/lib/src/business/ap-summary/interface.d.ts +2 -2
  338. package/lib/src/business/ap-summary/utils.d.ts +1 -1
  339. package/lib/src/business/ap-summary/utils.js +1 -1
  340. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +1 -1
  341. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +1 -1
  342. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +1 -1
  343. package/lib/src/business/ap-table-modal/index.d.ts +43 -6
  344. package/lib/src/business/ap-table-modal/interface.d.ts +17 -2
  345. package/lib/src/business/ap-table-modal/style/css.js +1 -1
  346. package/lib/src/business/ap-table-modal/style/index.js +1 -1
  347. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +57 -0
  348. package/lib/src/business/ap-table-modal/table-layout/index.vue.js +1 -0
  349. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -0
  350. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +1 -1
  351. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  352. package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
  353. package/lib/src/business/hooks/usePageListApTable.d.ts +1 -1
  354. package/lib/src/check-card/index.vue2.js +1 -1
  355. package/lib/src/config-provider/config-provider-props.d.ts +8 -8
  356. package/lib/src/config-provider/config-provider-props.js +1 -1
  357. package/lib/src/config-provider/config-provider.d.ts +9 -8
  358. package/lib/src/config-provider/config-provider.js +1 -1
  359. package/lib/src/config-provider/constants.d.ts +1 -1
  360. package/lib/src/config-provider/css-var.d.ts +1 -0
  361. package/lib/src/config-provider/css-var.js +1 -1
  362. package/lib/src/config-provider/hooks/use-global-config.d.ts +8 -8
  363. package/lib/src/config-provider/index.d.ts +14 -8
  364. package/lib/src/design-token/index.d.ts +1 -1
  365. package/lib/src/editable-table/form-item.vue.d.ts +1 -0
  366. package/lib/src/editable-table/form-item.vue.js +1 -1
  367. package/lib/src/editable-table/hooks/use-get-columns.d.ts +1 -1
  368. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  369. package/lib/src/editable-table/index.vue.d.ts +1 -1
  370. package/lib/src/editable-table/index.vue.js +1 -1
  371. package/lib/src/editable-table/interface.d.ts +6 -6
  372. package/lib/src/editable-table/utils.js +1 -1
  373. package/lib/src/hooks/useMessage.d.ts +4 -4
  374. package/lib/src/hooks/useMessage.js +1 -1
  375. package/lib/src/index.js +1 -1
  376. package/lib/src/locale/lang/en.js +1 -1
  377. package/lib/src/locale/lang/zh-cn.js +1 -1
  378. package/lib/src/path-map.js +1 -1
  379. package/lib/src/utils/config-provider-preset.d.ts +10 -10
  380. package/lib/src/work-order-modal/help-message.vue2.js +1 -1
  381. package/lib/src/work-order-modal/interfaces.d.ts +1 -1
  382. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  383. package/package.json +5 -5
package/es/index.mjs CHANGED
@@ -89,7 +89,7 @@ import { useTableRefresh as Nr } from "./src/business/hooks/useTableRefresh.mjs"
89
89
  import { computedRecords as wr, flattenColumns as Rr, formatDataIndex as vr, formatNumber as Er } from "./src/business/ap-summary/utils.mjs";
90
90
  import { ApSummary as Kr } from "./src/business/ap-summary/index.mjs";
91
91
  import { useTablePaging as Wr } from "./src/ap-table/hooks/use-table-paging.mjs";
92
- import { default as Ur } from "./src/ap-table/ap-table.vue.mjs";
92
+ import { ApTable as Ur } from "./src/ap-table/index.mjs";
93
93
  import { default as $r } from "./src/editable-table/index.vue.mjs";
94
94
  import { default as qr } from "./src/editable-table/form-item.vue.mjs";
95
95
  import { default as Jr } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
@@ -1,6 +1,6 @@
1
1
  import { ApActionGroupProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
- import { Trigger } from 'ant-design-vue/es/dropdown/props';
3
+ import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
4
4
  import { GroupActionTypes } from '..';
5
5
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApActionGroupProps>, {
6
6
  count: number;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, computed as s, unref as c, openBlock as t, createBlock as r, withCtx as k, createElementBlock as u, Fragment as a, renderList as A, mergeProps as i, createCommentVNode as v } from "vue";
2
- import { Space as y } from "ant-design-vue";
2
+ import { Space as y } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
5
5
  import "../item-popconfirm/index.vue2.mjs";
@@ -1,4 +1,4 @@
1
- import { DropdownProps, ModalFuncProps, PopconfirmProps } from 'ant-design-vue';
1
+ import { DropdownProps, ModalFuncProps, PopconfirmProps } from '@aplus-frontend/antdv';
2
2
  import { VNode } from 'vue';
3
3
  export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
4
4
  export type ApActionItemProps = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as b, unref as s, computed as d, renderSlot as c, openBlock as t, createElementBlock as u, mergeProps as C, createBlock as f, createCommentVNode as m, isVNode as v, resolveDynamicComponent as B, toDisplayString as A } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import h from "ant-design-vue/es/button/LoadingIcon";
3
+ import h from "@aplus-frontend/antdv/es/button/LoadingIcon";
4
4
  import { useNamespace as I } from "../../config-provider/hooks/use-namespace.mjs";
5
5
  const L = { key: 1 }, V = /* @__PURE__ */ y({
6
6
  name: "ApActionItem",
@@ -1,7 +1,7 @@
1
1
  import { ApActionItemDropdownProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { ActionColor, MixedActionTypes } from '..';
4
- import { Trigger } from 'ant-design-vue/es/dropdown/props';
4
+ import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
5
5
  declare function __VLS_template(): {
6
6
  slots: {
7
7
  default?(_: {}): any;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, ref as v, computed as k, openBlock as t, createBlock as l, unref as r, withCtx as n, createVNode as u, createElementBlock as w, Fragment as A, renderList as B, normalizeClass as m, mergeProps as i, createElementVNode as b, normalizeProps as C, guardReactiveProps as I, renderSlot as P, createCommentVNode as D } from "vue";
2
- import { Dropdown as N, Menu as $, MenuItem as h } from "ant-design-vue";
2
+ import { Dropdown as N, Menu as $, MenuItem as h } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
5
5
  import "../item-popconfirm/index.vue2.mjs";
@@ -1,7 +1,7 @@
1
1
  import { ApActionItemModalProps, ApActionItemSlots } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { ActionColor } from '..';
4
- import { ModalFuncProps } from 'ant-design-vue';
4
+ import { ModalFuncProps } from '@aplus-frontend/antdv';
5
5
  declare function __VLS_template(): {
6
6
  slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
7
7
  refs: {};
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, useSlots as m, openBlock as d, createBlock as p, mergeProps as f, unref as u, createSlots as _, renderList as A, withCtx as P, renderSlot as y, normalizeProps as k, guardReactiveProps as x } from "vue";
2
- import { Modal as B } from "ant-design-vue";
2
+ import { Modal as B } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import { omit as g } from "lodash-unified";
5
5
  import h from "../item/index.vue2.mjs";
@@ -1,15 +1,15 @@
1
1
  import { ApActionItemPopconfirmProps, ApActionItemSlots } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, HTMLAttributes, CSSProperties } from 'vue';
3
3
  import { ActionColor } from '..';
4
- import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
5
- import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
4
+ import { LegacyButtonType, ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
5
+ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
6
6
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
7
- import { MouseEventHandler } from 'ant-design-vue/es/_util/EventInterface';
8
- import { TriggerType } from 'ant-design-vue/es/tooltip/abstractTooltipProps';
9
- import { TooltipPlacement, AdjustOverflow } from 'ant-design-vue/es/tooltip';
10
- import { LiteralUnion } from 'ant-design-vue/es/_util/type';
11
- import { PresetColorType } from 'ant-design-vue/es/_util/colors';
12
- import { AlignType, BuildInPlacements } from 'ant-design-vue/es/vc-trigger/interface';
7
+ import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
8
+ import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
9
+ import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
10
+ import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
11
+ import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
12
+ import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
13
13
  declare function __VLS_template(): {
14
14
  slots: Readonly<ApActionItemSlots> & ApActionItemSlots;
15
15
  refs: {};
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, useSlots as u, openBlock as P, createBlock as _, unref as i, mergeProps as y, withCtx as a, createVNode as C, normalizeProps as p, guardReactiveProps as s, createSlots as x, renderList as A, renderSlot as B } from "vue";
2
- import { Popconfirm as b } from "ant-design-vue";
2
+ import { Popconfirm as b } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import { omit as g } from "lodash-unified";
5
5
  import h from "../item/index.vue2.mjs";
@@ -1,6 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import { ApButtonProps } from './interface';
3
- import { ButtonType } from 'ant-design-vue/es/button';
3
+ import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  declare function __VLS_template(): {
5
5
  slots: Partial<Record<string, (_: any) => any>>;
6
6
  refs: {};
@@ -21,6 +21,7 @@ const k = /* @__PURE__ */ p({
21
21
  type: { default: "borderLink" },
22
22
  borderLinkColor: {},
23
23
  minWidth: { type: [Boolean, Number, String], default: !0 },
24
+ lazy: { type: [Boolean, Number] },
24
25
  onClick: {}
25
26
  },
26
27
  setup(n) {
@@ -1,6 +1,6 @@
1
1
  import { ApButtonProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
- import { ButtonType } from 'ant-design-vue/es/button';
3
+ import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  declare function __VLS_template(): {
5
5
  slots: Partial<Record<string, (_: any) => any>>;
6
6
  refs: {};
@@ -11,16 +11,19 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
11
11
  type: string;
12
12
  minWidth: boolean;
13
13
  loading: undefined;
14
+ lazy: boolean;
14
15
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApButtonProps>, {
15
16
  type: string;
16
17
  minWidth: boolean;
17
18
  loading: undefined;
19
+ lazy: boolean;
18
20
  }>>>, {
19
21
  type: ButtonType | "borderLink";
20
22
  minWidth: boolean | number | string;
21
23
  loading: boolean | {
22
24
  delay?: number;
23
25
  };
26
+ lazy: boolean | number;
24
27
  }, {}>;
25
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
29
  export default _default;
@@ -1,10 +1,12 @@
1
- import { defineComponent as L, ref as $, computed as a, openBlock as M, createBlock as j, unref as c, mergeProps as w, createSlots as P, renderList as x, withCtx as _, renderSlot as N, normalizeProps as z, guardReactiveProps as A } from "vue";
2
- import { Button as F } from "ant-design-vue";
1
+ import { defineComponent as C, ref as B, computed as t, openBlock as W, createBlock as z, unref as a, mergeProps as L, createSlots as w, renderList as M, withCtx as T, renderSlot as $, normalizeProps as P, guardReactiveProps as _ } from "vue";
2
+ import { Button as x } from "@aplus-frontend/antdv";
3
+ import { wait as N } from "@aplus-frontend/utils";
3
4
  import "../config-provider/index.mjs";
4
5
  import { omit as O } from "lodash-unified";
5
- import { useNamespace as S } from "../config-provider/hooks/use-namespace.mjs";
6
- import { useGlobalConfig as T } from "../config-provider/hooks/use-global-config.mjs";
7
- const G = 88, K = /* @__PURE__ */ L({
6
+ import { transferOpacityColor as j, isAsynchronous as A } from "./utils/index.mjs";
7
+ import { useNamespace as D } from "../config-provider/hooks/use-namespace.mjs";
8
+ import { useGlobalConfig as F } from "../config-provider/hooks/use-global-config.mjs";
9
+ const S = 88, G = 300, U = /* @__PURE__ */ C({
8
10
  __name: "ap-button",
9
11
  props: {
10
12
  prefixCls: {},
@@ -24,94 +26,73 @@ const G = 88, K = /* @__PURE__ */ L({
24
26
  type: { default: "default" },
25
27
  borderLinkColor: {},
26
28
  minWidth: { type: [Boolean, Number, String], default: !1 },
29
+ lazy: { type: [Boolean, Number], default: !0 },
27
30
  onClick: {}
28
31
  },
29
- setup(y) {
30
- const e = y, d = {
32
+ setup(f) {
33
+ const e = f, l = {
31
34
  aplus: "#0070FF",
32
35
  admin: "#34b77c"
33
- }, { b: f } = S("ap-action-button"), g = T("uiMode"), s = $(!1), h = a(
34
- () => e.borderLinkColor || d[g.value] || d.aplus
35
- ), p = a(
36
- () => e.type === "borderLink" ? h.value : void 0
37
- ), m = a(() => W(p.value)), v = a(() => e.minWidth === !0 ? `${G}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), k = a(
36
+ }, { b: i } = D("ap-action-button"), m = F("uiMode"), r = B(!1), y = t(
37
+ () => e.borderLinkColor || l[m.value] || l.aplus
38
+ ), s = t(
39
+ () => e.type === "borderLink" ? y.value : void 0
40
+ ), u = t(
41
+ () => j(s.value)
42
+ ), b = t(() => e.minWidth === !0 ? `${S}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), v = t(
38
43
  () => (e.type === "borderLink" ? "default" : e.type) || "default"
39
- ), b = a(() => e.loading ?? s.value ?? !1);
40
- function C() {
41
- const t = O(e, [
44
+ ), d = t(() => e.loading ?? r.value ?? !1), p = t(() => e.lazy === !0 ? G : typeof e.lazy == "number" && e.lazy >= 0 ? e.lazy : 0);
45
+ function h() {
46
+ const o = O(e, [
42
47
  "type",
43
48
  "borderLinkColor",
44
49
  "minWidth",
45
50
  "onClick",
46
51
  "loading"
47
52
  ]);
48
- return t ? {
49
- ...t,
50
- type: k.value,
51
- onclick: B
53
+ return o ? {
54
+ ...o,
55
+ type: v.value,
56
+ onclick: k
52
57
  } : {};
53
58
  }
54
- async function B() {
55
- var t;
56
- if (!b.value) {
57
- s.value = !0;
58
- try {
59
- await ((t = e.onClick) == null ? void 0 : t.call(e));
60
- } finally {
61
- s.value = !1;
62
- }
63
- }
64
- }
65
- function W(t, u = "0.7") {
66
- var i;
59
+ async function k() {
60
+ if (d.value) return;
61
+ const o = A(e.onClick), c = Date.now();
67
62
  try {
68
- let o = t == null ? void 0 : t.toLowerCase();
69
- if (o && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(o)) {
70
- if (o.length === 4) {
71
- let r = "#";
72
- for (let l = 1; l < 4; l += 1)
73
- r += o.slice(l, l + 1).concat(o.slice(l, l + 1));
74
- o = r;
75
- }
76
- const n = [];
77
- for (let r = 1; r < 7; r += 2)
78
- n.push(parseInt("0x" + o.slice(r, r + 2)));
79
- return "rgba(" + n.join(",") + "," + u + ")";
80
- }
81
- if (o && o.startsWith("rgb")) {
82
- let n = o.match(/(\d(\.\d+)?)+/g);
83
- return n = (i = n == null ? void 0 : n.slice(0, 3)) == null ? void 0 : i.concat(u), "rgba(" + n.join(",") + ")";
63
+ o && (r.value = !0, await o);
64
+ } finally {
65
+ if (o) {
66
+ const n = Date.now() - c;
67
+ n < p.value && await N(p.value - n), r.value = !1;
84
68
  }
85
- return o;
86
- } catch {
87
- return;
88
69
  }
89
70
  }
90
- return (t, u) => (M(), j(c(F), w({
71
+ return (o, c) => (W(), z(a(x), L({
91
72
  class: {
92
- [c(f)()]: !0,
93
- [`${c(f)()}-border-link`]: m.value
73
+ [a(i)()]: !0,
74
+ [`${a(i)()}-border-link`]: u.value
94
75
  }
95
76
  }, {
96
- ...t.$attrs,
97
- ...C()
77
+ ...o.$attrs,
78
+ ...h()
98
79
  }, {
99
80
  style: {
100
- color: p.value,
101
- minWidth: v.value,
102
- "--button-border-color": m.value
81
+ color: s.value,
82
+ minWidth: b.value,
83
+ "--button-border-color": u.value
103
84
  },
104
- loading: b.value
105
- }), P({ _: 2 }, [
106
- x(Object.keys(t.$slots), (i) => ({
107
- name: i,
108
- fn: _((o) => [
109
- N(t.$slots, i, z(A(o || {})))
85
+ loading: d.value
86
+ }), w({ _: 2 }, [
87
+ M(Object.keys(o.$slots), (n) => ({
88
+ name: n,
89
+ fn: T((g) => [
90
+ $(o.$slots, n, P(_(g || {})))
110
91
  ])
111
92
  }))
112
93
  ]), 1040, ["class", "style", "loading"]));
113
94
  }
114
95
  });
115
96
  export {
116
- K as default
97
+ U as default
117
98
  };
@@ -1,8 +1,9 @@
1
- import { ButtonProps } from 'ant-design-vue';
1
+ import { ButtonProps } from '@aplus-frontend/antdv';
2
2
  export type ApButtonProps = Omit<ButtonProps, 'type' | 'onClick'> & {
3
3
  type?: ButtonProps['type'] | 'borderLink';
4
4
  borderLinkColor?: string;
5
5
  minWidth?: boolean | number | string;
6
+ lazy?: boolean | number;
6
7
  onClick?: () => any | Promise<any>;
7
8
  };
8
9
  export type ApActionButtonProps = ApButtonProps;
@@ -0,0 +1,3 @@
1
+ export declare function isPromise(fn: any): any;
2
+ export declare const isAsynchronous: (fn: any) => any;
3
+ export declare const transferOpacityColor: (thisColor?: string, thisOpacity?: string) => string | undefined;
@@ -0,0 +1,33 @@
1
+ function a(t) {
2
+ return typeof t == "object" && typeof t.then == "function" ? t : !1;
3
+ }
4
+ const l = (t) => typeof t == "function" && a(t == null ? void 0 : t()), f = (t, n = "0.7") => {
5
+ var s;
6
+ try {
7
+ let e = t == null ? void 0 : t.toLowerCase();
8
+ if (e && /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)) {
9
+ if (e.length === 4) {
10
+ let o = "#";
11
+ for (let c = 1; c < 4; c += 1)
12
+ o += e.slice(c, c + 1).concat(e.slice(c, c + 1));
13
+ e = o;
14
+ }
15
+ const r = [];
16
+ for (let o = 1; o < 7; o += 2)
17
+ r.push(parseInt("0x" + e.slice(o, o + 2)));
18
+ return "rgba(" + r.join(",") + "," + n + ")";
19
+ }
20
+ if (e && e.startsWith("rgb")) {
21
+ let r = e.match(/(\d(\.\d+)?)+/g);
22
+ return r = (s = r == null ? void 0 : r.slice(0, 3)) == null ? void 0 : s.concat(n), "rgba(" + r.join(",") + ")";
23
+ }
24
+ return e;
25
+ } catch {
26
+ return;
27
+ }
28
+ };
29
+ export {
30
+ l as isAsynchronous,
31
+ a as isPromise,
32
+ f as transferOpacityColor
33
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as N, openBlock as l, createElementBlock as a, normalizeClass as h, unref as r, normalizeStyle as T, createVNode as B, mergeProps as _, withCtx as f, Fragment as s, renderList as w, createBlock as i, h as c, renderSlot as E, resolveDynamicComponent as M } from "vue";
2
- import { Descriptions as V, DescriptionsItem as m } from "ant-design-vue";
2
+ import { Descriptions as V, DescriptionsItem as m } from "@aplus-frontend/antdv";
3
3
  import { mixinsAttachmentExtraProps as j, transformValue as x, isEmptyWithType as z } from "./helper.mjs";
4
4
  import { get as S } from "lodash-unified";
5
5
  import "./help-message/index.vue.mjs";
@@ -8,9 +8,9 @@ declare function __VLS_template(): {
8
8
  };
9
9
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
10
  declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<{
11
- helpMessage?: string;
11
+ helpMessage?: any;
12
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<{
13
- helpMessage?: string;
13
+ helpMessage?: any;
14
14
  }>>>, {}, {}>;
15
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
16
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as t, createElementBlock as l, renderSlot as n, createBlock as r, unref as o, withCtx as p, createVNode as a, createCommentVNode as i } from "vue";
2
2
  import { QuestionCircleOutlined as c } from "@ant-design/icons-vue";
3
- import { Tooltip as m } from "ant-design-vue";
3
+ import { Tooltip as m } from "@aplus-frontend/antdv";
4
4
  const d = { style: { display: "flex", "align-items": "center" } }, k = /* @__PURE__ */ s({
5
5
  __name: "index",
6
6
  props: {
@@ -1,4 +1,4 @@
1
- import { DescriptionsProps } from 'ant-design-vue';
1
+ import { DescriptionsProps } from '@aplus-frontend/antdv';
2
2
  import { CSSProperties, StyleValue, VNode, VNodeChild } from 'vue';
3
3
  import { formatterMap } from './formatter';
4
4
  /** 字段路径 */
@@ -23,7 +23,7 @@ export interface ItemSchema<T extends Recordable = Recordable> {
23
23
  labelStyle?: CSSProperties;
24
24
  customRender?: (record?: T) => VNodeChild | VNode;
25
25
  contentSlotName?: string;
26
- helpMessage?: string;
26
+ helpMessage?: any;
27
27
  }
28
28
  /** 空的类型描述类型 */
29
29
  export type EmptyItemSchema = {
@@ -1,6 +1,6 @@
1
1
  import { ApDownLoadProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
- import { ButtonType } from 'ant-design-vue/es/button';
3
+ import { ButtonType } from '@aplus-frontend/antdv/es/button';
4
4
  declare function __VLS_template(): {
5
5
  slots: {
6
6
  icon?(_: {}): any;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, ref as A, useSlots as S, computed as t, unref as s, openBlock as r, createBlock as j, mergeProps as I, withCtx as M, createElementVNode as u, normalizeClass as T, createElementBlock as f, createVNode as U, createCommentVNode as g, renderSlot as V, toDisplayString as D } from "vue";
2
- import { Button as E } from "ant-design-vue";
2
+ import { Button as E } from "@aplus-frontend/antdv";
3
3
  import { LoadingOutlined as G } from "@ant-design/icons-vue";
4
4
  import "../config-provider/index.mjs";
5
5
  import { useOssInit as P } from "./hooks/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import { accessCreate, client } from '@aplus-frontend/oss';
2
- import { ButtonProps } from 'ant-design-vue/es/button';
2
+ import { ButtonProps } from '@aplus-frontend/antdv/es/button';
3
3
  /**
4
4
  * 类型转换为单例和数组
5
5
  */
@@ -1,5 +1,5 @@
1
- import { CheckboxOptionType } from 'ant-design-vue';
2
- import { CheckboxValueType } from 'ant-design-vue/es/checkbox/interface';
3
- import { VueNode } from 'ant-design-vue/es/_util/type';
1
+ import { CheckboxOptionType } from '@aplus-frontend/antdv';
2
+ import { CheckboxValueType } from '@aplus-frontend/antdv/es/checkbox/interface';
3
+ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
4
4
  export declare const getOptionValue: (v: CheckboxOptionType | string | number) => CheckboxValueType;
5
5
  export declare const getOptionLabel: (v: CheckboxOptionType | string | number) => VueNode;
@@ -1,7 +1,7 @@
1
1
  import { ApFieldCheckboxProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  import { FieldMode } from '..';
4
- import { CheckboxOptionType } from 'ant-design-vue';
4
+ import { CheckboxOptionType } from '@aplus-frontend/antdv';
5
5
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFieldCheckboxProps>, {
6
6
  emptyText: string;
7
7
  mode: string;
@@ -1,12 +1,13 @@
1
- import { defineComponent as h, ref as m, onMounted as b, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as c, toDisplayString as d, createBlock as f, mergeProps as C } from "vue";
2
- import { isFunction as V, isNil as B, omit as q } from "lodash-unified";
3
- import { Spin as T, CheckboxGroup as U } from "ant-design-vue";
1
+ import { defineComponent as h, ref as b, onMounted as C, openBlock as o, createElementBlock as l, Fragment as n, unref as e, createTextVNode as m, toDisplayString as c, createBlock as d, mergeProps as V } from "vue";
2
+ import { isFunction as B, isNil as O, omit as q } from "lodash-unified";
3
+ import { Spin as T, CheckboxGroup as U } from "@aplus-frontend/antdv";
4
4
  import "../../hooks/index.mjs";
5
5
  import { getOptionValue as _, getOptionLabel as F } from "./helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { useNamespace as N } from "../../config-provider/hooks/use-namespace.mjs";
8
- import { useControllableValue as O } from "../../hooks/useControllableValue.mjs";
9
- const P = /* @__PURE__ */ h({
7
+ import N from "../hooks/use-options.mjs";
8
+ import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
9
+ import { useControllableValue as S } from "../../hooks/useControllableValue.mjs";
10
+ const I = /* @__PURE__ */ h({
10
11
  name: "ApFieldCheckbox",
11
12
  inheritAttrs: !1,
12
13
  __name: "index",
@@ -28,35 +29,35 @@ const P = /* @__PURE__ */ h({
28
29
  vertical: { type: Boolean }
29
30
  },
30
31
  emits: ["update:value"],
31
- setup(v, { emit: y }) {
32
- const k = y, t = v, i = m(t.options), { m: x } = N("field-checkbox"), r = m(!1);
33
- b(() => {
34
- V(t.request) && (r.value = !0, t.request().then((a) => i.value = a).finally(() => {
35
- r.value = !1;
32
+ setup(f, { emit: v }) {
33
+ const y = v, t = f, { options: p, updateOptions: k } = N(t), { m: x } = A("field-checkbox"), i = b(!1);
34
+ C(() => {
35
+ B(t.request) && (i.value = !0, t.request().then((a) => k(a)).finally(() => {
36
+ i.value = !1;
36
37
  }));
37
38
  });
38
- const { value: u, updateValue: g } = O(
39
+ const { value: r, updateValue: g } = S(
39
40
  t,
40
- k,
41
+ y,
41
42
  {
42
43
  defaultValue: []
43
44
  }
44
45
  );
45
- return (a, A) => {
46
- var p;
46
+ return (a, j) => {
47
+ var u;
47
48
  return a.mode === "read" ? (o(), l(n, { key: 0 }, [
48
- e(B)(e(u)) ? (o(), l(n, { key: 0 }, [
49
- c(d(t.emptyText), 1)
49
+ e(O)(e(r)) ? (o(), l(n, { key: 0 }, [
50
+ m(c(t.emptyText), 1)
50
51
  ], 64)) : (o(), l(n, { key: 1 }, [
51
- c(d(((p = i.value) == null ? void 0 : p.filter((s) => e(u).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
52
+ m(c(((u = e(p)) == null ? void 0 : u.filter((s) => e(r).indexOf(e(_)(s)) > -1).map((s) => e(F)(s)).join("、")) || t.emptyText), 1)
52
53
  ], 64))
53
54
  ], 64)) : (o(), l(n, { key: 1 }, [
54
- r.value ? (o(), f(e(T), {
55
+ i.value ? (o(), d(e(T), {
55
56
  key: 0,
56
57
  size: "small"
57
- })) : (o(), f(e(U), C({ key: 1 }, e(q)(t, ["onUpdate:value", "value", "request", "vertical"]), {
58
- options: i.value,
59
- value: e(u),
58
+ })) : (o(), d(e(U), V({ key: 1 }, e(q)(t, ["onUpdate:value", "value", "request", "vertical"]), {
59
+ options: e(p),
60
+ value: e(r),
60
61
  "onUpdate:value": e(g),
61
62
  class: a.vertical ? e(x)("vertical") : null
62
63
  }), null, 16, ["options", "value", "onUpdate:value", "class"]))
@@ -65,5 +66,5 @@ const P = /* @__PURE__ */ h({
65
66
  }
66
67
  });
67
68
  export {
68
- P as default
69
+ I as default
69
70
  };
@@ -1,4 +1,4 @@
1
- import { PickerMode } from 'ant-design-vue/es/vc-picker/interface';
1
+ import { PickerMode } from '@aplus-frontend/antdv/es/vc-picker/interface';
2
2
  import { ApFormatPresetType } from './interface';
3
3
  export declare const ApFieldDatePresetFormats: string[];
4
4
  export declare const PRESET_FORMAT_MAP: Record<ApFormatPresetType, string>;
@@ -1,5 +1,5 @@
1
1
  import { ZoneAlias } from '@aplus-frontend/utils';
2
- import { EventValue } from 'ant-design-vue/es/vc-picker/interface';
2
+ import { EventValue } from '@aplus-frontend/antdv/es/vc-picker/interface';
3
3
  import { Dayjs } from 'dayjs';
4
4
  export declare const formatDay: (d: Dayjs, f: string, begin?: boolean) => number | null;
5
5
  /**
@@ -4,7 +4,7 @@ import { ApFormatPresetType } from './interface';
4
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
5
5
  import { FieldMode } from '..';
6
6
  import { LiteralUnion } from '../../type';
7
- import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
7
+ import { SharedTimeProps } from '@aplus-frontend/antdv/es/vc-picker/panels/TimePanel';
8
8
  type ApFieldDataSlots = {
9
9
  dateRender: any;
10
10
  suffixIcon?: any;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, computed as i, unref as t, openBlock as v, createElementBlock as _, Fragment as w, createTextVNode as M, toDisplayString as R, createBlock as F, mergeProps as A, createSlots as D, renderList as x, withCtx as E, renderSlot as V, normalizeProps as z, guardReactiveProps as N } from "vue";
2
2
  import r from "dayjs";
3
- import { DatePicker as j } from "ant-design-vue";
3
+ import { DatePicker as j } from "@aplus-frontend/antdv";
4
4
  import { ApFieldDatePresetFormats as I, PRESET_FORMAT_MAP as H, PRESET_FORMAT_PICK_MAP as U, PRESET_FORMAT_TIME_MAP as K } from "./constant.mjs";
5
5
  import "../../hooks/index.mjs";
6
6
  import { isNil as y, omit as $ } from "lodash-unified";
@@ -3,7 +3,7 @@ import { ApFieldDatePresetFormats as Q, PRESET_FORMAT_MAP as X, PRESET_FORMAT_PI
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as T, omit as b, isString as m, isFunction as ne } from "lodash-unified";
5
5
  import d from "dayjs";
6
- import { DatePicker as te } from "ant-design-vue";
6
+ import { DatePicker as te } from "@aplus-frontend/antdv";
7
7
  import { formatDayWithTimezone as ae, formatValue as R } from "../date/helper.mjs";
8
8
  import { SwapRightOutlined as re } from "@ant-design/icons-vue";
9
9
  import { omitUndefined as le } from "../../utils/index.mjs";
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ declare const useOptions: <OptionType = any>(props: {
3
+ options?: OptionType[];
4
+ }) => {
5
+ options: Ref<OptionType[]>;
6
+ updateOptions: (nextOptions?: OptionType[]) => void;
7
+ };
8
+ export default useOptions;
@@ -0,0 +1,22 @@
1
+ import { ref as i, watch as o } from "vue";
2
+ const f = (e) => {
3
+ const u = i((e == null ? void 0 : e.options) || []);
4
+ function n(t) {
5
+ t && (u.value = t);
6
+ }
7
+ return o(
8
+ () => e.options,
9
+ (t) => {
10
+ t && (u.value = t);
11
+ },
12
+ {
13
+ deep: !0
14
+ }
15
+ ), {
16
+ options: u,
17
+ updateOptions: n
18
+ };
19
+ };
20
+ export {
21
+ f as default
22
+ };