@rhino-design/vue 0.2.2 → 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 (462) hide show
  1. package/README.md +1 -1
  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.js +7 -0
  25. package/dist/components/XAffix.vue2.js +181 -0
  26. package/dist/components/XAlert.vue.js +106 -0
  27. package/dist/components/XAlert.vue2.js +4 -0
  28. package/dist/components/XAnchor.vue.js +9 -0
  29. package/dist/components/XAnchor.vue2.js +204 -0
  30. package/dist/components/XAnchorLink.vue.js +7 -0
  31. package/dist/components/XAnchorLink.vue2.js +44 -0
  32. package/dist/components/XApp.vue.js +12 -0
  33. package/dist/components/XAutoComplete.vue.js +399 -0
  34. package/dist/components/XAutoComplete.vue2.js +4 -0
  35. package/dist/components/XAvatar.vue.js +166 -0
  36. package/dist/components/XAvatar.vue2.js +4 -0
  37. package/dist/components/XAvatarGroup.vue.js +27 -0
  38. package/dist/components/XAvatarGroup.vue2.js +4 -0
  39. package/dist/components/XBackTop.vue.js +118 -0
  40. package/dist/components/XBackTop.vue2.js +4 -0
  41. package/dist/components/XBadge.vue.js +64 -0
  42. package/dist/components/XBadge.vue2.js +4 -0
  43. package/dist/components/XBaseMenu.vue.js +37 -0
  44. package/dist/components/XBaseMenu.vue2.js +334 -0
  45. package/dist/components/XBreadcrumb.vue.d.ts +12 -7
  46. package/dist/components/XBreadcrumb.vue.js +97 -0
  47. package/dist/components/XBreadcrumb.vue2.js +4 -0
  48. package/dist/components/XBreadcrumbItem.vue.d.ts +7 -4
  49. package/dist/components/XBreadcrumbItem.vue.js +136 -0
  50. package/dist/components/XBreadcrumbItem.vue2.js +4 -0
  51. package/dist/components/XButton.vue.js +7 -0
  52. package/dist/components/XButton.vue2.js +142 -0
  53. package/dist/components/XButtonG.vue.js +7 -0
  54. package/dist/components/XButtonG.vue2.js +67 -0
  55. package/dist/components/XButtonGroup.vue.js +39 -0
  56. package/dist/components/XButtonGroup.vue3.js +5 -0
  57. package/dist/components/XCalendar.vue.js +309 -0
  58. package/dist/components/XCalendar.vue2.js +4 -0
  59. package/dist/components/XCard.vue.js +80 -0
  60. package/dist/components/XCard.vue2.js +4 -0
  61. package/dist/components/XCarousel.vue.js +7 -0
  62. package/dist/components/XCarousel.vue2.js +150 -0
  63. package/dist/components/XCarouselItem.vue.js +7 -0
  64. package/dist/components/XCarouselItem.vue2.js +112 -0
  65. package/dist/components/XCascader.vue.js +1015 -0
  66. package/dist/components/XCascader.vue2.js +4 -0
  67. package/dist/components/XCascaderPanel.vue.js +466 -0
  68. package/dist/components/XCascaderPanel.vue2.js +4 -0
  69. package/dist/components/XChatInput.vue.js +7 -0
  70. package/dist/components/XChatInput.vue2.js +454 -0
  71. package/dist/components/XCheckbox.vue.js +154 -0
  72. package/dist/components/XCheckbox.vue2.js +4 -0
  73. package/dist/components/XCheckboxGroup.vue.js +87 -0
  74. package/dist/components/XCheckboxGroup.vue2.js +4 -0
  75. package/dist/components/XCollapse.vue.js +54 -0
  76. package/dist/components/XCollapse.vue2.js +4 -0
  77. package/dist/components/XCollapseItem.vue.js +152 -0
  78. package/dist/components/XCollapseItem.vue2.js +4 -0
  79. package/dist/components/XColorGroup.vue.js +7 -0
  80. package/dist/components/XColorGroup.vue2.js +306 -0
  81. package/dist/components/XColorPicker.vue.js +62 -0
  82. package/dist/components/XColorPicker.vue2.js +4 -0
  83. package/dist/components/XComment.vue.js +129 -0
  84. package/dist/components/XComment.vue2.js +4 -0
  85. package/dist/components/XCompact.vue.js +17 -0
  86. package/dist/components/XCompact.vue2.js +4 -0
  87. package/dist/components/XConfigProvider.vue.js +78 -0
  88. package/dist/components/XConfigProvider.vue2.js +4 -0
  89. package/dist/components/XCountdown.vue.js +7 -0
  90. package/dist/components/XCountdown.vue2.js +104 -0
  91. package/dist/components/XCropper.vue.js +7 -0
  92. package/dist/components/XCropper.vue2.js +525 -0
  93. package/dist/components/XDatePicker.vue.js +1798 -0
  94. package/dist/components/XDatePicker.vue2.js +4 -0
  95. package/dist/components/XDescriptions.vue.js +260 -0
  96. package/dist/components/XDescriptions.vue2.js +4 -0
  97. package/dist/components/XDescriptionsItem.vue.js +21 -0
  98. package/dist/components/XDescriptionsItem.vue2.js +4 -0
  99. package/dist/components/XDgroup.vue.js +21 -0
  100. package/dist/components/XDgroup.vue2.js +4 -0
  101. package/dist/components/XDivider.vue.js +54 -0
  102. package/dist/components/XDivider.vue2.js +4 -0
  103. package/dist/components/XDoption.vue.js +59 -0
  104. package/dist/components/XDoption.vue2.js +4 -0
  105. package/dist/components/XDrawer.vue.js +7 -0
  106. package/dist/components/XDrawer.vue2.js +320 -0
  107. package/dist/components/XDrawerService.d.ts +2 -0
  108. package/dist/components/XDrawerService.js +97 -0
  109. package/dist/components/XDropdown.vue.d.ts +8 -7
  110. package/dist/components/XDropdown.vue.js +127 -0
  111. package/dist/components/XDropdown.vue2.js +4 -0
  112. package/dist/components/XDropdownButton.vue.js +84 -0
  113. package/dist/components/XDropdownButton.vue2.js +4 -0
  114. package/dist/components/XDropdownItem.vue.js +47 -0
  115. package/dist/components/XDropdownItem.vue2.js +4 -0
  116. package/dist/components/XDropdownPanel.vue.js +58 -0
  117. package/dist/components/XDropdownPanel.vue2.js +4 -0
  118. package/dist/components/XDsubmenu.vue.js +82 -0
  119. package/dist/components/XDsubmenu.vue2.js +4 -0
  120. package/dist/components/XEmpty.vue.js +54 -0
  121. package/dist/components/XEmpty.vue2.js +4 -0
  122. package/dist/components/XFlex.vue.js +7 -0
  123. package/dist/components/XFlex.vue2.js +122 -0
  124. package/dist/components/XFloatButton.vue.js +28 -0
  125. package/dist/components/XFloatButton.vue2.js +4 -0
  126. package/dist/components/XFloatButtonGroup.vue.js +17 -0
  127. package/dist/components/XFloatButtonGroup.vue2.js +4 -0
  128. package/dist/components/XForm.vue.js +156 -0
  129. package/dist/components/XForm.vue2.js +4 -0
  130. package/dist/components/XFormItem.vue.js +425 -0
  131. package/dist/components/XFormItem.vue2.js +4 -0
  132. package/dist/components/XGrid.vue.js +7 -0
  133. package/dist/components/XGrid.vue2.js +88 -0
  134. package/dist/components/XGridItem.vue.js +8 -0
  135. package/dist/components/XGridItem.vue2.js +112 -0
  136. package/dist/components/XGridLayout.vue.js +7 -0
  137. package/dist/components/XGridLayout.vue2.js +66 -0
  138. package/dist/components/XGridLayoutItem.vue.js +7 -0
  139. package/dist/components/XGridLayoutItem.vue2.js +56 -0
  140. package/dist/components/XIcon.js +5 -0
  141. package/dist/components/XIconLite.js +8 -0
  142. package/dist/components/XImage.vue.js +7 -0
  143. package/dist/components/XImage.vue2.js +241 -0
  144. package/dist/components/XImageGroup.vue.js +7 -0
  145. package/dist/components/XImageGroup.vue2.js +22 -0
  146. package/dist/components/XInput.vue.js +7 -0
  147. package/dist/components/XInput.vue2.js +537 -0
  148. package/dist/components/XInputComposite.vue.js +7 -0
  149. package/dist/components/XInputComposite.vue2.js +176 -0
  150. package/dist/components/XInputGroup.vue.js +19 -0
  151. package/dist/components/XInputGroup.vue3.js +5 -0
  152. package/dist/components/XInputNumber.vue.js +7 -0
  153. package/dist/components/XInputNumber.vue2.js +344 -0
  154. package/dist/components/XInputPassword.vue.js +7 -0
  155. package/dist/components/XInputPassword.vue2.js +125 -0
  156. package/dist/components/XInputSearch.vue.js +7 -0
  157. package/dist/components/XInputSearch.vue2.js +154 -0
  158. package/dist/components/XInputTag.vue.js +367 -0
  159. package/dist/components/XInputTag.vue2.js +4 -0
  160. package/dist/components/XLayout.vue.js +22 -0
  161. package/dist/components/XLayout.vue2.js +4 -0
  162. package/dist/components/XLayoutContent.vue.js +13 -0
  163. package/dist/components/XLayoutContent.vue2.js +4 -0
  164. package/dist/components/XLayoutFooter.vue.js +22 -0
  165. package/dist/components/XLayoutFooter.vue2.js +4 -0
  166. package/dist/components/XLayoutHeader.vue.js +128 -0
  167. package/dist/components/XLayoutHeader.vue2.js +4 -0
  168. package/dist/components/XLayoutSider.vue.js +108 -0
  169. package/dist/components/XLayoutSider.vue2.js +4 -0
  170. package/dist/components/XLink.vue.js +21 -0
  171. package/dist/components/XLink.vue2.js +4 -0
  172. package/dist/components/XList.vue.js +295 -0
  173. package/dist/components/XList.vue2.js +4 -0
  174. package/dist/components/XListItem.vue.js +53 -0
  175. package/dist/components/XListItem.vue2.js +4 -0
  176. package/dist/components/XListItemMeta.vue.js +43 -0
  177. package/dist/components/XListItemMeta.vue2.js +4 -0
  178. package/dist/components/XMention.vue.js +456 -0
  179. package/dist/components/XMention.vue2.js +4 -0
  180. package/dist/components/XMentions.vue.js +16 -0
  181. package/dist/components/XMentions.vue2.js +4 -0
  182. package/dist/components/XMenu.vue.js +57 -0
  183. package/dist/components/XMenu.vue2.js +123 -0
  184. package/dist/components/XMenuIndent.vue.js +19 -0
  185. package/dist/components/XMenuIndent.vue2.js +21 -0
  186. package/dist/components/XMenuItem.vue.js +71 -0
  187. package/dist/components/XMenuItem.vue2.js +92 -0
  188. package/dist/components/XMenuItemGroup.vue.js +27 -0
  189. package/dist/components/XMenuItemGroup.vue2.js +26 -0
  190. package/dist/components/XMenuOverflowWrap.vue.js +116 -0
  191. package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
  192. package/dist/components/XMessage.vue.js +7 -0
  193. package/dist/components/XMessage.vue2.js +89 -0
  194. package/dist/components/XMessageList.js +61 -0
  195. package/dist/components/XMessageService.js +118 -0
  196. package/dist/components/XModal.vue.js +7 -0
  197. package/dist/components/XModal.vue2.js +364 -0
  198. package/dist/components/XModalService.js +157 -0
  199. package/dist/components/XNotification.vue.js +7 -0
  200. package/dist/components/XNotification.vue2.js +107 -0
  201. package/dist/components/XNotificationList.js +70 -0
  202. package/dist/components/XNotificationService.js +119 -0
  203. package/dist/components/XOptgroup.vue.js +14 -0
  204. package/dist/components/XOptgroup.vue2.js +4 -0
  205. package/dist/components/XOption.vue.js +21 -0
  206. package/dist/components/XOption.vue2.js +4 -0
  207. package/dist/components/XOverflowList.vue.js +149 -0
  208. package/dist/components/XOverflowList.vue2.js +4 -0
  209. package/dist/components/XPageHeader.vue.js +84 -0
  210. package/dist/components/XPageHeader.vue2.js +4 -0
  211. package/dist/components/XPagination.vue.js +121 -0
  212. package/dist/components/XPagination.vue2.js +4 -0
  213. package/dist/components/XPopconfirm.vue.js +90 -0
  214. package/dist/components/XPopconfirm.vue2.js +4 -0
  215. package/dist/components/XPopover.vue.js +53 -0
  216. package/dist/components/XPopover.vue2.js +4 -0
  217. package/dist/components/XProgress.vue.js +263 -0
  218. package/dist/components/XProgress.vue2.js +4 -0
  219. package/dist/components/XQRCode.vue.js +141 -0
  220. package/dist/components/XQRCode.vue2.js +4 -0
  221. package/dist/components/XRadio.vue.js +138 -0
  222. package/dist/components/XRadio.vue2.js +4 -0
  223. package/dist/components/XRadioButton.vue.js +41 -0
  224. package/dist/components/XRadioButton.vue2.js +4 -0
  225. package/dist/components/XRadioGroup.vue.js +168 -0
  226. package/dist/components/XRadioGroup.vue2.js +4 -0
  227. package/dist/components/XRate.vue.js +145 -0
  228. package/dist/components/XRate.vue2.js +4 -0
  229. package/dist/components/XResizeBox.vue.js +184 -0
  230. package/dist/components/XResizeBox.vue2.js +4 -0
  231. package/dist/components/XResult.vue.js +78 -0
  232. package/dist/components/XResult.vue2.js +4 -0
  233. package/dist/components/XRichTextEditor.vue.js +7 -0
  234. package/dist/components/XRichTextEditor.vue2.js +742 -0
  235. package/dist/components/XScrollbar.vue.d.ts +192 -0
  236. package/dist/components/XScrollbar.vue.js +190 -0
  237. package/dist/components/XScrollbar.vue2.js +4 -0
  238. package/dist/components/XScrollbarThumb.vue.d.ts +2 -6
  239. package/dist/components/XScrollbarThumb.vue.js +97 -0
  240. package/dist/components/XScrollbarThumb.vue2.js +4 -0
  241. package/dist/components/XSegmented.vue.js +7 -0
  242. package/dist/components/XSegmented.vue2.js +71 -0
  243. package/dist/components/XSelect.vue.js +858 -0
  244. package/dist/components/XSelect.vue2.js +4 -0
  245. package/dist/components/XSkeleton.vue.js +37 -0
  246. package/dist/components/XSkeleton.vue2.js +59 -0
  247. package/dist/components/XSkeletonLine.vue.js +36 -0
  248. package/dist/components/XSkeletonLine.vue2.js +4 -0
  249. package/dist/components/XSkeletonShape.vue.js +21 -0
  250. package/dist/components/XSkeletonShape.vue2.js +4 -0
  251. package/dist/components/XSlider.vue.js +402 -0
  252. package/dist/components/XSlider.vue2.js +4 -0
  253. package/dist/components/XSpace.vue.js +125 -0
  254. package/dist/components/XSpace.vue2.js +4 -0
  255. package/dist/components/XSpin.vue.js +54 -0
  256. package/dist/components/XSpin.vue2.js +4 -0
  257. package/dist/components/XSplit.vue.js +7 -0
  258. package/dist/components/XSplit.vue2.js +126 -0
  259. package/dist/components/XStatistic.vue.js +7 -0
  260. package/dist/components/XStatistic.vue2.js +176 -0
  261. package/dist/components/XStep.vue.js +91 -0
  262. package/dist/components/XStep.vue2.js +4 -0
  263. package/dist/components/XSteps.vue.js +73 -0
  264. package/dist/components/XSteps.vue2.js +4 -0
  265. package/dist/components/XSubMenu.vue.js +109 -0
  266. package/dist/components/XSubMenu.vue2.js +69 -0
  267. package/dist/components/XSubMenuInline.vue.js +74 -0
  268. package/dist/components/XSubMenuInline.vue2.js +56 -0
  269. package/dist/components/XSubMenuPop.vue.js +91 -0
  270. package/dist/components/XSubMenuPop.vue2.js +113 -0
  271. package/dist/components/XSwitch.vue.js +133 -0
  272. package/dist/components/XSwitch.vue2.js +4 -0
  273. package/dist/components/XTabPane.vue.js +59 -0
  274. package/dist/components/XTabPane.vue2.js +4 -0
  275. package/dist/components/XTable.vue.js +7 -0
  276. package/dist/components/XTable.vue2.js +1059 -0
  277. package/dist/components/XTableFilter.vue.js +7 -0
  278. package/dist/components/XTableFilter.vue2.js +141 -0
  279. package/dist/components/XTabs.vue.js +402 -0
  280. package/dist/components/XTabs.vue2.js +4 -0
  281. package/dist/components/XTag.vue.js +126 -0
  282. package/dist/components/XTag.vue2.js +4 -0
  283. package/dist/components/XTextarea.vue.js +261 -0
  284. package/dist/components/XTextarea.vue2.js +4 -0
  285. package/dist/components/XTimePicker.vue.js +827 -0
  286. package/dist/components/XTimePicker.vue2.js +4 -0
  287. package/dist/components/XTimeline.vue.js +84 -0
  288. package/dist/components/XTimeline.vue2.js +4 -0
  289. package/dist/components/XTimelineItem.vue.js +202 -0
  290. package/dist/components/XTimelineItem.vue2.js +4 -0
  291. package/dist/components/XTooltip.vue.js +78 -0
  292. package/dist/components/XTooltip.vue2.js +4 -0
  293. package/dist/components/XTour.vue.js +120 -0
  294. package/dist/components/XTour.vue2.js +4 -0
  295. package/dist/components/XTr.vue.js +12 -0
  296. package/dist/components/XTransfer.vue.js +128 -0
  297. package/dist/components/XTransfer.vue2.js +4 -0
  298. package/dist/components/XTree.vue.js +7 -0
  299. package/dist/components/XTree.vue2.js +601 -0
  300. package/dist/components/XTreeNode.vue.js +7 -0
  301. package/dist/components/XTreeNode.vue2.js +314 -0
  302. package/dist/components/XTreeSelect.vue.js +7 -0
  303. package/dist/components/XTreeSelect.vue2.js +715 -0
  304. package/dist/components/XTrigger.vue.js +492 -0
  305. package/dist/components/XTrigger.vue2.js +4 -0
  306. package/dist/components/XTypography.vue.js +51 -0
  307. package/dist/components/XTypography.vue2.js +126 -0
  308. package/dist/components/XTypographyParagraph.vue.js +83 -0
  309. package/dist/components/XTypographyParagraph.vue2.js +4 -0
  310. package/dist/components/XTypographyText.vue.js +76 -0
  311. package/dist/components/XTypographyText.vue2.js +4 -0
  312. package/dist/components/XTypographyTitle.vue.js +77 -0
  313. package/dist/components/XTypographyTitle.vue2.js +4 -0
  314. package/dist/components/XUpload.vue.js +7 -0
  315. package/dist/components/XUpload.vue2.js +1060 -0
  316. package/dist/components/XVerificationCode.vue.js +149 -0
  317. package/dist/components/XVerificationCode.vue2.js +4 -0
  318. package/dist/components/XWatermark.vue.js +204 -0
  319. package/dist/components/XWatermark.vue2.js +4 -0
  320. package/dist/components/index.d.ts +10 -6
  321. package/dist/components/index.js +308 -0
  322. package/dist/components/result-assets/result-403.svg.js +4 -0
  323. package/dist/components/result-assets/result-404.svg.js +4 -0
  324. package/dist/components/result-assets/result-500.svg.js +4 -0
  325. package/dist/components/statistic-utils.js +81 -0
  326. package/dist/components/timelineContext.js +4 -0
  327. package/dist/components/x-breadcrumb-context.js +4 -0
  328. package/dist/components/x-checkbox-context.js +4 -0
  329. package/dist/components/x-dropdown-context.js +4 -0
  330. package/dist/components/x-icon-shared.js +151 -0
  331. package/dist/components/x-radio-context.js +4 -0
  332. package/dist/components/x-scrollbar-types.d.ts +5 -0
  333. package/dist/composables/collapse.js +9 -0
  334. package/dist/composables/config-provider.js +48 -0
  335. package/dist/composables/config.js +39 -0
  336. package/dist/composables/form.js +397 -0
  337. package/dist/composables/i18n.js +257 -0
  338. package/dist/composables/menu-context.js +6 -0
  339. package/dist/composables/menu-hooks/use-level.js +25 -0
  340. package/dist/composables/menu-hooks/use-menu-context.js +8 -0
  341. package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
  342. package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
  343. package/dist/composables/menu-hooks/use-menu.js +19 -0
  344. package/dist/composables/popup.js +177 -0
  345. package/dist/composables/scrollbar-visibility.js +96 -0
  346. package/dist/composables/steps.js +9 -0
  347. package/dist/composables/tabs.js +10 -0
  348. package/dist/composables/theme-context.js +24 -0
  349. package/dist/composables/theme.js +53 -0
  350. package/dist/composables/useMergeState.js +27 -0
  351. package/dist/composables/useResponsive.js +36 -0
  352. package/dist/iconfont/generated/icons/guanbi.js +7 -0
  353. package/dist/iconfont/generated/icons/shijian.js +7 -0
  354. package/dist/iconfont/internal-icons.js +71 -0
  355. package/dist/index.cjs +1 -2
  356. package/dist/index.css +14834 -0
  357. package/dist/index.js +382 -31255
  358. package/dist/index.less +14834 -0
  359. package/dist/install.js +39 -0
  360. package/dist/locales/ar-EG.js +5 -0
  361. package/dist/locales/da-DK.js +5 -0
  362. package/dist/locales/de-DE.js +5 -0
  363. package/dist/locales/en-US.js +312 -0
  364. package/dist/locales/es-ES.js +5 -0
  365. package/dist/locales/fr-FR.js +5 -0
  366. package/dist/locales/id-ID.js +5 -0
  367. package/dist/locales/it-IT.js +5 -0
  368. package/dist/locales/ja-JP.js +5 -0
  369. package/dist/locales/km-KH.js +5 -0
  370. package/dist/locales/ko-KR.js +5 -0
  371. package/dist/locales/ms-MY.js +5 -0
  372. package/dist/locales/nl-NL.js +5 -0
  373. package/dist/locales/pt-PT.js +5 -0
  374. package/dist/locales/ru-RU.js +5 -0
  375. package/dist/locales/th-TH.js +5 -0
  376. package/dist/locales/vi-VN.js +5 -0
  377. package/dist/locales/zh-CN.js +312 -0
  378. package/dist/locales/zh-TW.js +5 -0
  379. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  380. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  381. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  382. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  383. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  384. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  385. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  386. package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
  387. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  388. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  389. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  390. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  391. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  392. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  393. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  394. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  395. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  396. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  397. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  398. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  399. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  400. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  401. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  402. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  403. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  404. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  405. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  406. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  407. package/dist/style.css +14834 -1
  408. package/dist/style.less +14834 -0
  409. package/package.json +12 -4
  410. package/dist/components/XRangePicker.vue.d.ts +0 -45
  411. package/dist/components/__tests__/XAffix.test.d.ts +0 -1
  412. package/dist/components/__tests__/XAutoComplete.test.d.ts +0 -1
  413. package/dist/components/__tests__/XBackTop.test.d.ts +0 -1
  414. package/dist/components/__tests__/XBreadcrumb.test.d.ts +0 -1
  415. package/dist/components/__tests__/XButton.test.d.ts +0 -1
  416. package/dist/components/__tests__/XCard.test.d.ts +0 -1
  417. package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
  418. package/dist/components/__tests__/XCascader.test.d.ts +0 -1
  419. package/dist/components/__tests__/XCheckbox.test.d.ts +0 -1
  420. package/dist/components/__tests__/XCollapse.test.d.ts +0 -1
  421. package/dist/components/__tests__/XComplexTriggerTheme.test.d.ts +0 -1
  422. package/dist/components/__tests__/XCropper.test.d.ts +0 -1
  423. package/dist/components/__tests__/XDropdown.test.d.ts +0 -1
  424. package/dist/components/__tests__/XImage.test.d.ts +0 -1
  425. package/dist/components/__tests__/XMention.test.d.ts +0 -1
  426. package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
  427. package/dist/components/__tests__/XOverflowList.test.d.ts +0 -1
  428. package/dist/components/__tests__/XOverlayServiceTheme.test.d.ts +0 -1
  429. package/dist/components/__tests__/XPageHeader.test.d.ts +0 -1
  430. package/dist/components/__tests__/XRadioGroup.test.d.ts +0 -1
  431. package/dist/components/__tests__/XResizeBox.test.d.ts +0 -1
  432. package/dist/components/__tests__/XSkeleton.test.d.ts +0 -1
  433. package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
  434. package/dist/components/__tests__/XSteps.test.d.ts +0 -1
  435. package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
  436. package/dist/components/__tests__/XTable.test.d.ts +0 -1
  437. package/dist/components/__tests__/XTabs.test.d.ts +0 -1
  438. package/dist/components/__tests__/XTag.test.d.ts +0 -1
  439. package/dist/components/__tests__/XThemeAttrAllComponentsSmoke.test.d.ts +0 -1
  440. package/dist/components/__tests__/XThemeAttrsForwarding.test.d.ts +0 -1
  441. package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
  442. package/dist/components/__tests__/XTour.test.d.ts +0 -1
  443. package/dist/components/__tests__/XTree.test.d.ts +0 -1
  444. package/dist/components/__tests__/XTreeSelect.test.d.ts +0 -1
  445. package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
  446. package/dist/components/__tests__/XTriggerWrappersTheme.test.d.ts +0 -1
  447. package/dist/components/__tests__/XWatermark.test.d.ts +0 -1
  448. package/dist/favicon.ico +0 -1
  449. package/dist/favicon.svg +0 -5
  450. package/dist/images/carousel-0.png +0 -0
  451. package/dist/images/carousel-2.png +0 -0
  452. package/dist/images/carousel-3.png +0 -0
  453. package/dist/images/image-1.png +0 -0
  454. package/dist/img/avatar-1.jpg +0 -0
  455. package/dist/img/avatar.jpg +0 -0
  456. package/dist/img/avatar0.jpg +0 -0
  457. package/dist/img/avatar1.jpg +0 -0
  458. package/dist/img/image-1.png +0 -0
  459. package/dist/img/image-2.png +0 -0
  460. package/dist/img/image-3.png +0 -0
  461. package/dist/index.cjs.map +0 -1
  462. package/dist/index.js.map +0 -1
@@ -0,0 +1,192 @@
1
+ import { StyleValue } from 'vue';
2
+ import { XScrollbarThumbData } from './x-scrollbar-types';
3
+ type ScrollbarType = 'track' | 'embed';
4
+ type ScrollbarClass = string | Record<string, boolean> | Array<string | Record<string, boolean>>;
5
+ type __VLS_Props = {
6
+ type?: ScrollbarType;
7
+ outerClass?: ScrollbarClass;
8
+ outerStyle?: StyleValue;
9
+ hide?: boolean;
10
+ disableHorizontal?: boolean;
11
+ disableVertical?: boolean;
12
+ };
13
+ declare function scrollTo(options?: number | {
14
+ left?: number;
15
+ top?: number;
16
+ }, y?: number): void;
17
+ declare function scrollTop(top: number): void;
18
+ declare function scrollLeft(left: number): void;
19
+ declare function __VLS_template(): {
20
+ attrs: Partial<{}>;
21
+ slots: {
22
+ default?(_: {}): any;
23
+ };
24
+ refs: {
25
+ containerRef: HTMLDivElement;
26
+ horizontalThumbRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
27
+ data?: XScrollbarThumbData;
28
+ direction?: "horizontal" | "vertical";
29
+ both?: boolean;
30
+ }> & Readonly<{
31
+ onScroll?: ((offset: number) => any) | undefined;
32
+ }>, {
33
+ setOffset: (nextOffset: number) => void;
34
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
35
+ scroll: (offset: number) => any;
36
+ }, import('vue').PublicProps, {
37
+ direction: "horizontal" | "vertical";
38
+ both: boolean;
39
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
40
+ trackRef: HTMLDivElement;
41
+ thumbRef: HTMLDivElement;
42
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
43
+ P: {};
44
+ B: {};
45
+ D: {};
46
+ C: {};
47
+ M: {};
48
+ Defaults: {};
49
+ }, Readonly<{
50
+ data?: XScrollbarThumbData;
51
+ direction?: "horizontal" | "vertical";
52
+ both?: boolean;
53
+ }> & Readonly<{
54
+ onScroll?: ((offset: number) => any) | undefined;
55
+ }>, {
56
+ setOffset: (nextOffset: number) => void;
57
+ }, {}, {}, {}, {
58
+ direction: "horizontal" | "vertical";
59
+ both: boolean;
60
+ }> | null;
61
+ verticalThumbRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
62
+ data?: XScrollbarThumbData;
63
+ direction?: "horizontal" | "vertical";
64
+ both?: boolean;
65
+ }> & Readonly<{
66
+ onScroll?: ((offset: number) => any) | undefined;
67
+ }>, {
68
+ setOffset: (nextOffset: number) => void;
69
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
70
+ scroll: (offset: number) => any;
71
+ }, import('vue').PublicProps, {
72
+ direction: "horizontal" | "vertical";
73
+ both: boolean;
74
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
75
+ trackRef: HTMLDivElement;
76
+ thumbRef: HTMLDivElement;
77
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
78
+ P: {};
79
+ B: {};
80
+ D: {};
81
+ C: {};
82
+ M: {};
83
+ Defaults: {};
84
+ }, Readonly<{
85
+ data?: XScrollbarThumbData;
86
+ direction?: "horizontal" | "vertical";
87
+ both?: boolean;
88
+ }> & Readonly<{
89
+ onScroll?: ((offset: number) => any) | undefined;
90
+ }>, {
91
+ setOffset: (nextOffset: number) => void;
92
+ }, {}, {}, {}, {
93
+ direction: "horizontal" | "vertical";
94
+ both: boolean;
95
+ }> | null;
96
+ };
97
+ rootEl: any;
98
+ };
99
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
100
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
101
+ scrollTo: typeof scrollTo;
102
+ scrollTop: typeof scrollTop;
103
+ scrollLeft: typeof scrollLeft;
104
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
105
+ scroll: (ev: Event) => any;
106
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
107
+ onScroll?: ((ev: Event) => any) | undefined;
108
+ }>, {
109
+ type: ScrollbarType;
110
+ hide: boolean;
111
+ disableHorizontal: boolean;
112
+ disableVertical: boolean;
113
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
114
+ containerRef: HTMLDivElement;
115
+ horizontalThumbRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
116
+ data?: XScrollbarThumbData;
117
+ direction?: "horizontal" | "vertical";
118
+ both?: boolean;
119
+ }> & Readonly<{
120
+ onScroll?: ((offset: number) => any) | undefined;
121
+ }>, {
122
+ setOffset: (nextOffset: number) => void;
123
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
124
+ scroll: (offset: number) => any;
125
+ }, import('vue').PublicProps, {
126
+ direction: "horizontal" | "vertical";
127
+ both: boolean;
128
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
129
+ trackRef: HTMLDivElement;
130
+ thumbRef: HTMLDivElement;
131
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
132
+ P: {};
133
+ B: {};
134
+ D: {};
135
+ C: {};
136
+ M: {};
137
+ Defaults: {};
138
+ }, Readonly<{
139
+ data?: XScrollbarThumbData;
140
+ direction?: "horizontal" | "vertical";
141
+ both?: boolean;
142
+ }> & Readonly<{
143
+ onScroll?: ((offset: number) => any) | undefined;
144
+ }>, {
145
+ setOffset: (nextOffset: number) => void;
146
+ }, {}, {}, {}, {
147
+ direction: "horizontal" | "vertical";
148
+ both: boolean;
149
+ }> | null;
150
+ verticalThumbRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
151
+ data?: XScrollbarThumbData;
152
+ direction?: "horizontal" | "vertical";
153
+ both?: boolean;
154
+ }> & Readonly<{
155
+ onScroll?: ((offset: number) => any) | undefined;
156
+ }>, {
157
+ setOffset: (nextOffset: number) => void;
158
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
159
+ scroll: (offset: number) => any;
160
+ }, import('vue').PublicProps, {
161
+ direction: "horizontal" | "vertical";
162
+ both: boolean;
163
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
164
+ trackRef: HTMLDivElement;
165
+ thumbRef: HTMLDivElement;
166
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
167
+ P: {};
168
+ B: {};
169
+ D: {};
170
+ C: {};
171
+ M: {};
172
+ Defaults: {};
173
+ }, Readonly<{
174
+ data?: XScrollbarThumbData;
175
+ direction?: "horizontal" | "vertical";
176
+ both?: boolean;
177
+ }> & Readonly<{
178
+ onScroll?: ((offset: number) => any) | undefined;
179
+ }>, {
180
+ setOffset: (nextOffset: number) => void;
181
+ }, {}, {}, {}, {
182
+ direction: "horizontal" | "vertical";
183
+ both: boolean;
184
+ }> | null;
185
+ }, any>;
186
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
187
+ export default _default;
188
+ type __VLS_WithTemplateSlots<T, S> = T & {
189
+ new (): {
190
+ $slots: S;
191
+ };
192
+ };
@@ -0,0 +1,190 @@
1
+ import { defineComponent as J, useAttrs as Q, ref as c, computed as m, onMounted as Y, nextTick as k, onBeforeUnmount as ee, watch as le, openBlock as R, createElementBlock as te, normalizeStyle as oe, normalizeClass as ae, createElementVNode as re, mergeProps as ne, unref as se, renderSlot as ce, createBlock as E, createCommentVNode as L } from "vue";
2
+ import O from "./XScrollbarThumb.vue.js";
3
+ const ue = 20, p = 15, de = /* @__PURE__ */ J({
4
+ name: "XScrollbar",
5
+ inheritAttrs: !1,
6
+ __name: "XScrollbar",
7
+ props: {
8
+ type: { default: "embed" },
9
+ outerClass: {},
10
+ outerStyle: { type: [Boolean, null, String, Object, Array] },
11
+ hide: { type: Boolean, default: !1 },
12
+ disableHorizontal: { type: Boolean, default: !1 },
13
+ disableVertical: { type: Boolean, default: !1 }
14
+ },
15
+ emits: ["scroll"],
16
+ setup(y, { expose: W, emit: $ }) {
17
+ const a = y, S = $, A = Q(), o = c(null), f = c(), d = c(), T = c(null), x = c(null), H = c(!1), z = c(!1), v = m(
18
+ () => H.value && !a.disableHorizontal
19
+ ), h = m(
20
+ () => z.value && !a.disableVertical
21
+ ), M = m(
22
+ () => v.value && h.value
23
+ );
24
+ function B(e, l, t) {
25
+ if (e <= 0 || l <= 0 || t <= 0 || l <= t)
26
+ return {
27
+ ratio: 1,
28
+ thumbSize: Math.max(e, 0),
29
+ max: 0
30
+ };
31
+ const n = Math.round(
32
+ e / Math.min(l / t, e / ue)
33
+ ), r = Math.max(e - n, 0);
34
+ return {
35
+ ratio: r > 0 ? (l - t) / r : 1,
36
+ thumbSize: n,
37
+ max: r
38
+ };
39
+ }
40
+ function u() {
41
+ var C, _;
42
+ const e = o.value;
43
+ if (!e)
44
+ return;
45
+ const {
46
+ clientWidth: l,
47
+ clientHeight: t,
48
+ offsetWidth: n,
49
+ offsetHeight: r,
50
+ scrollWidth: b,
51
+ scrollHeight: V,
52
+ scrollTop: P,
53
+ scrollLeft: q
54
+ } = e;
55
+ H.value = b > l, z.value = V > t;
56
+ const g = v.value && h.value, F = a.type === "embed" && g ? n - p : n, G = a.type === "embed" && g ? r - p : r;
57
+ f.value = B(F, b, l), d.value = B(G, V, t), (C = T.value) == null || C.setOffset(
58
+ Math.round(q / (f.value.ratio || 1))
59
+ ), (_ = x.value) == null || _.setOffset(
60
+ Math.round(P / (d.value.ratio || 1))
61
+ );
62
+ }
63
+ function D(e) {
64
+ var t, n, r, b;
65
+ const l = o.value;
66
+ if (!l) {
67
+ S("scroll", e);
68
+ return;
69
+ }
70
+ v.value && !a.disableHorizontal && ((n = T.value) == null || n.setOffset(
71
+ Math.round(l.scrollLeft / (((t = f.value) == null ? void 0 : t.ratio) || 1))
72
+ )), h.value && !a.disableVertical && ((b = x.value) == null || b.setOffset(
73
+ Math.round(l.scrollTop / (((r = d.value) == null ? void 0 : r.ratio) || 1))
74
+ )), S("scroll", e);
75
+ }
76
+ function I(e) {
77
+ var l;
78
+ o.value && o.value.scrollTo({
79
+ left: e * (((l = f.value) == null ? void 0 : l.ratio) || 1)
80
+ });
81
+ }
82
+ function N(e) {
83
+ var l;
84
+ o.value && o.value.scrollTo({
85
+ top: e * (((l = d.value) == null ? void 0 : l.ratio) || 1)
86
+ });
87
+ }
88
+ let s = null, i = null;
89
+ const w = () => {
90
+ u();
91
+ };
92
+ Y(() => {
93
+ if (u(), k(() => {
94
+ u();
95
+ }), typeof ResizeObserver < "u" && o.value) {
96
+ s = new ResizeObserver(() => {
97
+ u();
98
+ }), s.observe(o.value);
99
+ const e = o.value.firstElementChild;
100
+ e && s.observe(e);
101
+ } else
102
+ window.addEventListener("resize", w);
103
+ typeof MutationObserver < "u" && o.value && (i = new MutationObserver(() => {
104
+ u();
105
+ }), i.observe(o.value, {
106
+ childList: !0,
107
+ subtree: !0,
108
+ characterData: !0
109
+ }));
110
+ }), ee(() => {
111
+ s == null || s.disconnect(), s = null, i == null || i.disconnect(), i = null, window.removeEventListener("resize", w);
112
+ }), le(
113
+ () => [a.type, a.disableHorizontal, a.disableVertical],
114
+ () => {
115
+ k(() => {
116
+ u();
117
+ });
118
+ }
119
+ );
120
+ const j = m(() => {
121
+ const e = {};
122
+ return a.type === "track" && (v.value && (e.paddingBottom = `${p}px`), h.value && (e.paddingRight = `${p}px`)), [e, a.outerStyle];
123
+ }), U = m(() => [
124
+ "x-scrollbar",
125
+ `x-scrollbar-type-${a.type}`,
126
+ {
127
+ "x-scrollbar-both": M.value
128
+ },
129
+ a.outerClass
130
+ ]);
131
+ function X(e, l) {
132
+ const t = o.value;
133
+ if (t) {
134
+ if (e && typeof e == "object") {
135
+ t.scrollTo(e);
136
+ return;
137
+ }
138
+ (typeof e == "number" || typeof l == "number") && t.scrollTo(
139
+ typeof e == "number" ? e : t.scrollLeft,
140
+ typeof l == "number" ? l : t.scrollTop
141
+ );
142
+ }
143
+ }
144
+ function Z(e) {
145
+ var l;
146
+ (l = o.value) == null || l.scrollTo({ top: e });
147
+ }
148
+ function K(e) {
149
+ var l;
150
+ (l = o.value) == null || l.scrollTo({ left: e });
151
+ }
152
+ return W({
153
+ scrollTo: X,
154
+ scrollTop: Z,
155
+ scrollLeft: K
156
+ }), (e, l) => (R(), te("div", {
157
+ class: ae(U.value),
158
+ style: oe(j.value)
159
+ }, [
160
+ re("div", ne({
161
+ ref_key: "containerRef",
162
+ ref: o,
163
+ class: "x-scrollbar-container"
164
+ }, se(A), { onScroll: D }), [
165
+ ce(e.$slots, "default")
166
+ ], 16),
167
+ !y.hide && v.value ? (R(), E(O, {
168
+ key: 0,
169
+ ref_key: "horizontalThumbRef",
170
+ ref: T,
171
+ data: f.value,
172
+ direction: "horizontal",
173
+ both: M.value,
174
+ onScroll: I
175
+ }, null, 8, ["data", "both"])) : L("", !0),
176
+ !y.hide && h.value ? (R(), E(O, {
177
+ key: 1,
178
+ ref_key: "verticalThumbRef",
179
+ ref: x,
180
+ data: d.value,
181
+ direction: "vertical",
182
+ both: M.value,
183
+ onScroll: N
184
+ }, null, 8, ["data", "both"])) : L("", !0)
185
+ ], 6));
186
+ }
187
+ });
188
+ export {
189
+ de as default
190
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XScrollbar.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,11 +1,7 @@
1
- interface ThumbData {
2
- ratio: number;
3
- thumbSize: number;
4
- max: number;
5
- }
1
+ import { XScrollbarThumbData } from './x-scrollbar-types';
6
2
  type Direction = 'horizontal' | 'vertical';
7
3
  type __VLS_Props = {
8
- data?: ThumbData;
4
+ data?: XScrollbarThumbData;
9
5
  direction?: Direction;
10
6
  both?: boolean;
11
7
  };
@@ -0,0 +1,97 @@
1
+ import { defineComponent as y, ref as u, computed as v, onBeforeUnmount as S, openBlock as D, createElementBlock as O, withModifiers as _, normalizeClass as x, createElementVNode as k, normalizeStyle as $ } from "vue";
2
+ const U = /* @__PURE__ */ y({
3
+ __name: "XScrollbarThumb",
4
+ props: {
5
+ data: {},
6
+ direction: { default: "horizontal" },
7
+ both: { type: Boolean, default: !1 }
8
+ },
9
+ emits: ["scroll"],
10
+ setup(m, { expose: z, emit: R }) {
11
+ const l = m, h = R, s = u(null), i = u(null), n = u(0), r = u(!1), b = u(0), o = v(() => l.direction === "horizontal" ? {
12
+ size: "width",
13
+ direction: "left",
14
+ client: "clientX"
15
+ } : {
16
+ size: "height",
17
+ direction: "top",
18
+ client: "clientY"
19
+ }), E = v(() => {
20
+ var e;
21
+ return {
22
+ [o.value.size]: `${((e = l.data) == null ? void 0 : e.thumbSize) ?? 0}px`,
23
+ [o.value.direction]: `${n.value}px`
24
+ };
25
+ }), M = v(() => [
26
+ "x-scrollbar-thumb",
27
+ `x-scrollbar-thumb-direction-${l.direction}`,
28
+ {
29
+ "x-scrollbar-thumb-dragging": r.value
30
+ }
31
+ ]);
32
+ function d(e) {
33
+ return e < 0 ? 0 : l.data && e > l.data.max ? l.data.max : e;
34
+ }
35
+ function p() {
36
+ r.value = !1, window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", c), window.removeEventListener("contextmenu", c);
37
+ }
38
+ function c() {
39
+ p();
40
+ }
41
+ function g(e) {
42
+ if (!s.value)
43
+ return;
44
+ const t = s.value.getBoundingClientRect(), a = d(
45
+ e[o.value.client] - t[o.value.direction] - b.value
46
+ );
47
+ a !== n.value && (n.value = a, h("scroll", a));
48
+ }
49
+ function B(e) {
50
+ if (e.preventDefault(), !i.value)
51
+ return;
52
+ const t = i.value.getBoundingClientRect();
53
+ b.value = e[o.value.client] - t[o.value.direction], r.value = !0, window.addEventListener("mousemove", g), window.addEventListener("mouseup", c), window.addEventListener("contextmenu", c);
54
+ }
55
+ function C(e) {
56
+ var w;
57
+ if (e.preventDefault(), !i.value)
58
+ return;
59
+ const t = i.value.getBoundingClientRect()[o.value.direction], a = ((w = l.data) == null ? void 0 : w.thumbSize) ?? 0, f = d(
60
+ e[o.value.client] > t ? n.value + a : n.value - a
61
+ );
62
+ f !== n.value && (n.value = f, h("scroll", f));
63
+ }
64
+ function L(e) {
65
+ if (r.value)
66
+ return;
67
+ const t = d(e);
68
+ t !== n.value && (n.value = t);
69
+ }
70
+ return S(() => {
71
+ p();
72
+ }), z({
73
+ setOffset: L
74
+ }), (e, t) => (D(), O("div", {
75
+ ref_key: "trackRef",
76
+ ref: s,
77
+ class: x([
78
+ "x-scrollbar-track",
79
+ `x-scrollbar-track-direction-${m.direction}`
80
+ ]),
81
+ onMousedown: _(C, ["self"])
82
+ }, [
83
+ k("div", {
84
+ ref_key: "thumbRef",
85
+ ref: i,
86
+ class: x(M.value),
87
+ style: $(E.value),
88
+ onMousedown: B
89
+ }, [...t[0] || (t[0] = [
90
+ k("div", { class: "x-scrollbar-thumb-bar" }, null, -1)
91
+ ])], 38)
92
+ ], 34));
93
+ }
94
+ });
95
+ export {
96
+ U as default
97
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XScrollbarThumb.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./XSegmented.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-91fb8755"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,71 @@
1
+ import { defineComponent as V, computed as c, ref as r, watch as m, onMounted as B, openBlock as f, createElementBlock as v, normalizeClass as x, unref as _, createElementVNode as X, normalizeStyle as $, Fragment as E, renderList as I, renderSlot as T, createTextVNode as L, toDisplayString as N, nextTick as O } from "vue";
2
+ import { useXConfig as j, sizeClass as D } from "../composables/config.js";
3
+ const F = ["disabled", "onClick"], q = /* @__PURE__ */ V({
4
+ __name: "XSegmented",
5
+ props: {
6
+ modelValue: { default: void 0 },
7
+ options: {},
8
+ size: {},
9
+ block: { type: Boolean },
10
+ disabled: { type: Boolean }
11
+ },
12
+ emits: ["update:modelValue", "change"],
13
+ setup(l, { emit: y }) {
14
+ const n = l, b = y, k = j(), z = c(() => n.size ?? k.size.value), g = c(
15
+ () => n.options.map(
16
+ (e) => typeof e == "object" && e !== null ? e : {
17
+ label: String(e),
18
+ value: e
19
+ }
20
+ )
21
+ ), p = c(() => g.value.findIndex((e) => e.value === n.modelValue)), h = r({
22
+ transform: "translateX(0)",
23
+ width: "0px"
24
+ }), o = r([]), u = r(), a = async () => {
25
+ await O();
26
+ const e = p.value;
27
+ if (e < 0 || !o.value[e] || !u.value) return;
28
+ const s = o.value[e], d = u.value.getBoundingClientRect(), i = s.getBoundingClientRect(), R = i.left - d.left, S = i.width;
29
+ h.value = {
30
+ transform: `translateX(${R}px)`,
31
+ width: `${S}px`
32
+ };
33
+ };
34
+ m(() => n.modelValue, a, { immediate: !0 }), m(() => n.options, a, { deep: !0 }), m(() => n.size, a), B(a), window.addEventListener("resize", a);
35
+ function w(e, s) {
36
+ n.disabled || e.disabled || (b("update:modelValue", e.value), b("change", e.value));
37
+ }
38
+ function C(e, s) {
39
+ e && (o.value[s] = e);
40
+ }
41
+ return (e, s) => (f(), v("div", {
42
+ ref_key: "containerRef",
43
+ ref: u,
44
+ class: x(["x-segmented", [_(D)(z.value), { "is-block": l.block, "is-disabled": l.disabled }]])
45
+ }, [
46
+ X("div", {
47
+ class: "x-segmented__thumb",
48
+ style: $(h.value)
49
+ }, null, 4),
50
+ (f(!0), v(E, null, I(g.value, (t, d) => (f(), v("button", {
51
+ key: String(t.value),
52
+ ref_for: !0,
53
+ ref: (i) => C(i, d),
54
+ type: "button",
55
+ class: x(["x-segmented__item", { "is-active": t.value === l.modelValue, "is-disabled": t.disabled }]),
56
+ disabled: l.disabled || t.disabled,
57
+ onClick: (i) => w(t)
58
+ }, [
59
+ T(e.$slots, "default", {
60
+ option: t,
61
+ index: d
62
+ }, () => [
63
+ L(N(t.label), 1)
64
+ ], !0)
65
+ ], 10, F))), 128))
66
+ ], 2));
67
+ }
68
+ });
69
+ export {
70
+ q as default
71
+ };