@aplus-frontend/ui 0.6.0-beta.9 → 0.6.1

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 (510) hide show
  1. package/es/index.mjs +307 -289
  2. package/es/src/ap-button/ap-button.vue.mjs +1 -1
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
  4. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  5. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  6. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +4 -0
  7. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +25 -0
  8. package/es/src/ap-drawer/index.d.ts +2 -0
  9. package/es/src/ap-drawer/index.mjs +5 -2
  10. package/es/src/ap-drawer/utils/createDrawer.mjs +38 -33
  11. package/es/src/ap-field/date-range/index.vue.mjs +8 -7
  12. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  13. package/es/src/ap-field/number/index.vue.d.ts +2 -4
  14. package/es/src/ap-field/radio/index.vue.d.ts +2 -4
  15. package/es/src/ap-field/rate/index.vue.d.ts +2 -4
  16. package/es/src/ap-field/select/index.vue.d.ts +3 -6
  17. package/es/src/ap-field/slider/index.vue.d.ts +2 -4
  18. package/es/src/ap-field/text/index.vue2.mjs +42 -44
  19. package/es/src/ap-field/text/password.vue.mjs +15 -17
  20. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  21. package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
  22. package/es/src/ap-form/ap-form.vue2.mjs +89 -77
  23. package/es/src/ap-form/dependency/index.vue.mjs +29 -23
  24. package/es/src/ap-form/drawer-form/index.vue.d.ts +13 -7
  25. package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
  26. package/es/src/ap-form/interface.d.ts +9 -5
  27. package/es/src/ap-form/item/index.vue.d.ts +5 -10
  28. package/es/src/ap-form/item/index.vue.mjs +69 -73
  29. package/es/src/ap-form/item-group/index.vue.mjs +34 -35
  30. package/es/src/ap-form/items/select/index.vue.mjs +12 -14
  31. package/es/src/ap-form/items/text/password.vue.mjs +9 -9
  32. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  33. package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
  34. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
  35. package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
  36. package/es/src/ap-form/provider/index.vue.mjs +6 -5
  37. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  38. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
  39. package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
  40. package/es/src/ap-form/search-form/index.vue.mjs +63 -62
  41. package/es/src/ap-form/set/index.vue.mjs +20 -20
  42. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  43. package/es/src/ap-grid/editable/index.vue.mjs +13 -10
  44. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  45. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  46. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  47. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  48. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  49. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  50. package/es/src/ap-grid/hooks/use-table-style.d.ts +18 -0
  51. package/es/src/ap-grid/hooks/use-table-style.mjs +28 -0
  52. package/es/src/ap-grid/index.vue.mjs +295 -243
  53. package/es/src/ap-grid/interface.d.ts +32 -3
  54. package/es/src/ap-grid/utils/table.mjs +15 -15
  55. package/es/src/ap-list/index.vue.d.ts +2 -9
  56. package/es/src/ap-list/index.vue.mjs +113 -103
  57. package/es/src/ap-list/interface.d.ts +24 -3
  58. package/es/src/ap-modal/interface.d.ts +2 -1
  59. package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
  60. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  61. package/es/src/ap-table/ap-table.vue2.mjs +86 -82
  62. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  63. package/es/src/ap-table/constants.d.ts +22 -22
  64. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  65. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
  66. package/es/src/ap-table/interface.d.ts +17 -4
  67. package/es/src/ap-table/utils.d.ts +21 -21
  68. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
  69. package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
  70. package/es/src/business/ap-card/index.d.ts +2 -4
  71. package/es/src/business/ap-card/interface.d.ts +5 -0
  72. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  73. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  74. package/es/src/business/ap-copy/constans.d.ts +24 -0
  75. package/es/src/business/ap-copy/constans.mjs +25 -0
  76. package/es/src/business/ap-copy/index.d.ts +102 -0
  77. package/es/src/business/ap-copy/index.mjs +7 -0
  78. package/es/src/business/ap-copy/interface.d.ts +8 -0
  79. package/es/src/business/ap-copy/interface.mjs +1 -0
  80. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  81. package/es/src/business/ap-copy/style/css.js +1 -0
  82. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  83. package/es/src/business/ap-copy/style/index.js +1 -0
  84. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +51 -49
  85. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  86. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  87. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  88. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  89. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  90. package/es/src/business/ap-keep-alive/index.d.ts +108 -0
  91. package/es/src/business/ap-keep-alive/index.mjs +15 -0
  92. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  93. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  94. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  95. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  96. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  97. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  98. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  99. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  100. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  101. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  102. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  103. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  108. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  109. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  110. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  111. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  112. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  113. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  114. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  115. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  116. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  118. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  119. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  120. package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
  121. package/es/src/business/ap-keep-alive/utils.mjs +42 -0
  122. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  123. package/es/src/business/ap-label/interface.d.ts +2 -3
  124. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  125. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  126. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  127. package/es/src/business/ap-product-info/constans.mjs +4 -0
  128. package/es/src/business/ap-product-info/index.d.ts +15 -0
  129. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  130. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  131. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  132. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
  133. package/es/src/business/ap-radio-group/index.d.ts +66 -0
  134. package/es/src/business/ap-radio-group/index.mjs +8 -0
  135. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  136. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  137. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  138. package/es/src/business/ap-radio-group/style/css.js +1 -0
  139. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  140. package/es/src/business/ap-radio-group/style/index.js +1 -0
  141. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  142. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  143. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  144. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  145. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  146. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  147. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  148. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
  149. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  150. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  151. package/es/src/business/ap-view/index.d.ts +12 -3
  152. package/es/src/business/ap-view/interface.d.ts +7 -0
  153. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  154. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  155. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  156. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  157. package/es/src/business/index.d.ts +3 -0
  158. package/es/src/business/index.mjs +36 -30
  159. package/es/src/components.d.ts +1 -0
  160. package/es/src/editable-table/form-item.vue.mjs +23 -23
  161. package/es/src/full-screen/interface.d.ts +5 -6
  162. package/es/src/index.mjs +112 -97
  163. package/es/src/locale/lang/en.mjs +4 -0
  164. package/es/src/locale/lang/zh-cn.mjs +4 -0
  165. package/es/src/mask/index.vue.mjs +21 -20
  166. package/es/src/path-map.mjs +3 -1
  167. package/es/src/resize-observer/interface.d.ts +2 -3
  168. package/es/src/scroll-bar/interface.d.ts +7 -7
  169. package/es/src/scroll-view/interface.d.ts +2 -3
  170. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  171. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  172. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  173. package/es/src/tests/mock-warning.d.ts +1 -0
  174. package/es/src/tests/utils.d.ts +8 -0
  175. package/es/src/text/group.vue.mjs +7 -6
  176. package/es/src/text/index.vue.mjs +20 -19
  177. package/es/src/version.d.ts +2 -0
  178. package/es/src/version.mjs +4 -0
  179. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  180. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  181. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  182. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  183. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  184. package/es/test/setup.d.ts +5 -0
  185. package/lib/index.js +1 -1
  186. package/lib/src/ap-button/ap-button.vue.js +1 -1
  187. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  188. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  189. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  190. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  191. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  192. package/lib/src/ap-drawer/index.d.ts +2 -0
  193. package/lib/src/ap-drawer/index.js +1 -1
  194. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  195. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  196. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  197. package/lib/src/ap-field/number/index.vue.d.ts +2 -4
  198. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  199. package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
  200. package/lib/src/ap-field/select/index.vue.d.ts +3 -6
  201. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  202. package/lib/src/ap-field/text/index.vue2.js +1 -1
  203. package/lib/src/ap-field/text/password.vue.js +1 -1
  204. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  205. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  206. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  207. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  208. package/lib/src/ap-form/drawer-form/index.vue.d.ts +13 -7
  209. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  210. package/lib/src/ap-form/interface.d.ts +9 -5
  211. package/lib/src/ap-form/item/index.vue.d.ts +5 -10
  212. package/lib/src/ap-form/item/index.vue.js +1 -1
  213. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  214. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  215. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  216. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  217. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  218. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  219. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  220. package/lib/src/ap-form/provider/index.vue.js +1 -1
  221. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  222. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  223. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -8
  224. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  225. package/lib/src/ap-form/set/index.vue.js +1 -1
  226. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  227. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  228. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  229. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  230. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  231. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  232. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  233. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  234. package/lib/src/ap-grid/hooks/use-table-style.d.ts +18 -0
  235. package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
  236. package/lib/src/ap-grid/index.vue.js +1 -1
  237. package/lib/src/ap-grid/interface.d.ts +32 -3
  238. package/lib/src/ap-grid/utils/table.js +1 -1
  239. package/lib/src/ap-list/index.vue.d.ts +2 -9
  240. package/lib/src/ap-list/index.vue.js +1 -1
  241. package/lib/src/ap-list/interface.d.ts +24 -3
  242. package/lib/src/ap-modal/interface.d.ts +2 -1
  243. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  244. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  245. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  246. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  247. package/lib/src/ap-table/constants.d.ts +22 -22
  248. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  249. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  250. package/lib/src/ap-table/interface.d.ts +17 -4
  251. package/lib/src/ap-table/utils.d.ts +21 -21
  252. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
  253. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  254. package/lib/src/business/ap-card/index.d.ts +2 -4
  255. package/lib/src/business/ap-card/interface.d.ts +5 -0
  256. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  257. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  258. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  259. package/lib/src/business/ap-copy/constans.js +1 -0
  260. package/lib/src/business/ap-copy/index.d.ts +102 -0
  261. package/lib/src/business/ap-copy/index.js +1 -0
  262. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  263. package/lib/src/business/ap-copy/interface.js +1 -0
  264. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  265. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  266. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  267. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  268. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  269. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  270. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  271. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  272. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  273. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  274. package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
  275. package/lib/src/business/ap-keep-alive/index.js +1 -0
  276. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  277. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  278. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  279. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  280. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  281. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  282. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  283. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  284. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  285. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  286. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  287. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  288. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  289. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  290. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  291. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  292. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  293. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  294. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  295. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  296. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  297. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  298. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  299. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  300. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  301. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  302. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  303. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  304. package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
  305. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  306. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  307. package/lib/src/business/ap-label/interface.d.ts +2 -3
  308. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  309. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  310. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  311. package/lib/src/business/ap-product-info/constans.js +1 -1
  312. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  313. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  314. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  315. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  316. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  317. package/lib/src/business/ap-radio-group/index.d.ts +66 -0
  318. package/lib/src/business/ap-radio-group/index.js +1 -0
  319. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  320. package/lib/src/business/ap-radio-group/interface.js +1 -0
  321. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  322. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  323. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  324. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  325. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  326. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  327. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  328. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  329. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  330. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  331. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  332. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  333. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  334. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  335. package/lib/src/business/ap-view/index.d.ts +12 -3
  336. package/lib/src/business/ap-view/interface.d.ts +7 -0
  337. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  338. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  339. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  340. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  341. package/lib/src/business/index.d.ts +3 -0
  342. package/lib/src/business/index.js +1 -1
  343. package/lib/src/components.d.ts +1 -0
  344. package/lib/src/editable-table/form-item.vue.js +1 -1
  345. package/lib/src/full-screen/interface.d.ts +5 -6
  346. package/lib/src/index.js +1 -1
  347. package/lib/src/locale/lang/en.js +1 -1
  348. package/lib/src/locale/lang/zh-cn.js +1 -1
  349. package/lib/src/mask/index.vue.js +1 -1
  350. package/lib/src/path-map.js +1 -1
  351. package/lib/src/resize-observer/interface.d.ts +2 -3
  352. package/lib/src/scroll-bar/interface.d.ts +7 -7
  353. package/lib/src/scroll-view/interface.d.ts +2 -3
  354. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  355. package/lib/src/splitter/Splitter.vue2.js +1 -1
  356. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  357. package/lib/src/tests/mock-warning.d.ts +1 -0
  358. package/lib/src/tests/utils.d.ts +8 -0
  359. package/lib/src/text/group.vue.js +1 -1
  360. package/lib/src/text/index.vue.js +1 -1
  361. package/lib/src/version.d.ts +2 -0
  362. package/lib/src/version.js +1 -0
  363. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  364. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  365. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  366. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  367. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  368. package/lib/test/setup.d.ts +5 -0
  369. package/package.json +18 -14
  370. package/theme/antd-global-overwrite/admin/alert.css +5 -18
  371. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  372. package/theme/antd-global-overwrite/admin/button.css +13 -13
  373. package/theme/antd-global-overwrite/admin/button.less +24 -24
  374. package/theme/antd-global-overwrite/admin/drawer.css +3 -0
  375. package/theme/antd-global-overwrite/admin/drawer.less +5 -0
  376. package/theme/antd-global-overwrite/admin/field.css +42 -0
  377. package/theme/antd-global-overwrite/admin/field.less +43 -0
  378. package/theme/antd-global-overwrite/admin/index.css +93 -634
  379. package/theme/antd-global-overwrite/admin/index.less +1 -3
  380. package/theme/antd-global-overwrite/admin/message.css +2 -9
  381. package/theme/antd-global-overwrite/admin/message.less +2 -10
  382. package/theme/antd-global-overwrite/admin/modal.css +20 -37
  383. package/theme/antd-global-overwrite/admin/modal.less +20 -41
  384. package/theme/antd-global-overwrite/admin/table.css +11 -251
  385. package/theme/antd-global-overwrite/admin/table.less +4 -132
  386. package/theme/antd-global-overwrite/aplus/alert.css +8 -18
  387. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  388. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  389. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  390. package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
  391. package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
  392. package/theme/antd-global-overwrite/aplus/field.css +36 -0
  393. package/theme/antd-global-overwrite/aplus/field.less +36 -0
  394. package/theme/antd-global-overwrite/aplus/index.css +94 -683
  395. package/theme/antd-global-overwrite/aplus/index.less +0 -3
  396. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  397. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  398. package/theme/antd-global-overwrite/aplus/modal.css +19 -43
  399. package/theme/antd-global-overwrite/aplus/modal.less +20 -49
  400. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  401. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  402. package/theme/ap-action/item-dropdown.css +3 -3
  403. package/theme/ap-action/item.css +21 -10
  404. package/theme/ap-action/item.less +18 -6
  405. package/theme/ap-appendix/ap-appendix.css +10 -10
  406. package/theme/ap-appendix/ap-appendix.less +6 -6
  407. package/theme/ap-attachment/ap-attachment.css +4 -4
  408. package/theme/ap-batch-action/ap-batch-action.css +6 -6
  409. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  410. package/theme/ap-button/ap-button.css +3 -3
  411. package/theme/ap-card/ap-card.css +4 -4
  412. package/theme/ap-card/ap-card.less +1 -1
  413. package/theme/ap-copy/ap-copy.css +96 -0
  414. package/theme/ap-copy/ap-copy.less +61 -0
  415. package/theme/ap-descriptions/ap-descriptions.css +9 -7
  416. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  417. package/theme/ap-download/ap-download.css +6 -6
  418. package/theme/ap-drawer/ap-drawer.css +66 -0
  419. package/theme/ap-drawer/ap-drawer.less +27 -0
  420. package/theme/ap-expand-alert/ap-expand-alert.css +4 -3
  421. package/theme/ap-expand-alert/ap-expand-alert.less +2 -2
  422. package/theme/ap-field/checkbox.css +3 -3
  423. package/theme/ap-field/index.css +3 -3
  424. package/theme/ap-field/number.css +3 -3
  425. package/theme/ap-field/radio.css +3 -3
  426. package/theme/ap-field/text-area.css +3 -3
  427. package/theme/ap-form/ap-form-item-group.css +3 -3
  428. package/theme/ap-form/ap-form-item.css +11 -8
  429. package/theme/ap-form/ap-form-item.less +8 -5
  430. package/theme/ap-form/drawer-form.css +3 -3
  431. package/theme/ap-form/index.css +25 -20
  432. package/theme/ap-form/item-text-group.css +3 -3
  433. package/theme/ap-form/item-text.css +3 -3
  434. package/theme/ap-form/modal-form.css +3 -3
  435. package/theme/ap-form/search-form-sorter.css +14 -12
  436. package/theme/ap-form/search-form-sorter.less +7 -5
  437. package/theme/ap-form/search-form.css +25 -20
  438. package/theme/ap-form/search-form.less +3 -3
  439. package/theme/ap-grid/editable.css +3 -3
  440. package/theme/ap-grid/index.css +73 -40
  441. package/theme/ap-grid/index.less +26 -8
  442. package/theme/ap-group-search/ap-extension-select.css +3 -3
  443. package/theme/ap-group-search/ap-group-search.css +3 -3
  444. package/theme/ap-group-search/ap-popover-select.css +3 -3
  445. package/theme/ap-image/ap-image.css +3 -3
  446. package/theme/ap-input-radio/ap-input-radio.css +3 -3
  447. package/theme/ap-label/ap-label.css +3 -3
  448. package/theme/ap-ladder/ap-ladder.css +6 -6
  449. package/theme/ap-layout/ap-info-layout.css +3 -3
  450. package/theme/ap-list/index.css +3 -3
  451. package/theme/ap-product-info/ap-product-info.css +23 -33
  452. package/theme/ap-product-info/ap-product-info.less +28 -42
  453. package/theme/ap-radio-group/ap-radio-group.css +66 -0
  454. package/theme/ap-radio-group/ap-radio-group.less +26 -0
  455. package/theme/ap-select-layout/ap-select-layout.css +5 -5
  456. package/theme/ap-size-input/ap-size-input.css +3 -3
  457. package/theme/ap-status/ap-status.css +3 -3
  458. package/theme/ap-summary/index.css +3 -3
  459. package/theme/ap-table/ap-table-index.css +3 -3
  460. package/theme/ap-table/ap-table-paragraph-ellipsis.css +4 -4
  461. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  462. package/theme/ap-table/ap-table.css +80 -47
  463. package/theme/ap-table/ap-table.less +19 -7
  464. package/theme/ap-table/setting/index.css +18 -12
  465. package/theme/ap-table/setting/modal.css +10 -5
  466. package/theme/ap-table/setting/modal.less +6 -1
  467. package/theme/ap-table/setting/select-group.css +3 -3
  468. package/theme/ap-table/setting/sortable-item-meta.css +5 -5
  469. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  470. package/theme/ap-table/setting/sortable-item.css +3 -3
  471. package/theme/ap-table/setting/sorter.css +9 -8
  472. package/theme/ap-table/setting/sorter.less +4 -4
  473. package/theme/ap-table-modal/index.css +95 -60
  474. package/theme/ap-table-modal/index.less +15 -13
  475. package/theme/ap-tag/ap-tag-group.css +3 -3
  476. package/theme/ap-tag/ap-tag.css +7 -7
  477. package/theme/ap-tag/ap-tag.less +1 -1
  478. package/theme/ap-title/ap-title.css +3 -3
  479. package/theme/ap-upload/index.css +4 -4
  480. package/theme/ap-upload/multiple-file.css +3 -3
  481. package/theme/ap-upload/picture.css +3 -3
  482. package/theme/ap-upload/single-file.css +4 -4
  483. package/theme/ap-upload/upload.css +3 -3
  484. package/theme/ap-upload-single/index.css +7 -7
  485. package/theme/ap-upload-single/index.less +4 -4
  486. package/theme/ap-view/ap-view.css +10 -10
  487. package/theme/ap-view/ap-view.less +7 -7
  488. package/theme/batch-input-group/index.css +5 -5
  489. package/theme/batch-input-group/popover-input.css +5 -5
  490. package/theme/batch-input-group/popover-input.less +2 -2
  491. package/theme/check-card/index.css +11 -11
  492. package/theme/check-card/index.less +5 -5
  493. package/theme/editable-table/index.css +43 -27
  494. package/theme/full-screen/index.css +3 -3
  495. package/theme/index.css +350 -245
  496. package/theme/index.less +3 -0
  497. package/theme/mask/index.css +3 -3
  498. package/theme/mixins/config.less +3 -3
  499. package/theme/mixins/mixins.css +3 -3
  500. package/theme/mixins/mixins.less +2 -2
  501. package/theme/scroll-bar/index.css +3 -3
  502. package/theme/scroll-view/index.css +3 -3
  503. package/theme/splitter/index.css +7 -7
  504. package/theme/splitter/index.less +1 -1
  505. package/theme/text/group.css +3 -3
  506. package/theme/text/index.css +8 -8
  507. package/theme/text/index.less +4 -4
  508. package/theme/ui-mode.css +53 -83
  509. package/theme/ui-mode.less +103 -83
  510. package/theme/work-order-modal/index.css +3 -3
@@ -1,19 +1,20 @@
1
- import { isVNode as K, defineComponent as Q, useSlots as Y, ref as v, computed as w, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b, createElementBlock as N, openBlock as y, Fragment as ee, createBlock as M, createCommentVNode as S, withCtx as g, renderSlot as _, withModifiers as te, normalizeClass as ie, resolveDynamicComponent as L, createTextVNode as ne, toDisplayString as oe } from "vue";
2
- import { Button as V, Flex as le, Space as ae, Drawer as se } from "@aplus-frontend/antdv";
1
+ import { isVNode as K, defineComponent as Q, useSlots as Y, ref as h, computed as V, unref as l, watch as P, cloneVNode as Z, createVNode as d, mergeProps as b, createElementBlock as N, openBlock as F, Fragment as ee, createBlock as M, createCommentVNode as S, withCtx as g, renderSlot as _, withModifiers as te, normalizeClass as ie, resolveDynamicComponent as L, createTextVNode as ne, toDisplayString as oe } from "vue";
2
+ import { Button as w, Flex as ae, Space as le, Drawer as se } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
5
5
  import { getSingleVNode as re } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isBoolean as ue, isUndefined as de, omit as ce } from "lodash-unified";
8
- import { convertReactiveToRaw as me } from "../../utils/index.mjs";
7
+ import { isBoolean as ue, isUndefined as de, omit as me } from "lodash-unified";
8
+ import { convertReactiveToRaw as ce } from "../../utils/index.mjs";
9
9
  import { useControllableValue as fe } from "../../hooks/useControllableValue.mjs";
10
10
  import { useLocale as pe } from "../../config-provider/hooks/use-locale.mjs";
11
- import { useNamespace as he } from "../../config-provider/hooks/use-namespace.mjs";
12
- import ve from "../ap-form.vue2.mjs";
13
- function U(m) {
14
- return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !K(m);
11
+ import { useNamespace as ve } from "../../config-provider/hooks/use-namespace.mjs";
12
+ import he from "../ap-form.vue2.mjs";
13
+ function U(c) {
14
+ return typeof c == "function" || Object.prototype.toString.call(c) === "[object Object]" && !K(c);
15
15
  }
16
16
  const je = /* @__PURE__ */ Q({
17
+ name: "ApFormDrawerForm",
17
18
  __name: "index",
18
19
  props: {
19
20
  layout: {
@@ -94,17 +95,17 @@ const je = /* @__PURE__ */ Q({
94
95
  }
95
96
  },
96
97
  emits: ["update:open"],
97
- setup(m, {
98
+ setup(c, {
98
99
  expose: j,
99
100
  emit: E
100
101
  }) {
101
- const n = m, F = Y(), D = E, a = v(), p = v(), u = v(!1), {
102
+ const n = c, y = Y(), D = E, a = h(), p = h(), u = h(!1), {
102
103
  value: C,
103
- updateValue: h
104
+ updateValue: v
104
105
  } = fe(n, D, {
105
106
  valuePropName: "open",
106
107
  defaultValue: !1
107
- }), c = w(() => {
108
+ }), m = V(() => {
108
109
  var t, i, s, r;
109
110
  const e = {
110
111
  onResize: () => {
@@ -119,47 +120,47 @@ const je = /* @__PURE__ */ Q({
119
120
  onResize: ((s = n.resize) == null ? void 0 : s.onResize) ?? e.onResize,
120
121
  resizeOnOpen: de((r = n.resize) == null ? void 0 : r.resizeOnOpen) ? e.onResize : n.resize.resizeOnOpen
121
122
  };
122
- }), f = v(B()), {
123
+ }), f = h(W()), {
123
124
  t: z
124
125
  } = pe(), {
125
126
  e: $,
126
- em: W
127
- } = he("ap-form-drawer-form"), q = w(() => [$("resize-bar"), {
128
- [W("resize-bar", "min-disabled")]: l(f) === l(c).minWidth
127
+ em: T
128
+ } = ve("ap-form-drawer-form"), q = V(() => [$("resize-bar"), {
129
+ [T("resize-bar", "min-disabled")]: l(f) === l(m).minWidth
129
130
  }, {
130
- [W("resize-bar", "max-disabled")]: l(f) === l(c).maxWidth
131
+ [T("resize-bar", "max-disabled")]: l(f) === l(m).maxWidth
131
132
  }]);
132
133
  P(() => a.value, (e) => {
133
134
  var t;
134
135
  e && p.value && ((t = e.setFieldsValue) == null || t.call(e, p.value), p.value = void 0);
135
136
  }), P(() => l(C), (e) => {
136
137
  var t;
137
- e && (t = l(c)) != null && t.resizeOnOpen && (f.value = B());
138
+ e && (t = l(m)) != null && t.resizeOnOpen && (f.value = W());
138
139
  });
139
- function B() {
140
+ function W() {
140
141
  var t;
141
- const e = (t = l(c)) == null ? void 0 : t.minWidth;
142
+ const e = (t = l(m)) == null ? void 0 : t.minWidth;
142
143
  return !e || e && e < n.width ? n.width : e;
143
144
  }
144
- const T = re(F.trigger), x = T ? Z(T, {
145
+ const B = re(y.trigger), x = B ? Z(B, {
145
146
  onClick: () => {
146
- h(!0);
147
+ v(!0);
147
148
  }
148
- }) : null, I = w(() => {
149
+ }) : null, A = V(() => {
149
150
  var t, i, s, r;
150
151
  const e = [];
151
152
  if (n.submitter === !1)
152
153
  return null;
153
154
  if (n.showCancel) {
154
155
  let o;
155
- e.push(d(V, {
156
- onClick: R,
156
+ e.push(d(w, {
157
+ onClick: O,
157
158
  disabled: u.value
158
159
  }, U(o = z("ap.common.cancelText")) ? o : {
159
160
  default: () => [o]
160
161
  }));
161
162
  }
162
- return ((t = n.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(d(V, b(((i = n.submitter) == null ? void 0 : i.resetButtonProps) || {}, {
163
+ return ((t = n.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(d(w, b(((i = n.submitter) == null ? void 0 : i.resetButtonProps) || {}, {
163
164
  key: "submit",
164
165
  disabled: u.value,
165
166
  onClick: X
@@ -168,7 +169,7 @@ const je = /* @__PURE__ */ Q({
168
169
  var o;
169
170
  return [((o = n.submitter) == null ? void 0 : o.resetText) || z("ap.common.resetText")];
170
171
  }
171
- })), ((s = n.submitter) == null ? void 0 : s.submitButtonProps) !== !1 && e.push(d(V, b({
172
+ })), ((s = n.submitter) == null ? void 0 : s.submitButtonProps) !== !1 && e.push(d(w, b({
172
173
  type: "primary",
173
174
  key: "submit"
174
175
  }, ((r = n.submitter) == null ? void 0 : r.submitButtonProps) || {}, {
@@ -179,25 +180,25 @@ const je = /* @__PURE__ */ Q({
179
180
  var o;
180
181
  return [((o = n.submitter) == null ? void 0 : o.submitText) || z("ap.common.okText")];
181
182
  }
182
- })), d(le, {
183
+ })), d(ae, {
183
184
  justify: "flex-end"
184
185
  }, {
185
- default: () => [F.submitter ? F.submitter(e) : d(ae, null, U(e) ? e : {
186
+ default: () => [y.submitter ? y.submitter(e) : d(le, null, U(e) ? e : {
186
187
  default: () => [e]
187
188
  })]
188
189
  });
189
190
  });
190
- function A() {
191
+ function I() {
191
192
  var e, t;
192
- (t = (e = c.value) == null ? void 0 : e.onResize) == null || t.call(e), document.addEventListener("mousemove", k), document.addEventListener("mouseup", O);
193
+ (t = (e = m.value) == null ? void 0 : e.onResize) == null || t.call(e), document.addEventListener("mousemove", R), document.addEventListener("mouseup", k);
193
194
  }
194
- function k(e) {
195
- const t = l(c), i = (document.body.offsetWidth || 1e3) - (e.clientX - document.body.offsetLeft), s = (t == null ? void 0 : t.minWidth) ?? (n.width || 800), r = (t == null ? void 0 : t.maxWidth) ?? window.innerWidth * 0.8;
195
+ function R(e) {
196
+ const t = l(m), i = (document.body.offsetWidth || 1e3) - (e.clientX - document.body.offsetLeft), s = (t == null ? void 0 : t.minWidth) ?? (n.width || 800), r = (t == null ? void 0 : t.maxWidth) ?? window.innerWidth * 0.8;
196
197
  let o = i;
197
198
  i < s && (o = s), i > r && (o = r), f.value = o;
198
199
  }
199
- function O() {
200
- document.removeEventListener("mousemove", k), document.removeEventListener("mouseup", O);
200
+ function k() {
201
+ document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", k);
201
202
  }
202
203
  function X() {
203
204
  var e, t, i;
@@ -209,26 +210,26 @@ const je = /* @__PURE__ */ Q({
209
210
  try {
210
211
  const r = await ((e = a.value) == null ? void 0 : e.validateFieldsReturnTransformed());
211
212
  (i = (t = n.submitter) == null ? void 0 : t.onSubmit) == null || i.call(t), u.value = !0;
212
- const o = (s = n.onFinish) == null ? void 0 : s.call(n, me(r));
213
+ const o = (s = n.onFinish) == null ? void 0 : s.call(n, ce(r));
213
214
  if (n.submitTimeout && o instanceof Promise) {
214
215
  const J = setTimeout(() => u.value = !1, n.submitTimeout);
215
216
  o.finally(() => {
216
217
  clearTimeout(J), u.value = !1;
217
218
  });
218
219
  }
219
- await o && h(!1);
220
+ await o && v(!1);
220
221
  } finally {
221
222
  u.value = !1;
222
223
  }
223
224
  }
224
- function R() {
225
- l(u) || h(!1);
225
+ function O() {
226
+ l(u) || v(!1);
226
227
  }
227
228
  function H(e) {
228
- !e && l(u) || h(e);
229
+ !e && l(u) || v(e);
229
230
  }
230
231
  return j({
231
- resetFields: () => {
232
+ resetFields: async () => {
232
233
  var e;
233
234
  (e = a.value) == null || e.resetFields();
234
235
  },
@@ -267,28 +268,36 @@ const je = /* @__PURE__ */ Q({
267
268
  getInternalInstance: (e) => {
268
269
  var t;
269
270
  return (t = a.value) == null ? void 0 : t.getInternalInstance(e);
271
+ },
272
+ getFieldsValueTransformed: (e) => {
273
+ var t;
274
+ return (t = a.value) == null ? void 0 : t.getFieldsValueTransformed(e);
275
+ },
276
+ validateFieldsReturnTransformed: (e) => {
277
+ var t;
278
+ return (t = a.value) == null ? void 0 : t.validateFieldsReturnTransformed(e);
270
279
  }
271
- }), (e, t) => (y(), N(ee, null, [d(l(se), b(e.drawerProps, {
280
+ }), (e, t) => (F(), N(ee, null, [d(l(se), b(e.drawerProps, {
272
281
  open: l(C),
273
282
  width: f.value,
274
283
  "onUpdate:open": H,
275
- onCancel: R
284
+ onCancel: O
276
285
  }), {
277
286
  title: g(() => [_(e.$slots, "title", {}, () => [ne(oe(n.title), 1)])]),
278
- footer: g(() => [(y(), M(L(I.value)))]),
279
- default: g(() => [d(ve, b({
287
+ footer: g(() => [(F(), M(L(A.value)))]),
288
+ default: g(() => [d(he, b({
280
289
  ref_key: "formRef",
281
290
  ref: a
282
- }, l(ce)(n, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
291
+ }, l(me)(n, ["drawerProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
283
292
  default: g(() => [_(e.$slots, "default")]),
284
293
  _: 3
285
- }, 16), e.resize ? (y(), N("div", {
294
+ }, 16), e.resize ? (F(), N("div", {
286
295
  key: 0,
287
296
  class: ie(q.value),
288
- onMousedown: te(A, ["stop", "prevent"])
297
+ onMousedown: te(I, ["stop", "prevent"])
289
298
  }, null, 34)) : S("", !0)]),
290
299
  _: 3
291
- }, 16, ["open", "width"]), l(x) ? (y(), M(L(l(x)), {
300
+ }, 16, ["open", "width"]), l(x) ? (F(), M(L(l(x)), {
292
301
  key: 0
293
302
  })) : S("", !0)], 64));
294
303
  }
@@ -162,6 +162,10 @@ export type ApFormSearchFormProps = ApFormProps & {
162
162
  * 是否可排序
163
163
  */
164
164
  sortable?: boolean;
165
+ /**
166
+ * 尺寸监听目标元素(用于响应式)
167
+ */
168
+ resizeTarget?: HTMLElement | null;
165
169
  };
166
170
  export type ApFormSearchFormPopoverFilterProps = {
167
171
  config: Array<{
@@ -237,15 +241,15 @@ export type ApFormDrawerFormProps = Omit<ApFormProps, 'onFinish'> & {
237
241
  */
238
242
  resize?: CustomizeResizeType | boolean;
239
243
  };
240
- export type ApFormModalFormExpose = ApFormExpose;
241
- export type ApFormDrawerFormExpose = ApFormExpose;
244
+ export type ApFormModalFormExpose = Omit<ApFormExpose, 'registerWatch'>;
245
+ export type ApFormDrawerFormExpose = ApFormModalFormExpose;
242
246
  /**
243
247
  * ApFormItem支持的插槽
244
248
  */
245
249
  export type ApFormItemSlots = {
246
- help: any;
247
- label: any;
248
- extra: any;
250
+ help?: any;
251
+ label?: any;
252
+ extra?: any;
249
253
  default: () => VNode[];
250
254
  };
251
255
  export type ApFormDependencyProps = {
@@ -6,11 +6,6 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
6
6
  import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
7
7
  import { CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
8
8
  import { OnCleanup } from '@vue/reactivity';
9
- declare function onFieldBlur(): void;
10
- declare function onFieldChange(): void;
11
- declare function clearValidate(): void;
12
- declare function resetField(): void;
13
- declare function getFieldValue(shouldFormat?: boolean): any;
14
9
  declare function __VLS_template(): {
15
10
  attrs: Partial<{}>;
16
11
  slots: Readonly<ApFormItemSlots> & ApFormItemSlots;
@@ -795,11 +790,11 @@ declare function __VLS_template(): {
795
790
  };
796
791
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
797
792
  declare const __VLS_component: DefineComponent<ApFormItemProps, {
798
- onFieldBlur: typeof onFieldBlur;
799
- onFieldChange: typeof onFieldChange;
800
- clearValidate: typeof clearValidate;
801
- resetField: typeof resetField;
802
- getFieldValue: typeof getFieldValue;
793
+ onFieldBlur: () => void;
794
+ onFieldChange: () => void;
795
+ clearValidate: () => void;
796
+ resetField: () => void;
797
+ getFieldValue: (shouldFormat?: boolean) => any;
803
798
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemProps> & Readonly<{}>, {
804
799
  hasFeedback: boolean;
805
800
  colon: boolean;
@@ -1,15 +1,15 @@
1
- import { defineComponent as D, useSlots as $, ref as f, onMounted as j, computed as F, unref as l, watch as q, cloneVNode as E, createBlock as g, openBlock as h, mergeProps as K, createSlots as O, withCtx as i, createCommentVNode as Q, resolveDynamicComponent as U, renderList as G, createElementVNode as H, normalizeClass as J, createVNode as p, normalizeStyle as M, renderSlot as W, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
- import { Form as Z, Tooltip as ee, TypographyText as oe } from "@aplus-frontend/antdv";
3
- import { useToken as le } from "@aplus-frontend/antdv/es/theme/internal";
4
- import { isFunction as B, cloneDeep as te, isArray as re, omit as C } from "lodash-unified";
5
- import { apFormItemColPropKeys as ae } from "../constant.mjs";
6
- import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
1
+ import { defineComponent as D, useSlots as L, ref as b, onMounted as _, computed as $, unref as l, cloneVNode as j, createBlock as v, openBlock as F, mergeProps as q, createSlots as E, withCtx as i, resolveDynamicComponent as K, renderList as O, createElementVNode as Q, normalizeClass as U, createVNode as p, normalizeStyle as Y, renderSlot as G, normalizeProps as H, guardReactiveProps as J } from "vue";
2
+ import { Form as M, Tooltip as W, TypographyText as X } from "@aplus-frontend/antdv";
3
+ import { useToken as Z } from "@aplus-frontend/antdv/es/theme/internal";
4
+ import { isFunction as V, cloneDeep as ee, isArray as oe, omit as g } from "lodash-unified";
5
+ import { apFormItemColPropKeys as le } from "../constant.mjs";
6
+ import { QuestionCircleOutlined as te } from "@ant-design/icons-vue";
7
7
  import "../../config-provider/index.mjs";
8
- import { useInjectForm as ie } from "../context.mjs";
9
- import { isPromise as se } from "@fruits-chain/utils";
10
- import { getSingleVNode as ue, getValidVNodeList as me } from "../../utils/slot.mjs";
11
- import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
12
- const Ce = /* @__PURE__ */ D({
8
+ import { useInjectForm as re } from "../context.mjs";
9
+ import { isPromise as ae } from "@fruits-chain/utils";
10
+ import { getValidVNodeList as ne } from "../../utils/slot.mjs";
11
+ import { useNamespace as ie } from "../../config-provider/hooks/use-namespace.mjs";
12
+ const Ve = /* @__PURE__ */ D({
13
13
  name: "ApFormItem",
14
14
  __name: "index",
15
15
  props: {
@@ -54,109 +54,105 @@ const Ce = /* @__PURE__ */ D({
54
54
  transform: {},
55
55
  description: {}
56
56
  },
57
- setup(N, { expose: k }) {
58
- const o = N, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: P } = de("ap-form-item"), d = f(!1), n = f(), [, x] = le();
59
- j(async () => {
60
- let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
61
- se(e) && (e = await e), m == null || m.registerField({
57
+ setup(B, { expose: h }) {
58
+ const o = B, s = L(), { model: u, updateModel: f, internalInstance: m } = re(), { m: c, b: x } = ie("ap-form-item"), d = b(!1), a = b(), [, C] = Z();
59
+ _(async () => {
60
+ let e = V(o.initialValue) ? o.initialValue() : o.initialValue;
61
+ ae(e) && (e = await e), m == null || m.registerField({
62
62
  name: o.name,
63
- initialValue: te(e),
63
+ initialValue: ee(e),
64
64
  transform: o.transform
65
65
  });
66
66
  });
67
- const y = F(() => o.name ? re(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(s)) : s == null ? void 0 : s.value[o.name] : null), v = f(ue(a.default));
68
- q(
69
- () => {
70
- var e;
71
- return (e = a.default) == null ? void 0 : e.call(a);
72
- },
73
- (e) => {
74
- v.value = me(e)[0];
75
- }
76
- );
77
- function w(e) {
78
- u == null || u(o.name, e);
67
+ const y = $(() => o.name ? oe(o.name) ? o.name.reduce((e, t) => e == null ? void 0 : e[t], l(u)) : u == null ? void 0 : u.value[o.name] : null);
68
+ function k() {
69
+ var r, n;
70
+ const e = ((r = s.default) == null ? void 0 : r.call(s)) || [];
71
+ if (!o.name)
72
+ return e[0];
73
+ const t = ne(e)[0];
74
+ return t ? j(t, {
75
+ [o.valuePropName]: l(y),
76
+ [`onUpdate:${o.valuePropName}`]: N,
77
+ bordered: o.bordered ? !1 : (n = t == null ? void 0 : t.props) == null ? void 0 : n.bordered,
78
+ onFocus: P,
79
+ onBlur: S
80
+ }) : null;
79
81
  }
80
- function S() {
82
+ function N(e) {
83
+ f == null || f(o.name, e);
84
+ }
85
+ function P() {
81
86
  d.value = !0;
82
87
  }
83
- function I() {
88
+ function S() {
84
89
  d.value = !1;
85
90
  }
86
- const V = F(() => {
87
- var t, r;
88
- if (!o.name)
89
- return (t = a.default()) == null ? void 0 : t[0];
90
- const e = l(v);
91
- return e ? E(e, {
92
- [o.valuePropName]: l(y),
93
- [`onUpdate:${o.valuePropName}`]: w,
94
- bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
95
- onFocus: S,
96
- onBlur: I
97
- }) : null;
98
- });
99
91
  function T() {
100
92
  var e;
101
- (e = n.value) == null || e.onFieldBlur();
93
+ (e = a.value) == null || e.onFieldBlur();
102
94
  }
103
- function z() {
95
+ function w() {
104
96
  var e;
105
- (e = n.value) == null || e.onFieldChange();
97
+ (e = a.value) == null || e.onFieldChange();
106
98
  }
107
- function A() {
99
+ function I() {
108
100
  var e;
109
- (e = n.value) == null || e.clearValidate();
101
+ (e = a.value) == null || e.clearValidate();
110
102
  }
111
- function L() {
103
+ function z() {
112
104
  var e;
113
- (e = n.value) == null || e.resetField();
105
+ (e = a.value) == null || e.resetField();
114
106
  }
115
107
  function R(e = !1) {
116
108
  const t = l(y);
117
109
  if (!e || !o.transform)
118
110
  return t;
119
- const r = B(o.transform) ? o.transform : o.transform.transformer;
111
+ const r = V(o.transform) ? o.transform : o.transform.transformer;
120
112
  return o.transform ? r(t) : t;
121
113
  }
122
- return k({
114
+ return h({
123
115
  onFieldBlur: T,
124
- onFieldChange: z,
125
- clearValidate: A,
126
- resetField: L,
116
+ onFieldChange: w,
117
+ clearValidate: I,
118
+ resetField: z,
127
119
  getFieldValue: R
128
- }), (e, t) => (h(), g(l(Z).Item, K(
120
+ }), (e, t) => (F(), v(l(M).Item, q(
129
121
  {
130
122
  ref_key: "formItemRef",
131
- ref: n
123
+ ref: a
132
124
  },
133
- l(C)(o, [...l(ae), "tooltip", "label", "description"]),
125
+ l(g)(o, [...l(le), "tooltip", "label", "description"]),
134
126
  {
135
127
  class: {
136
128
  [l(c)("bordered")]: e.bordered,
137
129
  [l(c)("focused")]: e.bordered && d.value,
138
- [l(P)()]: !0
130
+ [l(x)()]: !0
139
131
  },
140
132
  colon: e.bordered ? !1 : o.colon
141
133
  }
142
- ), O({
134
+ ), E({
143
135
  default: i(() => [
144
- V.value ? (h(), g(U(V.value), { key: 0 })) : Q("", !0)
136
+ (F(), v(K(k())))
145
137
  ]),
146
138
  _: 2
147
139
  }, [
148
140
  o.tooltip ? {
149
141
  name: "tooltip",
150
142
  fn: i(({ class: r }) => [
151
- H("span", {
152
- class: J(r)
143
+ Q("span", {
144
+ class: U(r)
153
145
  }, [
154
- p(l(ee), {
146
+ p(l(W), {
155
147
  title: o.tooltip
156
148
  }, {
157
149
  default: i(() => [
158
- p(l(ne), {
159
- style: M({ color: l(x).colorPrimary })
150
+ p(l(te), {
151
+ style: Y({
152
+ color: l(C).colorTextTertiary,
153
+ fontSize: "14px",
154
+ transform: "translateY(1px)"
155
+ })
160
156
  }, null, 8, ["style"])
161
157
  ]),
162
158
  _: 1
@@ -168,7 +164,7 @@ const Ce = /* @__PURE__ */ D({
168
164
  e.label ? {
169
165
  name: "label",
170
166
  fn: i(() => [
171
- p(l(oe), {
167
+ p(l(X), {
172
168
  content: e.label,
173
169
  ellipsis: { tooltip: e.label },
174
170
  style: { "min-width": "0px", flex: "1" }
@@ -176,15 +172,15 @@ const Ce = /* @__PURE__ */ D({
176
172
  ]),
177
173
  key: "1"
178
174
  } : void 0,
179
- G(l(C)(a, "default"), (r, b) => ({
180
- name: b,
181
- fn: i((_) => [
182
- W(e.$slots, b, X(Y(_ || {})))
175
+ O(l(g)(s, "default"), (r, n) => ({
176
+ name: n,
177
+ fn: i((A) => [
178
+ G(e.$slots, n, H(J(A || {})))
183
179
  ])
184
180
  }))
185
181
  ]), 1040, ["class", "colon"]));
186
182
  }
187
183
  });
188
184
  export {
189
- Ce as default
185
+ Ve as default
190
186
  };
@@ -1,15 +1,15 @@
1
- import { isVNode as C, defineComponent as h, useSlots as w, onBeforeUpdate as k, shallowRef as _, watch as B, computed as P, unref as r, createVNode as R, mergeProps as u, createBlock as d, openBlock as s, withCtx as S, createElementBlock as b, Fragment as x, renderList as N, resolveDynamicComponent as j } from "vue";
2
- import { Col as v, Row as F } from "@aplus-frontend/antdv";
3
- import { pick as D, isBoolean as I, omit as O } from "lodash-unified";
4
- import { apFormItemColPropKeys as V } from "../constant.mjs";
5
- import { genRealChildren as l, buildColSpan as $, getStringName as A } from "./helper.mjs";
1
+ import { isVNode as C, defineComponent as _, useSlots as k, unref as r, createVNode as w, mergeProps as u, createBlock as l, openBlock as i, withCtx as P, createElementBlock as R, Fragment as S, renderList as b, resolveDynamicComponent as h } from "vue";
2
+ import { Col as x, Row as B } from "@aplus-frontend/antdv";
3
+ import { pick as N, isBoolean as j, omit as F } from "lodash-unified";
4
+ import { apFormItemColPropKeys as D } from "../constant.mjs";
5
+ import { genRealChildren as I, buildColSpan as O, getStringName as V } from "./helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { isDef as E } from "../../utils/index.mjs";
8
- import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
9
- function H(t) {
10
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !C(t);
7
+ import { isDef as $ } from "../../utils/index.mjs";
8
+ import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
9
+ function A(o) {
10
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !C(o);
11
11
  }
12
- const T = /* @__PURE__ */ h({
12
+ const M = /* @__PURE__ */ _({
13
13
  name: "ApFormItemGroup",
14
14
  __name: "index",
15
15
  props: {
@@ -27,30 +27,29 @@ const T = /* @__PURE__ */ h({
27
27
  default: 3
28
28
  }
29
29
  },
30
- setup(t) {
31
- const {
32
- b: c
33
- } = G("ap-form-item-group"), i = t, a = w();
34
- k(() => {
35
- p.value = l(a.default());
36
- }), B(() => a.default(), (o) => {
37
- p.value = l(o);
38
- });
39
- const p = _(l(a.default())), f = P(() => r(p).map((o, m) => {
40
- const e = o.props, n = D(e, V), g = n != null && n.span ? {} : $(i.countPerRow), y = I(e.hidden) ? !!e.hidden : E(e.hidden);
41
- return {
42
- key: `${m}-${A(e.name)}`,
43
- node: R(v, u(g, n, {
44
- class: y ? c("col-hidden") : ""
45
- }), H(o) ? o : {
46
- default: () => [o]
47
- })
48
- };
49
- }));
50
- return (o, m) => (s(), d(r(F), u({
51
- class: r(c)()
52
- }, r(O)(i, ["countPerRow"])), {
53
- default: S(() => [(s(!0), b(x, null, N(f.value, (e) => (s(), d(j(e.node), {
30
+ setup(o) {
31
+ const m = o, p = k(), {
32
+ b: s
33
+ } = v("ap-form-item-group");
34
+ function d() {
35
+ var a;
36
+ const c = I(((a = p.default) == null ? void 0 : a.call(p)) || []);
37
+ return r(c).map((e, f) => {
38
+ const t = e.props, n = N(t, D), g = n != null && n.span ? {} : O(m.countPerRow), y = j(t.hidden) ? !!t.hidden : $(t.hidden);
39
+ return {
40
+ key: `${f}-${V(t.name)}`,
41
+ node: w(x, u(g, n, {
42
+ class: y ? s("col-hidden") : ""
43
+ }), A(e) ? e : {
44
+ default: () => [e]
45
+ })
46
+ };
47
+ });
48
+ }
49
+ return (c, a) => (i(), l(r(B), u({
50
+ class: r(s)()
51
+ }, r(F)(m, ["countPerRow"])), {
52
+ default: P(() => [(i(!0), R(S, null, b(d(), (e) => (i(), l(h(e.node), {
54
53
  key: e.key
55
54
  }))), 128))]),
56
55
  _: 1
@@ -58,5 +57,5 @@ const T = /* @__PURE__ */ h({
58
57
  }
59
58
  });
60
59
  export {
61
- T as default
60
+ M as default
62
61
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, ref as x, useSlots as g, computed as S, createBlock as k, openBlock as F, normalizeProps as d, guardReactiveProps as n, unref as l, createSlots as f, withCtx as i, createVNode as C, mergeProps as P, renderList as u, renderSlot as c } from "vue";
1
+ import { defineComponent as B, useSlots as x, ref as g, computed as S, createBlock as k, openBlock as F, normalizeProps as d, guardReactiveProps as n, unref as l, createSlots as f, withCtx as i, createVNode as C, mergeProps as P, renderList as u, renderSlot as c } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import "../../../ap-field/index.mjs";
4
4
  import { isUndefined as q, omit as m, pick as $ } from "lodash-unified";
@@ -54,8 +54,16 @@ const E = /* @__PURE__ */ B({
54
54
  disabled: { type: Boolean, default: void 0 }
55
55
  },
56
56
  setup(_, { expose: v }) {
57
- const o = _, t = x();
58
- v({
57
+ const o = _, p = x(), t = g(), h = S(() => {
58
+ var e, a;
59
+ return {
60
+ placeholder: o.placeholder,
61
+ disabled: o.disabled,
62
+ ...o.field || {},
63
+ bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
64
+ };
65
+ });
66
+ return v({
59
67
  focus: () => {
60
68
  var e;
61
69
  (e = t.value) == null || e.focus();
@@ -68,17 +76,7 @@ const E = /* @__PURE__ */ B({
68
76
  var e;
69
77
  (e = t.value) == null || e.request();
70
78
  }
71
- });
72
- const p = g(), h = S(() => {
73
- var e, a;
74
- return {
75
- placeholder: o.placeholder,
76
- disabled: o.disabled,
77
- ...o.field || {},
78
- bordered: o.bordered ? !1 : q((e = o.field) == null ? void 0 : e.bordered) ? !0 : (a = o.field) == null ? void 0 : a.bordered
79
- };
80
- });
81
- return (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
79
+ }), (e, a) => (F(), k(N, d(n(l(m)(o, ["field", "placeholder", "disabled"]))), f({
82
80
  default: i(() => [
83
81
  C(l(R), P(h.value, {
84
82
  ref_key: "selectRef",