@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
@@ -0,0 +1,50 @@
1
+ import { defineComponent as m, openBlock as c, createElementBlock as f, createTextVNode as a, toDisplayString as t, renderSlot as d, createElementVNode as r, normalizeStyle as u, unref as o } from "vue";
2
+ import "../../index.mjs";
3
+ import { useLocale as p } from "../../config-provider/hooks/use-locale.mjs";
4
+ import { useGlobalConfig as s } from "../../config-provider/hooks/use-global-config.mjs";
5
+ const T = /* @__PURE__ */ m({
6
+ __name: "modal-title",
7
+ props: {
8
+ title: {
9
+ type: String,
10
+ required: !0
11
+ },
12
+ count: {
13
+ type: Number,
14
+ required: !0
15
+ },
16
+ maxCount: {
17
+ type: Number,
18
+ required: !0
19
+ }
20
+ },
21
+ setup(e) {
22
+ const { t: n } = p(), l = s("uiMode", "aplus");
23
+ return (i, x) => (c(), f("div", null, [
24
+ a(t(e.title) + " ", 1),
25
+ d(i.$slots, "default", {
26
+ maxCount: e.maxCount,
27
+ count: e.count
28
+ }, () => [
29
+ r("span", {
30
+ style: u({
31
+ color: o(l) === "admin" ? "#999999" : "#8896b0",
32
+ fontSize: "14px",
33
+ fontWeight: "normal",
34
+ marginLeft: "16px"
35
+ }),
36
+ class: "product-number"
37
+ }, [
38
+ a(t(isFinite(e.maxCount) ? o(n)("ap.apTableModal.titleSuffixOne", { maxCount: e.maxCount }) : "") + t(o(n)("ap.apTableModal.titleSuffixTwo")) + " ", 1),
39
+ r("span", {
40
+ style: u({ color: o(l) === "admin" ? "#34B77C" : "#0070ff" })
41
+ }, t(e.count), 5),
42
+ a(" " + t(o(n)("ap.apTableModal.titleSuffixThree")), 1)
43
+ ], 4)
44
+ ])
45
+ ]));
46
+ }
47
+ });
48
+ export {
49
+ T as default
50
+ };
@@ -0,0 +1,79 @@
1
+ import { OpenOptions, OpenReturnType, ApTableModalProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTableModalProps<any>>, {
4
+ confirmLoading: undefined;
5
+ closable: undefined;
6
+ centered: undefined;
7
+ maskClosable: undefined;
8
+ forceRender: undefined;
9
+ destroyOnClose: undefined;
10
+ getContainer: undefined;
11
+ mask: undefined;
12
+ keyboard: undefined;
13
+ focusTriggerAfterClose: undefined;
14
+ api: () => Promise<{
15
+ records: never[];
16
+ total: number;
17
+ }>;
18
+ maxCount: number;
19
+ isRenderModalTitleSuffix: boolean;
20
+ }>, {
21
+ open: <T>(selected?: any[], options?: OpenOptions) => Promise<OpenReturnType<T>>;
22
+ close: () => void;
23
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
24
+ finish: (selectedRowKeys: (string | number)[], selectedRows: any[]) => void;
25
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApTableModalProps<any>>, {
26
+ confirmLoading: undefined;
27
+ closable: undefined;
28
+ centered: undefined;
29
+ maskClosable: undefined;
30
+ forceRender: undefined;
31
+ destroyOnClose: undefined;
32
+ getContainer: undefined;
33
+ mask: undefined;
34
+ keyboard: undefined;
35
+ focusTriggerAfterClose: undefined;
36
+ api: () => Promise<{
37
+ records: never[];
38
+ total: number;
39
+ }>;
40
+ maxCount: number;
41
+ isRenderModalTitleSuffix: boolean;
42
+ }>>> & {
43
+ onFinish?: ((selectedRowKeys: (string | number)[], selectedRows: any[]) => any) | undefined;
44
+ }, {
45
+ mask: boolean;
46
+ api: (params: any) => Promise<{
47
+ records: any[];
48
+ total: number;
49
+ }>;
50
+ closable: boolean;
51
+ centered: boolean;
52
+ maskClosable: boolean;
53
+ keyboard: boolean;
54
+ getContainer: string | false | HTMLElement | (() => HTMLElement);
55
+ focusTriggerAfterClose: boolean;
56
+ confirmLoading: boolean;
57
+ forceRender: boolean;
58
+ destroyOnClose: boolean;
59
+ maxCount: number;
60
+ isRenderModalTitleSuffix: boolean;
61
+ }, {}>;
62
+ export default _default;
63
+ type __VLS_WithDefaults<P, D> = {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
65
+ default: D[K];
66
+ }> : P[K];
67
+ };
68
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ type __VLS_TypePropsToOption<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
77
+ type __VLS_PrettifyLocal<T> = {
78
+ [K in keyof T]: T[K];
79
+ } & {};
@@ -0,0 +1,4 @@
1
+ import f from "./table-modal.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,177 @@
1
+ import { defineComponent as N, ref as i, unref as r, computed as O, h as D, openBlock as E, createBlock as I, mergeProps as x, withCtx as L, createVNode as U } from "vue";
2
+ import { message as q, Modal as A } from "ant-design-vue";
3
+ import "../../index.mjs";
4
+ import { cloneDeep as F, omit as g } from "lodash-unified";
5
+ import { transformTableParams as G } from "@aplus-frontend/utils";
6
+ import "./modal-title.vue.mjs";
7
+ import { AsyncOpenResultError as f } from "./interface.mjs";
8
+ import { useGlobalConfig as $ } from "../../config-provider/hooks/use-global-config.mjs";
9
+ import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
10
+ import V from "./modal-title.vue2.mjs";
11
+ import W from "../../ap-table/ap-table.vue.mjs";
12
+ const le = /* @__PURE__ */ N({
13
+ __name: "table-modal",
14
+ props: {
15
+ columns: {},
16
+ getRowKey: {},
17
+ api: { type: Function, default: async () => ({ records: [], total: 0 }) },
18
+ apTableProps: {},
19
+ maxCount: { default: 1 / 0 },
20
+ isRenderModalTitleSuffix: { type: Boolean, default: !0 },
21
+ renderModalTitleSuffix: {},
22
+ prefixCls: {},
23
+ confirmLoading: { type: Boolean, default: void 0 },
24
+ title: {},
25
+ closable: { type: Boolean, default: void 0 },
26
+ closeIcon: {},
27
+ onCancel: {},
28
+ "onUpdate:visible": {},
29
+ "onUpdate:open": {},
30
+ onChange: {},
31
+ afterClose: {},
32
+ centered: { type: Boolean, default: void 0 },
33
+ width: {},
34
+ footer: {},
35
+ okText: {},
36
+ okType: {},
37
+ cancelText: {},
38
+ icon: {},
39
+ maskClosable: { type: Boolean, default: void 0 },
40
+ forceRender: { type: Boolean, default: void 0 },
41
+ okButtonProps: {},
42
+ cancelButtonProps: {},
43
+ destroyOnClose: { type: Boolean, default: void 0 },
44
+ wrapClassName: {},
45
+ maskTransitionName: {},
46
+ transitionName: {},
47
+ getContainer: { type: [String, Boolean, Function], default: void 0 },
48
+ zIndex: {},
49
+ bodyStyle: {},
50
+ maskStyle: {},
51
+ mask: { type: Boolean, default: void 0 },
52
+ keyboard: { type: Boolean, default: void 0 },
53
+ wrapProps: {},
54
+ focusTriggerAfterClose: { type: Boolean, default: void 0 },
55
+ modalRender: {},
56
+ mousePosition: {}
57
+ },
58
+ emits: ["finish"],
59
+ setup(C, { expose: b, emit: w }) {
60
+ const e = C, T = w, s = i(!1), m = i({}), c = i(null), l = i([]), p = i();
61
+ let u = null, a = null;
62
+ const k = $("uiMode", "admin"), { t: B } = z(), S = async (t = [], o = {}) => {
63
+ var n, d, v;
64
+ switch (l.value = [...t], s.value = !0, m.value = o == null ? void 0 : o.extraParams, p.value = o.apTableDataSources || ((n = e.apTableProps) == null ? void 0 : n.dataSource), o.refreshMode || "reset") {
65
+ case "reset":
66
+ (d = c.value) == null || d.reset();
67
+ break;
68
+ case "submit":
69
+ (v = c.value) == null || v.submit();
70
+ break;
71
+ case "none":
72
+ break;
73
+ }
74
+ return new Promise((K, _) => {
75
+ u = K, a = _;
76
+ });
77
+ }, y = () => {
78
+ s.value = !1, u = null, a == null || a(f.ModalCancel), a = null;
79
+ }, h = async (t) => {
80
+ t = G({
81
+ ...t,
82
+ ...m.value
83
+ });
84
+ const o = e.api, { records: n, total: d } = await o(t);
85
+ return {
86
+ data: n,
87
+ total: d
88
+ };
89
+ }, M = () => {
90
+ if (l.value.length > e.maxCount) {
91
+ a == null || a(f.ExceedMaxCount);
92
+ return;
93
+ }
94
+ if (e.getRowKey) {
95
+ const t = F(r(l)), o = t.map(e.getRowKey);
96
+ T("finish", o, t), u == null || u({ keys: o, rows: t });
97
+ } else {
98
+ a == null || a(f.NotFineGetRowKey);
99
+ return;
100
+ }
101
+ s.value = !1;
102
+ }, P = O(() => {
103
+ if (e.getRowKey)
104
+ return {
105
+ fixed: !0,
106
+ selectedRowKeys: l.value.map(e.getRowKey),
107
+ columnWidth: 50,
108
+ preserveSelectedRowKeys: !0,
109
+ onChange: (t, o) => {
110
+ if (o.length > e.maxCount) {
111
+ q.warning(
112
+ B("ap.apTableModal.messageMaxCount", { maxCount: e.maxCount })
113
+ );
114
+ return;
115
+ }
116
+ l.value = o;
117
+ }
118
+ };
119
+ }), R = () => e.isRenderModalTitleSuffix ? D(
120
+ V,
121
+ {
122
+ title: e.title,
123
+ count: l.value.length || 0,
124
+ maxCount: e.maxCount
125
+ },
126
+ {
127
+ default: e.renderModalTitleSuffix ?? void 0
128
+ }
129
+ ) : e.title;
130
+ return b({
131
+ open: S,
132
+ close: y
133
+ }), (t, o) => (E(), I(r(A), x(
134
+ {
135
+ onOk: M,
136
+ onCancel: y,
137
+ open: s.value,
138
+ "onUpdate:open": o[0] || (o[0] = (n) => s.value = n)
139
+ },
140
+ r(g)(e, [
141
+ "api",
142
+ "getRowKey",
143
+ "centered",
144
+ "apTableProps",
145
+ "onOk",
146
+ "maxCount",
147
+ "title",
148
+ "renderModalTitleSuffix",
149
+ "isRenderModalTitleSuffix"
150
+ ]),
151
+ {
152
+ title: R(),
153
+ centered: e.centered ?? !0
154
+ }
155
+ ), {
156
+ default: L(() => [
157
+ U(r(W), x({
158
+ scroll: { y: "100%" },
159
+ style: { padding: "0px" },
160
+ columns: t.columns,
161
+ request: h,
162
+ "row-key": t.getRowKey,
163
+ "row-selection": P.value,
164
+ bordered: r(k) === "admin"
165
+ }, r(g)(e.apTableProps, "dataSource"), {
166
+ ref_key: "apTableRef",
167
+ ref: c,
168
+ "data-source": p.value
169
+ }), null, 16, ["columns", "row-key", "row-selection", "bordered", "data-source"])
170
+ ]),
171
+ _: 1
172
+ }, 16, ["open", "title", "centered"]));
173
+ }
174
+ });
175
+ export {
176
+ le as default
177
+ };
@@ -6,8 +6,15 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes,
6
6
  */
7
7
  declare function setExpand(state?: boolean): void;
8
8
  declare function __VLS_template(): {
9
- default?(_: {}): any;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {
13
+ ellipsisBoxRef: HTMLDivElement;
14
+ };
15
+ attrs: Partial<{}>;
10
16
  };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
18
  declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApExpandAlertProps>, {
12
19
  /**
13
20
  * Alert类型
@@ -69,26 +76,18 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
69
76
  }, {
70
77
  type: "warning" | "error" | "success" | "info" | undefined;
71
78
  data: Array<any> | string;
72
- prefix: string;
73
79
  separator: string;
80
+ prefix: string;
74
81
  rows: string | number;
75
82
  tipTitle: string;
76
83
  }, {}>;
77
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
84
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
78
85
  export default _default;
79
86
  type __VLS_WithDefaults<P, D> = {
80
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
87
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
81
88
  default: D[K];
82
89
  }> : P[K];
83
90
  };
84
- type __VLS_Prettify<T> = {
85
- [K in keyof T]: T[K];
86
- } & {};
87
- type __VLS_WithTemplateSlots<T, S> = T & {
88
- new (): {
89
- $slots: S;
90
- };
91
- };
92
91
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
93
92
  type __VLS_TypePropsToOption<T> = {
94
93
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -98,3 +97,11 @@ type __VLS_TypePropsToOption<T> = {
98
97
  required: true;
99
98
  };
100
99
  };
100
+ type __VLS_WithTemplateSlots<T, S> = T & {
101
+ new (): {
102
+ $slots: S;
103
+ };
104
+ };
105
+ type __VLS_PrettifyLocal<T> = {
106
+ [K in keyof T]: T[K];
107
+ } & {};