@aplus-frontend/ui 0.5.37 → 0.6.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) 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/drawer-form/index.vue.d.ts +10 -10
  5. package/es/src/ap-form/interface.d.ts +31 -1
  6. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  7. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  8. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  11. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  13. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  15. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  16. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  20. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  21. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  22. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  23. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  24. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  25. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  26. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  27. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  28. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  31. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  32. package/es/src/ap-form/search-form/index.vue.mjs +127 -127
  33. package/es/src/ap-grid/index.vue.mjs +97 -93
  34. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  35. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  36. package/es/src/ap-table/constants.d.ts +161 -161
  37. package/es/src/ap-table/context.d.ts +5 -0
  38. package/es/src/ap-table/context.mjs +13 -5
  39. package/es/src/ap-table/utils.d.ts +147 -147
  40. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  41. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  42. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  43. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  44. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  45. package/es/src/business/ap-size-input/index.d.ts +3 -3
  46. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  47. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  48. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  49. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  50. package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
  51. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  52. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  53. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
  54. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  55. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  56. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  57. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  58. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  59. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  60. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  61. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  62. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  63. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  64. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  65. package/es/src/business/ap-view/index.d.ts +27 -0
  66. package/es/src/business/ap-view/index.mjs +8 -0
  67. package/es/src/business/ap-view/interface.d.ts +54 -0
  68. package/es/src/business/ap-view/interface.mjs +1 -0
  69. package/es/src/business/ap-view/style/css.d.ts +0 -0
  70. package/es/src/business/ap-view/style/css.js +1 -0
  71. package/es/src/business/ap-view/style/index.d.ts +0 -0
  72. package/es/src/business/ap-view/style/index.js +1 -0
  73. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  74. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  75. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  76. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  77. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  78. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  79. package/es/src/business/index.d.ts +1 -0
  80. package/es/src/business/index.mjs +25 -23
  81. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  82. package/es/src/config-provider/config-provider-props.mjs +4 -0
  83. package/es/src/config-provider/config-provider.d.ts +25 -1
  84. package/es/src/config-provider/config-provider.mjs +21 -20
  85. package/es/src/config-provider/css-var.d.ts +14 -0
  86. package/es/src/config-provider/css-var.mjs +40 -12
  87. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  88. package/es/src/config-provider/index.d.ts +89 -3
  89. package/es/src/full-screen/interface.d.ts +1 -1
  90. package/es/src/index.mjs +61 -59
  91. package/es/src/locale/lang/en.mjs +22 -1
  92. package/es/src/locale/lang/zh-cn.mjs +22 -1
  93. package/es/src/path-map.mjs +2 -1
  94. package/es/src/utils/config-provider-preset.d.ts +4 -4
  95. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  96. package/lib/index.js +1 -1
  97. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  98. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  99. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  100. package/lib/src/ap-form/interface.d.ts +31 -1
  101. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  102. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  103. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  104. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  105. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  106. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  107. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  108. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  109. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  110. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  111. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  112. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  113. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  114. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  115. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  116. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  117. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  118. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  119. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  120. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  121. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  122. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  123. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  124. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  125. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  126. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  127. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  128. package/lib/src/ap-grid/index.vue.js +1 -1
  129. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  130. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  131. package/lib/src/ap-table/constants.d.ts +161 -161
  132. package/lib/src/ap-table/context.d.ts +5 -0
  133. package/lib/src/ap-table/context.js +1 -1
  134. package/lib/src/ap-table/utils.d.ts +147 -147
  135. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  136. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  137. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  138. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  139. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  140. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  141. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  142. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  143. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  144. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  145. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  146. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  147. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  148. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  149. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  150. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  151. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  152. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  153. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  154. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  155. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  156. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  157. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  158. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  159. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  160. package/lib/src/business/ap-view/index.d.ts +27 -0
  161. package/lib/src/business/ap-view/index.js +1 -0
  162. package/lib/src/business/ap-view/interface.d.ts +54 -0
  163. package/lib/src/business/ap-view/interface.js +1 -0
  164. package/lib/src/business/ap-view/style/css.cjs +1 -0
  165. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  166. package/lib/src/business/ap-view/style/index.cjs +1 -0
  167. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  168. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  169. package/lib/src/business/ap-view/utils/enum.js +1 -0
  170. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  171. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  172. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  173. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  174. package/lib/src/business/index.d.ts +1 -0
  175. package/lib/src/business/index.js +1 -1
  176. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  177. package/lib/src/config-provider/config-provider-props.js +1 -1
  178. package/lib/src/config-provider/config-provider.d.ts +25 -1
  179. package/lib/src/config-provider/config-provider.js +1 -1
  180. package/lib/src/config-provider/css-var.d.ts +14 -0
  181. package/lib/src/config-provider/css-var.js +1 -1
  182. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  183. package/lib/src/config-provider/index.d.ts +89 -3
  184. package/lib/src/full-screen/interface.d.ts +1 -1
  185. package/lib/src/index.js +1 -1
  186. package/lib/src/locale/lang/en.js +1 -1
  187. package/lib/src/locale/lang/zh-cn.js +1 -1
  188. package/lib/src/path-map.js +1 -1
  189. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  190. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  191. package/package.json +7 -7
  192. package/theme/ap-action/item-dropdown.css +28 -0
  193. package/theme/ap-action/item-dropdown.less +1 -1
  194. package/theme/ap-action/item.css +35 -1
  195. package/theme/ap-action/item.less +1 -2
  196. package/theme/ap-appendix/ap-appendix.css +28 -0
  197. package/theme/ap-attachment/ap-attachment.css +28 -0
  198. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  199. package/theme/ap-button/ap-button.css +28 -0
  200. package/theme/ap-card/ap-card.css +28 -0
  201. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  202. package/theme/ap-download/ap-download.css +28 -0
  203. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  204. package/theme/ap-field/checkbox.css +28 -0
  205. package/theme/ap-field/index.css +28 -0
  206. package/theme/ap-field/number.css +28 -0
  207. package/theme/ap-field/radio.css +28 -0
  208. package/theme/ap-field/text-area.css +28 -0
  209. package/theme/ap-form/ap-form-item-group.css +28 -0
  210. package/theme/ap-form/ap-form-item.css +28 -0
  211. package/theme/ap-form/drawer-form.css +28 -0
  212. package/theme/ap-form/index.css +169 -0
  213. package/theme/ap-form/item-text-group.css +28 -0
  214. package/theme/ap-form/item-text.css +28 -0
  215. package/theme/ap-form/modal-form.css +28 -0
  216. package/theme/ap-form/search-form-sorter.css +120 -0
  217. package/theme/ap-form/search-form-sorter.less +71 -0
  218. package/theme/ap-form/search-form.css +169 -0
  219. package/theme/ap-form/search-form.less +56 -0
  220. package/theme/ap-grid/editable.css +28 -0
  221. package/theme/ap-grid/index.css +176 -1
  222. package/theme/ap-group-search/ap-extension-select.css +28 -0
  223. package/theme/ap-group-search/ap-group-search.css +28 -0
  224. package/theme/ap-group-search/ap-popover-select.css +28 -0
  225. package/theme/ap-image/ap-image.css +28 -0
  226. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  227. package/theme/ap-label/ap-label.css +28 -0
  228. package/theme/ap-ladder/ap-ladder.css +28 -0
  229. package/theme/ap-layout/ap-info-layout.css +28 -0
  230. package/theme/ap-list/index.css +28 -0
  231. package/theme/ap-product-info/ap-product-info.css +28 -0
  232. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  233. package/theme/ap-size-input/ap-size-input.css +28 -0
  234. package/theme/ap-status/ap-status.css +28 -0
  235. package/theme/ap-summary/index.css +28 -0
  236. package/theme/ap-table/ap-table-index.css +28 -0
  237. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  238. package/theme/ap-table/ap-table.css +190 -13
  239. package/theme/ap-table/ap-table.less +0 -1
  240. package/theme/ap-table/setting/index.css +42 -0
  241. package/theme/ap-table/setting/modal.css +36 -0
  242. package/theme/ap-table/setting/modal.less +1 -0
  243. package/theme/ap-table/setting/select-group.css +28 -0
  244. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  245. package/theme/ap-table/setting/sortable-item.css +28 -0
  246. package/theme/ap-table/setting/sorter.css +34 -0
  247. package/theme/ap-table/setting/sorter.less +1 -2
  248. package/theme/ap-table-modal/index.css +190 -13
  249. package/theme/ap-tag/ap-tag-group.css +28 -0
  250. package/theme/ap-tag/ap-tag.css +28 -0
  251. package/theme/ap-title/ap-title.css +28 -0
  252. package/theme/ap-upload/index.css +28 -0
  253. package/theme/ap-upload/multiple-file.css +28 -0
  254. package/theme/ap-upload/picture.css +28 -0
  255. package/theme/ap-upload/single-file.css +28 -0
  256. package/theme/ap-upload/upload.css +28 -0
  257. package/theme/ap-upload-single/index.css +28 -0
  258. package/theme/ap-view/ap-view.css +149 -0
  259. package/theme/ap-view/ap-view.less +128 -0
  260. package/theme/batch-input-group/index.css +28 -0
  261. package/theme/batch-input-group/popover-input.css +28 -0
  262. package/theme/check-card/index.css +49 -1
  263. package/theme/check-card/index.less +3 -4
  264. package/theme/editable-table/index.css +176 -1
  265. package/theme/full-screen/index.css +28 -0
  266. package/theme/index.css +340 -15
  267. package/theme/index.less +1 -0
  268. package/theme/mask/index.css +28 -0
  269. package/theme/mixins/config.less +1 -0
  270. package/theme/mixins/mixins.css +28 -0
  271. package/theme/mixins/mixins.less +35 -0
  272. package/theme/scroll-bar/index.css +28 -0
  273. package/theme/scroll-view/index.css +28 -0
  274. package/theme/splitter/index.css +28 -0
  275. package/theme/text/group.css +28 -0
  276. package/theme/text/index.css +36 -1
  277. package/theme/text/index.less +1 -1
  278. 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 ce, omit as ue } 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,148 @@ 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 P;
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 e, a;
124
+ (a = (e = y.value) == null ? void 0 : e.validateFields()) == null || a.then((l) => W(o.onSubmit, l));
124
125
  }
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));
126
+ function H() {
127
+ var e, a;
128
+ o.customReset || (a = (e = y.value) == null ? void 0 : e.resetFields) == null || a.call(e), W(o.onReset);
128
129
  }
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(() => {
130
+ const G = (e) => M(e) ? (ie(e) ? e : [e]).join("") : Date.now();
131
+ let I = [];
132
+ const c = j(V(i.default())), u = j((P = i.extra) == null ? void 0 : P.call(i)), E = _(() => Math.floor(s / n(z)));
133
+ L(() => i.default(), (e) => {
134
+ I = c.value, c.value = pe(I, V(e));
135
+ }), L(() => {
138
136
  var e;
139
- return (e = u.extra) == null ? void 0 : e.call(u);
137
+ return (e = i.extra) == null ? void 0 : e.call(i);
140
138
  }, (e) => {
141
- d.value = e;
139
+ u.value = e;
142
140
  });
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);
141
+ const r = _(() => {
142
+ const e = c.value, a = [], l = [], g = [], h = n(E);
143
+ let v = 0, b = 0;
144
+ const Q = s * o.maxRows - h * (n(u) && !o.extraInAction ? 2 : 1);
145
+ e.forEach((S, Z) => {
146
+ const p = S.props;
147
+ if (ce(p.hidden) ? !!p.hidden : M(p.hidden))
148
+ a.push(S);
150
149
  else {
151
- const y = r - i % r, _ = f.span || l;
152
- y >= _ ? i += _ : i += _ + y, s.push(p);
150
+ let C = p.span || h;
151
+ const O = {
152
+ node: S,
153
+ span: C,
154
+ key: `ApFormSearchFormItem-${Z}-${G(p.name)}-${p._signal}`
155
+ }, $ = s - v % s;
156
+ $ < C && (C += $), v += C, v > Q ? l.push(O) : (b = v, g.push(O));
153
157
  }
154
158
  });
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;
159
+ const T = s - (b + h) % s, X = b % s < h, Y = T < h ? s : T;
173
160
  return {
174
- hideNode: a(F, null, [t]),
175
- nodes: le,
176
- defaultExtraSpan: ae,
177
- actualExtraSpan: re,
178
- showCollapse: ne,
179
- lastRowOnlyIncludeActionAndExtra: oe
161
+ hideNode: t(w, null, [a]),
162
+ nodes: g,
163
+ collapseNodes: l,
164
+ extraSpan: Y,
165
+ lastRowOnlyIncludeActionAndExtra: X
180
166
  };
181
- }), te = S(() => {
167
+ });
168
+ function J(e) {
169
+ c.value = [...e];
170
+ }
171
+ const K = _(() => {
182
172
  let e;
183
- const t = o(A), s = a(B, {
184
- span: o(k),
173
+ const a = t(R, {
174
+ span: n(E),
185
175
  key: "actionWrapper"
186
176
  }, {
187
- default: () => [a(q, null, {
188
- default: () => [a($, {
189
- justify: !o(c) && t.lastRowOnlyIncludeActionAndExtra && !(o(d) && n.extraInAction) ? "flex-end" : "space-between"
177
+ default: () => [t(D, null, {
178
+ default: () => [t(B, {
179
+ wrap: "wrap",
180
+ justify: r.value.lastRowOnlyIncludeActionAndExtra && !(n(u) && o.extraInAction) ? "flex-end" : "space-between"
190
181
  }, {
191
- default: () => [a(he, null, {
192
- default: () => [a(v, {
182
+ default: () => [t(B, {
183
+ gap: 8,
184
+ wrap: "wrap"
185
+ }, {
186
+ default: () => [t("div", {
187
+ class: m("column-setting-trigger-wrapper")
188
+ }, [r.value.collapseNodes.length ? t(he, {
189
+ onSubmit: k,
190
+ config: r.value.collapseNodes,
191
+ submitLoading: o.submitLoading
192
+ }, null) : null, o.sortable && c.value.length ? t(xe, {
193
+ children: c.value,
194
+ onClickConfirm: J
195
+ }, null) : null]), t(U, {
193
196
  type: "primary",
194
- onClick: Y,
195
- loading: n.submitLoading,
196
- htmlType: "submit"
197
+ onClick: k,
198
+ loading: o.submitLoading,
199
+ htmlType: "submit",
200
+ class: m("action-btn")
197
201
  }, {
198
- default: () => [n.searchText || w("ap.apForm.search.search")]
199
- }), a(v, {
200
- onClick: Z
202
+ default: () => [o.searchText || N("ap.apForm.search.search")]
203
+ }), t(U, {
204
+ onClick: H,
205
+ type: "text",
206
+ class: [m("action-btn"), m("action-btn-reset")]
201
207
  }, {
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]
208
+ default: () => [o.resetText || N("ap.apForm.search.reset")]
209
+ })]
210
+ }), o.extraInAction ? n(u) : null]
211
211
  })]
212
212
  })]
213
- }), l = !n.extraInAction && o(d) ? a(B, {
214
- span: o(c) ? t.actualExtraSpan : t.defaultExtraSpan,
213
+ }), l = !o.extraInAction && n(u) ? t(R, {
214
+ span: r.value.extraSpan,
215
215
  key: "extraNode"
216
216
  }, {
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 : {
217
+ default: () => [t(D, null, {
218
+ default: () => [t(B, {
219
+ justify: r.value.extraSpan === s || r.value.lastRowOnlyIncludeActionAndExtra ? "start" : "flex-end"
220
+ }, ge(e = n(u)) ? e : {
221
221
  default: () => [e]
222
222
  })]
223
223
  })]
224
- }) : null, i = a(B, {
225
- span: t.defaultExtraSpan
224
+ }) : null, g = t(R, {
225
+ span: r.value.extraSpan
226
226
  }, null);
227
- return !o(c) && t.lastRowOnlyIncludeActionAndExtra ? a(F, null, [l || i, s]) : a(F, null, [s, l]);
227
+ return r.value.lastRowOnlyIncludeActionAndExtra ? t(w, null, [l || g, a]) : t(w, null, [a, l]);
228
228
  });
229
- return z({
230
- apForm: S(() => o(g))
231
- }), (e, t) => (m(), C(Ee, de({
229
+ return q({
230
+ apForm: _(() => n(y))
231
+ }), (e, a) => (d(), x(ye, ne({
232
232
  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), {
233
+ ref: y,
234
+ class: n(m)()
235
+ }, n(ue)(o, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
236
+ default: F(() => [(d(), x(A(r.value.hideNode))), t(n(se), {
237
237
  gutter: 16
238
238
  }, {
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
239
+ default: F(() => [(d(!0), le(w, null, re(r.value.nodes, (l) => (d(), x(n(R), {
240
+ key: l.key,
241
+ span: l.span
242
242
  }, {
243
- default: E(() => [(m(), C(b(s.node)))]),
243
+ default: F(() => [(d(), x(A(l.node)))]),
244
244
  _: 2
245
- }, 1032, ["span"]))), 128)), (m(), C(b(te.value)))]),
245
+ }, 1032, ["span"]))), 128)), (d(), x(A(K.value)))]),
246
246
  _: 1
247
247
  })]),
248
248
  _: 1
@@ -250,5 +250,5 @@ const r = 24, ze = /* @__PURE__ */ ie({
250
250
  }
251
251
  });
252
252
  export {
253
- ze as default
253
+ Le as default
254
254
  };