@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,525 @@
1
+ import { defineComponent as qe, ref as d, reactive as Ue, computed as B, watch as P, nextTick as fe, onMounted as Ve, onBeforeUnmount as je, openBlock as L, createElementBlock as N, normalizeStyle as de, createElementVNode as O, withModifiers as he, normalizeClass as ve, mergeProps as Ge, createCommentVNode as V, Fragment as Je } from "vue";
2
+ const Ke = ["src"], Qe = {
3
+ key: 2,
4
+ class: "x-cropper__placeholder"
5
+ }, h = 40, tt = /* @__PURE__ */ qe({
6
+ __name: "XCropper",
7
+ props: {
8
+ src: {},
9
+ shape: { default: "rect" },
10
+ aspectRatio: {},
11
+ defaultAspectRatio: { default: 1 },
12
+ rotate: {},
13
+ zoom: {},
14
+ minZoom: { default: 0.1 },
15
+ maxZoom: { default: 3 },
16
+ zoomStep: { default: 0.1 },
17
+ fill: { default: "rgba(0, 0, 0, 0)" },
18
+ showResizeBox: { type: Boolean, default: !0 },
19
+ cropperBoxClassName: {},
20
+ cropperBoxStyle: {},
21
+ imgProps: {},
22
+ preview: {},
23
+ disabled: { type: Boolean, default: !1 },
24
+ width: { default: "100%" },
25
+ height: { default: 360 }
26
+ },
27
+ emits: ["update:zoom", "update:rotate", "change", "crop", "ready", "error"],
28
+ setup(me, { expose: xe, emit: ge }) {
29
+ const o = me, z = ge, S = d(null), j = d(null), v = d(!1), C = d(!1), E = d(0), I = d(0), c = d(400), p = d(300), b = d(0), R = d(0), x = d(0), g = d(0), m = d(1), _ = d(0), i = Ue({
30
+ x: 0,
31
+ y: 0,
32
+ width: 0,
33
+ height: 0
34
+ }), Z = d(null), ne = d(12);
35
+ let A = null, X = 0;
36
+ function M(e) {
37
+ return typeof e == "number" && Number.isFinite(e);
38
+ }
39
+ function s(e, t, a) {
40
+ return t > a ? e : Math.min(a, Math.max(t, e));
41
+ }
42
+ function ae(e, t) {
43
+ if (typeof e == "number" && Number.isFinite(e)) return e;
44
+ if (typeof e == "string") {
45
+ const a = Number.parseFloat(e);
46
+ if (Number.isFinite(a)) return a;
47
+ }
48
+ return t;
49
+ }
50
+ function oe(e, t) {
51
+ return e == null || e === "" ? t : typeof e == "number" ? `${e}px` : e;
52
+ }
53
+ const we = B(() => ({
54
+ width: oe(o.width, "100%"),
55
+ height: oe(o.height, "360px")
56
+ })), Y = B(() => {
57
+ const e = M(o.minZoom) ? o.minZoom : 0.1, t = M(o.maxZoom) ? o.maxZoom : 3;
58
+ return e <= t ? { min: e, max: t } : { min: t, max: e };
59
+ }), ye = B(() => o.zoomStep && o.zoomStep > 0 ? o.zoomStep : 0.1), G = B(() => !M(o.aspectRatio) || o.aspectRatio <= 0 ? null : o.aspectRatio), Be = B(() => G.value ? G.value : M(o.defaultAspectRatio) && o.defaultAspectRatio > 0 ? o.defaultAspectRatio : 1), F = B(() => !!o.disabled), Ce = B(() => [
60
+ "x-cropper__box",
61
+ o.shape === "round" ? "is-round" : "",
62
+ o.shape === "roundRect" ? "is-round-rect" : "",
63
+ o.cropperBoxClassName || ""
64
+ ]), Me = B(() => ({
65
+ left: `${i.x}px`,
66
+ top: `${i.y}px`,
67
+ width: `${i.width}px`,
68
+ height: `${i.height}px`
69
+ })), Pe = B(() => ({
70
+ width: `${b.value}px`,
71
+ height: `${R.value}px`,
72
+ transform: `translate(-50%, -50%) translate(${x.value}px, ${g.value}px) rotate(${_.value}deg) scale(${m.value})`
73
+ }));
74
+ function $(e) {
75
+ const t = e instanceof Error ? e : new Error(String(e));
76
+ z("error", t);
77
+ }
78
+ function be() {
79
+ const e = b.value * m.value, t = R.value * m.value, a = c.value / 2 + x.value, u = p.value / 2 + g.value;
80
+ return {
81
+ zoom: m.value,
82
+ rotate: _.value,
83
+ cropBox: {
84
+ x: i.x,
85
+ y: i.y,
86
+ width: i.width,
87
+ height: i.height
88
+ },
89
+ imageRect: {
90
+ x: a - e / 2,
91
+ y: u - t / 2,
92
+ width: e,
93
+ height: t
94
+ }
95
+ };
96
+ }
97
+ function W() {
98
+ if (typeof requestAnimationFrame > "u") {
99
+ ce();
100
+ return;
101
+ }
102
+ X && cancelAnimationFrame(X), X = requestAnimationFrame(() => {
103
+ X = 0, ce();
104
+ });
105
+ }
106
+ function w(e = !1) {
107
+ const t = be();
108
+ z("change", t), e && z("crop", t), W();
109
+ }
110
+ function ie(e) {
111
+ const t = s(e, Y.value.min, Y.value.max);
112
+ t !== m.value && (m.value = t, z("update:zoom", t), w(!1));
113
+ }
114
+ function Re(e) {
115
+ !M(e) || e === _.value || (_.value = e, z("update:rotate", e), w(!1));
116
+ }
117
+ function k() {
118
+ var r;
119
+ const e = (r = S.value) == null ? void 0 : r.getBoundingClientRect(), t = ae(o.width, 400), a = ae(o.height, 300), u = e && e.width > 0 ? e.width : t, n = e && e.height > 0 ? e.height : a;
120
+ c.value = Math.max(1, u), p.value = Math.max(1, n), re(), _e(), v.value && !C.value && (K(), C.value = !0);
121
+ }
122
+ function re() {
123
+ if (!v.value || E.value <= 0 || I.value <= 0) return;
124
+ const e = Math.min(
125
+ c.value / E.value,
126
+ p.value / I.value
127
+ );
128
+ b.value = E.value * e, R.value = I.value * e;
129
+ }
130
+ function J(e, t = !0) {
131
+ i.x = e.x, i.y = e.y, i.width = e.width, i.height = e.height, w(t);
132
+ }
133
+ function K() {
134
+ const e = Be.value, t = c.value * 0.68, a = p.value * 0.68;
135
+ let u = t, n = u / e;
136
+ n > a && (n = a, u = n * e), u = s(u, h, c.value), n = s(n, h, p.value), i.width = u, i.height = n, i.x = (c.value - u) / 2, i.y = (p.value - n) / 2;
137
+ }
138
+ function _e() {
139
+ if (i.width <= 0 || i.height <= 0) return;
140
+ const e = s(i.width, h, c.value), t = s(i.height, h, p.value), a = s(i.x, 0, Math.max(0, c.value - e)), u = s(i.y, 0, Math.max(0, p.value - t));
141
+ i.width = e, i.height = t, i.x = a, i.y = u;
142
+ }
143
+ function ze(e) {
144
+ if (!M(e) || e <= 0) return;
145
+ const t = i.x + i.width / 2, a = i.y + i.height / 2, u = Math.min(c.value, p.value * e), n = u / e;
146
+ let r = s(i.width, h, u), l = r / e;
147
+ l > n && (l = n, r = l * e);
148
+ const f = s(t - r / 2, 0, Math.max(0, c.value - r)), ee = s(a - l / 2, 0, Math.max(0, p.value - l));
149
+ J({
150
+ x: f,
151
+ y: ee,
152
+ width: r,
153
+ height: l
154
+ });
155
+ }
156
+ function Q(e) {
157
+ Z.value = e, window.addEventListener("pointermove", le), window.addEventListener("pointerup", q), window.addEventListener("pointercancel", q);
158
+ }
159
+ function ue() {
160
+ Z.value = null, window.removeEventListener("pointermove", le), window.removeEventListener("pointerup", q), window.removeEventListener("pointercancel", q);
161
+ }
162
+ function Se(e) {
163
+ F.value || !v.value || e.target.closest(".x-cropper__box") || (e.preventDefault(), Q({
164
+ type: "drag-image",
165
+ pointerId: e.pointerId,
166
+ startX: e.clientX,
167
+ startY: e.clientY,
168
+ startOffsetX: x.value,
169
+ startOffsetY: g.value,
170
+ startCropBox: {
171
+ x: i.x,
172
+ y: i.y,
173
+ width: i.width,
174
+ height: i.height
175
+ }
176
+ }));
177
+ }
178
+ function Ee(e) {
179
+ F.value || !v.value || (e.preventDefault(), Q({
180
+ type: "drag-crop",
181
+ pointerId: e.pointerId,
182
+ startX: e.clientX,
183
+ startY: e.clientY,
184
+ startOffsetX: x.value,
185
+ startOffsetY: g.value,
186
+ startCropBox: {
187
+ x: i.x,
188
+ y: i.y,
189
+ width: i.width,
190
+ height: i.height
191
+ }
192
+ }));
193
+ }
194
+ function D(e, t) {
195
+ F.value || !v.value || !o.showResizeBox || (t.preventDefault(), t.stopPropagation(), Q({
196
+ type: "resize",
197
+ pointerId: t.pointerId,
198
+ startX: t.clientX,
199
+ startY: t.clientY,
200
+ startOffsetX: x.value,
201
+ startOffsetY: g.value,
202
+ startCropBox: {
203
+ x: i.x,
204
+ y: i.y,
205
+ width: i.width,
206
+ height: i.height
207
+ },
208
+ handle: e
209
+ }));
210
+ }
211
+ function Ie(e, t, a, u) {
212
+ let n = e.x, r = e.y, l = e.width, f = e.height;
213
+ return t.includes("w") && (n = e.x + a, l = e.width - a), t.includes("e") && (l = e.width + a), t.includes("n") && (r = e.y + u, f = e.height - u), t.includes("s") && (f = e.height + u), l < h && (t.includes("w") && (n -= h - l), l = h), f < h && (t.includes("n") && (r -= h - f), f = h), n < 0 && (t.includes("w") && (l += n), n = 0), r < 0 && (t.includes("n") && (f += r), r = 0), n + l > c.value && (t.includes("e") ? l = c.value - n : n = c.value - l), r + f > p.value && (t.includes("s") ? f = p.value - r : r = p.value - f), l = s(l, h, c.value), f = s(f, h, p.value), n = s(n, 0, Math.max(0, c.value - l)), r = s(r, 0, Math.max(0, p.value - f)), { x: n, y: r, width: l, height: f };
214
+ }
215
+ function Xe(e, t, a, u, n) {
216
+ const r = (() => {
217
+ switch (t) {
218
+ case "nw":
219
+ return { x: e.x + e.width, y: e.y + e.height };
220
+ case "ne":
221
+ return { x: e.x, y: e.y + e.height };
222
+ case "sw":
223
+ return { x: e.x + e.width, y: e.y };
224
+ case "se":
225
+ default:
226
+ return { x: e.x, y: e.y };
227
+ }
228
+ })(), l = (() => {
229
+ switch (t) {
230
+ case "nw":
231
+ return { x: e.x + a, y: e.y + u };
232
+ case "ne":
233
+ return { x: e.x + e.width + a, y: e.y + u };
234
+ case "sw":
235
+ return { x: e.x + a, y: e.y + e.height + u };
236
+ case "se":
237
+ default:
238
+ return { x: e.x + e.width + a, y: e.y + e.height + u };
239
+ }
240
+ })(), f = Math.abs(r.x - l.x), ee = Math.abs(r.y - l.y) * n, te = Math.max(h, h * n);
241
+ let y = Math.max(f, ee, te);
242
+ const $e = (() => {
243
+ switch (t) {
244
+ case "nw":
245
+ return Math.min(r.x, r.y * n);
246
+ case "ne":
247
+ return Math.min(c.value - r.x, r.y * n);
248
+ case "sw":
249
+ return Math.min(r.x, (p.value - r.y) * n);
250
+ case "se":
251
+ default:
252
+ return Math.min(c.value - r.x, (p.value - r.y) * n);
253
+ }
254
+ })();
255
+ y = s(y, te, Math.max(te, $e));
256
+ const H = y / n, T = (() => {
257
+ switch (t) {
258
+ case "nw":
259
+ return { x: r.x - y, y: r.y - H, width: y, height: H };
260
+ case "ne":
261
+ return { x: r.x, y: r.y - H, width: y, height: H };
262
+ case "sw":
263
+ return { x: r.x - y, y: r.y, width: y, height: H };
264
+ case "se":
265
+ default:
266
+ return { x: r.x, y: r.y, width: y, height: H };
267
+ }
268
+ })(), ke = s(T.x, 0, Math.max(0, c.value - T.width)), De = s(T.y, 0, Math.max(0, p.value - T.height));
269
+ return {
270
+ x: ke,
271
+ y: De,
272
+ width: T.width,
273
+ height: T.height
274
+ };
275
+ }
276
+ function le(e) {
277
+ const t = Z.value;
278
+ if (!t || e.pointerId !== t.pointerId) return;
279
+ e.preventDefault();
280
+ const a = e.clientX - t.startX, u = e.clientY - t.startY;
281
+ if (t.type === "drag-image") {
282
+ x.value = t.startOffsetX + a, g.value = t.startOffsetY + u, w(!1);
283
+ return;
284
+ }
285
+ if (t.type === "drag-crop") {
286
+ const n = s(
287
+ t.startCropBox.x + a,
288
+ 0,
289
+ Math.max(0, c.value - t.startCropBox.width)
290
+ ), r = s(
291
+ t.startCropBox.y + u,
292
+ 0,
293
+ Math.max(0, p.value - t.startCropBox.height)
294
+ );
295
+ J({
296
+ x: n,
297
+ y: r,
298
+ width: t.startCropBox.width,
299
+ height: t.startCropBox.height
300
+ });
301
+ return;
302
+ }
303
+ if (t.type === "resize" && t.handle) {
304
+ const n = G.value, r = n ? Xe(t.startCropBox, t.handle, a, u, n) : Ie(t.startCropBox, t.handle, a, u);
305
+ J(r);
306
+ }
307
+ }
308
+ function q(e) {
309
+ Z.value && e.pointerId === Z.value.pointerId && ue();
310
+ }
311
+ function Ye(e, t, a, u) {
312
+ const n = Math.min(u, t / 2, a / 2);
313
+ e.beginPath(), e.moveTo(n, 0), e.lineTo(t - n, 0), e.quadraticCurveTo(t, 0, t, n), e.lineTo(t, a - n), e.quadraticCurveTo(t, a, t - n, a), e.lineTo(n, a), e.quadraticCurveTo(0, a, 0, a - n), e.lineTo(0, n), e.quadraticCurveTo(0, 0, n, 0), e.closePath();
314
+ }
315
+ function Fe(e, t, a) {
316
+ if (o.shape === "round") {
317
+ const u = Math.min(t, a) / 2;
318
+ e.beginPath(), e.arc(t / 2, a / 2, u, 0, Math.PI * 2), e.closePath();
319
+ return;
320
+ }
321
+ if (o.shape === "roundRect") {
322
+ Ye(e, t, a, ne.value);
323
+ return;
324
+ }
325
+ e.beginPath(), e.rect(0, 0, t, a), e.closePath();
326
+ }
327
+ function U() {
328
+ const e = Math.max(1, Math.round(i.width || 1)), t = Math.max(1, Math.round(i.height || 1)), a = typeof window > "u" ? 1 : Math.max(1, window.devicePixelRatio || 1), u = document.createElement("canvas");
329
+ u.width = Math.max(1, Math.round(e * a)), u.height = Math.max(1, Math.round(t * a)), u.style.width = `${e}px`, u.style.height = `${t}px`;
330
+ const n = u.getContext("2d");
331
+ if (!n) return u;
332
+ if (n.scale(a, a), n.save(), Fe(n, e, t), n.clip(), o.fill && (n.fillStyle = o.fill, n.fillRect(0, 0, e, t)), v.value && j.value && b.value > 0 && R.value > 0) {
333
+ const r = c.value / 2 + x.value - i.x, l = p.value / 2 + g.value - i.y;
334
+ n.translate(r, l), n.rotate(_.value * Math.PI / 180), n.scale(m.value, m.value), n.drawImage(
335
+ j.value,
336
+ -b.value / 2,
337
+ -R.value / 2,
338
+ b.value,
339
+ R.value
340
+ );
341
+ }
342
+ return n.restore(), u;
343
+ }
344
+ function He(e = "image/png", t = 0.92) {
345
+ try {
346
+ const a = U().toDataURL(e, t);
347
+ return typeof a == "string" ? a : "";
348
+ } catch (a) {
349
+ return $(a), "";
350
+ }
351
+ }
352
+ function Te(e = "image/png", t = 0.92) {
353
+ const a = U();
354
+ return new Promise((u) => {
355
+ try {
356
+ a.toBlob((n) => u(n), e, t);
357
+ } catch (n) {
358
+ $(n), u(null);
359
+ }
360
+ });
361
+ }
362
+ function Ze() {
363
+ x.value = 0, g.value = 0, K(), ie(o.zoom ?? 1), Re(o.rotate ?? 0), w(!0);
364
+ }
365
+ function Ae() {
366
+ x.value = 0, g.value = 0, re(), w(!1);
367
+ }
368
+ function se() {
369
+ if (!o.preview || typeof document > "u") return null;
370
+ if (typeof o.preview == "string")
371
+ return document.querySelector(o.preview);
372
+ if (typeof o.preview == "function") {
373
+ const e = o.preview();
374
+ if (e instanceof HTMLElement) return e;
375
+ if (e && typeof e == "object" && "value" in e) {
376
+ const t = e.value;
377
+ return t instanceof HTMLElement ? t : null;
378
+ }
379
+ return null;
380
+ }
381
+ return o.preview instanceof HTMLElement ? o.preview : null;
382
+ }
383
+ function ce() {
384
+ const e = se();
385
+ if (!e || !v.value) return;
386
+ const t = U();
387
+ t.setAttribute("data-x-cropper-preview", "true"), t.style.width = "100%", t.style.height = "100%", t.style.display = "block", e.innerHTML = "", e.appendChild(t);
388
+ }
389
+ function pe() {
390
+ const e = se();
391
+ if (!e) return;
392
+ const t = e.querySelector('[data-x-cropper-preview="true"]');
393
+ t && t.remove();
394
+ }
395
+ function We() {
396
+ if (!S.value) return;
397
+ const e = Number.parseFloat(getComputedStyle(S.value).getPropertyValue("--cx-cropper-round-rect-radius"));
398
+ Number.isFinite(e) && e >= 0 && (ne.value = e);
399
+ }
400
+ function Le(e) {
401
+ const t = e.target;
402
+ if (E.value = t.naturalWidth || 0, I.value = t.naturalHeight || 0, !E.value || !I.value) {
403
+ v.value = !1, C.value = !1, $(new Error("Image loaded but natural size is invalid."));
404
+ return;
405
+ }
406
+ v.value = !0, C.value = !1, x.value = 0, g.value = 0, k(), K(), C.value = !0, z("ready"), w(!0);
407
+ }
408
+ function Ne() {
409
+ v.value = !1, C.value = !1, pe(), $(new Error("Image failed to load."));
410
+ }
411
+ function Oe(e) {
412
+ if (F.value || !v.value) return;
413
+ const t = e.deltaY < 0 ? 1 : -1;
414
+ ie(m.value + t * ye.value);
415
+ }
416
+ return P(
417
+ () => o.src,
418
+ () => {
419
+ v.value = !1, C.value = !1, E.value = 0, I.value = 0, b.value = 0, R.value = 0, x.value = 0, g.value = 0, pe();
420
+ }
421
+ ), P(
422
+ () => o.zoom,
423
+ (e) => {
424
+ const t = s(e ?? 1, Y.value.min, Y.value.max);
425
+ t !== m.value && (m.value = t, w(!1));
426
+ },
427
+ { immediate: !0 }
428
+ ), P(
429
+ () => o.rotate,
430
+ (e) => {
431
+ const t = M(e) ? e : 0;
432
+ t !== _.value && (_.value = t, w(!1));
433
+ },
434
+ { immediate: !0 }
435
+ ), P(
436
+ () => [o.minZoom, o.maxZoom],
437
+ () => {
438
+ m.value = s(m.value, Y.value.min, Y.value.max), w(!1);
439
+ }
440
+ ), P(
441
+ () => o.aspectRatio,
442
+ (e) => {
443
+ !v.value || !C.value || !M(e) || e <= 0 || ze(e);
444
+ }
445
+ ), P(
446
+ () => o.preview,
447
+ () => W()
448
+ ), P(
449
+ () => [o.shape, o.fill, o.cropperBoxStyle, o.cropperBoxClassName],
450
+ () => W()
451
+ ), P(
452
+ () => [o.width, o.height],
453
+ async () => {
454
+ await fe(), k(), W();
455
+ }
456
+ ), Ve(() => {
457
+ fe(() => {
458
+ k(), We();
459
+ }), typeof ResizeObserver < "u" && (A = new ResizeObserver(() => {
460
+ k(), W();
461
+ }), S.value && A.observe(S.value));
462
+ }), je(() => {
463
+ ue(), X && typeof cancelAnimationFrame < "u" && cancelAnimationFrame(X), A && (A.disconnect(), A = null);
464
+ }), xe({
465
+ getCropperCanvas: U,
466
+ getCropDataURL: He,
467
+ getCropBlob: Te,
468
+ reset: Ze,
469
+ fitToContainer: Ae
470
+ }), (e, t) => (L(), N("div", {
471
+ class: "x-cropper",
472
+ style: de(we.value)
473
+ }, [
474
+ O("div", {
475
+ ref_key: "stageRef",
476
+ ref: S,
477
+ class: ve(["x-cropper__stage", { "is-disabled": F.value }]),
478
+ onPointerdown: Se,
479
+ onWheel: he(Oe, ["prevent"])
480
+ }, [
481
+ o.src ? (L(), N("img", Ge({
482
+ key: 0,
483
+ ref_key: "imageRef",
484
+ ref: j,
485
+ class: "x-cropper__image"
486
+ }, o.imgProps, {
487
+ src: o.src,
488
+ style: Pe.value,
489
+ draggable: "false",
490
+ onLoad: Le,
491
+ onError: Ne
492
+ }), null, 16, Ke)) : V("", !0),
493
+ v.value ? (L(), N("div", {
494
+ key: 1,
495
+ class: ve(Ce.value),
496
+ style: de([Me.value, o.cropperBoxStyle]),
497
+ onPointerdown: he(Ee, ["stop"])
498
+ }, [
499
+ o.showResizeBox && !F.value ? (L(), N(Je, { key: 0 }, [
500
+ O("span", {
501
+ class: "x-cropper__handle x-cropper__handle--nw",
502
+ onPointerdown: t[0] || (t[0] = (a) => D("nw", a))
503
+ }, null, 32),
504
+ O("span", {
505
+ class: "x-cropper__handle x-cropper__handle--ne",
506
+ onPointerdown: t[1] || (t[1] = (a) => D("ne", a))
507
+ }, null, 32),
508
+ O("span", {
509
+ class: "x-cropper__handle x-cropper__handle--sw",
510
+ onPointerdown: t[2] || (t[2] = (a) => D("sw", a))
511
+ }, null, 32),
512
+ O("span", {
513
+ class: "x-cropper__handle x-cropper__handle--se",
514
+ onPointerdown: t[3] || (t[3] = (a) => D("se", a))
515
+ }, null, 32)
516
+ ], 64)) : V("", !0)
517
+ ], 38)) : V("", !0),
518
+ o.src ? V("", !0) : (L(), N("div", Qe, "No image"))
519
+ ], 34)
520
+ ], 4));
521
+ }
522
+ });
523
+ export {
524
+ tt as default
525
+ };