@aplus-frontend/ui 0.5.37 → 0.6.0-beta.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 (278) hide show
  1. package/es/index.mjs +74 -72
  2. package/es/src/ap-field/select/index.vue.d.ts +2 -2
  3. package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
  4. package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  5. package/es/src/ap-form/interface.d.ts +31 -1
  6. package/es/src/ap-form/item/index.vue.d.ts +22 -22
  7. package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  8. package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
  9. package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  10. package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
  11. package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
  12. package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
  13. package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
  14. package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
  15. package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
  16. package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  17. package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  18. package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
  19. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  20. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  21. package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
  22. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
  23. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  24. package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
  25. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
  26. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  27. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
  28. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
  29. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  30. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
  31. package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
  32. package/es/src/ap-form/search-form/index.vue.mjs +127 -127
  33. package/es/src/ap-grid/index.vue.mjs +97 -93
  34. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
  35. package/es/src/ap-table/ap-table.vue2.mjs +108 -104
  36. package/es/src/ap-table/constants.d.ts +161 -161
  37. package/es/src/ap-table/context.d.ts +5 -0
  38. package/es/src/ap-table/context.mjs +13 -5
  39. package/es/src/ap-table/utils.d.ts +147 -147
  40. package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
  41. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  42. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
  43. package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
  44. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  45. package/es/src/business/ap-size-input/index.d.ts +3 -3
  46. package/es/src/business/ap-table-modal/index.d.ts +15 -15
  47. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  48. package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
  49. package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
  50. package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
  51. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  52. package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
  53. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
  54. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  55. package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
  56. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
  57. package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  58. package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
  59. package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  60. package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
  61. package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  62. package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
  63. package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  64. package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
  65. package/es/src/business/ap-view/index.d.ts +27 -0
  66. package/es/src/business/ap-view/index.mjs +8 -0
  67. package/es/src/business/ap-view/interface.d.ts +54 -0
  68. package/es/src/business/ap-view/interface.mjs +1 -0
  69. package/es/src/business/ap-view/style/css.d.ts +0 -0
  70. package/es/src/business/ap-view/style/css.js +1 -0
  71. package/es/src/business/ap-view/style/index.d.ts +0 -0
  72. package/es/src/business/ap-view/style/index.js +1 -0
  73. package/es/src/business/ap-view/utils/enum.d.ts +1 -0
  74. package/es/src/business/ap-view/utils/enum.mjs +4 -0
  75. package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
  76. package/es/src/business/ap-view/utils/uuid.mjs +22 -0
  77. package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  78. package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
  79. package/es/src/business/index.d.ts +1 -0
  80. package/es/src/business/index.mjs +25 -23
  81. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  82. package/es/src/config-provider/config-provider-props.mjs +4 -0
  83. package/es/src/config-provider/config-provider.d.ts +25 -1
  84. package/es/src/config-provider/config-provider.mjs +21 -20
  85. package/es/src/config-provider/css-var.d.ts +14 -0
  86. package/es/src/config-provider/css-var.mjs +40 -12
  87. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  88. package/es/src/config-provider/index.d.ts +89 -3
  89. package/es/src/full-screen/interface.d.ts +1 -1
  90. package/es/src/index.mjs +61 -59
  91. package/es/src/locale/lang/en.mjs +22 -1
  92. package/es/src/locale/lang/zh-cn.mjs +22 -1
  93. package/es/src/path-map.mjs +2 -1
  94. package/es/src/utils/config-provider-preset.d.ts +4 -4
  95. package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  96. package/lib/index.js +1 -1
  97. package/lib/src/ap-field/select/index.vue.d.ts +2 -2
  98. package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
  99. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
  100. package/lib/src/ap-form/interface.d.ts +31 -1
  101. package/lib/src/ap-form/item/index.vue.d.ts +22 -22
  102. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
  103. package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
  104. package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
  105. package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
  106. package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
  107. package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
  108. package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
  109. package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
  110. package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
  111. package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
  112. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
  113. package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
  114. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  115. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
  116. package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
  117. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
  118. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
  119. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
  120. package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
  121. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
  122. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
  123. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
  124. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
  125. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
  126. package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
  127. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  128. package/lib/src/ap-grid/index.vue.js +1 -1
  129. package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
  130. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  131. package/lib/src/ap-table/constants.d.ts +161 -161
  132. package/lib/src/ap-table/context.d.ts +5 -0
  133. package/lib/src/ap-table/context.js +1 -1
  134. package/lib/src/ap-table/utils.d.ts +147 -147
  135. package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
  136. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
  137. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  138. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
  139. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  140. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  141. package/lib/src/business/ap-table-modal/index.d.ts +15 -15
  142. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
  143. package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
  144. package/lib/src/business/ap-view/ap-view.vue.js +1 -0
  145. package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
  146. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
  147. package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
  148. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
  149. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
  150. package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
  151. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
  152. package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
  153. package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
  154. package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
  155. package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
  156. package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
  157. package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
  158. package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
  159. package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
  160. package/lib/src/business/ap-view/index.d.ts +27 -0
  161. package/lib/src/business/ap-view/index.js +1 -0
  162. package/lib/src/business/ap-view/interface.d.ts +54 -0
  163. package/lib/src/business/ap-view/interface.js +1 -0
  164. package/lib/src/business/ap-view/style/css.cjs +1 -0
  165. package/lib/src/business/ap-view/style/css.d.ts +0 -0
  166. package/lib/src/business/ap-view/style/index.cjs +1 -0
  167. package/lib/src/business/ap-view/style/index.d.ts +0 -0
  168. package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
  169. package/lib/src/business/ap-view/utils/enum.js +1 -0
  170. package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
  171. package/lib/src/business/ap-view/utils/uuid.js +1 -0
  172. package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
  173. package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
  174. package/lib/src/business/index.d.ts +1 -0
  175. package/lib/src/business/index.js +1 -1
  176. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  177. package/lib/src/config-provider/config-provider-props.js +1 -1
  178. package/lib/src/config-provider/config-provider.d.ts +25 -1
  179. package/lib/src/config-provider/config-provider.js +1 -1
  180. package/lib/src/config-provider/css-var.d.ts +14 -0
  181. package/lib/src/config-provider/css-var.js +1 -1
  182. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  183. package/lib/src/config-provider/index.d.ts +89 -3
  184. package/lib/src/full-screen/interface.d.ts +1 -1
  185. package/lib/src/index.js +1 -1
  186. package/lib/src/locale/lang/en.js +1 -1
  187. package/lib/src/locale/lang/zh-cn.js +1 -1
  188. package/lib/src/path-map.js +1 -1
  189. package/lib/src/utils/config-provider-preset.d.ts +4 -4
  190. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
  191. package/package.json +7 -7
  192. package/theme/ap-action/item-dropdown.css +28 -0
  193. package/theme/ap-action/item-dropdown.less +1 -1
  194. package/theme/ap-action/item.css +35 -1
  195. package/theme/ap-action/item.less +1 -2
  196. package/theme/ap-appendix/ap-appendix.css +28 -0
  197. package/theme/ap-attachment/ap-attachment.css +28 -0
  198. package/theme/ap-batch-action/ap-batch-action.css +28 -0
  199. package/theme/ap-button/ap-button.css +28 -0
  200. package/theme/ap-card/ap-card.css +28 -0
  201. package/theme/ap-descriptions/ap-descriptions.css +28 -0
  202. package/theme/ap-download/ap-download.css +28 -0
  203. package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
  204. package/theme/ap-field/checkbox.css +28 -0
  205. package/theme/ap-field/index.css +28 -0
  206. package/theme/ap-field/number.css +28 -0
  207. package/theme/ap-field/radio.css +28 -0
  208. package/theme/ap-field/text-area.css +28 -0
  209. package/theme/ap-form/ap-form-item-group.css +28 -0
  210. package/theme/ap-form/ap-form-item.css +28 -0
  211. package/theme/ap-form/drawer-form.css +28 -0
  212. package/theme/ap-form/index.css +169 -0
  213. package/theme/ap-form/item-text-group.css +28 -0
  214. package/theme/ap-form/item-text.css +28 -0
  215. package/theme/ap-form/modal-form.css +28 -0
  216. package/theme/ap-form/search-form-sorter.css +120 -0
  217. package/theme/ap-form/search-form-sorter.less +71 -0
  218. package/theme/ap-form/search-form.css +169 -0
  219. package/theme/ap-form/search-form.less +56 -0
  220. package/theme/ap-grid/editable.css +28 -0
  221. package/theme/ap-grid/index.css +176 -1
  222. package/theme/ap-group-search/ap-extension-select.css +28 -0
  223. package/theme/ap-group-search/ap-group-search.css +28 -0
  224. package/theme/ap-group-search/ap-popover-select.css +28 -0
  225. package/theme/ap-image/ap-image.css +28 -0
  226. package/theme/ap-input-radio/ap-input-radio.css +28 -0
  227. package/theme/ap-label/ap-label.css +28 -0
  228. package/theme/ap-ladder/ap-ladder.css +28 -0
  229. package/theme/ap-layout/ap-info-layout.css +28 -0
  230. package/theme/ap-list/index.css +28 -0
  231. package/theme/ap-product-info/ap-product-info.css +28 -0
  232. package/theme/ap-select-layout/ap-select-layout.css +28 -0
  233. package/theme/ap-size-input/ap-size-input.css +28 -0
  234. package/theme/ap-status/ap-status.css +28 -0
  235. package/theme/ap-summary/index.css +28 -0
  236. package/theme/ap-table/ap-table-index.css +28 -0
  237. package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
  238. package/theme/ap-table/ap-table.css +190 -13
  239. package/theme/ap-table/ap-table.less +0 -1
  240. package/theme/ap-table/setting/index.css +42 -0
  241. package/theme/ap-table/setting/modal.css +36 -0
  242. package/theme/ap-table/setting/modal.less +1 -0
  243. package/theme/ap-table/setting/select-group.css +28 -0
  244. package/theme/ap-table/setting/sortable-item-meta.css +28 -0
  245. package/theme/ap-table/setting/sortable-item.css +28 -0
  246. package/theme/ap-table/setting/sorter.css +34 -0
  247. package/theme/ap-table/setting/sorter.less +1 -2
  248. package/theme/ap-table-modal/index.css +190 -13
  249. package/theme/ap-tag/ap-tag-group.css +28 -0
  250. package/theme/ap-tag/ap-tag.css +28 -0
  251. package/theme/ap-title/ap-title.css +28 -0
  252. package/theme/ap-upload/index.css +28 -0
  253. package/theme/ap-upload/multiple-file.css +28 -0
  254. package/theme/ap-upload/picture.css +28 -0
  255. package/theme/ap-upload/single-file.css +28 -0
  256. package/theme/ap-upload/upload.css +28 -0
  257. package/theme/ap-upload-single/index.css +28 -0
  258. package/theme/ap-view/ap-view.css +149 -0
  259. package/theme/ap-view/ap-view.less +128 -0
  260. package/theme/batch-input-group/index.css +28 -0
  261. package/theme/batch-input-group/popover-input.css +28 -0
  262. package/theme/check-card/index.css +49 -1
  263. package/theme/check-card/index.less +3 -4
  264. package/theme/editable-table/index.css +176 -1
  265. package/theme/full-screen/index.css +28 -0
  266. package/theme/index.css +340 -15
  267. package/theme/index.less +1 -0
  268. package/theme/mask/index.css +28 -0
  269. package/theme/mixins/config.less +1 -0
  270. package/theme/mixins/mixins.css +28 -0
  271. package/theme/mixins/mixins.less +35 -0
  272. package/theme/scroll-bar/index.css +28 -0
  273. package/theme/scroll-view/index.css +28 -0
  274. package/theme/splitter/index.css +28 -0
  275. package/theme/text/group.css +28 -0
  276. package/theme/text/index.css +36 -1
  277. package/theme/text/index.less +1 -1
  278. package/theme/work-order-modal/index.css +28 -0
@@ -1,15 +1,15 @@
1
- import { defineComponent as ke, useSlots as Be, getCurrentInstance as Fe, ref as k, computed as n, unref as o, watch as B, createElementBlock as F, openBlock as s, normalizeStyle as z, normalizeClass as g, createCommentVNode as S, createElementVNode as I, createVNode as U, mergeProps as h, createSlots as G, withCtx as v, Fragment as X, renderList as _, createBlock as p, resolveDynamicComponent as A, renderSlot as V, normalizeProps as Ie, guardReactiveProps as Ee } from "vue";
2
- import { VxeTable as Pe, VxeColumn as J } from "vxe-table";
1
+ import { defineComponent as ke, useSlots as Be, getCurrentInstance as Fe, ref as k, computed as n, unref as o, watch as B, createElementBlock as F, openBlock as s, normalizeStyle as A, normalizeClass as g, createCommentVNode as S, createElementVNode as I, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as V, createBlock as p, resolveDynamicComponent as L, renderSlot as D, normalizeProps as Ie, guardReactiveProps as Ee } from "vue";
2
+ import { VxeTable as Pe, VxeColumn as Y } from "vxe-table";
3
3
  import "vxe-table/es/style.css";
4
4
  import "vxe-pc-ui/es/style.css";
5
- import { VxeUI as Q } from "vxe-pc-ui";
5
+ import { VxeUI as Z } from "vxe-pc-ui";
6
6
  import { isUndefined as b, omit as Ne } from "lodash-unified";
7
7
  import { ApForm as Te } from "../ap-form/index.mjs";
8
8
  import "../config-provider/index.mjs";
9
9
  import { noRenderAsFormItemValueList as ze } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as Y, updateFormProps as _e, getFieldProps as Ae, getSearchFormItemRenderNode as Ve, recursionApColumns as Z } from "../ap-table/utils.mjs";
10
+ import { getColumnOrder as ee, updateFormProps as _e, getFieldProps as Ae, getSearchFormItemRenderNode as Ve, recursionApColumns as oe } from "../ap-table/utils.mjs";
11
11
  import { useTablePaging as Le } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
- import { Empty as ee, Pagination as De } from "@aplus-frontend/antdv";
12
+ import { Empty as ae, Pagination as De } from "@aplus-frontend/antdv";
13
13
  import { useInnerParams as Oe } from "./hooks/use-inner-params.mjs";
14
14
  import { toVxeProps as $e, getRowExpandProps as Ke, getRowSelectionProps as We } from "./utils/table.mjs";
15
15
  import je from "../ap-table/hooks/use-table-row-selection.mjs";
@@ -110,28 +110,28 @@ const Bo = /* @__PURE__ */ ke({
110
110
  expandable: {},
111
111
  value: {}
112
112
  },
113
- setup(oe, { expose: ae }) {
114
- var q;
115
- const L = Be(), a = oe, w = (q = Fe()) == null ? void 0 : q.appContext.app;
116
- w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Q), w.__VXE_PC_UI_INSTALLED__ = !0);
117
- const { e: E, b: c, be: re } = Je("ap-grid"), te = Qe("valueTypeMap"), d = k([]), D = k([]), m = k(), C = k(a.size), [, i] = Xe(), { t: le } = Ye();
118
- Q.setConfig({
119
- i18n: (e, r) => le(`ap.${e}`, r)
113
+ setup(re, { expose: te }) {
114
+ var G;
115
+ const O = Be(), a = re, w = (G = Fe()) == null ? void 0 : G.appContext.app;
116
+ w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Z), w.__VXE_PC_UI_INSTALLED__ = !0);
117
+ const { e: E, b: c, be: le } = Je("ap-grid"), ne = Qe("valueTypeMap"), d = k([]), $ = k([]), m = k(), C = k(a.size), [, i] = Xe(), { t: se } = Ye();
118
+ Z.setConfig({
119
+ i18n: (e, r) => se(`ap.${e}`, r)
120
120
  });
121
- const { renderConfig: ne, updateSignal: se } = Ge(d);
122
- let O = 0;
123
- const de = n(() => {
121
+ const { renderConfig: de, updateSignal: ie } = Ge(d);
122
+ let K = 0;
123
+ const ce = n(() => {
124
124
  if (m.value)
125
125
  return m.value.$el.querySelector(
126
126
  ".vxe-table--header-inner-wrapper"
127
127
  );
128
- }), $ = n(() => {
128
+ }), W = n(() => {
129
129
  var e, r, l;
130
- return O++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
130
+ return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
131
131
  (t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !ze.includes(t.valueType)
132
132
  )) == null ? void 0 : r.sort((t, u) => {
133
- let y = Y(t.order);
134
- return Y(u.order) - y;
133
+ let y = ee(t.order);
134
+ return ee(u.order) - y;
135
135
  })) == null ? void 0 : l.map((t) => {
136
136
  const u = _e(
137
137
  t,
@@ -142,39 +142,39 @@ const Bo = /* @__PURE__ */ ke({
142
142
  label: t.title,
143
143
  name: t.dataIndex,
144
144
  ...u || {},
145
- _signal: O
145
+ _signal: K
146
146
  },
147
147
  renderNode: void 0
148
148
  };
149
149
  return y.renderNode = Ve(
150
150
  y,
151
- o(te)
151
+ o(ne)
152
152
  ), y;
153
153
  })) || [];
154
- }), ie = n(() => [
154
+ }), ue = n(() => [
155
155
  c(),
156
156
  a.card ? null : c("wrapper"),
157
157
  a.adaptive ? c("adaptive") : null,
158
158
  a.sticky ? c("sticky") : null
159
- ].filter(Boolean)), K = n(() => Z(o(d), (e) => {
159
+ ].filter(Boolean)), j = n(() => oe(o(d), (e) => {
160
160
  if (e.sorter === !0)
161
161
  return e.key || e.dataIndex;
162
- }).filter(Boolean)), W = n(() => Z(o(d), (e) => {
162
+ }).filter(Boolean)), H = n(() => oe(o(d), (e) => {
163
163
  if (e.filters && !e.onFilter)
164
164
  return e.key || e.dataIndex;
165
165
  }).filter(Boolean)), {
166
166
  formRef: P,
167
- submit: j,
168
- reset: H,
169
- refresh: ce,
167
+ submit: N,
168
+ reset: T,
169
+ refresh: pe,
170
170
  data: f,
171
171
  tableProps: M,
172
- setDataSource: ue,
173
- handleTableChange: pe
172
+ setDataSource: me,
173
+ handleTableChange: fe
174
174
  } = Le({
175
175
  async request(e) {
176
176
  var l;
177
- if (!R.value.preserveSelectedRowKeys && b(a.dataSource) && T(), !b(a.dataSource)) {
177
+ if (!R.value.preserveSelectedRowKeys && b(a.dataSource) && _(), !b(a.dataSource)) {
178
178
  const t = e.pageSize * (e.current - 1);
179
179
  return {
180
180
  data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
@@ -188,17 +188,17 @@ const Bo = /* @__PURE__ */ ke({
188
188
  };
189
189
  },
190
190
  namespace: "ap-grid",
191
- filterFields: W,
192
- sortFields: K,
191
+ filterFields: H,
192
+ sortFields: j,
193
193
  defaultParams: a.params,
194
194
  defaultData: a.defaultData,
195
195
  manual: a.manual,
196
196
  formatParams: a.beforeSearchSubmit,
197
197
  pagination: a.pagination
198
- }), { sortChangeEvent: me, filterChangeEvent: fe, paginationChangeEvent: ge } = Oe(pe);
198
+ }), { sortChangeEvent: ge, filterChangeEvent: he, paginationChangeEvent: ve } = Oe(fe);
199
199
  He({
200
200
  columns: n(() => d.value),
201
- columnsBackup: n(() => D.value),
201
+ columnsBackup: n(() => $.value),
202
202
  size: n(() => C.value ? qe[C.value] : "middle"),
203
203
  updateColumns(e) {
204
204
  var r;
@@ -208,48 +208,52 @@ const Bo = /* @__PURE__ */ ke({
208
208
  C.value = Me[e];
209
209
  },
210
210
  renderConfig: n(() => ({
211
- className: re("table-header", "title"),
211
+ className: le("table-header", "title"),
212
212
  color: i.value.colorPrimary
213
213
  })),
214
- dataSource: n(() => o(f).records)
214
+ dataSource: n(() => o(f).records),
215
+ getSearchFormValues: U,
216
+ setSearchFormValues: q,
217
+ submit: N,
218
+ reset: T
215
219
  });
216
- const he = n(
220
+ const Ce = n(
217
221
  () => d.value.some(
218
222
  (e) => e.fixed === "left" || e.fixed === !0
219
223
  ) ? "left" : void 0
220
- ), ve = n(
224
+ ), ye = n(
221
225
  () => b(a.loading) ? f.loading : a.loading
222
- ), Ce = n(
226
+ ), Se = n(
223
227
  () => b(a.dataSource) ? f.records : a.dataSource
224
- ), { selectedRows: x, rowSelection: R, ...ye } = je({
228
+ ), { selectedRows: x, rowSelection: R, ...be } = je({
225
229
  ...a.rowSelection === !0 ? {} : a.rowSelection,
226
- dataSource: Ce,
230
+ dataSource: Se,
227
231
  rowKey: a.rowKey
228
- }), N = () => {
232
+ }), z = () => {
229
233
  const e = m.value;
230
234
  e && (x.value = [
231
235
  ...e.getCheckboxReserveRecords(),
232
236
  ...e.getCheckboxRecords()
233
237
  ]);
234
- }, Se = () => {
238
+ }, we = () => {
235
239
  const e = m.value;
236
240
  e && (x.value = [e.getRadioRecord()]);
237
241
  };
238
- function be() {
242
+ function xe() {
239
243
  var e;
240
244
  return ((e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInTable)) || [];
241
245
  }
242
- function we(e) {
246
+ function q(e) {
243
247
  var r, l, t;
244
248
  (t = (l = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : l.setFieldsValue) == null || t.call(l, e);
245
249
  }
246
- function xe(e = !1) {
250
+ function U(e = !1) {
247
251
  var l, t, u;
248
252
  const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
249
253
  return (u = (t = (l = P.value) == null ? void 0 : l.apForm) == null ? void 0 : t[r]) == null ? void 0 : u.call(t, !0);
250
254
  }
251
- function T() {
252
- ye.clearAll();
255
+ function _() {
256
+ be.clearAll();
253
257
  const e = m.value;
254
258
  e && (R.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
255
259
  }
@@ -263,8 +267,8 @@ const Bo = /* @__PURE__ */ ke({
263
267
  () => [a.columnResizable, a.columns],
264
268
  () => {
265
269
  var r;
266
- const e = be();
267
- d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), D.value = e;
270
+ const e = xe();
271
+ d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
268
272
  },
269
273
  {
270
274
  deep: !0,
@@ -273,7 +277,7 @@ const Bo = /* @__PURE__ */ ke({
273
277
  ), B(
274
278
  () => a.dataSource,
275
279
  (e) => {
276
- ue(e);
280
+ me(e);
277
281
  },
278
282
  { immediate: !0, deep: !0 }
279
283
  ), B(
@@ -287,38 +291,38 @@ const Bo = /* @__PURE__ */ ke({
287
291
  (e) => {
288
292
  C.value = e;
289
293
  }
290
- ), ae({
291
- submit: j,
292
- reset: H,
293
- refresh: ce,
294
- setSearchFormValues: we,
295
- getSearchFormValues: xe,
294
+ ), te({
295
+ submit: N,
296
+ reset: T,
297
+ refresh: pe,
298
+ setSearchFormValues: q,
299
+ getSearchFormValues: U,
296
300
  getShowColumns: () => o(d),
297
301
  rowSelection: {
298
302
  selectedRows: n(() => x.value),
299
- clearAll: T
303
+ clearAll: _
300
304
  },
301
305
  scrollToRow: Re,
302
306
  getDataSource: () => o(f.records)
303
307
  }), (e, r) => (s(), F("div", {
304
- class: g(ie.value),
305
- style: z(e.wrapperStyle)
308
+ class: g(ue.value),
309
+ style: A(e.wrapperStyle)
306
310
  }, [
307
- o(b)(e.dataSource) && e.searchForm !== !1 && $.value.length > 0 ? (s(), F("div", {
311
+ o(b)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), F("div", {
308
312
  key: 0,
309
313
  class: g(e.card ? o(E)("search-wrapper") : null),
310
- style: z(e.searchFormWrapperStyle)
314
+ style: A(e.searchFormWrapperStyle)
311
315
  }, [
312
- U(o(Te).SearchForm, h(e.searchForm || {}, {
316
+ X(o(Te).SearchForm, h(e.searchForm || {}, {
313
317
  ref_key: "formRef",
314
318
  ref: P,
315
319
  "custom-reset": "",
316
320
  "submit-loading": o(M).loading,
317
- onSubmit: o(j),
318
- onReset: o(H)
319
- }), G({
321
+ onSubmit: o(N),
322
+ onReset: o(T)
323
+ }), J({
320
324
  default: v(() => [
321
- (s(!0), F(X, null, _($.value, (l) => (s(), p(A(l.renderNode.Comp), h({
325
+ (s(!0), F(Q, null, V(W.value, (l) => (s(), p(L(l.renderNode.Comp), h({
322
326
  key: l.dataIndex,
323
327
  item: l,
324
328
  ref_for: !0
@@ -329,10 +333,10 @@ const Bo = /* @__PURE__ */ ke({
329
333
  ]),
330
334
  _: 2
331
335
  }, [
332
- L.searchFormExtra ? {
336
+ O.searchFormExtra ? {
333
337
  name: "extra",
334
338
  fn: v(() => [
335
- V(e.$slots, "searchFormExtra")
339
+ D(e.$slots, "searchFormExtra")
336
340
  ]),
337
341
  key: "0"
338
342
  } : void 0
@@ -340,16 +344,16 @@ const Bo = /* @__PURE__ */ ke({
340
344
  ], 6)) : S("", !0),
341
345
  I("div", {
342
346
  class: g([o(E)("table-wrapper"), e.card ? o(E)("table-wrapper-card") : null]),
343
- style: z(e.tableWrapperStyle)
347
+ style: A(e.tableWrapperStyle)
344
348
  }, [
345
349
  I("div", {
346
350
  class: g(o(c)("header-wrapper"))
347
351
  }, [
348
- V(e.$slots, "title", {
352
+ D(e.$slots, "title", {
349
353
  selectedRows: o(x),
350
354
  selectedRowKeys: o(R).selectedRowKeys,
351
355
  shownColumns: d.value,
352
- clearAll: T
356
+ clearAll: _
353
357
  })
354
358
  ], 2),
355
359
  I("div", {
@@ -358,11 +362,11 @@ const Bo = /* @__PURE__ */ ke({
358
362
  (s(), p(o(Pe), h(o($e)(a), {
359
363
  ref_key: "tableRef",
360
364
  ref: m,
361
- key: o(se),
365
+ key: o(ie),
362
366
  data: o(f).records,
363
- "sort-config": { remote: K.value.length > 0 },
364
- "filter-config": { remote: W.value.length > 0 },
365
- loading: ve.value,
367
+ "sort-config": { remote: j.value.length > 0 },
368
+ "filter-config": { remote: H.value.length > 0 },
369
+ loading: ye.value,
366
370
  style: {
367
371
  "--vxe-ui-table-row-checkbox-checked-background-color": o(i).controlItemBgActive,
368
372
  "--vxe-ui-table-row-hover-checkbox-checked-background-color": o(i).controlItemBgActiveHover,
@@ -377,36 +381,36 @@ const Bo = /* @__PURE__ */ ke({
377
381
  "--vxe-ui-table-header-font-color": o(i).colorTextBase
378
382
  },
379
383
  size: C.value,
380
- onSortChange: o(me),
381
- onFilterChange: o(fe),
382
- onCheckboxChange: N,
383
- onCheckboxRangeChange: N,
384
- onCheckboxAll: N,
385
- onRadioChange: Se
386
- }), G({
384
+ onSortChange: o(ge),
385
+ onFilterChange: o(he),
386
+ onCheckboxChange: z,
387
+ onCheckboxRangeChange: z,
388
+ onCheckboxAll: z,
389
+ onRadioChange: we
390
+ }), J({
387
391
  empty: v(() => [
388
- U(o(ee), {
389
- image: o(ee).PRESENTED_IMAGE_SIMPLE
392
+ X(o(ae), {
393
+ image: o(ae).PRESENTED_IMAGE_SIMPLE
390
394
  }, null, 8, ["image"])
391
395
  ]),
392
396
  default: v(() => [
393
- a.expandable ? (s(), p(o(J), h({ key: 0 }, o(Ke)(e.expandable), { fixed: he.value }), {
397
+ a.expandable ? (s(), p(o(Y), h({ key: 0 }, o(Ke)(e.expandable), { fixed: Ce.value }), {
394
398
  content: v((l) => [
395
- (s(), p(A(a.expandable.renderContent(l))))
399
+ (s(), p(L(a.expandable.renderContent(l))))
396
400
  ]),
397
401
  _: 1
398
402
  }, 16, ["fixed"])) : S("", !0),
399
- a.rowSelection ? (s(), p(o(J), h({ key: 1 }, o(We)(o(R), d.value), { field: o(Ue) }), null, 16, ["field"])) : S("", !0),
400
- (s(!0), F(X, null, _(o(ne), (l) => (s(), p(A(l), {
403
+ a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(We)(o(R), d.value), { field: o(Ue) }), null, 16, ["field"])) : S("", !0),
404
+ (s(!0), F(Q, null, V(o(de), (l) => (s(), p(L(l), {
401
405
  key: l.props.colId
402
406
  }))), 128))
403
407
  ]),
404
408
  _: 2
405
409
  }, [
406
- _(o(Ne)(L, ["searchFormExtra"]), (l, t) => ({
410
+ V(o(Ne)(O, ["searchFormExtra"]), (l, t) => ({
407
411
  name: t,
408
412
  fn: v((u) => [
409
- V(e.$slots, t, Ie(Ee(u || {})))
413
+ D(e.$slots, t, Ie(Ee(u || {})))
410
414
  ])
411
415
  }))
412
416
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
@@ -417,13 +421,13 @@ const Bo = /* @__PURE__ */ ke({
417
421
  e.sticky ? (s(), p(o(Ze), {
418
422
  key: 0,
419
423
  direction: "horizontal",
420
- "scroll-container": de.value,
424
+ "scroll-container": ce.value,
421
425
  "extra-size": -4.2
422
426
  }, null, 8, ["scroll-container"])) : S("", !0),
423
427
  e.pagination !== !1 ? (s(), p(o(De), h({
424
428
  key: 1,
425
429
  class: o(c)("pagination")
426
- }, o(M).pagination, { onChange: o(ge) }), null, 16, ["class", "onChange"])) : S("", !0)
430
+ }, o(M).pagination, { onChange: o(ve) }), null, 16, ["class", "onChange"])) : S("", !0)
427
431
  ], 2)
428
432
  ], 6)
429
433
  ], 6));
@@ -1,11 +1,12 @@
1
- import { defineComponent as a, computed as n, createBlock as p, openBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
1
+ import { defineComponent as n, computed as s, onMounted as a, createBlock as i, openBlock as p, resolveDynamicComponent as m, normalizeProps as l, guardReactiveProps as c, createSlots as d, renderList as u, withCtx as f, renderSlot as _ } from "vue";
2
2
  import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
3
3
  import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
4
4
  import "../config-provider/index.mjs";
5
- import { useGlobalConfig as _ } from "../config-provider/hooks/use-global-config.mjs";
5
+ import { isProdMode as b } from "@aplus-frontend/utils";
6
+ import { useGlobalConfig as v } from "../config-provider/hooks/use-global-config.mjs";
6
7
  import y from "./ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs";
7
- import b from "./ap-info-layout-aplus/ap-info-layout.vue2.mjs";
8
- const D = /* @__PURE__ */ a({
8
+ import h from "./ap-info-layout-aplus/ap-info-layout.vue2.mjs";
9
+ const g = /* @__PURE__ */ n({
9
10
  __name: "ApInfoLayout",
10
11
  props: {
11
12
  headerStyle: {},
@@ -13,29 +14,33 @@ const D = /* @__PURE__ */ a({
13
14
  toEl: {},
14
15
  telDisabled: { type: Boolean }
15
16
  },
16
- setup($) {
17
- const r = _("uiMode", "aplus"), t = n(() => {
18
- let e;
17
+ setup(C) {
18
+ const r = v("uiMode", "aplus"), t = s(() => {
19
+ let o;
19
20
  switch (r.value) {
20
21
  case "aplus":
21
- e = b;
22
+ o = h;
22
23
  break;
23
24
  case "admin":
24
- e = y;
25
+ o = y;
25
26
  break;
26
27
  }
27
- return e;
28
+ return o;
28
29
  });
29
- return (e, h) => (s(), p(i(t.value), l(m(e.$props)), c({ _: 2 }, [
30
- u(e.$slots, (k, o) => ({
31
- name: o,
32
- fn: d(() => [
33
- f(e.$slots, o)
30
+ return a(() => {
31
+ b() || console.warn(
32
+ "[DEPRECATED] This component is deprecated and will be removed in next minor version. "
33
+ );
34
+ }), (o, $) => (p(), i(m(t.value), l(c(o.$props)), d({ _: 2 }, [
35
+ u(o.$slots, (k, e) => ({
36
+ name: e,
37
+ fn: f(() => [
38
+ _(o.$slots, e)
34
39
  ])
35
40
  }))
36
41
  ]), 1040));
37
42
  }
38
43
  });
39
44
  export {
40
- D as default
45
+ g as default
41
46
  };