@aplus-frontend/ui 6.26.2 → 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 (434) 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 +113 -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.vue2.mjs +44 -53
  102. package/es/src/ap-table/ap-table.vue2.mjs +270 -303
  103. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +54 -60
  104. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +56 -57
  105. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +61 -70
  106. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +35 -38
  107. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +104 -109
  108. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +37 -39
  109. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +51 -57
  110. package/es/src/ap-table/components/setting/utils.mjs +44 -46
  111. package/es/src/ap-table/constants.d.ts +6 -6
  112. package/es/src/ap-table/hooks/use-sticky-scroll.mjs +7 -10
  113. package/es/src/ap-table/hooks/use-table-column-state.mjs +76 -79
  114. package/es/src/ap-table/hooks/use-table-content-height.mjs +20 -22
  115. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +172 -178
  116. package/es/src/ap-table/hooks/use-table-paging.mjs +129 -134
  117. package/es/src/ap-table/utils.mjs +123 -130
  118. package/es/src/ap-upload/apUpload.vue.mjs +43 -46
  119. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +92 -94
  120. package/es/src/ap-upload/components/Picture.vue2.mjs +145 -151
  121. package/es/src/ap-upload/components/SingleFile.vue2.mjs +144 -148
  122. package/es/src/ap-upload/hooks/useOss.mjs +35 -35
  123. package/es/src/ap-upload/utils/accept.mjs +37 -38
  124. package/es/src/ap-upload/utils/returnData.mjs +14 -14
  125. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +85 -89
  126. package/es/src/business/ap-appendix/utils/index.mjs +13 -13
  127. package/es/src/business/ap-attachment/ApAttachment.mjs +80 -87
  128. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +35 -42
  129. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +59 -74
  130. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +25 -27
  131. package/es/src/business/ap-batch-action-group/index.d.ts +6 -0
  132. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +28 -28
  133. package/es/src/business/ap-card/ApCard.vue2.mjs +40 -52
  134. package/es/src/business/ap-copy/ApCopy.mjs +38 -39
  135. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +138 -151
  136. package/es/src/business/ap-export-group/convertExportField.mjs +9 -10
  137. package/es/src/business/ap-export-group/handleExportDownload.mjs +8 -8
  138. package/es/src/business/ap-image/ApImage.vue2.mjs +57 -62
  139. package/es/src/business/ap-image/hooks/useOss.mjs +26 -26
  140. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +31 -34
  141. package/es/src/business/ap-keep-alive/hook.mjs +14 -20
  142. package/es/src/business/ap-keep-alive/keep-alive.mjs +88 -93
  143. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +10 -12
  144. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +10 -12
  145. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +8 -10
  146. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +5 -6
  147. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +8 -10
  148. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +8 -10
  149. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +4 -5
  150. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +8 -10
  151. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +8 -10
  152. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +5 -6
  153. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +5 -6
  154. package/es/src/business/ap-keep-alive/utils.mjs +25 -26
  155. package/es/src/business/ap-ladder/ApLadder.mjs +11 -14
  156. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +39 -45
  157. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +114 -124
  158. package/es/src/business/ap-size-input/ApSizeInput.mjs +46 -49
  159. package/es/src/business/ap-summary/ap-summary.vue2.mjs +43 -44
  160. package/es/src/business/ap-summary/utils.mjs +23 -29
  161. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +33 -44
  162. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +23 -23
  163. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +27 -30
  164. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +90 -92
  165. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +170 -183
  166. package/es/src/business/ap-upload-file/hook/useOss.mjs +17 -17
  167. package/es/src/business/ap-upload-file/hook/useProps.mjs +14 -16
  168. package/es/src/business/ap-upload-file/utils/accept.mjs +35 -36
  169. package/es/src/business/ap-upload-file/utils/fileList.mjs +10 -12
  170. package/es/src/business/ap-upload-file/utils/upload.mjs +40 -40
  171. package/es/src/business/ap-value-select-card/index.vue2.mjs +122 -119
  172. package/es/src/business/ap-value-select-card/utils.mjs +1 -1
  173. package/es/src/business/ap-view/ap-view.vue2.mjs +134 -147
  174. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  175. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +90 -94
  176. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  177. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +126 -135
  178. package/es/src/business/batch-input-group/form-item.vue.mjs +43 -51
  179. package/es/src/business/batch-input-group/index.vue.mjs +113 -127
  180. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +40 -42
  181. package/es/src/business/hooks/useGridRefresh.mjs +11 -12
  182. package/es/src/business/hooks/useKeepAliveFlag.mjs +4 -4
  183. package/es/src/business/hooks/usePageListAgGrid.mjs +43 -48
  184. package/es/src/business/hooks/usePageListApGrid.mjs +48 -53
  185. package/es/src/business/hooks/usePageListApTable.mjs +27 -32
  186. package/es/src/business/hooks/useTableRefresh.mjs +39 -41
  187. package/es/src/check-card/index.vue2.mjs +51 -56
  188. package/es/src/config-provider/config-provider.mjs +12 -12
  189. package/es/src/config-provider/hooks/use-global-config.mjs +20 -23
  190. package/es/src/config-provider/hooks/use-locale.mjs +17 -17
  191. package/es/src/editable-table/form-item.vue.mjs +82 -88
  192. package/es/src/editable-table/hooks/use-get-columns.mjs +40 -43
  193. package/es/src/editable-table/index.vue.mjs +100 -113
  194. package/es/src/editable-table/utils.mjs +88 -95
  195. package/es/src/hooks/useControllableValue.mjs +18 -18
  196. package/es/src/hooks/useResize.mjs +16 -16
  197. package/es/src/mask/index.vue.mjs +11 -11
  198. package/es/src/resize-observer/index.vue.mjs +20 -22
  199. package/es/src/scroll-bar/index.vue.mjs +2 -8
  200. package/es/src/scroll-bar/internal.vue.mjs +59 -65
  201. package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +23 -25
  202. package/es/src/scroll-view/index.vue.mjs +40 -42
  203. package/es/src/splitter/Splitter.vue2.mjs +48 -52
  204. package/es/src/splitter/hooks/useItems.mjs +14 -15
  205. package/es/src/splitter/hooks/useResize.mjs +31 -34
  206. package/es/src/splitter/hooks/useSizes.mjs +34 -34
  207. package/es/src/text/index.vue.mjs +24 -24
  208. package/es/src/utils/config-provider-preset.mjs +17 -21
  209. package/es/src/utils/copy.mjs +9 -9
  210. package/es/src/utils/index.mjs +43 -43
  211. package/es/src/version.d.ts +1 -1
  212. package/es/src/version.mjs +1 -1
  213. package/es/src/work-order-modal/createWorkOrder.mjs +17 -18
  214. package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  215. package/es/src/work-order-modal/work-order-modal.vue.mjs +109 -123
  216. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  217. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  218. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  219. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -1
  220. package/lib/src/ag-grid/hooks/use-search-form.js +1 -1
  221. package/lib/src/ag-grid/index.vue.js +1 -1
  222. package/lib/src/ag-grid/interface.d.ts +4 -0
  223. package/lib/src/ag-grid/renderer/checkbox.js +1 -1
  224. package/lib/src/ag-grid/renderer/date-range.js +1 -1
  225. package/lib/src/ag-grid/renderer/date.js +1 -1
  226. package/lib/src/ag-grid/renderer/radio.js +1 -1
  227. package/lib/src/ag-grid/renderer/select.js +1 -1
  228. package/lib/src/ag-grid/renderer/tree-select.js +1 -1
  229. package/lib/src/ap-action/item/index.vue2.js +1 -1
  230. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  231. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  232. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  233. package/lib/src/ap-button/ap-confirm-button.vue.js +1 -1
  234. package/lib/src/ap-button/utils/index.js +1 -1
  235. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  236. package/lib/src/ap-descriptions/formatter/index.js +1 -1
  237. package/lib/src/ap-descriptions/helper.js +1 -1
  238. package/lib/src/ap-download/ap-download.vue.js +1 -1
  239. package/lib/src/ap-download/hooks/index.js +1 -1
  240. package/lib/src/ap-download/utils/getFileInfo.js +1 -1
  241. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  242. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  243. package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
  244. package/lib/src/ap-field/date/index.vue.js +1 -1
  245. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  246. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  247. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  248. package/lib/src/ap-field/hooks/use-default-presets.js +1 -1
  249. package/lib/src/ap-field/hooks/use-options.js +1 -1
  250. package/lib/src/ap-field/number/helper.js +1 -1
  251. package/lib/src/ap-field/number/index.vue.js +1 -1
  252. package/lib/src/ap-field/radio/index.vue.js +1 -1
  253. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  254. package/lib/src/ap-field/rate/index.vue.js +1 -1
  255. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  256. package/lib/src/ap-field/select/index.vue.js +1 -1
  257. package/lib/src/ap-field/select/read.vue2.js +1 -1
  258. package/lib/src/ap-field/select/use-select-options.js +1 -1
  259. package/lib/src/ap-field/slider/index.vue.js +1 -1
  260. package/lib/src/ap-field/switch/index.vue.js +1 -1
  261. package/lib/src/ap-field/text/index.vue2.js +1 -1
  262. package/lib/src/ap-field/text/password.vue.js +1 -1
  263. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  264. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  265. package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
  266. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  267. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  268. package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -3
  269. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  270. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  271. package/lib/src/ap-form/item/index.vue.js +1 -1
  272. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  273. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  274. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  275. package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
  276. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  277. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  278. package/lib/src/ap-form/items/select/index.vue.d.ts +7 -7
  279. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  280. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  281. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  282. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  283. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +3 -3
  284. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  285. package/lib/src/ap-form/list/index.vue.js +1 -1
  286. package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -3
  287. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  288. package/lib/src/ap-form/provider/index.vue.js +1 -1
  289. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  290. package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -1
  291. package/lib/src/ap-form/search-form/hooks/use-sorter.js +1 -1
  292. package/lib/src/ap-form/search-form/index.vue.d.ts +3 -3
  293. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  294. package/lib/src/ap-form/search-form/utils.js +1 -1
  295. package/lib/src/ap-form/set/index.vue.js +1 -1
  296. package/lib/src/ap-form/utils/get.js +1 -1
  297. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  298. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  299. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  300. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  301. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
  302. package/lib/src/ap-grid/index.vue.js +1 -1
  303. package/lib/src/ap-grid/utils/col.js +1 -1
  304. package/lib/src/ap-grid/utils/editable.js +1 -1
  305. package/lib/src/ap-grid/utils/renderer.js +1 -1
  306. package/lib/src/ap-grid/utils/table.js +1 -1
  307. package/lib/src/ap-grid/utils/to-tree-array.js +1 -1
  308. package/lib/src/ap-list/hooks/use-offline-list.js +1 -1
  309. package/lib/src/ap-list/index.vue.js +1 -1
  310. package/lib/src/ap-modal/utils/createModal.js +1 -1
  311. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  312. package/lib/src/ap-modal/utils/methods.js +1 -1
  313. package/lib/src/ap-modal/utils/util.js +1 -1
  314. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  315. package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
  316. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  317. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  318. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  319. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  320. package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
  321. package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
  322. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  323. package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
  324. package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
  325. package/lib/src/ap-table/components/setting/utils.js +1 -1
  326. package/lib/src/ap-table/constants.d.ts +6 -6
  327. package/lib/src/ap-table/hooks/use-sticky-scroll.js +1 -1
  328. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  329. package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
  330. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  331. package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
  332. package/lib/src/ap-table/utils.js +1 -1
  333. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  334. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  335. package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
  336. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  337. package/lib/src/ap-upload/hooks/useOss.js +1 -1
  338. package/lib/src/ap-upload/utils/accept.js +1 -1
  339. package/lib/src/ap-upload/utils/returnData.js +1 -1
  340. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  341. package/lib/src/business/ap-appendix/utils/index.js +1 -1
  342. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  343. package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
  344. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  345. package/lib/src/business/ap-batch-action-group/MenuItemGroup.vue2.js +1 -1
  346. package/lib/src/business/ap-batch-action-group/index.d.ts +6 -0
  347. package/lib/src/business/ap-button-group/ApButtonGroup.vue2.js +1 -1
  348. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  349. package/lib/src/business/ap-copy/ApCopy.js +1 -1
  350. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  351. package/lib/src/business/ap-export-group/convertExportField.js +1 -1
  352. package/lib/src/business/ap-export-group/handleExportDownload.js +1 -1
  353. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  354. package/lib/src/business/ap-image/hooks/useOss.js +1 -1
  355. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  356. package/lib/src/business/ap-keep-alive/hook.js +1 -1
  357. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -1
  358. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -1
  359. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -1
  360. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -1
  361. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -1
  362. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -1
  363. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -1
  364. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -1
  365. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -1
  366. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -1
  367. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -1
  368. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -1
  369. package/lib/src/business/ap-keep-alive/utils.js +1 -1
  370. package/lib/src/business/ap-ladder/ApLadder.js +1 -1
  371. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
  372. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  373. package/lib/src/business/ap-size-input/ApSizeInput.js +1 -1
  374. package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
  375. package/lib/src/business/ap-summary/utils.js +1 -1
  376. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
  377. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
  378. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  379. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  380. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
  381. package/lib/src/business/ap-upload-file/hook/useOss.js +1 -1
  382. package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
  383. package/lib/src/business/ap-upload-file/utils/accept.js +1 -1
  384. package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
  385. package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
  386. package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
  387. package/lib/src/business/ap-value-select-card/utils.js +1 -1
  388. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  389. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -2
  390. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  391. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -2
  392. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  393. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  394. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  395. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
  396. package/lib/src/business/hooks/useGridRefresh.js +1 -1
  397. package/lib/src/business/hooks/useKeepAliveFlag.js +1 -1
  398. package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
  399. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  400. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  401. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  402. package/lib/src/check-card/index.vue2.js +1 -1
  403. package/lib/src/config-provider/config-provider.js +1 -1
  404. package/lib/src/config-provider/hooks/use-global-config.js +1 -1
  405. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  406. package/lib/src/editable-table/form-item.vue.js +1 -1
  407. package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
  408. package/lib/src/editable-table/index.vue.js +1 -1
  409. package/lib/src/editable-table/utils.js +1 -1
  410. package/lib/src/hooks/useControllableValue.js +1 -1
  411. package/lib/src/hooks/useResize.js +1 -1
  412. package/lib/src/mask/index.vue.js +1 -1
  413. package/lib/src/resize-observer/index.vue.js +1 -1
  414. package/lib/src/scroll-bar/index.vue.js +1 -1
  415. package/lib/src/scroll-bar/internal.vue.js +1 -1
  416. package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -1
  417. package/lib/src/scroll-view/index.vue.js +1 -1
  418. package/lib/src/splitter/Splitter.vue2.js +1 -1
  419. package/lib/src/splitter/hooks/useItems.js +1 -1
  420. package/lib/src/splitter/hooks/useResize.js +1 -1
  421. package/lib/src/splitter/hooks/useSizes.js +1 -1
  422. package/lib/src/text/index.vue.js +1 -1
  423. package/lib/src/utils/config-provider-preset.js +1 -1
  424. package/lib/src/utils/copy.js +1 -1
  425. package/lib/src/utils/index.js +1 -1
  426. package/lib/src/version.d.ts +1 -1
  427. package/lib/src/version.js +1 -1
  428. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  429. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -2
  430. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  431. package/package.json +5 -5
  432. package/theme/ap-draggable-grid/ap-draggable-grid.css +2 -1
  433. package/theme/ap-draggable-grid/ap-draggable-grid.less +2 -1
  434. package/theme/index.css +2 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as j, ref as q, unref as n, computed as _, createBlock as y, openBlock as i, withCtx as g, createElementVNode as G, normalizeClass as b, normalizeStyle as J, createElementBlock as u, createCommentVNode as h, Fragment as d, renderList as k, createVNode as K, mergeProps as Q, resolveDynamicComponent as T } from "vue";
1
+ import { defineComponent as j, ref as q, unref as a, computed as _, createBlock as y, openBlock as r, withCtx as g, createElementVNode as G, normalizeClass as b, normalizeStyle as J, createElementBlock as p, createCommentVNode as h, Fragment as d, renderList as k, createVNode as K, mergeProps as Q, resolveDynamicComponent as T } from "vue";
2
2
  import { useItems as X } from "./hooks/useItems.mjs";
3
3
  import "../resize-observer/index.mjs";
4
4
  import { useSizes as Y } from "./hooks/useSizes.mjs";
@@ -10,8 +10,8 @@ import "./SplitBar.vue.mjs";
10
10
  import { omit as ee } from "lodash-unified";
11
11
  import { useNamespace as te } from "../config-provider/hooks/use-namespace.mjs";
12
12
  import ae from "../resize-observer/index.vue.mjs";
13
- import ne from "./Panel.vue2.mjs";
14
- import oe from "./SplitBar.vue2.mjs";
13
+ import oe from "./Panel.vue2.mjs";
14
+ import se from "./SplitBar.vue2.mjs";
15
15
  const Ce = /* @__PURE__ */ j({
16
16
  name: "Splitter",
17
17
  __name: "Splitter",
@@ -27,99 +27,95 @@ const Ce = /* @__PURE__ */ j({
27
27
  lazy: { type: Boolean }
28
28
  },
29
29
  setup(E) {
30
- const a = E, { b: f } = te("splitter"), l = X(), m = q(), N = (e) => {
31
- const { offsetWidth: o, offsetHeight: s } = e.target, t = a.layout === "vertical" ? s : o;
32
- m.value !== 0 && (m.value = t);
30
+ const n = E, { b: c } = te("splitter"), i = X(), l = q(), N = (e) => {
31
+ const { offsetWidth: s, offsetHeight: o } = e.target, t = n.layout === "vertical" ? o : s;
32
+ l.value !== 0 && (l.value = t);
33
33
  }, [
34
34
  I,
35
- p,
35
+ z,
36
36
  v,
37
37
  O,
38
38
  P,
39
39
  M
40
- ] = Y(l, m), c = Z(l, p, !1), [B, U, $, w, C] = x(
41
- l,
42
- c,
43
- v,
40
+ ] = Y(i, l), m = Z(i, z, !1), [B, U, $, w, C] = x(
41
+ i,
44
42
  m,
43
+ v,
44
+ l,
45
45
  M,
46
46
  !1
47
47
  ), V = (e) => {
48
- var o;
49
- B(e), (o = a.onResizeStart) == null || o.call(a, n(p));
50
- }, A = (e, o) => {
51
- var t;
52
- const s = U(e, o);
53
- (t = a.onResize) == null || t.call(a, s);
48
+ B(e), n.onResizeStart?.(a(z));
49
+ }, A = (e, s) => {
50
+ const o = U(e, s);
51
+ n.onResize?.(o);
54
52
  }, D = () => {
55
- var e;
56
- $(), (e = a.onResizeEnd) == null || e.call(a, n(p));
57
- }, F = (e, o) => {
58
- var t, r;
59
- const s = w(e, o);
60
- (t = a.onResize) == null || t.call(a, s), (r = a.onResizeEnd) == null || r.call(a, s);
61
- }, H = _(() => [f(), a.className, f(a.layout)]), R = _(() => {
53
+ $(), n.onResizeEnd?.(a(z));
54
+ }, F = (e, s) => {
55
+ const o = w(e, s);
56
+ n.onResize?.(o), n.onResizeEnd?.(o);
57
+ }, H = _(() => [c(), n.className, c(n.layout)]), R = _(() => {
62
58
  const e = [];
63
- let o = 0;
64
- for (let s = 0; s < l.value.length; s += 1)
65
- o += n(v)[s], e.push(o);
59
+ let s = 0;
60
+ for (let o = 0; o < i.value.length; o += 1)
61
+ s += a(v)[o], e.push(s);
66
62
  return e;
67
- }), z = (e) => {
68
- const o = n(R), s = n(O), t = n(P);
63
+ }), f = (e) => {
64
+ const s = a(R), o = a(O), t = a(P);
69
65
  return {
70
- minStart: (o[e - 1] || 0) + s[e],
71
- minEnd: (o[e + 1] || 100) - t[e + 1],
72
- maxStart: (o[e - 1] || 0) + t[e],
73
- maxEnd: (o[e + 1] || 100) - s[e + 1]
66
+ minStart: (s[e - 1] || 0) + o[e],
67
+ minEnd: (s[e + 1] || 100) - t[e + 1],
68
+ maxStart: (s[e - 1] || 0) + t[e],
69
+ maxEnd: (s[e + 1] || 100) - o[e + 1]
74
70
  };
75
71
  };
76
- return (e, o) => (i(), y(n(ae), { onResize: N }, {
72
+ return (e, s) => (r(), y(a(ae), { onResize: N }, {
77
73
  default: g(() => [
78
74
  G("div", {
79
75
  style: J(e.style),
80
76
  class: b(H.value)
81
77
  }, [
82
- (i(!0), u(d, null, k(n(l), (s, t) => (i(), u(d, { key: t }, [
83
- K(ne, Q({ ref_for: !0 }, n(ee)(s, "_child"), {
84
- size: n(I)[t]
78
+ (r(!0), p(d, null, k(a(i), (o, t) => (r(), p(d, { key: t }, [
79
+ K(oe, Q({ ref_for: !0 }, a(ee)(o, "_child"), {
80
+ size: a(I)[t]
85
81
  }), {
86
82
  default: g(() => [
87
- (i(!0), u(d, null, k(s._child, (r, S) => (i(), y(T(r), { key: S }))), 128))
83
+ (r(!0), p(d, null, k(o._child, (u, S) => (r(), y(T(u), { key: S }))), 128))
88
84
  ]),
89
85
  _: 2
90
86
  }, 1040, ["size"]),
91
- n(c)[t] ? (i(), y(oe, {
87
+ a(m)[t] ? (r(), y(se, {
92
88
  key: 0,
93
89
  lazy: e.lazy,
94
90
  index: t,
95
- active: n(C) === t,
91
+ active: a(C) === t,
96
92
  vertical: e.layout === "vertical",
97
- resizable: n(c)[t].resizable,
93
+ resizable: a(m)[t].resizable,
98
94
  "aria-now": R.value[t] * 100,
99
95
  "aria-min": Math.max(
100
- z(t).minStart,
101
- z(t).minEnd
96
+ f(t).minStart,
97
+ f(t).minEnd
102
98
  ) * 100,
103
99
  "aria-max": Math.min(
104
- z(t).maxStart,
105
- z(t).maxEnd
100
+ f(t).maxStart,
101
+ f(t).maxEnd
106
102
  ) * 100,
107
- "start-collapsible": n(c)[t].startCollapsible,
108
- "end-collapsible": n(c)[t].endCollapsible,
109
- "container-size": m.value || 0,
103
+ "start-collapsible": a(m)[t].startCollapsible,
104
+ "end-collapsible": a(m)[t].endCollapsible,
105
+ "container-size": l.value || 0,
110
106
  onOffsetStart: V,
111
- onOffsetUpdate: (r, S, L) => {
107
+ onOffsetUpdate: (u, S, L) => {
112
108
  let W = e.layout === "vertical" ? L : S;
113
- A(r, W);
109
+ A(u, W);
114
110
  },
115
111
  onOffsetEnd: D,
116
112
  onCollapse: F
117
113
  }, null, 8, ["lazy", "index", "active", "vertical", "resizable", "aria-now", "aria-min", "aria-max", "start-collapsible", "end-collapsible", "container-size", "onOffsetUpdate"])) : h("", !0)
118
114
  ], 64))), 128)),
119
- typeof n(C) == "number" ? (i(), u("div", {
115
+ typeof a(C) == "number" ? (r(), p("div", {
120
116
  key: 0,
121
117
  "aria-hidden": "",
122
- class: b([n(f)("mask"), n(f)(`mask-${e.layout}`)])
118
+ class: b([a(c)("mask"), a(c)(`mask-${e.layout}`)])
123
119
  }, null, 2)) : h("", !0)
124
120
  ], 6)
125
121
  ]),
@@ -1,26 +1,25 @@
1
- import { useSlots as s, computed as d } from "vue";
2
- import { genRealChildren as l } from "../../ap-form/item-group/helper.mjs";
3
- function c(t) {
1
+ import { useSlots as o, computed as s } from "vue";
2
+ import { genRealChildren as u } from "../../ap-form/item-group/helper.mjs";
3
+ function d(t) {
4
4
  if (t && typeof t == "object")
5
5
  return t;
6
- const r = !!t || t === "";
6
+ const e = !!t || t === "";
7
7
  return {
8
- start: r,
9
- end: r
8
+ start: e,
9
+ end: e
10
10
  };
11
11
  }
12
- const m = () => {
13
- const t = s();
14
- return d(() => t.default ? l(t.default()).map((n) => {
15
- var o, u;
16
- const { props: e } = n;
12
+ const f = () => {
13
+ const t = o();
14
+ return s(() => t.default ? u(t.default()).map((r) => {
15
+ const { props: n } = r;
17
16
  return {
18
- ...e,
19
- collapsible: c(e == null ? void 0 : e.collapsible),
20
- _child: (u = (o = n.children).default) == null ? void 0 : u.call(o)
17
+ ...n,
18
+ collapsible: d(n?.collapsible),
19
+ _child: r.children.default?.()
21
20
  };
22
21
  }) : []);
23
22
  };
24
23
  export {
25
- m as useItems
24
+ f as useItems
26
25
  };
@@ -1,70 +1,67 @@
1
- import { unref as m, computed as P, ref as _ } from "vue";
1
+ import { unref as d, computed as b, ref as P } from "vue";
2
2
  import { getPtg as T } from "./useSizes.mjs";
3
- const J = (j, k, y, L, O, R) => {
4
- const a = m(j).map((e) => [e.min, e.max]), x = P(() => m(L) || 0), v = (e) => e * x.value;
3
+ const J = (j, k, y, L, v, R) => {
4
+ const a = d(j).map((e) => [e.min, e.max]), C = b(() => d(L) || 0), O = (e) => e * C.value;
5
5
  function l(e, f) {
6
- return typeof e == "string" ? v(T(e)) : e ?? f;
6
+ return typeof e == "string" ? O(T(e)) : e ?? f;
7
7
  }
8
- const I = _([]), E = [], S = _(null), U = () => m(y).map(v);
8
+ const I = P([]), E = [], m = P(null), U = () => d(y).map(O);
9
9
  return [
10
10
  (e) => {
11
- I.value = U(), S.value = {
11
+ I.value = U(), m.value = {
12
12
  index: e,
13
13
  confirmed: !1
14
14
  };
15
15
  },
16
16
  (e, f) => {
17
17
  let n = null;
18
- const u = m(S), r = m(I), i = m(x);
19
- if ((!u || !u.confirmed) && f !== 0) {
18
+ const S = d(m), i = d(I), r = d(C);
19
+ if ((!S || !S.confirmed) && f !== 0) {
20
20
  if (f > 0)
21
- n = e, S.value = {
21
+ n = e, m.value = {
22
22
  index: e,
23
23
  confirmed: !0
24
24
  };
25
25
  else
26
- for (let d = e; d >= 0; d -= 1)
27
- if (r[d] > 0 && m(k)[d].resizable) {
28
- n = d, S.value = {
29
- index: d,
26
+ for (let u = e; u >= 0; u -= 1)
27
+ if (i[u] > 0 && d(k)[u].resizable) {
28
+ n = u, m.value = {
29
+ index: u,
30
30
  confirmed: !0
31
31
  };
32
32
  break;
33
33
  }
34
34
  }
35
- const s = n ?? (u == null ? void 0 : u.index) ?? e, t = [...r], c = s + 1, z = l(a[s][0], 0), g = l(a[c][0], 0), p = l(
36
- a[s][1],
37
- i
35
+ const o = n ?? S?.index ?? e, t = [...i], c = o + 1, z = l(a[o][0], 0), g = l(a[c][0], 0), p = l(
36
+ a[o][1],
37
+ r
38
38
  ), h = l(
39
39
  a[c][1],
40
- i
40
+ r
41
41
  );
42
- let o = f;
43
- return t[s] + o < z && (o = z - t[s]), t[c] - o < g && (o = t[c] - g), t[s] + o > p && (o = p - t[s]), t[c] - o > h && (o = t[c] - h), t[s] += o, t[c] -= o, O(t), t;
42
+ let s = f;
43
+ return t[o] + s < z && (s = z - t[o]), t[c] - s < g && (s = t[c] - g), t[o] + s > p && (s = p - t[o]), t[c] - s > h && (s = t[c] - h), t[o] += s, t[c] -= s, v(t), t;
44
44
  },
45
45
  () => {
46
- S.value = null;
46
+ m.value = null;
47
47
  },
48
48
  (e, f) => {
49
- const n = U(), u = R ? f === "start" ? "end" : "start" : f, r = u === "start" ? e : e + 1, i = u === "start" ? e + 1 : e, s = n[r], t = n[i];
50
- if (s !== 0 && t !== 0)
51
- n[r] = 0, n[i] += s, E[e] = s;
49
+ const n = U(), S = R ? f === "start" ? "end" : "start" : f, i = S === "start" ? e : e + 1, r = S === "start" ? e + 1 : e, o = n[i], t = n[r];
50
+ if (o !== 0 && t !== 0)
51
+ n[i] = 0, n[r] += o, E[e] = o;
52
52
  else {
53
- const c = m(x), z = s + t, g = l(a[r][0], 0), p = l(
54
- a[r][1],
55
- c
56
- ), h = l(a[i][0], 0), o = l(
53
+ const c = d(C), z = o + t, g = l(a[i][0], 0), p = l(
57
54
  a[i][1],
58
55
  c
59
- ), d = Math.max(g, z - o), b = (Math.min(p, z - h) - d) / 2, C = E[e], M = z - C;
60
- C && C <= o && C >= h && M <= p && M >= g ? (n[i] = C, n[r] = M) : (n[r] -= b, n[i] += b);
56
+ ), h = l(a[r][0], 0), s = l(
57
+ a[r][1],
58
+ c
59
+ ), u = Math.max(g, z - s), _ = (Math.min(p, z - h) - u) / 2, x = E[e], M = z - x;
60
+ x && x <= s && x >= h && M <= p && M >= g ? (n[r] = x, n[i] = M) : (n[i] -= _, n[r] += _);
61
61
  }
62
- return O(n), n;
62
+ return v(n), n;
63
63
  },
64
- P(() => {
65
- var e;
66
- return (e = S.value) == null ? void 0 : e.index;
67
- })
64
+ b(() => m.value?.index)
68
65
  ];
69
66
  };
70
67
  export {
@@ -1,58 +1,58 @@
1
- import { computed as o, unref as r, ref as b } from "vue";
2
- function c(n) {
3
- return typeof n == "string" && n.endsWith("%");
1
+ import { computed as u, unref as r, ref as b } from "vue";
2
+ function c(s) {
3
+ return typeof s == "string" && s.endsWith("%");
4
4
  }
5
- function p(n) {
6
- return Number(n.slice(0, -1)) / 100;
5
+ function l(s) {
6
+ return Number(s.slice(0, -1)) / 100;
7
7
  }
8
- const I = (n, l) => {
9
- const S = o(() => r(n).map((e) => e.size)), f = o(() => r(n).length), a = o(() => r(l) || 0), x = (e) => e * r(a), m = b(
10
- r(n).map(
8
+ const I = (s, p) => {
9
+ const g = u(() => r(s).map((e) => e.size)), f = u(() => r(s).length), i = u(() => r(p) || 0), x = (e) => e * r(i), z = b(
10
+ r(s).map(
11
11
  (e) => e.defaultSize || e["default-size"]
12
12
  )
13
- ), v = o(() => {
13
+ ), m = u(() => {
14
14
  const e = [];
15
- for (let u = 0; u < f.value; u += 1)
16
- e[u] = S.value[u] ?? m.value[u];
15
+ for (let o = 0; o < f.value; o += 1)
16
+ e[o] = g.value[o] ?? z.value[o];
17
17
  return e;
18
- }), z = o(() => {
19
- let e = [], u = 0;
20
- for (let s = 0; s < f.value; s += 1) {
21
- const t = v.value[s];
18
+ }), v = u(() => {
19
+ let e = [], o = 0;
20
+ for (let n = 0; n < f.value; n += 1) {
21
+ const t = m.value[n];
22
22
  if (c(t))
23
- e[s] = p(t);
23
+ e[n] = l(t);
24
24
  else if (t || t === 0) {
25
- const g = Number(t);
26
- Number.isNaN(g) || (e[s] = g / a.value);
25
+ const d = Number(t);
26
+ Number.isNaN(d) || (e[n] = d / i.value);
27
27
  } else
28
- u += 1, e[s] = void 0;
28
+ o += 1, e[n] = void 0;
29
29
  }
30
- const i = e.reduce((s, t) => s + (t || 0), 0);
31
- if (i > 1 || !u) {
32
- const s = 1 / i;
33
- e = e.map((t) => t === void 0 ? 0 : t * s);
30
+ const a = e.reduce((n, t) => n + (t || 0), 0);
31
+ if (a > 1 || !o) {
32
+ const n = 1 / a;
33
+ e = e.map((t) => t === void 0 ? 0 : t * n);
34
34
  } else {
35
- const s = (1 - i) / u;
36
- e = e.map((t) => t === void 0 ? s : t);
35
+ const n = (1 - a) / o;
36
+ e = e.map((t) => t === void 0 ? n : t);
37
37
  }
38
38
  return e;
39
- }), d = o(() => r(z).map(x)), P = o(
40
- () => r(n).map((e) => c(e.min) ? p(e.min) : (e.min || 0) / a.value)
41
- ), N = o(
42
- () => r(n).map((e) => c(e.max) ? p(e.max) : (e.max || a.value) / a.value)
39
+ }), S = u(() => r(v).map(x)), P = u(
40
+ () => r(s).map((e) => c(e.min) ? l(e.min) : (e.min || 0) / i.value)
41
+ ), N = u(
42
+ () => r(s).map((e) => c(e.max) ? l(e.max) : (e.max || i.value) / i.value)
43
43
  );
44
44
  return [
45
- o(() => l != null && l.value ? r(d) : r(v)),
46
- d,
47
- z,
45
+ u(() => p?.value ? r(S) : r(m)),
46
+ S,
47
+ v,
48
48
  P,
49
49
  N,
50
50
  (e) => {
51
- m.value = e;
51
+ z.value = e;
52
52
  }
53
53
  ];
54
54
  };
55
55
  export {
56
- p as getPtg,
56
+ l as getPtg,
57
57
  I as useSizes
58
58
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as L, useSlots as O, computed as n, unref as o, createVNode as $, isVNode as z, Fragment as D, createElementBlock as d, openBlock as t, normalizeClass as s, createCommentVNode as v, createElementVNode as x, normalizeStyle as E, createBlock as u, resolveDynamicComponent as U, mergeProps as C, withCtx as m, renderSlot as i, createSlots as w, createTextVNode as F, toDisplayString as G, renderList as I, normalizeProps as R, guardReactiveProps as _ } from "vue";
1
+ import { defineComponent as L, useSlots as O, computed as n, unref as o, createVNode as $, isVNode as z, Fragment as D, createElementBlock as p, openBlock as t, normalizeClass as a, createCommentVNode as v, createElementVNode as x, normalizeStyle as E, createBlock as c, resolveDynamicComponent as U, mergeProps as C, withCtx as d, renderSlot as r, createSlots as w, createTextVNode as F, toDisplayString as G, renderList as I, normalizeProps as R, guardReactiveProps as _ } from "vue";
2
2
  import { TypographyLink as q, TypographyText as H } from "@aplus-frontend/antdv";
3
- import { isUndefined as p, omit as f, isString as J } from "lodash-unified";
3
+ import { isUndefined as s, omit as u, isString as J } from "lodash-unified";
4
4
  import "../config-provider/index.mjs";
5
5
  import { useInjectApTextGroup as K } from "./context.mjs";
6
6
  import { isDef as M } from "../utils/index.mjs";
@@ -66,16 +66,16 @@ const ae = /* @__PURE__ */ L({
66
66
  style: {}
67
67
  },
68
68
  setup(B) {
69
- const y = O(), e = B, {
69
+ const m = O(), e = B, {
70
70
  b: g,
71
- e: c,
71
+ e: i,
72
72
  em: S,
73
73
  m: P
74
74
  } = Q("ap-text"), {
75
- colon: a,
76
- vertical: r,
75
+ colon: f,
76
+ vertical: y,
77
77
  labelStyle: N
78
- } = K(), T = n(() => p(e.colon) ? p(a == null ? void 0 : a.value) ? !0 : a.value : e.colon), V = n(() => p(e.vertical) ? p(r == null ? void 0 : r.value) ? !1 : r.value : e.vertical), h = n(() => {
78
+ } = K(), T = n(() => s(e.colon) ? s(f?.value) ? !0 : f.value : e.colon), V = n(() => s(e.vertical) ? s(y?.value) ? !1 : y.value : e.vertical), h = n(() => {
79
79
  const l = o(N) || {};
80
80
  return Object.assign(l, e.labelStyle || {}), l;
81
81
  }), k = n(() => {
@@ -85,44 +85,44 @@ const ae = /* @__PURE__ */ L({
85
85
  const l = M(e.linkProps.ellipsis) ? e.linkProps.ellipsis : !!e.ellipsis;
86
86
  return {
87
87
  href: J(e.link) ? e.link : void 0,
88
- ...f(e, ["linkProps"]),
88
+ ...u(e, ["linkProps"]),
89
89
  ...e.linkProps,
90
90
  ellipsis: l
91
91
  };
92
92
  });
93
- return (l, W) => (t(), d("div", {
94
- class: s([o(g)(), {
93
+ return (l, W) => (t(), p("div", {
94
+ class: a([o(g)(), {
95
95
  [o(P)("vertical")]: V.value
96
96
  }])
97
- }, [k.value ? (t(), d("span", {
97
+ }, [k.value ? (t(), p("span", {
98
98
  key: 0,
99
- class: s([o(c)("label"), {
99
+ class: a([o(i)("label"), {
100
100
  [o(S)("label", "no-colon")]: !T.value
101
101
  }]),
102
102
  style: E(h.value)
103
- }, [(t(), u(U(k.value)))], 6)) : v("", !0), x("div", {
104
- class: s(o(c)("content"))
105
- }, [l.link ? (t(), u(o(q), C({
103
+ }, [(t(), c(U(k.value)))], 6)) : v("", !0), x("div", {
104
+ class: a(o(i)("content"))
105
+ }, [l.link ? (t(), c(o(q), C({
106
106
  key: 0
107
107
  }, j.value, {
108
108
  onClick: l.onClickContent
109
109
  }), {
110
- default: m(() => [i(l.$slots, "default")]),
110
+ default: d(() => [r(l.$slots, "default")]),
111
111
  _: 3
112
- }, 16, ["onClick"])) : (t(), u(o(H), C({
112
+ }, 16, ["onClick"])) : (t(), c(o(H), C({
113
113
  key: 1
114
- }, o(f)(e, ["label", "colon", "link", "linkProps", "vertical", "labelStyle"]), {
114
+ }, o(u)(e, ["label", "colon", "link", "linkProps", "vertical", "labelStyle"]), {
115
115
  onClick: l.onClickContent
116
116
  }), w({
117
- default: m(() => [i(l.$slots, "default", {}, () => [F(G(l.content || "--"), 1)])]),
117
+ default: d(() => [r(l.$slots, "default", {}, () => [F(G(l.content || "--"), 1)])]),
118
118
  _: 2
119
- }, [I(o(f)(y, ["default", "addonAfter"]), (X, b) => ({
119
+ }, [I(o(u)(m, ["default", "addonAfter"]), (X, b) => ({
120
120
  name: b,
121
- fn: m((A) => [i(l.$slots, b, R(_(A || {})))])
122
- }))]), 1040, ["onClick"])), y.addonAfter ? (t(), d("div", {
121
+ fn: d((A) => [r(l.$slots, b, R(_(A || {})))])
122
+ }))]), 1040, ["onClick"])), m.addonAfter ? (t(), p("div", {
123
123
  key: 2,
124
- class: s(o(c)("content-addon-after"))
125
- }, [i(l.$slots, "addonAfter")], 2)) : v("", !0)], 2)], 2));
124
+ class: a(o(i)("content-addon-after"))
125
+ }, [r(l.$slots, "addonAfter")], 2)) : v("", !0)], 2)], 2));
126
126
  }
127
127
  });
128
128
  export {
@@ -1,43 +1,39 @@
1
- import { isUndefined as f } from "lodash-unified";
1
+ import { isUndefined as i } from "lodash-unified";
2
2
  import { getTopWindow as s } from "./index.mjs";
3
- function u(e, n) {
4
- var t, r;
5
- return e != null && e.parentElement ? e.parentElement.classList.contains(n) ? (t = e.parentElement) != null && t.parentElement ? (r = e.parentElement.parentElement.className) == null ? void 0 : r.includes("basic-table") : !1 : u(e.parentElement, n) : !1;
3
+ function f(e, n) {
4
+ return e?.parentElement ? e.parentElement.classList.contains(n) ? e.parentElement?.parentElement ? e.parentElement.parentElement.className?.includes("basic-table") : !1 : f(e.parentElement, n) : !1;
6
5
  }
7
- const i = (e) => {
8
- var n, t;
9
- return u(e, "ant-form") ? (e == null ? void 0 : e.parentNode) || ((n = s().document) == null ? void 0 : n.body) : (t = s().document) == null ? void 0 : t.body;
10
- }, m = ({ text: e }) => {
6
+ const u = (e) => f(e, "ant-form") ? e?.parentNode || s().document?.body : s().document?.body, c = ({ text: e }) => {
11
7
  const n = (t) => t == null || t === "";
12
8
  return Array.isArray(e) ? n(e[0]) ? "--" : e[0] : n(e) ? "--" : e;
13
- }, c = !1, a = {
14
- getPopupContainer: i,
15
- transformCellText: m,
16
- autoInsertSpaceInButton: c
9
+ }, l = !1, a = {
10
+ getPopupContainer: u,
11
+ transformCellText: c,
12
+ autoInsertSpaceInButton: l
17
13
  };
18
- function y(e) {
14
+ function d(e) {
19
15
  const n = {
20
16
  ...e
21
17
  }, t = Object.keys(
22
18
  a
23
19
  );
24
20
  for (const r of t)
25
- f(n[r]) && (n[r] = a[r]);
21
+ i(n[r]) && (n[r] = a[r]);
26
22
  return n;
27
23
  }
28
- function d(e, n) {
24
+ function y(e, n) {
29
25
  const t = {
30
26
  ...n
31
27
  }, r = Object.keys(e);
32
28
  for (const o of r)
33
- f(e[o]) || (t[o] = e[o]);
29
+ i(e[o]) || (t[o] = e[o]);
34
30
  return t;
35
31
  }
36
32
  export {
37
33
  a as antdConfigProviderPresets,
38
- c as autoInsertSpaceInButton,
39
- i as getPopupContainer,
40
- y as mergeAntdProvideConfig,
41
- d as mergeAntdProviderConfigWithCache,
42
- m as transformCellText
34
+ l as autoInsertSpaceInButton,
35
+ u as getPopupContainer,
36
+ d as mergeAntdProvideConfig,
37
+ y as mergeAntdProviderConfigWithCache,
38
+ c as transformCellText
43
39
  };
@@ -1,27 +1,27 @@
1
1
  function a(t, e) {
2
- const r = e == null ? void 0 : e.format;
2
+ const o = e?.format;
3
3
  if (typeof t != "string")
4
4
  return !1;
5
5
  try {
6
- if (r === "text/html") {
7
- const o = new ClipboardItem({
8
- [r]: new Blob([t], { type: r }),
6
+ if (o === "text/html") {
7
+ const n = new ClipboardItem({
8
+ [o]: new Blob([t], { type: o }),
9
9
  "text/plain": new Blob([t], { type: "text/plain" })
10
10
  });
11
- navigator.clipboard.write([o]);
11
+ navigator.clipboard.write([n]);
12
12
  } else
13
13
  navigator.clipboard.writeText(t);
14
14
  return !0;
15
15
  } catch {
16
- return n(t);
16
+ return r(t);
17
17
  }
18
18
  }
19
- function n(t) {
19
+ function r(t) {
20
20
  try {
21
21
  const e = document.createElement("textarea");
22
22
  e.value = t, e.style.position = "fixed", e.style.opacity = "0", document.body.appendChild(e), e.focus(), e.select();
23
- const r = document.execCommand("copy");
24
- return document.body.removeChild(e), r;
23
+ const o = document.execCommand("copy");
24
+ return document.body.removeChild(e), o;
25
25
  } catch {
26
26
  return !1;
27
27
  }