@aplus-frontend/ui 0.6.0-beta.8 → 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 (530) 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 +13 -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/components/popover-filter.vue.d.ts +131 -2
  37. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
  38. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +79 -71
  39. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +31 -13
  40. package/es/src/ap-form/search-form/index.vue.d.ts +2 -2
  41. package/es/src/ap-form/search-form/index.vue.mjs +99 -97
  42. package/es/src/ap-form/set/index.vue.mjs +20 -20
  43. package/es/src/ap-grid/editable/form-item.vue.mjs +39 -36
  44. package/es/src/ap-grid/editable/index.vue.mjs +13 -10
  45. package/es/src/ap-grid/hooks/use-editable-columns.mjs +17 -17
  46. package/es/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  47. package/es/src/ap-grid/hooks/use-inner-params.mjs +24 -35
  48. package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
  49. package/es/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  50. package/es/src/ap-grid/hooks/use-row-selection.mjs +122 -0
  51. package/es/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  52. package/es/src/ap-grid/hooks/use-table-style.mjs +26 -0
  53. package/es/src/ap-grid/index.vue.mjs +295 -243
  54. package/es/src/ap-grid/interface.d.ts +32 -3
  55. package/es/src/ap-grid/utils/table.mjs +15 -15
  56. package/es/src/ap-list/index.vue.d.ts +2 -9
  57. package/es/src/ap-list/index.vue.mjs +113 -103
  58. package/es/src/ap-list/interface.d.ts +24 -3
  59. package/es/src/ap-modal/interface.d.ts +2 -1
  60. package/es/src/ap-modal/utils/createModalStream.mjs +24 -24
  61. package/es/src/ap-table/ap-table.vue.d.ts +10 -2
  62. package/es/src/ap-table/ap-table.vue2.mjs +86 -82
  63. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -44
  64. package/es/src/ap-table/constants.d.ts +22 -22
  65. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +25 -6
  66. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +158 -130
  67. package/es/src/ap-table/interface.d.ts +17 -4
  68. package/es/src/ap-table/utils.d.ts +21 -21
  69. package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
  70. package/es/src/business/ap-card/ApCard.vue.d.ts +2 -4
  71. package/es/src/business/ap-card/ApCard.vue2.mjs +34 -33
  72. package/es/src/business/ap-card/index.d.ts +2 -4
  73. package/es/src/business/ap-card/interface.d.ts +5 -0
  74. package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
  75. package/es/src/business/ap-copy/ApCopy.mjs +79 -0
  76. package/es/src/business/ap-copy/constans.d.ts +24 -0
  77. package/es/src/business/ap-copy/constans.mjs +25 -0
  78. package/es/src/business/ap-copy/index.d.ts +102 -0
  79. package/es/src/business/ap-copy/index.mjs +7 -0
  80. package/es/src/business/ap-copy/interface.d.ts +8 -0
  81. package/es/src/business/ap-copy/interface.mjs +1 -0
  82. package/es/src/business/ap-copy/style/css.d.ts +0 -0
  83. package/es/src/business/ap-copy/style/css.js +1 -0
  84. package/es/src/business/ap-copy/style/index.d.ts +0 -0
  85. package/es/src/business/ap-copy/style/index.js +1 -0
  86. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +92 -71
  87. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
  88. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
  89. package/es/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  90. package/es/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  91. package/es/src/business/ap-keep-alive/cacher/lru-cacher.mjs +43 -0
  92. package/es/src/business/ap-keep-alive/hook.d.ts +10 -0
  93. package/es/src/business/ap-keep-alive/hook.mjs +33 -0
  94. package/es/src/business/ap-keep-alive/index.d.ts +108 -0
  95. package/es/src/business/ap-keep-alive/index.mjs +15 -0
  96. package/es/src/business/ap-keep-alive/interface.d.ts +36 -0
  97. package/es/src/business/ap-keep-alive/interface.mjs +54 -0
  98. package/es/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  99. package/es/src/business/ap-keep-alive/keep-alive.mjs +154 -0
  100. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  101. package/es/src/business/ap-keep-alive/keeper/ap-form-keeper.mjs +21 -0
  102. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  103. package/es/src/business/ap-keep-alive/keeper/ap-grid-keeper.mjs +27 -0
  104. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  105. package/es/src/business/ap-keep-alive/keeper/ap-list-keeper.mjs +18 -0
  106. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  107. package/es/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.mjs +17 -0
  108. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  109. package/es/src/business/ap-keep-alive/keeper/ap-search-form-keeper.mjs +18 -0
  110. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  111. package/es/src/business/ap-keep-alive/keeper/ap-table-keeper.mjs +18 -0
  112. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  113. package/es/src/business/ap-keep-alive/keeper/ap-view-keeper.mjs +12 -0
  114. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  115. package/es/src/business/ap-keep-alive/keeper/edit-grid-keeper.mjs +18 -0
  116. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  117. package/es/src/business/ap-keep-alive/keeper/edit-table-keeper.mjs +18 -0
  118. package/es/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  119. package/es/src/business/ap-keep-alive/keeper/index.mjs +28 -0
  120. package/es/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  121. package/es/src/business/ap-keep-alive/keeper/step-keeper.mjs +17 -0
  122. package/es/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  123. package/es/src/business/ap-keep-alive/keeper/tab-keeper.mjs +17 -0
  124. package/es/src/business/ap-keep-alive/utils.d.ts +23 -0
  125. package/es/src/business/ap-keep-alive/utils.mjs +42 -0
  126. package/es/src/business/ap-label/constans.mjs +1 -1
  127. package/es/src/business/ap-label/group/ApLabelGroup.mjs +15 -16
  128. package/es/src/business/ap-label/interface.d.ts +2 -3
  129. package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  130. package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -54
  131. package/es/src/business/ap-product-info/constans.d.ts +4 -0
  132. package/es/src/business/ap-product-info/constans.mjs +4 -0
  133. package/es/src/business/ap-product-info/index.d.ts +15 -0
  134. package/es/src/business/ap-product-info/interface.d.ts +1 -0
  135. package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  136. package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
  137. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +73 -0
  138. package/es/src/business/ap-radio-group/index.d.ts +66 -0
  139. package/es/src/business/ap-radio-group/index.mjs +8 -0
  140. package/es/src/business/ap-radio-group/interface.d.ts +11 -0
  141. package/es/src/business/ap-radio-group/interface.mjs +1 -0
  142. package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
  143. package/es/src/business/ap-radio-group/style/css.js +1 -0
  144. package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
  145. package/es/src/business/ap-radio-group/style/index.js +1 -0
  146. package/es/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  147. package/es/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  148. package/es/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  149. package/es/src/business/ap-table-modal/index.d.ts +32 -5
  150. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  151. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +43 -42
  152. package/es/src/business/ap-view/ap-view.vue.d.ts +4 -1
  153. package/es/src/business/ap-view/ap-view.vue2.mjs +135 -115
  154. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  155. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
  156. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  157. package/es/src/business/ap-view/index.d.ts +12 -3
  158. package/es/src/business/ap-view/interface.d.ts +7 -0
  159. package/es/src/business/batch-input-group/form-item.vue.mjs +14 -13
  160. package/es/src/business/batch-input-group/index.vue.mjs +10 -9
  161. package/es/src/business/hooks/usePageListApGrid.mjs +33 -28
  162. package/es/src/business/hooks/usePageListApTable.d.ts +4 -1
  163. package/es/src/business/index.d.ts +3 -0
  164. package/es/src/business/index.mjs +36 -30
  165. package/es/src/components.d.ts +1 -0
  166. package/es/src/editable-table/form-item.vue.mjs +23 -23
  167. package/es/src/full-screen/interface.d.ts +5 -6
  168. package/es/src/index.mjs +112 -97
  169. package/es/src/locale/lang/en.mjs +4 -0
  170. package/es/src/locale/lang/zh-cn.mjs +4 -0
  171. package/es/src/mask/index.vue.mjs +21 -20
  172. package/es/src/path-map.mjs +3 -1
  173. package/es/src/resize-observer/interface.d.ts +2 -3
  174. package/es/src/scroll-bar/interface.d.ts +7 -7
  175. package/es/src/scroll-view/interface.d.ts +2 -3
  176. package/es/src/splitter/SplitBar.vue2.mjs +1 -0
  177. package/es/src/splitter/Splitter.vue2.mjs +1 -0
  178. package/es/src/tests/mock-resize-observer.d.ts +2 -0
  179. package/es/src/tests/mock-warning.d.ts +1 -0
  180. package/es/src/tests/utils.d.ts +8 -0
  181. package/es/src/text/group.vue.mjs +7 -6
  182. package/es/src/text/index.vue.mjs +20 -19
  183. package/es/src/version.d.ts +2 -0
  184. package/es/src/version.mjs +4 -0
  185. package/es/src/work-order-modal/createWorkOrder.d.ts +2 -1
  186. package/es/src/work-order-modal/createWorkOrder.mjs +19 -15
  187. package/es/src/work-order-modal/interfaces.d.ts +4 -0
  188. package/es/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  189. package/es/src/work-order-modal/work-order-modal.vue.mjs +120 -105
  190. package/es/test/setup.d.ts +5 -0
  191. package/lib/index.js +1 -1
  192. package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
  193. package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
  194. package/lib/src/ap-drawer/components/ApDrawerClose.vue.d.ts +7 -0
  195. package/lib/src/ap-drawer/components/ApDrawerClose.vue.js +1 -0
  196. package/lib/src/ap-drawer/components/ApDrawerClose.vue2.js +1 -0
  197. package/lib/src/ap-drawer/index.d.ts +2 -0
  198. package/lib/src/ap-drawer/index.js +1 -1
  199. package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
  200. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  201. package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
  202. package/lib/src/ap-field/number/index.vue.d.ts +2 -4
  203. package/lib/src/ap-field/radio/index.vue.d.ts +2 -4
  204. package/lib/src/ap-field/rate/index.vue.d.ts +2 -4
  205. package/lib/src/ap-field/select/index.vue.d.ts +3 -6
  206. package/lib/src/ap-field/slider/index.vue.d.ts +2 -4
  207. package/lib/src/ap-field/text/index.vue2.js +1 -1
  208. package/lib/src/ap-field/text/password.vue.js +1 -1
  209. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  210. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  211. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  212. package/lib/src/ap-form/dependency/index.vue.js +1 -1
  213. package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -7
  214. package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
  215. package/lib/src/ap-form/interface.d.ts +13 -5
  216. package/lib/src/ap-form/item/index.vue.d.ts +5 -10
  217. package/lib/src/ap-form/item/index.vue.js +1 -1
  218. package/lib/src/ap-form/item-group/index.vue.js +1 -1
  219. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  220. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  221. package/lib/src/ap-form/items/text-area/index.vue.d.ts +5 -5
  222. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  223. package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -7
  224. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  225. package/lib/src/ap-form/provider/index.vue.js +1 -1
  226. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
  227. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  228. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
  229. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  230. package/lib/src/ap-form/search-form/index.vue.d.ts +2 -2
  231. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  232. package/lib/src/ap-form/set/index.vue.js +1 -1
  233. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  234. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  235. package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -1
  236. package/lib/src/ap-grid/hooks/use-inner-params.d.ts +2 -1
  237. package/lib/src/ap-grid/hooks/use-inner-params.js +1 -1
  238. package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
  239. package/lib/src/ap-grid/hooks/use-row-selection.d.ts +100 -0
  240. package/lib/src/ap-grid/hooks/use-row-selection.js +1 -0
  241. package/lib/src/ap-grid/hooks/use-table-style.d.ts +16 -0
  242. package/lib/src/ap-grid/hooks/use-table-style.js +1 -0
  243. package/lib/src/ap-grid/index.vue.js +1 -1
  244. package/lib/src/ap-grid/interface.d.ts +32 -3
  245. package/lib/src/ap-grid/utils/table.js +1 -1
  246. package/lib/src/ap-list/index.vue.d.ts +2 -9
  247. package/lib/src/ap-list/index.vue.js +1 -1
  248. package/lib/src/ap-list/interface.d.ts +24 -3
  249. package/lib/src/ap-modal/interface.d.ts +2 -1
  250. package/lib/src/ap-modal/utils/createModalStream.js +1 -1
  251. package/lib/src/ap-table/ap-table.vue.d.ts +10 -2
  252. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  253. package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
  254. package/lib/src/ap-table/constants.d.ts +22 -22
  255. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +25 -6
  256. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
  257. package/lib/src/ap-table/interface.d.ts +17 -4
  258. package/lib/src/ap-table/utils.d.ts +21 -21
  259. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  260. package/lib/src/business/ap-card/ApCard.vue.d.ts +2 -4
  261. package/lib/src/business/ap-card/ApCard.vue2.js +1 -1
  262. package/lib/src/business/ap-card/index.d.ts +2 -4
  263. package/lib/src/business/ap-card/interface.d.ts +5 -0
  264. package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
  265. package/lib/src/business/ap-copy/ApCopy.js +1 -0
  266. package/lib/src/business/ap-copy/constans.d.ts +24 -0
  267. package/lib/src/business/ap-copy/constans.js +1 -0
  268. package/lib/src/business/ap-copy/index.d.ts +102 -0
  269. package/lib/src/business/ap-copy/index.js +1 -0
  270. package/lib/src/business/ap-copy/interface.d.ts +8 -0
  271. package/lib/src/business/ap-copy/interface.js +1 -0
  272. package/lib/src/business/ap-copy/style/css.cjs +1 -0
  273. package/lib/src/business/ap-copy/style/css.d.ts +0 -0
  274. package/lib/src/business/ap-copy/style/index.cjs +1 -0
  275. package/lib/src/business/ap-copy/style/index.d.ts +0 -0
  276. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
  277. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
  278. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  279. package/lib/src/business/ap-keep-alive/cacher/cacher.d.ts +10 -0
  280. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.d.ts +16 -0
  281. package/lib/src/business/ap-keep-alive/cacher/lru-cacher.js +1 -0
  282. package/lib/src/business/ap-keep-alive/hook.d.ts +10 -0
  283. package/lib/src/business/ap-keep-alive/hook.js +1 -0
  284. package/lib/src/business/ap-keep-alive/index.d.ts +108 -0
  285. package/lib/src/business/ap-keep-alive/index.js +1 -0
  286. package/lib/src/business/ap-keep-alive/interface.d.ts +36 -0
  287. package/lib/src/business/ap-keep-alive/interface.js +1 -0
  288. package/lib/src/business/ap-keep-alive/keep-alive.d.ts +54 -0
  289. package/lib/src/business/ap-keep-alive/keep-alive.js +1 -0
  290. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.d.ts +7 -0
  291. package/lib/src/business/ap-keep-alive/keeper/ap-form-keeper.js +1 -0
  292. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.d.ts +14 -0
  293. package/lib/src/business/ap-keep-alive/keeper/ap-grid-keeper.js +1 -0
  294. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.d.ts +13 -0
  295. package/lib/src/business/ap-keep-alive/keeper/ap-list-keeper.js +1 -0
  296. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.d.ts +6 -0
  297. package/lib/src/business/ap-keep-alive/keeper/ap-radio-group-keeper.js +1 -0
  298. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.d.ts +7 -0
  299. package/lib/src/business/ap-keep-alive/keeper/ap-search-form-keeper.js +1 -0
  300. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.d.ts +13 -0
  301. package/lib/src/business/ap-keep-alive/keeper/ap-table-keeper.js +1 -0
  302. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.d.ts +6 -0
  303. package/lib/src/business/ap-keep-alive/keeper/ap-view-keeper.js +1 -0
  304. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.d.ts +6 -0
  305. package/lib/src/business/ap-keep-alive/keeper/edit-grid-keeper.js +1 -0
  306. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.d.ts +6 -0
  307. package/lib/src/business/ap-keep-alive/keeper/edit-table-keeper.js +1 -0
  308. package/lib/src/business/ap-keep-alive/keeper/index.d.ts +3 -0
  309. package/lib/src/business/ap-keep-alive/keeper/index.js +1 -0
  310. package/lib/src/business/ap-keep-alive/keeper/step-keeper.d.ts +6 -0
  311. package/lib/src/business/ap-keep-alive/keeper/step-keeper.js +1 -0
  312. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.d.ts +6 -0
  313. package/lib/src/business/ap-keep-alive/keeper/tab-keeper.js +1 -0
  314. package/lib/src/business/ap-keep-alive/utils.d.ts +23 -0
  315. package/lib/src/business/ap-keep-alive/utils.js +1 -0
  316. package/lib/src/business/ap-label/constans.js +1 -1
  317. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  318. package/lib/src/business/ap-label/interface.d.ts +2 -3
  319. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
  320. package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
  321. package/lib/src/business/ap-product-info/constans.d.ts +4 -0
  322. package/lib/src/business/ap-product-info/constans.js +1 -1
  323. package/lib/src/business/ap-product-info/index.d.ts +15 -0
  324. package/lib/src/business/ap-product-info/interface.d.ts +1 -0
  325. package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +21 -0
  326. package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
  327. package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
  328. package/lib/src/business/ap-radio-group/index.d.ts +66 -0
  329. package/lib/src/business/ap-radio-group/index.js +1 -0
  330. package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
  331. package/lib/src/business/ap-radio-group/interface.js +1 -0
  332. package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
  333. package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
  334. package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
  335. package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
  336. package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.d.ts +4 -1
  337. package/lib/src/business/ap-table-modal/hooks/use-table-modal.d.ts +4 -1
  338. package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +4 -1
  339. package/lib/src/business/ap-table-modal/index.d.ts +32 -5
  340. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +14 -3
  341. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  342. package/lib/src/business/ap-view/ap-view.vue.d.ts +4 -1
  343. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  344. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
  345. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  346. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +1 -1
  347. package/lib/src/business/ap-view/index.d.ts +12 -3
  348. package/lib/src/business/ap-view/interface.d.ts +7 -0
  349. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  350. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  351. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  352. package/lib/src/business/hooks/usePageListApTable.d.ts +4 -1
  353. package/lib/src/business/index.d.ts +3 -0
  354. package/lib/src/business/index.js +1 -1
  355. package/lib/src/components.d.ts +1 -0
  356. package/lib/src/editable-table/form-item.vue.js +1 -1
  357. package/lib/src/full-screen/interface.d.ts +5 -6
  358. package/lib/src/index.js +1 -1
  359. package/lib/src/locale/lang/en.js +1 -1
  360. package/lib/src/locale/lang/zh-cn.js +1 -1
  361. package/lib/src/mask/index.vue.js +1 -1
  362. package/lib/src/path-map.js +1 -1
  363. package/lib/src/resize-observer/interface.d.ts +2 -3
  364. package/lib/src/scroll-bar/interface.d.ts +7 -7
  365. package/lib/src/scroll-view/interface.d.ts +2 -3
  366. package/lib/src/splitter/SplitBar.vue2.js +1 -1
  367. package/lib/src/splitter/Splitter.vue2.js +1 -1
  368. package/lib/src/tests/mock-resize-observer.d.ts +2 -0
  369. package/lib/src/tests/mock-warning.d.ts +1 -0
  370. package/lib/src/tests/utils.d.ts +8 -0
  371. package/lib/src/text/group.vue.js +1 -1
  372. package/lib/src/text/index.vue.js +1 -1
  373. package/lib/src/version.d.ts +2 -0
  374. package/lib/src/version.js +1 -0
  375. package/lib/src/work-order-modal/createWorkOrder.d.ts +2 -1
  376. package/lib/src/work-order-modal/createWorkOrder.js +1 -1
  377. package/lib/src/work-order-modal/interfaces.d.ts +4 -0
  378. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +1 -1
  379. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  380. package/lib/test/setup.d.ts +5 -0
  381. package/package.json +18 -14
  382. package/theme/antd-global-overwrite/admin/alert.css +5 -18
  383. package/theme/antd-global-overwrite/admin/alert.less +25 -36
  384. package/theme/antd-global-overwrite/admin/button.css +13 -13
  385. package/theme/antd-global-overwrite/admin/button.less +24 -24
  386. package/theme/antd-global-overwrite/admin/drawer.css +3 -0
  387. package/theme/antd-global-overwrite/admin/drawer.less +5 -0
  388. package/theme/antd-global-overwrite/admin/field.css +42 -0
  389. package/theme/antd-global-overwrite/admin/field.less +43 -0
  390. package/theme/antd-global-overwrite/admin/index.css +93 -631
  391. package/theme/antd-global-overwrite/admin/index.less +1 -3
  392. package/theme/antd-global-overwrite/admin/message.css +2 -9
  393. package/theme/antd-global-overwrite/admin/message.less +2 -10
  394. package/theme/antd-global-overwrite/admin/modal.css +20 -34
  395. package/theme/antd-global-overwrite/admin/modal.less +20 -38
  396. package/theme/antd-global-overwrite/admin/table.css +11 -251
  397. package/theme/antd-global-overwrite/admin/table.less +4 -132
  398. package/theme/antd-global-overwrite/aplus/alert.css +8 -18
  399. package/theme/antd-global-overwrite/aplus/alert.less +27 -34
  400. package/theme/antd-global-overwrite/aplus/button.css +20 -20
  401. package/theme/antd-global-overwrite/aplus/button.less +24 -24
  402. package/theme/antd-global-overwrite/aplus/drawer.css +3 -0
  403. package/theme/antd-global-overwrite/aplus/drawer.less +5 -0
  404. package/theme/antd-global-overwrite/aplus/field.css +36 -0
  405. package/theme/antd-global-overwrite/aplus/field.less +36 -0
  406. package/theme/antd-global-overwrite/aplus/index.css +93 -679
  407. package/theme/antd-global-overwrite/aplus/index.less +0 -3
  408. package/theme/antd-global-overwrite/aplus/message.css +2 -9
  409. package/theme/antd-global-overwrite/aplus/message.less +2 -10
  410. package/theme/antd-global-overwrite/aplus/modal.css +18 -39
  411. package/theme/antd-global-overwrite/aplus/modal.less +19 -45
  412. package/theme/antd-global-overwrite/aplus/table.css +11 -236
  413. package/theme/antd-global-overwrite/aplus/table.less +4 -134
  414. package/theme/ap-action/item-dropdown.css +4 -4
  415. package/theme/ap-action/item.css +23 -12
  416. package/theme/ap-action/item.less +18 -6
  417. package/theme/ap-appendix/ap-appendix.css +13 -13
  418. package/theme/ap-appendix/ap-appendix.less +8 -8
  419. package/theme/ap-attachment/ap-attachment.css +6 -5
  420. package/theme/ap-attachment/ap-attachment.less +2 -2
  421. package/theme/ap-batch-action/ap-batch-action.css +7 -7
  422. package/theme/ap-batch-action/ap-batch-action.less +3 -3
  423. package/theme/ap-button/ap-button.css +4 -4
  424. package/theme/ap-card/ap-card.css +5 -5
  425. package/theme/ap-card/ap-card.less +1 -1
  426. package/theme/ap-copy/ap-copy.css +96 -0
  427. package/theme/ap-copy/ap-copy.less +61 -0
  428. package/theme/ap-descriptions/ap-descriptions.css +10 -8
  429. package/theme/ap-descriptions/ap-descriptions.less +6 -4
  430. package/theme/ap-download/ap-download.css +7 -7
  431. package/theme/ap-drawer/ap-drawer.css +66 -0
  432. package/theme/ap-drawer/ap-drawer.less +27 -0
  433. package/theme/ap-expand-alert/ap-expand-alert.css +5 -4
  434. package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
  435. package/theme/ap-field/checkbox.css +4 -4
  436. package/theme/ap-field/index.css +4 -4
  437. package/theme/ap-field/number.css +4 -4
  438. package/theme/ap-field/radio.css +4 -4
  439. package/theme/ap-field/text-area.css +4 -4
  440. package/theme/ap-form/ap-form-item-group.css +4 -4
  441. package/theme/ap-form/ap-form-item.css +12 -9
  442. package/theme/ap-form/ap-form-item.less +8 -5
  443. package/theme/ap-form/drawer-form.css +4 -4
  444. package/theme/ap-form/index.css +34 -22
  445. package/theme/ap-form/item-text-group.css +4 -4
  446. package/theme/ap-form/item-text.css +4 -4
  447. package/theme/ap-form/modal-form.css +4 -4
  448. package/theme/ap-form/search-form-sorter.css +17 -16
  449. package/theme/ap-form/search-form-sorter.less +5 -4
  450. package/theme/ap-form/search-form.css +34 -22
  451. package/theme/ap-form/search-form.less +9 -1
  452. package/theme/ap-grid/editable.css +4 -4
  453. package/theme/ap-grid/index.css +83 -44
  454. package/theme/ap-grid/index.less +26 -9
  455. package/theme/ap-group-search/ap-extension-select.css +4 -4
  456. package/theme/ap-group-search/ap-group-search.css +4 -4
  457. package/theme/ap-group-search/ap-popover-select.css +4 -4
  458. package/theme/ap-image/ap-image.css +4 -4
  459. package/theme/ap-input-radio/ap-input-radio.css +4 -4
  460. package/theme/ap-label/ap-label.css +4 -4
  461. package/theme/ap-ladder/ap-ladder.css +7 -6
  462. package/theme/ap-ladder/ap-ladder.less +1 -0
  463. package/theme/ap-layout/ap-info-layout.css +4 -4
  464. package/theme/ap-list/index.css +4 -4
  465. package/theme/ap-product-info/ap-product-info.css +24 -34
  466. package/theme/ap-product-info/ap-product-info.less +28 -42
  467. package/theme/ap-radio-group/ap-radio-group.css +66 -0
  468. package/theme/ap-radio-group/ap-radio-group.less +26 -0
  469. package/theme/ap-select-layout/ap-select-layout.css +6 -6
  470. package/theme/ap-size-input/ap-size-input.css +4 -4
  471. package/theme/ap-status/ap-status.css +5 -5
  472. package/theme/ap-status/ap-status.less +1 -1
  473. package/theme/ap-summary/index.css +4 -4
  474. package/theme/ap-table/ap-table-index.css +4 -4
  475. package/theme/ap-table/ap-table-paragraph-ellipsis.css +5 -5
  476. package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
  477. package/theme/ap-table/ap-table.css +90 -52
  478. package/theme/ap-table/ap-table.less +19 -7
  479. package/theme/ap-table/setting/index.css +19 -15
  480. package/theme/ap-table/setting/modal.css +11 -7
  481. package/theme/ap-table/setting/modal.less +5 -1
  482. package/theme/ap-table/setting/select-group.css +4 -4
  483. package/theme/ap-table/setting/sortable-item-meta.css +6 -6
  484. package/theme/ap-table/setting/sortable-item-meta.less +2 -2
  485. package/theme/ap-table/setting/sortable-item.css +4 -4
  486. package/theme/ap-table/setting/sorter.css +10 -10
  487. package/theme/ap-table/setting/sorter.less +4 -4
  488. package/theme/ap-table-modal/index.css +105 -65
  489. package/theme/ap-table-modal/index.less +15 -13
  490. package/theme/ap-tag/ap-tag-group.css +6 -6
  491. package/theme/ap-tag/ap-tag-group.less +2 -3
  492. package/theme/ap-tag/ap-tag.css +10 -10
  493. package/theme/ap-tag/ap-tag.less +4 -4
  494. package/theme/ap-title/ap-title.css +9 -7
  495. package/theme/ap-title/ap-title.less +5 -3
  496. package/theme/ap-upload/index.css +9 -9
  497. package/theme/ap-upload/multiple-file.css +5 -5
  498. package/theme/ap-upload/multiple-file.less +1 -1
  499. package/theme/ap-upload/picture.css +6 -6
  500. package/theme/ap-upload/picture.less +2 -2
  501. package/theme/ap-upload/single-file.css +6 -6
  502. package/theme/ap-upload/single-file.less +2 -2
  503. package/theme/ap-upload/upload.css +4 -4
  504. package/theme/ap-upload-single/index.css +8 -8
  505. package/theme/ap-upload-single/index.less +4 -4
  506. package/theme/ap-view/ap-view.css +11 -11
  507. package/theme/ap-view/ap-view.less +7 -7
  508. package/theme/batch-input-group/index.css +7 -6
  509. package/theme/batch-input-group/popover-input.css +7 -6
  510. package/theme/batch-input-group/popover-input.less +3 -2
  511. package/theme/check-card/index.css +15 -15
  512. package/theme/check-card/index.less +5 -5
  513. package/theme/editable-table/index.css +53 -30
  514. package/theme/full-screen/index.css +4 -4
  515. package/theme/index.css +382 -270
  516. package/theme/index.less +3 -0
  517. package/theme/mask/index.css +4 -4
  518. package/theme/mixins/config.less +4 -4
  519. package/theme/mixins/mixins.css +4 -4
  520. package/theme/mixins/mixins.less +2 -2
  521. package/theme/scroll-bar/index.css +4 -4
  522. package/theme/scroll-view/index.css +4 -4
  523. package/theme/splitter/index.css +10 -10
  524. package/theme/splitter/index.less +1 -1
  525. package/theme/text/group.css +4 -4
  526. package/theme/text/index.css +10 -10
  527. package/theme/text/index.less +4 -4
  528. package/theme/ui-mode.css +51 -83
  529. package/theme/ui-mode.less +99 -83
  530. package/theme/work-order-modal/index.css +4 -4
@@ -0,0 +1,18 @@
1
+ import { isNoValue as n } from "../utils.mjs";
2
+ const l = {
3
+ get(o) {
4
+ var a;
5
+ let e = [];
6
+ const t = (a = o.component) == null ? void 0 : a.exposed;
7
+ return t && (e = t.getRowsData()), e;
8
+ },
9
+ set(o, e) {
10
+ var a;
11
+ if (n(e)) return;
12
+ const t = (a = o.component) == null ? void 0 : a.exposed;
13
+ t && t.setTableData(e);
14
+ }
15
+ };
16
+ export {
17
+ l as default
18
+ };
@@ -0,0 +1,3 @@
1
+ type keeperType = Record<'get' | 'set', (...arg: any[]) => any>;
2
+ declare const _default: Record<string, keeperType>;
3
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import r from "./ap-form-keeper.mjs";
2
+ import e from "./ap-grid-keeper.mjs";
3
+ import p from "./ap-table-keeper.mjs";
4
+ import o from "./ap-search-form-keeper.mjs";
5
+ import m from "./tab-keeper.mjs";
6
+ import i from "./ap-view-keeper.mjs";
7
+ import t from "./edit-table-keeper.mjs";
8
+ import a from "./ap-radio-group-keeper.mjs";
9
+ import f from "./edit-grid-keeper.mjs";
10
+ import d from "./step-keeper.mjs";
11
+ import K from "./ap-list-keeper.mjs";
12
+ const w = {
13
+ ApList: K,
14
+ ApForm: r,
15
+ ApGrid: e,
16
+ ApTable: p,
17
+ ATabs: m,
18
+ ApFormSearchForm: o,
19
+ ApView: i,
20
+ EditableTable: t,
21
+ ApRadioGroup: a,
22
+ EditableGrid: f,
23
+ ASteps: d
24
+ // AFormItem: formItemKeeper
25
+ };
26
+ export {
27
+ w as default
28
+ };
@@ -0,0 +1,6 @@
1
+ import { VNode } from 'vue';
2
+ declare const _default: {
3
+ get(node: VNode): any;
4
+ set(node: VNode, data: any): void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { isNoValue as o } from "../utils.mjs";
2
+ const s = {
3
+ get(n) {
4
+ var r;
5
+ let e;
6
+ const t = (r = n.component) == null ? void 0 : r.proxy;
7
+ return t && (e = t.current), e;
8
+ },
9
+ set(n, e) {
10
+ if (o(e)) return;
11
+ const t = n.component;
12
+ t && (t.emit("update:current", e), t.emit("change", e));
13
+ }
14
+ };
15
+ export {
16
+ s as default
17
+ };
@@ -0,0 +1,6 @@
1
+ import { VNode } from 'vue';
2
+ declare const _default: {
3
+ get(node: VNode): any;
4
+ set(node: VNode, data: any): void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { isNoValue as a } from "../utils.mjs";
2
+ const i = {
3
+ get(n) {
4
+ var o;
5
+ let e;
6
+ const t = (o = n.component) == null ? void 0 : o.proxy;
7
+ return t && (e = t.activeKey), e;
8
+ },
9
+ set(n, e) {
10
+ if (a(e)) return;
11
+ const t = n.component;
12
+ t && (t.emit("update:activeKey", e), t.emit("change", e));
13
+ }
14
+ };
15
+ export {
16
+ i as default
17
+ };
@@ -0,0 +1,23 @@
1
+ import { ComponentInternalInstance, VNode, VNodeArrayChildren, VNodeChild, VNodeNormalizedChildren, RendererNode, RendererElement } from 'vue';
2
+ import { MatchPattern, PropertyKeyType } from './interface';
3
+ export declare const getVNodeChirldren: (conponentInstance: ComponentInternalInstance) => VNodeArrayChildren | undefined;
4
+ export declare const getFirstVNodeChirldren: (childVNodes?: VNodeArrayChildren) => string | number | true | VNodeArrayChildren | VNode< RendererNode, RendererElement, {
5
+ [key: string]: any;
6
+ }> | undefined;
7
+ export declare const getVNodeObjByVNodeChild: (childVNode: VNodeChild) => VNode< RendererNode, RendererElement, {
8
+ [key: string]: any;
9
+ }> | undefined;
10
+ export declare const getVNodeObjByVNodeArrayChildren: (childVNode: VNodeNormalizedChildren) => VNode | undefined;
11
+ /**
12
+ * 获取当前组件的key,如果没有以组件name代替(兼容处理)
13
+ * @param node
14
+ * @param currentModuleKey
15
+ * @returns
16
+ */
17
+ export declare const getAliveKey: (node: VNode, currentModuleKey: PropertyKeyType) => {
18
+ VnodeName: string;
19
+ vnodeSubPath: string;
20
+ };
21
+ export declare const getComponentName: (Component: VNode) => {};
22
+ export declare function matches(pattern: MatchPattern, name: string): boolean;
23
+ export declare function isNoValue(data: any): boolean;
@@ -0,0 +1,42 @@
1
+ import { isArray as f, isString as y, isRegExp as n } from "lodash-unified";
2
+ const l = (r) => {
3
+ var u;
4
+ const e = (u = r == null ? void 0 : r.subTree) == null ? void 0 : u.children;
5
+ if (typeof e == "string") return;
6
+ const t = Array.isArray(e) ? e : null;
7
+ if (t)
8
+ return t.filter((i) => !["string", "number", "boolean"].includes(typeof i)).filter((i) => i && typeof i == "object" && "type" in i ? i.type != Symbol.for("v-cmt") : !1);
9
+ }, b = (r) => {
10
+ if (r) {
11
+ if (r.length > 1)
12
+ throw Error("ApKeepAlive 组件只能有一个字节点");
13
+ if (r[0])
14
+ return r[0];
15
+ }
16
+ }, g = (r) => {
17
+ if (r && !(typeof r == "string" || typeof r == "number" || typeof r == "boolean" || Array.isArray(r)))
18
+ return r;
19
+ }, m = (r) => {
20
+ if (r && !(typeof r == "string" || typeof r == "number" || typeof r == "boolean" || Array.isArray(r) || !r.type))
21
+ return r;
22
+ }, p = (r, e) => {
23
+ const t = typeof r.type == "object" && "name" in r.type && r.type.name || "";
24
+ let u = t;
25
+ return r.key && r.key !== e && (u = r.key), { VnodeName: t, vnodeSubPath: u };
26
+ }, a = (r) => typeof r == "object" && "name" in r && r.name || "";
27
+ function s(r, e) {
28
+ return f(r) ? r.some((t) => s(t, e)) : y(r) ? r.split(",").includes(e) : n(r) ? (r.lastIndex = 0, r.test(e)) : !1;
29
+ }
30
+ function A(r) {
31
+ return [void 0, null].includes(r);
32
+ }
33
+ export {
34
+ p as getAliveKey,
35
+ a as getComponentName,
36
+ b as getFirstVNodeChirldren,
37
+ l as getVNodeChirldren,
38
+ m as getVNodeObjByVNodeArrayChildren,
39
+ g as getVNodeObjByVNodeChild,
40
+ A as isNoValue,
41
+ s as matches
42
+ };
@@ -36,7 +36,7 @@ const o = () => ({
36
36
  },
37
37
  iconSize: {
38
38
  type: Number,
39
- default: 16
39
+ default: 14
40
40
  },
41
41
  show: {
42
42
  type: Boolean,
@@ -1,29 +1,28 @@
1
- import { defineComponent as n, createVNode as o, mergeProps as l, createTextVNode as m } from "vue";
1
+ import { defineComponent as n, createVNode as o, mergeProps as a, createTextVNode as l } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import f from "../ApLabel.mjs";
4
- import { omit as t } from "lodash-unified";
5
- import { ApLabelGroupProps as s } from "../constans.mjs";
6
- import { Tag as c } from "@aplus-frontend/antdv";
7
- import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
3
+ import m from "../ApLabel.mjs";
4
+ import { omit as s } from "lodash-unified";
5
+ import { ApLabelGroupProps as c } from "../constans.mjs";
6
+ import "../../../ap-tag/index.mjs";
7
+ import { useNamespace as f } from "../../../config-provider/hooks/use-namespace.mjs";
8
+ import i from "../../../ap-tag/ap-tag.vue.mjs";
8
9
  const {
9
10
  b: p
10
- } = g("ap-label-group"), x = /* @__PURE__ */ n({
11
+ } = f("ap-label-group"), _ = /* @__PURE__ */ n({
11
12
  name: "ApLabelGroup",
12
- props: s(),
13
+ props: c(),
13
14
  setup(r) {
14
- const a = (e) => (r.tagValue || r.tagValue === 0) && e.tagConfig && e.tagConfig.length > 0 ? () => e.tagConfig.filter((u) => r.tagValue === u.value).map((u) => o(c, t(u, ["text"]), {
15
- default: () => [u.text]
16
- })) : e.customRender ? () => o("div", null, [e.customRender(r.record)]) : null;
15
+ const t = (e) => (r.tagValue || r.tagValue === 0) && e.tagConfig && e.tagConfig.length > 0 ? () => e.tagConfig.filter((u) => r.tagValue === u.value).map((u) => o(i, u, null)) : e.customRender ? () => o("div", null, [e.customRender(r.record)]) : null;
17
16
  return () => o("div", {
18
17
  class: p()
19
- }, [r.columns ? r.columns.map((e, u) => o(f, l({
18
+ }, [r.columns ? r.columns.map((e, u) => o(m, a({
20
19
  key: u,
21
20
  show: r.value === e.value
22
- }, t(e, ["value", "tagConfig", "customRender"])), {
23
- custom: a(e)
24
- })) : o("div", null, [m("columns数组不能为空")])]);
21
+ }, s(e, ["value", "tagConfig", "customRender"])), {
22
+ custom: t(e)
23
+ })) : o("div", null, [l("columns数组不能为空")])]);
25
24
  }
26
25
  });
27
26
  export {
28
- x as default
27
+ _ as default
29
28
  };
@@ -1,6 +1,6 @@
1
1
  import { BadgeProps } from '@aplus-frontend/antdv';
2
2
  import { TooltipPlacement } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
3
- import { TagProps } from '@aplus-frontend/antdv/es/tag';
3
+ import { ApTagProps } from '../../ap-tag';
4
4
  import { VNode, VNodeChild } from 'vue';
5
5
  type Recordable = Record<string, any>;
6
6
  export type ApLabelProps = BadgeProps & Partial<{
@@ -12,9 +12,8 @@ export type ApLabelProps = BadgeProps & Partial<{
12
12
  show: boolean;
13
13
  toolTipBgColor: string;
14
14
  }>;
15
- export type tagConfigKey = TagProps & {
15
+ export type tagConfigKey = ApTagProps & {
16
16
  value: number | string | undefined | null;
17
- text: string;
18
17
  };
19
18
  export type ApLabelGroupItemProps<T extends Recordable = Recordable> = ApLabelProps & {
20
19
  value?: string | number | null | undefined;
@@ -17,6 +17,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
17
17
  type: PropType< ApProductInfoValue[]>;
18
18
  default: () => never[];
19
19
  };
20
+ disableCopy: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
20
24
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
21
25
  title: {
22
26
  type: StringConstructor;
@@ -34,10 +38,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
34
38
  type: PropType< ApProductInfoValue[]>;
35
39
  default: () => never[];
36
40
  };
41
+ disableCopy: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
37
45
  }>> & Readonly<{}>, {
38
46
  values: ApProductInfoValue[];
39
47
  title: string;
40
48
  preview: boolean;
49
+ disableCopy: boolean;
41
50
  imgSrc: string;
42
51
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
43
52
  export default _default;
@@ -1,65 +1,64 @@
1
- import { defineComponent as d, createVNode as e, createTextVNode as s, Fragment as f } from "vue";
2
- import { ApProductInfoProps as v } from "./constans.mjs";
1
+ import { defineComponent as v, h as f, createVNode as l, createTextVNode as p } from "vue";
2
+ import { ApProductInfoProps as m } from "./constans.mjs";
3
3
  import "../../config-provider/index.mjs";
4
- import { Tooltip as p } from "@aplus-frontend/antdv";
5
- import { ApImage as m } from "../ap-image/index.mjs";
6
- import { useNamespace as g } from "../../config-provider/hooks/use-namespace.mjs";
7
- import { useGlobalConfig as k } from "../../config-provider/hooks/use-global-config.mjs";
8
- const C = /* @__PURE__ */ d({
4
+ import { ApImage as y } from "../ap-image/index.mjs";
5
+ import { ApCopy as a } from "../ap-copy/index.mjs";
6
+ import { useNamespace as b } from "../../config-provider/hooks/use-namespace.mjs";
7
+ import { useGlobalConfig as g } from "../../config-provider/hooks/use-global-config.mjs";
8
+ const N = /* @__PURE__ */ v({
9
9
  name: "ApProductInfo",
10
- props: v(),
11
- setup(o) {
10
+ props: m(),
11
+ setup(i) {
12
12
  const {
13
- b: u,
14
- e: t,
15
- m: i
16
- } = g("ap-product-info"), a = (l) => typeof l == "function" ? l() : l || "--", r = {
17
- aplus: "#182948",
18
- admin: "#333333"
19
- }, c = k("uiMode");
20
- return () => e("div", {
21
- class: [u(), `${i(c.value)}`]
22
- }, [e("div", {
23
- class: t("img")
24
- }, [e(m, {
25
- src: o.imgSrc,
13
+ b: n,
14
+ e: o,
15
+ m: r
16
+ } = b("ap-product-info"), s = (e) => typeof e.value == "function" ? e.value() : f(a, {
17
+ text: e.value,
18
+ textStyle: e.link ? "link" : "minor",
19
+ link: e.link,
20
+ disableCopy: i.disableCopy
21
+ }, e.value), d = g("uiMode");
22
+ return () => l("div", {
23
+ class: [n(), `${r(d.value)}`]
24
+ }, [l("div", {
25
+ class: o("img")
26
+ }, [l(y, {
27
+ src: i.imgSrc,
26
28
  width: 44,
27
29
  height: 44,
28
- preview: o.preview
29
- }, null)]), e("div", {
30
- class: [t("content")]
31
- }, [o.title ? e(p, null, {
32
- default: () => [e("div", {
33
- class: t("title"),
30
+ preview: i.preview
31
+ }, null)]), l("div", {
32
+ class: [o("content")]
33
+ }, [l(a, {
34
+ disableCopy: i.disableCopy
35
+ }, {
36
+ default: () => [i.title]
37
+ }), l("div", {
38
+ class: o("row-container")
39
+ }, [i.values.map((e, u) => {
40
+ const t = e.col === 2, c = e.col !== 2 && u % 2 === 0;
41
+ return l("div", {
42
+ key: JSON.stringify(e),
43
+ class: [o("row-item"), r(t ? "full" : "half")]
44
+ }, [l("div", {
45
+ class: [o("item")]
46
+ }, [e.label && l("div", {
47
+ class: o("label")
48
+ }, [e.label, l("span", null, [p(":")])]), l("div", {
49
+ class: [o("value"), !t && r("overflow")],
50
+ title: typeof e.value != "function" ? String(e.value || "") : ""
51
+ }, [s(e)])]), c && l("div", {
52
+ class: o("divider"),
34
53
  style: {
35
- color: r[c.value] || r.aplus
54
+ right: 0
36
55
  }
37
- }, [o.title])],
38
- title: () => e("div", {
39
- class: t("title-tip")
40
- }, [o.title])
41
- }) : e("div", {
42
- class: t("title")
43
- }, [s("--")]), o.values && e("div", {
44
- class: t("row-divider")
45
- }, [o.values.map((l, n) => e(f, null, [e("div", {
46
- key: n,
47
- class: [t("item"), l.col === 2 && i("full-width"), n % 2 === 0 || l.col == 2 ? i("left") : i("right")]
48
- }, [l.label && e("div", {
49
- class: t("label")
50
- }, [l.label, e("span", null, [s(":")])]), e("div", {
51
- class: [t("value"), l.link && i("link")],
52
- title: typeof l.value != "function" ? a(l.value) : "",
53
- onClick: () => {
54
- l.link && window.open(l.link, "_blank");
55
- }
56
- }, [typeof l.value == "function" ? l.value() : a(l.value)])]), l.col == 1 && n % 2 == 0 ? e("div", {
57
- class: t("divider")
58
- }, [e("div", {
59
- class: t("divider-vertical")
60
- }, null)]) : null]))])])]);
56
+ }, [l("div", {
57
+ class: o("divider-vertical")
58
+ }, null)])]);
59
+ })])])]);
61
60
  }
62
61
  });
63
62
  export {
64
- C as default
63
+ N as default
65
64
  };
@@ -17,4 +17,8 @@ export declare const ApProductInfoProps: () => {
17
17
  type: PropType<ApProductInfoValue[]>;
18
18
  default: () => never[];
19
19
  };
20
+ disableCopy: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
20
24
  };
@@ -14,6 +14,10 @@ const e = () => ({
14
14
  values: {
15
15
  type: Array,
16
16
  default: () => []
17
+ },
18
+ disableCopy: {
19
+ type: Boolean,
20
+ default: !1
17
21
  }
18
22
  });
19
23
  export {
@@ -19,10 +19,15 @@ declare const ApProductInfo: {
19
19
  type: PropType< ApProductInfoValue[]>;
20
20
  default: () => never[];
21
21
  };
22
+ disableCopy: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
22
26
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
23
27
  values: ApProductInfoValue[];
24
28
  title: string;
25
29
  preview: boolean;
30
+ disableCopy: boolean;
26
31
  imgSrc: string;
27
32
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
28
33
  P: {};
@@ -48,10 +53,15 @@ declare const ApProductInfo: {
48
53
  type: PropType< ApProductInfoValue[]>;
49
54
  default: () => never[];
50
55
  };
56
+ disableCopy: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
51
60
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
52
61
  values: ApProductInfoValue[];
53
62
  title: string;
54
63
  preview: boolean;
64
+ disableCopy: boolean;
55
65
  imgSrc: string;
56
66
  }>;
57
67
  __isFragment?: never;
@@ -74,10 +84,15 @@ declare const ApProductInfo: {
74
84
  type: PropType< ApProductInfoValue[]>;
75
85
  default: () => never[];
76
86
  };
87
+ disableCopy: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
77
91
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
78
92
  values: ApProductInfoValue[];
79
93
  title: string;
80
94
  preview: boolean;
95
+ disableCopy: boolean;
81
96
  imgSrc: string;
82
97
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
83
98
  $props: {
@@ -4,6 +4,7 @@ export interface ApProductInfoProps {
4
4
  preview?: boolean;
5
5
  title?: string;
6
6
  values?: ApProductInfoValue[];
7
+ disableCopy?: boolean;
7
8
  }
8
9
  export interface ApProductInfoValue {
9
10
  label?: string;
@@ -0,0 +1,21 @@
1
+ import { RadioOptionType, RadioOptionStyleType } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ type __VLS_Props = {
4
+ value: string | number;
5
+ delay?: number;
6
+ options: RadioOptionType[];
7
+ optionStyle?: RadioOptionStyleType;
8
+ };
9
+ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
10
+ change: (value: string | number) => any;
11
+ "update:value": (value: string | number) => any;
12
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onChange?: ((value: string | number) => any) | undefined;
14
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
15
+ }>, {
16
+ value: string | number;
17
+ options: RadioOptionType[];
18
+ delay: number;
19
+ optionStyle: RadioOptionStyleType;
20
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./ap-radio-group.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,73 @@
1
+ import { defineComponent as b, ref as V, isVNode as _, h as r, watch as w, createElementBlock as n, openBlock as a, normalizeClass as h, unref as l, createVNode as B, withCtx as N, Fragment as z, renderList as F, normalizeStyle as L, createBlock as x, resolveDynamicComponent as A } from "vue";
2
+ import { Flex as D } from "@aplus-frontend/antdv";
3
+ import "../../config-provider/index.mjs";
4
+ import "../../hooks/index.mjs";
5
+ import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
6
+ import { useControllableValue as G } from "../../hooks/useControllableValue.mjs";
7
+ const H = ["onClick"], M = /* @__PURE__ */ b({
8
+ name: "ApRadioGroup",
9
+ __name: "ap-radio-group",
10
+ props: {
11
+ value: { default: "" },
12
+ delay: { default: 0 },
13
+ options: { default: () => [] },
14
+ optionStyle: { default: () => ({
15
+ height: 28,
16
+ gap: 8
17
+ }) }
18
+ },
19
+ emits: ["update:value", "change"],
20
+ setup(g, { emit: v }) {
21
+ const { b: y, e: i } = E("ap-radio-group"), p = g, s = v, { value: u, updateValue: C } = G(
22
+ p,
23
+ s
24
+ ), o = V(u.value), k = (e) => _(e) ? r(e) : typeof e == "function" ? r("span", e()) : r("span", e);
25
+ w(
26
+ () => u.value,
27
+ (e) => {
28
+ e !== o.value && (o.value = e);
29
+ }
30
+ );
31
+ const S = (e) => {
32
+ o.value = e, setTimeout(() => {
33
+ C(e), s("change", e);
34
+ }, p.delay);
35
+ };
36
+ return (e, R) => {
37
+ var c;
38
+ return a(), n("div", {
39
+ class: h([l(y)()])
40
+ }, [
41
+ B(l(D), {
42
+ gap: (c = e.optionStyle) == null ? void 0 : c.gap,
43
+ wrap: "wrap"
44
+ }, {
45
+ default: N(() => [
46
+ (a(!0), n(z, null, F(e.options.filter((t) => t.visible !== !1), (t) => {
47
+ var m, d, f;
48
+ return a(), n("div", {
49
+ key: t.value,
50
+ class: h([
51
+ l(i)("item"),
52
+ o.value === t.value ? l(i)("item--active") : ""
53
+ ]),
54
+ style: L({
55
+ height: ((m = e.optionStyle) == null ? void 0 : m.height) + "px",
56
+ lineHeight: ((d = e.optionStyle) == null ? void 0 : d.height) + "px",
57
+ color: (f = e.optionStyle) == null ? void 0 : f.color
58
+ }),
59
+ onClick: (T) => S(t.value)
60
+ }, [
61
+ (a(), x(A(k(t.label))))
62
+ ], 14, H);
63
+ }), 128))
64
+ ]),
65
+ _: 1
66
+ }, 8, ["gap"])
67
+ ], 2);
68
+ };
69
+ }
70
+ });
71
+ export {
72
+ M as default
73
+ };
@@ -0,0 +1,66 @@
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
+ import { RadioOptionType, RadioOptionStyleType } from './interface';
3
+ export * from './interface';
4
+ declare const ApRadioGroup: {
5
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
6
+ value: string | number;
7
+ delay?: number;
8
+ options: RadioOptionType[];
9
+ optionStyle?: RadioOptionStyleType;
10
+ }> & Readonly<{
11
+ onChange?: ((value: string | number) => any) | undefined;
12
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
13
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
14
+ change: (value: string | number) => any;
15
+ "update:value": (value: string | number) => any;
16
+ }, PublicProps, {
17
+ value: string | number;
18
+ options: RadioOptionType[];
19
+ delay: number;
20
+ optionStyle: RadioOptionStyleType;
21
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
22
+ P: {};
23
+ B: {};
24
+ D: {};
25
+ C: {};
26
+ M: {};
27
+ Defaults: {};
28
+ }, Readonly<{
29
+ value: string | number;
30
+ delay?: number;
31
+ options: RadioOptionType[];
32
+ optionStyle?: RadioOptionStyleType;
33
+ }> & Readonly<{
34
+ onChange?: ((value: string | number) => any) | undefined;
35
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
36
+ }>, {}, {}, {}, {}, {
37
+ value: string | number;
38
+ options: RadioOptionType[];
39
+ delay: number;
40
+ optionStyle: RadioOptionStyleType;
41
+ }>;
42
+ __isFragment?: never;
43
+ __isTeleport?: never;
44
+ __isSuspense?: never;
45
+ } & ComponentOptionsBase<Readonly<{
46
+ value: string | number;
47
+ delay?: number;
48
+ options: RadioOptionType[];
49
+ optionStyle?: RadioOptionStyleType;
50
+ }> & Readonly<{
51
+ onChange?: ((value: string | number) => any) | undefined;
52
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
53
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
54
+ change: (value: string | number) => any;
55
+ "update:value": (value: string | number) => any;
56
+ }, string, {
57
+ value: string | number;
58
+ options: RadioOptionType[];
59
+ delay: number;
60
+ optionStyle: RadioOptionStyleType;
61
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
62
+ $props: {
63
+ onClick?: () => void;
64
+ };
65
+ }));
66
+ export { ApRadioGroup };
@@ -0,0 +1,8 @@
1
+ import { withInstall as o } from "@aplus-frontend/utils";
2
+ import "./ap-radio-group.vue.mjs";
3
+ import "./interface.mjs";
4
+ import r from "./ap-radio-group.vue2.mjs";
5
+ const a = o(r);
6
+ export {
7
+ a as ApRadioGroup
8
+ };