@sdata/web-vue 1.19.0 → 2.1.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 (728) hide show
  1. package/README.md +3 -7
  2. package/dist/sd.css +4083 -2512
  3. package/dist/sd.min.css +1 -1
  4. package/es/_components/feedback-icon.js +1 -1
  5. package/es/_components/icon-hover.js +9 -6
  6. package/es/_components/icon-hover.vue.d.ts +5 -3
  7. package/es/_components/icon-hover.vue_vue_type_script_lang.js +1 -0
  8. package/es/_components/input-label/input-label.d.ts +1 -1
  9. package/es/_components/input-label/style/index.css +27 -27
  10. package/es/_components/picker/input-range.js +1 -1
  11. package/es/_components/picker/input-range.vue.d.ts +6 -4
  12. package/es/_components/picker/input.js +1 -1
  13. package/es/_components/picker/input.vue.d.ts +6 -4
  14. package/es/_components/resize-trigger.js +1 -1
  15. package/es/_components/select-view/select-view.d.ts +3 -3
  16. package/es/_components/select-view/style/index.css +199 -199
  17. package/es/_components/transition/expand-transition.js +1 -1
  18. package/es/_components/virtual-list/virtual-list.js +1 -1
  19. package/es/_components/virtual-list/virtual-list.vue.d.ts +8 -5
  20. package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +9 -16
  21. package/es/_hooks/use-form-item.d.ts +1 -1
  22. package/es/_hooks/use-input.d.ts +1 -1
  23. package/es/_hooks/use-pagination.d.ts +7 -4
  24. package/es/_hooks/use-popup-overflow-hidden.js +2 -1
  25. package/es/_hooks/use-scrollbar.d.ts +2 -3
  26. package/es/_hooks/use-scrollbar.js +4 -8
  27. package/es/_hooks/use-size.d.ts +1 -1
  28. package/es/_utils/color.d.ts +9 -0
  29. package/es/_utils/color.js +38 -2
  30. package/es/_utils/date.d.ts +1 -2
  31. package/es/_utils/date.js +74 -25
  32. package/es/_utils/debounce.d.ts +1 -1
  33. package/es/_utils/get-value-by-path.d.ts +2 -2
  34. package/es/_utils/global-config.d.ts +4 -0
  35. package/es/_utils/global-config.js +10 -2
  36. package/es/_utils/is-equal.js +1 -1
  37. package/es/_utils/is.d.ts +3 -3
  38. package/es/_utils/is.js +1 -1
  39. package/es/_utils/omit.d.ts +1 -1
  40. package/es/_utils/omit.js +1 -1
  41. package/es/_utils/pick.d.ts +1 -1
  42. package/es/_utils/pick.js +1 -2
  43. package/es/_utils/responsive-observe.js +1 -1
  44. package/es/_utils/throttle-by-raf.d.ts +2 -2
  45. package/es/_utils/types.d.ts +1 -1
  46. package/es/_utils/virtual-dropdown.js +1 -1
  47. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/asyncToGenerator.js +1 -1
  48. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/defineProperty.js +1 -1
  49. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/extends.js +1 -1
  50. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectDestructuringEmpty.js +1 -1
  51. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectSpread2.js +1 -1
  52. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectWithoutProperties.js +1 -1
  53. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/objectWithoutPropertiesLoose.js +1 -1
  54. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPrimitive.js +1 -1
  55. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/toPropertyKey.js +1 -1
  56. package/es/_virtual/{_@oxc-project_runtime@0.130.0/helpers → _@oxc-project_runtime@0.133.0/helpers/esm}/typeof.js +1 -1
  57. package/es/affix/affix.js +1 -1
  58. package/es/affix/affix.vue.d.ts +1 -1
  59. package/es/affix/affix.vue_vue_type_script_lang.js +1 -1
  60. package/es/affix/index.d.ts +3 -3
  61. package/es/alert/alert.js +1 -1
  62. package/es/alert/alert.vue.d.ts +5 -3
  63. package/es/alert/index.d.ts +10 -6
  64. package/es/alert/style/index.css +28 -28
  65. package/es/anchor/anchor-link.js +1 -1
  66. package/es/anchor/anchor.js +1 -1
  67. package/es/anchor/style/index.css +9 -9
  68. package/es/auto-complete/auto-complete.d.ts +3 -3
  69. package/es/auto-complete/auto-complete.js +25 -12
  70. package/es/auto-complete/index.d.ts +9 -9
  71. package/es/auto-complete/style/index.css +3 -3
  72. package/es/avatar/avatar.js +1 -1
  73. package/es/avatar/avatar.vue_vue_type_script_lang.js +1 -1
  74. package/es/avatar/style/index.css +15 -15
  75. package/es/back-top/back-top.js +1 -1
  76. package/es/back-top/style/index.css +4 -4
  77. package/es/badge/badge.d.ts +1 -1
  78. package/es/badge/badge.js +1 -1
  79. package/es/badge/index.d.ts +3 -3
  80. package/es/badge/style/index.css +25 -25
  81. package/es/breadcrumb/style/index.css +12 -12
  82. package/es/button/button-group.js +1 -1
  83. package/es/button/button.js +1 -1
  84. package/es/button/button.vue.d.ts +2 -2
  85. package/es/button/index.d.ts +6 -6
  86. package/es/button/style/index.css +37 -37
  87. package/es/calendar/components/body.js +5 -0
  88. package/es/calendar/components/body.vue.d.ts +100 -0
  89. package/es/calendar/components/body.vue_vue_type_script_setup_true_lang.js +158 -0
  90. package/es/calendar/components/cell.js +5 -0
  91. package/es/calendar/components/cell.vue.d.ts +220 -0
  92. package/es/calendar/components/cell.vue_vue_type_script_setup_true_lang.js +813 -0
  93. package/es/calendar/components/event.js +5 -0
  94. package/es/calendar/components/event.vue.d.ts +73 -0
  95. package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +291 -0
  96. package/es/calendar/components/header.js +5 -0
  97. package/es/calendar/components/header.vue.d.ts +34 -0
  98. package/es/calendar/components/header.vue_vue_type_script_setup_true_lang.js +84 -0
  99. package/es/calendar/components/headings-bar.js +5 -0
  100. package/es/calendar/components/headings-bar.vue.d.ts +40 -0
  101. package/es/calendar/components/headings-bar.vue_vue_type_script_setup_true_lang.js +201 -0
  102. package/es/calendar/components/index.js +5 -0
  103. package/es/calendar/components/index.vue.d.ts +616 -0
  104. package/es/calendar/components/index.vue_vue_type_script_setup_true_lang.js +314 -0
  105. package/es/calendar/components/time-column.js +5 -0
  106. package/es/calendar/components/time-column.vue.d.ts +27 -0
  107. package/es/calendar/components/time-column.vue_vue_type_script_setup_true_lang.js +66 -0
  108. package/es/calendar/context.d.ts +17 -0
  109. package/es/calendar/context.js +5 -0
  110. package/es/calendar/core/config.d.ts +126 -0
  111. package/es/calendar/core/config.js +522 -0
  112. package/es/calendar/core/events.d.ts +1 -0
  113. package/es/calendar/core/events.js +921 -0
  114. package/es/calendar/core/i18n.d.ts +1 -0
  115. package/es/calendar/core/i18n.js +72 -0
  116. package/es/calendar/core/index.d.ts +112 -0
  117. package/es/calendar/core/index.js +66 -0
  118. package/es/calendar/core/props-definitions.d.ts +263 -0
  119. package/es/calendar/core/props-definitions.js +70 -0
  120. package/es/calendar/core/view.d.ts +60 -0
  121. package/es/calendar/core/view.js +761 -0
  122. package/es/calendar/default-theme.scss +1012 -0
  123. package/es/calendar/hooks/use-calendar-theme.d.ts +4 -0
  124. package/es/calendar/hooks/use-calendar-theme.js +32 -0
  125. package/es/calendar/index.d.ts +836 -98
  126. package/es/calendar/index.js +3 -3
  127. package/es/calendar/index.scss +331 -0
  128. package/es/calendar/modules/drag-and-drop.d.ts +8 -0
  129. package/es/calendar/modules/drag-and-drop.js +442 -0
  130. package/es/calendar/style/body.scss +51 -0
  131. package/es/calendar/style/cell.scss +153 -0
  132. package/es/calendar/style/css.js +0 -1
  133. package/es/calendar/style/event.scss +69 -0
  134. package/es/calendar/style/header.scss +104 -0
  135. package/es/calendar/style/headings-bar.scss +94 -0
  136. package/es/calendar/style/index.css +1514 -264
  137. package/es/calendar/style/index.d.ts +1 -3
  138. package/es/calendar/style/index.js +0 -1
  139. package/es/calendar/style/index.scss +9 -496
  140. package/es/calendar/style/time-column.scss +109 -0
  141. package/es/calendar/style/token.scss +64 -60
  142. package/es/calendar/utils/conversions.d.ts +3 -0
  143. package/es/calendar/utils/conversions.js +31 -0
  144. package/es/calendar/utils/date.d.ts +26 -0
  145. package/es/calendar/utils/date.js +253 -0
  146. package/es/calendar/utils/special-hours-allow-events.d.ts +28 -0
  147. package/es/calendar/utils/special-hours-allow-events.js +230 -0
  148. package/es/card/card-grid.js +1 -1
  149. package/es/card/style/index.css +16 -16
  150. package/es/carousel/carousel-arrow.js +1 -1
  151. package/es/carousel/carousel-indicator.js +1 -1
  152. package/es/carousel/carousel-indicator.vue.d.ts +1 -1
  153. package/es/carousel/carousel-item.js +1 -1
  154. package/es/carousel/carousel.js +1 -1
  155. package/es/carousel/style/index.css +11 -11
  156. package/es/cascader/base-cascader-panel.js +4 -5
  157. package/es/cascader/cascader-option.d.ts +1 -1
  158. package/es/cascader/cascader-option.js +7 -9
  159. package/es/cascader/cascader-panel.vue.d.ts +1 -1
  160. package/es/cascader/cascader-panel.vue_vue_type_script_setup_true_lang.js +2 -2
  161. package/es/cascader/cascader.vue.d.ts +5 -5
  162. package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +5 -5
  163. package/es/cascader/style/index.css +36 -36
  164. package/es/checkbox/checkbox.d.ts +5 -3
  165. package/es/checkbox/index.d.ts +10 -6
  166. package/es/checkbox/style/index.css +18 -18
  167. package/es/collapse/collapse-item.d.ts +5 -3
  168. package/es/collapse/collapse.js +1 -1
  169. package/es/collapse/index.d.ts +5 -3
  170. package/es/collapse/style/index.css +15 -15
  171. package/es/color-picker/color-picker.d.ts +1 -1
  172. package/es/color-picker/color-picker.js +1 -1
  173. package/es/color-picker/index.d.ts +3 -3
  174. package/es/color-picker/palette.js +1 -1
  175. package/es/color-picker/panel.d.ts +1 -1
  176. package/es/color-picker/panel.js +2 -2
  177. package/es/color-picker/style/index.css +13 -13
  178. package/es/color-picker/utils.js +1 -1
  179. package/es/comment/comment.js +2 -2
  180. package/es/comment/style/index.css +5 -5
  181. package/es/components.d.ts +2 -2
  182. package/es/config-provider/config-provider.js +1 -1
  183. package/es/config-provider/config-provider.vue.d.ts +1 -1
  184. package/es/config-provider/context.d.ts +3 -0
  185. package/es/config-provider/index.d.ts +3 -3
  186. package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +2 -2
  187. package/es/config-provider/theme.js +1 -1
  188. package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +3 -3
  189. package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +3 -3
  190. package/es/cropper/style/index.css +3 -3
  191. package/es/date-picker/context.d.ts +1 -1
  192. package/es/date-picker/hooks/use-inject-datepicker-transform.d.ts +1 -1
  193. package/es/date-picker/hooks/use-provide-datepicker-transform.d.ts +1 -1
  194. package/es/date-picker/hooks/use-range-header-value.d.ts +3 -3
  195. package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
  196. package/es/date-picker/index.d.ts +63 -61
  197. package/es/date-picker/interface.d.ts +1 -1
  198. package/es/date-picker/panels/body.js +1 -1
  199. package/es/date-picker/panels/date/index.js +2 -2
  200. package/es/date-picker/panels/date/index.vue.d.ts +8 -8
  201. package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
  202. package/es/date-picker/panels/footer.js +1 -1
  203. package/es/date-picker/panels/footer.vue.d.ts +10 -10
  204. package/es/date-picker/panels/header.js +1 -1
  205. package/es/date-picker/panels/month/index.js +2 -2
  206. package/es/date-picker/panels/month/index.vue.d.ts +1 -1
  207. package/es/date-picker/panels/quarter/index.js +2 -2
  208. package/es/date-picker/panels/shortcuts.js +1 -1
  209. package/es/date-picker/panels/shortcuts.vue.d.ts +7 -7
  210. package/es/date-picker/panels/week/index.js +1 -1
  211. package/es/date-picker/panels/week/index.vue.d.ts +8 -8
  212. package/es/date-picker/panels/week-list.js +1 -1
  213. package/es/date-picker/panels/year/index.js +2 -2
  214. package/es/date-picker/picker-panel.js +1 -1
  215. package/es/date-picker/picker-panel.vue.d.ts +35 -35
  216. package/es/date-picker/picker.js +2 -2
  217. package/es/date-picker/picker.vue.d.ts +57 -55
  218. package/es/date-picker/picker.vue_vue_type_script_lang.js +1 -1
  219. package/es/date-picker/range-picker-panel.js +1 -1
  220. package/es/date-picker/range-picker-panel.vue.d.ts +38 -38
  221. package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
  222. package/es/date-picker/range-picker.js +2 -2
  223. package/es/date-picker/range-picker.vue.d.ts +63 -61
  224. package/es/date-picker/range-picker.vue_vue_type_script_lang.js +1 -1
  225. package/es/date-picker/style/index.css +72 -72
  226. package/es/descriptions/descriptions-item.js +1 -1
  227. package/es/descriptions/descriptions.d.ts +2 -2
  228. package/es/descriptions/descriptions.js +1 -1
  229. package/es/descriptions/index.d.ts +6 -6
  230. package/es/descriptions/style/index.css +10 -10
  231. package/es/divider/divider.d.ts +1 -1
  232. package/es/divider/index.d.ts +3 -3
  233. package/es/divider/style/index.css +4 -4
  234. package/es/drawer/drawer.js +9 -2
  235. package/es/drawer/drawer.vue.d.ts +2910 -13
  236. package/es/drawer/drawer.vue_vue_type_script_lang.js +26 -7
  237. package/es/drawer/index.d.ts +6557 -767
  238. package/es/drawer/index.js +2 -2
  239. package/es/drawer/style/index.css +12 -7
  240. package/es/drawer/style/index.scss +6 -0
  241. package/es/dropdown/dropdown-button.js +1 -1
  242. package/es/dropdown/dropdown-button.vue.d.ts +26 -23
  243. package/es/dropdown/dropdown-group.js +1 -1
  244. package/es/dropdown/dropdown-option.js +1 -1
  245. package/es/dropdown/dropdown-option.vue.d.ts +1 -1
  246. package/es/dropdown/dropdown-panel.js +1 -1
  247. package/es/dropdown/dropdown-panel.vue.d.ts +6 -3
  248. package/es/dropdown/dropdown-submenu.js +1 -1
  249. package/es/dropdown/dropdown-submenu.vue.d.ts +18 -15
  250. package/es/dropdown/dropdown.js +1 -1
  251. package/es/dropdown/dropdown.vue.d.ts +18 -15
  252. package/es/dropdown/index.d.ts +85 -73
  253. package/es/dropdown/interface.d.ts +2 -2
  254. package/es/dropdown/style/index.css +1 -1
  255. package/es/ellipsis/ellipsis.js +1 -1
  256. package/es/ellipsis/ellipsis.vue.d.ts +24 -24
  257. package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +2 -2
  258. package/es/ellipsis/index.d.ts +96 -96
  259. package/es/ellipsis/performant-ellipsis.js +1 -1
  260. package/es/ellipsis/performant-ellipsis.vue.d.ts +24 -24
  261. package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +1 -1
  262. package/es/empty/style/index.css +2 -2
  263. package/es/form/context.d.ts +7 -6
  264. package/es/form/form-item-label.js +1 -1
  265. package/es/form/form-item-label.vue.d.ts +24 -24
  266. package/es/form/form-item-message.js +1 -1
  267. package/es/form/form-item.js +1 -1
  268. package/es/form/form-item.vue.d.ts +35 -39
  269. package/es/form/form-item.vue_vue_type_script_lang.js +3 -3
  270. package/es/form/form.js +1 -1
  271. package/es/form/form.vue.d.ts +1 -1
  272. package/es/form/index.d.ts +41 -45
  273. package/es/form/interface.d.ts +2 -2
  274. package/es/form/style/index.css +6 -6
  275. package/es/grid/grid-col.js +1 -1
  276. package/es/grid/grid-col.vue.d.ts +3 -7
  277. package/es/grid/grid-col.vue_vue_type_script_lang.js +1 -1
  278. package/es/grid/grid-item.js +1 -1
  279. package/es/grid/grid-item.vue_vue_type_script_lang.js +1 -1
  280. package/es/grid/grid-row.js +1 -1
  281. package/es/grid/grid-row.vue.d.ts +4 -4
  282. package/es/grid/grid.js +1 -1
  283. package/es/grid/hook/use-responsive-value.d.ts +7 -19
  284. package/es/grid/index.d.ts +6 -10
  285. package/es/grid/interface.d.ts +11 -18
  286. package/es/icon/icon-calendar/icon-calendar.js +1 -1
  287. package/es/icon/icon-caret-down/icon-caret-down.js +1 -1
  288. package/es/icon/icon-caret-left/icon-caret-left.js +1 -1
  289. package/es/icon/icon-caret-right/icon-caret-right.js +1 -1
  290. package/es/icon/icon-caret-up/icon-caret-up.js +1 -1
  291. package/es/icon/icon-check/icon-check.js +1 -1
  292. package/es/icon/icon-check-circle-fill/icon-check-circle-fill.js +1 -1
  293. package/es/icon/icon-clock-circle/icon-clock-circle.js +1 -1
  294. package/es/icon/icon-close/icon-close.js +1 -1
  295. package/es/icon/icon-close-circle-fill/icon-close-circle-fill.js +1 -1
  296. package/es/icon/icon-copy/icon-copy.js +1 -1
  297. package/es/icon/icon-delete/icon-delete.js +1 -1
  298. package/es/icon/icon-double-left/icon-double-left.js +1 -1
  299. package/es/icon/icon-double-right/icon-double-right.js +1 -1
  300. package/es/icon/icon-down/icon-down.js +1 -1
  301. package/es/icon/icon-drag-dot/icon-drag-dot.js +1 -1
  302. package/es/icon/icon-drag-dot-vertical/icon-drag-dot-vertical.js +1 -1
  303. package/es/icon/icon-edit/icon-edit.js +1 -1
  304. package/es/icon/icon-empty/icon-empty.js +1 -1
  305. package/es/icon/icon-exclamation/icon-exclamation.js +1 -1
  306. package/es/icon/icon-exclamation-circle-fill/icon-exclamation-circle-fill.js +1 -1
  307. package/es/icon/icon-eye/icon-eye.js +1 -1
  308. package/es/icon/icon-eye-invisible/icon-eye-invisible.js +1 -1
  309. package/es/icon/icon-face-frown-fill/icon-face-frown-fill.js +1 -1
  310. package/es/icon/icon-face-meh-fill/icon-face-meh-fill.js +1 -1
  311. package/es/icon/icon-face-smile-fill/icon-face-smile-fill.js +1 -1
  312. package/es/icon/icon-file/icon-file.js +1 -1
  313. package/es/icon/icon-file-audio/icon-file-audio.js +1 -1
  314. package/es/icon/icon-file-image/icon-file-image.js +1 -1
  315. package/es/icon/icon-file-pdf/icon-file-pdf.js +1 -1
  316. package/es/icon/icon-file-video/icon-file-video.js +1 -1
  317. package/es/icon/icon-filter/icon-filter.js +1 -1
  318. package/es/icon/icon-fullscreen/icon-fullscreen.js +1 -1
  319. package/es/icon/icon-image-close/icon-image-close.js +1 -1
  320. package/es/icon/icon-info/icon-info.js +1 -1
  321. package/es/icon/icon-info-circle-fill/icon-info-circle-fill.js +1 -1
  322. package/es/icon/icon-left/icon-left.js +1 -1
  323. package/es/icon/icon-link/icon-link.js +1 -1
  324. package/es/icon/icon-loading/icon-loading.js +1 -1
  325. package/es/icon/icon-menu-fold/icon-menu-fold.js +1 -1
  326. package/es/icon/icon-menu-unfold/icon-menu-unfold.js +1 -1
  327. package/es/icon/icon-minus/icon-minus.js +1 -1
  328. package/es/icon/icon-more/icon-more.js +1 -1
  329. package/es/icon/icon-oblique-line/icon-oblique-line.js +1 -1
  330. package/es/icon/icon-original-size/icon-original-size.js +1 -1
  331. package/es/icon/icon-pause/icon-pause.js +1 -1
  332. package/es/icon/icon-play-arrow-fill/icon-play-arrow-fill.js +1 -1
  333. package/es/icon/icon-plus/icon-plus.js +1 -1
  334. package/es/icon/icon-question-circle/icon-question-circle.js +1 -1
  335. package/es/icon/icon-right/icon-right.js +1 -1
  336. package/es/icon/icon-rotate-left/icon-rotate-left.js +1 -1
  337. package/es/icon/icon-rotate-right/icon-rotate-right.js +1 -1
  338. package/es/icon/icon-search/icon-search.js +1 -1
  339. package/es/icon/icon-star-fill/icon-star-fill.js +1 -1
  340. package/es/icon/icon-to-top/icon-to-top.js +1 -1
  341. package/es/icon/icon-up/icon-up.js +1 -1
  342. package/es/icon/icon-upload/icon-upload.js +1 -1
  343. package/es/icon/icon-zoom-in/icon-zoom-in.js +1 -1
  344. package/es/icon/icon-zoom-out/icon-zoom-out.js +1 -1
  345. package/es/icon-component/icon.js +1 -1
  346. package/es/icon.js +292 -292
  347. package/es/image/image-footer.js +1 -1
  348. package/es/image/image.js +2 -2
  349. package/es/image/image.vue.d.ts +26 -26
  350. package/es/image/interface.d.ts +1 -1
  351. package/es/image/preview-action.d.ts +24 -24
  352. package/es/image/preview-arrow.js +1 -1
  353. package/es/image/preview-group.js +2 -2
  354. package/es/image/preview-group.vue.d.ts +26 -26
  355. package/es/image/preview-toolbar.js +1 -1
  356. package/es/image/preview-toolbar.vue.d.ts +24 -24
  357. package/es/image/preview.js +1 -1
  358. package/es/image/preview.vue.d.ts +25 -25
  359. package/es/image/preview.vue_vue_type_script_lang.js +1 -1
  360. package/es/image/style/index.css +32 -32
  361. package/es/index.css +4083 -2512
  362. package/es/index.d.ts +8 -2
  363. package/es/index.js +11 -10
  364. package/es/index.scss +3 -1
  365. package/es/input/index.d.ts +13 -11
  366. package/es/input/input-group.js +1 -1
  367. package/es/input/input-password.js +1 -1
  368. package/es/input/input-password.vue.d.ts +7 -5
  369. package/es/input/input.d.ts +2 -2
  370. package/es/input/input.js +4 -5
  371. package/es/input/style/index.css +50 -50
  372. package/es/input-number/index.d.ts +6 -6
  373. package/es/input-number/input-number.d.ts +2 -2
  374. package/es/input-number/input-number.js +21 -20
  375. package/es/input-number/style/index.css +16 -16
  376. package/es/input-tag/index.d.ts +6 -6
  377. package/es/input-tag/input-tag.d.ts +2 -2
  378. package/es/input-tag/input-tag.js +11 -13
  379. package/es/input-tag/style/index.css +172 -172
  380. package/es/input-tag/utils.js +1 -1
  381. package/es/json-form/json-form-component.vue_vue_type_script_setup_true_lang.js +3 -3
  382. package/es/json-form/json-form-item.vue_vue_type_script_setup_true_lang.js +3 -3
  383. package/es/json-form/json-form.vue_vue_type_script_setup_true_lang.js +3 -3
  384. package/es/json-form/utils.js +3 -3
  385. package/es/layout/content.js +1 -1
  386. package/es/layout/footer.js +1 -1
  387. package/es/layout/header.vue.d.ts +1 -1
  388. package/es/layout/header.vue_vue_type_script_setup_true_lang.js +2 -2
  389. package/es/layout/index.d.ts +21 -21
  390. package/es/layout/layout.js +1 -1
  391. package/es/layout/sider.js +1 -1
  392. package/es/layout/sider.vue.d.ts +16 -16
  393. package/es/layout/sider.vue_vue_type_script_lang.js +1 -1
  394. package/es/layout/style/index.css +12 -12
  395. package/es/link/index.d.ts +3 -3
  396. package/es/link/link.vue.d.ts +1 -1
  397. package/es/link/link.vue_vue_type_script_setup_true_lang.js +2 -2
  398. package/es/link/style/index.css +23 -23
  399. package/es/list/index.d.ts +9 -9
  400. package/es/list/list-item-meta.js +1 -1
  401. package/es/list/list.d.ts +3 -3
  402. package/es/list/list.js +4 -4
  403. package/es/list/style/index.css +9 -9
  404. package/es/list/use-pagination.d.ts +7 -4
  405. package/es/locale/index.d.ts +1 -1
  406. package/es/locale/index.js +1 -1
  407. package/es/locale/interface.d.ts +7 -0
  408. package/es/locale/lang/ar-eg.js +7 -1
  409. package/es/locale/lang/de-de.js +7 -1
  410. package/es/locale/lang/en-us.js +7 -1
  411. package/es/locale/lang/es-es.js +7 -1
  412. package/es/locale/lang/fr-fr.js +7 -1
  413. package/es/locale/lang/id-id.js +7 -1
  414. package/es/locale/lang/it-it.js +7 -1
  415. package/es/locale/lang/ja-jp.js +7 -1
  416. package/es/locale/lang/km-kh.js +7 -1
  417. package/es/locale/lang/ko-kr.js +7 -1
  418. package/es/locale/lang/ms-my.js +7 -1
  419. package/es/locale/lang/nl-nl.js +7 -1
  420. package/es/locale/lang/pt-pt.js +7 -1
  421. package/es/locale/lang/ru-ru.js +7 -1
  422. package/es/locale/lang/th-th.js +7 -1
  423. package/es/locale/lang/vi-vn.js +7 -1
  424. package/es/locale/lang/zh-cn.js +7 -1
  425. package/es/locale/lang/zh-tw.js +7 -1
  426. package/es/mention/index.d.ts +9 -9
  427. package/es/mention/mention.d.ts +3 -3
  428. package/es/mention/mention.js +34 -20
  429. package/es/menu/base-menu.js +1 -1
  430. package/es/menu/indent.js +1 -1
  431. package/es/menu/interface.d.ts +1 -3
  432. package/es/menu/item-group.js +1 -1
  433. package/es/menu/item-group.vue.d.ts +48 -48
  434. package/es/menu/item.js +1 -1
  435. package/es/menu/menu.js +1 -1
  436. package/es/menu/style/index.css +62 -62
  437. package/es/menu/sub-menu-inline.js +1 -1
  438. package/es/menu/sub-menu-inline.vue.d.ts +48 -48
  439. package/es/menu/sub-menu-pop.js +1 -1
  440. package/es/menu/sub-menu-pop.vue.d.ts +59 -59
  441. package/es/menu/sub-menu.js +1 -1
  442. package/es/message/index.js +1 -1
  443. package/es/message/message-list.d.ts +1 -1
  444. package/es/message/message.js +1 -1
  445. package/es/message/message.vue.d.ts +5 -3
  446. package/es/message/style/index.css +26 -26
  447. package/es/modal/index.d.ts +6374 -572
  448. package/es/modal/index.js +2 -2
  449. package/es/modal/interface.d.ts +2 -2
  450. package/es/modal/modal.js +15 -4
  451. package/es/modal/modal.vue.d.ts +2911 -10
  452. package/es/modal/modal.vue_vue_type_script_lang.js +28 -5
  453. package/es/modal/style/index.css +28 -12
  454. package/es/modal/style/index.scss +23 -0
  455. package/es/notification/index.js +1 -1
  456. package/es/notification/notification.js +1 -1
  457. package/es/notification/notification.vue.d.ts +5 -3
  458. package/es/notification/style/index.css +26 -26
  459. package/es/page-header/index.d.ts +10 -6
  460. package/es/page-header/page-header.js +1 -1
  461. package/es/page-header/page-header.vue.d.ts +5 -3
  462. package/es/page-header/style/index.css +6 -6
  463. package/es/pagination/page-item-ellipsis.js +1 -1
  464. package/es/pagination/page-item-step.js +1 -1
  465. package/es/pagination/page-item.js +1 -1
  466. package/es/pagination/page-jumper.js +1 -1
  467. package/es/pagination/page-jumper.vue.d.ts +7 -7
  468. package/es/pagination/page-options.js +1 -1
  469. package/es/pagination/page-options.vue.d.ts +656 -470
  470. package/es/pagination/style/index.css +21 -21
  471. package/es/popconfirm/index.d.ts +36 -36
  472. package/es/popconfirm/popconfirm.js +1 -1
  473. package/es/popconfirm/popconfirm.vue.d.ts +17 -17
  474. package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +1 -1
  475. package/es/popconfirm/style/index.css +11 -11
  476. package/es/popover/index.d.ts +899 -21
  477. package/es/popover/popover.js +7 -3
  478. package/es/popover/popover.vue.d.ts +451 -10
  479. package/es/popover/popover.vue_vue_type_script_lang.js +15 -3
  480. package/es/popover/style/index.css +7 -7
  481. package/es/popover/style/index.d.ts +1 -0
  482. package/es/progress/circle.js +1 -1
  483. package/es/progress/circle.vue.d.ts +1 -1
  484. package/es/progress/index.d.ts +7 -7
  485. package/es/progress/line.js +1 -1
  486. package/es/progress/line.vue.d.ts +1 -1
  487. package/es/progress/line.vue_vue_type_script_lang.js +1 -1
  488. package/es/progress/progress.js +1 -1
  489. package/es/progress/progress.vue.d.ts +3 -3
  490. package/es/progress/steps.js +1 -1
  491. package/es/progress/style/index.css +32 -32
  492. package/es/qr-code/index.d.ts +294 -0
  493. package/es/qr-code/index.js +10 -0
  494. package/es/qr-code/qr-code-status.js +5 -0
  495. package/es/qr-code/qr-code-status.vue.d.ts +8 -0
  496. package/es/qr-code/qr-code-status.vue_vue_type_script_setup_true_lang.js +30 -0
  497. package/es/qr-code/qr-code.js +5 -0
  498. package/es/qr-code/qr-code.vue.d.ts +167 -0
  499. package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +313 -0
  500. package/es/qr-code/style/css.js +2 -0
  501. package/es/qr-code/style/index.css +106 -0
  502. package/es/qr-code/style/index.d.ts +2 -0
  503. package/es/qr-code/style/index.js +2 -0
  504. package/es/qr-code/style/index.scss +111 -0
  505. package/es/qr-code/style/token.scss +36 -0
  506. package/es/qr-code/types.d.ts +19 -0
  507. package/es/radio/index.d.ts +13 -9
  508. package/es/radio/radio.d.ts +6 -4
  509. package/es/radio/style/index.css +33 -33
  510. package/es/rate/index.d.ts +3 -3
  511. package/es/rate/rate.d.ts +1 -1
  512. package/es/rate/style/index.css +3 -3
  513. package/es/resize-box/index.d.ts +6 -6
  514. package/es/resize-box/resize-box.js +1 -1
  515. package/es/resize-box/resize-box.vue.d.ts +2 -2
  516. package/es/resize-box/resize-box.vue_vue_type_script_lang.js +1 -1
  517. package/es/resize-box/style/index.css +2 -2
  518. package/es/result/result.js +1 -1
  519. package/es/result/style/index.css +2 -2
  520. package/es/scrollbar/index.d.ts +6 -3
  521. package/es/scrollbar/interface.d.ts +1 -1
  522. package/es/scrollbar/scrollbar.js +2 -1
  523. package/es/scrollbar/scrollbar.vue.d.ts +2 -1
  524. package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +52 -2
  525. package/es/scrollbar/style/index.css +13 -13
  526. package/es/sd-vue.js +13 -12
  527. package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +3 -3
  528. package/es/secret/style/index.css +4 -4
  529. package/es/select/context.d.ts +1 -4
  530. package/es/select/hooks/use-options.d.ts +1 -4
  531. package/es/select/hooks/use-options.js +2 -23
  532. package/es/select/hooks/use-select.d.ts +1 -3
  533. package/es/select/hooks/use-select.js +2 -7
  534. package/es/select/index.d.ts +656 -475
  535. package/es/select/index.js +5 -13
  536. package/es/select/interface.d.ts +1 -1
  537. package/es/select/select-dropdown.js +3 -2
  538. package/es/select/select-dropdown.vue.d.ts +56 -54
  539. package/es/select/select-dropdown.vue_vue_type_script_lang.js +2 -3
  540. package/es/select/select.d.ts +264 -18
  541. package/es/select/select.js +50 -27
  542. package/es/select/style/index.css +14 -14
  543. package/es/select/utils.d.ts +1 -1
  544. package/es/select/utils.js +1 -1
  545. package/es/skeleton/line.js +1 -1
  546. package/es/skeleton/shape.js +1 -1
  547. package/es/skeleton/skeleton.js +1 -1
  548. package/es/skeleton/style/index.css +4 -4
  549. package/es/slider/index.d.ts +67 -67
  550. package/es/slider/slider-button.js +1 -1
  551. package/es/slider/slider-button.vue.d.ts +25 -25
  552. package/es/slider/slider-dots.js +1 -1
  553. package/es/slider/slider-input.js +1 -1
  554. package/es/slider/slider-input.vue.d.ts +7 -7
  555. package/es/slider/slider-marks.js +1 -1
  556. package/es/slider/slider-ticks.js +1 -1
  557. package/es/slider/slider.js +1 -1
  558. package/es/slider/slider.vue.d.ts +33 -33
  559. package/es/slider/style/index.css +18 -18
  560. package/es/space/index.d.ts +9 -9
  561. package/es/space/space.d.ts +2 -2
  562. package/es/spin/index.d.ts +1 -0
  563. package/es/spin/style/index.css +9 -9
  564. package/es/split/split.js +1 -1
  565. package/es/split/split.vue_vue_type_script_lang.js +1 -1
  566. package/es/split/style/index.css +2 -2
  567. package/es/statistic/countdown.js +1 -1
  568. package/es/statistic/countdown.vue.d.ts +1 -1
  569. package/es/statistic/countdown.vue_vue_type_script_lang.js +5 -5
  570. package/es/statistic/index.d.ts +1 -1
  571. package/es/statistic/statistic.js +1 -1
  572. package/es/statistic/statistic.vue_vue_type_script_lang.js +4 -4
  573. package/es/statistic/style/index.css +4 -4
  574. package/es/steps/index.d.ts +4 -4
  575. package/es/steps/step.js +1 -1
  576. package/es/steps/step.vue.d.ts +1 -1
  577. package/es/steps/steps.js +1 -1
  578. package/es/steps/steps.vue.d.ts +1 -1
  579. package/es/steps/style/index.css +79 -79
  580. package/es/style/color/colors.scss +1 -1
  581. package/es/style/theme/global.scss +8 -8
  582. package/es/style/theme/index.scss +4 -12
  583. package/es/style/theme/z-index.js +1 -2
  584. package/es/switch/style/index.css +30 -30
  585. package/es/switch/switch.js +1 -1
  586. package/es/switch/switch.vue_vue_type_script_lang.js +1 -1
  587. package/es/table/index.d.ts +14 -14
  588. package/es/table/style/index.css +65 -65
  589. package/es/table/table-operation-td.d.ts +23 -15
  590. package/es/table/table-operation-td.js +11 -14
  591. package/es/table/table-operation-th.js +1 -1
  592. package/es/table/table-td.d.ts +1 -1
  593. package/es/table/table-td.js +1 -1
  594. package/es/table/table-th.d.ts +1 -1
  595. package/es/table/table-th.js +19 -8
  596. package/es/table/table.d.ts +5 -5
  597. package/es/table/table.js +45 -48
  598. package/es/table/utils.js +1 -1
  599. package/es/tabs/index.d.ts +9 -9
  600. package/es/tabs/style/index.css +56 -56
  601. package/es/tabs/tab-pane.js +1 -1
  602. package/es/tabs/tab-pane.vue_vue_type_script_lang.js +1 -1
  603. package/es/tabs/tabs-nav-ink.js +1 -1
  604. package/es/tabs/tabs-nav.d.ts +1 -1
  605. package/es/tabs/tabs-tab.js +1 -1
  606. package/es/tabs/tabs-tab.vue.d.ts +5 -3
  607. package/es/tabs/tabs.d.ts +3 -3
  608. package/es/tag/index.d.ts +66 -29688
  609. package/es/tag/interface.d.ts +2 -0
  610. package/es/tag/style/index.css +134 -134
  611. package/es/tag/style/index.scss +33 -13
  612. package/es/tag/tag.js +2 -64
  613. package/es/tag/tag.vue.d.ts +53 -11936
  614. package/es/tag/tag.vue_vue_type_script_setup_true_lang.js +368 -0
  615. package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +4 -4
  616. package/es/textarea/index.d.ts +16 -12
  617. package/es/textarea/style/index.css +28 -28
  618. package/es/textarea/textarea.js +1 -1
  619. package/es/textarea/textarea.vue.d.ts +7 -5
  620. package/es/textarea/textarea.vue_vue_type_script_lang.js +1 -1
  621. package/es/time-picker/hooks/use-time-list.js +1 -1
  622. package/es/time-picker/index.d.ts +79 -71
  623. package/es/time-picker/panel.js +1 -1
  624. package/es/time-picker/panel.vue.d.ts +7 -7
  625. package/es/time-picker/range-panel.d.ts +7 -7
  626. package/es/time-picker/range-panel.js +6 -7
  627. package/es/time-picker/style/index.css +11 -11
  628. package/es/time-picker/time-column.js +1 -1
  629. package/es/time-picker/time-picker.js +2 -2
  630. package/es/time-picker/time-picker.vue.d.ts +38 -34
  631. package/es/time-picker/utils/index.d.ts +1 -1
  632. package/es/timeline/item.js +1 -1
  633. package/es/timeline/item.vue_vue_type_script_lang.js +1 -1
  634. package/es/timeline/style/index.css +11 -11
  635. package/es/tooltip/index.d.ts +24 -24
  636. package/es/tooltip/style/index.css +3 -3
  637. package/es/tooltip/tooltip.js +1 -1
  638. package/es/tooltip/tooltip.vue.d.ts +11 -11
  639. package/es/tooltip/tooltip.vue_vue_type_script_lang.js +1 -1
  640. package/es/tour/index.d.ts +664 -0
  641. package/es/tour/index.js +10 -0
  642. package/es/tour/style/css.js +1 -0
  643. package/es/tour/style/index.css +226 -0
  644. package/es/tour/style/index.d.ts +1 -0
  645. package/es/tour/style/index.js +1 -0
  646. package/es/tour/style/index.scss +218 -0
  647. package/es/tour/style/token.scss +27 -0
  648. package/es/tour/tour.js +5 -0
  649. package/es/tour/tour.vue.d.ts +411 -0
  650. package/es/tour/tour.vue_vue_type_script_setup_true_lang.js +1219 -0
  651. package/es/tour/types.d.ts +143 -0
  652. package/es/transfer/index.d.ts +75 -57
  653. package/es/transfer/style/index.css +20 -20
  654. package/es/transfer/transfer-list-item.js +2 -5
  655. package/es/transfer/transfer-view.js +2 -3
  656. package/es/transfer/transfer-view.vue.d.ts +30 -21
  657. package/es/transfer/transfer-view.vue_vue_type_script_lang.js +1 -1
  658. package/es/transfer/transfer.js +1 -1
  659. package/es/transfer/transfer.vue.d.ts +37 -28
  660. package/es/tree/base-node.js +1 -1
  661. package/es/tree/base-node.vue.d.ts +10 -6
  662. package/es/tree/expand-transition.js +1 -1
  663. package/es/tree/interface.d.ts +1 -1
  664. package/es/tree/node.js +1 -1
  665. package/es/tree/style/index.css +25 -25
  666. package/es/tree/transition-node-list.js +1 -1
  667. package/es/tree/transition-node-list.vue.d.ts +10 -6
  668. package/es/tree/tree.js +1 -1
  669. package/es/tree/tree.vue.d.ts +14 -11
  670. package/es/tree/tree.vue_vue_type_script_lang.js +2 -2
  671. package/es/tree/utils/tree-data.js +1 -1
  672. package/es/tree-select/hooks/use-selected-state.js +1 -1
  673. package/es/tree-select/panel.js +9 -10
  674. package/es/tree-select/style/index.css +5 -5
  675. package/es/tree-select/tree-select.js +2 -2
  676. package/es/tree-select/tree-select.vue.d.ts +22 -22
  677. package/es/tree-select/tree-select.vue_vue_type_script_lang.js +1 -1
  678. package/es/trigger/context.d.ts +3 -3
  679. package/es/trigger/index.d.ts +9 -9
  680. package/es/trigger/interface.d.ts +3 -2
  681. package/es/trigger/style/index.css +5 -5
  682. package/es/trigger/trigger.d.ts +3 -3
  683. package/es/trigger/trigger.js +18 -17
  684. package/es/trigger/utils.js +1 -1
  685. package/es/typography/base.d.ts +4 -4
  686. package/es/typography/base.js +3 -3
  687. package/es/typography/edit-content.js +1 -1
  688. package/es/typography/edit-content.vue.d.ts +40 -34
  689. package/es/typography/interface.d.ts +1 -1
  690. package/es/typography/operations.js +1 -1
  691. package/es/typography/operations.vue.d.ts +25 -25
  692. package/es/typography/style/index.css +22 -22
  693. package/es/typography/typography.js +1 -1
  694. package/es/upload/index.d.ts +6 -6
  695. package/es/upload/interfaces.d.ts +3 -3
  696. package/es/upload/style/index.css +51 -51
  697. package/es/upload/upload-button.d.ts +1 -1
  698. package/es/upload/upload-list.js +2 -5
  699. package/es/upload/upload.d.ts +2 -2
  700. package/es/upload/upload.js +6 -7
  701. package/es/verification-code/index.d.ts +3 -3
  702. package/es/verification-code/verification-code.d.ts +1 -1
  703. package/es/verification-code/verification-code.js +7 -6
  704. package/es/watermark/hooks/use-mutation-observer.js +1 -1
  705. package/es/watermark/watermark.js +1 -1
  706. package/json/vetur-attributes.json +125 -107
  707. package/json/vetur-tags.json +39 -36
  708. package/json/web-types.json +182 -163
  709. package/package.json +19 -15
  710. package/es/calendar/calendar.d.ts +0 -104
  711. package/es/calendar/calendar.js +0 -207
  712. package/es/calendar/header.d.ts +0 -104
  713. package/es/calendar/header.js +0 -131
  714. package/es/calendar/hooks/useCellClassName.d.ts +0 -19
  715. package/es/calendar/hooks/useCellClassName.js +0 -43
  716. package/es/calendar/month.d.ts +0 -83
  717. package/es/calendar/month.js +0 -149
  718. package/es/calendar/week.d.ts +0 -61
  719. package/es/calendar/week.js +0 -45
  720. package/es/calendar/year.d.ts +0 -69
  721. package/es/calendar/year.js +0 -101
  722. package/es/select/optgroup.js +0 -10
  723. package/es/select/optgroup.vue.d.ts +0 -13
  724. package/es/select/optgroup.vue_vue_type_script_lang.js +0 -23
  725. package/es/select/option.js +0 -51
  726. package/es/select/option.vue.d.ts +0 -299
  727. package/es/select/option.vue_vue_type_script_lang.js +0 -149
  728. package/es/tag/tag.vue_vue_type_script_lang.js +0 -264
@@ -57,7 +57,7 @@ export type ScrollbarState = OverlayScrollbarState;
57
57
  export type ScrollbarPlugin = InstancePlugin;
58
58
  export interface ScrollbarProps {
59
59
  type?: ScrollbarType;
60
- outerClass?: string | Record<string, any> | unknown[];
60
+ outerClass?: string | Record<string, unknown> | unknown[];
61
61
  outerStyle?: CSSProperties | CSSProperties[];
62
62
  paddingAbsolute?: OverlayScrollbarPartialOptions['paddingAbsolute'];
63
63
  showNativeOverlaidScrollbars?: OverlayScrollbarPartialOptions['showNativeOverlaidScrollbars'];
@@ -4,6 +4,7 @@ import { createElementBlock, createElementVNode, mergeProps, normalizeClass, nor
4
4
  //#region components/scrollbar/scrollbar.vue
5
5
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
6
  return openBlock(), createElementBlock("div", {
7
+ ref: "outerRef",
7
8
  class: normalizeClass(_ctx.cls),
8
9
  style: normalizeStyle(_ctx.outerStyle)
9
10
  }, [createElementVNode("div", mergeProps({
@@ -11,6 +12,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
11
12
  class: `${_ctx.prefixCls}-container`
12
13
  }, _ctx.$attrs), [renderSlot(_ctx.$slots, "default")], 16)], 6);
13
14
  }
14
- var scrollbar_default = /* @__PURE__ */ _plugin_vue_export_helper_default(scrollbar_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
15
+ var scrollbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(scrollbar_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
15
16
  //#endregion
16
17
  export { scrollbar_default as default };
@@ -50,7 +50,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
50
50
  }>, {
51
51
  prefixCls: string;
52
52
  cls: import("vue").ComputedRef<(string | Record<string, any> | unknown[] | undefined)[]>;
53
- outerStyle: import("vue").ComputedRef<StyleValue>;
53
+ outerStyle: import("vue").ComputedRef<(StyleValue | Record<string, string>)[]>;
54
+ outerRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
54
55
  containerRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
55
56
  mergedOptions: import("vue").ComputedRef<{
56
57
  paddingAbsolute: boolean | undefined;
@@ -1,8 +1,9 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import { isObject } from "../_utils/is.js";
4
4
  import { computed, defineComponent, onBeforeUnmount, onMounted, ref, watch } from "vue";
5
5
  import { OverlayScrollbars } from "overlayscrollbars";
6
+ import { useResizeObserver } from "@vueuse/core";
6
7
  //#region components/scrollbar/scrollbar.vue?vue&type=script&lang.ts
7
8
  var scrollbar_vue_vue_type_script_lang_default = defineComponent({
8
9
  name: "Scrollbar",
@@ -96,9 +97,50 @@ var scrollbar_vue_vue_type_script_lang_default = defineComponent({
96
97
  scroll: (_ev) => true },
97
98
  setup(props, { emit }) {
98
99
  const prefixCls = getPrefixCls("scrollbar");
100
+ const outerRef = ref();
99
101
  const containerRef = ref();
100
102
  const osInstanceRef = ref(null);
101
103
  const removeExternalListenersRef = ref(null);
104
+ const autoSizeStyleRef = ref({});
105
+ const normalizeStyleValue = (styleValue) => {
106
+ if (!styleValue) return {};
107
+ if (Array.isArray(styleValue)) return styleValue.reduce((accumulator, item) => {
108
+ Object.assign(accumulator, normalizeStyleValue(item));
109
+ return accumulator;
110
+ }, {});
111
+ if (typeof styleValue === "string") return {};
112
+ return styleValue;
113
+ };
114
+ const normalizedOuterStyle = computed(() => normalizeStyleValue(props.outerStyle));
115
+ const parseComputedPx = (value) => {
116
+ if (!value || value === "none") return null;
117
+ const parsedValue = Number.parseFloat(value);
118
+ return Number.isFinite(parsedValue) ? parsedValue : null;
119
+ };
120
+ const updateAutoSizeStyle = () => {
121
+ var _resolveOSInstance;
122
+ const outerElement = outerRef.value;
123
+ const containerElement = containerRef.value;
124
+ if (!outerElement || !containerElement) {
125
+ autoSizeStyleRef.value = {};
126
+ return;
127
+ }
128
+ const nextStyle = {};
129
+ const styleObject = normalizedOuterStyle.value;
130
+ const computedStyle = window.getComputedStyle(outerElement);
131
+ const hasExplicitHeight = "height" in styleObject || "blockSize" in styleObject;
132
+ const hasExplicitWidth = "width" in styleObject || "inlineSize" in styleObject;
133
+ if (!hasExplicitHeight && ("maxHeight" in styleObject || "maxBlockSize" in styleObject)) {
134
+ const maxHeight = parseComputedPx(computedStyle.maxHeight);
135
+ if (maxHeight !== null) nextStyle.height = `${Math.min(containerElement.scrollHeight, maxHeight)}px`;
136
+ }
137
+ if (!hasExplicitWidth && ("maxWidth" in styleObject || "maxInlineSize" in styleObject)) {
138
+ const maxWidth = parseComputedPx(computedStyle.maxWidth);
139
+ if (maxWidth !== null) nextStyle.width = `${Math.min(containerElement.scrollWidth, maxWidth)}px`;
140
+ }
141
+ autoSizeStyleRef.value = nextStyle;
142
+ (_resolveOSInstance = resolveOSInstance()) === null || _resolveOSInstance === void 0 || _resolveOSInstance.update(true);
143
+ };
102
144
  const resolveOSInstance = () => {
103
145
  const osInstance = osInstanceRef.value;
104
146
  if (!osInstance || osInstance.state().destroyed) return null;
@@ -156,7 +198,7 @@ scroll: (_ev) => true },
156
198
  if (!osInstance || !eventListeners) return;
157
199
  removeExternalListenersRef.value = osInstance.on(eventListeners);
158
200
  };
159
- const outerStyle = computed(() => props.outerStyle);
201
+ const outerStyle = computed(() => [props.outerStyle, autoSizeStyleRef.value]);
160
202
  const cls = computed(() => [
161
203
  `${prefixCls}`,
162
204
  `${prefixCls}-type-${props.type}`,
@@ -171,6 +213,13 @@ scroll: (_ev) => true },
171
213
  };
172
214
  onMounted(() => {
173
215
  initScrollbar();
216
+ updateAutoSizeStyle();
217
+ });
218
+ useResizeObserver(containerRef, () => {
219
+ updateAutoSizeStyle();
220
+ });
221
+ useResizeObserver(outerRef, () => {
222
+ updateAutoSizeStyle();
174
223
  });
175
224
  watch(mergedOptions, (options) => {
176
225
  const osInstance = resolveOSInstance();
@@ -191,6 +240,7 @@ scroll: (_ev) => true },
191
240
  prefixCls,
192
241
  cls,
193
242
  outerStyle,
243
+ outerRef,
194
244
  containerRef,
195
245
  mergedOptions,
196
246
  resolveOSInstance,
@@ -26,9 +26,9 @@
26
26
  }
27
27
  .sd-scrollbar .os-scrollbar {
28
28
  --os-size: 6px;
29
- --os-handle-bg: var(--color-neutral-4);
30
- --os-handle-bg-hover: var(--color-neutral-5);
31
- --os-handle-bg-active: var(--color-neutral-6);
29
+ --os-handle-bg: var(--sd-color-neutral-4);
30
+ --os-handle-bg-hover: var(--sd-color-neutral-5);
31
+ --os-handle-bg-active: var(--sd-color-neutral-6);
32
32
  --os-track-bg: transparent;
33
33
  --os-track-bg-hover: transparent;
34
34
  --os-track-bg-active: transparent;
@@ -47,20 +47,20 @@
47
47
  }
48
48
  .sd-scrollbar .sd-scrollbar-theme-track {
49
49
  --os-size: 6px;
50
- --os-track-bg: var(--color-neutral-1);
51
- --os-track-bg-hover: var(--color-neutral-1);
52
- --os-track-bg-active: var(--color-neutral-1);
53
- --os-track-border: 1px solid var(--color-neutral-3);
50
+ --os-track-bg: var(--sd-color-neutral-1);
51
+ --os-track-bg-hover: var(--sd-color-neutral-1);
52
+ --os-track-bg-active: var(--sd-color-neutral-1);
53
+ --os-track-border: 1px solid var(--sd-color-neutral-3);
54
54
  --os-handle-perpendicular-size: 6px;
55
55
  --os-padding-axis: -1px;
56
56
  }
57
57
  .sd-scrollbar.sd-scrollbar-type-embed .sd-scrollbar-theme-embed {
58
- --os-handle-bg: var(--color-neutral-4);
59
- --os-handle-bg-hover: var(--color-neutral-5);
60
- --os-handle-bg-active: var(--color-neutral-6);
58
+ --os-handle-bg: var(--sd-color-neutral-4);
59
+ --os-handle-bg-hover: var(--sd-color-neutral-5);
60
+ --os-handle-bg-active: var(--sd-color-neutral-6);
61
61
  }
62
62
  .sd-scrollbar.sd-scrollbar-type-track .sd-scrollbar-theme-track {
63
- --os-handle-bg: var(--color-neutral-4);
64
- --os-handle-bg-hover: var(--color-neutral-5);
65
- --os-handle-bg-active: var(--color-neutral-6);
63
+ --os-handle-bg: var(--sd-color-neutral-4);
64
+ --os-handle-bg-hover: var(--sd-color-neutral-5);
65
+ --os-handle-bg-active: var(--sd-color-neutral-6);
66
66
  }
package/es/sd-vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useFormItem } from "./_hooks/use-form-item.js";
2
- import { _objectSpread2 } from "./_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
+ import { _objectSpread2 } from "./_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
3
  import Affix from "./affix/index.js";
4
4
  import Alert from "./alert/index.js";
5
5
  import anchor_link_default from "./anchor/anchor-link.js";
@@ -10,9 +10,6 @@ import button_group_default from "./button/button-group.js";
10
10
  import Button from "./button/index.js";
11
11
  import input_search_default from "./input/input-search.js";
12
12
  import Input from "./input/index.js";
13
- import checkbox_group_default from "./checkbox/checkbox-group.js";
14
- import Checkbox from "./checkbox/index.js";
15
- import option_default from "./select/option.js";
16
13
  import { addI18nMessages, getLocale, useLocale } from "./locale/index.js";
17
14
  import Empty from "./empty/index.js";
18
15
  import Scrollbar from "./scrollbar/index.js";
@@ -31,25 +28,26 @@ import dropdown_submenu_default from "./dropdown/dropdown-submenu.js";
31
28
  import Dropdown from "./dropdown/index.js";
32
29
  import breadcrumb_item_default from "./breadcrumb/breadcrumb-item.js";
33
30
  import Breadcrumb from "./breadcrumb/index.js";
34
- import radio_group_default from "./radio/radio-group.js";
35
- import Radio from "./radio/index.js";
36
- import optgroup_default from "./select/optgroup.js";
37
31
  import Tooltip from "./tooltip/index.js";
38
32
  import Ellipsis, { PerformantEllipsis } from "./ellipsis/index.js";
39
- import Tag from "./tag/index.js";
40
- import InputTag from "./input-tag/index.js";
41
- import Select from "./select/index.js";
42
33
  import Calendar from "./calendar/index.js";
43
34
  import card_grid_default from "./card/card-grid.js";
44
35
  import card_meta_default from "./card/card-meta.js";
45
36
  import Card from "./card/index.js";
46
37
  import carousel_item_default from "./carousel/carousel-item.js";
47
38
  import Carousel from "./carousel/index.js";
39
+ import checkbox_group_default from "./checkbox/checkbox-group.js";
40
+ import Checkbox from "./checkbox/index.js";
41
+ import radio_group_default from "./radio/radio-group.js";
42
+ import Radio from "./radio/index.js";
48
43
  import cascader_panel_default from "./cascader/cascader-panel.js";
44
+ import Tag from "./tag/index.js";
45
+ import InputTag from "./input-tag/index.js";
49
46
  import Cascader from "./cascader/index.js";
50
47
  import collapse_item_default from "./collapse/collapse-item.js";
51
48
  import Collapse from "./collapse/index.js";
52
49
  import InputNumber from "./input-number/index.js";
50
+ import Select from "./select/index.js";
53
51
  import ColorPicker from "./color-picker/index.js";
54
52
  import Comment from "./comment/index.js";
55
53
  import ConfigProvider from "./config-provider/index.js";
@@ -109,6 +107,7 @@ import OverflowList from "./overflow-list/index.js";
109
107
  import PageHeader from "./page-header/index.js";
110
108
  import Popconfirm from "./popconfirm/index.js";
111
109
  import Progress from "./progress/index.js";
110
+ import QrCode from "./qr-code/index.js";
112
111
  import Result from "./result/index.js";
113
112
  import Secret from "./secret/index.js";
114
113
  import line_default from "./skeleton/line.js";
@@ -133,6 +132,7 @@ import TagGroup from "./tag-group/index.js";
133
132
  import ThemeProvider from "./theme-provider/index.js";
134
133
  import item_default$1 from "./timeline/item.js";
135
134
  import Timeline from "./timeline/index.js";
135
+ import Tour from "./tour/index.js";
136
136
  import paragraph_default from "./typography/paragraph.js";
137
137
  import text_default from "./typography/text.js";
138
138
  import title_default from "./typography/title.js";
@@ -171,6 +171,7 @@ var components = {
171
171
  TagGroup,
172
172
  Timeline,
173
173
  Tooltip,
174
+ Tour,
174
175
  AutoComplete,
175
176
  Cascader,
176
177
  Checkbox,
@@ -200,6 +201,7 @@ var components = {
200
201
  Notification,
201
202
  Popconfirm,
202
203
  Progress,
204
+ QrCode,
203
205
  Result,
204
206
  Spin,
205
207
  Skeleton,
@@ -272,8 +274,6 @@ var SDVue = _objectSpread2(_objectSpread2({}, components), {}, {
272
274
  MenuItemGroup: item_group_default,
273
275
  SubMenu: sub_menu_default,
274
276
  RadioGroup: radio_group_default,
275
- Option: option_default,
276
- Optgroup: optgroup_default,
277
277
  SkeletonLine: line_default,
278
278
  SkeletonShape: shape_default,
279
279
  Countdown: countdown_default,
@@ -289,6 +289,7 @@ var SDVue = _objectSpread2(_objectSpread2({}, components), {}, {
289
289
  TypographyParagraph: paragraph_default,
290
290
  TypographyTitle: title_default,
291
291
  TypographyText: text_default,
292
+ Tour,
292
293
  install,
293
294
  addI18nMessages,
294
295
  useLocale,
@@ -1,4 +1,4 @@
1
- import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
1
+ import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
2
2
  import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import IconEye from "../icon/icon-eye/index.js";
4
4
  import IconEyeInvisible from "../icon/icon-eye-invisible/index.js";
@@ -8,9 +8,9 @@ import Copy from "../copy/index.js";
8
8
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, toDisplayString, unref, useModel, withCtx } from "vue";
9
9
  //#region components/secret/secret.vue?vue&type=script&setup=true&lang.ts
10
10
  var _hoisted_1 = ["aria-label", "aria-pressed"];
11
- var secret_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Secret" }), {}, {
11
+ var secret_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent(_objectSpread2(_objectSpread2({}, { name: "Secret" }), {}, {
12
12
  __name: "secret",
13
- props: /* @__PURE__ */ mergeModels({
13
+ props: /*@__PURE__*/ mergeModels({
14
14
  text: {},
15
15
  hiddenText: { default: "********" },
16
16
  showCopy: {
@@ -30,7 +30,7 @@
30
30
  }
31
31
  .sd-secret-placeholder {
32
32
  overflow: hidden;
33
- color: var(--color-text-3);
33
+ color: var(--sd-color-text-3);
34
34
  white-space: nowrap;
35
35
  text-overflow: ellipsis;
36
36
  }
@@ -40,15 +40,15 @@
40
40
  align-items: center;
41
41
  justify-content: center;
42
42
  padding: 0;
43
- color: var(--color-text-3);
43
+ color: var(--sd-color-text-3);
44
44
  background: transparent;
45
45
  border: 0;
46
- border-radius: var(--border-radius-small);
46
+ border-radius: var(--sd-border-radius-small);
47
47
  cursor: pointer;
48
48
  }
49
49
  .sd-secret-trigger .sd-icon {
50
50
  font-size: 16px;
51
51
  }
52
52
  .sd-secret-trigger:hover {
53
- color: var(--color-text-1);
53
+ color: var(--sd-color-text-1);
54
54
  }
@@ -1,5 +1,5 @@
1
1
  import type { InjectionKey } from 'vue';
2
- import type { FilterOption, SelectOptionInfo } from './interface';
2
+ import type { FilterOption } from './interface';
3
3
  export interface SelectContext {
4
4
  multiple?: boolean;
5
5
  valueKey?: string;
@@ -10,8 +10,5 @@ export interface SelectContext {
10
10
  activeKey: string | undefined;
11
11
  onSelect: (key: string, ev: Event) => void;
12
12
  setActiveKey: (key?: string) => void;
13
- getNextSlotOptionIndex: () => number;
14
- addSlotOptionInfo: (id: number, optionInfo: SelectOptionInfo) => void;
15
- removeSlotOptionInfo: (id: number) => void;
16
13
  }
17
14
  export declare const selectInjectionKey: InjectionKey<SelectContext>;
@@ -22,14 +22,11 @@ export declare const useOptions: ({ options, extraOptions, inputValue, filterOpt
22
22
  };
23
23
  key: string;
24
24
  index?: number | undefined;
25
- origin: "slot" | "options" | "extraOptions";
25
+ origin: "options" | "extraOptions";
26
26
  value: import("../interface").SelectOptionValue;
27
27
  label: string;
28
28
  disabled?: boolean | undefined;
29
29
  tagProps?: Record<string, unknown> | undefined;
30
30
  }[]>;
31
31
  enabledOptionKeys: import("vue").ComputedRef<string[]>;
32
- getNextSlotOptionIndex: () => number;
33
- addSlotOptionInfo: (id: number, optionInfo: SelectOptionInfo) => void;
34
- removeSlotOptionInfo: (id: number) => void;
35
32
  };
@@ -1,5 +1,4 @@
1
- import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
2
- import { isNumber } from "../../_utils/is.js";
1
+ import { _objectSpread2 } from "../../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
3
2
  import { getOptionInfos, getValidOptions, isValidOption } from "../utils.js";
4
3
  import { computed, reactive, ref, watch } from "vue";
5
4
  //#region components/select/hooks/use-options.ts
@@ -12,11 +11,6 @@ var DEFAULT_FIELD_NAMES = {
12
11
  };
13
12
  var useOptions = ({ options, extraOptions, inputValue, filterOption, showExtraOptions, valueKey, fieldNames }) => {
14
13
  const mergedFieldNames = computed(() => _objectSpread2(_objectSpread2({}, DEFAULT_FIELD_NAMES), fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value));
15
- const slotOptionInfoMap = reactive(/* @__PURE__ */ new Map());
16
- const sortedSlotOptionInfos = computed(() => Array.from(slotOptionInfoMap.values()).sort((a, b) => {
17
- if (isNumber(a.index) && isNumber(b.index)) return a.index - b.index;
18
- return 0;
19
- }));
20
14
  const propOptionData = computed(() => {
21
15
  var _options$value, _valueKey$value;
22
16
  const optionInfoMap = /* @__PURE__ */ new Map();
@@ -45,15 +39,11 @@ var useOptions = ({ options, extraOptions, inputValue, filterOption, showExtraOp
45
39
  });
46
40
  const optionInfoMap = reactive(/* @__PURE__ */ new Map());
47
41
  watch([
48
- sortedSlotOptionInfos,
49
42
  options !== null && options !== void 0 ? options : ref([]),
50
43
  extraOptions !== null && extraOptions !== void 0 ? extraOptions : ref([]),
51
44
  valueKey !== null && valueKey !== void 0 ? valueKey : ref("value")
52
45
  ], () => {
53
46
  optionInfoMap.clear();
54
- sortedSlotOptionInfos.value.forEach((info, index) => {
55
- optionInfoMap.set(info.key, _objectSpread2(_objectSpread2({}, info), {}, { index }));
56
- });
57
47
  propOptionData.value.optionInfoMap.forEach((info) => {
58
48
  if (!optionInfoMap.has(info.key)) {
59
49
  info.index = optionInfoMap.size;
@@ -89,22 +79,11 @@ var useOptions = ({ options, extraOptions, inputValue, filterOption, showExtraOp
89
79
  filterOption: filterOption === null || filterOption === void 0 ? void 0 : filterOption.value
90
80
  });
91
81
  }));
92
- const enabledOptionKeys = computed(() => validOptionInfos.value.filter((optionInfo) => !optionInfo.disabled).map((info) => info.key));
93
- const getNextSlotOptionIndex = () => slotOptionInfoMap.size;
94
- const addSlotOptionInfo = (id, optionInfo) => {
95
- slotOptionInfoMap.set(id, optionInfo);
96
- };
97
- const removeSlotOptionInfo = (id) => {
98
- slotOptionInfoMap.delete(id);
99
- };
100
82
  return {
101
83
  validOptions,
102
84
  optionInfoMap,
103
85
  validOptionInfos,
104
- enabledOptionKeys,
105
- getNextSlotOptionIndex,
106
- addSlotOptionInfo,
107
- removeSlotOptionInfo
86
+ enabledOptionKeys: computed(() => validOptionInfos.value.filter((optionInfo) => !optionInfo.disabled).map((info) => info.key))
108
87
  };
109
88
  };
110
89
  //#endregion
@@ -35,7 +35,7 @@ export declare const useSelect: ({ multiple, options, extraOptions, inputValue,
35
35
  };
36
36
  key: string;
37
37
  index?: number | undefined;
38
- origin: "slot" | "options" | "extraOptions";
38
+ origin: "options" | "extraOptions";
39
39
  value: import("../interface").SelectOptionValue;
40
40
  label: string;
41
41
  disabled?: boolean | undefined;
@@ -44,8 +44,6 @@ export declare const useSelect: ({ multiple, options, extraOptions, inputValue,
44
44
  enabledOptionKeys: import("vue").ComputedRef<string[]>;
45
45
  activeKey: Ref<string | undefined, string | undefined>;
46
46
  setActiveKey: (key?: string) => void;
47
- addSlotOptionInfo: (id: number, optionInfo: import("../interface").SelectOptionInfo) => void;
48
- removeSlotOptionInfo: (id: number) => void;
49
47
  getNextActiveKey: (direction: "up" | "down") => string | undefined;
50
48
  scrollIntoView: (key: string) => void;
51
49
  handleKeyDown: (event: KeyboardEvent) => void;
@@ -5,7 +5,7 @@ import { useOptions } from "./use-options.js";
5
5
  import { nextTick, provide, reactive, ref, watch } from "vue";
6
6
  //#region components/select/hooks/use-select.ts
7
7
  var useSelect = ({ multiple, options, extraOptions, inputValue, filterOption, showExtraOptions, component, valueKey, fieldNames, loading, popupVisible, valueKeys, dropdownRef, optionRefs, virtualListRef, onSelect, onPopupVisibleChange, enterToOpen = true, defaultActiveFirstOption }) => {
8
- const { validOptions, optionInfoMap, validOptionInfos, enabledOptionKeys, getNextSlotOptionIndex, addSlotOptionInfo, removeSlotOptionInfo } = useOptions({
8
+ const { validOptions, optionInfoMap, validOptionInfos, enabledOptionKeys } = useOptions({
9
9
  options,
10
10
  extraOptions,
11
11
  inputValue,
@@ -106,10 +106,7 @@ var useSelect = ({ multiple, options, extraOptions, inputValue, filterOption, sh
106
106
  valueKeys,
107
107
  activeKey,
108
108
  setActiveKey,
109
- onSelect,
110
- getNextSlotOptionIndex,
111
- addSlotOptionInfo,
112
- removeSlotOptionInfo
109
+ onSelect
113
110
  }));
114
111
  return {
115
112
  validOptions,
@@ -118,8 +115,6 @@ var useSelect = ({ multiple, options, extraOptions, inputValue, filterOption, sh
118
115
  enabledOptionKeys,
119
116
  activeKey,
120
117
  setActiveKey,
121
- addSlotOptionInfo,
122
- removeSlotOptionInfo,
123
118
  getNextActiveKey,
124
119
  scrollIntoView,
125
120
  handleKeyDown