@aplus-frontend/ui 6.17.1 → 6.17.2

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 (251) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  10. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  11. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  12. package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
  13. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  14. package/es/src/ap-field/date/index.vue.mjs +4 -4
  15. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  16. package/es/src/ap-field/index.mjs +36 -36
  17. package/es/src/ap-field/number/index.vue.mjs +8 -8
  18. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  19. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  20. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  21. package/es/src/ap-field/select/index.vue.mjs +2 -2
  22. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  23. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  24. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  25. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  26. package/es/src/ap-field/text/password.vue.mjs +2 -2
  27. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  28. package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
  29. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  30. package/es/src/ap-form/ap-form.vue.d.ts +2 -1
  31. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  32. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  33. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  34. package/es/src/ap-form/item/index.vue.mjs +7 -7
  35. package/es/src/ap-form/item-group/index.vue.mjs +1 -1
  36. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  41. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  42. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  43. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  44. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  45. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  46. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  47. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  48. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  49. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  50. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  51. package/es/src/ap-form/render/item.vue.mjs +2 -2
  52. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
  53. package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
  54. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
  55. package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
  56. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  57. package/es/src/ap-form/set/index.vue.mjs +1 -1
  58. package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  59. package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
  60. package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
  61. package/es/src/ap-grid/editable/index.vue.mjs +2 -2
  62. package/es/src/ap-grid/index.vue.d.ts +4 -2
  63. package/es/src/ap-grid/index.vue.mjs +19 -19
  64. package/es/src/ap-list/index.vue.d.ts +4 -2
  65. package/es/src/ap-list/index.vue.mjs +1 -1
  66. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  67. package/es/src/ap-table/ap-table.vue.d.ts +4 -2
  68. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  69. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  70. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  71. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  72. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  73. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  75. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  76. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  77. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  78. package/es/src/ap-table/constants.d.ts +5 -5
  79. package/es/src/ap-table/constants.mjs +45 -45
  80. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  81. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  82. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  83. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  84. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  85. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  86. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  87. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  88. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  89. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  90. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  91. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  92. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
  93. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
  94. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  95. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  96. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  97. package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
  98. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
  99. package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +105 -104
  100. package/es/src/business/ap-draggable-grid/constans.d.ts +4 -0
  101. package/es/src/business/ap-draggable-grid/constans.mjs +4 -0
  102. package/es/src/business/ap-draggable-grid/index.d.ts +16 -1
  103. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  104. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  105. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  106. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
  107. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  108. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  109. package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
  110. package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
  111. package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
  112. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  113. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  114. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  115. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  116. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  117. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  118. package/es/src/business/ap-table-modal/index.d.ts +5 -17
  119. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  120. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  121. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  122. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  123. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  124. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  125. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  126. package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
  127. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
  128. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
  129. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
  130. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
  131. package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
  132. package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
  133. package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
  134. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  135. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  136. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  137. package/es/src/check-card/index.vue2.mjs +3 -3
  138. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
  139. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  140. package/es/src/editable-table/form-item.vue.mjs +2 -2
  141. package/es/src/editable-table/index.vue.d.ts +4 -2
  142. package/es/src/editable-table/index.vue.mjs +2 -2
  143. package/es/src/full-screen/index.vue.mjs +3 -3
  144. package/es/src/hooks/useFullScreen.mjs +5 -5
  145. package/es/src/mask/index.vue.mjs +10 -10
  146. package/es/src/portal/index.vue.mjs +2 -2
  147. package/es/src/scroll-bar/index.vue.mjs +3 -3
  148. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  149. package/es/src/scroll-view/index.vue.d.ts +5 -5
  150. package/es/src/scroll-view/index.vue.mjs +9 -9
  151. package/es/src/splitter/Panel.vue2.mjs +4 -4
  152. package/es/src/splitter/SplitBar.vue2.mjs +7 -7
  153. package/es/src/splitter/Splitter.vue2.mjs +5 -5
  154. package/es/src/tests/wrapper.d.ts +4 -4
  155. package/es/src/text/group.vue.mjs +2 -2
  156. package/es/src/text/index.vue.mjs +5 -5
  157. package/es/src/version.d.ts +1 -1
  158. package/es/src/version.mjs +1 -1
  159. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  160. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  161. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  162. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  163. package/lib/src/ap-field/index.js +1 -1
  164. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  165. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  166. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  167. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  168. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  169. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  170. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  171. package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  172. package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
  173. package/lib/src/ap-grid/index.vue.d.ts +4 -2
  174. package/lib/src/ap-list/index.vue.d.ts +4 -2
  175. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  176. package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
  177. package/lib/src/ap-table/constants.d.ts +5 -5
  178. package/lib/src/ap-table/constants.js +1 -1
  179. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  180. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  181. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  182. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  183. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  184. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
  185. package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
  186. package/lib/src/business/ap-draggable-grid/constans.d.ts +4 -0
  187. package/lib/src/business/ap-draggable-grid/constans.js +1 -1
  188. package/lib/src/business/ap-draggable-grid/index.d.ts +16 -1
  189. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  190. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  191. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  192. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  193. package/lib/src/business/ap-table-modal/index.d.ts +5 -17
  194. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
  195. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
  196. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
  197. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  198. package/lib/src/editable-table/index.vue.d.ts +4 -2
  199. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  200. package/lib/src/tests/wrapper.d.ts +4 -4
  201. package/lib/src/version.d.ts +1 -1
  202. package/lib/src/version.js +1 -1
  203. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  204. package/package.json +3 -3
  205. package/theme/antd-global-overwrite/admin/alert.css +37 -0
  206. package/theme/antd-global-overwrite/admin/alert.less +51 -0
  207. package/theme/antd-global-overwrite/admin/button.css +27 -0
  208. package/theme/antd-global-overwrite/admin/button.less +31 -0
  209. package/theme/antd-global-overwrite/admin/field.css +42 -0
  210. package/theme/antd-global-overwrite/admin/field.less +43 -0
  211. package/theme/antd-global-overwrite/admin/form.css +57 -0
  212. package/theme/antd-global-overwrite/admin/form.less +97 -0
  213. package/theme/antd-global-overwrite/admin/message.css +10 -0
  214. package/theme/antd-global-overwrite/admin/message.less +13 -0
  215. package/theme/antd-global-overwrite/admin/modal.css +94 -0
  216. package/theme/antd-global-overwrite/admin/modal.less +128 -0
  217. package/theme/antd-global-overwrite/admin/pagination.css +122 -0
  218. package/theme/antd-global-overwrite/admin/pagination.less +91 -0
  219. package/theme/antd-global-overwrite/admin/steps.css +127 -0
  220. package/theme/antd-global-overwrite/admin/steps.less +197 -0
  221. package/theme/antd-global-overwrite/admin/table.css +78 -0
  222. package/theme/antd-global-overwrite/admin/table.less +62 -0
  223. package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
  224. package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
  225. package/theme/antd-global-overwrite/aplus/alert.css +40 -0
  226. package/theme/antd-global-overwrite/aplus/alert.less +55 -0
  227. package/theme/antd-global-overwrite/aplus/button.css +27 -0
  228. package/theme/antd-global-overwrite/aplus/button.less +31 -0
  229. package/theme/antd-global-overwrite/aplus/field.css +42 -0
  230. package/theme/antd-global-overwrite/aplus/field.less +43 -0
  231. package/theme/antd-global-overwrite/aplus/form.css +87 -0
  232. package/theme/antd-global-overwrite/aplus/form.less +133 -0
  233. package/theme/antd-global-overwrite/aplus/message.css +10 -0
  234. package/theme/antd-global-overwrite/aplus/message.less +13 -0
  235. package/theme/antd-global-overwrite/aplus/modal.css +87 -0
  236. package/theme/antd-global-overwrite/aplus/modal.less +120 -0
  237. package/theme/antd-global-overwrite/aplus/pagination.css +147 -0
  238. package/theme/antd-global-overwrite/aplus/pagination.less +108 -0
  239. package/theme/antd-global-overwrite/aplus/steps.css +125 -0
  240. package/theme/antd-global-overwrite/aplus/steps.less +198 -0
  241. package/theme/antd-global-overwrite/aplus/table.css +78 -0
  242. package/theme/antd-global-overwrite/aplus/table.less +61 -0
  243. package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
  244. package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
  245. package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -2
  246. package/theme/ap-draggable-grid/ap-draggable-grid.less +6 -2
  247. package/theme/ap-table/ap-table-pagination.css +12 -0
  248. package/theme/ap-table/ap-table-pagination.less +14 -0
  249. package/theme/index.css +4 -2
  250. package/theme/ui-mode.css +60 -0
  251. package/theme/ui-mode.less +109 -0
@@ -1,4 +1,4 @@
1
- import { createElementBlock as t, openBlock as e, createStaticVNode as r } from "vue";
1
+ import { openBlock as t, createElementBlock as e, createStaticVNode as r } from "vue";
2
2
  import l from "../../../../_virtual/_plugin-vue_export-helper.mjs";
3
3
  const i = {}, o = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
@@ -8,7 +8,7 @@ const i = {}, o = {
8
8
  viewBox: "0 0 16 16"
9
9
  };
10
10
  function c(n, Q) {
11
- return e(), t("svg", o, Q[0] || (Q[0] = [
11
+ return t(), e("svg", o, Q[0] || (Q[0] = [
12
12
  r('<defs><clipPath id="master_svg0_183_82058/183_76208"><rect x="0" y="0" width="16" height="16" rx="0"></rect></clipPath></defs><g clip-path="url(#master_svg0_183_82058/183_76208)"><g><rect x="0" y="0" width="16" height="16" rx="0" fill="#FFFFFF" fill-opacity="0.009999999776482582" style="mix-blend-mode:passthrough;"></rect></g><g><path d="M6.4678965625,11.32002357421875L11.4176265625,6.37025357421875Q11.4879565625,6.29993357421875,11.5260165625,6.20804357421875Q11.5640765625,6.11616357421875,11.5640765625,6.0167035742187505Q11.5640765625,5.967463574218749,11.5544665625,5.91916357421875Q11.5448565625,5.87086357421875,11.5260165625,5.82536357421875Q11.5071665625,5.77986357421875,11.4798065625,5.7389235742187505Q11.4524465625,5.69797357421875,11.4176265625,5.66315357421875Q11.3828065625,5.62833357421875,11.3418565625,5.6009735742187505Q11.3009165625,5.57361357421875,11.2554165625,5.55476357421875Q11.2099165625,5.535923574218749,11.1616165625,5.52631357421875Q11.1133165625,5.5167035742187505,11.0640765625,5.5167035742187505Q10.9646165625,5.5167035742187505,10.8727365625,5.55476357421875Q10.7808465625,5.59282357421875,10.7105265625,5.66315357421875L10.7102665625,5.66341357421875L5.7607865625,10.612923574218751Q5.4072265625,10.96648357421875,5.0536665625,10.612923574218751Q4.7001265624999995,10.25935357421875,5.0536765625,9.905773574218749L10.9462265625,4.01326057421875Q11.3855665625,3.57391357421875,12.0068765625,3.57391357421875Q12.6282265625,3.57391357421875,13.0675265625,4.01326157421875Q13.5069265625,4.45258357421875,13.5069265625,5.07391357421875Q13.5069265625,5.69523357421875,13.0675265625,6.13459357421875L7.1749865625,12.02712357421875Q6.4427665625,12.75934357421875,5.4072265625,12.75934357421875Q4.3716865625,12.75934357421875,3.6394565625,12.02712357421875Q2.9072265625,11.29489357421875,2.9072265625,10.25935357421875Q2.9072265625,9.22382357421875,3.6394565625,8.49159357421875L8.5891965625,3.5418455742187502Q8.6595265625,3.47151957421875,8.6975865625,3.37963357421875Q8.735646562500001,3.28774857421875,8.735646562500001,3.18829257421875Q8.735646562500001,3.13904677421875,8.7260365625,3.09074737421875Q8.7164265625,3.04244787421875,8.6975865625,2.99695077421875Q8.6787365625,2.95145357421875,8.651376562500001,2.91050757421875Q8.6240165625,2.86956157421875,8.5891965625,2.83473957421875Q8.5543765625,2.79991757421875,8.513426562500001,2.77255757421875Q8.472476562499999,2.74519857421875,8.4269865625,2.72635257421875Q8.381486562500001,2.70750757421875,8.3331865625,2.69789957421875Q8.284886562499999,2.68829257421875,8.235646562500001,2.68829257421875Q8.1361865625,2.68829257421875,8.0442965625,2.72635257421875Q7.9524165625,2.76441257421875,7.8820865625,2.83473957421875L7.8816965625,2.83512857421875L2.9323545625,7.78448357421875Q1.9072265625,8.80960357421875,1.9072265625,10.25935357421875Q1.9072265625,11.70910357421875,2.9323525625,12.73422357421875Q3.9574765625,13.75931357421875,5.4072265625,13.75931357421875Q6.8569765625,13.75931357421875,7.8820965625,12.73422357421875L13.7746265625,6.8416835742187505Q14.5069265625,6.10944357421875,14.5069265625,5.07391357421875Q14.5069265625,4.03837257421875,13.7746265625,3.30615057421875Q13.0424265625,2.57391357421875,12.0068765625,2.57391357421875Q10.9713365625,2.57391357421875,10.239126562500001,3.30615157421875L4.3465365625,9.19870357421875Q3.9072365625,9.638043574218749,3.9072365625,10.25935357421875Q3.9072365625,10.880663574218751,4.3465565625,11.32002357421875Q4.7859065625,11.75937357421875,5.4072265625,11.75937357421875Q6.0285465625,11.75937357421875,6.4678965625,11.32002357421875Z" fill-rule="evenodd" fill="currentColor" fill-opacity="1"></path></g></g>', 2)
13
13
  ]));
14
14
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, useSlots as D, computed as E, ref as N, watch as K, createElementBlock as R, openBlock as V, normalizeClass as f, unref as t, withDirectives as T, createElementVNode as c, renderSlot as m, vShow as z, createCommentVNode as O, createTextVNode as v, toDisplayString as n, createVNode as j, withCtx as q } from "vue";
1
+ import { defineComponent as x, useSlots as D, computed as E, ref as N, watch as K, openBlock as R, createElementBlock as V, normalizeClass as f, unref as t, withDirectives as T, createElementVNode as c, renderSlot as m, vShow as z, createTextVNode as v, toDisplayString as n, createVNode as O, withCtx as j, createCommentVNode as q } from "vue";
2
2
  import { Button as F } from "@aplus-frontend/antdv";
3
3
  import "../../config-provider/index.mjs";
4
4
  import { useNamespace as G } from "../../config-provider/hooks/use-namespace.mjs";
@@ -33,7 +33,7 @@ const J = {
33
33
  {
34
34
  immediate: !0
35
35
  }
36
- ), (e, l) => (V(), R("div", {
36
+ ), (e, l) => (R(), V("div", {
37
37
  class: f([t(r)()])
38
38
  }, [
39
39
  T(c("div", {
@@ -49,24 +49,24 @@ const J = {
49
49
  class: f(t(r)("body"))
50
50
  }, [
51
51
  m(e.$slots, "prefix"),
52
- o.showSelected ? (V(), R("div", J, [
52
+ o.showSelected ? (R(), V("div", J, [
53
53
  c("div", M, [
54
54
  v(n(t(d)("ap.apBatchAction.selected")) + " ", 1),
55
55
  c("span", null, n(b.value), 1),
56
56
  v(" " + n(t(d)("ap.apBatchAction.piecesOfData")), 1)
57
57
  ]),
58
58
  c("div", P, [
59
- j(t(F), {
59
+ O(t(F), {
60
60
  type: "link",
61
61
  onClick: l[0] || (l[0] = (h) => o.clearAll && o.clearAll())
62
62
  }, {
63
- default: q(() => [
63
+ default: j(() => [
64
64
  v(n(t(d)("ap.apBatchAction.empty")), 1)
65
65
  ]),
66
66
  _: 1
67
67
  })
68
68
  ])
69
- ])) : O("", !0),
69
+ ])) : q("", !0),
70
70
  m(e.$slots, "suffix")
71
71
  ], 2)
72
72
  ], 2));
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, useSlots as O, computed as n, createBlock as m, createCommentVNode as j, openBlock as d, unref as s, mergeProps as b, createSlots as g, withCtx as r, createElementVNode as x, normalizeStyle as E, resolveDynamicComponent as k, h as A, createVNode as i, renderList as B, renderSlot as C, normalizeProps as v, guardReactiveProps as y, normalizeClass as I } from "vue";
1
+ import { defineComponent as F, useSlots as O, computed as n, openBlock as m, createBlock as d, unref as s, mergeProps as b, createSlots as g, withCtx as r, createVNode as i, createElementVNode as j, normalizeStyle as x, resolveDynamicComponent as k, h as A, renderList as B, renderSlot as C, normalizeProps as v, guardReactiveProps as y, normalizeClass as E, createCommentVNode as I } from "vue";
2
2
  import { DropdownButton as q, Dropdown as H } from "@aplus-frontend/antdv";
3
3
  import "../../ap-button/index.mjs";
4
4
  import "./MenuItemGroup.vue.mjs";
@@ -61,7 +61,7 @@ const ie = /* @__PURE__ */ F({
61
61
  return D({
62
62
  columns: T,
63
63
  dataSource: N
64
- }), (t, o) => c.value.length && P.value === "dropdown" ? (d(), m(s(q), b({
64
+ }), (t, o) => c.value.length && P.value === "dropdown" ? (m(), d(s(q), b({
65
65
  key: 0,
66
66
  class: [s(h)()]
67
67
  }, {
@@ -75,12 +75,12 @@ const ie = /* @__PURE__ */ F({
75
75
  }, { "menu-list": c.value }), null, 16, ["menu-list"])
76
76
  ]),
77
77
  default: r(() => [
78
- x("span", {
79
- style: E({
78
+ j("span", {
79
+ style: x({
80
80
  color: V.value
81
81
  })
82
82
  }, [
83
- (d(), m(k(A("span", [_.value]))))
83
+ (m(), d(k(A("span", [_.value]))))
84
84
  ], 4)
85
85
  ]),
86
86
  _: 2
@@ -91,9 +91,9 @@ const ie = /* @__PURE__ */ F({
91
91
  C(t.$slots, l, v(y(f || {})))
92
92
  ])
93
93
  }))
94
- ]), 1040, ["class"])) : c.value.length && P.value === "default" ? (d(), m(s(H), {
94
+ ]), 1040, ["class"])) : c.value.length && P.value === "default" ? (m(), d(s(H), {
95
95
  key: 1,
96
- class: I([s(h)()]),
96
+ class: E([s(h)()]),
97
97
  disabled: p.value
98
98
  }, g({
99
99
  overlay: r(() => [
@@ -108,7 +108,7 @@ const ie = /* @__PURE__ */ F({
108
108
  type: u.value
109
109
  })), {
110
110
  default: r(() => [
111
- (d(), m(k(A("span", [_.value])))),
111
+ (m(), d(k(A("span", [_.value])))),
112
112
  i(s(J))
113
113
  ]),
114
114
  _: 1
@@ -122,7 +122,7 @@ const ie = /* @__PURE__ */ F({
122
122
  C(t.$slots, l, v(y(f || {})))
123
123
  ])
124
124
  }))
125
- ]), 1032, ["class", "disabled"])) : j("", !0);
125
+ ]), 1032, ["class", "disabled"])) : I("", !0);
126
126
  }
127
127
  });
128
128
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, ref as v, createBlock as a, openBlock as s, unref as u, withCtx as d, createElementBlock as h, Fragment as t, renderList as y, mergeProps as k, createElementVNode as w, withDirectives as g, createVNode as C, vShow as b, resolveDynamicComponent as L, h as M } from "vue";
1
+ import { defineComponent as _, ref as v, openBlock as s, createBlock as a, unref as u, withCtx as d, createElementBlock as h, Fragment as t, renderList as y, mergeProps as k, createElementVNode as w, withDirectives as g, createVNode as C, vShow as b, resolveDynamicComponent as L, h as M } from "vue";
2
2
  import { LoadingOutlined as B } from "@ant-design/icons-vue";
3
3
  import { Menu as R, MenuItem as x } from "@aplus-frontend/antdv";
4
4
  const D = { style: { display: "flex", "align-items": "center" } }, P = /* @__PURE__ */ _({
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
3
3
  import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
5
5
  import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
+ import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
6
7
  import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
7
- import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
8
8
  import { Key } from '@aplus-frontend/antdv/es/_util/type';
9
9
  import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
10
10
  import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from '@aplus-frontend/antdv/es/menu/src/interface';
@@ -63,7 +63,7 @@ declare const ApBatchActionGroup: {
63
63
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
64
64
  };
65
65
  }>>, "type" | "onClick"> & {
66
- type?: ( ButtonType | undefined) | "borderLink";
66
+ type?: ButtonProps["type"] | "borderLink";
67
67
  borderLinkColor?: string;
68
68
  minWidth?: boolean | number | string;
69
69
  lazy?: boolean | number;
@@ -364,7 +364,7 @@ declare const ApBatchActionGroup: {
364
364
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
365
365
  };
366
366
  }>>, "type" | "onClick"> & {
367
- type?: ( ButtonType | undefined) | "borderLink";
367
+ type?: ButtonProps["type"] | "borderLink";
368
368
  borderLinkColor?: string;
369
369
  minWidth?: boolean | number | string;
370
370
  lazy?: boolean | number;
@@ -1,4 +1,4 @@
1
- import { defineComponent as k, computed as T, createBlock as u, openBlock as t, unref as s, normalizeProps as P, guardReactiveProps as R, withCtx as c, createElementBlock as m, Fragment as p, renderList as i, createCommentVNode as B, mergeProps as l, resolveDynamicComponent as f, h as y } from "vue";
1
+ import { defineComponent as k, computed as T, openBlock as t, createBlock as u, unref as s, normalizeProps as P, guardReactiveProps as R, withCtx as c, createElementBlock as m, Fragment as p, renderList as i, mergeProps as l, resolveDynamicComponent as f, h as y, createCommentVNode as B } from "vue";
2
2
  import { Space as x } from "@aplus-frontend/antdv";
3
3
  import "../../ap-button/ap-button.vue2.mjs";
4
4
  import "../../ap-button/ap-action-button.vue2.mjs";
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, useSlots as $, computed as l, createElementBlock as o, openBlock as r, normalizeStyle as B, normalizeClass as N, unref as s, createBlock as c, createCommentVNode as P, renderSlot as d, mergeProps as b, createSlots as z, withCtx as y, isVNode as k, resolveDynamicComponent as v, toDisplayString as _ } from "vue";
1
+ import { defineComponent as h, useSlots as $, computed as l, openBlock as r, createElementBlock as o, normalizeClass as B, unref as s, normalizeStyle as N, createBlock as c, mergeProps as b, createSlots as z, withCtx as P, renderSlot as d, isVNode as y, resolveDynamicComponent as k, toDisplayString as v, createCommentVNode as _ } from "vue";
2
2
  import "../ap-title/ApTitle.vue.mjs";
3
3
  import { omit as D } from "lodash-unified";
4
4
  import "../../config-provider/index.mjs";
@@ -20,8 +20,8 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
20
20
  return (i, E) => {
21
21
  var u, x;
22
22
  return r(), o("div", {
23
- class: N([s(m)()]),
24
- style: B({
23
+ class: B([s(m)()]),
24
+ style: N({
25
25
  padding: C.value
26
26
  })
27
27
  }, [
@@ -33,26 +33,26 @@ const w = { key: 2 }, A = { key: 2 }, I = /* @__PURE__ */ h({
33
33
  }), z({ _: 2 }, [
34
34
  t != null && t.titleSuffix || (u = e == null ? void 0 : e.titleProps) != null && u.suffix ? {
35
35
  name: "suffix",
36
- fn: y(() => {
36
+ fn: P(() => {
37
37
  var f, n, a;
38
38
  return [
39
- t != null && t.titleSuffix ? d(i.$slots, "titleSuffix", { key: 0 }) : k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), { key: 1 })) : (r(), o("div", w, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.suffix), 1))
39
+ t != null && t.titleSuffix ? d(i.$slots, "titleSuffix", { key: 0 }) : y((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.suffix) ? (r(), c(k((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.suffix), { key: 1 })) : (r(), o("div", w, v((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.suffix), 1))
40
40
  ];
41
41
  }),
42
42
  key: "0"
43
43
  } : void 0,
44
44
  t != null && t.titlePrefix || (x = e == null ? void 0 : e.titleProps) != null && x.prefix ? {
45
45
  name: "prefix",
46
- fn: y(() => {
46
+ fn: P(() => {
47
47
  var f, n, a;
48
48
  return [
49
- t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) : P("", !0),
50
- k((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), c(v((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), { key: 1 })) : (r(), o("div", A, _((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.prefix), 1))
49
+ t != null && t.titlePrefix ? d(i.$slots, "titlePrefix", { key: 0 }) : _("", !0),
50
+ y((f = e == null ? void 0 : e.titleProps) == null ? void 0 : f.prefix) ? (r(), c(k((n = e == null ? void 0 : e.titleProps) == null ? void 0 : n.prefix), { key: 1 })) : (r(), o("div", A, v((a = e == null ? void 0 : e.titleProps) == null ? void 0 : a.prefix), 1))
51
51
  ];
52
52
  }),
53
53
  key: "1"
54
54
  } : void 0
55
- ]), 1040, ["class"])) : P("", !0),
55
+ ]), 1040, ["class"])) : _("", !0),
56
56
  d(i.$slots, "default")
57
57
  ], 6);
58
58
  };
@@ -10,7 +10,7 @@ declare function __VLS_template(): {
10
10
  span: number;
11
11
  row: number;
12
12
  col: number;
13
- height?: number | string | undefined;
13
+ height?: (number | string) | undefined;
14
14
  };
15
15
  index: number;
16
16
  }): any;
@@ -58,6 +58,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
58
58
  type: BooleanConstructor;
59
59
  default: boolean;
60
60
  };
61
+ customWrapper: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
61
65
  }>, {
62
66
  setGridItems: (items: ApDraggableGridItemBase[]) => void;
63
67
  refreshGrid: () => void;
@@ -100,6 +104,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
100
104
  type: BooleanConstructor;
101
105
  default: boolean;
102
106
  };
107
+ customWrapper: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
103
111
  }>> & Readonly<{
104
112
  onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined;
105
113
  }>, {
@@ -112,6 +120,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
112
120
  dragOverlayColor: string;
113
121
  dragOverlayBorderColor: string;
114
122
  disableDrag: boolean;
123
+ customWrapper: string;
115
124
  }, {}, {}, {}, string, ComponentProvideOptions, true, {
116
125
  gridContainer: HTMLDivElement;
117
126
  }, any>;
@@ -1,48 +1,48 @@
1
- import { defineComponent as W, ref as O, computed as C, useTemplateRef as z, reactive as H, watch as M, onMounted as U, onUnmounted as V, createBlock as J, openBlock as w, unref as u, withCtx as X, createElementVNode as Y, normalizeStyle as A, normalizeClass as G, createElementBlock as $, Fragment as j, renderList as K, renderSlot as Q, createTextVNode as Z, toDisplayString as L } from "vue";
2
- import { ApDraggableGridProps as ee } from "./constans.mjs";
3
- import { Spin as re } from "@aplus-frontend/antdv";
1
+ import { defineComponent as H, ref as $, computed as w, useTemplateRef as M, reactive as U, watch as V, onMounted as J, onUnmounted as X, openBlock as D, createBlock as Y, unref as d, withCtx as j, createElementVNode as K, normalizeClass as L, normalizeStyle as W, createElementBlock as k, Fragment as Q, renderList as Z, renderSlot as ee, createTextVNode as re, toDisplayString as T } from "vue";
2
+ import { ApDraggableGridProps as te } from "./constans.mjs";
3
+ import { Spin as ae } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
6
- const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
5
+ import { useNamespace as ne } from "../../config-provider/hooks/use-namespace.mjs";
6
+ const oe = ["data-span", "draggable", "onDragstart"], ue = /* @__PURE__ */ H({
7
7
  __name: "ApDraggableGrid",
8
- props: ee(),
8
+ props: te(),
9
9
  emits: ["onGridListChange"],
10
- setup(k, { expose: T, emit: N }) {
11
- const l = k, { b: D, e: f, m: R } = ae("ap-draggable-grid"), p = O(!1), v = C(() => f("item")), E = C(() => f("dragging")), B = N, d = z("gridContainer"), i = O(null), o = H([]);
12
- M(
13
- () => l.gridList,
10
+ setup(N, { expose: R, emit: B }) {
11
+ const o = N, { b, e: p, m: E } = ne("ap-draggable-grid"), f = $(!1), m = w(() => p("item")), S = w(() => p("dragging")), I = w(() => o.customWrapper ? `.${o.customWrapper} .${m.value}` : `.${m.value}`), O = w(() => o.customWrapper ? `.${o.customWrapper} .${m.value}:not(.${S.value})` : `.${m.value}:not(.${S.value})`), F = B, u = M("gridContainer"), i = $(null), s = U([]);
12
+ V(
13
+ () => o.gridList,
14
14
  (e) => {
15
- Array.isArray(e) && h(e);
15
+ Array.isArray(e) && v(e);
16
16
  },
17
17
  { deep: !0, immediate: !0 }
18
18
  );
19
- function h(e) {
20
- o.splice(0, o.length), e.forEach((r) => {
21
- o.push({
19
+ function v(e) {
20
+ s.splice(0, s.length), e.forEach((r) => {
21
+ s.push({
22
22
  ...r,
23
23
  isDragging: !1,
24
24
  isOverlay: !1
25
25
  });
26
26
  });
27
27
  }
28
- const F = (e) => ({
28
+ const q = (e) => ({
29
29
  gridColumn: `${e.col} / span ${e.span}`,
30
30
  gridRow: e.row,
31
- minHeight: `${l.gridItemHeight}px`,
32
- boxShadow: l.gridItemShadow ? l.gridItemShadow : "none"
33
- }), q = (e) => {
31
+ minHeight: `${o.gridItemHeight}px`,
32
+ boxShadow: o.gridItemShadow ? o.gridItemShadow : "none"
33
+ }), x = (e) => {
34
34
  if (e.isOverlay) {
35
35
  const r = {};
36
- return l.dragOverlayColor && (r.backgroundColor = l.dragOverlayColor), l.dragOverlayBorderColor && (r.border = `2px dashed ${l.dragOverlayBorderColor}`, r.boxSizing = "border-box"), r;
36
+ return o.dragOverlayColor && (r.backgroundColor = o.dragOverlayColor), o.dragOverlayBorderColor && (r.border = `2px dashed ${o.dragOverlayBorderColor}`, r.boxSizing = "border-box"), r;
37
37
  }
38
38
  return {};
39
- }, x = (e, r) => {
40
- i.value = r, o[r].isDragging = !0, e.dataTransfer && (e.dataTransfer.setData("text/plain", String(r)), e.dataTransfer.effectAllowed = "move");
41
- }, _ = () => {
42
- i.value !== null && (o[i.value].isDragging = !1, m(), i.value = null), o.forEach((e) => e.isOverlay = !1);
39
+ }, _ = (e, r) => {
40
+ i.value = r, s[r].isDragging = !0, e.dataTransfer && (e.dataTransfer.setData("text/plain", String(r)), e.dataTransfer.effectAllowed = "move");
41
+ }, P = () => {
42
+ i.value !== null && (s[i.value].isDragging = !1, h(), i.value = null), s.forEach((e) => e.isOverlay = !1);
43
43
  };
44
- function m() {
45
- const e = o.map(
44
+ function h() {
45
+ const e = s.map(
46
46
  (r) => ({
47
47
  span: r.span,
48
48
  row: r.row,
@@ -50,139 +50,140 @@ const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
50
50
  height: r.height ? r.height : ""
51
51
  })
52
52
  );
53
- B("onGridListChange", e);
53
+ F("onGridListChange", e);
54
54
  }
55
- async function b() {
56
- if (h([]), typeof l.request == "function")
55
+ async function C() {
56
+ if (v([]), typeof o.request == "function")
57
57
  try {
58
- p.value = !0;
59
- const e = await l.request();
60
- Array.isArray(e) ? h(e) : console.warn(
58
+ f.value = !0;
59
+ const e = await o.request();
60
+ Array.isArray(e) ? v(e) : console.warn(
61
61
  "ApDraggableGrid: 请求函数必须返回一个符合 ApDraggableGridItemBase 数组的格式"
62
62
  );
63
63
  } catch (e) {
64
64
  console.error("ApDraggableGrid: 请求错误:", e);
65
65
  } finally {
66
- p.value = !1;
66
+ f.value = !1;
67
67
  }
68
68
  }
69
- U(async () => {
70
- if (await b(), y(), l.disableDrag || !d.value) return;
71
- const e = (a) => {
72
- if (a.preventDefault(), i.value === null || !a.target) return;
73
- const t = document.elementFromPoint(a.clientX, a.clientY);
74
- if (!t) return;
75
- const n = t.closest(
76
- `.${v.value}:not(.${E.value})`
69
+ J(async () => {
70
+ if (await C(), y(), o.disableDrag || !u.value) return;
71
+ const e = (t) => {
72
+ if (t.preventDefault(), i.value === null || !t.target) return;
73
+ const a = document.elementFromPoint(t.clientX, t.clientY);
74
+ if (!a) return;
75
+ const n = a.closest(
76
+ O.value
77
77
  );
78
78
  if (!n) return;
79
- const s = Array.from(
80
- document.querySelectorAll(`.${v.value}`)
79
+ const l = Array.from(
80
+ document.querySelectorAll(I.value)
81
81
  ).indexOf(n);
82
- s >= 0 && s !== i.value && (o.forEach((c) => c.isOverlay = !1), o[s].isOverlay = !0, S(i.value, s) ? a.dataTransfer.dropEffect = "move" : a.dataTransfer.dropEffect = "none");
83
- }, r = (a) => {
84
- if (a.preventDefault(), i.value === null) return;
85
- const t = document.elementFromPoint(a.clientX, a.clientY);
86
- if (!t) return;
87
- const n = t.closest(
88
- `.${v.value}:not(.${E.value})`
82
+ l >= 0 && l !== i.value && (s.forEach((c) => c.isOverlay = !1), s[l].isOverlay = !0, A(i.value, l) ? t.dataTransfer.dropEffect = "move" : t.dataTransfer.dropEffect = "none");
83
+ }, r = (t) => {
84
+ if (t.preventDefault(), i.value === null) return;
85
+ const a = document.elementFromPoint(t.clientX, t.clientY);
86
+ if (!a) return;
87
+ const n = a.closest(
88
+ O.value
89
89
  );
90
90
  if (!n) return;
91
- const s = Array.from(
92
- document.querySelectorAll(`.${v.value}`)
91
+ const l = Array.from(
92
+ document.querySelectorAll(I.value)
93
93
  ).indexOf(n);
94
- s >= 0 && S(i.value, s) && (P(i.value, s), y(), m()), o.forEach((c) => {
94
+ l >= 0 && A(i.value, l) && (z(i.value, l), y(), h()), s.forEach((c) => {
95
95
  c.isDragging = !1, c.isOverlay = !1;
96
96
  }), i.value = null;
97
97
  };
98
- d.value.addEventListener("dragover", e), d.value.addEventListener("drop", r), V(() => {
99
- d.value && (d.value.removeEventListener("dragover", e), d.value.removeEventListener("drop", r));
98
+ u.value.addEventListener("dragover", e), u.value.addEventListener("drop", r), X(() => {
99
+ u.value && (u.value.removeEventListener("dragover", e), u.value.removeEventListener("drop", r));
100
100
  });
101
101
  });
102
- function S(e, r) {
103
- const a = JSON.parse(
104
- JSON.stringify(o)
105
- ), t = a[e], n = a[r], g = t.height === n.height, s = I(
106
- t.span,
102
+ function A(e, r) {
103
+ const t = JSON.parse(
104
+ JSON.stringify(s)
105
+ ), a = t[e], n = t[r], g = a.height === n.height, l = G(
106
+ a.span,
107
107
  n.row,
108
108
  e,
109
109
  r
110
- ), c = I(
110
+ ), c = G(
111
111
  n.span,
112
- t.row,
112
+ a.row,
113
113
  r,
114
114
  e
115
115
  );
116
- return s && c && g;
116
+ return l && c && g;
117
117
  }
118
- function I(e, r, a, t) {
118
+ function G(e, r, t, a) {
119
119
  let n = 0, g = 1;
120
- return o.forEach((s, c) => {
121
- s.row === r && c !== t && c !== a && (n += s.span, s.col <= g && (g = s.col + s.span));
120
+ return s.forEach((l, c) => {
121
+ l.row === r && c !== a && c !== t && (n += l.span, l.col <= g && (g = l.col + l.span));
122
122
  }), n + e <= 24;
123
123
  }
124
- function P(e, r) {
125
- const a = o[e], t = o[r], n = a.row, g = a.col;
126
- a.row = t.row, a.col = t.col, t.row = n, t.col = g;
124
+ function z(e, r) {
125
+ const t = s[e], a = s[r], n = t.row, g = t.col;
126
+ t.row = a.row, t.col = a.col, a.row = n, a.col = g;
127
127
  }
128
128
  function y() {
129
129
  const e = {};
130
- o.forEach((r) => {
130
+ s.forEach((r) => {
131
131
  e[r.row] || (e[r.row] = []), e[r.row].push(r);
132
132
  }), Object.keys(e).forEach((r) => {
133
- const a = parseInt(r);
134
- e[a].sort((n, g) => n.col - g.col);
135
- let t = 1;
136
- e[a].forEach((n) => {
137
- n.col = t, t += n.span;
133
+ const t = parseInt(r);
134
+ e[t].sort((n, g) => n.col - g.col);
135
+ let a = 1;
136
+ e[t].forEach((n) => {
137
+ n.col = a, a += n.span;
138
138
  });
139
139
  });
140
140
  }
141
- return T({
141
+ return R({
142
142
  setGridItems: (e) => {
143
- h(e), y(), m();
143
+ v(e), y(), h();
144
144
  },
145
145
  refreshGrid: () => {
146
146
  (async () => {
147
- await b(), y(), m();
147
+ await C(), y(), h();
148
148
  })();
149
149
  }
150
- }), (e, r) => (w(), J(u(re), { spinning: p.value }, {
151
- default: X(() => [
152
- Y("div", {
150
+ }), (e, r) => (D(), Y(d(ae), { spinning: f.value }, {
151
+ default: j(() => [
152
+ K("div", {
153
153
  ref_key: "gridContainer",
154
- ref: d,
155
- class: G([p.value ? u(D)("loading") : u(D)()]),
156
- style: A({
154
+ ref: u,
155
+ class: L([f.value ? d(b)("loading") : d(b)(), o.customWrapper]),
156
+ style: W({
157
157
  width: typeof e.gridWidth == "number" ? `${e.gridWidth}px` : e.gridWidth,
158
158
  gap: `${e.gapWidth}px`
159
159
  })
160
160
  }, [
161
- (w(!0), $(j, null, K(o, (a, t) => (w(), $("div", {
162
- key: t,
163
- class: G([
164
- u(f)("item"),
165
- l.disableDrag ? "" : u(R)("dragging"),
166
- a.isDragging ? u(f)("dragging") : "",
167
- a.isOverlay ? u(f)("overlay") : ""
161
+ (D(!0), k(Q, null, Z(s, (t, a) => (D(), k("div", {
162
+ key: a,
163
+ class: L([
164
+ d(p)("item"),
165
+ o.disableDrag ? "" : d(E)("dragging"),
166
+ t.isDragging ? d(p)("dragging") : "",
167
+ t.isOverlay ? d(p)("overlay") : "",
168
+ o.disableDrag ? "" : d(E)("canDrag")
168
169
  ]),
169
- "data-span": a.span,
170
- style: A([
171
- F(a),
172
- q(a),
173
- { height: a.height ? a.height + "px" : "" }
170
+ "data-span": t.span,
171
+ style: W([
172
+ q(t),
173
+ x(t),
174
+ { height: t.height ? t.height + "px" : "" }
174
175
  ]),
175
- draggable: !l.disableDrag,
176
- onDragstart: (n) => x(n, t),
177
- onDragend: _
176
+ draggable: !o.disableDrag,
177
+ onDragstart: (n) => _(n, a),
178
+ onDragend: P
178
179
  }, [
179
- Q(e.$slots, "item", {
180
- item: a,
181
- index: t
180
+ ee(e.$slots, "item", {
181
+ item: t,
182
+ index: a
182
183
  }, () => [
183
- Z(L(Math.round(a.span / 24 * 100)) + "% (" + L(a.span) + "/24) ", 1)
184
+ re(T(Math.round(t.span / 24 * 100)) + "% (" + T(t.span) + "/24) ", 1)
184
185
  ])
185
- ], 46, te))), 128))
186
+ ], 46, oe))), 128))
186
187
  ], 6)
187
188
  ]),
188
189
  _: 3
@@ -190,5 +191,5 @@ const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
190
191
  }
191
192
  });
192
193
  export {
193
- ce as default
194
+ ue as default
194
195
  };
@@ -37,4 +37,8 @@ export declare const ApDraggableGridProps: () => {
37
37
  type: BooleanConstructor;
38
38
  default: boolean;
39
39
  };
40
+ customWrapper: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
40
44
  };
@@ -34,6 +34,10 @@ const e = () => ({
34
34
  disableDrag: {
35
35
  type: Boolean,
36
36
  default: !1
37
+ },
38
+ customWrapper: {
39
+ type: String,
40
+ default: "ap-draggable-grid"
37
41
  }
38
42
  });
39
43
  export {