@aplus-frontend/ui 0.6.0-beta.8 → 0.6.0

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 (530) hide show
  1. package/es/index.mjs +307 -289
  2. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
  3. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  4. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  5. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +4 -0
  6. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +25 -0
  7. package/es/src/ap-drawer/index.d.ts +2 -0
  8. package/es/src/ap-drawer/index.mjs +5 -2
  9. package/es/src/ap-drawer/utils/createDrawer.mjs +38 -33
  10. package/es/src/ap-field/date-range/index.vue.mjs +8 -7
  11. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  12. package/es/src/ap-field/number/index.vue.d.ts +2 -4
  13. package/es/src/ap-field/radio/index.vue.d.ts +2 -4
  14. package/es/src/ap-field/rate/index.vue.d.ts +2 -4
  15. package/es/src/ap-field/select/index.vue.d.ts +3 -6
  16. package/es/src/ap-field/slider/index.vue.d.ts +2 -4
  17. package/es/src/ap-field/text/index.vue2.mjs +42 -44
  18. package/es/src/ap-field/text/password.vue.mjs +15 -17
  19. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  20. package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
  21. package/es/src/ap-form/ap-form.vue2.mjs +89 -77
  22. package/es/src/ap-form/dependency/index.vue.mjs +29 -23
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  24. package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
  25. package/es/src/ap-form/interface.d.ts +13 -5
  26. package/es/src/ap-form/item/index.vue.d.ts +5 -10
  27. package/es/src/ap-form/item/index.vue.mjs +69 -73
  28. package/es/src/ap-form/item-group/index.vue.mjs +34 -35
  29. package/es/src/ap-form/items/select/index.vue.mjs +12 -14
  30. package/es/src/ap-form/items/text/password.vue.mjs +9 -9
  31. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  32. package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
  33. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
  34. package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
  35. package/es/src/ap-form/provider/index.vue.mjs +6 -5
  36. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  37. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
  38. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +79 -71
  39. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
  40. package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
  41. package/es/src/ap-form/search-form/index.vue.mjs +99 -97
  42. package/es/src/ap-form/set/index.vue.mjs +20 -20
  43. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  44. package/es/src/ap-grid/editable/index.vue.mjs +13 -10
  45. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  46. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  47. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  48. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  49. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  50. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  51. package/es/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  52. package/es/src/ap-grid/hooks/use-table-style.mjs +26 -0
  53. package/es/src/ap-grid/index.vue.mjs +295 -243
  54. package/es/src/ap-grid/interface.d.ts +32 -3
  55. package/es/src/ap-grid/utils/table.mjs +15 -15
  56. package/es/src/ap-list/index.vue.d.ts +2 -9
  57. package/es/src/ap-list/index.vue.mjs +113 -103
  58. package/es/src/ap-list/interface.d.ts +24 -3
  59. package/es/src/ap-modal/interface.d.ts +2 -1
  60. package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
  61. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  62. package/es/src/ap-table/ap-table.vue2.mjs +86 -82
  63. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  64. package/es/src/ap-table/constants.d.ts +22 -22
  65. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +25 -6
  66. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
  67. package/es/src/ap-table/interface.d.ts +17 -4
  68. package/es/src/ap-table/utils.d.ts +21 -21
  69. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  70. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
  71. package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
  72. package/es/src/business/ap-card/index.d.ts +2 -4
  73. package/es/src/business/ap-card/interface.d.ts +5 -0
  74. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  75. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  76. package/es/src/business/ap-copy/constans.d.ts +24 -0
  77. package/es/src/business/ap-copy/constans.mjs +25 -0
  78. package/es/src/business/ap-copy/index.d.ts +102 -0
  79. package/es/src/business/ap-copy/index.mjs +7 -0
  80. package/es/src/business/ap-copy/interface.d.ts +8 -0
  81. package/es/src/business/ap-copy/interface.mjs +1 -0
  82. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  83. package/es/src/business/ap-copy/style/css.js +1 -0
  84. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  85. package/es/src/business/ap-copy/style/index.js +1 -0
  86. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +92 -71
  87. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
  88. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  89. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  90. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  91. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  92. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  93. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  94. package/es/src/business/ap-keep-alive/index.d.ts +108 -0
  95. package/es/src/business/ap-keep-alive/index.mjs +15 -0
  96. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  97. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  98. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  99. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  100. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  101. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  102. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  103. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  108. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  109. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  110. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  111. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  112. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  113. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  114. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  115. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  116. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  118. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  119. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  120. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  121. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  122. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  123. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  124. package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
  125. package/es/src/business/ap-keep-alive/utils.mjs +42 -0
  126. package/es/src/business/ap-label/constans.mjs +1 -1
  127. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  128. package/es/src/business/ap-label/interface.d.ts +2 -3
  129. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  130. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  131. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  132. package/es/src/business/ap-product-info/constans.mjs +4 -0
  133. package/es/src/business/ap-product-info/index.d.ts +15 -0
  134. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  135. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  136. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  137. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
  138. package/es/src/business/ap-radio-group/index.d.ts +66 -0
  139. package/es/src/business/ap-radio-group/index.mjs +8 -0
  140. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  141. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  142. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  143. package/es/src/business/ap-radio-group/style/css.js +1 -0
  144. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  145. package/es/src/business/ap-radio-group/style/index.js +1 -0
  146. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  147. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  148. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  149. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  150. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  151. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  152. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  153. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
  154. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  155. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
  156. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  157. package/es/src/business/ap-view/index.d.ts +12 -3
  158. package/es/src/business/ap-view/interface.d.ts +7 -0
  159. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  160. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  161. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  162. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  163. package/es/src/business/index.d.ts +3 -0
  164. package/es/src/business/index.mjs +36 -30
  165. package/es/src/components.d.ts +1 -0
  166. package/es/src/editable-table/form-item.vue.mjs +23 -23
  167. package/es/src/full-screen/interface.d.ts +5 -6
  168. package/es/src/index.mjs +112 -97
  169. package/es/src/locale/lang/en.mjs +4 -0
  170. package/es/src/locale/lang/zh-cn.mjs +4 -0
  171. package/es/src/mask/index.vue.mjs +21 -20
  172. package/es/src/path-map.mjs +3 -1
  173. package/es/src/resize-observer/interface.d.ts +2 -3
  174. package/es/src/scroll-bar/interface.d.ts +7 -7
  175. package/es/src/scroll-view/interface.d.ts +2 -3
  176. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  177. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  178. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  179. package/es/src/tests/mock-warning.d.ts +1 -0
  180. package/es/src/tests/utils.d.ts +8 -0
  181. package/es/src/text/group.vue.mjs +7 -6
  182. package/es/src/text/index.vue.mjs +20 -19
  183. package/es/src/version.d.ts +2 -0
  184. package/es/src/version.mjs +4 -0
  185. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  186. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  187. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  188. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  189. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  190. package/es/test/setup.d.ts +5 -0
  191. package/lib/index.js +1 -1
  192. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  193. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  194. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  195. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  196. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  197. package/lib/src/ap-drawer/index.d.ts +2 -0
  198. package/lib/src/ap-drawer/index.js +1 -1
  199. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  200. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  201. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  202. package/lib/src/ap-field/number/index.vue.d.ts +2 -4
  203. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  204. package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
  205. package/lib/src/ap-field/select/index.vue.d.ts +3 -6
  206. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  207. package/lib/src/ap-field/text/index.vue2.js +1 -1
  208. package/lib/src/ap-field/text/password.vue.js +1 -1
  209. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  210. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  211. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  212. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  213. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  214. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  215. package/lib/src/ap-form/interface.d.ts +13 -5
  216. package/lib/src/ap-form/item/index.vue.d.ts +5 -10
  217. package/lib/src/ap-form/item/index.vue.js +1 -1
  218. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  219. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  220. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  221. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  222. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  223. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  224. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  225. package/lib/src/ap-form/provider/index.vue.js +1 -1
  226. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  227. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  228. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  229. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  230. package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
  231. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  232. package/lib/src/ap-form/set/index.vue.js +1 -1
  233. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  234. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  235. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  236. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  237. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  238. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  239. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  240. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  241. package/lib/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  242. package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
  243. package/lib/src/ap-grid/index.vue.js +1 -1
  244. package/lib/src/ap-grid/interface.d.ts +32 -3
  245. package/lib/src/ap-grid/utils/table.js +1 -1
  246. package/lib/src/ap-list/index.vue.d.ts +2 -9
  247. package/lib/src/ap-list/index.vue.js +1 -1
  248. package/lib/src/ap-list/interface.d.ts +24 -3
  249. package/lib/src/ap-modal/interface.d.ts +2 -1
  250. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  251. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  252. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  253. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  254. package/lib/src/ap-table/constants.d.ts +22 -22
  255. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +25 -6
  256. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  257. package/lib/src/ap-table/interface.d.ts +17 -4
  258. package/lib/src/ap-table/utils.d.ts +21 -21
  259. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  260. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
  261. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  262. package/lib/src/business/ap-card/index.d.ts +2 -4
  263. package/lib/src/business/ap-card/interface.d.ts +5 -0
  264. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  265. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  266. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  267. package/lib/src/business/ap-copy/constans.js +1 -0
  268. package/lib/src/business/ap-copy/index.d.ts +102 -0
  269. package/lib/src/business/ap-copy/index.js +1 -0
  270. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  271. package/lib/src/business/ap-copy/interface.js +1 -0
  272. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  273. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  274. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  275. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  276. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  277. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  278. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  279. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  280. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  281. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  282. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  283. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  284. package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
  285. package/lib/src/business/ap-keep-alive/index.js +1 -0
  286. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  287. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  288. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  289. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  290. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  291. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  292. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  293. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  294. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  295. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  296. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  297. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  298. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  299. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  300. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  301. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  302. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  303. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  304. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  305. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  306. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  307. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  308. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  309. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  310. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  311. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  312. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  313. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  314. package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
  315. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  316. package/lib/src/business/ap-label/constans.js +1 -1
  317. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  318. package/lib/src/business/ap-label/interface.d.ts +2 -3
  319. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  320. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  321. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  322. package/lib/src/business/ap-product-info/constans.js +1 -1
  323. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  324. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  325. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  326. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  327. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  328. package/lib/src/business/ap-radio-group/index.d.ts +66 -0
  329. package/lib/src/business/ap-radio-group/index.js +1 -0
  330. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  331. package/lib/src/business/ap-radio-group/interface.js +1 -0
  332. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  333. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  334. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  335. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  336. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  337. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  338. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  339. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  340. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  341. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  342. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  343. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  344. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  345. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  346. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  347. package/lib/src/business/ap-view/index.d.ts +12 -3
  348. package/lib/src/business/ap-view/interface.d.ts +7 -0
  349. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  350. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  351. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  352. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  353. package/lib/src/business/index.d.ts +3 -0
  354. package/lib/src/business/index.js +1 -1
  355. package/lib/src/components.d.ts +1 -0
  356. package/lib/src/editable-table/form-item.vue.js +1 -1
  357. package/lib/src/full-screen/interface.d.ts +5 -6
  358. package/lib/src/index.js +1 -1
  359. package/lib/src/locale/lang/en.js +1 -1
  360. package/lib/src/locale/lang/zh-cn.js +1 -1
  361. package/lib/src/mask/index.vue.js +1 -1
  362. package/lib/src/path-map.js +1 -1
  363. package/lib/src/resize-observer/interface.d.ts +2 -3
  364. package/lib/src/scroll-bar/interface.d.ts +7 -7
  365. package/lib/src/scroll-view/interface.d.ts +2 -3
  366. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  367. package/lib/src/splitter/Splitter.vue2.js +1 -1
  368. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  369. package/lib/src/tests/mock-warning.d.ts +1 -0
  370. package/lib/src/tests/utils.d.ts +8 -0
  371. package/lib/src/text/group.vue.js +1 -1
  372. package/lib/src/text/index.vue.js +1 -1
  373. package/lib/src/version.d.ts +2 -0
  374. package/lib/src/version.js +1 -0
  375. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  376. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  377. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  378. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  379. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  380. package/lib/test/setup.d.ts +5 -0
  381. package/package.json +18 -14
  382. package/theme/antd-global-overwrite/admin/alert.css +5 -18
  383. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  384. package/theme/antd-global-overwrite/admin/button.css +13 -13
  385. package/theme/antd-global-overwrite/admin/button.less +24 -24
  386. package/theme/antd-global-overwrite/admin/drawer.css +3 -0
  387. package/theme/antd-global-overwrite/admin/drawer.less +5 -0
  388. package/theme/antd-global-overwrite/admin/field.css +42 -0
  389. package/theme/antd-global-overwrite/admin/field.less +43 -0
  390. package/theme/antd-global-overwrite/admin/index.css +93 -631
  391. package/theme/antd-global-overwrite/admin/index.less +1 -3
  392. package/theme/antd-global-overwrite/admin/message.css +2 -9
  393. package/theme/antd-global-overwrite/admin/message.less +2 -10
  394. package/theme/antd-global-overwrite/admin/modal.css +20 -34
  395. package/theme/antd-global-overwrite/admin/modal.less +20 -38
  396. package/theme/antd-global-overwrite/admin/table.css +11 -251
  397. package/theme/antd-global-overwrite/admin/table.less +4 -132
  398. package/theme/antd-global-overwrite/aplus/alert.css +8 -18
  399. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  400. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  401. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  402. package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
  403. package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
  404. package/theme/antd-global-overwrite/aplus/field.css +36 -0
  405. package/theme/antd-global-overwrite/aplus/field.less +36 -0
  406. package/theme/antd-global-overwrite/aplus/index.css +93 -679
  407. package/theme/antd-global-overwrite/aplus/index.less +0 -3
  408. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  409. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  410. package/theme/antd-global-overwrite/aplus/modal.css +18 -39
  411. package/theme/antd-global-overwrite/aplus/modal.less +19 -45
  412. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  413. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  414. package/theme/ap-action/item-dropdown.css +4 -4
  415. package/theme/ap-action/item.css +23 -12
  416. package/theme/ap-action/item.less +18 -6
  417. package/theme/ap-appendix/ap-appendix.css +13 -13
  418. package/theme/ap-appendix/ap-appendix.less +8 -8
  419. package/theme/ap-attachment/ap-attachment.css +6 -5
  420. package/theme/ap-attachment/ap-attachment.less +2 -2
  421. package/theme/ap-batch-action/ap-batch-action.css +7 -7
  422. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  423. package/theme/ap-button/ap-button.css +4 -4
  424. package/theme/ap-card/ap-card.css +5 -5
  425. package/theme/ap-card/ap-card.less +1 -1
  426. package/theme/ap-copy/ap-copy.css +96 -0
  427. package/theme/ap-copy/ap-copy.less +61 -0
  428. package/theme/ap-descriptions/ap-descriptions.css +10 -8
  429. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  430. package/theme/ap-download/ap-download.css +7 -7
  431. package/theme/ap-drawer/ap-drawer.css +66 -0
  432. package/theme/ap-drawer/ap-drawer.less +27 -0
  433. package/theme/ap-expand-alert/ap-expand-alert.css +5 -4
  434. package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
  435. package/theme/ap-field/checkbox.css +4 -4
  436. package/theme/ap-field/index.css +4 -4
  437. package/theme/ap-field/number.css +4 -4
  438. package/theme/ap-field/radio.css +4 -4
  439. package/theme/ap-field/text-area.css +4 -4
  440. package/theme/ap-form/ap-form-item-group.css +4 -4
  441. package/theme/ap-form/ap-form-item.css +12 -9
  442. package/theme/ap-form/ap-form-item.less +8 -5
  443. package/theme/ap-form/drawer-form.css +4 -4
  444. package/theme/ap-form/index.css +34 -22
  445. package/theme/ap-form/item-text-group.css +4 -4
  446. package/theme/ap-form/item-text.css +4 -4
  447. package/theme/ap-form/modal-form.css +4 -4
  448. package/theme/ap-form/search-form-sorter.css +17 -16
  449. package/theme/ap-form/search-form-sorter.less +5 -4
  450. package/theme/ap-form/search-form.css +34 -22
  451. package/theme/ap-form/search-form.less +9 -1
  452. package/theme/ap-grid/editable.css +4 -4
  453. package/theme/ap-grid/index.css +83 -44
  454. package/theme/ap-grid/index.less +26 -9
  455. package/theme/ap-group-search/ap-extension-select.css +4 -4
  456. package/theme/ap-group-search/ap-group-search.css +4 -4
  457. package/theme/ap-group-search/ap-popover-select.css +4 -4
  458. package/theme/ap-image/ap-image.css +4 -4
  459. package/theme/ap-input-radio/ap-input-radio.css +4 -4
  460. package/theme/ap-label/ap-label.css +4 -4
  461. package/theme/ap-ladder/ap-ladder.css +7 -6
  462. package/theme/ap-ladder/ap-ladder.less +1 -0
  463. package/theme/ap-layout/ap-info-layout.css +4 -4
  464. package/theme/ap-list/index.css +4 -4
  465. package/theme/ap-product-info/ap-product-info.css +24 -34
  466. package/theme/ap-product-info/ap-product-info.less +28 -42
  467. package/theme/ap-radio-group/ap-radio-group.css +66 -0
  468. package/theme/ap-radio-group/ap-radio-group.less +26 -0
  469. package/theme/ap-select-layout/ap-select-layout.css +6 -6
  470. package/theme/ap-size-input/ap-size-input.css +4 -4
  471. package/theme/ap-status/ap-status.css +5 -5
  472. package/theme/ap-status/ap-status.less +1 -1
  473. package/theme/ap-summary/index.css +4 -4
  474. package/theme/ap-table/ap-table-index.css +4 -4
  475. package/theme/ap-table/ap-table-paragraph-ellipsis.css +5 -5
  476. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  477. package/theme/ap-table/ap-table.css +90 -52
  478. package/theme/ap-table/ap-table.less +19 -7
  479. package/theme/ap-table/setting/index.css +19 -15
  480. package/theme/ap-table/setting/modal.css +11 -7
  481. package/theme/ap-table/setting/modal.less +5 -1
  482. package/theme/ap-table/setting/select-group.css +4 -4
  483. package/theme/ap-table/setting/sortable-item-meta.css +6 -6
  484. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  485. package/theme/ap-table/setting/sortable-item.css +4 -4
  486. package/theme/ap-table/setting/sorter.css +10 -10
  487. package/theme/ap-table/setting/sorter.less +4 -4
  488. package/theme/ap-table-modal/index.css +105 -65
  489. package/theme/ap-table-modal/index.less +15 -13
  490. package/theme/ap-tag/ap-tag-group.css +6 -6
  491. package/theme/ap-tag/ap-tag-group.less +2 -3
  492. package/theme/ap-tag/ap-tag.css +10 -10
  493. package/theme/ap-tag/ap-tag.less +4 -4
  494. package/theme/ap-title/ap-title.css +9 -7
  495. package/theme/ap-title/ap-title.less +5 -3
  496. package/theme/ap-upload/index.css +9 -9
  497. package/theme/ap-upload/multiple-file.css +5 -5
  498. package/theme/ap-upload/multiple-file.less +1 -1
  499. package/theme/ap-upload/picture.css +6 -6
  500. package/theme/ap-upload/picture.less +2 -2
  501. package/theme/ap-upload/single-file.css +6 -6
  502. package/theme/ap-upload/single-file.less +2 -2
  503. package/theme/ap-upload/upload.css +4 -4
  504. package/theme/ap-upload-single/index.css +8 -8
  505. package/theme/ap-upload-single/index.less +4 -4
  506. package/theme/ap-view/ap-view.css +11 -11
  507. package/theme/ap-view/ap-view.less +7 -7
  508. package/theme/batch-input-group/index.css +7 -6
  509. package/theme/batch-input-group/popover-input.css +7 -6
  510. package/theme/batch-input-group/popover-input.less +3 -2
  511. package/theme/check-card/index.css +15 -15
  512. package/theme/check-card/index.less +5 -5
  513. package/theme/editable-table/index.css +53 -30
  514. package/theme/full-screen/index.css +4 -4
  515. package/theme/index.css +382 -270
  516. package/theme/index.less +3 -0
  517. package/theme/mask/index.css +4 -4
  518. package/theme/mixins/config.less +4 -4
  519. package/theme/mixins/mixins.css +4 -4
  520. package/theme/mixins/mixins.less +2 -2
  521. package/theme/scroll-bar/index.css +4 -4
  522. package/theme/scroll-view/index.css +4 -4
  523. package/theme/splitter/index.css +10 -10
  524. package/theme/splitter/index.less +1 -1
  525. package/theme/text/group.css +4 -4
  526. package/theme/text/index.css +10 -10
  527. package/theme/text/index.less +4 -4
  528. package/theme/ui-mode.css +51 -83
  529. package/theme/ui-mode.less +99 -83
  530. package/theme/work-order-modal/index.css +4 -4
@@ -1,6 +1,6 @@
1
1
  import { ApFieldPassword } from '../ap-field';
2
2
  import { ApTableValueFields } from './interface';
3
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentInternalInstance, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CSSProperties, ComputedRef, VNode, RendererNode, RendererElement, DefineComponent } from 'vue';
3
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentInternalInstance, ExtractPropTypes, PropType, Slot, ComponentPublicInstance, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, CSSProperties, VNode, RendererNode, RendererElement, DefineComponent } from 'vue';
4
4
  import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextProps, ApFormItemTextAreaProps, ApFormItemCheckboxProps, ApFormItemTextPasswordProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
5
5
  import { ApFieldDateProps, ApFormItemSlots, ApFieldDateRangeProps, ApFieldNumberProps, FieldMode, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextProps, ApFormItemTextPassword, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, ApFieldTreeSelectProps, ApActionGroupProps, GroupActionTypes } from '..';
6
6
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
@@ -847,13 +847,13 @@ export declare const apTableFormItemMap: {
847
847
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
848
848
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
849
849
  $slots: Readonly<{
850
- label: any;
851
- help: any;
852
- extra: any;
850
+ label?: any;
851
+ help?: any;
852
+ extra?: any;
853
853
  }> & {
854
- label: any;
855
- help: any;
856
- extra: any;
854
+ label?: any;
855
+ help?: any;
856
+ extra?: any;
857
857
  };
858
858
  });
859
859
  select: {
@@ -1827,7 +1827,7 @@ export declare const apTableFormItemMap: {
1827
1827
  }>, {
1828
1828
  focus: (options?: InputFocusOptions) => void;
1829
1829
  blur: () => void;
1830
- resizableTextArea: ComputedRef<any>;
1830
+ resizableTextArea: any;
1831
1831
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1832
1832
  "update:value": (...args: any[]) => void;
1833
1833
  }, PublicProps, {
@@ -2109,7 +2109,7 @@ export declare const apTableFormItemMap: {
2109
2109
  }>, {
2110
2110
  focus: (options?: InputFocusOptions) => void;
2111
2111
  blur: () => void;
2112
- resizableTextArea: ComputedRef<any>;
2112
+ resizableTextArea: any;
2113
2113
  }, {}, {}, {}, {
2114
2114
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
2115
2115
  mode: FieldMode;
@@ -2156,13 +2156,13 @@ export declare const apTableFormItemMap: {
2156
2156
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
2157
2157
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2158
2158
  $slots: Readonly<{
2159
- label: any;
2160
- help: any;
2161
- extra: any;
2159
+ label?: any;
2160
+ help?: any;
2161
+ extra?: any;
2162
2162
  }> & {
2163
- label: any;
2164
- help: any;
2165
- extra: any;
2163
+ label?: any;
2164
+ help?: any;
2165
+ extra?: any;
2166
2166
  };
2167
2167
  });
2168
2168
  checkbox: {
@@ -2203,13 +2203,13 @@ export declare const apTableFormItemMap: {
2203
2203
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2204
2204
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2205
2205
  $slots: Readonly<{
2206
- label: any;
2207
- help: any;
2208
- extra: any;
2206
+ label?: any;
2207
+ help?: any;
2208
+ extra?: any;
2209
2209
  }> & {
2210
- label: any;
2211
- help: any;
2212
- extra: any;
2210
+ label?: any;
2211
+ help?: any;
2212
+ extra?: any;
2213
2213
  };
2214
2214
  });
2215
2215
  password: {
@@ -4708,7 +4708,7 @@ export declare const apTableRenderItemMap: {
4708
4708
  textArea: DefineComponent<ApFieldTextAreaProps, {
4709
4709
  focus: (options?: InputFocusOptions) => void;
4710
4710
  blur: () => void;
4711
- resizableTextArea: ComputedRef<any>;
4711
+ resizableTextArea: any;
4712
4712
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
4713
4713
  "update:value": (...args: any[]) => void;
4714
4714
  }, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{
@@ -15,10 +15,10 @@ export type UseTablePagingParams<DataType, ParamsType> = {
15
15
  */
16
16
  manual?: boolean;
17
17
  /**
18
- * 额外的默认请求参数
18
+ * 额外的请求参数
19
19
  * @description 如果传入响应式数据,将会在数据改变后重新请求
20
20
  */
21
- defaultParams?: ParamsType | Ref<ParamsType>;
21
+ params?: ParamsType | Ref<ParamsType>;
22
22
  /**
23
23
  * 默认的数据源(只生效一次)
24
24
  */
@@ -53,24 +53,38 @@ export type UseTablePagingParams<DataType, ParamsType> = {
53
53
  * 样式命名空间
54
54
  */
55
55
  namespace?: 'ap-table' | 'ap-grid';
56
+ /**
57
+ * 当点击重置时的回调
58
+ * @returns
59
+ */
60
+ onClickReset?: () => void;
61
+ /**
62
+ * 当请求结束后触发的事件
63
+ * @returns
64
+ */
65
+ onAfterRequest?: () => void;
56
66
  };
67
+ export type InternalPagingType = Partial<{
68
+ current: number;
69
+ pageSize: number;
70
+ }>;
57
71
  type InternalDataType<DataType = Recordable> = {
58
72
  total: number;
59
73
  records: DataType[];
60
74
  loading: boolean;
61
75
  };
62
76
  export declare const DEFAULT_CURRENT = 1;
63
- export declare const DEFAULT_PAGE_SIZE = 10;
64
- export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, namespace, pagination }: UseTablePagingParams<DataType, ParamsType>) => {
77
+ export declare const DEFAULT_PAGE_SIZE = 20;
78
+ export type OptionalOnTableChange<T extends (...args: any[]) => any> = (...args: Partial<Parameters<T>>) => ReturnType<T>;
79
+ export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, request, params, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, namespace, pagination, onClickReset, onAfterRequest }: UseTablePagingParams<DataType, ParamsType>) => {
65
80
  formRef: Ref<ApFormSearchFormExpose | undefined, ApFormSearchFormExpose | undefined>;
66
81
  submit: () => void;
67
82
  reset: () => void;
68
83
  refresh: () => void;
69
84
  refreshByDelete: (n: number) => void;
70
85
  data: InternalDataType<DataType>;
71
- current: number | undefined;
72
- pageSize: number | undefined;
73
86
  handleTableChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
87
+ handleTableChangeOptional: OptionalOnTableChange<(pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void>;
74
88
  tableProps: ComputedRef<{
75
89
  loading: boolean;
76
90
  pagination: {
@@ -92,5 +106,10 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
92
106
  getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
93
107
  sortedInfo: Ref<any, any>;
94
108
  filteredInfo: Ref<any, any>;
109
+ getPaging: () => {
110
+ current?: number | undefined;
111
+ pageSize?: number | undefined;
112
+ };
113
+ setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
95
114
  };
96
115
  export {};
@@ -1,131 +1,135 @@
1
- import { ref as ae, reactive as j, unref as m, nextTick as se, onMounted as ie, watch as ce, computed as A, createVNode as x } from "vue";
2
- import { useTableSortedAndFiltered as ue } from "./use-sorted-filtered.mjs";
1
+ import { ref as le, reactive as M, unref as m, nextTick as fe, onMounted as ge, watch as de, computed as y, createVNode as C } from "vue";
2
+ import { useTableSortedAndFiltered as pe } from "./use-sorted-filtered.mjs";
3
3
  import "../../config-provider/index.mjs";
4
- import { parseFieldValue as le, dataIndexToStr as fe, isEqualCustom as ge } from "../utils.mjs";
5
- import { isArray as q, isEqualWith as de, isUndefined as pe } from "lodash-unified";
6
- import { isDef as N } from "../../utils/index.mjs";
7
- import { useLocale as me } from "../../config-provider/hooks/use-locale.mjs";
8
- import { useNamespace as he } from "../../config-provider/hooks/use-namespace.mjs";
9
- const h = 1, D = 10, B = {
10
- defaultCurrent: h,
11
- defaultPageSize: D,
4
+ import { parseFieldValue as me, dataIndexToStr as Se, isEqualCustom as he } from "../utils.mjs";
5
+ import { isArray as Q, isEqualWith as ze, isUndefined as Pe } from "lodash-unified";
6
+ import { isDef as $ } from "../../utils/index.mjs";
7
+ import { useLocale as Te } from "../../config-provider/hooks/use-locale.mjs";
8
+ import { useNamespace as we } from "../../config-provider/hooks/use-namespace.mjs";
9
+ const S = 1, I = 20, G = {
10
+ defaultCurrent: S,
11
+ defaultPageSize: I,
12
12
  showLessItems: !1,
13
13
  showTotal: !0
14
14
  };
15
- function Se(s) {
16
- return s === !1 ? {} : s == null || s === !0 ? B : {
17
- ...B,
18
- ...s
15
+ function Fe(c) {
16
+ return c === !1 ? {} : c == null || c === !0 ? G : {
17
+ ...G,
18
+ ...c
19
19
  };
20
20
  }
21
- function ze(s) {
21
+ function be(c) {
22
22
  const f = {};
23
- return s === !1 || (s === !0 || s == null ? (f.current = h, f.pageSize = D) : (f.current = s.defaultCurrent || h, f.pageSize = s.defaultPageSize || D)), f;
23
+ return c === !1 || (c === !0 || c == null ? (f.current = S, f.pageSize = I) : (f.current = c.defaultCurrent || S, f.pageSize = c.defaultPageSize || I)), f;
24
24
  }
25
- const Ae = ({
26
- manual: s = !1,
25
+ const Ie = ({
26
+ manual: c = !1,
27
27
  request: f,
28
- defaultParams: L = {},
29
- defaultData: v = [],
30
- formatParams: O,
31
- paramsValueTypeMap: R,
32
- resetFieldsIgnores: y,
33
- filterFields: J,
34
- sortFields: K,
35
- namespace: M = "ap-table",
36
- pagination: S
28
+ params: V = {},
29
+ defaultData: j = [],
30
+ formatParams: U,
31
+ paramsValueTypeMap: _,
32
+ resetFieldsIgnores: A,
33
+ filterFields: W,
34
+ sortFields: Z,
35
+ namespace: H = "ap-table",
36
+ pagination: h,
37
+ onClickReset: x,
38
+ onAfterRequest: E
37
39
  }) => {
38
- let b = 0, i = {};
39
- const Q = Se(S), $ = (e) => O ? O(e) : e, z = ae(), c = j(ze(S)), {
40
- getColumnSFConfig: G,
41
- setSF: W,
42
- clearAll: Z,
43
- sortedInfo: H,
44
- filteredInfo: X
45
- } = ue(), {
46
- t: T
47
- } = me(), {
48
- b: P
49
- } = he(M), o = j({
50
- total: v.length,
51
- records: v,
40
+ let v = 0, s = {};
41
+ const X = Fe(h), Y = (e) => U ? U(e) : e, z = le(), i = M(be(h)), {
42
+ getColumnSFConfig: q,
43
+ setSF: R,
44
+ clearAll: k,
45
+ sortedInfo: N,
46
+ filteredInfo: B
47
+ } = pe(), {
48
+ t: P
49
+ } = Te(), {
50
+ b: T
51
+ } = we(H), o = M({
52
+ total: j.length,
53
+ records: j,
52
54
  loading: !1
53
55
  }), w = () => {
54
56
  var e, t;
55
57
  return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
56
- }, I = async (e) => {
58
+ }, J = async (e) => {
57
59
  var r;
58
- const t = $(e), n = Date.now();
59
- b = n, o.loading = !0;
60
+ const t = Y(e), n = Date.now();
61
+ v = n, o.loading = !0;
60
62
  try {
61
63
  const a = await f({
62
- ...m(L),
64
+ ...m(V),
63
65
  ...t
64
66
  });
65
- b === n && (o.total = a.total || ((r = a.data) == null ? void 0 : r.length) || 0, o.records = [...a.data || []], o.loading = !1);
67
+ v === n && (o.total = a.total || ((r = a.data) == null ? void 0 : r.length) || 0, o.records = [...a.data || []], o.loading = !1);
66
68
  } catch {
67
- b === n && (o.records = [], o.total = 0, o.loading = !1);
69
+ v === n && (o.records = [], o.total = 0, o.loading = !1);
70
+ } finally {
71
+ E == null || E();
68
72
  }
69
- }, V = (e) => {
73
+ }, K = (e) => {
70
74
  const t = {};
71
75
  return Object.entries(e).forEach(([n, r]) => {
72
- if (t[n] = r, R && r) {
73
- const a = R[n];
74
- a && (t[n] = le(a, r));
76
+ if (t[n] = r, _ && r) {
77
+ const a = _[n];
78
+ a && (t[n] = me(a, r));
75
79
  }
76
80
  }), t;
77
- }, Y = async (e) => {
81
+ }, ee = async (e) => {
78
82
  var r, a, l, g, d;
79
83
  const t = w(), n = {};
80
- Object.entries(t).forEach(([p, F]) => {
81
- y && y.indexOf(p) > -1 && (n[p] = F);
82
- }), await ((a = (r = z.value) == null ? void 0 : r.apForm) == null ? void 0 : a.resetFields()), (d = (g = (l = z.value) == null ? void 0 : l.apForm) == null ? void 0 : g.setFieldsValue) == null || d.call(g, n), se(() => {
84
+ Object.entries(t).forEach(([p, b]) => {
85
+ A && A.indexOf(p) > -1 && (n[p] = b);
86
+ }), await ((a = (r = z.value) == null ? void 0 : r.apForm) == null ? void 0 : a.resetFields()), (d = (g = (l = z.value) == null ? void 0 : l.apForm) == null ? void 0 : g.setFieldsValue) == null || d.call(g, n), fe(() => {
83
87
  e == null || e();
84
88
  });
85
- }, C = (e) => {
86
- i = e;
87
- const t = V(e);
88
- I(t);
89
- }, k = (e) => {
90
- C({
91
- ...i,
89
+ }, F = (e) => {
90
+ s = e;
91
+ const t = K(e);
92
+ J(t);
93
+ }, te = (e) => {
94
+ F({
95
+ ...s,
92
96
  ...e
93
97
  });
94
- }, E = () => {
95
- const e = w(), t = S !== !1;
96
- t && (c.current = h), C({
98
+ }, D = () => {
99
+ const e = w(), t = h !== !1;
100
+ t && (i.current = S), F({
97
101
  ...e,
98
- filter: i.filter,
99
- sort: i.sort,
100
- current: t ? h : void 0,
101
- pageSize: t ? i.pageSize || c.pageSize : void 0
102
+ filter: s.filter,
103
+ sort: s.sort,
104
+ current: t ? S : void 0,
105
+ pageSize: t ? s.pageSize || i.pageSize : void 0
102
106
  });
103
- }, ee = () => {
104
- Z(), i.sort = {}, i.filter = {}, Y(E);
105
- }, U = () => {
106
- C(i);
107
- }, te = (e) => {
108
- if (S === !1)
109
- U();
107
+ }, ne = () => {
108
+ k(), s.sort = {}, s.filter = {}, x == null || x(), ee(D);
109
+ }, O = () => {
110
+ F(s);
111
+ }, re = (e) => {
112
+ if (h === !1)
113
+ O();
110
114
  else {
111
115
  const {
112
116
  current: t,
113
117
  pageSize: n
114
- } = c, r = o.total - e, a = Math.ceil(r / n), l = t > a ? a : t;
115
- k({
118
+ } = i, r = o.total - e, a = Math.ceil(r / n), l = t > a ? a : t;
119
+ te({
116
120
  current: l > 0 ? l : 1
117
121
  });
118
122
  }
119
- }, _ = (e, t, n) => {
120
- var p, F;
123
+ }, L = (e, t, n) => {
124
+ var p, b;
121
125
  const r = w();
122
- c.current = e.current, c.pageSize = e.pageSize, W(t, n);
123
- const a = q(n) ? [...n] : [n], l = {};
126
+ i.current = e.current, i.pageSize = e.pageSize, R(t, n);
127
+ const a = Q(n) ? [...n] : [n], l = {};
124
128
  for (const u of a)
125
- (p = m(K)) != null && p.includes(u.columnKey || u.field) && u.order && (l[fe(u.columnKey || u.field)] = u.order);
129
+ (p = m(Z)) != null && p.includes(u.columnKey || u.field) && u.order && (l[Se(u.columnKey || u.field)] = u.order);
126
130
  const g = {};
127
131
  for (const u of Object.keys(t))
128
- (F = m(J)) != null && F.includes(u) && t[u] && (g[u] = t[u]);
132
+ (b = m(W)) != null && b.includes(u) && t[u] && (g[u] = t[u]);
129
133
  const d = {
130
134
  ...r,
131
135
  filter: g,
@@ -133,93 +137,117 @@ const Ae = ({
133
137
  current: e.current,
134
138
  pageSize: e.pageSize
135
139
  };
136
- de(i, d, ge) || C(d);
140
+ ze(s, d, he) || F(d);
141
+ }, ae = (e, t = B.value || {}, n = N.value || {}) => {
142
+ const r = (e == null ? void 0 : e.current) ?? i.current, a = (e == null ? void 0 : e.pageSize) ?? i.pageSize;
143
+ L(
144
+ {
145
+ current: r,
146
+ pageSize: a
147
+ },
148
+ t,
149
+ n,
150
+ // 此参数随意传递,并无使用
151
+ {
152
+ action: "sort",
153
+ currentDataSource: []
154
+ }
155
+ );
137
156
  };
138
- ie(() => {
157
+ ge(() => {
139
158
  const e = w(), {
140
159
  current: t,
141
160
  pageSize: n
142
- } = c;
143
- if (i = {
161
+ } = i;
162
+ if (s = {
144
163
  current: t,
145
164
  pageSize: n,
146
165
  filter: {},
147
166
  sort: {},
148
167
  ...e
149
- }, !s) {
150
- const r = V(i);
151
- I(r);
168
+ }, !c) {
169
+ const r = K(s);
170
+ J(r);
152
171
  }
153
- }), ce(() => m(L), () => {
154
- E();
172
+ }), de(() => m(V), () => {
173
+ D();
155
174
  }, {
156
175
  deep: !0
157
176
  });
158
- const ne = A(() => {
177
+ const oe = y(() => {
159
178
  if (o.total === 0)
160
179
  return "-";
161
180
  const {
162
181
  current: e,
163
182
  pageSize: t
164
- } = c;
183
+ } = i;
165
184
  return `${e}/${Math.ceil(o.total / t)}`;
166
185
  });
167
- function re(e) {
168
- q(e) && (o.records = e, o.total = e.length);
186
+ function se(e) {
187
+ Q(e) && (o.records = e, o.total = e.length);
169
188
  }
170
- const oe = A(() => {
189
+ const ie = y(() => {
171
190
  const {
172
191
  showLessItems: e,
173
192
  showTotal: t,
174
193
  showQuickJumper: n,
175
194
  showSizeChanger: r,
176
195
  pageSizeOptions: a
177
- } = Q;
196
+ } = X;
178
197
  return {
179
198
  loading: o.loading,
180
199
  pagination: {
181
- current: c.current,
182
- pageSize: c.pageSize,
200
+ current: i.current,
201
+ pageSize: i.pageSize,
183
202
  total: o.total,
184
- showSizeChanger: N(r) ? r : !e,
185
- showQuickJumper: N(n) ? n : !e,
203
+ showSizeChanger: $(r) ? r : !e,
204
+ showQuickJumper: $(n) ? n : !e,
186
205
  showLessItems: e,
187
206
  size: "default",
188
- pageSizeOptions: pe(a) ? ["10", "20", "50", "100"] : a,
189
- showTotal: t ? (l) => x("span", {
190
- class: P("pagination-total-wrapper")
191
- }, [T("ap.apTable.pagination.totalLeftPrefix"), " ", x("span", {
192
- class: P("pagination-count-text")
193
- }, [l]), " ", T("ap.apTable.pagination.totalLeftSuffix"), x("span", {
194
- class: P("pagination--total-right")
195
- }, [T("ap.apTable.pagination.totalRightPrefix"), " ", x("span", {
196
- class: P("pagination-count-text")
197
- }, [m(ne)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
207
+ pageSizeOptions: Pe(a) ? ["10", "20", "50", "100"] : a,
208
+ showTotal: t ? (l) => C("span", {
209
+ class: T("pagination-total-wrapper")
210
+ }, [P("ap.apTable.pagination.totalLeftPrefix"), " ", C("span", {
211
+ class: T("pagination-count-text")
212
+ }, [l]), " ", P("ap.apTable.pagination.totalLeftSuffix"), C("span", {
213
+ class: T("pagination--total-right")
214
+ }, [P("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
215
+ class: T("pagination-count-text")
216
+ }, [m(oe)]), " ", P("ap.apTable.pagination.totalRightSuffix")])]) : void 0
198
217
  },
199
- onChange: _,
218
+ onChange: L,
200
219
  dataSource: o.records
201
220
  };
202
221
  });
222
+ function ce(e, t = !0) {
223
+ Object.assign(i, e), s.current = e.current, s.pageSize = e.pageSize, t && O();
224
+ }
225
+ function ue() {
226
+ return {
227
+ ...i
228
+ };
229
+ }
203
230
  return {
204
231
  formRef: z,
205
- submit: E,
206
- reset: ee,
207
- refresh: U,
208
- refreshByDelete: te,
232
+ submit: D,
233
+ reset: ne,
234
+ refresh: O,
235
+ refreshByDelete: re,
209
236
  data: o,
210
- current: c.current,
211
- pageSize: c.pageSize,
212
- handleTableChange: _,
213
- tableProps: oe,
214
- dataSource: A(() => o.records),
215
- setDataSource: re,
216
- getColumnSFConfig: G,
217
- sortedInfo: H,
218
- filteredInfo: X
237
+ handleTableChange: L,
238
+ handleTableChangeOptional: ae,
239
+ tableProps: ie,
240
+ dataSource: y(() => o.records),
241
+ setDataSource: se,
242
+ getColumnSFConfig: q,
243
+ sortedInfo: N,
244
+ filteredInfo: B,
245
+ getPaging: ue,
246
+ setPaging: ce
219
247
  };
220
248
  };
221
249
  export {
222
- h as DEFAULT_CURRENT,
223
- D as DEFAULT_PAGE_SIZE,
224
- Ae as useTablePaging
250
+ S as DEFAULT_CURRENT,
251
+ I as DEFAULT_PAGE_SIZE,
252
+ Ie as useTablePaging
225
253
  };
@@ -3,12 +3,13 @@ import { CompareFn, SortOrder, TableRowSelection } from '@aplus-frontend/antdv/e
3
3
  import { ApFormItemProps, ApFormSearchFormProps } from '../ap-form';
4
4
  import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
5
5
  import { Recordable } from '../type';
6
- import { ComputedRef, CSSProperties, Ref, VNode } from 'vue';
6
+ import { ComputedRef, CSSProperties, VNode } from 'vue';
7
7
  import { ApActionGroupProps } from '../ap-action';
8
8
  import { ApTableIndexProps } from './components/interface';
9
9
  import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
10
10
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
11
11
  import { PaginationProps } from '@aplus-frontend/antdv';
12
+ import { InternalPagingType } from './hooks/use-table-paging-ng';
12
13
  export type ValueEnumType = {
13
14
  text: string;
14
15
  /**
@@ -259,9 +260,9 @@ export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<R
259
260
  card?: boolean;
260
261
  /**
261
262
  * request额外请求的参数
262
- * 如果传入响应式数据,将会在变更后重新执行
263
+ * 数据变化后将会重新执行网络请求
263
264
  */
264
- params?: ParamsType | Ref<ParamsType>;
265
+ params?: ParamsType;
265
266
  /**
266
267
  * 自定义渲染搜索表单
267
268
  * @deprecated 未实现 暂不可用
@@ -371,7 +372,7 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
371
372
  /**
372
373
  * 表格数据源
373
374
  */
374
- dataSource: ComputedRef<RecordType>;
375
+ dataSource: RecordType;
375
376
  /**
376
377
  * 行选中相关的数据和API
377
378
  */
@@ -393,6 +394,18 @@ export type ApTableExpose<SearchParamsType = Recordable, RecordType = any> = {
393
394
  };
394
395
  y: undefined;
395
396
  };
397
+ /**
398
+ * 获取分页参数
399
+ * @returns
400
+ */
401
+ getPaging: () => InternalPagingType;
402
+ /**
403
+ * 设置表格分页参数
404
+ * @param nextPaging 新的分页参数
405
+ * @param refreshImmediately 是否立刻刷新数据,默认为`true`
406
+ * @returns
407
+ */
408
+ setPaging: (nextPaging: InternalPagingType, refreshImmediately?: boolean) => void;
396
409
  };
397
410
  export type ApTableContextRenderConfig = {
398
411
  color: string;