@rhino-design/vue 0.2.1 → 0.2.3

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 (562) hide show
  1. package/README.md +4 -6
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/_virtual/alignment-pattern.js +4 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.js +4 -0
  6. package/dist/_virtual/dijkstra.js +4 -0
  7. package/dist/_virtual/error-correction-code.js +4 -0
  8. package/dist/_virtual/error-correction-level.js +4 -0
  9. package/dist/_virtual/finder-pattern.js +4 -0
  10. package/dist/_virtual/format-info.js +4 -0
  11. package/dist/_virtual/galois-field.js +4 -0
  12. package/dist/_virtual/mask-pattern.js +4 -0
  13. package/dist/_virtual/mode.js +4 -0
  14. package/dist/_virtual/polynomial.js +4 -0
  15. package/dist/_virtual/qrcode.js +4 -0
  16. package/dist/_virtual/regex.js +4 -0
  17. package/dist/_virtual/segments.js +4 -0
  18. package/dist/_virtual/svg-tag.js +4 -0
  19. package/dist/_virtual/utils.js +4 -0
  20. package/dist/_virtual/utils2.js +4 -0
  21. package/dist/_virtual/version-check.js +4 -0
  22. package/dist/_virtual/version.js +4 -0
  23. package/dist/arco.less +14834 -0
  24. package/dist/components/XAffix.vue.d.ts +1 -1
  25. package/dist/components/XAffix.vue.js +7 -0
  26. package/dist/components/XAffix.vue2.js +181 -0
  27. package/dist/components/XAlert.vue.js +106 -0
  28. package/dist/components/XAlert.vue2.js +4 -0
  29. package/dist/components/XAnchor.vue.d.ts +2 -2
  30. package/dist/components/XAnchor.vue.js +9 -0
  31. package/dist/components/XAnchor.vue2.js +204 -0
  32. package/dist/components/XAnchorLink.vue.js +7 -0
  33. package/dist/components/XAnchorLink.vue2.js +44 -0
  34. package/dist/components/XApp.vue.js +12 -0
  35. package/dist/components/XAutoComplete.vue.d.ts +649 -15
  36. package/dist/components/XAutoComplete.vue.js +399 -0
  37. package/dist/components/XAutoComplete.vue2.js +4 -0
  38. package/dist/components/XAvatar.vue.d.ts +2 -2
  39. package/dist/components/XAvatar.vue.js +166 -0
  40. package/dist/components/XAvatar.vue2.js +4 -0
  41. package/dist/components/XAvatarGroup.vue.js +27 -0
  42. package/dist/components/XAvatarGroup.vue2.js +4 -0
  43. package/dist/components/XBackTop.vue.d.ts +23 -7
  44. package/dist/components/XBackTop.vue.js +118 -0
  45. package/dist/components/XBackTop.vue2.js +4 -0
  46. package/dist/components/XBadge.vue.d.ts +3 -3
  47. package/dist/components/XBadge.vue.js +64 -0
  48. package/dist/components/XBadge.vue2.js +4 -0
  49. package/dist/components/XBaseMenu.vue.d.ts +5 -5
  50. package/dist/components/XBaseMenu.vue.js +37 -0
  51. package/dist/components/XBaseMenu.vue2.js +334 -0
  52. package/dist/components/XBreadcrumb.vue.d.ts +31 -6
  53. package/dist/components/XBreadcrumb.vue.js +97 -0
  54. package/dist/components/XBreadcrumb.vue2.js +4 -0
  55. package/dist/components/XBreadcrumbItem.vue.d.ts +21 -6
  56. package/dist/components/XBreadcrumbItem.vue.js +136 -0
  57. package/dist/components/XBreadcrumbItem.vue2.js +4 -0
  58. package/dist/components/XButton.vue.d.ts +4 -4
  59. package/dist/components/XButton.vue.js +7 -0
  60. package/dist/components/XButton.vue2.js +142 -0
  61. package/dist/components/XButtonG.vue.d.ts +2 -2
  62. package/dist/components/XButtonG.vue.js +7 -0
  63. package/dist/components/XButtonG.vue2.js +67 -0
  64. package/dist/components/XButtonGroup.vue.d.ts +1 -1
  65. package/dist/components/XButtonGroup.vue.js +39 -0
  66. package/dist/components/XButtonGroup.vue3.js +5 -0
  67. package/dist/components/XCalendar.vue.d.ts +5 -2
  68. package/dist/components/XCalendar.vue.js +309 -0
  69. package/dist/components/XCalendar.vue2.js +4 -0
  70. package/dist/components/XCard.vue.d.ts +1 -1
  71. package/dist/components/XCard.vue.js +80 -0
  72. package/dist/components/XCard.vue2.js +4 -0
  73. package/dist/components/XCarousel.vue.d.ts +2 -2
  74. package/dist/components/XCarousel.vue.js +7 -0
  75. package/dist/components/XCarousel.vue2.js +150 -0
  76. package/dist/components/XCarouselItem.vue.js +7 -0
  77. package/dist/components/XCarouselItem.vue2.js +112 -0
  78. package/dist/components/XCascader.vue.d.ts +19 -19
  79. package/dist/components/XCascader.vue.js +1015 -0
  80. package/dist/components/XCascader.vue2.js +4 -0
  81. package/dist/components/XCascaderPanel.vue.d.ts +6 -6
  82. package/dist/components/XCascaderPanel.vue.js +466 -0
  83. package/dist/components/XCascaderPanel.vue2.js +4 -0
  84. package/dist/components/XChatInput.vue.d.ts +5 -5
  85. package/dist/components/XChatInput.vue.js +7 -0
  86. package/dist/components/XChatInput.vue2.js +454 -0
  87. package/dist/components/XCheckbox.vue.d.ts +14 -8
  88. package/dist/components/XCheckbox.vue.js +154 -0
  89. package/dist/components/XCheckbox.vue2.js +4 -0
  90. package/dist/components/XCheckboxGroup.vue.d.ts +36 -13
  91. package/dist/components/XCheckboxGroup.vue.js +87 -0
  92. package/dist/components/XCheckboxGroup.vue2.js +4 -0
  93. package/dist/components/XCollapse.vue.d.ts +14 -7
  94. package/dist/components/XCollapse.vue.js +54 -0
  95. package/dist/components/XCollapse.vue2.js +4 -0
  96. package/dist/components/XCollapseItem.vue.d.ts +16 -4
  97. package/dist/components/XCollapseItem.vue.js +152 -0
  98. package/dist/components/XCollapseItem.vue2.js +4 -0
  99. package/dist/components/XColorGroup.vue.d.ts +1 -1
  100. package/dist/components/XColorGroup.vue.js +7 -0
  101. package/dist/components/XColorGroup.vue2.js +306 -0
  102. package/dist/components/XColorPicker.vue.js +62 -0
  103. package/dist/components/XColorPicker.vue2.js +4 -0
  104. package/dist/components/XComment.vue.js +129 -0
  105. package/dist/components/XComment.vue2.js +4 -0
  106. package/dist/components/XCompact.vue.js +17 -0
  107. package/dist/components/XCompact.vue2.js +4 -0
  108. package/dist/components/XConfigProvider.vue.d.ts +17 -4
  109. package/dist/components/XConfigProvider.vue.js +78 -0
  110. package/dist/components/XConfigProvider.vue2.js +4 -0
  111. package/dist/components/XCountdown.vue.d.ts +2 -2
  112. package/dist/components/XCountdown.vue.js +7 -0
  113. package/dist/components/XCountdown.vue2.js +104 -0
  114. package/dist/components/XCropper.vue.d.ts +2 -2
  115. package/dist/components/XCropper.vue.js +7 -0
  116. package/dist/components/XCropper.vue2.js +525 -0
  117. package/dist/components/XDatePicker.vue.d.ts +17 -17
  118. package/dist/components/XDatePicker.vue.js +1798 -0
  119. package/dist/components/XDatePicker.vue2.js +4 -0
  120. package/dist/components/XDescriptions.vue.d.ts +4 -4
  121. package/dist/components/XDescriptions.vue.js +260 -0
  122. package/dist/components/XDescriptions.vue2.js +4 -0
  123. package/dist/components/XDescriptionsItem.vue.d.ts +2 -1
  124. package/dist/components/XDescriptionsItem.vue.js +21 -0
  125. package/dist/components/XDescriptionsItem.vue2.js +4 -0
  126. package/dist/components/XDgroup.vue.d.ts +21 -0
  127. package/dist/components/XDgroup.vue.js +21 -0
  128. package/dist/components/XDgroup.vue2.js +4 -0
  129. package/dist/components/XDivider.vue.js +54 -0
  130. package/dist/components/XDivider.vue2.js +4 -0
  131. package/dist/components/XDoption.vue.d.ts +38 -0
  132. package/dist/components/XDoption.vue.js +59 -0
  133. package/dist/components/XDoption.vue2.js +4 -0
  134. package/dist/components/XDrawer.vue.d.ts +7 -7
  135. package/dist/components/XDrawer.vue.js +7 -0
  136. package/dist/components/XDrawer.vue2.js +320 -0
  137. package/dist/components/XDrawerService.d.ts +2 -0
  138. package/dist/components/XDrawerService.js +97 -0
  139. package/dist/components/XDropdown.vue.d.ts +43 -17
  140. package/dist/components/XDropdown.vue.js +127 -0
  141. package/dist/components/XDropdown.vue2.js +4 -0
  142. package/dist/components/XDropdownButton.vue.d.ts +65 -0
  143. package/dist/components/XDropdownButton.vue.js +84 -0
  144. package/dist/components/XDropdownButton.vue2.js +4 -0
  145. package/dist/components/XDropdownItem.vue.d.ts +29 -0
  146. package/dist/components/XDropdownItem.vue.js +47 -0
  147. package/dist/components/XDropdownItem.vue2.js +4 -0
  148. package/dist/components/XDropdownPanel.vue.d.ts +33 -0
  149. package/dist/components/XDropdownPanel.vue.js +58 -0
  150. package/dist/components/XDropdownPanel.vue2.js +4 -0
  151. package/dist/components/XDsubmenu.vue.d.ts +48 -0
  152. package/dist/components/XDsubmenu.vue.js +82 -0
  153. package/dist/components/XDsubmenu.vue2.js +4 -0
  154. package/dist/components/XEmpty.vue.d.ts +2 -2
  155. package/dist/components/XEmpty.vue.js +54 -0
  156. package/dist/components/XEmpty.vue2.js +4 -0
  157. package/dist/components/XFlex.vue.js +7 -0
  158. package/dist/components/XFlex.vue2.js +122 -0
  159. package/dist/components/XFloatButton.vue.js +28 -0
  160. package/dist/components/XFloatButton.vue2.js +4 -0
  161. package/dist/components/XFloatButtonGroup.vue.js +17 -0
  162. package/dist/components/XFloatButtonGroup.vue2.js +4 -0
  163. package/dist/components/XForm.vue.d.ts +2 -2
  164. package/dist/components/XForm.vue.js +156 -0
  165. package/dist/components/XForm.vue2.js +4 -0
  166. package/dist/components/XFormItem.vue.d.ts +21 -5
  167. package/dist/components/XFormItem.vue.js +425 -0
  168. package/dist/components/XFormItem.vue2.js +4 -0
  169. package/dist/components/XGrid.vue.d.ts +1 -1
  170. package/dist/components/XGrid.vue.js +7 -0
  171. package/dist/components/XGrid.vue2.js +88 -0
  172. package/dist/components/XGridItem.vue.d.ts +3 -3
  173. package/dist/components/XGridItem.vue.js +8 -0
  174. package/dist/components/XGridItem.vue2.js +112 -0
  175. package/dist/components/XGridLayout.vue.js +7 -0
  176. package/dist/components/XGridLayout.vue2.js +66 -0
  177. package/dist/components/XGridLayoutItem.vue.d.ts +1 -1
  178. package/dist/components/XGridLayoutItem.vue.js +7 -0
  179. package/dist/components/XGridLayoutItem.vue2.js +56 -0
  180. package/dist/components/XIcon.d.ts +1 -1
  181. package/dist/components/XIcon.js +5 -0
  182. package/dist/components/XIconLite.d.ts +1 -1
  183. package/dist/components/XIconLite.js +8 -0
  184. package/dist/components/XImage.vue.d.ts +7 -3
  185. package/dist/components/XImage.vue.js +7 -0
  186. package/dist/components/XImage.vue2.js +241 -0
  187. package/dist/components/XImageGroup.vue.js +7 -0
  188. package/dist/components/XImageGroup.vue2.js +22 -0
  189. package/dist/components/XInput.vue.d.ts +5 -5
  190. package/dist/components/XInput.vue.js +7 -0
  191. package/dist/components/XInput.vue2.js +537 -0
  192. package/dist/components/XInputComposite.vue.d.ts +12 -12
  193. package/dist/components/XInputComposite.vue.js +7 -0
  194. package/dist/components/XInputComposite.vue2.js +176 -0
  195. package/dist/components/XInputGroup.vue.js +19 -0
  196. package/dist/components/XInputGroup.vue3.js +5 -0
  197. package/dist/components/XInputNumber.vue.d.ts +9 -9
  198. package/dist/components/XInputNumber.vue.js +7 -0
  199. package/dist/components/XInputNumber.vue2.js +344 -0
  200. package/dist/components/XInputPassword.vue.d.ts +24 -24
  201. package/dist/components/XInputPassword.vue.js +7 -0
  202. package/dist/components/XInputPassword.vue2.js +125 -0
  203. package/dist/components/XInputSearch.vue.d.ts +26 -26
  204. package/dist/components/XInputSearch.vue.js +7 -0
  205. package/dist/components/XInputSearch.vue2.js +154 -0
  206. package/dist/components/XInputTag.vue.d.ts +10 -10
  207. package/dist/components/XInputTag.vue.js +367 -0
  208. package/dist/components/XInputTag.vue2.js +4 -0
  209. package/dist/components/XLayout.vue.js +22 -0
  210. package/dist/components/XLayout.vue2.js +4 -0
  211. package/dist/components/XLayoutContent.vue.js +13 -0
  212. package/dist/components/XLayoutContent.vue2.js +4 -0
  213. package/dist/components/XLayoutFooter.vue.js +22 -0
  214. package/dist/components/XLayoutFooter.vue2.js +4 -0
  215. package/dist/components/XLayoutHeader.vue.js +128 -0
  216. package/dist/components/XLayoutHeader.vue2.js +4 -0
  217. package/dist/components/XLayoutSider.vue.js +108 -0
  218. package/dist/components/XLayoutSider.vue2.js +4 -0
  219. package/dist/components/XLink.vue.d.ts +1 -1
  220. package/dist/components/XLink.vue.js +21 -0
  221. package/dist/components/XLink.vue2.js +4 -0
  222. package/dist/components/XList.vue.d.ts +8 -5
  223. package/dist/components/XList.vue.js +295 -0
  224. package/dist/components/XList.vue2.js +4 -0
  225. package/dist/components/XListItem.vue.d.ts +2 -3
  226. package/dist/components/XListItem.vue.js +53 -0
  227. package/dist/components/XListItem.vue2.js +4 -0
  228. package/dist/components/XListItemMeta.vue.js +43 -0
  229. package/dist/components/XListItemMeta.vue2.js +4 -0
  230. package/dist/components/XMention.vue.d.ts +899 -0
  231. package/dist/components/XMention.vue.js +456 -0
  232. package/dist/components/XMention.vue2.js +4 -0
  233. package/dist/components/XMentions.vue.js +16 -0
  234. package/dist/components/XMentions.vue2.js +4 -0
  235. package/dist/components/XMenu.vue.d.ts +7 -7
  236. package/dist/components/XMenu.vue.js +57 -0
  237. package/dist/components/XMenu.vue2.js +123 -0
  238. package/dist/components/XMenuIndent.vue.js +19 -0
  239. package/dist/components/XMenuIndent.vue2.js +21 -0
  240. package/dist/components/XMenuItem.vue.d.ts +43 -43
  241. package/dist/components/XMenuItem.vue.js +71 -0
  242. package/dist/components/XMenuItem.vue2.js +92 -0
  243. package/dist/components/XMenuItemGroup.vue.js +27 -0
  244. package/dist/components/XMenuItemGroup.vue2.js +26 -0
  245. package/dist/components/XMenuOverflowWrap.vue.js +116 -0
  246. package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
  247. package/dist/components/XMessage.vue.d.ts +1 -1
  248. package/dist/components/XMessage.vue.js +7 -0
  249. package/dist/components/XMessage.vue2.js +89 -0
  250. package/dist/components/XMessageList.d.ts +1 -1
  251. package/dist/components/XMessageList.js +61 -0
  252. package/dist/components/XMessageService.d.ts +2 -0
  253. package/dist/components/XMessageService.js +118 -0
  254. package/dist/components/XModal.vue.d.ts +8 -8
  255. package/dist/components/XModal.vue.js +7 -0
  256. package/dist/components/XModal.vue2.js +364 -0
  257. package/dist/components/XModalService.d.ts +2 -0
  258. package/dist/components/XModalService.js +157 -0
  259. package/dist/components/XNotification.vue.d.ts +31 -20
  260. package/dist/components/XNotification.vue.js +7 -0
  261. package/dist/components/XNotification.vue2.js +107 -0
  262. package/dist/components/XNotificationList.d.ts +39 -0
  263. package/dist/components/XNotificationList.js +70 -0
  264. package/dist/components/XNotificationService.d.ts +54 -15
  265. package/dist/components/XNotificationService.js +119 -0
  266. package/dist/components/XOptgroup.vue.d.ts +1 -0
  267. package/dist/components/XOptgroup.vue.js +14 -0
  268. package/dist/components/XOptgroup.vue2.js +4 -0
  269. package/dist/components/XOption.vue.d.ts +1 -0
  270. package/dist/components/XOption.vue.js +21 -0
  271. package/dist/components/XOption.vue2.js +4 -0
  272. package/dist/components/XOverflowList.vue.d.ts +38 -8
  273. package/dist/components/XOverflowList.vue.js +149 -0
  274. package/dist/components/XOverflowList.vue2.js +4 -0
  275. package/dist/components/XPageHeader.vue.d.ts +11 -5
  276. package/dist/components/XPageHeader.vue.js +84 -0
  277. package/dist/components/XPageHeader.vue2.js +4 -0
  278. package/dist/components/XPagination.vue.js +121 -0
  279. package/dist/components/XPagination.vue2.js +4 -0
  280. package/dist/components/XPopconfirm.vue.d.ts +82 -77
  281. package/dist/components/XPopconfirm.vue.js +90 -0
  282. package/dist/components/XPopconfirm.vue2.js +4 -0
  283. package/dist/components/XPopover.vue.d.ts +3 -3
  284. package/dist/components/XPopover.vue.js +53 -0
  285. package/dist/components/XPopover.vue2.js +4 -0
  286. package/dist/components/XProgress.vue.d.ts +2 -2
  287. package/dist/components/XProgress.vue.js +263 -0
  288. package/dist/components/XProgress.vue2.js +4 -0
  289. package/dist/components/XQRCode.vue.d.ts +3 -3
  290. package/dist/components/XQRCode.vue.js +141 -0
  291. package/dist/components/XQRCode.vue2.js +4 -0
  292. package/dist/components/XRadio.vue.d.ts +1 -1
  293. package/dist/components/XRadio.vue.js +138 -0
  294. package/dist/components/XRadio.vue2.js +4 -0
  295. package/dist/components/XRadioButton.vue.d.ts +1 -1
  296. package/dist/components/XRadioButton.vue.js +41 -0
  297. package/dist/components/XRadioButton.vue2.js +4 -0
  298. package/dist/components/XRadioGroup.vue.d.ts +3 -3
  299. package/dist/components/XRadioGroup.vue.js +168 -0
  300. package/dist/components/XRadioGroup.vue2.js +4 -0
  301. package/dist/components/XRate.vue.d.ts +3 -3
  302. package/dist/components/XRate.vue.js +145 -0
  303. package/dist/components/XRate.vue2.js +4 -0
  304. package/dist/components/XResizeBox.vue.d.ts +41 -9
  305. package/dist/components/XResizeBox.vue.js +184 -0
  306. package/dist/components/XResizeBox.vue2.js +4 -0
  307. package/dist/components/XResult.vue.js +78 -0
  308. package/dist/components/XResult.vue2.js +4 -0
  309. package/dist/components/XRichTextEditor.vue.d.ts +2 -2
  310. package/dist/components/XRichTextEditor.vue.js +7 -0
  311. package/dist/components/XRichTextEditor.vue2.js +742 -0
  312. package/dist/components/XScrollbar.vue.d.ts +176 -5
  313. package/dist/components/XScrollbar.vue.js +190 -0
  314. package/dist/components/XScrollbar.vue2.js +4 -0
  315. package/dist/components/XScrollbarThumb.vue.d.ts +22 -0
  316. package/dist/components/XScrollbarThumb.vue.js +97 -0
  317. package/dist/components/XScrollbarThumb.vue2.js +4 -0
  318. package/dist/components/XSegmented.vue.js +7 -0
  319. package/dist/components/XSegmented.vue2.js +71 -0
  320. package/dist/components/XSelect.vue.d.ts +27 -27
  321. package/dist/components/XSelect.vue.js +858 -0
  322. package/dist/components/XSelect.vue2.js +4 -0
  323. package/dist/components/XSkeleton.vue.d.ts +100 -29
  324. package/dist/components/XSkeleton.vue.js +37 -0
  325. package/dist/components/XSkeleton.vue2.js +59 -0
  326. package/dist/components/XSkeletonLine.vue.d.ts +15 -0
  327. package/dist/components/XSkeletonLine.vue.js +36 -0
  328. package/dist/components/XSkeletonLine.vue2.js +4 -0
  329. package/dist/components/XSkeletonShape.vue.d.ts +9 -0
  330. package/dist/components/XSkeletonShape.vue.js +21 -0
  331. package/dist/components/XSkeletonShape.vue2.js +4 -0
  332. package/dist/components/XSlider.vue.d.ts +86 -86
  333. package/dist/components/XSlider.vue.js +402 -0
  334. package/dist/components/XSlider.vue2.js +4 -0
  335. package/dist/components/XSpace.vue.d.ts +59 -28
  336. package/dist/components/XSpace.vue.js +125 -0
  337. package/dist/components/XSpace.vue2.js +4 -0
  338. package/dist/components/XSpin.vue.js +54 -0
  339. package/dist/components/XSpin.vue2.js +4 -0
  340. package/dist/components/XSplit.vue.d.ts +3 -3
  341. package/dist/components/XSplit.vue.js +7 -0
  342. package/dist/components/XSplit.vue2.js +126 -0
  343. package/dist/components/XStatistic.vue.d.ts +5 -5
  344. package/dist/components/XStatistic.vue.js +7 -0
  345. package/dist/components/XStatistic.vue2.js +176 -0
  346. package/dist/components/XStep.vue.d.ts +3 -3
  347. package/dist/components/XStep.vue.js +91 -0
  348. package/dist/components/XStep.vue2.js +4 -0
  349. package/dist/components/XSteps.vue.d.ts +2 -2
  350. package/dist/components/XSteps.vue.js +73 -0
  351. package/dist/components/XSteps.vue2.js +4 -0
  352. package/dist/components/XSubMenu.vue.d.ts +30 -30
  353. package/dist/components/XSubMenu.vue.js +109 -0
  354. package/dist/components/XSubMenu.vue2.js +69 -0
  355. package/dist/components/XSubMenuInline.vue.js +74 -0
  356. package/dist/components/XSubMenuInline.vue2.js +56 -0
  357. package/dist/components/XSubMenuPop.vue.d.ts +29 -29
  358. package/dist/components/XSubMenuPop.vue.js +91 -0
  359. package/dist/components/XSubMenuPop.vue2.js +113 -0
  360. package/dist/components/XSwitch.vue.d.ts +5 -5
  361. package/dist/components/XSwitch.vue.js +133 -0
  362. package/dist/components/XSwitch.vue2.js +4 -0
  363. package/dist/components/XTabPane.vue.d.ts +4 -4
  364. package/dist/components/XTabPane.vue.js +59 -0
  365. package/dist/components/XTabPane.vue2.js +4 -0
  366. package/dist/components/XTable.vue.d.ts +5 -5
  367. package/dist/components/XTable.vue.js +7 -0
  368. package/dist/components/XTable.vue2.js +1059 -0
  369. package/dist/components/XTableFilter.vue.js +7 -0
  370. package/dist/components/XTableFilter.vue2.js +141 -0
  371. package/dist/components/XTabs.vue.d.ts +53 -25
  372. package/dist/components/XTabs.vue.js +402 -0
  373. package/dist/components/XTabs.vue2.js +4 -0
  374. package/dist/components/XTag.vue.d.ts +5 -3
  375. package/dist/components/XTag.vue.js +126 -0
  376. package/dist/components/XTag.vue2.js +4 -0
  377. package/dist/components/XTextarea.vue.d.ts +9 -9
  378. package/dist/components/XTextarea.vue.js +261 -0
  379. package/dist/components/XTextarea.vue2.js +4 -0
  380. package/dist/components/XTimePicker.vue.d.ts +13 -13
  381. package/dist/components/XTimePicker.vue.js +827 -0
  382. package/dist/components/XTimePicker.vue2.js +4 -0
  383. package/dist/components/XTimeline.vue.d.ts +2 -2
  384. package/dist/components/XTimeline.vue.js +84 -0
  385. package/dist/components/XTimeline.vue2.js +4 -0
  386. package/dist/components/XTimelineItem.vue.d.ts +3 -3
  387. package/dist/components/XTimelineItem.vue.js +202 -0
  388. package/dist/components/XTimelineItem.vue2.js +4 -0
  389. package/dist/components/XTooltip.vue.d.ts +76 -76
  390. package/dist/components/XTooltip.vue.js +78 -0
  391. package/dist/components/XTooltip.vue2.js +4 -0
  392. package/dist/components/XTour.vue.js +120 -0
  393. package/dist/components/XTour.vue2.js +4 -0
  394. package/dist/components/XTr.vue.js +12 -0
  395. package/dist/components/XTransfer.vue.js +128 -0
  396. package/dist/components/XTransfer.vue2.js +4 -0
  397. package/dist/components/XTree.vue.d.ts +3 -1
  398. package/dist/components/XTree.vue.js +7 -0
  399. package/dist/components/XTree.vue2.js +601 -0
  400. package/dist/components/XTreeNode.vue.js +7 -0
  401. package/dist/components/XTreeNode.vue2.js +314 -0
  402. package/dist/components/XTreeSelect.vue.d.ts +175 -29
  403. package/dist/components/XTreeSelect.vue.js +7 -0
  404. package/dist/components/XTreeSelect.vue2.js +715 -0
  405. package/dist/components/XTrigger.vue.d.ts +6 -6
  406. package/dist/components/XTrigger.vue.js +492 -0
  407. package/dist/components/XTrigger.vue2.js +4 -0
  408. package/dist/components/XTypography.vue.d.ts +4 -4
  409. package/dist/components/XTypography.vue.js +51 -0
  410. package/dist/components/XTypography.vue2.js +126 -0
  411. package/dist/components/XTypographyParagraph.vue.d.ts +2 -2
  412. package/dist/components/XTypographyParagraph.vue.js +83 -0
  413. package/dist/components/XTypographyParagraph.vue2.js +4 -0
  414. package/dist/components/XTypographyText.vue.d.ts +3 -3
  415. package/dist/components/XTypographyText.vue.js +76 -0
  416. package/dist/components/XTypographyText.vue2.js +4 -0
  417. package/dist/components/XTypographyTitle.vue.d.ts +2 -2
  418. package/dist/components/XTypographyTitle.vue.js +77 -0
  419. package/dist/components/XTypographyTitle.vue2.js +4 -0
  420. package/dist/components/XUpload.vue.d.ts +7 -5
  421. package/dist/components/XUpload.vue.js +7 -0
  422. package/dist/components/XUpload.vue2.js +1060 -0
  423. package/dist/components/XVerificationCode.vue.d.ts +3 -3
  424. package/dist/components/XVerificationCode.vue.js +149 -0
  425. package/dist/components/XVerificationCode.vue2.js +4 -0
  426. package/dist/components/XWatermark.vue.d.ts +30 -4
  427. package/dist/components/XWatermark.vue.js +204 -0
  428. package/dist/components/XWatermark.vue2.js +4 -0
  429. package/dist/components/index.d.ts +504 -1
  430. package/dist/components/index.js +308 -0
  431. package/dist/components/result-assets/result-403.svg.js +4 -0
  432. package/dist/components/result-assets/result-404.svg.js +4 -0
  433. package/dist/components/result-assets/result-500.svg.js +4 -0
  434. package/dist/components/statistic-utils.js +81 -0
  435. package/dist/components/timelineContext.js +4 -0
  436. package/dist/components/x-breadcrumb-context.d.ts +9 -0
  437. package/dist/components/x-breadcrumb-context.js +4 -0
  438. package/dist/components/x-checkbox-context.d.ts +19 -0
  439. package/dist/components/x-checkbox-context.js +4 -0
  440. package/dist/components/x-dropdown-context.d.ts +7 -0
  441. package/dist/components/x-dropdown-context.js +4 -0
  442. package/dist/components/x-icon-shared.d.ts +1 -1
  443. package/dist/components/x-icon-shared.js +151 -0
  444. package/dist/components/x-list-shared.d.ts +20 -8
  445. package/dist/components/x-radio-context.js +4 -0
  446. package/dist/components/x-scrollbar-types.d.ts +5 -0
  447. package/dist/composables/collapse.d.ts +8 -5
  448. package/dist/composables/collapse.js +9 -0
  449. package/dist/composables/config-provider.d.ts +29 -0
  450. package/dist/composables/config-provider.js +48 -0
  451. package/dist/composables/config.js +39 -0
  452. package/dist/composables/form.js +397 -0
  453. package/dist/composables/i18n.d.ts +4 -2
  454. package/dist/composables/i18n.js +257 -0
  455. package/dist/composables/menu-context.js +6 -0
  456. package/dist/composables/menu-hooks/use-level.js +25 -0
  457. package/dist/composables/menu-hooks/use-menu-context.js +8 -0
  458. package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
  459. package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
  460. package/dist/composables/menu-hooks/use-menu.js +19 -0
  461. package/dist/composables/popup.js +177 -0
  462. package/dist/composables/scrollbar-visibility.d.ts +1 -0
  463. package/dist/composables/scrollbar-visibility.js +96 -0
  464. package/dist/composables/steps.d.ts +1 -0
  465. package/dist/composables/steps.js +9 -0
  466. package/dist/composables/tabs.d.ts +19 -8
  467. package/dist/composables/tabs.js +10 -0
  468. package/dist/composables/theme-context.d.ts +9 -0
  469. package/dist/composables/theme-context.js +24 -0
  470. package/dist/composables/theme.js +53 -0
  471. package/dist/composables/useMergeState.js +27 -0
  472. package/dist/composables/useResponsive.js +36 -0
  473. package/dist/iconfont/generated/icons/guanbi.js +7 -0
  474. package/dist/iconfont/generated/icons/shijian.js +7 -0
  475. package/dist/iconfont/internal-icons.js +71 -0
  476. package/dist/index.cjs +10 -11
  477. package/dist/index.css +14834 -0
  478. package/dist/index.js +382 -27802
  479. package/dist/index.less +14834 -0
  480. package/dist/install.js +39 -0
  481. package/dist/locales/ar-EG.js +5 -0
  482. package/dist/locales/da-DK.d.ts +381 -0
  483. package/dist/locales/da-DK.js +5 -0
  484. package/dist/locales/de-DE.js +5 -0
  485. package/dist/locales/en-US.js +312 -0
  486. package/dist/locales/es-ES.js +5 -0
  487. package/dist/locales/fr-FR.js +5 -0
  488. package/dist/locales/id-ID.js +5 -0
  489. package/dist/locales/it-IT.js +5 -0
  490. package/dist/locales/ja-JP.js +5 -0
  491. package/dist/locales/km-KH.js +5 -0
  492. package/dist/locales/ko-KR.js +5 -0
  493. package/dist/locales/ms-MY.js +5 -0
  494. package/dist/locales/nl-NL.d.ts +381 -0
  495. package/dist/locales/nl-NL.js +5 -0
  496. package/dist/locales/pt-PT.js +5 -0
  497. package/dist/locales/ru-RU.js +5 -0
  498. package/dist/locales/th-TH.js +5 -0
  499. package/dist/locales/vi-VN.js +5 -0
  500. package/dist/locales/zh-CN.js +312 -0
  501. package/dist/locales/zh-TW.js +5 -0
  502. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  503. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  504. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  505. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  506. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  507. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  508. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  509. package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
  510. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  511. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  512. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  513. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  514. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  515. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  516. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  517. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  518. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  519. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  520. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  521. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  522. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  523. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  524. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  525. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  526. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  527. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  528. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  529. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  530. package/dist/style.css +14834 -1
  531. package/dist/style.less +14834 -0
  532. package/package.json +12 -4
  533. package/dist/components/__tests__/XAffix.test.d.ts +0 -1
  534. package/dist/components/__tests__/XButton.test.d.ts +0 -1
  535. package/dist/components/__tests__/XCard.test.d.ts +0 -1
  536. package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
  537. package/dist/components/__tests__/XCascader.test.d.ts +0 -1
  538. package/dist/components/__tests__/XCropper.test.d.ts +0 -1
  539. package/dist/components/__tests__/XMention.test.d.ts +0 -1
  540. package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
  541. package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
  542. package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
  543. package/dist/components/__tests__/XTable.test.d.ts +0 -1
  544. package/dist/components/__tests__/XTag.test.d.ts +0 -1
  545. package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
  546. package/dist/components/__tests__/XTree.test.d.ts +0 -1
  547. package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
  548. package/dist/favicon.ico +0 -1
  549. package/dist/favicon.svg +0 -5
  550. package/dist/images/carousel-0.png +0 -0
  551. package/dist/images/carousel-2.png +0 -0
  552. package/dist/images/carousel-3.png +0 -0
  553. package/dist/images/image-1.png +0 -0
  554. package/dist/img/avatar-1.jpg +0 -0
  555. package/dist/img/avatar.jpg +0 -0
  556. package/dist/img/avatar0.jpg +0 -0
  557. package/dist/img/avatar1.jpg +0 -0
  558. package/dist/img/image-1.png +0 -0
  559. package/dist/img/image-2.png +0 -0
  560. package/dist/img/image-3.png +0 -0
  561. package/dist/index.cjs.map +0 -1
  562. package/dist/index.js.map +0 -1
@@ -31,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<AffixProps, {
31
31
  }, string, import('vue').PublicProps, Readonly<AffixProps> & Readonly<{
32
32
  onChange?: ((fixed: boolean) => any) | undefined;
33
33
  }>, {
34
- offsetTop: number;
35
34
  disabled: boolean;
35
+ offsetTop: number;
36
36
  zIndex: number | string;
37
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
38
  wrapperRef: HTMLDivElement;
@@ -0,0 +1,7 @@
1
+ import f from "./XAffix.vue2.js";
2
+ /* empty css */
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(f, [["__scopeId", "data-v-fe4e48cf"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,181 @@
1
+ import { defineComponent as X, ref as x, computed as j, watch as I, nextTick as G, onMounted as J, onUnmounted as K, openBlock as M, createElementBlock as k, mergeProps as Q, normalizeStyle as _, createCommentVNode as Y, createElementVNode as Z, normalizeClass as ee, renderSlot as te, isRef as ne } from "vue";
2
+ const oe = /* @__PURE__ */ X({
3
+ __name: "XAffix",
4
+ props: {
5
+ offsetTop: { default: 0 },
6
+ offsetBottom: {},
7
+ target: {},
8
+ targetContainer: {},
9
+ disabled: { type: Boolean, default: !1 },
10
+ zIndex: { default: 100 }
11
+ },
12
+ emits: ["change"],
13
+ setup(F, { expose: A, emit: O }) {
14
+ const n = F, D = O, h = x(null), c = x(null), m = x(!1), g = x({}), y = x({}), H = j(() => ({
15
+ "x-affix": !0,
16
+ "x-affix--fixed": m.value
17
+ }));
18
+ let o = window, s = window, d = null, p = null, v = 0, R = !1;
19
+ function B(t) {
20
+ return typeof window < "u" && t === window;
21
+ }
22
+ function z(t) {
23
+ const e = typeof t == "function" ? t() : t;
24
+ return ne(e) ? e.value : e;
25
+ }
26
+ function E(t) {
27
+ if (typeof window > "u" || typeof document > "u")
28
+ return;
29
+ const e = z(t);
30
+ if (e)
31
+ return typeof e == "string" ? document.querySelector(e) ?? void 0 : e;
32
+ }
33
+ function N(t) {
34
+ if (B(t))
35
+ return {
36
+ top: 0,
37
+ bottom: window.innerHeight
38
+ };
39
+ const e = t.getBoundingClientRect();
40
+ return {
41
+ top: e.top,
42
+ bottom: e.bottom
43
+ };
44
+ }
45
+ function $(t) {
46
+ t !== m.value && (m.value = t, D("change", t));
47
+ }
48
+ function P() {
49
+ g.value = {}, y.value = {}, $(!1);
50
+ }
51
+ function q() {
52
+ const t = h.value, e = c.value;
53
+ if (!t || !e)
54
+ return {
55
+ width: 0,
56
+ height: 0
57
+ };
58
+ const f = t.getBoundingClientRect();
59
+ let l = f.width || t.offsetWidth, w = f.height || t.offsetHeight;
60
+ const a = window.getComputedStyle(t).display.startsWith("inline");
61
+ if (m.value && a) {
62
+ const r = e.style.width, u = e.style.maxWidth;
63
+ e.style.width = "max-content", e.style.maxWidth = "none";
64
+ const b = e.getBoundingClientRect();
65
+ b.width > 0 && (l = b.width), b.height > 0 && (w = b.height), e.style.width = r, e.style.maxWidth = u;
66
+ } else {
67
+ const r = e.getBoundingClientRect();
68
+ !l && r.width > 0 && (l = r.width), !w && r.height > 0 && (w = r.height);
69
+ }
70
+ return { width: l, height: w };
71
+ }
72
+ function L() {
73
+ const t = h.value;
74
+ if (!t || typeof window > "u") return;
75
+ if (n.disabled) {
76
+ P();
77
+ return;
78
+ }
79
+ const e = N(o), f = t.getBoundingClientRect(), { width: l, height: w } = q(), W = n.offsetBottom === void 0;
80
+ let a = !1, r = {};
81
+ if (W) {
82
+ const u = n.offsetTop ?? 0;
83
+ a = f.top <= e.top + u, a && (r = {
84
+ position: "fixed",
85
+ top: `${e.top + u}px`,
86
+ left: `${f.left}px`,
87
+ width: `${l}px`,
88
+ zIndex: n.zIndex
89
+ });
90
+ } else {
91
+ const u = n.offsetBottom ?? 0;
92
+ a = e.bottom - f.bottom <= u, a && (r = {
93
+ position: "fixed",
94
+ bottom: `${window.innerHeight - e.bottom + u}px`,
95
+ left: `${f.left}px`,
96
+ width: `${l}px`,
97
+ zIndex: n.zIndex
98
+ });
99
+ }
100
+ if ($(a), !a) {
101
+ g.value = {}, y.value = {};
102
+ return;
103
+ }
104
+ g.value = {
105
+ width: `${l}px`,
106
+ height: `${w}px`
107
+ }, y.value = r;
108
+ }
109
+ function i() {
110
+ typeof window > "u" || (cancelAnimationFrame(v), v = requestAnimationFrame(() => {
111
+ v = 0, L();
112
+ }));
113
+ }
114
+ function S() {
115
+ o == null || o.removeEventListener("scroll", i), s == null || s.removeEventListener("scroll", i), window.removeEventListener("resize", i), window.removeEventListener("scroll", i, !0);
116
+ }
117
+ function U() {
118
+ o.addEventListener("scroll", i, { passive: !0 }), s !== o && s.addEventListener("scroll", i, { passive: !0 }), window.addEventListener("resize", i, { passive: !0 }), window.addEventListener("scroll", i, { passive: !0, capture: !0 });
119
+ }
120
+ function C() {
121
+ d == null || d.disconnect(), d = null, p == null || p.disconnect(), p = null;
122
+ }
123
+ function V() {
124
+ C(), typeof ResizeObserver < "u" && (d = new ResizeObserver(() => {
125
+ i();
126
+ }), h.value && d.observe(h.value), c.value && d.observe(c.value), B(o) || d.observe(o), s !== o && !B(s) && d.observe(s)), typeof MutationObserver < "u" && c.value && (p = new MutationObserver(() => {
127
+ i();
128
+ }), p.observe(c.value, {
129
+ childList: !0,
130
+ subtree: !0,
131
+ characterData: !0,
132
+ attributes: !0
133
+ }));
134
+ }
135
+ function T() {
136
+ !R || typeof window > "u" || (S(), C(), o = E(n.target) ?? window, s = E(n.targetContainer) ?? window, U(), V(), i());
137
+ }
138
+ return A({
139
+ updatePosition: L,
140
+ scheduleUpdate: i
141
+ }), I(
142
+ () => [z(n.target), z(n.targetContainer)],
143
+ () => {
144
+ G(() => {
145
+ T();
146
+ });
147
+ }
148
+ ), I(
149
+ () => [n.offsetTop, n.offsetBottom, n.disabled, n.zIndex],
150
+ () => {
151
+ i();
152
+ }
153
+ ), J(() => {
154
+ R = !0, T();
155
+ }), K(() => {
156
+ R = !1, S(), C(), v && (cancelAnimationFrame(v), v = 0);
157
+ }), (t, e) => (M(), k("div", Q({
158
+ ref_key: "wrapperRef",
159
+ ref: h,
160
+ class: "x-affix-wrapper"
161
+ }, t.$attrs), [
162
+ m.value ? (M(), k("div", {
163
+ key: 0,
164
+ class: "x-affix-placeholder",
165
+ style: _(g.value),
166
+ "aria-hidden": "true"
167
+ }, null, 4)) : Y("", !0),
168
+ Z("div", {
169
+ ref_key: "affixRef",
170
+ ref: c,
171
+ class: ee(H.value),
172
+ style: _(y.value)
173
+ }, [
174
+ te(t.$slots, "default", {}, void 0, !0)
175
+ ], 6)
176
+ ], 16));
177
+ }
178
+ });
179
+ export {
180
+ oe as default
181
+ };
@@ -0,0 +1,106 @@
1
+ import { defineComponent as B, getCurrentInstance as z, useAttrs as L, ref as I, computed as a, openBlock as s, createBlock as S, Transition as T, withCtx as $, createElementBlock as l, mergeProps as A, unref as u, renderSlot as n, createVNode as p, createCommentVNode as r, createElementVNode as C, createTextVNode as N, toDisplayString as V } from "vue";
2
+ import w from "./XIcon.js";
3
+ const Z = {
4
+ key: 0,
5
+ class: "x-alert__icon"
6
+ }, D = {
7
+ key: 0,
8
+ class: "x-alert__status-svg",
9
+ "aria-hidden": "true"
10
+ }, E = ["innerHTML"], H = { class: "x-alert__body" }, P = {
11
+ key: 0,
12
+ class: "x-alert__title"
13
+ }, X = { class: "x-alert__content" }, G = {
14
+ key: 1,
15
+ class: "x-alert__action"
16
+ }, j = /* @__PURE__ */ B({
17
+ __name: "XAlert",
18
+ props: {
19
+ type: { default: "info" },
20
+ showIcon: { type: Boolean, default: !0 },
21
+ closable: { type: Boolean, default: !1 },
22
+ title: { default: "" },
23
+ banner: { type: Boolean, default: !1 },
24
+ center: { type: Boolean, default: !1 }
25
+ },
26
+ emits: ["close", "afterClose"],
27
+ setup(c, { emit: _ }) {
28
+ const g = {
29
+ info: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="info"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M512 672.5c-17.7 0-32-14.3-32-32v-416c0-17.7 14.3-32 32-32s32 14.3 32 32v416c0 17.7-14.3 32-32 32zM512 801c-17.7 0-32-14.3-32-32v-1c0-17.7 14.3-32 32-32s32 14.3 32 32v1c0 17.7-14.3 32-32 32z"></path></svg>',
30
+ success: '<svg role="img" aria-label="success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8.00016 14C11.3139 14 14.0002 11.3137 14.0002 8.00004C14.0002 4.68633 11.3139 2.00004 8.00016 2.00004C4.68646 2.00004 2.00016 4.68633 2.00016 8.00004C2.00016 11.3137 4.68645 14 8.00016 14ZM15.3335 8.00004C15.3335 12.0501 12.0503 15.3334 8.00016 15.3334C3.95008 15.3334 0.66683 12.0501 0.666831 8.00004C0.666831 3.94995 3.95008 0.666707 8.00016 0.666707C12.0503 0.666708 15.3335 3.94995 15.3335 8.00004ZM7.3335 10.6095L4.72402 8.00004L5.66683 7.05723L7.3335 8.7239L10.6668 5.39057L11.6096 6.33337L7.3335 10.6095Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" fill-opacity="0.9"></path></svg>',
31
+ warning: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="warning"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M512 672.5c-17.7 0-32-14.3-32-32v-416c0-17.7 14.3-32 32-32s32 14.3 32 32v416c0 17.7-14.3 32-32 32zM512 801c-17.7 0-32-14.3-32-32v-1c0-17.7 14.3-32 32-32s32 14.3 32 32v1c0 17.7-14.3 32-32 32z"></path></svg>',
32
+ error: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="error"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M562.9 517.7l145.1 145c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-145-145.1c-3.1-3.1-8.2-3.1-11.3 0L361.3 708c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l145.1-145.1c3.1-3.1 3.1-8.2 0-11.3L316 361.3c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l145.1 145.1c3.1 3.1 8.2 3.1 11.3 0l145-145.1c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-145.1 145a8.15 8.15 0 0 0 0 11.4z"></path></svg>'
33
+ }, e = c, d = _, o = z(), m = L(), v = I(!0), h = a(() => !!(e.title || o != null && o.slots.title)), x = a(() => [
34
+ "x-alert",
35
+ `x-alert--${e.type}`,
36
+ {
37
+ "x-alert--with-title": h.value,
38
+ "x-alert--banner": e.banner,
39
+ "x-alert--center": e.center
40
+ }
41
+ ]), i = a(() => e.type !== "normal"), y = a(() => e.showIcon && (i.value || !!(o != null && o.slots.icon))), k = a(() => i.value && e.type === "warning"), f = a(() => i.value ? g[e.type] : "");
42
+ function b(t) {
43
+ v.value = !1, d("close", t);
44
+ }
45
+ function M() {
46
+ d("afterClose");
47
+ }
48
+ return (t, O) => (s(), S(T, {
49
+ name: "x-fade",
50
+ onAfterLeave: M
51
+ }, {
52
+ default: $(() => [
53
+ v.value ? (s(), l("div", A({
54
+ key: 0,
55
+ role: "alert",
56
+ class: x.value
57
+ }, u(m)), [
58
+ y.value ? (s(), l("div", Z, [
59
+ n(t.$slots, "icon", {}, () => [
60
+ k.value ? (s(), l("span", D, [
61
+ p(u(w), { name: "warning" })
62
+ ])) : f.value ? (s(), l("span", {
63
+ key: 1,
64
+ class: "x-alert__status-svg",
65
+ "aria-hidden": "true",
66
+ innerHTML: f.value
67
+ }, null, 8, E)) : r("", !0)
68
+ ])
69
+ ])) : r("", !0),
70
+ C("div", H, [
71
+ h.value ? (s(), l("div", P, [
72
+ n(t.$slots, "title", {}, () => [
73
+ N(V(c.title), 1)
74
+ ])
75
+ ])) : r("", !0),
76
+ C("div", X, [
77
+ n(t.$slots, "default")
78
+ ])
79
+ ]),
80
+ t.$slots.action ? (s(), l("div", G, [
81
+ n(t.$slots, "action")
82
+ ])) : r("", !0),
83
+ c.closable ? (s(), l("div", {
84
+ key: 2,
85
+ tabindex: "-1",
86
+ role: "button",
87
+ "aria-label": "Close",
88
+ class: "x-alert__close-btn",
89
+ onClick: b
90
+ }, [
91
+ n(t.$slots, "close-element", {}, () => [
92
+ p(u(w), {
93
+ name: "guanbi",
94
+ size: 12
95
+ })
96
+ ])
97
+ ])) : r("", !0)
98
+ ], 16)) : r("", !0)
99
+ ]),
100
+ _: 3
101
+ }));
102
+ }
103
+ });
104
+ export {
105
+ j as default
106
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XAlert.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -18,8 +18,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
18
18
  changeHash?: boolean;
19
19
  smooth?: boolean;
20
20
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- change: (href: string) => any;
22
21
  select: (href: string, preHash: string) => any;
22
+ change: (href: string) => any;
23
23
  }, string, import('vue').PublicProps, Readonly<{
24
24
  boundary?: "start" | "end" | "center" | "nearest" | number;
25
25
  lineLess?: boolean;
@@ -28,8 +28,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
28
28
  changeHash?: boolean;
29
29
  smooth?: boolean;
30
30
  }> & Readonly<{
31
- onChange?: ((href: string) => any) | undefined;
32
31
  onSelect?: ((href: string, preHash: string) => any) | undefined;
32
+ onChange?: ((href: string) => any) | undefined;
33
33
  }>, {
34
34
  smooth: boolean;
35
35
  boundary: "start" | "end" | "center" | "nearest" | number;
@@ -0,0 +1,9 @@
1
+ import o from "./XAnchor.vue2.js";
2
+ import { anchorKey as f } from "./XAnchor.vue2.js";
3
+ /* empty css */
4
+ import r from "../_virtual/_plugin-vue_export-helper.js";
5
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0a36d1be"]]);
6
+ export {
7
+ f as anchorKey,
8
+ m as default
9
+ };
@@ -0,0 +1,204 @@
1
+ import { defineComponent as Z, ref as s, provide as ee, watch as I, nextTick as C, onMounted as te, onUnmounted as ne, openBlock as q, createElementBlock as z, normalizeClass as oe, createCommentVNode as ie, createElementVNode as re, renderSlot as ce } from "vue";
2
+ const le = { class: "x-anchor__list" }, se = Symbol.for("rhino.design.vue.anchor"), ue = /* @__PURE__ */ Z({
3
+ __name: "XAnchor",
4
+ props: {
5
+ boundary: { default: "start" },
6
+ lineLess: { type: Boolean, default: !1 },
7
+ scrollContainer: {},
8
+ target: {},
9
+ changeHash: { type: Boolean, default: !0 },
10
+ smooth: { type: Boolean, default: !0 }
11
+ },
12
+ emits: ["select", "change"],
13
+ setup(b, { emit: F }) {
14
+ const n = b, M = F, T = s(), R = s(), f = s(""), c = /* @__PURE__ */ new Map(), w = s([]), k = s(0), S = /* @__PURE__ */ new Map(), L = s(!1);
15
+ let h, m = 0, g = null, v = null;
16
+ const B = s(window), x = s(document.documentElement);
17
+ function E(e) {
18
+ return e === window;
19
+ }
20
+ function $() {
21
+ const e = n.target || n.scrollContainer;
22
+ return e ? typeof e == "string" ? document.querySelector(e) || window : e : window;
23
+ }
24
+ function A() {
25
+ const e = $(), t = v !== e;
26
+ B.value = e, x.value = E(e) ? document.documentElement : e, t && G(e);
27
+ }
28
+ function N(e, t) {
29
+ !e || !t || (c.has(e) || (w.value = [...w.value, e]), c.set(e, t), k.value += 1);
30
+ }
31
+ function D(e) {
32
+ c.has(e) && (c.delete(e), w.value = w.value.filter((t) => t !== e), S.delete(e), k.value += 1);
33
+ }
34
+ function K(e) {
35
+ !e || f.value === e || (f.value = e, M("change", e));
36
+ }
37
+ function V(e) {
38
+ if (!e || !e.startsWith("#"))
39
+ return null;
40
+ const t = S.get(e);
41
+ if (t && document.contains(t))
42
+ return t;
43
+ let o = e.slice(1);
44
+ try {
45
+ o = decodeURIComponent(o);
46
+ } catch {
47
+ o = e.slice(1);
48
+ }
49
+ const r = document.getElementById(o);
50
+ return S.set(e, r), r;
51
+ }
52
+ function W(e) {
53
+ const t = V(e);
54
+ if (!t)
55
+ return;
56
+ const o = B.value, r = E(o);
57
+ if (typeof n.boundary == "number") {
58
+ const l = n.boundary;
59
+ if (r) {
60
+ const y = t.getBoundingClientRect().top + window.scrollY - l;
61
+ window.scrollTo({
62
+ top: y,
63
+ behavior: n.smooth ? "smooth" : "auto"
64
+ });
65
+ } else {
66
+ const y = o, J = y.getBoundingClientRect(), P = t.getBoundingClientRect(), Q = y.scrollTop + P.top - J.top - l;
67
+ y.scrollTo({
68
+ top: Q,
69
+ behavior: n.smooth ? "smooth" : "auto"
70
+ });
71
+ }
72
+ return;
73
+ }
74
+ if (r) {
75
+ t.scrollIntoView({
76
+ block: n.boundary,
77
+ behavior: n.smooth ? "smooth" : "auto"
78
+ });
79
+ return;
80
+ }
81
+ const i = o, _ = i.getBoundingClientRect(), a = t.getBoundingClientRect(), u = i.scrollTop + a.top - _.top;
82
+ let d = u;
83
+ if (n.boundary === "center")
84
+ d -= (i.clientHeight - a.height) / 2;
85
+ else if (n.boundary === "end")
86
+ d -= i.clientHeight - a.height;
87
+ else if (n.boundary === "nearest") {
88
+ const l = u - (i.clientHeight - a.height);
89
+ d = Math.abs(i.scrollTop - u) <= Math.abs(i.scrollTop - l) ? u : l;
90
+ }
91
+ i.scrollTo({
92
+ top: d,
93
+ behavior: n.smooth ? "smooth" : "auto"
94
+ });
95
+ }
96
+ function O() {
97
+ L.value = !0, h && clearTimeout(h), h = setTimeout(() => {
98
+ L.value = !1;
99
+ }, n.smooth ? 320 : 80);
100
+ }
101
+ function U() {
102
+ if (n.lineLess || !R.value)
103
+ return;
104
+ const e = c.get(f.value);
105
+ e && (R.value.style.top = `${e.offsetTop}px`);
106
+ }
107
+ function H(e) {
108
+ if (!c.has(e) && T.value) {
109
+ const t = T.value.querySelector(
110
+ `a[href="${CSS.escape(e)}"]`
111
+ );
112
+ if (t) {
113
+ const o = t.closest("li");
114
+ o && c.set(e, o);
115
+ }
116
+ }
117
+ K(e);
118
+ }
119
+ function X(e, t) {
120
+ e.preventDefault();
121
+ const o = f.value;
122
+ O(), W(t), H(t), n.changeHash && window.location.hash !== t && ((window.location.hash || "").startsWith("#/") || window.history.pushState(null, "", t)), M("select", t, o);
123
+ }
124
+ function Y() {
125
+ const e = B.value, t = x.value;
126
+ if (!e || !t)
127
+ return;
128
+ const o = typeof n.boundary == "number" ? n.boundary : 0, r = E(e), i = t.getBoundingClientRect(), _ = r ? window.innerHeight : t.clientHeight;
129
+ for (const a of w.value) {
130
+ const u = V(a);
131
+ if (!u)
132
+ continue;
133
+ const { top: d } = u.getBoundingClientRect(), l = r ? d - o : d - i.top - o;
134
+ if (l >= 0 && l <= _ / 2)
135
+ return a;
136
+ }
137
+ }
138
+ function j() {
139
+ if (L.value)
140
+ return;
141
+ const e = Y();
142
+ e && H(e);
143
+ }
144
+ function p() {
145
+ m || (m = requestAnimationFrame(() => {
146
+ m = 0, j();
147
+ }));
148
+ }
149
+ function G(e) {
150
+ g && v && v.removeEventListener("scroll", g), g = () => {
151
+ p();
152
+ }, v = e, e.addEventListener("scroll", g, { passive: !0 });
153
+ }
154
+ return ee(se, {
155
+ currentLink: f,
156
+ addLink: N,
157
+ removeLink: D,
158
+ handleClick: X
159
+ }), I(f, () => {
160
+ C(() => {
161
+ U();
162
+ });
163
+ }), I(
164
+ () => [n.target, n.scrollContainer],
165
+ () => {
166
+ C(() => {
167
+ A(), p();
168
+ });
169
+ }
170
+ ), I(
171
+ () => [n.boundary, k.value],
172
+ () => {
173
+ C(() => {
174
+ p(), U();
175
+ });
176
+ }
177
+ ), te(() => {
178
+ A(), window.addEventListener("resize", p, { passive: !0 }), C(() => {
179
+ const e = decodeURIComponent(window.location.hash || "");
180
+ c.has(e) ? (W(e), H(e)) : p();
181
+ });
182
+ }), ne(() => {
183
+ v && g && v.removeEventListener("scroll", g), window.removeEventListener("resize", p), m && (cancelAnimationFrame(m), m = 0), h && (clearTimeout(h), h = void 0);
184
+ }), (e, t) => (q(), z("div", {
185
+ ref_key: "anchorRef",
186
+ ref: T,
187
+ class: oe(["x-anchor", { "x-anchor--line-less": b.lineLess }])
188
+ }, [
189
+ b.lineLess ? ie("", !0) : (q(), z("div", {
190
+ key: 0,
191
+ ref_key: "lineSliderRef",
192
+ ref: R,
193
+ class: "x-anchor__line-slider"
194
+ }, null, 512)),
195
+ re("ul", le, [
196
+ ce(e.$slots, "default", {}, void 0, !0)
197
+ ])
198
+ ], 2));
199
+ }
200
+ });
201
+ export {
202
+ se as anchorKey,
203
+ ue as default
204
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./XAnchorLink.vue2.js";
2
+ /* empty css */
3
+ import r from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c3884e5e"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as h, useSlots as d, inject as k, ref as m, computed as _, onMounted as v, onUnmounted as p, openBlock as i, createElementBlock as l, normalizeClass as x, createElementVNode as C, createTextVNode as y, toDisplayString as L, renderSlot as s, createCommentVNode as c, unref as b } from "vue";
2
+ import { anchorKey as A } from "./XAnchor.vue2.js";
3
+ const N = ["href"], S = {
4
+ key: 0,
5
+ class: "x-anchor__sublist"
6
+ }, E = /* @__PURE__ */ h({
7
+ __name: "XAnchorLink",
8
+ props: {
9
+ href: {},
10
+ title: {}
11
+ },
12
+ setup(n) {
13
+ const t = n, a = d(), e = k(A), r = m();
14
+ e || console.warn("[XAnchorLink] must be used inside XAnchor");
15
+ const u = _(() => e ? e.currentLink.value === t.href : !1);
16
+ function f(o) {
17
+ e && e.handleClick(o, t.href);
18
+ }
19
+ return v(() => {
20
+ e && t.href && r.value && e.addLink(t.href, r.value);
21
+ }), p(() => {
22
+ e && e.removeLink(t.href);
23
+ }), (o, V) => (i(), l("li", {
24
+ ref_key: "linkRef",
25
+ ref: r,
26
+ class: x(["x-anchor__link-item", { "x-anchor__link-item--active": u.value }])
27
+ }, [
28
+ C("a", {
29
+ class: "x-anchor__link",
30
+ href: n.href,
31
+ onClick: f
32
+ }, [
33
+ y(L(n.title) + " ", 1),
34
+ n.title ? c("", !0) : s(o.$slots, "default", { key: 0 }, void 0, !0)
35
+ ], 8, N),
36
+ b(a).sublist ? (i(), l("ul", S, [
37
+ s(o.$slots, "sublist", {}, void 0, !0)
38
+ ])) : c("", !0)
39
+ ], 2));
40
+ }
41
+ });
42
+ export {
43
+ E as default
44
+ };
@@ -0,0 +1,12 @@
1
+ import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
2
+ import c from "../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, s = { class: "x-app" };
4
+ function p(e, _) {
5
+ return o(), t("div", s, [
6
+ r(e.$slots, "default")
7
+ ]);
8
+ }
9
+ const l = /* @__PURE__ */ c(n, [["render", p]]);
10
+ export {
11
+ l as default
12
+ };