@aifuxi/semi-ui-vue 0.1.0-alpha.0

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 (609) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +22 -0
  3. package/dist/Button-RCaDTqHh.js +249 -0
  4. package/dist/Collapsible-DeV0aJ4n.js +199 -0
  5. package/dist/Cropper-Dy1LPBDN.js +587 -0
  6. package/dist/Divider-BQmwhGfH.js +57 -0
  7. package/dist/Input-BYWFIgNn.js +593 -0
  8. package/dist/InputNumber-BaeViVtG.js +856 -0
  9. package/dist/Modal-BhmFYVFw.js +975 -0
  10. package/dist/Pagination-4JvS-gHR.js +572 -0
  11. package/dist/Progress-BulSV_JR.js +523 -0
  12. package/dist/SBOM.spdx.json +165 -0
  13. package/dist/SelectOption-Ce-Lst-e.js +1473 -0
  14. package/dist/Slider-w9sbxzBw.js +707 -0
  15. package/dist/Spin-CuFLkqev.js +222 -0
  16. package/dist/THIRD_PARTY_LICENSES/Semi-Design.txt +83 -0
  17. package/dist/THIRD_PARTY_LICENSES/async-validator.txt +9 -0
  18. package/dist/THIRD_PARTY_LICENSES/bezier-easing.txt +22 -0
  19. package/dist/THIRD_PARTY_LICENSES/date-fns-tz.txt +21 -0
  20. package/dist/THIRD_PARTY_LICENSES/date-fns.txt +21 -0
  21. package/dist/THIRD_PARTY_LICENSES/lodash.txt +47 -0
  22. package/dist/THIRD_PARTY_LICENSES/scroll-into-view-if-needed.txt +21 -0
  23. package/dist/THIRD_PARTY_NOTICES.md +23 -0
  24. package/dist/Tooltip-Bq7HZwnS.js +1321 -0
  25. package/dist/Tree-tqy5xBYJ.js +1275 -0
  26. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  27. package/dist/anchor/Anchor.vue.d.ts +29 -0
  28. package/dist/anchor/AnchorLink.vue.d.ts +16 -0
  29. package/dist/anchor/AnchorNodeRenderer.d.ts +15 -0
  30. package/dist/anchor/anchor-context.d.ts +18 -0
  31. package/dist/anchor/index.d.ts +11 -0
  32. package/dist/anchor/index.js +2 -0
  33. package/dist/anchor/types.d.ts +43 -0
  34. package/dist/anchor-DW0p2t-I.js +503 -0
  35. package/dist/arrayMove-ByVCXfhS.js +7 -0
  36. package/dist/auto-complete/AutoComplete.vue.d.ts +33 -0
  37. package/dist/auto-complete/AutoCompleteNodeRenderer.d.ts +15 -0
  38. package/dist/auto-complete/AutoCompleteOption.vue.d.ts +19 -0
  39. package/dist/auto-complete/index.d.ts +10 -0
  40. package/dist/auto-complete/index.js +2 -0
  41. package/dist/auto-complete/types.d.ts +117 -0
  42. package/dist/auto-complete/use-auto-complete-foundation.d.ts +40 -0
  43. package/dist/auto-complete-BeahBlt9.js +765 -0
  44. package/dist/avatar/Avatar.vue.d.ts +26 -0
  45. package/dist/avatar/AvatarGroup.d.ts +54 -0
  46. package/dist/avatar/AvatarNodeRenderer.d.ts +15 -0
  47. package/dist/avatar/TopSlotSvg.vue.d.ts +7 -0
  48. package/dist/avatar/index.d.ts +10 -0
  49. package/dist/avatar/index.js +2 -0
  50. package/dist/avatar/types.d.ts +86 -0
  51. package/dist/avatar-B00xjEzD.js +551 -0
  52. package/dist/back-top/BackTop.vue.d.ts +19 -0
  53. package/dist/back-top/index.d.ts +3 -0
  54. package/dist/back-top/index.js +2 -0
  55. package/dist/back-top/types.d.ts +15 -0
  56. package/dist/back-top-C2XqUzoN.js +123 -0
  57. package/dist/badge/Badge.vue.d.ts +23 -0
  58. package/dist/badge/BadgeNodeRenderer.d.ts +15 -0
  59. package/dist/badge/index.d.ts +6 -0
  60. package/dist/badge/index.js +2 -0
  61. package/dist/badge/types.d.ts +29 -0
  62. package/dist/badge-gWsDkzyt.js +120 -0
  63. package/dist/banner/Banner.vue.d.ts +19 -0
  64. package/dist/banner/BannerNodeRenderer.d.ts +15 -0
  65. package/dist/banner/index.d.ts +6 -0
  66. package/dist/banner/index.js +2 -0
  67. package/dist/banner/types.d.ts +25 -0
  68. package/dist/banner-B3O4uDoR.js +220 -0
  69. package/dist/breadcrumb/Breadcrumb.d.ts +129 -0
  70. package/dist/breadcrumb/BreadcrumbIconRenderer.d.ts +23 -0
  71. package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +19 -0
  72. package/dist/breadcrumb/BreadcrumbNodeRenderer.d.ts +15 -0
  73. package/dist/breadcrumb/BreadcrumbPopover.vue.d.ts +17 -0
  74. package/dist/breadcrumb/BreadcrumbPopoverArrow.vue.d.ts +3 -0
  75. package/dist/breadcrumb/breadcrumb-context.d.ts +9 -0
  76. package/dist/breadcrumb/index.d.ts +11 -0
  77. package/dist/breadcrumb/index.js +2 -0
  78. package/dist/breadcrumb/types.d.ts +72 -0
  79. package/dist/breadcrumb-BmBbFmGK.js +451 -0
  80. package/dist/button/Button.vue.d.ts +34 -0
  81. package/dist/button/ButtonAiLoadingIcon.vue.d.ts +3 -0
  82. package/dist/button/ButtonGroup.d.ts +69 -0
  83. package/dist/button/ButtonIconRenderer.d.ts +28 -0
  84. package/dist/button/ButtonLoadingIcon.vue.d.ts +3 -0
  85. package/dist/button/SplitButtonGroup.vue.d.ts +16 -0
  86. package/dist/button/index.d.ts +5 -0
  87. package/dist/button/index.js +3 -0
  88. package/dist/button/types.d.ts +57 -0
  89. package/dist/button-Rcn5pYGh.js +134 -0
  90. package/dist/calendar/Calendar.vue.d.ts +29 -0
  91. package/dist/calendar/CalendarDay.vue.d.ts +3 -0
  92. package/dist/calendar/CalendarMonth.vue.d.ts +3 -0
  93. package/dist/calendar/CalendarNodeRenderer.d.ts +15 -0
  94. package/dist/calendar/CalendarTimeColumn.vue.d.ts +6 -0
  95. package/dist/calendar/CalendarWeek.vue.d.ts +8 -0
  96. package/dist/calendar/index.d.ts +6 -0
  97. package/dist/calendar/index.js +2 -0
  98. package/dist/calendar/types.d.ts +67 -0
  99. package/dist/calendar-CJTrr4y5.js +1172 -0
  100. package/dist/card/Card.vue.d.ts +16 -0
  101. package/dist/card/CardGroup.vue.d.ts +13 -0
  102. package/dist/card/CardMeta.vue.d.ts +11 -0
  103. package/dist/card/CardNodeRenderer.d.ts +15 -0
  104. package/dist/card/CardSkeleton.vue.d.ts +3 -0
  105. package/dist/card/card-content.d.ts +2 -0
  106. package/dist/card/index.d.ts +11 -0
  107. package/dist/card/index.js +2 -0
  108. package/dist/card/types.d.ts +56 -0
  109. package/dist/card-DwMOFi6_.js +348 -0
  110. package/dist/carousel/Carousel.vue.d.ts +29 -0
  111. package/dist/carousel/CarouselArrow.vue.d.ts +15 -0
  112. package/dist/carousel/CarouselIndicator.vue.d.ts +17 -0
  113. package/dist/carousel/CarouselItemRenderer.d.ts +34 -0
  114. package/dist/carousel/CarouselNodeRenderer.d.ts +15 -0
  115. package/dist/carousel/index.d.ts +6 -0
  116. package/dist/carousel/index.js +2 -0
  117. package/dist/carousel/types.d.ts +70 -0
  118. package/dist/carousel/use-carousel-foundation.d.ts +19 -0
  119. package/dist/carousel-B4WlIRJH.js +458 -0
  120. package/dist/cascader/Cascader.vue.d.ts +71 -0
  121. package/dist/cascader/CascaderNodeRenderer.d.ts +15 -0
  122. package/dist/cascader/CascaderPanel.vue.d.ts +36 -0
  123. package/dist/cascader/index.d.ts +6 -0
  124. package/dist/cascader/index.js +2 -0
  125. package/dist/cascader/types.d.ts +192 -0
  126. package/dist/cascader-Ch6clCeh.js +1525 -0
  127. package/dist/checkbox/Checkbox.vue.d.ts +19 -0
  128. package/dist/checkbox/CheckboxGroup.d.ts +161 -0
  129. package/dist/checkbox/CheckboxNodeRenderer.d.ts +15 -0
  130. package/dist/checkbox/checkbox-context.d.ts +11 -0
  131. package/dist/checkbox/index.d.ts +10 -0
  132. package/dist/checkbox/index.js +2 -0
  133. package/dist/checkbox/types.d.ts +92 -0
  134. package/dist/checkbox-mJD1ou6k.js +479 -0
  135. package/dist/collapse/Collapse.vue.d.ts +140 -0
  136. package/dist/collapse/CollapseNodeRenderer.d.ts +15 -0
  137. package/dist/collapse/CollapsePanel.vue.d.ts +99 -0
  138. package/dist/collapse/collapse-context.d.ts +14 -0
  139. package/dist/collapse/index.d.ts +10 -0
  140. package/dist/collapse/index.js +2 -0
  141. package/dist/collapse/types.d.ts +50 -0
  142. package/dist/collapse-7YtQLWqt.js +278 -0
  143. package/dist/collapsible/Collapsible.vue.d.ts +136 -0
  144. package/dist/collapsible/index.d.ts +5 -0
  145. package/dist/collapsible/index.js +5 -0
  146. package/dist/collapsible/types.d.ts +28 -0
  147. package/dist/color-picker/AlphaSlider.vue.d.ts +14 -0
  148. package/dist/color-picker/ColorChooseArea.vue.d.ts +20 -0
  149. package/dist/color-picker/ColorDataPart.vue.d.ts +15 -0
  150. package/dist/color-picker/ColorPicker.vue.d.ts +28 -0
  151. package/dist/color-picker/ColorPickerNodeRenderer.d.ts +17 -0
  152. package/dist/color-picker/ColorPickerPanel.vue.d.ts +37 -0
  153. package/dist/color-picker/ColorSlider.vue.d.ts +13 -0
  154. package/dist/color-picker/index.d.ts +10 -0
  155. package/dist/color-picker/index.js +2 -0
  156. package/dist/color-picker/types.d.ts +67 -0
  157. package/dist/color-picker-ChC7qsx0.js +885 -0
  158. package/dist/config-context-CyynTtDb.js +4 -0
  159. package/dist/config-provider/ConfigConsumer.vue.d.ts +11 -0
  160. package/dist/config-provider/ConfigProvider.vue.d.ts +16 -0
  161. package/dist/config-provider/config-context.d.ts +3 -0
  162. package/dist/config-provider/constants.d.ts +4 -0
  163. package/dist/config-provider/index.d.ts +13 -0
  164. package/dist/config-provider/index.js +3 -0
  165. package/dist/config-provider/semi-global.d.ts +6 -0
  166. package/dist/config-provider/types.d.ts +74 -0
  167. package/dist/config-provider/use-responsive-observe.d.ts +6 -0
  168. package/dist/config-provider-VMfNNSF1.js +188 -0
  169. package/dist/constants-BF9bZJyc.js +45 -0
  170. package/dist/constants-BNwzO87W.js +9 -0
  171. package/dist/cropper/Cropper.vue.d.ts +18 -0
  172. package/dist/cropper/index.d.ts +4 -0
  173. package/dist/cropper/index.js +5 -0
  174. package/dist/cropper/types.d.ts +51 -0
  175. package/dist/date-picker/DatePicker.vue.d.ts +41 -0
  176. package/dist/date-picker/DatePickerMonth.vue.d.ts +25 -0
  177. package/dist/date-picker/DatePickerNodeRenderer.d.ts +17 -0
  178. package/dist/date-picker/DatePickerPanel.vue.d.ts +33 -0
  179. package/dist/date-picker/index.d.ts +5 -0
  180. package/dist/date-picker/index.js +2 -0
  181. package/dist/date-picker/types.d.ts +211 -0
  182. package/dist/date-picker-B2lhlKHD.js +2207 -0
  183. package/dist/descriptions/Descriptions.vue.d.ts +96 -0
  184. package/dist/descriptions/DescriptionsItem.vue.d.ts +96 -0
  185. package/dist/descriptions/DescriptionsNodeRenderer.d.ts +15 -0
  186. package/dist/descriptions/descriptions-context.d.ts +7 -0
  187. package/dist/descriptions/index.d.ts +10 -0
  188. package/dist/descriptions/index.js +2 -0
  189. package/dist/descriptions/types.d.ts +45 -0
  190. package/dist/descriptions-BU6ahbge.js +272 -0
  191. package/dist/divider/Divider.vue.d.ts +15 -0
  192. package/dist/divider/DividerContentRenderer.d.ts +17 -0
  193. package/dist/divider/index.d.ts +3 -0
  194. package/dist/divider/index.js +3 -0
  195. package/dist/divider/types.d.ts +13 -0
  196. package/dist/divider-DA9U4uOl.js +8 -0
  197. package/dist/dropdown/Dropdown.vue.d.ts +23 -0
  198. package/dist/dropdown/DropdownDivider.vue.d.ts +4 -0
  199. package/dist/dropdown/DropdownItem.vue.d.ts +28 -0
  200. package/dist/dropdown/DropdownMenu.vue.d.ts +11 -0
  201. package/dist/dropdown/DropdownNodeRenderer.d.ts +15 -0
  202. package/dist/dropdown/DropdownTitle.vue.d.ts +11 -0
  203. package/dist/dropdown/DropdownTriggerRenderer.d.ts +45 -0
  204. package/dist/dropdown/dropdown-context.d.ts +8 -0
  205. package/dist/dropdown/index.d.ts +17 -0
  206. package/dist/dropdown/index.js +2 -0
  207. package/dist/dropdown/types.d.ts +98 -0
  208. package/dist/dropdown-D0-UWd65.js +665 -0
  209. package/dist/empty/Empty.vue.d.ts +13 -0
  210. package/dist/empty/EmptyNodeRenderer.d.ts +15 -0
  211. package/dist/empty/index.d.ts +6 -0
  212. package/dist/empty/index.js +2 -0
  213. package/dist/empty/types.d.ts +27 -0
  214. package/dist/empty-Bpms8Z5w.js +152 -0
  215. package/dist/env-BeIzjQx7.js +4 -0
  216. package/dist/es-CAWQuPuV.js +93 -0
  217. package/dist/float-button/FloatButton.vue.d.ts +20 -0
  218. package/dist/float-button/FloatButtonBadge.vue.d.ts +18 -0
  219. package/dist/float-button/FloatButtonGroup.vue.d.ts +17 -0
  220. package/dist/float-button/FloatButtonNodeRenderer.d.ts +17 -0
  221. package/dist/float-button/index.d.ts +4 -0
  222. package/dist/float-button/index.js +2 -0
  223. package/dist/float-button/types.d.ts +59 -0
  224. package/dist/float-button-qU3b0WBX.js +190 -0
  225. package/dist/form/ArrayField.d.ts +24 -0
  226. package/dist/form/Form.vue.d.ts +38 -0
  227. package/dist/form/FormErrorMessage.vue.d.ts +4 -0
  228. package/dist/form/FormField.d.ts +9 -0
  229. package/dist/form/FormInputGroup.d.ts +62 -0
  230. package/dist/form/FormLabel.vue.d.ts +18 -0
  231. package/dist/form/FormNodeRenderer.d.ts +15 -0
  232. package/dist/form/FormSection.vue.d.ts +16 -0
  233. package/dist/form/FormSlot.d.ts +3 -0
  234. package/dist/form/form-context.d.ts +4 -0
  235. package/dist/form/index.d.ts +68 -0
  236. package/dist/form/index.js +3 -0
  237. package/dist/form/internal-types.d.ts +67 -0
  238. package/dist/form/types.d.ts +273 -0
  239. package/dist/form/use-form.d.ts +11 -0
  240. package/dist/form/with-form.d.ts +3 -0
  241. package/dist/form-CLhGuORQ.js +2030 -0
  242. package/dist/foundation-Cawx37mp.js +1819 -0
  243. package/dist/grid/Col.vue.d.ts +13 -0
  244. package/dist/grid/Row.vue.d.ts +14 -0
  245. package/dist/grid/grid-context.d.ts +6 -0
  246. package/dist/grid/index.d.ts +5 -0
  247. package/dist/grid/index.js +2 -0
  248. package/dist/grid/media-query.d.ts +2 -0
  249. package/dist/grid/types.d.ts +44 -0
  250. package/dist/grid-Cn2uBhRd.js +161 -0
  251. package/dist/highlight/Highlight.vue.d.ts +10 -0
  252. package/dist/highlight/HighlightNodeRenderer.d.ts +49 -0
  253. package/dist/highlight/index.d.ts +4 -0
  254. package/dist/highlight/index.js +2 -0
  255. package/dist/highlight/internal-types.d.ts +8 -0
  256. package/dist/highlight/types.d.ts +17 -0
  257. package/dist/highlight-DHX3RV0C.js +158 -0
  258. package/dist/icon/index.d.ts +2 -0
  259. package/dist/icon/index.js +2 -0
  260. package/dist/image/Image.vue.d.ts +21 -0
  261. package/dist/image/ImageNodeRenderer.d.ts +15 -0
  262. package/dist/image/ImagePreview.vue.d.ts +56 -0
  263. package/dist/image/ImagePreviewFooter.vue.d.ts +38 -0
  264. package/dist/image/ImagePreviewHeader.vue.d.ts +17 -0
  265. package/dist/image/ImagePreviewImage.vue.d.ts +27 -0
  266. package/dist/image/ImagePreviewInner.vue.d.ts +54 -0
  267. package/dist/image/image-context.d.ts +14 -0
  268. package/dist/image/index.d.ts +6 -0
  269. package/dist/image/index.js +2 -0
  270. package/dist/image/types.d.ts +183 -0
  271. package/dist/image-C-ifCh_9.js +1615 -0
  272. package/dist/index.d.ts +68 -0
  273. package/dist/index.js +75 -0
  274. package/dist/input/Input.vue.d.ts +58 -0
  275. package/dist/input/InputGroup.d.ts +69 -0
  276. package/dist/input/InputNodeRenderer.d.ts +15 -0
  277. package/dist/input/TextArea.vue.d.ts +50 -0
  278. package/dist/input/index.d.ts +11 -0
  279. package/dist/input/index.js +2 -0
  280. package/dist/input/types.d.ts +168 -0
  281. package/dist/input-number/InputNumber.vue.d.ts +52 -0
  282. package/dist/input-number/index.d.ts +10 -0
  283. package/dist/input-number/index.js +5 -0
  284. package/dist/input-number/types.d.ts +56 -0
  285. package/dist/input-wf0nZCRS.js +747 -0
  286. package/dist/isBefore-BG1hiM9f.js +37 -0
  287. package/dist/isElement-Cx0AsIov.js +11 -0
  288. package/dist/isEnterPress-HTy0eCBp.js +8 -0
  289. package/dist/isNullOrUndefined-Cg6MZ8r3.js +6 -0
  290. package/dist/isPromise-D2v3Ejff.js +11 -0
  291. package/dist/keyCode-DMNg63wX.js +110 -0
  292. package/dist/layout/Layout.vue.d.ts +14 -0
  293. package/dist/layout/LayoutContent.vue.d.ts +14 -0
  294. package/dist/layout/LayoutFooter.vue.d.ts +14 -0
  295. package/dist/layout/LayoutHeader.vue.d.ts +14 -0
  296. package/dist/layout/LayoutSection.vue.d.ts +17 -0
  297. package/dist/layout/LayoutSider.vue.d.ts +18 -0
  298. package/dist/layout/index.d.ts +17 -0
  299. package/dist/layout/index.js +2 -0
  300. package/dist/layout/layout-context.d.ts +6 -0
  301. package/dist/layout/media-query.d.ts +4 -0
  302. package/dist/layout/types.d.ts +31 -0
  303. package/dist/layout-tq-_l_O3.js +171 -0
  304. package/dist/list/List.vue.d.ts +22 -0
  305. package/dist/list/ListItem.vue.d.ts +88 -0
  306. package/dist/list/ListNodeRenderer.d.ts +15 -0
  307. package/dist/list/ListSpin.vue.d.ts +16 -0
  308. package/dist/list/index.d.ts +10 -0
  309. package/dist/list/index.js +2 -0
  310. package/dist/list/list-context.d.ts +8 -0
  311. package/dist/list/types.d.ts +66 -0
  312. package/dist/list-DHIOE2Y-.js +387 -0
  313. package/dist/modal/ConfirmModal.vue.d.ts +14 -0
  314. package/dist/modal/Modal.vue.d.ts +15 -0
  315. package/dist/modal/ModalDefaultFooter.vue.d.ts +22 -0
  316. package/dist/modal/ModalDialog.vue.d.ts +53 -0
  317. package/dist/modal/ModalInnerContent.vue.d.ts +38 -0
  318. package/dist/modal/ModalNodeRenderer.d.ts +15 -0
  319. package/dist/modal/imperative.d.ts +9 -0
  320. package/dist/modal/index.d.ts +8 -0
  321. package/dist/modal/index.js +2 -0
  322. package/dist/modal/types.d.ts +92 -0
  323. package/dist/modal/use-modal.d.ts +2 -0
  324. package/dist/modal-YVolL7Hz.js +221 -0
  325. package/dist/navigation/CollapseButton.vue.d.ts +12 -0
  326. package/dist/navigation/NavFooter.vue.d.ts +15 -0
  327. package/dist/navigation/NavHeader.vue.d.ts +13 -0
  328. package/dist/navigation/NavItem.d.ts +177 -0
  329. package/dist/navigation/Navigation.vue.d.ts +29 -0
  330. package/dist/navigation/NavigationContextProvider.d.ts +16 -0
  331. package/dist/navigation/NavigationIconRenderer.d.ts +45 -0
  332. package/dist/navigation/NavigationItemTree.vue.d.ts +8 -0
  333. package/dist/navigation/NavigationNodeRenderer.d.ts +18 -0
  334. package/dist/navigation/SubNav.vue.d.ts +18 -0
  335. package/dist/navigation/index.d.ts +14 -0
  336. package/dist/navigation/index.js +2 -0
  337. package/dist/navigation/navigation-context.d.ts +35 -0
  338. package/dist/navigation/types.d.ts +177 -0
  339. package/dist/navigation-DF8R5jFK.js +1479 -0
  340. package/dist/notification/NotificationHost.vue.d.ts +7 -0
  341. package/dist/notification/NotificationNodeRenderer.d.ts +15 -0
  342. package/dist/notification/NotificationNotice.vue.d.ts +16 -0
  343. package/dist/notification/imperative.d.ts +12 -0
  344. package/dist/notification/index.d.ts +6 -0
  345. package/dist/notification/index.js +2 -0
  346. package/dist/notification/notification-store.d.ts +24 -0
  347. package/dist/notification/types.d.ts +63 -0
  348. package/dist/notification/use-notification.d.ts +2 -0
  349. package/dist/notification-DIsvgiIO.js +445 -0
  350. package/dist/overflow-list/OverflowList.vue.d.ts +131 -0
  351. package/dist/overflow-list/OverflowListNodeRenderer.d.ts +35 -0
  352. package/dist/overflow-list/index.d.ts +5 -0
  353. package/dist/overflow-list/index.js +2 -0
  354. package/dist/overflow-list/types.d.ts +35 -0
  355. package/dist/overflow-list-Df6ixrtB.js +413 -0
  356. package/dist/pagination/Pagination.vue.d.ts +25 -0
  357. package/dist/pagination/PaginationNodeRenderer.d.ts +15 -0
  358. package/dist/pagination/PaginationPopover.vue.d.ts +25 -0
  359. package/dist/pagination/PaginationRestList.vue.d.ts +11 -0
  360. package/dist/pagination/index.d.ts +3 -0
  361. package/dist/pagination/index.js +2 -0
  362. package/dist/pagination/types.d.ts +46 -0
  363. package/dist/pin-code/PinCode.vue.d.ts +20 -0
  364. package/dist/pin-code/index.d.ts +10 -0
  365. package/dist/pin-code/index.js +2 -0
  366. package/dist/pin-code/types.d.ts +25 -0
  367. package/dist/pin-code-wY5g0KLD.js +193 -0
  368. package/dist/popconfirm/Popconfirm.vue.d.ts +25 -0
  369. package/dist/popconfirm/PopconfirmNodeRenderer.d.ts +15 -0
  370. package/dist/popconfirm/index.d.ts +4 -0
  371. package/dist/popconfirm/index.js +2 -0
  372. package/dist/popconfirm/types.d.ts +57 -0
  373. package/dist/popconfirm-DQUtvI0A.js +389 -0
  374. package/dist/popover/Popover.vue.d.ts +23 -0
  375. package/dist/popover/PopoverArrow.vue.d.ts +10 -0
  376. package/dist/popover/index.d.ts +4 -0
  377. package/dist/popover/index.js +2 -0
  378. package/dist/popover/types.d.ts +35 -0
  379. package/dist/popover-hD77YpUM.js +292 -0
  380. package/dist/progress/Progress.vue.d.ts +24 -0
  381. package/dist/progress/ProgressCircle.vue.d.ts +26 -0
  382. package/dist/progress/ProgressLine.vue.d.ts +23 -0
  383. package/dist/progress/ProgressNodeRenderer.d.ts +15 -0
  384. package/dist/progress/index.d.ts +6 -0
  385. package/dist/progress/index.js +2 -0
  386. package/dist/progress/types.d.ts +44 -0
  387. package/dist/progress-DIIyWKKD.js +9 -0
  388. package/dist/radio/Radio.vue.d.ts +30 -0
  389. package/dist/radio/RadioGroup.d.ts +201 -0
  390. package/dist/radio/RadioNodeRenderer.d.ts +15 -0
  391. package/dist/radio/index.d.ts +10 -0
  392. package/dist/radio/index.js +2 -0
  393. package/dist/radio/radio-context.d.ts +15 -0
  394. package/dist/radio/types.d.ts +100 -0
  395. package/dist/radio-y9iAI359.js +565 -0
  396. package/dist/rating/Rating.vue.d.ts +39 -0
  397. package/dist/rating/RatingItem.vue.d.ts +33 -0
  398. package/dist/rating/RatingNodeRenderer.d.ts +17 -0
  399. package/dist/rating/index.d.ts +6 -0
  400. package/dist/rating/index.js +2 -0
  401. package/dist/rating/types.d.ts +57 -0
  402. package/dist/rating-CJkb4pkD.js +542 -0
  403. package/dist/resizable/Resizable.vue.d.ts +31 -0
  404. package/dist/resizable/ResizableNodeRenderer.d.ts +17 -0
  405. package/dist/resizable/ResizeGroup.vue.d.ts +13 -0
  406. package/dist/resizable/ResizeHandler.vue.d.ts +11 -0
  407. package/dist/resizable/ResizeItem.vue.d.ts +19 -0
  408. package/dist/resizable/SingleResizeHandle.vue.d.ts +21 -0
  409. package/dist/resizable/index.d.ts +6 -0
  410. package/dist/resizable/index.js +2 -0
  411. package/dist/resizable/resizable-context.d.ts +27 -0
  412. package/dist/resizable/types.d.ts +87 -0
  413. package/dist/resizable/use-resize-group.d.ts +21 -0
  414. package/dist/resizable/use-single-resize.d.ts +30 -0
  415. package/dist/resizable-CEB0ZdGT.js +814 -0
  416. package/dist/scroll-list/ScrollItem.vue.d.ts +21 -0
  417. package/dist/scroll-list/ScrollList.vue.d.ts +11 -0
  418. package/dist/scroll-list/ScrollListNodeRenderer.d.ts +15 -0
  419. package/dist/scroll-list/index.d.ts +10 -0
  420. package/dist/scroll-list/index.js +2 -0
  421. package/dist/scroll-list/types.d.ts +54 -0
  422. package/dist/scroll-list-BSXksNOR.js +466 -0
  423. package/dist/select/Select.vue.d.ts +39 -0
  424. package/dist/select/SelectFragment.d.ts +4 -0
  425. package/dist/select/SelectNodeRenderer.d.ts +15 -0
  426. package/dist/select/SelectOption.vue.d.ts +13 -0
  427. package/dist/select/SelectOptionCollector.d.ts +13 -0
  428. package/dist/select/SelectOptionGroup.vue.d.ts +14 -0
  429. package/dist/select/index.d.ts +12 -0
  430. package/dist/select/index.js +3 -0
  431. package/dist/select/types.d.ts +165 -0
  432. package/dist/select/use-select-foundation.d.ts +64 -0
  433. package/dist/select-BeM6gxAU.js +40 -0
  434. package/dist/side-sheet/SideSheet.vue.d.ts +19 -0
  435. package/dist/side-sheet/SideSheetContent.vue.d.ts +37 -0
  436. package/dist/side-sheet/SideSheetNodeRenderer.d.ts +15 -0
  437. package/dist/side-sheet/index.d.ts +4 -0
  438. package/dist/side-sheet/index.js +2 -0
  439. package/dist/side-sheet/types.d.ts +46 -0
  440. package/dist/side-sheet-9CBTk23r.js +542 -0
  441. package/dist/skeleton/Skeleton.vue.d.ts +15 -0
  442. package/dist/skeleton/SkeletonAvatar.vue.d.ts +9 -0
  443. package/dist/skeleton/SkeletonButton.vue.d.ts +7 -0
  444. package/dist/skeleton/SkeletonImage.vue.d.ts +7 -0
  445. package/dist/skeleton/SkeletonNodeRenderer.d.ts +15 -0
  446. package/dist/skeleton/SkeletonParagraph.vue.d.ts +8 -0
  447. package/dist/skeleton/SkeletonTitle.vue.d.ts +7 -0
  448. package/dist/skeleton/index.d.ts +18 -0
  449. package/dist/skeleton/index.js +2 -0
  450. package/dist/skeleton/types.d.ts +36 -0
  451. package/dist/skeleton-p61lfhoz.js +302 -0
  452. package/dist/slider/Slider.vue.d.ts +32 -0
  453. package/dist/slider/SliderFragment.d.ts +4 -0
  454. package/dist/slider/index.d.ts +5 -0
  455. package/dist/slider/index.js +5 -0
  456. package/dist/slider/types.d.ts +57 -0
  457. package/dist/slider/use-slider-foundation.d.ts +47 -0
  458. package/dist/space/Space.vue.d.ts +16 -0
  459. package/dist/space/index.d.ts +3 -0
  460. package/dist/space/index.js +2 -0
  461. package/dist/space/types.d.ts +15 -0
  462. package/dist/space-DVnFbkCz.js +63 -0
  463. package/dist/spin/Spin.vue.d.ts +105 -0
  464. package/dist/spin/SpinNodeRenderer.d.ts +15 -0
  465. package/dist/spin/index.d.ts +6 -0
  466. package/dist/spin/index.js +2 -0
  467. package/dist/spin/types.d.ts +20 -0
  468. package/dist/spin-D-1P0WMW.js +9 -0
  469. package/dist/src-DNBBthjO.js +490 -0
  470. package/dist/steps/Step.vue.d.ts +22 -0
  471. package/dist/steps/Steps.vue.d.ts +24 -0
  472. package/dist/steps/StepsNodeRenderer.d.ts +17 -0
  473. package/dist/steps/index.d.ts +9 -0
  474. package/dist/steps/index.js +2 -0
  475. package/dist/steps/steps-context.d.ts +6 -0
  476. package/dist/steps/types.d.ts +54 -0
  477. package/dist/steps-6p04q-Lz.js +303 -0
  478. package/dist/switch/Switch.vue.d.ts +27 -0
  479. package/dist/switch/SwitchNodeRenderer.d.ts +15 -0
  480. package/dist/switch/SwitchSpin.vue.d.ts +7 -0
  481. package/dist/switch/index.d.ts +7 -0
  482. package/dist/switch/index.js +2 -0
  483. package/dist/switch/types.d.ts +28 -0
  484. package/dist/switch-Dte2Fl3l.js +284 -0
  485. package/dist/table/Table.vue.d.ts +29 -0
  486. package/dist/table/TableBody.vue.d.ts +70 -0
  487. package/dist/table/TableCell.vue.d.ts +37 -0
  488. package/dist/table/TableColumn.d.ts +81 -0
  489. package/dist/table/TableFilterMenu.vue.d.ts +18 -0
  490. package/dist/table/TableHeader.vue.d.ts +46 -0
  491. package/dist/table/TableNativeElement.d.ts +9 -0
  492. package/dist/table/TableNodeRenderer.d.ts +13 -0
  493. package/dist/table/TableSpin.vue.d.ts +16 -0
  494. package/dist/table/index.d.ts +13 -0
  495. package/dist/table/index.js +2 -0
  496. package/dist/table/table-utils.d.ts +43 -0
  497. package/dist/table/types.d.ts +323 -0
  498. package/dist/table-jZkHjf-W.js +2097 -0
  499. package/dist/tabs/TabBar.vue.d.ts +38 -0
  500. package/dist/tabs/TabItem.vue.d.ts +26 -0
  501. package/dist/tabs/TabPane.vue.d.ts +13 -0
  502. package/dist/tabs/Tabs.vue.d.ts +36 -0
  503. package/dist/tabs/TabsDropdown.vue.d.ts +27 -0
  504. package/dist/tabs/TabsNodeRenderer.d.ts +15 -0
  505. package/dist/tabs/index.d.ts +6 -0
  506. package/dist/tabs/index.js +2 -0
  507. package/dist/tabs/tabs-context.d.ts +12 -0
  508. package/dist/tabs/types.d.ts +110 -0
  509. package/dist/tabs-CezuYzIu.js +874 -0
  510. package/dist/tag/SplitTagGroup.d.ts +36 -0
  511. package/dist/tag/Tag.vue.d.ts +33 -0
  512. package/dist/tag/TagGroup.d.ts +115 -0
  513. package/dist/tag/TagNodeRenderer.d.ts +15 -0
  514. package/dist/tag/index.d.ts +8 -0
  515. package/dist/tag/index.js +2 -0
  516. package/dist/tag/types.d.ts +82 -0
  517. package/dist/tag-BPD0bELU.js +348 -0
  518. package/dist/tag-input/TagInput.vue.d.ts +51 -0
  519. package/dist/tag-input/TagInputNodeRenderer.d.ts +17 -0
  520. package/dist/tag-input/TagInputRestPopover.vue.d.ts +19 -0
  521. package/dist/tag-input/TagInputTag.vue.d.ts +27 -0
  522. package/dist/tag-input/index.d.ts +5 -0
  523. package/dist/tag-input/index.js +2 -0
  524. package/dist/tag-input/types.d.ts +95 -0
  525. package/dist/tag-input/use-tag-input-foundation.d.ts +47 -0
  526. package/dist/tag-input-SxUfNqF0.js +784 -0
  527. package/dist/time-picker/TimePicker.vue.d.ts +27 -0
  528. package/dist/time-picker/TimePickerColumn.vue.d.ts +29 -0
  529. package/dist/time-picker/TimePickerNodeRenderer.d.ts +17 -0
  530. package/dist/time-picker/TimePickerPanel.vue.d.ts +32 -0
  531. package/dist/time-picker/index.d.ts +5 -0
  532. package/dist/time-picker/index.js +2 -0
  533. package/dist/time-picker/types.d.ts +146 -0
  534. package/dist/time-picker/use-time-picker-foundation.d.ts +36 -0
  535. package/dist/time-picker-D6p36ea8.js +3587 -0
  536. package/dist/timeline/Timeline.vue.d.ts +69 -0
  537. package/dist/timeline/TimelineItem.vue.d.ts +100 -0
  538. package/dist/timeline/TimelineNodeRenderer.d.ts +15 -0
  539. package/dist/timeline/index.d.ts +10 -0
  540. package/dist/timeline/index.js +2 -0
  541. package/dist/timeline/types.d.ts +43 -0
  542. package/dist/timeline-2D5xCZsU.js +191 -0
  543. package/dist/toast/ToastHost.vue.d.ts +7 -0
  544. package/dist/toast/ToastIconRenderer.d.ts +17 -0
  545. package/dist/toast/ToastNodeRenderer.d.ts +15 -0
  546. package/dist/toast/ToastNotice.vue.d.ts +20 -0
  547. package/dist/toast/imperative.d.ts +3 -0
  548. package/dist/toast/index.d.ts +6 -0
  549. package/dist/toast/index.js +2 -0
  550. package/dist/toast/toast-store.d.ts +30 -0
  551. package/dist/toast/types.d.ts +65 -0
  552. package/dist/toast/use-toast.d.ts +2 -0
  553. package/dist/toast-s8nFLf8t.js +523 -0
  554. package/dist/tooltip/Tooltip.vue.d.ts +23 -0
  555. package/dist/tooltip/TooltipArrow.vue.d.ts +8 -0
  556. package/dist/tooltip/TooltipNodeRenderer.d.ts +15 -0
  557. package/dist/tooltip/TooltipPortal.vue.d.ts +44 -0
  558. package/dist/tooltip/TooltipTriggerRenderer.d.ts +66 -0
  559. package/dist/tooltip/index.d.ts +5 -0
  560. package/dist/tooltip/index.js +3 -0
  561. package/dist/tooltip/types.d.ts +117 -0
  562. package/dist/tooltip/use-tooltip-foundation.d.ts +25 -0
  563. package/dist/tooltip-en9bvXRp.js +28 -0
  564. package/dist/transfer/Transfer.vue.d.ts +35 -0
  565. package/dist/transfer/TransferNodeRenderer.d.ts +15 -0
  566. package/dist/transfer/index.d.ts +5 -0
  567. package/dist/transfer/index.js +2 -0
  568. package/dist/transfer/types.d.ts +159 -0
  569. package/dist/transfer-Doq1sI9z.js +695 -0
  570. package/dist/tree/Tree.vue.d.ts +73 -0
  571. package/dist/tree/TreeNode.vue.d.ts +77 -0
  572. package/dist/tree/TreeNodeMotion.vue.d.ts +20 -0
  573. package/dist/tree/TreeNodeRenderer.d.ts +15 -0
  574. package/dist/tree/index.d.ts +9 -0
  575. package/dist/tree/index.js +5 -0
  576. package/dist/tree/types.d.ts +180 -0
  577. package/dist/tree-select/TreeSelect.vue.d.ts +76 -0
  578. package/dist/tree-select/TreeSelectNodeRenderer.d.ts +15 -0
  579. package/dist/tree-select/index.d.ts +6 -0
  580. package/dist/tree-select/index.js +2 -0
  581. package/dist/tree-select/types.d.ts +156 -0
  582. package/dist/tree-select-BIu6Owuq.js +1237 -0
  583. package/dist/treeUtil-IUdRJ6Ws.js +277 -0
  584. package/dist/typography/Numeral.vue.d.ts +32 -0
  585. package/dist/typography/Paragraph.vue.d.ts +30 -0
  586. package/dist/typography/Text.vue.d.ts +30 -0
  587. package/dist/typography/Title.vue.d.ts +28 -0
  588. package/dist/typography/Typography.vue.d.ts +13 -0
  589. package/dist/typography/TypographyBase.vue.d.ts +40 -0
  590. package/dist/typography/TypographyCopyable.vue.d.ts +29 -0
  591. package/dist/typography/TypographyDecorations.d.ts +34 -0
  592. package/dist/typography/TypographyNodeRenderer.d.ts +17 -0
  593. package/dist/typography/index.d.ts +17 -0
  594. package/dist/typography/index.js +2 -0
  595. package/dist/typography/types.d.ts +108 -0
  596. package/dist/typography/typography-locale.d.ts +5 -0
  597. package/dist/typography/typography-utils.d.ts +4 -0
  598. package/dist/typography-DF8KwKuL.js +914 -0
  599. package/dist/upload/Upload.vue.d.ts +69 -0
  600. package/dist/upload/UploadFileCard.vue.d.ts +4 -0
  601. package/dist/upload/UploadNodeRenderer.d.ts +15 -0
  602. package/dist/upload/index.d.ts +10 -0
  603. package/dist/upload/index.js +2 -0
  604. package/dist/upload/types.d.ts +250 -0
  605. package/dist/upload-BzdpoGJX.js +1777 -0
  606. package/dist/uuid-BUHV1G8U.js +21 -0
  607. package/dist/warning-naSiE8G7.js +6 -0
  608. package/dist/zh-CN-CCu7YvUA.js +1623 -0
  609. package/package.json +336 -0
@@ -0,0 +1,8 @@
1
+ //#region \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ //#endregion
8
+ export { e as t };
@@ -0,0 +1,29 @@
1
+ import { AnchorProps, AnchorSlots } from './types';
2
+ type __VLS_Slots = AnchorSlots;
3
+ declare const __VLS_base: import('vue').DefineComponent<AnchorProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ click: (event: MouseEvent | KeyboardEvent, currentLink: string) => any;
5
+ change: (currentLink: string, previousLink: string) => any;
6
+ }, string, import('vue').PublicProps, Readonly<AnchorProps> & Readonly<{
7
+ onClick?: (event: MouseEvent | KeyboardEvent, currentLink: string) => any;
8
+ onChange?: (currentLink: string, previousLink: string) => any;
9
+ }>, {
10
+ className: string;
11
+ size: import('./types').AnchorSize;
12
+ maxHeight: string | number;
13
+ maxWidth: string | number;
14
+ showTooltip: import('./types').AnchorShowTooltip;
15
+ autoCollapse: boolean;
16
+ defaultAnchor: string;
17
+ offsetTop: number;
18
+ railTheme: import('./types').AnchorRailTheme;
19
+ scrollMotion: boolean;
20
+ targetOffset: number;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,16 @@
1
+ import { AnchorLinkProps, AnchorLinkSlots } from './types';
2
+ type __VLS_Slots = AnchorLinkSlots;
3
+ declare const __VLS_base: import('vue').DefineComponent<AnchorLinkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AnchorLinkProps> & Readonly<{}>, {
4
+ className: string;
5
+ disabled: boolean;
6
+ title: import('vue').VNodeChild;
7
+ href: string;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
@@ -0,0 +1,15 @@
1
+ import { PropType, VNodeChild } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ content: {
4
+ type: PropType<VNodeChild>;
5
+ default: undefined;
6
+ };
7
+ }>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
8
+ content: {
9
+ type: PropType<VNodeChild>;
10
+ default: undefined;
11
+ };
12
+ }>> & Readonly<{}>, {
13
+ content: VNodeChild;
14
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ import { ConfigDirection } from '../config-provider';
3
+ import { AnchorPosition, AnchorShowTooltip, AnchorSize } from './types';
4
+ export interface AnchorContextValue {
5
+ activeLink: ComputedRef<string>;
6
+ autoCollapse: ComputedRef<boolean>;
7
+ childMap: ComputedRef<Record<string, ReadonlySet<string>>>;
8
+ direction: ComputedRef<ConfigDirection>;
9
+ position: ComputedRef<AnchorPosition | undefined>;
10
+ showTooltip: ComputedRef<AnchorShowTooltip>;
11
+ size: ComputedRef<AnchorSize>;
12
+ addLink(token: symbol, href: string, parentHref?: string): void;
13
+ removeLink(token: symbol, href: string): void;
14
+ onClick(event: MouseEvent | KeyboardEvent, href: string): void;
15
+ }
16
+ export declare const anchorContextKey: InjectionKey<AnchorContextValue>;
17
+ export declare const anchorParentHrefKey: InjectionKey<ComputedRef<string | undefined>>;
18
+ export declare const anchorLevelKey: InjectionKey<ComputedRef<number>>;
@@ -0,0 +1,11 @@
1
+ import { default as AnchorBase } from './Anchor.vue';
2
+ import { default as AnchorLink } from './AnchorLink.vue';
3
+ export type AnchorCompoundComponent = typeof AnchorBase & {
4
+ Link: typeof AnchorLink;
5
+ };
6
+ export declare const Anchor: AnchorCompoundComponent;
7
+ export { AnchorLink };
8
+ export { anchorContextKey } from './anchor-context';
9
+ export { ANCHOR_POSITIONS, ANCHOR_RAIL_THEMES, ANCHOR_SIZES } from './types';
10
+ export type { AnchorEmits, AnchorLinkProps, AnchorLinkSlots, AnchorPosition, AnchorProps, AnchorRailTheme, AnchorShowTooltip, AnchorSize, AnchorSlots, } from './types';
11
+ export default Anchor;
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../anchor-DW0p2t-I.js";
2
+ export { n as ANCHOR_POSITIONS, i as ANCHOR_RAIL_THEMES, t as ANCHOR_SIZES, a as Anchor, a as default, e as AnchorLink, r as anchorContextKey };
@@ -0,0 +1,43 @@
1
+ import { CSSProperties, VNodeChild } from 'vue';
2
+ import { TypographyShowTooltip } from '../typography';
3
+ export declare const ANCHOR_SIZES: readonly ["small", "default"];
4
+ export declare const ANCHOR_RAIL_THEMES: readonly ["primary", "tertiary", "muted"];
5
+ export declare const ANCHOR_POSITIONS: readonly ["top", "topLeft", "topRight", "left", "leftTop", "leftBottom", "right", "rightTop", "rightBottom", "bottom", "bottomLeft", "bottomRight", "leftTopOver", "rightTopOver"];
6
+ export type AnchorSize = (typeof ANCHOR_SIZES)[number];
7
+ export type AnchorRailTheme = (typeof ANCHOR_RAIL_THEMES)[number];
8
+ export type AnchorPosition = (typeof ANCHOR_POSITIONS)[number];
9
+ export type AnchorShowTooltip = boolean | TypographyShowTooltip;
10
+ export interface AnchorProps {
11
+ autoCollapse?: boolean;
12
+ className?: string;
13
+ defaultAnchor?: string;
14
+ getContainer?: () => HTMLElement | Window | null | undefined;
15
+ maxHeight?: string | number;
16
+ maxWidth?: string | number;
17
+ offsetTop?: number;
18
+ position?: AnchorPosition;
19
+ railTheme?: AnchorRailTheme;
20
+ scrollMotion?: boolean;
21
+ showTooltip?: AnchorShowTooltip;
22
+ size?: AnchorSize;
23
+ style?: CSSProperties;
24
+ targetOffset?: number;
25
+ }
26
+ export interface AnchorEmits {
27
+ change: [currentLink: string, previousLink: string];
28
+ click: [event: MouseEvent | KeyboardEvent, currentLink: string];
29
+ }
30
+ export interface AnchorSlots {
31
+ default?: () => VNodeChild;
32
+ }
33
+ export interface AnchorLinkProps {
34
+ className?: string;
35
+ disabled?: boolean;
36
+ href?: string;
37
+ style?: CSSProperties;
38
+ title?: VNodeChild;
39
+ }
40
+ export interface AnchorLinkSlots {
41
+ default?: () => VNodeChild;
42
+ title?: () => VNodeChild;
43
+ }
@@ -0,0 +1,503 @@
1
+ import "./src-DNBBthjO.js";
2
+ import { s as e, t, u as n } from "./foundation-Cawx37mp.js";
3
+ import { t as r } from "./es-CAWQuPuV.js";
4
+ import { t as i } from "./env-BeIzjQx7.js";
5
+ import { u as a } from "./typography-DF8KwKuL.js";
6
+ import { t as o } from "./config-context-CyynTtDb.js";
7
+ import { o as s } from "./config-provider-VMfNNSF1.js";
8
+ import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, inject as h, markRaw as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeStyle as b, onBeforeUnmount as x, onMounted as S, openBlock as C, provide as w, renderSlot as T, shallowReactive as E, shallowRef as D, unref as O, useAttrs as k, useSlots as A, useTemplateRef as j, watch as M, withCtx as N } from "vue";
9
+ //#region bundled-foundation
10
+ var P = { PREFIX: `${i}-anchor` }, F = P.PREFIX, I = class i extends t {
11
+ constructor(t) {
12
+ super({
13
+ ...i.defaultAdapter,
14
+ ...t
15
+ }), this.init = () => {}, this.destroy = () => {}, this.addLink = (e) => {
16
+ this._adapter.addLink(e);
17
+ }, this.removeLink = (e) => {
18
+ this._adapter.removeLink(e);
19
+ }, this.setActiveLink = (e, t, n = !0) => {
20
+ let r = this._adapter.getState("activeLink"), i = this._adapter.getProp("onChange");
21
+ r !== e && (this._adapter.setActiveLink(e, this._setActiveSlide), i && n && this._adapter.notifyChange(e, t));
22
+ }, this.setScrollHeight = () => {
23
+ let e = `.${F}-link-wrapper`, t = this._adapter.getAnchorNode(e);
24
+ if (t) {
25
+ let e = `${t.scrollHeight}px`;
26
+ this._adapter.setScrollHeight(e);
27
+ }
28
+ }, this.updateScrollHeight = (e, t) => {
29
+ e.links.join("") !== t.links.join("") && this.setScrollHeight();
30
+ }, this.setChildMap = () => {
31
+ let e = this._adapter.getProp("children"), t = {};
32
+ if ((0, n.default)(e)) for (let n of e) this._getLinkToMap(n, [], t);
33
+ else this._getLinkToMap(e, [], t);
34
+ this._adapter.setChildMap(t);
35
+ }, this.updateChildMap = (e, t) => {
36
+ e.links.join("") !== t.links.join("") && this.setChildMap();
37
+ }, this.getLinksTop = () => this._adapter.getLinksBoundingTop(), this.handleScroll = () => {
38
+ let { clickLink: e, links: t, activeLink: n } = this.getStates();
39
+ if (e) return;
40
+ let r = this.getLinksTop(), i = -Infinity, a = -1;
41
+ for (let e = 0; e < r.length; e++) r[e] < 0 && r[e] > i && (i = r[e], a = e);
42
+ let o = t[a];
43
+ this.setActiveLink(o, n);
44
+ }, this.handleClick = (e, t, n = !0) => {
45
+ let r = this._adapter.getContentNode(t), i = this._adapter.getState("activeLink");
46
+ if (this.setActiveLink(t, i, n), r) try {
47
+ this._adapter.setClickLinkWithCallBack(!0, t, this._scrollIntoView);
48
+ } catch {}
49
+ n && this._adapter.notifyClick(e, t);
50
+ }, this.handleClickLink = () => {
51
+ this._adapter.setClickLink(!1);
52
+ }, this._getLinkToMap = (e, t, n) => {
53
+ let r = e && e.props;
54
+ if (!(!r || !r.href)) {
55
+ r.href in n || (n[r.href] = /* @__PURE__ */ new Set());
56
+ for (let e of t) n[e].add(r.href);
57
+ if (r.children && r.children.length) {
58
+ t.push(r.href);
59
+ for (let e of r.children) this._getLinkToMap(e, t, n);
60
+ t.pop();
61
+ }
62
+ }
63
+ }, this._scrollIntoView = (t) => {
64
+ let { scrollMotion: n, targetOffset: i } = this.getProps(), a = n ? "smooth" : "auto", o = this._adapter.canSmoothScroll();
65
+ if (t) {
66
+ let n = this._adapter.getContentNode(t);
67
+ n && r(n, {
68
+ behavior: (t) => {
69
+ let n = t.find((e) => {
70
+ let { el: t } = e;
71
+ return t.scrollHeight > t.clientHeight;
72
+ }), r = (0, e.default)(n, "el"), s = (0, e.default)(n, "top");
73
+ if (r) {
74
+ let e = s - i;
75
+ r.scroll && o ? r.scroll({
76
+ top: e,
77
+ behavior: a
78
+ }) : r.scrollTop = e;
79
+ }
80
+ },
81
+ block: "start"
82
+ });
83
+ }
84
+ }, this._setActiveSlide = () => {
85
+ let e = `.${P.PREFIX}-link-title-active`, t = this._adapter.getAnchorNode(e);
86
+ if (t) {
87
+ let e = t.offsetTop;
88
+ this._adapter.setSlideBarTop(e);
89
+ }
90
+ };
91
+ }
92
+ }, L = class extends t {
93
+ constructor(e) {
94
+ super({ ...e });
95
+ }
96
+ init() {}
97
+ destroy() {}
98
+ handleAddLink() {
99
+ let e = this._adapter.getProp("href");
100
+ this._adapter.addLink(e);
101
+ }
102
+ handleUpdateLink(e, t) {
103
+ e !== t && (this._adapter.removeLink(t), this._adapter.addLink(e));
104
+ }
105
+ handleRemoveLink() {
106
+ let e = this._adapter.getProp("href");
107
+ this._adapter.removeLink(e);
108
+ }
109
+ }, R = Symbol("semi-anchor-context"), z = Symbol("semi-anchor-parent-href"), B = Symbol("semi-anchor-level"), V = ["id", "aria-label"], H = /* @__PURE__ */ m({
110
+ name: "Anchor",
111
+ inheritAttrs: !1,
112
+ __name: "Anchor",
113
+ props: {
114
+ autoCollapse: {
115
+ type: Boolean,
116
+ default: !1
117
+ },
118
+ className: { default: "" },
119
+ defaultAnchor: { default: "" },
120
+ getContainer: {},
121
+ maxHeight: { default: "750px" },
122
+ maxWidth: { default: "200px" },
123
+ offsetTop: { default: 0 },
124
+ position: {},
125
+ railTheme: { default: "primary" },
126
+ scrollMotion: {
127
+ type: Boolean,
128
+ default: !1
129
+ },
130
+ showTooltip: {
131
+ type: [Boolean, Object],
132
+ default: !1
133
+ },
134
+ size: { default: "default" },
135
+ style: {},
136
+ targetOffset: { default: 0 }
137
+ },
138
+ emits: ["change", "click"],
139
+ setup(e, { emit: t }) {
140
+ let n = e, r = t, i = k(), a = j("root"), l = j("linkWrapper"), u = h(o, c(() => ({
141
+ direction: "ltr",
142
+ locale: s,
143
+ responsiveObserve: !1,
144
+ responsiveMap: {
145
+ xs: "",
146
+ sm: "",
147
+ md: "",
148
+ lg: "",
149
+ xl: "",
150
+ xxl: ""
151
+ },
152
+ onBreakpoint: (() => () => void 0),
153
+ screens: {
154
+ xs: !1,
155
+ sm: !1,
156
+ md: !1,
157
+ lg: !1,
158
+ xl: !1,
159
+ xxl: !1
160
+ }
161
+ }))), p = E({
162
+ activeLink: "",
163
+ clickLink: !1,
164
+ links: [],
165
+ scrollHeight: "100%",
166
+ slideBarTop: "0"
167
+ }), m = D({}), A = [], N = /* @__PURE__ */ new Map(), P = D(), F = 0, L, z, B, H;
168
+ function U(e, t) {
169
+ let n, r = (() => {
170
+ n !== void 0 && clearTimeout(n), n = setTimeout(() => {
171
+ n = void 0, e();
172
+ }, t);
173
+ });
174
+ return r.cancel = () => {
175
+ n !== void 0 && clearTimeout(n), n = void 0;
176
+ }, r;
177
+ }
178
+ function W(e, t) {
179
+ let n = 0, r, i = (() => {
180
+ let i = t - (Date.now() - n);
181
+ if (i <= 0) {
182
+ r !== void 0 && clearTimeout(r), r = void 0, n = Date.now(), e();
183
+ return;
184
+ }
185
+ r === void 0 && (r = setTimeout(() => {
186
+ r = void 0, n = Date.now(), e();
187
+ }, i));
188
+ });
189
+ return i.cancel = () => {
190
+ r !== void 0 && clearTimeout(r), r = void 0;
191
+ }, i;
192
+ }
193
+ function G() {
194
+ return {
195
+ children: void 0,
196
+ offsetTop: n.offsetTop,
197
+ onChange: () => void 0,
198
+ scrollMotion: n.scrollMotion,
199
+ targetOffset: n.targetOffset
200
+ };
201
+ }
202
+ function K() {
203
+ return n.getContainer?.() ?? window;
204
+ }
205
+ let q = {
206
+ getContext: () => void 0,
207
+ getContexts: () => void 0,
208
+ getProp: (e) => G()[e],
209
+ getProps: G,
210
+ getState: (e) => p[e],
211
+ getStates: () => p,
212
+ setState: (e, t) => {
213
+ Object.assign(p, e), t?.();
214
+ },
215
+ getCache: (e) => N.get(e),
216
+ getCaches: () => N,
217
+ setCache: (e, t) => N.set(String(e), t),
218
+ stopPropagation: (e) => e.stopPropagation?.(),
219
+ persistEvent: () => void 0,
220
+ addLink: (e) => {
221
+ p.links = [...p.links, e];
222
+ },
223
+ removeLink: (e) => {
224
+ let t = p.links.indexOf(e);
225
+ t !== -1 && (p.links = [...p.links.slice(0, t), ...p.links.slice(t + 1)]);
226
+ },
227
+ setChildMap: (e) => {
228
+ m.value = e;
229
+ },
230
+ setScrollHeight: (e) => {
231
+ p.scrollHeight = e;
232
+ },
233
+ setSlideBarTop: (e) => {
234
+ p.slideBarTop = `${e}px`;
235
+ },
236
+ setClickLink: (e) => {
237
+ p.clickLink = e;
238
+ },
239
+ setActiveLink: (e, t) => {
240
+ p.activeLink = e, v(t);
241
+ },
242
+ setClickLinkWithCallBack: (e, t, n) => {
243
+ p.clickLink = e, v(() => n(t));
244
+ },
245
+ getContainer: () => L ?? K(),
246
+ getContainerBoundingTop: () => {
247
+ let e = L ?? K();
248
+ return "getBoundingClientRect" in e ? e.getBoundingClientRect().top : 0;
249
+ },
250
+ getLinksBoundingTop: () => {
251
+ let e = q.getContainerBoundingTop();
252
+ return p.links.map((t) => {
253
+ try {
254
+ let r = document.querySelector(t);
255
+ return (r ? r.getBoundingClientRect().top - e - n.offsetTop : 0) || -Infinity;
256
+ } catch {
257
+ return -Infinity;
258
+ }
259
+ });
260
+ },
261
+ getAnchorNode: (e) => a.value?.querySelector(e) ?? null,
262
+ getContentNode: (e) => {
263
+ try {
264
+ return document.querySelector(e);
265
+ } catch {
266
+ return null;
267
+ }
268
+ },
269
+ notifyChange: (e, t) => r("change", e, t),
270
+ notifyClick: (e, t) => {
271
+ e && r("click", e, t);
272
+ },
273
+ canSmoothScroll: () => "scrollBehavior" in document.body.style
274
+ }, J = g(new I(q));
275
+ function Y() {
276
+ let e = {}, t = /* @__PURE__ */ new Map();
277
+ for (let n of A) e[n.href] ??= /* @__PURE__ */ new Set(), t.has(n.href) || t.set(n.href, n);
278
+ for (let n of A) {
279
+ let r = n.parentHref, i = /* @__PURE__ */ new Set();
280
+ for (; r && !i.has(r);) i.add(r), e[r] ??= /* @__PURE__ */ new Set(), e[r].add(n.href), r = t.get(r)?.parentHref;
281
+ }
282
+ m.value = e;
283
+ }
284
+ function X(e, t, n) {
285
+ A.push({
286
+ token: e,
287
+ href: t,
288
+ ...n === void 0 ? {} : { parentHref: n }
289
+ }), J.addLink(t), Y();
290
+ }
291
+ function Z(e, t) {
292
+ let n = A.findIndex((t) => t.token === e);
293
+ n !== -1 && A.splice(n, 1), J.removeLink(t), Y();
294
+ }
295
+ function Q(e, t) {
296
+ J.handleClick(e, t);
297
+ }
298
+ function ee(e) {
299
+ let t = e[0];
300
+ if (!t) return;
301
+ let n = Array.isArray(t.borderBoxSize) ? t.borderBoxSize[0] : t.borderBoxSize;
302
+ (n ? n.blockSize !== 0 || n.inlineSize !== 0 : t.contentRect.height !== 0 || t.contentRect.width !== 0) && J.setScrollHeight();
303
+ }
304
+ function te() {
305
+ L && z && B && (L.removeEventListener("scroll", z), L.removeEventListener("scroll", B)), z?.cancel(), B?.cancel(), H?.disconnect(), z = void 0, B = void 0, H = void 0, L = void 0;
306
+ }
307
+ let ne = c(() => [
308
+ "semi-anchor",
309
+ `semi-anchor-size-${n.size}`,
310
+ n.className,
311
+ i.class
312
+ ]), $ = (e) => typeof e == "number" ? `${e}px` : e, re = c(() => [
313
+ i.style,
314
+ n.style,
315
+ {
316
+ maxHeight: $(n.maxHeight),
317
+ maxWidth: $(n.maxWidth)
318
+ }
319
+ ]), ie = c(() => Object.fromEntries(Object.entries(i).filter(([e]) => ![
320
+ "aria-label",
321
+ "class",
322
+ "style"
323
+ ].includes(e)))), ae = c(() => ["semi-anchor-slide", `semi-anchor-slide-${n.railTheme}`]), oe = c(() => [
324
+ "semi-anchor-slide-bar",
325
+ `semi-anchor-slide-bar-${n.size}`,
326
+ `semi-anchor-slide-bar-${n.railTheme}`,
327
+ p.activeLink ? "semi-anchor-slide-bar-active" : void 0
328
+ ]);
329
+ return w(R, {
330
+ activeLink: c(() => p.activeLink),
331
+ autoCollapse: c(() => n.autoCollapse),
332
+ childMap: c(() => m.value),
333
+ direction: c(() => u.value.direction),
334
+ position: c(() => n.position),
335
+ showTooltip: c(() => n.showTooltip),
336
+ size: c(() => n.size),
337
+ addLink: X,
338
+ removeLink: Z,
339
+ onClick: Q
340
+ }), M(() => p.links, () => void v(() => J.setScrollHeight())), S(async () => {
341
+ F += 1, P.value = `semi-anchor-${F}`, L = K(), z = W(() => J.handleScroll(), 100), B = U(() => J.handleClickLink(), 100), L.addEventListener("scroll", z), L.addEventListener("scroll", B), await v(), J.setScrollHeight(), typeof ResizeObserver < "u" && l.value && (H = new ResizeObserver(ee), H.observe(l.value)), n.defaultAnchor && J.handleClick(null, n.defaultAnchor, !1);
342
+ }), x(te), (e, t) => (C(), d("div", _(ie.value, {
343
+ id: P.value,
344
+ ref_key: "root",
345
+ ref: a,
346
+ role: "navigation",
347
+ "aria-label": O(i)["aria-label"] || "Side navigation",
348
+ class: ne.value,
349
+ style: re.value
350
+ }), [f("div", {
351
+ "aria-hidden": "true",
352
+ class: y(ae.value),
353
+ style: b({ height: O(p).scrollHeight })
354
+ }, [f("span", {
355
+ class: y(oe.value),
356
+ style: b({ top: O(p).slideBarTop })
357
+ }, null, 6)], 6), f("div", {
358
+ ref_key: "linkWrapper",
359
+ ref: l,
360
+ class: "semi-anchor-link-wrapper",
361
+ role: "list"
362
+ }, [T(e.$slots, "default")], 512)], 16, V));
363
+ }
364
+ }), U = m({
365
+ name: "AnchorNodeRenderer",
366
+ props: { content: {
367
+ type: null,
368
+ default: void 0
369
+ } },
370
+ setup(e) {
371
+ return () => e.content;
372
+ }
373
+ }), W = [
374
+ "aria-disabled",
375
+ "aria-details",
376
+ "title"
377
+ ], G = {
378
+ key: 0,
379
+ role: "list"
380
+ }, K = /* @__PURE__ */ m({
381
+ name: "AnchorLink",
382
+ inheritAttrs: !1,
383
+ __name: "AnchorLink",
384
+ props: {
385
+ className: { default: "" },
386
+ disabled: {
387
+ type: Boolean,
388
+ default: !1
389
+ },
390
+ href: { default: "#" },
391
+ style: {},
392
+ title: {
393
+ type: [
394
+ Object,
395
+ String,
396
+ Number,
397
+ Boolean,
398
+ null,
399
+ Array
400
+ ],
401
+ default: ""
402
+ }
403
+ },
404
+ setup(e) {
405
+ let t = e, n = k(), r = A(), i = h(R);
406
+ if (!i) throw Error("[Semi] Anchor.Link must be used inside Anchor.");
407
+ let o = i, s = h(z, c(() => void 0)), m = h(B, c(() => 1)), _ = Symbol("semi-anchor-link"), v = /* @__PURE__ */ new Map(), D = E({}), j = g(new L({
408
+ getContext: () => void 0,
409
+ getContexts: () => void 0,
410
+ getProp: (e) => ({ href: t.href })[e],
411
+ getProps: () => ({ href: t.href }),
412
+ getState: () => void 0,
413
+ getStates: () => D,
414
+ setState: (e, t) => t?.(),
415
+ getCache: (e) => v.get(e),
416
+ getCaches: () => v,
417
+ setCache: (e, t) => v.set(String(e), t),
418
+ stopPropagation: (e) => e.stopPropagation?.(),
419
+ persistEvent: () => void 0,
420
+ addLink: (e) => o.addLink(_, e, s.value),
421
+ removeLink: (e) => o.removeLink(_, e)
422
+ })), P = c(() => t.href), F = c(() => m.value + 1);
423
+ w(z, P), w(B, F);
424
+ let I = c(() => o.activeLink.value === t.href), V = c(() => !o.autoCollapse.value || I.value || !!o.childMap.value[t.href]?.has(o.activeLink.value)), H = c(() => [
425
+ "semi-anchor-link",
426
+ t.className,
427
+ n.class
428
+ ]), K = c(() => [n.style, t.style]), q = c(() => [
429
+ "semi-anchor-link-title",
430
+ I.value ? "semi-anchor-link-title-active" : void 0,
431
+ t.disabled ? "semi-anchor-link-title-disabled" : void 0
432
+ ]), J = c(() => [
433
+ "semi-anchor-link-tooltip",
434
+ o.size.value === "small" ? "semi-anchor-link-tooltip-small" : void 0,
435
+ I.value ? "semi-anchor-link-tooltip-active" : void 0,
436
+ t.disabled ? "semi-anchor-link-tooltip-disabled" : void 0
437
+ ]), Y = c(() => o.direction.value === "rtl" ? { paddingRight: `${8 * m.value}px` } : { paddingLeft: `${8 * m.value}px` }), X = c(() => {
438
+ let e = o.showTooltip.value, t = typeof e == "object" ? {
439
+ ...e,
440
+ opts: { ...e.opts ?? {} }
441
+ } : {
442
+ type: "tooltip",
443
+ opts: {}
444
+ };
445
+ return o.position.value && (t.opts.position = o.position.value), t;
446
+ }), Z = c(() => r.title?.() ?? t.title);
447
+ function Q(e) {
448
+ t.disabled || o.onClick(e, t.href);
449
+ }
450
+ return M(() => t.href, (e, t) => j.handleUpdateLink(e, t)), S(() => j.handleAddLink()), x(() => j.handleRemoveLink()), (e, n) => (C(), d("div", {
451
+ class: y(H.value),
452
+ style: b(K.value),
453
+ role: "listitem"
454
+ }, [f("div", {
455
+ role: "link",
456
+ tabindex: "0",
457
+ "aria-disabled": t.disabled,
458
+ "aria-details": I.value ? "active" : void 0,
459
+ title: !O(o).showTooltip.value && typeof t.title == "string" ? t.title : void 0,
460
+ style: b(Y.value),
461
+ class: y(q.value),
462
+ onClick: Q,
463
+ onKeypress: Q
464
+ }, [O(o).showTooltip.value ? (C(), l(O(a), {
465
+ key: 0,
466
+ size: O(o).size.value === "default" ? "normal" : "small",
467
+ ellipsis: { showTooltip: X.value },
468
+ type: "tertiary",
469
+ class: y(J.value)
470
+ }, {
471
+ default: N(() => [p(O(U), { content: Z.value }, null, 8, ["content"])]),
472
+ _: 1
473
+ }, 8, [
474
+ "size",
475
+ "ellipsis",
476
+ "class"
477
+ ])) : (C(), l(O(U), {
478
+ key: 1,
479
+ content: Z.value
480
+ }, null, 8, ["content"]))], 46, W), V.value ? (C(), d("div", G, [T(e.$slots, "default")])) : u("", !0)], 6));
481
+ }
482
+ }), q = ["small", "default"], J = [
483
+ "primary",
484
+ "tertiary",
485
+ "muted"
486
+ ], Y = [
487
+ "top",
488
+ "topLeft",
489
+ "topRight",
490
+ "left",
491
+ "leftTop",
492
+ "leftBottom",
493
+ "right",
494
+ "rightTop",
495
+ "rightBottom",
496
+ "bottom",
497
+ "bottomLeft",
498
+ "bottomRight",
499
+ "leftTopOver",
500
+ "rightTopOver"
501
+ ], X = Object.assign(H, { Link: K });
502
+ //#endregion
503
+ export { K as a, q as i, Y as n, R as o, J as r, X as t };
@@ -0,0 +1,7 @@
1
+ //#region bundled-foundation
2
+ function e(e, t, n) {
3
+ let r = e.slice();
4
+ return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
5
+ }
6
+ //#endregion
7
+ export { e as t };