@aplus-frontend/ui 6.17.2 → 6.19.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 (324) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
  6. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-action-button.vue.mjs +11 -7
  8. package/es/src/ap-button/ap-button.vue.mjs +24 -20
  9. package/es/src/ap-button/ap-confirm-button.vue.mjs +15 -11
  10. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  11. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  12. package/es/src/ap-download/ap-download.vue.mjs +21 -18
  13. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
  14. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  15. package/es/src/ap-field/date/index.vue.mjs +4 -4
  16. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  17. package/es/src/ap-field/index.mjs +36 -36
  18. package/es/src/ap-field/number/index.vue.d.ts +29 -29
  19. package/es/src/ap-field/number/index.vue.mjs +8 -8
  20. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  21. package/es/src/ap-field/rate/index.vue.d.ts +4 -4
  22. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  23. package/es/src/ap-field/segmented/index.vue.mjs +17 -12
  24. package/es/src/ap-field/select/index.vue.d.ts +97 -97
  25. package/es/src/ap-field/select/index.vue.mjs +10 -10
  26. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  27. package/es/src/ap-field/slider/index.vue.d.ts +8 -8
  28. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  29. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  30. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  31. package/es/src/ap-field/text/password.vue.mjs +2 -2
  32. package/es/src/ap-field/text-area/index.vue.d.ts +54 -54
  33. package/es/src/ap-field/text-area/index.vue.mjs +12 -12
  34. package/es/src/ap-field/tree-select/index.vue.d.ts +93 -93
  35. package/es/src/ap-field/tree-select/index.vue.mjs +19 -19
  36. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  37. package/es/src/ap-form/ap-form.vue.d.ts +14 -15
  38. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  39. package/es/src/ap-form/drawer-form/index.vue.d.ts +18 -19
  40. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  41. package/es/src/ap-form/item/index.vue.mjs +7 -7
  42. package/es/src/ap-form/item-group/index.vue.mjs +1 -1
  43. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  44. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  45. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  46. package/es/src/ap-form/items/number/index.vue.d.ts +31 -31
  47. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  48. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  49. package/es/src/ap-form/items/select/index.vue.d.ts +105 -105
  50. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  51. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  52. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  53. package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
  54. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  55. package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
  56. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  57. package/es/src/ap-form/items/text-area/index.vue.d.ts +106 -106
  58. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  59. package/es/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
  60. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  61. package/es/src/ap-form/modal-form/index.vue.d.ts +48 -20
  62. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  63. package/es/src/ap-form/render/item.vue.mjs +2 -2
  64. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
  65. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
  66. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
  67. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
  68. package/es/src/ap-form/search-form/index.vue.d.ts +18 -19
  69. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  70. package/es/src/ap-form/set/index.vue.mjs +1 -1
  71. package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  72. package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
  73. package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
  74. package/es/src/ap-grid/editable/index.vue.mjs +2 -2
  75. package/es/src/ap-grid/index.vue.d.ts +2 -4
  76. package/es/src/ap-grid/index.vue.mjs +26 -19
  77. package/es/src/ap-grid/utils/table.d.ts +1 -1
  78. package/es/src/ap-grid/utils/table.mjs +31 -31
  79. package/es/src/ap-list/index.vue.d.ts +2 -4
  80. package/es/src/ap-list/index.vue.mjs +1 -1
  81. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  82. package/es/src/ap-table/ap-table.vue.d.ts +2 -4
  83. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  84. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  85. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  86. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  87. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  88. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  89. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  90. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  91. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  92. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  93. package/es/src/ap-table/constants.d.ts +331 -331
  94. package/es/src/ap-table/constants.mjs +45 -45
  95. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  96. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  97. package/es/src/ap-tag/ap-tag-group.vue.mjs +73 -78
  98. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -0
  99. package/es/src/ap-tag/ap-tag.vue.mjs +45 -30
  100. package/es/src/ap-tag/interface.d.ts +6 -0
  101. package/es/src/ap-tag/utils.d.ts +1 -0
  102. package/es/src/ap-tag/utils.mjs +12 -0
  103. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  104. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
  105. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  106. package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
  107. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  108. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  109. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  110. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  111. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
  112. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
  113. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  114. package/es/src/business/ap-batch-action-group/index.d.ts +33 -11
  115. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  116. package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
  117. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
  118. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +395 -144
  119. package/es/src/business/ap-draggable-grid/constans.d.ts +0 -8
  120. package/es/src/business/ap-draggable-grid/constans.mjs +0 -8
  121. package/es/src/business/ap-draggable-grid/index.d.ts +3 -31
  122. package/es/src/business/ap-draggable-grid/interface.d.ts +2 -0
  123. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  124. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  125. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  126. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
  127. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  128. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  129. package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
  130. package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
  131. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
  132. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  133. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  134. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  135. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  136. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  137. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  138. package/es/src/business/ap-table-modal/index.d.ts +17 -5
  139. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  140. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  141. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  142. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  143. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  144. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  145. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  146. package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
  147. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
  148. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
  149. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
  150. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
  151. package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
  152. package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
  153. package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
  154. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  155. package/es/src/business/batch-input-group/index.vue.d.ts +2 -2
  156. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  157. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
  158. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  159. package/es/src/check-card/index.vue2.mjs +3 -3
  160. package/es/src/config-provider/config-provider-props.d.ts +4 -5
  161. package/es/src/config-provider/config-provider.d.ts +8 -9
  162. package/es/src/config-provider/hooks/use-global-config.d.ts +4 -5
  163. package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
  164. package/es/src/config-provider/index.d.ts +13 -14
  165. package/es/src/editable-table/form-item.vue.d.ts +2 -4
  166. package/es/src/editable-table/form-item.vue.mjs +2 -2
  167. package/es/src/editable-table/index.vue.d.ts +2 -4
  168. package/es/src/editable-table/index.vue.mjs +2 -2
  169. package/es/src/full-screen/index.vue.mjs +3 -3
  170. package/es/src/hooks/useFullScreen.mjs +5 -5
  171. package/es/src/mask/index.vue.mjs +10 -10
  172. package/es/src/portal/index.vue.mjs +2 -2
  173. package/es/src/scroll-bar/index.vue.mjs +3 -3
  174. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  175. package/es/src/scroll-view/index.vue.d.ts +5 -5
  176. package/es/src/scroll-view/index.vue.mjs +9 -9
  177. package/es/src/splitter/Panel.vue2.mjs +4 -4
  178. package/es/src/splitter/SplitBar.vue2.mjs +7 -7
  179. package/es/src/splitter/Splitter.vue2.mjs +5 -5
  180. package/es/src/tests/wrapper.d.ts +4 -4
  181. package/es/src/text/group.vue.mjs +2 -2
  182. package/es/src/text/index.vue.mjs +5 -5
  183. package/es/src/utils/config-provider-preset.d.ts +5 -6
  184. package/es/src/version.d.ts +1 -1
  185. package/es/src/version.mjs +1 -1
  186. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  187. package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
  188. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  189. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  190. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +31 -2
  191. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  192. package/lib/src/ap-button/ap-button.vue.js +1 -1
  193. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  194. package/lib/src/ap-download/ap-download.vue.js +1 -1
  195. package/lib/src/ap-field/index.js +1 -1
  196. package/lib/src/ap-field/number/index.vue.d.ts +29 -29
  197. package/lib/src/ap-field/rate/index.vue.d.ts +4 -4
  198. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  199. package/lib/src/ap-field/select/index.vue.d.ts +97 -97
  200. package/lib/src/ap-field/select/index.vue.js +1 -1
  201. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  202. package/lib/src/ap-field/slider/index.vue.d.ts +8 -8
  203. package/lib/src/ap-field/text-area/index.vue.d.ts +54 -54
  204. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  205. package/lib/src/ap-field/tree-select/index.vue.d.ts +93 -93
  206. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  207. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  208. package/lib/src/ap-form/ap-form.vue.d.ts +14 -15
  209. package/lib/src/ap-form/drawer-form/index.vue.d.ts +18 -19
  210. package/lib/src/ap-form/items/number/index.vue.d.ts +31 -31
  211. package/lib/src/ap-form/items/select/index.vue.d.ts +105 -105
  212. package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
  213. package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
  214. package/lib/src/ap-form/items/text-area/index.vue.d.ts +106 -106
  215. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +95 -95
  216. package/lib/src/ap-form/modal-form/index.vue.d.ts +48 -20
  217. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +29 -10
  218. package/lib/src/ap-form/search-form/index.vue.d.ts +18 -19
  219. package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
  220. package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
  221. package/lib/src/ap-grid/index.vue.d.ts +2 -4
  222. package/lib/src/ap-grid/index.vue.js +1 -1
  223. package/lib/src/ap-grid/utils/table.d.ts +1 -1
  224. package/lib/src/ap-grid/utils/table.js +1 -1
  225. package/lib/src/ap-list/index.vue.d.ts +2 -4
  226. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  227. package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
  228. package/lib/src/ap-table/constants.d.ts +331 -331
  229. package/lib/src/ap-table/constants.js +1 -1
  230. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  231. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  232. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -0
  233. package/lib/src/ap-tag/ap-tag.vue.js +1 -1
  234. package/lib/src/ap-tag/interface.d.ts +6 -0
  235. package/lib/src/ap-tag/utils.d.ts +1 -0
  236. package/lib/src/ap-tag/utils.js +1 -0
  237. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  238. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +3 -3
  239. package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
  240. package/lib/src/business/ap-batch-action-group/index.d.ts +33 -11
  241. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +3 -19
  242. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  243. package/lib/src/business/ap-draggable-grid/constans.d.ts +0 -8
  244. package/lib/src/business/ap-draggable-grid/constans.js +1 -1
  245. package/lib/src/business/ap-draggable-grid/index.d.ts +3 -31
  246. package/lib/src/business/ap-draggable-grid/interface.d.ts +2 -0
  247. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
  248. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  249. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  250. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
  251. package/lib/src/business/ap-table-modal/index.d.ts +17 -5
  252. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -11
  253. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -11
  254. package/lib/src/business/batch-input-group/index.vue.d.ts +2 -2
  255. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +54 -54
  256. package/lib/src/config-provider/config-provider-props.d.ts +4 -5
  257. package/lib/src/config-provider/config-provider.d.ts +8 -9
  258. package/lib/src/config-provider/hooks/use-global-config.d.ts +4 -5
  259. package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
  260. package/lib/src/config-provider/index.d.ts +13 -14
  261. package/lib/src/editable-table/form-item.vue.d.ts +2 -4
  262. package/lib/src/editable-table/index.vue.d.ts +2 -4
  263. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  264. package/lib/src/tests/wrapper.d.ts +4 -4
  265. package/lib/src/utils/config-provider-preset.d.ts +5 -6
  266. package/lib/src/version.d.ts +1 -1
  267. package/lib/src/version.js +1 -1
  268. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -11
  269. package/package.json +3 -3
  270. package/theme/antdv-override.css +2 -6
  271. package/theme/antdv-override.less +2 -6
  272. package/theme/ap-descriptions/ap-descriptions.css +1 -1
  273. package/theme/ap-descriptions/ap-descriptions.less +1 -1
  274. package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -3
  275. package/theme/ap-draggable-grid/ap-draggable-grid.less +4 -2
  276. package/theme/ap-label/ap-label.css +1 -0
  277. package/theme/ap-label/ap-label.less +1 -0
  278. package/theme/ap-tag/ap-tag.css +3 -1
  279. package/theme/ap-tag/ap-tag.less +3 -1
  280. package/theme/index.css +11 -11
  281. package/theme/antd-global-overwrite/admin/alert.css +0 -37
  282. package/theme/antd-global-overwrite/admin/alert.less +0 -51
  283. package/theme/antd-global-overwrite/admin/button.css +0 -27
  284. package/theme/antd-global-overwrite/admin/button.less +0 -31
  285. package/theme/antd-global-overwrite/admin/field.css +0 -42
  286. package/theme/antd-global-overwrite/admin/field.less +0 -43
  287. package/theme/antd-global-overwrite/admin/form.css +0 -57
  288. package/theme/antd-global-overwrite/admin/form.less +0 -97
  289. package/theme/antd-global-overwrite/admin/message.css +0 -10
  290. package/theme/antd-global-overwrite/admin/message.less +0 -13
  291. package/theme/antd-global-overwrite/admin/modal.css +0 -94
  292. package/theme/antd-global-overwrite/admin/modal.less +0 -128
  293. package/theme/antd-global-overwrite/admin/pagination.css +0 -122
  294. package/theme/antd-global-overwrite/admin/pagination.less +0 -91
  295. package/theme/antd-global-overwrite/admin/steps.css +0 -127
  296. package/theme/antd-global-overwrite/admin/steps.less +0 -197
  297. package/theme/antd-global-overwrite/admin/table.css +0 -78
  298. package/theme/antd-global-overwrite/admin/table.less +0 -62
  299. package/theme/antd-global-overwrite/admin/tooltip.css +0 -3
  300. package/theme/antd-global-overwrite/admin/tooltip.less +0 -3
  301. package/theme/antd-global-overwrite/aplus/alert.css +0 -40
  302. package/theme/antd-global-overwrite/aplus/alert.less +0 -55
  303. package/theme/antd-global-overwrite/aplus/button.css +0 -27
  304. package/theme/antd-global-overwrite/aplus/button.less +0 -31
  305. package/theme/antd-global-overwrite/aplus/field.css +0 -42
  306. package/theme/antd-global-overwrite/aplus/field.less +0 -43
  307. package/theme/antd-global-overwrite/aplus/form.css +0 -87
  308. package/theme/antd-global-overwrite/aplus/form.less +0 -133
  309. package/theme/antd-global-overwrite/aplus/message.css +0 -10
  310. package/theme/antd-global-overwrite/aplus/message.less +0 -13
  311. package/theme/antd-global-overwrite/aplus/modal.css +0 -87
  312. package/theme/antd-global-overwrite/aplus/modal.less +0 -120
  313. package/theme/antd-global-overwrite/aplus/pagination.css +0 -147
  314. package/theme/antd-global-overwrite/aplus/pagination.less +0 -108
  315. package/theme/antd-global-overwrite/aplus/steps.css +0 -125
  316. package/theme/antd-global-overwrite/aplus/steps.less +0 -198
  317. package/theme/antd-global-overwrite/aplus/table.css +0 -78
  318. package/theme/antd-global-overwrite/aplus/table.less +0 -61
  319. package/theme/antd-global-overwrite/aplus/tooltip.css +0 -3
  320. package/theme/antd-global-overwrite/aplus/tooltip.less +0 -3
  321. package/theme/ap-table/ap-table-pagination.css +0 -12
  322. package/theme/ap-table/ap-table-pagination.less +0 -14
  323. package/theme/ui-mode.css +0 -60
  324. package/theme/ui-mode.less +0 -109
@@ -2,7 +2,7 @@ import { DefaultOptionType, SelectValue, LabeledValue } from '@aplus-frontend/an
2
2
  import { ApFieldSelectProps } from '../interface';
3
3
  import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
- import { ButtonSize } from '@aplus-frontend/antdv/es/button';
5
+ import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
7
7
  import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
8
8
  import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
@@ -39,8 +39,8 @@ declare function __VLS_template(): {
39
39
  suffixIcon: VueTypeValidableDef<any>;
40
40
  itemIcon: VueTypeValidableDef<any>;
41
41
  size: {
42
- type: PropType<ButtonSize>;
43
- default: ButtonSize;
42
+ type: PropType<SizeType>;
43
+ default: SizeType;
44
44
  };
45
45
  mode: {
46
46
  type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
@@ -58,8 +58,8 @@ declare function __VLS_template(): {
58
58
  popupClassName: StringConstructor;
59
59
  dropdownClassName: StringConstructor;
60
60
  placement: {
61
- type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
62
- default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
61
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
62
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
63
63
  };
64
64
  status: {
65
65
  type: PropType<"" | "error" | "warning">;
@@ -99,8 +99,6 @@ declare function __VLS_template(): {
99
99
  default: any;
100
100
  };
101
101
  prefixCls: StringConstructor;
102
- id: StringConstructor;
103
- autofocus: BooleanConstructor;
104
102
  getPopupContainer: {
105
103
  type: PropType<RenderDOMFunc>;
106
104
  };
@@ -112,21 +110,28 @@ declare function __VLS_template(): {
112
110
  type: PropType<number | boolean>;
113
111
  default: any;
114
112
  };
115
- options: PropType<DefaultOptionType[]>;
116
- showAction: {
117
- type: PropType<("click" | "focus")[]>;
118
- };
119
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
120
113
  loading: {
121
114
  type: BooleanConstructor;
122
115
  default: any;
123
116
  };
117
+ showAction: {
118
+ type: PropType<("click" | "focus")[]>;
119
+ };
120
+ dropdownAlign: PropType<AlignType>;
124
121
  placeholder: VueTypeValidableDef<any>;
125
- clearIcon: VueTypeValidableDef<any>;
126
122
  allowClear: {
127
123
  type: BooleanConstructor;
128
124
  default: any;
129
125
  };
126
+ autofocus: BooleanConstructor;
127
+ defaultOpen: {
128
+ type: BooleanConstructor;
129
+ default: any;
130
+ };
131
+ id: StringConstructor;
132
+ clearIcon: VueTypeValidableDef<any>;
133
+ options: PropType<DefaultOptionType[]>;
134
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
130
135
  onSearch: PropType<(value: string) => void>;
131
136
  fieldNames: PropType<FieldNames>;
132
137
  dropdownStyle: {
@@ -135,7 +140,6 @@ declare function __VLS_template(): {
135
140
  dropdownRender: {
136
141
  type: PropType<DropdownRender>;
137
142
  };
138
- dropdownAlign: PropType<AlignType>;
139
143
  showSearch: {
140
144
  type: BooleanConstructor;
141
145
  default: any;
@@ -158,10 +162,6 @@ declare function __VLS_template(): {
158
162
  type: PropType<(option: Record<string, any>) => any>;
159
163
  };
160
164
  onClear: PropType<() => void>;
161
- defaultOpen: {
162
- type: BooleanConstructor;
163
- default: any;
164
- };
165
165
  onDropdownVisibleChange: {
166
166
  type: PropType<(open: boolean) => void>;
167
167
  };
@@ -194,24 +194,24 @@ declare function __VLS_template(): {
194
194
  default: any;
195
195
  };
196
196
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
197
- size: ButtonSize;
197
+ size: SizeType;
198
198
  value: SelectValue;
199
199
  mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
200
200
  open: boolean;
201
201
  disabled: boolean;
202
- autofocus: boolean;
203
202
  virtual: boolean;
204
203
  dropdownMatchSelectWidth: number | boolean;
205
- status: "" | "error" | "warning";
206
- defaultValue: SelectValue;
207
- 'onUpdate:value': (val: SelectValue) => void;
208
- placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
209
204
  loading: boolean;
210
205
  bordered: boolean;
206
+ defaultValue: SelectValue;
207
+ status: "" | "error" | "warning";
211
208
  allowClear: boolean;
209
+ autofocus: boolean;
210
+ defaultOpen: boolean;
211
+ 'onUpdate:value': (val: SelectValue) => void;
212
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
212
213
  showSearch: boolean;
213
214
  choiceTransitionName: "";
214
- defaultOpen: boolean;
215
215
  showArrow: boolean;
216
216
  autoClearSearchValue: boolean;
217
217
  filterOption: boolean | FilterFunc<DefaultOptionType>;
@@ -250,8 +250,8 @@ declare function __VLS_template(): {
250
250
  suffixIcon: VueTypeValidableDef<any>;
251
251
  itemIcon: VueTypeValidableDef<any>;
252
252
  size: {
253
- type: PropType<ButtonSize>;
254
- default: ButtonSize;
253
+ type: PropType<SizeType>;
254
+ default: SizeType;
255
255
  };
256
256
  mode: {
257
257
  type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
@@ -269,8 +269,8 @@ declare function __VLS_template(): {
269
269
  popupClassName: StringConstructor;
270
270
  dropdownClassName: StringConstructor;
271
271
  placement: {
272
- type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
273
- default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
272
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
273
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
274
274
  };
275
275
  status: {
276
276
  type: PropType<"" | "error" | "warning">;
@@ -310,8 +310,6 @@ declare function __VLS_template(): {
310
310
  default: any;
311
311
  };
312
312
  prefixCls: StringConstructor;
313
- id: StringConstructor;
314
- autofocus: BooleanConstructor;
315
313
  getPopupContainer: {
316
314
  type: PropType<RenderDOMFunc>;
317
315
  };
@@ -323,21 +321,28 @@ declare function __VLS_template(): {
323
321
  type: PropType<number | boolean>;
324
322
  default: any;
325
323
  };
326
- options: PropType<DefaultOptionType[]>;
327
- showAction: {
328
- type: PropType<("click" | "focus")[]>;
329
- };
330
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
331
324
  loading: {
332
325
  type: BooleanConstructor;
333
326
  default: any;
334
327
  };
328
+ showAction: {
329
+ type: PropType<("click" | "focus")[]>;
330
+ };
331
+ dropdownAlign: PropType<AlignType>;
335
332
  placeholder: VueTypeValidableDef<any>;
336
- clearIcon: VueTypeValidableDef<any>;
337
333
  allowClear: {
338
334
  type: BooleanConstructor;
339
335
  default: any;
340
336
  };
337
+ autofocus: BooleanConstructor;
338
+ defaultOpen: {
339
+ type: BooleanConstructor;
340
+ default: any;
341
+ };
342
+ id: StringConstructor;
343
+ clearIcon: VueTypeValidableDef<any>;
344
+ options: PropType<DefaultOptionType[]>;
345
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
341
346
  onSearch: PropType<(value: string) => void>;
342
347
  fieldNames: PropType<FieldNames>;
343
348
  dropdownStyle: {
@@ -346,7 +351,6 @@ declare function __VLS_template(): {
346
351
  dropdownRender: {
347
352
  type: PropType<DropdownRender>;
348
353
  };
349
- dropdownAlign: PropType<AlignType>;
350
354
  showSearch: {
351
355
  type: BooleanConstructor;
352
356
  default: any;
@@ -369,10 +373,6 @@ declare function __VLS_template(): {
369
373
  type: PropType<(option: Record<string, any>) => any>;
370
374
  };
371
375
  onClear: PropType<() => void>;
372
- defaultOpen: {
373
- type: BooleanConstructor;
374
- default: any;
375
- };
376
376
  onDropdownVisibleChange: {
377
377
  type: PropType<(open: boolean) => void>;
378
378
  };
@@ -405,24 +405,24 @@ declare function __VLS_template(): {
405
405
  default: any;
406
406
  };
407
407
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
408
- size: ButtonSize;
408
+ size: SizeType;
409
409
  value: SelectValue;
410
410
  mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
411
411
  open: boolean;
412
412
  disabled: boolean;
413
- autofocus: boolean;
414
413
  virtual: boolean;
415
414
  dropdownMatchSelectWidth: number | boolean;
416
- status: "" | "error" | "warning";
417
- defaultValue: SelectValue;
418
- 'onUpdate:value': (val: SelectValue) => void;
419
- placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
420
415
  loading: boolean;
421
416
  bordered: boolean;
417
+ defaultValue: SelectValue;
418
+ status: "" | "error" | "warning";
422
419
  allowClear: boolean;
420
+ autofocus: boolean;
421
+ defaultOpen: boolean;
422
+ 'onUpdate:value': (val: SelectValue) => void;
423
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
423
424
  showSearch: boolean;
424
425
  choiceTransitionName: "";
425
- defaultOpen: boolean;
426
426
  showArrow: boolean;
427
427
  autoClearSearchValue: boolean;
428
428
  filterOption: boolean | FilterFunc<DefaultOptionType>;
@@ -476,8 +476,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
476
476
  suffixIcon: VueTypeValidableDef<any>;
477
477
  itemIcon: VueTypeValidableDef<any>;
478
478
  size: {
479
- type: PropType<ButtonSize>;
480
- default: ButtonSize;
479
+ type: PropType<SizeType>;
480
+ default: SizeType;
481
481
  };
482
482
  mode: {
483
483
  type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
@@ -495,8 +495,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
495
495
  popupClassName: StringConstructor;
496
496
  dropdownClassName: StringConstructor;
497
497
  placement: {
498
- type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
499
- default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
498
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
499
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
500
500
  };
501
501
  status: {
502
502
  type: PropType<"" | "error" | "warning">;
@@ -536,8 +536,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
536
536
  default: any;
537
537
  };
538
538
  prefixCls: StringConstructor;
539
- id: StringConstructor;
540
- autofocus: BooleanConstructor;
541
539
  getPopupContainer: {
542
540
  type: PropType<RenderDOMFunc>;
543
541
  };
@@ -549,21 +547,28 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
549
547
  type: PropType<number | boolean>;
550
548
  default: any;
551
549
  };
552
- options: PropType<DefaultOptionType[]>;
553
- showAction: {
554
- type: PropType<("click" | "focus")[]>;
555
- };
556
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
557
550
  loading: {
558
551
  type: BooleanConstructor;
559
552
  default: any;
560
553
  };
554
+ showAction: {
555
+ type: PropType<("click" | "focus")[]>;
556
+ };
557
+ dropdownAlign: PropType<AlignType>;
561
558
  placeholder: VueTypeValidableDef<any>;
562
- clearIcon: VueTypeValidableDef<any>;
563
559
  allowClear: {
564
560
  type: BooleanConstructor;
565
561
  default: any;
566
562
  };
563
+ autofocus: BooleanConstructor;
564
+ defaultOpen: {
565
+ type: BooleanConstructor;
566
+ default: any;
567
+ };
568
+ id: StringConstructor;
569
+ clearIcon: VueTypeValidableDef<any>;
570
+ options: PropType<DefaultOptionType[]>;
571
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
567
572
  onSearch: PropType<(value: string) => void>;
568
573
  fieldNames: PropType<FieldNames>;
569
574
  dropdownStyle: {
@@ -572,7 +577,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
572
577
  dropdownRender: {
573
578
  type: PropType<DropdownRender>;
574
579
  };
575
- dropdownAlign: PropType<AlignType>;
576
580
  showSearch: {
577
581
  type: BooleanConstructor;
578
582
  default: any;
@@ -595,10 +599,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
595
599
  type: PropType<(option: Record<string, any>) => any>;
596
600
  };
597
601
  onClear: PropType<() => void>;
598
- defaultOpen: {
599
- type: BooleanConstructor;
600
- default: any;
601
- };
602
602
  onDropdownVisibleChange: {
603
603
  type: PropType<(open: boolean) => void>;
604
604
  };
@@ -631,24 +631,24 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
631
631
  default: any;
632
632
  };
633
633
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
634
- size: ButtonSize;
634
+ size: SizeType;
635
635
  value: SelectValue;
636
636
  mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
637
637
  open: boolean;
638
638
  disabled: boolean;
639
- autofocus: boolean;
640
639
  virtual: boolean;
641
640
  dropdownMatchSelectWidth: number | boolean;
642
- status: "" | "error" | "warning";
643
- defaultValue: SelectValue;
644
- 'onUpdate:value': (val: SelectValue) => void;
645
- placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
646
641
  loading: boolean;
647
642
  bordered: boolean;
643
+ defaultValue: SelectValue;
644
+ status: "" | "error" | "warning";
648
645
  allowClear: boolean;
646
+ autofocus: boolean;
647
+ defaultOpen: boolean;
648
+ 'onUpdate:value': (val: SelectValue) => void;
649
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
649
650
  showSearch: boolean;
650
651
  choiceTransitionName: "";
651
- defaultOpen: boolean;
652
652
  showArrow: boolean;
653
653
  autoClearSearchValue: boolean;
654
654
  filterOption: boolean | FilterFunc<DefaultOptionType>;
@@ -687,8 +687,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
687
687
  suffixIcon: VueTypeValidableDef<any>;
688
688
  itemIcon: VueTypeValidableDef<any>;
689
689
  size: {
690
- type: PropType<ButtonSize>;
691
- default: ButtonSize;
690
+ type: PropType<SizeType>;
691
+ default: SizeType;
692
692
  };
693
693
  mode: {
694
694
  type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
@@ -706,8 +706,8 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
706
706
  popupClassName: StringConstructor;
707
707
  dropdownClassName: StringConstructor;
708
708
  placement: {
709
- type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
710
- default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
709
+ type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
710
+ default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
711
711
  };
712
712
  status: {
713
713
  type: PropType<"" | "error" | "warning">;
@@ -747,8 +747,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
747
747
  default: any;
748
748
  };
749
749
  prefixCls: StringConstructor;
750
- id: StringConstructor;
751
- autofocus: BooleanConstructor;
752
750
  getPopupContainer: {
753
751
  type: PropType<RenderDOMFunc>;
754
752
  };
@@ -760,21 +758,28 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
760
758
  type: PropType<number | boolean>;
761
759
  default: any;
762
760
  };
763
- options: PropType<DefaultOptionType[]>;
764
- showAction: {
765
- type: PropType<("click" | "focus")[]>;
766
- };
767
- onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
768
761
  loading: {
769
762
  type: BooleanConstructor;
770
763
  default: any;
771
764
  };
765
+ showAction: {
766
+ type: PropType<("click" | "focus")[]>;
767
+ };
768
+ dropdownAlign: PropType<AlignType>;
772
769
  placeholder: VueTypeValidableDef<any>;
773
- clearIcon: VueTypeValidableDef<any>;
774
770
  allowClear: {
775
771
  type: BooleanConstructor;
776
772
  default: any;
777
773
  };
774
+ autofocus: BooleanConstructor;
775
+ defaultOpen: {
776
+ type: BooleanConstructor;
777
+ default: any;
778
+ };
779
+ id: StringConstructor;
780
+ clearIcon: VueTypeValidableDef<any>;
781
+ options: PropType<DefaultOptionType[]>;
782
+ onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
778
783
  onSearch: PropType<(value: string) => void>;
779
784
  fieldNames: PropType<FieldNames>;
780
785
  dropdownStyle: {
@@ -783,7 +788,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
783
788
  dropdownRender: {
784
789
  type: PropType<DropdownRender>;
785
790
  };
786
- dropdownAlign: PropType<AlignType>;
787
791
  showSearch: {
788
792
  type: BooleanConstructor;
789
793
  default: any;
@@ -806,10 +810,6 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
806
810
  type: PropType<(option: Record<string, any>) => any>;
807
811
  };
808
812
  onClear: PropType<() => void>;
809
- defaultOpen: {
810
- type: BooleanConstructor;
811
- default: any;
812
- };
813
813
  onDropdownVisibleChange: {
814
814
  type: PropType<(open: boolean) => void>;
815
815
  };
@@ -842,24 +842,24 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
842
842
  default: any;
843
843
  };
844
844
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
845
- size: ButtonSize;
845
+ size: SizeType;
846
846
  value: SelectValue;
847
847
  mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
848
848
  open: boolean;
849
849
  disabled: boolean;
850
- autofocus: boolean;
851
850
  virtual: boolean;
852
851
  dropdownMatchSelectWidth: number | boolean;
853
- status: "" | "error" | "warning";
854
- defaultValue: SelectValue;
855
- 'onUpdate:value': (val: SelectValue) => void;
856
- placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
857
852
  loading: boolean;
858
853
  bordered: boolean;
854
+ defaultValue: SelectValue;
855
+ status: "" | "error" | "warning";
859
856
  allowClear: boolean;
857
+ autofocus: boolean;
858
+ defaultOpen: boolean;
859
+ 'onUpdate:value': (val: SelectValue) => void;
860
+ placement: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
860
861
  showSearch: boolean;
861
862
  choiceTransitionName: "";
862
- defaultOpen: boolean;
863
863
  showArrow: boolean;
864
864
  autoClearSearchValue: boolean;
865
865
  filterOption: boolean | FilterFunc<DefaultOptionType>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),M=require("../../hooks/useControllableValue.js"),U={key:0},D=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean,default:void 0},placeholder:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},onClickOption:{},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(B,{expose:L,emit:b}){let r=0;const e=B,_=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const l=r;c([]),u.value=!0,e.request(t).then(n=>{r===l&&(c(n),u.value=!1)})},e.searchDelay),A=(t,l)=>{var a;const n=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(l==null?void 0:l[n])=="string"&&l[n].toLowerCase().indexOf(t.toLowerCase())>-1},{options:s,updateOptions:c}=d.useSelectOptions(e),v=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=b;async function f(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const l=r;try{t&&c([]);const n=await e.request(void 0,e.params);if(l!==r)return;c(n)}finally{u.value=!1}}function O(t){var l;(l=e.onFocus)==null||l.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&f(!0)}o.onMounted(()=>{e.lazy||f()}),o.watch(()=>e.params,()=>{f()},{deep:!0});const{value:p,updateValue:h}=M.useControllableValue(e,F),V=k.useDefaultPlaceholder("Select",e),E=o.computed(()=>{var m,g;const t=o.unref(p);if(!t)return e.emptyText;const l=((m=e.fieldNames)==null?void 0:m.label)||"label",n=((g=e.fieldNames)==null?void 0:g.value)||"value";if(i.isArray(t))return t.map(y=>{var C;return(C=o.unref(s).find(P=>P[n]===y))==null?void 0:C[l]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(s).find(y=>y[n]===t);return(a==null?void 0:a[l])||e.emptyText}),N=o.computed(()=>{const t=!!(e!=null&&e.showSearch),l=e.searchMode;let n={};return t&&(n=l==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:_,notFoundContent:u.value?void 0:null,filterOption:!1}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?A:e==null?void 0:e.filterOption}),{...i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:o.unref(V),...n}}),S=o.computed(()=>s.value.map(t=>{var l;return t[((l=e.fieldNames)==null?void 0:l.value)||"value"]}).filter(t=>t!==d.SELECT_ALL_VALUE_KEY)),q=o.computed(()=>{if(!e.multiple||!e.addAll)return o.unref(p);if(s.value.some(t=>{var l;return t[((l=e.fieldNames)==null?void 0:l.value)||"value"]===d.SELECT_ALL_VALUE_KEY})){const t=o.unref(S),l=o.unref(p)||[];if(t.length&&t.every(n=>l==null?void 0:l.includes(n)))return[d.SELECT_ALL_VALUE_KEY]}return o.unref(p)});function T(t){return e.multiple&&t.includes(d.SELECT_ALL_VALUE_KEY)?h(o.unref(S)):h(t)}function x(){var t;(t=v.value)==null||t.focus()}function I(){var t;(t=v.value)==null||t.blur()}return L({focus:x,blur:I,request:f}),(t,l)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",U,o.toDisplayString(E.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,ref_key:"selectRef",ref:v,"allow-clear":""},N.value,{mode:t.multiple?"multiple":void 0,value:q.value,options:o.unref(s),loading:u.value,"onUpdate:value":T,onFocus:O}),o.createSlots({_:2},[o.renderList(t.$slots,(n,a)=>({name:a,fn:o.withCtx(m=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(m||{})))])})),u.value?{name:"notFoundContent",fn:o.withCtx(()=>[o.createVNode(o.unref(w.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading"]))}});exports.default=D;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),i=require("lodash-unified"),w=require("@aplus-frontend/antdv");require("../../hooks/index.js");const k=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),M=require("../../hooks/useControllableValue.js"),U={key:0},D=o.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},loading:{type:Boolean,default:void 0},showAction:{},dropdownAlign:{},placeholder:{},allowClear:{type:Boolean,default:!0},autofocus:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},id:{},clearIcon:{},options:{},onDeselect:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},showSearch:{type:Boolean,default:void 0},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},onDropdownVisibleChange:{},showArrow:{type:Boolean,default:void 0},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean,default:void 0},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean,default:void 0},onClickOption:{},labelInValue:{type:Boolean,default:void 0},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(B,{expose:L,emit:b}){let r=0;const e=B,_=i.debounce(t=>{if(!i.isFunction(e.request))return;r+=1;const l=r;c([]),u.value=!0,e.request(t).then(n=>{r===l&&(c(n),u.value=!1)})},e.searchDelay),A=(t,l)=>{var a;const n=((a=e.fieldNames)==null?void 0:a.label)||"label";return typeof(l==null?void 0:l[n])=="string"&&l[n].toLowerCase().indexOf(t.toLowerCase())>-1},{options:s,updateOptions:c}=d.useSelectOptions(e),v=o.ref(),u=o.ref((e==null?void 0:e.loading)||!1),F=b;async function f(t=!0){if(!i.isFunction(e.request))return;u.value=!0,r+=1;const l=r;try{t&&c([]);const n=await e.request(void 0,e.params);if(l!==r)return;c(n)}finally{u.value=!1}}function O(t){var l;(l=e.onFocus)==null||l.call(e,t),e.refetchOnFocus&&r>0&&!u.value&&f(!0)}o.onMounted(()=>{e.lazy||f()}),o.watch(()=>e.params,()=>{f()},{deep:!0});const{value:p,updateValue:h}=M.useControllableValue(e,F),V=k.useDefaultPlaceholder("Select",e),E=o.computed(()=>{var m,g;const t=o.unref(p);if(!t)return e.emptyText;const l=((m=e.fieldNames)==null?void 0:m.label)||"label",n=((g=e.fieldNames)==null?void 0:g.value)||"value";if(i.isArray(t))return t.map(y=>{var C;return(C=o.unref(s).find(P=>P[n]===y))==null?void 0:C[l]}).filter(Boolean).join("、")||e.emptyText;const a=o.unref(s).find(y=>y[n]===t);return(a==null?void 0:a[l])||e.emptyText}),N=o.computed(()=>{const t=!!(e!=null&&e.showSearch),l=e.searchMode;let n={};return t&&(n=l==="request"?{showArrow:!1,defaultActiveFirstOption:!1,onSearch:_,notFoundContent:u.value?void 0:null,filterOption:!1}:{showArrow:!0,filterOption:i.isNil(e==null?void 0:e.filterOption)?A:e==null?void 0:e.filterOption}),{...i.omit(e,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:o.unref(V),...n}}),S=o.computed(()=>s.value.map(t=>{var l;return t[((l=e.fieldNames)==null?void 0:l.value)||"value"]}).filter(t=>t!==d.SELECT_ALL_VALUE_KEY)),q=o.computed(()=>{if(!e.multiple||!e.addAll)return o.unref(p);if(s.value.some(t=>{var l;return t[((l=e.fieldNames)==null?void 0:l.value)||"value"]===d.SELECT_ALL_VALUE_KEY})){const t=o.unref(S),l=o.unref(p)||[];if(t.length&&t.every(n=>l==null?void 0:l.includes(n)))return[d.SELECT_ALL_VALUE_KEY]}return o.unref(p)});function T(t){return e.multiple&&t.includes(d.SELECT_ALL_VALUE_KEY)?h(o.unref(S)):h(t)}function x(){var t;(t=v.value)==null||t.focus()}function I(){var t;(t=v.value)==null||t.blur()}return L({focus:x,blur:I,request:f}),(t,l)=>t.mode==="read"?(o.openBlock(),o.createElementBlock("span",U,o.toDisplayString(E.value),1)):(o.openBlock(),o.createBlock(o.unref(w.Select),o.mergeProps({key:1,ref_key:"selectRef",ref:v,"allow-clear":""},N.value,{mode:t.multiple?"multiple":void 0,value:q.value,options:o.unref(s),loading:u.value,"onUpdate:value":T,onFocus:O}),o.createSlots({_:2},[o.renderList(t.$slots,(n,a)=>({name:a,fn:o.withCtx(m=>[o.renderSlot(t.$slots,a,o.normalizeProps(o.guardReactiveProps(m||{})))])})),u.value?{name:"notFoundContent",fn:o.withCtx(()=>[o.createVNode(o.unref(w.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading"]))}});exports.default=D;
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
6
6
  options: Ref<{
7
7
  [x: string]: any;
8
8
  label?: any;
9
- value?: (string | number | null) | undefined;
9
+ value?: string | number | null | undefined;
10
10
  children?: Omit<DefaultOptionType, "children">[] | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  }[], DefaultOptionType[] | {
13
13
  [x: string]: any;
14
14
  label?: any;
15
- value?: (string | number | null) | undefined;
15
+ value?: string | number | null | undefined;
16
16
  children?: Omit<DefaultOptionType, "children">[] | undefined;
17
17
  disabled?: boolean | undefined;
18
18
  }[]>;
@@ -124,10 +124,10 @@ declare function __VLS_template(): {
124
124
  onChange: (value: number | [number, number]) => void;
125
125
  range: boolean | SliderRange;
126
126
  disabled: boolean;
127
- autofocus: boolean;
128
127
  defaultValue: number | [number, number];
129
- 'onUpdate:value': (value: number | [number, number]) => void;
130
128
  step: number;
129
+ autofocus: boolean;
130
+ 'onUpdate:value': (value: number | [number, number]) => void;
131
131
  included: boolean;
132
132
  marks: SliderMarks;
133
133
  handleStyle: CSSProperties | CSSProperties[];
@@ -256,10 +256,10 @@ declare function __VLS_template(): {
256
256
  onChange: (value: number | [number, number]) => void;
257
257
  range: boolean | SliderRange;
258
258
  disabled: boolean;
259
- autofocus: boolean;
260
259
  defaultValue: number | [number, number];
261
- 'onUpdate:value': (value: number | [number, number]) => void;
262
260
  step: number;
261
+ autofocus: boolean;
262
+ 'onUpdate:value': (value: number | [number, number]) => void;
263
263
  included: boolean;
264
264
  marks: SliderMarks;
265
265
  handleStyle: CSSProperties | CSSProperties[];
@@ -400,10 +400,10 @@ declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
400
400
  onChange: (value: number | [number, number]) => void;
401
401
  range: boolean | SliderRange;
402
402
  disabled: boolean;
403
- autofocus: boolean;
404
403
  defaultValue: number | [number, number];
405
- 'onUpdate:value': (value: number | [number, number]) => void;
406
404
  step: number;
405
+ autofocus: boolean;
406
+ 'onUpdate:value': (value: number | [number, number]) => void;
407
407
  included: boolean;
408
408
  marks: SliderMarks;
409
409
  handleStyle: CSSProperties | CSSProperties[];
@@ -532,10 +532,10 @@ declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
532
532
  onChange: (value: number | [number, number]) => void;
533
533
  range: boolean | SliderRange;
534
534
  disabled: boolean;
535
- autofocus: boolean;
536
535
  defaultValue: number | [number, number];
537
- 'onUpdate:value': (value: number | [number, number]) => void;
538
536
  step: number;
537
+ autofocus: boolean;
538
+ 'onUpdate:value': (value: number | [number, number]) => void;
539
539
  included: boolean;
540
540
  marks: SliderMarks;
541
541
  handleStyle: CSSProperties | CSSProperties[];