@aplus-frontend/ui 0.0.1-beta.6 → 0.0.1-beta.8

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 (453) hide show
  1. package/es/index.mjs +157 -142
  2. package/es/src/ap-action/constant.d.ts +0 -0
  3. package/es/src/ap-action/group/index.vue.d.ts +38 -0
  4. package/es/src/ap-action/group/index.vue.mjs +68 -0
  5. package/es/src/ap-action/group/index.vue2.mjs +4 -0
  6. package/es/src/ap-action/index.d.ts +14 -0
  7. package/es/src/ap-action/index.mjs +20 -0
  8. package/es/src/ap-action/interface.d.ts +81 -0
  9. package/es/src/ap-action/interface.mjs +1 -0
  10. package/es/src/ap-action/item/index.vue.d.ts +44 -0
  11. package/es/src/ap-action/item/index.vue.mjs +4 -0
  12. package/es/src/ap-action/item/index.vue2.mjs +49 -0
  13. package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
  14. package/es/src/ap-action/item-dropdown/index.vue.mjs +95 -0
  15. package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
  16. package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
  17. package/es/src/ap-action/item-modal/index.vue.mjs +35 -0
  18. package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
  19. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
  20. package/es/src/ap-action/item-popconfirm/index.vue.mjs +39 -0
  21. package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
  22. package/es/src/ap-action/style/item-dropdown.css +11 -0
  23. package/es/src/ap-action/style/item.css +28 -0
  24. package/es/src/ap-field/checkbox/index.vue.mjs +32 -25
  25. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  26. package/es/src/ap-field/date/index.vue.mjs +19 -20
  27. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  28. package/es/src/ap-field/date-range/index.vue.mjs +9 -9
  29. package/es/src/ap-field/index.d.ts +12 -0
  30. package/es/src/ap-field/index.mjs +42 -0
  31. package/es/src/ap-field/interface.d.ts +6 -4
  32. package/es/src/ap-field/interface.mjs +1 -0
  33. package/es/src/ap-field/number/helper.mjs +2 -2
  34. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  35. package/es/src/ap-field/number/index.vue.mjs +30 -32
  36. package/es/src/ap-field/radio/index.vue.mjs +40 -34
  37. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  38. package/es/src/ap-field/select/index.vue.mjs +1 -1
  39. package/es/src/ap-field/switch/index.vue.d.ts +1 -1
  40. package/es/src/ap-field/switch/index.vue.mjs +69 -40
  41. package/es/src/ap-field/text/index.vue.d.ts +3 -3
  42. package/es/src/ap-field/text/index.vue.mjs +29 -29
  43. package/es/src/ap-field/text-area/index.vue.d.ts +2 -2
  44. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  45. package/es/src/ap-form/ap-form-item-group/index.vue.mjs +2 -56
  46. package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +56 -2
  47. package/es/src/ap-form/ap-form-item.vue.mjs +2 -74
  48. package/es/src/ap-form/ap-form-item.vue2.mjs +74 -2
  49. package/es/src/ap-form/components/interface.d.ts +0 -0
  50. package/es/src/ap-form/index.d.ts +87 -1758
  51. package/es/src/ap-form/index.mjs +11 -7
  52. package/es/src/base-button/button.vue.mjs +2 -58
  53. package/es/src/base-button/button.vue2.mjs +59 -2
  54. package/es/src/base-button/index.d.ts +28 -28
  55. package/es/src/base-button/index.mjs +8 -8
  56. package/es/src/base-button/interface.mjs +1 -0
  57. package/es/src/base-button/modal-button.vue.mjs +12 -11
  58. package/es/src/base-button/pop-confirm-button.vue.mjs +15 -14
  59. package/es/src/basic/arrow.vue.mjs +2 -38
  60. package/es/src/basic/arrow.vue2.mjs +38 -2
  61. package/es/src/basic/help.vue.mjs +2 -96
  62. package/es/src/basic/help.vue2.mjs +96 -2
  63. package/es/src/basic/index.mjs +11 -7
  64. package/es/src/basic/interface.mjs +1 -0
  65. package/es/src/basic/title.vue.mjs +2 -32
  66. package/es/src/basic/title.vue2.mjs +33 -2
  67. package/es/src/config-provider/config-provider.d.ts +4 -4
  68. package/es/src/config-provider/config-provider.mjs +4 -4
  69. package/es/src/config-provider/hooks/use-locale.mjs +1 -0
  70. package/es/src/config-provider/index.d.ts +12 -12
  71. package/es/src/config-provider/index.mjs +26 -13
  72. package/es/src/container/collapse/header.vue.mjs +2 -49
  73. package/es/src/container/collapse/header.vue2.mjs +49 -2
  74. package/es/src/container/collapse/index.vue.mjs +2 -85
  75. package/es/src/container/collapse/index.vue2.mjs +86 -2
  76. package/es/src/container/index.mjs +8 -5
  77. package/es/src/container/interface.mjs +1 -0
  78. package/es/src/container/scroll-container.vue.mjs +2 -60
  79. package/es/src/container/scroll-container.vue2.mjs +60 -2
  80. package/es/src/count-down/button.vue.mjs +2 -44
  81. package/es/src/count-down/button.vue2.mjs +44 -2
  82. package/es/src/count-down/index.d.ts +12 -12
  83. package/es/src/count-down/index.mjs +8 -5
  84. package/es/src/count-down/input.vue.mjs +2 -44
  85. package/es/src/count-down/input.vue2.mjs +45 -2
  86. package/es/src/count-down/interface.mjs +1 -0
  87. package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
  88. package/es/src/cropper/cropper-avatar.vue.mjs +2 -94
  89. package/es/src/cropper/cropper-avatar.vue2.mjs +96 -2
  90. package/es/src/cropper/cropper-image.vue.d.ts +1 -1
  91. package/es/src/cropper/cropper-image.vue.mjs +2 -129
  92. package/es/src/cropper/cropper-image.vue2.mjs +129 -2
  93. package/es/src/cropper/cropper-modal.vue.mjs +2 -270
  94. package/es/src/cropper/cropper-modal.vue2.mjs +271 -2
  95. package/es/src/cropper/index.d.ts +42 -42
  96. package/es/src/cropper/index.mjs +8 -5
  97. package/es/src/cropper/interface.mjs +1 -0
  98. package/es/src/description/description.vue.d.ts +1 -1
  99. package/es/src/description/description.vue.mjs +2 -169
  100. package/es/src/description/description.vue2.mjs +169 -2
  101. package/es/src/description/index.d.ts +3 -3
  102. package/es/src/description/index.mjs +8 -5
  103. package/es/src/description/interface.mjs +1 -0
  104. package/es/src/dropdown/dropdown.vue.d.ts +1 -1
  105. package/es/src/dropdown/dropdown.vue.mjs +2 -92
  106. package/es/src/dropdown/dropdown.vue2.mjs +92 -2
  107. package/es/src/dropdown/index.d.ts +7 -7
  108. package/es/src/dropdown/index.mjs +5 -3
  109. package/es/src/dropdown/interface.mjs +1 -0
  110. package/es/src/hooks/index.mjs +6 -0
  111. package/es/src/hooks/useMessage.mjs +1 -1
  112. package/es/src/icon/icon.vue.mjs +2 -66
  113. package/es/src/icon/icon.vue2.mjs +67 -2
  114. package/es/src/icon/index.d.ts +41 -41
  115. package/es/src/icon/index.mjs +8 -5
  116. package/es/src/icon/interface.mjs +1 -0
  117. package/es/src/icon/svg-icon.vue.mjs +2 -32
  118. package/es/src/icon/svg-icon.vue2.mjs +32 -2
  119. package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
  120. package/es/src/icon-picker/icon-picker.vue.mjs +2 -166
  121. package/es/src/icon-picker/icon-picker.vue2.mjs +168 -2
  122. package/es/src/icon-picker/index.d.ts +45 -45
  123. package/es/src/icon-picker/index.mjs +7 -5
  124. package/es/src/icon-picker/interface.mjs +1 -0
  125. package/es/src/index.d.ts +1 -0
  126. package/es/src/index.mjs +161 -145
  127. package/es/src/locale/index.mjs +7 -0
  128. package/es/src/locale/interface.mjs +1 -0
  129. package/es/src/modal/basic.vue.d.ts +4 -3
  130. package/es/src/modal/basic.vue.mjs +2 -191
  131. package/es/src/modal/basic.vue2.mjs +199 -2
  132. package/es/src/modal/components/modal-close.vue.mjs +2 -72
  133. package/es/src/modal/components/modal-close.vue2.mjs +72 -2
  134. package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
  135. package/es/src/modal/components/modal-footer.vue.mjs +2 -43
  136. package/es/src/modal/components/modal-footer.vue2.mjs +43 -2
  137. package/es/src/modal/components/modal-header.vue.mjs +1 -18
  138. package/es/src/modal/components/modal-header.vue2.mjs +18 -1
  139. package/es/src/modal/components/modal-wrapper.vue.mjs +2 -99
  140. package/es/src/modal/components/modal-wrapper.vue2.mjs +102 -2
  141. package/es/src/modal/components/modal.d.ts +2 -2
  142. package/es/src/modal/components/modal.mjs +6 -6
  143. package/es/src/modal/hooks/use-modal-drag.mjs +1 -1
  144. package/es/src/modal/hooks/use-modal.mjs +8 -8
  145. package/es/src/modal/index.d.ts +10 -11
  146. package/es/src/modal/index.mjs +10 -8
  147. package/es/src/modal/interface.mjs +1 -0
  148. package/es/src/modal/props.mjs +1 -1
  149. package/es/src/modal/style/index.css +29 -30
  150. package/es/src/pro-form/component-map.mjs +56 -41
  151. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  152. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  153. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  154. package/es/src/pro-form/components/api-tree-select.vue.mjs +1 -1
  155. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  156. package/es/src/pro-form/components/form-action.vue.mjs +2 -105
  157. package/es/src/pro-form/components/form-action.vue2.mjs +105 -2
  158. package/es/src/pro-form/components/form-item.vue.mjs +2 -352
  159. package/es/src/pro-form/components/form-item.vue2.mjs +352 -2
  160. package/es/src/pro-form/components/interface.mjs +1 -0
  161. package/es/src/pro-form/hooks/use-break-point.mjs +21 -20
  162. package/es/src/pro-form/hooks/use-component-register.d.ts +4 -0
  163. package/es/src/pro-form/hooks/use-component-register.mjs +13 -0
  164. package/es/src/pro-form/hooks/use-form-events.mjs +1 -1
  165. package/es/src/pro-form/hooks/use-form-values.mjs +1 -1
  166. package/es/src/pro-form/hooks/use-form.mjs +4 -4
  167. package/es/src/pro-form/hooks/use-label-width.d.ts +8 -8
  168. package/es/src/pro-form/index.d.ts +1 -0
  169. package/es/src/pro-form/index.mjs +34 -34
  170. package/es/src/pro-form/pro-form.vue.d.ts +2 -2
  171. package/es/src/pro-form/pro-form.vue.mjs +39 -37
  172. package/es/src/pro-form/types/form-item.mjs +1 -0
  173. package/es/src/pro-form/types/form.d.ts +8 -8
  174. package/es/src/pro-table/component-map.mjs +29 -37
  175. package/es/src/pro-table/components/editable/editable-cell.vue.mjs +2 -378
  176. package/es/src/pro-table/components/editable/editable-cell.vue2.mjs +378 -2
  177. package/es/src/pro-table/components/editable/index.mjs +7 -6
  178. package/es/src/pro-table/components/header-cell.vue.mjs +2 -43
  179. package/es/src/pro-table/components/header-cell.vue2.mjs +44 -2
  180. package/es/src/pro-table/components/settings/column-setting.vue.mjs +2 -307
  181. package/es/src/pro-table/components/settings/column-setting.vue2.mjs +308 -2
  182. package/es/src/pro-table/components/settings/full-screen-setting.vue.mjs +2 -30
  183. package/es/src/pro-table/components/settings/full-screen-setting.vue2.mjs +30 -2
  184. package/es/src/pro-table/components/settings/index.vue.mjs +2 -59
  185. package/es/src/pro-table/components/settings/index.vue2.mjs +63 -2
  186. package/es/src/pro-table/components/settings/redo-setting.vue.mjs +2 -26
  187. package/es/src/pro-table/components/settings/redo-setting.vue2.mjs +26 -2
  188. package/es/src/pro-table/components/settings/size-setting.vue.mjs +2 -71
  189. package/es/src/pro-table/components/settings/size-setting.vue2.mjs +71 -2
  190. package/es/src/pro-table/components/table-action.vue.mjs +2 -2
  191. package/es/src/pro-table/components/table-footer.vue.mjs +2 -61
  192. package/es/src/pro-table/components/table-footer.vue2.mjs +61 -2
  193. package/es/src/pro-table/components/table-header.vue.mjs +2 -86
  194. package/es/src/pro-table/components/table-header.vue2.mjs +89 -2
  195. package/es/src/pro-table/components/table-selection-bar.vue.mjs +2 -40
  196. package/es/src/pro-table/components/table-selection-bar.vue2.mjs +40 -2
  197. package/es/src/pro-table/components/table-title.vue.mjs +2 -41
  198. package/es/src/pro-table/components/table-title.vue2.mjs +41 -2
  199. package/es/src/pro-table/hooks/use-columns.mjs +5 -5
  200. package/es/src/pro-table/hooks/use-data-source.mjs +1 -1
  201. package/es/src/pro-table/hooks/use-pagination.mjs +4 -4
  202. package/es/src/pro-table/hooks/use-scroll-to.mjs +1 -1
  203. package/es/src/pro-table/hooks/use-table-footer.mjs +8 -7
  204. package/es/src/pro-table/hooks/use-table-header.mjs +12 -11
  205. package/es/src/pro-table/index.mjs +12 -0
  206. package/es/src/pro-table/interface.mjs +1 -0
  207. package/es/src/pro-table/pro-table.vue.mjs +55 -56
  208. package/es/src/pro-table/types/pagination.mjs +1 -0
  209. package/es/src/pro-table/types/table-action.mjs +1 -0
  210. package/es/src/pro-table/types/table.mjs +1 -0
  211. package/es/src/prompt/dialog.vue.mjs +2 -61
  212. package/es/src/prompt/dialog.vue2.mjs +58 -2
  213. package/es/src/prompt/index.mjs +9 -8
  214. package/es/src/prompt/utils.d.ts +3 -3
  215. package/es/src/scroll-bar/bar-item.mjs +4 -4
  216. package/es/src/scroll-bar/index.mjs +5 -3
  217. package/es/src/scroll-bar/interface.mjs +1 -0
  218. package/es/src/scroll-bar/scroll-bar.vue.mjs +2 -84
  219. package/es/src/scroll-bar/scroll-bar.vue2.mjs +84 -2
  220. package/es/src/strength-meter/index.d.ts +12 -12
  221. package/es/src/strength-meter/index.mjs +5 -3
  222. package/es/src/strength-meter/interface.mjs +1 -0
  223. package/es/src/strength-meter/strength-meter.vue.mjs +2 -61
  224. package/es/src/strength-meter/strength-meter.vue2.mjs +61 -2
  225. package/es/src/theme/ap-action/item-dropdown.css +11 -0
  226. package/es/src/theme/ap-action/item.css +28 -0
  227. package/es/src/theme/modal/index.css +29 -30
  228. package/es/src/transition/index.mjs +21 -24
  229. package/es/src/type.d.ts +1 -0
  230. package/es/src/utils/index.d.ts +1 -0
  231. package/es/src/utils/index.mjs +21 -8
  232. package/es/src/utils/tree.mjs +103 -13
  233. package/es/src/utils/uuid.mjs +15 -9
  234. package/lib/index.js +1 -1
  235. package/lib/src/ap-action/constant.d.ts +0 -0
  236. package/lib/src/ap-action/group/index.vue.d.ts +38 -0
  237. package/lib/src/ap-action/group/index.vue.js +1 -0
  238. package/lib/src/ap-action/group/index.vue2.js +1 -0
  239. package/lib/src/ap-action/index.d.ts +14 -0
  240. package/lib/src/ap-action/index.js +1 -0
  241. package/lib/src/ap-action/interface.d.ts +81 -0
  242. package/lib/src/ap-action/interface.js +1 -0
  243. package/lib/src/ap-action/item/index.vue.d.ts +44 -0
  244. package/lib/src/ap-action/item/index.vue.js +1 -0
  245. package/lib/src/ap-action/item/index.vue2.js +1 -0
  246. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
  247. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
  248. package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
  249. package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
  250. package/lib/src/ap-action/item-modal/index.vue.js +1 -0
  251. package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
  252. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
  253. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
  254. package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
  255. package/lib/src/ap-action/style/item-dropdown.css +11 -0
  256. package/lib/src/ap-action/style/item.css +28 -0
  257. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  258. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  259. package/lib/src/ap-field/date/index.vue.js +1 -1
  260. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  261. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  262. package/lib/src/ap-field/index.d.ts +12 -0
  263. package/lib/src/ap-field/index.js +1 -0
  264. package/lib/src/ap-field/interface.d.ts +6 -4
  265. package/lib/src/ap-field/interface.js +1 -0
  266. package/lib/src/ap-field/number/helper.js +1 -1
  267. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  268. package/lib/src/ap-field/number/index.vue.js +1 -1
  269. package/lib/src/ap-field/radio/index.vue.js +1 -1
  270. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  271. package/lib/src/ap-field/select/index.vue.js +1 -1
  272. package/lib/src/ap-field/switch/index.vue.d.ts +1 -1
  273. package/lib/src/ap-field/switch/index.vue.js +1 -1
  274. package/lib/src/ap-field/text/index.vue.d.ts +3 -3
  275. package/lib/src/ap-field/text/index.vue.js +1 -1
  276. package/lib/src/ap-field/text-area/index.vue.d.ts +2 -2
  277. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  278. package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
  279. package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -1
  280. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  281. package/lib/src/ap-form/ap-form-item.vue2.js +1 -1
  282. package/lib/src/ap-form/components/interface.d.ts +0 -0
  283. package/lib/src/ap-form/index.d.ts +87 -1758
  284. package/lib/src/ap-form/index.js +1 -1
  285. package/lib/src/base-button/button.vue.js +1 -1
  286. package/lib/src/base-button/button.vue2.js +1 -1
  287. package/lib/src/base-button/index.d.ts +28 -28
  288. package/lib/src/base-button/index.js +1 -1
  289. package/lib/src/base-button/interface.js +1 -0
  290. package/lib/src/base-button/modal-button.vue.js +1 -1
  291. package/lib/src/base-button/pop-confirm-button.vue.js +1 -1
  292. package/lib/src/basic/arrow.vue.js +1 -1
  293. package/lib/src/basic/arrow.vue2.js +1 -1
  294. package/lib/src/basic/help.vue.js +1 -1
  295. package/lib/src/basic/help.vue2.js +1 -1
  296. package/lib/src/basic/index.js +1 -1
  297. package/lib/src/basic/interface.js +1 -0
  298. package/lib/src/basic/title.vue.js +1 -1
  299. package/lib/src/basic/title.vue2.js +1 -1
  300. package/lib/src/config-provider/config-provider.d.ts +4 -4
  301. package/lib/src/config-provider/hooks/use-locale.js +1 -1
  302. package/lib/src/config-provider/index.d.ts +12 -12
  303. package/lib/src/config-provider/index.js +1 -1
  304. package/lib/src/container/collapse/header.vue.js +1 -1
  305. package/lib/src/container/collapse/header.vue2.js +1 -1
  306. package/lib/src/container/collapse/index.vue.js +1 -1
  307. package/lib/src/container/collapse/index.vue2.js +1 -1
  308. package/lib/src/container/index.js +1 -1
  309. package/lib/src/container/interface.js +1 -0
  310. package/lib/src/container/scroll-container.vue.js +1 -1
  311. package/lib/src/container/scroll-container.vue2.js +1 -1
  312. package/lib/src/count-down/button.vue.js +1 -1
  313. package/lib/src/count-down/button.vue2.js +1 -1
  314. package/lib/src/count-down/index.d.ts +12 -12
  315. package/lib/src/count-down/index.js +1 -1
  316. package/lib/src/count-down/input.vue.js +1 -1
  317. package/lib/src/count-down/input.vue2.js +1 -1
  318. package/lib/src/count-down/interface.js +1 -0
  319. package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
  320. package/lib/src/cropper/cropper-avatar.vue.js +1 -1
  321. package/lib/src/cropper/cropper-avatar.vue2.js +1 -1
  322. package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
  323. package/lib/src/cropper/cropper-image.vue.js +1 -1
  324. package/lib/src/cropper/cropper-image.vue2.js +1 -1
  325. package/lib/src/cropper/cropper-modal.vue.js +1 -1
  326. package/lib/src/cropper/cropper-modal.vue2.js +1 -1
  327. package/lib/src/cropper/index.d.ts +42 -42
  328. package/lib/src/cropper/index.js +1 -1
  329. package/lib/src/cropper/interface.js +1 -0
  330. package/lib/src/description/description.vue.d.ts +1 -1
  331. package/lib/src/description/description.vue.js +1 -1
  332. package/lib/src/description/description.vue2.js +1 -1
  333. package/lib/src/description/index.d.ts +3 -3
  334. package/lib/src/description/index.js +1 -1
  335. package/lib/src/description/interface.js +1 -0
  336. package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
  337. package/lib/src/dropdown/dropdown.vue.js +1 -1
  338. package/lib/src/dropdown/dropdown.vue2.js +1 -1
  339. package/lib/src/dropdown/index.d.ts +7 -7
  340. package/lib/src/dropdown/index.js +1 -1
  341. package/lib/src/dropdown/interface.js +1 -0
  342. package/lib/src/hooks/index.js +1 -0
  343. package/lib/src/icon/icon.vue.js +1 -1
  344. package/lib/src/icon/icon.vue2.js +1 -1
  345. package/lib/src/icon/index.d.ts +41 -41
  346. package/lib/src/icon/index.js +1 -1
  347. package/lib/src/icon/interface.js +1 -0
  348. package/lib/src/icon/svg-icon.vue.js +1 -1
  349. package/lib/src/icon/svg-icon.vue2.js +1 -1
  350. package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
  351. package/lib/src/icon-picker/icon-picker.vue.js +1 -1
  352. package/lib/src/icon-picker/icon-picker.vue2.js +1 -1
  353. package/lib/src/icon-picker/index.d.ts +45 -45
  354. package/lib/src/icon-picker/index.js +1 -1
  355. package/lib/src/icon-picker/interface.js +1 -0
  356. package/lib/src/index.d.ts +1 -0
  357. package/lib/src/index.js +1 -1
  358. package/lib/src/locale/index.js +1 -0
  359. package/lib/src/locale/interface.js +1 -0
  360. package/lib/src/modal/basic.vue.d.ts +4 -3
  361. package/lib/src/modal/basic.vue.js +1 -1
  362. package/lib/src/modal/basic.vue2.js +1 -1
  363. package/lib/src/modal/components/modal-close.vue.js +1 -1
  364. package/lib/src/modal/components/modal-close.vue2.js +1 -1
  365. package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
  366. package/lib/src/modal/components/modal-footer.vue.js +1 -1
  367. package/lib/src/modal/components/modal-footer.vue2.js +1 -1
  368. package/lib/src/modal/components/modal-header.vue.js +1 -1
  369. package/lib/src/modal/components/modal-header.vue2.js +1 -1
  370. package/lib/src/modal/components/modal-wrapper.vue.js +1 -1
  371. package/lib/src/modal/components/modal-wrapper.vue2.js +1 -1
  372. package/lib/src/modal/components/modal.d.ts +2 -2
  373. package/lib/src/modal/index.d.ts +10 -11
  374. package/lib/src/modal/index.js +1 -1
  375. package/lib/src/modal/interface.js +1 -0
  376. package/lib/src/modal/props.js +1 -1
  377. package/lib/src/modal/style/index.css +29 -30
  378. package/lib/src/pro-form/component-map.js +1 -1
  379. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  380. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  381. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  382. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  383. package/lib/src/pro-form/components/form-action.vue.js +1 -1
  384. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  385. package/lib/src/pro-form/components/form-item.vue.js +1 -1
  386. package/lib/src/pro-form/components/form-item.vue2.js +1 -1
  387. package/lib/src/pro-form/components/interface.js +1 -0
  388. package/lib/src/pro-form/hooks/use-break-point.js +1 -1
  389. package/lib/src/pro-form/hooks/use-component-register.d.ts +4 -0
  390. package/lib/src/pro-form/hooks/use-component-register.js +1 -0
  391. package/lib/src/pro-form/hooks/use-label-width.d.ts +8 -8
  392. package/lib/src/pro-form/index.d.ts +1 -0
  393. package/lib/src/pro-form/index.js +1 -1
  394. package/lib/src/pro-form/pro-form.vue.d.ts +2 -2
  395. package/lib/src/pro-form/pro-form.vue.js +1 -1
  396. package/lib/src/pro-form/types/form-item.js +1 -0
  397. package/lib/src/pro-form/types/form.d.ts +8 -8
  398. package/lib/src/pro-table/component-map.js +1 -1
  399. package/lib/src/pro-table/components/editable/editable-cell.vue.js +1 -1
  400. package/lib/src/pro-table/components/editable/editable-cell.vue2.js +1 -1
  401. package/lib/src/pro-table/components/editable/index.js +1 -1
  402. package/lib/src/pro-table/components/header-cell.vue.js +1 -1
  403. package/lib/src/pro-table/components/header-cell.vue2.js +1 -1
  404. package/lib/src/pro-table/components/settings/column-setting.vue.js +1 -1
  405. package/lib/src/pro-table/components/settings/column-setting.vue2.js +1 -1
  406. package/lib/src/pro-table/components/settings/full-screen-setting.vue.js +1 -1
  407. package/lib/src/pro-table/components/settings/full-screen-setting.vue2.js +1 -1
  408. package/lib/src/pro-table/components/settings/index.vue.js +1 -1
  409. package/lib/src/pro-table/components/settings/index.vue2.js +1 -1
  410. package/lib/src/pro-table/components/settings/redo-setting.vue.js +1 -1
  411. package/lib/src/pro-table/components/settings/redo-setting.vue2.js +1 -1
  412. package/lib/src/pro-table/components/settings/size-setting.vue.js +1 -1
  413. package/lib/src/pro-table/components/settings/size-setting.vue2.js +1 -1
  414. package/lib/src/pro-table/components/table-action.vue.js +1 -1
  415. package/lib/src/pro-table/components/table-footer.vue.js +1 -1
  416. package/lib/src/pro-table/components/table-footer.vue2.js +1 -1
  417. package/lib/src/pro-table/components/table-header.vue.js +1 -1
  418. package/lib/src/pro-table/components/table-header.vue2.js +1 -1
  419. package/lib/src/pro-table/components/table-selection-bar.vue.js +1 -1
  420. package/lib/src/pro-table/components/table-selection-bar.vue2.js +1 -1
  421. package/lib/src/pro-table/components/table-title.vue.js +1 -1
  422. package/lib/src/pro-table/components/table-title.vue2.js +1 -1
  423. package/lib/src/pro-table/hooks/use-table-footer.js +1 -1
  424. package/lib/src/pro-table/hooks/use-table-header.js +1 -1
  425. package/lib/src/pro-table/index.js +1 -0
  426. package/lib/src/pro-table/interface.js +1 -0
  427. package/lib/src/pro-table/pro-table.vue.js +1 -1
  428. package/lib/src/pro-table/types/pagination.js +1 -0
  429. package/lib/src/pro-table/types/table-action.js +1 -0
  430. package/lib/src/pro-table/types/table.js +1 -0
  431. package/lib/src/prompt/dialog.vue.js +1 -1
  432. package/lib/src/prompt/dialog.vue2.js +1 -1
  433. package/lib/src/prompt/index.js +1 -1
  434. package/lib/src/prompt/utils.d.ts +3 -3
  435. package/lib/src/scroll-bar/index.js +1 -1
  436. package/lib/src/scroll-bar/interface.js +1 -0
  437. package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
  438. package/lib/src/scroll-bar/scroll-bar.vue2.js +1 -1
  439. package/lib/src/strength-meter/index.d.ts +12 -12
  440. package/lib/src/strength-meter/index.js +1 -1
  441. package/lib/src/strength-meter/interface.js +1 -0
  442. package/lib/src/strength-meter/strength-meter.vue.js +1 -1
  443. package/lib/src/strength-meter/strength-meter.vue2.js +1 -1
  444. package/lib/src/theme/ap-action/item-dropdown.css +11 -0
  445. package/lib/src/theme/ap-action/item.css +28 -0
  446. package/lib/src/theme/modal/index.css +29 -30
  447. package/lib/src/transition/index.js +1 -1
  448. package/lib/src/type.d.ts +1 -0
  449. package/lib/src/utils/index.d.ts +1 -0
  450. package/lib/src/utils/index.js +1 -1
  451. package/lib/src/utils/tree.js +1 -1
  452. package/lib/src/utils/uuid.js +1 -1
  453. package/package.json +2 -2
@@ -1,309 +1,4 @@
1
- import { defineComponent as re, useAttrs as fe, ref as p, watch as j, computed as T, onMounted as me, resolveComponent as ve, openBlock as b, createBlock as K, unref as n, withCtx as s, createElementVNode as X, toDisplayString as r, createVNode as c, normalizeClass as R, createTextVNode as m, createCommentVNode as pe, createElementBlock as q, Fragment as ge, renderList as he, nextTick as J } from "vue";
2
- import { Tooltip as A, Popover as Ce, Checkbox as k, Divider as xe } from "ant-design-vue";
3
- import { DragOutlined as we, SettingOutlined as Se } from "@ant-design/icons-vue";
4
- import Q from "../../../icon/icon.vue.mjs";
5
- import { ScrollContainer as ke } from "../../../container/index.mjs";
6
- import { useTableContext as Ie } from "../../hooks/use-table-context.mjs";
7
- import { isFunction as ye, cloneDeep as O, isNil as W, omit as _e } from "lodash-unified";
8
- import { getPopupContainer as be } from "../../../utils/index.mjs";
9
- import Re from "sortablejs";
10
- import { INDEX_COLUMN_FLAG as Oe } from "../../const.mjs";
11
- import "../../../config-provider/index.mjs";
12
- import "../style/column-settings.css";
13
- import { useLocale as Pe } from "../../../config-provider/hooks/use-locale.mjs";
14
- import { useNamespace as Ue } from "../../../config-provider/hooks/use-namespace.mjs";
15
- const Le = ["data-no"], qe = /* @__PURE__ */ re({
16
- name: "ColumnSetting",
17
- __name: "column-setting",
18
- emits: ["columns-change"],
19
- setup(Ne, { emit: Y }) {
20
- const Z = Y, { t: f } = Pe(), { e: g } = Ue("basic-column-setting"), H = fe(), i = Ie(), P = () => ye(H.getPopupContainer) ? H.getPopupContainer() : be();
21
- let I = !1, h = !1;
22
- const d = p([]), C = p(null), u = p([]);
23
- j(u, () => {
24
- I && (d.value.filter((e) => u.value.includes(e.value)).forEach((e) => {
25
- e.column.defaultHidden = !1;
26
- }), d.value.filter((e) => !u.value.includes(e.value)).forEach((e) => {
27
- e.column.defaultHidden = !0, e.fixed = void 0;
28
- }), V(), y());
29
- });
30
- const U = p(!1), ee = () => {
31
- u.value.length < d.value.length ? u.value = d.value.map((e) => e.value) : u.value = [];
32
- }, te = T(() => u.value.length > 0 && u.value.length < d.value.length), v = p(!1), D = (e) => {
33
- $(e.target.checked);
34
- }, x = p(!1), E = (e) => {
35
- B(e.target.checked);
36
- }, ne = () => {
37
- v.value = _, D({
38
- target: { checked: _ }
39
- }), x.value = w, E({
40
- target: { checked: w }
41
- }), d.value = O(z), M();
42
- }, F = (e, l) => {
43
- l === "left" ? !e.fixed || e.fixed === "right" ? e.fixed = "left" : e.fixed = void 0 : l === "right" && (!e.fixed || e.fixed === "left" ? e.fixed = "right" : e.fixed = void 0), y();
44
- }, le = async () => {
45
- if (C.value) {
46
- const e = C.value.$el;
47
- Array.from(e.children).forEach((l) => e.removeChild(l));
48
- }
49
- await J();
50
- }, oe = (e) => {
51
- if (e) {
52
- if ("ifShow" in e) {
53
- if (typeof e.ifShow == "boolean")
54
- return e.ifShow;
55
- if (e.ifShow)
56
- return e.ifShow(e);
57
- }
58
- return !0;
59
- }
60
- return !1;
61
- }, ae = () => i.getColumns({ ignoreIndex: !0, ignoreAction: !0 }).filter((e) => oe(e)), ie = (e) => {
62
- h = !0, i == null || i.setColumns(e);
63
- const l = e.map((o) => ({
64
- dataIndex: o.dataIndex ? o.dataIndex.toString() : "",
65
- fixed: o.fixed,
66
- visible: !o.defaultHidden
67
- }));
68
- Z("columns-change", l);
69
- }, y = () => {
70
- var t;
71
- const e = O(i.getColumns());
72
- let l = e.filter(
73
- (a) => a.flag !== Oe && (a.fixed === "left" || a.fixed === !0)
74
- ).length;
75
- v.value && l++;
76
- for (const a of d.value) {
77
- const N = e.findIndex((S) => S.dataIndex === a.value);
78
- if (N > -1) {
79
- const S = e[N];
80
- S.defaultHidden = (t = a.column) == null ? void 0 : t.defaultHidden, S.fixed = a.fixed, e.splice(N, 1), e.splice(l++, 0, S);
81
- }
82
- }
83
- const o = e.findIndex((a) => a.dataIndex === "action");
84
- if (o > -1) {
85
- const a = e.splice(o, 1);
86
- e.push(a[0]);
87
- }
88
- ie(e);
89
- }, se = async () => {
90
- if (await J(), C.value) {
91
- const e = C.value.$el;
92
- Re.create(n(e), {
93
- animation: 500,
94
- delay: 400,
95
- delayOnTouchOnly: !0,
96
- handle: ".table-column-drag-icon ",
97
- dataIdAttr: "data-no",
98
- onEnd: (l) => {
99
- const { oldIndex: o, newIndex: t } = l;
100
- if (W(o) || W(t) || o === t)
101
- return;
102
- const a = O(d.value);
103
- o > t ? (a.splice(t, 0, a[o]), a.splice(o + 1, 1)) : (a.splice(t + 1, 0, a[o]), a.splice(o, 1)), d.value = a, y();
104
- }
105
- });
106
- }
107
- }, ue = () => {
108
- u.value = d.value.filter((e) => {
109
- var l;
110
- return !((l = e.column) != null && l.defaultHidden);
111
- }).map((e) => e.value);
112
- }, V = () => {
113
- U.value = d.value.length === u.value.length;
114
- }, $ = (e) => {
115
- h = !0, i.setProps({
116
- showIndexColumn: e
117
- });
118
- }, B = (e) => {
119
- h = !0, i.setProps({
120
- rowSelection: e ? {
121
- ..._e(L, ["selectedRowKeys"]),
122
- fixed: !0
123
- } : void 0
124
- });
125
- }, M = () => {
126
- ue(), V(), $(v.value), B(x.value), y();
127
- };
128
- let _ = !1, w = !1, L, z = [];
129
- const G = async () => {
130
- var e;
131
- if (!I) {
132
- const l = ae();
133
- (e = i.setCacheColumns) == null || e.call(i, l);
134
- const o = [];
135
- for (const t of l)
136
- o.push({
137
- label: typeof t.title == "string" ? t.title : t.customTitle === "string" ? t.customTitle : "",
138
- value: typeof t.dataIndex == "string" ? t.dataIndex : t.title === "string" ? t.title : "",
139
- column: {
140
- defaultHidden: t.defaultHidden
141
- },
142
- fixed: t.fixed
143
- });
144
- _ = i.getBindValues.value.showIndexColumn || !1, L = i.getRowSelection(), w = !!L, z = o, v.value = _, x.value = w, d.value = O(o), M(), I = !0;
145
- }
146
- };
147
- (async () => {
148
- await le(), G();
149
- })();
150
- const ce = T(() => i == null ? void 0 : i.getColumns()), de = T(() => i == null ? void 0 : i.getBindValues);
151
- return me(() => {
152
- j([ce, de], () => {
153
- h ? h = !1 : (I = !1, console.log("onMounted isRestored"), G());
154
- });
155
- }), (e, l) => {
156
- const o = ve("a-button");
157
- return b(), K(n(A), { placement: "top" }, {
158
- title: s(() => [
159
- X("span", null, r(n(f)("ap.table.settingColumn")), 1)
160
- ]),
161
- default: s(() => [
162
- c(n(Ce), {
163
- placement: "bottomLeft",
164
- trigger: "click",
165
- onOpenChange: se,
166
- overlayClassName: n(g)("column-list"),
167
- getPopupContainer: P
168
- }, {
169
- title: s(() => [
170
- X("div", {
171
- class: R(n(g)("popover-title"))
172
- }, [
173
- c(n(k), {
174
- indeterminate: te.value,
175
- checked: U.value,
176
- "onUpdate:checked": l[0] || (l[0] = (t) => U.value = t),
177
- onChange: ee
178
- }, {
179
- default: s(() => [
180
- m(r(n(f)("ap.table.settingColumnShow")), 1)
181
- ]),
182
- _: 1
183
- }, 8, ["indeterminate", "checked"]),
184
- c(n(k), {
185
- checked: v.value,
186
- "onUpdate:checked": l[1] || (l[1] = (t) => v.value = t),
187
- onChange: D
188
- }, {
189
- default: s(() => [
190
- m(r(n(f)("ap.table.settingIndexColumnShow")), 1)
191
- ]),
192
- _: 1
193
- }, 8, ["checked"]),
194
- n(w) ? (b(), K(n(k), {
195
- key: 0,
196
- checked: x.value,
197
- "onUpdate:checked": l[2] || (l[2] = (t) => x.value = t),
198
- onChange: E
199
- }, {
200
- default: s(() => [
201
- m(r(n(f)("ap.table.settingSelectColumnShow")), 1)
202
- ]),
203
- _: 1
204
- }, 8, ["checked"])) : pe("", !0),
205
- c(o, {
206
- size: "small",
207
- type: "link",
208
- onClick: ne
209
- }, {
210
- default: s(() => [
211
- m(r(n(f)("ap.common.resetText")), 1)
212
- ]),
213
- _: 1
214
- })
215
- ], 2)
216
- ]),
217
- content: s(() => [
218
- c(n(ke), null, {
219
- default: s(() => [
220
- c(n(k).Group, {
221
- value: u.value,
222
- "onUpdate:value": l[3] || (l[3] = (t) => u.value = t),
223
- ref_key: "columnOptionsRef",
224
- ref: C
225
- }, {
226
- default: s(() => [
227
- (b(!0), q(ge, null, he(d.value, (t) => (b(), q("div", {
228
- key: t.value,
229
- class: R(n(g)("check-item")),
230
- "data-no": t.value
231
- }, [
232
- c(n(we), { class: "table-column-drag-icon" }),
233
- c(n(k), {
234
- value: t.value
235
- }, {
236
- default: s(() => [
237
- m(r(t.label), 1)
238
- ]),
239
- _: 2
240
- }, 1032, ["value"]),
241
- c(n(A), {
242
- placement: "bottomLeft",
243
- mouseLeaveDelay: 0.4,
244
- getPopupContainer: P
245
- }, {
246
- title: s(() => [
247
- m(r(n(f)("ap.table.settingFixedLeft")), 1)
248
- ]),
249
- default: s(() => [
250
- c(Q, {
251
- icon: "line-md:arrow-align-left",
252
- class: R([
253
- n(g)("fixed-left"),
254
- {
255
- active: t.fixed === "left",
256
- disabled: t.value ? !u.value.includes(t.value) : !0
257
- }
258
- ]),
259
- onClick: (a) => F(t, "left")
260
- }, null, 8, ["class", "onClick"])
261
- ]),
262
- _: 2
263
- }, 1024),
264
- c(n(xe), { type: "vertical" }),
265
- c(n(A), {
266
- placement: "bottomLeft",
267
- mouseLeaveDelay: 0.4,
268
- getPopupContainer: P
269
- }, {
270
- title: s(() => [
271
- m(r(n(f)("ap.table.settingFixedRight")), 1)
272
- ]),
273
- default: s(() => [
274
- c(Q, {
275
- icon: "line-md:arrow-align-left",
276
- class: R([
277
- n(g)("fixed-right"),
278
- {
279
- active: t.fixed === "right",
280
- disabled: t.value ? !u.value.includes(t.value) : !0
281
- }
282
- ]),
283
- onClick: (a) => F(t, "right")
284
- }, null, 8, ["class", "onClick"])
285
- ]),
286
- _: 2
287
- }, 1024)
288
- ], 10, Le))), 128))
289
- ]),
290
- _: 1
291
- }, 8, ["value"])
292
- ]),
293
- _: 1
294
- })
295
- ]),
296
- default: s(() => [
297
- c(n(Se))
298
- ]),
299
- _: 1
300
- }, 8, ["overlayClassName"])
301
- ]),
302
- _: 1
303
- });
304
- };
305
- }
306
- });
1
+ import f from "./column-setting.vue2.mjs";
307
2
  export {
308
- qe as default
3
+ f as default
309
4
  };
@@ -1,4 +1,310 @@
1
- import f from "./column-setting.vue.mjs";
1
+ import { defineComponent as re, useAttrs as fe, ref as p, watch as j, computed as T, nextTick as K, unref as n, onMounted as me, resolveComponent as ve, openBlock as b, createBlock as X, withCtx as s, createElementVNode as q, toDisplayString as r, createVNode as c, normalizeClass as R, createTextVNode as m, createCommentVNode as pe, createElementBlock as J, Fragment as ge, renderList as he } from "vue";
2
+ import { Tooltip as A, Popover as Ce, Checkbox as k, Divider as xe } from "ant-design-vue";
3
+ import { DragOutlined as we, SettingOutlined as Se } from "@ant-design/icons-vue";
4
+ import "../../../icon/icon.vue.mjs";
5
+ import { ScrollContainer as ke } from "../../../container/index.mjs";
6
+ import { useTableContext as Ie } from "../../hooks/use-table-context.mjs";
7
+ import { isFunction as ye, cloneDeep as O, isNil as Q, omit as _e } from "lodash-unified";
8
+ import { getPopupContainer as be } from "../../../utils/index.mjs";
9
+ import Re from "sortablejs";
10
+ import { INDEX_COLUMN_FLAG as Oe } from "../../const.mjs";
11
+ import "../../../config-provider/index.mjs";
12
+ import "../style/column-settings.css";
13
+ import { useLocale as Pe } from "../../../config-provider/hooks/use-locale.mjs";
14
+ import { useNamespace as Ue } from "../../../config-provider/hooks/use-namespace.mjs";
15
+ import W from "../../../icon/icon.vue2.mjs";
16
+ const Le = ["data-no"], Je = /* @__PURE__ */ re({
17
+ name: "ColumnSetting",
18
+ __name: "column-setting",
19
+ emits: ["columns-change"],
20
+ setup(Ne, { emit: Y }) {
21
+ const Z = Y, { t: f } = Pe(), { e: g } = Ue("basic-column-setting"), H = fe(), i = Ie(), P = () => ye(H.getPopupContainer) ? H.getPopupContainer() : be();
22
+ let I = !1, h = !1;
23
+ const d = p([]), C = p(null), u = p([]);
24
+ j(u, () => {
25
+ I && (d.value.filter((e) => u.value.includes(e.value)).forEach((e) => {
26
+ e.column.defaultHidden = !1;
27
+ }), d.value.filter((e) => !u.value.includes(e.value)).forEach((e) => {
28
+ e.column.defaultHidden = !0, e.fixed = void 0;
29
+ }), V(), y());
30
+ });
31
+ const U = p(!1), ee = () => {
32
+ u.value.length < d.value.length ? u.value = d.value.map((e) => e.value) : u.value = [];
33
+ }, te = T(() => u.value.length > 0 && u.value.length < d.value.length), v = p(!1), D = (e) => {
34
+ $(e.target.checked);
35
+ }, x = p(!1), E = (e) => {
36
+ B(e.target.checked);
37
+ }, ne = () => {
38
+ v.value = _, D({
39
+ target: { checked: _ }
40
+ }), x.value = w, E({
41
+ target: { checked: w }
42
+ }), d.value = O(z), M();
43
+ }, F = (e, l) => {
44
+ l === "left" ? !e.fixed || e.fixed === "right" ? e.fixed = "left" : e.fixed = void 0 : l === "right" && (!e.fixed || e.fixed === "left" ? e.fixed = "right" : e.fixed = void 0), y();
45
+ }, le = async () => {
46
+ if (C.value) {
47
+ const e = C.value.$el;
48
+ Array.from(e.children).forEach((l) => e.removeChild(l));
49
+ }
50
+ await K();
51
+ }, oe = (e) => {
52
+ if (e) {
53
+ if ("ifShow" in e) {
54
+ if (typeof e.ifShow == "boolean")
55
+ return e.ifShow;
56
+ if (e.ifShow)
57
+ return e.ifShow(e);
58
+ }
59
+ return !0;
60
+ }
61
+ return !1;
62
+ }, ae = () => i.getColumns({ ignoreIndex: !0, ignoreAction: !0 }).filter((e) => oe(e)), ie = (e) => {
63
+ h = !0, i == null || i.setColumns(e);
64
+ const l = e.map((o) => ({
65
+ dataIndex: o.dataIndex ? o.dataIndex.toString() : "",
66
+ fixed: o.fixed,
67
+ visible: !o.defaultHidden
68
+ }));
69
+ Z("columns-change", l);
70
+ }, y = () => {
71
+ var t;
72
+ const e = O(i.getColumns());
73
+ let l = e.filter(
74
+ (a) => a.flag !== Oe && (a.fixed === "left" || a.fixed === !0)
75
+ ).length;
76
+ v.value && l++;
77
+ for (const a of d.value) {
78
+ const N = e.findIndex((S) => S.dataIndex === a.value);
79
+ if (N > -1) {
80
+ const S = e[N];
81
+ S.defaultHidden = (t = a.column) == null ? void 0 : t.defaultHidden, S.fixed = a.fixed, e.splice(N, 1), e.splice(l++, 0, S);
82
+ }
83
+ }
84
+ const o = e.findIndex((a) => a.dataIndex === "action");
85
+ if (o > -1) {
86
+ const a = e.splice(o, 1);
87
+ e.push(a[0]);
88
+ }
89
+ ie(e);
90
+ }, se = async () => {
91
+ if (await K(), C.value) {
92
+ const e = C.value.$el;
93
+ Re.create(n(e), {
94
+ animation: 500,
95
+ delay: 400,
96
+ delayOnTouchOnly: !0,
97
+ handle: ".table-column-drag-icon ",
98
+ dataIdAttr: "data-no",
99
+ onEnd: (l) => {
100
+ const { oldIndex: o, newIndex: t } = l;
101
+ if (Q(o) || Q(t) || o === t)
102
+ return;
103
+ const a = O(d.value);
104
+ o > t ? (a.splice(t, 0, a[o]), a.splice(o + 1, 1)) : (a.splice(t + 1, 0, a[o]), a.splice(o, 1)), d.value = a, y();
105
+ }
106
+ });
107
+ }
108
+ }, ue = () => {
109
+ u.value = d.value.filter((e) => {
110
+ var l;
111
+ return !((l = e.column) != null && l.defaultHidden);
112
+ }).map((e) => e.value);
113
+ }, V = () => {
114
+ U.value = d.value.length === u.value.length;
115
+ }, $ = (e) => {
116
+ h = !0, i.setProps({
117
+ showIndexColumn: e
118
+ });
119
+ }, B = (e) => {
120
+ h = !0, i.setProps({
121
+ rowSelection: e ? {
122
+ ..._e(L, ["selectedRowKeys"]),
123
+ fixed: !0
124
+ } : void 0
125
+ });
126
+ }, M = () => {
127
+ ue(), V(), $(v.value), B(x.value), y();
128
+ };
129
+ let _ = !1, w = !1, L, z = [];
130
+ const G = async () => {
131
+ var e;
132
+ if (!I) {
133
+ const l = ae();
134
+ (e = i.setCacheColumns) == null || e.call(i, l);
135
+ const o = [];
136
+ for (const t of l)
137
+ o.push({
138
+ label: typeof t.title == "string" ? t.title : t.customTitle === "string" ? t.customTitle : "",
139
+ value: typeof t.dataIndex == "string" ? t.dataIndex : t.title === "string" ? t.title : "",
140
+ column: {
141
+ defaultHidden: t.defaultHidden
142
+ },
143
+ fixed: t.fixed
144
+ });
145
+ _ = i.getBindValues.value.showIndexColumn || !1, L = i.getRowSelection(), w = !!L, z = o, v.value = _, x.value = w, d.value = O(o), M(), I = !0;
146
+ }
147
+ };
148
+ (async () => {
149
+ await le(), G();
150
+ })();
151
+ const ce = T(() => i == null ? void 0 : i.getColumns()), de = T(() => i == null ? void 0 : i.getBindValues);
152
+ return me(() => {
153
+ j([ce, de], () => {
154
+ h ? h = !1 : (I = !1, console.log("onMounted isRestored"), G());
155
+ });
156
+ }), (e, l) => {
157
+ const o = ve("a-button");
158
+ return b(), X(n(A), { placement: "top" }, {
159
+ title: s(() => [
160
+ q("span", null, r(n(f)("ap.table.settingColumn")), 1)
161
+ ]),
162
+ default: s(() => [
163
+ c(n(Ce), {
164
+ placement: "bottomLeft",
165
+ trigger: "click",
166
+ onOpenChange: se,
167
+ overlayClassName: n(g)("column-list"),
168
+ getPopupContainer: P
169
+ }, {
170
+ title: s(() => [
171
+ q("div", {
172
+ class: R(n(g)("popover-title"))
173
+ }, [
174
+ c(n(k), {
175
+ indeterminate: te.value,
176
+ checked: U.value,
177
+ "onUpdate:checked": l[0] || (l[0] = (t) => U.value = t),
178
+ onChange: ee
179
+ }, {
180
+ default: s(() => [
181
+ m(r(n(f)("ap.table.settingColumnShow")), 1)
182
+ ]),
183
+ _: 1
184
+ }, 8, ["indeterminate", "checked"]),
185
+ c(n(k), {
186
+ checked: v.value,
187
+ "onUpdate:checked": l[1] || (l[1] = (t) => v.value = t),
188
+ onChange: D
189
+ }, {
190
+ default: s(() => [
191
+ m(r(n(f)("ap.table.settingIndexColumnShow")), 1)
192
+ ]),
193
+ _: 1
194
+ }, 8, ["checked"]),
195
+ n(w) ? (b(), X(n(k), {
196
+ key: 0,
197
+ checked: x.value,
198
+ "onUpdate:checked": l[2] || (l[2] = (t) => x.value = t),
199
+ onChange: E
200
+ }, {
201
+ default: s(() => [
202
+ m(r(n(f)("ap.table.settingSelectColumnShow")), 1)
203
+ ]),
204
+ _: 1
205
+ }, 8, ["checked"])) : pe("", !0),
206
+ c(o, {
207
+ size: "small",
208
+ type: "link",
209
+ onClick: ne
210
+ }, {
211
+ default: s(() => [
212
+ m(r(n(f)("ap.common.resetText")), 1)
213
+ ]),
214
+ _: 1
215
+ })
216
+ ], 2)
217
+ ]),
218
+ content: s(() => [
219
+ c(n(ke), null, {
220
+ default: s(() => [
221
+ c(n(k).Group, {
222
+ value: u.value,
223
+ "onUpdate:value": l[3] || (l[3] = (t) => u.value = t),
224
+ ref_key: "columnOptionsRef",
225
+ ref: C
226
+ }, {
227
+ default: s(() => [
228
+ (b(!0), J(ge, null, he(d.value, (t) => (b(), J("div", {
229
+ key: t.value,
230
+ class: R(n(g)("check-item")),
231
+ "data-no": t.value
232
+ }, [
233
+ c(n(we), { class: "table-column-drag-icon" }),
234
+ c(n(k), {
235
+ value: t.value
236
+ }, {
237
+ default: s(() => [
238
+ m(r(t.label), 1)
239
+ ]),
240
+ _: 2
241
+ }, 1032, ["value"]),
242
+ c(n(A), {
243
+ placement: "bottomLeft",
244
+ mouseLeaveDelay: 0.4,
245
+ getPopupContainer: P
246
+ }, {
247
+ title: s(() => [
248
+ m(r(n(f)("ap.table.settingFixedLeft")), 1)
249
+ ]),
250
+ default: s(() => [
251
+ c(W, {
252
+ icon: "line-md:arrow-align-left",
253
+ class: R([
254
+ n(g)("fixed-left"),
255
+ {
256
+ active: t.fixed === "left",
257
+ disabled: t.value ? !u.value.includes(t.value) : !0
258
+ }
259
+ ]),
260
+ onClick: (a) => F(t, "left")
261
+ }, null, 8, ["class", "onClick"])
262
+ ]),
263
+ _: 2
264
+ }, 1024),
265
+ c(n(xe), { type: "vertical" }),
266
+ c(n(A), {
267
+ placement: "bottomLeft",
268
+ mouseLeaveDelay: 0.4,
269
+ getPopupContainer: P
270
+ }, {
271
+ title: s(() => [
272
+ m(r(n(f)("ap.table.settingFixedRight")), 1)
273
+ ]),
274
+ default: s(() => [
275
+ c(W, {
276
+ icon: "line-md:arrow-align-left",
277
+ class: R([
278
+ n(g)("fixed-right"),
279
+ {
280
+ active: t.fixed === "right",
281
+ disabled: t.value ? !u.value.includes(t.value) : !0
282
+ }
283
+ ]),
284
+ onClick: (a) => F(t, "right")
285
+ }, null, 8, ["class", "onClick"])
286
+ ]),
287
+ _: 2
288
+ }, 1024)
289
+ ], 10, Le))), 128))
290
+ ]),
291
+ _: 1
292
+ }, 8, ["value"])
293
+ ]),
294
+ _: 1
295
+ })
296
+ ]),
297
+ default: s(() => [
298
+ c(n(Se))
299
+ ]),
300
+ _: 1
301
+ }, 8, ["overlayClassName"])
302
+ ]),
303
+ _: 1
304
+ });
305
+ };
306
+ }
307
+ });
2
308
  export {
3
- f as default
309
+ Je as default
4
310
  };
@@ -1,32 +1,4 @@
1
- import { defineComponent as s, openBlock as t, createBlock as l, unref as e, withCtx as o, createElementVNode as u, toDisplayString as p } from "vue";
2
- import { Tooltip as m } from "ant-design-vue";
3
- import { FullscreenOutlined as a, FullscreenExitOutlined as f } from "@ant-design/icons-vue";
4
- import { useFullscreen as _ } from "@vueuse/core";
5
- import "../../../config-provider/index.mjs";
6
- import { useTableContext as k } from "../../hooks/use-table-context.mjs";
7
- import { useLocale as C } from "../../../config-provider/hooks/use-locale.mjs";
8
- const E = /* @__PURE__ */ s({
9
- name: "FullScreenSetting",
10
- __name: "full-screen-setting",
11
- setup(d) {
12
- const r = k(), { t: c } = C(), { toggle: n, isFullscreen: i } = _(r.wrapRef);
13
- return (g, F) => (t(), l(e(m), { placement: "top" }, {
14
- title: o(() => [
15
- u("span", null, p(e(c)("ap.table.settingFullScreen")), 1)
16
- ]),
17
- default: o(() => [
18
- e(i) ? (t(), l(e(f), {
19
- key: 1,
20
- onClick: e(n)
21
- }, null, 8, ["onClick"])) : (t(), l(e(a), {
22
- key: 0,
23
- onClick: e(n)
24
- }, null, 8, ["onClick"]))
25
- ]),
26
- _: 1
27
- }));
28
- }
29
- });
1
+ import f from "./full-screen-setting.vue2.mjs";
30
2
  export {
31
- E as default
3
+ f as default
32
4
  };
@@ -1,4 +1,32 @@
1
- import f from "./full-screen-setting.vue.mjs";
1
+ import { defineComponent as s, openBlock as t, createBlock as l, unref as e, withCtx as o, createElementVNode as u, toDisplayString as p } from "vue";
2
+ import { Tooltip as m } from "ant-design-vue";
3
+ import { FullscreenOutlined as a, FullscreenExitOutlined as f } from "@ant-design/icons-vue";
4
+ import { useFullscreen as _ } from "@vueuse/core";
5
+ import "../../../config-provider/index.mjs";
6
+ import { useTableContext as k } from "../../hooks/use-table-context.mjs";
7
+ import { useLocale as C } from "../../../config-provider/hooks/use-locale.mjs";
8
+ const E = /* @__PURE__ */ s({
9
+ name: "FullScreenSetting",
10
+ __name: "full-screen-setting",
11
+ setup(d) {
12
+ const r = k(), { t: c } = C(), { toggle: n, isFullscreen: i } = _(r.wrapRef);
13
+ return (g, F) => (t(), l(e(m), { placement: "top" }, {
14
+ title: o(() => [
15
+ u("span", null, p(e(c)("ap.table.settingFullScreen")), 1)
16
+ ]),
17
+ default: o(() => [
18
+ e(i) ? (t(), l(e(f), {
19
+ key: 1,
20
+ onClick: e(n)
21
+ }, null, 8, ["onClick"])) : (t(), l(e(a), {
22
+ key: 0,
23
+ onClick: e(n)
24
+ }, null, 8, ["onClick"]))
25
+ ]),
26
+ _: 1
27
+ }));
28
+ }
29
+ });
2
30
  export {
3
- f as default
31
+ E as default
4
32
  };