@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,587 @@
1
+ import "./src-DNBBthjO.js";
2
+ import { t as e } from "./foundation-Cawx37mp.js";
3
+ import { t } from "./env-BeIzjQx7.js";
4
+ import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, defineComponent as o, markRaw as s, mergeProps as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, renderList as m, shallowReactive as h, unref as g, useAttrs as _, useTemplateRef as v, watch as y, watchEffect as b } from "vue";
5
+ //#region bundled-foundation
6
+ function x(e, [t, n]) {
7
+ return Math.min(Math.max(e, t), n);
8
+ }
9
+ function S(e, t, n) {
10
+ return e / t > n ? e = t * n : t = e / n, [e, t];
11
+ }
12
+ //#endregion
13
+ //#region bundled-foundation
14
+ var C = class extends e {
15
+ constructor(e) {
16
+ super({ ...e }), this.getImgDataWhenResize = (e) => {
17
+ let { imgData: t } = this.getStates(), n = {
18
+ width: t.width * e,
19
+ height: t.height * e,
20
+ centerPoint: {
21
+ x: t.centerPoint.x * e,
22
+ y: t.centerPoint.y * e
23
+ }
24
+ };
25
+ return this.imgData.scale *= e, n;
26
+ }, this.getCropperBoxWhenResize = (e, t) => {
27
+ let { cropperBox: n } = this.getStates(), { aspectRatio: r } = this.getProps(), i = {
28
+ width: n.width * e,
29
+ height: n.height * e,
30
+ centerPoint: {
31
+ x: n.centerPoint.x * e,
32
+ y: n.centerPoint.y * e
33
+ }
34
+ }, a = i.centerPoint.x - i.width / 2, o = i.centerPoint.x + i.width / 2, s = i.centerPoint.y - i.height / 2, c = i.centerPoint.y + i.height / 2;
35
+ return r ? (o > t.width && (o = t.width, a = i.width > t.width ? 0 : t.width - i.width, i.width = o - a, i.height = i.width / r, c = s + i.height), c > t.height && (c = t.height, s = i.height > t.height ? 0 : t.height - i.height, i.height = c - s, i.width = i.height * r, o = a + i.width)) : (o > t.width && (o = t.width, a = i.width > t.width ? 0 : t.width - i.width), c > t.height && (c = t.height, s = i.height > t.height ? 0 : t.height - i.height)), {
36
+ width: o - a,
37
+ height: c - s,
38
+ centerPoint: {
39
+ x: (o + a) / 2,
40
+ y: (c + s) / 2
41
+ }
42
+ };
43
+ }, this.handleResize = () => {
44
+ let { loaded: e } = this.getStates();
45
+ if (!this.initial) {
46
+ this.initial = !0;
47
+ return;
48
+ }
49
+ if (!e) return;
50
+ let t = this._adapter.getContainer(), n = {
51
+ width: t.clientWidth,
52
+ height: t.clientHeight
53
+ }, r = n.width / this.containerData.width, i = this.getImgDataWhenResize(r), a = this.getCropperBoxWhenResize(r, n);
54
+ this.containerData = n, this.setState({
55
+ imgData: i,
56
+ cropperBox: a
57
+ });
58
+ }, this.handleImageLoad = (e) => {
59
+ let { naturalWidth: t, naturalHeight: n } = e.target, { width: r, height: i } = this.containerData;
60
+ this.imgData.originalWidth = t, this.imgData.originalHeight = n;
61
+ let a = 1, o = {};
62
+ t / r > n / i ? (a = r / t, o.width = r, o.height = n * a) : (a = i / n, o.width = t * a, o.height = i), this.imgData.scale = a, o.centerPoint = {}, o.centerPoint.x = r / 2, o.centerPoint.y = i / 2;
63
+ let s = {}, { defaultAspectRatio: c, aspectRatio: l } = this.getProps(), u = l || c;
64
+ r / i > u ? (s.width = i * u, s.height = i) : (s.width = r, s.height = r / u), s.centerPoint = {}, s.centerPoint.x = r / 2, s.centerPoint.y = i / 2, this.setState({
65
+ imgData: o,
66
+ cropperBox: s,
67
+ loaded: !0
68
+ }), this.renderPreview();
69
+ }, this.renderPreview = () => {
70
+ let { preview: e, src: t } = this.getProps(), n = e?.();
71
+ if (!n) return;
72
+ let r = document.createElement("img");
73
+ this.previewImg = r, this.previewContainer = n, r.src = t, n.appendChild(r), this.previewContainer.style.overflow = "hidden";
74
+ let { width: i, height: a } = n.getBoundingClientRect();
75
+ this.previewContainerInitSize = {
76
+ width: i,
77
+ height: a
78
+ };
79
+ }, this.updatePreview = (e) => {
80
+ if (!this.previewImg) return;
81
+ let { cropperBox: t } = this.getStates(), n = 1, { width: r, height: i } = this.previewContainerInitSize, a = r, o = i;
82
+ if (a < o) {
83
+ n = r / t.width;
84
+ let e = n * t.height;
85
+ e > i ? (n = i / t.height, a = n * t.width) : o = e;
86
+ } else {
87
+ n = i / t.height;
88
+ let e = n * t.width;
89
+ e > r ? (n = r / t.width, o = n * t.height) : a = e;
90
+ }
91
+ let { width: s, height: c, translateX: l, translateY: u, rotate: d } = e;
92
+ this.previewImg.style.width = `${s * n}px`, this.previewImg.style.height = `${c * n}px`, this.previewImg.style.transform = `translate(${l * n}px, ${u * n}px) rotate(${d}deg)`, this.previewImg.style.transformOrigin = "center", this.previewContainer.style.width = `${a}px`, this.previewContainer.style.height = `${o}px`;
93
+ }, this.removePreview = () => {
94
+ this.previewImg && this.previewContainer && (this.previewContainer.removeChild(this.previewImg), this.previewImg = null);
95
+ }, this.handleWheel = (e) => {
96
+ e.preventDefault();
97
+ let { imgData: t, zoom: n } = this.getStates(), { maxZoom: r, minZoom: i, zoomStep: a } = this.getProps(), o;
98
+ if (e.deltaY < 0 ? n + a <= r && (o = Number((n + a).toFixed(2))) : e.deltaY > 0 && n - a >= i && (o = Number((n - a).toFixed(2))), o === void 0) return;
99
+ let s = e.currentTarget.getBoundingClientRect(), c = {
100
+ x: e.clientX - s.left,
101
+ y: -(e.clientY - s.top)
102
+ }, l = { ...t.centerPoint };
103
+ l.y = -l.y;
104
+ let u = {
105
+ x: (l.x - c.x) / n * o + c.x,
106
+ y: -[(l.y - c.y) / n * o + c.y]
107
+ }, d = {
108
+ width: t.width / n * o,
109
+ height: t.height / n * o,
110
+ centerPoint: u
111
+ };
112
+ this.setState({
113
+ imgData: d,
114
+ zoom: o
115
+ }), this._adapter.notifyZoomChange(o);
116
+ }, this.getRangeForAspectChange = () => {
117
+ let { cropperBox: e } = this.getStates(), { aspectRatio: t } = this.getProps(), { width: n, height: r } = this.containerData, i, a, o = e.centerPoint.x - e.width / 2, s = e.centerPoint.x + e.width / 2, c = e.centerPoint.y - e.height / 2, l = e.centerPoint.y + e.height / 2;
118
+ switch (this.boxMoveDir) {
119
+ case "tl":
120
+ i = l, a = s, [a, i] = S(a, i, t), this.rangeX = [s - a, s], this.rangeY = [l - i, l];
121
+ break;
122
+ case "tm":
123
+ i = l;
124
+ let u = e.centerPoint.x, d = n - e.centerPoint.x;
125
+ a = 2 * (u < d ? u : d), [a, i] = S(a, i, t), this.rangeX = [e.centerPoint.x - a / 2, e.centerPoint.x + a / 2], this.rangeY = [l - i, l];
126
+ break;
127
+ case "tr":
128
+ i = l, a = n - o, [a, i] = S(a, i, t), this.rangeX = [o, o + a], this.rangeY = [l - i, l];
129
+ break;
130
+ case "ml":
131
+ a = s;
132
+ let f = e.centerPoint.y, p = r - e.centerPoint.y;
133
+ i = 2 * (f < p ? f : p), [a, i] = S(a, i, t), this.rangeX = [s - a, s], this.rangeY = [e.centerPoint.y - i / 2, e.centerPoint.y + i / 2];
134
+ break;
135
+ case "mr":
136
+ a = n - o;
137
+ let m = e.centerPoint.y, h = r - e.centerPoint.y;
138
+ i = 2 * (m < h ? m : h), [a, i] = S(a, i, t), this.rangeX = [o, o + a], this.rangeY = [e.centerPoint.y - i / 2, e.centerPoint.y + i / 2];
139
+ break;
140
+ case "bl":
141
+ i = r - c, a = s, [a, i] = S(a, i, t), this.rangeX = [s - a, s], this.rangeY = [c, c + i];
142
+ break;
143
+ case "bm":
144
+ i = r - c;
145
+ let g = e.centerPoint.x, _ = n - e.centerPoint.x;
146
+ a = 2 * (g < _ ? g : _), [a, i] = S(a, i, t), this.rangeX = [e.centerPoint.x - a / 2, e.centerPoint.x + a / 2], this.rangeY = [c, c + i];
147
+ break;
148
+ case "br": i = r - c, a = n - o, [a, i] = S(a, i, t), this.rangeX = [o, o + a], this.rangeY = [c, c + i];
149
+ }
150
+ }, this.handleCornerMouseDown = (e) => {
151
+ let t = e.currentTarget;
152
+ if (!t) return;
153
+ e.preventDefault();
154
+ let n = t.dataset.dir;
155
+ this.boxMoveDir = n, this.boxMoveParam = this.getMoveParamByDir(n), this.bindResizeEvent();
156
+ let { aspectRatio: r } = this.getProps();
157
+ r ? this.getRangeForAspectChange() : (this.rangeX = [0, this.containerData.width], this.rangeY = [0, this.containerData.height]);
158
+ }, this.bindResizeEvent = () => {
159
+ let { aspectRatio: e } = this.getProps();
160
+ document.addEventListener("mousemove", e ? this.handleCornerAspectMouseMove : this.handleCornerMouseMove), document.addEventListener("mouseup", this.handleCornerMouseUp);
161
+ }, this.unBindResizeEvent = () => {
162
+ let { aspectRatio: e } = this.getProps();
163
+ document.removeEventListener("mousemove", e ? this.handleCornerAspectMouseMove : this.handleCornerMouseMove), document.removeEventListener("mouseup", this.handleCornerMouseUp);
164
+ }, this.viewIMGDragStart = (e) => {
165
+ e.preventDefault();
166
+ }, this.handleCornerAspectMouseMove = (e) => {
167
+ e.preventDefault();
168
+ let { clientX: t, clientY: n } = e, { cropperBox: r } = this.getStates(), { aspectRatio: i } = this.getProps(), a = this._adapter.getContainer().getBoundingClientRect(), o = {
169
+ width: r.width,
170
+ height: r.height,
171
+ centerPoint: { ...r.centerPoint }
172
+ }, s, c;
173
+ switch (["ml", "mr"].includes(this.boxMoveDir) ? s = x(t - a.left, this.rangeX) : c = x(n - a.top, this.rangeY), this.boxMoveDir) {
174
+ case "tl":
175
+ o.height = this.rangeY[1] - c, o.width = o.height * i, o.centerPoint = {
176
+ x: this.rangeX[1] - o.width / 2,
177
+ y: this.rangeY[1] - o.height / 2
178
+ };
179
+ break;
180
+ case "tm":
181
+ o.height = this.rangeY[1] - c, o.width = o.height * i, o.centerPoint = {
182
+ x: r.centerPoint.x,
183
+ y: this.rangeY[1] - o.height / 2
184
+ };
185
+ break;
186
+ case "tr":
187
+ o.height = this.rangeY[1] - c, o.width = o.height * i, o.centerPoint = {
188
+ x: this.rangeX[0] + o.width / 2,
189
+ y: this.rangeY[1] - o.height / 2
190
+ };
191
+ break;
192
+ case "ml":
193
+ o.width = this.rangeX[1] - s, o.height = o.width / i, o.centerPoint = {
194
+ x: this.rangeX[1] - o.width / 2,
195
+ y: r.centerPoint.y
196
+ };
197
+ break;
198
+ case "mr":
199
+ o.width = s - this.rangeX[0], o.height = o.width / i, o.centerPoint = {
200
+ x: this.rangeX[0] + o.width / 2,
201
+ y: r.centerPoint.y
202
+ };
203
+ break;
204
+ case "bl":
205
+ o.height = c - this.rangeY[0], o.width = o.height * i, o.centerPoint = {
206
+ x: this.rangeX[1] - o.width / 2,
207
+ y: this.rangeY[0] + o.height / 2
208
+ };
209
+ break;
210
+ case "bm":
211
+ o.height = c - this.rangeY[0], o.width = o.height * i, o.centerPoint = {
212
+ x: r.centerPoint.x,
213
+ y: this.rangeY[0] + o.height / 2
214
+ };
215
+ break;
216
+ case "br": o.height = c - this.rangeY[0], o.width = o.height * i, o.centerPoint = {
217
+ x: this.rangeX[0] + o.width / 2,
218
+ y: this.rangeY[0] + o.height / 2
219
+ };
220
+ }
221
+ o.height === 0 && o.width === 0 && (this.changeDir(), this.getRangeForAspectChange()), this.setState({ cropperBox: o });
222
+ }, this.changeDir = () => {
223
+ this.boxMoveDir.includes("t") ? this.boxMoveDir = this.boxMoveDir.replace("t", "b") : this.boxMoveDir.includes("b") && (this.boxMoveDir = this.boxMoveDir.replace("b", "t")), this.boxMoveDir.includes("l") ? this.boxMoveDir = this.boxMoveDir.replace("l", "r") : this.boxMoveDir.includes("r") && (this.boxMoveDir = this.boxMoveDir.replace("r", "l"));
224
+ }, this.handleCornerMouseMove = (e) => {
225
+ e.preventDefault();
226
+ let { clientX: t, clientY: n } = e, { cropperBox: r } = this.getStates(), i = this._adapter.getContainer().getBoundingClientRect(), a = x(t - i.left, this.rangeX), o = x(n - i.top, this.rangeY), s = {
227
+ width: r.width,
228
+ height: r.height,
229
+ centerPoint: {
230
+ x: r.centerPoint.x,
231
+ y: r.centerPoint.y
232
+ }
233
+ }, { paramX: c, paramY: l } = this.boxMoveParam, u, d;
234
+ c && (u = r.centerPoint.x + c * r.width / 2, s.width = r.width + c * (a - u), s.width < 0 && (s.width = -s.width, this.boxMoveParam.paramX = -c), s.centerPoint.x = a - c * s.width / 2), l && (d = r.centerPoint.y + l * r.height / 2, s.height = r.height + l * (o - d), s.height < 0 && (s.height = -s.height, this.boxMoveParam.paramY = -l), s.centerPoint.y = o - l * s.height / 2), this.setState({ cropperBox: s });
235
+ }, this.handleCornerMouseUp = (e) => {
236
+ this.boxMoveParam = {
237
+ paramX: 0,
238
+ paramY: 0
239
+ }, this.unBindResizeEvent();
240
+ }, this.handleCropperBoxMouseDown = (e) => {
241
+ let t = e.target, { cropperBox: n } = this.getStates(), r = this._adapter.getContainer().getBoundingClientRect();
242
+ t.dataset.dir || (this.cropperBoxMoveStart = {
243
+ x: e.clientX,
244
+ y: e.clientY
245
+ }, this.bindMoveEvent(), this.moveRange = {
246
+ xMin: n.width / 2,
247
+ xMax: r.width - n.width / 2,
248
+ yMin: n.height / 2,
249
+ yMax: r.height - n.height / 2
250
+ });
251
+ }, this.bindMoveEvent = () => {
252
+ document.addEventListener("mousemove", this.handleCropperBoxMouseMove), document.addEventListener("mouseup", this.handleCropperBoxMouseUp);
253
+ }, this.unBindMoveEvent = () => {
254
+ document.removeEventListener("mousemove", this.handleCropperBoxMouseMove), document.removeEventListener("mouseup", this.handleCropperBoxMouseUp);
255
+ }, this.handleCropperBoxMouseMove = (e) => {
256
+ if (!this.cropperBoxMoveStart) return;
257
+ let { clientX: t, clientY: n } = e, { cropperBox: r } = this.getStates(), i = t - this.cropperBoxMoveStart.x, a = n - this.cropperBoxMoveStart.y, o = x(r.centerPoint.x + i, [this.moveRange.xMin, this.moveRange.xMax]), s = x(r.centerPoint.y + a, [this.moveRange.yMin, this.moveRange.yMax]), c = {
258
+ width: r.width,
259
+ height: r.height,
260
+ centerPoint: {
261
+ x: o,
262
+ y: s
263
+ }
264
+ };
265
+ this.cropperBoxMoveStart = {
266
+ x: t,
267
+ y: n
268
+ }, this.setState({ cropperBox: c });
269
+ }, this.handleCropperBoxMouseUp = (e) => {
270
+ this.cropperBoxMoveStart && (this.cropperBoxMoveStart = null, this.unBindMoveEvent());
271
+ }, this.handleMaskMouseDown = (e) => {
272
+ e.currentTarget === e.target && (this.bindImgMoveEvent(), this.imgMoveStart = {
273
+ x: e.clientX,
274
+ y: e.clientY
275
+ });
276
+ }, this.bindImgMoveEvent = () => {
277
+ document.addEventListener("mousemove", this.handleImgMove), document.addEventListener("mouseup", this.handleImgMoveUp);
278
+ }, this.unBindImgMoveEvent = () => {
279
+ document.removeEventListener("mousemove", this.handleImgMove), document.removeEventListener("mouseup", this.handleImgMoveUp);
280
+ }, this.handleImgMove = (e) => {
281
+ if (!this.imgMoveStart) return;
282
+ let { clientX: t, clientY: n } = e, { imgData: r } = this.getStates(), i = t - this.imgMoveStart.x, a = n - this.imgMoveStart.y, o = r.centerPoint.x + i, s = r.centerPoint.y + a, c = {
283
+ width: r.width,
284
+ height: r.height,
285
+ centerPoint: {
286
+ x: o,
287
+ y: s
288
+ }
289
+ };
290
+ this.imgMoveStart = {
291
+ x: t,
292
+ y: n
293
+ }, this.setState({ imgData: c });
294
+ }, this.handleImgMoveUp = (e) => {
295
+ this.imgMoveStart && (this.imgMoveStart = null, this.unBindImgMoveEvent());
296
+ }, this.getCropperCanvas = () => {
297
+ let { cropperBox: e, imgData: t, rotate: n, zoom: r } = this.getStates(), { fill: i } = this.getProps(), a = document.createElement("canvas"), o = a.getContext("2d"), s = this._adapter.getImg(), c = n * Math.PI / 180, l = Math.abs(Math.sin(c)), u = Math.abs(Math.cos(c)), d = this.imgData.originalWidth, f = this.imgData.originalHeight, p = d * u + f * l, m = f * u + d * l, h = p * r * this.imgData.scale, g = m * r * this.imgData.scale, _ = t.centerPoint.y - g / 2, v = t.centerPoint.x - h / 2, y = e.centerPoint.x - e.width / 2, b = e.centerPoint.y - e.height / 2, x = r * this.imgData.scale, S = (y - v) / x, C = (b - _) / x, w = e.width / x, T = e.height / x, E = S + w, D = C + T;
298
+ if (E < 0 || D < 0 || S > p || C > m) {
299
+ let e = document.createElement("canvas"), t = e.getContext("2d");
300
+ return e.width = w, e.height = T, t.fillStyle = i, t.fillRect(0, 0, w, T), e;
301
+ }
302
+ a.width = p, a.height = m, o.fillStyle = i, o.fillRect(0, 0, p, m);
303
+ let O = p / 2, k = m / 2;
304
+ o.translate(O, k), o.rotate(n * Math.PI / 180), o.translate(-O, -k);
305
+ let A = (p - d) / 2, j = (m - f) / 2;
306
+ o.drawImage(s, 0, 0, d, f, A, j, d, f);
307
+ let M = document.createElement("canvas"), N = M.getContext("2d"), P = S, F = C, I = w, L = T;
308
+ S < 0 && (P = 0), C < 0 && (F = 0), E > p ? I = p - P : S < 0 && (I = E), D > m ? L = m - F : C < 0 && (L = D);
309
+ let R = o.getImageData(P, F, I, L);
310
+ return M.width = w, M.height = T, N.fillStyle = i, N.fillRect(0, 0, w, T), N.putImageData(R, S < 0 ? -S : 0, C < 0 ? -C : 0), M;
311
+ }, this.containerData = {}, this.imgData = {}, this.boxMoveDir = "", this.boxMoveParam = {
312
+ paramX: 0,
313
+ paramY: 0
314
+ }, this.rangeX = null, this.rangeY = null, this.initial = !1, this.previewImg = null, this.previewContainer = null;
315
+ }
316
+ init() {
317
+ let e = this._adapter.getContainer();
318
+ this.containerData.width = e.clientWidth, this.containerData.height = e.clientHeight, this.cropperBoxMoveStart = null;
319
+ }
320
+ destroy() {
321
+ this.unBindMoveEvent(), this.unBindResizeEvent(), this.removePreview();
322
+ }
323
+ getMoveParamByDir(e) {
324
+ let t = 0, n = 0;
325
+ switch (e) {
326
+ case "tl":
327
+ t = -1, n = -1;
328
+ break;
329
+ case "tm":
330
+ n = -1;
331
+ break;
332
+ case "tr":
333
+ t = 1, n = -1;
334
+ break;
335
+ case "ml":
336
+ t = -1;
337
+ break;
338
+ case "mr":
339
+ t = 1;
340
+ break;
341
+ case "bl":
342
+ t = -1, n = 1;
343
+ break;
344
+ case "bm":
345
+ n = 1;
346
+ break;
347
+ case "br": t = 1, n = 1;
348
+ }
349
+ return {
350
+ paramX: t,
351
+ paramY: n
352
+ };
353
+ }
354
+ }, w = `${t}-cropper`;
355
+ `${w}`, `${w}`, `${w}`, `${w}`, `${w}`, `${w}`, `${w}`, `${w}`, `${w}`;
356
+ var T = {
357
+ shape: [
358
+ "rect",
359
+ "round",
360
+ "roundRect"
361
+ ],
362
+ corner: [
363
+ "tl",
364
+ "tm",
365
+ "tr",
366
+ "ml",
367
+ "mr",
368
+ "bl",
369
+ "bm",
370
+ "br"
371
+ ],
372
+ roundCorner: [
373
+ "tm",
374
+ "ml",
375
+ "mr",
376
+ "bm"
377
+ ]
378
+ };
379
+ //#endregion
380
+ //#region src/cropper/use-cropper-foundation.ts
381
+ function E(e, t, n, r) {
382
+ let i = h({
383
+ imgData: {
384
+ width: 0,
385
+ height: 0,
386
+ centerPoint: {
387
+ x: 0,
388
+ y: 0
389
+ }
390
+ },
391
+ cropperBox: {
392
+ width: 0,
393
+ height: 0,
394
+ centerPoint: {
395
+ x: 0,
396
+ y: 0
397
+ }
398
+ },
399
+ zoom: 1,
400
+ rotate: 0,
401
+ loaded: !1
402
+ }), a = /* @__PURE__ */ new Map(), o = () => e, c = s(new C({
403
+ getContext: () => void 0,
404
+ getContexts: () => ({}),
405
+ getProp: (e) => o()[e],
406
+ getProps: o,
407
+ getState: (e) => i[e],
408
+ getStates: () => i,
409
+ setState: (t, n) => {
410
+ let r = i.loaded;
411
+ Object.assign(i, t), !r && i.loaded && u(e.rotate, e.zoom), n?.();
412
+ },
413
+ getCache: (e) => a.get(e),
414
+ getCaches: () => a,
415
+ setCache: (e, t) => a.set(e, t),
416
+ stopPropagation: (e) => e?.stopPropagation?.(),
417
+ persistEvent: () => void 0,
418
+ getContainer: () => t.value,
419
+ getImg: () => n.value,
420
+ notifyZoomChange: (e) => {
421
+ r("zoomChange", e), r("update:zoom", e);
422
+ }
423
+ })), l;
424
+ function u(e, t) {
425
+ if (!i.loaded) return;
426
+ let { rotate: n, zoom: r, imgData: a, cropperBox: o } = i, s = a.width, c = a.height, l = { ...a.centerPoint }, u = {};
427
+ if (e !== void 0 && e !== n) {
428
+ u.rotate = e;
429
+ let t = {
430
+ x: o.centerPoint.x,
431
+ y: -o.centerPoint.y
432
+ }, r = {
433
+ x: a.centerPoint.x,
434
+ y: -a.centerPoint.y
435
+ }, i = (e - n) * Math.PI / 180;
436
+ l = {
437
+ x: (r.x - t.x) * Math.cos(i) + (r.y - t.y) * Math.sin(i) + t.x,
438
+ y: -(-(r.x - t.x) * Math.sin(i) + (r.y - t.y) * Math.cos(i) + t.y)
439
+ };
440
+ }
441
+ if (e !== void 0 && t !== r) {
442
+ u.zoom = t;
443
+ let e = t, n = {
444
+ x: o.centerPoint.x,
445
+ y: -o.centerPoint.y
446
+ }, i = {
447
+ x: l.x,
448
+ y: -l.y
449
+ };
450
+ s = a.width / r * e, c = a.height / r * e, l = {
451
+ x: (i.x - n.x) / r * e + n.x,
452
+ y: -((i.y - n.y) / r * e + n.y)
453
+ };
454
+ }
455
+ (e !== n || t !== r) && (u.imgData = {
456
+ width: s,
457
+ height: c,
458
+ centerPoint: l
459
+ }), Object.assign(i, u);
460
+ }
461
+ return y(() => [e.rotate, e.zoom], ([e, t]) => u(e, t)), f(() => {
462
+ c.init(), t.value?.addEventListener("wheel", c.handleWheel, { passive: !1 }), typeof ResizeObserver < "u" && t.value && (l = new ResizeObserver(() => c.handleResize()), l.observe(t.value));
463
+ }), d(() => {
464
+ l?.disconnect(), l = void 0, t.value?.removeEventListener("wheel", c.handleWheel), c.destroy();
465
+ }), {
466
+ foundation: c,
467
+ state: i
468
+ };
469
+ }
470
+ //#endregion
471
+ //#region src/cropper/Cropper.vue?vue&type=script&setup=true&lang.ts
472
+ var D = { class: "semi-cropper-img-wrapper" }, O = ["src"], k = ["src"], A = ["data-dir"], j = /* @__PURE__ */ o({
473
+ name: "Cropper",
474
+ inheritAttrs: !1,
475
+ __name: "Cropper",
476
+ props: {
477
+ aspectRatio: {},
478
+ class: { type: [
479
+ Boolean,
480
+ null,
481
+ String,
482
+ Object,
483
+ Array
484
+ ] },
485
+ className: {},
486
+ cropperBoxClassName: {},
487
+ cropperBoxCls: {},
488
+ cropperBoxStyle: { type: [
489
+ Boolean,
490
+ null,
491
+ String,
492
+ Object,
493
+ Array
494
+ ] },
495
+ defaultAspectRatio: { default: 1 },
496
+ fill: { default: "rgba(0, 0, 0, 0)" },
497
+ imgProps: {},
498
+ maxZoom: { default: 3 },
499
+ minZoom: { default: .1 },
500
+ preview: {},
501
+ rotate: {},
502
+ shape: { default: "rect" },
503
+ showResizeBox: {
504
+ type: Boolean,
505
+ default: !0
506
+ },
507
+ src: {},
508
+ style: { type: [
509
+ Boolean,
510
+ null,
511
+ String,
512
+ Object,
513
+ Array
514
+ ] },
515
+ zoom: {},
516
+ zoomStep: { default: .1 }
517
+ },
518
+ emits: ["update:zoom", "zoomChange"],
519
+ setup(e, { expose: t, emit: o }) {
520
+ let s = e, d = o, f = _(), { foundation: h, state: y } = E(s, v("container"), v("image"), d), x = r(() => Object.fromEntries(Object.entries(f).filter(([e]) => !["class", "style"].includes(e)))), S = r(() => y.imgData.centerPoint.x - y.imgData.width / 2), C = r(() => y.imgData.centerPoint.y - y.imgData.height / 2), w = r(() => y.cropperBox.centerPoint.x - y.cropperBox.width / 2), j = r(() => y.cropperBox.centerPoint.y - y.cropperBox.height / 2), M = r(() => S.value - w.value), N = r(() => C.value - j.value), P = r(() => ({
521
+ width: `${y.imgData.width}px`,
522
+ height: `${y.imgData.height}px`,
523
+ transformOrigin: "center",
524
+ transform: `translate(${S.value}px, ${C.value}px) rotate(${y.rotate}deg)`
525
+ })), F = r(() => ({
526
+ width: `${y.imgData.width}px`,
527
+ height: `${y.imgData.height}px`,
528
+ transformOrigin: "center",
529
+ transform: `translate(${M.value}px, ${N.value}px) rotate(${y.rotate}deg)`
530
+ })), I = r(() => [s.cropperBoxStyle, {
531
+ width: `${y.cropperBox.width}px`,
532
+ height: `${y.cropperBox.height}px`,
533
+ transform: `translate(${w.value}px, ${j.value}px)`
534
+ }]), L = r(() => s.shape === "round" ? T.roundCorner : T.corner);
535
+ b(() => {
536
+ h.updatePreview({
537
+ width: y.imgData.width,
538
+ height: y.imgData.height,
539
+ translateX: M.value,
540
+ translateY: N.value,
541
+ rotate: y.rotate
542
+ });
543
+ });
544
+ function R() {
545
+ return h.getCropperCanvas();
546
+ }
547
+ return t({ getCropperCanvas: R }), (e, t) => (p(), i("div", c(x.value, {
548
+ ref: "container",
549
+ class: ["semi-cropper", [
550
+ g(f).class,
551
+ s.class,
552
+ s.className
553
+ ]],
554
+ style: [g(f).style, s.style]
555
+ }), [
556
+ a("div", D, [a("img", {
557
+ ref: "image",
558
+ class: "semi-cropper-img",
559
+ crossorigin: "anonymous",
560
+ src: s.src,
561
+ style: u(P.value),
562
+ onLoad: t[0] ||= (...e) => g(h).handleImageLoad && g(h).handleImageLoad(...e)
563
+ }, null, 44, O)]),
564
+ a("div", {
565
+ class: "semi-cropper-mask",
566
+ onMousedown: t[1] ||= (...e) => g(h).handleMaskMouseDown && g(h).handleMaskMouseDown(...e)
567
+ }, null, 32),
568
+ a("div", {
569
+ class: l(["semi-cropper-box", [s.cropperBoxCls ?? s.cropperBoxClassName, s.shape === "round" ? "semi-cropper-view-box-round" : void 0]]),
570
+ style: u(I.value),
571
+ onMousedown: t[4] ||= (...e) => g(h).handleCropperBoxMouseDown && g(h).handleCropperBoxMouseDown(...e)
572
+ }, [a("div", { class: l(["semi-cropper-view-box", s.shape.includes("round") ? "semi-cropper-view-box-round" : void 0]) }, [a("img", {
573
+ class: "semi-cropper-view-img",
574
+ src: s.src,
575
+ style: u(F.value),
576
+ onDragstart: t[2] ||= (...e) => g(h).viewIMGDragStart && g(h).viewIMGDragStart(...e)
577
+ }, null, 44, k)], 2), (p(!0), i(n, null, m(g(y).loaded && s.showResizeBox ? L.value : [], (e) => (p(), i("div", {
578
+ key: e,
579
+ class: l(["semi-cropper-box-corner", `semi-cropper-box-corner-${e}`]),
580
+ "data-dir": e,
581
+ onMousedown: t[3] ||= (...e) => g(h).handleCornerMouseDown && g(h).handleCornerMouseDown(...e)
582
+ }, null, 42, A))), 128))], 38)
583
+ ], 16));
584
+ }
585
+ });
586
+ //#endregion
587
+ export { j as t };
@@ -0,0 +1,57 @@
1
+ import { Comment as e, Text as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, defineComponent as o, h as s, mergeProps as c, openBlock as l, unref as u, useAttrs as d, useSlots as f } from "vue";
2
+ //#region src/divider/DividerContentRenderer.ts
3
+ var p = o({
4
+ name: "DividerContentRenderer",
5
+ props: { nodes: {
6
+ type: Array,
7
+ required: !0
8
+ } },
9
+ setup(e) {
10
+ return () => e.nodes.length === 1 && e.nodes[0]?.type === t ? s("span", {
11
+ class: "semi-divider_inner-text",
12
+ "x-semi-prop": "children"
13
+ }, e.nodes) : e.nodes;
14
+ }
15
+ }), m = /* @__PURE__ */ o({
16
+ name: "Divider",
17
+ inheritAttrs: !1,
18
+ __name: "Divider",
19
+ props: {
20
+ align: { default: "center" },
21
+ dashed: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ layout: { default: "horizontal" },
26
+ margin: {}
27
+ },
28
+ setup(o) {
29
+ let s = o, m = d(), h = f(), g = n(() => h.default?.() ?? []), _ = n(() => g.value.some((n) => n.type !== e && (n.type !== t || n.children !== ""))), v = n(() => s.layout === "horizontal" && _.value), y = n(() => [
30
+ "semi-divider",
31
+ `semi-divider-${s.layout}`,
32
+ s.dashed ? "semi-divider-dashed" : null,
33
+ v.value ? "semi-divider-with-text" : null,
34
+ v.value ? `semi-divider-with-text-${s.align}` : null,
35
+ m.class
36
+ ]), b = n(() => Object.fromEntries(Object.entries(m).filter(([e]) => !["class", "style"].includes(e)))), x = n(() => {
37
+ if (s.margin === void 0) return {};
38
+ let e = typeof s.margin == "number" ? `${s.margin}px` : s.margin;
39
+ return s.layout === "vertical" ? {
40
+ marginLeft: e,
41
+ marginRight: e
42
+ } : {
43
+ marginTop: e,
44
+ marginBottom: e
45
+ };
46
+ }), S = n(() => [x.value, m.style]);
47
+ return (e, t) => (l(), a("div", c(b.value, {
48
+ class: y.value,
49
+ style: S.value
50
+ }), [v.value ? (l(), r(u(p), {
51
+ key: 0,
52
+ nodes: g.value
53
+ }, null, 8, ["nodes"])) : i("", !0)], 16));
54
+ }
55
+ });
56
+ //#endregion
57
+ export { m as t };