@aplus-frontend/ui 7.2.0 → 7.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/es/index.mjs +143 -143
  2. package/es/src/ag-grid/index.vue.mjs +247 -239
  3. package/es/src/ap-form/style/search-form-sorter.mjs +1 -1
  4. package/es/src/ap-grid/index.vue.mjs +197 -197
  5. package/es/src/ap-pro-card/components/statistic-card/index.vue.mjs +122 -2
  6. package/es/src/ap-pro-card/components/statistic-card/index.vue2.mjs +2 -122
  7. package/es/src/ap-pro-card/index.d.ts +1 -1
  8. package/es/src/ap-pro-card/index.mjs +2 -2
  9. package/es/src/ap-pro-card/statistic-card/index.d.ts +2 -0
  10. package/es/src/ap-pro-card/statistic-card/index.mjs +5 -0
  11. package/es/src/ap-table/ap-table.vue2.mjs +190 -190
  12. package/es/src/ap-table/hooks/use-table-column-state.mjs +18 -18
  13. package/es/src/ap-table/style/index.mjs +1 -1
  14. package/es/src/business/ag-grid-modal/hooks/use-modal-title.mjs +16 -13
  15. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +2 -2
  16. package/es/src/business/ap-attachment/ApAttachment.mjs +2 -2
  17. package/es/src/business/ap-attachment/interface.d.ts +1 -1
  18. package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.mjs +3 -3
  19. package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue2.mjs +2 -2
  20. package/es/src/{ap-descriptions → business/ap-descriptions}/style/index.mjs +1 -1
  21. package/es/src/{ap-download → business/ap-download}/ap-download.vue.mjs +3 -3
  22. package/es/src/{ap-download → business/ap-download}/hooks/useStyle.mjs +3 -3
  23. package/es/src/{ap-download → business/ap-download}/style/index.mjs +1 -1
  24. package/es/src/business/ap-label/group/ApLabelGroup.mjs +2 -2
  25. package/es/src/business/ap-label/interface.d.ts +1 -1
  26. package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.mjs +7 -7
  27. package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue.mjs +2 -2
  28. package/es/src/{ap-tag → business/ap-tag}/style/group.d.ts +1 -1
  29. package/es/src/{ap-tag → business/ap-tag}/style/group.mjs +1 -1
  30. package/{lib/src → es/src/business}/ap-tag/style/index.d.ts +1 -1
  31. package/es/src/{ap-tag → business/ap-tag}/style/index.mjs +1 -1
  32. package/es/src/{ap-upload → business/ap-upload}/apUpload.vue.mjs +4 -4
  33. package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue2.mjs +4 -4
  34. package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue2.mjs +3 -3
  35. package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue2.mjs +4 -4
  36. package/es/src/{ap-upload → business/ap-upload}/hooks/useOss.d.ts +1 -1
  37. package/es/src/{ap-upload → business/ap-upload}/style/index.mjs +1 -1
  38. package/es/src/business/ap-upload/style/multiple-file.d.ts +2 -0
  39. package/es/src/business/ap-upload/style/picture.d.ts +2 -0
  40. package/es/src/business/ap-upload/style/single-file.d.ts +2 -0
  41. package/{lib/src → es/src/business}/ap-upload/utils/accept.d.ts +1 -1
  42. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +1 -1
  43. package/es/src/business/ap-value-select-card/style/index.mjs +4 -4
  44. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +2 -2
  45. package/es/src/business/index.d.ts +4 -0
  46. package/es/src/business/index.mjs +58 -54
  47. package/es/src/config-provider/hooks/use-locale.d.ts +2 -2
  48. package/es/src/index.d.ts +0 -4
  49. package/es/src/index.mjs +297 -301
  50. package/es/src/version.d.ts +1 -1
  51. package/es/src/version.mjs +1 -1
  52. package/lib/index.js +1 -1
  53. package/lib/src/ag-grid/index.vue.js +1 -1
  54. package/lib/src/ap-form/style/search-form-sorter.js +1 -1
  55. package/lib/src/ap-grid/index.vue.js +1 -1
  56. package/lib/src/ap-pro-card/components/statistic-card/index.vue.js +1 -1
  57. package/lib/src/ap-pro-card/components/statistic-card/index.vue2.js +1 -1
  58. package/lib/src/ap-pro-card/index.d.ts +1 -1
  59. package/lib/src/ap-pro-card/index.js +1 -1
  60. package/lib/src/ap-pro-card/statistic-card/index.d.ts +2 -0
  61. package/lib/src/ap-pro-card/statistic-card/index.js +1 -0
  62. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  63. package/lib/src/ap-table/hooks/use-table-column-state.js +1 -1
  64. package/lib/src/ap-table/style/index.js +1 -1
  65. package/lib/src/business/ag-grid-modal/hooks/use-modal-title.js +1 -1
  66. package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
  67. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  68. package/lib/src/business/ap-attachment/interface.d.ts +1 -1
  69. package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -0
  70. package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -0
  71. package/lib/src/business/ap-descriptions/style/index.js +1 -0
  72. package/lib/src/business/ap-download/ap-download.vue.js +1 -0
  73. package/lib/src/business/ap-download/hooks/useStyle.js +1 -0
  74. package/lib/src/business/ap-download/style/index.js +1 -0
  75. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  76. package/lib/src/business/ap-label/interface.d.ts +1 -1
  77. package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -0
  78. package/lib/src/business/ap-tag/ap-tag.vue.js +1 -0
  79. package/lib/src/{ap-tag → business/ap-tag}/style/group.d.ts +1 -1
  80. package/lib/src/business/ap-tag/style/group.js +1 -0
  81. package/{es/src → lib/src/business}/ap-tag/style/index.d.ts +1 -1
  82. package/lib/src/business/ap-tag/style/index.js +1 -0
  83. package/lib/src/business/ap-upload/apUpload.vue.js +1 -0
  84. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -0
  85. package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -0
  86. package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -0
  87. package/lib/src/{ap-upload → business/ap-upload}/hooks/useOss.d.ts +1 -1
  88. package/lib/src/business/ap-upload/style/index.js +1 -0
  89. package/lib/src/business/ap-upload/style/multiple-file.d.ts +2 -0
  90. package/lib/src/business/ap-upload/style/picture.d.ts +2 -0
  91. package/lib/src/business/ap-upload/style/single-file.d.ts +2 -0
  92. package/{es/src → lib/src/business}/ap-upload/utils/accept.d.ts +1 -1
  93. package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +1 -1
  94. package/lib/src/business/ap-value-select-card/style/index.js +1 -1
  95. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  96. package/lib/src/business/index.d.ts +4 -0
  97. package/lib/src/business/index.js +1 -1
  98. package/lib/src/config-provider/hooks/use-locale.d.ts +2 -2
  99. package/lib/src/index.d.ts +0 -4
  100. package/lib/src/index.js +1 -1
  101. package/lib/src/version.d.ts +1 -1
  102. package/lib/src/version.js +1 -1
  103. package/package.json +4 -3
  104. package/es/src/ap-upload/style/multiple-file.d.ts +0 -2
  105. package/es/src/ap-upload/style/picture.d.ts +0 -2
  106. package/es/src/ap-upload/style/single-file.d.ts +0 -2
  107. package/lib/src/ap-descriptions/ap-descriptions.vue.js +0 -1
  108. package/lib/src/ap-descriptions/help-message/index.vue2.js +0 -1
  109. package/lib/src/ap-descriptions/style/index.js +0 -1
  110. package/lib/src/ap-download/ap-download.vue.js +0 -1
  111. package/lib/src/ap-download/hooks/useStyle.js +0 -1
  112. package/lib/src/ap-download/style/index.js +0 -1
  113. package/lib/src/ap-tag/ap-tag-group.vue.js +0 -1
  114. package/lib/src/ap-tag/ap-tag.vue.js +0 -1
  115. package/lib/src/ap-tag/style/group.js +0 -1
  116. package/lib/src/ap-tag/style/index.js +0 -1
  117. package/lib/src/ap-upload/apUpload.vue.js +0 -1
  118. package/lib/src/ap-upload/components/MultipleFile.vue2.js +0 -1
  119. package/lib/src/ap-upload/components/Picture.vue2.js +0 -1
  120. package/lib/src/ap-upload/components/SingleFile.vue2.js +0 -1
  121. package/lib/src/ap-upload/style/index.js +0 -1
  122. package/lib/src/ap-upload/style/multiple-file.d.ts +0 -2
  123. package/lib/src/ap-upload/style/picture.d.ts +0 -2
  124. package/lib/src/ap-upload/style/single-file.d.ts +0 -2
  125. package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.d.ts +0 -0
  126. package/es/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue2.mjs +0 -0
  127. package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/index.d.ts +0 -0
  128. package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/index.mjs +0 -0
  129. package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.d.ts +0 -0
  130. package/es/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.mjs +0 -0
  131. package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.d.ts +0 -0
  132. package/es/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.mjs +0 -0
  133. package/es/src/{ap-descriptions → business/ap-descriptions}/helper.d.ts +0 -0
  134. package/es/src/{ap-descriptions → business/ap-descriptions}/helper.mjs +0 -0
  135. package/es/src/{ap-descriptions → business/ap-descriptions}/index.d.ts +0 -0
  136. package/es/src/{ap-descriptions → business/ap-descriptions}/index.mjs +0 -0
  137. package/es/src/{ap-descriptions → business/ap-descriptions}/interface.d.ts +0 -0
  138. package/es/src/{ap-descriptions → business/ap-descriptions}/interface.mjs +0 -0
  139. package/es/src/{ap-descriptions → business/ap-descriptions}/style/index.d.ts +0 -0
  140. package/es/src/{ap-download → business/ap-download}/ap-download.vue.d.ts +0 -0
  141. package/es/src/{ap-download → business/ap-download}/ap-download.vue2.mjs +0 -0
  142. package/es/src/{ap-download → business/ap-download}/hooks/index.d.ts +0 -0
  143. package/es/src/{ap-download → business/ap-download}/hooks/index.mjs +0 -0
  144. package/es/src/{ap-download → business/ap-download}/hooks/useStyle.d.ts +0 -0
  145. package/es/src/{ap-download → business/ap-download}/index.d.ts +0 -0
  146. package/es/src/{ap-download → business/ap-download}/index.mjs +0 -0
  147. package/es/src/{ap-download → business/ap-download}/interface.d.ts +0 -0
  148. package/es/src/{ap-download → business/ap-download}/interface.mjs +0 -0
  149. package/es/src/{ap-download → business/ap-download}/style/index.d.ts +0 -0
  150. package/es/src/{ap-download → business/ap-download}/utils/getFileInfo.d.ts +0 -0
  151. package/es/src/{ap-download → business/ap-download}/utils/getFileInfo.mjs +0 -0
  152. package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.d.ts +0 -0
  153. package/es/src/{ap-tag → business/ap-tag}/ap-tag-group.vue2.mjs +0 -0
  154. package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue.d.ts +0 -0
  155. package/es/src/{ap-tag → business/ap-tag}/ap-tag.vue2.mjs +0 -0
  156. package/es/src/{ap-tag → business/ap-tag}/index.d.ts +0 -0
  157. package/es/src/{ap-tag → business/ap-tag}/index.mjs +0 -0
  158. package/es/src/{ap-tag → business/ap-tag}/interface.d.ts +0 -0
  159. package/es/src/{ap-tag → business/ap-tag}/interface.mjs +0 -0
  160. package/es/src/{ap-tag → business/ap-tag}/utils.d.ts +0 -0
  161. package/es/src/{ap-tag → business/ap-tag}/utils.mjs +0 -0
  162. package/{lib/src → es/src/business}/ap-upload/apUpload.vue.d.ts +1 -1
  163. package/es/src/{ap-upload → business/ap-upload}/apUpload.vue2.mjs +0 -0
  164. package/es/src/{ap-upload → business/ap-upload}/apUploadTypes.d.ts +0 -0
  165. package/es/src/{ap-upload → business/ap-upload}/apUploadTypes.mjs +0 -0
  166. package/es/src/{ap-upload → business/ap-upload}/assets/single-file-icon.png.mjs +0 -0
  167. package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.d.ts +0 -0
  168. package/es/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.mjs +0 -0
  169. package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue.d.ts +0 -0
  170. package/es/src/{ap-upload → business/ap-upload}/components/Picture.vue.mjs +0 -0
  171. package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.d.ts +0 -0
  172. package/es/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.mjs +0 -0
  173. package/es/src/{ap-upload → business/ap-upload}/hooks/useOss.mjs +0 -0
  174. package/es/src/{ap-upload → business/ap-upload}/index.d.ts +0 -0
  175. package/es/src/{ap-upload → business/ap-upload}/index.mjs +0 -0
  176. package/es/src/{ap-upload → business/ap-upload}/style/index.d.ts +0 -0
  177. package/es/src/{ap-upload → business/ap-upload}/style/multiple-file.mjs +0 -0
  178. package/es/src/{ap-upload → business/ap-upload}/style/picture.mjs +0 -0
  179. package/es/src/{ap-upload → business/ap-upload}/style/single-file.mjs +0 -0
  180. package/es/src/{ap-upload → business/ap-upload}/utils/accept.mjs +0 -0
  181. package/es/src/{ap-upload → business/ap-upload}/utils/returnData.d.ts +0 -0
  182. package/es/src/{ap-upload → business/ap-upload}/utils/returnData.mjs +0 -0
  183. package/lib/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue.d.ts +0 -0
  184. package/lib/src/{ap-descriptions → business/ap-descriptions}/ap-descriptions.vue2.js +0 -0
  185. package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/index.d.ts +0 -0
  186. package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/index.js +0 -0
  187. package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.d.ts +0 -0
  188. package/lib/src/{ap-descriptions → business/ap-descriptions}/formatter/utils.js +0 -0
  189. package/lib/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.d.ts +0 -0
  190. package/lib/src/{ap-descriptions → business/ap-descriptions}/help-message/index.vue.js +0 -0
  191. package/lib/src/{ap-descriptions → business/ap-descriptions}/helper.d.ts +0 -0
  192. package/lib/src/{ap-descriptions → business/ap-descriptions}/helper.js +0 -0
  193. package/lib/src/{ap-descriptions → business/ap-descriptions}/index.d.ts +0 -0
  194. package/lib/src/{ap-descriptions → business/ap-descriptions}/index.js +0 -0
  195. package/lib/src/{ap-descriptions → business/ap-descriptions}/interface.d.ts +0 -0
  196. package/lib/src/{ap-descriptions → business/ap-descriptions}/interface.js +0 -0
  197. package/lib/src/{ap-descriptions → business/ap-descriptions}/style/index.d.ts +0 -0
  198. package/lib/src/{ap-download → business/ap-download}/ap-download.vue.d.ts +0 -0
  199. package/lib/src/{ap-download → business/ap-download}/ap-download.vue2.js +0 -0
  200. package/lib/src/{ap-download → business/ap-download}/hooks/index.d.ts +0 -0
  201. package/lib/src/{ap-download → business/ap-download}/hooks/index.js +0 -0
  202. package/lib/src/{ap-download → business/ap-download}/hooks/useStyle.d.ts +0 -0
  203. package/lib/src/{ap-download → business/ap-download}/index.d.ts +0 -0
  204. package/lib/src/{ap-download → business/ap-download}/index.js +0 -0
  205. package/lib/src/{ap-download → business/ap-download}/interface.d.ts +0 -0
  206. package/lib/src/{ap-download → business/ap-download}/interface.js +0 -0
  207. package/lib/src/{ap-download → business/ap-download}/style/index.d.ts +0 -0
  208. package/lib/src/{ap-download → business/ap-download}/utils/getFileInfo.d.ts +0 -0
  209. package/lib/src/{ap-download → business/ap-download}/utils/getFileInfo.js +0 -0
  210. package/lib/src/{ap-tag → business/ap-tag}/ap-tag-group.vue.d.ts +0 -0
  211. package/lib/src/{ap-tag → business/ap-tag}/ap-tag-group.vue2.js +0 -0
  212. package/lib/src/{ap-tag → business/ap-tag}/ap-tag.vue.d.ts +0 -0
  213. package/lib/src/{ap-tag → business/ap-tag}/ap-tag.vue2.js +0 -0
  214. package/lib/src/{ap-tag → business/ap-tag}/index.d.ts +0 -0
  215. package/lib/src/{ap-tag → business/ap-tag}/index.js +0 -0
  216. package/lib/src/{ap-tag → business/ap-tag}/interface.d.ts +0 -0
  217. package/lib/src/{ap-tag → business/ap-tag}/interface.js +0 -0
  218. package/lib/src/{ap-tag → business/ap-tag}/utils.d.ts +0 -0
  219. package/lib/src/{ap-tag → business/ap-tag}/utils.js +0 -0
  220. package/{es/src → lib/src/business}/ap-upload/apUpload.vue.d.ts +1 -1
  221. /package/lib/src/{ap-upload → business/ap-upload}/apUpload.vue2.js +0 -0
  222. /package/lib/src/{ap-upload → business/ap-upload}/apUploadTypes.d.ts +0 -0
  223. /package/lib/src/{ap-upload → business/ap-upload}/apUploadTypes.js +0 -0
  224. /package/lib/src/{ap-upload → business/ap-upload}/assets/single-file-icon.png.js +0 -0
  225. /package/lib/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.d.ts +0 -0
  226. /package/lib/src/{ap-upload → business/ap-upload}/components/MultipleFile.vue.js +0 -0
  227. /package/lib/src/{ap-upload → business/ap-upload}/components/Picture.vue.d.ts +0 -0
  228. /package/lib/src/{ap-upload → business/ap-upload}/components/Picture.vue.js +0 -0
  229. /package/lib/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.d.ts +0 -0
  230. /package/lib/src/{ap-upload → business/ap-upload}/components/SingleFile.vue.js +0 -0
  231. /package/lib/src/{ap-upload → business/ap-upload}/hooks/useOss.js +0 -0
  232. /package/lib/src/{ap-upload → business/ap-upload}/index.d.ts +0 -0
  233. /package/lib/src/{ap-upload → business/ap-upload}/index.js +0 -0
  234. /package/lib/src/{ap-upload → business/ap-upload}/style/index.d.ts +0 -0
  235. /package/lib/src/{ap-upload → business/ap-upload}/style/multiple-file.js +0 -0
  236. /package/lib/src/{ap-upload → business/ap-upload}/style/picture.js +0 -0
  237. /package/lib/src/{ap-upload → business/ap-upload}/style/single-file.js +0 -0
  238. /package/lib/src/{ap-upload → business/ap-upload}/utils/accept.js +0 -0
  239. /package/lib/src/{ap-upload → business/ap-upload}/utils/returnData.d.ts +0 -0
  240. /package/lib/src/{ap-upload → business/ap-upload}/utils/returnData.js +0 -0
@@ -1,35 +1,37 @@
1
- import { defineComponent as uo, useSlots as co, ref as T, toRef as b, unref as t, computed as n, nextTick as z, watch as M, createElementBlock as W, openBlock as F, normalizeStyle as O, normalizeClass as f, createCommentVNode as le, createElementVNode as B, createVNode as G, mergeProps as H, createSlots as mo, withCtx as ne, Fragment as po, renderList as fo, createBlock as se, resolveDynamicComponent as go, renderSlot as ie, withDirectives as wo, vShow as So } from "vue";
2
- import { AgGridVue as ho } from "ag-grid-vue3";
3
- import { ModuleRegistry as yo, AllCommunityModule as Co } from "ag-grid-community";
4
- import { mergeProps as vo } from "./utils.mjs";
5
- import { Spin as Ro, Pagination as bo } from "@aplus-frontend/antdv";
6
- import { isUndefined as k, isFunction as D } from "lodash-unified";
1
+ import { defineComponent as po, useSlots as fo, ref as F, toRef as B, unref as t, computed as n, nextTick as M, watch as G, createElementBlock as O, openBlock as y, normalizeStyle as W, normalizeClass as f, createCommentVNode as se, createElementVNode as k, createVNode as ie, mergeProps as L, createSlots as go, withCtx as ue, Fragment as wo, renderList as So, createBlock as H, resolveDynamicComponent as ho, renderSlot as ce, withDirectives as yo, vShow as Co } from "vue";
2
+ import { AgGridVue as vo } from "ag-grid-vue3";
3
+ import { ModuleRegistry as Ro, AllCommunityModule as bo } from "ag-grid-community";
4
+ import { mergeProps as Fo } from "./utils.mjs";
5
+ import { Spin as Bo, Pagination as ko } from "@aplus-frontend/antdv";
6
+ import { isUndefined as x, isFunction as T } from "lodash-unified";
7
7
  import "../config-provider/index.mjs";
8
- import { ApForm as Fo } from "../ap-form/index.mjs";
9
- import { recursionApColumns as Bo } from "../ap-table/utils.mjs";
10
- import { useTablePaging as ko } from "../ap-table/hooks/use-table-paging-ng.mjs";
11
- import Io from "./hooks/use-row-selection.mjs";
12
- import { useProvideSorter as xo } from "./context.mjs";
13
- import { useProvideApTable as No } from "../ap-table/context.mjs";
14
- import { DEFAULT_ROW_SELECTION_CONFIG as ue, sizeReverseMap as To, sizeMap as Do } from "../ap-grid/constants.mjs";
15
- import { useToken as Eo } from "@aplus-frontend/antdv/es/theme/internal";
16
- import { useTheme as Ko } from "./theme.mjs";
17
- import { useColumns as Po } from "./hooks/use-columns.mjs";
18
- import { useColumnsDef as Ao } from "./hooks/use-columns-def.mjs";
19
- import { isDef as Vo } from "../utils/index.mjs";
20
- import { getValidVNodeList as zo } from "../utils/slot.mjs";
21
- import { useSearchForm as Mo } from "./hooks/use-search-form.mjs";
8
+ import { ApForm as xo } from "../ap-form/index.mjs";
9
+ import { recursionApColumns as Io } from "../ap-table/utils.mjs";
10
+ import { useTablePaging as No } from "../ap-table/hooks/use-table-paging-ng.mjs";
11
+ import Do from "./hooks/use-row-selection.mjs";
12
+ import { useProvideSorter as To } from "./context.mjs";
13
+ import { useProvideApTable as Ao } from "../ap-table/context.mjs";
14
+ import { DEFAULT_ROW_SELECTION_CONFIG as de, sizeReverseMap as Eo, sizeMap as Ko } from "../ap-grid/constants.mjs";
15
+ import { useToken as Po } from "@aplus-frontend/antdv/es/theme/internal";
16
+ import { useTheme as zo } from "./theme.mjs";
17
+ import { useColumns as Vo } from "./hooks/use-columns.mjs";
18
+ import { useColumnsDef as Mo } from "./hooks/use-columns-def.mjs";
19
+ import { isDef as Go } from "../utils/index.mjs";
20
+ import { getValidVNodeList as Oo } from "../utils/slot.mjs";
21
+ import { useSearchForm as Wo } from "./hooks/use-search-form.mjs";
22
22
  import "./components/empty/index.vue.mjs";
23
- import Wo from "./hooks/use-virtual-config.mjs";
24
- import { usePinnedRow as Oo } from "./hooks/use-pinned-row.mjs";
25
- import Go from "./hooks/use-selection-col-def.mjs";
23
+ import Lo from "./hooks/use-virtual-config.mjs";
24
+ import { usePinnedRow as Ho } from "./hooks/use-pinned-row.mjs";
25
+ import Uo from "./hooks/use-selection-col-def.mjs";
26
26
  import "./components/row/index.vue.mjs";
27
- import Ho from "./style/index.mjs";
28
- import { useNamespace as Lo } from "../config-provider/hooks/use-namespace.mjs";
29
- import { useGlobalConfig as Uo } from "../config-provider/hooks/use-global-config.mjs";
30
- import jo from "./components/row/index.vue2.mjs";
31
- import $o from "./components/empty/index.vue2.mjs";
32
- const Ft = /* @__PURE__ */ uo({
27
+ import _o from "./style/index.mjs";
28
+ import { AG_GRID_LOCALE_EN as jo, AG_GRID_LOCALE_CN as $o } from "@ag-grid-community/locale";
29
+ import { useNamespace as qo } from "../config-provider/hooks/use-namespace.mjs";
30
+ import { useLocale as Jo } from "../config-provider/hooks/use-locale.mjs";
31
+ import { useGlobalConfig as Qo } from "../config-provider/hooks/use-global-config.mjs";
32
+ import Xo from "./components/row/index.vue2.mjs";
33
+ import Yo from "./components/empty/index.vue2.mjs";
34
+ const At = /* @__PURE__ */ po({
33
35
  name: "AgGrid",
34
36
  __name: "index",
35
37
  props: {
@@ -104,69 +106,73 @@ const Ft = /* @__PURE__ */ uo({
104
106
  customRow: {},
105
107
  theme: {}
106
108
  },
107
- setup(de, { expose: ce }) {
108
- yo.registerModules([Co]);
109
- const o = de, L = co(), { e: I, b: d, be: me } = Lo("ag-grid"), pe = Ho("ag-grid"), y = T(o.size), fe = Ko(
110
- y,
111
- b(o, "rowHeight"),
112
- b(o, "theme")
113
- ), ge = Wo(b(o, "virtual")), { rowPinnedGridConfig: U, getRowPinnedCellClass: we } = Oo(
114
- b(o, "summary")
115
- ), Se = Uo("apGrid"), s = T(), [, he] = Eo();
116
- let C = !!o.dataSource;
117
- const j = Mo(o), { shownColumns: g, columns: $, columnKeys: ye, getTargetColumnByKey: Ce } = Po(o), { defaultColDef: ve, columnDefs: Re, gridWrapperRef: be } = Ao($, o, we), x = T({});
118
- xo({
119
- sorter: x,
109
+ setup(me, { expose: pe }) {
110
+ const fe = {
111
+ "zh-cn": $o,
112
+ en: jo
113
+ };
114
+ Ro.registerModules([bo]);
115
+ const o = me, U = fo(), { e: I, b: c, be: ge } = qo("ag-grid"), { lang: _ } = Jo(), we = _o("ag-grid"), C = F(o.size), Se = zo(
116
+ C,
117
+ B(o, "rowHeight"),
118
+ B(o, "theme")
119
+ ), he = Lo(B(o, "virtual")), { rowPinnedGridConfig: j, getRowPinnedCellClass: ye } = Ho(
120
+ B(o, "summary")
121
+ ), Ce = Qo("apGrid"), s = F(), [, ve] = Po();
122
+ let v = !!o.dataSource;
123
+ const $ = Wo(o), { shownColumns: g, columns: q, columnKeys: Re, getTargetColumnByKey: be } = Vo(o), { defaultColDef: Fe, columnDefs: Be, gridWrapperRef: ke } = Mo(q, o, ye), N = F({});
124
+ To({
125
+ sorter: N,
120
126
  setSorter(e) {
121
- x.value = e;
127
+ N.value = e;
122
128
  }
123
129
  });
124
- const Fe = {
130
+ const xe = {
125
131
  asc: "ascend",
126
132
  desc: "descend"
127
133
  };
128
- function Be() {
129
- const e = s.value.getColumns()?.filter((c) => c.getSort() !== void 0), r = t(x) || {};
134
+ function Ie() {
135
+ const e = s.value.getColumns()?.filter((d) => d.getSort() !== void 0), r = t(N) || {};
130
136
  let a = e?.[0];
131
137
  const i = Object.keys(r);
132
- if (i.length && i.every((c) => r[c] === null)) {
133
- const c = Object.keys(r)[0];
134
- c && (a = s.value?.getColumn(c));
138
+ if (i.length && i.every((d) => r[d] === null)) {
139
+ const d = Object.keys(r)[0];
140
+ d && (a = s.value?.getColumn(d));
135
141
  }
136
142
  if (!a)
137
143
  return;
138
- const u = a.getColDef(), m = a.getSort(), p = Ce(u.colId);
139
- _(void 0, void 0, {
144
+ const u = a.getColDef(), m = a.getSort(), p = be(u.colId);
145
+ Q(void 0, void 0, {
140
146
  column: u,
141
147
  field: p?.field ?? u.field ?? u.colId,
142
- order: m ? Fe[m] : null
148
+ order: m ? xe[m] : null
143
149
  });
144
150
  }
145
- const ke = n(() => Bo(t(g), (e) => {
151
+ const Ne = n(() => Io(t(g), (e) => {
146
152
  if (e.sorter === !0)
147
153
  return e.field ?? e.dataIndex ?? e.key;
148
- }).filter(Boolean)), Ie = () => {
149
- x.value = {};
154
+ }).filter(Boolean)), De = () => {
155
+ N.value = {};
150
156
  const e = s.value;
151
157
  if (!e)
152
158
  return;
153
159
  const r = e.getColumnState()?.map((a) => ({ ...a, sort: null }));
154
160
  e.applyColumnState({ state: r });
155
- }, xe = n(() => Vo(o.manual) ? o.manual : zo(L.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
161
+ }, A = F(!0), Te = n(() => Go(o.manual) ? o.manual : Oo(U.searchFormExtra?.() || []).some((r) => r.type?.name === "ApView")), {
156
162
  formRef: w,
157
163
  submit: E,
158
164
  reset: K,
159
165
  data: S,
160
- tableProps: q,
161
- handleTableChangeOptional: _,
162
- submitWith: J,
163
- refresh: Q,
164
- getPaging: Ne,
165
- setPaging: Te,
166
- setDataSource: De
167
- } = ko({
166
+ tableProps: J,
167
+ handleTableChangeOptional: Q,
168
+ submitWith: X,
169
+ refresh: Y,
170
+ getPaging: Ae,
171
+ setPaging: Ee,
172
+ setDataSource: Ke
173
+ } = No({
168
174
  async request(e) {
169
- if (C = !1, h.value && !h.value.preserveSelectedRowKeys && k(o.dataSource) && V(), !k(o.dataSource)) {
175
+ if (v = !1, h.value && !h.value.preserveSelectedRowKeys && x(o.dataSource) && !A.value && V(), A.value && (A.value = !1), !x(o.dataSource)) {
170
176
  const a = e.pageSize * (e.current - 1);
171
177
  return {
172
178
  data: (o.pagination === !1 ? o.dataSource : o.dataSource.slice(a, a + e.pageSize)) || [],
@@ -180,366 +186,368 @@ const Ft = /* @__PURE__ */ uo({
180
186
  };
181
187
  },
182
188
  namespace: "ap-grid",
183
- filterFields: T([]),
184
- params: b(o, "params"),
189
+ filterFields: F([]),
190
+ params: B(o, "params"),
185
191
  defaultData: o.defaultData,
186
- manual: t(xe),
192
+ manual: t(Te),
187
193
  formatParams: o.beforeSearchSubmit,
188
194
  pagination: o.pagination,
189
- sortFields: ke,
190
- onClickReset: Ie
195
+ sortFields: Ne,
196
+ onClickReset: De
191
197
  }), h = n(() => {
192
- const e = o.rowSelection || Se.value?.rowSelection;
198
+ const e = o.rowSelection || Ce.value?.rowSelection;
193
199
  if (e)
194
- return e === !0 ? ue : {
195
- ...ue,
200
+ return e === !0 ? de : {
201
+ ...de,
196
202
  ...e
197
203
  };
198
- }), Ee = Go(o, g), Ke = n(
199
- () => k(o.dataSource) ? S.records : o.dataSource
204
+ }), Pe = Uo(o, g), ze = n(
205
+ () => x(o.dataSource) ? S.records : o.dataSource
200
206
  ), {
201
- select: Pe,
202
- unSelect: Ae,
207
+ select: Ve,
208
+ unSelect: Me,
203
209
  selectedRows: P,
204
- selectedRowKeys: Ve,
205
- clearAll: ze,
206
- selectMultiByKeys: Me,
207
- selectMulti: We,
208
- unSelectMulti: Oe
209
- } = Io({
210
+ selectedRowKeys: Ge,
211
+ clearAll: Oe,
212
+ selectMultiByKeys: We,
213
+ selectMulti: Le,
214
+ unSelectMulti: He
215
+ } = Do({
210
216
  ...h.value,
211
- dataSource: Ke,
217
+ dataSource: ze,
212
218
  rowKey: o.rowKey
213
- }), Ge = {
219
+ }), Ue = {
214
220
  checkbox: "multiRow",
215
221
  radio: "singleRow"
216
- }, He = n(() => {
222
+ }, _e = n(() => {
217
223
  const e = h.value;
218
224
  if (!e)
219
225
  return;
220
226
  const { type: r = "checkbox", disabled: a } = e;
221
227
  return {
222
- mode: Ge[r],
228
+ mode: Ue[r],
223
229
  isRowSelectable: (i) => a ? !a(i.data) : !0,
224
230
  hideDisabledCheckboxes: e.hideDisabled ?? !1
225
231
  };
226
232
  });
227
- function A(e) {
228
- return D(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
233
+ function z(e) {
234
+ return T(o.rowKey) ? o.rowKey(e) : e[o.rowKey];
229
235
  }
230
- const N = ({
236
+ const D = ({
231
237
  api: e = s.value
232
238
  }) => {
233
239
  if (o.onUpdate?.(), !h.value)
234
240
  return;
235
241
  const r = P.value || [];
236
- C = !1;
242
+ v = !1;
237
243
  const a = [];
238
244
  e.forEachNode((i) => {
239
- const v = i.data, u = A(v), m = i.isSelected();
240
- r.find((p) => A(p) === u) ? !m && a.push(i) : m && i.setSelected(!1);
245
+ const R = i.data, u = z(R), m = i.isSelected();
246
+ r.find((p) => z(p) === u) ? !m && a.push(i) : m && i.setSelected(!1);
241
247
  }), e.setNodesSelected({ nodes: a, newValue: !0 }), setTimeout(() => {
242
- C = !0;
248
+ v = !0;
243
249
  }, 0);
244
- }, Le = (e) => {
245
- C && (e.node.isSelected() ? Pe(e.data) : Ae(e.data), D(h.value?.tooltip) && e.api.refreshCells({
250
+ }, je = (e) => {
251
+ v && (e.node.isSelected() ? Ve(e.data) : Me(e.data), T(h.value?.tooltip) && e.api.refreshCells({
246
252
  rowNodes: [e.node],
247
253
  // todo: 取消硬编码
248
254
  columns: ["ag-Grid-SelectionColumn"],
249
255
  force: !0
250
256
  }));
251
- }, Ue = () => {
252
- C = !0;
257
+ }, $e = () => {
258
+ v = !0;
253
259
  }, V = () => {
254
- ze(), s.value?.deselectAll();
260
+ Oe(), s.value?.deselectAll();
255
261
  };
256
- function je(e) {
257
- Me(e), z(() => {
258
- N({});
262
+ function qe(e) {
263
+ We(e), M(() => {
264
+ D({});
259
265
  });
260
266
  }
261
- const $e = n(() => {
267
+ const Je = n(() => {
262
268
  const e = o.customRow;
263
269
  return e ? {
264
270
  isFullWidthRow: e.isCustomRow,
265
- fullWidthCellRenderer: jo,
271
+ fullWidthCellRenderer: Xo,
266
272
  fullWidthCellRendererParams: {
267
273
  render: e.render
268
274
  }
269
275
  } : {};
270
276
  });
271
- function qe(e) {
272
- We(e), z(() => {
273
- N({});
277
+ function Qe(e) {
278
+ Le(e), M(() => {
279
+ D({});
274
280
  });
275
281
  }
276
- function _e(e) {
277
- Oe(e), z(() => {
278
- N({});
282
+ function Xe(e) {
283
+ He(e), M(() => {
284
+ D({});
279
285
  });
280
286
  }
281
- function X(e = !1) {
287
+ function Z(e = !1) {
282
288
  const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
283
289
  return w.value?.apForm?.[r]?.(!0);
284
290
  }
285
- function Y(e) {
291
+ function ee(e) {
286
292
  w.value?.apForm?.setFieldsValue?.(e);
287
293
  }
288
- function Z() {
294
+ function oe() {
289
295
  return w.value?.getSorterItems() || [];
290
296
  }
291
- function ee(e) {
297
+ function te(e) {
292
298
  w.value?.setSorterItems(e);
293
299
  }
294
- function oe() {
300
+ function re() {
295
301
  w.value?.resetSorterItems();
296
302
  }
297
- function te(e) {
303
+ function ae(e) {
298
304
  return e && String(e);
299
305
  }
300
- function Je(e) {
306
+ function Ye(e) {
301
307
  const r = s.value;
302
308
  if (!r)
303
309
  return;
304
- const a = r.getColumnState() || [], i = e.map((l) => l.key ? String(l.key) : l.key).filter(Boolean), v = a.map((l) => {
305
- if (!ye.value.includes(l.colId))
310
+ const a = r.getColumnState() || [], i = e.map((l) => l.key ? String(l.key) : l.key).filter(Boolean), R = a.map((l) => {
311
+ if (!Re.value.includes(l.colId))
306
312
  return l;
307
- const R = !i.includes(l.colId), re = {
313
+ const b = !i.includes(l.colId), le = {
308
314
  ...l,
309
- hide: R
310
- }, ae = e.find(
311
- (io) => te(io.key) === l.colId
315
+ hide: b
316
+ }, ne = e.find(
317
+ (mo) => ae(mo.key) === l.colId
312
318
  );
313
- return ae && (re.pinned = ae.fixed || null), re;
319
+ return ne && (le.pinned = ne.fixed || null), le;
314
320
  }), u = new Map(
315
- e.map((l, R) => [te(l.key), R])
316
- ), m = v.filter((l) => u.has(l.colId)).sort(
317
- (l, R) => u.get(l.colId) - u.get(R.colId)
321
+ e.map((l, b) => [ae(l.key), b])
322
+ ), m = R.filter((l) => u.has(l.colId)).sort(
323
+ (l, b) => u.get(l.colId) - u.get(b.colId)
318
324
  ), p = [];
319
- let c = 0;
320
- for (const l of v)
321
- u.has(l.colId) ? p.push(m[c++]) : p.push(l);
325
+ let d = 0;
326
+ for (const l of R)
327
+ u.has(l.colId) ? p.push(m[d++]) : p.push(l);
322
328
  r.applyColumnState({
323
329
  state: p,
324
330
  applyOrder: !0
325
331
  });
326
332
  }
327
- No({
333
+ Ao({
328
334
  columns: n(() => g.value),
329
- columnsBackup: n(() => $.value),
330
- size: n(() => Do[y.value]),
335
+ columnsBackup: n(() => q.value),
336
+ size: n(() => Ko[C.value]),
331
337
  updateColumns(e) {
332
- g.value = e, o.onShownColumnsChange?.(e), Je(e);
338
+ g.value = e, o.onShownColumnsChange?.(e), Ye(e);
333
339
  },
334
340
  updateSize(e) {
335
- y.value = To[e];
341
+ C.value = Eo[e];
336
342
  },
337
343
  renderConfig: n(() => ({
338
- className: me("table-header", "title"),
339
- color: he.value.colorTextTertiary
344
+ className: ge("table-header", "title"),
345
+ color: ve.value.colorTextTertiary
340
346
  })),
341
347
  dataSource: n(() => t(S).records),
342
- getSearchFormValues: X,
343
- setSearchFormValues: Y,
348
+ getSearchFormValues: Z,
349
+ setSearchFormValues: ee,
344
350
  submit: E,
345
- submitWith: J,
351
+ submitWith: X,
346
352
  reset: K,
347
- refresh: Q,
348
- getSearchFormSorterItems: Z,
349
- setSearchFormSorterItems: ee,
350
- resetSearchFormSorterItems: oe
353
+ refresh: Y,
354
+ getSearchFormSorterItems: oe,
355
+ setSearchFormSorterItems: te,
356
+ resetSearchFormSorterItems: re
351
357
  });
352
- const Qe = n(
353
- () => k(o.loading) ? S.loading : o.loading
354
- ), Xe = n(() => [
355
- d(),
356
- o.card ? null : d("wrapper"),
357
- d("adaptive"),
358
- d(`size-${y.value}`),
359
- pe.value
360
- ].filter(Boolean)), Ye = n(() => ({
358
+ const Ze = n(
359
+ () => x(o.loading) ? S.loading : o.loading
360
+ ), eo = n(() => [
361
+ c(),
362
+ o.card ? null : c("wrapper"),
363
+ c("adaptive"),
364
+ c(`size-${C.value}`),
365
+ we.value
366
+ ].filter(Boolean)), oo = n(() => ({
361
367
  height: "100%",
362
368
  ...o.tableStyle || {}
363
- })), Ze = (e, r) => {
364
- _({ current: e, pageSize: r });
369
+ })), to = (e, r) => {
370
+ Q({ current: e, pageSize: r });
365
371
  };
366
- function eo(e) {
372
+ function ro(e) {
367
373
  const r = e.data;
368
- return A(r);
374
+ return z(r);
369
375
  }
370
- function oo(e, r) {
371
- (D(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
376
+ function ao(e, r) {
377
+ (T(e) ? s.value?.ensureNodeVisible : s.value?.ensureIndexVisible)?.(e, r);
372
378
  }
373
- function to(e, r) {
379
+ function lo(e, r) {
374
380
  s.value?.ensureColumnVisible(e, r);
375
381
  }
376
- function ro(e) {
382
+ function no(e) {
377
383
  o.onRowClicked?.(e.data, e.event);
378
384
  }
379
- function ao(e) {
385
+ function so(e) {
380
386
  o.onScrollEnd?.(e.direction);
381
387
  }
382
- function lo(e) {
388
+ function io(e) {
383
389
  return s.value?.refreshCells(e);
384
390
  }
385
- function no(e) {
391
+ function uo(e) {
386
392
  return s.value?.redrawRows(e);
387
393
  }
388
- const so = (e) => {
394
+ const co = (e) => {
389
395
  const r = [
390
- U.value.getRowClass?.(e)
396
+ j.value.getRowClass?.(e)
391
397
  ];
392
398
  if (!e.node.rowPinned) {
393
- const a = D(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
399
+ const a = T(o.rowClassName) ? o.rowClassName(e.data, e.rowIndex) : o.rowClassName;
394
400
  r.push(a);
395
401
  }
396
402
  return r.flat().filter(Boolean);
397
403
  };
398
- return M(
404
+ return G(
399
405
  () => o.dataSource,
400
406
  (e) => {
401
- De(e);
407
+ Ke(e);
402
408
  },
403
409
  { immediate: !0, deep: !0 }
404
- ), M(
410
+ ), G(
405
411
  () => o.size,
406
412
  (e) => {
407
- y.value = e;
413
+ C.value = e;
408
414
  }
409
- ), M(
415
+ ), G(
410
416
  () => t(S).loading,
411
417
  (e) => {
412
418
  o.onLoadingChange?.(e);
413
419
  }
414
- ), ce({
420
+ ), pe({
415
421
  submit: E,
416
422
  reset: K,
417
- refresh: Q,
418
- submitWith: J,
419
- setSearchFormValues: Y,
420
- getSearchFormValues: X,
423
+ refresh: Y,
424
+ submitWith: X,
425
+ setSearchFormValues: ee,
426
+ getSearchFormValues: Z,
421
427
  getShowColumns: () => t(g),
422
428
  rowSelection: {
423
429
  selectedRows: n(() => P.value),
424
- setSelectedRowKeys: je,
425
- setSelectedRows: qe,
430
+ setSelectedRowKeys: qe,
431
+ setSelectedRows: Qe,
426
432
  clearAll: V,
427
- unSelectRows: _e
433
+ unSelectRows: Xe
428
434
  },
429
- scrollToRow: oo,
430
- scrollToColumn: to,
435
+ scrollToRow: ao,
436
+ scrollToColumn: lo,
431
437
  getDataSource: () => t(S.records),
432
- getPaging: Ne,
433
- setPaging: Te,
434
- getSearchFormSorterItems: Z,
435
- setSearchFormSorterItems: ee,
436
- resetSearchFormSorterItems: oe,
437
- refreshCells: lo,
438
- redrawRows: no,
438
+ getPaging: Ae,
439
+ setPaging: Ee,
440
+ getSearchFormSorterItems: oe,
441
+ setSearchFormSorterItems: te,
442
+ resetSearchFormSorterItems: re,
443
+ refreshCells: io,
444
+ redrawRows: uo,
439
445
  _internalGridApi: n(() => s.value)
440
- }), (e, r) => (F(), W("div", {
441
- class: f(Xe.value),
442
- style: O(e.wrapperStyle)
446
+ }), (e, r) => (y(), O("div", {
447
+ class: f(eo.value),
448
+ style: W(e.wrapperStyle)
443
449
  }, [
444
- t(k)(e.dataSource) && e.searchForm !== !1 && t(j).length > 0 ? (F(), W("div", {
450
+ t(x)(e.dataSource) && e.searchForm !== !1 && t($).length > 0 ? (y(), O("div", {
445
451
  key: 0,
446
452
  class: f(e.card ? t(I)("search-wrapper") : null),
447
- style: O(e.searchFormWrapperStyle)
453
+ style: W(e.searchFormWrapperStyle)
448
454
  }, [
449
- G(t(Fo).SearchForm, H(e.searchForm || {}, {
455
+ ie(t(xo).SearchForm, L(e.searchForm || {}, {
450
456
  ref_key: "formRef",
451
457
  ref: w,
452
458
  "custom-reset": "",
453
- "submit-loading": t(q).loading,
459
+ "submit-loading": t(J).loading,
454
460
  onSubmit: t(E),
455
461
  onReset: t(K)
456
- }), mo({
457
- default: ne(() => [
458
- (F(!0), W(po, null, fo(t(j), (a) => (F(), se(go(a.renderNode), {
462
+ }), go({
463
+ default: ue(() => [
464
+ (y(!0), O(wo, null, So(t($), (a) => (y(), H(ho(a.renderNode), {
459
465
  key: a.dataIndex
460
466
  }))), 128))
461
467
  ]),
462
468
  _: 2
463
469
  }, [
464
- L.searchFormExtra ? {
470
+ U.searchFormExtra ? {
465
471
  name: "extra",
466
- fn: ne(() => [
467
- ie(e.$slots, "searchFormExtra")
472
+ fn: ue(() => [
473
+ ce(e.$slots, "searchFormExtra")
468
474
  ]),
469
475
  key: "0"
470
476
  } : void 0
471
477
  ]), 1040, ["submit-loading", "onSubmit", "onReset"])
472
- ], 6)) : le("", !0),
473
- B("div", {
478
+ ], 6)) : se("", !0),
479
+ k("div", {
474
480
  class: f([t(I)("table-wrapper"), e.card ? t(I)("table-wrapper-card") : null]),
475
- style: O(e.tableWrapperStyle)
481
+ style: W(e.tableWrapperStyle)
476
482
  }, [
477
- B("div", {
478
- class: f(t(d)("header-wrapper"))
483
+ k("div", {
484
+ class: f(t(c)("header-wrapper"))
479
485
  }, [
480
- ie(e.$slots, "title", {
486
+ ce(e.$slots, "title", {
481
487
  selectedRows: t(P),
482
- selectedRowKeys: t(Ve),
488
+ selectedRowKeys: t(Ge),
483
489
  shownColumns: t(g),
484
490
  clearAll: V
485
491
  })
486
492
  ], 2),
487
- B("div", {
493
+ k("div", {
488
494
  ref_key: "gridWrapperRef",
489
- ref: be,
490
- class: f(t(d)("grid-wrapper"))
495
+ ref: ke,
496
+ class: f(t(c)("grid-wrapper"))
491
497
  }, [
492
- G(t(ho), H(
493
- t(vo)(t(ge), t(U), $e.value),
498
+ (y(), H(t(vo), L(
499
+ t(Fo)(t(he), t(j), Je.value),
494
500
  {
495
- "get-row-class": so,
496
- style: Ye.value,
501
+ key: t(_),
502
+ "get-row-class": co,
503
+ style: oo.value,
497
504
  "row-data": t(S).records,
498
- "column-defs": t(Re),
499
- "default-col-def": t(ve),
505
+ "column-defs": t(Be),
506
+ "default-col-def": t(Fe),
500
507
  "suppress-loading-overlay": "",
501
- "row-selection": He.value,
502
- "selection-column-def": t(Ee),
503
- "get-row-id": eo,
508
+ "row-selection": _e.value,
509
+ "selection-column-def": t(Pe),
510
+ "get-row-id": ro,
504
511
  "get-row-height": o.getRowHeight,
505
- theme: t(fe),
512
+ theme: t(Se),
506
513
  "tooltip-show-delay": 500,
507
514
  "enable-browser-tooltips": e.browserTooltips,
508
515
  "tooltip-interaction": "",
509
516
  "row-class-rules": e.rowClassRules,
510
- "no-rows-overlay-component": $o,
517
+ "no-rows-overlay-component": Yo,
511
518
  "suppress-cell-focus": "",
512
519
  "enable-cell-span": "",
513
520
  "dom-layout": e.autoHeight ? "autoHeight" : "normal",
514
- onSortChanged: Be,
521
+ "locale-text": fe[t(_)],
522
+ onSortChanged: Ie,
515
523
  onGridReady: r[0] || (r[0] = (a) => s.value = a.api),
516
- onRowDataUpdated: N,
517
- onRowSelected: Le,
518
- onFirstDataRendered: Ue,
519
- onRowClicked: ro,
520
- onBodyScrollEnd: ao
524
+ onRowDataUpdated: D,
525
+ onRowSelected: je,
526
+ onFirstDataRendered: $e,
527
+ onRowClicked: no,
528
+ onBodyScrollEnd: so
521
529
  }
522
- ), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "dom-layout"]),
523
- wo(B("div", {
530
+ ), null, 16, ["style", "row-data", "column-defs", "default-col-def", "row-selection", "selection-column-def", "get-row-height", "theme", "enable-browser-tooltips", "row-class-rules", "dom-layout", "locale-text"])),
531
+ yo(k("div", {
524
532
  class: f(t(I)("table-loading-wrapper"))
525
533
  }, [
526
- G(t(Ro), { delay: 300 })
534
+ ie(t(Bo), { delay: 300 })
527
535
  ], 2), [
528
- [So, Qe.value]
536
+ [Co, Ze.value]
529
537
  ])
530
538
  ], 2),
531
- B("div", {
532
- class: f(t(d)("pagination-wrapper"))
539
+ k("div", {
540
+ class: f(t(c)("pagination-wrapper"))
533
541
  }, [
534
- e.pagination !== !1 ? (F(), se(t(bo), H({
542
+ e.pagination !== !1 ? (y(), H(t(ko), L({
535
543
  key: 0,
536
- class: t(d)("pagination")
537
- }, t(q).pagination, { onChange: Ze }), null, 16, ["class"])) : le("", !0)
544
+ class: t(c)("pagination")
545
+ }, t(J).pagination, { onChange: to }), null, 16, ["class"])) : se("", !0)
538
546
  ], 2)
539
547
  ], 6)
540
548
  ], 6));
541
549
  }
542
550
  });
543
551
  export {
544
- Ft as default
552
+ At as default
545
553
  };