@aplus-frontend/ui 0.1.20 → 0.1.22

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 (335) hide show
  1. package/es/index.mjs +176 -170
  2. package/es/src/ap-action/group/index.vue.d.ts +7 -6
  3. package/es/src/ap-action/item/index.vue.d.ts +20 -14
  4. package/es/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
  5. package/es/src/ap-action/item-modal/index.vue.d.ts +20 -14
  6. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
  7. package/es/src/ap-custom-column/column-select.vue.mjs +47 -46
  8. package/es/src/ap-custom-column/custom-column.vue.mjs +36 -35
  9. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
  10. package/es/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
  11. package/es/src/ap-download/ap-download.vue.d.ts +17 -12
  12. package/es/src/ap-field/checkbox/index.vue.d.ts +6 -5
  13. package/es/src/ap-field/date/index.vue.d.ts +18 -12
  14. package/es/src/ap-field/date-range/index.vue.d.ts +25 -19
  15. package/es/src/ap-field/number/index.vue.d.ts +459 -12
  16. package/es/src/ap-field/radio/index.vue.d.ts +6 -5
  17. package/es/src/ap-field/rate/index.vue.d.ts +138 -16
  18. package/es/src/ap-field/segmented/index.vue.d.ts +25 -19
  19. package/es/src/ap-field/select/index.vue.d.ts +597 -16
  20. package/es/src/ap-field/select/index.vue.mjs +1 -1
  21. package/es/src/ap-field/slider/index.vue.d.ts +375 -12
  22. package/es/src/ap-field/switch/index.vue.d.ts +16 -11
  23. package/es/src/ap-field/text/index.vue.d.ts +19 -13
  24. package/es/src/ap-field/text/password.vue.d.ts +19 -13
  25. package/es/src/ap-field/text-area/index.vue.d.ts +7 -6
  26. package/es/src/ap-field/text-area/index.vue.mjs +1 -1
  27. package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
  28. package/es/src/ap-form/ap-form-item.vue.d.ts +1008 -12
  29. package/es/src/ap-form/ap-form-item.vue.mjs +47 -44
  30. package/es/src/ap-form/ap-form-list.vue.d.ts +12 -7
  31. package/es/src/ap-form/ap-form.vue.d.ts +884 -13
  32. package/es/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
  33. package/es/src/ap-form/items/date/index.vue.d.ts +40 -35
  34. package/es/src/ap-form/items/date-range/index.vue.d.ts +39 -34
  35. package/es/src/ap-form/items/number/index.vue.d.ts +583 -27
  36. package/es/src/ap-form/items/radio/index.vue.d.ts +217 -13
  37. package/es/src/ap-form/items/select/index.vue.d.ts +43 -38
  38. package/es/src/ap-form/items/switch/index.vue.d.ts +24 -19
  39. package/es/src/ap-form/items/text/index.vue.d.ts +591 -25
  40. package/es/src/ap-form/items/text/password.vue.d.ts +658 -27
  41. package/es/src/ap-form/items/text-area/index.vue.d.ts +486 -13
  42. package/es/src/ap-form/modal-form/index.vue.d.ts +650 -16
  43. package/es/src/ap-form/search-form/index.vue.d.ts +652 -18
  44. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
  45. package/es/src/ap-list/index.vue.d.ts +5 -5
  46. package/es/src/ap-modal/interface.d.ts +3 -3
  47. package/es/src/ap-modal/utils/createModal.mjs +4 -4
  48. package/es/src/ap-table/ap-table.vue.d.ts +5 -5
  49. package/es/src/ap-table/ap-table.vue.mjs +107 -107
  50. package/es/src/ap-table/components/index/index.vue.d.ts +4 -4
  51. package/es/src/ap-table/constants.d.ts +1071 -1072
  52. package/es/src/ap-table/constants.mjs +11 -9
  53. package/es/src/ap-table/hooks/use-table-paging.d.ts +14 -3
  54. package/es/src/ap-table/hooks/use-table-paging.mjs +115 -103
  55. package/es/src/ap-table/interface.d.ts +13 -4
  56. package/es/src/ap-table/style/ap-table.css +9 -0
  57. package/es/src/ap-table/utils.d.ts +597 -598
  58. package/es/src/ap-table/utils.mjs +44 -39
  59. package/es/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
  60. package/es/src/ap-tag/ap-tag.vue.d.ts +5 -5
  61. package/es/src/base-button/button.vue.d.ts +17 -12
  62. package/es/src/base-button/index.d.ts +30 -30
  63. package/es/src/basic/index.d.ts +6 -6
  64. package/es/src/basic/title.vue.d.ts +16 -11
  65. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
  66. package/es/src/business/ap-image/ApImage.vue.d.ts +31 -62
  67. package/es/src/business/ap-image/ApImage.vue2.mjs +30 -26
  68. package/es/src/business/ap-image/interface.d.ts +17 -0
  69. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
  70. package/es/src/business/ap-label/ApLabel.d.ts +2 -2
  71. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
  72. package/es/src/business/ap-status/ApStatus.vue.d.ts +5 -5
  73. package/es/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
  74. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
  75. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +41 -0
  76. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
  77. package/es/src/business/ap-table-modal/hooks/use-table-modal.mjs +29 -0
  78. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
  79. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +28 -0
  80. package/es/src/business/ap-table-modal/index.d.ts +538 -0
  81. package/es/src/business/ap-table-modal/index.mjs +11 -0
  82. package/es/src/business/ap-table-modal/interface.d.ts +63 -0
  83. package/es/src/business/ap-table-modal/interface.mjs +4 -0
  84. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
  85. package/es/src/business/ap-table-modal/modal-title.vue.mjs +4 -0
  86. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +50 -0
  87. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
  88. package/es/src/business/ap-table-modal/table-modal.vue.mjs +4 -0
  89. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +177 -0
  90. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
  91. package/es/src/business/index.d.ts +160 -152
  92. package/es/src/business/index.mjs +18 -16
  93. package/es/src/business/title/ApTitle.vue.d.ts +17 -12
  94. package/es/src/button/button.vue.d.ts +12 -7
  95. package/es/src/button/index.d.ts +2 -2
  96. package/es/src/check-card/group.vue.d.ts +18 -13
  97. package/es/src/check-card/index.vue.d.ts +16 -11
  98. package/es/src/config-provider/config-provider-props.d.ts +6 -4
  99. package/es/src/config-provider/config-provider.d.ts +5 -5
  100. package/es/src/config-provider/config-provider.mjs +9 -9
  101. package/es/src/config-provider/hooks/use-global-config.d.ts +2 -1
  102. package/es/src/config-provider/index.d.ts +17 -17
  103. package/es/src/container/index.d.ts +4 -4
  104. package/es/src/container/scroll-container.vue.d.ts +181 -8
  105. package/es/src/count-down/button.vue.d.ts +4 -4
  106. package/es/src/count-down/index.d.ts +8 -8
  107. package/es/src/count-down/input.vue.d.ts +16 -11
  108. package/es/src/cropper/cropper-avatar.vue.d.ts +4 -4
  109. package/es/src/cropper/cropper-image.vue.d.ts +4 -4
  110. package/es/src/cropper/index.d.ts +4 -4
  111. package/es/src/description/index.d.ts +2 -2
  112. package/es/src/dropdown/dropdown.vue.d.ts +16 -11
  113. package/es/src/dropdown/index.d.ts +2 -2
  114. package/es/src/editable-table/form-item.vue.d.ts +5 -5
  115. package/es/src/editable-table/index.vue.d.ts +6 -6
  116. package/es/src/icon/icon.vue.d.ts +4 -5
  117. package/es/src/icon/index.d.ts +16 -16
  118. package/es/src/icon/svg-icon.vue.d.ts +4 -4
  119. package/es/src/icon-picker/icon-picker.vue.d.ts +4 -4
  120. package/es/src/icon-picker/index.d.ts +2 -2
  121. package/es/src/index.mjs +69 -63
  122. package/es/src/locale/lang/en.mjs +29 -2
  123. package/es/src/locale/lang/zh-cn.mjs +29 -2
  124. package/es/src/modal/basic.vue.d.ts +210 -5
  125. package/es/src/modal/components/modal-close.vue.d.ts +4 -4
  126. package/es/src/modal/components/modal-footer.vue.d.ts +10 -5
  127. package/es/src/modal/components/modal-wrapper.vue.d.ts +77 -4
  128. package/es/src/modal/components/modal.d.ts +1 -1
  129. package/es/src/modal/index.d.ts +5 -5
  130. package/es/src/pro-form/components/api-cascader.vue.d.ts +4 -4
  131. package/es/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
  132. package/es/src/pro-form/components/api-select.vue.d.ts +16 -11
  133. package/es/src/pro-form/components/api-transfer.vue.d.ts +5 -5
  134. package/es/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
  135. package/es/src/pro-form/components/api-tree.vue.d.ts +16 -11
  136. package/es/src/pro-form/components/form-action.vue.d.ts +19 -14
  137. package/es/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
  138. package/es/src/pro-form/hooks/use-label-width.d.ts +25 -25
  139. package/es/src/pro-form/pro-form.vue.d.ts +888 -15
  140. package/es/src/pro-form/table-form-inner.vue.d.ts +6 -5
  141. package/es/src/pro-form/table-form.vue.d.ts +6 -5
  142. package/es/src/pro-form/types/form.d.ts +4 -4
  143. package/es/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
  144. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  145. package/es/src/pro-table/components/table-action.vue.d.ts +7 -2
  146. package/es/src/pro-table/components/table-footer.vue.d.ts +4 -4
  147. package/es/src/pro-table/components/table-header.vue.d.ts +9 -4
  148. package/es/src/pro-table/components/table-image.vue.d.ts +4 -4
  149. package/es/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
  150. package/es/src/pro-table/pro-table.vue.d.ts +2049 -28
  151. package/es/src/prompt/utils.d.ts +1 -1
  152. package/es/src/scroll-bar/index.d.ts +2 -2
  153. package/es/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
  154. package/es/src/strength-meter/index.d.ts +2 -2
  155. package/es/src/strength-meter/strength-meter.vue.d.ts +16 -11
  156. package/es/src/theme/antd-global-overwrite/admin/index.css +1 -0
  157. package/es/src/theme/antd-global-overwrite/admin/table.css +1 -0
  158. package/es/src/theme/antd-global-overwrite/aplus/index.css +1 -0
  159. package/es/src/theme/antd-global-overwrite/aplus/table.css +1 -0
  160. package/es/src/theme/ap-table/ap-table.css +9 -0
  161. package/es/src/theme/css-var/index.mjs +23 -7
  162. package/es/src/transition/collapse-transition.vue.d.ts +7 -2
  163. package/es/src/utils/config-provider-preset.d.ts +5 -5
  164. package/es/src/work-order-modal/createWorkOrder.mjs +20 -12
  165. package/es/src/work-order-modal/help-message.vue2.mjs +21 -18
  166. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  167. package/es/src/work-order-modal/work-order-modal.vue.mjs +64 -62
  168. package/lib/index.js +1 -1
  169. package/lib/src/ap-action/group/index.vue.d.ts +7 -6
  170. package/lib/src/ap-action/item/index.vue.d.ts +20 -14
  171. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +21 -15
  172. package/lib/src/ap-action/item-modal/index.vue.d.ts +20 -14
  173. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +20 -14
  174. package/lib/src/ap-custom-column/column-select.vue.js +1 -1
  175. package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
  176. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +20 -15
  177. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +12 -7
  178. package/lib/src/ap-download/ap-download.vue.d.ts +17 -12
  179. package/lib/src/ap-field/checkbox/index.vue.d.ts +6 -5
  180. package/lib/src/ap-field/date/index.vue.d.ts +18 -12
  181. package/lib/src/ap-field/date-range/index.vue.d.ts +25 -19
  182. package/lib/src/ap-field/number/index.vue.d.ts +459 -12
  183. package/lib/src/ap-field/radio/index.vue.d.ts +6 -5
  184. package/lib/src/ap-field/rate/index.vue.d.ts +138 -16
  185. package/lib/src/ap-field/segmented/index.vue.d.ts +25 -19
  186. package/lib/src/ap-field/select/index.vue.d.ts +597 -16
  187. package/lib/src/ap-field/select/index.vue.js +1 -1
  188. package/lib/src/ap-field/slider/index.vue.d.ts +375 -12
  189. package/lib/src/ap-field/switch/index.vue.d.ts +16 -11
  190. package/lib/src/ap-field/text/index.vue.d.ts +19 -13
  191. package/lib/src/ap-field/text/password.vue.d.ts +19 -13
  192. package/lib/src/ap-field/text-area/index.vue.d.ts +7 -6
  193. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  194. package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +19 -14
  195. package/lib/src/ap-form/ap-form-item.vue.d.ts +1008 -12
  196. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  197. package/lib/src/ap-form/ap-form-list.vue.d.ts +12 -7
  198. package/lib/src/ap-form/ap-form.vue.d.ts +884 -13
  199. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +17 -12
  200. package/lib/src/ap-form/items/date/index.vue.d.ts +40 -35
  201. package/lib/src/ap-form/items/date-range/index.vue.d.ts +39 -34
  202. package/lib/src/ap-form/items/number/index.vue.d.ts +583 -27
  203. package/lib/src/ap-form/items/radio/index.vue.d.ts +217 -13
  204. package/lib/src/ap-form/items/select/index.vue.d.ts +43 -38
  205. package/lib/src/ap-form/items/switch/index.vue.d.ts +24 -19
  206. package/lib/src/ap-form/items/text/index.vue.d.ts +591 -25
  207. package/lib/src/ap-form/items/text/password.vue.d.ts +658 -27
  208. package/lib/src/ap-form/items/text-area/index.vue.d.ts +486 -13
  209. package/lib/src/ap-form/modal-form/index.vue.d.ts +650 -16
  210. package/lib/src/ap-form/search-form/index.vue.d.ts +652 -18
  211. package/lib/src/ap-layout/ap-info-layout/ap-info-layout.vue.d.ts +20 -15
  212. package/lib/src/ap-list/index.vue.d.ts +5 -5
  213. package/lib/src/ap-modal/interface.d.ts +3 -3
  214. package/lib/src/ap-modal/utils/createModal.js +1 -1
  215. package/lib/src/ap-table/ap-table.vue.d.ts +5 -5
  216. package/lib/src/ap-table/ap-table.vue.js +1 -1
  217. package/lib/src/ap-table/components/index/index.vue.d.ts +4 -4
  218. package/lib/src/ap-table/constants.d.ts +1071 -1072
  219. package/lib/src/ap-table/constants.js +1 -1
  220. package/lib/src/ap-table/hooks/use-table-paging.d.ts +14 -3
  221. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  222. package/lib/src/ap-table/interface.d.ts +13 -4
  223. package/lib/src/ap-table/style/ap-table.css +9 -0
  224. package/lib/src/ap-table/utils.d.ts +597 -598
  225. package/lib/src/ap-table/utils.js +1 -1
  226. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +18 -11
  227. package/lib/src/ap-tag/ap-tag.vue.d.ts +5 -5
  228. package/lib/src/base-button/button.vue.d.ts +17 -12
  229. package/lib/src/base-button/index.d.ts +30 -30
  230. package/lib/src/basic/index.d.ts +6 -6
  231. package/lib/src/basic/title.vue.d.ts +16 -11
  232. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +13 -8
  233. package/lib/src/business/ap-image/ApImage.vue.d.ts +31 -62
  234. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  235. package/lib/src/business/ap-image/interface.d.ts +17 -0
  236. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +4 -4
  237. package/lib/src/business/ap-label/ApLabel.d.ts +2 -2
  238. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +6 -6
  239. package/lib/src/business/ap-status/ApStatus.vue.d.ts +5 -5
  240. package/lib/src/business/ap-status/ApStatusGroup.vue.d.ts +5 -5
  241. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +7 -0
  242. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -0
  243. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +7 -0
  244. package/lib/src/business/ap-table-modal/hooks/use-table-modal.js +1 -0
  245. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +6 -0
  246. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -0
  247. package/lib/src/business/ap-table-modal/index.d.ts +538 -0
  248. package/lib/src/business/ap-table-modal/index.js +1 -0
  249. package/lib/src/business/ap-table-modal/interface.d.ts +63 -0
  250. package/lib/src/business/ap-table-modal/interface.js +1 -0
  251. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +46 -0
  252. package/lib/src/business/ap-table-modal/modal-title.vue.js +1 -0
  253. package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -0
  254. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +79 -0
  255. package/lib/src/business/ap-table-modal/table-modal.vue.js +1 -0
  256. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -0
  257. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +19 -12
  258. package/lib/src/business/index.d.ts +160 -152
  259. package/lib/src/business/index.js +1 -1
  260. package/lib/src/business/title/ApTitle.vue.d.ts +17 -12
  261. package/lib/src/button/button.vue.d.ts +12 -7
  262. package/lib/src/button/index.d.ts +2 -2
  263. package/lib/src/check-card/group.vue.d.ts +18 -13
  264. package/lib/src/check-card/index.vue.d.ts +16 -11
  265. package/lib/src/config-provider/config-provider-props.d.ts +6 -4
  266. package/lib/src/config-provider/config-provider.d.ts +5 -5
  267. package/lib/src/config-provider/config-provider.js +1 -1
  268. package/lib/src/config-provider/hooks/use-global-config.d.ts +2 -1
  269. package/lib/src/config-provider/index.d.ts +17 -17
  270. package/lib/src/container/index.d.ts +4 -4
  271. package/lib/src/container/scroll-container.vue.d.ts +181 -8
  272. package/lib/src/count-down/button.vue.d.ts +4 -4
  273. package/lib/src/count-down/index.d.ts +8 -8
  274. package/lib/src/count-down/input.vue.d.ts +16 -11
  275. package/lib/src/cropper/cropper-avatar.vue.d.ts +4 -4
  276. package/lib/src/cropper/cropper-image.vue.d.ts +4 -4
  277. package/lib/src/cropper/index.d.ts +4 -4
  278. package/lib/src/description/index.d.ts +2 -2
  279. package/lib/src/dropdown/dropdown.vue.d.ts +16 -11
  280. package/lib/src/dropdown/index.d.ts +2 -2
  281. package/lib/src/editable-table/form-item.vue.d.ts +5 -5
  282. package/lib/src/editable-table/index.vue.d.ts +6 -6
  283. package/lib/src/icon/icon.vue.d.ts +4 -5
  284. package/lib/src/icon/index.d.ts +16 -16
  285. package/lib/src/icon/svg-icon.vue.d.ts +4 -4
  286. package/lib/src/icon-picker/icon-picker.vue.d.ts +4 -4
  287. package/lib/src/icon-picker/index.d.ts +2 -2
  288. package/lib/src/index.js +1 -1
  289. package/lib/src/locale/lang/en.js +1 -1
  290. package/lib/src/locale/lang/zh-cn.js +1 -1
  291. package/lib/src/modal/basic.vue.d.ts +210 -5
  292. package/lib/src/modal/components/modal-close.vue.d.ts +4 -4
  293. package/lib/src/modal/components/modal-footer.vue.d.ts +10 -5
  294. package/lib/src/modal/components/modal-wrapper.vue.d.ts +77 -4
  295. package/lib/src/modal/components/modal.d.ts +1 -1
  296. package/lib/src/modal/index.d.ts +5 -5
  297. package/lib/src/pro-form/components/api-cascader.vue.d.ts +4 -4
  298. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +4 -4
  299. package/lib/src/pro-form/components/api-select.vue.d.ts +16 -11
  300. package/lib/src/pro-form/components/api-transfer.vue.d.ts +5 -5
  301. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +16 -11
  302. package/lib/src/pro-form/components/api-tree.vue.d.ts +16 -11
  303. package/lib/src/pro-form/components/form-action.vue.d.ts +19 -14
  304. package/lib/src/pro-form/components/radio-button-group.vue.d.ts +4 -4
  305. package/lib/src/pro-form/hooks/use-label-width.d.ts +25 -25
  306. package/lib/src/pro-form/pro-form.vue.d.ts +888 -15
  307. package/lib/src/pro-form/table-form-inner.vue.d.ts +6 -5
  308. package/lib/src/pro-form/table-form.vue.d.ts +6 -5
  309. package/lib/src/pro-form/types/form.d.ts +4 -4
  310. package/lib/src/pro-table/components/edit-table-header-icon.vue.d.ts +7 -2
  311. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  312. package/lib/src/pro-table/components/table-action.vue.d.ts +7 -2
  313. package/lib/src/pro-table/components/table-footer.vue.d.ts +4 -4
  314. package/lib/src/pro-table/components/table-header.vue.d.ts +9 -4
  315. package/lib/src/pro-table/components/table-image.vue.d.ts +4 -4
  316. package/lib/src/pro-table/components/table-selection-bar.vue.d.ts +4 -4
  317. package/lib/src/pro-table/pro-table.vue.d.ts +2049 -28
  318. package/lib/src/prompt/utils.d.ts +1 -1
  319. package/lib/src/scroll-bar/index.d.ts +2 -2
  320. package/lib/src/scroll-bar/scroll-bar.vue.d.ts +19 -11
  321. package/lib/src/strength-meter/index.d.ts +2 -2
  322. package/lib/src/strength-meter/strength-meter.vue.d.ts +16 -11
  323. package/lib/src/theme/antd-global-overwrite/admin/index.css +1 -0
  324. package/lib/src/theme/antd-global-overwrite/admin/table.css +1 -0
  325. package/lib/src/theme/antd-global-overwrite/aplus/index.css +1 -0
  326. package/lib/src/theme/antd-global-overwrite/aplus/table.css +1 -0
  327. package/lib/src/theme/ap-table/ap-table.css +9 -0
  328. package/lib/src/theme/css-var/index.js +1 -1
  329. package/lib/src/transition/collapse-transition.vue.d.ts +7 -2
  330. package/lib/src/utils/config-provider-preset.d.ts +5 -5
  331. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  332. package/lib/src/work-order-modal/help-message.vue2.js +1 -1
  333. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  334. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  335. package/package.json +4 -4
@@ -1,12 +1,17 @@
1
1
  import { APInfoLayoutProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  declare function __VLS_template(): {
4
- header?(_: {}): any;
5
- title?(_: {}): any;
6
- actions?(_: {}): any;
7
- divider?(_: {}): any;
8
- content?(_: {}): any;
4
+ slots: {
5
+ header?(_: {}): any;
6
+ title?(_: {}): any;
7
+ actions?(_: {}): any;
8
+ divider?(_: {}): any;
9
+ content?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ attrs: Partial<{}>;
9
13
  };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
15
  declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<APInfoLayoutProps>, {
11
16
  toEl: string;
12
17
  telDisabled: boolean;
@@ -21,21 +26,13 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
21
26
  toEl: string | HTMLElement;
22
27
  telDisabled: boolean;
23
28
  }, {}>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
30
  export default _default;
26
31
  type __VLS_WithDefaults<P, D> = {
27
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
28
33
  default: D[K];
29
34
  }> : P[K];
30
35
  };
31
- type __VLS_Prettify<T> = {
32
- [K in keyof T]: T[K];
33
- } & {};
34
- type __VLS_WithTemplateSlots<T, S> = T & {
35
- new (): {
36
- $slots: S;
37
- };
38
- };
39
36
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
37
  type __VLS_TypePropsToOption<T> = {
41
38
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -45,3 +42,11 @@ type __VLS_TypePropsToOption<T> = {
45
42
  required: true;
46
43
  };
47
44
  };
45
+ type __VLS_WithTemplateSlots<T, S> = T & {
46
+ new (): {
47
+ $slots: S;
48
+ };
49
+ };
50
+ type __VLS_PrettifyLocal<T> = {
51
+ [K in keyof T]: T[K];
52
+ } & {};
@@ -2,8 +2,8 @@ import { ApListProps } from './interface';
2
2
  import { Recordable } from '../type';
3
3
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
4
4
  import { ApFormSearchFormExpose } from '..';
5
- declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, never>, never> & ApListProps<RecordType>> & PublicProps;
5
+ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, never>, never> & ApListProps<RecordType>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -12,7 +12,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
12
12
  scrollToFirstRow: (selector?: string) => void;
13
13
  }>): void;
14
14
  attrs: any;
15
- slots: ReturnType<() => {
15
+ slots: {
16
16
  header?(_: {
17
17
  formIns: {
18
18
  form: Ref< ApFormSearchFormExpose | undefined>;
@@ -27,7 +27,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
27
27
  item: RecordType;
28
28
  index: number;
29
29
  }): any;
30
- }>;
30
+ };
31
31
  emit: {};
32
32
  }>) => VNode<RendererNode, RendererElement, {
33
33
  [key: string]: any;
@@ -35,6 +35,6 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
35
35
  __ctx?: Awaited<typeof __VLS_setup>;
36
36
  };
37
37
  export default _default;
38
- type __VLS_Prettify<T> = {
38
+ type __VLS_PrettifyLocal<T> = {
39
39
  [K in keyof T]: T[K];
40
40
  } & {};
@@ -1,7 +1,7 @@
1
1
  import { ModalProps } from 'ant-design-vue';
2
- export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
3
- onCancel: (params: ContentRecord) => void | Promise<unknown>;
4
- onOk: (params: ContentRecord) => void | Promise<unknown>;
2
+ export type CreateModalFuncProps<ContentRecord = any> = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer' | 'icon'> & Partial<{
3
+ onCancel: (params: ContentRecord) => any | Promise<any>;
4
+ onOk: (params: ContentRecord) => any | Promise<any>;
5
5
  getContainer: HTMLElement;
6
6
  content: any;
7
7
  }>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),u=require("ant-design-vue"),C=require("../../config-provider/config-provider.js"),g=p=>{let i,t;function c(){i&&i(!1),setTimeout(()=>{o.render(null,a),l.removeChild(a)},500)}function h(e){t&&t(e)}const f=o.defineComponent({data(){return{open:!0,props:p}},methods:{async handleCancel(){var e,n,r,s,d;if((e=this.props)!=null&&e.onCancel){const m=((s=(r=(n=this.props)==null?void 0:n.content)==null?void 0:r.component)==null?void 0:s.exposed)??void 0;await((d=this.props)==null?void 0:d.onCancel(m))}c()},async handleOk(){var e,n,r,s;try{if(t({confirmLoading:!0}),(e=this.props)!=null&&e.onOk){const d=((s=(r=(n=this.props)==null?void 0:n.content)==null?void 0:r.component)==null?void 0:s.exposed)??void 0;await this.props.onOk(d)}t({confirmLoading:!1}),c()}catch{t({confirmLoading:!1})}}},created(){i=e=>{this.open=e},t=e=>{this.props={...this.props,...e}}},render(){const{...e}=this.props;return delete e.onCancel,delete e.onOk,o.createVNode(u.ConfigProvider,C.globalConfigCached.value,{default:()=>[o.createVNode(u.Modal,o.mergeProps({open:this.open,destroyOnClose:!0,onCancel:this.handleCancel,onOk:this.handleOk},e),{default:()=>{var n;return[(n=this.props)==null?void 0:n.content]}})]})}}),l=p.getContainer||document.body,a=document.createElement("div");return l.appendChild(a),o.render(o.h(f),a),{destroy:c,update:h}};exports.createModal=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),C=require("ant-design-vue"),u=require("../../config-provider/config-provider.js"),g=p=>{let i,t;function c(){i&&i(!1),setTimeout(()=>{o.render(null,a),l.removeChild(a)},500)}function h(e){t&&t(e)}const f=o.defineComponent({data(){return{open:!0,props:p}},methods:{async handleCancel(){var e,n,r,s,d;if((e=this.props)!=null&&e.onCancel){const m=((s=(r=(n=this.props)==null?void 0:n.content)==null?void 0:r.component)==null?void 0:s.exposed)??void 0;await((d=this.props)==null?void 0:d.onCancel(m))}c()},async handleOk(){var e,n,r,s;try{if(t({confirmLoading:!0}),(e=this.props)!=null&&e.onOk){const d=((s=(r=(n=this.props)==null?void 0:n.content)==null?void 0:r.component)==null?void 0:s.exposed)??void 0;await this.props.onOk(d)}t({confirmLoading:!1}),c()}catch{t({confirmLoading:!1})}}},created(){i=e=>{this.open=e},t=e=>{this.props={...this.props,...e}}},render(){const{...e}=this.props;return delete e.onCancel,delete e.onOk,o.createVNode(u.ConfigProvider,u.globalConfigCached.value,{default:()=>[o.createVNode(C.Modal,o.mergeProps({open:this.open,destroyOnClose:!0,onCancel:this.handleCancel,onOk:this.handleOk},e),{default:()=>{var n;return[(n=this.props)==null?void 0:n.content]}})]})}}),l=p.getContainer||document.body,a=document.createElement("div");return l.appendChild(a),o.render(o.h(f),a),{destroy:c,update:h}};exports.createModal=g;
@@ -2,8 +2,8 @@ import { ApColumnType, ApTableProps } from './interface';
2
2
  import { ColumnType } from 'ant-design-vue/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
4
  import { VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
5
- declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_Prettify<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_Prettify<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, never>, never> & ApTableProps<RecordType>> & PublicProps;
5
+ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{}>>, never>, never> & ApTableProps<RecordType>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -22,7 +22,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
22
22
  };
23
23
  }>): void;
24
24
  attrs: any;
25
- slots: ReturnType<() => Readonly<{
25
+ slots: Readonly<{
26
26
  default: any;
27
27
  emptyText?: any;
28
28
  expandIcon?: any;
@@ -66,7 +66,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
66
66
  title: any;
67
67
  column: ApColumnType;
68
68
  }) => void;
69
- }>;
69
+ };
70
70
  emit: {};
71
71
  }>) => VNode<RendererNode, RendererElement, {
72
72
  [key: string]: any;
@@ -74,6 +74,6 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
74
74
  __ctx?: Awaited<typeof __VLS_setup>;
75
75
  };
76
76
  export default _default;
77
- type __VLS_Prettify<T> = {
77
+ type __VLS_PrettifyLocal<T> = {
78
78
  [K in keyof T]: T[K];
79
79
  } & {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("ant-design-vue"),Y=require("ant-design-vue/es/theme/internal"),Z=require("../ap-form/index.js"),z=require("./constants.js");require("../config-provider/index.js");const ee=require("./hooks/use-table-paging.js"),u=require("lodash-unified");require("./style/ap-table.css");const s=require("./utils.js"),ae=require("./hooks/use-table-content-height.js"),re=require("../editable-table/utils.js"),oe=require("./hooks/use-table-row-selection.js"),ne=require("../utils/index.js"),te=require("../config-provider/hooks/use-locale.js"),le=require("../config-provider/hooks/use-namespace.js"),se=require("../config-provider/hooks/use-global-config.js"),ue=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1}},setup(I,{expose:V}){const o=I;let w=0;const m=e.useSlots(),[,E]=Y.useToken(),{t:L}=te.useLocale(),{e:g,b:i}=le.useNamespace("ap-table"),C=se.useGlobalConfig("valueTypeMap"),{height:O,contentRef:K}=ae.default(),c=e.ref([]),D=()=>{var n;let a=((n=o.columns)==null?void 0:n.filter(r=>!r.hideInTable))||[];return a=a.map(r=>({resizable:ne.isDef(r.resizable)?r.resizable:o.columnResizable,...u.omit(s.apColumnToColumn(r),["ellipsis"]),title:s.getTableTitle(r,m.default,e.unref(E).colorPrimary),customRender({value:t,...l}){var k,q;const d=s.getTableRenderType(r),B=s.getTableRenderProps({...r,valueType:d},{value:t,...l}),Q=s.getTableCellRenderNode(d,B,l.record,e.unref(C)),P=((k=r.renderText)==null?void 0:k.call(r,{value:t,...l}))||t,X=r.renderText?e.createVNode(e.Fragment,null,[(q=r.renderText)==null?void 0:q.call(r,{value:t,...l})]):Q;let h=G(r,P,X);return r.customRender&&(h=r.customRender({value:t,...l,column:r,originalNode:h,originalText:P})),h}})),a};e.watchEffect(()=>{c.value=D()});const R=e.computed(()=>{var a,n,r;return w++,((r=(n=(a=o.columns)==null?void 0:a.filter(t=>!t.hideInSearch&&t.dataIndex&&(t.valueType||t.customRenderFormItem)&&!z.noRenderAsFormItemValueList.includes(t.valueType)))==null?void 0:n.sort((t,l)=>{let d=s.getColumnOrder(t.order);return s.getColumnOrder(l.order)-d}))==null?void 0:r.map(t=>{const l=s.updateFormProps(t,s.getFieldProps(t.fieldProps,{})),d={...t,fieldProps:{label:t.title,name:t.dataIndex,...l||{},placeholder:s.getPlaceholder(L,t.valueType,l==null?void 0:l.placeholder),_signal:w},renderNode:void 0};return d.renderNode=s.getSearchFormItemRenderNode(d,e.unref(C)),d}))||[]}),U=e.computed(()=>e.unref(c).filter(a=>a.sorter===!0).map(a=>a.dataIndex).filter(Boolean)),j=e.computed(()=>e.unref(c).filter(a=>a.filters&&!a.onFilter).map(a=>a.dataIndex).filter(Boolean)),A=e.computed(()=>u.isUndefined(o.dataSource)?p.value.records:o.dataSource),{rowSelection:y,selectedRows:T,...S}=oe.default({...o.rowSelection===!0?{}:o.rowSelection,rowKey:o.rowKey,dataSource:A}),{formRef:b,submit:x,reset:F,tableProps:f,handleTableChange:W,data:p}=ee.useTablePaging({async request(a){var r,t;!y.value.preserveSelectedRowKeys&&u.isUndefined(o.dataSource)&&S.clearAll();const n=await((r=o.request)==null?void 0:r.call(o,a));return(t=o.onLoad)==null||t.call(o,(n==null?void 0:n.data)||[]),{data:(n==null?void 0:n.data)||[],total:(n==null?void 0:n.total)||0}},filterFields:j,sortFields:U,defaultParams:o.params,defaultData:o.defaultData,manual:o.manual,defaultCurrent:o.pagination?o.pagination.defaultCurrent:void 0,defaultPageSize:o.pagination?o.pagination.defaultPageSize:void 0,formatParams:o.beforeSearchSubmit}),$=e.computed(()=>{var n,r;if(o.adaptive&&(p.value.total>0||((n=o.dataSource)==null?void 0:n.length)))return{y:e.unref(O),x:((r=o.scroll)==null?void 0:r.x)||"100%"};if(o.scroll)return o.scroll}),H=e.computed(()=>{var a;if(o.tableLayout)return o.tableLayout;if((a=o.columns)!=null&&a.some(n=>n.ellipsis))return"fixed"}),v=e.computed(()=>{var t;const a=e.unref(f),n=u.isUndefined(o.dataSource)?a:{...a,dataSource:o.dataSource,onChange:o.onChange},r=e.unref(y);return{...o,...n,rowSelection:o.rowSelection===!0||((t=o.rowSelection)==null?void 0:t.mode)==="internal"?{...r,preserveSelectedRowKeys:u.isUndefined(o.dataSource)?r.preserveSelectedRowKeys:!0}:o.rowSelection,loading:u.isUndefined(o.loading)?e.unref(f).loading:o.loading,pagination:o.pagination===!1?!1:e.unref(f).pagination,scroll:e.unref($)}}),M=e.computed(()=>[i(),o.card?null:i("wrapper"),o.adaptive?i("adaptive"):null].filter(Boolean));function G(a,n,r){if(z.noRenderAsFormItemValueList.includes(a.valueType))return r;const t=s.objectToString(n);return a.copyable||a.ellipsis?e.createVNode(N.Typography.Paragraph,{copyable:a.copyable?{text:t,tooltip:!1}:!1,ellipsis:a.ellipsis?u.isBoolean(a.ellipsis)?{tooltip:t}:{...a.ellipsis,tooltip:t}:!1,content:a.ellipsis?re.getRawDisplayValue(a,n):r},null):r}e.watch(()=>e.unref(p).loading,a=>{var n;(n=o.onLoadingChange)==null||n.call(o,a)});function _(a){var n,r,t;(t=(r=(n=b.value)==null?void 0:n.apForm)==null?void 0:r.setFieldsValue)==null||t.call(r,a)}function J(){var a,n,r;return(r=(n=(a=b.value)==null?void 0:a.apForm)==null?void 0:n.getFieldsValue)==null?void 0:r.call(n,!0)}return V({submit:()=>x(),reset:()=>F(),setSearchFormValues:_,getSearchFormValues:J,dataSource:e.computed(()=>e.unref(p).records),rowSelection:{selectedRows:e.computed(()=>e.unref(T)),...S}}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(M.value)},[e.unref(u.isUndefined)(a.dataSource)&&a.searchForm!==!1&&R.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.card?e.unref(g)("search-wrapper"):null),style:e.normalizeStyle(a.searchFormWrapperStyle)},[e.createVNode(e.unref(Z.ApForm).SearchForm,e.mergeProps(a.searchForm||{},{ref_key:"formRef",ref:b,"custom-reset":"",onSubmit:e.unref(x),onReset:e.unref(F),"submit-loading":e.unref(f).loading}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,r=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.renderNode),e.mergeProps({key:r.dataIndex,ref_for:!0},r.fieldProps||{},{span:r.span}),null,16,["span"]))),128))]),_:2},[m.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["onSubmit","onReset","submit-loading"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:K,class:e.normalizeClass([e.unref(g)("table-wrapper"),a.card?e.unref(g)("table-wrapper-card"):null]),style:e.normalizeStyle(a.tableWrapperStyle)},[e.renderSlot(a.$slots,"title",e.mergeProps({selectedRows:e.unref(T),selectedRowKeys:e.unref(y).selectedRowKeys},S)),e.createVNode(e.unref(N.Table),e.mergeProps({class:e.unref(i)("table")},v.value,{"table-layout":H.value,onChange:e.unref(W),columns:c.value,onResizeColumn:n[0]||(n[0]=(r,t)=>{console.log("width is: ",r),t.width=r})}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(a.$slots,"summary",{columns:c.value,records:v.value.dataSource})]),_:2},[e.renderList(e.unref(u.omit)(m,["title","searchFormExtra","headerCell"]),(r,t)=>({name:t,fn:e.withCtx(l=>[e.renderSlot(a.$slots,t,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["class","table-layout","onChange","columns"])],6)],2))}});exports.default=ue;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=require("ant-design-vue"),Y=require("ant-design-vue/es/theme/internal"),Z=require("../ap-form/index.js"),N=require("./constants.js");require("../config-provider/index.js");const ee=require("./hooks/use-table-paging.js"),u=require("lodash-unified");require("./style/ap-table.css");const s=require("./utils.js"),ae=require("./hooks/use-table-content-height.js"),oe=require("../editable-table/utils.js"),re=require("./hooks/use-table-row-selection.js"),ne=require("../utils/index.js"),te=require("../config-provider/hooks/use-locale.js"),le=require("../config-provider/hooks/use-namespace.js"),se=require("../config-provider/hooks/use-global-config.js"),ue=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1}},setup(z,{expose:L}){const o=z;let w=0;const m=e.useSlots(),[,V]=Y.useToken(),{t:E}=te.useLocale(),{e:g,b:c}=le.useNamespace("ap-table"),C=se.useGlobalConfig("valueTypeMap"),{height:O,contentRef:K}=ae.default(),i=e.ref([]),D=()=>{var n;let a=((n=o.columns)==null?void 0:n.filter(r=>!r.hideInTable))||[];return a=a.map(r=>({resizable:ne.isDef(r.resizable)?r.resizable:o.columnResizable,...u.omit(s.apColumnToColumn(r),["ellipsis"]),title:s.getTableTitle(r,m.headerCell,e.unref(V).colorPrimary),customRender({value:t,...l}){var k,q;const d=s.getTableRenderType(r),B=s.getTableRenderProps({...r,valueType:d},{value:t,...l}),Q=s.getTableCellRenderNode(d,B,l.record,e.unref(C)),P=((k=r.renderText)==null?void 0:k.call(r,{value:t,...l}))||t,X=r.renderText?e.createVNode(e.Fragment,null,[(q=r.renderText)==null?void 0:q.call(r,{value:t,...l})]):Q;let b=G(r,P,X);return r.customRender&&(b=r.customRender({value:t,...l,column:r,originalNode:b,originalText:P})),b}})),a};e.watchEffect(()=>{i.value=D()});const R=e.computed(()=>{var a,n,r;return w++,((r=(n=(a=o.columns)==null?void 0:a.filter(t=>!t.hideInSearch&&t.dataIndex&&(t.valueType||t.customRenderFormItem)&&!N.noRenderAsFormItemValueList.includes(t.valueType)))==null?void 0:n.sort((t,l)=>{let d=s.getColumnOrder(t.order);return s.getColumnOrder(l.order)-d}))==null?void 0:r.map(t=>{const l=s.updateFormProps(t,s.getFieldProps(t.fieldProps,{})),d={...t,fieldProps:{label:t.title,name:t.dataIndex,...l||{},placeholder:s.getPlaceholder(E,t.valueType,l==null?void 0:l.placeholder),_signal:w},renderNode:void 0};return d.renderNode=s.getSearchFormItemRenderNode(d,e.unref(C)),d}))||[]}),U=e.computed(()=>e.unref(i).filter(a=>a.sorter===!0).map(a=>a.dataIndex).filter(Boolean)),j=e.computed(()=>e.unref(i).filter(a=>a.filters&&!a.onFilter).map(a=>a.dataIndex).filter(Boolean)),A=e.computed(()=>u.isUndefined(o.dataSource)?f.value.records:o.dataSource),{rowSelection:y,selectedRows:T,...h}=re.default({...o.rowSelection===!0?{}:o.rowSelection,rowKey:o.rowKey,dataSource:A}),{formRef:S,submit:x,reset:F,tableProps:p,handleTableChange:W,data:f}=ee.useTablePaging({async request(a){var r,t;!y.value.preserveSelectedRowKeys&&u.isUndefined(o.dataSource)&&h.clearAll();const n=await((r=o.request)==null?void 0:r.call(o,a));return(t=o.onLoad)==null||t.call(o,(n==null?void 0:n.data)||[]),{data:(n==null?void 0:n.data)||[],total:(n==null?void 0:n.total)||0}},filterFields:j,sortFields:U,defaultParams:o.params,defaultData:o.defaultData,manual:o.manual,defaultCurrent:o.pagination?o.pagination.defaultCurrent:void 0,defaultPageSize:o.pagination?o.pagination.defaultPageSize:void 0,formatParams:o.beforeSearchSubmit,showLessItems:o.pagination?o.pagination.showLessItems:void 0,showTotal:o.pagination?o.pagination.showTotal:void 0}),$=e.computed(()=>{var n,r;if(o.adaptive&&(f.value.total>0||((n=o.dataSource)==null?void 0:n.length)))return{y:e.unref(O),x:((r=o.scroll)==null?void 0:r.x)||"100%"};if(o.scroll)return o.scroll}),H=e.computed(()=>{var a;if(o.tableLayout)return o.tableLayout;if((a=o.columns)!=null&&a.some(n=>n.ellipsis))return"fixed"}),v=e.computed(()=>{var t;const a=e.unref(p),n=u.isUndefined(o.dataSource)?a:{...a,dataSource:o.dataSource,onChange:o.onChange},r=e.unref(y);return{...o,...n,rowSelection:o.rowSelection===!0||((t=o.rowSelection)==null?void 0:t.mode)==="internal"?{...r,preserveSelectedRowKeys:u.isUndefined(o.dataSource)?r.preserveSelectedRowKeys:!0}:o.rowSelection,loading:u.isUndefined(o.loading)?e.unref(p).loading:o.loading,pagination:o.pagination===!1?!1:e.unref(p).pagination,scroll:e.unref($)}}),M=e.computed(()=>[c(),o.card?null:c("wrapper"),o.adaptive?c("adaptive"):null].filter(Boolean));function G(a,n,r){if(N.noRenderAsFormItemValueList.includes(a.valueType))return r;const t=s.objectToString(n);return a.copyable||a.ellipsis?e.createVNode(I.Typography.Paragraph,{copyable:a.copyable?{text:t,tooltip:!1}:!1,ellipsis:a.ellipsis?u.isBoolean(a.ellipsis)?{tooltip:t}:{...a.ellipsis,tooltip:t}:!1,content:a.ellipsis?oe.getRawDisplayValue(a,n):r},null):r}e.watch(()=>e.unref(f).loading,a=>{var n;(n=o.onLoadingChange)==null||n.call(o,a)});function _(a){var n,r,t;(t=(r=(n=S.value)==null?void 0:n.apForm)==null?void 0:r.setFieldsValue)==null||t.call(r,a)}function J(){var a,n,r;return(r=(n=(a=S.value)==null?void 0:a.apForm)==null?void 0:n.getFieldsValue)==null?void 0:r.call(n,!0)}return L({submit:()=>x(),reset:()=>F(),setSearchFormValues:_,getSearchFormValues:J,dataSource:e.computed(()=>e.unref(f).records),rowSelection:{selectedRows:e.computed(()=>e.unref(T)),...h}}),(a,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(M.value)},[e.unref(u.isUndefined)(a.dataSource)&&a.searchForm!==!1&&R.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(a.card?e.unref(g)("search-wrapper"):null),style:e.normalizeStyle(a.searchFormWrapperStyle)},[e.createVNode(e.unref(Z.ApForm).SearchForm,e.mergeProps(a.searchForm||{},{ref_key:"formRef",ref:S,"custom-reset":"",onSubmit:e.unref(x),onReset:e.unref(F),"submit-loading":e.unref(p).loading}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(R.value,r=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.renderNode),e.mergeProps({key:r.dataIndex,ref_for:!0},r.fieldProps||{},{span:r.span}),null,16,["span"]))),128))]),_:2},[m.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["onSubmit","onReset","submit-loading"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:K,class:e.normalizeClass([e.unref(g)("table-wrapper"),a.card?e.unref(g)("table-wrapper-card"):null]),style:e.normalizeStyle(a.tableWrapperStyle)},[e.renderSlot(a.$slots,"title",e.mergeProps({selectedRows:e.unref(T),selectedRowKeys:e.unref(y).selectedRowKeys},h)),e.createVNode(e.unref(I.Table),e.mergeProps({class:e.unref(c)("table")},v.value,{"table-layout":H.value,onChange:e.unref(W),columns:i.value,onResizeColumn:n[0]||(n[0]=(r,t)=>t.width=r)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(a.$slots,"summary",{columns:i.value,records:v.value.dataSource})]),_:2},[e.renderList(e.unref(u.omit)(m,["title","searchFormExtra","headerCell"]),(r,t)=>({name:t,fn:e.withCtx(l=>[e.renderSlot(a.$slots,t,e.normalizeProps(e.guardReactiveProps(l||{})))])}))]),1040,["class","table-layout","onChange","columns"])],6)],2))}});exports.default=ue;
@@ -9,13 +9,10 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOpti
9
9
  }, {}>;
10
10
  export default _default;
11
11
  type __VLS_WithDefaults<P, D> = {
12
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
12
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
13
13
  default: D[K];
14
14
  }> : P[K];
15
15
  };
16
- type __VLS_Prettify<T> = {
17
- [K in keyof T]: T[K];
18
- } & {};
19
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
20
17
  type __VLS_TypePropsToOption<T> = {
21
18
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -25,3 +22,6 @@ type __VLS_TypePropsToOption<T> = {
25
22
  required: true;
26
23
  };
27
24
  };
25
+ type __VLS_PrettifyLocal<T> = {
26
+ [K in keyof T]: T[K];
27
+ } & {};