@aplus-frontend/ui 0.6.0-beta.9 → 0.6.1

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 (510) hide show
  1. package/es/index.mjs +307 -289
  2. package/es/src/ap-button/ap-button.vue.mjs +1 -1
  3. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
  4. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  5. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  6. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +4 -0
  7. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +25 -0
  8. package/es/src/ap-drawer/index.d.ts +2 -0
  9. package/es/src/ap-drawer/index.mjs +5 -2
  10. package/es/src/ap-drawer/utils/createDrawer.mjs +38 -33
  11. package/es/src/ap-field/date-range/index.vue.mjs +8 -7
  12. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  13. package/es/src/ap-field/number/index.vue.d.ts +2 -4
  14. package/es/src/ap-field/radio/index.vue.d.ts +2 -4
  15. package/es/src/ap-field/rate/index.vue.d.ts +2 -4
  16. package/es/src/ap-field/select/index.vue.d.ts +3 -6
  17. package/es/src/ap-field/slider/index.vue.d.ts +2 -4
  18. package/es/src/ap-field/text/index.vue2.mjs +42 -44
  19. package/es/src/ap-field/text/password.vue.mjs +15 -17
  20. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  21. package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
  22. package/es/src/ap-form/ap-form.vue2.mjs +89 -77
  23. package/es/src/ap-form/dependency/index.vue.mjs +29 -23
  24. package/es/src/ap-form/drawer-form/index.vue.d.ts +13 -7
  25. package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
  26. package/es/src/ap-form/interface.d.ts +9 -5
  27. package/es/src/ap-form/item/index.vue.d.ts +5 -10
  28. package/es/src/ap-form/item/index.vue.mjs +69 -73
  29. package/es/src/ap-form/item-group/index.vue.mjs +34 -35
  30. package/es/src/ap-form/items/select/index.vue.mjs +12 -14
  31. package/es/src/ap-form/items/text/password.vue.mjs +9 -9
  32. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  33. package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
  34. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
  35. package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
  36. package/es/src/ap-form/provider/index.vue.mjs +6 -5
  37. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +4 -1
  38. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
  39. package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
  40. package/es/src/ap-form/search-form/index.vue.mjs +63 -62
  41. package/es/src/ap-form/set/index.vue.mjs +20 -20
  42. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  43. package/es/src/ap-grid/editable/index.vue.mjs +13 -10
  44. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  45. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  46. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  47. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  48. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  49. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  50. package/es/src/ap-grid/hooks/use-table-style.d.ts +18 -0
  51. package/es/src/ap-grid/hooks/use-table-style.mjs +28 -0
  52. package/es/src/ap-grid/index.vue.mjs +295 -243
  53. package/es/src/ap-grid/interface.d.ts +32 -3
  54. package/es/src/ap-grid/utils/table.mjs +15 -15
  55. package/es/src/ap-list/index.vue.d.ts +2 -9
  56. package/es/src/ap-list/index.vue.mjs +113 -103
  57. package/es/src/ap-list/interface.d.ts +24 -3
  58. package/es/src/ap-modal/interface.d.ts +2 -1
  59. package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
  60. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  61. package/es/src/ap-table/ap-table.vue2.mjs +86 -82
  62. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  63. package/es/src/ap-table/constants.d.ts +22 -22
  64. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  65. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
  66. package/es/src/ap-table/interface.d.ts +17 -4
  67. package/es/src/ap-table/utils.d.ts +21 -21
  68. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
  69. package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
  70. package/es/src/business/ap-card/index.d.ts +2 -4
  71. package/es/src/business/ap-card/interface.d.ts +5 -0
  72. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  73. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  74. package/es/src/business/ap-copy/constans.d.ts +24 -0
  75. package/es/src/business/ap-copy/constans.mjs +25 -0
  76. package/es/src/business/ap-copy/index.d.ts +102 -0
  77. package/es/src/business/ap-copy/index.mjs +7 -0
  78. package/es/src/business/ap-copy/interface.d.ts +8 -0
  79. package/es/src/business/ap-copy/interface.mjs +1 -0
  80. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  81. package/es/src/business/ap-copy/style/css.js +1 -0
  82. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  83. package/es/src/business/ap-copy/style/index.js +1 -0
  84. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +51 -49
  85. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  86. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  87. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  88. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  89. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  90. package/es/src/business/ap-keep-alive/index.d.ts +108 -0
  91. package/es/src/business/ap-keep-alive/index.mjs +15 -0
  92. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  93. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  94. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  95. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  96. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  97. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  98. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  99. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  100. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  101. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  102. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  103. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  108. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  109. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  110. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  111. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  112. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  113. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  114. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  115. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  116. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  118. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  119. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  120. package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
  121. package/es/src/business/ap-keep-alive/utils.mjs +42 -0
  122. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  123. package/es/src/business/ap-label/interface.d.ts +2 -3
  124. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  125. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  126. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  127. package/es/src/business/ap-product-info/constans.mjs +4 -0
  128. package/es/src/business/ap-product-info/index.d.ts +15 -0
  129. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  130. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  131. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  132. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
  133. package/es/src/business/ap-radio-group/index.d.ts +66 -0
  134. package/es/src/business/ap-radio-group/index.mjs +8 -0
  135. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  136. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  137. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  138. package/es/src/business/ap-radio-group/style/css.js +1 -0
  139. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  140. package/es/src/business/ap-radio-group/style/index.js +1 -0
  141. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  142. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  143. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  144. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  145. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  146. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  147. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  148. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
  149. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  150. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  151. package/es/src/business/ap-view/index.d.ts +12 -3
  152. package/es/src/business/ap-view/interface.d.ts +7 -0
  153. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  154. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  155. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  156. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  157. package/es/src/business/index.d.ts +3 -0
  158. package/es/src/business/index.mjs +36 -30
  159. package/es/src/components.d.ts +1 -0
  160. package/es/src/editable-table/form-item.vue.mjs +23 -23
  161. package/es/src/full-screen/interface.d.ts +5 -6
  162. package/es/src/index.mjs +112 -97
  163. package/es/src/locale/lang/en.mjs +4 -0
  164. package/es/src/locale/lang/zh-cn.mjs +4 -0
  165. package/es/src/mask/index.vue.mjs +21 -20
  166. package/es/src/path-map.mjs +3 -1
  167. package/es/src/resize-observer/interface.d.ts +2 -3
  168. package/es/src/scroll-bar/interface.d.ts +7 -7
  169. package/es/src/scroll-view/interface.d.ts +2 -3
  170. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  171. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  172. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  173. package/es/src/tests/mock-warning.d.ts +1 -0
  174. package/es/src/tests/utils.d.ts +8 -0
  175. package/es/src/text/group.vue.mjs +7 -6
  176. package/es/src/text/index.vue.mjs +20 -19
  177. package/es/src/version.d.ts +2 -0
  178. package/es/src/version.mjs +4 -0
  179. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  180. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  181. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  182. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  183. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  184. package/es/test/setup.d.ts +5 -0
  185. package/lib/index.js +1 -1
  186. package/lib/src/ap-button/ap-button.vue.js +1 -1
  187. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  188. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  189. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  190. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  191. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  192. package/lib/src/ap-drawer/index.d.ts +2 -0
  193. package/lib/src/ap-drawer/index.js +1 -1
  194. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  195. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  196. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  197. package/lib/src/ap-field/number/index.vue.d.ts +2 -4
  198. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  199. package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
  200. package/lib/src/ap-field/select/index.vue.d.ts +3 -6
  201. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  202. package/lib/src/ap-field/text/index.vue2.js +1 -1
  203. package/lib/src/ap-field/text/password.vue.js +1 -1
  204. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  205. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  206. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  207. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  208. package/lib/src/ap-form/drawer-form/index.vue.d.ts +13 -7
  209. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  210. package/lib/src/ap-form/interface.d.ts +9 -5
  211. package/lib/src/ap-form/item/index.vue.d.ts +5 -10
  212. package/lib/src/ap-form/item/index.vue.js +1 -1
  213. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  214. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  215. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  216. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  217. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  218. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  219. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  220. package/lib/src/ap-form/provider/index.vue.js +1 -1
  221. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  222. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  223. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -8
  224. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  225. package/lib/src/ap-form/set/index.vue.js +1 -1
  226. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  227. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  228. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  229. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  230. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  231. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  232. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  233. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  234. package/lib/src/ap-grid/hooks/use-table-style.d.ts +18 -0
  235. package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
  236. package/lib/src/ap-grid/index.vue.js +1 -1
  237. package/lib/src/ap-grid/interface.d.ts +32 -3
  238. package/lib/src/ap-grid/utils/table.js +1 -1
  239. package/lib/src/ap-list/index.vue.d.ts +2 -9
  240. package/lib/src/ap-list/index.vue.js +1 -1
  241. package/lib/src/ap-list/interface.d.ts +24 -3
  242. package/lib/src/ap-modal/interface.d.ts +2 -1
  243. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  244. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  245. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  246. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  247. package/lib/src/ap-table/constants.d.ts +22 -22
  248. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  249. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  250. package/lib/src/ap-table/interface.d.ts +17 -4
  251. package/lib/src/ap-table/utils.d.ts +21 -21
  252. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
  253. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  254. package/lib/src/business/ap-card/index.d.ts +2 -4
  255. package/lib/src/business/ap-card/interface.d.ts +5 -0
  256. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  257. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  258. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  259. package/lib/src/business/ap-copy/constans.js +1 -0
  260. package/lib/src/business/ap-copy/index.d.ts +102 -0
  261. package/lib/src/business/ap-copy/index.js +1 -0
  262. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  263. package/lib/src/business/ap-copy/interface.js +1 -0
  264. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  265. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  266. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  267. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  268. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  269. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  270. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  271. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  272. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  273. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  274. package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
  275. package/lib/src/business/ap-keep-alive/index.js +1 -0
  276. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  277. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  278. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  279. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  280. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  281. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  282. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  283. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  284. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  285. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  286. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  287. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  288. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  289. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  290. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  291. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  292. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  293. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  294. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  295. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  296. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  297. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  298. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  299. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  300. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  301. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  302. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  303. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  304. package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
  305. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  306. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  307. package/lib/src/business/ap-label/interface.d.ts +2 -3
  308. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  309. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  310. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  311. package/lib/src/business/ap-product-info/constans.js +1 -1
  312. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  313. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  314. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  315. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  316. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  317. package/lib/src/business/ap-radio-group/index.d.ts +66 -0
  318. package/lib/src/business/ap-radio-group/index.js +1 -0
  319. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  320. package/lib/src/business/ap-radio-group/interface.js +1 -0
  321. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  322. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  323. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  324. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  325. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  326. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  327. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  328. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  329. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  330. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  331. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  332. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  333. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  334. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  335. package/lib/src/business/ap-view/index.d.ts +12 -3
  336. package/lib/src/business/ap-view/interface.d.ts +7 -0
  337. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  338. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  339. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  340. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  341. package/lib/src/business/index.d.ts +3 -0
  342. package/lib/src/business/index.js +1 -1
  343. package/lib/src/components.d.ts +1 -0
  344. package/lib/src/editable-table/form-item.vue.js +1 -1
  345. package/lib/src/full-screen/interface.d.ts +5 -6
  346. package/lib/src/index.js +1 -1
  347. package/lib/src/locale/lang/en.js +1 -1
  348. package/lib/src/locale/lang/zh-cn.js +1 -1
  349. package/lib/src/mask/index.vue.js +1 -1
  350. package/lib/src/path-map.js +1 -1
  351. package/lib/src/resize-observer/interface.d.ts +2 -3
  352. package/lib/src/scroll-bar/interface.d.ts +7 -7
  353. package/lib/src/scroll-view/interface.d.ts +2 -3
  354. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  355. package/lib/src/splitter/Splitter.vue2.js +1 -1
  356. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  357. package/lib/src/tests/mock-warning.d.ts +1 -0
  358. package/lib/src/tests/utils.d.ts +8 -0
  359. package/lib/src/text/group.vue.js +1 -1
  360. package/lib/src/text/index.vue.js +1 -1
  361. package/lib/src/version.d.ts +2 -0
  362. package/lib/src/version.js +1 -0
  363. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  364. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  365. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  366. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  367. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  368. package/lib/test/setup.d.ts +5 -0
  369. package/package.json +18 -14
  370. package/theme/antd-global-overwrite/admin/alert.css +5 -18
  371. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  372. package/theme/antd-global-overwrite/admin/button.css +13 -13
  373. package/theme/antd-global-overwrite/admin/button.less +24 -24
  374. package/theme/antd-global-overwrite/admin/drawer.css +3 -0
  375. package/theme/antd-global-overwrite/admin/drawer.less +5 -0
  376. package/theme/antd-global-overwrite/admin/field.css +42 -0
  377. package/theme/antd-global-overwrite/admin/field.less +43 -0
  378. package/theme/antd-global-overwrite/admin/index.css +93 -634
  379. package/theme/antd-global-overwrite/admin/index.less +1 -3
  380. package/theme/antd-global-overwrite/admin/message.css +2 -9
  381. package/theme/antd-global-overwrite/admin/message.less +2 -10
  382. package/theme/antd-global-overwrite/admin/modal.css +20 -37
  383. package/theme/antd-global-overwrite/admin/modal.less +20 -41
  384. package/theme/antd-global-overwrite/admin/table.css +11 -251
  385. package/theme/antd-global-overwrite/admin/table.less +4 -132
  386. package/theme/antd-global-overwrite/aplus/alert.css +8 -18
  387. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  388. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  389. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  390. package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
  391. package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
  392. package/theme/antd-global-overwrite/aplus/field.css +36 -0
  393. package/theme/antd-global-overwrite/aplus/field.less +36 -0
  394. package/theme/antd-global-overwrite/aplus/index.css +94 -683
  395. package/theme/antd-global-overwrite/aplus/index.less +0 -3
  396. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  397. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  398. package/theme/antd-global-overwrite/aplus/modal.css +19 -43
  399. package/theme/antd-global-overwrite/aplus/modal.less +20 -49
  400. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  401. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  402. package/theme/ap-action/item-dropdown.css +3 -3
  403. package/theme/ap-action/item.css +21 -10
  404. package/theme/ap-action/item.less +18 -6
  405. package/theme/ap-appendix/ap-appendix.css +10 -10
  406. package/theme/ap-appendix/ap-appendix.less +6 -6
  407. package/theme/ap-attachment/ap-attachment.css +4 -4
  408. package/theme/ap-batch-action/ap-batch-action.css +6 -6
  409. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  410. package/theme/ap-button/ap-button.css +3 -3
  411. package/theme/ap-card/ap-card.css +4 -4
  412. package/theme/ap-card/ap-card.less +1 -1
  413. package/theme/ap-copy/ap-copy.css +96 -0
  414. package/theme/ap-copy/ap-copy.less +61 -0
  415. package/theme/ap-descriptions/ap-descriptions.css +9 -7
  416. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  417. package/theme/ap-download/ap-download.css +6 -6
  418. package/theme/ap-drawer/ap-drawer.css +66 -0
  419. package/theme/ap-drawer/ap-drawer.less +27 -0
  420. package/theme/ap-expand-alert/ap-expand-alert.css +4 -3
  421. package/theme/ap-expand-alert/ap-expand-alert.less +2 -2
  422. package/theme/ap-field/checkbox.css +3 -3
  423. package/theme/ap-field/index.css +3 -3
  424. package/theme/ap-field/number.css +3 -3
  425. package/theme/ap-field/radio.css +3 -3
  426. package/theme/ap-field/text-area.css +3 -3
  427. package/theme/ap-form/ap-form-item-group.css +3 -3
  428. package/theme/ap-form/ap-form-item.css +11 -8
  429. package/theme/ap-form/ap-form-item.less +8 -5
  430. package/theme/ap-form/drawer-form.css +3 -3
  431. package/theme/ap-form/index.css +25 -20
  432. package/theme/ap-form/item-text-group.css +3 -3
  433. package/theme/ap-form/item-text.css +3 -3
  434. package/theme/ap-form/modal-form.css +3 -3
  435. package/theme/ap-form/search-form-sorter.css +14 -12
  436. package/theme/ap-form/search-form-sorter.less +7 -5
  437. package/theme/ap-form/search-form.css +25 -20
  438. package/theme/ap-form/search-form.less +3 -3
  439. package/theme/ap-grid/editable.css +3 -3
  440. package/theme/ap-grid/index.css +73 -40
  441. package/theme/ap-grid/index.less +26 -8
  442. package/theme/ap-group-search/ap-extension-select.css +3 -3
  443. package/theme/ap-group-search/ap-group-search.css +3 -3
  444. package/theme/ap-group-search/ap-popover-select.css +3 -3
  445. package/theme/ap-image/ap-image.css +3 -3
  446. package/theme/ap-input-radio/ap-input-radio.css +3 -3
  447. package/theme/ap-label/ap-label.css +3 -3
  448. package/theme/ap-ladder/ap-ladder.css +6 -6
  449. package/theme/ap-layout/ap-info-layout.css +3 -3
  450. package/theme/ap-list/index.css +3 -3
  451. package/theme/ap-product-info/ap-product-info.css +23 -33
  452. package/theme/ap-product-info/ap-product-info.less +28 -42
  453. package/theme/ap-radio-group/ap-radio-group.css +66 -0
  454. package/theme/ap-radio-group/ap-radio-group.less +26 -0
  455. package/theme/ap-select-layout/ap-select-layout.css +5 -5
  456. package/theme/ap-size-input/ap-size-input.css +3 -3
  457. package/theme/ap-status/ap-status.css +3 -3
  458. package/theme/ap-summary/index.css +3 -3
  459. package/theme/ap-table/ap-table-index.css +3 -3
  460. package/theme/ap-table/ap-table-paragraph-ellipsis.css +4 -4
  461. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  462. package/theme/ap-table/ap-table.css +80 -47
  463. package/theme/ap-table/ap-table.less +19 -7
  464. package/theme/ap-table/setting/index.css +18 -12
  465. package/theme/ap-table/setting/modal.css +10 -5
  466. package/theme/ap-table/setting/modal.less +6 -1
  467. package/theme/ap-table/setting/select-group.css +3 -3
  468. package/theme/ap-table/setting/sortable-item-meta.css +5 -5
  469. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  470. package/theme/ap-table/setting/sortable-item.css +3 -3
  471. package/theme/ap-table/setting/sorter.css +9 -8
  472. package/theme/ap-table/setting/sorter.less +4 -4
  473. package/theme/ap-table-modal/index.css +95 -60
  474. package/theme/ap-table-modal/index.less +15 -13
  475. package/theme/ap-tag/ap-tag-group.css +3 -3
  476. package/theme/ap-tag/ap-tag.css +7 -7
  477. package/theme/ap-tag/ap-tag.less +1 -1
  478. package/theme/ap-title/ap-title.css +3 -3
  479. package/theme/ap-upload/index.css +4 -4
  480. package/theme/ap-upload/multiple-file.css +3 -3
  481. package/theme/ap-upload/picture.css +3 -3
  482. package/theme/ap-upload/single-file.css +4 -4
  483. package/theme/ap-upload/upload.css +3 -3
  484. package/theme/ap-upload-single/index.css +7 -7
  485. package/theme/ap-upload-single/index.less +4 -4
  486. package/theme/ap-view/ap-view.css +10 -10
  487. package/theme/ap-view/ap-view.less +7 -7
  488. package/theme/batch-input-group/index.css +5 -5
  489. package/theme/batch-input-group/popover-input.css +5 -5
  490. package/theme/batch-input-group/popover-input.less +2 -2
  491. package/theme/check-card/index.css +11 -11
  492. package/theme/check-card/index.less +5 -5
  493. package/theme/editable-table/index.css +43 -27
  494. package/theme/full-screen/index.css +3 -3
  495. package/theme/index.css +350 -245
  496. package/theme/index.less +3 -0
  497. package/theme/mask/index.css +3 -3
  498. package/theme/mixins/config.less +3 -3
  499. package/theme/mixins/mixins.css +3 -3
  500. package/theme/mixins/mixins.less +2 -2
  501. package/theme/scroll-bar/index.css +3 -3
  502. package/theme/scroll-view/index.css +3 -3
  503. package/theme/splitter/index.css +7 -7
  504. package/theme/splitter/index.less +1 -1
  505. package/theme/text/group.css +3 -3
  506. package/theme/text/index.css +8 -8
  507. package/theme/text/index.less +4 -4
  508. package/theme/ui-mode.css +53 -83
  509. package/theme/ui-mode.less +103 -83
  510. package/theme/work-order-modal/index.css +3 -3
@@ -36,7 +36,7 @@ const q = 72, E = 300, Y = /* @__PURE__ */ W({
36
36
  }, { b: i } = G("ap-action-button"), b = R("uiMode"), n = L(!1), v = t(
37
37
  () => e.borderLinkColor || a[b.value] || a.aplus
38
38
  ), s = t(
39
- () => e.type === "borderLink" ? v.value : void 0
39
+ () => e.type === "borderLink" && !e.disabled ? v.value : void 0
40
40
  ), u = t(
41
41
  () => O(s.value)
42
42
  ), h = t(() => e.minWidth === !0 ? `${q}px` : typeof e.minWidth == "number" ? `${e.minWidth}px` : typeof e.minWidth == "string" ? e.minWidth : void 0), g = t(
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, createElementBlock as i, openBlock as r, normalizeStyle as E, normalizeClass as d, unref as l, createVNode as _, mergeProps as w, withCtx as b, Fragment as p, renderList as M, createBlock as c, createCommentVNode as j, h as u, renderSlot as z, resolveDynamicComponent as A } from "vue";
1
+ import { defineComponent as B, createElementBlock as i, openBlock as r, normalizeStyle as E, normalizeClass as d, unref as l, createVNode as _, mergeProps as w, withCtx as b, Fragment as p, renderList as A, createBlock as c, createCommentVNode as M, h as u, renderSlot as j, resolveDynamicComponent as z } from "vue";
2
2
  import { Descriptions as F, DescriptionsItem as m } from "@aplus-frontend/antdv";
3
3
  import { mixinsAttachmentExtraProps as G, transformValue as L, isEmptyWithType as R } from "./helper.mjs";
4
4
  import { get as S } from "lodash-unified";
@@ -8,6 +8,7 @@ import { useGlobalConfig as f } from "../config-provider/hooks/use-global-config
8
8
  import { useNamespace as $ } from "../config-provider/hooks/use-namespace.mjs";
9
9
  import I from "./help-message/index.vue2.mjs";
10
10
  const O = { key: 0 }, Z = /* @__PURE__ */ B({
11
+ name: "ApDescriptions",
11
12
  __name: "ap-descriptions",
12
13
  props: {
13
14
  descriptionsProps: {},
@@ -17,7 +18,7 @@ const O = { key: 0 }, Z = /* @__PURE__ */ B({
17
18
  className: {}
18
19
  },
19
20
  setup(g) {
20
- const n = g, v = f("uiMode", "admin"), C = f("apDescriptions"), k = f("downloadCenterTriggerConfig"), { m: P, b: N, be: D } = $("ap-descriptions"), T = (e = {}) => {
21
+ const n = g, v = f("uiMode", "admin"), C = f("apDescriptions"), k = f("downloadCenterTriggerConfig"), { m: P, b: D, be: N } = $("ap-descriptions"), T = (e = {}) => {
21
22
  var s;
22
23
  let o = "";
23
24
  return ((s = n.descriptionsProps) == null ? void 0 : s.layout) === "vertical" && (o = "start"), {
@@ -53,14 +54,14 @@ const O = { key: 0 }, Z = /* @__PURE__ */ B({
53
54
  return (e, o) => {
54
55
  var s;
55
56
  return r(), i("div", {
56
- class: d([e.className, l(N)(), l(P)(l(v))]),
57
+ class: d([e.className, l(D)(), l(P)(l(v))]),
57
58
  style: E(e.style)
58
59
  }, [
59
60
  _(l(F), w(e.descriptionsProps, {
60
61
  "label-style": T({ ...((s = e.descriptionsProps) == null ? void 0 : s.labelStyle) || {} })
61
62
  }), {
62
63
  default: b(() => [
63
- (r(!0), i(p, null, M(e.schemas, (t, a) => (r(), i(p, {
64
+ (r(!0), i(p, null, A(e.schemas, (t, a) => (r(), i(p, {
64
65
  key: t.field || "empty" + a
65
66
  }, [
66
67
  t.valueType === "empty" ? (r(), c(l(m), {
@@ -70,7 +71,7 @@ const O = { key: 0 }, Z = /* @__PURE__ */ B({
70
71
  span: t.span
71
72
  }, null, 8, ["content-style", "label-style", "span"])) : x(t) ? (r(), c(l(m), {
72
73
  key: 1,
73
- class: d(V(t) ? l(D)("item", "ellipsis") : ""),
74
+ class: d(V(t) ? l(N)("item", "ellipsis") : ""),
74
75
  label: t.label ? u(p, [
75
76
  u(I, {
76
77
  helpMessage: t.helpMessage,
@@ -83,12 +84,12 @@ const O = { key: 0 }, Z = /* @__PURE__ */ B({
83
84
  }, {
84
85
  default: b(() => [
85
86
  l(R)(l(S)(e.dataSource, t.field), t) ? (r(), i("span", O, "--")) : (r(), i(p, { key: 1 }, [
86
- t.contentSlotName ? z(e.$slots, t.contentSlotName, {
87
+ t.contentSlotName ? j(e.$slots, t.contentSlotName, {
87
88
  key: 0,
88
89
  index: a,
89
90
  item: y(t),
90
91
  record: e.dataSource
91
- }) : (r(), c(A(
92
+ }) : (r(), c(z(
92
93
  u(p, [
93
94
  t.prefix,
94
95
  y(t),
@@ -98,7 +99,7 @@ const O = { key: 0 }, Z = /* @__PURE__ */ B({
98
99
  ], 64))
99
100
  ]),
100
101
  _: 2
101
- }, 1032, ["class", "label", "span", "content-style", "label-style"])) : j("", !0)
102
+ }, 1032, ["class", "label", "span", "content-style", "label-style"])) : M("", !0)
102
103
  ], 64))), 128))
103
104
  ]),
104
105
  _: 3
@@ -21,7 +21,7 @@ const C = {
21
21
  return typeof e != "object" ? t("div", {
22
22
  class: p("item-label"),
23
23
  style: {
24
- maxWidth: "calc(var(--ap-descriptions-item-label-width))"
24
+ maxWidth: "var(--ap-descriptions-item-label-width, auto)"
25
25
  }
26
26
  }, [t(_, {
27
27
  ellipsis: {
@@ -0,0 +1,7 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
3
+ close: () => any;
4
+ }, string, PublicProps, Readonly<{}> & Readonly<{
5
+ onClose?: (() => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./ApDrawerClose.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,25 @@
1
+ import { defineComponent as n, createElementBlock as a, openBlock as m, mergeProps as p, unref as e, createVNode as l } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import { IconApAdLineCloseDrawer as i } from "@aplus-frontend/icon";
4
+ import { useNamespace as d } from "../../config-provider/hooks/use-namespace.mjs";
5
+ const A = /* @__PURE__ */ n({
6
+ name: "ApDrawerClose",
7
+ __name: "ApDrawerClose",
8
+ emits: ["close"],
9
+ setup(f, { emit: o }) {
10
+ const { b: r } = d("ap-drawer"), t = o, s = () => {
11
+ t("close");
12
+ };
13
+ return (c, _) => (m(), a("div", p({
14
+ ...c.$attrs
15
+ }, {
16
+ class: [e(r)("close")],
17
+ onClick: s
18
+ }), [
19
+ l(e(i))
20
+ ], 16));
21
+ }
22
+ });
23
+ export {
24
+ A as default
25
+ };
@@ -1,8 +1,10 @@
1
1
  import { Drawer as _Drawer } from '@aplus-frontend/antdv';
2
2
  import { CreateDrawerFunc } from './interface';
3
+ import { default as ApDrawerClose } from './components/ApDrawerClose.vue';
3
4
  export * from './interface';
4
5
  type ApDrawerMixedProps = typeof _Drawer & {
5
6
  createDrawer: CreateDrawerFunc;
7
+ Close: typeof ApDrawerClose;
6
8
  };
7
9
  declare const ApDrawer: ApDrawerMixedProps;
8
10
  export { ApDrawer };
@@ -1,9 +1,12 @@
1
1
  import { Drawer as e } from "@aplus-frontend/antdv";
2
2
  import "./utils/index.mjs";
3
+ import "./components/ApDrawerClose.vue.mjs";
3
4
  import "./interface.mjs";
4
- import { createDrawer as a } from "./utils/createDrawer.mjs";
5
+ import { createDrawer as o } from "./utils/createDrawer.mjs";
6
+ import m from "./components/ApDrawerClose.vue2.mjs";
5
7
  const r = e;
6
- r.createDrawer = a;
8
+ r.createDrawer = o;
9
+ r.Close = m;
7
10
  r.name = "ApDrawer";
8
11
  export {
9
12
  r as ApDrawer
@@ -1,32 +1,34 @@
1
- import { render as x, defineComponent as D, createVNode as v, mergeProps as O, h as V } from "vue";
2
- import { Drawer as E } from "@aplus-frontend/antdv";
3
- import { ConfigProvider as U, globalConfigCached as A } from "../../config-provider/config-provider.mjs";
1
+ import { render as w, defineComponent as V, createVNode as u, mergeProps as E, h as I } from "vue";
2
+ import { Drawer as U } from "@aplus-frontend/antdv";
3
+ import { ConfigProvider as _, globalConfigCached as A } from "../../config-provider/config-provider.mjs";
4
4
  import { omit as N } from "lodash-unified";
5
- const z = (l) => {
5
+ import "../components/ApDrawerClose.vue.mjs";
6
+ import T from "../components/ApDrawerClose.vue2.mjs";
7
+ const G = (d) => {
6
8
  let o, c;
7
9
  const {
8
- destroyOnClose: f = !0
9
- } = l;
10
- function h() {
10
+ destroyOnClose: h = !0
11
+ } = d;
12
+ function m() {
11
13
  o && o(!1), setTimeout(() => {
12
14
  var e;
13
- x(null, t), (e = t.parentElement) == null || e.removeChild(t);
15
+ w(null, t), (e = t.parentElement) == null || e.removeChild(t);
14
16
  }, 500);
15
17
  }
16
- function b() {
18
+ function P() {
17
19
  o && o(!0);
18
20
  }
19
- function m() {
21
+ function f() {
20
22
  o && o(!1);
21
23
  }
22
- function w(e) {
24
+ function y(e) {
23
25
  c && c(e);
24
26
  }
25
- const P = /* @__PURE__ */ D({
27
+ const D = /* @__PURE__ */ V({
26
28
  data() {
27
29
  return {
28
- open: f,
29
- props: l
30
+ open: h,
31
+ props: d
30
32
  };
31
33
  },
32
34
  created() {
@@ -41,42 +43,45 @@ const z = (l) => {
41
43
  },
42
44
  methods: {
43
45
  async handleClose() {
44
- var e, n, r, s, p;
46
+ var e, n, s, r, p;
45
47
  if ((e = this.props) != null && e.onClose) {
46
- const i = ((s = (r = (n = this.props) == null ? void 0 : n.content) == null ? void 0 : r.component) == null ? void 0 : s.exposed) ?? void 0;
48
+ const i = ((r = (s = (n = this.props) == null ? void 0 : n.content) == null ? void 0 : s.component) == null ? void 0 : r.exposed) ?? void 0;
47
49
  await ((p = this.props) == null ? void 0 : p.onClose(i));
48
50
  }
49
- f ? h() : m();
51
+ h ? m() : f();
50
52
  }
51
53
  },
52
54
  render() {
53
- var s, p, i;
54
- const e = N(this.props, ["onClose", "extra", "footer", "visible", "onUpdate:visible", "afterVisibleChange", "onAfterVisibleOChange", "open", "onUpdate:open", "getContainer"]), n = ((i = (p = (s = this.props) == null ? void 0 : s.content) == null ? void 0 : p.component) == null ? void 0 : i.exposed) ?? void 0, r = () => f ? h() : m();
55
- return v(U, A.value, {
55
+ var r, p, i;
56
+ const e = N(this.props, ["onClose", "extra", "footer", "visible", "onUpdate:visible", "afterVisibleChange", "onAfterVisibleOChange", "open", "onUpdate:open", "getContainer"]), n = ((i = (p = (r = this.props) == null ? void 0 : r.content) == null ? void 0 : p.component) == null ? void 0 : i.exposed) ?? void 0, s = () => h ? m() : f();
57
+ return u(_, A.value, {
56
58
  default: () => {
57
- var a, u, d, C;
58
- return [v(E, O({
59
+ var C, g, a, x, l, v;
60
+ return [u(U, E({
59
61
  open: this.open,
60
62
  onClose: this.handleClose,
61
- extra: (u = (a = this.props) == null ? void 0 : a.extra) == null ? void 0 : u.call(a, n, r),
62
- footer: (C = (d = this.props) == null ? void 0 : d.footer) == null ? void 0 : C.call(d, n, r)
63
+ closeIcon: ((C = this.props) == null ? void 0 : C.closeIcon) ?? null,
64
+ extra: (g = this.props) != null && g.extra ? (x = (a = this.props) == null ? void 0 : a.extra) == null ? void 0 : x.call(a, n, s) : u(T, {
65
+ onClose: this.handleClose
66
+ }, null),
67
+ footer: (v = (l = this.props) == null ? void 0 : l.footer) == null ? void 0 : v.call(l, n, s)
63
68
  }, e), {
64
69
  default: () => {
65
- var g;
66
- return [(g = this.props) == null ? void 0 : g.content];
70
+ var b;
71
+ return [(b = this.props) == null ? void 0 : b.content];
67
72
  }
68
73
  })];
69
74
  }
70
75
  });
71
76
  }
72
- }), y = l.getContainer || document.body, t = document.createElement("div");
73
- return y.appendChild(t), x(V(P), t), {
74
- destroy: h,
75
- update: w,
76
- open: b,
77
- close: m
77
+ }), O = d.getContainer || document.body, t = document.createElement("div");
78
+ return O.appendChild(t), w(I(D), t), {
79
+ destroy: m,
80
+ update: y,
81
+ open: P,
82
+ close: f
78
83
  };
79
84
  };
80
85
  export {
81
- z as createDrawer
86
+ G as createDrawer
82
87
  };
@@ -1,4 +1,4 @@
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 P, resolveDynamicComponent as X, normalizeStyle as z, withCtx as D, 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";
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
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";
3
3
  import "../../hooks/index.mjs";
4
4
  import { isNil as F, omit as _, isString as h, isFunction as se } from "lodash-unified";
@@ -13,6 +13,7 @@ import { useDefaultPresets as Se } from "../hooks/use-default-presets.mjs";
13
13
  import { useDateTimezone as ke } from "../hooks/use-date-timezone.mjs";
14
14
  import { useControllableValue as Ce } from "../../hooks/useControllableValue.mjs";
15
15
  const Ee = /* @__PURE__ */ q({
16
+ name: "ApFieldDateRange",
16
17
  __name: "index",
17
18
  props: {
18
19
  mode: {
@@ -226,27 +227,27 @@ const Ee = /* @__PURE__ */ q({
226
227
  key: 0
227
228
  }, [S.value ? (d(), k(y, {
228
229
  key: 0
229
- }, [B(P((r = S.value[0]) == null ? void 0 : r.format(v.value)) + " ", 1), (d(), C(X(Z.value))), B(" " + P((l = S.value[1]) == null ? void 0 : l.format(v.value)), 1)], 64)) : (d(), k(y, {
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, {
230
231
  key: 1
231
- }, [B(P(e.emptyText), 1)], 64))], 64)) : (d(), C(t(fe), {
232
+ }, [B(D(e.emptyText), 1)], 64))], 64)) : (d(), C(t(fe), {
232
233
  key: 1,
233
234
  compact: "",
234
235
  style: z({
235
236
  display: Array.isArray(n.timezone) && n.timezone.length ? "flex" : "block"
236
237
  })
237
238
  }, {
238
- default: D(() => [Array.isArray(n.timezone) && n.timezone.length ? (d(), C(t(me), {
239
+ default: P(() => [Array.isArray(n.timezone) && n.timezone.length ? (d(), C(t(me), {
239
240
  key: 0,
240
241
  value: t(u),
241
242
  "onUpdate:value": a[0] || (a[0] = (o) => ne(u) ? u.value = o : null),
242
243
  "default-active-first-option": "",
243
244
  "dropdown-match-select-width": !1
244
245
  }, {
245
- default: D(() => [(d(!0), k(y, null, A(n.timezone, (o) => (d(), C(t(pe), {
246
+ default: P(() => [(d(!0), k(y, null, A(n.timezone, (o) => (d(), C(t(pe), {
246
247
  key: o == null ? void 0 : o.value,
247
248
  value: o == null ? void 0 : o.value
248
249
  }, {
249
- default: D(() => [B(P((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)]),
250
+ default: P(() => [B(D((o == null ? void 0 : o.label) ?? (o == null ? void 0 : o.value)), 1)]),
250
251
  _: 2
251
252
  }, 1032, ["value"]))), 128))]),
252
253
  _: 1
@@ -262,7 +263,7 @@ const Ee = /* @__PURE__ */ q({
262
263
  _: 2
263
264
  }, [A(t(_)(e.$slots, "readModeSeparator"), (o, p) => ({
264
265
  name: p,
265
- fn: D((c) => [ae(e.$slots, p, re(le(c || {})))])
266
+ fn: P((c) => [ae(e.$slots, p, re(le(c || {})))])
266
267
  }))]), 1040, ["value", "picker", "format"])]),
267
268
  _: 3
268
269
  }, 8, ["style"]));
@@ -1,10 +1,19 @@
1
- import { ref as n } from "vue";
2
- const t = (r) => {
3
- var e;
4
- return Array.isArray(r) ? (e = r[0]) == null ? void 0 : e.value : r;
5
- }, i = (r) => ({
6
- currentTimezone: n(t(r.timezone))
7
- });
1
+ import { ref as o, watch as m } from "vue";
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) => {
7
+ const r = o(n(e.timezone));
8
+ return m(
9
+ () => e.timezone,
10
+ (t, i) => {
11
+ u(i) && (r.value = n(t));
12
+ }
13
+ ), {
14
+ currentTimezone: r
15
+ };
16
+ };
8
17
  export {
9
- i as useDateTimezone
18
+ c as useDateTimezone
10
19
  };
@@ -13,8 +13,6 @@ type ApFieldNumberSlots = {
13
13
  upIcon?: any;
14
14
  downIcon?: any;
15
15
  };
16
- declare function focus(): void;
17
- declare function blur(): void;
18
16
  declare function __VLS_template(): {
19
17
  attrs: Partial<{}>;
20
18
  slots: Readonly<ApFieldNumberSlots> & ApFieldNumberSlots;
@@ -344,8 +342,8 @@ declare function __VLS_template(): {
344
342
  };
345
343
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
346
344
  declare const __VLS_component: DefineComponent<ApFieldNumberProps, {
347
- focus: typeof focus;
348
- blur: typeof blur;
345
+ focus: () => void;
346
+ blur: () => void;
349
347
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
350
348
  "update:value": (...args: any[]) => void;
351
349
  }, string, PublicProps, Readonly<ApFieldNumberProps> & Readonly<{
@@ -6,11 +6,9 @@ import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
6
6
  import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
7
7
  import { RadioChangeEvent } from '@aplus-frontend/antdv';
8
8
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
9
- declare function focus(): void;
10
- declare function blur(): void;
11
9
  declare const _default: DefineComponent<ApFieldRadioProps, {
12
- focus: typeof focus;
13
- blur: typeof blur;
10
+ focus: () => void;
11
+ blur: () => void;
14
12
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
13
  "update:value": (...args: any[]) => void;
16
14
  }, string, PublicProps, Readonly<ApFieldRadioProps> & Readonly<{
@@ -5,8 +5,6 @@ import { Direction } from '@aplus-frontend/antdv/es/config-provider';
5
5
  import { FocusEventHandler, KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
6
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
7
7
  import { FieldMode } from '..';
8
- declare function focus(): void;
9
- declare function blur(): void;
10
8
  declare function __VLS_template(): {
11
9
  attrs: Partial<{}>;
12
10
  slots: Readonly<{
@@ -100,8 +98,8 @@ declare function __VLS_template(): {
100
98
  };
101
99
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
102
100
  declare const __VLS_component: DefineComponent<ApFieldRateProps, {
103
- focus: typeof focus;
104
- blur: typeof blur;
101
+ focus: () => void;
102
+ blur: () => void;
105
103
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
106
104
  "update:value": (...args: any[]) => void;
107
105
  }, string, PublicProps, Readonly<ApFieldRateProps> & Readonly<{
@@ -22,9 +22,6 @@ type ApFieldSelectSlots = {
22
22
  optionLabel: any;
23
23
  default: any;
24
24
  };
25
- declare function requestIfNeeded(clear?: boolean): Promise<void>;
26
- declare function focus(): void;
27
- declare function blur(): void;
28
25
  declare function __VLS_template(): {
29
26
  attrs: Partial<{}>;
30
27
  slots: Readonly<ApFieldSelectSlots> & ApFieldSelectSlots;
@@ -437,9 +434,9 @@ declare function __VLS_template(): {
437
434
  };
438
435
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
439
436
  declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
440
- focus: typeof focus;
441
- blur: typeof blur;
442
- request: typeof requestIfNeeded;
437
+ focus: () => void;
438
+ blur: () => void;
439
+ request: (clear?: boolean) => Promise<void>;
443
440
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
444
441
  "update:value": (...args: any[]) => void;
445
442
  }, string, PublicProps, Readonly<ApFieldSelectProps> & Readonly<{
@@ -11,8 +11,6 @@ type ApFieldSliderSlots = {
11
11
  label: any;
12
12
  }) => any;
13
13
  };
14
- declare function focus(): void;
15
- declare function blur(): void;
16
14
  declare function __VLS_template(): {
17
15
  attrs: Partial<{}>;
18
16
  slots: Readonly<ApFieldSliderSlots> & ApFieldSliderSlots;
@@ -277,8 +275,8 @@ declare function __VLS_template(): {
277
275
  };
278
276
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
279
277
  declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
280
- focus: typeof focus;
281
- blur: typeof blur;
278
+ focus: () => void;
279
+ blur: () => void;
282
280
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
283
281
  "update:value": (...args: any[]) => void;
284
282
  }, string, PublicProps, Readonly<ApFieldSliderProps> & Readonly<{
@@ -1,13 +1,13 @@
1
- import { isVNode as g, defineComponent as I, ref as C, useSlots as S, computed as _, createVNode as s, mergeProps as R, unref as p, createBlock as V, openBlock as w, resolveDynamicComponent as T } from "vue";
2
- import { Input as j } from "@aplus-frontend/antdv";
1
+ import { isVNode as _, defineComponent as V, ref as w, useSlots as R, createVNode as s, mergeProps as T, unref as p, computed as j, createBlock as U, openBlock as z, resolveDynamicComponent as F } from "vue";
2
+ import { Input as M } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
- import { omit as U } from "lodash-unified";
5
- import { useDefaultPlaceholder as z } from "../hooks/use-default-placeholder.mjs";
6
- import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
7
- function M(a) {
8
- return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !g(a);
4
+ import { omit as N } from "lodash-unified";
5
+ import { useDefaultPlaceholder as O } from "../hooks/use-default-placeholder.mjs";
6
+ import { useControllableValue as P } from "../../hooks/useControllableValue.mjs";
7
+ function k(a) {
8
+ return typeof a == "function" || Object.prototype.toString.call(a) === "[object Object]" && !_(a);
9
9
  }
10
- const G = /* @__PURE__ */ I({
10
+ const G = /* @__PURE__ */ V({
11
11
  name: "ApFieldText",
12
12
  __name: "index",
13
13
  props: {
@@ -96,50 +96,48 @@ const G = /* @__PURE__ */ I({
96
96
  expose: m,
97
97
  emit: y
98
98
  }) {
99
- const u = C(), t = S();
100
- m({
101
- focus: (e) => {
102
- var n;
103
- (n = u.value) == null || n.focus(e);
104
- },
105
- blur: () => {
106
- var e;
107
- (e = u.value) == null || e.blur();
108
- },
109
- setSelectionRange: (e, n, r) => {
110
- var l;
111
- (l = u.value) == null || l.setSelectionRange(e, n, r);
112
- },
113
- select: () => {
114
- var e;
115
- (e = u.value) == null || e.select();
116
- },
117
- input: _(() => {
118
- var e;
119
- return (e = u.value) == null ? void 0 : e.input;
120
- })
121
- });
122
- const x = y, o = a, {
99
+ const u = w(), t = R(), x = (e) => {
100
+ var n;
101
+ (n = u.value) == null || n.focus(e);
102
+ }, v = () => {
103
+ var e;
104
+ (e = u.value) == null || e.blur();
105
+ }, B = (e, n, r) => {
106
+ var l;
107
+ (l = u.value) == null || l.setSelectionRange(e, n, r);
108
+ }, b = () => {
109
+ var e;
110
+ (e = u.value) == null || e.select();
111
+ }, h = y, o = a, {
123
112
  value: i,
124
- updateValue: v
125
- } = F(o, x), b = z("Text", o);
126
- function B(e) {
127
- var c, d, f;
128
- const n = e.target.value || "", r = o.beforeInput ? (c = o.beforeInput) == null ? void 0 : c.call(o, n) : n, l = (f = (d = u.value) == null ? void 0 : d.$el) == null ? void 0 : f.querySelector("input");
129
- l && (l.value = r), v(r);
113
+ updateValue: I
114
+ } = P(o, h), g = O("Text", o);
115
+ function C(e) {
116
+ var d, c, f;
117
+ const n = e.target.value || "", r = o.beforeInput ? (d = o.beforeInput) == null ? void 0 : d.call(o, n) : n, l = (f = (c = u.value) == null ? void 0 : c.$el) == null ? void 0 : f.querySelector("input");
118
+ l && (l.value = r), I(r);
130
119
  }
131
- function h() {
120
+ function S() {
132
121
  var e, n;
133
- return o.mode === "edit" ? s(j, R(U(o, ["mode", "emptyText", "value", "onUpdate:value", "beforeInput"]), {
134
- placeholder: p(b),
122
+ return o.mode === "edit" ? s(M, T(N(o, ["mode", "emptyText", "value", "onUpdate:value", "beforeInput"]), {
123
+ placeholder: p(g),
135
124
  value: p(i),
136
- onInput: B,
125
+ onInput: C,
137
126
  ref: u
138
- }), M(t) ? t : {
127
+ }), k(t) ? t : {
139
128
  default: () => [t]
140
129
  }) : s("span", null, [o.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), p(i) || o.emptyText, o.suffix || ((n = t == null ? void 0 : t.suffix) == null ? void 0 : n.call(t))]);
141
130
  }
142
- return (e, n) => (w(), V(T(h())));
131
+ return m({
132
+ focus: x,
133
+ blur: v,
134
+ setSelectionRange: B,
135
+ select: b,
136
+ input: j(() => {
137
+ var e;
138
+ return (e = u.value) == null ? void 0 : e.input;
139
+ })
140
+ }), (e, n) => (z(), U(F(S())));
143
141
  }
144
142
  });
145
143
  export {
@@ -1,4 +1,4 @@
1
- import { isVNode as x, defineComponent as h, ref as C, useSlots as g, unref as i, createVNode as o, mergeProps as w, Fragment as P, createBlock as U, openBlock as V, resolveDynamicComponent as _ } from "vue";
1
+ import { isVNode as x, defineComponent as h, useSlots as C, ref as g, unref as i, createVNode as o, mergeProps as w, Fragment as P, createBlock as U, openBlock as V, resolveDynamicComponent as _ } from "vue";
2
2
  import { Input as S, Space as T } from "@aplus-frontend/antdv";
3
3
  import "../../hooks/index.mjs";
4
4
  import { omit as I } from "lodash-unified";
@@ -109,18 +109,7 @@ const G = /* @__PURE__ */ h({
109
109
  expose: c,
110
110
  emit: f
111
111
  }) {
112
- const a = C(), u = g();
113
- c({
114
- focus: () => {
115
- var e;
116
- (e = a.value) == null || e.focus();
117
- },
118
- blur: () => {
119
- var e;
120
- (e = a.value) == null || e.blur();
121
- }
122
- });
123
- const s = f, t = l, {
112
+ const s = f, t = l, a = C(), u = g(), {
124
113
  value: m,
125
114
  updateValue: y
126
115
  } = d(t, s), v = k("TextPassword", t), {
@@ -138,9 +127,9 @@ const G = /* @__PURE__ */ h({
138
127
  "onUpdate:value": y,
139
128
  visible: n,
140
129
  "onUpdate:visible": r,
141
- ref: a
142
- }), E(u) ? u : {
143
- default: () => [u]
130
+ ref: u
131
+ }), E(a) ? a : {
132
+ default: () => [a]
144
133
  });
145
134
  let p = o(P, null, [t.emptyText]);
146
135
  return e && (p = o(T, null, {
@@ -152,7 +141,16 @@ const G = /* @__PURE__ */ h({
152
141
  }, [n ? o(O, null, null) : o(j, null, null)])]
153
142
  })), p;
154
143
  }
155
- return (e, n) => (V(), U(_(B())));
144
+ return c({
145
+ focus: () => {
146
+ var e;
147
+ (e = u.value) == null || e.focus();
148
+ },
149
+ blur: () => {
150
+ var e;
151
+ (e = u.value) == null || e.blur();
152
+ }
153
+ }), (e, n) => (V(), U(_(B())));
156
154
  }
157
155
  });
158
156
  export {
@@ -1,6 +1,6 @@
1
1
  import { ApFieldTextAreaProps } from '../interface';
2
2
  import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
3
- import { DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
4
4
  import { FieldMode } from '..';
5
5
  import { AutoSizeType } from '@aplus-frontend/antdv/es/input/inputProps';
6
6
  import { CompositionEventHandler, FocusEventHandler, ChangeEventHandler, KeyboardEventHandler, MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
@@ -11,7 +11,7 @@ import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
11
11
  declare const _default: DefineComponent<ApFieldTextAreaProps, {
12
12
  focus: (options?: InputFocusOptions) => void;
13
13
  blur: () => void;
14
- resizableTextArea: ComputedRef<any>;
14
+ resizableTextArea: any;
15
15
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
16
16
  "update:value": (...args: any[]) => void;
17
17
  }, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{