@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,7 +1,7 @@
1
1
  import { ApColumnType, ApTableProps } from './interface';
2
2
  import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, Ref, VNode } from 'vue';
4
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
5
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
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
@@ -10,6 +10,14 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
10
10
  refresh: () => void;
11
11
  setSearchFormValues: (fields: any) => void;
12
12
  getSearchFormValues: (transform?: boolean) => Partial<any> | undefined;
13
+ setPaging: (nextPaging: Partial<{
14
+ current: number;
15
+ pageSize: number;
16
+ }>, refreshImmediately?: boolean) => void;
17
+ getPaging: () => {
18
+ current?: number | undefined;
19
+ pageSize?: number | undefined;
20
+ };
13
21
  getShownColumns: () => ColumnsType<RecordType>;
14
22
  dataSource: ComputedRef<RecordType[]>;
15
23
  rowSelection: {
@@ -26,7 +34,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
26
34
  };
27
35
  scrollBar: {
28
36
  x: {
29
- getCurrentScroll: () => 0 | Ref<number, number>;
37
+ getCurrentScroll: () => number;
30
38
  scroll: (percent: number) => void | undefined;
31
39
  };
32
40
  y: undefined;
@@ -1,27 +1,27 @@
1
- import { defineComponent as Le, useSlots as Oe, ref as w, computed as s, unref as l, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as b, normalizeStyle as K, normalizeClass as y, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as Ae, renderSlot as C, normalizeProps as $e, guardReactiveProps as De } from "vue";
2
- import { Divider as je, Table as We } from "@aplus-frontend/antdv";
3
- import { useToken as _e } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { ApForm as He } from "../ap-form/index.mjs";
1
+ import { defineComponent as Ae, useSlots as $e, ref as w, computed as s, unref as l, toRef as De, createVNode as m, Fragment as re, watch as k, createElementBlock as B, openBlock as y, normalizeStyle as K, normalizeClass as g, createCommentVNode as oe, createElementVNode as L, mergeProps as v, createSlots as ae, withCtx as R, renderList as te, createBlock as le, resolveDynamicComponent as je, renderSlot as C, normalizeProps as We, guardReactiveProps as _e } from "vue";
2
+ import { Divider as He, Table as Ue } from "@aplus-frontend/antdv";
3
+ import { useToken as qe } from "@aplus-frontend/antdv/es/theme/internal";
4
+ import { ApForm as Me } from "../ap-form/index.mjs";
5
5
  import { noRenderAsFormItemValueList as ne } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as Ue } from "./hooks/use-table-paging-ng.mjs";
8
- import { isUndefined as g, omit as se, isBoolean as qe } from "lodash-unified";
9
- import { getColumnOrder as de, updateFormProps as Me, getFieldProps as Ge, getSearchFormItemRenderNode as Je, recursionApColumns as ue, getTableTitle as Qe, getTableRenderType as Xe, getTableRenderProps as Ye, getTableCellRenderNode as Ze, apColumnToColumn as er, falseToUndefined as rr, objectToString as or } from "./utils.mjs";
10
- import ar from "./hooks/use-table-content-height.mjs";
11
- import tr from "./hooks/use-table-row-selection.mjs";
12
- import { getScrollbarSize as lr, isDef as ie } from "../utils/index.mjs";
7
+ import { useTablePaging as Ge } from "./hooks/use-table-paging-ng.mjs";
8
+ import { isUndefined as b, omit as se, isBoolean as Je } from "lodash-unified";
9
+ import { getColumnOrder as de, updateFormProps as Qe, getFieldProps as Xe, getSearchFormItemRenderNode as Ye, recursionApColumns as ue, getTableTitle as Ze, getTableRenderType as er, getTableRenderProps as rr, getTableCellRenderNode as or, apColumnToColumn as ar, falseToUndefined as tr, objectToString as lr } from "./utils.mjs";
10
+ import nr from "./hooks/use-table-content-height.mjs";
11
+ import sr from "./hooks/use-table-row-selection.mjs";
12
+ import { getScrollbarSize as dr, isDef as ie } from "../utils/index.mjs";
13
13
  import "./components/setting/modal/index.vue.mjs";
14
14
  import "./components/paragraph-ellipsis/index.vue.mjs";
15
- import { useProvideApTable as nr } from "./context.mjs";
15
+ import { useProvideApTable as ur } from "./context.mjs";
16
16
  import "../scroll-bar/index.mjs";
17
- import { useStickyScroll as sr } from "./hooks/use-sticky-scroll.mjs";
18
- import { getValidVNodeList as dr } from "../utils/slot.mjs";
19
- import { useNamespace as ur } from "../config-provider/hooks/use-namespace.mjs";
20
- import { useGlobalConfig as ir } from "../config-provider/hooks/use-global-config.mjs";
21
- import cr from "./components/paragraph-ellipsis/index.vue2.mjs";
22
- import fr from "./components/setting/modal/index.vue2.mjs";
23
- import pr from "../scroll-bar/index.vue.mjs";
24
- const Or = /* @__PURE__ */ Le({
17
+ import { useStickyScroll as ir } from "./hooks/use-sticky-scroll.mjs";
18
+ import { getValidVNodeList as cr } from "../utils/slot.mjs";
19
+ import { useNamespace as fr } from "../config-provider/hooks/use-namespace.mjs";
20
+ import { useGlobalConfig as pr } from "../config-provider/hooks/use-global-config.mjs";
21
+ import mr from "./components/paragraph-ellipsis/index.vue2.mjs";
22
+ import yr from "./components/setting/modal/index.vue2.mjs";
23
+ import gr from "../scroll-bar/index.vue.mjs";
24
+ const Dr = /* @__PURE__ */ Ae({
25
25
  name: "ApTable",
26
26
  __name: "ap-table",
27
27
  props: {
@@ -150,20 +150,20 @@ const Or = /* @__PURE__ */ Le({
150
150
  }) {
151
151
  const r = ce;
152
152
  let O = 0;
153
- const c = Oe(), [, pe] = _e(), {
153
+ const c = $e(), [, pe] = qe(), {
154
154
  e: z,
155
155
  b: f,
156
156
  be: A,
157
157
  m: me,
158
- cssVar: be
159
- } = ur("ap-table"), $ = ir("valueTypeMap"), {
160
- height: ye,
161
- contentRef: ge
162
- } = ar(), D = w(), j = w(), {
158
+ cssVar: ye
159
+ } = fr("ap-table"), $ = pr("valueTypeMap"), {
160
+ height: ge,
161
+ contentRef: be
162
+ } = nr(), D = w(), j = w(), {
163
163
  isStickyMode: W,
164
164
  scrollBarRef: i
165
- } = sr(D), N = w(r.size), u = w([]), _ = w([]), H = lr();
166
- nr({
165
+ } = ir(D), N = w(r.size), u = w([]), _ = w([]), H = dr();
166
+ ur({
167
167
  columns: s(() => u.value),
168
168
  columnsBackup: s(() => _.value),
169
169
  size: s(() => N.value),
@@ -185,7 +185,7 @@ const Or = /* @__PURE__ */ Le({
185
185
  let n = de(t.order);
186
186
  return de(d.order) - n;
187
187
  })) == null ? void 0 : o.map((t) => {
188
- const d = Me(t, Ge(t.fieldProps, {})), n = {
188
+ const d = Qe(t, Xe(t.fieldProps, {})), n = {
189
189
  ...t,
190
190
  fieldProps: {
191
191
  label: t.title,
@@ -197,7 +197,7 @@ const Or = /* @__PURE__ */ Le({
197
197
  },
198
198
  renderNode: void 0
199
199
  };
200
- return n.renderNode = Je(n, l($)), n;
200
+ return n.renderNode = Ye(n, l($)), n;
201
201
  })) || [];
202
202
  }), Se = s(() => ue(l(u), (e) => {
203
203
  if (e.sorter === !0)
@@ -205,9 +205,9 @@ const Or = /* @__PURE__ */ Le({
205
205
  }).filter(Boolean)), he = s(() => ue(l(u), (e) => {
206
206
  if (e.filters && !e.onFilter)
207
207
  return e.key || (e == null ? void 0 : e.dataIndex);
208
- }).filter(Boolean)), we = s(() => g(r.dataSource) ? S.records : r.dataSource), ve = s(() => {
208
+ }).filter(Boolean)), we = s(() => b(r.dataSource) ? S.records : r.dataSource), ve = s(() => {
209
209
  var a;
210
- return ie(r.manual) ? r.manual : dr(((a = c.searchFormExtra) == null ? void 0 : a.call(c)) || []).some((o) => {
210
+ return ie(r.manual) ? r.manual : cr(((a = c.searchFormExtra) == null ? void 0 : a.call(c)) || []).some((o) => {
211
211
  var t;
212
212
  return ((t = o.type) == null ? void 0 : t.name) === "ApView";
213
213
  });
@@ -215,7 +215,7 @@ const Or = /* @__PURE__ */ Le({
215
215
  rowSelection: T,
216
216
  selectedRows: x,
217
217
  ...F
218
- } = tr({
218
+ } = sr({
219
219
  fixed: !0,
220
220
  ...r.rowSelection === !0 ? {} : r.rowSelection,
221
221
  rowKey: r.rowKey,
@@ -230,11 +230,13 @@ const Or = /* @__PURE__ */ Le({
230
230
  setDataSource: Ce,
231
231
  getColumnSFConfig: M,
232
232
  sortedInfo: Te,
233
- filteredInfo: xe
234
- } = Ue({
233
+ filteredInfo: xe,
234
+ setPaging: Fe,
235
+ getPaging: ke
236
+ } = Ge({
235
237
  async request(e) {
236
238
  var o, t;
237
- if (!T.value.preserveSelectedRowKeys && g(r.dataSource) && F.clearAll(), !g(r.dataSource))
239
+ if (!T.value.preserveSelectedRowKeys && b(r.dataSource) && F.clearAll(), !b(r.dataSource))
238
240
  return {
239
241
  data: r.dataSource || [],
240
242
  total: r.dataSource.length || 0
@@ -247,41 +249,41 @@ const Or = /* @__PURE__ */ Le({
247
249
  },
248
250
  filterFields: he,
249
251
  sortFields: Se,
250
- defaultParams: r.params,
252
+ params: De(r, "params"),
251
253
  defaultData: r.defaultData,
252
254
  manual: l(ve),
253
255
  formatParams: r.beforeSearchSubmit,
254
256
  pagination: r.pagination
255
- }), Fe = () => {
257
+ }), Be = () => {
256
258
  var o;
257
259
  let e = ((o = r.columns) == null ? void 0 : o.filter((t) => !t.hideInTable)) || [];
258
260
  function a(t, d) {
259
261
  return t.map((n) => ({
260
262
  resizable: ie(n.resizable) ? n.resizable : r.columnResizable,
261
- ...se(er(n), ["ellipsis"]),
263
+ ...se(ar(n), ["ellipsis"]),
262
264
  // tips: 此函数内部依赖查询&筛选的相应式值
263
265
  ...M(n),
264
266
  fixed: d ? d.fixed : n.fixed,
265
- title: Qe(n, A("table-header", "title"), c.headerCell, l(pe).colorPrimary),
267
+ title: Ze(n, A("table-header", "title"), c.headerCell, l(pe).colorTextTertiary),
266
268
  customRender({
267
269
  value: p,
268
270
  ...h
269
271
  }) {
270
272
  var Z, ee;
271
- const X = Xe(n), Ve = Ye({
273
+ const X = er(n), Ke = rr({
272
274
  ...n,
273
275
  valueType: X
274
276
  }, {
275
277
  value: p,
276
278
  ...h
277
- }), Ee = Ze(X, Ve, h.record, l($)), Y = ((Z = n.renderText) == null ? void 0 : Z.call(n, {
279
+ }), Le = or(X, Ke, h.record, l($)), Y = ((Z = n.renderText) == null ? void 0 : Z.call(n, {
278
280
  value: p,
279
281
  ...h
280
- })) || p, Ke = n.renderText ? m(re, null, [(ee = n.renderText) == null ? void 0 : ee.call(n, {
282
+ })) || p, Oe = n.renderText ? m(re, null, [(ee = n.renderText) == null ? void 0 : ee.call(n, {
281
283
  value: p,
282
284
  ...h
283
- })]) : Ee;
284
- let E = Pe(n, Y, Ke);
285
+ })]) : Le;
286
+ let E = Ve(n, Y, Oe);
285
287
  return n.customRender && (E = n.customRender({
286
288
  value: p,
287
289
  ...h,
@@ -294,7 +296,7 @@ const Or = /* @__PURE__ */ Le({
294
296
  }));
295
297
  }
296
298
  return a(e);
297
- }, ke = () => {
299
+ }, ze = () => {
298
300
  function e(a) {
299
301
  var o;
300
302
  for (const t of a)
@@ -303,26 +305,26 @@ const Or = /* @__PURE__ */ Le({
303
305
  e(u.value);
304
306
  };
305
307
  k(() => [r.columns, r.columnResizable], () => {
306
- const e = Fe();
308
+ const e = Be();
307
309
  u.value = e, _.value = e;
308
310
  }, {
309
311
  deep: !0,
310
312
  immediate: !0
311
313
  }), k(() => [Te.value, xe.value], () => {
312
- ke();
314
+ ze();
313
315
  }, {
314
316
  deep: !0
315
317
  });
316
- const Be = s(() => {
318
+ const Ne = s(() => {
317
319
  var a, o;
318
320
  if (r.adaptive && (S.total > 0 || ((a = r.dataSource) == null ? void 0 : a.length)))
319
321
  return {
320
- y: l(ye),
322
+ y: l(ge),
321
323
  x: ((o = r.scroll) == null ? void 0 : o.x) || "100%"
322
324
  };
323
325
  if (r.scroll)
324
326
  return r.scroll;
325
- }), ze = s(() => {
327
+ }), Pe = s(() => {
326
328
  var e;
327
329
  if (r.tableLayout)
328
330
  return r.tableLayout;
@@ -337,24 +339,24 @@ const Or = /* @__PURE__ */ Le({
337
339
  rowSelection: r.rowSelection === !0 || ((o = r.rowSelection) == null ? void 0 : o.mode) === "internal" ? {
338
340
  ...a,
339
341
  // tips 如果是前端分页,则默认会走缓存
340
- preserveSelectedRowKeys: g(r.dataSource) ? a.preserveSelectedRowKeys : !0
341
- } : rr(r.rowSelection),
342
- loading: g(r.loading) ? e.loading : r.loading,
342
+ preserveSelectedRowKeys: b(r.dataSource) ? a.preserveSelectedRowKeys : !0
343
+ } : tr(r.rowSelection),
344
+ loading: b(r.loading) ? e.loading : r.loading,
343
345
  pagination: r.pagination === !1 ? !1 : e.pagination,
344
- scroll: l(Be)
346
+ scroll: l(Ne)
345
347
  };
346
- }), Ne = s(() => {
348
+ }), Ie = s(() => {
347
349
  var e;
348
350
  return [f(), r.card ? null : f("wrapper"), r.adaptive ? f("adaptive") : null, W.value && ((e = i.value) != null && e.visible) ? me(`sticky-${H === 0 ? "absolute" : "relative"}`) : null].filter(Boolean);
349
351
  });
350
- function Pe(e, a, o) {
352
+ function Ve(e, a, o) {
351
353
  if (ne.includes(e.valueType))
352
354
  return o;
353
- const t = or(a);
354
- return e.copyable || e.ellipsis ? m(cr, {
355
+ const t = lr(a);
356
+ return e.copyable || e.ellipsis ? m(mr, {
355
357
  copyable: e.copyable,
356
358
  rawValue: t,
357
- ellipsis: e.ellipsis ? qe(e.ellipsis) ? {
359
+ ellipsis: e.ellipsis ? Je(e.ellipsis) ? {
358
360
  tooltip: o,
359
361
  rows: 1
360
362
  } : {
@@ -381,7 +383,7 @@ const Or = /* @__PURE__ */ Le({
381
383
  const a = e ? "getFieldsValueTransformed" : "getFieldsValue";
382
384
  return (d = (t = (o = P.value) == null ? void 0 : o.apForm) == null ? void 0 : t[a]) == null ? void 0 : d.call(t, !0);
383
385
  }
384
- function Ie() {
386
+ function Ee() {
385
387
  return l(u);
386
388
  }
387
389
  return fe({
@@ -390,7 +392,9 @@ const Or = /* @__PURE__ */ Le({
390
392
  refresh: () => Re(),
391
393
  setSearchFormValues: J,
392
394
  getSearchFormValues: Q,
393
- getShownColumns: Ie,
395
+ setPaging: Fe,
396
+ getPaging: ke,
397
+ getShownColumns: Ee,
394
398
  dataSource: s(() => l(S).records),
395
399
  rowSelection: {
396
400
  selectedRows: s(() => l(x)),
@@ -409,18 +413,18 @@ const Or = /* @__PURE__ */ Le({
409
413
  },
410
414
  y: void 0
411
415
  }
412
- }), (e, a) => (b(), B("div", {
416
+ }), (e, a) => (y(), B("div", {
413
417
  ref_key: "tableWrapperRef",
414
418
  ref: D,
415
- class: y(Ne.value),
416
- style: K(l(be)({
419
+ class: g(Ie.value),
420
+ style: K(l(ye)({
417
421
  "scroll-bar-width": `${l(H)}px`
418
422
  }))
419
- }, [l(g)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (b(), B("div", {
423
+ }, [l(b)(e.dataSource) && e.searchForm !== !1 && U.value.length > 0 ? (y(), B("div", {
420
424
  key: 0,
421
- class: y(e.card ? l(z)("search-wrapper") : null),
425
+ class: g(e.card ? l(z)("search-wrapper") : null),
422
426
  style: K(e.searchFormWrapperStyle)
423
- }, [m(l(He).SearchForm, v(e.searchForm || {}, {
427
+ }, [m(l(Me).SearchForm, v(e.searchForm || {}, {
424
428
  ref_key: "formRef",
425
429
  ref: P,
426
430
  "custom-reset": "",
@@ -428,7 +432,7 @@ const Or = /* @__PURE__ */ Le({
428
432
  onSubmit: l(I),
429
433
  onReset: l(V)
430
434
  }), ae({
431
- default: R(() => [(b(!0), B(re, null, te(U.value, (o) => (b(), le(Ae(o.renderNode.Comp), v({
435
+ default: R(() => [(y(!0), B(re, null, te(U.value, (o) => (y(), le(je(o.renderNode.Comp), v({
432
436
  key: o.dataIndex,
433
437
  item: o,
434
438
  ref_for: !0
@@ -443,37 +447,37 @@ const Or = /* @__PURE__ */ Le({
443
447
  key: "0"
444
448
  } : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : oe("", !0), L("div", {
445
449
  ref_key: "contentRef",
446
- ref: ge,
447
- class: y([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
450
+ ref: be,
451
+ class: g([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
448
452
  style: K(e.tableWrapperStyle)
449
453
  }, [L("div", {
450
- class: y(l(f)("header-wrapper"))
451
- }, [e.settings ? (b(), B("div", {
454
+ class: g(l(f)("header-wrapper"))
455
+ }, [e.settings ? (y(), B("div", {
452
456
  key: 0,
453
- class: y(l(f)("header"))
457
+ class: g(l(f)("header"))
454
458
  }, [L("div", {
455
- class: y(l(A)("header", "title"))
459
+ class: g(l(A)("header", "title"))
456
460
  }, [C(e.$slots, "title", v({
457
461
  selectedRows: l(x),
458
462
  selectedRowKeys: l(T).selectedRowKeys,
459
463
  shownColumns: u.value
460
- }, F))], 2), c.title ? (b(), le(l(je), {
464
+ }, F))], 2), c.title ? (y(), le(l(He), {
461
465
  key: 0,
462
466
  type: "vertical"
463
- })) : oe("", !0), m(fr, {
467
+ })) : oe("", !0), m(yr, {
464
468
  config: e.settings === !0 ? {} : e.settings
465
469
  }, null, 8, ["config"])], 2)) : C(e.$slots, "title", v({
466
470
  key: 1,
467
471
  selectedRows: l(x),
468
472
  selectedRowKeys: l(T).selectedRowKeys,
469
473
  shownColumns: u.value
470
- }, F))], 2), m(l(We), v({
474
+ }, F))], 2), m(l(Ue), v({
471
475
  ref_key: "antdTableRef",
472
476
  ref: j,
473
477
  class: l(f)("table")
474
478
  }, G.value, {
475
479
  size: N.value,
476
- "table-layout": ze.value,
480
+ "table-layout": Pe.value,
477
481
  columns: u.value,
478
482
  onResizeColumn: a[0] || (a[0] = (o, t) => t.width = o)
479
483
  }), ae({
@@ -487,22 +491,22 @@ const Or = /* @__PURE__ */ Le({
487
491
  name: "bottomPaginationTop",
488
492
  fn: R(() => {
489
493
  var o, t;
490
- return [m(l(pr), {
494
+ return [m(l(gr), {
491
495
  ref_key: "scrollBarRef",
492
496
  ref: i,
493
497
  "scroll-container": (t = (o = j.value) == null ? void 0 : o.table) == null ? void 0 : t.scrollBodyRef,
494
498
  direction: "horizontal",
495
- "bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
499
+ "bar-color": "var(--ap-scrollbar-thumb-color-base)",
496
500
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
497
501
  }, null, 8, ["scroll-container"])];
498
502
  }),
499
503
  key: "0"
500
504
  } : void 0, te(l(se)(c, ["title", "searchFormExtra", "headerCell", "summary"]), (o, t) => ({
501
505
  name: t,
502
- fn: R((d) => [C(e.$slots, t, $e(De(d || {})))])
506
+ fn: R((d) => [C(e.$slots, t, We(_e(d || {})))])
503
507
  }))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
504
508
  }
505
509
  });
506
510
  export {
507
- Or as default
511
+ Dr as default
508
512
  };
@@ -1,23 +1,19 @@
1
- import { defineComponent as G, ref as y, unref as e, computed as H, useSlots as L, createVNode as l, cloneVNode as M, createElementBlock as P, openBlock as x, Fragment as q, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as i, createElementVNode as s, normalizeClass as r, toDisplayString as c, createTextVNode as C, isRef as X } from "vue";
2
- import { Button as B, Modal as Y, RadioGroup as Z, RadioButton as _, Divider as h } from "@aplus-frontend/antdv";
1
+ import { defineComponent as G, ref as y, unref as e, computed as L, useSlots as M, createVNode as l, cloneVNode as P, createElementBlock as q, openBlock as T, Fragment as H, createBlock as J, createCommentVNode as Q, resolveDynamicComponent as W, withCtx as r, createElementVNode as s, normalizeClass as i, toDisplayString as c, createTextVNode as S, isRef as X } from "vue";
2
+ import { Button as x, Modal as Y, RadioGroup as Z, RadioButton as B, Divider as N } from "@aplus-frontend/antdv";
3
3
  import { getSingleVNode as ee } from "../../../../utils/slot.mjs";
4
4
  import { useInjectApTable as te } from "../../../context.mjs";
5
5
  import "../tree-select/index.vue.mjs";
6
6
  import { useTableColumnState as le } from "../../../hooks/use-table-column-state.mjs";
7
7
  import "../../../../config-provider/index.mjs";
8
8
  import "../sorter/index.vue.mjs";
9
- import oe, { customCloneColumnStates as N } from "../utils.mjs";
10
- import { SettingOutlined as ne } from "@ant-design/icons-vue";
9
+ import ne, { customCloneColumnStates as h } from "../utils.mjs";
10
+ import { SettingOutlined as oe } from "@ant-design/icons-vue";
11
11
  import { useLocale as ae } from "../../../../config-provider/hooks/use-locale.mjs";
12
- import { useNamespace as T } from "../../../../config-provider/hooks/use-namespace.mjs";
12
+ import { useNamespace as _ } from "../../../../config-provider/hooks/use-namespace.mjs";
13
13
  import se from "../tree-select/index.vue2.mjs";
14
14
  import ie from "../sorter/index.vue2.mjs";
15
- const re = {
16
- style: {
17
- lineHeight: "22px",
18
- color: "#8896B0"
19
- }
20
- }, Be = /* @__PURE__ */ G({
15
+ const Te = /* @__PURE__ */ G({
16
+ name: "ApTableSetting",
21
17
  __name: "index",
22
18
  props: {
23
19
  config: {
@@ -30,8 +26,8 @@ const re = {
30
26
  size: z,
31
27
  updateSize: d,
32
28
  updateColumns: f
33
- } = te(), g = y(e(z)), R = H(() => m.config.persistenceKey), {
34
- columnState: n,
29
+ } = te(), g = y(e(z)), R = L(() => m.config.persistenceKey), {
30
+ columnState: o,
35
31
  setColumnState: w,
36
32
  isAllSelected: D,
37
33
  toggleSelectAll: O,
@@ -42,31 +38,31 @@ const re = {
42
38
  t: a
43
39
  } = ae(), {
44
40
  b: v,
45
- be: S
46
- } = T("ap-column-setting"), {
41
+ be: C
42
+ } = _("ap-column-setting"), {
47
43
  b: K
48
- } = T("ap-table"), u = y(!1), $ = L(), b = ee($.trigger) || l(B, {
49
- icon: l(ne, null, null),
44
+ } = _("ap-table"), u = y(!1), $ = M(), b = ee($.trigger) || l(x, {
45
+ icon: l(oe, null, null),
50
46
  class: K("setting-trigger-button")
51
- }, null), k = b ? M(b, {
47
+ }, null), k = b ? P(b, {
52
48
  onClick: () => {
53
49
  u.value = !0;
54
50
  }
55
51
  }) : null;
56
52
  function j() {
57
- w(N(e(U)));
53
+ w(h(e(U)));
58
54
  }
59
55
  function F() {
60
- var t, o;
61
- f == null || f(oe(e(V), e(n))), d == null || d(e(g)), u.value = !1;
62
- const p = N(n.value);
63
- E(p), I(p), (o = (t = m.config) == null ? void 0 : t.onChange) == null || o.call(t, p);
56
+ var t, n;
57
+ f == null || f(ne(e(V), e(o))), d == null || d(e(g)), u.value = !1;
58
+ const p = h(o.value);
59
+ E(p), I(p), (n = (t = m.config) == null ? void 0 : t.onChange) == null || n.call(t, p);
64
60
  }
65
- return (p, t) => (x(), P(q, null, [e(k) ? (x(), J(W(e(k)), {
61
+ return (p, t) => (T(), q(H, null, [e(k) ? (T(), J(W(e(k)), {
66
62
  key: 0
67
63
  })) : Q("", !0), l(e(Y), {
68
64
  open: u.value,
69
- "onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
65
+ "onUpdate:open": t[2] || (t[2] = (n) => u.value = n),
70
66
  title: e(a)("ap.apTable.setting.title"),
71
67
  width: 900,
72
68
  centered: !0,
@@ -76,54 +72,56 @@ const re = {
76
72
  },
77
73
  onOk: F
78
74
  }, {
79
- default: i(() => [s("div", {
80
- class: r(e(v)("wrapper"))
75
+ default: r(() => [s("div", {
76
+ class: i(e(v)("wrapper"))
81
77
  }, [s("div", {
82
- class: r(e(v)("left"))
78
+ class: i(e(v)("left"))
83
79
  }, [s("div", {
84
- class: r(e(S)("left", "header"))
85
- }, [s("div", null, [s("span", re, c(e(a)("ap.apTable.setting.selectAllTip")), 1), l(e(B), {
80
+ class: i(e(C)("left", "header"))
81
+ }, [s("div", null, [s("span", {
82
+ class: i(e(C)("left", "header-tips"))
83
+ }, c(e(a)("ap.apTable.setting.selectAllTip")), 3), l(e(x), {
86
84
  type: "link",
87
85
  size: "small",
88
86
  onClick: e(O)
89
87
  }, {
90
- default: i(() => [C(c(e(D) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
88
+ default: r(() => [S(c(e(D) ? e(a)("ap.apTable.setting.unSelectAll") : e(a)("ap.apTable.setting.selectAll")), 1)]),
91
89
  _: 1
92
90
  }, 8, ["onClick"])]), l(e(Z), {
93
91
  value: g.value,
94
- "onUpdate:value": t[0] || (t[0] = (o) => g.value = o)
92
+ "onUpdate:value": t[0] || (t[0] = (n) => g.value = n)
95
93
  }, {
96
- default: i(() => [l(e(_), {
94
+ default: r(() => [l(e(B), {
97
95
  value: "small"
98
96
  }, {
99
- default: i(() => [C(c(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
97
+ default: r(() => [S(c(e(a)("ap.apTable.setting.sizeSmall")), 1)]),
100
98
  _: 1
101
- }), l(e(_), {
99
+ }), l(e(B), {
102
100
  value: "middle"
103
101
  }, {
104
- default: i(() => [C(c(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
102
+ default: r(() => [S(c(e(a)("ap.apTable.setting.sizeNormal")), 1)]),
105
103
  _: 1
106
104
  })]),
107
105
  _: 1
108
- }, 8, ["value"])], 2), l(e(h), {
106
+ }, 8, ["value"])], 2), l(e(N), {
109
107
  dashed: "",
110
108
  style: {
111
109
  margin: "0px"
112
110
  }
113
111
  }), l(se, {
114
- class: r(e(S)("left", "content")),
115
- value: e(n)
116
- }, null, 8, ["class", "value"])], 2), l(e(h), {
112
+ class: i(e(C)("left", "content")),
113
+ value: e(o)
114
+ }, null, 8, ["class", "value"])], 2), l(e(N), {
117
115
  type: "vertical",
118
116
  style: {
119
117
  height: "100%",
120
118
  margin: "0px"
121
119
  }
122
120
  }), s("div", {
123
- class: r(e(v)("right"))
121
+ class: i(e(v)("right"))
124
122
  }, [l(ie, {
125
- value: e(n),
126
- "onUpdate:value": t[1] || (t[1] = (o) => X(n) ? n.value = o : null),
123
+ value: e(o),
124
+ "onUpdate:value": t[1] || (t[1] = (n) => X(o) ? o.value = n : null),
127
125
  onReset: j
128
126
  }, null, 8, ["value"])], 2)], 2)]),
129
127
  _: 1
@@ -131,5 +129,5 @@ const re = {
131
129
  }
132
130
  });
133
131
  export {
134
- Be as default
132
+ Te as default
135
133
  };