@aplus-frontend/ui 0.3.7 → 0.3.9

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 (564) hide show
  1. package/es/src/ap-action/group/style/css.js +1 -0
  2. package/es/src/ap-action/group/style/index.js +1 -0
  3. package/es/src/ap-action/item/index.vue.d.ts +2 -1
  4. package/es/src/ap-action/item/style/css.js +2 -0
  5. package/es/src/ap-action/item/style/index.js +2 -0
  6. package/es/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  7. package/es/src/ap-action/item-dropdown/style/css.js +2 -0
  8. package/es/src/ap-action/item-dropdown/style/index.js +2 -0
  9. package/es/src/ap-action/item-modal/index.vue.d.ts +2 -1
  10. package/es/src/ap-action/item-modal/style/css.js +1 -0
  11. package/es/src/ap-action/item-modal/style/index.js +1 -0
  12. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  13. package/es/src/ap-action/item-popconfirm/style/css.js +1 -0
  14. package/es/src/ap-action/item-popconfirm/style/index.js +1 -0
  15. package/es/src/ap-action-button/style/css.js +1 -0
  16. package/es/src/ap-action-button/style/index.js +1 -0
  17. package/es/src/ap-button/ap-action-button.vue.d.ts +4 -3
  18. package/es/src/ap-button/ap-action-button.vue.mjs +11 -11
  19. package/es/src/ap-button/ap-button.vue.d.ts +4 -3
  20. package/es/src/ap-button/ap-button.vue.mjs +36 -36
  21. package/es/src/ap-button/interface.d.ts +4 -0
  22. package/es/src/ap-button/style/css.js +1 -0
  23. package/es/src/ap-button/style/index.js +1 -0
  24. package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  25. package/es/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  26. package/es/src/ap-descriptions/style/css.js +1 -0
  27. package/es/src/ap-descriptions/style/index.js +1 -0
  28. package/es/src/ap-download/ap-download.vue.d.ts +5 -3
  29. package/es/src/ap-download/style/css.js +1 -0
  30. package/es/src/ap-download/style/index.js +1 -0
  31. package/es/src/ap-drawer/style/css.js +1 -0
  32. package/es/src/ap-drawer/style/index.js +1 -0
  33. package/es/src/ap-field/checkbox/style/css.js +1 -0
  34. package/es/src/ap-field/checkbox/style/index.js +1 -0
  35. package/es/src/ap-field/date/index.vue.d.ts +2 -1
  36. package/es/src/ap-field/date/style/css.js +1 -0
  37. package/es/src/ap-field/date/style/index.js +1 -0
  38. package/es/src/ap-field/date-range/index.vue.d.ts +2 -1
  39. package/es/src/ap-field/date-range/style/css.js +1 -0
  40. package/es/src/ap-field/date-range/style/index.js +1 -0
  41. package/es/src/ap-field/number/index.vue.d.ts +2 -1
  42. package/es/src/ap-field/number/style/css.js +1 -0
  43. package/es/src/ap-field/number/style/index.js +1 -0
  44. package/es/src/ap-field/password/style/css.js +1 -0
  45. package/es/src/ap-field/password/style/index.js +1 -0
  46. package/es/src/ap-field/radio/style/css.js +1 -0
  47. package/es/src/ap-field/rate/index.vue.d.ts +2 -1
  48. package/es/src/ap-field/rate/style/css.js +1 -0
  49. package/es/src/ap-field/rate/style/index.js +1 -0
  50. package/es/src/ap-field/segmented/index.vue.d.ts +2 -1
  51. package/es/src/ap-field/segmented/style/css.js +1 -0
  52. package/es/src/ap-field/segmented/style/index.js +1 -0
  53. package/es/src/ap-field/select/index.vue.d.ts +2 -1
  54. package/es/src/ap-field/select/style/css.js +1 -0
  55. package/es/src/ap-field/select/style/index.js +1 -0
  56. package/es/src/ap-field/slider/index.vue.d.ts +2 -1
  57. package/es/src/ap-field/slider/style/css.js +1 -0
  58. package/es/src/ap-field/slider/style/index.js +1 -0
  59. package/es/src/ap-field/style/css.js +1 -0
  60. package/es/src/ap-field/style/index.js +1 -0
  61. package/es/src/ap-field/switch/index.vue.d.ts +2 -1
  62. package/es/src/ap-field/switch/style/css.js +1 -0
  63. package/es/src/ap-field/switch/style/index.js +1 -0
  64. package/es/src/ap-field/text/index.vue.d.ts +2 -1
  65. package/es/src/ap-field/text/password.vue.d.ts +2 -1
  66. package/es/src/ap-field/text/style/css.js +1 -0
  67. package/es/src/ap-field/text/style/index.js +1 -0
  68. package/es/src/ap-field/text-area/style/css.js +1 -0
  69. package/es/src/ap-field/text-area/style/index.js +1 -0
  70. package/es/src/ap-form/ap-form.vue.d.ts +6 -4
  71. package/es/src/ap-form/dependency/index.vue.d.ts +2 -1
  72. package/es/src/ap-form/dependency/style/css.js +1 -0
  73. package/es/src/ap-form/dependency/style/index.js +1 -0
  74. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  75. package/es/src/ap-form/drawer-form/style/css.js +1 -0
  76. package/es/src/ap-form/drawer-form/style/index.js +1 -0
  77. package/es/src/ap-form/item/index.vue.d.ts +2 -1
  78. package/es/src/ap-form/item/style/css.js +1 -0
  79. package/es/src/ap-form/item/style/index.js +1 -0
  80. package/es/src/ap-form/item-checkbox/style/css.js +1 -0
  81. package/es/src/ap-form/item-checkbox/style/index.js +1 -0
  82. package/es/src/ap-form/item-date/style/css.js +1 -0
  83. package/es/src/ap-form/item-date/style/index.js +1 -0
  84. package/es/src/ap-form/item-date-range/style/css.js +1 -0
  85. package/es/src/ap-form/item-date-range/style/index.js +1 -0
  86. package/es/src/ap-form/item-group/index.vue.d.ts +2 -1
  87. package/es/src/ap-form/item-group/style/css.js +1 -0
  88. package/es/src/ap-form/item-group/style/index.js +1 -0
  89. package/es/src/ap-form/item-number/style/css.js +1 -0
  90. package/es/src/ap-form/item-number/style/index.js +1 -0
  91. package/es/src/ap-form/item-radio/style/css.js +1 -0
  92. package/es/src/ap-form/item-radio/style/index.js +1 -0
  93. package/es/src/ap-form/item-select/style/css.js +1 -0
  94. package/es/src/ap-form/item-select/style/index.js +1 -0
  95. package/es/src/ap-form/item-switch/style/css.js +1 -0
  96. package/es/src/ap-form/item-switch/style/index.js +1 -0
  97. package/es/src/ap-form/item-text/style/css.js +1 -0
  98. package/es/src/ap-form/item-text/style/index.js +1 -0
  99. package/es/src/ap-form/item-text-area/style/css.js +1 -0
  100. package/es/src/ap-form/item-text-area/style/index.js +1 -0
  101. package/es/src/ap-form/item-text-group/style/css.js +1 -0
  102. package/es/src/ap-form/item-text-group/style/index.js +1 -0
  103. package/es/src/ap-form/item-text-password/style/css.js +1 -0
  104. package/es/src/ap-form/item-text-password/style/index.js +1 -0
  105. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  106. package/es/src/ap-form/items/date/index.vue.d.ts +2 -1
  107. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  108. package/es/src/ap-form/items/number/index.vue.d.ts +2 -1
  109. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -1
  110. package/es/src/ap-form/items/select/index.vue.d.ts +2 -1
  111. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -1
  112. package/es/src/ap-form/items/text/group.vue.d.ts +2 -1
  113. package/es/src/ap-form/items/text/index.vue.d.ts +2 -1
  114. package/es/src/ap-form/items/text/password.vue.d.ts +2 -1
  115. package/es/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  116. package/es/src/ap-form/list/index.vue.d.ts +2 -1
  117. package/es/src/ap-form/list/style/css.js +1 -0
  118. package/es/src/ap-form/list/style/index.js +1 -0
  119. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -2
  120. package/es/src/ap-form/modal-form/index.vue.mjs +61 -57
  121. package/es/src/ap-form/modal-form/style/css.js +1 -0
  122. package/es/src/ap-form/modal-form/style/index.js +1 -0
  123. package/es/src/ap-form/render/control.vue.d.ts +2 -1
  124. package/es/src/ap-form/render/item.vue.d.ts +2 -1
  125. package/es/src/ap-form/render/style/css.js +1 -0
  126. package/es/src/ap-form/search-form/index.vue.d.ts +3 -2
  127. package/es/src/ap-form/search-form/style/css.js +1 -0
  128. package/es/src/ap-form/search-form/style/index.js +1 -0
  129. package/es/src/ap-form/set/index.vue.d.ts +2 -1
  130. package/es/src/ap-form/set/style/css.js +1 -0
  131. package/es/src/ap-form/set/style/index.js +1 -0
  132. package/es/src/ap-form/style/css.js +1 -0
  133. package/es/src/ap-form/style/index.js +1 -0
  134. package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  135. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  136. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  137. package/es/src/ap-info-layout/style/css.js +1 -0
  138. package/es/src/ap-info-layout/style/index.js +1 -0
  139. package/es/src/ap-list/index.vue.d.ts +3 -5
  140. package/es/src/ap-list/style/css.js +1 -0
  141. package/es/src/ap-list/style/index.js +1 -0
  142. package/es/src/ap-modal/style/css.js +1 -0
  143. package/es/src/ap-modal/style/index.js +1 -0
  144. package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  145. package/es/src/ap-scroll-bar/index.d.ts +1 -1
  146. package/es/src/ap-scroll-bar/style/css.js +1 -0
  147. package/es/src/ap-scroll-bar/style/index.js +1 -0
  148. package/es/src/ap-table/ap-table.vue.d.ts +3 -5
  149. package/es/src/ap-table/ap-table.vue2.mjs +23 -22
  150. package/es/src/ap-table/components/index/index.vue.d.ts +1 -1
  151. package/es/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  152. package/es/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  153. package/es/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  154. package/es/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  155. package/es/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  156. package/es/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  157. package/es/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  158. package/es/src/ap-table/constants.d.ts +1 -1
  159. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  160. package/es/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  161. package/es/src/ap-table/hooks/use-table-paging.mjs +131 -126
  162. package/es/src/ap-table/style/css.js +1 -0
  163. package/es/src/ap-table/style/index.js +1 -0
  164. package/es/src/ap-table/utils.d.ts +1 -0
  165. package/es/src/ap-table/utils.mjs +10 -5
  166. package/es/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  167. package/es/src/ap-tag/ap-tag.vue.d.ts +1 -1
  168. package/es/src/ap-tag/group/style/css.js +2 -0
  169. package/es/src/ap-tag/group/style/index.js +2 -0
  170. package/es/src/ap-tag/style/css.js +1 -0
  171. package/es/src/ap-tag/style/index.js +1 -0
  172. package/es/src/ap-upload/apUpload.vue.d.ts +3 -2
  173. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  174. package/es/src/ap-upload/components/Picture.vue.d.ts +5 -9
  175. package/es/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  176. package/es/src/ap-upload/style/css.js +1 -0
  177. package/es/src/ap-upload/style/index.js +1 -0
  178. package/es/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  179. package/es/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  180. package/es/src/business/ap-appendix/index.d.ts +1 -1
  181. package/es/src/business/ap-appendix/style/css.js +1 -0
  182. package/es/src/business/ap-appendix/style/index.js +1 -0
  183. package/es/src/business/ap-attachment/style/css.js +1 -0
  184. package/es/src/business/ap-attachment/style/index.js +1 -0
  185. package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  186. package/es/src/business/ap-batch-action/index.d.ts +1 -1
  187. package/es/src/business/ap-batch-action/style/css.js +1 -0
  188. package/es/src/business/ap-batch-action/style/index.js +1 -0
  189. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  190. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  191. package/es/src/business/ap-batch-action-group/index.d.ts +887 -5
  192. package/es/src/business/ap-batch-action-group/style/css.js +1 -0
  193. package/es/src/business/ap-batch-action-group/style/index.js +1 -0
  194. package/es/src/business/ap-button-group/style/css.js +1 -0
  195. package/es/src/business/ap-button-group/style/index.js +1 -0
  196. package/es/src/business/ap-card/ApCard.vue.d.ts +3 -2
  197. package/es/src/business/ap-card/index.d.ts +1 -1
  198. package/es/src/business/ap-card/style/css.js +2 -0
  199. package/es/src/business/ap-card/style/index.js +2 -0
  200. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  201. package/es/src/business/ap-expand-alert/index.d.ts +4 -6
  202. package/es/src/business/ap-expand-alert/style/css.js +2 -0
  203. package/es/src/business/ap-expand-alert/style/index.js +2 -0
  204. package/es/src/business/ap-export-group/style/css.js +1 -0
  205. package/es/src/business/ap-export-group/style/index.js +1 -0
  206. package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  207. package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  208. package/es/src/business/ap-group-search/extension-select/style/css.js +1 -0
  209. package/es/src/business/ap-group-search/extension-select/style/index.js +1 -0
  210. package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  211. package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  212. package/es/src/business/ap-group-search/index.d.ts +3 -3
  213. package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  214. package/es/src/business/ap-group-search/popover-select/style/css.js +1 -0
  215. package/es/src/business/ap-group-search/popover-select/style/index.js +1 -0
  216. package/es/src/business/ap-group-search/style/css.js +1 -0
  217. package/es/src/business/ap-group-search/style/index.js +1 -0
  218. package/es/src/business/ap-image/ApImage.vue.d.ts +2 -1
  219. package/es/src/business/ap-image/style/css.js +1 -0
  220. package/es/src/business/ap-image/style/index.js +1 -0
  221. package/es/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  222. package/es/src/business/ap-input-radio/index.d.ts +1 -1
  223. package/es/src/business/ap-input-radio/style/css.js +1 -0
  224. package/es/src/business/ap-input-radio/style/index.js +1 -0
  225. package/es/src/business/ap-label/group/style/css.js +1 -0
  226. package/es/src/business/ap-label/group/style/index.js +1 -0
  227. package/es/src/business/ap-label/style/css.js +1 -0
  228. package/es/src/business/ap-label/style/index.js +1 -0
  229. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  230. package/es/src/business/ap-ladder/index.d.ts +1 -1
  231. package/es/src/business/ap-ladder/style/css.js +1 -0
  232. package/es/src/business/ap-select-layout/index.d.ts +2 -4
  233. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  234. package/es/src/business/ap-select-layout/style/css.js +1 -0
  235. package/es/src/business/ap-select-layout/style/index.js +1 -0
  236. package/es/src/business/ap-size-input/style/css.js +1 -0
  237. package/es/src/business/ap-size-input/style/index.js +1 -0
  238. package/es/src/business/ap-status/group/style/css.js +1 -0
  239. package/es/src/business/ap-status/group/style/index.js +1 -0
  240. package/es/src/business/ap-status/style/css.js +1 -0
  241. package/es/src/business/ap-status/style/index.js +1 -0
  242. package/es/src/business/ap-summary/style/css.js +1 -0
  243. package/es/src/business/ap-summary/style/index.js +1 -0
  244. package/es/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  245. package/es/src/business/ap-table-modal/style/css.js +1 -0
  246. package/es/src/business/ap-table-modal/style/index.js +1 -0
  247. package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  248. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  249. package/es/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  250. package/es/src/business/ap-title/index.d.ts +1 -1
  251. package/es/src/business/ap-title/style/css.js +1 -0
  252. package/es/src/business/ap-title/style/index.js +1 -0
  253. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  254. package/es/src/business/ap-upload-file/ap-upload-single/style/css.js +1 -0
  255. package/es/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -0
  256. package/es/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  257. package/es/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  258. package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
  259. package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  260. package/es/src/business/batch-input-group/popover-input/style/css.js +1 -0
  261. package/es/src/business/batch-input-group/popover-input/style/index.js +1 -0
  262. package/es/src/business/batch-input-group/style/css.js +1 -0
  263. package/es/src/business/batch-input-group/style/index.js +1 -0
  264. package/es/src/check-card/group/style/css.js +1 -0
  265. package/es/src/check-card/group/style/index.js +1 -0
  266. package/es/src/check-card/group.vue.d.ts +2 -1
  267. package/es/src/check-card/index.vue.d.ts +3 -2
  268. package/es/src/check-card/style/css.js +1 -0
  269. package/es/src/check-card/style/index.js +1 -0
  270. package/es/src/config-provider/style/css.js +1 -0
  271. package/es/src/config-provider/style/index.js +1 -0
  272. package/es/src/editable-table/form-item/style/css.js +1 -0
  273. package/es/src/editable-table/form-item/style/index.js +1 -0
  274. package/es/src/editable-table/form-item.vue.d.ts +3 -5
  275. package/es/src/editable-table/index.vue.d.ts +3 -5
  276. package/es/src/editable-table/style/css.js +1 -0
  277. package/es/src/editable-table/style/index.js +1 -0
  278. package/es/src/tests/wrapper.d.ts +4 -4
  279. package/es/src/work-order-modal/style/css.js +4 -0
  280. package/es/src/work-order-modal/style/index.js +4 -0
  281. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  282. package/lib/src/ap-action/group/style/css.js +1 -0
  283. package/lib/src/ap-action/group/style/index.js +1 -0
  284. package/lib/src/ap-action/item/index.vue.d.ts +2 -1
  285. package/lib/src/ap-action/item/style/css.js +2 -0
  286. package/lib/src/ap-action/item/style/index.js +2 -0
  287. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +2 -1
  288. package/lib/src/ap-action/item-dropdown/style/css.js +2 -0
  289. package/lib/src/ap-action/item-dropdown/style/index.js +2 -0
  290. package/lib/src/ap-action/item-modal/index.vue.d.ts +2 -1
  291. package/lib/src/ap-action/item-modal/style/css.js +1 -0
  292. package/lib/src/ap-action/item-modal/style/index.js +1 -0
  293. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +2 -1
  294. package/lib/src/ap-action/item-popconfirm/style/css.js +1 -0
  295. package/lib/src/ap-action/item-popconfirm/style/index.js +1 -0
  296. package/lib/src/ap-action-button/style/css.js +1 -0
  297. package/lib/src/ap-action-button/style/index.js +1 -0
  298. package/lib/src/ap-button/ap-action-button.vue.d.ts +4 -3
  299. package/lib/src/ap-button/ap-action-button.vue.js +1 -1
  300. package/lib/src/ap-button/ap-button.vue.d.ts +4 -3
  301. package/lib/src/ap-button/ap-button.vue.js +1 -1
  302. package/lib/src/ap-button/interface.d.ts +4 -0
  303. package/lib/src/ap-button/style/css.js +1 -0
  304. package/lib/src/ap-button/style/index.js +1 -0
  305. package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +3 -2
  306. package/lib/src/ap-descriptions/help-message/index.vue.d.ts +3 -5
  307. package/lib/src/ap-descriptions/style/css.js +1 -0
  308. package/lib/src/ap-descriptions/style/index.js +1 -0
  309. package/lib/src/ap-download/ap-download.vue.d.ts +5 -3
  310. package/lib/src/ap-download/style/css.js +1 -0
  311. package/lib/src/ap-download/style/index.js +1 -0
  312. package/lib/src/ap-drawer/style/css.js +1 -0
  313. package/lib/src/ap-drawer/style/index.js +1 -0
  314. package/lib/src/ap-field/checkbox/style/css.js +1 -0
  315. package/lib/src/ap-field/checkbox/style/index.js +1 -0
  316. package/lib/src/ap-field/date/index.vue.d.ts +2 -1
  317. package/lib/src/ap-field/date/style/css.js +1 -0
  318. package/lib/src/ap-field/date/style/index.js +1 -0
  319. package/lib/src/ap-field/date-range/index.vue.d.ts +2 -1
  320. package/lib/src/ap-field/date-range/style/css.js +1 -0
  321. package/lib/src/ap-field/date-range/style/index.js +1 -0
  322. package/lib/src/ap-field/number/index.vue.d.ts +2 -1
  323. package/lib/src/ap-field/number/style/css.js +1 -0
  324. package/lib/src/ap-field/number/style/index.js +1 -0
  325. package/lib/src/ap-field/password/style/css.js +1 -0
  326. package/lib/src/ap-field/password/style/index.js +1 -0
  327. package/lib/src/ap-field/radio/style/css.js +1 -0
  328. package/lib/src/ap-field/rate/index.vue.d.ts +2 -1
  329. package/lib/src/ap-field/rate/style/css.js +1 -0
  330. package/lib/src/ap-field/rate/style/index.js +1 -0
  331. package/lib/src/ap-field/segmented/index.vue.d.ts +2 -1
  332. package/lib/src/ap-field/segmented/style/css.js +1 -0
  333. package/lib/src/ap-field/segmented/style/index.js +1 -0
  334. package/lib/src/ap-field/select/index.vue.d.ts +2 -1
  335. package/lib/src/ap-field/select/style/css.js +1 -0
  336. package/lib/src/ap-field/select/style/index.js +1 -0
  337. package/lib/src/ap-field/slider/index.vue.d.ts +2 -1
  338. package/lib/src/ap-field/slider/style/css.js +1 -0
  339. package/lib/src/ap-field/slider/style/index.js +1 -0
  340. package/lib/src/ap-field/style/css.js +1 -0
  341. package/lib/src/ap-field/style/index.js +1 -0
  342. package/lib/src/ap-field/switch/index.vue.d.ts +2 -1
  343. package/lib/src/ap-field/switch/style/css.js +1 -0
  344. package/lib/src/ap-field/switch/style/index.js +1 -0
  345. package/lib/src/ap-field/text/index.vue.d.ts +2 -1
  346. package/lib/src/ap-field/text/password.vue.d.ts +2 -1
  347. package/lib/src/ap-field/text/style/css.js +1 -0
  348. package/lib/src/ap-field/text/style/index.js +1 -0
  349. package/lib/src/ap-field/text-area/style/css.js +1 -0
  350. package/lib/src/ap-field/text-area/style/index.js +1 -0
  351. package/lib/src/ap-form/ap-form.vue.d.ts +6 -4
  352. package/lib/src/ap-form/dependency/index.vue.d.ts +2 -1
  353. package/lib/src/ap-form/dependency/style/css.js +1 -0
  354. package/lib/src/ap-form/dependency/style/index.js +1 -0
  355. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -2
  356. package/lib/src/ap-form/drawer-form/style/css.js +1 -0
  357. package/lib/src/ap-form/drawer-form/style/index.js +1 -0
  358. package/lib/src/ap-form/item/index.vue.d.ts +2 -1
  359. package/lib/src/ap-form/item/style/css.js +1 -0
  360. package/lib/src/ap-form/item/style/index.js +1 -0
  361. package/lib/src/ap-form/item-checkbox/style/css.js +1 -0
  362. package/lib/src/ap-form/item-checkbox/style/index.js +1 -0
  363. package/lib/src/ap-form/item-date/style/css.js +1 -0
  364. package/lib/src/ap-form/item-date/style/index.js +1 -0
  365. package/lib/src/ap-form/item-date-range/style/css.js +1 -0
  366. package/lib/src/ap-form/item-date-range/style/index.js +1 -0
  367. package/lib/src/ap-form/item-group/index.vue.d.ts +2 -1
  368. package/lib/src/ap-form/item-group/style/css.js +1 -0
  369. package/lib/src/ap-form/item-group/style/index.js +1 -0
  370. package/lib/src/ap-form/item-number/style/css.js +1 -0
  371. package/lib/src/ap-form/item-number/style/index.js +1 -0
  372. package/lib/src/ap-form/item-radio/style/css.js +1 -0
  373. package/lib/src/ap-form/item-radio/style/index.js +1 -0
  374. package/lib/src/ap-form/item-select/style/css.js +1 -0
  375. package/lib/src/ap-form/item-select/style/index.js +1 -0
  376. package/lib/src/ap-form/item-switch/style/css.js +1 -0
  377. package/lib/src/ap-form/item-switch/style/index.js +1 -0
  378. package/lib/src/ap-form/item-text/style/css.js +1 -0
  379. package/lib/src/ap-form/item-text/style/index.js +1 -0
  380. package/lib/src/ap-form/item-text-area/style/css.js +1 -0
  381. package/lib/src/ap-form/item-text-area/style/index.js +1 -0
  382. package/lib/src/ap-form/item-text-group/style/css.js +1 -0
  383. package/lib/src/ap-form/item-text-group/style/index.js +1 -0
  384. package/lib/src/ap-form/item-text-password/style/css.js +1 -0
  385. package/lib/src/ap-form/item-text-password/style/index.js +1 -0
  386. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -1
  387. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -1
  388. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -1
  389. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -1
  390. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -1
  391. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -1
  392. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -1
  393. package/lib/src/ap-form/items/text/group.vue.d.ts +2 -1
  394. package/lib/src/ap-form/items/text/index.vue.d.ts +2 -1
  395. package/lib/src/ap-form/items/text/password.vue.d.ts +2 -1
  396. package/lib/src/ap-form/items/text-area/index.vue.d.ts +2 -1
  397. package/lib/src/ap-form/list/index.vue.d.ts +2 -1
  398. package/lib/src/ap-form/list/style/css.js +1 -0
  399. package/lib/src/ap-form/list/style/index.js +1 -0
  400. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -2
  401. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  402. package/lib/src/ap-form/modal-form/style/css.js +1 -0
  403. package/lib/src/ap-form/modal-form/style/index.js +1 -0
  404. package/lib/src/ap-form/render/control.vue.d.ts +2 -1
  405. package/lib/src/ap-form/render/item.vue.d.ts +2 -1
  406. package/lib/src/ap-form/render/style/css.js +1 -0
  407. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -2
  408. package/lib/src/ap-form/search-form/style/css.js +1 -0
  409. package/lib/src/ap-form/search-form/style/index.js +1 -0
  410. package/lib/src/ap-form/set/index.vue.d.ts +2 -1
  411. package/lib/src/ap-form/set/style/css.js +1 -0
  412. package/lib/src/ap-form/set/style/index.js +1 -0
  413. package/lib/src/ap-form/style/css.js +1 -0
  414. package/lib/src/ap-form/style/index.js +1 -0
  415. package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +3 -2
  416. package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +3 -2
  417. package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +3 -2
  418. package/lib/src/ap-info-layout/style/css.js +1 -0
  419. package/lib/src/ap-info-layout/style/index.js +1 -0
  420. package/lib/src/ap-list/index.vue.d.ts +3 -5
  421. package/lib/src/ap-list/style/css.js +1 -0
  422. package/lib/src/ap-list/style/index.js +1 -0
  423. package/lib/src/ap-modal/style/css.js +1 -0
  424. package/lib/src/ap-modal/style/index.js +1 -0
  425. package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +1 -1
  426. package/lib/src/ap-scroll-bar/index.d.ts +1 -1
  427. package/lib/src/ap-scroll-bar/style/css.js +1 -0
  428. package/lib/src/ap-scroll-bar/style/index.js +1 -0
  429. package/lib/src/ap-table/ap-table.vue.d.ts +3 -5
  430. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  431. package/lib/src/ap-table/components/index/index.vue.d.ts +1 -1
  432. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue.d.ts +1 -1
  433. package/lib/src/ap-table/components/setting/modal/index.vue.d.ts +2 -1
  434. package/lib/src/ap-table/components/setting/select-group/index.vue.d.ts +1 -1
  435. package/lib/src/ap-table/components/setting/sortable/index.vue.d.ts +1 -1
  436. package/lib/src/ap-table/components/setting/sortable/item.vue.d.ts +1 -1
  437. package/lib/src/ap-table/components/setting/sorter/index.vue.d.ts +1 -1
  438. package/lib/src/ap-table/components/setting/tree-select/index.vue.d.ts +1 -1
  439. package/lib/src/ap-table/constants.d.ts +1 -1
  440. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  441. package/lib/src/ap-table/hooks/use-table-paging.d.ts +7 -3
  442. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  443. package/lib/src/ap-table/style/css.js +1 -0
  444. package/lib/src/ap-table/style/index.js +1 -0
  445. package/lib/src/ap-table/utils.d.ts +1 -0
  446. package/lib/src/ap-table/utils.js +1 -1
  447. package/lib/src/ap-tag/ap-tag-group.vue.d.ts +2 -1
  448. package/lib/src/ap-tag/ap-tag.vue.d.ts +1 -1
  449. package/lib/src/ap-tag/group/style/css.js +2 -0
  450. package/lib/src/ap-tag/group/style/index.js +2 -0
  451. package/lib/src/ap-tag/style/css.js +1 -0
  452. package/lib/src/ap-tag/style/index.js +1 -0
  453. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -2
  454. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  455. package/lib/src/ap-upload/components/Picture.vue.d.ts +5 -9
  456. package/lib/src/ap-upload/components/SingleFile.vue.d.ts +1 -1
  457. package/lib/src/ap-upload/style/css.js +1 -0
  458. package/lib/src/ap-upload/style/index.js +1 -0
  459. package/lib/src/business/ap-appendix/ap-appendix.vue.d.ts +5 -3
  460. package/lib/src/business/ap-appendix/icons/file-icon.vue.d.ts +1 -1
  461. package/lib/src/business/ap-appendix/index.d.ts +1 -1
  462. package/lib/src/business/ap-appendix/style/css.js +1 -0
  463. package/lib/src/business/ap-appendix/style/index.js +1 -0
  464. package/lib/src/business/ap-attachment/style/css.js +1 -0
  465. package/lib/src/business/ap-attachment/style/index.js +1 -0
  466. package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +3 -2
  467. package/lib/src/business/ap-batch-action/index.d.ts +1 -1
  468. package/lib/src/business/ap-batch-action/style/css.js +1 -0
  469. package/lib/src/business/ap-batch-action/style/index.js +1 -0
  470. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -1
  471. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue.d.ts +3 -4
  472. package/lib/src/business/ap-batch-action-group/index.d.ts +887 -5
  473. package/lib/src/business/ap-batch-action-group/style/css.js +1 -0
  474. package/lib/src/business/ap-batch-action-group/style/index.js +1 -0
  475. package/lib/src/business/ap-button-group/style/css.js +1 -0
  476. package/lib/src/business/ap-button-group/style/index.js +1 -0
  477. package/lib/src/business/ap-card/ApCard.vue.d.ts +3 -2
  478. package/lib/src/business/ap-card/index.d.ts +1 -1
  479. package/lib/src/business/ap-card/style/css.js +2 -0
  480. package/lib/src/business/ap-card/style/index.js +2 -0
  481. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -5
  482. package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
  483. package/lib/src/business/ap-expand-alert/style/css.js +2 -0
  484. package/lib/src/business/ap-expand-alert/style/index.js +2 -0
  485. package/lib/src/business/ap-export-group/style/css.js +1 -0
  486. package/lib/src/business/ap-export-group/style/index.js +1 -0
  487. package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -2
  488. package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +8 -346
  489. package/lib/src/business/ap-group-search/extension-select/style/css.js +1 -0
  490. package/lib/src/business/ap-group-search/extension-select/style/index.js +1 -0
  491. package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +1 -1
  492. package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +1 -1
  493. package/lib/src/business/ap-group-search/index.d.ts +3 -3
  494. package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +8 -346
  495. package/lib/src/business/ap-group-search/popover-select/style/css.js +1 -0
  496. package/lib/src/business/ap-group-search/popover-select/style/index.js +1 -0
  497. package/lib/src/business/ap-group-search/style/css.js +1 -0
  498. package/lib/src/business/ap-group-search/style/index.js +1 -0
  499. package/lib/src/business/ap-image/ApImage.vue.d.ts +2 -1
  500. package/lib/src/business/ap-image/style/css.js +1 -0
  501. package/lib/src/business/ap-image/style/index.js +1 -0
  502. package/lib/src/business/ap-input-radio/ApInputRadio.vue.d.ts +1 -1
  503. package/lib/src/business/ap-input-radio/index.d.ts +1 -1
  504. package/lib/src/business/ap-input-radio/style/css.js +1 -0
  505. package/lib/src/business/ap-input-radio/style/index.js +1 -0
  506. package/lib/src/business/ap-label/group/style/css.js +1 -0
  507. package/lib/src/business/ap-label/group/style/index.js +1 -0
  508. package/lib/src/business/ap-label/style/css.js +1 -0
  509. package/lib/src/business/ap-label/style/index.js +1 -0
  510. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +3 -2
  511. package/lib/src/business/ap-ladder/index.d.ts +1 -1
  512. package/lib/src/business/ap-ladder/style/css.js +1 -0
  513. package/lib/src/business/ap-select-layout/index.d.ts +2 -4
  514. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +3 -5
  515. package/lib/src/business/ap-select-layout/style/css.js +1 -0
  516. package/lib/src/business/ap-select-layout/style/index.js +1 -0
  517. package/lib/src/business/ap-size-input/style/css.js +1 -0
  518. package/lib/src/business/ap-size-input/style/index.js +1 -0
  519. package/lib/src/business/ap-status/group/style/css.js +1 -0
  520. package/lib/src/business/ap-status/group/style/index.js +1 -0
  521. package/lib/src/business/ap-status/style/css.js +1 -0
  522. package/lib/src/business/ap-status/style/index.js +1 -0
  523. package/lib/src/business/ap-summary/style/css.js +1 -0
  524. package/lib/src/business/ap-summary/style/index.js +1 -0
  525. package/lib/src/business/ap-table-modal/modal-title.vue.d.ts +3 -2
  526. package/lib/src/business/ap-table-modal/style/css.js +1 -0
  527. package/lib/src/business/ap-table-modal/style/index.js +1 -0
  528. package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +8 -8
  529. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  530. package/lib/src/business/ap-title/ApTitle.vue.d.ts +3 -2
  531. package/lib/src/business/ap-title/index.d.ts +1 -1
  532. package/lib/src/business/ap-title/style/css.js +1 -0
  533. package/lib/src/business/ap-title/style/index.js +1 -0
  534. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -3
  535. package/lib/src/business/ap-upload-file/ap-upload-single/style/css.js +1 -0
  536. package/lib/src/business/ap-upload-file/ap-upload-single/style/index.js +1 -0
  537. package/lib/src/business/ap-upload-file/icon/delete-icon.vue.d.ts +1 -1
  538. package/lib/src/business/ap-upload-file/icon/file-icon.vue.d.ts +1 -1
  539. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
  540. package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +1 -1
  541. package/lib/src/business/batch-input-group/popover-input/style/css.js +1 -0
  542. package/lib/src/business/batch-input-group/popover-input/style/index.js +1 -0
  543. package/lib/src/business/batch-input-group/style/css.js +1 -0
  544. package/lib/src/business/batch-input-group/style/index.js +1 -0
  545. package/lib/src/check-card/group/style/css.js +1 -0
  546. package/lib/src/check-card/group/style/index.js +1 -0
  547. package/lib/src/check-card/group.vue.d.ts +2 -1
  548. package/lib/src/check-card/index.vue.d.ts +3 -2
  549. package/lib/src/check-card/style/css.js +1 -0
  550. package/lib/src/check-card/style/index.js +1 -0
  551. package/lib/src/config-provider/style/css.js +1 -0
  552. package/lib/src/config-provider/style/index.js +1 -0
  553. package/lib/src/editable-table/form-item/style/css.js +1 -0
  554. package/lib/src/editable-table/form-item/style/index.js +1 -0
  555. package/lib/src/editable-table/form-item.vue.d.ts +3 -5
  556. package/lib/src/editable-table/index.vue.d.ts +3 -5
  557. package/lib/src/editable-table/style/css.js +1 -0
  558. package/lib/src/editable-table/style/index.js +1 -0
  559. package/lib/src/tests/wrapper.d.ts +4 -4
  560. package/lib/src/work-order-modal/style/css.js +4 -0
  561. package/lib/src/work-order-modal/style/index.js +4 -0
  562. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  563. package/package.json +1 -1
  564. package/index.ts +0 -19
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const S=require("../../utils/slot.js");require("../../config-provider/index.js");const M=require("lodash-unified"),R=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function F(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const E=e.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{}},emits:["update:open"],setup(d,{expose:C,emit:B}){const o=d,p=e.useSlots(),T=B,n=e.ref(),c=e.ref(),r=e.ref(!1),{value:k,updateValue:f}=j.useControllableValue(o,T,{valuePropName:"open",defaultValue:!1}),{t:v}=O.useLocale(),b=U.useGlobalConfig("uiMode","aplus"),{b:N,e:g}=z.useNamespace("ap-form-modal-form");e.watch(()=>n.value,t=>{var l;t&&c.value&&((l=t.setFieldsValue)==null||l.call(t,c.value),c.value=void 0)});const y=S.getSingleVNode(p.trigger),h=y?e.cloneVNode(y,{onClick:()=>{f(!0)}}):null,P=e.computed(()=>{var l,a,u,m;const t=[];if(o.submitter===!1)return null;if(o.showCancel){let s;t.push(e.createVNode(i.Button,{onClick:V,disabled:r.value},F(s=v("ap.common.cancelText"))?s:{default:()=>[s]}))}return((l=o.submitter)==null?void 0:l.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((a=o.submitter)==null?void 0:a.resetButtonProps)||{},{key:"submit",disabled:r.value,onClick:_}),{default:()=>{var s;return[((s=o.submitter)==null?void 0:s.resetText)||v("ap.common.resetText")]}})),((u=o.submitter)==null?void 0:u.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((m=o.submitter)==null?void 0:m.submitButtonProps)||{},{loading:r.value,onClick:q}),{default:()=>{var s;return[((s=o.submitter)==null?void 0:s.submitText)||v("ap.common.okText")]}})),e.createVNode(i.Flex,{justify:"flex-end",class:g(e.unref(b)==="admin"?"footer-admin":"footer")},{default:()=>[p.submitter?p.submitter(t):e.createVNode(i.Space,null,F(t)?t:{default:()=>[t]})]})});function _(){var t,l,a;o.submitter!==!1&&((t=n.value)==null||t.resetFields(),(a=(l=o.submitter)==null?void 0:l.onReset)==null||a.call(l))}async function q(){var t,l,a,u;if(o.submitter!==!1)try{const m=await((t=n.value)==null?void 0:t.validateFields());(a=(l=o.submitter)==null?void 0:l.onSubmit)==null||a.call(l),r.value=!0;const s=(u=o.onFinish)==null?void 0:u.call(o,R.convertReactiveToRaw(m));if(o.submitTimeout&&s instanceof Promise){const x=setTimeout(()=>r.value=!1,o.submitTimeout);s.finally(()=>{clearTimeout(x),r.value=!1})}await s&&f(!1)}finally{r.value=!1}}function V(){e.unref(r)||f(!1)}function w(t){!t&&e.unref(r)||f(t)}return C({resetFields:()=>{var t;(t=n.value)==null||t.resetFields()},clearValidate:t=>{var l;(l=n.value)==null||l.clearValidate(t)},validateFields:(t,l)=>{var a;return(a=n.value)==null?void 0:a.validateFields(t,l)},getFieldsValue:t=>{var l;return(l=n.value)==null?void 0:l.getFieldsValue(t)},validate:(t,l)=>{var a;return(a=n.value)==null?void 0:a.validate(t,l)},scrollToField:(t,l={})=>{var a;(a=n.value)==null||a.scrollToField(t,l)},setFieldValue:(t,l)=>{var a,u;(u=(a=n.value)==null?void 0:a.setFieldValue)==null||u.call(a,t,l)},setFieldsValue:t=>{var l,a;if(!n.value){c.value=t;return}(a=(l=n.value)==null?void 0:l.setFieldsValue)==null||a.call(l,t)},getInternalInstance:t=>{var l;return(l=n.value)==null?void 0:l.getInternalInstance(t)}}),(t,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(t.modalProps,{open:e.unref(k),footer:null,width:t.width,class:e.unref(N)(),"body-style":{padding:e.unref(b)==="admin"?"0px !important":"20px !important"},"onUpdate:open":w,onCancel:V}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)(e.unref(b)==="admin"?"content-admin":"content"))},[e.createVNode(D.default,e.mergeProps({ref_key:"formRef",ref:n},e.unref(M.omit)(o,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)],2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value)))]),_:3},16,["open","width","class","body-style"]),e.unref(h)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),{key:0})):e.createCommentVNode("",!0)],64))}});exports.default=E;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("@aplus-frontend/antdv");require("../ap-form.vue.js");require("../../hooks/index.js");const x=require("../../utils/slot.js");require("../../config-provider/index.js");const M=require("lodash-unified"),R=require("../../utils/index.js"),j=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),U=require("../../config-provider/hooks/use-global-config.js"),z=require("../../config-provider/hooks/use-namespace.js"),D=require("../ap-form.vue2.js");function F(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const E=e.defineComponent({__name:"index",props:{layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onFieldsChange:{},onFinishFailed:{},onValidate:{},initialValues:{},onValuesChange:{},syncToUrl:{type:[Boolean,Function]},syncToUrlPriority:{type:Boolean},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0},submitTimeout:{}},emits:["update:open"],setup(d,{expose:C,emit:B}){const a=d,p=e.useSlots(),T=B,n=e.ref(),c=e.ref(),r=e.ref(!1),{value:k,updateValue:f}=j.useControllableValue(a,T,{valuePropName:"open",defaultValue:!1}),{t:b}=O.useLocale(),v=U.useGlobalConfig("uiMode","aplus"),{b:N,e:g}=z.useNamespace("ap-form-modal-form");e.watch(()=>n.value,t=>{var l;t&&c.value&&((l=t.setFieldsValue)==null||l.call(t,c.value),c.value=void 0)});const y=x.getSingleVNode(p.trigger),h=y?e.cloneVNode(y,{onClick:()=>{f(!0)}}):null,P=e.computed(()=>{var l,o,u,m;const t=[];if(a.submitter===!1)return null;if(a.showCancel){let s;t.push(e.createVNode(i.Button,{onClick:V,disabled:r.value},F(s=b("ap.common.cancelText"))?s:{default:()=>[s]}))}return((l=a.submitter)==null?void 0:l.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((o=a.submitter)==null?void 0:o.resetButtonProps)||{},{key:"submit",disabled:r.value,onClick:q}),{default:()=>{var s;return[((s=a.submitter)==null?void 0:s.resetText)||b("ap.common.resetText")]}})),((u=a.submitter)==null?void 0:u.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((m=a.submitter)==null?void 0:m.submitButtonProps)||{},{loading:r.value,onClick:w}),{default:()=>{var s;return[((s=a.submitter)==null?void 0:s.submitText)||b("ap.common.okText")]}})),e.createVNode(i.Flex,{justify:"flex-end",class:g(e.unref(v)==="admin"?"footer-admin":"footer")},{default:()=>[p.submitter?p.submitter(t):e.createVNode(i.Space,null,F(t)?t:{default:()=>[t]})]})});function q(){var t,l,o;a.submitter!==!1&&((t=n.value)==null||t.resetFields(),(o=(l=a.submitter)==null?void 0:l.onReset)==null||o.call(l))}async function w(){var t,l,o,u;if(a.submitter!==!1)try{const m=await((t=n.value)==null?void 0:t.validateFields());(o=(l=a.submitter)==null?void 0:l.onSubmit)==null||o.call(l),r.value=!0;const s=(u=a.onFinish)==null?void 0:u.call(a,R.convertReactiveToRaw(m));if(a.submitTimeout&&s instanceof Promise){const S=setTimeout(()=>r.value=!1,a.submitTimeout);s.finally(()=>{clearTimeout(S),r.value=!1})}await s&&f(!1)}finally{r.value=!1}}function V(){e.unref(r)||f(!1)}function _(t){!t&&e.unref(r)||f(t)}return C({resetFields:()=>{var t;(t=n.value)==null||t.resetFields()},clearValidate:t=>{var l;(l=n.value)==null||l.clearValidate(t)},validateFields:(t,l)=>{var o;return(o=n.value)==null?void 0:o.validateFields(t,l)},getFieldsValue:t=>{var l;return(l=n.value)==null?void 0:l.getFieldsValue(t)},validate:(t,l)=>{var o;return(o=n.value)==null?void 0:o.validate(t,l)},scrollToField:(t,l={})=>{var o;(o=n.value)==null||o.scrollToField(t,l)},setFieldValue:(t,l)=>{var o,u;(u=(o=n.value)==null?void 0:o.setFieldValue)==null||u.call(o,t,l)},setFieldsValue:t=>{var l,o;if(!n.value){c.value=t;return}(o=(l=n.value)==null?void 0:l.setFieldsValue)==null||o.call(l,t)},getInternalInstance:t=>{var l;return(l=n.value)==null?void 0:l.getInternalInstance(t)}}),(t,l)=>{var o;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(t.modalProps,{open:e.unref(k),footer:null,width:t.width,class:e.unref(N)(),"body-style":{...((o=t.modalProps)==null?void 0:o.bodyStyle)||{},padding:e.unref(v)==="admin"?"0px !important":"20px !important"},"onUpdate:open":_,onCancel:V}),{title:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(a.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(g)(e.unref(v)==="admin"?"content-admin":"content"))},[e.createVNode(D.default,e.mergeProps({ref_key:"formRef",ref:n},e.unref(M.omit)(a,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16)],2),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value)))]),_:3},16,["open","width","class","body-style"]),e.unref(h)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(h)),{key:0})):e.createCommentVNode("",!0)],64)}}});exports.default=E;
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-form/modal-form.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-form/modal-form.less';
@@ -5,9 +5,10 @@ type SlotsType = {
5
5
  default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
6
6
  };
7
7
  declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
8
9
  slots: Readonly<SlotsType> & SlotsType;
9
10
  refs: {};
10
- attrs: Partial<{}>;
11
+ rootEl: any;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
@@ -3,13 +3,14 @@ import { ApFormControlRenderProps, ApFormItemSlots } from '../interface';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  import { ApFormItemProps } from '..';
5
5
  declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
6
7
  slots: Readonly<{
7
8
  default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
8
9
  } & Omit<ApFormItemSlots, "default">> & {
9
10
  default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
10
11
  } & Omit<ApFormItemSlots, "default">;
11
12
  refs: {};
12
- attrs: Partial<{}>;
13
+ rootEl: any;
13
14
  };
14
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
16
  declare const __VLS_component: DefineComponent<ApFormItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFormItemProps> & Readonly<{}>, {
@@ -0,0 +1 @@
1
+ export {};
@@ -10,6 +10,7 @@ import { Recordable } from '../../type';
10
10
  import { ApFormProps, WatchFunc, RegistedFieldType } from '..';
11
11
  import { OnCleanup } from '@vue/reactivity';
12
12
  declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
13
14
  slots: Readonly<{
14
15
  default(): any[];
15
16
  extra(): any;
@@ -112,7 +113,7 @@ declare function __VLS_template(): {
112
113
  readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
113
114
  readonly initialValues?: Recordable | undefined;
114
115
  readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
115
- readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
116
+ readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
116
117
  readonly syncToUrlPriority?: boolean | undefined;
117
118
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
118
119
  $attrs: {
@@ -215,7 +216,7 @@ declare function __VLS_template(): {
215
216
  };
216
217
  }) | null;
217
218
  };
218
- attrs: Partial<{}>;
219
+ rootEl: any;
219
220
  };
220
221
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
221
222
  declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-form/search-form.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-form/search-form.less';
@@ -1,13 +1,14 @@
1
1
  import { ApFormSetProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: Readonly<{
5
6
  default: any;
6
7
  }> & {
7
8
  default: any;
8
9
  };
9
10
  refs: {};
10
- attrs: Partial<{}>;
11
+ rootEl: any;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: DefineComponent<ApFormSetProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSetProps> & Readonly<{}>, {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-form/index.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-form/index.less';
@@ -1,6 +1,7 @@
1
1
  import { ApInfoLayoutPropsMixed } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: Readonly<{
5
6
  [key: string]: any;
6
7
  /**
@@ -59,10 +60,10 @@ declare function __VLS_template(): {
59
60
  content(): any;
60
61
  };
61
62
  refs: {};
62
- attrs: Partial<{}>;
63
+ rootEl: HTMLDivElement;
63
64
  };
64
65
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
65
- declare const __VLS_component: DefineComponent<ApInfoLayoutPropsMixed, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutPropsMixed> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
66
+ declare const __VLS_component: DefineComponent<ApInfoLayoutPropsMixed, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutPropsMixed> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
66
67
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
67
68
  export default _default;
68
69
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  import { ApInfoLayoutAdminProps } from '../interface';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  header?(_: {}): any;
6
7
  default?(_: {}): any;
@@ -9,13 +10,13 @@ declare function __VLS_template(): {
9
10
  containerRef: HTMLDivElement;
10
11
  headerRef: HTMLDivElement;
11
12
  };
12
- attrs: Partial<{}>;
13
+ rootEl: HTMLDivElement;
13
14
  };
14
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
16
  declare const __VLS_component: DefineComponent<ApInfoLayoutAdminProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApInfoLayoutAdminProps> & Readonly<{}>, {
16
17
  bordered: boolean;
17
18
  headerStyle: CSSProperties;
18
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
19
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
20
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
21
  export default _default;
21
22
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,6 +1,7 @@
1
1
  import { ApInfoLayoutAplusProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
4
5
  slots: {
5
6
  header?(_: {}): any;
6
7
  title?(_: {}): any;
@@ -9,7 +10,7 @@ declare function __VLS_template(): {
9
10
  content?(_: {}): any;
10
11
  };
11
12
  refs: {};
12
- attrs: Partial<{}>;
13
+ rootEl: HTMLDivElement;
13
14
  };
14
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
16
  declare const __VLS_component: DefineComponent<ApInfoLayoutAplusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -19,7 +20,7 @@ declare const __VLS_component: DefineComponent<ApInfoLayoutAplusProps, {}, {}, {
19
20
  }>, {
20
21
  toEl: string | HTMLElement;
21
22
  telDisabled: boolean;
22
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
23
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
25
  export default _default;
25
26
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-layout/ap-info-layout.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-layout/ap-info-layout.less';
@@ -1,9 +1,9 @@
1
1
  import { ApListProps } from './interface';
2
2
  import { Recordable } from '../type';
3
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
3
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
4
4
  import { ApFormSearchFormExpose } from '..';
5
5
  declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & ApListProps<RecordType>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -41,9 +41,7 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
41
41
  }): any;
42
42
  };
43
43
  emit: {};
44
- }>) => VNode<RendererNode, RendererElement, {
45
- [key: string]: any;
46
- }> & {
44
+ }>) => VNode & {
47
45
  __ctx?: Awaited<typeof __VLS_setup>;
48
46
  };
49
47
  export default _default;
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-list/index.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-list/index.less';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -2,5 +2,5 @@ import { ApScrollBarProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApScrollBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApScrollBarProps> & Readonly<{}>, {
4
4
  type: "horizontal" | "vertical";
5
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -4,7 +4,7 @@ export * from './interface';
4
4
  declare const ApScrollBar: {
5
5
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApScrollBarProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
6
6
  type: "horizontal" | "vertical";
7
- }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
7
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
8
8
  P: {};
9
9
  B: {};
10
10
  D: {};
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-scroll-bar/index.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-scroll-bar/index.less';
@@ -1,9 +1,9 @@
1
1
  import { ApColumnType, ApTableProps } from './interface';
2
2
  import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
3
3
  import { RowSelectionReturnType } from './hooks/use-table-row-selection';
4
- import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
4
+ import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
5
5
  declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType>> & PublicProps;
6
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & Partial<{}> & ApTableProps<RecordType>> & PublicProps;
7
7
  expose(exposed: ShallowUnwrapRef<{
8
8
  submit: () => void;
9
9
  reset: () => void;
@@ -76,9 +76,7 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
76
76
  }) => void;
77
77
  };
78
78
  emit: {};
79
- }>) => VNode<RendererNode, RendererElement, {
80
- [key: string]: any;
81
- }> & {
79
+ }>) => VNode & {
82
80
  __ctx?: Awaited<typeof __VLS_setup>;
83
81
  };
84
82
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=require("@aplus-frontend/antdv"),le=require("@aplus-frontend/antdv/es/theme/internal"),se=require("../ap-form/index.js"),O=require("./constants.js");require("../config-provider/index.js");const ue=require("./hooks/use-table-paging.js"),i=require("lodash-unified"),u=require("./utils.js"),de=require("./hooks/use-table-content-height.js"),ie=require("./hooks/use-table-row-selection.js"),ce=require("../utils/index.js");require("./components/setting/modal/index.vue.js");require("./components/paragraph-ellipsis/index.vue.js");const fe=require("./context.js"),pe=require("../config-provider/hooks/use-namespace.js"),me=require("../config-provider/hooks/use-global-config.js"),ge=require("./components/paragraph-ellipsis/index.vue2.js"),ye=require("./components/setting/modal/index.vue2.js"),Se=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1},settings:{type:[Boolean,Object],default:void 0}},setup(_,{expose:K}){const t=_;let R=0;const m=e.useSlots(),[,A]=le.useToken(),{e:w,b:c,be:B}=pe.useNamespace("ap-table"),x=me.useGlobalConfig("valueTypeMap"),{height:D,contentRef:U}=de.default(),b=e.ref(t.size),d=e.ref([]),T=e.ref([]);fe.useProvideApTable({columns:e.computed(()=>d.value),columnsBackup:e.computed(()=>T.value),size:e.computed(()=>b.value),updateColumns(r){d.value=r},updateSize(r){b.value=r}});const F=e.computed(()=>{var r,a,n;return R++,((n=(a=(r=t.columns)==null?void 0:r.filter(o=>!o.hideInSearch&&o.dataIndex&&(o.valueType||o.customRenderFormItem)&&!O.noRenderAsFormItemValueList.includes(o.valueType)))==null?void 0:a.sort((o,s)=>{let l=u.getColumnOrder(o.order);return u.getColumnOrder(s.order)-l}))==null?void 0:n.map(o=>{const s=u.updateFormProps(o,u.getFieldProps(o.fieldProps,{})),l={...o,fieldProps:{label:o.title,name:o.dataIndex,...s||{},_signal:R},renderNode:void 0};return l.renderNode=u.getSearchFormItemRenderNode(l,e.unref(x)),l}))||[]}),j=e.computed(()=>u.recursionApColumns(e.unref(d),r=>{if(r.sorter===!0)return r.key||r.dataIndex}).filter(Boolean)),$=e.computed(()=>u.recursionApColumns(e.unref(d),r=>{if(r.filters&&!r.onFilter)return r.key||r.dataIndex}).filter(Boolean)),W=e.computed(()=>i.isUndefined(t.dataSource)?h.value.records:t.dataSource),{rowSelection:g,selectedRows:y,...S}=ie.default({fixed:!0,...t.rowSelection===!0?{}:t.rowSelection,rowKey:t.rowKey,dataSource:W}),{formRef:C,submit:k,reset:z,tableProps:P,refresh:H,data:h,setDataSource:M,getColumnSFConfig:G}=ue.useTablePaging({async request(r){var n,o;if(!g.value.preserveSelectedRowKeys&&i.isUndefined(t.dataSource)&&S.clearAll(),!i.isUndefined(t.dataSource))return{data:t.dataSource||[],total:t.dataSource.length||0};const a=await((n=t.request)==null?void 0:n.call(t,r));return(o=t.onLoad)==null||o.call(t,(a==null?void 0:a.data)||[]),{data:(a==null?void 0:a.data)||[],total:(a==null?void 0:a.total)||0}},filterFields:$,sortFields:j,defaultParams:t.params,defaultData:t.defaultData,manual:t.manual,defaultCurrent:t.pagination?t.pagination.defaultCurrent:void 0,defaultPageSize:t.pagination?t.pagination.defaultPageSize:void 0,formatParams:t.beforeSearchSubmit,showLessItems:t.pagination?t.pagination.showLessItems:void 0,showTotal:t.pagination?t.pagination.showTotal:void 0}),J=()=>{var n;let r=((n=t.columns)==null?void 0:n.filter(o=>!o.hideInTable))||[];function a(o,s){return o.map(l=>({resizable:ce.isDef(l.resizable)?l.resizable:t.columnResizable,...i.omit(u.apColumnToColumn(l),["ellipsis"]),...G(l),fixed:s?s.fixed:l.fixed,title:u.getTableTitle(l,B("table-header","title"),m.headerCell,e.unref(A).colorPrimary),customRender({value:f,...p}){var V,E;const q=u.getTableRenderType(l),ne=u.getTableRenderProps({...l,valueType:q},{value:f,...p}),ae=u.getTableCellRenderNode(q,ne,p.record,e.unref(x)),I=((V=l.renderText)==null?void 0:V.call(l,{value:f,...p}))||f,oe=l.renderText?e.createVNode(e.Fragment,null,[(E=l.renderText)==null?void 0:E.call(l,{value:f,...p})]):ae;let v=Z(l,I,oe);return l.customRender&&(v=l.customRender({value:f,...p,column:l,originalNode:v,originalText:I})),v},children:a(l.children||[],s||l)}))}return a(r)};e.watchEffect(()=>{const r=J();d.value=r,T.value=r});const Q=e.computed(()=>{var a,n;if(t.adaptive&&(h.value.total>0||((a=t.dataSource)==null?void 0:a.length)))return{y:e.unref(D),x:((n=t.scroll)==null?void 0:n.x)||"100%"};if(t.scroll)return t.scroll}),X=e.computed(()=>{var r;if(t.tableLayout)return t.tableLayout;if((r=t.columns)!=null&&r.some(a=>a.ellipsis))return"fixed"}),N=e.computed(()=>{var n;const r=e.unref(P),a=e.unref(g);return{...t,...r,rowSelection:t.rowSelection===!0||((n=t.rowSelection)==null?void 0:n.mode)==="internal"?{...a,preserveSelectedRowKeys:i.isUndefined(t.dataSource)?a.preserveSelectedRowKeys:!0}:t.rowSelection,loading:i.isUndefined(t.loading)?r.loading:t.loading,pagination:t.pagination===!1?!1:r.pagination,scroll:e.unref(Q)}}),Y=e.computed(()=>[c(),t.card?null:c("wrapper"),t.adaptive?c("adaptive"):null].filter(Boolean));function Z(r,a,n){return O.noRenderAsFormItemValueList.includes(r.valueType)?n:r.copyable||r.ellipsis?e.createVNode(ge.default,{copyable:r.copyable,ellipsis:r.ellipsis?i.isBoolean(r.ellipsis)?{tooltip:n,rows:1}:{...r.ellipsis,tooltip:n}:!1,content:n},null):n}e.watch(()=>e.unref(h).loading,r=>{var a;(a=t.onLoadingChange)==null||a.call(t,r)}),e.watch(()=>t.dataSource,r=>{M(r)},{immediate:!0});function ee(r){var a,n,o;(o=(n=(a=C.value)==null?void 0:a.apForm)==null?void 0:n.setFieldsValue)==null||o.call(n,r)}function re(r=!1){var n,o,s;const a=r?"getFieldsValueTransformed":"getFieldsValue";return(s=(o=(n=C.value)==null?void 0:n.apForm)==null?void 0:o[a])==null?void 0:s.call(o,!0)}function te(){return e.unref(d)}return K({submit:()=>k(),reset:()=>z(),refresh:()=>H(),setSearchFormValues:ee,getSearchFormValues:re,getShownColumns:te,dataSource:e.computed(()=>e.unref(h).records),rowSelection:{selectedRows:e.computed(()=>e.unref(y)),...S}}),(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Y.value)},[e.unref(i.isUndefined)(r.dataSource)&&r.searchForm!==!1&&F.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.card?e.unref(w)("search-wrapper"):null),style:e.normalizeStyle(r.searchFormWrapperStyle)},[e.createVNode(e.unref(se.ApForm).SearchForm,e.mergeProps(r.searchForm||{},{ref_key:"formRef",ref:C,"custom-reset":"","submit-loading":e.unref(P).loading,onSubmit:e.unref(k),onReset:e.unref(z)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),e.mergeProps({key:n.dataIndex,ref_for:!0},n.fieldProps||{},{span:n.span}),null,16,["span"]))),128))]),_:2},[m.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:U,class:e.normalizeClass([e.unref(w)("table-wrapper"),r.card?e.unref(w)("table-wrapper-card"):null]),style:e.normalizeStyle(r.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("header-wrapper"))},[r.settings?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c)("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(B)("header","title"))},[e.renderSlot(r.$slots,"title",e.mergeProps({selectedRows:e.unref(y),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},S))],2),m.title?(e.openBlock(),e.createBlock(e.unref(L.Divider),{key:0,type:"vertical"})):e.createCommentVNode("",!0),e.createVNode(ye.default,{config:r.settings===!0?{}:r.settings},null,8,["config"])],2)):e.renderSlot(r.$slots,"title",e.mergeProps({key:1,selectedRows:e.unref(y),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},S))],2),e.createVNode(e.unref(L.Table),e.mergeProps({class:e.unref(c)("table")},N.value,{size:b.value,"table-layout":X.value,columns:d.value,onResizeColumn:a[0]||(a[0]=(n,o)=>o.width=n)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(r.$slots,"summary",{columns:d.value,records:N.value.dataSource,selectedRows:e.unref(y)})]),_:2},[e.renderList(e.unref(i.omit)(m,["title","searchFormExtra","headerCell","summary"]),(n,o)=>({name:o,fn:e.withCtx(s=>[e.renderSlot(r.$slots,o,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040,["class","size","table-layout","columns"])],6)],2))}});exports.default=Se;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=require("@aplus-frontend/antdv"),le=require("@aplus-frontend/antdv/es/theme/internal"),se=require("../ap-form/index.js"),O=require("./constants.js");require("../config-provider/index.js");const ue=require("./hooks/use-table-paging.js"),i=require("lodash-unified"),s=require("./utils.js"),de=require("./hooks/use-table-content-height.js"),ie=require("./hooks/use-table-row-selection.js"),ce=require("../utils/index.js");require("./components/setting/modal/index.vue.js");require("./components/paragraph-ellipsis/index.vue.js");const fe=require("./context.js"),pe=require("../config-provider/hooks/use-namespace.js"),me=require("../config-provider/hooks/use-global-config.js"),ge=require("./components/paragraph-ellipsis/index.vue2.js"),ye=require("./components/setting/modal/index.vue2.js"),Se=e.defineComponent({name:"ApTable",__name:"ap-table",props:{dropdownPrefixCls:{},loading:{type:[Boolean,Object],default:void 0},bordered:{type:Boolean,default:!1},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!1},prefixCls:{},rowKey:{default:"key"},tableLayout:{},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean,default:!1},params:{},searchFormRender:{},request:{},onLoad:{},defaultData:{},dataSource:{},onLoadingChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},manual:{type:Boolean,default:!1},size:{default:"middle"},adaptive:{type:Boolean,default:!1},columnResizable:{type:Boolean,default:!1},settings:{type:[Boolean,Object],default:void 0}},setup(_,{expose:K}){const t=_;let R=0;const m=e.useSlots(),[,A]=le.useToken(),{e:w,b:c,be:B}=pe.useNamespace("ap-table"),T=me.useGlobalConfig("valueTypeMap"),{height:U,contentRef:D}=de.default(),b=e.ref(t.size),d=e.ref([]),x=e.ref([]);fe.useProvideApTable({columns:e.computed(()=>d.value),columnsBackup:e.computed(()=>x.value),size:e.computed(()=>b.value),updateColumns(r){d.value=r},updateSize(r){b.value=r}});const F=e.computed(()=>{var r,a,n;return R++,((n=(a=(r=t.columns)==null?void 0:r.filter(o=>!o.hideInSearch&&o.dataIndex&&(o.valueType||o.customRenderFormItem)&&!O.noRenderAsFormItemValueList.includes(o.valueType)))==null?void 0:a.sort((o,u)=>{let l=s.getColumnOrder(o.order);return s.getColumnOrder(u.order)-l}))==null?void 0:n.map(o=>{const u=s.updateFormProps(o,s.getFieldProps(o.fieldProps,{})),l={...o,fieldProps:{label:o.title,name:o.dataIndex,...u||{},_signal:R},renderNode:void 0};return l.renderNode=s.getSearchFormItemRenderNode(l,e.unref(T)),l}))||[]}),j=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.sorter===!0)return r.key||r.dataIndex}).filter(Boolean)),$=e.computed(()=>s.recursionApColumns(e.unref(d),r=>{if(r.filters&&!r.onFilter)return r.key||r.dataIndex}).filter(Boolean)),W=e.computed(()=>i.isUndefined(t.dataSource)?h.value.records:t.dataSource),{rowSelection:g,selectedRows:y,...S}=ie.default({fixed:!0,...t.rowSelection===!0?{}:t.rowSelection,rowKey:t.rowKey,dataSource:W}),{formRef:C,submit:k,reset:z,tableProps:P,refresh:H,data:h,setDataSource:M,getColumnSFConfig:G}=ue.useTablePaging({async request(r){var n,o;if(!g.value.preserveSelectedRowKeys&&i.isUndefined(t.dataSource)&&S.clearAll(),!i.isUndefined(t.dataSource))return{data:t.dataSource||[],total:t.dataSource.length||0};const a=await((n=t.request)==null?void 0:n.call(t,r));return(o=t.onLoad)==null||o.call(t,(a==null?void 0:a.data)||[]),{data:(a==null?void 0:a.data)||[],total:(a==null?void 0:a.total)||0}},filterFields:$,sortFields:j,defaultParams:t.params,defaultData:t.defaultData,manual:t.manual,defaultCurrent:t.pagination?t.pagination.defaultCurrent:void 0,defaultPageSize:t.pagination?t.pagination.defaultPageSize:void 0,formatParams:t.beforeSearchSubmit,showLessItems:t.pagination?t.pagination.showLessItems:void 0,showTotal:t.pagination?t.pagination.showTotal:void 0,pagination:t.pagination!==!1}),J=()=>{var n;let r=((n=t.columns)==null?void 0:n.filter(o=>!o.hideInTable))||[];function a(o,u){return o.map(l=>({resizable:ce.isDef(l.resizable)?l.resizable:t.columnResizable,...i.omit(s.apColumnToColumn(l),["ellipsis"]),...G(l),fixed:u?u.fixed:l.fixed,title:s.getTableTitle(l,B("table-header","title"),m.headerCell,e.unref(A).colorPrimary),customRender({value:f,...p}){var V,E;const q=s.getTableRenderType(l),ne=s.getTableRenderProps({...l,valueType:q},{value:f,...p}),ae=s.getTableCellRenderNode(q,ne,p.record,e.unref(T)),I=((V=l.renderText)==null?void 0:V.call(l,{value:f,...p}))||f,oe=l.renderText?e.createVNode(e.Fragment,null,[(E=l.renderText)==null?void 0:E.call(l,{value:f,...p})]):ae;let v=Z(l,I,oe);return l.customRender&&(v=l.customRender({value:f,...p,column:l,originalNode:v,originalText:I})),v},children:a(l.children||[],u||l)}))}return a(r)};e.watchEffect(()=>{const r=J();d.value=r,x.value=r});const Q=e.computed(()=>{var a,n;if(t.adaptive&&(h.value.total>0||((a=t.dataSource)==null?void 0:a.length)))return{y:e.unref(U),x:((n=t.scroll)==null?void 0:n.x)||"100%"};if(t.scroll)return t.scroll}),X=e.computed(()=>{var r;if(t.tableLayout)return t.tableLayout;if((r=t.columns)!=null&&r.some(a=>a.ellipsis))return"fixed"}),N=e.computed(()=>{var n;const r=e.unref(P),a=e.unref(g);return{...t,...r,rowSelection:t.rowSelection===!0||((n=t.rowSelection)==null?void 0:n.mode)==="internal"?{...a,preserveSelectedRowKeys:i.isUndefined(t.dataSource)?a.preserveSelectedRowKeys:!0}:s.falseToUndefined(t.rowSelection),loading:i.isUndefined(t.loading)?r.loading:t.loading,pagination:t.pagination===!1?!1:r.pagination,scroll:e.unref(Q)}}),Y=e.computed(()=>[c(),t.card?null:c("wrapper"),t.adaptive?c("adaptive"):null].filter(Boolean));function Z(r,a,n){return O.noRenderAsFormItemValueList.includes(r.valueType)?n:r.copyable||r.ellipsis?e.createVNode(ge.default,{copyable:r.copyable,ellipsis:r.ellipsis?i.isBoolean(r.ellipsis)?{tooltip:n,rows:1}:{...r.ellipsis,tooltip:n}:!1,content:n},null):n}e.watch(()=>e.unref(h).loading,r=>{var a;(a=t.onLoadingChange)==null||a.call(t,r)}),e.watch(()=>t.dataSource,r=>{M(r)},{immediate:!0});function ee(r){var a,n,o;(o=(n=(a=C.value)==null?void 0:a.apForm)==null?void 0:n.setFieldsValue)==null||o.call(n,r)}function re(r=!1){var n,o,u;const a=r?"getFieldsValueTransformed":"getFieldsValue";return(u=(o=(n=C.value)==null?void 0:n.apForm)==null?void 0:o[a])==null?void 0:u.call(o,!0)}function te(){return e.unref(d)}return K({submit:()=>k(),reset:()=>z(),refresh:()=>H(),setSearchFormValues:ee,getSearchFormValues:re,getShownColumns:te,dataSource:e.computed(()=>e.unref(h).records),rowSelection:{selectedRows:e.computed(()=>e.unref(y)),...S}}),(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Y.value)},[e.unref(i.isUndefined)(r.dataSource)&&r.searchForm!==!1&&F.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(r.card?e.unref(w)("search-wrapper"):null),style:e.normalizeStyle(r.searchFormWrapperStyle)},[e.createVNode(e.unref(se.ApForm).SearchForm,e.mergeProps(r.searchForm||{},{ref_key:"formRef",ref:C,"custom-reset":"","submit-loading":e.unref(P).loading,onSubmit:e.unref(k),onReset:e.unref(z)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),e.mergeProps({key:n.dataIndex,ref_for:!0},n.fieldProps||{},{span:n.span}),null,16,["span"]))),128))]),_:2},[m.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(r.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"contentRef",ref:D,class:e.normalizeClass([e.unref(w)("table-wrapper"),r.card?e.unref(w)("table-wrapper-card"):null]),style:e.normalizeStyle(r.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("header-wrapper"))},[r.settings?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(c)("header"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(B)("header","title"))},[e.renderSlot(r.$slots,"title",e.mergeProps({selectedRows:e.unref(y),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},S))],2),m.title?(e.openBlock(),e.createBlock(e.unref(L.Divider),{key:0,type:"vertical"})):e.createCommentVNode("",!0),e.createVNode(ye.default,{config:r.settings===!0?{}:r.settings},null,8,["config"])],2)):e.renderSlot(r.$slots,"title",e.mergeProps({key:1,selectedRows:e.unref(y),selectedRowKeys:e.unref(g).selectedRowKeys,shownColumns:d.value},S))],2),e.createVNode(e.unref(L.Table),e.mergeProps({class:e.unref(c)("table")},N.value,{size:b.value,"table-layout":X.value,columns:d.value,onResizeColumn:a[0]||(a[0]=(n,o)=>o.width=n)}),e.createSlots({summary:e.withCtx(()=>[e.renderSlot(r.$slots,"summary",{columns:d.value,records:N.value.dataSource,selectedRows:e.unref(y)})]),_:2},[e.renderList(e.unref(i.omit)(m,["title","searchFormExtra","headerCell","summary"]),(n,o)=>({name:o,fn:e.withCtx(u=>[e.renderSlot(r.$slots,o,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class","size","table-layout","columns"])],6)],2))}});exports.default=Se;
@@ -2,5 +2,5 @@ import { ApTableIndexProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare const _default: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableIndexProps> & Readonly<{}>, {
4
4
  bordered: boolean;
5
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
6
6
  export default _default;
@@ -7,5 +7,5 @@ interface Props {
7
7
  tooltip?: VNodeChild;
8
8
  };
9
9
  }
10
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
11
  export default _default;
@@ -5,9 +5,10 @@ type TableSettingModalSlots = {
5
5
  trigger?: any;
6
6
  };
7
7
  declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
8
9
  slots: Readonly<TableSettingModalSlots> & TableSettingModalSlots;
9
10
  refs: {};
10
- attrs: Partial<{}>;
11
+ rootEl: any;
11
12
  };
12
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
14
  declare const __VLS_component: DefineComponent<ApTableSettingModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingModalProps> & Readonly<{}>, {
@@ -1,4 +1,4 @@
1
1
  import { ApTableSettingSelectGroupProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: DefineComponent<ApTableSettingSelectGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { SortableItemProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: DefineComponent<SortableItemProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SortableItemProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
4
  export default _default;
@@ -7,5 +7,5 @@ declare const _default: DefineComponent<SortableItemMetaProps, {}, {}, {}, {}, C
7
7
  }, string, PublicProps, Readonly<SortableItemMetaProps> & Readonly<{
8
8
  "onUpdate:open"?: ((open: boolean) => any) | undefined;
9
9
  "onUpdate:value"?: ((open: ApColumnState) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
10
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
11
11
  export default _default;
@@ -5,5 +5,5 @@ declare const _default: DefineComponent<ApTableSettingSorterProps, {}, {}, {}, {
5
5
  "update:value": (value: ApColumnState[]) => any;
6
6
  }, string, PublicProps, Readonly<ApTableSettingSorterProps> & Readonly<{
7
7
  "onUpdate:value"?: ((value: ApColumnState[]) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
9
9
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { ApTableSettingTreeSelectProps } from '../../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: DefineComponent<ApTableSettingTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTableSettingTreeSelectProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
4
4
  export default _default;
@@ -1290,7 +1290,7 @@ export declare const apTableRenderItemMap: {
1290
1290
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1291
1291
  index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
1292
1292
  bordered: boolean;
1293
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1293
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1294
1294
  status: DefineComponent<ApTableStatusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1295
1295
  password: {
1296
1296
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFieldTextPasswordProps> & Readonly<{
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, in
4
4
  columnState: Ref<{
5
5
  key: string | number;
6
6
  show?: boolean | undefined;
7
- fixed?: ("left" | "right") | undefined;
7
+ fixed?: "left" | "right" | undefined;
8
8
  disabled?: boolean | undefined;
9
9
  label?: any;
10
- children?: any[] | undefined;
10
+ children?: /*elided*/ any[] | undefined;
11
11
  order?: number | undefined;
12
12
  }[], ApColumnState[] | {
13
13
  key: string | number;
14
14
  show?: boolean | undefined;
15
- fixed?: ("left" | "right") | undefined;
15
+ fixed?: "left" | "right" | undefined;
16
16
  disabled?: boolean | undefined;
17
17
  label?: any;
18
- children?: any[] | undefined;
18
+ children?: /*elided*/ any[] | undefined;
19
19
  order?: number | undefined;
20
20
  }[]>;
21
21
  selectAll: () => void;
@@ -62,8 +62,12 @@ export type UseTablePagingParams<DataType, ParamsType> = {
62
62
  * 用于显示数据总量和当前数据顺序
63
63
  */
64
64
  showTotal?: boolean;
65
+ /**
66
+ * 是否分页
67
+ */
68
+ pagination?: boolean;
65
69
  };
66
- export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal }: UseTablePagingParams<DataType, ParamsType>) => {
70
+ export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, defaultData, formatParams, paramsValueTypeMap, resetFieldsIgnores, filterFields, sortFields, showLessItems, showTotal, pagination }: UseTablePagingParams<DataType, ParamsType>) => {
67
71
  formRef: Ref<ApFormSearchFormExpose | undefined, ApFormSearchFormExpose | undefined>;
68
72
  submit: () => void;
69
73
  reset: () => void;
@@ -78,8 +82,8 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
78
82
  records: DataType[];
79
83
  loading: boolean;
80
84
  }>;
81
- current: Ref<number, number>;
82
- pageSize: Ref<number, number>;
85
+ current: Ref<number | undefined, number | undefined>;
86
+ pageSize: Ref<number | undefined, number | undefined>;
83
87
  handleTableChange: (pagination: TablePaginationConfig, filters: Record<string, FilterValue | null>, sorter: SorterResult<any> | SorterResult<any>[], extra: TableCurrentDataSource<any>) => void;
84
88
  tableProps: ComputedRef<{
85
89
  loading: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),x=require("../utils.js"),V=require("lodash-unified");require("../../config-provider/index.js");const ee=require("./use-sorted-filtered.js"),te=require("../../config-provider/hooks/use-locale.js"),ae=require("../../config-provider/hooks/use-namespace.js"),re=({manual:D=!1,defaultCurrent:E=1,defaultPageSize:y=10,request:R,defaultParams:M={},defaultData:B=[],formatParams:z,paramsValueTypeMap:C,resetFieldsIgnores:N,filterFields:K,sortFields:L,showLessItems:P=!1,showTotal:$=!0})=>{let q=0,s={};const J=e=>z?z(e):e,c=t.ref(),l=t.ref(E),d=t.ref(y),{getColumnSFConfig:Q,setSF:U,clearAll:W}=ee.useTableSortedAndFiltered(),{t:S}=te.useLocale(),{b:T}=ae.useNamespace("ap-table"),n=t.ref({total:0,records:B,loading:!1}),w=async e=>{var o;const r=J(e),a=Date.now();q=a,n.value.loading=!0;try{const u=await R({...M,...r});q===a&&(n.value.total=u.total||((o=u.data)==null?void 0:o.length)||0,n.value.records=[...u.data||[]])}catch{q===a&&(n.value.records=[],n.value.total=0)}finally{n.value.loading=!1}},A=e=>{const r={};return Object.entries(e).forEach(([a,o])=>{if(r[a]=o,C&&o){const u=C[a];u&&(r[a]=x.parseFieldValue(u,o))}}),r},G=async e=>{var o,u,g,p,m,f,h;const r=((u=(o=c.value)==null?void 0:o.apForm)==null?void 0:u.getFieldsValueTransformed(!0))||{},a={};Object.entries(r).forEach(([v,b])=>{N&&N.indexOf(v)>-1&&(a[v]=b)}),await((p=(g=c.value)==null?void 0:g.apForm)==null?void 0:p.resetFields()),(h=(f=(m=c.value)==null?void 0:m.apForm)==null?void 0:f.setFieldsValue)==null||h.call(f,a),t.nextTick(()=>{e==null||e()})},F=e=>{s=e;const r=A(e);w(r)},H=e=>{F({...s,...e})},O=()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};l.value=1,F({...e,filter:s.filter,sort:s.sort,current:1,pageSize:s.pageSize||y})},X=()=>{W(),s.sort={},s.filter={},G(O)},Y=()=>{F(s)},Z=e=>{const r=t.unref(n).total-e,a=Math.ceil(r/t.unref(d)),o=t.unref(l)>a?a:t.unref(l);H({current:o>0?o:1})},j=(e,r,a)=>{var f,h,v,b;const o=((h=(f=c.value)==null?void 0:f.apForm)==null?void 0:h.getFieldsValueTransformed(!0))||{};l.value=e.current,d.value=e.pageSize,U(r,a);const u=V.isArray(a)?[...a]:[a],g={};for(const i of u)(v=t.unref(L))!=null&&v.includes(i.columnKey||i.field)&&i.order&&(g[x.dataIndexToStr(i.columnKey||i.field)]=i.order);const p={};for(const i of Object.keys(r))(b=t.unref(K))!=null&&b.includes(i)&&r[i]&&(p[i]=r[i]);const m={...o,filter:p,sort:g,current:e.current,pageSize:e.pageSize};V.isEqualWith(s,m,x.isEqualCustom)||F(m)};t.onMounted(()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};if(s={current:t.unref(l),pageSize:t.unref(d),filter:{},sort:{},...e},!D){const o=A(s);w(o)}});const _=t.computed(()=>t.unref(n).total===0?"-":`${t.unref(l.value)}/${Math.ceil(t.unref(n).total/t.unref(d))}`);function I(e){V.isArray(e)&&(n.value.records=e,n.value.total=e.length)}const k=t.computed(()=>({loading:t.unref(n).loading,pagination:{current:t.unref(l),pageSize:t.unref(d),total:t.unref(n).total,showSizeChanger:!P,showQuickJumper:!P,showLessItems:P,size:"default",showTotal:$?e=>t.createVNode("span",{class:T("pagination-total-wrapper")},[S("ap.apTable.pagination.totalLeftPrefix")," ",t.createVNode("span",{class:T("pagination-count-text")},[e])," ",S("ap.apTable.pagination.totalLeftSuffix"),t.createVNode("span",{class:T("pagination--total-right")},[S("ap.apTable.pagination.totalRightPrefix")," ",t.createVNode("span",{class:T("pagination-count-text")},[t.unref(_)])," ",S("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:j,dataSource:t.unref(n).records}));return{formRef:c,submit:O,reset:X,refresh:Y,refreshByDelete:Z,data:n,current:l,pageSize:d,handleTableChange:j,tableProps:k,dataSource:t.computed(()=>t.unref(n).records),setDataSource:I,getColumnSFConfig:Q}};exports.useTablePaging=re;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),z=require("../utils.js"),V=require("lodash-unified");require("../../config-provider/index.js");const te=require("./use-sorted-filtered.js"),re=require("../../config-provider/hooks/use-locale.js"),ae=require("../../config-provider/hooks/use-namespace.js"),ne=({manual:R=!1,defaultCurrent:M=1,defaultPageSize:y=10,request:B,defaultParams:K={},defaultData:L=[],formatParams:C,paramsValueTypeMap:N,resetFieldsIgnores:w,filterFields:_,sortFields:$,showLessItems:q=!1,showTotal:J=!0,pagination:g=!0})=>{let x=0,u={};const Q=e=>C?C(e):e,c=t.ref(),f=t.ref(g?M:void 0),p=t.ref(g?y:void 0),{getColumnSFConfig:U,setSF:W,clearAll:G}=te.useTableSortedAndFiltered(),{t:T}=re.useLocale(),{b:F}=ae.useNamespace("ap-table"),n=t.ref({total:0,records:L,loading:!1}),A=async e=>{var o;const r=Q(e),a=Date.now();x=a,n.value.loading=!0;try{const s=await B({...K,...r});x===a&&(n.value.total=s.total||((o=s.data)==null?void 0:o.length)||0,n.value.records=[...s.data||[]])}catch{x===a&&(n.value.records=[],n.value.total=0)}finally{n.value.loading=!1}},O=e=>{const r={};return Object.entries(e).forEach(([a,o])=>{if(r[a]=o,N&&o){const s=N[a];s&&(r[a]=z.parseFieldValue(s,o))}}),r},H=async e=>{var o,s,l,m,h,d,v;const r=((s=(o=c.value)==null?void 0:o.apForm)==null?void 0:s.getFieldsValueTransformed(!0))||{},a={};Object.entries(r).forEach(([S,P])=>{w&&w.indexOf(S)>-1&&(a[S]=P)}),await((m=(l=c.value)==null?void 0:l.apForm)==null?void 0:m.resetFields()),(v=(d=(h=c.value)==null?void 0:h.apForm)==null?void 0:d.setFieldsValue)==null||v.call(d,a),t.nextTick(()=>{e==null||e()})},b=e=>{u=e;const r=O(e);A(r)},X=e=>{b({...u,...e})},j=()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};g&&(f.value=1),b({...e,filter:u.filter,sort:u.sort,current:g?1:void 0,pageSize:g?u.pageSize||y:void 0})},Y=()=>{G(),u.sort={},u.filter={},H(j)},D=()=>{b(u)},Z=e=>{if(!g)D();else{const r=t.unref(f),a=t.unref(p),o=t.unref(n).total-e,s=Math.ceil(o/a),l=r>s?s:r;X({current:l>0?l:1})}},E=(e,r,a)=>{var d,v,S,P;const o=((v=(d=c.value)==null?void 0:d.apForm)==null?void 0:v.getFieldsValueTransformed(!0))||{};f.value=e.current,p.value=e.pageSize,W(r,a);const s=V.isArray(a)?[...a]:[a],l={};for(const i of s)(S=t.unref($))!=null&&S.includes(i.columnKey||i.field)&&i.order&&(l[z.dataIndexToStr(i.columnKey||i.field)]=i.order);const m={};for(const i of Object.keys(r))(P=t.unref(_))!=null&&P.includes(i)&&r[i]&&(m[i]=r[i]);const h={...o,filter:m,sort:l,current:e.current,pageSize:e.pageSize};V.isEqualWith(u,h,z.isEqualCustom)||b(h)};t.onMounted(()=>{var r,a;const e=((a=(r=c.value)==null?void 0:r.apForm)==null?void 0:a.getFieldsValueTransformed(!0))||{};if(u={current:t.unref(f),pageSize:t.unref(p),filter:{},sort:{},...e},!R){const o=O(u);A(o)}});const I=t.computed(()=>t.unref(n).total===0?"-":`${t.unref(f.value)}/${Math.ceil(t.unref(n).total/t.unref(p))}`);function k(e){V.isArray(e)&&(n.value.records=e,n.value.total=e.length)}const ee=t.computed(()=>({loading:t.unref(n).loading,pagination:{current:t.unref(f),pageSize:t.unref(p),total:t.unref(n).total,showSizeChanger:!q,showQuickJumper:!q,showLessItems:q,size:"default",showTotal:J?e=>t.createVNode("span",{class:F("pagination-total-wrapper")},[T("ap.apTable.pagination.totalLeftPrefix")," ",t.createVNode("span",{class:F("pagination-count-text")},[e])," ",T("ap.apTable.pagination.totalLeftSuffix"),t.createVNode("span",{class:F("pagination--total-right")},[T("ap.apTable.pagination.totalRightPrefix")," ",t.createVNode("span",{class:F("pagination-count-text")},[t.unref(I)])," ",T("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:E,dataSource:t.unref(n).records}));return{formRef:c,submit:j,reset:Y,refresh:D,refreshByDelete:Z,data:n,current:f,pageSize:p,handleTableChange:E,tableProps:ee,dataSource:t.computed(()=>t.unref(n).records),setDataSource:k,getColumnSFConfig:U}};exports.useTablePaging=ne;
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-table/ap-table.css';
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui-theme/src/ap-table/ap-table.less';
@@ -708,4 +708,5 @@ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassN
708
708
  }> | ((props: ColumnTitleProps<any>) => VNodeArrayChildren | VueNode) | null;
709
709
  export declare function recursionApColumns<ReturnType = any>(columns: (ColumnType | ColumnGroupType<any>)[], handler: (column: ColumnType) => ReturnType): ReturnType[];
710
710
  export declare function isEqualCustom(value: any, other: any): boolean | undefined;
711
+ export declare function falseToUndefined(obj: any): any;
711
712
  export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("lodash-unified"),d=require("./constants.js"),b=require("@fruits-chain/utils");require("../ap-form/index.js");const g=require("@aplus-frontend/antdv"),j=require("@ant-design/icons-vue"),O=require("../ap-form/item/index.vue.js");function h(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const p=(e,t,n)=>{let o={};return u.isObject(e)?Object.keys(e).forEach(r=>{u.isObject(e[r])?o[r]=p(e[r],t[r],n):o[r]=n(e[r],t)}):o=n(e,t),o},N=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,o]=t;return[n.startOf("day").valueOf(),o.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return u.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function E(e){return u.isArray(e)?e.join("."):e}function F(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const m=e=>F(e)==="map"?e:new Map(Object.entries(e||{})),c=e=>{const t=[],n=m(e);return n.forEach((o,r)=>{const s=n.get(r)||n.get(`${r}`);if(s){if(typeof s=="object"&&(s!=null&&s.text)){t.push({text:s==null?void 0:s.text,value:r,label:s==null?void 0:s.text,disabled:s.disabled});return}t.push({text:s,label:s,value:r})}}),t},S=e=>u.isUndefined(e)||e<0?0:e;function y(e,t){return!e||!u.isFunction(e)?e:e(t)}function V(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function v(e,t,n,o){var l;const r=d.apTableRenderItemMap[e];if(r)return i.createVNode(r,i.mergeProps(t,{mode:"read"}),null);const s=o==null?void 0:o[e];return((l=s==null?void 0:s.render)==null?void 0:l.call(s,t.value,n,t))||t.value}function C(e,t){if(e.customRenderFormItem)return()=>{const r=e.customRenderFormItem(e);return i.cloneVNode(r,{...e.fieldProps,span:e.span,...r.props||{}})};const n=d.apTableFormItemMap[e.valueType];if(n)return n;const o=t==null?void 0:t[e.valueType];return()=>{var s;const r=(s=o==null?void 0:o.renderFormItem)==null?void 0:s.call(o,e.fieldProps.field);return r?i.createVNode(O.default,i.mergeProps(e.fieldProps,{span:e.span}),h(r)?r:{default:()=>[r]}):null}}function P(e,t){const n=y(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},r=e.valueType==="switch",s=e.valueType==="index",l=r?{checked:t.value}:{value:s?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...u.omit(o,["request"]),...l}}function q(e){const t={...e};return u.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=c(e.valueEnum)),t}function I(e,t){var o;const n=t||{};return e.valueEnum&&!((o=n.field)!=null&&o.options)&&(n.field={...n.field,options:c(e.valueEnum)}),n}function A(e){if(!b.isType("Object")(e))return e;try{return JSON.stringify(e)}catch{return e}}function _(e,t,n,o){const r=n==null?void 0:n({title:e.title,column:e}),s=(r==null?void 0:r.filter(T=>T.type!==Symbol.for("v-cmt")))||[];if(r&&s.length>0)return r;const a=u.isString(e.title)?i.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?u.isFunction(e.tooltip)?e.tooltip(e):i.createVNode(i.Fragment,null,[e.tooltip]):null;return f?i.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[a,i.createVNode(g.Tooltip,{title:f,placement:"bottom"},{default:()=>[i.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:o,verticalAlign:"middle"}},null)]})]):a}function R(e,t){const n=[];function o(r){var s;for(const l of r)(s=l.children)!=null&&s.length?o(l.children):n.push(t(l))}return o(e),n}function w(e,t){if(u.isArray(e)&&u.isArray(t))return u.isEqual(u.sortBy(e),u.sortBy(t));if(u.isPlainObject(e)&&u.isPlainObject(t)){const n=o=>u.every(o,r=>r==null)||u.isEmpty(o);if(n(e)&&n(t))return!0}}exports.apColumnToColumn=q;exports.dataIndexToStr=E;exports.formatParamsValueType=p;exports.getColumnOrder=S;exports.getFieldProps=y;exports.getSearchFormItemRenderNode=C;exports.getTableCellRenderNode=v;exports.getTableRenderProps=P;exports.getTableRenderType=V;exports.getTableTitle=_;exports.isEqualCustom=w;exports.objectToMap=m;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),i=require("lodash-unified"),d=require("./constants.js"),b=require("@fruits-chain/utils");require("../ap-form/index.js");const g=require("@aplus-frontend/antdv"),j=require("@ant-design/icons-vue"),O=require("../ap-form/item/index.vue.js");function h(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!u.isVNode(e)}const p=(e,t,n)=>{let o={};return i.isObject(e)?Object.keys(e).forEach(r=>{i.isObject(e[r])?o[r]=p(e[r],t[r],n):o[r]=n(e[r],t)}):o=n(e,t),o},N=(e,t)=>{switch(e){case"dayjs":return t.valueOf();case"dayjsRange":return t.map(n=>n.valueOf());case"dayjsDayRange":{const[n,o]=t;return[n.startOf("day").valueOf(),o.endOf("day").valueOf()]}case"multiple":case"multipleNumber":return i.isArray(t)?t:[t];case"boolean":return t;case"object":return t;default:return t}};function E(e){return i.isArray(e)?e.join("."):e}function F(e){const t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&typeof e=="object"?"object":e===null?"null":e===void 0?"undefined":t}const m=e=>F(e)==="map"?e:new Map(Object.entries(e||{})),c=e=>{const t=[],n=m(e);return n.forEach((o,r)=>{const s=n.get(r)||n.get(`${r}`);if(s){if(typeof s=="object"&&(s!=null&&s.text)){t.push({text:s==null?void 0:s.text,value:r,label:s==null?void 0:s.text,disabled:s.disabled});return}t.push({text:s,label:s,value:r})}}),t},S=e=>i.isUndefined(e)||e<0?0:e;function y(e,t){return!e||!i.isFunction(e)?e:e(t)}function V(e){let t=e.valueType||"text";return e.valueEnum&&(t="status"),t}function v(e,t,n,o){var l;const r=d.apTableRenderItemMap[e];if(r)return u.createVNode(r,u.mergeProps(t,{mode:"read"}),null);const s=o==null?void 0:o[e];return((l=s==null?void 0:s.render)==null?void 0:l.call(s,t.value,n,t))||t.value}function C(e,t){if(e.customRenderFormItem)return()=>{const r=e.customRenderFormItem(e);return u.cloneVNode(r,{...e.fieldProps,span:e.span,...r.props||{}})};const n=d.apTableFormItemMap[e.valueType];if(n)return n;const o=t==null?void 0:t[e.valueType];return()=>{var s;const r=(s=o==null?void 0:o.renderFormItem)==null?void 0:s.call(o,e.fieldProps.field);return r?u.createVNode(O.default,u.mergeProps(e.fieldProps,{span:e.span}),h(r)?r:{default:()=>[r]}):null}}function P(e,t){const n=y(e.fieldProps,t),o=(n==null?void 0:n.field)||n||{},r=e.valueType==="switch",s=e.valueType==="index",l=r?{checked:t.value}:{value:s?t.index+1:t.value};return e.valueEnum&&(o.valueEnum=e.valueEnum),{...i.omit(o,["request"]),...l}}function q(e){const t={...e};return i.isBoolean(e.filters)&&e.filters&&e.valueEnum&&(t.filters=c(e.valueEnum)),t}function I(e,t){var o;const n=t||{};return e.valueEnum&&!((o=n.field)!=null&&o.options)&&(n.field={...n.field,options:c(e.valueEnum)}),n}function A(e){if(!b.isType("Object")(e))return e;try{return JSON.stringify(e)}catch{return e}}function _(e,t,n,o){const r=n==null?void 0:n({title:e.title,column:e}),s=(r==null?void 0:r.filter(T=>T.type!==Symbol.for("v-cmt")))||[];if(r&&s.length>0)return r;const a=i.isString(e.title)?u.createVNode("span",{class:t,title:e.title},[e.title]):e.title,f=e.tooltip?i.isFunction(e.tooltip)?e.tooltip(e):u.createVNode(u.Fragment,null,[e.tooltip]):null;return f?u.createVNode("span",{style:{display:"inline-flex",alignItems:"center",maxWidth:"100%"}},[a,u.createVNode(g.Tooltip,{title:f,placement:"bottom"},{default:()=>[u.createVNode(j.QuestionCircleOutlined,{style:{padding:"4px",color:o,verticalAlign:"middle"}},null)]})]):a}function R(e,t){const n=[];function o(r){var s;for(const l of r)(s=l.children)!=null&&s.length?o(l.children):n.push(t(l))}return o(e),n}function w(e,t){if(i.isArray(e)&&i.isArray(t))return i.isEqual(i.sortBy(e),i.sortBy(t));if(i.isPlainObject(e)&&i.isPlainObject(t)){const n=o=>i.every(o,r=>r==null)||i.isEmpty(o);if(n(e)&&n(t))return!0}}function x(e){if(e!==!1)return e}exports.apColumnToColumn=q;exports.dataIndexToStr=E;exports.falseToUndefined=x;exports.formatParamsValueType=p;exports.getColumnOrder=S;exports.getFieldProps=y;exports.getSearchFormItemRenderNode=C;exports.getTableCellRenderNode=v;exports.getTableRenderProps=P;exports.getTableRenderType=V;exports.getTableTitle=_;exports.isEqualCustom=w;exports.objectToMap=m;exports.objectToString=A;exports.parseFieldValue=N;exports.recursionApColumns=R;exports.updateFormProps=I;exports.valueEnumToArray=c;
@@ -6,11 +6,12 @@ type ApTagGroupSlots = {
6
6
  }) => void;
7
7
  };
8
8
  declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
9
10
  slots: Readonly<ApTagGroupSlots> & ApTagGroupSlots;
10
11
  refs: {
11
12
  container: HTMLDivElement;
12
13
  };
13
- attrs: Partial<{}>;
14
+ rootEl: any;
14
15
  };
15
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
17
  declare const __VLS_component: DefineComponent<ApTagGroupProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApTagGroupProps> & Readonly<{}>, {
@@ -4,5 +4,5 @@ declare const _default: DefineComponent<ApTagProps, {}, {}, {}, {}, ComponentOpt
4
4
  size: "small" | "middle" | "large";
5
5
  color: string;
6
6
  disabled: boolean;
7
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
7
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
8
8
  export default _default;
@@ -0,0 +1,2 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-tag/ap-tag.css';
2
+ import '@aplus-frontend/ui-theme/dist/ap-tag/ap-tag-group.css';
@@ -0,0 +1,2 @@
1
+ import '@aplus-frontend/ui-theme/dist/ap-tag/ap-tag.less';
2
+ import '@aplus-frontend/ui-theme/src/ap-tag/ap-tag-group.less';