@sdata/web-vue 4.5.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/dist/sd.css +73 -8
  2. package/dist/sd.min.css +2 -2
  3. package/es/_components/auto-tooltip/auto-tooltip.vue_vue_type_script_setup_true_lang.js +1 -1
  4. package/es/_components/client-only.vue_vue_type_script_setup_true_lang.js +1 -1
  5. package/es/_components/feedback-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  6. package/es/_components/icon-hover.vue_vue_type_script_setup_true_lang.js +1 -1
  7. package/es/_components/input-label/input-label.vue_vue_type_script_setup_true_lang.js +1 -1
  8. package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +1 -1
  9. package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +1 -1
  10. package/es/_components/resize-observer.vue_vue_type_script_setup_true_lang.js +1 -1
  11. package/es/_components/resize-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
  12. package/es/_components/select-view/select-view.vue.d.ts +1 -1
  13. package/es/_components/select-view/select-view.vue_vue_type_script_setup_true_lang.js +2 -2
  14. package/es/_components/transition/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
  15. package/es/_components/virtual-list/virtual-list.vue_vue_type_script_setup_true_lang.js +3 -3
  16. package/es/_hooks/use-component-ref.d.ts +1 -1
  17. package/es/_hooks/use-responsive.js +6 -1
  18. package/es/_hooks/use-scrollbar.js +1 -1
  19. package/es/_utils/color.js +1 -1
  20. package/es/_utils/date.d.ts +1 -1
  21. package/es/_utils/date.js +6 -3
  22. package/es/_utils/debounce.d.ts +4 -1
  23. package/es/_utils/debounce.js +8 -1
  24. package/es/_utils/get-value-by-path.d.ts +1 -0
  25. package/es/_utils/get-value-by-path.js +9 -9
  26. package/es/_utils/global-config.js +1 -1
  27. package/es/_utils/omit.js +1 -1
  28. package/es/_utils/responsive-observe.js +1 -1
  29. package/es/_utils/virtual-dropdown.js +1 -1
  30. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/asyncToGenerator.js +1 -1
  31. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/defineProperty.js +1 -1
  32. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/extends.js +1 -1
  33. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectDestructuringEmpty.js +1 -1
  34. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectSpread2.js +1 -1
  35. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectWithoutProperties.js +1 -1
  36. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  37. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/toPrimitive.js +1 -1
  38. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/toPropertyKey.js +1 -1
  39. package/es/_virtual/{_@oxc-project_runtime@0.146.0 → _@oxc-project_runtime@0.147.0}/helpers/esm/typeof.js +1 -1
  40. package/es/affix/affix.vue_vue_type_script_setup_true_lang.js +3 -2
  41. package/es/alert/alert.vue_vue_type_script_setup_true_lang.js +1 -1
  42. package/es/anchor/anchor-link.vue_vue_type_script_setup_true_lang.js +8 -4
  43. package/es/anchor/anchor.vue_vue_type_script_setup_true_lang.js +18 -5
  44. package/es/anchor/utils.d.ts +1 -1
  45. package/es/anchor/utils.js +4 -2
  46. package/es/auto-complete/auto-complete.vue.d.ts +4 -4
  47. package/es/auto-complete/auto-complete.vue_vue_type_script_setup_true_lang.js +22 -9
  48. package/es/avatar/avatar-group.vue_vue_type_script_setup_true_lang.js +16 -23
  49. package/es/avatar/avatar.vue_vue_type_script_setup_true_lang.js +36 -20
  50. package/es/avatar/style/index.css +4 -0
  51. package/es/avatar/style/index.scss +5 -0
  52. package/es/back-top/back-top.vue_vue_type_script_setup_true_lang.js +24 -13
  53. package/es/badge/badge.vue_vue_type_script_setup_true_lang.js +5 -5
  54. package/es/basic-crud-table/basic-crud-modal.vue.d.ts +1 -1
  55. package/es/basic-crud-table/basic-crud-modal.vue_vue_type_script_setup_true_lang.js +24 -15
  56. package/es/basic-crud-table/basic-crud-table.vue.d.ts +4 -4
  57. package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +58 -37
  58. package/es/basic-crud-table/index.d.ts +12 -12
  59. package/es/bloom-menu/bloom-menu.vue_vue_type_script_setup_true_lang.js +3 -2
  60. package/es/border-beam/border-beam.vue_vue_type_script_setup_true_lang.js +64 -22
  61. package/es/border-beam/styles.js +20 -7
  62. package/es/breadcrumb/breadcrumb-item.vue_vue_type_script_setup_true_lang.js +9 -3
  63. package/es/breadcrumb/breadcrumb.vue_vue_type_script_setup_true_lang.js +6 -4
  64. package/es/button/button-group.vue_vue_type_script_setup_true_lang.js +1 -1
  65. package/es/button/button.vue_vue_type_script_setup_true_lang.js +19 -13
  66. package/es/button/index.d.ts +3 -3
  67. package/es/calendar/__test__/real-transitions.js +10 -0
  68. package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +7 -3
  69. package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +1 -1
  70. package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +9 -3
  71. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +2 -2
  72. package/es/calendar/core/config.js +17 -20
  73. package/es/calendar/core/events.js +59 -41
  74. package/es/calendar/core/i18n.d.ts +1 -1
  75. package/es/calendar/core/i18n.js +2 -2
  76. package/es/calendar/core/index.d.ts +6 -6
  77. package/es/calendar/core/index.js +1 -1
  78. package/es/calendar/core/view.js +10 -7
  79. package/es/calendar/modules/drag-and-drop.js +80 -30
  80. package/es/calendar/utils/date.d.ts +4 -4
  81. package/es/calendar/utils/date.js +20 -11
  82. package/es/card/card-actions.vue_vue_type_script_setup_true_lang.js +1 -1
  83. package/es/card/card-grid.vue_vue_type_script_setup_true_lang.js +6 -3
  84. package/es/card/card-meta.vue_vue_type_script_setup_true_lang.js +13 -10
  85. package/es/card/card.vue_vue_type_script_setup_true_lang.js +17 -11
  86. package/es/card/context.d.ts +2 -0
  87. package/es/carousel/carousel-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
  88. package/es/carousel/carousel-indicator.vue_vue_type_script_setup_true_lang.js +1 -1
  89. package/es/carousel/carousel-item.vue_vue_type_script_setup_true_lang.js +1 -1
  90. package/es/carousel/carousel.vue_vue_type_script_setup_true_lang.js +13 -10
  91. package/es/cascader/base-cascader-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  92. package/es/cascader/cascader-column.vue_vue_type_script_setup_true_lang.js +3 -3
  93. package/es/cascader/cascader-option.vue_vue_type_script_setup_true_lang.js +8 -21
  94. package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +27 -12
  95. package/es/cascader/cascader-search-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  96. package/es/cascader/cascader.vue.d.ts +1 -1
  97. package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +37 -17
  98. package/es/cascader/context.d.ts +2 -2
  99. package/es/cascader/hooks/use-lazy-load.d.ts +6 -0
  100. package/es/cascader/hooks/use-lazy-load.js +35 -0
  101. package/es/cascader/interface.d.ts +4 -0
  102. package/es/cascader/utils.d.ts +2 -2
  103. package/es/cascader/utils.js +10 -8
  104. package/es/checkbox/checkbox-group.vue_vue_type_script_setup_true_lang.js +1 -1
  105. package/es/checkbox/checkbox.vue_vue_type_script_setup_true_lang.js +2 -1
  106. package/es/checkbox/icon-check.vue_vue_type_script_setup_true_lang.js +1 -1
  107. package/es/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +17 -2
  108. package/es/collapse/collapse.vue_vue_type_script_setup_true_lang.js +1 -1
  109. package/es/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +3 -3
  110. package/es/color-picker/control-bar.vue_vue_type_script_setup_true_lang.js +1 -1
  111. package/es/color-picker/gradient-thumb.vue_vue_type_script_setup_true_lang.js +6 -2
  112. package/es/color-picker/hooks/use-control-block.js +5 -1
  113. package/es/color-picker/palette.vue_vue_type_script_setup_true_lang.js +1 -1
  114. package/es/color-picker/panel.vue_vue_type_script_setup_true_lang.js +31 -12
  115. package/es/color-picker/utils.js +1 -1
  116. package/es/comment/comment.vue_vue_type_script_setup_true_lang.js +7 -15
  117. package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +1 -1
  118. package/es/config-provider/context.d.ts +5 -1
  119. package/es/config-provider/context.js +2 -1
  120. package/es/config-provider/global-theme.d.ts +3 -0
  121. package/es/config-provider/global-theme.js +49 -0
  122. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +39 -37
  123. package/es/config-provider/theme.d.ts +1 -0
  124. package/es/config-provider/theme.js +5 -3
  125. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +33 -25
  126. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +38 -6
  127. package/es/date-picker/hooks/use-is-disabled-date.d.ts +2 -2
  128. package/es/date-picker/hooks/use-is-disabled-date.js +4 -5
  129. package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
  130. package/es/date-picker/index.d.ts +28 -0
  131. package/es/date-picker/panels/body.vue_vue_type_script_setup_true_lang.js +1 -1
  132. package/es/date-picker/panels/date/index.vue_vue_type_script_setup_true_lang.js +2 -2
  133. package/es/date-picker/panels/footer.vue_vue_type_script_setup_true_lang.js +1 -1
  134. package/es/date-picker/panels/header.vue_vue_type_script_setup_true_lang.js +1 -1
  135. package/es/date-picker/panels/month/index.vue_vue_type_script_setup_true_lang.js +2 -2
  136. package/es/date-picker/panels/quarter/index.vue_vue_type_script_setup_true_lang.js +1 -1
  137. package/es/date-picker/panels/shortcuts.vue_vue_type_script_setup_true_lang.js +1 -1
  138. package/es/date-picker/panels/week/index.vue_vue_type_script_setup_true_lang.js +1 -1
  139. package/es/date-picker/panels/week-list.vue_vue_type_script_setup_true_lang.js +1 -1
  140. package/es/date-picker/panels/year/index.vue_vue_type_script_setup_true_lang.js +1 -1
  141. package/es/date-picker/picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  142. package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +11 -3
  143. package/es/date-picker/pickers/date-picker.vue_vue_type_script_setup_true_lang.js +1 -1
  144. package/es/date-picker/pickers/month-picker.vue_vue_type_script_setup_true_lang.js +1 -1
  145. package/es/date-picker/pickers/quarter-picker.vue_vue_type_script_setup_true_lang.js +1 -1
  146. package/es/date-picker/pickers/week-picker.vue_vue_type_script_setup_true_lang.js +1 -1
  147. package/es/date-picker/pickers/year-picker.vue_vue_type_script_setup_true_lang.js +1 -1
  148. package/es/date-picker/range-picker-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  149. package/es/date-picker/range-picker.vue.d.ts +28 -0
  150. package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +24 -3
  151. package/es/descriptions/descriptions-item.vue_vue_type_script_setup_true_lang.js +1 -1
  152. package/es/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +10 -9
  153. package/es/descriptions/interface.d.ts +1 -0
  154. package/es/divider/divider.vue_vue_type_script_setup_true_lang.js +5 -3
  155. package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +28 -24
  156. package/es/drawer/index.js +2 -2
  157. package/es/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +1 -1
  158. package/es/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +1 -1
  159. package/es/dropdown/dropdown-option.vue_vue_type_script_setup_true_lang.js +3 -6
  160. package/es/dropdown/dropdown-panel.vue_vue_type_script_setup_true_lang.js +15 -13
  161. package/es/dropdown/dropdown-submenu.vue_vue_type_script_setup_true_lang.js +17 -13
  162. package/es/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +1 -1
  163. package/es/ellipsis/ellipsis.vue.d.ts +2 -0
  164. package/es/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +23 -8
  165. package/es/ellipsis/index.d.ts +3 -0
  166. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_setup_true_lang.js +24 -9
  167. package/es/empty/empty.vue_vue_type_script_setup_true_lang.js +2 -2
  168. package/es/file-previewer/file-previewer.vue_vue_type_script_setup_true_lang.js +34 -18
  169. package/es/file-previewer/pdfjs-worker.min.mjs +4 -4
  170. package/es/file-previewer/use-pdf-js.js +57 -38
  171. package/es/form/form-item-label.vue_vue_type_script_setup_true_lang.js +1 -1
  172. package/es/form/form-item-message.vue_vue_type_script_setup_true_lang.js +1 -1
  173. package/es/form/form-item.vue_vue_type_script_setup_true_lang.js +54 -15
  174. package/es/form/form.vue_vue_type_script_setup_true_lang.js +11 -8
  175. package/es/grid/context.d.ts +2 -2
  176. package/es/grid/grid-col.vue_vue_type_script_setup_true_lang.js +8 -7
  177. package/es/grid/grid-item.vue_vue_type_script_setup_true_lang.js +5 -4
  178. package/es/grid/grid-row.vue_vue_type_script_setup_true_lang.js +2 -1
  179. package/es/grid/grid.vue_vue_type_script_setup_true_lang.js +11 -12
  180. package/es/grid/style/col.scss +2 -2
  181. package/es/grid/style/index.css +42 -0
  182. package/es/grid/utils/index.js +5 -2
  183. package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +2 -2
  184. package/es/icon/icon-calendar/icon-calendar.vue_vue_type_script_setup_true_lang.js +2 -2
  185. package/es/icon/icon-caret-down/icon-caret-down.vue_vue_type_script_setup_true_lang.js +2 -2
  186. package/es/icon/icon-caret-left/icon-caret-left.vue_vue_type_script_setup_true_lang.js +2 -2
  187. package/es/icon/icon-caret-right/icon-caret-right.vue_vue_type_script_setup_true_lang.js +2 -2
  188. package/es/icon/icon-caret-up/icon-caret-up.vue_vue_type_script_setup_true_lang.js +2 -2
  189. package/es/icon/icon-check/icon-check.vue_vue_type_script_setup_true_lang.js +2 -2
  190. package/es/icon/icon-check-circle-fill/icon-check-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  191. package/es/icon/icon-clock-circle/icon-clock-circle.vue_vue_type_script_setup_true_lang.js +2 -2
  192. package/es/icon/icon-close/icon-close.vue_vue_type_script_setup_true_lang.js +2 -2
  193. package/es/icon/icon-close-circle-fill/icon-close-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  194. package/es/icon/icon-copy/icon-copy.vue_vue_type_script_setup_true_lang.js +2 -2
  195. package/es/icon/icon-delete/icon-delete.vue_vue_type_script_setup_true_lang.js +2 -2
  196. package/es/icon/icon-double-left/icon-double-left.vue_vue_type_script_setup_true_lang.js +2 -2
  197. package/es/icon/icon-double-right/icon-double-right.vue_vue_type_script_setup_true_lang.js +2 -2
  198. package/es/icon/icon-down/icon-down.vue_vue_type_script_setup_true_lang.js +2 -2
  199. package/es/icon/icon-drag-dot/icon-drag-dot.vue_vue_type_script_setup_true_lang.js +2 -2
  200. package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.vue_vue_type_script_setup_true_lang.js +2 -2
  201. package/es/icon/icon-edit/icon-edit.vue_vue_type_script_setup_true_lang.js +2 -2
  202. package/es/icon/icon-empty/icon-empty.vue_vue_type_script_setup_true_lang.js +2 -2
  203. package/es/icon/icon-exclamation/icon-exclamation.vue_vue_type_script_setup_true_lang.js +2 -2
  204. package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  205. package/es/icon/icon-eye/icon-eye.vue_vue_type_script_setup_true_lang.js +2 -2
  206. package/es/icon/icon-eye-invisible/icon-eye-invisible.vue_vue_type_script_setup_true_lang.js +2 -2
  207. package/es/icon/icon-face-frown-fill/icon-face-frown-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  208. package/es/icon/icon-face-meh-fill/icon-face-meh-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  209. package/es/icon/icon-face-smile-fill/icon-face-smile-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  210. package/es/icon/icon-file/icon-file.vue_vue_type_script_setup_true_lang.js +2 -2
  211. package/es/icon/icon-file-audio/icon-file-audio.vue_vue_type_script_setup_true_lang.js +2 -2
  212. package/es/icon/icon-file-image/icon-file-image.vue_vue_type_script_setup_true_lang.js +2 -2
  213. package/es/icon/icon-file-pdf/icon-file-pdf.vue_vue_type_script_setup_true_lang.js +2 -2
  214. package/es/icon/icon-file-video/icon-file-video.vue_vue_type_script_setup_true_lang.js +2 -2
  215. package/es/icon/icon-filter/icon-filter.vue_vue_type_script_setup_true_lang.js +2 -2
  216. package/es/icon/icon-fullscreen/icon-fullscreen.vue_vue_type_script_setup_true_lang.js +2 -2
  217. package/es/icon/icon-image-close/icon-image-close.vue_vue_type_script_setup_true_lang.js +2 -2
  218. package/es/icon/icon-info/icon-info.vue_vue_type_script_setup_true_lang.js +2 -2
  219. package/es/icon/icon-info-circle-fill/icon-info-circle-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  220. package/es/icon/icon-left/icon-left.vue_vue_type_script_setup_true_lang.js +2 -2
  221. package/es/icon/icon-link/icon-link.vue_vue_type_script_setup_true_lang.js +2 -2
  222. package/es/icon/icon-list/icon-list.vue_vue_type_script_setup_true_lang.js +2 -2
  223. package/es/icon/icon-loading/icon-loading.vue_vue_type_script_setup_true_lang.js +2 -2
  224. package/es/icon/icon-menu/icon-menu.vue_vue_type_script_setup_true_lang.js +2 -2
  225. package/es/icon/icon-menu-fold/icon-menu-fold.vue_vue_type_script_setup_true_lang.js +2 -2
  226. package/es/icon/icon-menu-unfold/icon-menu-unfold.vue_vue_type_script_setup_true_lang.js +2 -2
  227. package/es/icon/icon-minus/icon-minus.vue_vue_type_script_setup_true_lang.js +2 -2
  228. package/es/icon/icon-more/icon-more.vue_vue_type_script_setup_true_lang.js +2 -2
  229. package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +2 -2
  230. package/es/icon/icon-oblique-line/icon-oblique-line.vue_vue_type_script_setup_true_lang.js +2 -2
  231. package/es/icon/icon-original-size/icon-original-size.vue_vue_type_script_setup_true_lang.js +2 -2
  232. package/es/icon/icon-pause/icon-pause.vue_vue_type_script_setup_true_lang.js +2 -2
  233. package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  234. package/es/icon/icon-plus/icon-plus.vue_vue_type_script_setup_true_lang.js +2 -2
  235. package/es/icon/icon-question-circle/icon-question-circle.vue_vue_type_script_setup_true_lang.js +2 -2
  236. package/es/icon/icon-right/icon-right.vue_vue_type_script_setup_true_lang.js +2 -2
  237. package/es/icon/icon-rotate-left/icon-rotate-left.vue_vue_type_script_setup_true_lang.js +2 -2
  238. package/es/icon/icon-rotate-right/icon-rotate-right.vue_vue_type_script_setup_true_lang.js +2 -2
  239. package/es/icon/icon-search/icon-search.vue_vue_type_script_setup_true_lang.js +2 -2
  240. package/es/icon/icon-star-fill/icon-star-fill.vue_vue_type_script_setup_true_lang.js +2 -2
  241. package/es/icon/icon-to-top/icon-to-top.vue_vue_type_script_setup_true_lang.js +2 -2
  242. package/es/icon/icon-up/icon-up.vue_vue_type_script_setup_true_lang.js +2 -2
  243. package/es/icon/icon-upload/icon-upload.vue_vue_type_script_setup_true_lang.js +2 -2
  244. package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +2 -2
  245. package/es/icon/icon-zoom-in/icon-zoom-in.vue_vue_type_script_setup_true_lang.js +2 -2
  246. package/es/icon/icon-zoom-out/icon-zoom-out.vue_vue_type_script_setup_true_lang.js +2 -2
  247. package/es/icon-component/add-from-icon-font-cn.js +5 -1
  248. package/es/icon-component/icon-font.vue_vue_type_script_setup_true_lang.js +1 -1
  249. package/es/icon-component/icon.vue_vue_type_script_setup_true_lang.js +6 -3
  250. package/es/icon.js +292 -292
  251. package/es/image/hooks/use-image-drag.js +4 -2
  252. package/es/image/image-footer.vue_vue_type_script_setup_true_lang.js +1 -1
  253. package/es/image/image.vue_vue_type_script_setup_true_lang.js +14 -10
  254. package/es/image/preview-action.vue.d.ts +6 -2
  255. package/es/image/preview-action.vue_vue_type_script_setup_true_lang.js +12 -3
  256. package/es/image/preview-arrow.vue_vue_type_script_setup_true_lang.js +1 -1
  257. package/es/image/preview-group.vue_vue_type_script_setup_true_lang.js +7 -9
  258. package/es/image/preview-toolbar.vue_vue_type_script_setup_true_lang.js +1 -1
  259. package/es/image/preview.vue_vue_type_script_setup_true_lang.js +17 -22
  260. package/es/index.css +73 -8
  261. package/es/index.d.ts +6 -6
  262. package/es/input/index.d.ts +3 -3
  263. package/es/input/input-group.vue_vue_type_script_setup_true_lang.js +1 -1
  264. package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +1 -1
  265. package/es/input/input-search.vue.d.ts +1 -1
  266. package/es/input/input-search.vue_vue_type_script_setup_true_lang.js +3 -2
  267. package/es/input/input.vue_vue_type_script_setup_true_lang.js +7 -8
  268. package/es/input-mask/input-mask.vue_vue_type_script_setup_true_lang.js +14 -7
  269. package/es/input-mask/mask-engine.js +1 -1
  270. package/es/input-number/decimal.d.ts +3 -0
  271. package/es/input-number/decimal.js +49 -0
  272. package/es/input-number/input-number.vue_vue_type_script_setup_true_lang.js +60 -27
  273. package/es/input-tag/input-tag.vue_vue_type_script_setup_true_lang.js +34 -16
  274. package/es/input-tag/utils.js +1 -1
  275. package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +3 -3
  276. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +6 -3
  277. package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +1 -1
  278. package/es/json-form/utils.js +4 -2
  279. package/es/kv-list/kv-list-row.vue_vue_type_script_setup_true_lang.js +1 -1
  280. package/es/kv-list/kv-list.vue_vue_type_script_setup_true_lang.js +2 -1
  281. package/es/layout/content.vue_vue_type_script_setup_true_lang.js +1 -1
  282. package/es/layout/footer.vue_vue_type_script_setup_true_lang.js +1 -1
  283. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +1 -1
  284. package/es/layout/layout.vue_vue_type_script_setup_true_lang.js +1 -1
  285. package/es/layout/sider.vue_vue_type_script_setup_true_lang.js +6 -1
  286. package/es/link/link.vue_vue_type_script_setup_true_lang.js +1 -1
  287. package/es/list/index.d.ts +3 -3
  288. package/es/list/list-item-meta.vue_vue_type_script_setup_true_lang.js +1 -1
  289. package/es/list/list-item.vue_vue_type_script_setup_true_lang.js +1 -1
  290. package/es/list/list.vue.d.ts +1 -1
  291. package/es/list/list.vue_vue_type_script_setup_true_lang.js +2 -2
  292. package/es/locale/interface.d.ts +4 -0
  293. package/es/locale/lang/en-us.js +4 -0
  294. package/es/locale/lang/zh-cn.js +4 -0
  295. package/es/mention/mention.vue_vue_type_script_setup_true_lang.js +1 -1
  296. package/es/menu/base-menu.vue_vue_type_script_setup_true_lang.js +1 -1
  297. package/es/menu/indent.vue_vue_type_script_setup_true_lang.js +1 -1
  298. package/es/menu/item-group.vue_vue_type_script_setup_true_lang.js +1 -1
  299. package/es/menu/item.vue_vue_type_script_setup_true_lang.js +1 -1
  300. package/es/menu/menu.vue_vue_type_script_setup_true_lang.js +1 -1
  301. package/es/menu/overflow-wrap.vue_vue_type_script_setup_true_lang.js +13 -3
  302. package/es/menu/sub-menu-inline.vue_vue_type_script_setup_true_lang.js +1 -1
  303. package/es/menu/sub-menu-pop.vue_vue_type_script_setup_true_lang.js +1 -1
  304. package/es/menu/sub-menu.vue_vue_type_script_setup_true_lang.js +1 -1
  305. package/es/message/index.js +2 -1
  306. package/es/message/message-list.vue_vue_type_script_setup_true_lang.js +1 -1
  307. package/es/message/message.vue_vue_type_script_setup_true_lang.js +1 -1
  308. package/es/modal/hooks/use-draggable.js +3 -1
  309. package/es/modal/index.js +2 -2
  310. package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +2 -2
  311. package/es/model-selector/model-selector-content.vue_vue_type_script_setup_true_lang.js +1 -1
  312. package/es/model-selector/model-selector-dialog.vue_vue_type_script_setup_true_lang.js +1 -1
  313. package/es/model-selector/model-selector-empty.vue_vue_type_script_setup_true_lang.js +1 -1
  314. package/es/model-selector/model-selector-group.vue_vue_type_script_setup_true_lang.js +1 -1
  315. package/es/model-selector/model-selector-input.vue_vue_type_script_setup_true_lang.js +1 -1
  316. package/es/model-selector/model-selector-item.vue_vue_type_script_setup_true_lang.js +1 -1
  317. package/es/model-selector/model-selector-list.vue_vue_type_script_setup_true_lang.js +1 -1
  318. package/es/model-selector/model-selector-logo-group.vue_vue_type_script_setup_true_lang.js +1 -1
  319. package/es/model-selector/model-selector-logo.vue_vue_type_script_setup_true_lang.js +1 -1
  320. package/es/model-selector/model-selector-name.vue_vue_type_script_setup_true_lang.js +1 -1
  321. package/es/model-selector/model-selector-separator.vue_vue_type_script_setup_true_lang.js +1 -1
  322. package/es/model-selector/model-selector-shortcut.vue_vue_type_script_setup_true_lang.js +1 -1
  323. package/es/model-selector/model-selector-trigger.vue_vue_type_script_setup_true_lang.js +1 -1
  324. package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +1 -1
  325. package/es/notification/index.js +5 -2
  326. package/es/notification/notification-list.vue_vue_type_script_setup_true_lang.js +1 -1
  327. package/es/notification/notification.vue_vue_type_script_setup_true_lang.js +1 -1
  328. package/es/number-flow/number-flow-group.vue_vue_type_script_setup_true_lang.js +2 -2
  329. package/es/number-flow/number-flow.vue_vue_type_script_setup_true_lang.js +2 -2
  330. package/es/page-header/page-header.vue_vue_type_script_setup_true_lang.js +5 -5
  331. package/es/pagination/interface.d.ts +1 -0
  332. package/es/pagination/page-item-ellipsis.vue_vue_type_script_setup_true_lang.js +1 -1
  333. package/es/pagination/page-item-step.vue_vue_type_script_setup_true_lang.js +1 -1
  334. package/es/pagination/page-item.vue_vue_type_script_setup_true_lang.js +1 -1
  335. package/es/pagination/page-jumper.vue_vue_type_script_setup_true_lang.js +1 -1
  336. package/es/pagination/page-options.vue_vue_type_script_setup_true_lang.js +1 -1
  337. package/es/pagination/pagination.vue_vue_type_script_setup_true_lang.js +2 -2
  338. package/es/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +2 -2
  339. package/es/popover/popover.vue_vue_type_script_setup_true_lang.js +1 -1
  340. package/es/progress/circle.vue_vue_type_script_setup_true_lang.js +5 -5
  341. package/es/progress/line.vue_vue_type_script_setup_true_lang.js +3 -3
  342. package/es/progress/progress.vue_vue_type_script_setup_true_lang.js +1 -1
  343. package/es/progress/steps.vue_vue_type_script_setup_true_lang.js +3 -3
  344. package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +23 -12
  345. package/es/radio/radio-group.vue_vue_type_script_setup_true_lang.js +1 -1
  346. package/es/radio/radio.vue_vue_type_script_setup_true_lang.js +1 -1
  347. package/es/rate/rate.vue_vue_type_script_setup_true_lang.js +9 -7
  348. package/es/regex-vis/layout.js +1 -1
  349. package/es/regex-vis/parser/parser.js +1 -1
  350. package/es/regex-vis/regex-vis.vue_vue_type_script_setup_true_lang.js +1 -1
  351. package/es/resize-box/resize-box.vue_vue_type_script_setup_true_lang.js +7 -3
  352. package/es/result/403.vue_vue_type_script_setup_true_lang.js +1 -1
  353. package/es/result/404.vue_vue_type_script_setup_true_lang.js +1 -1
  354. package/es/result/500.vue_vue_type_script_setup_true_lang.js +1 -1
  355. package/es/result/index.d.ts +7 -6
  356. package/es/result/result.vue.d.ts +2 -2
  357. package/es/result/result.vue_vue_type_script_setup_true_lang.js +1 -1
  358. package/es/rich-text-editor/nodes/inline-component-node.js +1 -1
  359. package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +2 -2
  360. package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +2 -2
  361. package/es/scrollbar/scrollbar.vue_vue_type_script_setup_true_lang.js +1 -1
  362. package/es/sd-vue.js +1 -1
  363. package/es/secret/index.d.ts +4 -15
  364. package/es/secret/interface.d.ts +6 -0
  365. package/es/secret/secret.vue.d.ts +1 -5
  366. package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +5 -4
  367. package/es/select/hooks/use-options.js +1 -1
  368. package/es/select/index.d.ts +3 -3
  369. package/es/select/interface.d.ts +5 -0
  370. package/es/select/select-dropdown.vue.d.ts +3 -1
  371. package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +9 -5
  372. package/es/select/select.vue.d.ts +1 -1
  373. package/es/select/select.vue_vue_type_script_setup_true_lang.js +3 -2
  374. package/es/select/utils.js +1 -1
  375. package/es/selectable-card/index.d.ts +4 -52
  376. package/es/selectable-card/selectable-card.vue.d.ts +3 -20
  377. package/es/selectable-card/selectable-card.vue_vue_type_script_setup_true_lang.js +1 -1
  378. package/es/selectable-card/types.d.ts +17 -0
  379. package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +1 -1
  380. package/es/sender/sender-recording-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  381. package/es/sender/sender-skill-tag.vue_vue_type_script_setup_true_lang.js +1 -1
  382. package/es/sender/sender-stop-loading-icon.vue_vue_type_script_setup_true_lang.js +1 -1
  383. package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +1 -1
  384. package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +1 -1
  385. package/es/skeleton/index.d.ts +1 -0
  386. package/es/skeleton/interface.d.ts +14 -0
  387. package/es/skeleton/line.vue_vue_type_script_setup_true_lang.js +6 -8
  388. package/es/skeleton/shape.vue_vue_type_script_setup_true_lang.js +1 -1
  389. package/es/skeleton/skeleton.vue_vue_type_script_setup_true_lang.js +1 -1
  390. package/es/slider/slider-button.vue_vue_type_script_setup_true_lang.js +9 -4
  391. package/es/slider/slider-dots.vue_vue_type_script_setup_true_lang.js +1 -1
  392. package/es/slider/slider-input.vue_vue_type_script_setup_true_lang.js +1 -1
  393. package/es/slider/slider-marks.vue_vue_type_script_setup_true_lang.js +1 -1
  394. package/es/slider/slider-ticks.vue_vue_type_script_setup_true_lang.js +1 -1
  395. package/es/slider/slider.vue_vue_type_script_setup_true_lang.js +3 -3
  396. package/es/space/space.vue_vue_type_script_setup_true_lang.js +1 -1
  397. package/es/spin/dot-loading.vue_vue_type_script_setup_true_lang.js +1 -1
  398. package/es/spin/spin.vue_vue_type_script_setup_true_lang.js +4 -2
  399. package/es/split/index.d.ts +1 -0
  400. package/es/split/interface.d.ts +7 -7
  401. package/es/split/split.vue_vue_type_script_setup_true_lang.js +8 -4
  402. package/es/statistic/countdown.vue_vue_type_script_setup_true_lang.js +2 -1
  403. package/es/statistic/statistic.vue_vue_type_script_setup_true_lang.js +2 -2
  404. package/es/steps/index.d.ts +2 -0
  405. package/es/steps/step.vue_vue_type_script_setup_true_lang.js +7 -2
  406. package/es/steps/steps.vue_vue_type_script_setup_true_lang.js +1 -1
  407. package/es/switch/index.d.ts +4 -3
  408. package/es/switch/switch.vue.d.ts +1 -1
  409. package/es/switch/switch.vue_vue_type_script_setup_true_lang.js +4 -2
  410. package/es/table/index.d.ts +3 -3
  411. package/es/table/table-column.vue_vue_type_script_setup_true_lang.js +1 -1
  412. package/es/table/table-operation-td.vue_vue_type_script_setup_true_lang.js +1 -1
  413. package/es/table/table-operation-th.vue_vue_type_script_setup_true_lang.js +1 -1
  414. package/es/table/table-tbody.vue_vue_type_script_setup_true_lang.js +1 -1
  415. package/es/table/table-td.vue_vue_type_script_setup_true_lang.js +1 -1
  416. package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +14 -3
  417. package/es/table/table-thead.vue_vue_type_script_setup_true_lang.js +1 -1
  418. package/es/table/table-tr.vue_vue_type_script_setup_true_lang.js +1 -1
  419. package/es/table/table.vue.d.ts +1 -1
  420. package/es/table/table.vue_vue_type_script_setup_true_lang.js +14 -5
  421. package/es/table/utils.js +1 -1
  422. package/es/tabs/index.d.ts +2 -0
  423. package/es/tabs/style/index.css +16 -0
  424. package/es/tabs/style/index.scss +15 -0
  425. package/es/tabs/tab-pane.vue_vue_type_script_setup_true_lang.js +1 -1
  426. package/es/tabs/tabs-button.vue_vue_type_script_setup_true_lang.js +9 -3
  427. package/es/tabs/tabs-nav-ink.vue_vue_type_script_setup_true_lang.js +1 -1
  428. package/es/tabs/tabs-nav.vue_vue_type_script_setup_true_lang.js +10 -5
  429. package/es/tabs/tabs-tab.vue_vue_type_script_setup_true_lang.js +10 -5
  430. package/es/tabs/tabs.vue_vue_type_script_setup_true_lang.js +1 -1
  431. package/es/tag/index.d.ts +10 -10
  432. package/es/tag/tag.vue.d.ts +4 -4
  433. package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +2 -2
  434. package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +6 -2
  435. package/es/textarea/index.d.ts +1 -0
  436. package/es/textarea/style/index.css +2 -2
  437. package/es/textarea/style/index.scss +3 -2
  438. package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +4 -4
  439. package/es/theme-provider/index.d.ts +1 -0
  440. package/es/thinking-orb/engine/profiles.js +1 -1
  441. package/es/thinking-orb/presets.js +1 -1
  442. package/es/thinking-orb/thinking-orb.vue_vue_type_script_setup_true_lang.js +1 -1
  443. package/es/time-picker/index.d.ts +1 -0
  444. package/es/time-picker/panel.vue_vue_type_script_setup_true_lang.js +1 -1
  445. package/es/time-picker/range-panel.vue_vue_type_script_setup_true_lang.js +1 -1
  446. package/es/time-picker/time-column.vue_vue_type_script_setup_true_lang.js +1 -1
  447. package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +1 -1
  448. package/es/timeline/index.d.ts +2 -0
  449. package/es/timeline/item.vue_vue_type_script_setup_true_lang.js +1 -1
  450. package/es/timeline/timeline.vue_vue_type_script_setup_true_lang.js +1 -1
  451. package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +8 -2
  452. package/es/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +2 -2
  453. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +4 -2
  454. package/es/transfer/index.d.ts +1 -0
  455. package/es/transfer/transfer-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
  456. package/es/transfer/transfer-view.vue_vue_type_script_setup_true_lang.js +1 -1
  457. package/es/transfer/transfer.vue_vue_type_script_setup_true_lang.js +3 -5
  458. package/es/tree/base-node.vue_vue_type_script_setup_true_lang.js +1 -1
  459. package/es/tree/expand-transition.vue_vue_type_script_setup_true_lang.js +1 -1
  460. package/es/tree/node-switcher.vue_vue_type_script_setup_true_lang.js +1 -1
  461. package/es/tree/node.vue_vue_type_script_setup_true_lang.js +1 -1
  462. package/es/tree/transition-node-list.vue_vue_type_script_setup_true_lang.js +1 -1
  463. package/es/tree/tree.vue_vue_type_script_setup_true_lang.js +3 -3
  464. package/es/tree/utils/tree-data.js +1 -1
  465. package/es/tree-select/hooks/use-filter-tree-node.js +2 -1
  466. package/es/tree-select/hooks/use-selected-state.js +1 -1
  467. package/es/tree-select/panel.vue_vue_type_script_setup_true_lang.js +1 -1
  468. package/es/tree-select/tree-select.vue.d.ts +1 -1
  469. package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +3 -3
  470. package/es/trigger/interface.d.ts +4 -1
  471. package/es/trigger/trigger.vue_vue_type_script_setup_true_lang.js +11 -5
  472. package/es/typography/base.vue_vue_type_script_setup_true_lang.js +1 -1
  473. package/es/typography/edit-content.vue_vue_type_script_setup_true_lang.js +5 -2
  474. package/es/typography/operations.vue_vue_type_script_setup_true_lang.js +4 -2
  475. package/es/typography/paragraph.vue_vue_type_script_setup_true_lang.js +1 -1
  476. package/es/typography/text.vue_vue_type_script_setup_true_lang.js +1 -1
  477. package/es/typography/title.vue_vue_type_script_setup_true_lang.js +1 -1
  478. package/es/typography/typography-content.vue_vue_type_script_setup_true_lang.js +1 -1
  479. package/es/typography/typography-operations.vue_vue_type_script_setup_true_lang.js +1 -1
  480. package/es/typography/typography.vue_vue_type_script_setup_true_lang.js +1 -1
  481. package/es/typography/utils/inner-text-renderer.vue_vue_type_script_setup_true_lang.js +1 -1
  482. package/es/upload/style/index.css +9 -6
  483. package/es/upload/style/index.scss +12 -6
  484. package/es/upload/upload-button.vue_vue_type_script_setup_true_lang.js +1 -1
  485. package/es/upload/upload-list-item.vue_vue_type_script_setup_true_lang.js +1 -1
  486. package/es/upload/upload-list.vue_vue_type_script_setup_true_lang.js +1 -1
  487. package/es/upload/upload-picture-item.vue_vue_type_script_setup_true_lang.js +3 -3
  488. package/es/upload/upload-progress.vue_vue_type_script_setup_true_lang.js +42 -11
  489. package/es/upload/upload.vue_vue_type_script_setup_true_lang.js +1 -1
  490. package/es/verification-code/index.d.ts +1 -0
  491. package/es/verification-code/verification-code.vue_vue_type_script_setup_true_lang.js +3 -3
  492. package/es/watermark/hooks/use-mutation-observer.js +1 -1
  493. package/es/watermark/index.d.ts +5 -3
  494. package/es/watermark/watermark.vue_vue_type_script_setup_true_lang.js +4 -1
  495. package/json/vetur-attributes.json +4 -0
  496. package/json/vetur-tags.json +2 -1
  497. package/json/web-types.json +9 -1
  498. package/package.json +9 -9
@@ -1,8 +1,7 @@
1
1
  import { configProviderInjectionKey } from "../config-provider/context.js";
2
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
2
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
3
3
  import { getPrefixCls } from "../_utils/global-config.js";
4
- import { isPromise } from "../_utils/is.js";
5
- import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/asyncToGenerator.js";
4
+ import _asyncToGenerator from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/asyncToGenerator.js";
6
5
  import Button from "../button/index.js";
7
6
  import Spin from "../spin/index.js";
8
7
  import Link from "../link/index.js";
@@ -11,7 +10,7 @@ import Space from "../space/index.js";
11
10
  import Table from "../table/index.js";
12
11
  import Toolbar from "../toolbar/index.js";
13
12
  import basic_crud_modal_default from "./basic-crud-modal.js";
14
- import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
13
+ import { computed, createBlock, createCommentVNode, createElementBlock, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useModel, useSlots, withCtx } from "vue";
15
14
  import { isFunction, isNil, isString, omitBy } from "es-toolkit";
16
15
  //#region components/basic-crud-table/basic-crud-table.vue?vue&type=script&setup=true&lang.ts
17
16
  var _hoisted_1 = ["aria-busy"];
@@ -140,14 +139,14 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
140
139
  [`${prefixCls}-full-height`]: __props.fullHeight,
141
140
  [`${prefixCls}-loading`]: loading.value
142
141
  }]);
143
- const toolbarSlotNames = computed(() => getForwardedSlotNames("toolbar__", [
142
+ const toolbarSlotNames = () => getForwardedSlotNames("toolbar__", [
144
143
  "default",
145
144
  "action_prepend",
146
145
  "action_middle",
147
146
  "action_append"
148
- ]));
149
- const tableSlotNames = computed(() => getForwardedSlotNames("table__", ["action_prepend", "action_append"]));
150
- const modalSlotNames = computed(() => getForwardedSlotNames("modal__"));
147
+ ]);
148
+ const tableSlotNames = () => getForwardedSlotNames("table__", ["action_prepend", "action_append"]);
149
+ const modalSlotNames = () => getForwardedSlotNames("modal__");
151
150
  const resolvedColumns = computed(() => __props.showActionColumn ? [...__props.columns, {
152
151
  title: "操作",
153
152
  dataIndex: "__basic_crud_action__",
@@ -190,18 +189,26 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
190
189
  function isObjectResult(value) {
191
190
  return !!value && typeof value === "object" && Array.isArray(value.data);
192
191
  }
192
+ let fetchRequestId = 0;
193
+ onBeforeUnmount(() => {
194
+ fetchRequestId++;
195
+ deleteContentRequestId++;
196
+ });
193
197
  function handleFetchData() {
194
198
  return _handleFetchData.apply(this, arguments);
195
199
  }
196
200
  function _handleFetchData() {
197
201
  _handleFetchData = _asyncToGenerator(function* (fetchParams = params.value) {
198
202
  if (isNil(__props.fetchTableApi)) return;
203
+ const requestId = ++fetchRequestId;
199
204
  loading.value = true;
200
205
  try {
201
206
  const requestParams = __props.fetchExcludeEmptyValues ? omitBy(fetchParams, (value) => value === "" || value === null || value === void 0) : fetchParams;
202
207
  const response = yield __props.fetchTableApi(requestParams);
203
- fetchData.value = response;
208
+ if (requestId !== fetchRequestId) return;
204
209
  const result = isFunction(__props.tableDataTransformer) ? yield __props.tableDataTransformer(response) : response;
210
+ if (requestId !== fetchRequestId) return;
211
+ fetchData.value = response;
205
212
  if (Array.isArray(result)) {
206
213
  tableData.value = result;
207
214
  total.value = result.length;
@@ -212,9 +219,9 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
212
219
  } else return;
213
220
  emit("tableFetched", tableData.value, result);
214
221
  } catch (error) {
215
- emit("error", error);
222
+ if (requestId === fetchRequestId) emit("error", error);
216
223
  } finally {
217
- loading.value = false;
224
+ if (requestId === fetchRequestId) loading.value = false;
218
225
  }
219
226
  });
220
227
  return _handleFetchData.apply(this, arguments);
@@ -270,36 +277,51 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
270
277
  function _handleEdit() {
271
278
  _handleEdit = _asyncToGenerator(function* (row, context) {
272
279
  var _modalRef$value2;
273
- yield (_modalRef$value2 = modalRef.value) === null || _modalRef$value2 === void 0 ? void 0 : _modalRef$value2.open(row);
274
- emit("edit", row, context);
280
+ if (yield (_modalRef$value2 = modalRef.value) === null || _modalRef$value2 === void 0 ? void 0 : _modalRef$value2.open(row)) emit("edit", row, context);
275
281
  });
276
282
  return _handleEdit.apply(this, arguments);
277
283
  }
278
284
  const deleteConfirmContent = ref("确定要删除此条记录吗?");
279
285
  const pendingDeleteRow = shallowRef();
286
+ let deleteContentRequestId = 0;
280
287
  function resolveDeleteContent(row) {
281
288
  if (isString(__props.deleteContent)) return __props.deleteContent;
282
289
  if (isFunction(__props.deleteContent)) return __props.deleteContent(row);
283
290
  const name = __props.deleteNameKey ? row[__props.deleteNameKey] : void 0;
284
291
  return name ? `确定删除【${String(name)}】吗?` : "确定要删除此条记录吗?";
285
292
  }
286
- function handleDeletePopupChange(visible, row) {
287
- if (!visible) return;
288
- pendingDeleteRow.value = row;
289
- const resolved = resolveDeleteContent(row);
290
- if (isPromise(resolved)) resolved.then((content) => {
291
- if (pendingDeleteRow.value === row) deleteConfirmContent.value = content;
293
+ function handleDeletePopupChange(_x3, _x4) {
294
+ return _handleDeletePopupChange.apply(this, arguments);
295
+ }
296
+ function _handleDeletePopupChange() {
297
+ _handleDeletePopupChange = _asyncToGenerator(function* (visible, row) {
298
+ if (!visible) {
299
+ if (pendingDeleteRow.value === row) {
300
+ pendingDeleteRow.value = void 0;
301
+ deleteContentRequestId++;
302
+ }
303
+ return;
304
+ }
305
+ pendingDeleteRow.value = row;
306
+ const requestId = ++deleteContentRequestId;
307
+ deleteConfirmContent.value = "确定要删除此条记录吗?";
308
+ try {
309
+ const content = yield resolveDeleteContent(row);
310
+ if (requestId === deleteContentRequestId) deleteConfirmContent.value = content;
311
+ } catch (error) {
312
+ if (requestId === deleteContentRequestId) emit("error", error);
313
+ }
292
314
  });
293
- else deleteConfirmContent.value = resolved;
315
+ return _handleDeletePopupChange.apply(this, arguments);
294
316
  }
295
- function executeDelete(_x3, _x4) {
317
+ function executeDelete(_x5, _x6) {
296
318
  return _executeDelete.apply(this, arguments);
297
319
  }
298
320
  function _executeDelete() {
299
321
  _executeDelete = _asyncToGenerator(function* (row, context) {
300
- if (__props.beforeDelete && (yield __props.beforeDelete(row)) === false) return false;
301
- emit("delete", row, context);
302
322
  try {
323
+ if (__props.beforeDelete && (yield __props.beforeDelete(row)) === false) return false;
324
+ emit("delete", row, context);
303
325
  if (__props.deleteApi) yield __props.deleteApi(row);
304
326
  yield handleFetchData();
305
327
  return true;
@@ -310,12 +332,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
310
332
  });
311
333
  return _executeDelete.apply(this, arguments);
312
334
  }
313
- function handleDeleteConfirm() {
314
- const row = pendingDeleteRow.value;
315
- if (!row) return Promise.resolve(false);
316
- return executeDelete(row);
317
- }
318
- function handleModalSuccess(_x5, _x6) {
335
+ function handleModalSuccess(_x7, _x8) {
319
336
  return _handleModalSuccess.apply(this, arguments);
320
337
  }
321
338
  function _handleModalSuccess() {
@@ -325,7 +342,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
325
342
  });
326
343
  return _handleModalSuccess.apply(this, arguments);
327
344
  }
328
- function handlePageChange(_x7) {
345
+ function handlePageChange(_x9) {
329
346
  return _handlePageChange.apply(this, arguments);
330
347
  }
331
348
  function _handlePageChange() {
@@ -335,7 +352,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
335
352
  });
336
353
  return _handlePageChange.apply(this, arguments);
337
354
  }
338
- function handlePageSizeChange(_x8) {
355
+ function handlePageSizeChange(_x10) {
339
356
  return _handlePageSizeChange.apply(this, arguments);
340
357
  }
341
358
  function _handlePageSizeChange() {
@@ -346,7 +363,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
346
363
  });
347
364
  return _handlePageSizeChange.apply(this, arguments);
348
365
  }
349
- function handleTableChange(_x9, _x10) {
366
+ function handleTableChange(_x11, _x12) {
350
367
  return _handleTableChange.apply(this, arguments);
351
368
  }
352
369
  function _handleTableChange() {
@@ -436,7 +453,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
436
453
  fn: withCtx(() => [renderSlot(_ctx.$slots, "toolbar__action_prepend")]),
437
454
  key: "1"
438
455
  } : void 0,
439
- renderList(toolbarSlotNames.value, (name) => {
456
+ renderList(toolbarSlotNames(), (name) => {
440
457
  return {
441
458
  name,
442
459
  fn: withCtx((data) => [renderSlot(_ctx.$slots, `toolbar__${name}`, normalizeProps(guardReactiveProps(data)))])
@@ -476,7 +493,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
476
493
  key: 1,
477
494
  content: deleteConfirmContent.value,
478
495
  type: "warning",
479
- "on-before-ok": handleDeleteConfirm,
496
+ "on-before-ok": () => executeDelete(data.record),
480
497
  onPopupVisibleChange: (visible) => handleDeletePopupChange(visible, data.record)
481
498
  }, {
482
499
  default: withCtx(() => [createVNode(unref(Link), mergeProps({
@@ -487,13 +504,17 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
487
504
  _: 1
488
505
  }, 16)]),
489
506
  _: 2
490
- }, 1032, ["content", "onPopupVisibleChange"])) : createCommentVNode("", true),
507
+ }, 1032, [
508
+ "content",
509
+ "on-before-ok",
510
+ "onPopupVisibleChange"
511
+ ])) : createCommentVNode("", true),
491
512
  renderSlot(_ctx.$slots, "table__action_append", normalizeProps(guardReactiveProps(data)))
492
513
  ]),
493
514
  _: 2
494
515
  }, 1024)]),
495
516
  _: 2
496
- }, [renderList(tableSlotNames.value, (name) => {
517
+ }, [renderList(tableSlotNames(), (name) => {
497
518
  return {
498
519
  name,
499
520
  fn: withCtx((data) => [renderSlot(_ctx.$slots, `table__${name}`, normalizeProps(guardReactiveProps(data)))])
@@ -523,7 +544,7 @@ var basic_crud_table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
523
544
  onSuccess: handleModalSuccess,
524
545
  onClose: _cache[3] || (_cache[3] = ($event) => emit("modalClose")),
525
546
  onError: _cache[4] || (_cache[4] = ($event) => emit("error", $event))
526
- }, createSlots({ _: 2 }, [renderList(modalSlotNames.value, (name) => {
547
+ }, createSlots({ _: 2 }, [renderList(modalSlotNames(), (name) => {
527
548
  return {
528
549
  name,
529
550
  fn: withCtx((data) => [renderSlot(_ctx.$slots, `modal__${name}`, normalizeProps(guardReactiveProps(data)))])
@@ -84,7 +84,7 @@ declare const BasicCrudTable: {
84
84
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
85
85
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
86
86
  }>, {
87
- open: (row?: import("../index.ts").TableData) => Promise<void>;
87
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
88
88
  type: import("vue").ComputedRef<"create" | "edit">;
89
89
  formRef: import("vue").ShallowRef<({
90
90
  $: import("vue").ComponentInternalInstance;
@@ -347,7 +347,7 @@ declare const BasicCrudTable: {
347
347
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
348
348
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
349
349
  }>, "type" | "open" | "formRef"> & {
350
- open: (row?: import("../index.ts").TableData) => Promise<void>;
350
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
351
351
  type: "create" | "edit";
352
352
  formRef: ({
353
353
  $: import("vue").ComponentInternalInstance;
@@ -511,7 +511,7 @@ declare const BasicCrudTable: {
511
511
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
512
512
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
513
513
  }>, {
514
- open: (row?: import("../index.ts").TableData) => Promise<void>;
514
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
515
515
  type: import("vue").ComputedRef<"create" | "edit">;
516
516
  formRef: import("vue").ShallowRef<({
517
517
  $: import("vue").ComponentInternalInstance;
@@ -774,7 +774,7 @@ declare const BasicCrudTable: {
774
774
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
775
775
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
776
776
  }>, "type" | "open" | "formRef"> & {
777
- open: (row?: import("../index.ts").TableData) => Promise<void>;
777
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
778
778
  type: "create" | "edit";
779
779
  formRef: ({
780
780
  $: import("vue").ComponentInternalInstance;
@@ -994,7 +994,7 @@ declare const BasicCrudTable: {
994
994
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
995
995
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
996
996
  }>, {
997
- open: (row?: import("../index.ts").TableData) => Promise<void>;
997
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
998
998
  type: import("vue").ComputedRef<"create" | "edit">;
999
999
  formRef: import("vue").ShallowRef<({
1000
1000
  $: import("vue").ComponentInternalInstance;
@@ -1257,7 +1257,7 @@ declare const BasicCrudTable: {
1257
1257
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
1258
1258
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
1259
1259
  }>, "type" | "open" | "formRef"> & {
1260
- open: (row?: import("../index.ts").TableData) => Promise<void>;
1260
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
1261
1261
  type: "create" | "edit";
1262
1262
  formRef: ({
1263
1263
  $: import("vue").ComponentInternalInstance;
@@ -1421,7 +1421,7 @@ declare const BasicCrudTable: {
1421
1421
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
1422
1422
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
1423
1423
  }>, {
1424
- open: (row?: import("../index.ts").TableData) => Promise<void>;
1424
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
1425
1425
  type: import("vue").ComputedRef<"create" | "edit">;
1426
1426
  formRef: import("vue").ShallowRef<({
1427
1427
  $: import("vue").ComponentInternalInstance;
@@ -1684,7 +1684,7 @@ declare const BasicCrudTable: {
1684
1684
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
1685
1685
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
1686
1686
  }>, "type" | "open" | "formRef"> & {
1687
- open: (row?: import("../index.ts").TableData) => Promise<void>;
1687
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
1688
1688
  type: "create" | "edit";
1689
1689
  formRef: ({
1690
1690
  $: import("vue").ComponentInternalInstance;
@@ -1886,7 +1886,7 @@ declare const BasicCrudTable: {
1886
1886
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
1887
1887
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
1888
1888
  }>, {
1889
- open: (row?: import("../index.ts").TableData) => Promise<void>;
1889
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
1890
1890
  type: import("vue").ComputedRef<"create" | "edit">;
1891
1891
  formRef: import("vue").ShallowRef<({
1892
1892
  $: import("vue").ComponentInternalInstance;
@@ -2149,7 +2149,7 @@ declare const BasicCrudTable: {
2149
2149
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2150
2150
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
2151
2151
  }>, "type" | "open" | "formRef"> & {
2152
- open: (row?: import("../index.ts").TableData) => Promise<void>;
2152
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
2153
2153
  type: "create" | "edit";
2154
2154
  formRef: ({
2155
2155
  $: import("vue").ComponentInternalInstance;
@@ -2313,7 +2313,7 @@ declare const BasicCrudTable: {
2313
2313
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2314
2314
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
2315
2315
  }>, {
2316
- open: (row?: import("../index.ts").TableData) => Promise<void>;
2316
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
2317
2317
  type: import("vue").ComputedRef<"create" | "edit">;
2318
2318
  formRef: import("vue").ShallowRef<({
2319
2319
  $: import("vue").ComponentInternalInstance;
@@ -2576,7 +2576,7 @@ declare const BasicCrudTable: {
2576
2576
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2577
2577
  "onUpdate:model"?: ((value: import("type-fest").UnknownRecord) => any) | undefined;
2578
2578
  }>, "type" | "open" | "formRef"> & {
2579
- open: (row?: import("../index.ts").TableData) => Promise<void>;
2579
+ open: (row?: import("../index.ts").TableData) => Promise<boolean>;
2580
2580
  type: "create" | "edit";
2581
2581
  formRef: ({
2582
2582
  $: import("vue").ComponentInternalInstance;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import IconClose from "../icon/icon-close/index.js";
4
4
  import { useI18n } from "../locale/index.js";
@@ -161,10 +161,10 @@ var bloom_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
161
161
  }
162
162
  function handlePopupVisibleChange(visible) {
163
163
  if (visible) {
164
- popupVisible.value = true;
165
164
  window.clearTimeout(closeTimer);
166
165
  captureTriggerStyle();
167
166
  setOpen(true);
167
+ if (isOpen.value) popupVisible.value = true;
168
168
  } else {
169
169
  var _panelRootRef$value;
170
170
  if (document.activeElement instanceof HTMLElement && ((_panelRootRef$value = panelRootRef.value) === null || _panelRootRef$value === void 0 ? void 0 : _panelRootRef$value.contains(document.activeElement))) focusTrigger();
@@ -200,6 +200,7 @@ var bloom_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
200
200
  function focusPanel(attempt = 0) {
201
201
  nextTick(() => {
202
202
  var _panelRootRef$value2, _panelRootRef$value3;
203
+ if (!isOpen.value || !popupVisible.value) return;
203
204
  const firstItem = (_panelRootRef$value2 = panelRootRef.value) === null || _panelRootRef$value2 === void 0 ? void 0 : _panelRootRef$value2.querySelector(`.${prefixCls}-item:not(:disabled)`);
204
205
  const closeButton = (_panelRootRef$value3 = panelRootRef.value) === null || _panelRootRef$value3 === void 0 ? void 0 : _panelRootRef$value3.querySelector(`.${prefixCls}-close`);
205
206
  const target = firstItem !== null && firstItem !== void 0 ? firstItem : closeButton;
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { registerPulseInstance } from "./pulseDriver.js";
4
4
  import { generateBeamCSS, getPulseDriverConfig, sizePresets, sizeThemePresets } from "./styles.js";
@@ -112,6 +112,7 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
112
112
  systemTheme.value = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
113
113
  }
114
114
  let mediaQueryCleanup = null;
115
+ const reducedMotion = ref(false);
115
116
  onMounted(() => {
116
117
  updateSystemTheme();
117
118
  const mq = window.matchMedia("(prefers-color-scheme: dark)");
@@ -119,7 +120,16 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
119
120
  systemTheme.value = e.matches ? "dark" : "light";
120
121
  };
121
122
  mq.addEventListener("change", handler);
122
- mediaQueryCleanup = () => mq.removeEventListener("change", handler);
123
+ const motionQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
124
+ const updateMotion = () => {
125
+ reducedMotion.value = motionQuery.matches;
126
+ };
127
+ updateMotion();
128
+ motionQuery.addEventListener("change", updateMotion);
129
+ mediaQueryCleanup = () => {
130
+ mq.removeEventListener("change", handler);
131
+ motionQuery.removeEventListener("change", updateMotion);
132
+ };
123
133
  });
124
134
  onUnmounted(() => {
125
135
  mediaQueryCleanup === null || mediaQueryCleanup === void 0 || mediaQueryCleanup();
@@ -279,30 +289,33 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
279
289
  return null;
280
290
  }
281
291
  onMounted(() => {
292
+ let observedChild = null;
282
293
  const detect = () => {
283
- if (props.borderRadius != null) return;
284
294
  const child = getSlotElement();
285
- if (!child) return;
295
+ if (child !== observedChild && mutationObserver && wrapperRef.value) {
296
+ mutationObserver.disconnect();
297
+ mutationObserver.observe(wrapperRef.value, { childList: true });
298
+ if (child) mutationObserver.observe(child, {
299
+ attributes: true,
300
+ attributeFilter: ["class", "style"]
301
+ });
302
+ observedChild = child;
303
+ setupPulseGlowScale();
304
+ }
305
+ if (!child) {
306
+ detectedRadius.value = null;
307
+ return;
308
+ }
286
309
  const computed = getComputedStyle(child);
287
310
  const raw = parseFloat(computed.borderTopLeftRadius);
288
- if (!isNaN(raw) && raw > 0) detectedRadius.value = raw;
311
+ if (!isNaN(raw) && raw >= 0) detectedRadius.value = raw;
289
312
  };
290
313
  nextTick(() => {
291
- detect();
292
314
  const el = wrapperRef.value;
293
315
  if (!el) return;
294
316
  mutationObserver = new MutationObserver(detect);
295
- mutationObserver.observe(el, {
296
- childList: true,
297
- subtree: false,
298
- attributes: true,
299
- attributeFilter: ["class", "style"]
300
- });
301
- const child = getSlotElement();
302
- if (child) mutationObserver.observe(child, {
303
- attributes: true,
304
- attributeFilter: ["class", "style"]
305
- });
317
+ mutationObserver.observe(el, { childList: true });
318
+ detect();
306
319
  });
307
320
  });
308
321
  let intersectionCleanup = null;
@@ -320,14 +333,23 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
320
333
  mutationObserver === null || mutationObserver === void 0 || mutationObserver.disconnect();
321
334
  });
322
335
  watch(() => props.active, (active) => {
323
- if (active && !isActive.value && !isFading.value) isActive.value = true;
324
- else if (!active && isActive.value && !isFading.value) isFading.value = true;
336
+ if (active) {
337
+ isActive.value = true;
338
+ isFading.value = false;
339
+ } else if (!active && isActive.value && !isFading.value) {
340
+ if (shouldReduceMotion()) {
341
+ isActive.value = false;
342
+ emit("deactivate");
343
+ } else isFading.value = true;
344
+ }
325
345
  });
326
346
  onUnmounted(() => {
327
347
  intersectionCleanup === null || intersectionCleanup === void 0 || intersectionCleanup();
328
348
  });
329
349
  let resizeObserverCleanup = null;
350
+ let resizeGeneration = 0;
330
351
  function setupPulseGlowScale() {
352
+ const generation = ++resizeGeneration;
331
353
  resizeObserverCleanup === null || resizeObserverCleanup === void 0 || resizeObserverCleanup();
332
354
  resizeObserverCleanup = null;
333
355
  if (props.size !== "pulse-outside") {
@@ -345,7 +367,13 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
345
367
  const clamp = (value) => Math.max(MIN_SCALE, Math.min(MAX_SCALE, value));
346
368
  const measure = () => {
347
369
  const child = getSlotElement();
348
- if (!child) return;
370
+ if (!child) {
371
+ pulseGlowScale.value = {
372
+ x: 1,
373
+ y: 1
374
+ };
375
+ return;
376
+ }
349
377
  const rect = child.getBoundingClientRect();
350
378
  if (!rect.width || !rect.height) return;
351
379
  const x = +clamp(rect.width / REF_WIDTH).toFixed(3);
@@ -356,6 +384,7 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
356
384
  };
357
385
  };
358
386
  nextTick(() => {
387
+ if (generation !== resizeGeneration || !wrapperRef.value) return;
359
388
  measure();
360
389
  if (typeof ResizeObserver === "undefined") return;
361
390
  const child = getSlotElement();
@@ -367,7 +396,10 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
367
396
  }
368
397
  watch(() => props.size, () => setupPulseGlowScale());
369
398
  onMounted(() => setupPulseGlowScale());
370
- onUnmounted(() => resizeObserverCleanup === null || resizeObserverCleanup === void 0 ? void 0 : resizeObserverCleanup());
399
+ onUnmounted(() => {
400
+ resizeGeneration++;
401
+ resizeObserverCleanup === null || resizeObserverCleanup === void 0 || resizeObserverCleanup();
402
+ });
371
403
  function handleAnimationEnd(e) {
372
404
  if (e.pseudoElement) return;
373
405
  const animationName = e.animationName || "";
@@ -461,8 +493,18 @@ var border_beam_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
461
493
  driverConfig,
462
494
  isActive,
463
495
  isFading,
464
- isVisible
496
+ isVisible,
497
+ reducedMotion
465
498
  ], () => syncPulseDriver());
499
+ watch(reducedMotion, (reduce) => {
500
+ if (!reduce) return;
501
+ if (isFlowing.value) finishFlow();
502
+ if (isFading.value) {
503
+ isActive.value = false;
504
+ isFading.value = false;
505
+ emit("deactivate");
506
+ }
507
+ });
466
508
  onUnmounted(() => {
467
509
  if (unregisterPulse) {
468
510
  unregisterPulse();
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
2
2
  //#region components/border-beam/styles.ts
3
3
  /**
4
4
  * Size presets for border radius and dimensions
@@ -2578,12 +2578,25 @@ function flowOverlayCSS(options) {
2578
2578
  * @param options
2579
2579
  */
2580
2580
  function generateBeamCSS(options) {
2581
- const { size } = options;
2582
- if (size === "line") return generateLineVariantCSS(options);
2583
- if (size === "sm") return generateSmallVariantCSS(options);
2584
- if (size === "pulse-inner") return generatePulseInnerVariantCSS(options);
2585
- if (size === "pulse-outside") return generatePulseOuterVariantCSS(options);
2586
- return generateBorderVariantCSS(options);
2581
+ const render = {
2582
+ "line": generateLineVariantCSS,
2583
+ "sm": generateSmallVariantCSS,
2584
+ "md": generateBorderVariantCSS,
2585
+ "pulse-inner": generatePulseInnerVariantCSS,
2586
+ "pulse-outside": generatePulseOuterVariantCSS
2587
+ }[options.size];
2588
+ const selector = `[data-beam="${options.id}"]`;
2589
+ return `${render(options)}
2590
+ @media (prefers-reduced-motion: reduce) {
2591
+ ${selector}, ${selector}::before, ${selector}::after,
2592
+ ${selector} [data-beam-bloom] {
2593
+ animation: none !important;
2594
+ }
2595
+ ${selector}[data-active] {
2596
+ --beam-opacity-${options.id}: 1;
2597
+ }
2598
+ }
2599
+ `;
2587
2600
  }
2588
2601
  /**
2589
2602
  *
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { useI18n } from "../locale/index.js";
4
4
  import IconMore from "../icon/icon-more/index.js";
@@ -7,7 +7,7 @@ import dropdown_option_default from "../dropdown/dropdown-option.js";
7
7
  import Dropdown from "../dropdown/index.js";
8
8
  import IconObliqueLine from "../icon/icon-oblique-line/index.js";
9
9
  import { breadcrumbInjectKey } from "./context.js";
10
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
10
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, normalizeClass, onBeforeUpdate, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, watchEffect, withCtx } from "vue";
11
11
  import { createReusableTemplate } from "@vueuse/core";
12
12
  //#region components/breadcrumb/breadcrumb-item.vue?vue&type=script&setup=true&lang.ts
13
13
  var _hoisted_1 = ["aria-label"];
@@ -30,7 +30,13 @@ var breadcrumb_item_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
30
30
  const prefixCls = getPrefixCls("breadcrumb-item");
31
31
  const breadcrumbCtx = inject(breadcrumbInjectKey, void 0);
32
32
  const dropdownVisible = ref(false);
33
- const hasDroplist = computed(() => Boolean(props.droplist || slots.droplist));
33
+ const hasDroplist = ref(false);
34
+ const syncDroplist = () => {
35
+ hasDroplist.value = Boolean(props.droplist || slots.droplist);
36
+ if (!hasDroplist.value) dropdownVisible.value = false;
37
+ };
38
+ watchEffect(syncDroplist);
39
+ onBeforeUpdate(syncDroplist);
34
40
  const show = computed(() => {
35
41
  if (breadcrumbCtx && breadcrumbCtx.needHide) {
36
42
  if (props.index > 1 && props.index <= breadcrumbCtx.total - breadcrumbCtx.maxCount) return false;
@@ -1,10 +1,10 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { getAllElements } from "../_utils/vue-utils.js";
4
4
  import { useI18n } from "../locale/index.js";
5
5
  import { breadcrumbInjectKey } from "./context.js";
6
6
  import breadcrumb_item_default from "./breadcrumb-item.js";
7
- import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, normalizeClass, openBlock, provide, reactive, ref, renderList, renderSlot, toDisplayString, toRef, unref, useSlots, watchEffect, withCtx } from "vue";
7
+ import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, normalizeClass, onBeforeUpdate, openBlock, provide, reactive, ref, renderList, renderSlot, toDisplayString, toRef, unref, useSlots, watchEffect, withCtx } from "vue";
8
8
  //#region components/breadcrumb/breadcrumb.vue?vue&type=script&setup=true&lang.ts
9
9
  var _hoisted_1 = ["aria-label"];
10
10
  var _hoisted_2 = { key: 0 };
@@ -33,12 +33,14 @@ var breadcrumb_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
33
33
  needHide,
34
34
  slots
35
35
  }));
36
- watchEffect(() => {
36
+ const syncRouteTotal = () => {
37
37
  if (!slots.default) {
38
38
  var _props$routes$length, _props$routes;
39
39
  total.value = (_props$routes$length = (_props$routes = props.routes) === null || _props$routes === void 0 ? void 0 : _props$routes.length) !== null && _props$routes$length !== void 0 ? _props$routes$length : 0;
40
40
  }
41
- });
41
+ };
42
+ watchEffect(syncRouteTotal);
43
+ onBeforeUpdate(syncRouteTotal);
42
44
  const routeEntries = computed(() => {
43
45
  var _props$routes2;
44
46
  if (!((_props$routes2 = props.routes) === null || _props$routes2 === void 0 ? void 0 : _props$routes2.length)) return [];
@@ -1,4 +1,4 @@
1
- import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.146.0/helpers/esm/objectSpread2.js";
1
+ import _objectSpread2 from "../_virtual/_@oxc-project_runtime@0.147.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { buttonGroupInjectionKey } from "./context.js";
4
4
  import { createElementBlock, defineComponent, normalizeClass, openBlock, provide, reactive, renderSlot, toRefs, unref } from "vue";