@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,30 +1,31 @@
1
- import { defineComponent as Be, useSlots as Fe, getCurrentInstance as Ie, ref as B, computed as n, unref as o, watch as F, createElementBlock as I, openBlock as s, normalizeStyle as V, normalizeClass as g, createCommentVNode as y, createElementVNode as E, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as L, createBlock as p, resolveDynamicComponent as D, renderSlot as O, normalizeProps as Ee, guardReactiveProps as Pe } from "vue";
2
- import { VxeTable as Ne, VxeColumn as Y } from "vxe-table";
1
+ import { defineComponent as Ke, useSlots as Le, getCurrentInstance as De, ref as k, computed as n, unref as a, toRef as Oe, nextTick as $e, watch as F, createElementBlock as E, openBlock as d, normalizeStyle as A, normalizeClass as g, createCommentVNode as S, createElementVNode as B, createVNode as X, mergeProps as h, createSlots as J, withCtx as C, Fragment as Q, renderList as V, createBlock as p, resolveDynamicComponent as K, renderSlot as L, normalizeProps as Me, guardReactiveProps as We } from "vue";
2
+ import { VxeTable as je, VxeColumn as Y } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import "vxe-pc-ui/es/style.css";
5
5
  import { VxeUI as Z } from "vxe-pc-ui";
6
- import { isUndefined as S, omit as Te } from "lodash-unified";
7
- import { ApForm as ze } from "../ap-form/index.mjs";
6
+ import { isUndefined as R, isFunction as ee, omit as He } from "lodash-unified";
7
+ import { ApForm as qe } from "../ap-form/index.mjs";
8
8
  import "../config-provider/index.mjs";
9
- import { noRenderAsFormItemValueList as _e } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as ee, updateFormProps as Ae, getFieldProps as Ve, getSearchFormItemRenderNode as Le, recursionApColumns as oe } from "../ap-table/utils.mjs";
11
- import { useTablePaging as De } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
- import { Empty as ae, Pagination as Oe } from "@aplus-frontend/antdv";
13
- import { useInnerParams as $e } from "./hooks/use-inner-params.mjs";
14
- import { toVxeProps as Ke, getRowExpandProps as We, getRowSelectionProps as je } from "./utils/table.mjs";
15
- import He from "../ap-table/hooks/use-table-row-selection.mjs";
16
- import { useProvideApTable as Me } from "../ap-table/context.mjs";
17
- import { sizeReverseMap as qe, sizeMap as Ue, ROW_SELECTION_FIELD as Ge } from "./constants.mjs";
18
- import { useRenderColumns as Xe } from "./hooks/use-render-columns.mjs";
19
- import { useToken as Je } from "@aplus-frontend/antdv/es/theme/internal";
9
+ import { noRenderAsFormItemValueList as Ue } from "../ap-table/constants.mjs";
10
+ import { getColumnOrder as oe, updateFormProps as Ge, getFieldProps as Xe, getSearchFormItemRenderNode as Je, recursionApColumns as te } from "../ap-table/utils.mjs";
11
+ import { useTablePaging as Qe } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
+ import { Empty as ae, Pagination as Ye } from "@aplus-frontend/antdv";
13
+ import { useInnerParams as Ze } from "./hooks/use-inner-params.mjs";
14
+ import { toVxeProps as eo, getRowExpandProps as oo, getRowSelectionProps as to } from "./utils/table.mjs";
15
+ import ao from "./hooks/use-row-selection.mjs";
16
+ import { useProvideApTable as ro } from "../ap-table/context.mjs";
17
+ import { sizeReverseMap as lo, sizeMap as no, ROW_SELECTION_FIELD as so } from "./constants.mjs";
18
+ import { useRenderColumns as io } from "./hooks/use-render-columns.mjs";
19
+ import { useToken as uo } from "@aplus-frontend/antdv/es/theme/internal";
20
20
  import "../scroll-bar/index.mjs";
21
- import { isDef as Qe } from "../utils/index.mjs";
22
- import { getValidVNodeList as Ye } from "../utils/slot.mjs";
23
- import { useNamespace as Ze } from "../config-provider/hooks/use-namespace.mjs";
24
- import { useGlobalConfig as eo } from "../config-provider/hooks/use-global-config.mjs";
25
- import { useLocale as oo } from "../config-provider/hooks/use-locale.mjs";
26
- import ao from "../scroll-bar/index.vue.mjs";
27
- const No = /* @__PURE__ */ Be({
21
+ import { isDef as co } from "../utils/index.mjs";
22
+ import { getValidVNodeList as po } from "../utils/slot.mjs";
23
+ import { useTableStyle as fo } from "./hooks/use-table-style.mjs";
24
+ import { useNamespace as mo } from "../config-provider/hooks/use-namespace.mjs";
25
+ import { useGlobalConfig as go } from "../config-provider/hooks/use-global-config.mjs";
26
+ import { useLocale as ho } from "../config-provider/hooks/use-locale.mjs";
27
+ import Co from "../scroll-bar/index.vue.mjs";
28
+ const qo = /* @__PURE__ */ Ke({
28
29
  name: "ApGrid",
29
30
  __name: "index",
30
31
  props: {
@@ -111,341 +112,392 @@ const No = /* @__PURE__ */ Be({
111
112
  footer: {},
112
113
  virtual: { type: [Boolean, Object], default: void 0 },
113
114
  expandable: {},
114
- value: {}
115
+ value: {},
116
+ rowHighlightable: { type: [Boolean, Function], default: !1 }
115
117
  },
116
- setup(re, { expose: te }) {
118
+ setup(re, { expose: le }) {
117
119
  var G;
118
- const C = Fe(), a = re, w = (G = Ie()) == null ? void 0 : G.appContext.app;
119
- w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Z), w.__VXE_PC_UI_INSTALLED__ = !0);
120
- const { e: P, b: c, be: le } = Ze("ap-grid"), ne = eo("valueTypeMap"), d = B([]), $ = B([]), m = B(), x = B(a.size), [, i] = Je(), { t: se } = oo();
120
+ const y = Le(), t = re, b = (G = De()) == null ? void 0 : G.appContext.app;
121
+ b && !b.__VXE_PC_UI_INSTALLED__ && (b.use(Z), b.__VXE_PC_UI_INSTALLED__ = !0);
122
+ const { e: I, b: u, be: ne } = mo("ap-grid"), se = go("valueTypeMap"), i = k([]), D = k([]), s = k(), x = k(t.size), ie = fo(), [, de] = uo(), { t: ue } = ho();
121
123
  Z.setConfig({
122
- i18n: (e, r) => se(`ap.${e}`, r)
124
+ i18n: (e, o) => ue(`ap.${e}`, o)
123
125
  });
124
- const { renderConfig: de, updateSignal: ie } = Xe(d);
125
- let K = 0;
126
- const ce = n(() => {
127
- if (m.value)
128
- return m.value.$el.querySelector(
126
+ const { renderConfig: ce, updateSignal: pe } = io(i);
127
+ let O = 0;
128
+ const fe = n(() => {
129
+ if (s.value)
130
+ return s.value.$el.querySelector(
129
131
  ".vxe-table--header-inner-wrapper"
130
132
  );
131
- }), W = n(() => {
132
- var e, r, l;
133
- return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
134
- (t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !_e.includes(t.valueType)
135
- )) == null ? void 0 : r.sort((t, u) => {
136
- let b = ee(t.order);
137
- return ee(u.order) - b;
138
- })) == null ? void 0 : l.map((t) => {
139
- const u = Ae(
140
- t,
141
- Ve(t.fieldProps, {})
142
- ), b = {
143
- ...t,
133
+ }), $ = n(() => {
134
+ var e, o, r;
135
+ return O++, ((r = (o = (e = t.columns) == null ? void 0 : e.filter(
136
+ (l) => !l.hideInSearch && l.dataIndex && (l.valueType || l.customRenderFormItem) && !Ue.includes(l.valueType)
137
+ )) == null ? void 0 : o.sort((l, c) => {
138
+ let w = oe(l.order);
139
+ return oe(c.order) - w;
140
+ })) == null ? void 0 : r.map((l) => {
141
+ const c = Ge(
142
+ l,
143
+ Xe(l.fieldProps, {})
144
+ ), w = {
145
+ ...l,
144
146
  fieldProps: {
145
- label: t.title,
146
- name: t.dataIndex,
147
+ label: l.title,
148
+ name: l.dataIndex,
147
149
  // tips: 在表格中的查询表单项默认是带边框的
148
150
  bordered: !0,
149
- ...u || {},
150
- _signal: K
151
+ ...c || {},
152
+ _signal: O
151
153
  },
152
154
  renderNode: void 0
153
155
  };
154
- return b.renderNode = Le(
155
- b,
156
- o(ne)
157
- ), b;
156
+ return w.renderNode = Je(
157
+ w,
158
+ a(se)
159
+ ), w;
158
160
  })) || [];
159
- }), ue = n(() => {
160
- var r;
161
- return Qe(a.manual) ? a.manual : Ye(((r = C.searchFormExtra) == null ? void 0 : r.call(C)) || []).some((l) => {
162
- var t;
163
- return ((t = l.type) == null ? void 0 : t.name) === "ApView";
161
+ }), me = n(() => {
162
+ var o;
163
+ return co(t.manual) ? t.manual : po(((o = y.searchFormExtra) == null ? void 0 : o.call(y)) || []).some((r) => {
164
+ var l;
165
+ return ((l = r.type) == null ? void 0 : l.name) === "ApView";
164
166
  });
165
- }), pe = n(() => [
166
- c(),
167
- a.card ? null : c("wrapper"),
168
- a.adaptive ? c("adaptive") : null,
169
- a.sticky ? c("sticky") : null
170
- ].filter(Boolean)), j = n(() => oe(o(d), (e) => {
167
+ }), ge = n(() => [
168
+ u(),
169
+ t.card ? null : u("wrapper"),
170
+ t.adaptive ? u("adaptive") : null,
171
+ t.sticky ? u("sticky") : null
172
+ ].filter(Boolean)), M = n(() => te(a(i), (e) => {
171
173
  if (e.sorter === !0)
172
174
  return e.key || e.dataIndex;
173
- }).filter(Boolean)), H = n(() => oe(o(d), (e) => {
175
+ }).filter(Boolean)), W = n(() => te(a(i), (e) => {
174
176
  if (e.filters && !e.onFilter)
175
177
  return e.key || e.dataIndex;
176
178
  }).filter(Boolean)), {
177
- formRef: N,
178
- submit: T,
179
- reset: z,
180
- refresh: me,
179
+ formRef: P,
180
+ submit: N,
181
+ reset: T,
182
+ refresh: he,
181
183
  data: f,
182
- tableProps: M,
183
- setDataSource: fe,
184
- handleTableChange: ge
185
- } = De({
184
+ tableProps: j,
185
+ setDataSource: Ce,
186
+ handleTableChangeOptional: ye,
187
+ getPaging: ve,
188
+ setPaging: we
189
+ } = Qe({
186
190
  async request(e) {
187
- var l;
188
- if (!k.value.preserveSelectedRowKeys && S(a.dataSource) && A(), !S(a.dataSource)) {
189
- const t = e.pageSize * (e.current - 1);
191
+ var r;
192
+ if (!m.value.preserveSelectedRowKeys && R(t.dataSource) && _(), !R(t.dataSource)) {
193
+ const l = e.pageSize * (e.current - 1);
190
194
  return {
191
- data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
192
- total: a.dataSource.length || 0
195
+ data: (t.pagination === !1 ? t.dataSource : t.dataSource.slice(l, l + e.pageSize)) || [],
196
+ total: t.dataSource.length || 0
193
197
  };
194
198
  }
195
- const r = await ((l = a.request) == null ? void 0 : l.call(a, e));
199
+ const o = await ((r = t.request) == null ? void 0 : r.call(t, e));
196
200
  return {
197
- data: (r == null ? void 0 : r.data) || [],
198
- total: (r == null ? void 0 : r.total) || 0
201
+ data: (o == null ? void 0 : o.data) || [],
202
+ total: (o == null ? void 0 : o.total) || 0
199
203
  };
200
204
  },
201
205
  namespace: "ap-grid",
202
- filterFields: H,
203
- sortFields: j,
204
- defaultParams: a.params,
205
- defaultData: a.defaultData,
206
- manual: o(ue),
207
- formatParams: a.beforeSearchSubmit,
208
- pagination: a.pagination
209
- }), { sortChangeEvent: he, filterChangeEvent: ve, paginationChangeEvent: Ce } = $e(ge);
210
- Me({
211
- columns: n(() => d.value),
212
- columnsBackup: n(() => $.value),
213
- size: n(() => Ue[x.value]),
206
+ filterFields: W,
207
+ sortFields: M,
208
+ params: Oe(t, "params"),
209
+ defaultData: t.defaultData,
210
+ manual: a(me),
211
+ formatParams: t.beforeSearchSubmit,
212
+ pagination: t.pagination,
213
+ onClickReset: Ae,
214
+ onAfterRequest: U
215
+ }), { sortChangeEvent: Se, filterChangeEvent: Re, paginationChangeEvent: be } = Ze(ye);
216
+ ro({
217
+ columns: n(() => i.value),
218
+ columnsBackup: n(() => D.value),
219
+ size: n(() => no[x.value]),
214
220
  updateColumns(e) {
215
- var r;
216
- d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e);
221
+ var o;
222
+ i.value = e, (o = t.onShownColumnsChange) == null || o.call(t, e);
217
223
  },
218
224
  updateSize(e) {
219
- x.value = qe[e];
225
+ x.value = lo[e];
220
226
  },
221
227
  renderConfig: n(() => ({
222
- className: le("table-header", "title"),
223
- color: i.value.colorPrimary
228
+ className: ne("table-header", "title"),
229
+ color: de.value.colorTextTertiary
224
230
  })),
225
- dataSource: n(() => o(f).records),
226
- getSearchFormValues: U,
227
- setSearchFormValues: q,
228
- submit: T,
229
- reset: z
231
+ dataSource: n(() => a(f).records),
232
+ getSearchFormValues: q,
233
+ setSearchFormValues: H,
234
+ submit: N,
235
+ reset: T
230
236
  });
231
- const be = n(
232
- () => d.value.some(
237
+ const xe = n(
238
+ () => i.value.some(
233
239
  (e) => e.fixed === "left" || e.fixed === !0
234
240
  ) ? "left" : void 0
235
- ), ye = n(
236
- () => S(a.loading) ? f.loading : a.loading
237
- ), Se = n(
238
- () => S(a.dataSource) ? f.records : a.dataSource
239
- ), { selectedRows: R, rowSelection: k, ...we } = He({
240
- ...a.rowSelection === !0 ? {} : a.rowSelection,
241
- dataSource: Se,
242
- rowKey: a.rowKey
243
- }), _ = () => {
244
- const e = m.value;
245
- e && (R.value = [
241
+ ), ke = n(
242
+ () => R(t.loading) ? f.loading : t.loading
243
+ ), Fe = n(
244
+ () => R(t.dataSource) ? f.records : t.dataSource
245
+ ), { selectedRows: z, rowSelection: m, ...v } = ao({
246
+ ...t.rowSelection === !0 ? {} : t.rowSelection,
247
+ dataSource: Fe,
248
+ rowKey: t.rowKey
249
+ }), Ee = ({
250
+ checked: e,
251
+ row: o
252
+ }) => {
253
+ const r = s.value;
254
+ if (r && r) {
255
+ const l = [
256
+ ...r.getCheckboxReserveRecords(),
257
+ ...r.getCheckboxRecords()
258
+ ];
259
+ v.selectChange(o, e, l);
260
+ }
261
+ }, Be = ({
262
+ checked: e
263
+ }) => {
264
+ const o = s.value;
265
+ o && v.selectAllChange(e, [
266
+ ...o.getCheckboxReserveRecords(),
267
+ ...o.getCheckboxRecords()
268
+ ]);
269
+ }, Ie = () => {
270
+ const e = s.value;
271
+ e && v.selectRangeChange(e.getCheckboxRecords(), [
246
272
  ...e.getCheckboxReserveRecords(),
247
273
  ...e.getCheckboxRecords()
248
274
  ]);
249
- }, xe = () => {
250
- const e = m.value;
251
- e && (R.value = [e.getRadioRecord()]);
275
+ }, Pe = () => {
276
+ const e = s.value;
277
+ e && (z.value = [e.getRadioRecord()]);
278
+ }, Ne = ({
279
+ row: e
280
+ }) => {
281
+ const o = t.rowHighlightable;
282
+ ee(o) && o(e);
252
283
  };
253
- function Re() {
284
+ function Te() {
254
285
  var e;
255
- return ((e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInTable)) || [];
286
+ return ((e = t.columns) == null ? void 0 : e.filter((o) => !o.hideInTable)) || [];
287
+ }
288
+ function H(e) {
289
+ var o, r, l;
290
+ (l = (r = (o = P.value) == null ? void 0 : o.apForm) == null ? void 0 : r.setFieldsValue) == null || l.call(r, e);
291
+ }
292
+ function q(e = !1) {
293
+ var r, l, c;
294
+ const o = e ? "getFieldsValueTransformed" : "getFieldsValue";
295
+ return (c = (l = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : l[o]) == null ? void 0 : c.call(l, !0);
256
296
  }
257
- function q(e) {
258
- var r, l, t;
259
- (t = (l = (r = N.value) == null ? void 0 : r.apForm) == null ? void 0 : l.setFieldsValue) == null || t.call(l, e);
297
+ function _() {
298
+ v.clearAll();
299
+ const e = s.value;
300
+ e && (m.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
260
301
  }
261
- function U(e = !1) {
262
- var l, t, u;
263
- const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
264
- return (u = (t = (l = N.value) == null ? void 0 : l.apForm) == null ? void 0 : t[r]) == null ? void 0 : u.call(t, !0);
302
+ function ze(e) {
303
+ ee(t.rowKey) || (v.selectMultiByKeys(e), U());
265
304
  }
266
- function A() {
267
- we.clearAll();
268
- const e = m.value;
269
- e && (k.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
305
+ function _e(e) {
306
+ const o = s.value;
307
+ if (!o)
308
+ return;
309
+ const r = String(e[t.rowKey]), l = o.getRowById(r);
310
+ o.setCurrentRow(l);
270
311
  }
271
- async function ke(e, r) {
272
- var t;
273
- const l = f.records[e];
274
- if (l)
275
- return (t = m.value) == null ? void 0 : t.scrollToRow(l, r);
312
+ function Ae() {
313
+ const e = s.value;
314
+ e && (e.clearSort(), e.clearFilter());
315
+ }
316
+ function U() {
317
+ $e(() => {
318
+ var e, o;
319
+ m.value.type === "radio" ? (e = s.value) == null || e.setRadioRowKey(m.value.selectedRowKeys[0]) : (o = s.value) == null || o.setCheckboxRowKey(
320
+ m.value.selectedRowKeys,
321
+ !0
322
+ );
323
+ });
324
+ }
325
+ async function Ve(e, o) {
326
+ var l;
327
+ const r = f.records[e];
328
+ if (r)
329
+ return (l = s.value) == null ? void 0 : l.scrollToRow(r, o);
276
330
  }
277
331
  return F(
278
- () => [a.columnResizable, a.columns],
332
+ () => [t.columnResizable, t.columns],
279
333
  () => {
280
- var r;
281
- const e = Re();
282
- d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
334
+ var o;
335
+ const e = Te();
336
+ i.value = e, (o = t.onShownColumnsChange) == null || o.call(t, e), D.value = e;
283
337
  },
284
338
  {
285
339
  deep: !0,
286
340
  immediate: !0
287
341
  }
288
342
  ), F(
289
- () => a.dataSource,
343
+ () => t.dataSource,
290
344
  (e) => {
291
- fe(e);
345
+ Ce(e);
292
346
  },
293
347
  { immediate: !0, deep: !0 }
294
348
  ), F(
295
- () => o(f).loading,
349
+ () => a(f).loading,
296
350
  (e) => {
297
- var r;
298
- (r = a.onLoadingChange) == null || r.call(a, e);
351
+ var o;
352
+ (o = t.onLoadingChange) == null || o.call(t, e);
299
353
  }
300
354
  ), F(
301
- () => a.size,
355
+ () => t.size,
302
356
  (e) => {
303
357
  x.value = e;
304
358
  }
305
- ), te({
306
- submit: T,
307
- reset: z,
308
- refresh: me,
309
- setSearchFormValues: q,
310
- getSearchFormValues: U,
311
- getShowColumns: () => o(d),
359
+ ), le({
360
+ submit: N,
361
+ reset: T,
362
+ refresh: he,
363
+ setSearchFormValues: H,
364
+ getSearchFormValues: q,
365
+ getShowColumns: () => a(i),
312
366
  rowSelection: {
313
- selectedRows: n(() => R.value),
314
- clearAll: A
367
+ selectedRows: n(() => z.value),
368
+ setSelectedRowKeys: ze,
369
+ clearAll: _
315
370
  },
316
- scrollToRow: ke,
317
- getDataSource: () => o(f.records)
318
- }), (e, r) => (s(), I("div", {
319
- class: g(pe.value),
320
- style: V(e.wrapperStyle)
371
+ scrollToRow: Ve,
372
+ getDataSource: () => a(f.records),
373
+ setCurrentRow: _e,
374
+ getPaging: ve,
375
+ setPaging: we
376
+ }), (e, o) => (d(), E("div", {
377
+ class: g(ge.value),
378
+ style: A(e.wrapperStyle)
321
379
  }, [
322
- o(S)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), I("div", {
380
+ a(R)(e.dataSource) && e.searchForm !== !1 && $.value.length > 0 ? (d(), E("div", {
323
381
  key: 0,
324
- class: g(e.card ? o(P)("search-wrapper") : null),
325
- style: V(e.searchFormWrapperStyle)
382
+ class: g(e.card ? a(I)("search-wrapper") : null),
383
+ style: A(e.searchFormWrapperStyle)
326
384
  }, [
327
- X(o(ze).SearchForm, h(e.searchForm || {}, {
385
+ X(a(qe).SearchForm, h(e.searchForm || {}, {
328
386
  ref_key: "formRef",
329
- ref: N,
387
+ ref: P,
330
388
  "custom-reset": "",
331
- "submit-loading": o(M).loading,
332
- onSubmit: o(T),
333
- onReset: o(z)
389
+ "submit-loading": a(j).loading,
390
+ onSubmit: a(N),
391
+ onReset: a(T)
334
392
  }), J({
335
- default: v(() => [
336
- (s(!0), I(Q, null, L(W.value, (l) => (s(), p(D(l.renderNode.Comp), h({
337
- key: l.dataIndex,
338
- item: l,
393
+ default: C(() => [
394
+ (d(!0), E(Q, null, V($.value, (r) => (d(), p(K(r.renderNode.Comp), h({
395
+ key: r.dataIndex,
396
+ item: r,
339
397
  ref_for: !0
340
- }, l.fieldProps || {}, {
341
- span: l.span,
342
- "custom-render": l.renderNode.render
398
+ }, r.fieldProps || {}, {
399
+ span: r.span,
400
+ "custom-render": r.renderNode.render
343
401
  }), null, 16, ["item", "span", "custom-render"]))), 128))
344
402
  ]),
345
403
  _: 2
346
404
  }, [
347
- C.searchFormExtra ? {
405
+ y.searchFormExtra ? {
348
406
  name: "extra",
349
- fn: v(() => [
350
- O(e.$slots, "searchFormExtra")
407
+ fn: C(() => [
408
+ L(e.$slots, "searchFormExtra")
351
409
  ]),
352
410
  key: "0"
353
411
  } : void 0
354
412
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
355
- ], 6)) : y("", !0),
356
- E("div", {
357
- class: g([o(P)("table-wrapper"), e.card ? o(P)("table-wrapper-card") : null]),
358
- style: V(e.tableWrapperStyle)
413
+ ], 6)) : S("", !0),
414
+ B("div", {
415
+ class: g([a(I)("table-wrapper"), e.card ? a(I)("table-wrapper-card") : null]),
416
+ style: A(e.tableWrapperStyle)
359
417
  }, [
360
- E("div", {
361
- class: g(o(c)("header-wrapper"))
418
+ B("div", {
419
+ class: g(a(u)("header-wrapper"))
362
420
  }, [
363
- O(e.$slots, "title", {
364
- selectedRows: o(R),
365
- selectedRowKeys: o(k).selectedRowKeys,
366
- shownColumns: d.value,
367
- clearAll: A
421
+ L(e.$slots, "title", {
422
+ selectedRows: a(z),
423
+ selectedRowKeys: a(m).selectedRowKeys,
424
+ shownColumns: i.value,
425
+ clearAll: _
368
426
  })
369
427
  ], 2),
370
- E("div", {
371
- class: g(o(c)("vxe-wrapper"))
428
+ B("div", {
429
+ class: g(a(u)("vxe-wrapper"))
372
430
  }, [
373
- (s(), p(o(Ne), h(o(Ke)(a), {
431
+ (d(), p(a(je), h(a(eo)(t), {
374
432
  ref_key: "tableRef",
375
- ref: m,
376
- key: o(ie),
377
- data: o(f).records,
378
- "sort-config": { remote: j.value.length > 0 },
379
- "filter-config": { remote: H.value.length > 0 },
380
- loading: ye.value,
381
- style: {
382
- "--vxe-ui-table-row-checkbox-checked-background-color": o(i).controlItemBgActive,
383
- "--vxe-ui-table-row-hover-checkbox-checked-background-color": o(i).controlItemBgActiveHover,
384
- "--vxe-ui-font-primary-color": o(i).colorPrimary,
385
- "--vxe-ui-table-header-background-color": "var(--ap-table-header-bg)",
386
- "--vxe-ui-table-cell-padding-default": "12px",
387
- "--vxe-ui-table-cell-padding-medium": "9px",
388
- "--vxe-ui-table-row-radio-checked-background-color": o(i).controlItemBgActive,
389
- "--vxe-ui-table-row-hover-radio-checked-background-color": o(i).controlItemBgActiveHover,
390
- "--vxe-ui-font-color": o(i).colorTextBase,
391
- "--vxe-ui-table-border-color": o(i).colorBorderSecondary,
392
- "--vxe-ui-table-header-font-color": o(i).colorTextBase
433
+ ref: s,
434
+ key: a(pe),
435
+ data: a(f).records,
436
+ "sort-config": {
437
+ remote: M.value.length > 0,
438
+ trigger: "cell"
439
+ },
440
+ "filter-config": {
441
+ remote: W.value.length > 0
393
442
  },
443
+ loading: ke.value,
444
+ style: a(ie),
394
445
  size: x.value,
395
- onSortChange: o(he),
396
- onFilterChange: o(ve),
397
- onCheckboxChange: _,
398
- onCheckboxRangeChange: _,
399
- onCheckboxAll: _,
400
- onRadioChange: xe
446
+ onSortChange: a(Se),
447
+ onFilterChange: a(Re),
448
+ onCheckboxChange: Ee,
449
+ onCheckboxRangeChange: Ie,
450
+ onCheckboxAll: Be,
451
+ onRadioChange: Pe,
452
+ onCurrentChange: Ne
401
453
  }), J({
402
- empty: v(() => [
403
- X(o(ae), {
404
- image: o(ae).PRESENTED_IMAGE_SIMPLE
454
+ empty: C(() => [
455
+ X(a(ae), {
456
+ image: a(ae).PRESENTED_IMAGE_SIMPLE
405
457
  }, null, 8, ["image"])
406
458
  ]),
407
- default: v(() => [
408
- a.expandable ? (s(), p(o(Y), h({ key: 0 }, o(We)(e.expandable), { fixed: be.value }), {
409
- content: v((l) => [
410
- (s(), p(D(a.expandable.renderContent(l))))
459
+ default: C(() => [
460
+ t.expandable && i.value.length ? (d(), p(a(Y), h({ key: 0 }, a(oo)(e.expandable), { fixed: xe.value }), {
461
+ content: C((r) => [
462
+ (d(), p(K(t.expandable.renderContent(r))))
411
463
  ]),
412
464
  _: 1
413
- }, 16, ["fixed"])) : y("", !0),
414
- a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(je)(o(k), d.value), { field: o(Ge) }), null, 16, ["field"])) : y("", !0),
415
- (s(!0), I(Q, null, L(o(de), (l) => (s(), p(D(l), {
416
- key: l.props.colId
465
+ }, 16, ["fixed"])) : S("", !0),
466
+ t.rowSelection && i.value.length ? (d(), p(a(Y), h({ key: 1 }, a(to)(a(m), i.value), { field: a(so) }), null, 16, ["field"])) : S("", !0),
467
+ (d(!0), E(Q, null, V(a(ce), (r) => (d(), p(K(r), {
468
+ key: r.props.colId
417
469
  }))), 128))
418
470
  ]),
419
471
  _: 2
420
472
  }, [
421
- L(o(Te)(C, ["searchFormExtra"]), (l, t) => ({
422
- name: t,
423
- fn: v((u) => [
424
- O(e.$slots, t, Ee(Pe(u || {})))
473
+ V(a(He)(y, ["searchFormExtra"]), (r, l) => ({
474
+ name: l,
475
+ fn: C((c) => [
476
+ L(e.$slots, l, Me(We(c || {})))
425
477
  ])
426
478
  }))
427
479
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
428
480
  ], 2),
429
- E("div", {
430
- class: g(o(c)("pagination-wrapper"))
481
+ B("div", {
482
+ class: g(a(u)("pagination-wrapper"))
431
483
  }, [
432
- e.sticky ? (s(), p(o(ao), {
484
+ e.sticky ? (d(), p(a(Co), {
433
485
  key: 0,
434
486
  direction: "horizontal",
435
- "scroll-container": ce.value,
487
+ "scroll-container": fe.value,
436
488
  "extra-size": -4.2,
437
- "bar-color": "var(--basic-scrollbar-thumb-color-base, #bfbfbf)",
489
+ "bar-color": "var(--ap-scrollbar-thumb-color-base)",
438
490
  "track-color": "var(--ap-table-header-bg, #f2f6f9)"
439
- }, null, 8, ["scroll-container"])) : y("", !0),
440
- e.pagination !== !1 ? (s(), p(o(Oe), h({
491
+ }, null, 8, ["scroll-container"])) : S("", !0),
492
+ e.pagination !== !1 ? (d(), p(a(Ye), h({
441
493
  key: 1,
442
- class: o(c)("pagination")
443
- }, o(M).pagination, { onChange: o(Ce) }), null, 16, ["class", "onChange"])) : y("", !0)
494
+ class: a(u)("pagination")
495
+ }, a(j).pagination, { onChange: a(be) }), null, 16, ["class", "onChange"])) : S("", !0)
444
496
  ], 2)
445
497
  ], 6)
446
498
  ], 6));
447
499
  }
448
500
  });
449
501
  export {
450
- No as default
502
+ qo as default
451
503
  };