@aplus-frontend/ui 0.6.0-beta.9 → 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 (506) 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 +9 -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/hooks/use-count-per-row.mjs +31 -13
  37. package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
  38. package/es/src/ap-form/search-form/index.vue.mjs +63 -62
  39. package/es/src/ap-form/set/index.vue.mjs +20 -20
  40. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  41. package/es/src/ap-grid/editable/index.vue.mjs +13 -10
  42. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  43. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  44. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  45. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  46. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  47. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  48. package/es/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  49. package/es/src/ap-grid/hooks/use-table-style.mjs +26 -0
  50. package/es/src/ap-grid/index.vue.mjs +295 -243
  51. package/es/src/ap-grid/interface.d.ts +32 -3
  52. package/es/src/ap-grid/utils/table.mjs +15 -15
  53. package/es/src/ap-list/index.vue.d.ts +2 -9
  54. package/es/src/ap-list/index.vue.mjs +113 -103
  55. package/es/src/ap-list/interface.d.ts +24 -3
  56. package/es/src/ap-modal/interface.d.ts +2 -1
  57. package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
  58. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  59. package/es/src/ap-table/ap-table.vue2.mjs +86 -82
  60. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  61. package/es/src/ap-table/constants.d.ts +22 -22
  62. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  63. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
  64. package/es/src/ap-table/interface.d.ts +17 -4
  65. package/es/src/ap-table/utils.d.ts +21 -21
  66. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
  67. package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
  68. package/es/src/business/ap-card/index.d.ts +2 -4
  69. package/es/src/business/ap-card/interface.d.ts +5 -0
  70. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  71. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  72. package/es/src/business/ap-copy/constans.d.ts +24 -0
  73. package/es/src/business/ap-copy/constans.mjs +25 -0
  74. package/es/src/business/ap-copy/index.d.ts +102 -0
  75. package/es/src/business/ap-copy/index.mjs +7 -0
  76. package/es/src/business/ap-copy/interface.d.ts +8 -0
  77. package/es/src/business/ap-copy/interface.mjs +1 -0
  78. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  79. package/es/src/business/ap-copy/style/css.js +1 -0
  80. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  81. package/es/src/business/ap-copy/style/index.js +1 -0
  82. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +51 -49
  83. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  84. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  85. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  86. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  87. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  88. package/es/src/business/ap-keep-alive/index.d.ts +108 -0
  89. package/es/src/business/ap-keep-alive/index.mjs +15 -0
  90. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  91. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  92. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  93. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  94. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  95. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  96. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  97. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  98. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  99. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  100. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  101. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  102. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  103. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  108. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  109. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  110. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  111. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  112. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  113. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  114. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  115. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  116. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  118. package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
  119. package/es/src/business/ap-keep-alive/utils.mjs +42 -0
  120. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  121. package/es/src/business/ap-label/interface.d.ts +2 -3
  122. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  123. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  124. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  125. package/es/src/business/ap-product-info/constans.mjs +4 -0
  126. package/es/src/business/ap-product-info/index.d.ts +15 -0
  127. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  128. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  129. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  130. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
  131. package/es/src/business/ap-radio-group/index.d.ts +66 -0
  132. package/es/src/business/ap-radio-group/index.mjs +8 -0
  133. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  134. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  135. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  136. package/es/src/business/ap-radio-group/style/css.js +1 -0
  137. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  138. package/es/src/business/ap-radio-group/style/index.js +1 -0
  139. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  140. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  141. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  142. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  143. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  144. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  145. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  146. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
  147. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  148. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  149. package/es/src/business/ap-view/index.d.ts +12 -3
  150. package/es/src/business/ap-view/interface.d.ts +7 -0
  151. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  152. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  153. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  154. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  155. package/es/src/business/index.d.ts +3 -0
  156. package/es/src/business/index.mjs +36 -30
  157. package/es/src/components.d.ts +1 -0
  158. package/es/src/editable-table/form-item.vue.mjs +23 -23
  159. package/es/src/full-screen/interface.d.ts +5 -6
  160. package/es/src/index.mjs +112 -97
  161. package/es/src/locale/lang/en.mjs +4 -0
  162. package/es/src/locale/lang/zh-cn.mjs +4 -0
  163. package/es/src/mask/index.vue.mjs +21 -20
  164. package/es/src/path-map.mjs +3 -1
  165. package/es/src/resize-observer/interface.d.ts +2 -3
  166. package/es/src/scroll-bar/interface.d.ts +7 -7
  167. package/es/src/scroll-view/interface.d.ts +2 -3
  168. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  169. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  170. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  171. package/es/src/tests/mock-warning.d.ts +1 -0
  172. package/es/src/tests/utils.d.ts +8 -0
  173. package/es/src/text/group.vue.mjs +7 -6
  174. package/es/src/text/index.vue.mjs +20 -19
  175. package/es/src/version.d.ts +2 -0
  176. package/es/src/version.mjs +4 -0
  177. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  178. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  179. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  180. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  181. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  182. package/es/test/setup.d.ts +5 -0
  183. package/lib/index.js +1 -1
  184. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  185. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  186. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  187. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  188. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  189. package/lib/src/ap-drawer/index.d.ts +2 -0
  190. package/lib/src/ap-drawer/index.js +1 -1
  191. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  192. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  193. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  194. package/lib/src/ap-field/number/index.vue.d.ts +2 -4
  195. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  196. package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
  197. package/lib/src/ap-field/select/index.vue.d.ts +3 -6
  198. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  199. package/lib/src/ap-field/text/index.vue2.js +1 -1
  200. package/lib/src/ap-field/text/password.vue.js +1 -1
  201. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  202. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  203. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  204. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  205. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  206. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  207. package/lib/src/ap-form/interface.d.ts +9 -5
  208. package/lib/src/ap-form/item/index.vue.d.ts +5 -10
  209. package/lib/src/ap-form/item/index.vue.js +1 -1
  210. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  211. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  212. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  213. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  214. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  215. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  216. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  217. package/lib/src/ap-form/provider/index.vue.js +1 -1
  218. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  219. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -8
  220. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  221. package/lib/src/ap-form/set/index.vue.js +1 -1
  222. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  223. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  224. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  225. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  226. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  227. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  228. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  229. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  230. package/lib/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  231. package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
  232. package/lib/src/ap-grid/index.vue.js +1 -1
  233. package/lib/src/ap-grid/interface.d.ts +32 -3
  234. package/lib/src/ap-grid/utils/table.js +1 -1
  235. package/lib/src/ap-list/index.vue.d.ts +2 -9
  236. package/lib/src/ap-list/index.vue.js +1 -1
  237. package/lib/src/ap-list/interface.d.ts +24 -3
  238. package/lib/src/ap-modal/interface.d.ts +2 -1
  239. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  240. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  241. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  242. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  243. package/lib/src/ap-table/constants.d.ts +22 -22
  244. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  245. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  246. package/lib/src/ap-table/interface.d.ts +17 -4
  247. package/lib/src/ap-table/utils.d.ts +21 -21
  248. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
  249. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  250. package/lib/src/business/ap-card/index.d.ts +2 -4
  251. package/lib/src/business/ap-card/interface.d.ts +5 -0
  252. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  253. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  254. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  255. package/lib/src/business/ap-copy/constans.js +1 -0
  256. package/lib/src/business/ap-copy/index.d.ts +102 -0
  257. package/lib/src/business/ap-copy/index.js +1 -0
  258. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  259. package/lib/src/business/ap-copy/interface.js +1 -0
  260. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  261. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  262. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  263. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  264. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  265. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  266. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  267. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  268. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  269. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  270. package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
  271. package/lib/src/business/ap-keep-alive/index.js +1 -0
  272. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  273. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  274. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  275. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  276. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  277. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  278. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  279. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  280. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  281. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  282. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  283. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  284. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  285. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  286. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  287. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  288. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  289. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  290. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  291. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  292. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  293. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  294. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  295. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  296. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  297. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  298. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  299. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  300. package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
  301. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  302. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  303. package/lib/src/business/ap-label/interface.d.ts +2 -3
  304. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  305. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  306. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  307. package/lib/src/business/ap-product-info/constans.js +1 -1
  308. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  309. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  310. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  311. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  312. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  313. package/lib/src/business/ap-radio-group/index.d.ts +66 -0
  314. package/lib/src/business/ap-radio-group/index.js +1 -0
  315. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  316. package/lib/src/business/ap-radio-group/interface.js +1 -0
  317. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  318. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  319. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  320. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  321. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  322. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  323. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  324. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  325. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  326. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  327. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  328. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  329. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  330. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  331. package/lib/src/business/ap-view/index.d.ts +12 -3
  332. package/lib/src/business/ap-view/interface.d.ts +7 -0
  333. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  334. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  335. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  336. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  337. package/lib/src/business/index.d.ts +3 -0
  338. package/lib/src/business/index.js +1 -1
  339. package/lib/src/components.d.ts +1 -0
  340. package/lib/src/editable-table/form-item.vue.js +1 -1
  341. package/lib/src/full-screen/interface.d.ts +5 -6
  342. package/lib/src/index.js +1 -1
  343. package/lib/src/locale/lang/en.js +1 -1
  344. package/lib/src/locale/lang/zh-cn.js +1 -1
  345. package/lib/src/mask/index.vue.js +1 -1
  346. package/lib/src/path-map.js +1 -1
  347. package/lib/src/resize-observer/interface.d.ts +2 -3
  348. package/lib/src/scroll-bar/interface.d.ts +7 -7
  349. package/lib/src/scroll-view/interface.d.ts +2 -3
  350. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  351. package/lib/src/splitter/Splitter.vue2.js +1 -1
  352. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  353. package/lib/src/tests/mock-warning.d.ts +1 -0
  354. package/lib/src/tests/utils.d.ts +8 -0
  355. package/lib/src/text/group.vue.js +1 -1
  356. package/lib/src/text/index.vue.js +1 -1
  357. package/lib/src/version.d.ts +2 -0
  358. package/lib/src/version.js +1 -0
  359. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  360. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  361. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  362. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  363. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  364. package/lib/test/setup.d.ts +5 -0
  365. package/package.json +18 -14
  366. package/theme/antd-global-overwrite/admin/alert.css +5 -18
  367. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  368. package/theme/antd-global-overwrite/admin/button.css +13 -13
  369. package/theme/antd-global-overwrite/admin/button.less +24 -24
  370. package/theme/antd-global-overwrite/admin/drawer.css +3 -0
  371. package/theme/antd-global-overwrite/admin/drawer.less +5 -0
  372. package/theme/antd-global-overwrite/admin/field.css +42 -0
  373. package/theme/antd-global-overwrite/admin/field.less +43 -0
  374. package/theme/antd-global-overwrite/admin/index.css +93 -631
  375. package/theme/antd-global-overwrite/admin/index.less +1 -3
  376. package/theme/antd-global-overwrite/admin/message.css +2 -9
  377. package/theme/antd-global-overwrite/admin/message.less +2 -10
  378. package/theme/antd-global-overwrite/admin/modal.css +20 -34
  379. package/theme/antd-global-overwrite/admin/modal.less +20 -38
  380. package/theme/antd-global-overwrite/admin/table.css +11 -251
  381. package/theme/antd-global-overwrite/admin/table.less +4 -132
  382. package/theme/antd-global-overwrite/aplus/alert.css +8 -18
  383. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  384. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  385. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  386. package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
  387. package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
  388. package/theme/antd-global-overwrite/aplus/field.css +36 -0
  389. package/theme/antd-global-overwrite/aplus/field.less +36 -0
  390. package/theme/antd-global-overwrite/aplus/index.css +93 -679
  391. package/theme/antd-global-overwrite/aplus/index.less +0 -3
  392. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  393. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  394. package/theme/antd-global-overwrite/aplus/modal.css +18 -39
  395. package/theme/antd-global-overwrite/aplus/modal.less +19 -45
  396. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  397. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  398. package/theme/ap-action/item-dropdown.css +3 -3
  399. package/theme/ap-action/item.css +21 -10
  400. package/theme/ap-action/item.less +18 -6
  401. package/theme/ap-appendix/ap-appendix.css +10 -10
  402. package/theme/ap-appendix/ap-appendix.less +6 -6
  403. package/theme/ap-attachment/ap-attachment.css +4 -4
  404. package/theme/ap-batch-action/ap-batch-action.css +6 -6
  405. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  406. package/theme/ap-button/ap-button.css +3 -3
  407. package/theme/ap-card/ap-card.css +4 -4
  408. package/theme/ap-card/ap-card.less +1 -1
  409. package/theme/ap-copy/ap-copy.css +96 -0
  410. package/theme/ap-copy/ap-copy.less +61 -0
  411. package/theme/ap-descriptions/ap-descriptions.css +9 -7
  412. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  413. package/theme/ap-download/ap-download.css +6 -6
  414. package/theme/ap-drawer/ap-drawer.css +66 -0
  415. package/theme/ap-drawer/ap-drawer.less +27 -0
  416. package/theme/ap-expand-alert/ap-expand-alert.css +4 -3
  417. package/theme/ap-expand-alert/ap-expand-alert.less +2 -2
  418. package/theme/ap-field/checkbox.css +3 -3
  419. package/theme/ap-field/index.css +3 -3
  420. package/theme/ap-field/number.css +3 -3
  421. package/theme/ap-field/radio.css +3 -3
  422. package/theme/ap-field/text-area.css +3 -3
  423. package/theme/ap-form/ap-form-item-group.css +3 -3
  424. package/theme/ap-form/ap-form-item.css +11 -8
  425. package/theme/ap-form/ap-form-item.less +8 -5
  426. package/theme/ap-form/drawer-form.css +3 -3
  427. package/theme/ap-form/index.css +22 -19
  428. package/theme/ap-form/item-text-group.css +3 -3
  429. package/theme/ap-form/item-text.css +3 -3
  430. package/theme/ap-form/modal-form.css +3 -3
  431. package/theme/ap-form/search-form-sorter.css +11 -11
  432. package/theme/ap-form/search-form-sorter.less +4 -4
  433. package/theme/ap-form/search-form.css +22 -19
  434. package/theme/ap-form/search-form.less +3 -3
  435. package/theme/ap-grid/editable.css +3 -3
  436. package/theme/ap-grid/index.css +70 -39
  437. package/theme/ap-grid/index.less +26 -8
  438. package/theme/ap-group-search/ap-extension-select.css +3 -3
  439. package/theme/ap-group-search/ap-group-search.css +3 -3
  440. package/theme/ap-group-search/ap-popover-select.css +3 -3
  441. package/theme/ap-image/ap-image.css +3 -3
  442. package/theme/ap-input-radio/ap-input-radio.css +3 -3
  443. package/theme/ap-label/ap-label.css +3 -3
  444. package/theme/ap-ladder/ap-ladder.css +6 -6
  445. package/theme/ap-layout/ap-info-layout.css +3 -3
  446. package/theme/ap-list/index.css +3 -3
  447. package/theme/ap-product-info/ap-product-info.css +23 -33
  448. package/theme/ap-product-info/ap-product-info.less +28 -42
  449. package/theme/ap-radio-group/ap-radio-group.css +66 -0
  450. package/theme/ap-radio-group/ap-radio-group.less +26 -0
  451. package/theme/ap-select-layout/ap-select-layout.css +5 -5
  452. package/theme/ap-size-input/ap-size-input.css +3 -3
  453. package/theme/ap-status/ap-status.css +3 -3
  454. package/theme/ap-summary/index.css +3 -3
  455. package/theme/ap-table/ap-table-index.css +3 -3
  456. package/theme/ap-table/ap-table-paragraph-ellipsis.css +4 -4
  457. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  458. package/theme/ap-table/ap-table.css +76 -46
  459. package/theme/ap-table/ap-table.less +19 -7
  460. package/theme/ap-table/setting/index.css +17 -12
  461. package/theme/ap-table/setting/modal.css +9 -5
  462. package/theme/ap-table/setting/modal.less +5 -1
  463. package/theme/ap-table/setting/select-group.css +3 -3
  464. package/theme/ap-table/setting/sortable-item-meta.css +5 -5
  465. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  466. package/theme/ap-table/setting/sortable-item.css +3 -3
  467. package/theme/ap-table/setting/sorter.css +9 -8
  468. package/theme/ap-table/setting/sorter.less +4 -4
  469. package/theme/ap-table-modal/index.css +91 -59
  470. package/theme/ap-table-modal/index.less +15 -13
  471. package/theme/ap-tag/ap-tag-group.css +3 -3
  472. package/theme/ap-tag/ap-tag.css +7 -7
  473. package/theme/ap-tag/ap-tag.less +1 -1
  474. package/theme/ap-title/ap-title.css +3 -3
  475. package/theme/ap-upload/index.css +4 -4
  476. package/theme/ap-upload/multiple-file.css +3 -3
  477. package/theme/ap-upload/picture.css +3 -3
  478. package/theme/ap-upload/single-file.css +4 -4
  479. package/theme/ap-upload/upload.css +3 -3
  480. package/theme/ap-upload-single/index.css +7 -7
  481. package/theme/ap-upload-single/index.less +4 -4
  482. package/theme/ap-view/ap-view.css +10 -10
  483. package/theme/ap-view/ap-view.less +7 -7
  484. package/theme/batch-input-group/index.css +5 -5
  485. package/theme/batch-input-group/popover-input.css +5 -5
  486. package/theme/batch-input-group/popover-input.less +2 -2
  487. package/theme/check-card/index.css +11 -11
  488. package/theme/check-card/index.less +5 -5
  489. package/theme/editable-table/index.css +40 -26
  490. package/theme/full-screen/index.css +3 -3
  491. package/theme/index.css +344 -244
  492. package/theme/index.less +3 -0
  493. package/theme/mask/index.css +3 -3
  494. package/theme/mixins/config.less +3 -3
  495. package/theme/mixins/mixins.css +3 -3
  496. package/theme/mixins/mixins.less +2 -2
  497. package/theme/scroll-bar/index.css +3 -3
  498. package/theme/scroll-view/index.css +3 -3
  499. package/theme/splitter/index.css +7 -7
  500. package/theme/splitter/index.less +1 -1
  501. package/theme/text/group.css +3 -3
  502. package/theme/text/index.css +8 -8
  503. package/theme/text/index.less +4 -4
  504. package/theme/ui-mode.css +51 -83
  505. package/theme/ui-mode.less +99 -83
  506. package/theme/work-order-modal/index.css +3 -3
@@ -1,23 +1,23 @@
1
- import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as n, watch as V, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
2
- import { Col as R, Flex as N, Button as M, Row as ie } from "@aplus-frontend/antdv";
1
+ import { isVNode as oe, defineComponent as ae, useSlots as ne, ref as L, shallowRef as U, computed as _, unref as a, watch as V, createVNode as t, Fragment as w, createBlock as y, openBlock as f, mergeProps as le, withCtx as A, resolveDynamicComponent as B, createElementBlock as re, renderList as se } from "vue";
2
+ import { Col as R, Flex as N, Button as W, Row as ie } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import { genRealChildren as W } from "../item-group/helper.mjs";
5
+ import { genRealChildren as M } from "../item-group/helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { isArray as ue, isBoolean as ce, omit as pe } from "lodash-unified";
8
- import { isDef as D } from "../../utils/index.mjs";
9
- import { execFunc as q, diffFormItem as de } from "./utils.mjs";
8
+ import { isDef as z } from "../../utils/index.mjs";
9
+ import { execFunc as D, diffFormItem as de } from "./utils.mjs";
10
10
  import "./components/popover-filter.vue.mjs";
11
11
  import { useCountPerRow as fe } from "./hooks/use-count-per-row.mjs";
12
12
  import "./components/popover-sorter/index.vue.mjs";
13
13
  import { useNamespace as me } from "../../config-provider/hooks/use-namespace.mjs";
14
14
  import { useLocale as he } from "../../config-provider/hooks/use-locale.mjs";
15
- import z from "../item/index.vue.mjs";
15
+ import q from "../item/index.vue.mjs";
16
16
  import xe from "./components/popover-filter.vue2.mjs";
17
17
  import ye from "./components/popover-sorter/index.vue2.mjs";
18
18
  import ge from "../ap-form.vue2.mjs";
19
- function ve(f) {
20
- return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !oe(f);
19
+ function ve(m) {
20
+ return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !oe(m);
21
21
  }
22
22
  const s = 24, Ue = /* @__PURE__ */ ae({
23
23
  name: "ApFormSearchForm",
@@ -108,59 +108,60 @@ const s = 24, Ue = /* @__PURE__ */ ae({
108
108
  sortable: {
109
109
  type: Boolean,
110
110
  default: !0
111
- }
111
+ },
112
+ resizeTarget: {}
112
113
  },
113
- setup(f, {
114
+ setup(m, {
114
115
  expose: H
115
116
  }) {
116
117
  var P;
117
- const i = ne(), o = f, {
118
- b: m
118
+ const i = ne(), o = m, {
119
+ b: h
119
120
  } = me("ap-form-search-form"), {
120
121
  t: k
121
- } = he(), G = fe(o), y = L();
122
- function I() {
123
- var a;
124
- const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
125
- q(o.onSubmit, e);
122
+ } = he(), G = fe(o), g = L();
123
+ function T() {
124
+ var n;
125
+ const e = (n = g.value) == null ? void 0 : n.getFieldsValueTransformed(!0);
126
+ D(o.onSubmit, e);
126
127
  }
127
128
  function J() {
128
- var e, a;
129
- o.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), q(o.onReset);
129
+ var e, n;
130
+ o.customReset || (n = (e = g.value) == null ? void 0 : e.resetFields) == null || n.call(e), D(o.onReset);
130
131
  }
131
- const K = (e) => D(e) ? (ue(e) ? e : [e]).join("") : Date.now();
132
- let T = [];
133
- const u = U(W(i.default())), b = L(!1), c = U((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / n(G)));
132
+ const K = (e) => z(e) ? (ue(e) ? e : [e]).join("") : Date.now();
133
+ let I = [];
134
+ const u = U(M(i.default())), b = L(!1), p = U((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / a(G)));
134
135
  V(() => i.default(), (e) => {
135
- T = u.value, u.value = de(T, W(e)), b.value = !1;
136
+ I = u.value, u.value = de(I, M(e)), b.value = !1;
136
137
  }), V(() => {
137
138
  var e;
138
139
  return (e = i.extra) == null ? void 0 : e.call(i);
139
140
  }, (e) => {
140
- c.value = e;
141
+ p.value = e;
141
142
  });
142
143
  const l = _(() => {
143
- const e = u.value, a = [], r = [], g = [], h = n(E);
144
+ const e = u.value, n = [], r = [], x = [], c = a(E);
144
145
  let v = 0, S = 0;
145
- const Y = s * o.maxRows - h * (n(c) && !o.extraInAction ? 2 : 1);
146
+ const Y = s * o.maxRows - c * (a(p) && !o.extraInAction ? 2 : 1);
146
147
  e.forEach((F, te) => {
147
- const p = F.props;
148
- if (ce(p.hidden) ? !!p.hidden : D(p.hidden))
149
- a.push(F);
148
+ const d = F.props;
149
+ if (ce(d.hidden) ? !!d.hidden : z(d.hidden))
150
+ n.push(F);
150
151
  else {
151
- let C = p.span || h;
152
+ let C = d.span || c;
152
153
  const $ = {
153
154
  node: F,
154
155
  span: C,
155
- key: `ApFormSearchFormItem-${te}-${K(p.name)}-${p._signal}`
156
+ key: `ApFormSearchFormItem-${te}-${K(d.name)}-${d._signal}`
156
157
  }, j = s - v % s;
157
- j < C && (C += j), v += C, v > Y ? r.push($) : (S = v, g.push($));
158
+ j < C && (C += j), v += C, v > Y ? r.push($) : (S = v, x.push($));
158
159
  }
159
160
  });
160
- const O = s - (S + h) % s, Z = S % s < h, ee = O < h ? s : O;
161
+ const O = s - (S + c) % s, Z = S % s < c, ee = O < c ? s : O;
161
162
  return {
162
- hideNode: t(w, null, [a]),
163
- nodes: g,
163
+ hideNode: t(w, null, [n]),
164
+ nodes: x,
164
165
  collapseNodes: r,
165
166
  extraSpan: ee,
166
167
  lastRowOnlyIncludeActionAndExtra: Z
@@ -171,80 +172,80 @@ const s = 24, Ue = /* @__PURE__ */ ae({
171
172
  }
172
173
  const X = _(() => {
173
174
  let e;
174
- const a = t(R, {
175
- span: n(E),
175
+ const n = l.value.collapseNodes.length || o.sortable && u.value.length, r = t(R, {
176
+ span: a(E),
176
177
  key: "actionWrapper"
177
178
  }, {
178
- default: () => [t(z, null, {
179
+ default: () => [t(q, null, {
179
180
  default: () => [t(N, {
180
181
  wrap: "wrap",
181
- justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(c) && o.extraInAction) ? "flex-end" : "space-between"
182
+ justify: l.value.lastRowOnlyIncludeActionAndExtra && !(a(p) && o.extraInAction) ? "flex-end" : "space-between"
182
183
  }, {
183
184
  default: () => [t(N, {
184
185
  gap: 8,
185
186
  wrap: "wrap"
186
187
  }, {
187
- default: () => [t("div", {
188
- class: m("column-setting-trigger-wrapper")
188
+ default: () => [n ? t("div", {
189
+ class: h("column-setting-trigger-wrapper")
189
190
  }, [l.value.collapseNodes.length ? t(xe, {
190
- onSubmit: I,
191
+ onSubmit: T,
191
192
  config: l.value.collapseNodes,
192
193
  submitLoading: o.submitLoading
193
194
  }, null) : null, o.sortable && u.value.length ? t(ye, {
194
195
  children: u.value,
195
196
  onClickConfirm: Q,
196
197
  sorted: b.value
197
- }, null) : null]), t(M, {
198
+ }, null) : null]) : null, t(W, {
198
199
  type: "primary",
199
- onClick: I,
200
+ onClick: T,
200
201
  loading: o.submitLoading,
201
202
  htmlType: "submit",
202
- class: m("action-btn")
203
+ class: h("action-btn")
203
204
  }, {
204
205
  default: () => [o.searchText || k("ap.apForm.search.search")]
205
- }), t(M, {
206
+ }), t(W, {
206
207
  onClick: J,
207
208
  type: "text",
208
- class: [m("action-btn"), m("action-btn-reset")]
209
+ class: [h("action-btn"), h("action-btn-reset")]
209
210
  }, {
210
211
  default: () => [o.resetText || k("ap.apForm.search.reset")]
211
212
  })]
212
- }), o.extraInAction ? n(c) : null]
213
+ }), o.extraInAction ? a(p) : null]
213
214
  })]
214
215
  })]
215
- }), r = !o.extraInAction && n(c) ? t(R, {
216
+ }), x = !o.extraInAction && a(p) ? t(R, {
216
217
  span: l.value.extraSpan,
217
218
  key: "extraNode"
218
219
  }, {
219
- default: () => [t(z, null, {
220
+ default: () => [t(q, null, {
220
221
  default: () => [t(N, {
221
222
  justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
222
- }, ve(e = n(c)) ? e : {
223
+ }, ve(e = a(p)) ? e : {
223
224
  default: () => [e]
224
225
  })]
225
226
  })]
226
- }) : null, g = t(R, {
227
+ }) : null, c = t(R, {
227
228
  span: l.value.extraSpan
228
229
  }, null);
229
- return l.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [r || g, a]) : t(w, null, [a, r]);
230
+ return l.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [x || c, r]) : t(w, null, [r, x]);
230
231
  });
231
232
  return H({
232
- apForm: _(() => n(y))
233
- }), (e, a) => (d(), x(ge, le({
233
+ apForm: _(() => a(g))
234
+ }), (e, n) => (f(), y(ge, le({
234
235
  ref_key: "apForm",
235
- ref: y,
236
- class: n(m)()
237
- }, n(pe)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
238
- default: A(() => [(d(), x(B(l.value.hideNode))), t(n(ie), {
236
+ ref: g,
237
+ class: a(h)()
238
+ }, a(pe)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
239
+ default: A(() => [(f(), y(B(l.value.hideNode))), t(a(ie), {
239
240
  gutter: 8
240
241
  }, {
241
- default: A(() => [(d(!0), re(w, null, se(l.value.nodes, (r) => (d(), x(n(R), {
242
+ default: A(() => [(f(!0), re(w, null, se(l.value.nodes, (r) => (f(), y(a(R), {
242
243
  key: r.key,
243
244
  span: r.span
244
245
  }, {
245
- default: A(() => [(d(), x(B(r.node)))]),
246
+ default: A(() => [(f(), y(B(r.node)))]),
246
247
  _: 2
247
- }, 1032, ["span"]))), 128)), (d(), x(B(X.value)))]),
248
+ }, 1032, ["span"]))), 128)), (f(), y(B(X.value)))]),
248
249
  _: 1
249
250
  })]),
250
251
  _: 1
@@ -1,8 +1,9 @@
1
- import { defineComponent as c, useSlots as u, ref as f, watchEffect as p, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as m, Fragment as y, renderList as k, createBlock as F, resolveDynamicComponent as h } from "vue";
2
- import { useInjectForm as v } from "../context.mjs";
3
- import { isFunction as w, cloneDeep as x } from "lodash-unified";
4
- import { isPromise as B } from "@fruits-chain/utils";
5
- const j = /* @__PURE__ */ c({
1
+ import { defineComponent as p, useSlots as f, cloneVNode as d, onMounted as V, createElementBlock as _, openBlock as l, Fragment as y, renderList as C, createBlock as F, resolveDynamicComponent as k } from "vue";
2
+ import { useInjectForm as g } from "../context.mjs";
3
+ import { isFunction as h, cloneDeep as w } from "lodash-unified";
4
+ import { isPromise as x } from "@fruits-chain/utils";
5
+ const v = /* @__PURE__ */ p({
6
+ name: "ApFormSet",
6
7
  __name: "index",
7
8
  props: {
8
9
  name: {},
@@ -11,25 +12,24 @@ const j = /* @__PURE__ */ c({
11
12
  transform: {}
12
13
  },
13
14
  setup(s) {
14
- const { internalInstance: t } = v(), a = u(), e = s, l = f([]);
15
- return p(() => {
16
- if (a != null && a.default) {
17
- const n = a.default();
18
- l.value = n.map((r, o) => {
19
- const i = e.as === "array" ? [e.name, o] : [e.name, r.props.name];
20
- return d(r, { name: i });
21
- });
22
- }
23
- }), V(async () => {
24
- let n = w(e.initialValue) ? e.initialValue() : e.initialValue;
25
- B(n) && (n = await n), t == null || t.registerField({
15
+ const { internalInstance: t } = g(), a = f(), e = s, u = () => {
16
+ var o;
17
+ return (((o = a.default) == null ? void 0 : o.call(a)) || []).map((r, i) => {
18
+ var m;
19
+ const c = e.as === "array" ? [e.name, i] : [e.name, ((m = r.props) == null ? void 0 : m.name) || ""];
20
+ return d(r, { name: c });
21
+ });
22
+ };
23
+ return V(async () => {
24
+ let n = h(e.initialValue) ? e.initialValue() : e.initialValue;
25
+ x(n) && (n = await n), t == null || t.registerField({
26
26
  name: e.name,
27
- initialValue: x(n),
27
+ initialValue: w(n),
28
28
  transform: e.transform
29
29
  });
30
- }), (n, r) => (m(!0), _(y, null, k(l.value, (o, i) => (m(), F(h(o), { key: i }))), 128));
30
+ }), (n, o) => (l(!0), _(y, null, C(u(), (r, i) => (l(), F(k(r), { key: i }))), 128));
31
31
  }
32
32
  });
33
33
  export {
34
- j as default
34
+ v as default
35
35
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, useSlots as H, toRef as W, ref as h, unref as r, watch as G, nextTick as U, createBlock as $, openBlock as q, mergeProps as y, withCtx as g, createVNode as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as I } from "vue";
1
+ import { defineComponent as P, useSlots as A, toRef as W, ref as h, unref as r, watch as G, nextTick as U, createBlock as $, openBlock as q, mergeProps as y, withCtx as g, createVNode as J, createSlots as Q, renderList as X, renderSlot as Y, normalizeProps as Z, guardReactiveProps as I } from "vue";
2
2
  import { ApForm as C } from "../../ap-form/index.mjs";
3
3
  import { isArray as w, isUndefined as M, isNumber as m, cloneDeep as ee, omit as oe } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -7,10 +7,10 @@ import { useGetEditableColumns as te } from "../hooks/use-editable-columns.mjs";
7
7
  import "../index.vue2.mjs";
8
8
  import { useInjectForm as ae } from "../../ap-form/context.mjs";
9
9
  import { useNamespace as le } from "../../config-provider/hooks/use-namespace.mjs";
10
- import { useGlobalConfig as fe } from "../../config-provider/hooks/use-global-config.mjs";
11
- import ne from "../index.vue.mjs";
12
- const Ce = /* @__PURE__ */ A({
13
- name: "EditableGrid",
10
+ import { useGlobalConfig as ne } from "../../config-provider/hooks/use-global-config.mjs";
11
+ import fe from "../index.vue.mjs";
12
+ const Ce = /* @__PURE__ */ P({
13
+ name: "EditableGridFormItem",
14
14
  __name: "form-item",
15
15
  props: {
16
16
  dropdownPrefixCls: {},
@@ -145,6 +145,9 @@ const Ce = /* @__PURE__ */ A({
145
145
  },
146
146
  expandable: {},
147
147
  value: {},
148
+ rowHighlightable: {
149
+ type: [Boolean, Function]
150
+ },
148
151
  columns: {},
149
152
  defaultValue: {},
150
153
  "onUpdate:value": {},
@@ -160,11 +163,11 @@ const Ce = /* @__PURE__ */ A({
160
163
  setup(x, {
161
164
  expose: R
162
165
  }) {
163
- const B = H(), l = x, {
166
+ const B = A(), l = x, {
164
167
  b: S
165
168
  } = le("editable-grid");
166
169
  function F(e, t) {
167
- return w(t) ? t.reduce((f, a) => f == null ? void 0 : f[a], e) : e == null ? void 0 : e[t];
170
+ return w(t) ? t.reduce((n, a) => n == null ? void 0 : n[a], e) : e == null ? void 0 : e[t];
168
171
  }
169
172
  const {
170
173
  internalInstance: o,
@@ -176,11 +179,11 @@ const Ce = /* @__PURE__ */ A({
176
179
  }, {
177
180
  deep: !0
178
181
  });
179
- const c = h(), D = fe("valueTypeMap"), V = te(l, D);
182
+ const c = h(), D = ne("valueTypeMap"), V = te(l, D);
180
183
  function L(e, t) {
181
- var n;
182
- const f = ((n = r(d)) == null ? void 0 : n.length) || 0;
183
- if (b(l.maxLength) && f >= l.maxLength)
184
+ var f;
185
+ const n = ((f = r(d)) == null ? void 0 : f.length) || 0;
186
+ if (b(l.maxLength) && n >= l.maxLength)
184
187
  return;
185
188
  const a = {
186
189
  ...e || {}
@@ -195,29 +198,29 @@ const Ce = /* @__PURE__ */ A({
195
198
  }
196
199
  function T(e, t = "suffix") {
197
200
  var s;
198
- const f = ((s = r(d)) == null ? void 0 : s.length) || 0, a = m(e) ? e : e.length;
199
- if (b(l.maxLength) && f + a > l.maxLength)
201
+ const n = ((s = r(d)) == null ? void 0 : s.length) || 0, a = m(e) ? e : e.length;
202
+ if (b(l.maxLength) && n + a > l.maxLength)
200
203
  return;
201
- const n = m(e) ? new Array(e).fill(0).map(() => ({})) : ee(e);
202
- o == null || o.setFieldValue(l.name, n, !0, (u, i) => {
204
+ const f = m(e) ? new Array(e).fill(0).map(() => ({})) : ee(e);
205
+ o == null || o.setFieldValue(l.name, f, !0, (u, i) => {
203
206
  if (!u[i]) {
204
- u[i] = [...n];
207
+ u[i] = [...f];
205
208
  return;
206
209
  }
207
- t === "suffix" ? u[i].push(...n) : u[i].unshift(...n);
210
+ t === "suffix" ? u[i].push(...f) : u[i].unshift(...f);
208
211
  });
209
212
  }
210
213
  function k(e) {
211
214
  const t = new Set(m(e) ? [e] : e);
212
- o == null || o.setFieldValue(l.name, void 0, !0, (f, a) => {
213
- f[a] = f[a].filter((n, s) => !t.has(s));
215
+ o == null || o.setFieldValue(l.name, void 0, !0, (n, a) => {
216
+ n[a] = n[a].filter((f, s) => !t.has(s));
214
217
  });
215
218
  }
216
219
  function _(e) {
217
- var f;
220
+ var n;
218
221
  const t = new Set(w(e) ? e : [e]);
219
- t.size !== 0 && ((f = o == null ? void 0 : o.setFieldValue) == null || f.call(o, l.name, void 0, !0, (a, n) => {
220
- a[n] = a[n].filter((s) => !t.has(s[l.rowKey]));
222
+ t.size !== 0 && ((n = o == null ? void 0 : o.setFieldValue) == null || n.call(o, l.name, void 0, !0, (a, f) => {
223
+ a[f] = a[f].filter((s) => !t.has(s[l.rowKey]));
221
224
  }));
222
225
  }
223
226
  function j() {
@@ -227,15 +230,15 @@ const Ce = /* @__PURE__ */ A({
227
230
  var t;
228
231
  return (t = r(d)) == null ? void 0 : t[e];
229
232
  }
230
- function O(e, t, f = !0) {
231
- o == null || o.setFieldValue(l.name, void 0, !0, (a, n) => {
232
- if (!(!a[n] || !a[n][e])) {
233
- if (!f) {
234
- const s = Object.keys(a[n][e]);
233
+ function O(e, t, n = !0) {
234
+ o == null || o.setFieldValue(l.name, void 0, !0, (a, f) => {
235
+ if (!(!a[f] || !a[f][e])) {
236
+ if (!n) {
237
+ const s = Object.keys(a[f][e]);
235
238
  for (const u of s)
236
- u !== l.rowKey && delete a[n][e][u];
239
+ u !== l.rowKey && delete a[f][e][u];
237
240
  }
238
- Object.assign(a[n][e], {
241
+ Object.assign(a[f][e], {
239
242
  ...t
240
243
  });
241
244
  }
@@ -245,11 +248,11 @@ const Ce = /* @__PURE__ */ A({
245
248
  o == null || o.setFieldValue(l.name, e);
246
249
  }
247
250
  function K(e) {
248
- var f;
251
+ var n;
249
252
  const t = e === "end" ? d.value.length - 1 : e;
250
- (f = c.value) == null || f.scrollToRow(t);
253
+ (n = c.value) == null || n.scrollToRow(t);
251
254
  }
252
- function P() {
255
+ function H() {
253
256
  var e;
254
257
  (e = o == null ? void 0 : o.setFieldValue) == null || e.call(o, l.name, []);
255
258
  }
@@ -262,13 +265,13 @@ const Ce = /* @__PURE__ */ A({
262
265
  addMultiple: T,
263
266
  scrollTo: K,
264
267
  setTableData: z,
265
- clear: P,
268
+ clear: H,
266
269
  removeByKey: _
267
270
  }), (e, t) => (q(), $(r(C).FormItem, y(e.formItem, {
268
271
  name: e.name,
269
272
  label: e.label
270
273
  }), {
271
- default: g(() => [J(ne, y(r(oe)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
274
+ default: g(() => [J(fe, y(r(oe)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange", "defaultValue", "formItem"]), {
272
275
  ref_key: "tableRef",
273
276
  ref: c,
274
277
  class: r(S)(),
@@ -277,9 +280,9 @@ const Ce = /* @__PURE__ */ A({
277
280
  "search-form": !1
278
281
  }), Q({
279
282
  _: 2
280
- }, [X(B, (f, a) => ({
283
+ }, [X(B, (n, a) => ({
281
284
  name: a,
282
- fn: g((n) => [Y(e.$slots, a, Z(I(n || {})))])
285
+ fn: g((f) => [Y(e.$slots, a, Z(I(f || {})))])
283
286
  }))]), 1040, ["class", "columns", "data-source"])]),
284
287
  _: 3
285
288
  }, 16, ["name", "label"]));
@@ -146,6 +146,9 @@ const Re = /* @__PURE__ */ $({
146
146
  },
147
147
  expandable: {},
148
148
  value: {},
149
+ rowHighlightable: {
150
+ type: [Boolean, Function]
151
+ },
149
152
  columns: {},
150
153
  defaultValue: {},
151
154
  "onUpdate:value": {},
@@ -158,12 +161,12 @@ const Re = /* @__PURE__ */ $({
158
161
  },
159
162
  emits: ["update:value"],
160
163
  setup(B, {
161
- expose: S,
162
- emit: F
164
+ expose: F,
165
+ emit: S
163
166
  }) {
164
167
  const N = q(), o = B, {
165
168
  b: V
166
- } = re("editable-grid"), _ = F, w = v(), {
169
+ } = re("editable-grid"), _ = S, w = v(), {
167
170
  value: m,
168
171
  updateValue: L
169
172
  } = ue(o, _), i = v(), k = ie("valueTypeMap"), c = y.useWatch(o.name, i);
@@ -236,14 +239,14 @@ const Re = /* @__PURE__ */ $({
236
239
  s[n] = s[n].filter((r) => !t.has(r[o.rowKey]));
237
240
  }));
238
241
  }
239
- function I() {
242
+ function H() {
240
243
  return u(m);
241
244
  }
242
- function P(e) {
245
+ function I(e) {
243
246
  var t;
244
247
  (t = i.value) == null || t.setFieldValue(o.name, e);
245
248
  }
246
- function H(e) {
249
+ function P(e) {
247
250
  var t;
248
251
  return (t = u(m)) == null ? void 0 : t[e];
249
252
  }
@@ -271,18 +274,18 @@ const Re = /* @__PURE__ */ $({
271
274
  var e, t;
272
275
  (t = (e = i.value) == null ? void 0 : e.setFieldValue) == null || t.call(e, o.name, []);
273
276
  }
274
- return S({
277
+ return F({
275
278
  resetFields: E,
276
279
  validateFields: j,
277
280
  add: O,
278
281
  remove: A,
279
- getRowData: H,
280
- getRowsData: I,
282
+ getRowData: P,
283
+ getRowsData: H,
281
284
  setRowData: W,
282
285
  addMultiple: z,
283
286
  scrollTo: G,
284
287
  clear: U,
285
- setTableData: P,
288
+ setTableData: I,
286
289
  removeByKey: K
287
290
  }), (e, t) => (Q(), J(u(y), {
288
291
  ref_key: "formRef",
@@ -1,5 +1,5 @@
1
- import { useSlots as E, computed as R, unref as m } from "vue";
2
- import { isFunction as T, isArray as s } from "lodash-unified";
1
+ import { useSlots as y, computed as E, unref as m } from "vue";
2
+ import { isFunction as R, isArray as s } from "lodash-unified";
3
3
  import { getEditableTableTitle as k, mergeClass as A } from "../../editable-table/utils.mjs";
4
4
  import { updateFormProps as q, getFieldProps as v } from "../../ap-table/utils.mjs";
5
5
  import "../../config-provider/index.mjs";
@@ -10,8 +10,8 @@ const M = (n, f) => {
10
10
  const {
11
11
  em: b,
12
12
  be: x
13
- } = S("editable-grid"), g = E(), [, h] = w();
14
- return R(() => {
13
+ } = S("editable-grid"), g = y(), [, h] = w();
14
+ return E(() => {
15
15
  const l = n.columns;
16
16
  if (!l)
17
17
  return [];
@@ -19,40 +19,40 @@ const M = (n, f) => {
19
19
  return C.map((e) => ({
20
20
  ...e,
21
21
  children: o(e.children || []),
22
- title: k(e, x("table-header", "title"), b("header-cell", "required"), g.headerCell, m(h).colorPrimary),
22
+ title: k(e, x("table-header", "title"), b("header-cell", "required"), g.headerCell, m(h).colorTextTertiary),
23
23
  // tips: 已经处理了title,传递tooltip为undefined不会再内部处理
24
24
  tooltip: void 0,
25
25
  customRender({
26
26
  value: r,
27
27
  originalNode: F,
28
- ...a
28
+ ...t
29
29
  }) {
30
- const i = T(e.editable) ? e.editable(a.text, a.record, a.index) : !!e.editable;
30
+ const i = R(e.editable) ? e.editable(t.text, t.record, t.index) : !!e.editable;
31
31
  let d = F;
32
32
  if (i) {
33
- const t = q(e, v(e.fieldProps, {
33
+ const a = q(e, v(e.fieldProps, {
34
34
  value: r,
35
- ...a
35
+ ...t
36
36
  })), c = {};
37
- n.onFieldChange && (c[`onUpdate:${t.valuePropName || "value"}`] = (y) => {
37
+ n.onFieldChange && (c[`onUpdate:${a.valuePropName || "value"}`] = (T) => {
38
38
  var u;
39
- return (u = n.onFieldChange) == null ? void 0 : u.call(n, a.index, e.dataIndex, y);
39
+ return (u = n.onFieldChange) == null ? void 0 : u.call(n, t.index, e.dataIndex, T);
40
40
  });
41
41
  const N = s(e.dataIndex) ? e.dataIndex : [e.dataIndex], I = {
42
- name: [...s(n.name) ? n.name : [n.name], a.index, ...N],
43
- ...t || {},
42
+ name: [...s(n.name) ? n.name : [n.name], t.index, ...N],
43
+ ...a || {},
44
44
  field: {
45
45
  style: "width: 100%",
46
- ...(t == null ? void 0 : t.field) || {},
46
+ ...(a == null ? void 0 : a.field) || {},
47
47
  ...c,
48
- class: A("is-editable", t.class)
48
+ class: A("is-editable", a.class)
49
49
  }
50
50
  };
51
- d = G(e, I, a.record, m(f));
51
+ d = G(e, I, t.record, m(f));
52
52
  }
53
53
  return e.customRender ? e.customRender({
54
54
  value: r,
55
- ...a,
55
+ ...t,
56
56
  editable: i,
57
57
  originalNode: d
58
58
  }) : d;
@@ -1,9 +1,10 @@
1
1
  import { ApGridProps } from '../interface';
2
2
  import { VxeTableEvents } from 'vxe-table';
3
+ import { OptionalOnTableChange } from '../../ap-table/hooks/use-table-paging-ng';
3
4
  /**
4
5
  * 用于管理内部生成的查询参数(排序/筛选/分页等)
5
6
  */
6
- export declare const useInnerParams: <RecordType>(tableChangeCallback: ApGridProps["onChange"]) => {
7
+ export declare const useInnerParams: <RecordType>(tableChangeCallback: OptionalOnTableChange<NonNullable<ApGridProps["onChange"]>>) => {
7
8
  sortChangeEvent: VxeTableEvents.SortChange<RecordType>;
8
9
  filterChangeEvent: VxeTableEvents.FilterChange<RecordType>;
9
10
  paginationChangeEvent: (page: number, pageSize: number) => void;