@aplus-frontend/ui 6.26.1 → 6.26.3

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 (438) hide show
  1. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +26 -29
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +69 -72
  3. package/es/src/ag-grid/hooks/use-columns.mjs +11 -13
  4. package/es/src/ag-grid/hooks/use-row-selection.mjs +43 -43
  5. package/es/src/ag-grid/hooks/use-search-form.mjs +33 -36
  6. package/es/src/ag-grid/index.vue.mjs +251 -268
  7. package/es/src/ag-grid/interface.d.ts +4 -0
  8. package/es/src/ag-grid/renderer/checkbox.mjs +4 -5
  9. package/es/src/ag-grid/renderer/date-range.mjs +11 -12
  10. package/es/src/ag-grid/renderer/date.mjs +12 -13
  11. package/es/src/ag-grid/renderer/radio.mjs +9 -10
  12. package/es/src/ag-grid/renderer/select.mjs +10 -17
  13. package/es/src/ag-grid/renderer/tree-select.mjs +8 -10
  14. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  15. package/es/src/ap-action/item-dropdown/index.vue.mjs +23 -24
  16. package/es/src/ap-action/item-modal/index.vue.mjs +15 -16
  17. package/es/src/ap-action/item-popconfirm/index.vue.mjs +17 -18
  18. package/es/src/ap-button/ap-confirm-button.vue.mjs +18 -19
  19. package/es/src/ap-button/utils/index.mjs +27 -28
  20. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +78 -86
  21. package/es/src/ap-descriptions/formatter/index.mjs +60 -61
  22. package/es/src/ap-descriptions/helper.mjs +6 -6
  23. package/es/src/ap-download/ap-download.vue.mjs +42 -46
  24. package/es/src/ap-download/hooks/index.mjs +13 -13
  25. package/es/src/ap-download/utils/getFileInfo.mjs +21 -21
  26. package/es/src/ap-drawer/utils/createDrawer.mjs +43 -52
  27. package/es/src/ap-field/checkbox/index.vue.mjs +31 -34
  28. package/es/src/ap-field/checkbox/read.vue2.mjs +11 -14
  29. package/es/src/ap-field/date/index.vue.mjs +66 -68
  30. package/es/src/ap-field/date-range/index.vue.mjs +99 -107
  31. package/es/src/ap-field/date-range/read.vue2.mjs +28 -32
  32. package/es/src/ap-field/hooks/use-date-timezone.mjs +1 -4
  33. package/es/src/ap-field/hooks/use-default-presets.mjs +18 -24
  34. package/es/src/ap-field/hooks/use-options.mjs +11 -11
  35. package/es/src/ap-field/number/helper.mjs +17 -17
  36. package/es/src/ap-field/number/index.vue.mjs +2 -4
  37. package/es/src/ap-field/radio/index.vue.mjs +38 -42
  38. package/es/src/ap-field/radio/read.vue2.mjs +12 -13
  39. package/es/src/ap-field/rate/index.vue.mjs +23 -25
  40. package/es/src/ap-field/segmented/index.vue.mjs +38 -39
  41. package/es/src/ap-field/select/index.vue.mjs +90 -107
  42. package/es/src/ap-field/select/read.vue2.mjs +13 -20
  43. package/es/src/ap-field/select/use-select-options.mjs +24 -25
  44. package/es/src/ap-field/slider/index.vue.mjs +28 -30
  45. package/es/src/ap-field/switch/index.vue.mjs +38 -39
  46. package/es/src/ap-field/text/index.vue2.mjs +43 -52
  47. package/es/src/ap-field/text/password.vue.mjs +20 -22
  48. package/es/src/ap-field/text-area/index.vue.mjs +25 -31
  49. package/es/src/ap-field/tree-select/index.vue.mjs +61 -65
  50. package/es/src/ap-field/tree-select/read.vue2.mjs +26 -28
  51. package/es/src/ap-field/tree-select/use-request.mjs +40 -41
  52. package/es/src/ap-form/ap-form.vue2.mjs +127 -142
  53. package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  54. package/es/src/ap-form/drawer-form/index.vue.mjs +109 -146
  55. package/es/src/ap-form/hooks/use-watch.mjs +25 -26
  56. package/es/src/ap-form/item/index.vue.mjs +76 -81
  57. package/es/src/ap-form/item-group/index.vue.mjs +20 -20
  58. package/es/src/ap-form/items/date/index.vue.mjs +18 -21
  59. package/es/src/ap-form/items/date-range/index.vue.mjs +24 -27
  60. package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
  61. package/es/src/ap-form/items/number/index.vue.mjs +2 -4
  62. package/es/src/ap-form/items/radio/index.vue.mjs +8 -10
  63. package/es/src/ap-form/items/select/index.vue.d.ts +7 -7
  64. package/es/src/ap-form/items/select/index.vue.mjs +30 -36
  65. package/es/src/ap-form/items/text/index.vue2.mjs +20 -27
  66. package/es/src/ap-form/items/text/password.vue.mjs +12 -14
  67. package/es/src/ap-form/items/text-area/index.vue.mjs +18 -23
  68. package/es/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  69. package/es/src/ap-form/items/tree-select/index.vue.mjs +28 -34
  70. package/es/src/ap-form/list/index.vue.mjs +26 -26
  71. package/es/src/ap-form/modal-form/index.vue.d.ts +3 -3
  72. package/es/src/ap-form/modal-form/index.vue.mjs +98 -130
  73. package/es/src/ap-form/provider/index.vue.mjs +24 -24
  74. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +9 -9
  75. package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +23 -24
  76. package/es/src/ap-form/search-form/hooks/use-sorter.mjs +25 -26
  77. package/es/src/ap-form/search-form/index.vue.d.ts +3 -3
  78. package/es/src/ap-form/search-form/index.vue.mjs +96 -103
  79. package/es/src/ap-form/search-form/utils.mjs +17 -17
  80. package/es/src/ap-form/set/index.vue.mjs +16 -20
  81. package/es/src/ap-form/utils/get.mjs +11 -11
  82. package/es/src/ap-grid/editable/form-item.vue.mjs +85 -92
  83. package/es/src/ap-grid/editable/index.vue.mjs +102 -116
  84. package/es/src/ap-grid/hooks/use-editable-columns.mjs +40 -43
  85. package/es/src/ap-grid/hooks/use-inner-params.mjs +15 -15
  86. package/es/src/ap-grid/hooks/use-row-selection.mjs +76 -76
  87. package/es/src/ap-grid/index.vue.mjs +309 -334
  88. package/es/src/ap-grid/utils/col.mjs +78 -81
  89. package/es/src/ap-grid/utils/editable.mjs +17 -18
  90. package/es/src/ap-grid/utils/renderer.mjs +7 -11
  91. package/es/src/ap-grid/utils/table.mjs +45 -46
  92. package/es/src/ap-grid/utils/to-tree-array.mjs +9 -10
  93. package/es/src/ap-list/hooks/use-offline-list.mjs +16 -17
  94. package/es/src/ap-list/index.vue.mjs +120 -131
  95. package/es/src/ap-modal/utils/createModal.mjs +60 -67
  96. package/es/src/ap-modal/utils/createModalStream.mjs +65 -73
  97. package/es/src/ap-modal/utils/methods.mjs +17 -22
  98. package/es/src/ap-modal/utils/util.mjs +1 -1
  99. package/es/src/ap-pro-card/components/card/index.vue2.mjs +114 -127
  100. package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +34 -52
  101. package/es/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
  102. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +47 -57
  103. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  104. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  105. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  106. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  107. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  108. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  109. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  110. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  111. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  112. package/es/src/ap-table/constants.d.ts +6 -6
  113. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  114. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  115. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  116. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  117. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  118. package/es/src/ap-table/utils.mjs +123 -130
  119. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  120. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  121. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  122. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  123. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  124. package/es/src/ap-upload/utils/accept.mjs +37 -38
  125. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  126. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  127. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  128. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  129. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  130. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  131. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  132. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  133. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  134. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  135. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  136. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +118 -112
  137. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  138. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  139. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  140. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  141. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  142. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  143. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  144. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  145. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  146. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  147. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  149. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  150. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  152. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  153. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  154. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  155. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  156. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  157. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  158. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  159. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  160. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  161. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  162. package/es/src/business/ap-summary/utils.mjs +23 -29
  163. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  164. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  165. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  166. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  167. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  168. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  169. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  170. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  171. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  172. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  173. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  174. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  175. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  176. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  178. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  179. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  180. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  181. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  182. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  183. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  184. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  185. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  186. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  187. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  188. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  189. package/es/src/check-card/index.vue2.mjs +51 -56
  190. package/es/src/config-provider/config-provider.mjs +12 -12
  191. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  192. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  193. package/es/src/editable-table/form-item.vue.mjs +82 -88
  194. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  195. package/es/src/editable-table/index.vue.mjs +100 -113
  196. package/es/src/editable-table/utils.mjs +88 -95
  197. package/es/src/hooks/useControllableValue.mjs +18 -18
  198. package/es/src/hooks/useResize.mjs +16 -16
  199. package/es/src/mask/index.vue.mjs +11 -11
  200. package/es/src/resize-observer/index.vue.mjs +20 -22
  201. package/es/src/scroll-bar/index.vue.mjs +2 -8
  202. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  203. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  204. package/es/src/scroll-view/index.vue.mjs +40 -42
  205. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  206. package/es/src/splitter/hooks/useItems.mjs +14 -15
  207. package/es/src/splitter/hooks/useResize.mjs +31 -34
  208. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  209. package/es/src/text/index.vue.mjs +24 -24
  210. package/es/src/utils/config-provider-preset.mjs +17 -21
  211. package/es/src/utils/copy.mjs +9 -9
  212. package/es/src/utils/index.mjs +43 -43
  213. package/es/src/version.d.ts +1 -1
  214. package/es/src/version.mjs +1 -1
  215. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  216. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  217. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  218. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  221. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  222. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  223. package/lib/src/ag-grid/index.vue.js +1 -1
  224. package/lib/src/ag-grid/interface.d.ts +4 -0
  225. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  226. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  227. package/lib/src/ag-grid/renderer/date.js +1 -1
  228. package/lib/src/ag-grid/renderer/radio.js +1 -1
  229. package/lib/src/ag-grid/renderer/select.js +1 -1
  230. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  231. package/lib/src/ap-action/item/index.vue2.js +1 -1
  232. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  233. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  234. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  235. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  236. package/lib/src/ap-button/utils/index.js +1 -1
  237. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  238. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  239. package/lib/src/ap-descriptions/helper.js +1 -1
  240. package/lib/src/ap-download/ap-download.vue.js +1 -1
  241. package/lib/src/ap-download/hooks/index.js +1 -1
  242. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  243. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  244. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  245. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  246. package/lib/src/ap-field/date/index.vue.js +1 -1
  247. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  248. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  249. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  250. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  251. package/lib/src/ap-field/hooks/use-options.js +1 -1
  252. package/lib/src/ap-field/number/helper.js +1 -1
  253. package/lib/src/ap-field/number/index.vue.js +1 -1
  254. package/lib/src/ap-field/radio/index.vue.js +1 -1
  255. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  256. package/lib/src/ap-field/rate/index.vue.js +1 -1
  257. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  258. package/lib/src/ap-field/select/index.vue.js +1 -1
  259. package/lib/src/ap-field/select/read.vue2.js +1 -1
  260. package/lib/src/ap-field/select/use-select-options.js +1 -1
  261. package/lib/src/ap-field/slider/index.vue.js +1 -1
  262. package/lib/src/ap-field/switch/index.vue.js +1 -1
  263. package/lib/src/ap-field/text/index.vue2.js +1 -1
  264. package/lib/src/ap-field/text/password.vue.js +1 -1
  265. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  266. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  267. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  268. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  269. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  270. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  271. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  272. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  273. package/lib/src/ap-form/item/index.vue.js +1 -1
  274. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  276. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  278. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  279. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  281. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  282. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  283. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  284. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  285. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  286. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  287. package/lib/src/ap-form/list/index.vue.js +1 -1
  288. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  289. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  290. package/lib/src/ap-form/provider/index.vue.js +1 -1
  291. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  292. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  293. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  294. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  295. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  296. package/lib/src/ap-form/search-form/utils.js +1 -1
  297. package/lib/src/ap-form/set/index.vue.js +1 -1
  298. package/lib/src/ap-form/utils/get.js +1 -1
  299. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  300. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  302. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  303. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  304. package/lib/src/ap-grid/index.vue.js +1 -1
  305. package/lib/src/ap-grid/utils/col.js +1 -1
  306. package/lib/src/ap-grid/utils/editable.js +1 -1
  307. package/lib/src/ap-grid/utils/renderer.js +1 -1
  308. package/lib/src/ap-grid/utils/table.js +1 -1
  309. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  310. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  311. package/lib/src/ap-list/index.vue.js +1 -1
  312. package/lib/src/ap-modal/utils/createModal.js +1 -1
  313. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  314. package/lib/src/ap-modal/utils/methods.js +1 -1
  315. package/lib/src/ap-modal/utils/util.js +1 -1
  316. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  317. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  318. package/lib/src/ap-pro-card/components/statistic-card/index.vue.d.ts +3 -1
  319. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  320. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  321. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  326. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  327. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  328. package/lib/src/ap-table/components/setting/utils.js +1 -1
  329. package/lib/src/ap-table/constants.d.ts +6 -6
  330. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  332. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  333. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  334. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  335. package/lib/src/ap-table/utils.js +1 -1
  336. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  337. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  338. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  339. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  340. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  341. package/lib/src/ap-upload/utils/accept.js +1 -1
  342. package/lib/src/ap-upload/utils/returnData.js +1 -1
  343. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  344. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  345. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  346. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  347. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  349. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  350. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  352. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  353. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  354. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  355. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  356. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  357. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  358. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  359. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  360. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  370. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  371. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  372. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  373. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  374. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  375. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  376. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  377. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  378. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  379. package/lib/src/business/ap-summary/utils.js +1 -1
  380. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  381. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  382. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  383. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  384. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  385. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  386. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  387. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  388. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  389. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  390. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  391. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  392. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  393. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  394. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  395. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  396. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  397. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  398. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  399. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  400. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  401. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  402. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  403. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  404. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  405. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  406. package/lib/src/check-card/index.vue2.js +1 -1
  407. package/lib/src/config-provider/config-provider.js +1 -1
  408. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  409. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  410. package/lib/src/editable-table/form-item.vue.js +1 -1
  411. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  412. package/lib/src/editable-table/index.vue.js +1 -1
  413. package/lib/src/editable-table/utils.js +1 -1
  414. package/lib/src/hooks/useControllableValue.js +1 -1
  415. package/lib/src/hooks/useResize.js +1 -1
  416. package/lib/src/mask/index.vue.js +1 -1
  417. package/lib/src/resize-observer/index.vue.js +1 -1
  418. package/lib/src/scroll-bar/index.vue.js +1 -1
  419. package/lib/src/scroll-bar/internal.vue.js +1 -1
  420. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  421. package/lib/src/scroll-view/index.vue.js +1 -1
  422. package/lib/src/splitter/Splitter.vue2.js +1 -1
  423. package/lib/src/splitter/hooks/useItems.js +1 -1
  424. package/lib/src/splitter/hooks/useResize.js +1 -1
  425. package/lib/src/splitter/hooks/useSizes.js +1 -1
  426. package/lib/src/text/index.vue.js +1 -1
  427. package/lib/src/utils/config-provider-preset.js +1 -1
  428. package/lib/src/utils/copy.js +1 -1
  429. package/lib/src/utils/index.js +1 -1
  430. package/lib/src/version.d.ts +1 -1
  431. package/lib/src/version.js +1 -1
  432. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  433. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  434. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  435. package/package.json +7 -7
  436. package/theme/ap-draggable-grid/ap-draggable-grid.css +7 -3
  437. package/theme/ap-draggable-grid/ap-draggable-grid.less +5 -3
  438. package/theme/index.css +7 -3
@@ -1,96 +1,91 @@
1
1
  import "../index.mjs";
2
- import { merge as i, cloneDeep as F } from "lodash-unified";
2
+ import { merge as c, cloneDeep as F } from "lodash-unified";
3
3
  import { ref as R } from "vue";
4
4
  import { useKeepAliveFlag as w } from "./useKeepAliveFlag.mjs";
5
5
  import { useTableRefresh as V } from "./useTableRefresh.mjs";
6
- function E(s) {
7
- const t = R(null), {
8
- isShowRowSelection: f = !0,
9
- clearSelectionOnRequest: d = !0,
10
- transformSearchFormValues: a,
11
- api: l,
12
- tableRefresh: m = !0,
13
- virtual: p,
14
- clearDataOnDeactivated: v = !0,
15
- ...S
16
- } = s || {};
17
- let n = null;
18
- const u = () => {
19
- var e, r;
20
- (r = (e = t.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
6
+ function E(a) {
7
+ const r = R(null), {
8
+ isShowRowSelection: i = !0,
9
+ clearSelectionOnRequest: f = !0,
10
+ transformSearchFormValues: o,
11
+ api: s,
12
+ tableRefresh: d = !0,
13
+ virtual: m,
14
+ clearDataOnDeactivated: p = !0,
15
+ ...v
16
+ } = a || {};
17
+ let l = null;
18
+ const n = () => {
19
+ r.value?.rowSelection?.clearAll();
21
20
  };
22
21
  V({
23
- ...b(m),
24
- apTableRef: t
22
+ ...b(d),
23
+ apTableRef: r
25
24
  });
26
- const c = () => {
27
- var e;
28
- (e = t.value) == null || e.submit();
29
- }, h = () => {
30
- var e;
31
- (e = t.value) == null || e.reset();
32
- }, { isDeactivated: g } = w({
33
- afterDeactivated: c
25
+ const u = () => {
26
+ r.value?.submit();
27
+ }, S = () => {
28
+ r.value?.reset();
29
+ }, { isDeactivated: h } = w({
30
+ afterDeactivated: u
34
31
  });
35
- return [i(
32
+ return [c(
36
33
  {
37
34
  // scroll,tableLayout,columnResizable设置表格可拖动
38
35
  scroll: { x: "100%", y: "100%" },
39
36
  columnResizable: !0,
40
- request: l ? async (e) => {
41
- if (g() && v)
37
+ request: s ? async (e) => {
38
+ if (h() && p)
42
39
  return {
43
40
  data: [],
44
41
  total: 0
45
42
  };
46
- n = e.sort;
47
- const r = a ? a(e) : e;
48
- if (!l) throw new Error("api is not defined");
49
- const { records: o, total: A } = await l(r);
50
- return d && u(), {
51
- data: o,
43
+ l = e.sort;
44
+ const t = o ? o(e) : e;
45
+ if (!s) throw new Error("api is not defined");
46
+ const { records: g, total: A } = await s(t);
47
+ return f && n(), {
48
+ data: g,
52
49
  total: A
53
50
  };
54
51
  } : void 0,
55
- rowSelection: f ? {
52
+ rowSelection: i ? {
56
53
  fixed: "left",
57
54
  columnWidth: 38
58
55
  } : void 0,
59
56
  ref(e) {
60
- t.value = e;
57
+ r.value = e;
61
58
  },
62
- virtual: i(
59
+ virtual: c(
63
60
  {
64
61
  oSize: 20,
65
62
  y: 20
66
63
  },
67
- p
64
+ m
68
65
  ),
69
66
  // 新UI规范,需要都添加分割线
70
67
  card: !0
71
68
  },
72
- S
69
+ v
73
70
  ), {
74
- reload: c,
75
- reset: h,
71
+ reload: u,
72
+ reset: S,
76
73
  getSearchFormValues: (e = !0) => {
77
- var o;
78
- const r = ((o = t.value) == null ? void 0 : o.getSearchFormValues(!!e)) || {};
79
- return a ? a(r) : r;
74
+ const t = r.value?.getSearchFormValues(!!e) || {};
75
+ return o ? o(t) : t;
80
76
  },
81
- getApGridInstance: () => t.value,
77
+ getApGridInstance: () => r.value,
82
78
  getSearchFormValuesAndSorted: (e = !0) => {
83
- var o;
84
- const r = ((o = t.value) == null ? void 0 : o.getSearchFormValues(!!e)) || {};
85
- return r.sort = n && F(n), a ? a(r) : r;
79
+ const t = r.value?.getSearchFormValues(!!e) || {};
80
+ return t.sort = l && F(l), o ? o(t) : t;
86
81
  },
87
- clearSelection: u
82
+ clearSelection: n
88
83
  }];
89
84
  }
90
- function b(s) {
91
- return s === !0 ? {} : s === !1 ? {
85
+ function b(a) {
86
+ return a === !0 ? {} : a === !1 ? {
92
87
  refreshBefore: () => !1
93
- } : s;
88
+ } : a;
94
89
  }
95
90
  export {
96
91
  E as usePageListApGrid
@@ -1,28 +1,27 @@
1
1
  import { merge as p, cloneDeep as h } from "lodash-unified";
2
2
  import { ref as S } from "vue";
3
3
  import { useTableRefresh as b } from "./useTableRefresh.mjs";
4
- function g(s) {
5
- return s === !0 ? {} : s === !1 ? {
4
+ function g(o) {
5
+ return o === !0 ? {} : o === !1 ? {
6
6
  refreshBefore: () => !1
7
- } : s;
7
+ } : o;
8
8
  }
9
- function I(s) {
10
- const a = S(null), {
9
+ function I(o) {
10
+ const r = S(null), {
11
11
  isShowRowSelection: u = !0,
12
12
  clearSelectionOnRequest: i = !0,
13
- transformSearchFormValues: o,
14
- api: l,
13
+ transformSearchFormValues: a,
14
+ api: s,
15
15
  tableRefresh: f = !1,
16
16
  ...m
17
- } = s || {};
18
- let n = null;
17
+ } = o || {};
18
+ let l = null;
19
19
  const c = () => {
20
- var e, r;
21
- (r = (e = a.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
20
+ r.value?.rowSelection?.clearAll();
22
21
  };
23
22
  return b({
24
23
  ...g(f),
25
- apTableRef: a
24
+ apTableRef: r
26
25
  }), [p(
27
26
  {
28
27
  // scroll,tableLayout,columnResizable设置表格可拖动
@@ -31,18 +30,18 @@ function I(s) {
31
30
  columnResizable: !0,
32
31
  // 表格header吸顶效果
33
32
  class: "ap-table--sticky",
34
- request: l ? async (e) => {
35
- n = e.sort;
36
- const r = o ? o(e) : e;
33
+ request: s ? async (e) => {
34
+ l = e.sort;
35
+ const t = a ? a(e) : e;
37
36
  try {
38
- if (!l) throw new Error("api is not defined");
39
- const { records: t, total: d } = await l(r);
37
+ if (!s) throw new Error("api is not defined");
38
+ const { records: n, total: d } = await s(t);
40
39
  return i && c(), {
41
- data: t,
40
+ data: n,
42
41
  total: d
43
42
  };
44
- } catch (t) {
45
- return console.error(t), {
43
+ } catch (n) {
44
+ return console.error(n), {
46
45
  data: [],
47
46
  total: 0
48
47
  };
@@ -54,7 +53,7 @@ function I(s) {
54
53
  columnWidth: 50
55
54
  } : void 0,
56
55
  ref(e) {
57
- a.value = e;
56
+ r.value = e;
58
57
  },
59
58
  // 新UI规范,需要都添加分割线
60
59
  card: !0
@@ -62,23 +61,19 @@ function I(s) {
62
61
  m
63
62
  ), {
64
63
  reload: () => {
65
- var e;
66
- (e = a.value) == null || e.submit();
64
+ r.value?.submit();
67
65
  },
68
66
  reset: () => {
69
- var e;
70
- (e = a.value) == null || e.reset();
67
+ r.value?.reset();
71
68
  },
72
69
  getSearchFormValues: (e) => {
73
- var t;
74
- const r = ((t = a.value) == null ? void 0 : t.getSearchFormValues(e)) || {};
75
- return o ? o(r) : r;
70
+ const t = r.value?.getSearchFormValues(e) || {};
71
+ return a ? a(t) : t;
76
72
  },
77
- getApTableInstance: () => a.value,
73
+ getApTableInstance: () => r.value,
78
74
  getSearchFormValuesAndSorted: (e) => {
79
- var t;
80
- const r = ((t = a.value) == null ? void 0 : t.getSearchFormValues(e)) || {};
81
- return r.sort = n && h(n), o ? o(r) : r;
75
+ const t = r.value?.getSearchFormValues(e) || {};
76
+ return t.sort = l && h(l), a ? a(t) : t;
82
77
  },
83
78
  clearSelection: c
84
79
  }];
@@ -1,59 +1,57 @@
1
- import { ref as h, onMounted as x, nextTick as y, onActivated as D, onDeactivated as E } from "vue";
1
+ import { ref as f, onMounted as T, nextTick as b, onActivated as p, onDeactivated as S } from "vue";
2
2
  import "../../index.mjs";
3
- import { useGlobalConfig as R } from "../../config-provider/hooks/use-global-config.mjs";
4
- function L(e) {
3
+ import { useGlobalConfig as m } from "../../config-provider/hooks/use-global-config.mjs";
4
+ function h(e) {
5
5
  return e === "admin" ? window : (window.top !== window ? window.top : window) ?? window;
6
6
  }
7
- function f(e, r) {
8
- return r.document.querySelector(e);
7
+ function s(e, t) {
8
+ return t.document.querySelector(e);
9
9
  }
10
- function M(e, r = ".demo", m) {
11
- const s = f(r, m);
12
- s && (s.scrollTop = e);
10
+ function g(e, t = ".demo", n) {
11
+ const o = s(t, n);
12
+ o && (o.scrollTop = e);
13
13
  }
14
- function C(e) {
15
- const r = R("scrollYDomName"), m = R("uiMode"), s = L(m.value ?? "aplus");
16
- let v = !0;
17
- const o = h(0), w = h(0), Y = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", T = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
18
- let i = !0;
19
- const b = (u) => {
20
- if (v === !1) return;
21
- const l = u.target;
22
- w.value = l.scrollTop;
14
+ function y(e) {
15
+ const t = m("scrollYDomName"), n = m("uiMode"), o = h(n.value ?? "aplus");
16
+ let u = !0;
17
+ const c = f(0), a = f(0), v = (["reset", "submit", void 0].includes(e?.refreshType) ? e?.refreshType : "submit") ?? "submit", w = e?.refreshBefore ?? (() => !0);
18
+ let d = !0;
19
+ const i = (l) => {
20
+ if (u === !1) return;
21
+ const r = l.target;
22
+ a.value = r.scrollTop;
23
23
  };
24
- return x(() => {
25
- y(() => {
26
- i = !1;
24
+ return T(() => {
25
+ b(() => {
26
+ d = !1;
27
27
  });
28
- }), D(() => {
29
- const u = T == null ? void 0 : T();
30
- if (i) {
28
+ }), p(() => {
29
+ const l = w?.();
30
+ if (d) {
31
31
  setTimeout(() => {
32
- const l = f(r.value, s);
33
- l && l.addEventListener("scroll", b);
32
+ const r = s(t.value, o);
33
+ r && r.addEventListener("scroll", i);
34
34
  });
35
35
  return;
36
36
  }
37
- u && setTimeout(() => {
38
- var c, a, t, d, S, n, g;
39
- v = !0, (a = (c = e == null ? void 0 : e.apTableRef) == null ? void 0 : c.value) == null || a[Y](), (g = (n = (S = (d = (t = e == null ? void 0 : e.apTableRef) == null ? void 0 : t.value) == null ? void 0 : d.scrollBar) == null ? void 0 : S.x) == null ? void 0 : n.scroll) == null || g.call(n, o.value), M(
40
- w.value,
41
- r.value,
42
- s
37
+ l && setTimeout(() => {
38
+ u = !0, e?.apTableRef?.value?.[v](), e?.apTableRef?.value?.scrollBar?.x?.scroll?.(c.value), g(
39
+ a.value,
40
+ t.value,
41
+ o
43
42
  );
44
- const l = f(r.value, s);
45
- l && l.addEventListener("scroll", b);
43
+ const r = s(t.value, o);
44
+ r && r.addEventListener("scroll", i);
46
45
  });
47
- }), E(() => {
48
- var l, c, a, t, d;
49
- v = !1, o.value = ((d = (t = (a = (c = (l = e == null ? void 0 : e.apTableRef) == null ? void 0 : l.value) == null ? void 0 : c.scrollBar) == null ? void 0 : a.x) == null ? void 0 : t.getCurrentScroll) == null ? void 0 : d.call(t)) ?? 0;
50
- const u = f(r.value, s);
51
- u && u.removeEventListener("scroll", b);
46
+ }), S(() => {
47
+ u = !1, c.value = e?.apTableRef?.value?.scrollBar?.x?.getCurrentScroll?.() ?? 0;
48
+ const l = s(t.value, o);
49
+ l && l.removeEventListener("scroll", i);
52
50
  }), {
53
- tableScrollX: o,
54
- tableScrollY: w
51
+ tableScrollX: c,
52
+ tableScrollY: a
55
53
  };
56
54
  }
57
55
  export {
58
- C as useTableRefresh
56
+ y as useTableRefresh
59
57
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as I, computed as d, unref as o, createVNode as m, Fragment as W, watch as $, watchEffect as j, createElementBlock as C, openBlock as c, withModifiers as D, normalizeClass as z, normalizeStyle as M, createBlock as f, renderSlot as O, createCommentVNode as g, resolveDynamicComponent as S, createElementVNode as U } from "vue";
2
- import { Skeleton as q } from "@aplus-frontend/antdv";
1
+ import { defineComponent as T, computed as i, unref as o, createVNode as u, Fragment as E, watch as F, watchEffect as I, createElementBlock as h, openBlock as d, withModifiers as W, normalizeClass as y, normalizeStyle as $, createBlock as p, renderSlot as j, createCommentVNode as m, resolveDynamicComponent as b, createElementVNode as D } from "vue";
2
+ import { Skeleton as M } from "@aplus-frontend/antdv";
3
3
  import "../config-provider/index.mjs";
4
4
  import "../hooks/index.mjs";
5
- import { isFunction as B } from "lodash-unified";
6
- import { useInjectCheckCard as A } from "./context.mjs";
7
- import G from "./checked.svg.mjs";
8
- import { useNamespace as H } from "../config-provider/hooks/use-namespace.mjs";
9
- import { useControllableValue as J } from "../hooks/useControllableValue.mjs";
10
- const K = ["src"], oe = /* @__PURE__ */ I({
5
+ import { isFunction as C } from "lodash-unified";
6
+ import { useInjectCheckCard as O } from "./context.mjs";
7
+ import U from "./checked.svg.mjs";
8
+ import { useNamespace as q } from "../config-provider/hooks/use-namespace.mjs";
9
+ import { useControllableValue as A } from "../hooks/useControllableValue.mjs";
10
+ const G = ["src"], x = /* @__PURE__ */ T({
11
11
  name: "CheckCard",
12
12
  __name: "index",
13
13
  props: {
@@ -49,93 +49,88 @@ const K = ["src"], oe = /* @__PURE__ */ I({
49
49
  content: {}
50
50
  },
51
51
  emits: ["update:checked"],
52
- setup(N, {
53
- emit: P
52
+ setup(z, {
53
+ emit: S
54
54
  }) {
55
- const a = N, {
56
- b: V,
57
- m: s,
58
- e: p,
59
- em: v
60
- } = H("check-card"), _ = P, l = A(), {
55
+ const a = z, {
56
+ b: B,
57
+ m: c,
58
+ e: s,
59
+ em: f
60
+ } = q("check-card"), N = S, l = O(), {
61
61
  value: r,
62
- updateValue: k
63
- } = J(a, _, {
62
+ updateValue: g
63
+ } = A(a, N, {
64
64
  valuePropName: "checked",
65
65
  defaultValuePropName: "defaultChecked"
66
- }), n = d(() => {
66
+ }), n = i(() => {
67
67
  const e = {
68
68
  ...a
69
69
  }, t = o(l);
70
70
  return t && (e.disabled = e.disabled || t.disabled, e.bordered = e.bordered || t.bordered, e.loading = e.loading || t.loading, e.size = e.size || t.size, e.indicatorSize = e.indicatorSize || t.indicatorSize, e.stopPropagation = e.stopPropagation || t.stopPropagation, e.style = e.style ? e.style : t.style), e;
71
- }), w = d(() => {
71
+ }), P = i(() => {
72
72
  const e = o(n);
73
- return [V(), s(e.size), o(r) ? s("checked") : null, e.bordered ? s("bordered") : null, e.disabled ? s("disabled") : null];
74
- }), T = d(() => {
73
+ return [B(), c(e.size), o(r) ? c("checked") : null, e.bordered ? c("bordered") : null, e.disabled ? c("disabled") : null];
74
+ }), V = i(() => {
75
75
  const e = o(n);
76
76
  return {
77
77
  ...e.style || {},
78
78
  "--check-card-indicator-size": `${e.indicatorSize || 14}px`
79
79
  };
80
- }), h = d(() => {
80
+ }), v = i(() => {
81
81
  const e = a.title;
82
82
  if (!e)
83
83
  return;
84
- const t = B(e) ? e(o(r)) : m(W, null, [e]);
85
- return m("div", {
86
- class: [p("title"), n.value.disabled ? v("title", "disabled") : null]
84
+ const t = C(e) ? e(o(r)) : u(E, null, [e]);
85
+ return u("div", {
86
+ class: [s("title"), n.value.disabled ? f("title", "disabled") : null]
87
87
  }, [t]);
88
- }), y = d(() => {
88
+ }), k = i(() => {
89
89
  if (!a.content)
90
90
  return;
91
- const e = B(a.content) ? a.content(o(r)) : a.content;
92
- return m("div", {
93
- class: [p("content"), n.value.disabled ? v("content", "disabled") : null]
91
+ const e = C(a.content) ? a.content(o(r)) : a.content;
92
+ return u("div", {
93
+ class: [s("content"), n.value.disabled ? f("content", "disabled") : null]
94
94
  }, [e]);
95
95
  });
96
- function E(e) {
96
+ function _(e) {
97
97
  const t = o(n).stopPropagation;
98
98
  return t ? t === !0 ? e.target !== e.currentTarget : t(e) : !1;
99
99
  }
100
- function F(e) {
101
- var t, i;
102
- E(e) || n.value.loading || n.value.disabled || (l.value ? (i = (t = l.value) == null ? void 0 : t.toggleOption) == null || i.call(t, a.value) : k(!o(r)));
100
+ function w(e) {
101
+ _(e) || n.value.loading || n.value.disabled || (l.value ? l.value?.toggleOption?.(a.value) : g(!o(r)));
103
102
  }
104
- return $(() => l.value, (e) => {
103
+ return F(() => l.value, (e) => {
105
104
  if (!e)
106
105
  return;
107
106
  const t = e.multiple ? (e.value || []).includes(a.value) : e.value === a.value;
108
- k(t);
107
+ g(t);
109
108
  }, {
110
109
  immediate: !0
111
- }), j((e) => {
112
- var t, i;
113
- (i = (t = l.value) == null ? void 0 : t.registerValue) == null || i.call(t, a.value), e(() => {
114
- var u, b;
115
- return (b = (u = l.value) == null ? void 0 : u.cancelValue) == null ? void 0 : b.call(u, a.value);
116
- });
117
- }), (e, t) => (c(), C("div", {
118
- style: M(T.value),
119
- class: z(w.value),
120
- onClick: D(F, ["stop"])
121
- }, [n.value.loading ? (c(), f(o(q), {
110
+ }), I((e) => {
111
+ l.value?.registerValue?.(a.value), e(() => l.value?.cancelValue?.(a.value));
112
+ }), (e, t) => (d(), h("div", {
113
+ style: $(V.value),
114
+ class: y(P.value),
115
+ onClick: W(w, ["stop"])
116
+ }, [n.value.loading ? (d(), p(o(M), {
122
117
  key: 0,
123
118
  active: ""
124
- })) : O(e.$slots, "default", {
119
+ })) : j(e.$slots, "default", {
125
120
  key: 1,
126
121
  checked: o(r)
127
- }, () => [h.value ? (c(), f(S(h.value), {
122
+ }, () => [v.value ? (d(), p(b(v.value), {
128
123
  key: 0
129
- })) : g("", !0), y.value ? (c(), f(S(y.value), {
124
+ })) : m("", !0), k.value ? (d(), p(b(k.value), {
130
125
  key: 1
131
- })) : g("", !0)]), o(r) ? (c(), C("div", {
126
+ })) : m("", !0)]), o(r) ? (d(), h("div", {
132
127
  key: 2,
133
- class: z(o(p)("checked-icon"))
134
- }, [U("img", {
135
- src: o(G)
136
- }, null, 8, K)], 2)) : g("", !0)], 6));
128
+ class: y(o(s)("checked-icon"))
129
+ }, [D("img", {
130
+ src: o(U)
131
+ }, null, 8, G)], 2)) : m("", !0)], 6));
137
132
  }
138
133
  });
139
134
  export {
140
- oe as default
135
+ x as default
141
136
  };
@@ -1,19 +1,19 @@
1
- import { isVNode as p, ref as s, defineComponent as C, computed as i, unref as t, watch as u, createVNode as v, renderSlot as M } from "vue";
1
+ import { isVNode as p, ref as s, defineComponent as C, computed as r, unref as t, watch as d, createVNode as v, renderSlot as M } from "vue";
2
2
  import { ConfigProvider as P } from "@aplus-frontend/antdv";
3
- import { useGlobalConfig as l, provideGlobalConfig as h } from "./hooks/use-global-config.mjs";
3
+ import { useGlobalConfig as u, provideGlobalConfig as h } from "./hooks/use-global-config.mjs";
4
4
  import { configProviderProps as U } from "./config-provider-props.mjs";
5
5
  import { mergeAntdProviderConfigWithCache as w, mergeAntdProvideConfig as A } from "../utils/config-provider-preset.mjs";
6
6
  import { DEFAULT_NAMESPACE as D, DEFAULT_UIMODE as N } from "./constants.mjs";
7
7
  function b(e) {
8
8
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
9
9
  }
10
- const n = s({}), S = /* @__PURE__ */ C({
10
+ const i = s({}), S = /* @__PURE__ */ C({
11
11
  name: "AplusConfigProvider",
12
12
  props: U(),
13
13
  setup(e, {
14
- slots: m
14
+ slots: l
15
15
  }) {
16
- const a = l("namespace"), d = l("uiMode"), f = i(() => e.namespace ? e.namespace : t(a) ? t(a) : D), c = i(() => e.uiMode ? e.uiMode : t(d) ? t(d) : N), g = i(() => ({
16
+ const n = u("namespace"), a = u("uiMode"), f = r(() => e.namespace ? e.namespace : t(n) ? t(n) : D), c = r(() => e.uiMode ? e.uiMode : t(a) ? t(a) : N), m = r(() => ({
17
17
  namespace: t(f),
18
18
  aplusLocale: e.aplusLocale,
19
19
  api: e.api,
@@ -26,20 +26,20 @@ const n = s({}), S = /* @__PURE__ */ C({
26
26
  scrollYDomName: e.scrollYDomName,
27
27
  viewCacheOption: e.viewCacheOption,
28
28
  searchForm: e.searchForm
29
- })), r = h(g);
30
- return u(() => e, (o) => {
31
- n.value = w(A(o), n.value);
29
+ })), g = h(m);
30
+ return d(() => e, (o) => {
31
+ i.value = w(A(o), i.value);
32
32
  }, {
33
33
  deep: !0,
34
34
  immediate: !0
35
- }), typeof window < "u" && u(() => t(c), (o) => {
35
+ }), typeof window < "u" && d(() => t(c), (o) => {
36
36
  document.documentElement.dataset.aplusUiMode = o;
37
37
  }, {
38
38
  immediate: !0
39
39
  }), () => {
40
40
  let o;
41
- return v(P, n.value, b(o = M(m, "default", {
42
- config: r == null ? void 0 : r.value
41
+ return v(P, i.value, b(o = M(l, "default", {
42
+ config: g?.value
43
43
  })) ? o : {
44
44
  default: () => [o]
45
45
  });
@@ -48,5 +48,5 @@ const n = s({}), S = /* @__PURE__ */ C({
48
48
  });
49
49
  export {
50
50
  S as ConfigProvider,
51
- n as globalConfigCached
51
+ i as globalConfigCached
52
52
  };
@@ -1,32 +1,29 @@
1
- import { ref as m, getCurrentInstance as v, inject as d, computed as u, provide as g, unref as C } from "vue";
2
- import { configProviderContextKey as a } from "../constants.mjs";
3
- import { localeContextKey as p } from "./use-locale.mjs";
1
+ import { ref as p, getCurrentInstance as a, inject as m, computed as s, provide as d, unref as g } from "vue";
2
+ import { configProviderContextKey as v } from "../constants.mjs";
3
+ import { localeContextKey as C } from "./use-locale.mjs";
4
4
  import { namespaceContextKey as y } from "./use-namespace.mjs";
5
- const l = (e) => Object.keys(e), s = m();
5
+ const l = (e) => Object.keys(e), f = p();
6
6
  function x(e, o = void 0) {
7
- const r = v() ? d(a, s) : s;
8
- return e ? u(() => {
9
- var n;
10
- return ((n = r.value) == null ? void 0 : n[e]) ?? o;
11
- }) : r;
7
+ const t = a() ? m(v, f) : f;
8
+ return e ? s(() => t.value?.[e] ?? o) : t;
12
9
  }
13
- const O = (e, o, r = !1) => {
14
- const n = !!v(), t = n ? x() : void 0, i = (o == null ? void 0 : o.provide) ?? (n ? g : void 0);
15
- if (!i)
10
+ const O = (e, o, t = !1) => {
11
+ const r = !!a(), n = r ? x() : void 0, c = o?.provide ?? (r ? d : void 0);
12
+ if (!c)
16
13
  return;
17
- const c = u(() => {
18
- const f = C(e);
19
- return t != null && t.value ? b(t.value, f) : f;
14
+ const i = s(() => {
15
+ const u = g(e);
16
+ return n?.value ? b(n.value, u) : u;
20
17
  });
21
- return i(a, c), i(y, c.value.namespace), i(
22
- p,
23
- u(() => c.value.aplusLocale)
24
- ), (r || !s.value) && (s.value = c.value), c;
18
+ return c(v, i), c(y, i.value.namespace), c(
19
+ C,
20
+ s(() => i.value.aplusLocale)
21
+ ), (t || !f.value) && (f.value = i.value), i;
25
22
  }, b = (e, o) => {
26
- const r = [.../* @__PURE__ */ new Set([...l(e), ...l(o)])], n = {};
27
- for (const t of r)
28
- n[t] = o[t] !== void 0 ? o[t] : e[t];
29
- return n;
23
+ const t = [.../* @__PURE__ */ new Set([...l(e), ...l(o)])], r = {};
24
+ for (const n of t)
25
+ r[n] = o[n] !== void 0 ? o[n] : e[n];
26
+ return r;
30
27
  };
31
28
  export {
32
29
  l as keysOf,