@aplus-frontend/ui 0.5.37 → 0.6.0-beta.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 (329) hide show
  1. package/es/index.mjs +74 -72
  2. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  3. package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
  4. package/es/src/ap-form/ap-form.vue2.mjs +57 -58
  5. package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  6. package/es/src/ap-form/interface.d.ts +35 -1
  7. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  8. package/es/src/ap-form/item/index.vue.mjs +33 -28
  9. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
  11. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/date/index.vue.mjs +8 -7
  13. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
  15. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  16. package/es/src/ap-form/items/number/index.vue.mjs +9 -8
  17. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  18. package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
  19. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  20. package/es/src/ap-form/items/select/index.vue.mjs +7 -6
  21. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  22. package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
  23. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  24. package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
  25. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  26. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  27. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  28. package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
  29. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  30. package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
  31. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  32. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  33. package/es/src/ap-form/render/item.vue.mjs +5 -4
  34. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  35. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  36. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  37. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  38. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  39. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  40. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  41. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  42. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  43. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  44. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  45. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  46. package/es/src/ap-form/search-form/index.vue.mjs +128 -127
  47. package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
  48. package/es/src/ap-grid/editable/index.vue.mjs +1 -1
  49. package/es/src/ap-grid/index.vue.mjs +113 -108
  50. package/es/src/ap-grid/interface.d.ts +1 -1
  51. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  52. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  53. package/es/src/ap-table/constants.d.ts +161 -161
  54. package/es/src/ap-table/context.d.ts +5 -0
  55. package/es/src/ap-table/context.mjs +13 -5
  56. package/es/src/ap-table/utils.d.ts +147 -147
  57. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  58. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  59. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  60. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  61. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  62. package/es/src/business/ap-size-input/index.d.ts +3 -3
  63. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  64. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  65. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  66. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  67. package/es/src/business/ap-view/ap-view.vue2.mjs +174 -0
  68. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  69. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  70. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +177 -0
  71. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  72. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  73. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  74. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  75. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  76. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  77. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  78. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  79. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  80. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  81. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  82. package/es/src/business/ap-view/index.d.ts +27 -0
  83. package/es/src/business/ap-view/index.mjs +8 -0
  84. package/es/src/business/ap-view/interface.d.ts +54 -0
  85. package/es/src/business/ap-view/interface.mjs +1 -0
  86. package/es/src/business/ap-view/style/css.d.ts +0 -0
  87. package/es/src/business/ap-view/style/css.js +1 -0
  88. package/es/src/business/ap-view/style/index.d.ts +0 -0
  89. package/es/src/business/ap-view/style/index.js +1 -0
  90. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  91. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  92. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  93. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  94. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  95. package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
  96. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  97. package/es/src/business/index.d.ts +1 -0
  98. package/es/src/business/index.mjs +25 -23
  99. package/es/src/check-card/index.vue2.mjs +1 -1
  100. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  101. package/es/src/config-provider/config-provider-props.mjs +4 -0
  102. package/es/src/config-provider/config-provider.d.ts +25 -1
  103. package/es/src/config-provider/config-provider.mjs +21 -20
  104. package/es/src/config-provider/css-var.d.ts +14 -0
  105. package/es/src/config-provider/css-var.mjs +40 -12
  106. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  107. package/es/src/config-provider/index.d.ts +89 -3
  108. package/es/src/design-token/index.mjs +9 -3
  109. package/es/src/editable-table/form-item.vue.mjs +1 -1
  110. package/es/src/editable-table/index.vue.mjs +27 -27
  111. package/es/src/full-screen/interface.d.ts +1 -1
  112. package/es/src/index.mjs +61 -59
  113. package/es/src/locale/lang/en.mjs +22 -1
  114. package/es/src/locale/lang/zh-cn.mjs +22 -1
  115. package/es/src/path-map.mjs +2 -1
  116. package/es/src/utils/config-provider-preset.d.ts +4 -4
  117. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  118. package/lib/index.js +1 -1
  119. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  120. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  121. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  122. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  123. package/lib/src/ap-form/interface.d.ts +35 -1
  124. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  125. package/lib/src/ap-form/item/index.vue.js +1 -1
  126. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  127. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  128. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  129. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  130. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  131. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  132. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  133. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  134. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  135. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  136. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  137. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  138. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  139. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  140. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  141. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  142. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  143. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  144. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  145. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  146. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  147. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  148. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  149. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  150. package/lib/src/ap-form/render/item.vue.js +1 -1
  151. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  152. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  153. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  154. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  155. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  156. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  157. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  158. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  159. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  160. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  161. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  162. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  163. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  164. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  165. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  166. package/lib/src/ap-grid/index.vue.js +1 -1
  167. package/lib/src/ap-grid/interface.d.ts +1 -1
  168. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  169. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  170. package/lib/src/ap-table/constants.d.ts +161 -161
  171. package/lib/src/ap-table/context.d.ts +5 -0
  172. package/lib/src/ap-table/context.js +1 -1
  173. package/lib/src/ap-table/utils.d.ts +147 -147
  174. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  175. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  176. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  177. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  178. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  179. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  180. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  181. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  182. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  183. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  184. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  185. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  186. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  187. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  188. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  189. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  190. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  191. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  192. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  193. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  194. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  195. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  196. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  197. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  198. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  199. package/lib/src/business/ap-view/index.d.ts +27 -0
  200. package/lib/src/business/ap-view/index.js +1 -0
  201. package/lib/src/business/ap-view/interface.d.ts +54 -0
  202. package/lib/src/business/ap-view/interface.js +1 -0
  203. package/lib/src/business/ap-view/style/css.cjs +1 -0
  204. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  205. package/lib/src/business/ap-view/style/index.cjs +1 -0
  206. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  207. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  208. package/lib/src/business/ap-view/utils/enum.js +1 -0
  209. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  210. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  211. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  212. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  213. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  214. package/lib/src/business/index.d.ts +1 -0
  215. package/lib/src/business/index.js +1 -1
  216. package/lib/src/check-card/index.vue2.js +1 -1
  217. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  218. package/lib/src/config-provider/config-provider-props.js +1 -1
  219. package/lib/src/config-provider/config-provider.d.ts +25 -1
  220. package/lib/src/config-provider/config-provider.js +1 -1
  221. package/lib/src/config-provider/css-var.d.ts +14 -0
  222. package/lib/src/config-provider/css-var.js +1 -1
  223. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  224. package/lib/src/config-provider/index.d.ts +89 -3
  225. package/lib/src/design-token/index.js +1 -1
  226. package/lib/src/editable-table/form-item.vue.js +1 -1
  227. package/lib/src/editable-table/index.vue.js +1 -1
  228. package/lib/src/full-screen/interface.d.ts +1 -1
  229. package/lib/src/index.js +1 -1
  230. package/lib/src/locale/lang/en.js +1 -1
  231. package/lib/src/locale/lang/zh-cn.js +1 -1
  232. package/lib/src/path-map.js +1 -1
  233. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  234. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  235. package/package.json +7 -7
  236. package/theme/ap-action/item-dropdown.css +30 -2
  237. package/theme/ap-action/item-dropdown.less +2 -2
  238. package/theme/ap-action/item.css +36 -2
  239. package/theme/ap-action/item.less +2 -3
  240. package/theme/ap-appendix/ap-appendix.css +28 -0
  241. package/theme/ap-attachment/ap-attachment.css +28 -0
  242. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  243. package/theme/ap-button/ap-button.css +28 -0
  244. package/theme/ap-card/ap-card.css +28 -0
  245. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  246. package/theme/ap-download/ap-download.css +28 -0
  247. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  248. package/theme/ap-field/checkbox.css +29 -1
  249. package/theme/ap-field/checkbox.less +2 -1
  250. package/theme/ap-field/index.css +30 -2
  251. package/theme/ap-field/number.css +28 -0
  252. package/theme/ap-field/radio.css +29 -1
  253. package/theme/ap-field/radio.less +1 -1
  254. package/theme/ap-field/text-area.css +28 -0
  255. package/theme/ap-form/ap-form-item-group.css +28 -0
  256. package/theme/ap-form/ap-form-item.css +35 -5
  257. package/theme/ap-form/ap-form-item.less +8 -6
  258. package/theme/ap-form/drawer-form.css +28 -0
  259. package/theme/ap-form/index.css +177 -6
  260. package/theme/ap-form/item-text-group.css +28 -0
  261. package/theme/ap-form/item-text.css +28 -0
  262. package/theme/ap-form/modal-form.css +28 -0
  263. package/theme/ap-form/search-form-sorter.css +120 -0
  264. package/theme/ap-form/search-form-sorter.less +71 -0
  265. package/theme/ap-form/search-form.css +177 -6
  266. package/theme/ap-form/search-form.less +57 -1
  267. package/theme/ap-grid/editable.css +30 -2
  268. package/theme/ap-grid/editable.less +2 -2
  269. package/theme/ap-grid/index.css +206 -20
  270. package/theme/ap-grid/index.less +17 -8
  271. package/theme/ap-group-search/ap-extension-select.css +28 -0
  272. package/theme/ap-group-search/ap-group-search.css +28 -0
  273. package/theme/ap-group-search/ap-popover-select.css +28 -0
  274. package/theme/ap-image/ap-image.css +28 -0
  275. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  276. package/theme/ap-label/ap-label.css +28 -0
  277. package/theme/ap-ladder/ap-ladder.css +28 -0
  278. package/theme/ap-layout/ap-info-layout.css +28 -0
  279. package/theme/ap-list/index.css +29 -1
  280. package/theme/ap-list/index.less +2 -1
  281. package/theme/ap-product-info/ap-product-info.css +28 -0
  282. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  283. package/theme/ap-size-input/ap-size-input.css +28 -0
  284. package/theme/ap-status/ap-status.css +28 -0
  285. package/theme/ap-summary/index.css +28 -0
  286. package/theme/ap-table/ap-table-index.css +28 -0
  287. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  288. package/theme/ap-table/ap-table.css +217 -34
  289. package/theme/ap-table/ap-table.less +12 -9
  290. package/theme/ap-table/setting/index.css +44 -2
  291. package/theme/ap-table/setting/modal.css +36 -0
  292. package/theme/ap-table/setting/modal.less +1 -0
  293. package/theme/ap-table/setting/select-group.css +28 -0
  294. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  295. package/theme/ap-table/setting/sortable-item.css +28 -0
  296. package/theme/ap-table/setting/sorter.css +36 -2
  297. package/theme/ap-table/setting/sorter.less +1 -2
  298. package/theme/ap-table-modal/index.css +217 -34
  299. package/theme/ap-tag/ap-tag-group.css +28 -0
  300. package/theme/ap-tag/ap-tag.css +28 -0
  301. package/theme/ap-title/ap-title.css +28 -0
  302. package/theme/ap-upload/index.css +28 -0
  303. package/theme/ap-upload/multiple-file.css +28 -0
  304. package/theme/ap-upload/picture.css +28 -0
  305. package/theme/ap-upload/single-file.css +28 -0
  306. package/theme/ap-upload/upload.css +28 -0
  307. package/theme/ap-upload-single/index.css +28 -0
  308. package/theme/ap-view/ap-view.css +149 -0
  309. package/theme/ap-view/ap-view.less +128 -0
  310. package/theme/batch-input-group/index.css +30 -2
  311. package/theme/batch-input-group/popover-input.css +28 -0
  312. package/theme/check-card/index.css +65 -17
  313. package/theme/check-card/index.less +20 -19
  314. package/theme/editable-table/index.css +198 -19
  315. package/theme/editable-table/index.less +9 -7
  316. package/theme/full-screen/index.css +28 -0
  317. package/theme/index.css +417 -75
  318. package/theme/index.less +1 -0
  319. package/theme/mask/index.css +28 -0
  320. package/theme/mixins/config.less +26 -3
  321. package/theme/mixins/mixins.css +28 -0
  322. package/theme/mixins/mixins.less +35 -0
  323. package/theme/scroll-bar/index.css +28 -0
  324. package/theme/scroll-view/index.css +28 -0
  325. package/theme/splitter/index.css +33 -5
  326. package/theme/text/group.css +28 -0
  327. package/theme/text/index.css +36 -1
  328. package/theme/text/index.less +1 -1
  329. package/theme/work-order-modal/index.css +28 -0
@@ -1,10 +1,10 @@
1
1
  import { ApFormExpose, ApFormSearchFormProps } from '../interface';
2
2
  import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef } from 'vue';
3
3
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
4
- import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
5
- import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
6
4
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
5
+ import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
7
6
  import { RuleObject } from '@aplus-frontend/antdv/es/form';
7
+ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
8
8
  import { Options } from '../../../node_modules/scroll-into-view-if-needed';
9
9
  import { Recordable } from '../../type';
10
10
  import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
@@ -30,10 +30,6 @@ declare function __VLS_template(): {
30
30
  readonly layout?: string | undefined;
31
31
  readonly disabled?: boolean | undefined;
32
32
  readonly prefixCls?: string | undefined;
33
- readonly name?: string | undefined;
34
- readonly validateMessages?: ValidateMessages | undefined;
35
- readonly requiredMark?: "" | RequiredMark | undefined;
36
- readonly colon?: boolean | undefined;
37
33
  readonly labelCol?: (Partial< ExtractPropTypes<{
38
34
  span: (StringConstructor | NumberConstructor)[];
39
35
  order: (StringConstructor | NumberConstructor)[];
@@ -100,13 +96,17 @@ declare function __VLS_template(): {
100
96
  prefixCls: StringConstructor;
101
97
  flex: (StringConstructor | NumberConstructor)[];
102
98
  }>> & HTMLAttributes) | undefined;
99
+ readonly colon?: boolean | undefined;
103
100
  readonly labelAlign?: FormLabelAlign | undefined;
101
+ readonly name?: string | undefined;
104
102
  readonly rules?: {
105
103
  [k: string]: RuleObject | RuleObject[];
106
104
  } | undefined;
107
105
  readonly validateTrigger?: string | string[] | undefined;
108
106
  readonly labelWrap?: boolean | undefined;
107
+ readonly requiredMark?: "" | RequiredMark | undefined;
109
108
  readonly hideRequiredMark?: boolean | undefined;
109
+ readonly validateMessages?: ValidateMessages | undefined;
110
110
  readonly validateOnRuleChange?: boolean | undefined;
111
111
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
112
112
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
@@ -840,11 +840,7 @@ declare function __VLS_template(): {
840
840
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
841
841
  declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
842
842
  apForm: ComputedRef<ApFormExpose | undefined>;
843
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
844
- "update:collapse": (...args: any[]) => void;
845
- }, string, PublicProps, Readonly<ApFormSearchFormProps> & Readonly<{
846
- "onUpdate:collapse"?: ((...args: any[]) => any) | undefined;
847
- }>, {
843
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormProps> & Readonly<{}>, {
848
844
  collapse: boolean;
849
845
  layout: string;
850
846
  colon: boolean;
@@ -852,11 +848,13 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
852
848
  validateTrigger: string | string[];
853
849
  hideRequiredMark: boolean;
854
850
  validateOnRuleChange: boolean;
855
- countPerRow: number;
851
+ countPerRow: 1 | 2 | 3 | 4 | 6 | 8 | 12 | 24;
856
852
  defaultCollapse: boolean;
857
853
  customReset: boolean;
858
854
  extraInAction: boolean;
859
855
  forceExpand: boolean;
856
+ maxRows: number;
857
+ sortable: boolean;
860
858
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
861
859
  apForm: ({
862
860
  $: ComponentInternalInstance;
@@ -867,10 +865,6 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
867
865
  readonly layout?: string | undefined;
868
866
  readonly disabled?: boolean | undefined;
869
867
  readonly prefixCls?: string | undefined;
870
- readonly name?: string | undefined;
871
- readonly validateMessages?: ValidateMessages | undefined;
872
- readonly requiredMark?: "" | RequiredMark | undefined;
873
- readonly colon?: boolean | undefined;
874
868
  readonly labelCol?: (Partial< ExtractPropTypes<{
875
869
  span: (StringConstructor | NumberConstructor)[];
876
870
  order: (StringConstructor | NumberConstructor)[];
@@ -937,13 +931,17 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
937
931
  prefixCls: StringConstructor;
938
932
  flex: (StringConstructor | NumberConstructor)[];
939
933
  }>> & HTMLAttributes) | undefined;
934
+ readonly colon?: boolean | undefined;
940
935
  readonly labelAlign?: FormLabelAlign | undefined;
936
+ readonly name?: string | undefined;
941
937
  readonly rules?: {
942
938
  [k: string]: RuleObject | RuleObject[];
943
939
  } | undefined;
944
940
  readonly validateTrigger?: string | string[] | undefined;
945
941
  readonly labelWrap?: boolean | undefined;
942
+ readonly requiredMark?: "" | RequiredMark | undefined;
946
943
  readonly hideRequiredMark?: boolean | undefined;
944
+ readonly validateMessages?: ValidateMessages | undefined;
947
945
  readonly validateOnRuleChange?: boolean | undefined;
948
946
  readonly scrollToFirstError?: boolean | Options<any> | undefined;
949
947
  readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
@@ -1,24 +1,25 @@
1
- import { isVNode as se, defineComponent as ie, useSlots as ue, ref as ce, unref as o, shallowRef as M, computed as S, watch as D, cloneVNode as pe, createVNode as a, Fragment as F, createBlock as C, openBlock as m, mergeProps as de, withCtx as E, resolveDynamicComponent as b, createElementBlock as fe, renderList as me } from "vue";
2
- import { Col as B, Flex as $, Space as he, Button as v, Row as xe } from "@aplus-frontend/antdv";
1
+ import { isVNode as ee, defineComponent as te, useSlots as oe, ref as ae, shallowRef as j, computed as _, unref as n, watch as L, createVNode as t, Fragment as w, createBlock as x, openBlock as d, mergeProps as ne, withCtx as F, resolveDynamicComponent as A, createElementBlock as le, renderList as re } from "vue";
2
+ import { Col as R, Flex as B, Button as U, Row as se } from "@aplus-frontend/antdv";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../item/index.vue2.mjs";
5
- import "../../hooks/index.mjs";
6
- import { genRealChildren as L } from "../item-group/helper.mjs";
7
- import { DoubleRightOutlined as ye } from "@ant-design/icons-vue";
5
+ import { genRealChildren as V } from "../item-group/helper.mjs";
8
6
  import "../../config-provider/index.mjs";
9
- import { isArray as Ce, isBoolean as ge, omit as _e } from "lodash-unified";
10
- import { isDef as U } from "../../utils/index.mjs";
11
- import { execFunc as W, diffFormItem as Se } from "./utils.mjs";
12
- import { useControllableValue as Fe } from "../../hooks/useControllableValue.mjs";
13
- import { useNamespace as Be } from "../../config-provider/hooks/use-namespace.mjs";
14
- import { useGlobalConfig as Re } from "../../config-provider/hooks/use-global-config.mjs";
15
- import { useLocale as Ae } from "../../config-provider/hooks/use-locale.mjs";
16
- import q from "../item/index.vue.mjs";
17
- import Ee from "../ap-form.vue2.mjs";
18
- function be(h) {
19
- return typeof h == "function" || Object.prototype.toString.call(h) === "[object Object]" && !se(h);
7
+ import { isArray as ie, isBoolean as ue, omit as ce } from "lodash-unified";
8
+ import { isDef as M } from "../../utils/index.mjs";
9
+ import { execFunc as W, diffFormItem as pe } from "./utils.mjs";
10
+ import "./components/popover-filter.vue.mjs";
11
+ import { useCountPerRow as de } from "./hooks/use-count-per-row.mjs";
12
+ import "./components/popover-sorter/index.vue.mjs";
13
+ import { useNamespace as fe } from "../../config-provider/hooks/use-namespace.mjs";
14
+ import { useLocale as me } from "../../config-provider/hooks/use-locale.mjs";
15
+ import D from "../item/index.vue.mjs";
16
+ import he from "./components/popover-filter.vue2.mjs";
17
+ import xe from "./components/popover-sorter/index.vue2.mjs";
18
+ import ye from "../ap-form.vue2.mjs";
19
+ function ge(f) {
20
+ return typeof f == "function" || Object.prototype.toString.call(f) === "[object Object]" && !ee(f);
20
21
  }
21
- const r = 24, ze = /* @__PURE__ */ ie({
22
+ const s = 24, Le = /* @__PURE__ */ te({
22
23
  name: "ApFormSearchForm",
23
24
  __name: "index",
24
25
  props: {
@@ -100,149 +101,149 @@ const r = 24, ze = /* @__PURE__ */ ie({
100
101
  },
101
102
  submitLoading: {
102
103
  type: Boolean
104
+ },
105
+ maxRows: {
106
+ default: 2
107
+ },
108
+ sortable: {
109
+ type: Boolean,
110
+ default: !0
103
111
  }
104
112
  },
105
- emits: ["update:collapse"],
106
- setup(h, {
107
- expose: z,
108
- emit: H
113
+ setup(f, {
114
+ expose: q
109
115
  }) {
110
- var I;
111
- const u = ue(), n = h, G = H, {
112
- value: c,
113
- updateValue: J
114
- } = Fe(n, G, {
115
- valuePropName: "collapse",
116
- defaultValuePropName: "defaultCollapse"
117
- }), {
118
- b: K
119
- } = Be("ap-form-search-form"), Q = Re("uiMode"), {
120
- t: w
121
- } = Ae(), g = ce();
122
- function X() {
123
- J(!o(c));
116
+ var E;
117
+ const i = oe(), o = f, {
118
+ b: m
119
+ } = fe("ap-form-search-form"), {
120
+ t: N
121
+ } = me(), z = de(o), y = ae();
122
+ function k() {
123
+ var a;
124
+ const e = (a = y.value) == null ? void 0 : a.getFieldsValueTransformed(!0);
125
+ W(o.onSubmit, e);
124
126
  }
125
- function Y() {
126
- var e, t;
127
- (t = (e = g.value) == null ? void 0 : e.validateFields()) == null || t.then((s) => W(n.onSubmit, s));
127
+ function H() {
128
+ var e, a;
129
+ o.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), W(o.onReset);
128
130
  }
129
- function Z() {
130
- var e, t;
131
- n.customReset || (t = (e = g.value) == null ? void 0 : e.resetFields) == null || t.call(e), W(n.onReset);
132
- }
133
- let N = [];
134
- const R = M(L(u.default())), d = M((I = u.extra) == null ? void 0 : I.call(u)), k = S(() => Math.floor(r / n.countPerRow));
135
- D(() => u.default(), (e) => {
136
- N = R.value, R.value = Se(N, L(e));
137
- }), D(() => {
131
+ const G = (e) => M(e) ? (ie(e) ? e : [e]).join("") : Date.now();
132
+ let I = [];
133
+ const u = j(V(i.default())), c = j((E = i.extra) == null ? void 0 : E.call(i)), T = _(() => Math.floor(s / n(z)));
134
+ L(() => i.default(), (e) => {
135
+ I = u.value, u.value = pe(I, V(e));
136
+ }), L(() => {
138
137
  var e;
139
- return (e = u.extra) == null ? void 0 : e.call(u);
138
+ return (e = i.extra) == null ? void 0 : e.call(i);
140
139
  }, (e) => {
141
- d.value = e;
140
+ c.value = e;
142
141
  });
143
- const ee = (e) => U(e) ? (Ce(e) ? e : [e]).join("") : Date.now(), A = S(() => {
144
- const e = R.value, t = [], s = [], l = o(k);
145
- let i = 0;
146
- e.forEach((p) => {
147
- const f = p.props;
148
- if (ge(f.hidden) ? !!f.hidden : U(f.hidden))
149
- t.push(p);
142
+ const l = _(() => {
143
+ const e = u.value, a = [], r = [], g = [], h = n(T);
144
+ let v = 0, b = 0;
145
+ const Q = s * o.maxRows - h * (n(c) && !o.extraInAction ? 2 : 1);
146
+ e.forEach((S, Z) => {
147
+ const p = S.props;
148
+ if (ue(p.hidden) ? !!p.hidden : M(p.hidden))
149
+ a.push(S);
150
150
  else {
151
- const y = r - i % r, _ = f.span || l;
152
- y >= _ ? i += _ : i += _ + y, s.push(p);
151
+ let C = p.span || h;
152
+ const O = {
153
+ node: S,
154
+ span: C,
155
+ key: `ApFormSearchFormItem-${Z}-${G(p.name)}-${p._signal}`
156
+ }, $ = s - v % s;
157
+ $ < C && (C += $), v += C, v > Q ? r.push(O) : (b = v, g.push(O));
153
158
  }
154
159
  });
155
- const P = r - i % r;
156
- P < l && (i += P);
157
- const T = r - (i + l) % r, oe = i % r < l, ae = T < l ? r : T, O = r - l * (o(d) && !n.extraInAction ? 2 : 1), ne = !n.forceExpand && i > O;
158
- let V = 0, j = 0;
159
- const le = s.map((p, f) => {
160
- const x = p.props, y = x.span || l;
161
- if (V += y, !n.forceExpand && o(c) && V > O) {
162
- t.push(pe(p, {
163
- hidden: !0
164
- }));
165
- return;
166
- }
167
- return j += y, {
168
- node: p,
169
- span: x.span || l,
170
- key: `ApFormSearchFormItem-${f}-${ee(x.name)}-${x._signal}`
171
- };
172
- }).filter(Boolean), re = r - j - l;
160
+ const P = s - (b + h) % s, X = b % s < h, Y = P < h ? s : P;
173
161
  return {
174
- hideNode: a(F, null, [t]),
175
- nodes: le,
176
- defaultExtraSpan: ae,
177
- actualExtraSpan: re,
178
- showCollapse: ne,
179
- lastRowOnlyIncludeActionAndExtra: oe
162
+ hideNode: t(w, null, [a]),
163
+ nodes: g,
164
+ collapseNodes: r,
165
+ extraSpan: Y,
166
+ lastRowOnlyIncludeActionAndExtra: X
180
167
  };
181
- }), te = S(() => {
168
+ });
169
+ function J(e) {
170
+ u.value = [...e];
171
+ }
172
+ const K = _(() => {
182
173
  let e;
183
- const t = o(A), s = a(B, {
184
- span: o(k),
174
+ const a = t(R, {
175
+ span: n(T),
185
176
  key: "actionWrapper"
186
177
  }, {
187
- default: () => [a(q, null, {
188
- default: () => [a($, {
189
- justify: !o(c) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
178
+ default: () => [t(D, null, {
179
+ default: () => [t(B, {
180
+ wrap: "wrap",
181
+ justify: l.value.lastRowOnlyIncludeActionAndExtra && !(n(c) && o.extraInAction) ? "flex-end" : "space-between"
190
182
  }, {
191
- default: () => [a(he, null, {
192
- default: () => [a(v, {
183
+ default: () => [t(B, {
184
+ gap: 8,
185
+ wrap: "wrap"
186
+ }, {
187
+ default: () => [t("div", {
188
+ class: m("column-setting-trigger-wrapper")
189
+ }, [l.value.collapseNodes.length ? t(he, {
190
+ onSubmit: k,
191
+ config: l.value.collapseNodes,
192
+ submitLoading: o.submitLoading
193
+ }, null) : null, o.sortable && u.value.length ? t(xe, {
194
+ children: u.value,
195
+ onClickConfirm: J
196
+ }, null) : null]), t(U, {
193
197
  type: "primary",
194
- onClick: Y,
195
- loading: n.submitLoading,
196
- htmlType: "submit"
198
+ onClick: k,
199
+ loading: o.submitLoading,
200
+ htmlType: "submit",
201
+ class: m("action-btn")
197
202
  }, {
198
- default: () => [n.searchText || w("ap.apForm.search.search")]
199
- }), a(v, {
200
- onClick: Z
203
+ default: () => [o.searchText || N("ap.apForm.search.search")]
204
+ }), t(U, {
205
+ onClick: H,
206
+ type: "text",
207
+ class: [m("action-btn"), m("action-btn-reset")]
201
208
  }, {
202
- default: () => [n.resetText || w("ap.apForm.search.reset")]
203
- }), t.showCollapse ? a(v, {
204
- onClick: X,
205
- icon: a(ye, {
206
- style: Q.value === "aplus" ? "color:#B8C3D1" : "color:#BFBFBF",
207
- rotate: o(c) ? 90 : -90
208
- }, null)
209
- }, null) : null]
210
- }), n.extraInAction ? o(d) : null]
209
+ default: () => [o.resetText || N("ap.apForm.search.reset")]
210
+ })]
211
+ }), o.extraInAction ? n(c) : null]
211
212
  })]
212
213
  })]
213
- }), l = !n.extraInAction && o(d) ? a(B, {
214
- span: o(c) ? t.actualExtraSpan : t.defaultExtraSpan,
214
+ }), r = !o.extraInAction && n(c) ? t(R, {
215
+ span: l.value.extraSpan,
215
216
  key: "extraNode"
216
217
  }, {
217
- default: () => [a(q, null, {
218
- default: () => [a($, {
219
- justify: !o(c) && (t.defaultExtraSpan === r || t.lastRowOnlyIncludeActionAndExtra) ? "start" : "flex-end"
220
- }, be(e = o(d)) ? e : {
218
+ default: () => [t(D, null, {
219
+ default: () => [t(B, {
220
+ justify: l.value.extraSpan === s || l.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
221
+ }, ge(e = n(c)) ? e : {
221
222
  default: () => [e]
222
223
  })]
223
224
  })]
224
- }) : null, i = a(B, {
225
- span: t.defaultExtraSpan
225
+ }) : null, g = t(R, {
226
+ span: l.value.extraSpan
226
227
  }, null);
227
- return !o(c) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
228
+ return l.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [r || g, a]) : t(w, null, [a, r]);
228
229
  });
229
- return z({
230
- apForm: S(() => o(g))
231
- }), (e, t) => (m(), C(Ee, de({
230
+ return q({
231
+ apForm: _(() => n(y))
232
+ }), (e, a) => (d(), x(ye, ne({
232
233
  ref_key: "apForm",
233
- ref: g,
234
- class: o(K)()
235
- }, o(_e)(n, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
236
- default: E(() => [(m(), C(b(A.value.hideNode))), a(o(xe), {
234
+ ref: y,
235
+ class: n(m)()
236
+ }, n(ce)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
237
+ default: F(() => [(d(), x(A(l.value.hideNode))), t(n(se), {
237
238
  gutter: 16
238
239
  }, {
239
- default: E(() => [(m(!0), fe(F, null, me(A.value.nodes, (s) => (m(), C(o(B), {
240
- key: s.key,
241
- span: s.span
240
+ default: F(() => [(d(!0), le(w, null, re(l.value.nodes, (r) => (d(), x(n(R), {
241
+ key: r.key,
242
+ span: r.span
242
243
  }, {
243
- default: E(() => [(m(), C(b(s.node)))]),
244
+ default: F(() => [(d(), x(A(r.node)))]),
244
245
  _: 2
245
- }, 1032, ["span"]))), 128)), (m(), C(b(te.value)))]),
246
+ }, 1032, ["span"]))), 128)), (d(), x(A(K.value)))]),
246
247
  _: 1
247
248
  })]),
248
249
  _: 1
@@ -250,5 +251,5 @@ const r = 24, ze = /* @__PURE__ */ ie({
250
251
  }
251
252
  });
252
253
  export {
253
- ze as default
254
+ Le as default
254
255
  };
@@ -122,7 +122,7 @@ const ye = /* @__PURE__ */ P({
122
122
  tableWrapperStyle: {},
123
123
  wrapperStyle: {},
124
124
  size: {
125
- default: "medium"
125
+ default: "mini"
126
126
  },
127
127
  adaptive: {
128
128
  type: Boolean,
@@ -123,7 +123,7 @@ const be = /* @__PURE__ */ U({
123
123
  tableWrapperStyle: {},
124
124
  wrapperStyle: {},
125
125
  size: {
126
- default: "medium"
126
+ default: "mini"
127
127
  },
128
128
  adaptive: {
129
129
  type: Boolean,