@rhino-design/vue 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/README.md +4 -6
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/_virtual/alignment-pattern.js +4 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.js +4 -0
  6. package/dist/_virtual/dijkstra.js +4 -0
  7. package/dist/_virtual/error-correction-code.js +4 -0
  8. package/dist/_virtual/error-correction-level.js +4 -0
  9. package/dist/_virtual/finder-pattern.js +4 -0
  10. package/dist/_virtual/format-info.js +4 -0
  11. package/dist/_virtual/galois-field.js +4 -0
  12. package/dist/_virtual/mask-pattern.js +4 -0
  13. package/dist/_virtual/mode.js +4 -0
  14. package/dist/_virtual/polynomial.js +4 -0
  15. package/dist/_virtual/qrcode.js +4 -0
  16. package/dist/_virtual/regex.js +4 -0
  17. package/dist/_virtual/segments.js +4 -0
  18. package/dist/_virtual/svg-tag.js +4 -0
  19. package/dist/_virtual/utils.js +4 -0
  20. package/dist/_virtual/utils2.js +4 -0
  21. package/dist/_virtual/version-check.js +4 -0
  22. package/dist/_virtual/version.js +4 -0
  23. package/dist/arco.less +14834 -0
  24. package/dist/components/XAffix.vue.d.ts +1 -1
  25. package/dist/components/XAffix.vue.js +7 -0
  26. package/dist/components/XAffix.vue2.js +181 -0
  27. package/dist/components/XAlert.vue.js +106 -0
  28. package/dist/components/XAlert.vue2.js +4 -0
  29. package/dist/components/XAnchor.vue.d.ts +2 -2
  30. package/dist/components/XAnchor.vue.js +9 -0
  31. package/dist/components/XAnchor.vue2.js +204 -0
  32. package/dist/components/XAnchorLink.vue.js +7 -0
  33. package/dist/components/XAnchorLink.vue2.js +44 -0
  34. package/dist/components/XApp.vue.js +12 -0
  35. package/dist/components/XAutoComplete.vue.d.ts +649 -15
  36. package/dist/components/XAutoComplete.vue.js +399 -0
  37. package/dist/components/XAutoComplete.vue2.js +4 -0
  38. package/dist/components/XAvatar.vue.d.ts +2 -2
  39. package/dist/components/XAvatar.vue.js +166 -0
  40. package/dist/components/XAvatar.vue2.js +4 -0
  41. package/dist/components/XAvatarGroup.vue.js +27 -0
  42. package/dist/components/XAvatarGroup.vue2.js +4 -0
  43. package/dist/components/XBackTop.vue.d.ts +23 -7
  44. package/dist/components/XBackTop.vue.js +118 -0
  45. package/dist/components/XBackTop.vue2.js +4 -0
  46. package/dist/components/XBadge.vue.d.ts +3 -3
  47. package/dist/components/XBadge.vue.js +64 -0
  48. package/dist/components/XBadge.vue2.js +4 -0
  49. package/dist/components/XBaseMenu.vue.d.ts +5 -5
  50. package/dist/components/XBaseMenu.vue.js +37 -0
  51. package/dist/components/XBaseMenu.vue2.js +334 -0
  52. package/dist/components/XBreadcrumb.vue.d.ts +31 -6
  53. package/dist/components/XBreadcrumb.vue.js +97 -0
  54. package/dist/components/XBreadcrumb.vue2.js +4 -0
  55. package/dist/components/XBreadcrumbItem.vue.d.ts +21 -6
  56. package/dist/components/XBreadcrumbItem.vue.js +136 -0
  57. package/dist/components/XBreadcrumbItem.vue2.js +4 -0
  58. package/dist/components/XButton.vue.d.ts +4 -4
  59. package/dist/components/XButton.vue.js +7 -0
  60. package/dist/components/XButton.vue2.js +142 -0
  61. package/dist/components/XButtonG.vue.d.ts +2 -2
  62. package/dist/components/XButtonG.vue.js +7 -0
  63. package/dist/components/XButtonG.vue2.js +67 -0
  64. package/dist/components/XButtonGroup.vue.d.ts +1 -1
  65. package/dist/components/XButtonGroup.vue.js +39 -0
  66. package/dist/components/XButtonGroup.vue3.js +5 -0
  67. package/dist/components/XCalendar.vue.d.ts +5 -2
  68. package/dist/components/XCalendar.vue.js +309 -0
  69. package/dist/components/XCalendar.vue2.js +4 -0
  70. package/dist/components/XCard.vue.d.ts +1 -1
  71. package/dist/components/XCard.vue.js +80 -0
  72. package/dist/components/XCard.vue2.js +4 -0
  73. package/dist/components/XCarousel.vue.d.ts +2 -2
  74. package/dist/components/XCarousel.vue.js +7 -0
  75. package/dist/components/XCarousel.vue2.js +150 -0
  76. package/dist/components/XCarouselItem.vue.js +7 -0
  77. package/dist/components/XCarouselItem.vue2.js +112 -0
  78. package/dist/components/XCascader.vue.d.ts +19 -19
  79. package/dist/components/XCascader.vue.js +1015 -0
  80. package/dist/components/XCascader.vue2.js +4 -0
  81. package/dist/components/XCascaderPanel.vue.d.ts +6 -6
  82. package/dist/components/XCascaderPanel.vue.js +466 -0
  83. package/dist/components/XCascaderPanel.vue2.js +4 -0
  84. package/dist/components/XChatInput.vue.d.ts +5 -5
  85. package/dist/components/XChatInput.vue.js +7 -0
  86. package/dist/components/XChatInput.vue2.js +454 -0
  87. package/dist/components/XCheckbox.vue.d.ts +14 -8
  88. package/dist/components/XCheckbox.vue.js +154 -0
  89. package/dist/components/XCheckbox.vue2.js +4 -0
  90. package/dist/components/XCheckboxGroup.vue.d.ts +36 -13
  91. package/dist/components/XCheckboxGroup.vue.js +87 -0
  92. package/dist/components/XCheckboxGroup.vue2.js +4 -0
  93. package/dist/components/XCollapse.vue.d.ts +14 -7
  94. package/dist/components/XCollapse.vue.js +54 -0
  95. package/dist/components/XCollapse.vue2.js +4 -0
  96. package/dist/components/XCollapseItem.vue.d.ts +16 -4
  97. package/dist/components/XCollapseItem.vue.js +152 -0
  98. package/dist/components/XCollapseItem.vue2.js +4 -0
  99. package/dist/components/XColorGroup.vue.d.ts +1 -1
  100. package/dist/components/XColorGroup.vue.js +7 -0
  101. package/dist/components/XColorGroup.vue2.js +306 -0
  102. package/dist/components/XColorPicker.vue.js +62 -0
  103. package/dist/components/XColorPicker.vue2.js +4 -0
  104. package/dist/components/XComment.vue.js +129 -0
  105. package/dist/components/XComment.vue2.js +4 -0
  106. package/dist/components/XCompact.vue.js +17 -0
  107. package/dist/components/XCompact.vue2.js +4 -0
  108. package/dist/components/XConfigProvider.vue.d.ts +17 -4
  109. package/dist/components/XConfigProvider.vue.js +78 -0
  110. package/dist/components/XConfigProvider.vue2.js +4 -0
  111. package/dist/components/XCountdown.vue.d.ts +2 -2
  112. package/dist/components/XCountdown.vue.js +7 -0
  113. package/dist/components/XCountdown.vue2.js +104 -0
  114. package/dist/components/XCropper.vue.d.ts +2 -2
  115. package/dist/components/XCropper.vue.js +7 -0
  116. package/dist/components/XCropper.vue2.js +525 -0
  117. package/dist/components/XDatePicker.vue.d.ts +17 -17
  118. package/dist/components/XDatePicker.vue.js +1798 -0
  119. package/dist/components/XDatePicker.vue2.js +4 -0
  120. package/dist/components/XDescriptions.vue.d.ts +4 -4
  121. package/dist/components/XDescriptions.vue.js +260 -0
  122. package/dist/components/XDescriptions.vue2.js +4 -0
  123. package/dist/components/XDescriptionsItem.vue.d.ts +2 -1
  124. package/dist/components/XDescriptionsItem.vue.js +21 -0
  125. package/dist/components/XDescriptionsItem.vue2.js +4 -0
  126. package/dist/components/XDgroup.vue.d.ts +21 -0
  127. package/dist/components/XDgroup.vue.js +21 -0
  128. package/dist/components/XDgroup.vue2.js +4 -0
  129. package/dist/components/XDivider.vue.js +54 -0
  130. package/dist/components/XDivider.vue2.js +4 -0
  131. package/dist/components/XDoption.vue.d.ts +38 -0
  132. package/dist/components/XDoption.vue.js +59 -0
  133. package/dist/components/XDoption.vue2.js +4 -0
  134. package/dist/components/XDrawer.vue.d.ts +7 -7
  135. package/dist/components/XDrawer.vue.js +7 -0
  136. package/dist/components/XDrawer.vue2.js +320 -0
  137. package/dist/components/XDrawerService.d.ts +2 -0
  138. package/dist/components/XDrawerService.js +97 -0
  139. package/dist/components/XDropdown.vue.d.ts +43 -17
  140. package/dist/components/XDropdown.vue.js +127 -0
  141. package/dist/components/XDropdown.vue2.js +4 -0
  142. package/dist/components/XDropdownButton.vue.d.ts +65 -0
  143. package/dist/components/XDropdownButton.vue.js +84 -0
  144. package/dist/components/XDropdownButton.vue2.js +4 -0
  145. package/dist/components/XDropdownItem.vue.d.ts +29 -0
  146. package/dist/components/XDropdownItem.vue.js +47 -0
  147. package/dist/components/XDropdownItem.vue2.js +4 -0
  148. package/dist/components/XDropdownPanel.vue.d.ts +33 -0
  149. package/dist/components/XDropdownPanel.vue.js +58 -0
  150. package/dist/components/XDropdownPanel.vue2.js +4 -0
  151. package/dist/components/XDsubmenu.vue.d.ts +48 -0
  152. package/dist/components/XDsubmenu.vue.js +82 -0
  153. package/dist/components/XDsubmenu.vue2.js +4 -0
  154. package/dist/components/XEmpty.vue.d.ts +2 -2
  155. package/dist/components/XEmpty.vue.js +54 -0
  156. package/dist/components/XEmpty.vue2.js +4 -0
  157. package/dist/components/XFlex.vue.js +7 -0
  158. package/dist/components/XFlex.vue2.js +122 -0
  159. package/dist/components/XFloatButton.vue.js +28 -0
  160. package/dist/components/XFloatButton.vue2.js +4 -0
  161. package/dist/components/XFloatButtonGroup.vue.js +17 -0
  162. package/dist/components/XFloatButtonGroup.vue2.js +4 -0
  163. package/dist/components/XForm.vue.d.ts +2 -2
  164. package/dist/components/XForm.vue.js +156 -0
  165. package/dist/components/XForm.vue2.js +4 -0
  166. package/dist/components/XFormItem.vue.d.ts +21 -5
  167. package/dist/components/XFormItem.vue.js +425 -0
  168. package/dist/components/XFormItem.vue2.js +4 -0
  169. package/dist/components/XGrid.vue.d.ts +1 -1
  170. package/dist/components/XGrid.vue.js +7 -0
  171. package/dist/components/XGrid.vue2.js +88 -0
  172. package/dist/components/XGridItem.vue.d.ts +3 -3
  173. package/dist/components/XGridItem.vue.js +8 -0
  174. package/dist/components/XGridItem.vue2.js +112 -0
  175. package/dist/components/XGridLayout.vue.js +7 -0
  176. package/dist/components/XGridLayout.vue2.js +66 -0
  177. package/dist/components/XGridLayoutItem.vue.d.ts +1 -1
  178. package/dist/components/XGridLayoutItem.vue.js +7 -0
  179. package/dist/components/XGridLayoutItem.vue2.js +56 -0
  180. package/dist/components/XIcon.d.ts +1 -1
  181. package/dist/components/XIcon.js +5 -0
  182. package/dist/components/XIconLite.d.ts +1 -1
  183. package/dist/components/XIconLite.js +8 -0
  184. package/dist/components/XImage.vue.d.ts +7 -3
  185. package/dist/components/XImage.vue.js +7 -0
  186. package/dist/components/XImage.vue2.js +241 -0
  187. package/dist/components/XImageGroup.vue.js +7 -0
  188. package/dist/components/XImageGroup.vue2.js +22 -0
  189. package/dist/components/XInput.vue.d.ts +5 -5
  190. package/dist/components/XInput.vue.js +7 -0
  191. package/dist/components/XInput.vue2.js +537 -0
  192. package/dist/components/XInputComposite.vue.d.ts +12 -12
  193. package/dist/components/XInputComposite.vue.js +7 -0
  194. package/dist/components/XInputComposite.vue2.js +176 -0
  195. package/dist/components/XInputGroup.vue.js +19 -0
  196. package/dist/components/XInputGroup.vue3.js +5 -0
  197. package/dist/components/XInputNumber.vue.d.ts +9 -9
  198. package/dist/components/XInputNumber.vue.js +7 -0
  199. package/dist/components/XInputNumber.vue2.js +344 -0
  200. package/dist/components/XInputPassword.vue.d.ts +24 -24
  201. package/dist/components/XInputPassword.vue.js +7 -0
  202. package/dist/components/XInputPassword.vue2.js +125 -0
  203. package/dist/components/XInputSearch.vue.d.ts +26 -26
  204. package/dist/components/XInputSearch.vue.js +7 -0
  205. package/dist/components/XInputSearch.vue2.js +154 -0
  206. package/dist/components/XInputTag.vue.d.ts +10 -10
  207. package/dist/components/XInputTag.vue.js +367 -0
  208. package/dist/components/XInputTag.vue2.js +4 -0
  209. package/dist/components/XLayout.vue.js +22 -0
  210. package/dist/components/XLayout.vue2.js +4 -0
  211. package/dist/components/XLayoutContent.vue.js +13 -0
  212. package/dist/components/XLayoutContent.vue2.js +4 -0
  213. package/dist/components/XLayoutFooter.vue.js +22 -0
  214. package/dist/components/XLayoutFooter.vue2.js +4 -0
  215. package/dist/components/XLayoutHeader.vue.js +128 -0
  216. package/dist/components/XLayoutHeader.vue2.js +4 -0
  217. package/dist/components/XLayoutSider.vue.js +108 -0
  218. package/dist/components/XLayoutSider.vue2.js +4 -0
  219. package/dist/components/XLink.vue.d.ts +1 -1
  220. package/dist/components/XLink.vue.js +21 -0
  221. package/dist/components/XLink.vue2.js +4 -0
  222. package/dist/components/XList.vue.d.ts +8 -5
  223. package/dist/components/XList.vue.js +295 -0
  224. package/dist/components/XList.vue2.js +4 -0
  225. package/dist/components/XListItem.vue.d.ts +2 -3
  226. package/dist/components/XListItem.vue.js +53 -0
  227. package/dist/components/XListItem.vue2.js +4 -0
  228. package/dist/components/XListItemMeta.vue.js +43 -0
  229. package/dist/components/XListItemMeta.vue2.js +4 -0
  230. package/dist/components/XMention.vue.d.ts +899 -0
  231. package/dist/components/XMention.vue.js +456 -0
  232. package/dist/components/XMention.vue2.js +4 -0
  233. package/dist/components/XMentions.vue.js +16 -0
  234. package/dist/components/XMentions.vue2.js +4 -0
  235. package/dist/components/XMenu.vue.d.ts +7 -7
  236. package/dist/components/XMenu.vue.js +57 -0
  237. package/dist/components/XMenu.vue2.js +123 -0
  238. package/dist/components/XMenuIndent.vue.js +19 -0
  239. package/dist/components/XMenuIndent.vue2.js +21 -0
  240. package/dist/components/XMenuItem.vue.d.ts +43 -43
  241. package/dist/components/XMenuItem.vue.js +71 -0
  242. package/dist/components/XMenuItem.vue2.js +92 -0
  243. package/dist/components/XMenuItemGroup.vue.js +27 -0
  244. package/dist/components/XMenuItemGroup.vue2.js +26 -0
  245. package/dist/components/XMenuOverflowWrap.vue.js +116 -0
  246. package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
  247. package/dist/components/XMessage.vue.d.ts +1 -1
  248. package/dist/components/XMessage.vue.js +7 -0
  249. package/dist/components/XMessage.vue2.js +89 -0
  250. package/dist/components/XMessageList.d.ts +1 -1
  251. package/dist/components/XMessageList.js +61 -0
  252. package/dist/components/XMessageService.d.ts +2 -0
  253. package/dist/components/XMessageService.js +118 -0
  254. package/dist/components/XModal.vue.d.ts +8 -8
  255. package/dist/components/XModal.vue.js +7 -0
  256. package/dist/components/XModal.vue2.js +364 -0
  257. package/dist/components/XModalService.d.ts +2 -0
  258. package/dist/components/XModalService.js +157 -0
  259. package/dist/components/XNotification.vue.d.ts +31 -20
  260. package/dist/components/XNotification.vue.js +7 -0
  261. package/dist/components/XNotification.vue2.js +107 -0
  262. package/dist/components/XNotificationList.d.ts +39 -0
  263. package/dist/components/XNotificationList.js +70 -0
  264. package/dist/components/XNotificationService.d.ts +54 -15
  265. package/dist/components/XNotificationService.js +119 -0
  266. package/dist/components/XOptgroup.vue.d.ts +1 -0
  267. package/dist/components/XOptgroup.vue.js +14 -0
  268. package/dist/components/XOptgroup.vue2.js +4 -0
  269. package/dist/components/XOption.vue.d.ts +1 -0
  270. package/dist/components/XOption.vue.js +21 -0
  271. package/dist/components/XOption.vue2.js +4 -0
  272. package/dist/components/XOverflowList.vue.d.ts +38 -8
  273. package/dist/components/XOverflowList.vue.js +149 -0
  274. package/dist/components/XOverflowList.vue2.js +4 -0
  275. package/dist/components/XPageHeader.vue.d.ts +11 -5
  276. package/dist/components/XPageHeader.vue.js +84 -0
  277. package/dist/components/XPageHeader.vue2.js +4 -0
  278. package/dist/components/XPagination.vue.js +121 -0
  279. package/dist/components/XPagination.vue2.js +4 -0
  280. package/dist/components/XPopconfirm.vue.d.ts +82 -77
  281. package/dist/components/XPopconfirm.vue.js +90 -0
  282. package/dist/components/XPopconfirm.vue2.js +4 -0
  283. package/dist/components/XPopover.vue.d.ts +3 -3
  284. package/dist/components/XPopover.vue.js +53 -0
  285. package/dist/components/XPopover.vue2.js +4 -0
  286. package/dist/components/XProgress.vue.d.ts +2 -2
  287. package/dist/components/XProgress.vue.js +263 -0
  288. package/dist/components/XProgress.vue2.js +4 -0
  289. package/dist/components/XQRCode.vue.d.ts +3 -3
  290. package/dist/components/XQRCode.vue.js +141 -0
  291. package/dist/components/XQRCode.vue2.js +4 -0
  292. package/dist/components/XRadio.vue.d.ts +1 -1
  293. package/dist/components/XRadio.vue.js +138 -0
  294. package/dist/components/XRadio.vue2.js +4 -0
  295. package/dist/components/XRadioButton.vue.d.ts +1 -1
  296. package/dist/components/XRadioButton.vue.js +41 -0
  297. package/dist/components/XRadioButton.vue2.js +4 -0
  298. package/dist/components/XRadioGroup.vue.d.ts +3 -3
  299. package/dist/components/XRadioGroup.vue.js +168 -0
  300. package/dist/components/XRadioGroup.vue2.js +4 -0
  301. package/dist/components/XRate.vue.d.ts +3 -3
  302. package/dist/components/XRate.vue.js +145 -0
  303. package/dist/components/XRate.vue2.js +4 -0
  304. package/dist/components/XResizeBox.vue.d.ts +41 -9
  305. package/dist/components/XResizeBox.vue.js +184 -0
  306. package/dist/components/XResizeBox.vue2.js +4 -0
  307. package/dist/components/XResult.vue.js +78 -0
  308. package/dist/components/XResult.vue2.js +4 -0
  309. package/dist/components/XRichTextEditor.vue.d.ts +2 -2
  310. package/dist/components/XRichTextEditor.vue.js +7 -0
  311. package/dist/components/XRichTextEditor.vue2.js +742 -0
  312. package/dist/components/XScrollbar.vue.d.ts +176 -5
  313. package/dist/components/XScrollbar.vue.js +190 -0
  314. package/dist/components/XScrollbar.vue2.js +4 -0
  315. package/dist/components/XScrollbarThumb.vue.d.ts +22 -0
  316. package/dist/components/XScrollbarThumb.vue.js +97 -0
  317. package/dist/components/XScrollbarThumb.vue2.js +4 -0
  318. package/dist/components/XSegmented.vue.js +7 -0
  319. package/dist/components/XSegmented.vue2.js +71 -0
  320. package/dist/components/XSelect.vue.d.ts +27 -27
  321. package/dist/components/XSelect.vue.js +858 -0
  322. package/dist/components/XSelect.vue2.js +4 -0
  323. package/dist/components/XSkeleton.vue.d.ts +100 -29
  324. package/dist/components/XSkeleton.vue.js +37 -0
  325. package/dist/components/XSkeleton.vue2.js +59 -0
  326. package/dist/components/XSkeletonLine.vue.d.ts +15 -0
  327. package/dist/components/XSkeletonLine.vue.js +36 -0
  328. package/dist/components/XSkeletonLine.vue2.js +4 -0
  329. package/dist/components/XSkeletonShape.vue.d.ts +9 -0
  330. package/dist/components/XSkeletonShape.vue.js +21 -0
  331. package/dist/components/XSkeletonShape.vue2.js +4 -0
  332. package/dist/components/XSlider.vue.d.ts +86 -86
  333. package/dist/components/XSlider.vue.js +402 -0
  334. package/dist/components/XSlider.vue2.js +4 -0
  335. package/dist/components/XSpace.vue.d.ts +59 -28
  336. package/dist/components/XSpace.vue.js +125 -0
  337. package/dist/components/XSpace.vue2.js +4 -0
  338. package/dist/components/XSpin.vue.js +54 -0
  339. package/dist/components/XSpin.vue2.js +4 -0
  340. package/dist/components/XSplit.vue.d.ts +3 -3
  341. package/dist/components/XSplit.vue.js +7 -0
  342. package/dist/components/XSplit.vue2.js +126 -0
  343. package/dist/components/XStatistic.vue.d.ts +5 -5
  344. package/dist/components/XStatistic.vue.js +7 -0
  345. package/dist/components/XStatistic.vue2.js +176 -0
  346. package/dist/components/XStep.vue.d.ts +3 -3
  347. package/dist/components/XStep.vue.js +91 -0
  348. package/dist/components/XStep.vue2.js +4 -0
  349. package/dist/components/XSteps.vue.d.ts +2 -2
  350. package/dist/components/XSteps.vue.js +73 -0
  351. package/dist/components/XSteps.vue2.js +4 -0
  352. package/dist/components/XSubMenu.vue.d.ts +30 -30
  353. package/dist/components/XSubMenu.vue.js +109 -0
  354. package/dist/components/XSubMenu.vue2.js +69 -0
  355. package/dist/components/XSubMenuInline.vue.js +74 -0
  356. package/dist/components/XSubMenuInline.vue2.js +56 -0
  357. package/dist/components/XSubMenuPop.vue.d.ts +29 -29
  358. package/dist/components/XSubMenuPop.vue.js +91 -0
  359. package/dist/components/XSubMenuPop.vue2.js +113 -0
  360. package/dist/components/XSwitch.vue.d.ts +5 -5
  361. package/dist/components/XSwitch.vue.js +133 -0
  362. package/dist/components/XSwitch.vue2.js +4 -0
  363. package/dist/components/XTabPane.vue.d.ts +4 -4
  364. package/dist/components/XTabPane.vue.js +59 -0
  365. package/dist/components/XTabPane.vue2.js +4 -0
  366. package/dist/components/XTable.vue.d.ts +5 -5
  367. package/dist/components/XTable.vue.js +7 -0
  368. package/dist/components/XTable.vue2.js +1059 -0
  369. package/dist/components/XTableFilter.vue.js +7 -0
  370. package/dist/components/XTableFilter.vue2.js +141 -0
  371. package/dist/components/XTabs.vue.d.ts +53 -25
  372. package/dist/components/XTabs.vue.js +402 -0
  373. package/dist/components/XTabs.vue2.js +4 -0
  374. package/dist/components/XTag.vue.d.ts +5 -3
  375. package/dist/components/XTag.vue.js +126 -0
  376. package/dist/components/XTag.vue2.js +4 -0
  377. package/dist/components/XTextarea.vue.d.ts +9 -9
  378. package/dist/components/XTextarea.vue.js +261 -0
  379. package/dist/components/XTextarea.vue2.js +4 -0
  380. package/dist/components/XTimePicker.vue.d.ts +13 -13
  381. package/dist/components/XTimePicker.vue.js +827 -0
  382. package/dist/components/XTimePicker.vue2.js +4 -0
  383. package/dist/components/XTimeline.vue.d.ts +2 -2
  384. package/dist/components/XTimeline.vue.js +84 -0
  385. package/dist/components/XTimeline.vue2.js +4 -0
  386. package/dist/components/XTimelineItem.vue.d.ts +3 -3
  387. package/dist/components/XTimelineItem.vue.js +202 -0
  388. package/dist/components/XTimelineItem.vue2.js +4 -0
  389. package/dist/components/XTooltip.vue.d.ts +76 -76
  390. package/dist/components/XTooltip.vue.js +78 -0
  391. package/dist/components/XTooltip.vue2.js +4 -0
  392. package/dist/components/XTour.vue.js +120 -0
  393. package/dist/components/XTour.vue2.js +4 -0
  394. package/dist/components/XTr.vue.js +12 -0
  395. package/dist/components/XTransfer.vue.js +128 -0
  396. package/dist/components/XTransfer.vue2.js +4 -0
  397. package/dist/components/XTree.vue.d.ts +3 -1
  398. package/dist/components/XTree.vue.js +7 -0
  399. package/dist/components/XTree.vue2.js +601 -0
  400. package/dist/components/XTreeNode.vue.js +7 -0
  401. package/dist/components/XTreeNode.vue2.js +314 -0
  402. package/dist/components/XTreeSelect.vue.d.ts +175 -29
  403. package/dist/components/XTreeSelect.vue.js +7 -0
  404. package/dist/components/XTreeSelect.vue2.js +715 -0
  405. package/dist/components/XTrigger.vue.d.ts +6 -6
  406. package/dist/components/XTrigger.vue.js +492 -0
  407. package/dist/components/XTrigger.vue2.js +4 -0
  408. package/dist/components/XTypography.vue.d.ts +4 -4
  409. package/dist/components/XTypography.vue.js +51 -0
  410. package/dist/components/XTypography.vue2.js +126 -0
  411. package/dist/components/XTypographyParagraph.vue.d.ts +2 -2
  412. package/dist/components/XTypographyParagraph.vue.js +83 -0
  413. package/dist/components/XTypographyParagraph.vue2.js +4 -0
  414. package/dist/components/XTypographyText.vue.d.ts +3 -3
  415. package/dist/components/XTypographyText.vue.js +76 -0
  416. package/dist/components/XTypographyText.vue2.js +4 -0
  417. package/dist/components/XTypographyTitle.vue.d.ts +2 -2
  418. package/dist/components/XTypographyTitle.vue.js +77 -0
  419. package/dist/components/XTypographyTitle.vue2.js +4 -0
  420. package/dist/components/XUpload.vue.d.ts +7 -5
  421. package/dist/components/XUpload.vue.js +7 -0
  422. package/dist/components/XUpload.vue2.js +1060 -0
  423. package/dist/components/XVerificationCode.vue.d.ts +3 -3
  424. package/dist/components/XVerificationCode.vue.js +149 -0
  425. package/dist/components/XVerificationCode.vue2.js +4 -0
  426. package/dist/components/XWatermark.vue.d.ts +30 -4
  427. package/dist/components/XWatermark.vue.js +204 -0
  428. package/dist/components/XWatermark.vue2.js +4 -0
  429. package/dist/components/index.d.ts +504 -1
  430. package/dist/components/index.js +308 -0
  431. package/dist/components/result-assets/result-403.svg.js +4 -0
  432. package/dist/components/result-assets/result-404.svg.js +4 -0
  433. package/dist/components/result-assets/result-500.svg.js +4 -0
  434. package/dist/components/statistic-utils.js +81 -0
  435. package/dist/components/timelineContext.js +4 -0
  436. package/dist/components/x-breadcrumb-context.d.ts +9 -0
  437. package/dist/components/x-breadcrumb-context.js +4 -0
  438. package/dist/components/x-checkbox-context.d.ts +19 -0
  439. package/dist/components/x-checkbox-context.js +4 -0
  440. package/dist/components/x-dropdown-context.d.ts +7 -0
  441. package/dist/components/x-dropdown-context.js +4 -0
  442. package/dist/components/x-icon-shared.d.ts +1 -1
  443. package/dist/components/x-icon-shared.js +151 -0
  444. package/dist/components/x-list-shared.d.ts +20 -8
  445. package/dist/components/x-radio-context.js +4 -0
  446. package/dist/components/x-scrollbar-types.d.ts +5 -0
  447. package/dist/composables/collapse.d.ts +8 -5
  448. package/dist/composables/collapse.js +9 -0
  449. package/dist/composables/config-provider.d.ts +29 -0
  450. package/dist/composables/config-provider.js +48 -0
  451. package/dist/composables/config.js +39 -0
  452. package/dist/composables/form.js +397 -0
  453. package/dist/composables/i18n.d.ts +4 -2
  454. package/dist/composables/i18n.js +257 -0
  455. package/dist/composables/menu-context.js +6 -0
  456. package/dist/composables/menu-hooks/use-level.js +25 -0
  457. package/dist/composables/menu-hooks/use-menu-context.js +8 -0
  458. package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
  459. package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
  460. package/dist/composables/menu-hooks/use-menu.js +19 -0
  461. package/dist/composables/popup.js +177 -0
  462. package/dist/composables/scrollbar-visibility.d.ts +1 -0
  463. package/dist/composables/scrollbar-visibility.js +96 -0
  464. package/dist/composables/steps.d.ts +1 -0
  465. package/dist/composables/steps.js +9 -0
  466. package/dist/composables/tabs.d.ts +19 -8
  467. package/dist/composables/tabs.js +10 -0
  468. package/dist/composables/theme-context.d.ts +9 -0
  469. package/dist/composables/theme-context.js +24 -0
  470. package/dist/composables/theme.js +53 -0
  471. package/dist/composables/useMergeState.js +27 -0
  472. package/dist/composables/useResponsive.js +36 -0
  473. package/dist/iconfont/generated/icons/guanbi.js +7 -0
  474. package/dist/iconfont/generated/icons/shijian.js +7 -0
  475. package/dist/iconfont/internal-icons.js +71 -0
  476. package/dist/index.cjs +10 -11
  477. package/dist/index.css +14834 -0
  478. package/dist/index.js +382 -27802
  479. package/dist/index.less +14834 -0
  480. package/dist/install.js +39 -0
  481. package/dist/locales/ar-EG.js +5 -0
  482. package/dist/locales/da-DK.d.ts +381 -0
  483. package/dist/locales/da-DK.js +5 -0
  484. package/dist/locales/de-DE.js +5 -0
  485. package/dist/locales/en-US.js +312 -0
  486. package/dist/locales/es-ES.js +5 -0
  487. package/dist/locales/fr-FR.js +5 -0
  488. package/dist/locales/id-ID.js +5 -0
  489. package/dist/locales/it-IT.js +5 -0
  490. package/dist/locales/ja-JP.js +5 -0
  491. package/dist/locales/km-KH.js +5 -0
  492. package/dist/locales/ko-KR.js +5 -0
  493. package/dist/locales/ms-MY.js +5 -0
  494. package/dist/locales/nl-NL.d.ts +381 -0
  495. package/dist/locales/nl-NL.js +5 -0
  496. package/dist/locales/pt-PT.js +5 -0
  497. package/dist/locales/ru-RU.js +5 -0
  498. package/dist/locales/th-TH.js +5 -0
  499. package/dist/locales/vi-VN.js +5 -0
  500. package/dist/locales/zh-CN.js +312 -0
  501. package/dist/locales/zh-TW.js +5 -0
  502. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  503. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  504. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  505. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  506. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  507. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  508. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  509. package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
  510. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  511. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  512. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  513. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  514. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  515. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  516. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  517. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  518. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  519. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  520. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  521. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  522. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  523. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  524. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  525. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  526. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  527. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  528. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  529. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  530. package/dist/style.css +14834 -1
  531. package/dist/style.less +14834 -0
  532. package/package.json +12 -4
  533. package/dist/components/__tests__/XAffix.test.d.ts +0 -1
  534. package/dist/components/__tests__/XButton.test.d.ts +0 -1
  535. package/dist/components/__tests__/XCard.test.d.ts +0 -1
  536. package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
  537. package/dist/components/__tests__/XCascader.test.d.ts +0 -1
  538. package/dist/components/__tests__/XCropper.test.d.ts +0 -1
  539. package/dist/components/__tests__/XMention.test.d.ts +0 -1
  540. package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
  541. package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
  542. package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
  543. package/dist/components/__tests__/XTable.test.d.ts +0 -1
  544. package/dist/components/__tests__/XTag.test.d.ts +0 -1
  545. package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
  546. package/dist/components/__tests__/XTree.test.d.ts +0 -1
  547. package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
  548. package/dist/favicon.ico +0 -1
  549. package/dist/favicon.svg +0 -5
  550. package/dist/images/carousel-0.png +0 -0
  551. package/dist/images/carousel-2.png +0 -0
  552. package/dist/images/carousel-3.png +0 -0
  553. package/dist/images/image-1.png +0 -0
  554. package/dist/img/avatar-1.jpg +0 -0
  555. package/dist/img/avatar.jpg +0 -0
  556. package/dist/img/avatar0.jpg +0 -0
  557. package/dist/img/avatar1.jpg +0 -0
  558. package/dist/img/image-1.png +0 -0
  559. package/dist/img/image-2.png +0 -0
  560. package/dist/img/image-3.png +0 -0
  561. package/dist/index.cjs.map +0 -1
  562. package/dist/index.js.map +0 -1
@@ -0,0 +1,168 @@
1
+ import { defineComponent as z, useSlots as E, getCurrentInstance as K, ref as b, computed as a, provide as H, watch as g, onMounted as J, openBlock as s, createElementBlock as h, normalizeStyle as Q, normalizeClass as U, Fragment as V, renderList as W, createBlock as N, withCtx as Y, renderSlot as O, unref as Z, createTextVNode as P, toDisplayString as ee, Comment as te, Text as le } from "vue";
2
+ import { useXConfig as oe } from "../composables/config.js";
3
+ import ae from "./XRadio.vue.js";
4
+ import { xRadioGroupKey as ne } from "./x-radio-context.js";
5
+ const de = /* @__PURE__ */ z({
6
+ __name: "XRadioGroup",
7
+ props: {
8
+ modelValue: { type: [String, Number, Boolean] },
9
+ defaultValue: { type: [String, Number, Boolean] },
10
+ type: { default: "radio" },
11
+ size: {},
12
+ options: {},
13
+ direction: { default: "horizontal" },
14
+ disabled: { type: Boolean, default: !1 },
15
+ allowCancel: { type: Boolean, default: !1 },
16
+ fill: { default: "" },
17
+ color: { default: "" }
18
+ },
19
+ emits: ["update:modelValue", "change"],
20
+ setup(_, { emit: $ }) {
21
+ const l = _, f = $, d = E(), p = K(), X = oe(), n = b(l.defaultValue), u = b([]), C = b(!1), B = a(() => l.size ?? X.size.value ?? "medium"), m = a(() => {
22
+ const e = (p == null ? void 0 : p.vnode.props) ?? {};
23
+ return Object.prototype.hasOwnProperty.call(e, "modelValue") || Object.prototype.hasOwnProperty.call(e, "model-value");
24
+ }), c = a(() => m.value ? l.modelValue : n.value);
25
+ function R(e) {
26
+ const t = e.children;
27
+ if (Array.isArray(t)) return t;
28
+ if (t && typeof t == "object") {
29
+ const o = t.default;
30
+ if (typeof o == "function") {
31
+ const r = o();
32
+ if (Array.isArray(r))
33
+ return r;
34
+ }
35
+ }
36
+ return [];
37
+ }
38
+ function j(e) {
39
+ if (typeof e == "string") return e;
40
+ if (!e || typeof e != "object" && typeof e != "function") return "";
41
+ const t = e;
42
+ return String(t.name ?? t.__name ?? "");
43
+ }
44
+ function v(e) {
45
+ return e.some((t) => {
46
+ if (!t || t.type === te || t.type === le) return !1;
47
+ if (t.type === V)
48
+ return v(R(t));
49
+ const o = t.props ?? {}, r = j(t.type);
50
+ if (r === "XRadioButton" || r === "RadioButton" || (r === "XRadio" || r === "Radio") && o.type === "button")
51
+ return !0;
52
+ const w = R(t);
53
+ return w.length > 0 ? v(w) : !1;
54
+ });
55
+ }
56
+ const A = a(() => {
57
+ var t;
58
+ const e = ((t = d.default) == null ? void 0 : t.call(d)) ?? [];
59
+ return v(e);
60
+ }), S = a(() => l.type === "button" || A.value || !!l.fill || !!l.color), i = a(() => (l.options ?? []).map((e) => typeof e == "string" || typeof e == "number" ? {
61
+ label: e,
62
+ value: e
63
+ } : e)), y = a(() => i.value.length > 0 ? i.value.map((e) => e.value) : u.value), k = a(() => y.value[0]);
64
+ function G(e) {
65
+ return e == null ? !1 : y.value.some((t) => t === e);
66
+ }
67
+ function L(e) {
68
+ u.value.some((t) => t === e) || u.value.push(e);
69
+ }
70
+ function M(e) {
71
+ const t = u.value.findIndex((o) => o === e);
72
+ t >= 0 && u.value.splice(t, 1);
73
+ }
74
+ function x() {
75
+ if (l.allowCancel)
76
+ return;
77
+ const e = k.value;
78
+ e !== void 0 && (G(c.value) || (n.value !== e && (n.value = e), m.value && l.modelValue !== e && f("update:modelValue", e)));
79
+ }
80
+ function q(e, t) {
81
+ !l.allowCancel && e == null && (e = k.value), n.value = e, f("update:modelValue", e), f("change", e, t);
82
+ }
83
+ H(ne, {
84
+ name: "XRadioGroup",
85
+ value: c,
86
+ size: B,
87
+ type: a(() => S.value ? "button" : l.type),
88
+ disabled: a(() => l.disabled),
89
+ allowCancel: a(() => l.allowCancel),
90
+ radioSlot: d.radio,
91
+ handleChange: q,
92
+ registerRadio: L,
93
+ unregisterRadio: M
94
+ }), g(c, (e) => {
95
+ n.value !== e && (n.value = e);
96
+ }), g(
97
+ () => l.modelValue,
98
+ (e) => {
99
+ m.value && e == null && (n.value = void 0);
100
+ }
101
+ ), g(
102
+ [c, y, () => l.allowCancel],
103
+ () => {
104
+ !C.value && i.value.length === 0 || x();
105
+ },
106
+ {
107
+ immediate: !0,
108
+ deep: !0
109
+ }
110
+ ), J(() => {
111
+ C.value = !0, x();
112
+ });
113
+ const F = a(() => [
114
+ `x-radio-group${S.value ? "-button" : ""}`,
115
+ `x-radio-group-size-${B.value}`,
116
+ `x-radio-group-direction-${l.direction}`,
117
+ {
118
+ "x-radio-group-disabled": l.disabled
119
+ }
120
+ ]), I = a(() => {
121
+ const e = {};
122
+ return l.fill && (e["--x-radio-button-active-bg"] = l.fill), l.color && (e["--x-radio-button-active-color"] = l.color), Object.keys(e).length > 0 ? e : void 0;
123
+ }), T = z({
124
+ name: "XRadioOptionLabelRenderer",
125
+ props: {
126
+ render: {
127
+ type: Function,
128
+ required: !0
129
+ }
130
+ },
131
+ setup(e) {
132
+ return () => {
133
+ var t;
134
+ return (t = e.render) == null ? void 0 : t.call(e);
135
+ };
136
+ }
137
+ });
138
+ function D(e) {
139
+ return typeof e == "function";
140
+ }
141
+ return (e, t) => (s(), h("span", {
142
+ class: U(F.value),
143
+ style: Q(I.value)
144
+ }, [
145
+ i.value.length > 0 ? (s(!0), h(V, { key: 0 }, W(i.value, (o) => (s(), N(ae, {
146
+ key: String(o.value),
147
+ value: o.value,
148
+ disabled: o.disabled
149
+ }, {
150
+ default: Y(() => [
151
+ e.$slots.label ? O(e.$slots, "label", {
152
+ key: 0,
153
+ data: o
154
+ }) : D(o.label) ? (s(), N(Z(T), {
155
+ key: 1,
156
+ render: o.label
157
+ }, null, 8, ["render"])) : (s(), h(V, { key: 2 }, [
158
+ P(ee(o.label), 1)
159
+ ], 64))
160
+ ]),
161
+ _: 2
162
+ }, 1032, ["value", "disabled"]))), 128)) : O(e.$slots, "default", { key: 1 })
163
+ ], 6));
164
+ }
165
+ });
166
+ export {
167
+ de as default
168
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XRadioGroup.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -33,12 +33,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
33
33
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
34
34
  onHoverChange?: ((value: number) => any) | undefined;
35
35
  }>, {
36
- disabled: boolean;
37
36
  color: RateColor;
38
- count: number;
39
- allowClear: boolean;
37
+ disabled: boolean;
40
38
  defaultValue: number;
39
+ allowClear: boolean;
41
40
  readonly: boolean;
41
+ count: number;
42
42
  allowHalf: boolean;
43
43
  grading: boolean;
44
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -0,0 +1,145 @@
1
+ import { defineComponent as Q, useSlots as T, toRefs as U, toRef as W, ref as w, watch as Y, computed as r, openBlock as u, createElementBlock as V, normalizeClass as Z, Fragment as x, renderList as ee, mergeProps as b, unref as m, createElementVNode as F, createBlock as C, renderSlot as N } from "vue";
2
+ import { useXFormItem as ae } from "../composables/form.js";
3
+ import k from "./XIcon.js";
4
+ const le = ["id", "onAnimationend"], te = ["onMouseenter", "onClick"], oe = ["onMouseenter", "onClick"], se = /* @__PURE__ */ Q({
5
+ __name: "XRate",
6
+ props: {
7
+ count: { default: 5 },
8
+ modelValue: {},
9
+ defaultValue: { default: 0 },
10
+ allowHalf: { type: Boolean, default: !1 },
11
+ allowClear: { type: Boolean, default: !1 },
12
+ grading: { type: Boolean, default: !1 },
13
+ readonly: { type: Boolean, default: !1 },
14
+ disabled: { type: Boolean, default: !1 },
15
+ color: { default: void 0 }
16
+ },
17
+ emits: ["update:modelValue", "change", "hoverChange"],
18
+ setup(s, { emit: X }) {
19
+ const l = s, c = X, j = T(), { modelValue: z } = U(l), { id: L, mergedDisabled: H, eventHandlers: B } = ae({
20
+ disabled: W(l, "disabled")
21
+ }), h = w(l.defaultValue), v = w(0), d = w(!1);
22
+ Y(z, (a) => {
23
+ a == null && (h.value = 0);
24
+ });
25
+ const f = r(() => l.modelValue ?? h.value), I = r(() => H.value || l.readonly), $ = r(() => l.grading ? 5 : Math.max(0, Math.floor(l.count))), g = r(() => Array.from({ length: $.value }, (a, o) => o)), A = r(() => !!j.character), n = r(() => {
26
+ const a = l.allowHalf ? Math.round(f.value * 2) / 2 : Math.round(f.value);
27
+ return v.value || a;
28
+ }), S = r(() => Math.max(Math.ceil(n.value) - 1, 0)), p = r(() => {
29
+ if (typeof l.color == "string")
30
+ return g.value.map(() => l.color);
31
+ if (l.color && typeof l.color == "object") {
32
+ const a = l.color, o = Object.keys(l.color).map((t) => Number(t)).filter((t) => Number.isFinite(t)).sort((t, i) => i - t);
33
+ let e = o.pop() ?? g.value.length;
34
+ return g.value.map((t, i) => (i + 1 > e && (e = o.pop() ?? e), a[String(e)]));
35
+ }
36
+ }), P = r(() => [
37
+ "x-rate",
38
+ {
39
+ "x-rate-readonly": l.readonly,
40
+ "x-rate-disabled": H.value
41
+ }
42
+ ]);
43
+ function G() {
44
+ v.value && (v.value = 0, c("hoverChange", 0));
45
+ }
46
+ function _(a, o) {
47
+ if (I.value)
48
+ return;
49
+ const e = o && l.allowHalf ? a + 0.5 : a + 1;
50
+ e !== v.value && (v.value = e, c("hoverChange", e));
51
+ }
52
+ function D(a, o) {
53
+ var t, i, y, R;
54
+ if (I.value)
55
+ return;
56
+ const e = o && l.allowHalf ? a + 0.5 : a + 1;
57
+ d.value = !0, e !== f.value ? (h.value = e, c("update:modelValue", e), c("change", e), (i = (t = B.value) == null ? void 0 : t.onChange) == null || i.call(t)) : l.allowClear && (h.value = 0, c("update:modelValue", 0), c("change", 0), (R = (y = B.value) == null ? void 0 : y.onChange) == null || R.call(y));
58
+ }
59
+ function O(a) {
60
+ d.value && a + 1 >= f.value - 1 && (d.value = !1);
61
+ }
62
+ function M(a, o = !1) {
63
+ return {
64
+ role: "radio",
65
+ "aria-checked": a + (o ? 0.5 : 1) <= f.value,
66
+ "aria-setsize": $.value,
67
+ "aria-posinset": a + (o ? 0.5 : 1)
68
+ };
69
+ }
70
+ function q(a) {
71
+ if (p.value && l.allowHalf && a + 0.5 === n.value)
72
+ return { color: p.value[S.value] };
73
+ }
74
+ function J(a) {
75
+ if (p.value && a + 1 <= n.value)
76
+ return { color: p.value[S.value] };
77
+ }
78
+ function E(a) {
79
+ return a > n.value ? "smile-full" : n.value <= 2 ? "disappointed-full" : n.value <= 3 ? "smile-full" : "happy-full";
80
+ }
81
+ function K(a) {
82
+ return [
83
+ "x-rate-character",
84
+ {
85
+ "x-rate-character-half": l.allowHalf && a + 0.5 === n.value,
86
+ "x-rate-character-full": a + 1 <= n.value,
87
+ "x-rate-character-scale": d.value && a + 1 < f.value
88
+ }
89
+ ];
90
+ }
91
+ return (a, o) => (u(), V("div", {
92
+ class: Z(P.value),
93
+ onMouseleave: G
94
+ }, [
95
+ (u(!0), V(x, null, ee(g.value, (e) => (u(), V("div", b({
96
+ id: e === 0 ? m(L) : void 0,
97
+ key: e,
98
+ class: K(e),
99
+ style: d.value ? { animationDelay: `${50 * e}ms` } : void 0
100
+ }, { ref_for: !0 }, s.allowHalf ? void 0 : M(e), {
101
+ onAnimationend: (t) => O(e)
102
+ }), [
103
+ F("div", b({
104
+ class: "x-rate-character-left",
105
+ style: q(e)
106
+ }, { ref_for: !0 }, s.allowHalf ? M(e, !0) : void 0, {
107
+ onMouseenter: (t) => _(e, !0),
108
+ onClick: (t) => D(e, !0)
109
+ }), [
110
+ s.grading ? (u(), C(m(k), {
111
+ key: 0,
112
+ name: E(e)
113
+ }, null, 8, ["name"])) : A.value ? N(a.$slots, "character", {
114
+ key: 1,
115
+ index: e
116
+ }) : (u(), C(m(k), {
117
+ key: 2,
118
+ name: "star-full"
119
+ }))
120
+ ], 16, te),
121
+ F("div", b({
122
+ class: "x-rate-character-right",
123
+ style: J(e)
124
+ }, { ref_for: !0 }, s.allowHalf ? M(e) : void 0, {
125
+ onMouseenter: (t) => _(e, !1),
126
+ onClick: (t) => D(e, !1)
127
+ }), [
128
+ s.grading ? (u(), C(m(k), {
129
+ key: 0,
130
+ name: E(e)
131
+ }, null, 8, ["name"])) : A.value ? N(a.$slots, "character", {
132
+ key: 1,
133
+ index: e
134
+ }) : (u(), C(m(k), {
135
+ key: 2,
136
+ name: "star-full"
137
+ }))
138
+ ], 16, oe)
139
+ ], 16, le))), 128))
140
+ ], 34));
141
+ }
142
+ });
143
+ export {
144
+ se as default
145
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XRate.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,19 +1,51 @@
1
- type __VLS_Props = {
2
- width?: string | number;
3
- height?: string | number;
4
- minWidth?: string | number;
5
- minHeight?: string | number;
6
- };
1
+ type DirectionType = 'left' | 'right' | 'top' | 'bottom';
2
+ interface Props {
3
+ width?: number;
4
+ height?: number;
5
+ component?: string;
6
+ directions?: DirectionType[];
7
+ }
7
8
  declare function __VLS_template(): {
8
9
  attrs: Partial<{}>;
9
10
  slots: {
10
11
  default?(_: {}): any;
12
+ 'resize-trigger'?(_: {
13
+ direction: DirectionType;
14
+ }): any;
15
+ 'resize-trigger-icon'?(_: {
16
+ direction: DirectionType;
17
+ }): any;
18
+ };
19
+ refs: {
20
+ wrapperRef: unknown;
11
21
  };
12
- refs: {};
13
- rootEl: HTMLDivElement;
22
+ rootEl: any;
14
23
  };
15
24
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:width": (width: number) => any;
27
+ "update:height": (height: number) => any;
28
+ movingStart: (event: MouseEvent) => any;
29
+ moving: (size: {
30
+ width: number;
31
+ height: number;
32
+ }, event: MouseEvent) => any;
33
+ movingEnd: (event: MouseEvent) => any;
34
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
35
+ "onUpdate:width"?: ((width: number) => any) | undefined;
36
+ "onUpdate:height"?: ((height: number) => any) | undefined;
37
+ onMovingStart?: ((event: MouseEvent) => any) | undefined;
38
+ onMoving?: ((size: {
39
+ width: number;
40
+ height: number;
41
+ }, event: MouseEvent) => any) | undefined;
42
+ onMovingEnd?: ((event: MouseEvent) => any) | undefined;
43
+ }>, {
44
+ component: string;
45
+ directions: DirectionType[];
46
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
47
+ wrapperRef: unknown;
48
+ }, any>;
17
49
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
50
  export default _default;
19
51
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,184 @@
1
+ import { defineComponent as I, toRef as W, ref as J, reactive as w, computed as x, watch as K, watchEffect as Q, onBeforeUnmount as Z, openBlock as f, createBlock as ee, resolveDynamicComponent as te, mergeProps as oe, withCtx as ne, renderSlot as z, createElementBlock as m, Fragment as Y, renderList as D, withModifiers as re, normalizeClass as _, createElementVNode as y } from "vue";
2
+ import { useMergeState as T } from "../composables/useMergeState.js";
3
+ const ie = ["onMousedown"], se = { class: "x-resize-box__trigger-icon-wrapper" }, ae = "left", O = "right", A = "top", F = "bottom", de = /* @__PURE__ */ I({
4
+ name: "XResizeBox",
5
+ inheritAttrs: !1,
6
+ __name: "XResizeBox",
7
+ props: {
8
+ width: {},
9
+ height: {},
10
+ component: { default: "div" },
11
+ directions: { default: () => ["right"] }
12
+ },
13
+ emits: ["update:width", "update:height", "movingStart", "moving", "movingEnd"],
14
+ setup(R, { emit: G }) {
15
+ const p = R, l = G, E = ["left", "right", "top", "bottom"];
16
+ function d(e) {
17
+ return e === A || e === F;
18
+ }
19
+ function k(e, o) {
20
+ if (e === 0)
21
+ return 0;
22
+ const t = e - o;
23
+ return t <= 0 ? 0 : t;
24
+ }
25
+ const [$, P] = T(null, {
26
+ value: W(p, "width")
27
+ }), [L, S] = T(null, {
28
+ value: W(p, "height")
29
+ }), v = J(null), H = w({
30
+ left: null,
31
+ right: null,
32
+ top: null,
33
+ bottom: null
34
+ }), r = w({
35
+ left: 0,
36
+ right: 0,
37
+ top: 0,
38
+ bottom: 0
39
+ }), b = x(() => p.directions.filter((e) => E.includes(e))), N = x(() => ({
40
+ "padding-left": r.left ? `${r.left}px` : "",
41
+ "padding-right": r.right ? `${r.right}px` : "",
42
+ "padding-top": r.top ? `${r.top}px` : "",
43
+ "padding-bottom": r.bottom ? `${r.bottom}px` : ""
44
+ })), U = x(() => ({
45
+ ...typeof $.value == "number" ? { width: `${$.value}px` } : {},
46
+ ...typeof L.value == "number" ? { height: `${L.value}px` } : {},
47
+ ...N.value
48
+ })), s = w({
49
+ moving: !1,
50
+ direction: O,
51
+ startPageX: 0,
52
+ startPageY: 0,
53
+ startWidth: 0,
54
+ startHeight: 0
55
+ });
56
+ function M() {
57
+ window.removeEventListener("mousemove", B), window.removeEventListener("mouseup", h), window.removeEventListener("contextmenu", h);
58
+ }
59
+ function B(e) {
60
+ if (!s.moving)
61
+ return;
62
+ const { startPageX: o, startPageY: t, startWidth: n, startHeight: i, direction: g } = s;
63
+ let a = n, c = i;
64
+ const u = e.pageX - o, C = e.pageY - t;
65
+ switch (g) {
66
+ case ae:
67
+ a = n - u, P(a), l("update:width", a);
68
+ break;
69
+ case O:
70
+ a = n + u, P(a), l("update:width", a);
71
+ break;
72
+ case A:
73
+ c = i - C, S(c), l("update:height", c);
74
+ break;
75
+ case F:
76
+ c = i + C, S(c), l("update:height", c);
77
+ break;
78
+ }
79
+ l(
80
+ "moving",
81
+ {
82
+ width: a,
83
+ height: c
84
+ },
85
+ e
86
+ );
87
+ }
88
+ function h(e) {
89
+ s.moving && (s.moving = !1, M(), document.body.style.cursor = "default", l("movingEnd", e));
90
+ }
91
+ function V(e, o) {
92
+ var i, g;
93
+ o.preventDefault(), l("movingStart", o), s.moving = !0, s.startPageX = o.pageX, s.startPageY = o.pageY, s.direction = e;
94
+ const t = r.left + r.right, n = r.top + r.bottom;
95
+ s.startWidth = k(((i = v.value) == null ? void 0 : i.clientWidth) || 0, t), s.startHeight = k(((g = v.value) == null ? void 0 : g.clientHeight) || 0, n), window.addEventListener("mousemove", B), window.addEventListener("mouseup", h), window.addEventListener("contextmenu", h), document.body.style.cursor = d(e) ? "row-resize" : "col-resize";
96
+ }
97
+ function X(e, o) {
98
+ r[e] = Math.max(o, 0);
99
+ }
100
+ function j(e, o) {
101
+ const { width: t, height: n } = o.contentRect, i = d(e) ? n : t;
102
+ X(e, i);
103
+ }
104
+ function q(e, o) {
105
+ H[e] = o instanceof HTMLElement ? o : null;
106
+ }
107
+ return K(
108
+ b,
109
+ (e) => {
110
+ const o = new Set(e);
111
+ for (const t of E)
112
+ o.has(t) || (r[t] = 0);
113
+ },
114
+ { immediate: !0 }
115
+ ), Q((e) => {
116
+ const o = b.value, t = [];
117
+ for (const n of o) {
118
+ const i = H[n];
119
+ if (!i)
120
+ continue;
121
+ const g = i.getBoundingClientRect();
122
+ if (X(n, d(n) ? g.height : g.width), typeof ResizeObserver > "u")
123
+ continue;
124
+ const a = new ResizeObserver((c) => {
125
+ const [u] = c;
126
+ u && j(n, u);
127
+ });
128
+ a.observe(i), t.push(a);
129
+ }
130
+ e(() => {
131
+ for (const n of t)
132
+ n.disconnect();
133
+ });
134
+ }), Z(() => {
135
+ M(), document.body.style.cursor = "default";
136
+ }), (e, o) => (f(), ee(te(R.component), oe({
137
+ ref_key: "wrapperRef",
138
+ ref: v,
139
+ class: "x-resize-box"
140
+ }, e.$attrs, { style: U.value }), {
141
+ default: ne(() => [
142
+ z(e.$slots, "default"),
143
+ (f(!0), m(Y, null, D(b.value, (t) => (f(), m("div", {
144
+ key: t,
145
+ ref_for: !0,
146
+ ref: (n) => q(t, n),
147
+ class: _(["x-resize-box__direction", `x-resize-box__direction--${t}`]),
148
+ onMousedown: re((n) => V(t, n), ["stop"])
149
+ }, [
150
+ e.$slots["resize-trigger"] ? z(e.$slots, "resize-trigger", {
151
+ key: 0,
152
+ direction: t
153
+ }) : (f(), m("div", {
154
+ key: 1,
155
+ class: _(["x-resize-box__trigger", {
156
+ "x-resize-box__trigger--horizontal": d(t),
157
+ "x-resize-box__trigger--vertical": !d(t)
158
+ }])
159
+ }, [
160
+ y("div", se, [
161
+ z(e.$slots, "resize-trigger-icon", { direction: t }, () => [
162
+ y("span", {
163
+ class: _(["x-resize-box__trigger-icon", {
164
+ "x-resize-box__trigger-icon--horizontal": d(t),
165
+ "x-resize-box__trigger-icon--vertical": !d(t)
166
+ }])
167
+ }, [
168
+ (f(), m(Y, null, D(6, (n) => y("span", {
169
+ key: n,
170
+ class: "x-resize-box__trigger-dot"
171
+ })), 64))
172
+ ], 2)
173
+ ])
174
+ ])
175
+ ], 2))
176
+ ], 42, ie))), 128))
177
+ ]),
178
+ _: 3
179
+ }, 16, ["style"]));
180
+ }
181
+ });
182
+ export {
183
+ de as default
184
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XResizeBox.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,78 @@
1
+ import { defineComponent as _, computed as c, openBlock as e, createElementBlock as l, createElementVNode as v, normalizeClass as w, renderSlot as o, createCommentVNode as a, createTextVNode as d, toDisplayString as C } from "vue";
2
+ import p from "./result-assets/result-403.svg.js";
3
+ import f from "./result-assets/result-404.svg.js";
4
+ import S from "./result-assets/result-500.svg.js";
5
+ const x = { class: "x-result" }, M = { class: "x-result__icon-tip" }, k = ["src"], z = ["innerHTML"], b = {
6
+ key: 0,
7
+ class: "x-result__title"
8
+ }, L = {
9
+ key: 1,
10
+ class: "x-result__subtitle"
11
+ }, $ = {
12
+ key: 2,
13
+ class: "x-result__extra"
14
+ }, y = {
15
+ key: 3,
16
+ class: "x-result__content"
17
+ }, E = /* @__PURE__ */ _({
18
+ __name: "XResult",
19
+ props: {
20
+ status: { default: "info" },
21
+ title: {},
22
+ subtitle: {}
23
+ },
24
+ setup(r) {
25
+ const i = r, h = {
26
+ info: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="info"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M512 672.5c-17.7 0-32-14.3-32-32v-416c0-17.7 14.3-32 32-32s32 14.3 32 32v416c0 17.7-14.3 32-32 32zM512 801c-17.7 0-32-14.3-32-32v-1c0-17.7 14.3-32 32-32s32 14.3 32 32v1c0 17.7-14.3 32-32 32z"></path></svg>',
27
+ success: '<svg role="img" aria-label="success" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8.00016 14C11.3139 14 14.0002 11.3137 14.0002 8.00004C14.0002 4.68633 11.3139 2.00004 8.00016 2.00004C4.68646 2.00004 2.00016 4.68633 2.00016 8.00004C2.00016 11.3137 4.68645 14 8.00016 14ZM15.3335 8.00004C15.3335 12.0501 12.0503 15.3334 8.00016 15.3334C3.95008 15.3334 0.66683 12.0501 0.666831 8.00004C0.666831 3.94995 3.95008 0.666707 8.00016 0.666707C12.0503 0.666708 15.3335 3.94995 15.3335 8.00004ZM7.3335 10.6095L4.72402 8.00004L5.66683 7.05723L7.3335 8.7239L10.6668 5.39057L11.6096 6.33337L7.3335 10.6095Z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" fill-opacity="0.9"></path></svg>',
28
+ warning: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="warning"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M512 672.5c-17.7 0-32-14.3-32-32v-416c0-17.7 14.3-32 32-32s32 14.3 32 32v416c0 17.7-14.3 32-32 32zM512 801c-17.7 0-32-14.3-32-32v-1c0-17.7 14.3-32 32-32s32 14.3 32 32v1c0 17.7-14.3 32-32 32z"></path></svg>',
29
+ error: '<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" aria-label="error"><path stroke-width="4" fill="currentColor" d="M512 0C229.2 0 0 229.2 0 512s229.2 512 512 512 512-229.2 512-512S794.8 0 512 0z m316.8 828.8c-41.2 41.2-89.1 73.5-142.4 96C631.2 948.2 572.5 960 512 960s-119.2-11.8-174.4-35.2c-53.3-22.6-101.3-54.9-142.4-96-41.2-41.2-73.5-89.1-96-142.4C75.8 631.2 64 572.5 64 512s11.8-119.2 35.2-174.4c22.6-53.3 54.9-101.3 96-142.4 41.2-41.2 89.1-73.5 142.4-96C392.8 75.8 451.5 64 512 64s119.2 11.8 174.4 35.2c53.3 22.6 101.3 54.9 142.4 96 41.2 41.2 73.5 89.1 96 142.4C948.2 392.8 960 451.5 960 512s-11.8 119.2-35.2 174.4c-22.5 53.3-54.8 101.2-96 142.4z"></path><path stroke-width="4" fill="currentColor" d="M562.9 517.7l145.1 145c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-145-145.1c-3.1-3.1-8.2-3.1-11.3 0L361.3 708c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l145.1-145.1c3.1-3.1 3.1-8.2 0-11.3L316 361.3c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l145.1 145.1c3.1 3.1 8.2 3.1 11.3 0l145-145.1c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-145.1 145a8.15 8.15 0 0 0 0 11.4z"></path></svg>'
30
+ }, g = {
31
+ 403: p,
32
+ 404: f,
33
+ 500: S
34
+ }, t = c(() => i.status === void 0 ? "info" : i.status), m = c(
35
+ () => t.value === null ? "x-result__icon--custom" : `x-result__icon--${t.value}`
36
+ ), u = c(() => t.value === "403" || t.value === "404" || t.value === "500" ? g[t.value] : ""), n = c(() => t.value === "info" || t.value === "success" || t.value === "warning" || t.value === "error" ? h[t.value] : "");
37
+ return (s, T) => (e(), l("section", x, [
38
+ v("div", {
39
+ class: w(["x-result__icon", m.value])
40
+ }, [
41
+ v("div", M, [
42
+ o(s.$slots, "icon", {}, () => [
43
+ u.value ? (e(), l("img", {
44
+ key: 0,
45
+ class: "x-result__status-image",
46
+ src: u.value,
47
+ alt: ""
48
+ }, null, 8, k)) : n.value ? (e(), l("span", {
49
+ key: 1,
50
+ class: "x-result__status-svg",
51
+ "aria-hidden": "true",
52
+ innerHTML: n.value
53
+ }, null, 8, z)) : a("", !0)
54
+ ])
55
+ ])
56
+ ], 2),
57
+ r.title || s.$slots.title ? (e(), l("div", b, [
58
+ o(s.$slots, "title", {}, () => [
59
+ d(C(r.title), 1)
60
+ ])
61
+ ])) : a("", !0),
62
+ r.subtitle || s.$slots.subtitle ? (e(), l("div", L, [
63
+ o(s.$slots, "subtitle", {}, () => [
64
+ d(C(r.subtitle), 1)
65
+ ])
66
+ ])) : a("", !0),
67
+ s.$slots.extra ? (e(), l("div", $, [
68
+ o(s.$slots, "extra")
69
+ ])) : a("", !0),
70
+ s.$slots.default ? (e(), l("div", y, [
71
+ o(s.$slots, "default")
72
+ ])) : a("", !0)
73
+ ]));
74
+ }
75
+ });
76
+ export {
77
+ E as default
78
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./XResult.vue.js";
2
+ export {
3
+ f as default
4
+ };