@rhino-design/vue 0.2.2 → 0.2.6

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 +10 -40
  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,492 @@
1
+ import { defineComponent as ke, useSlots as xe, inject as De, ref as c, computed as r, provide as Re, watch as L, nextTick as O, onMounted as Fe, onBeforeUnmount as Ve, openBlock as k, createElementBlock as j, normalizeClass as N, createElementVNode as oe, renderSlot as ne, createBlock as $e, Teleport as je, createVNode as Ne, Transition as We, withCtx as ze, withDirectives as Xe, normalizeStyle as le, unref as He, createCommentVNode as ae, vShow as Ie, Comment as Ke } from "vue";
2
+ import { usePopupPosition as Ue } from "../composables/popup.js";
3
+ import { useXConfigProvider as Ye } from "../composables/config-provider.js";
4
+ import { hasDarkThemeContext as qe } from "../composables/theme-context.js";
5
+ const _e = ["data-trigger-path"], Ge = { class: "x-trigger__inner" }, tt = /* @__PURE__ */ ke({
6
+ __name: "XTrigger",
7
+ props: {
8
+ popupVisible: {
9
+ type: Boolean,
10
+ default: void 0
11
+ },
12
+ defaultPopupVisible: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ trigger: {
17
+ type: [String, Array],
18
+ default: "hover"
19
+ },
20
+ position: {
21
+ type: String,
22
+ default: "bottom"
23
+ },
24
+ disabled: {
25
+ type: Boolean,
26
+ default: !1
27
+ },
28
+ offset: {
29
+ type: Number,
30
+ default: 8
31
+ },
32
+ popupOffset: {
33
+ type: Number,
34
+ default: void 0
35
+ },
36
+ popupTranslate: {
37
+ type: [Array, Object],
38
+ default: void 0
39
+ },
40
+ showArrow: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ alignPoint: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ popupHoverStay: {
49
+ type: Boolean,
50
+ default: !0
51
+ },
52
+ blurToClose: {
53
+ type: Boolean,
54
+ default: !0
55
+ },
56
+ clickToClose: {
57
+ type: Boolean,
58
+ default: !0
59
+ },
60
+ clickOutsideToClose: {
61
+ type: Boolean,
62
+ default: !0
63
+ },
64
+ unmountOnClose: {
65
+ type: Boolean,
66
+ default: !0
67
+ },
68
+ contentClass: {
69
+ type: [String, Array, Object],
70
+ default: ""
71
+ },
72
+ contentStyle: {
73
+ type: Object,
74
+ default: () => ({})
75
+ },
76
+ arrowClass: {
77
+ type: [String, Array, Object],
78
+ default: ""
79
+ },
80
+ arrowStyle: {
81
+ type: Object,
82
+ default: () => ({})
83
+ },
84
+ popupStyle: {
85
+ type: Object,
86
+ default: () => ({})
87
+ },
88
+ animationName: {
89
+ type: String,
90
+ default: "x-fade"
91
+ },
92
+ duration: {
93
+ type: [Number, Object],
94
+ default: void 0
95
+ },
96
+ mouseEnterDelay: {
97
+ type: Number,
98
+ default: 100
99
+ },
100
+ mouseLeaveDelay: {
101
+ type: Number,
102
+ default: 100
103
+ },
104
+ focusDelay: {
105
+ type: Number,
106
+ default: 0
107
+ },
108
+ autoFitPopupWidth: {
109
+ type: Boolean,
110
+ default: !1
111
+ },
112
+ autoFitPopupMinWidth: {
113
+ type: Boolean,
114
+ default: !1
115
+ },
116
+ autoFixPosition: {
117
+ type: Boolean,
118
+ default: !0
119
+ },
120
+ popupContainer: {
121
+ type: [String, Object],
122
+ default: "body"
123
+ },
124
+ updateAtScroll: {
125
+ type: Boolean,
126
+ default: !1
127
+ },
128
+ autoFitTransformOrigin: {
129
+ type: Boolean,
130
+ default: !1
131
+ },
132
+ hideEmpty: {
133
+ type: Boolean,
134
+ default: !1
135
+ },
136
+ openedClass: {
137
+ type: [String, Array, Object],
138
+ default: ""
139
+ },
140
+ autoFitPosition: {
141
+ type: Boolean,
142
+ default: !0
143
+ },
144
+ renderToBody: {
145
+ type: Boolean,
146
+ default: !0
147
+ },
148
+ preventFocus: {
149
+ type: Boolean,
150
+ default: !1
151
+ },
152
+ allowOverflow: {
153
+ type: Boolean,
154
+ default: !1
155
+ },
156
+ scrollToClose: {
157
+ type: Boolean,
158
+ default: !1
159
+ },
160
+ scrollToCloseDistance: {
161
+ type: Number,
162
+ default: 0
163
+ }
164
+ },
165
+ emits: ["update:popupVisible", "popupVisibleChange", "popup-visible-change", "show", "hide", "resize"],
166
+ setup(i, { expose: re, emit: ie }) {
167
+ const W = Symbol("x-trigger-context"), o = i, h = ie, x = xe(), s = De(W, null), m = Ye(), u = c(null), g = c(null), z = c(!!o.defaultPopupVisible), b = c(0), X = c(null), w = c({}), B = c(!1), v = c(null), P = c(!1), C = `x-trigger-${Math.random().toString(36).slice(2, 10)}`, H = c(C), I = r(() => o.popupVisible !== void 0), l = r(() => I.value ? !!o.popupVisible : z.value), d = r(() => new Set(Array.isArray(o.trigger) ? o.trigger : [o.trigger])), ue = r(() => o.popupOffset ?? o.offset), se = r(() => !!(o.updateAtScroll || m != null && m.updateAtScroll.value)), K = r(() => !!(o.scrollToClose || m != null && m.scrollToClose.value)), fe = r(() => typeof document > "u" ? "" : (l.value, qe(u.value, { includeDescendants: !0 }) ? "x-theme-dark" : "")), { popupStyle: D, resolvedPlacement: T, updatePosition: R } = Ue(u, g, l, {
168
+ placement: r(() => o.position),
169
+ offset: ue,
170
+ allowOverflow: r(() => o.allowOverflow),
171
+ translate: r(() => o.popupTranslate),
172
+ autoFitPosition: r(() => o.autoFitPosition),
173
+ alignPoint: r(() => o.alignPoint),
174
+ point: X,
175
+ updateAtScroll: se,
176
+ autoFixPosition: r(() => o.autoFixPosition)
177
+ });
178
+ function ce(e) {
179
+ const [t, n = "center"] = e.split("-");
180
+ let a = "50%", f = "50%";
181
+ return t === "top" && (f = "100%"), t === "bottom" && (f = "0"), t === "left" && (a = "100%"), t === "right" && (a = "0"), (t === "top" || t === "bottom") && (n === "start" && (a = "0"), n === "end" && (a = "100%")), (t === "left" || t === "right") && (n === "start" && (f = "0"), n === "end" && (f = "100%")), `${a} ${f}`;
182
+ }
183
+ const de = r(() => {
184
+ const e = { ...D.value };
185
+ return o.autoFitTransformOrigin && (e.transformOrigin = ce(T.value)), o.autoFitPopupMinWidth && u.value ? e.minWidth = `${u.value.getBoundingClientRect().width}px` : o.autoFitPopupWidth && u.value && (e.width = `${u.value.getBoundingClientRect().width}px`), Object.assign(e, o.popupStyle), e.pointerEvents = B.value ? "none" : "auto", e;
186
+ });
187
+ function pe() {
188
+ var t;
189
+ const e = ((t = x.content) == null ? void 0 : t.call(x)) ?? [];
190
+ return e.length ? e.some((n) => n.type === Ke ? !1 : typeof n.children == "string" ? n.children.trim().length > 0 : !0) : !1;
191
+ }
192
+ const ve = r(() => o.hideEmpty && !pe());
193
+ function F() {
194
+ b.value && (window.clearTimeout(b.value), b.value = 0);
195
+ }
196
+ function U(e) {
197
+ o.disabled && e || e !== l.value && (e || (v.value = null), I.value || (z.value = e), h("update:popupVisible", e), h("popupVisibleChange", e), h("popup-visible-change", e), e && O(() => {
198
+ R();
199
+ }));
200
+ }
201
+ function p(e, t = 0) {
202
+ if (F(), t > 0 && e !== l.value) {
203
+ b.value = window.setTimeout(() => {
204
+ b.value = 0, U(e);
205
+ }, t);
206
+ return;
207
+ }
208
+ U(e);
209
+ }
210
+ function he() {
211
+ p(!0);
212
+ }
213
+ function S() {
214
+ p(!1);
215
+ }
216
+ function Y() {
217
+ p(!l.value);
218
+ }
219
+ function V(e) {
220
+ o.alignPoint && (X.value = {
221
+ x: e.clientX,
222
+ y: e.clientY
223
+ });
224
+ }
225
+ function q() {
226
+ var n;
227
+ const e = (n = u.value) == null ? void 0 : n.closest(".x-trigger__popup"), t = e == null ? void 0 : e.dataset.triggerPath;
228
+ H.value = t ? `${t},${C}` : C;
229
+ }
230
+ function me(e) {
231
+ if (!(e instanceof Element)) return !1;
232
+ const t = e.closest(".x-trigger__popup");
233
+ return t ? (t.dataset.triggerPath ?? "").split(",").filter(Boolean).includes(C) : !1;
234
+ }
235
+ function M(e) {
236
+ var n, a;
237
+ if (!o.clickOutsideToClose || !l.value) return;
238
+ const t = e.target;
239
+ t && ((n = u.value) != null && n.contains(t) || (a = g.value) != null && a.contains(t) || me(t) || S());
240
+ }
241
+ function _(e) {
242
+ e.key === "Escape" && l.value && S();
243
+ }
244
+ function ge(e) {
245
+ if (e === window || e === document || e === document.documentElement || e === document.body) {
246
+ const t = document.documentElement;
247
+ return [t.scrollTop, t.scrollLeft];
248
+ }
249
+ if (e && typeof e == "object" && "scrollTop" in e && "scrollLeft" in e) {
250
+ const t = e;
251
+ return [t.scrollTop, t.scrollLeft];
252
+ }
253
+ return null;
254
+ }
255
+ function G(e) {
256
+ if (!l.value || !K.value) return;
257
+ const t = e.target ?? document.documentElement, n = ge(t);
258
+ if (!n) return;
259
+ if (!v.value || v.value.target !== t) {
260
+ v.value = {
261
+ target: t,
262
+ position: n
263
+ };
264
+ return;
265
+ }
266
+ const [a, f] = v.value.position, [te, y] = n;
267
+ (Math.abs(te - a) >= o.scrollToCloseDistance || Math.abs(y - f) >= o.scrollToCloseDistance) && S();
268
+ }
269
+ function J(e) {
270
+ if (!(typeof window > "u")) {
271
+ if (e && !P.value) {
272
+ window.addEventListener("scroll", G, !0), P.value = !0;
273
+ return;
274
+ }
275
+ !e && P.value && (window.removeEventListener("scroll", G, !0), P.value = !1);
276
+ }
277
+ }
278
+ function ye(e) {
279
+ if (!o.disabled) {
280
+ if (d.value.has("click")) {
281
+ if (e.stopPropagation(), V(e), l.value && !o.clickToClose) return;
282
+ Y();
283
+ return;
284
+ }
285
+ d.value.has("contextMenu") && l.value && o.clickToClose && S();
286
+ }
287
+ }
288
+ function be(e) {
289
+ o.disabled || !d.value.has("hover") || (V(e), p(!0, o.mouseEnterDelay));
290
+ }
291
+ function we() {
292
+ o.disabled || !d.value.has("hover") || p(!1, o.mouseLeaveDelay);
293
+ }
294
+ function Ce() {
295
+ o.disabled || !d.value.has("hover") || !o.popupHoverStay || F();
296
+ }
297
+ function Se() {
298
+ o.disabled || !d.value.has("hover") || !o.popupHoverStay || p(!1, o.mouseLeaveDelay);
299
+ }
300
+ function Be() {
301
+ o.disabled || !d.value.has("focus") || p(!0, o.focusDelay);
302
+ }
303
+ function Pe(e) {
304
+ var n, a;
305
+ if (o.disabled || !d.value.has("focus") || !o.blurToClose) return;
306
+ const t = e.relatedTarget;
307
+ t && ((n = u.value) != null && n.contains(t) || (a = g.value) != null && a.contains(t)) || p(!1);
308
+ }
309
+ function Te(e) {
310
+ o.disabled || !d.value.has("contextMenu") || l.value && !o.clickToClose || (V(e), Y(), e.preventDefault());
311
+ }
312
+ function Me(e) {
313
+ s == null || s.onMouseenter(e), be(e);
314
+ }
315
+ function Ae(e) {
316
+ s == null || s.onMouseleave(e), we();
317
+ }
318
+ function Q(e) {
319
+ s == null || s.onMouseenter(e), Ce();
320
+ }
321
+ function Z(e) {
322
+ s == null || s.onMouseleave(e), Se();
323
+ }
324
+ function Ee(e) {
325
+ o.preventFocus && e.preventDefault();
326
+ }
327
+ function $() {
328
+ if (!o.showArrow || !l.value || !u.value || !g.value) {
329
+ w.value = {};
330
+ return;
331
+ }
332
+ const t = (u.value.querySelector('[data-trigger-anchor="true"]') ?? u.value).getBoundingClientRect(), n = g.value.getBoundingClientRect(), a = T.value.split("-")[0], f = 10, y = {
333
+ top: {
334
+ borderBottomColor: "transparent",
335
+ borderRightColor: "transparent",
336
+ clipPath: "polygon(100% 0, 100% 100%, 0 100%)"
337
+ },
338
+ bottom: {
339
+ borderTopColor: "transparent",
340
+ borderLeftColor: "transparent",
341
+ clipPath: "polygon(0 0, 0 100%, 100% 0)"
342
+ },
343
+ left: {
344
+ borderTopColor: "transparent",
345
+ borderRightColor: "transparent",
346
+ clipPath: "polygon(0 0, 100% 0, 100% 100%)"
347
+ },
348
+ right: {
349
+ borderLeftColor: "transparent",
350
+ borderBottomColor: "transparent",
351
+ clipPath: "polygon(0 0, 100% 100%, 0 100%)"
352
+ }
353
+ }[a];
354
+ if (a === "top" || a === "bottom") {
355
+ let E = Math.abs(t.left + t.width / 2 - n.left);
356
+ E > n.width - f && (E = t.width > n.width ? n.width / 2 : n.width - f), w.value = a === "top" ? {
357
+ left: `${E}px`,
358
+ bottom: "0",
359
+ transform: "translate(-50%, 50%) rotate(45deg)",
360
+ ...y
361
+ } : {
362
+ left: `${E}px`,
363
+ top: "0",
364
+ transform: "translate(-50%, -50%) rotate(45deg)",
365
+ ...y
366
+ };
367
+ return;
368
+ }
369
+ let A = Math.abs(t.top + t.height / 2 - n.top);
370
+ A > n.height - f && (A = t.height > n.height ? n.height / 2 : n.height - f), w.value = a === "left" ? {
371
+ top: `${A}px`,
372
+ right: "0",
373
+ transform: "translate(50%, -50%) rotate(45deg)",
374
+ ...y
375
+ } : {
376
+ top: `${A}px`,
377
+ left: "0",
378
+ transform: "translate(-50%, -50%) rotate(45deg)",
379
+ ...y
380
+ };
381
+ }
382
+ function ee() {
383
+ B.value = !0;
384
+ }
385
+ function Le() {
386
+ B.value = !1, l.value && h("show");
387
+ }
388
+ function Oe() {
389
+ B.value = !1, l.value || h("hide");
390
+ }
391
+ return Re(W, {
392
+ onMouseenter: Q,
393
+ onMouseleave: Z
394
+ }), L(
395
+ [l, D, T, () => o.showArrow],
396
+ async ([e, , , t]) => {
397
+ if (!e || !t) {
398
+ w.value = {};
399
+ return;
400
+ }
401
+ await O(), $();
402
+ },
403
+ { deep: !0 }
404
+ ), L(
405
+ D,
406
+ () => {
407
+ l.value && h("resize");
408
+ },
409
+ { deep: !0 }
410
+ ), L(l, (e) => {
411
+ e ? (v.value = null, O(() => {
412
+ q(), R(), o.showArrow && $();
413
+ })) : v.value = null;
414
+ }), L(
415
+ [l, K],
416
+ ([e, t]) => {
417
+ J(e && t);
418
+ },
419
+ { immediate: !0 }
420
+ ), Fe(() => {
421
+ document.addEventListener("mousedown", M), document.addEventListener("touchstart", M), document.addEventListener("keydown", _), l.value && O(() => {
422
+ q(), o.showArrow && $();
423
+ });
424
+ }), Ve(() => {
425
+ F(), document.removeEventListener("mousedown", M), document.removeEventListener("touchstart", M), document.removeEventListener("keydown", _), J(!1);
426
+ }), re({
427
+ show: he,
428
+ hide: S,
429
+ updatePosition: R
430
+ }), (e, t) => (k(), j("span", {
431
+ class: N(["x-trigger", [{ "is-open": l.value, "is-disabled": i.disabled }, l.value ? i.openedClass : void 0]])
432
+ }, [
433
+ oe("span", {
434
+ ref_key: "triggerRef",
435
+ ref: u,
436
+ class: "x-trigger__target",
437
+ onClick: ye,
438
+ onMouseenter: Me,
439
+ onMouseleave: Ae,
440
+ onFocusin: Be,
441
+ onFocusout: Pe,
442
+ onContextmenu: Te
443
+ }, [
444
+ ne(e.$slots, "default")
445
+ ], 544),
446
+ (k(), $e(je, {
447
+ to: i.popupContainer,
448
+ disabled: !i.renderToBody
449
+ }, [
450
+ Ne(We, {
451
+ name: i.animationName,
452
+ duration: i.duration,
453
+ appear: "",
454
+ onBeforeEnter: ee,
455
+ onBeforeLeave: ee,
456
+ onAfterEnter: Le,
457
+ onAfterLeave: Oe
458
+ }, {
459
+ default: ze(() => [
460
+ (!i.unmountOnClose || l.value) && !ve.value ? Xe((k(), j("div", {
461
+ key: 0,
462
+ ref_key: "popupRef",
463
+ ref: g,
464
+ "data-trigger-id": C,
465
+ "data-trigger-path": H.value,
466
+ class: N(["x-trigger__popup", [i.contentClass, fe.value, `x-trigger__popup--${He(T)}`, { "x-trigger__popup--with-arrow": i.showArrow }]]),
467
+ style: le([de.value, i.contentStyle]),
468
+ onMouseenter: Q,
469
+ onMouseleave: Z,
470
+ onMousedown: Ee
471
+ }, [
472
+ oe("div", Ge, [
473
+ ne(e.$slots, "content")
474
+ ]),
475
+ i.showArrow ? (k(), j("div", {
476
+ key: 0,
477
+ class: N(["x-trigger__arrow", i.arrowClass]),
478
+ style: le([w.value, i.arrowStyle])
479
+ }, null, 6)) : ae("", !0)
480
+ ], 46, _e)), [
481
+ [Ie, l.value]
482
+ ]) : ae("", !0)
483
+ ]),
484
+ _: 3
485
+ }, 8, ["name", "duration"])
486
+ ], 8, ["to", "disabled"]))
487
+ ], 2));
488
+ }
489
+ });
490
+ export {
491
+ tt as default
492
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XTrigger.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,51 @@
1
+ import n from "./XTypography.vue2.js";
2
+ import { openBlock as r, createElementBlock as p, normalizeClass as s, withDirectives as l, withKeys as y, withModifiers as d, vModelText as m, createBlock as u, resolveDynamicComponent as f, withCtx as g, renderSlot as k, createTextVNode as b, toDisplayString as i, createCommentVNode as a } from "vue";
3
+ import v from "../_virtual/_plugin-vue_export-helper.js";
4
+ const w = {
5
+ key: 2,
6
+ class: "x-typography__actions"
7
+ };
8
+ function E(o, t, h, C, $, B) {
9
+ return r(), p("span", {
10
+ class: s(["x-typography-wrapper", { "is-block": o.block }])
11
+ }, [
12
+ o.editing ? l((r(), p("textarea", {
13
+ key: 0,
14
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => o.draft = e),
15
+ class: "x-typography__editor",
16
+ rows: "3",
17
+ onBlur: t[1] || (t[1] = (...e) => o.commitEdit && o.commitEdit(...e)),
18
+ onKeydown: t[2] || (t[2] = y(d((...e) => o.commitEdit && o.commitEdit(...e), ["meta", "prevent"]), ["enter"]))
19
+ }, null, 544)), [
20
+ [m, o.draft]
21
+ ]) : (r(), u(f(o.component), {
22
+ key: 1,
23
+ class: s(o.classes)
24
+ }, {
25
+ default: g(() => [
26
+ k(o.$slots, "default", {}, () => [
27
+ b(i(o.textValue), 1)
28
+ ])
29
+ ]),
30
+ _: 3
31
+ }, 8, ["class"])),
32
+ o.copyable || o.editable ? (r(), p("span", w, [
33
+ o.copyable ? (r(), p("button", {
34
+ key: 0,
35
+ type: "button",
36
+ class: "x-typography__action",
37
+ onClick: t[3] || (t[3] = (...e) => o.copy && o.copy(...e))
38
+ }, i(o.copied ? o.t("typography.copied", void 0, "已复制") : o.t("typography.copy", void 0, "复制")), 1)) : a("", !0),
39
+ o.editable ? (r(), p("button", {
40
+ key: 1,
41
+ type: "button",
42
+ class: "x-typography__action",
43
+ onClick: t[4] || (t[4] = (...e) => o.startEdit && o.startEdit(...e))
44
+ }, i(o.t("typography.edit", void 0, "编辑")), 1)) : a("", !0)
45
+ ])) : a("", !0)
46
+ ], 2);
47
+ }
48
+ const K = /* @__PURE__ */ v(n, [["render", E]]);
49
+ export {
50
+ K as default
51
+ };
@@ -0,0 +1,126 @@
1
+ import { defineComponent as v, computed as c, ref as u, watch as s } from "vue";
2
+ import h from "./XTypographyTitle.vue.js";
3
+ import T from "./XTypographyParagraph.vue.js";
4
+ import b from "./XTypographyText.vue.js";
5
+ import { useXI18n as B } from "../composables/i18n.js";
6
+ const d = v({
7
+ name: "XTypography",
8
+ props: {
9
+ type: {
10
+ type: String,
11
+ default: "default"
12
+ },
13
+ bold: {
14
+ type: Boolean,
15
+ default: !1
16
+ },
17
+ code: {
18
+ type: Boolean,
19
+ default: !1
20
+ },
21
+ underline: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ delete: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ ellipsis: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ block: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ mark: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ copyable: {
42
+ type: Boolean,
43
+ default: !1
44
+ },
45
+ editable: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ component: {
50
+ type: String,
51
+ default: "span"
52
+ },
53
+ modelValue: {
54
+ type: String,
55
+ default: ""
56
+ },
57
+ content: {
58
+ type: String,
59
+ default: ""
60
+ }
61
+ },
62
+ emits: ["update:modelValue", "change", "copied"],
63
+ setup(e, { emit: o }) {
64
+ const { t: r } = B(), y = c(() => [
65
+ "x-typography",
66
+ `x-typography--${e.type}`,
67
+ e.bold ? "is-bold" : "",
68
+ e.code ? "is-code" : "",
69
+ e.underline ? "is-underline" : "",
70
+ e.delete ? "is-delete" : "",
71
+ e.ellipsis ? "is-ellipsis" : "",
72
+ e.block ? "is-block" : "",
73
+ e.mark ? "is-mark" : ""
74
+ ]), n = u(!1), t = u(e.modelValue || e.content), l = u(!1), i = c(() => e.modelValue || e.content);
75
+ s(
76
+ () => e.modelValue,
77
+ (a) => {
78
+ t.value = a || e.content;
79
+ },
80
+ { immediate: !0 }
81
+ ), s(
82
+ () => e.content,
83
+ (a) => {
84
+ e.modelValue || (t.value = a);
85
+ }
86
+ );
87
+ async function m() {
88
+ var f;
89
+ const a = i.value;
90
+ if (a)
91
+ try {
92
+ (f = navigator.clipboard) != null && f.writeText && await navigator.clipboard.writeText(a), l.value = !0, o("copied", a), window.setTimeout(() => {
93
+ l.value = !1;
94
+ }, 1200);
95
+ } catch {
96
+ l.value = !1;
97
+ }
98
+ }
99
+ function p() {
100
+ t.value = i.value, n.value = !0;
101
+ }
102
+ function g() {
103
+ n.value = !1, o("update:modelValue", t.value), o("change", t.value);
104
+ }
105
+ return {
106
+ classes: y,
107
+ editing: n,
108
+ draft: t,
109
+ copied: l,
110
+ textValue: i,
111
+ t: r,
112
+ copy: m,
113
+ startEdit: p,
114
+ commitEdit: g
115
+ };
116
+ }
117
+ });
118
+ d.Title = h;
119
+ d.Paragraph = T;
120
+ d.Text = b;
121
+ export {
122
+ T as XTypographyParagraph,
123
+ b as XTypographyText,
124
+ h as XTypographyTitle,
125
+ d as default
126
+ };