@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,18 +1,18 @@
1
- import { defineComponent as q, useSlots as J, computed as f, unref as t, isVNode as Q, createVNode as T, Fragment as y, createElementBlock as k, createBlock as C, openBlock as d, createTextVNode as B, toDisplayString as D, resolveDynamicComponent as X, normalizeStyle as z, withCtx as P, createCommentVNode as ee, isRef as ne, renderList as A, mergeProps as oe, createSlots as te, renderSlot as ae, normalizeProps as re, guardReactiveProps as le } from "vue";
2
- import { ApFieldDatePresetFormats as ue, PRESET_FORMAT_MAP as R, PRESET_FORMAT_PICK_MAP as de, PRESET_FORMAT_TIME_MAP as ie } from "../date/constant.mjs";
1
+ import { defineComponent as W, useSlots as Y, computed as s, unref as t, isVNode as Z, createVNode as P, Fragment as m, createElementBlock as g, createBlock as S, openBlock as u, createTextVNode as k, toDisplayString as C, resolveDynamicComponent as q, normalizeStyle as J, withCtx as B, createCommentVNode as Q, isRef as X, renderList as T, mergeProps as ee, createSlots as oe, renderSlot as te, normalizeProps as ne, guardReactiveProps as ae } from "vue";
2
+ import { ApFieldDatePresetFormats as re, PRESET_FORMAT_MAP as w, PRESET_FORMAT_PICK_MAP as le, PRESET_FORMAT_TIME_MAP as ue } from "../date/constant.mjs";
3
3
  import "../../hooks/index.mjs";
4
- import { isNil as F, omit as _, isString as h, isFunction as se } from "lodash-unified";
5
- import i from "dayjs";
6
- import { InputGroup as fe, Select as me, SelectOption as pe, DatePicker as ce } from "@aplus-frontend/antdv";
7
- import { formatDayWithTimezone as ye } from "../date/helper.mjs";
8
- import { SwapRightOutlined as he } from "@ant-design/icons-vue";
9
- import { omitUndefined as ve } from "../../utils/index.mjs";
10
- import { getTimeFormatToZone as N } from "@aplus-frontend/utils";
11
- import { useDefaultPlaceholder as ge } from "../hooks/use-default-placeholder.mjs";
12
- import { useDefaultPresets as Se } from "../hooks/use-default-presets.mjs";
13
- import { useDateTimezone as ke } from "../hooks/use-date-timezone.mjs";
14
- import { useControllableValue as Ce } from "../../hooks/useControllableValue.mjs";
15
- const Ee = /* @__PURE__ */ q({
4
+ import { isNil as M, omit as b, isString as c, isFunction as de } from "lodash-unified";
5
+ import d from "dayjs";
6
+ import { InputGroup as ie, Select as se, SelectOption as pe, DatePicker as fe } from "@aplus-frontend/antdv";
7
+ import { formatDayWithTimezone as me } from "../date/helper.mjs";
8
+ import { SwapRightOutlined as ce } from "@ant-design/icons-vue";
9
+ import { omitUndefined as ye } from "../../utils/index.mjs";
10
+ import { getTimeFormatToZone as A } from "@aplus-frontend/utils";
11
+ import { useDefaultPlaceholder as ve } from "../hooks/use-default-placeholder.mjs";
12
+ import { useDefaultPresets as he } from "../hooks/use-default-presets.mjs";
13
+ import { useDateTimezone as ge } from "../hooks/use-date-timezone.mjs";
14
+ import { useControllableValue as Se } from "../../hooks/useControllableValue.mjs";
15
+ const ze = /* @__PURE__ */ W({
16
16
  name: "ApFieldDateRange",
17
17
  __name: "index",
18
18
  props: {
@@ -156,120 +156,112 @@ const Ee = /* @__PURE__ */ q({
156
156
  }
157
157
  },
158
158
  emits: ["update:value"],
159
- setup(x, {
160
- emit: E
159
+ setup(R, {
160
+ emit: F
161
161
  }) {
162
- const n = x, V = E, O = J(), s = f(() => ue.indexOf(n.format) > -1), v = f(() => s.value ? R[n.format] : n.format), {
163
- value: g,
164
- updateValue: w
165
- } = Ce(n, V), I = f(() => n.shownFormat ? n.shownFormat : s.value ? R[n.format] : n.format), U = ge("DateRange", n), {
166
- currentTimezone: u
167
- } = ke(n), {
168
- presets: j,
169
- changeCurrentDate: H
170
- } = Se({
171
- ...n,
172
- timezone: u
173
- }), m = (e, a, r = !0) => ye(u.value)(e, a, r), S = f(() => {
174
- var l, o;
175
- const e = t(g);
176
- if (F(e) || !(e != null && e.length))
162
+ const o = R, _ = F, z = Y(), i = s(() => re.indexOf(o.format) > -1), y = s(() => i.value ? w[o.format] : o.format), {
163
+ value: v,
164
+ updateValue: O
165
+ } = Se(o, _), N = s(() => o.shownFormat ? o.shownFormat : i.value ? w[o.format] : o.format), x = ve("DateRange", o), {
166
+ currentTimezone: l
167
+ } = ge(o), {
168
+ presets: E,
169
+ changeCurrentDate: V
170
+ } = he({
171
+ ...o,
172
+ timezone: l
173
+ }), p = (e, a, n = !0) => me(l.value)(e, a, n), h = s(() => {
174
+ const e = t(v);
175
+ if (M(e) || !e?.length)
177
176
  return e;
178
- const a = u.value ? N(t(g)[0], u.value) : (l = t(g)) == null ? void 0 : l[0], r = n.timezone ? N(t(g)[1], u.value) : (o = t(g)) == null ? void 0 : o[1];
179
- return [i(a), i(r)];
180
- }), K = f(() => t(s) ? n.picker ?? de[n.format] : n.picker), $ = f(() => {
181
- const e = t(s) ? ie[n.format] : {};
177
+ const a = l.value ? A(t(v)[0], l.value) : t(v)?.[0], n = o.timezone ? A(t(v)[1], l.value) : t(v)?.[1];
178
+ return [d(a), d(n)];
179
+ }), I = s(() => t(i) ? o.picker ?? le[o.format] : o.picker), U = s(() => {
180
+ const e = t(i) ? ue[o.format] : {};
182
181
  return {
183
- ...ve(_(n, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
184
- placeholder: t(U),
185
- presets: t(j),
182
+ ...ye(b(o, ["value", "onUpdate:value", "onChange", "onOk", "format", "mode", "presets"])),
183
+ placeholder: t(x),
184
+ presets: t(E),
186
185
  ...e
187
186
  };
188
187
  });
189
- function G(e) {
188
+ function j(e) {
190
189
  if (!e) {
191
- w(e);
190
+ O(e);
192
191
  return;
193
192
  }
194
- let a = h(e[0]) ? i(e[0]) : e[0], r = h(e[1]) ? i(e[1]) : e[1];
195
- const l = t(s) ? t(v) : void 0;
196
- w([m(a, l), m(r, l, !1)]);
193
+ let a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1];
194
+ const r = t(i) ? t(y) : void 0;
195
+ O([p(a, r), p(n, r, !1)]);
197
196
  }
198
- function L(e) {
199
- var c;
200
- const a = h(e[0]) ? i(e[0]) : e[0], r = h(e[1]) ? i(e[1]) : e[1], l = t(s) ? t(v) : void 0, o = e[0] ? m(a, l) : null, p = e[1] ? m(r, l, !1) : null;
201
- (c = n.onOk) == null || c.call(n, [o, p]);
197
+ function H(e) {
198
+ const a = c(e[0]) ? d(e[0]) : e[0], n = c(e[1]) ? d(e[1]) : e[1], r = t(i) ? t(y) : void 0, f = e[0] ? p(a, r) : null, D = e[1] ? p(n, r, !1) : null;
199
+ o.onOk?.([f, D]);
202
200
  }
203
- function W(e) {
204
- var a;
205
- e && H(), (a = n.onOpenChange) == null || a.call(n, e);
201
+ function K(e) {
202
+ e && V(), o.onOpenChange?.(e);
206
203
  }
207
- function Y(e, a) {
208
- var M, b;
209
- if (F(e)) {
210
- (M = n.onChange) == null || M.call(n, e, a);
204
+ function $(e, a) {
205
+ if (M(e)) {
206
+ o.onChange?.(e, a);
211
207
  return;
212
208
  }
213
- const r = h(e[0]) ? i(e[0]) : e[0], l = h(e[1]) ? i(e[1]) : e[1], o = t(s) ? t(v) : void 0, p = e[0] ? m(r, o) : null, c = e[1] ? m(l, o, !1) : null;
214
- (b = n.onChange) == null || b.call(n, [p, c], a);
209
+ const n = c(e[0]) ? d(e[0]) : e[0], r = c(e[1]) ? d(e[1]) : e[1], f = t(i) ? t(y) : void 0, D = e[0] ? p(n, f) : null, L = e[1] ? p(r, f, !1) : null;
210
+ o.onChange?.([D, L], a);
215
211
  }
216
- const Z = f(() => {
217
- var r;
218
- const e = n.readModeSeparator;
212
+ const G = s(() => {
213
+ const e = o.readModeSeparator;
219
214
  if (e)
220
- return Q(e) || se(e) ? n.readModeSeparator : T(y, null, [n.readModeSeparator]);
221
- const a = (r = O.readModeSeparator) == null ? void 0 : r.call(O);
222
- return a ? T(y, null, [a]) : he;
215
+ return Z(e) || de(e) ? o.readModeSeparator : P(m, null, [o.readModeSeparator]);
216
+ const a = z.readModeSeparator?.();
217
+ return a ? P(m, null, [a]) : ce;
223
218
  });
224
- return (e, a) => {
225
- var r, l;
226
- return e.mode === "read" ? (d(), k(y, {
227
- key: 0
228
- }, [S.value ? (d(), k(y, {
229
- key: 0
230
- }, [B(D((r = S.value[0]) == null ? void 0 : r.format(v.value)) + " ", 1), (d(), C(X(Z.value))), B(" " + D((l = S.value[1]) == null ? void 0 : l.format(v.value)), 1)], 64)) : (d(), k(y, {
231
- key: 1
232
- }, [B(D(e.emptyText), 1)], 64))], 64)) : (d(), C(t(fe), {
233
- key: 1,
234
- compact: "",
235
- style: z({
236
- display: Array.isArray(n.timezone) && n.timezone.length ? "flex" : "block"
237
- })
219
+ return (e, a) => e.mode === "read" ? (u(), g(m, {
220
+ key: 0
221
+ }, [h.value ? (u(), g(m, {
222
+ key: 0
223
+ }, [k(C(h.value[0]?.format(y.value)) + " ", 1), (u(), S(q(G.value))), k(" " + C(h.value[1]?.format(y.value)), 1)], 64)) : (u(), g(m, {
224
+ key: 1
225
+ }, [k(C(e.emptyText), 1)], 64))], 64)) : (u(), S(t(ie), {
226
+ key: 1,
227
+ compact: "",
228
+ style: J({
229
+ display: Array.isArray(o.timezone) && o.timezone.length ? "flex" : "block"
230
+ })
231
+ }, {
232
+ default: B(() => [Array.isArray(o.timezone) && o.timezone.length ? (u(), S(t(se), {
233
+ key: 0,
234
+ value: t(l),
235
+ "onUpdate:value": a[0] || (a[0] = (n) => X(l) ? l.value = n : null),
236
+ "default-active-first-option": "",
237
+ "dropdown-match-select-width": !1
238
238
  }, {
239
- default: P(() => [Array.isArray(n.timezone) && n.timezone.length ? (d(), C(t(me), {
240
- key: 0,
241
- value: t(u),
242
- "onUpdate:value": a[0] || (a[0] = (o) => ne(u) ? u.value = o : null),
243
- "default-active-first-option": "",
244
- "dropdown-match-select-width": !1
239
+ default: B(() => [(u(!0), g(m, null, T(o.timezone, (n) => (u(), S(t(pe), {
240
+ key: n?.value,
241
+ value: n?.value
245
242
  }, {
246
- default: P(() => [(d(!0), k(y, null, A(n.timezone, (o) => (d(), C(t(pe), {
247
- key: o == null ? void 0 : o.value,
248
- value: o == null ? void 0 : o.value
249
- }, {
250
- default: P(() => [B(D((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)]),
251
- _: 2
252
- }, 1032, ["value"]))), 128))]),
253
- _: 1
254
- }, 8, ["value"])) : ee("", !0), T(t(ce).RangePicker, oe($.value, {
255
- value: S.value,
256
- picker: K.value,
257
- format: I.value,
258
- "onUpdate:value": G,
259
- onChange: Y,
260
- onOk: L,
261
- onOpenChange: W
262
- }), te({
243
+ default: B(() => [k(C(n?.label ?? n?.value), 1)]),
263
244
  _: 2
264
- }, [A(t(_)(e.$slots, "readModeSeparator"), (o, p) => ({
265
- name: p,
266
- fn: P((c) => [ae(e.$slots, p, re(le(c || {})))])
267
- }))]), 1040, ["value", "picker", "format"])]),
268
- _: 3
269
- }, 8, ["style"]));
270
- };
245
+ }, 1032, ["value"]))), 128))]),
246
+ _: 1
247
+ }, 8, ["value"])) : Q("", !0), P(t(fe).RangePicker, ee(U.value, {
248
+ value: h.value,
249
+ picker: I.value,
250
+ format: N.value,
251
+ "onUpdate:value": j,
252
+ onChange: $,
253
+ onOk: H,
254
+ onOpenChange: K
255
+ }), oe({
256
+ _: 2
257
+ }, [T(t(b)(e.$slots, "readModeSeparator"), (n, r) => ({
258
+ name: r,
259
+ fn: B((f) => [te(e.$slots, r, ne(ae(f || {})))])
260
+ }))]), 1040, ["value", "picker", "format"])]),
261
+ _: 3
262
+ }, 8, ["style"]));
271
263
  }
272
264
  });
273
265
  export {
274
- Ee as default
266
+ ze as default
275
267
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as h, computed as l, createElementBlock as c, openBlock as p, Fragment as y, createTextVNode as u, createBlock as g, toDisplayString as s, resolveDynamicComponent as w } from "vue";
2
- import { isNil as C } from "lodash-unified";
3
- import { useDateTimezone as S } from "../hooks/use-date-timezone.mjs";
4
- import { getTimeFormatToZone as f } from "@aplus-frontend/utils";
5
- import B from "dayjs";
6
- import { ApFieldDatePresetFormats as O, PRESET_FORMAT_MAP as T } from "../date/constant.mjs";
7
- const R = /* @__PURE__ */ h({
1
+ import { defineComponent as v, computed as n, createElementBlock as d, openBlock as r, Fragment as i, createTextVNode as l, createBlock as b, toDisplayString as p, resolveDynamicComponent as h } from "vue";
2
+ import { isNil as g } from "lodash-unified";
3
+ import { useDateTimezone as w } from "../hooks/use-date-timezone.mjs";
4
+ import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
5
+ import c from "dayjs";
6
+ import { ApFieldDatePresetFormats as C, PRESET_FORMAT_MAP as S } from "../date/constant.mjs";
7
+ const M = /* @__PURE__ */ v({
8
8
  name: "ApFieldDateRangeRead",
9
9
  __name: "read",
10
10
  props: {
@@ -85,37 +85,33 @@ const R = /* @__PURE__ */ h({
85
85
  readModeSeparator: {},
86
86
  presets: { type: [Array, Boolean] }
87
87
  },
88
- setup(v) {
89
- const e = v, { currentTimezone: n } = S(e), r = l(() => {
90
- var a, m;
88
+ setup(y) {
89
+ const e = y, { currentTimezone: a } = w(e), t = n(() => {
91
90
  const o = e.value;
92
- if (C(o) || !(o != null && o.length))
91
+ if (g(o) || !o?.length)
93
92
  return o;
94
- const i = n.value ? f(
93
+ const s = a.value ? m(
95
94
  e.value[0],
96
- n.value
97
- ) : (a = e.value) == null ? void 0 : a[0], t = e.timezone ? f(
95
+ a.value
96
+ ) : e.value?.[0], B = e.timezone ? m(
98
97
  e.value[1],
99
- n.value
100
- ) : (m = e.value) == null ? void 0 : m[1];
101
- return [B(i), B(t)];
102
- }), b = l(
103
- () => O.indexOf(e.format) > -1
104
- ), d = l(
105
- () => b.value ? T[e.format] : e.format
98
+ a.value
99
+ ) : e.value?.[1];
100
+ return [c(s), c(B)];
101
+ }), f = n(
102
+ () => C.indexOf(e.format) > -1
103
+ ), u = n(
104
+ () => f.value ? S[e.format] : e.format
106
105
  );
107
- return (o, i) => {
108
- var t, a;
109
- return r.value ? (p(), c(y, { key: 0 }, [
110
- u(s((t = r.value[0]) == null ? void 0 : t.format(d.value)) + " ", 1),
111
- (p(), g(w(o.readModeSeparator))),
112
- u(" " + s((a = r.value[1]) == null ? void 0 : a.format(d.value)), 1)
113
- ], 64)) : (p(), c(y, { key: 1 }, [
114
- u(s(o.emptyText), 1)
115
- ], 64));
116
- };
106
+ return (o, s) => t.value ? (r(), d(i, { key: 0 }, [
107
+ l(p(t.value[0]?.format(u.value)) + " ", 1),
108
+ (r(), b(h(o.readModeSeparator))),
109
+ l(" " + p(t.value[1]?.format(u.value)), 1)
110
+ ], 64)) : (r(), d(i, { key: 1 }, [
111
+ l(p(o.emptyText), 1)
112
+ ], 64));
117
113
  }
118
114
  });
119
115
  export {
120
- R as default
116
+ M as default
121
117
  };
@@ -1,9 +1,6 @@
1
1
  import { ref as o, watch as m } from "vue";
2
2
  import { isUndefined as u } from "lodash-unified";
3
- const n = (e) => {
4
- var r;
5
- return Array.isArray(e) ? (r = e[0]) == null ? void 0 : r.value : e;
6
- }, c = (e) => {
3
+ const n = (e) => Array.isArray(e) ? e[0]?.value : e, c = (e) => {
7
4
  const r = o(n(e.timezone));
8
5
  return m(
9
6
  () => e.timezone,
@@ -1,32 +1,26 @@
1
- import { ref as s, computed as v } from "vue";
2
- import { presetsDefault as D } from "../../utils/data-range-persets.mjs";
3
- import m from "dayjs";
1
+ import { ref as s, computed as n } from "vue";
2
+ import { presetsDefault as o } from "../../utils/data-range-persets.mjs";
3
+ import u from "dayjs";
4
4
  import "../../config-provider/index.mjs";
5
- import { useLocale as d } from "../../config-provider/hooks/use-locale.mjs";
6
- const o = (e) => {
7
- const u = s(m().valueOf()), { t: i } = d();
5
+ import { useLocale as f } from "../../config-provider/hooks/use-locale.mjs";
6
+ const p = (e) => {
7
+ const a = s(u().valueOf()), { t: l } = f();
8
8
  return {
9
- presets: v(() => {
10
- var l, n, r, f;
11
- return e.presets === !0 ? (n = D(
12
- (l = e == null ? void 0 : e.timezone) == null ? void 0 : l.value,
13
- u.value,
14
- i
15
- )) == null ? void 0 : n.filter(({ value: t }) => t.every(
16
- (a) => e.disabledDate ? !e.disabledDate(a) : !0
17
- )) : (f = (r = e == null ? void 0 : e.presets) == null ? void 0 : r.map) == null ? void 0 : f.call(r, (t) => {
18
- var a;
19
- return {
20
- label: t.label,
21
- value: (a = t == null ? void 0 : t.value) == null ? void 0 : a.filter((c) => c !== null)
22
- };
23
- });
24
- }),
9
+ presets: n(() => e.presets === !0 ? o(
10
+ e?.timezone?.value,
11
+ a.value,
12
+ l
13
+ )?.filter(({ value: t }) => t.every(
14
+ (r) => e.disabledDate ? !e.disabledDate(r) : !0
15
+ )) : e?.presets?.map?.((t) => ({
16
+ label: t.label,
17
+ value: t?.value?.filter((r) => r !== null)
18
+ }))),
25
19
  changeCurrentDate: () => {
26
- u.value = m().valueOf();
20
+ a.value = u().valueOf();
27
21
  }
28
22
  };
29
23
  };
30
24
  export {
31
- o as useDefaultPresets
25
+ p as useDefaultPresets
32
26
  };
@@ -1,22 +1,22 @@
1
- import { ref as i, watch as o } from "vue";
2
- const f = (e) => {
3
- const u = i((e == null ? void 0 : e.options) || []);
4
- function n(t) {
5
- t && (u.value = t);
1
+ import { ref as u, watch as n } from "vue";
2
+ const a = (o) => {
3
+ const e = u(o?.options || []);
4
+ function r(t) {
5
+ t && (e.value = t);
6
6
  }
7
- return o(
8
- () => e.options,
7
+ return n(
8
+ () => o.options,
9
9
  (t) => {
10
- t && (u.value = t);
10
+ t && (e.value = t);
11
11
  },
12
12
  {
13
13
  deep: !0
14
14
  }
15
15
  ), {
16
- options: u,
17
- updateOptions: n
16
+ options: e,
17
+ updateOptions: r
18
18
  };
19
19
  };
20
20
  export {
21
- f as default
21
+ a as default
22
22
  };
@@ -1,23 +1,23 @@
1
- import { isNil as c } from "lodash-unified";
2
- import { toDecimalMark as t } from "@fruits-chain/utils";
3
- function m(l, e) {
4
- if (c(e))
5
- return l;
6
- let [a, r = ""] = l.split(".");
1
+ import { isNil as a } from "lodash-unified";
2
+ import { toDecimalMark as f } from "@fruits-chain/utils";
3
+ function n(t, e) {
4
+ if (a(e))
5
+ return t;
6
+ let [i, r = ""] = t.split(".");
7
7
  if (r.length >= e)
8
- return l;
9
- for (let f = r.length; f < e; f++)
8
+ return t;
9
+ for (let l = r.length; l < e; l++)
10
10
  r += "0";
11
- return a + "." + r;
11
+ return i + "." + r;
12
12
  }
13
- function g(l, e) {
14
- const a = l;
15
- if (c(a))
16
- return e == null ? void 0 : e.emptyText;
17
- let r = e != null && e.thousands ? t(a, e.precision) : String(a);
18
- return e != null && e.precision && e.limitDecimalsRetain && (r = m(r, e.precision)), r;
13
+ function u(t, e) {
14
+ const i = t;
15
+ if (a(i))
16
+ return e?.emptyText;
17
+ let r = e?.thousands ? f(i, e.precision) : String(i);
18
+ return e?.precision && e.limitDecimalsRetain && (r = n(r, e.precision)), r;
19
19
  }
20
20
  export {
21
- m as addZeroToDecimalPlaces,
22
- g as getValueStr
21
+ n as addZeroToDecimalPlaces,
22
+ u as getValueStr
23
23
  };
@@ -69,12 +69,10 @@ const j = { key: 0 }, te = /* @__PURE__ */ x({
69
69
  return o.precision && o.limitDecimalsRetain && (a = w(a, o.precision)), a;
70
70
  });
71
71
  function k() {
72
- var e;
73
- (e = l.value) == null || e.focus();
72
+ l.value?.focus();
74
73
  }
75
74
  function g() {
76
- var e;
77
- (e = l.value) == null || e.blur();
75
+ l.value?.blur();
78
76
  }
79
77
  return c({ focus: k, blur: g }), (e, a) => e.mode === "read" ? (r(), n("span", j, [
80
78
  e.$slots.prefix ? (r(), n("span", {
@@ -1,13 +1,13 @@
1
- import { defineComponent as q, ref as p, onMounted as C, computed as O, unref as o, createElementBlock as m, openBlock as l, Fragment as d, createTextVNode as R, toDisplayString as U, createBlock as f, mergeProps as h } from "vue";
2
- import { Spin as G, RadioGroup as N } from "@aplus-frontend/antdv";
1
+ import { defineComponent as _, ref as s, onMounted as q, computed as C, unref as e, createElementBlock as p, openBlock as a, Fragment as m, createTextVNode as O, toDisplayString as R, createBlock as d, mergeProps as U } from "vue";
2
+ import { Spin as h, RadioGroup as G } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
- import { isNil as S, omit as z } from "lodash-unified";
5
- import { getOptionValue as F, getOptionLabel as A } from "./helper.mjs";
4
+ import { isNil as N, omit as S } from "lodash-unified";
5
+ import { getOptionValue as z, getOptionLabel as F } from "./helper.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import D from "../hooks/use-options.mjs";
8
- import { useControllableValue as E } from "../../hooks/useControllableValue.mjs";
9
- import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
10
- const W = /* @__PURE__ */ q({
7
+ import A from "../hooks/use-options.mjs";
8
+ import { useControllableValue as D } from "../../hooks/useControllableValue.mjs";
9
+ import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
10
+ const Q = /* @__PURE__ */ _({
11
11
  name: "ApFieldRadio",
12
12
  __name: "index",
13
13
  props: {
@@ -30,44 +30,40 @@ const W = /* @__PURE__ */ q({
30
30
  vertical: { type: Boolean, default: !1 }
31
31
  },
32
32
  emits: ["update:value"],
33
- setup(c, { expose: v, emit: y }) {
34
- const t = c, g = y, n = p(), { options: u, updateOptions: k } = D(t), { value: i, updateValue: x } = E(t, g), { m: b } = L("field-radio"), r = p(!1);
35
- C(() => {
36
- var e;
37
- t.request && (r.value = !0, (e = t.request) == null || e.call(t).then((a) => k(a)).finally(() => {
38
- r.value = !1;
33
+ setup(f, { expose: c, emit: v }) {
34
+ const t = f, y = v, l = s(), { options: r, updateOptions: g } = A(t), { value: u, updateValue: k } = D(t, y), { m: x } = E("field-radio"), n = s(!1);
35
+ q(() => {
36
+ t.request && (n.value = !0, t.request?.().then((o) => g(o)).finally(() => {
37
+ n.value = !1;
39
38
  }));
40
39
  });
41
- const T = O(() => {
42
- var s;
43
- const e = o(i);
44
- if (S(e))
40
+ const b = C(() => {
41
+ const o = e(u);
42
+ if (N(o))
45
43
  return t.emptyText;
46
- const a = (s = u.value) == null ? void 0 : s.find(
47
- (_) => e === F(_)
44
+ const i = r.value?.find(
45
+ (V) => o === z(V)
48
46
  );
49
- return A(a) || t.emptyText;
47
+ return F(i) || t.emptyText;
50
48
  });
51
- function B() {
52
- var e;
53
- (e = n.value) == null || e.focus();
49
+ function T() {
50
+ l.value?.focus();
54
51
  }
55
- function V() {
56
- var e;
57
- (e = n.value) == null || e.blur();
52
+ function B() {
53
+ l.value?.blur();
58
54
  }
59
- return v({
60
- focus: B,
61
- blur: V
62
- }), (e, a) => e.mode === "read" ? (l(), m(d, { key: 0 }, [
63
- R(U(T.value), 1)
64
- ], 64)) : (l(), m(d, { key: 1 }, [
65
- r.value ? (l(), f(o(G), {
55
+ return c({
56
+ focus: T,
57
+ blur: B
58
+ }), (o, i) => o.mode === "read" ? (a(), p(m, { key: 0 }, [
59
+ O(R(b.value), 1)
60
+ ], 64)) : (a(), p(m, { key: 1 }, [
61
+ n.value ? (a(), d(e(h), {
66
62
  key: 0,
67
63
  size: "small"
68
- })) : (l(), f(o(N), h(
64
+ })) : (a(), d(e(G), U(
69
65
  { key: 1 },
70
- o(z)(t, [
66
+ e(S)(t, [
71
67
  "value",
72
68
  "onUpdate:value",
73
69
  "options",
@@ -76,16 +72,16 @@ const W = /* @__PURE__ */ q({
76
72
  ]),
77
73
  {
78
74
  ref_key: "radioGroupRef",
79
- ref: n,
80
- value: o(i),
81
- options: o(u),
82
- class: e.vertical ? o(b)("vertical") : null,
83
- "onUpdate:value": o(x)
75
+ ref: l,
76
+ value: e(u),
77
+ options: e(r),
78
+ class: o.vertical ? e(x)("vertical") : null,
79
+ "onUpdate:value": e(k)
84
80
  }
85
81
  ), null, 16, ["value", "options", "class", "onUpdate:value"]))
86
82
  ], 64));
87
83
  }
88
84
  });
89
85
  export {
90
- W as default
86
+ Q as default
91
87
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as l, computed as r, toDisplayString as s } from "vue";
2
- import { isNil as d } from "lodash-unified";
3
- import { getOptionValue as u, getOptionLabel as m } from "./helper.mjs";
4
- const v = /* @__PURE__ */ l({
1
+ import { defineComponent as i, computed as l, toDisplayString as r } from "vue";
2
+ import { isNil as s } from "lodash-unified";
3
+ import { getOptionValue as d, getOptionLabel as u } from "./helper.mjs";
4
+ const y = /* @__PURE__ */ i({
5
5
  name: "ApFieldRadioRead",
6
6
  __name: "read",
7
7
  props: {
@@ -23,20 +23,19 @@ const v = /* @__PURE__ */ l({
23
23
  request: {},
24
24
  vertical: { type: Boolean, default: !1 }
25
25
  },
26
- setup(n) {
27
- const e = n, p = r(() => {
28
- var a;
26
+ setup(a) {
27
+ const e = a, n = l(() => {
29
28
  const t = e.value;
30
- if (d(t))
29
+ if (s(t))
31
30
  return e.emptyText;
32
- const o = (a = e.options) == null ? void 0 : a.find(
33
- (i) => t === u(i)
31
+ const o = e.options?.find(
32
+ (p) => t === d(p)
34
33
  );
35
- return m(o) || e.emptyText;
34
+ return u(o) || e.emptyText;
36
35
  });
37
- return (t, o) => s(p.value);
36
+ return (t, o) => r(n.value);
38
37
  }
39
38
  });
40
39
  export {
41
- v as default
40
+ y as default
42
41
  };