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

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 (506) hide show
  1. package/es/index.mjs +307 -289
  2. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +9 -8
  3. package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
  4. package/es/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  5. package/es/src/ap-drawer/components/ApDrawerClose.vue.mjs +4 -0
  6. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +25 -0
  7. package/es/src/ap-drawer/index.d.ts +2 -0
  8. package/es/src/ap-drawer/index.mjs +5 -2
  9. package/es/src/ap-drawer/utils/createDrawer.mjs +38 -33
  10. package/es/src/ap-field/date-range/index.vue.mjs +8 -7
  11. package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
  12. package/es/src/ap-field/number/index.vue.d.ts +2 -4
  13. package/es/src/ap-field/radio/index.vue.d.ts +2 -4
  14. package/es/src/ap-field/rate/index.vue.d.ts +2 -4
  15. package/es/src/ap-field/select/index.vue.d.ts +3 -6
  16. package/es/src/ap-field/slider/index.vue.d.ts +2 -4
  17. package/es/src/ap-field/text/index.vue2.mjs +42 -44
  18. package/es/src/ap-field/text/password.vue.mjs +15 -17
  19. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  20. package/es/src/ap-field/tree-select/index.vue.mjs +31 -30
  21. package/es/src/ap-form/ap-form.vue2.mjs +89 -77
  22. package/es/src/ap-form/dependency/index.vue.mjs +29 -23
  23. package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  24. package/es/src/ap-form/drawer-form/index.vue.mjs +58 -49
  25. package/es/src/ap-form/interface.d.ts +9 -5
  26. package/es/src/ap-form/item/index.vue.d.ts +5 -10
  27. package/es/src/ap-form/item/index.vue.mjs +69 -73
  28. package/es/src/ap-form/item-group/index.vue.mjs +34 -35
  29. package/es/src/ap-form/items/select/index.vue.mjs +12 -14
  30. package/es/src/ap-form/items/text/password.vue.mjs +9 -9
  31. package/es/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  32. package/es/src/ap-form/items/tree-select/index.vue.mjs +12 -14
  33. package/es/src/ap-form/modal-form/index.vue.d.ts +9 -7
  34. package/es/src/ap-form/modal-form/index.vue.mjs +64 -55
  35. package/es/src/ap-form/provider/index.vue.mjs +6 -5
  36. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
  37. package/es/src/ap-form/search-form/index.vue.d.ts +4 -8
  38. package/es/src/ap-form/search-form/index.vue.mjs +63 -62
  39. package/es/src/ap-form/set/index.vue.mjs +20 -20
  40. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  41. package/es/src/ap-grid/editable/index.vue.mjs +13 -10
  42. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  43. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  44. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  45. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  46. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  47. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  48. package/es/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  49. package/es/src/ap-grid/hooks/use-table-style.mjs +26 -0
  50. package/es/src/ap-grid/index.vue.mjs +295 -243
  51. package/es/src/ap-grid/interface.d.ts +32 -3
  52. package/es/src/ap-grid/utils/table.mjs +15 -15
  53. package/es/src/ap-list/index.vue.d.ts +2 -9
  54. package/es/src/ap-list/index.vue.mjs +113 -103
  55. package/es/src/ap-list/interface.d.ts +24 -3
  56. package/es/src/ap-modal/interface.d.ts +2 -1
  57. package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
  58. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  59. package/es/src/ap-table/ap-table.vue2.mjs +86 -82
  60. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  61. package/es/src/ap-table/constants.d.ts +22 -22
  62. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  63. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
  64. package/es/src/ap-table/interface.d.ts +17 -4
  65. package/es/src/ap-table/utils.d.ts +21 -21
  66. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
  67. package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
  68. package/es/src/business/ap-card/index.d.ts +2 -4
  69. package/es/src/business/ap-card/interface.d.ts +5 -0
  70. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  71. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  72. package/es/src/business/ap-copy/constans.d.ts +24 -0
  73. package/es/src/business/ap-copy/constans.mjs +25 -0
  74. package/es/src/business/ap-copy/index.d.ts +102 -0
  75. package/es/src/business/ap-copy/index.mjs +7 -0
  76. package/es/src/business/ap-copy/interface.d.ts +8 -0
  77. package/es/src/business/ap-copy/interface.mjs +1 -0
  78. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  79. package/es/src/business/ap-copy/style/css.js +1 -0
  80. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  81. package/es/src/business/ap-copy/style/index.js +1 -0
  82. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +51 -49
  83. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  84. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  85. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  86. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  87. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  88. package/es/src/business/ap-keep-alive/index.d.ts +108 -0
  89. package/es/src/business/ap-keep-alive/index.mjs +15 -0
  90. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  91. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  92. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  93. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  94. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  95. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  96. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  97. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  98. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  99. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  100. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  101. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  102. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  103. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  108. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  109. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  110. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  111. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  112. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  113. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  114. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  115. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  116. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  118. package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
  119. package/es/src/business/ap-keep-alive/utils.mjs +42 -0
  120. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  121. package/es/src/business/ap-label/interface.d.ts +2 -3
  122. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  123. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  124. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  125. package/es/src/business/ap-product-info/constans.mjs +4 -0
  126. package/es/src/business/ap-product-info/index.d.ts +15 -0
  127. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  128. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  129. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  130. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
  131. package/es/src/business/ap-radio-group/index.d.ts +66 -0
  132. package/es/src/business/ap-radio-group/index.mjs +8 -0
  133. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  134. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  135. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  136. package/es/src/business/ap-radio-group/style/css.js +1 -0
  137. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  138. package/es/src/business/ap-radio-group/style/index.js +1 -0
  139. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  140. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  141. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  142. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  143. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  144. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  145. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  146. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
  147. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  148. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  149. package/es/src/business/ap-view/index.d.ts +12 -3
  150. package/es/src/business/ap-view/interface.d.ts +7 -0
  151. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  152. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  153. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  154. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  155. package/es/src/business/index.d.ts +3 -0
  156. package/es/src/business/index.mjs +36 -30
  157. package/es/src/components.d.ts +1 -0
  158. package/es/src/editable-table/form-item.vue.mjs +23 -23
  159. package/es/src/full-screen/interface.d.ts +5 -6
  160. package/es/src/index.mjs +112 -97
  161. package/es/src/locale/lang/en.mjs +4 -0
  162. package/es/src/locale/lang/zh-cn.mjs +4 -0
  163. package/es/src/mask/index.vue.mjs +21 -20
  164. package/es/src/path-map.mjs +3 -1
  165. package/es/src/resize-observer/interface.d.ts +2 -3
  166. package/es/src/scroll-bar/interface.d.ts +7 -7
  167. package/es/src/scroll-view/interface.d.ts +2 -3
  168. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  169. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  170. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  171. package/es/src/tests/mock-warning.d.ts +1 -0
  172. package/es/src/tests/utils.d.ts +8 -0
  173. package/es/src/text/group.vue.mjs +7 -6
  174. package/es/src/text/index.vue.mjs +20 -19
  175. package/es/src/version.d.ts +2 -0
  176. package/es/src/version.mjs +4 -0
  177. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  178. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  179. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  180. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  181. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  182. package/es/test/setup.d.ts +5 -0
  183. package/lib/index.js +1 -1
  184. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  185. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  186. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  187. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  188. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  189. package/lib/src/ap-drawer/index.d.ts +2 -0
  190. package/lib/src/ap-drawer/index.js +1 -1
  191. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  192. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  193. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  194. package/lib/src/ap-field/number/index.vue.d.ts +2 -4
  195. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  196. package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
  197. package/lib/src/ap-field/select/index.vue.d.ts +3 -6
  198. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  199. package/lib/src/ap-field/text/index.vue2.js +1 -1
  200. package/lib/src/ap-field/text/password.vue.js +1 -1
  201. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  202. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  203. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  204. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  205. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  206. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  207. package/lib/src/ap-form/interface.d.ts +9 -5
  208. package/lib/src/ap-form/item/index.vue.d.ts +5 -10
  209. package/lib/src/ap-form/item/index.vue.js +1 -1
  210. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  211. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  212. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  213. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  214. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  215. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  216. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  217. package/lib/src/ap-form/provider/index.vue.js +1 -1
  218. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  219. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -8
  220. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  221. package/lib/src/ap-form/set/index.vue.js +1 -1
  222. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  223. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  224. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  225. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  226. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  227. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  228. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  229. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  230. package/lib/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  231. package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
  232. package/lib/src/ap-grid/index.vue.js +1 -1
  233. package/lib/src/ap-grid/interface.d.ts +32 -3
  234. package/lib/src/ap-grid/utils/table.js +1 -1
  235. package/lib/src/ap-list/index.vue.d.ts +2 -9
  236. package/lib/src/ap-list/index.vue.js +1 -1
  237. package/lib/src/ap-list/interface.d.ts +24 -3
  238. package/lib/src/ap-modal/interface.d.ts +2 -1
  239. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  240. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  241. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  242. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  243. package/lib/src/ap-table/constants.d.ts +22 -22
  244. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +24 -5
  245. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  246. package/lib/src/ap-table/interface.d.ts +17 -4
  247. package/lib/src/ap-table/utils.d.ts +21 -21
  248. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
  249. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  250. package/lib/src/business/ap-card/index.d.ts +2 -4
  251. package/lib/src/business/ap-card/interface.d.ts +5 -0
  252. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  253. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  254. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  255. package/lib/src/business/ap-copy/constans.js +1 -0
  256. package/lib/src/business/ap-copy/index.d.ts +102 -0
  257. package/lib/src/business/ap-copy/index.js +1 -0
  258. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  259. package/lib/src/business/ap-copy/interface.js +1 -0
  260. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  261. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  262. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  263. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  264. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  265. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  266. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  267. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  268. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  269. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  270. package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
  271. package/lib/src/business/ap-keep-alive/index.js +1 -0
  272. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  273. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  274. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  275. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  276. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  277. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  278. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  279. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  280. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  281. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  282. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  283. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  284. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  285. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  286. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  287. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  288. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  289. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  290. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  291. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  292. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  293. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  294. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  295. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  296. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  297. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  298. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  299. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  300. package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
  301. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  302. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  303. package/lib/src/business/ap-label/interface.d.ts +2 -3
  304. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  305. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  306. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  307. package/lib/src/business/ap-product-info/constans.js +1 -1
  308. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  309. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  310. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  311. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  312. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  313. package/lib/src/business/ap-radio-group/index.d.ts +66 -0
  314. package/lib/src/business/ap-radio-group/index.js +1 -0
  315. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  316. package/lib/src/business/ap-radio-group/interface.js +1 -0
  317. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  318. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  319. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  320. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  321. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  322. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  323. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  324. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  325. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  326. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  327. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  328. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  329. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  330. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  331. package/lib/src/business/ap-view/index.d.ts +12 -3
  332. package/lib/src/business/ap-view/interface.d.ts +7 -0
  333. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  334. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  335. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  336. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  337. package/lib/src/business/index.d.ts +3 -0
  338. package/lib/src/business/index.js +1 -1
  339. package/lib/src/components.d.ts +1 -0
  340. package/lib/src/editable-table/form-item.vue.js +1 -1
  341. package/lib/src/full-screen/interface.d.ts +5 -6
  342. package/lib/src/index.js +1 -1
  343. package/lib/src/locale/lang/en.js +1 -1
  344. package/lib/src/locale/lang/zh-cn.js +1 -1
  345. package/lib/src/mask/index.vue.js +1 -1
  346. package/lib/src/path-map.js +1 -1
  347. package/lib/src/resize-observer/interface.d.ts +2 -3
  348. package/lib/src/scroll-bar/interface.d.ts +7 -7
  349. package/lib/src/scroll-view/interface.d.ts +2 -3
  350. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  351. package/lib/src/splitter/Splitter.vue2.js +1 -1
  352. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  353. package/lib/src/tests/mock-warning.d.ts +1 -0
  354. package/lib/src/tests/utils.d.ts +8 -0
  355. package/lib/src/text/group.vue.js +1 -1
  356. package/lib/src/text/index.vue.js +1 -1
  357. package/lib/src/version.d.ts +2 -0
  358. package/lib/src/version.js +1 -0
  359. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  360. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  361. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  362. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  363. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  364. package/lib/test/setup.d.ts +5 -0
  365. package/package.json +18 -14
  366. package/theme/antd-global-overwrite/admin/alert.css +5 -18
  367. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  368. package/theme/antd-global-overwrite/admin/button.css +13 -13
  369. package/theme/antd-global-overwrite/admin/button.less +24 -24
  370. package/theme/antd-global-overwrite/admin/drawer.css +3 -0
  371. package/theme/antd-global-overwrite/admin/drawer.less +5 -0
  372. package/theme/antd-global-overwrite/admin/field.css +42 -0
  373. package/theme/antd-global-overwrite/admin/field.less +43 -0
  374. package/theme/antd-global-overwrite/admin/index.css +93 -631
  375. package/theme/antd-global-overwrite/admin/index.less +1 -3
  376. package/theme/antd-global-overwrite/admin/message.css +2 -9
  377. package/theme/antd-global-overwrite/admin/message.less +2 -10
  378. package/theme/antd-global-overwrite/admin/modal.css +20 -34
  379. package/theme/antd-global-overwrite/admin/modal.less +20 -38
  380. package/theme/antd-global-overwrite/admin/table.css +11 -251
  381. package/theme/antd-global-overwrite/admin/table.less +4 -132
  382. package/theme/antd-global-overwrite/aplus/alert.css +8 -18
  383. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  384. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  385. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  386. package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
  387. package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
  388. package/theme/antd-global-overwrite/aplus/field.css +36 -0
  389. package/theme/antd-global-overwrite/aplus/field.less +36 -0
  390. package/theme/antd-global-overwrite/aplus/index.css +93 -679
  391. package/theme/antd-global-overwrite/aplus/index.less +0 -3
  392. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  393. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  394. package/theme/antd-global-overwrite/aplus/modal.css +18 -39
  395. package/theme/antd-global-overwrite/aplus/modal.less +19 -45
  396. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  397. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  398. package/theme/ap-action/item-dropdown.css +3 -3
  399. package/theme/ap-action/item.css +21 -10
  400. package/theme/ap-action/item.less +18 -6
  401. package/theme/ap-appendix/ap-appendix.css +10 -10
  402. package/theme/ap-appendix/ap-appendix.less +6 -6
  403. package/theme/ap-attachment/ap-attachment.css +4 -4
  404. package/theme/ap-batch-action/ap-batch-action.css +6 -6
  405. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  406. package/theme/ap-button/ap-button.css +3 -3
  407. package/theme/ap-card/ap-card.css +4 -4
  408. package/theme/ap-card/ap-card.less +1 -1
  409. package/theme/ap-copy/ap-copy.css +96 -0
  410. package/theme/ap-copy/ap-copy.less +61 -0
  411. package/theme/ap-descriptions/ap-descriptions.css +9 -7
  412. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  413. package/theme/ap-download/ap-download.css +6 -6
  414. package/theme/ap-drawer/ap-drawer.css +66 -0
  415. package/theme/ap-drawer/ap-drawer.less +27 -0
  416. package/theme/ap-expand-alert/ap-expand-alert.css +4 -3
  417. package/theme/ap-expand-alert/ap-expand-alert.less +2 -2
  418. package/theme/ap-field/checkbox.css +3 -3
  419. package/theme/ap-field/index.css +3 -3
  420. package/theme/ap-field/number.css +3 -3
  421. package/theme/ap-field/radio.css +3 -3
  422. package/theme/ap-field/text-area.css +3 -3
  423. package/theme/ap-form/ap-form-item-group.css +3 -3
  424. package/theme/ap-form/ap-form-item.css +11 -8
  425. package/theme/ap-form/ap-form-item.less +8 -5
  426. package/theme/ap-form/drawer-form.css +3 -3
  427. package/theme/ap-form/index.css +22 -19
  428. package/theme/ap-form/item-text-group.css +3 -3
  429. package/theme/ap-form/item-text.css +3 -3
  430. package/theme/ap-form/modal-form.css +3 -3
  431. package/theme/ap-form/search-form-sorter.css +11 -11
  432. package/theme/ap-form/search-form-sorter.less +4 -4
  433. package/theme/ap-form/search-form.css +22 -19
  434. package/theme/ap-form/search-form.less +3 -3
  435. package/theme/ap-grid/editable.css +3 -3
  436. package/theme/ap-grid/index.css +70 -39
  437. package/theme/ap-grid/index.less +26 -8
  438. package/theme/ap-group-search/ap-extension-select.css +3 -3
  439. package/theme/ap-group-search/ap-group-search.css +3 -3
  440. package/theme/ap-group-search/ap-popover-select.css +3 -3
  441. package/theme/ap-image/ap-image.css +3 -3
  442. package/theme/ap-input-radio/ap-input-radio.css +3 -3
  443. package/theme/ap-label/ap-label.css +3 -3
  444. package/theme/ap-ladder/ap-ladder.css +6 -6
  445. package/theme/ap-layout/ap-info-layout.css +3 -3
  446. package/theme/ap-list/index.css +3 -3
  447. package/theme/ap-product-info/ap-product-info.css +23 -33
  448. package/theme/ap-product-info/ap-product-info.less +28 -42
  449. package/theme/ap-radio-group/ap-radio-group.css +66 -0
  450. package/theme/ap-radio-group/ap-radio-group.less +26 -0
  451. package/theme/ap-select-layout/ap-select-layout.css +5 -5
  452. package/theme/ap-size-input/ap-size-input.css +3 -3
  453. package/theme/ap-status/ap-status.css +3 -3
  454. package/theme/ap-summary/index.css +3 -3
  455. package/theme/ap-table/ap-table-index.css +3 -3
  456. package/theme/ap-table/ap-table-paragraph-ellipsis.css +4 -4
  457. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  458. package/theme/ap-table/ap-table.css +76 -46
  459. package/theme/ap-table/ap-table.less +19 -7
  460. package/theme/ap-table/setting/index.css +17 -12
  461. package/theme/ap-table/setting/modal.css +9 -5
  462. package/theme/ap-table/setting/modal.less +5 -1
  463. package/theme/ap-table/setting/select-group.css +3 -3
  464. package/theme/ap-table/setting/sortable-item-meta.css +5 -5
  465. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  466. package/theme/ap-table/setting/sortable-item.css +3 -3
  467. package/theme/ap-table/setting/sorter.css +9 -8
  468. package/theme/ap-table/setting/sorter.less +4 -4
  469. package/theme/ap-table-modal/index.css +91 -59
  470. package/theme/ap-table-modal/index.less +15 -13
  471. package/theme/ap-tag/ap-tag-group.css +3 -3
  472. package/theme/ap-tag/ap-tag.css +7 -7
  473. package/theme/ap-tag/ap-tag.less +1 -1
  474. package/theme/ap-title/ap-title.css +3 -3
  475. package/theme/ap-upload/index.css +4 -4
  476. package/theme/ap-upload/multiple-file.css +3 -3
  477. package/theme/ap-upload/picture.css +3 -3
  478. package/theme/ap-upload/single-file.css +4 -4
  479. package/theme/ap-upload/upload.css +3 -3
  480. package/theme/ap-upload-single/index.css +7 -7
  481. package/theme/ap-upload-single/index.less +4 -4
  482. package/theme/ap-view/ap-view.css +10 -10
  483. package/theme/ap-view/ap-view.less +7 -7
  484. package/theme/batch-input-group/index.css +5 -5
  485. package/theme/batch-input-group/popover-input.css +5 -5
  486. package/theme/batch-input-group/popover-input.less +2 -2
  487. package/theme/check-card/index.css +11 -11
  488. package/theme/check-card/index.less +5 -5
  489. package/theme/editable-table/index.css +40 -26
  490. package/theme/full-screen/index.css +3 -3
  491. package/theme/index.css +344 -244
  492. package/theme/index.less +3 -0
  493. package/theme/mask/index.css +3 -3
  494. package/theme/mixins/config.less +3 -3
  495. package/theme/mixins/mixins.css +3 -3
  496. package/theme/mixins/mixins.less +2 -2
  497. package/theme/scroll-bar/index.css +3 -3
  498. package/theme/scroll-view/index.css +3 -3
  499. package/theme/splitter/index.css +7 -7
  500. package/theme/splitter/index.less +1 -1
  501. package/theme/text/group.css +3 -3
  502. package/theme/text/index.css +8 -8
  503. package/theme/text/index.less +4 -4
  504. package/theme/ui-mode.css +51 -83
  505. package/theme/ui-mode.less +99 -83
  506. package/theme/work-order-modal/index.css +3 -3
@@ -1,7 +1,7 @@
1
1
  import { ApColumnType, ValueEnum, ValueEnumType } from './interface';
2
2
  import { ValueTypeRenderConfig } from '../config-provider';
3
3
  import { apTableRenderItemMap } from './constants';
4
- import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ComputedRef, ExtractPropTypes, PropType, CSSProperties, VNodeArrayChildren, RendererNode, RendererElement } from 'vue';
4
+ import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, PropType, CSSProperties, VNodeArrayChildren, RendererNode, RendererElement } from 'vue';
5
5
  import { EditableColumnType } from '../editable-table/interface';
6
6
  import { ColumnType, ColumnGroupType } from '@aplus-frontend/antdv/es/table';
7
7
  import { ApTableDynamicCompProps } from './components/interface';
@@ -534,7 +534,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
534
534
  }>, {
535
535
  focus: (options?: InputFocusOptions) => void;
536
536
  blur: () => void;
537
- resizableTextArea: ComputedRef<any>;
537
+ resizableTextArea: any;
538
538
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
539
539
  "update:value": (...args: any[]) => void;
540
540
  }, PublicProps, {
@@ -816,7 +816,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
816
816
  }>, {
817
817
  focus: (options?: InputFocusOptions) => void;
818
818
  blur: () => void;
819
- resizableTextArea: ComputedRef<any>;
819
+ resizableTextArea: any;
820
820
  }, {}, {}, {}, {
821
821
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
822
822
  mode: FieldMode;
@@ -863,13 +863,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
863
863
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
864
864
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
865
865
  $slots: Readonly<{
866
- label: any;
867
- help: any;
868
- extra: any;
866
+ label?: any;
867
+ help?: any;
868
+ extra?: any;
869
869
  }> & {
870
- label: any;
871
- help: any;
872
- extra: any;
870
+ label?: any;
871
+ help?: any;
872
+ extra?: any;
873
873
  };
874
874
  })) | ({
875
875
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemNumberProps> & Readonly<{}>, {
@@ -1681,13 +1681,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
1681
1681
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
1682
1682
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1683
1683
  $slots: Readonly<{
1684
- label: any;
1685
- help: any;
1686
- extra: any;
1684
+ label?: any;
1685
+ help?: any;
1686
+ extra?: any;
1687
1687
  }> & {
1688
- label: any;
1689
- help: any;
1690
- extra: any;
1688
+ label?: any;
1689
+ help?: any;
1690
+ extra?: any;
1691
1691
  };
1692
1692
  })) | ({
1693
1693
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemSelectProps> & Readonly<{}>, {
@@ -2467,13 +2467,13 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
2467
2467
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2468
2468
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
2469
2469
  $slots: Readonly<{
2470
- label: any;
2471
- help: any;
2472
- extra: any;
2470
+ label?: any;
2471
+ help?: any;
2472
+ extra?: any;
2473
2473
  }> & {
2474
- label: any;
2475
- help: any;
2476
- extra: any;
2474
+ label?: any;
2475
+ help?: any;
2476
+ extra?: any;
2477
2477
  };
2478
2478
  })) | ({
2479
2479
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemTreeSelectProps> & Readonly<{}>, {
@@ -1,10 +1,8 @@
1
- import { ApCardProps } from './interface';
1
+ import { ApCardSlots, ApCardProps } from './interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {}): any;
7
- };
5
+ slots: Readonly<ApCardSlots> & ApCardSlots;
8
6
  refs: {};
9
7
  rootEl: HTMLDivElement;
10
8
  };
@@ -1,62 +1,63 @@
1
- import { defineComponent as g, computed as r, createElementBlock as s, openBlock as t, normalizeStyle as C, normalizeClass as h, unref as u, createBlock as a, createCommentVNode as S, renderSlot as B, mergeProps as N, createSlots as $, withCtx as x, isVNode as P, resolveDynamicComponent as y, toDisplayString as _ } from "vue";
1
+ import { defineComponent as h, useSlots as $, computed as o, createElementBlock as a, openBlock as l, normalizeStyle as B, normalizeClass as N, unref as P, createBlock as s, createCommentVNode as y, renderSlot as m, mergeProps as b, createSlots as z, withCtx as k, isVNode as v, resolveDynamicComponent as _, toDisplayString as p } from "vue";
2
2
  import "../ap-title/ApTitle.vue.mjs";
3
- import { omit as b } from "lodash-unified";
3
+ import { omit as D } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
5
- import { useNamespace as z } from "../../config-provider/hooks/use-namespace.mjs";
6
- import D from "../ap-title/ApTitle.vue2.mjs";
7
- const V = { key: 1 }, j = { key: 1 }, G = /* @__PURE__ */ g({
5
+ import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
6
+ import j from "../ap-title/ApTitle.vue2.mjs";
7
+ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
8
8
  __name: "ApCard",
9
9
  props: {
10
10
  titleProps: {},
11
11
  padding: {}
12
12
  },
13
- setup(k) {
14
- const e = k, { b: f } = z("ap-card"), v = r(
15
- () => b((e == null ? void 0 : e.titleProps) || {}, ["prefix", "suffix"])
16
- ), c = r(() => {
17
- var n;
18
- return (n = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : n.length;
19
- }), p = r(() => e.padding ?? (c.value ? "14px 24px 24px" : "24px"));
20
- return (n, w) => {
21
- var m, d;
22
- return t(), s("div", {
23
- class: h([u(f)()]),
24
- style: C({
25
- padding: p.value
13
+ setup(S) {
14
+ const e = S, t = $(), { b: c } = V("ap-card"), g = o(
15
+ () => D((e == null ? void 0 : e.titleProps) || {}, ["prefix", "suffix"])
16
+ ), u = o(() => {
17
+ var i;
18
+ return (i = Object.keys((e == null ? void 0 : e.titleProps) || {})) == null ? void 0 : i.length;
19
+ }), C = o(() => e.padding ?? (u.value ? "12px 14px 14px" : "12px 14px"));
20
+ return (i, E) => {
21
+ var d, x;
22
+ return l(), a("div", {
23
+ class: N([P(c)()]),
24
+ style: B({
25
+ padding: C.value
26
26
  })
27
27
  }, [
28
- c.value ? (t(), a(D, N({
28
+ u.value || t != null && t.titlePrefix || t != null && t.titleSuffix ? (l(), s(j, b({
29
29
  key: 0,
30
- class: [`${u(f)()}-title`]
30
+ class: [`${P(c)()}-title`]
31
31
  }, {
32
- ...v.value
33
- }), $({ _: 2 }, [
34
- (m = e == null ? void 0 : e.titleProps) != null && m.suffix ? {
32
+ ...g.value
33
+ }), z({ _: 2 }, [
34
+ (d = e == null ? void 0 : e.titleProps) != null && d.suffix ? {
35
35
  name: "suffix",
36
- fn: x(() => {
37
- var i, o, l;
36
+ fn: k(() => {
37
+ var r, f, n;
38
38
  return [
39
- P((i = e == null ? void 0 : e.titleProps) == null ? void 0 : i.suffix) ? (t(), a(y((o = e == null ? void 0 : e.titleProps) == null ? void 0 : o.suffix), { key: 0 })) : (t(), s("div", V, _((l = e == null ? void 0 : e.titleProps) == null ? void 0 : l.suffix), 1))
39
+ t != null && t.titleSuffix ? m(i.$slots, "titleSuffix", { key: 0 }) : v((r = e == null ? void 0 : e.titleProps) == null ? void 0 : r.suffix) ? (l(), s(_((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix), { key: 1 })) : (l(), a("div", w, p((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), 1))
40
40
  ];
41
41
  }),
42
42
  key: "0"
43
43
  } : void 0,
44
- (d = e == null ? void 0 : e.titleProps) != null && d.prefix ? {
44
+ (x = e == null ? void 0 : e.titleProps) != null && x.prefix ? {
45
45
  name: "prefix",
46
- fn: x(() => {
47
- var i, o, l;
46
+ fn: k(() => {
47
+ var r, f, n;
48
48
  return [
49
- P((i = e == null ? void 0 : e.titleProps) == null ? void 0 : i.prefix) ? (t(), a(y((o = e == null ? void 0 : e.titleProps) == null ? void 0 : o.prefix), { key: 0 })) : (t(), s("div", j, _((l = e == null ? void 0 : e.titleProps) == null ? void 0 : l.prefix), 1))
49
+ t != null && t.titlePrefix ? m(i.$slots, "titlePrefix", { key: 0 }) : y("", !0),
50
+ v((r = e == null ? void 0 : e.titleProps) == null ? void 0 : r.prefix) ? (l(), s(_((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix), { key: 1 })) : (l(), a("div", A, p((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), 1))
50
51
  ];
51
52
  }),
52
53
  key: "1"
53
54
  } : void 0
54
- ]), 1040, ["class"])) : S("", !0),
55
- B(n.$slots, "default")
55
+ ]), 1040, ["class"])) : y("", !0),
56
+ m(i.$slots, "default")
56
57
  ], 6);
57
58
  };
58
59
  }
59
60
  });
60
61
  export {
61
- G as default
62
+ I as default
62
63
  };
@@ -1,5 +1,5 @@
1
1
  import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
- import { ApCardProps } from './interface';
2
+ import { ApCardProps, ApCardSlots } from './interface';
3
3
  export * from './interface';
4
4
  declare const ApCard: {
5
5
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
@@ -14,9 +14,7 @@ declare const ApCard: {
14
14
  __isTeleport?: never;
15
15
  __isSuspense?: never;
16
16
  } & ComponentOptionsBase<Readonly< ApCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
17
- $slots: {
18
- default?(_: {}): any;
19
- };
17
+ $slots: Readonly< ApCardSlots> & ApCardSlots;
20
18
  }) & ( Plugin & (new (...args: any[]) => {
21
19
  $props: {
22
20
  onClick?: () => void;
@@ -7,3 +7,8 @@ export interface ApCardProps {
7
7
  titleProps?: ApCardTitleProps;
8
8
  padding?: string;
9
9
  }
10
+ export interface ApCardSlots {
11
+ default?: () => any;
12
+ titlePrefix?: () => any;
13
+ titleSuffix?: () => any;
14
+ }
@@ -0,0 +1,52 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, CSSProperties, ComponentProvideOptions } from 'vue';
2
+ import { ApCopy } from './interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ text: {
5
+ type: PropType< ApCopy["text"]>;
6
+ default: string;
7
+ };
8
+ size: {
9
+ type: PropType< ApCopy["size"]>;
10
+ default: number;
11
+ };
12
+ textStyle: {
13
+ type: PropType< ApCopy["textStyle"]>;
14
+ default: string;
15
+ };
16
+ link: {
17
+ type: PropType< ApCopy["link"]>;
18
+ default: string;
19
+ };
20
+ disableCopy: {
21
+ type: PropType< ApCopy["disableCopy"]>;
22
+ default: boolean;
23
+ };
24
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
25
+ text: {
26
+ type: PropType< ApCopy["text"]>;
27
+ default: string;
28
+ };
29
+ size: {
30
+ type: PropType< ApCopy["size"]>;
31
+ default: number;
32
+ };
33
+ textStyle: {
34
+ type: PropType< ApCopy["textStyle"]>;
35
+ default: string;
36
+ };
37
+ link: {
38
+ type: PropType< ApCopy["link"]>;
39
+ default: string;
40
+ };
41
+ disableCopy: {
42
+ type: PropType< ApCopy["disableCopy"]>;
43
+ default: boolean;
44
+ };
45
+ }>> & Readonly<{}>, {
46
+ size: number | undefined;
47
+ link: string | undefined;
48
+ text: string | undefined;
49
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
50
+ disableCopy: boolean | undefined;
51
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
+ export default _default;
@@ -0,0 +1,79 @@
1
+ import { defineComponent as T, Text as p, isVNode as y, computed as m, createVNode as n, Fragment as b } from "vue";
2
+ import { ApCopyProps as h } from "./constans.mjs";
3
+ import { IconApAdLineCopy as k } from "@aplus-frontend/icon";
4
+ import "../../config-provider/index.mjs";
5
+ import { message as d } from "@aplus-frontend/antdv";
6
+ import { isNull as P, isUndefined as j } from "lodash-unified";
7
+ import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
8
+ import { useLocale as N } from "../../config-provider/hooks/use-locale.mjs";
9
+ const D = /* @__PURE__ */ T({
10
+ name: "CopyBtn",
11
+ props: h(),
12
+ setup(r, {
13
+ slots: a
14
+ }) {
15
+ const {
16
+ b: x,
17
+ e: l,
18
+ m: g
19
+ } = A("ap-copy"), {
20
+ t: u
21
+ } = N(), v = (t) => {
22
+ t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation(), navigator.clipboard.writeText(r.text || c() || "").then(() => {
23
+ d.success(u("ap.apCopy.copySuccess"));
24
+ }).catch(() => {
25
+ d.error(u("ap.apCopy.copyError"));
26
+ });
27
+ }, S = (t) => {
28
+ if (t.length === 1) {
29
+ const e = t[0];
30
+ if (e.type === p || e.type.toString() === "Symbol(Text)" || y(e) && typeof e.children == "string")
31
+ return !0;
32
+ }
33
+ return !1;
34
+ }, C = (t) => {
35
+ if (!t.length) return "";
36
+ const e = t[0];
37
+ return e.type === p || e.type.toString() === "Symbol(Text)" ? String(e.children) : y(e) && typeof e.children == "string" ? e.children : "";
38
+ }, c = () => {
39
+ var f;
40
+ const t = (f = a.default) == null ? void 0 : f.call(a);
41
+ return t && S(t) ? C(t) : null;
42
+ }, s = (t) => !(P(t) || j(t) || typeof t == "string" && t === ""), o = m(() => {
43
+ if (typeof r.textStyle == "string")
44
+ switch (r.textStyle) {
45
+ case "link":
46
+ return "text-link";
47
+ case "minor":
48
+ return "text-minor";
49
+ case "major":
50
+ return "text-major";
51
+ default:
52
+ return "text-major";
53
+ }
54
+ else if (typeof r.textStyle == "object")
55
+ return {
56
+ ...r.textStyle
57
+ };
58
+ return {};
59
+ }), i = m(() => c() || r.text || "");
60
+ return () => n(b, null, [n("div", {
61
+ class: [x()]
62
+ }, [n("div", {
63
+ class: [l("text"), typeof o.value == "string" && g(o.value)],
64
+ style: typeof o.value != "string" && o.value,
65
+ title: typeof o.value == "string" ? i.value : ""
66
+ }, [s(i.value) ? r.link ? n("a", {
67
+ href: r.link,
68
+ target: "_blank"
69
+ }, [i.value]) : i.value : "--"]), s(i.value) && !r.disableCopy && n("div", {
70
+ class: [l("copy-btn"), "copy-btn"],
71
+ onClick: r.disableCopy ? void 0 : v
72
+ }, [n(k, {
73
+ size: r.size
74
+ }, null)])])]);
75
+ }
76
+ });
77
+ export {
78
+ D as default
79
+ };
@@ -0,0 +1,24 @@
1
+ import { PropType } from 'vue';
2
+ import { ApCopy } from './interface';
3
+ export declare const ApCopyProps: () => {
4
+ text: {
5
+ type: PropType<ApCopy["text"]>;
6
+ default: string;
7
+ };
8
+ size: {
9
+ type: PropType<ApCopy["size"]>;
10
+ default: number;
11
+ };
12
+ textStyle: {
13
+ type: PropType<ApCopy["textStyle"]>;
14
+ default: string;
15
+ };
16
+ link: {
17
+ type: PropType<ApCopy["link"]>;
18
+ default: string;
19
+ };
20
+ disableCopy: {
21
+ type: PropType<ApCopy["disableCopy"]>;
22
+ default: boolean;
23
+ };
24
+ };
@@ -0,0 +1,25 @@
1
+ const t = () => ({
2
+ text: {
3
+ type: String,
4
+ default: ""
5
+ },
6
+ size: {
7
+ type: Number,
8
+ default: 14
9
+ },
10
+ textStyle: {
11
+ type: [String, Object],
12
+ default: "major"
13
+ },
14
+ link: {
15
+ type: String,
16
+ default: ""
17
+ },
18
+ disableCopy: {
19
+ type: Boolean,
20
+ default: !1
21
+ }
22
+ });
23
+ export {
24
+ t as ApCopyProps
25
+ };
@@ -0,0 +1,102 @@
1
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
+ import { ApCopy } from './interface';
3
+ export * from './interface';
4
+ declare const ApCopy: {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
6
+ text: {
7
+ type: PropType< ApCopy["text"]>;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: PropType< ApCopy["size"]>;
12
+ default: number;
13
+ };
14
+ textStyle: {
15
+ type: PropType< ApCopy["textStyle"]>;
16
+ default: string;
17
+ };
18
+ link: {
19
+ type: PropType< ApCopy["link"]>;
20
+ default: string;
21
+ };
22
+ disableCopy: {
23
+ type: PropType< ApCopy["disableCopy"]>;
24
+ default: boolean;
25
+ };
26
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
27
+ size: number | undefined;
28
+ link: string | undefined;
29
+ text: string | undefined;
30
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
31
+ disableCopy: boolean | undefined;
32
+ }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
33
+ P: {};
34
+ B: {};
35
+ D: {};
36
+ C: {};
37
+ M: {};
38
+ Defaults: {};
39
+ }, Readonly< ExtractPropTypes<{
40
+ text: {
41
+ type: PropType< ApCopy["text"]>;
42
+ default: string;
43
+ };
44
+ size: {
45
+ type: PropType< ApCopy["size"]>;
46
+ default: number;
47
+ };
48
+ textStyle: {
49
+ type: PropType< ApCopy["textStyle"]>;
50
+ default: string;
51
+ };
52
+ link: {
53
+ type: PropType< ApCopy["link"]>;
54
+ default: string;
55
+ };
56
+ disableCopy: {
57
+ type: PropType< ApCopy["disableCopy"]>;
58
+ default: boolean;
59
+ };
60
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
61
+ size: number | undefined;
62
+ link: string | undefined;
63
+ text: string | undefined;
64
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
65
+ disableCopy: boolean | undefined;
66
+ }>;
67
+ __isFragment?: never;
68
+ __isTeleport?: never;
69
+ __isSuspense?: never;
70
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
71
+ text: {
72
+ type: PropType< ApCopy["text"]>;
73
+ default: string;
74
+ };
75
+ size: {
76
+ type: PropType< ApCopy["size"]>;
77
+ default: number;
78
+ };
79
+ textStyle: {
80
+ type: PropType< ApCopy["textStyle"]>;
81
+ default: string;
82
+ };
83
+ link: {
84
+ type: PropType< ApCopy["link"]>;
85
+ default: string;
86
+ };
87
+ disableCopy: {
88
+ type: PropType< ApCopy["disableCopy"]>;
89
+ default: boolean;
90
+ };
91
+ }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
92
+ size: number | undefined;
93
+ link: string | undefined;
94
+ text: string | undefined;
95
+ textStyle: "link" | CSSProperties | "major" | "minor" | undefined;
96
+ disableCopy: boolean | undefined;
97
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
98
+ $props: {
99
+ onClick?: () => void;
100
+ };
101
+ }));
102
+ export { ApCopy };
@@ -0,0 +1,7 @@
1
+ import { withInstall as o } from "@aplus-frontend/utils";
2
+ import p from "./ApCopy.mjs";
3
+ import "./interface.mjs";
4
+ const i = o(p);
5
+ export {
6
+ i as ApCopy
7
+ };
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'vue';
2
+ export interface ApCopy {
3
+ text?: string;
4
+ size?: number;
5
+ textStyle?: 'major' | 'minor' | 'link' | CSSProperties;
6
+ link?: string;
7
+ disableCopy?: boolean;
8
+ }
File without changes
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui/theme/ap-copy/ap-copy.css';
File without changes
@@ -0,0 +1 @@
1
+ import '@aplus-frontend/ui/theme/ap-copy/ap-copy.less';