@rhino-design/vue 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  3. package/dist/_virtual/alignment-pattern.js +4 -0
  4. package/dist/_virtual/browser.js +4 -0
  5. package/dist/_virtual/canvas.js +4 -0
  6. package/dist/_virtual/dijkstra.js +4 -0
  7. package/dist/_virtual/error-correction-code.js +4 -0
  8. package/dist/_virtual/error-correction-level.js +4 -0
  9. package/dist/_virtual/finder-pattern.js +4 -0
  10. package/dist/_virtual/format-info.js +4 -0
  11. package/dist/_virtual/galois-field.js +4 -0
  12. package/dist/_virtual/mask-pattern.js +4 -0
  13. package/dist/_virtual/mode.js +4 -0
  14. package/dist/_virtual/polynomial.js +4 -0
  15. package/dist/_virtual/qrcode.js +4 -0
  16. package/dist/_virtual/regex.js +4 -0
  17. package/dist/_virtual/segments.js +4 -0
  18. package/dist/_virtual/svg-tag.js +4 -0
  19. package/dist/_virtual/utils.js +4 -0
  20. package/dist/_virtual/utils2.js +4 -0
  21. package/dist/_virtual/version-check.js +4 -0
  22. package/dist/_virtual/version.js +4 -0
  23. package/dist/arco.less +14834 -0
  24. package/dist/components/XAffix.vue.js +7 -0
  25. package/dist/components/XAffix.vue2.js +181 -0
  26. package/dist/components/XAlert.vue.js +106 -0
  27. package/dist/components/XAlert.vue2.js +4 -0
  28. package/dist/components/XAnchor.vue.js +9 -0
  29. package/dist/components/XAnchor.vue2.js +204 -0
  30. package/dist/components/XAnchorLink.vue.js +7 -0
  31. package/dist/components/XAnchorLink.vue2.js +44 -0
  32. package/dist/components/XApp.vue.js +12 -0
  33. package/dist/components/XAutoComplete.vue.js +399 -0
  34. package/dist/components/XAutoComplete.vue2.js +4 -0
  35. package/dist/components/XAvatar.vue.js +166 -0
  36. package/dist/components/XAvatar.vue2.js +4 -0
  37. package/dist/components/XAvatarGroup.vue.js +27 -0
  38. package/dist/components/XAvatarGroup.vue2.js +4 -0
  39. package/dist/components/XBackTop.vue.js +118 -0
  40. package/dist/components/XBackTop.vue2.js +4 -0
  41. package/dist/components/XBadge.vue.js +64 -0
  42. package/dist/components/XBadge.vue2.js +4 -0
  43. package/dist/components/XBaseMenu.vue.js +37 -0
  44. package/dist/components/XBaseMenu.vue2.js +334 -0
  45. package/dist/components/XBreadcrumb.vue.d.ts +12 -7
  46. package/dist/components/XBreadcrumb.vue.js +97 -0
  47. package/dist/components/XBreadcrumb.vue2.js +4 -0
  48. package/dist/components/XBreadcrumbItem.vue.d.ts +7 -4
  49. package/dist/components/XBreadcrumbItem.vue.js +136 -0
  50. package/dist/components/XBreadcrumbItem.vue2.js +4 -0
  51. package/dist/components/XButton.vue.js +7 -0
  52. package/dist/components/XButton.vue2.js +142 -0
  53. package/dist/components/XButtonG.vue.js +7 -0
  54. package/dist/components/XButtonG.vue2.js +67 -0
  55. package/dist/components/XButtonGroup.vue.js +39 -0
  56. package/dist/components/XButtonGroup.vue3.js +5 -0
  57. package/dist/components/XCalendar.vue.js +309 -0
  58. package/dist/components/XCalendar.vue2.js +4 -0
  59. package/dist/components/XCard.vue.js +80 -0
  60. package/dist/components/XCard.vue2.js +4 -0
  61. package/dist/components/XCarousel.vue.js +7 -0
  62. package/dist/components/XCarousel.vue2.js +150 -0
  63. package/dist/components/XCarouselItem.vue.js +7 -0
  64. package/dist/components/XCarouselItem.vue2.js +112 -0
  65. package/dist/components/XCascader.vue.js +1015 -0
  66. package/dist/components/XCascader.vue2.js +4 -0
  67. package/dist/components/XCascaderPanel.vue.js +466 -0
  68. package/dist/components/XCascaderPanel.vue2.js +4 -0
  69. package/dist/components/XChatInput.vue.js +7 -0
  70. package/dist/components/XChatInput.vue2.js +454 -0
  71. package/dist/components/XCheckbox.vue.js +154 -0
  72. package/dist/components/XCheckbox.vue2.js +4 -0
  73. package/dist/components/XCheckboxGroup.vue.js +87 -0
  74. package/dist/components/XCheckboxGroup.vue2.js +4 -0
  75. package/dist/components/XCollapse.vue.js +54 -0
  76. package/dist/components/XCollapse.vue2.js +4 -0
  77. package/dist/components/XCollapseItem.vue.js +152 -0
  78. package/dist/components/XCollapseItem.vue2.js +4 -0
  79. package/dist/components/XColorGroup.vue.js +7 -0
  80. package/dist/components/XColorGroup.vue2.js +306 -0
  81. package/dist/components/XColorPicker.vue.js +62 -0
  82. package/dist/components/XColorPicker.vue2.js +4 -0
  83. package/dist/components/XComment.vue.js +129 -0
  84. package/dist/components/XComment.vue2.js +4 -0
  85. package/dist/components/XCompact.vue.js +17 -0
  86. package/dist/components/XCompact.vue2.js +4 -0
  87. package/dist/components/XConfigProvider.vue.js +78 -0
  88. package/dist/components/XConfigProvider.vue2.js +4 -0
  89. package/dist/components/XCountdown.vue.js +7 -0
  90. package/dist/components/XCountdown.vue2.js +104 -0
  91. package/dist/components/XCropper.vue.js +7 -0
  92. package/dist/components/XCropper.vue2.js +525 -0
  93. package/dist/components/XDatePicker.vue.js +1798 -0
  94. package/dist/components/XDatePicker.vue2.js +4 -0
  95. package/dist/components/XDescriptions.vue.js +260 -0
  96. package/dist/components/XDescriptions.vue2.js +4 -0
  97. package/dist/components/XDescriptionsItem.vue.js +21 -0
  98. package/dist/components/XDescriptionsItem.vue2.js +4 -0
  99. package/dist/components/XDgroup.vue.js +21 -0
  100. package/dist/components/XDgroup.vue2.js +4 -0
  101. package/dist/components/XDivider.vue.js +54 -0
  102. package/dist/components/XDivider.vue2.js +4 -0
  103. package/dist/components/XDoption.vue.js +59 -0
  104. package/dist/components/XDoption.vue2.js +4 -0
  105. package/dist/components/XDrawer.vue.js +7 -0
  106. package/dist/components/XDrawer.vue2.js +320 -0
  107. package/dist/components/XDrawerService.d.ts +2 -0
  108. package/dist/components/XDrawerService.js +97 -0
  109. package/dist/components/XDropdown.vue.d.ts +8 -7
  110. package/dist/components/XDropdown.vue.js +127 -0
  111. package/dist/components/XDropdown.vue2.js +4 -0
  112. package/dist/components/XDropdownButton.vue.js +84 -0
  113. package/dist/components/XDropdownButton.vue2.js +4 -0
  114. package/dist/components/XDropdownItem.vue.js +47 -0
  115. package/dist/components/XDropdownItem.vue2.js +4 -0
  116. package/dist/components/XDropdownPanel.vue.js +58 -0
  117. package/dist/components/XDropdownPanel.vue2.js +4 -0
  118. package/dist/components/XDsubmenu.vue.js +82 -0
  119. package/dist/components/XDsubmenu.vue2.js +4 -0
  120. package/dist/components/XEmpty.vue.js +54 -0
  121. package/dist/components/XEmpty.vue2.js +4 -0
  122. package/dist/components/XFlex.vue.js +7 -0
  123. package/dist/components/XFlex.vue2.js +122 -0
  124. package/dist/components/XFloatButton.vue.js +28 -0
  125. package/dist/components/XFloatButton.vue2.js +4 -0
  126. package/dist/components/XFloatButtonGroup.vue.js +17 -0
  127. package/dist/components/XFloatButtonGroup.vue2.js +4 -0
  128. package/dist/components/XForm.vue.js +156 -0
  129. package/dist/components/XForm.vue2.js +4 -0
  130. package/dist/components/XFormItem.vue.js +425 -0
  131. package/dist/components/XFormItem.vue2.js +4 -0
  132. package/dist/components/XGrid.vue.js +7 -0
  133. package/dist/components/XGrid.vue2.js +88 -0
  134. package/dist/components/XGridItem.vue.js +8 -0
  135. package/dist/components/XGridItem.vue2.js +112 -0
  136. package/dist/components/XGridLayout.vue.js +7 -0
  137. package/dist/components/XGridLayout.vue2.js +66 -0
  138. package/dist/components/XGridLayoutItem.vue.js +7 -0
  139. package/dist/components/XGridLayoutItem.vue2.js +56 -0
  140. package/dist/components/XIcon.js +5 -0
  141. package/dist/components/XIconLite.js +8 -0
  142. package/dist/components/XImage.vue.js +7 -0
  143. package/dist/components/XImage.vue2.js +241 -0
  144. package/dist/components/XImageGroup.vue.js +7 -0
  145. package/dist/components/XImageGroup.vue2.js +22 -0
  146. package/dist/components/XInput.vue.js +7 -0
  147. package/dist/components/XInput.vue2.js +537 -0
  148. package/dist/components/XInputComposite.vue.js +7 -0
  149. package/dist/components/XInputComposite.vue2.js +176 -0
  150. package/dist/components/XInputGroup.vue.js +19 -0
  151. package/dist/components/XInputGroup.vue3.js +5 -0
  152. package/dist/components/XInputNumber.vue.js +7 -0
  153. package/dist/components/XInputNumber.vue2.js +344 -0
  154. package/dist/components/XInputPassword.vue.js +7 -0
  155. package/dist/components/XInputPassword.vue2.js +125 -0
  156. package/dist/components/XInputSearch.vue.js +7 -0
  157. package/dist/components/XInputSearch.vue2.js +154 -0
  158. package/dist/components/XInputTag.vue.js +367 -0
  159. package/dist/components/XInputTag.vue2.js +4 -0
  160. package/dist/components/XLayout.vue.js +22 -0
  161. package/dist/components/XLayout.vue2.js +4 -0
  162. package/dist/components/XLayoutContent.vue.js +13 -0
  163. package/dist/components/XLayoutContent.vue2.js +4 -0
  164. package/dist/components/XLayoutFooter.vue.js +22 -0
  165. package/dist/components/XLayoutFooter.vue2.js +4 -0
  166. package/dist/components/XLayoutHeader.vue.js +128 -0
  167. package/dist/components/XLayoutHeader.vue2.js +4 -0
  168. package/dist/components/XLayoutSider.vue.js +108 -0
  169. package/dist/components/XLayoutSider.vue2.js +4 -0
  170. package/dist/components/XLink.vue.js +21 -0
  171. package/dist/components/XLink.vue2.js +4 -0
  172. package/dist/components/XList.vue.js +295 -0
  173. package/dist/components/XList.vue2.js +4 -0
  174. package/dist/components/XListItem.vue.js +53 -0
  175. package/dist/components/XListItem.vue2.js +4 -0
  176. package/dist/components/XListItemMeta.vue.js +43 -0
  177. package/dist/components/XListItemMeta.vue2.js +4 -0
  178. package/dist/components/XMention.vue.js +456 -0
  179. package/dist/components/XMention.vue2.js +4 -0
  180. package/dist/components/XMentions.vue.js +16 -0
  181. package/dist/components/XMentions.vue2.js +4 -0
  182. package/dist/components/XMenu.vue.js +57 -0
  183. package/dist/components/XMenu.vue2.js +123 -0
  184. package/dist/components/XMenuIndent.vue.js +19 -0
  185. package/dist/components/XMenuIndent.vue2.js +21 -0
  186. package/dist/components/XMenuItem.vue.js +71 -0
  187. package/dist/components/XMenuItem.vue2.js +92 -0
  188. package/dist/components/XMenuItemGroup.vue.js +27 -0
  189. package/dist/components/XMenuItemGroup.vue2.js +26 -0
  190. package/dist/components/XMenuOverflowWrap.vue.js +116 -0
  191. package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
  192. package/dist/components/XMessage.vue.js +7 -0
  193. package/dist/components/XMessage.vue2.js +89 -0
  194. package/dist/components/XMessageList.js +61 -0
  195. package/dist/components/XMessageService.js +118 -0
  196. package/dist/components/XModal.vue.js +7 -0
  197. package/dist/components/XModal.vue2.js +364 -0
  198. package/dist/components/XModalService.js +157 -0
  199. package/dist/components/XNotification.vue.js +7 -0
  200. package/dist/components/XNotification.vue2.js +107 -0
  201. package/dist/components/XNotificationList.js +70 -0
  202. package/dist/components/XNotificationService.js +119 -0
  203. package/dist/components/XOptgroup.vue.js +14 -0
  204. package/dist/components/XOptgroup.vue2.js +4 -0
  205. package/dist/components/XOption.vue.js +21 -0
  206. package/dist/components/XOption.vue2.js +4 -0
  207. package/dist/components/XOverflowList.vue.js +149 -0
  208. package/dist/components/XOverflowList.vue2.js +4 -0
  209. package/dist/components/XPageHeader.vue.js +84 -0
  210. package/dist/components/XPageHeader.vue2.js +4 -0
  211. package/dist/components/XPagination.vue.js +121 -0
  212. package/dist/components/XPagination.vue2.js +4 -0
  213. package/dist/components/XPopconfirm.vue.js +90 -0
  214. package/dist/components/XPopconfirm.vue2.js +4 -0
  215. package/dist/components/XPopover.vue.js +53 -0
  216. package/dist/components/XPopover.vue2.js +4 -0
  217. package/dist/components/XProgress.vue.js +263 -0
  218. package/dist/components/XProgress.vue2.js +4 -0
  219. package/dist/components/XQRCode.vue.js +141 -0
  220. package/dist/components/XQRCode.vue2.js +4 -0
  221. package/dist/components/XRadio.vue.js +138 -0
  222. package/dist/components/XRadio.vue2.js +4 -0
  223. package/dist/components/XRadioButton.vue.js +41 -0
  224. package/dist/components/XRadioButton.vue2.js +4 -0
  225. package/dist/components/XRadioGroup.vue.js +168 -0
  226. package/dist/components/XRadioGroup.vue2.js +4 -0
  227. package/dist/components/XRate.vue.js +145 -0
  228. package/dist/components/XRate.vue2.js +4 -0
  229. package/dist/components/XResizeBox.vue.js +184 -0
  230. package/dist/components/XResizeBox.vue2.js +4 -0
  231. package/dist/components/XResult.vue.js +78 -0
  232. package/dist/components/XResult.vue2.js +4 -0
  233. package/dist/components/XRichTextEditor.vue.js +7 -0
  234. package/dist/components/XRichTextEditor.vue2.js +742 -0
  235. package/dist/components/XScrollbar.vue.d.ts +192 -0
  236. package/dist/components/XScrollbar.vue.js +190 -0
  237. package/dist/components/XScrollbar.vue2.js +4 -0
  238. package/dist/components/XScrollbarThumb.vue.d.ts +2 -6
  239. package/dist/components/XScrollbarThumb.vue.js +97 -0
  240. package/dist/components/XScrollbarThumb.vue2.js +4 -0
  241. package/dist/components/XSegmented.vue.js +7 -0
  242. package/dist/components/XSegmented.vue2.js +71 -0
  243. package/dist/components/XSelect.vue.js +858 -0
  244. package/dist/components/XSelect.vue2.js +4 -0
  245. package/dist/components/XSkeleton.vue.js +37 -0
  246. package/dist/components/XSkeleton.vue2.js +59 -0
  247. package/dist/components/XSkeletonLine.vue.js +36 -0
  248. package/dist/components/XSkeletonLine.vue2.js +4 -0
  249. package/dist/components/XSkeletonShape.vue.js +21 -0
  250. package/dist/components/XSkeletonShape.vue2.js +4 -0
  251. package/dist/components/XSlider.vue.js +402 -0
  252. package/dist/components/XSlider.vue2.js +4 -0
  253. package/dist/components/XSpace.vue.js +125 -0
  254. package/dist/components/XSpace.vue2.js +4 -0
  255. package/dist/components/XSpin.vue.js +54 -0
  256. package/dist/components/XSpin.vue2.js +4 -0
  257. package/dist/components/XSplit.vue.js +7 -0
  258. package/dist/components/XSplit.vue2.js +126 -0
  259. package/dist/components/XStatistic.vue.js +7 -0
  260. package/dist/components/XStatistic.vue2.js +176 -0
  261. package/dist/components/XStep.vue.js +91 -0
  262. package/dist/components/XStep.vue2.js +4 -0
  263. package/dist/components/XSteps.vue.js +73 -0
  264. package/dist/components/XSteps.vue2.js +4 -0
  265. package/dist/components/XSubMenu.vue.js +109 -0
  266. package/dist/components/XSubMenu.vue2.js +69 -0
  267. package/dist/components/XSubMenuInline.vue.js +74 -0
  268. package/dist/components/XSubMenuInline.vue2.js +56 -0
  269. package/dist/components/XSubMenuPop.vue.js +91 -0
  270. package/dist/components/XSubMenuPop.vue2.js +113 -0
  271. package/dist/components/XSwitch.vue.js +133 -0
  272. package/dist/components/XSwitch.vue2.js +4 -0
  273. package/dist/components/XTabPane.vue.js +59 -0
  274. package/dist/components/XTabPane.vue2.js +4 -0
  275. package/dist/components/XTable.vue.js +7 -0
  276. package/dist/components/XTable.vue2.js +1059 -0
  277. package/dist/components/XTableFilter.vue.js +7 -0
  278. package/dist/components/XTableFilter.vue2.js +141 -0
  279. package/dist/components/XTabs.vue.js +402 -0
  280. package/dist/components/XTabs.vue2.js +4 -0
  281. package/dist/components/XTag.vue.js +126 -0
  282. package/dist/components/XTag.vue2.js +4 -0
  283. package/dist/components/XTextarea.vue.js +261 -0
  284. package/dist/components/XTextarea.vue2.js +4 -0
  285. package/dist/components/XTimePicker.vue.js +827 -0
  286. package/dist/components/XTimePicker.vue2.js +4 -0
  287. package/dist/components/XTimeline.vue.js +84 -0
  288. package/dist/components/XTimeline.vue2.js +4 -0
  289. package/dist/components/XTimelineItem.vue.js +202 -0
  290. package/dist/components/XTimelineItem.vue2.js +4 -0
  291. package/dist/components/XTooltip.vue.js +78 -0
  292. package/dist/components/XTooltip.vue2.js +4 -0
  293. package/dist/components/XTour.vue.js +120 -0
  294. package/dist/components/XTour.vue2.js +4 -0
  295. package/dist/components/XTr.vue.js +12 -0
  296. package/dist/components/XTransfer.vue.js +128 -0
  297. package/dist/components/XTransfer.vue2.js +4 -0
  298. package/dist/components/XTree.vue.js +7 -0
  299. package/dist/components/XTree.vue2.js +601 -0
  300. package/dist/components/XTreeNode.vue.js +7 -0
  301. package/dist/components/XTreeNode.vue2.js +314 -0
  302. package/dist/components/XTreeSelect.vue.js +7 -0
  303. package/dist/components/XTreeSelect.vue2.js +715 -0
  304. package/dist/components/XTrigger.vue.js +492 -0
  305. package/dist/components/XTrigger.vue2.js +4 -0
  306. package/dist/components/XTypography.vue.js +51 -0
  307. package/dist/components/XTypography.vue2.js +126 -0
  308. package/dist/components/XTypographyParagraph.vue.js +83 -0
  309. package/dist/components/XTypographyParagraph.vue2.js +4 -0
  310. package/dist/components/XTypographyText.vue.js +76 -0
  311. package/dist/components/XTypographyText.vue2.js +4 -0
  312. package/dist/components/XTypographyTitle.vue.js +77 -0
  313. package/dist/components/XTypographyTitle.vue2.js +4 -0
  314. package/dist/components/XUpload.vue.js +7 -0
  315. package/dist/components/XUpload.vue2.js +1060 -0
  316. package/dist/components/XVerificationCode.vue.js +149 -0
  317. package/dist/components/XVerificationCode.vue2.js +4 -0
  318. package/dist/components/XWatermark.vue.js +204 -0
  319. package/dist/components/XWatermark.vue2.js +4 -0
  320. package/dist/components/index.d.ts +10 -6
  321. package/dist/components/index.js +308 -0
  322. package/dist/components/result-assets/result-403.svg.js +4 -0
  323. package/dist/components/result-assets/result-404.svg.js +4 -0
  324. package/dist/components/result-assets/result-500.svg.js +4 -0
  325. package/dist/components/statistic-utils.js +81 -0
  326. package/dist/components/timelineContext.js +4 -0
  327. package/dist/components/x-breadcrumb-context.js +4 -0
  328. package/dist/components/x-checkbox-context.js +4 -0
  329. package/dist/components/x-dropdown-context.js +4 -0
  330. package/dist/components/x-icon-shared.js +151 -0
  331. package/dist/components/x-radio-context.js +4 -0
  332. package/dist/components/x-scrollbar-types.d.ts +5 -0
  333. package/dist/composables/collapse.js +9 -0
  334. package/dist/composables/config-provider.js +48 -0
  335. package/dist/composables/config.js +39 -0
  336. package/dist/composables/form.js +397 -0
  337. package/dist/composables/i18n.js +257 -0
  338. package/dist/composables/menu-context.js +6 -0
  339. package/dist/composables/menu-hooks/use-level.js +25 -0
  340. package/dist/composables/menu-hooks/use-menu-context.js +8 -0
  341. package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
  342. package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
  343. package/dist/composables/menu-hooks/use-menu.js +19 -0
  344. package/dist/composables/popup.js +177 -0
  345. package/dist/composables/scrollbar-visibility.js +96 -0
  346. package/dist/composables/steps.js +9 -0
  347. package/dist/composables/tabs.js +10 -0
  348. package/dist/composables/theme-context.js +24 -0
  349. package/dist/composables/theme.js +53 -0
  350. package/dist/composables/useMergeState.js +27 -0
  351. package/dist/composables/useResponsive.js +36 -0
  352. package/dist/iconfont/generated/icons/guanbi.js +7 -0
  353. package/dist/iconfont/generated/icons/shijian.js +7 -0
  354. package/dist/iconfont/internal-icons.js +71 -0
  355. package/dist/index.cjs +1 -2
  356. package/dist/index.css +14834 -0
  357. package/dist/index.js +382 -31255
  358. package/dist/index.less +14834 -0
  359. package/dist/install.js +39 -0
  360. package/dist/locales/ar-EG.js +5 -0
  361. package/dist/locales/da-DK.js +5 -0
  362. package/dist/locales/de-DE.js +5 -0
  363. package/dist/locales/en-US.js +312 -0
  364. package/dist/locales/es-ES.js +5 -0
  365. package/dist/locales/fr-FR.js +5 -0
  366. package/dist/locales/id-ID.js +5 -0
  367. package/dist/locales/it-IT.js +5 -0
  368. package/dist/locales/ja-JP.js +5 -0
  369. package/dist/locales/km-KH.js +5 -0
  370. package/dist/locales/ko-KR.js +5 -0
  371. package/dist/locales/ms-MY.js +5 -0
  372. package/dist/locales/nl-NL.js +5 -0
  373. package/dist/locales/pt-PT.js +5 -0
  374. package/dist/locales/ru-RU.js +5 -0
  375. package/dist/locales/th-TH.js +5 -0
  376. package/dist/locales/vi-VN.js +5 -0
  377. package/dist/locales/zh-CN.js +312 -0
  378. package/dist/locales/zh-TW.js +5 -0
  379. package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
  380. package/dist/node_modules/qrcode/lib/browser.js +45 -0
  381. package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
  382. package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
  383. package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
  384. package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
  385. package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
  386. package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
  387. package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
  388. package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
  389. package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
  390. package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
  391. package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
  392. package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
  393. package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
  394. package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
  395. package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
  396. package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
  397. package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
  398. package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
  399. package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
  400. package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
  401. package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
  402. package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
  403. package/dist/node_modules/qrcode/lib/core/version.js +74 -0
  404. package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
  405. package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
  406. package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
  407. package/dist/style.css +14834 -1
  408. package/dist/style.less +14834 -0
  409. package/package.json +12 -4
  410. package/dist/components/XRangePicker.vue.d.ts +0 -45
  411. package/dist/components/__tests__/XAffix.test.d.ts +0 -1
  412. package/dist/components/__tests__/XAutoComplete.test.d.ts +0 -1
  413. package/dist/components/__tests__/XBackTop.test.d.ts +0 -1
  414. package/dist/components/__tests__/XBreadcrumb.test.d.ts +0 -1
  415. package/dist/components/__tests__/XButton.test.d.ts +0 -1
  416. package/dist/components/__tests__/XCard.test.d.ts +0 -1
  417. package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
  418. package/dist/components/__tests__/XCascader.test.d.ts +0 -1
  419. package/dist/components/__tests__/XCheckbox.test.d.ts +0 -1
  420. package/dist/components/__tests__/XCollapse.test.d.ts +0 -1
  421. package/dist/components/__tests__/XComplexTriggerTheme.test.d.ts +0 -1
  422. package/dist/components/__tests__/XCropper.test.d.ts +0 -1
  423. package/dist/components/__tests__/XDropdown.test.d.ts +0 -1
  424. package/dist/components/__tests__/XImage.test.d.ts +0 -1
  425. package/dist/components/__tests__/XMention.test.d.ts +0 -1
  426. package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
  427. package/dist/components/__tests__/XOverflowList.test.d.ts +0 -1
  428. package/dist/components/__tests__/XOverlayServiceTheme.test.d.ts +0 -1
  429. package/dist/components/__tests__/XPageHeader.test.d.ts +0 -1
  430. package/dist/components/__tests__/XRadioGroup.test.d.ts +0 -1
  431. package/dist/components/__tests__/XResizeBox.test.d.ts +0 -1
  432. package/dist/components/__tests__/XSkeleton.test.d.ts +0 -1
  433. package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
  434. package/dist/components/__tests__/XSteps.test.d.ts +0 -1
  435. package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
  436. package/dist/components/__tests__/XTable.test.d.ts +0 -1
  437. package/dist/components/__tests__/XTabs.test.d.ts +0 -1
  438. package/dist/components/__tests__/XTag.test.d.ts +0 -1
  439. package/dist/components/__tests__/XThemeAttrAllComponentsSmoke.test.d.ts +0 -1
  440. package/dist/components/__tests__/XThemeAttrsForwarding.test.d.ts +0 -1
  441. package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
  442. package/dist/components/__tests__/XTour.test.d.ts +0 -1
  443. package/dist/components/__tests__/XTree.test.d.ts +0 -1
  444. package/dist/components/__tests__/XTreeSelect.test.d.ts +0 -1
  445. package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
  446. package/dist/components/__tests__/XTriggerWrappersTheme.test.d.ts +0 -1
  447. package/dist/components/__tests__/XWatermark.test.d.ts +0 -1
  448. package/dist/favicon.ico +0 -1
  449. package/dist/favicon.svg +0 -5
  450. package/dist/images/carousel-0.png +0 -0
  451. package/dist/images/carousel-2.png +0 -0
  452. package/dist/images/carousel-3.png +0 -0
  453. package/dist/images/image-1.png +0 -0
  454. package/dist/img/avatar-1.jpg +0 -0
  455. package/dist/img/avatar.jpg +0 -0
  456. package/dist/img/avatar0.jpg +0 -0
  457. package/dist/img/avatar1.jpg +0 -0
  458. package/dist/img/image-1.png +0 -0
  459. package/dist/img/image-2.png +0 -0
  460. package/dist/img/image-3.png +0 -0
  461. package/dist/index.cjs.map +0 -1
  462. package/dist/index.js.map +0 -1
@@ -0,0 +1,858 @@
1
+ import { defineComponent as $t, useSlots as Mt, ref as M, computed as u, watch as se, onBeforeUnmount as Nt, openBlock as s, createBlock as N, mergeProps as Ge, withCtx as W, resolveDynamicComponent as qe, createElementBlock as r, renderSlot as f, createCommentVNode as y, createVNode as Y, unref as B, Fragment as g, normalizeStyle as ke, renderList as re, normalizeClass as K, createElementVNode as S, createTextVNode as F, toDisplayString as _, withModifiers as Ue, Comment as Je, Text as Qe, nextTick as We } from "vue";
2
+ import I from "./XIcon.js";
3
+ import Ye from "./XCheckbox.vue.js";
4
+ import Ft from "./XEmpty.vue.js";
5
+ import Pt from "./XScrollbar.vue.js";
6
+ import zt from "./XTrigger.vue.js";
7
+ import { useXConfig as Et, sizeClass as It } from "../composables/config.js";
8
+ import { useXConfigProviderSlotRender as Lt } from "../composables/config-provider.js";
9
+ import { useXFormField as At } from "../composables/form.js";
10
+ import { useXI18n as Ht } from "../composables/i18n.js";
11
+ const jt = {
12
+ key: 1,
13
+ class: "x-select-group"
14
+ }, Dt = {
15
+ key: 0,
16
+ class: "x-select-group__addon x-select-group__addon--prepend"
17
+ }, Rt = ["tabindex"], Kt = {
18
+ key: 0,
19
+ class: "x-select__prefix"
20
+ }, Xt = { class: "x-select__value" }, Gt = { class: "x-select__tag-label" }, qt = ["onClick"], Ut = {
21
+ key: 0,
22
+ class: "x-select__tag x-select__tag--rest"
23
+ }, Jt = ["value", "disabled", "placeholder"], Qt = {
24
+ key: 2,
25
+ class: "x-select__placeholder"
26
+ }, Wt = ["value", "disabled", "placeholder"], Yt = {
27
+ key: 1,
28
+ class: "x-select__single"
29
+ }, Zt = {
30
+ key: 2,
31
+ class: "x-select__placeholder"
32
+ }, el = { class: "x-select__suffix" }, tl = {
33
+ key: 1,
34
+ class: "x-select-group__addon x-select-group__addon--append"
35
+ }, ll = {
36
+ key: 0,
37
+ class: "x-select__header"
38
+ }, al = {
39
+ key: 1,
40
+ class: "x-select__state x-select__state--loading"
41
+ }, ol = ["data-option-key", "onClick", "onMouseenter"], nl = { class: "x-select__option-checkbox-label" }, ul = { class: "x-select__option-label" }, sl = { class: "x-select__option-suffix" }, rl = {
42
+ key: 0,
43
+ class: "x-select__group-title"
44
+ }, il = ["data-option-key", "onClick", "onMouseenter"], cl = { class: "x-select__option-checkbox-label" }, dl = { class: "x-select__option-label" }, pl = { class: "x-select__option-suffix" }, fl = {
45
+ key: 4,
46
+ class: "x-select__footer"
47
+ }, Vl = /* @__PURE__ */ $t({
48
+ __name: "XSelect",
49
+ props: {
50
+ modelValue: { type: [String, Number, Boolean, Object, Array], default: void 0 },
51
+ defaultValue: { type: [String, Number, Boolean, Object, Array], default: void 0 },
52
+ options: { default: () => [] },
53
+ placeholder: { default: "请选择" },
54
+ prepend: { default: void 0 },
55
+ append: { default: void 0 },
56
+ disabled: { type: Boolean, default: !1 },
57
+ error: { type: Boolean, default: !1 },
58
+ multiple: { type: Boolean, default: !1 },
59
+ allowClear: { type: Boolean, default: !1 },
60
+ allowSearch: { type: [Boolean, Object], default: void 0 },
61
+ filterable: { type: Boolean, default: void 0 },
62
+ allowCreate: { type: Boolean, default: !1 },
63
+ loading: { type: Boolean, default: !1 },
64
+ size: { default: void 0 },
65
+ popupVisible: { type: Boolean, default: void 0 },
66
+ defaultPopupVisible: { type: Boolean, default: !1 },
67
+ open: { type: Boolean, default: void 0 },
68
+ defaultOpen: { type: Boolean, default: !1 },
69
+ inputValue: { default: void 0 },
70
+ defaultInputValue: { default: "" },
71
+ searchValue: { default: void 0 },
72
+ defaultSearchValue: { default: "" },
73
+ maxTagCount: { default: 0 },
74
+ popupContainer: { default: "body" },
75
+ bordered: { type: Boolean, default: !0 },
76
+ unmountOnClose: { type: Boolean, default: !1 },
77
+ filterOption: { type: [Boolean, Function], default: !0 },
78
+ formatLabel: { type: Function, default: void 0 },
79
+ fallbackOption: { type: [Boolean, Function], default: !0 },
80
+ showExtraOptions: { type: Boolean, default: !0 },
81
+ valueKey: { default: "value" },
82
+ searchDelay: { default: 500 },
83
+ limit: { default: 0 },
84
+ fieldNames: { default: () => ({}) },
85
+ virtualListProps: { default: void 0 },
86
+ scrollbar: { type: [Boolean, Object], default: !0 },
87
+ showHeaderOnEmpty: { type: Boolean, default: !1 },
88
+ showFooterOnEmpty: { type: Boolean, default: !1 },
89
+ tagNowrap: { type: Boolean, default: !1 },
90
+ triggerProps: { default: () => ({}) },
91
+ defaultActiveFirstOption: { type: Boolean, default: !0 },
92
+ remote: { type: Boolean, default: !1 },
93
+ emptyText: { default: "暂无数据" }
94
+ },
95
+ emits: ["update:modelValue", "update:inputValue", "update:searchValue", "update:popupVisible", "update:open", "change", "inputValueChange", "input-value-change", "popupVisibleChange", "popup-visible-change", "clear", "remove", "search", "dropdownScroll", "dropdown-scroll", "dropdownReachBottom", "dropdown-reach-bottom", "exceedLimit", "exceed-limit", "focus", "blur"],
96
+ setup(d, { expose: Ze, emit: et }) {
97
+ const a = d, i = et, tt = Et(), v = At(), { t: _e } = Ht(), X = Mt(), L = M(null), O = M(null), Z = M(0), we = M(a.defaultValue ?? (a.multiple ? [] : void 0)), xe = M(!!(a.defaultPopupVisible ?? a.defaultOpen)), Ve = M(a.defaultInputValue ?? a.defaultSearchValue ?? ""), p = M(""), ie = M(!1);
98
+ let A;
99
+ const lt = u(() => a.size ?? tt.size.value), V = u(() => !!(a.disabled || v != null && v.disabled.value)), at = u(() => !!X.prepend || a.prepend !== void 0), ot = u(() => !!X.append || a.append !== void 0), ee = u(() => a.placeholder === "请选择" ? _e("select.placeholder", void 0, "请选择") : a.placeholder), nt = u(() => a.emptyText === "暂无数据" ? _e("select.emptyText", void 0, "暂无数据") : a.emptyText), Ce = Lt(
100
+ "empty",
101
+ u(() => ({ component: "select" }))
102
+ ), H = u(() => ({
103
+ value: "value",
104
+ label: "label",
105
+ disabled: "disabled",
106
+ options: "options",
107
+ ...a.fieldNames ?? {}
108
+ }));
109
+ function P(e) {
110
+ const t = e.children;
111
+ if (Array.isArray(t)) return t;
112
+ if (t && typeof t == "object") {
113
+ const l = t.default;
114
+ if (typeof l == "function") {
115
+ const n = l();
116
+ if (Array.isArray(n))
117
+ return n;
118
+ }
119
+ }
120
+ return [];
121
+ }
122
+ function Be(e) {
123
+ const t = [];
124
+ return e.forEach((l) => {
125
+ if (typeof l.children == "string") {
126
+ t.push(l.children);
127
+ return;
128
+ }
129
+ t.push(Be(P(l)));
130
+ }), t.join("").trim();
131
+ }
132
+ function Se(e) {
133
+ if (typeof e == "string") return e;
134
+ if (!e || typeof e != "object" && typeof e != "function") return "";
135
+ const t = e;
136
+ return String(t.name ?? t.__name ?? "");
137
+ }
138
+ function Oe(e) {
139
+ const t = Se(e.type);
140
+ return t === "XOption" || t === "Option";
141
+ }
142
+ function ut(e) {
143
+ const t = Se(e.type);
144
+ return t === "XOptgroup" || t === "Optgroup";
145
+ }
146
+ function Te(e) {
147
+ const t = e.props ?? {}, l = P(e), n = Be(l), o = t.value ?? t.modelValue ?? t.label ?? n;
148
+ if (o == null || o === "") return null;
149
+ const c = t.label ?? n ?? String(o);
150
+ return {
151
+ ...t,
152
+ value: o,
153
+ label: c,
154
+ disabled: !!t.disabled
155
+ };
156
+ }
157
+ function ce(e) {
158
+ const t = [];
159
+ return e.forEach((l) => {
160
+ if (!l || l.type === Je || l.type === Qe) return;
161
+ if (l.type === g) {
162
+ t.push(...ce(P(l)));
163
+ return;
164
+ }
165
+ if (Oe(l)) {
166
+ const o = Te(l);
167
+ o && t.push(o);
168
+ return;
169
+ }
170
+ const n = ce(P(l));
171
+ n.length && t.push(...n);
172
+ }), t;
173
+ }
174
+ function de(e) {
175
+ const t = [];
176
+ return e.forEach((l) => {
177
+ if (!l || l.type === Je || l.type === Qe) return;
178
+ if (l.type === g) {
179
+ t.push(...de(P(l)));
180
+ return;
181
+ }
182
+ if (Oe(l)) {
183
+ const o = Te(l);
184
+ o && t.push(o);
185
+ return;
186
+ }
187
+ if (ut(l)) {
188
+ const c = (l.props ?? {}).label, C = P(l), h = ce(C);
189
+ h.length && t.push({
190
+ isGroup: !0,
191
+ label: c,
192
+ options: h
193
+ });
194
+ return;
195
+ }
196
+ const n = de(P(l));
197
+ n.length && t.push(...n);
198
+ }), t;
199
+ }
200
+ const pe = u(() => {
201
+ var t;
202
+ const e = ((t = X.default) == null ? void 0 : t.call(X)) ?? [];
203
+ return de(e);
204
+ }), st = u(() => {
205
+ const e = a.options ?? [];
206
+ return pe.value.length ? e.length ? [...e, ...pe.value] : pe.value : e;
207
+ }), rt = u(() => a.filterable !== void 0 ? a.filterable : a.allowSearch !== void 0 ? a.allowSearch !== !1 : a.multiple), fe = u(
208
+ () => typeof a.allowSearch == "object" && !!a.allowSearch.retainInputValue
209
+ ), G = u(() => rt.value || a.allowCreate), $e = u(() => a.modelValue !== void 0), it = u(() => $e.value ? a.modelValue : we.value), ct = u(() => a.popupVisible !== void 0 || a.open !== void 0), m = u(() => a.popupVisible !== void 0 ? !!a.popupVisible : a.open !== void 0 ? !!a.open : xe.value), dt = u(() => a.inputValue !== void 0 || a.searchValue !== void 0), z = u(() => a.inputValue !== void 0 ? String(a.inputValue ?? "") : a.searchValue !== void 0 ? String(a.searchValue ?? "") : Ve.value), k = u(() => {
210
+ const e = it.value;
211
+ return a.multiple ? Array.isArray(e) ? e : [] : e == null ? [] : [e];
212
+ });
213
+ function te(e) {
214
+ return typeof e == "object" && e !== null;
215
+ }
216
+ function w(e) {
217
+ if (te(e)) {
218
+ const t = e[a.valueKey];
219
+ if (t != null)
220
+ return `obj:${String(t)}`;
221
+ try {
222
+ return `obj:${JSON.stringify(e)}`;
223
+ } catch {
224
+ return `obj:${String(e)}`;
225
+ }
226
+ }
227
+ return `${typeof e}:${String(e)}`;
228
+ }
229
+ function q(e) {
230
+ if (te(e)) {
231
+ const t = e[a.valueKey];
232
+ return t != null ? String(t) : "";
233
+ }
234
+ return String(e);
235
+ }
236
+ function U(e, t, l = "base") {
237
+ const n = H.value;
238
+ if (!te(e))
239
+ return {
240
+ key: w(e),
241
+ value: e,
242
+ label: String(e),
243
+ disabled: !1,
244
+ raw: { value: e, label: String(e), disabled: !1 },
245
+ groupLabel: t,
246
+ origin: l
247
+ };
248
+ const o = n.value, c = n.label, C = n.disabled, h = e[o] ?? e.value;
249
+ if (h == null) return null;
250
+ const ue = String(e[c] ?? e.label ?? q(h)), R = !!(e[C] ?? e.disabled);
251
+ return {
252
+ key: w(h),
253
+ value: h,
254
+ label: ue,
255
+ disabled: R,
256
+ raw: {
257
+ ...e,
258
+ value: h,
259
+ label: ue,
260
+ disabled: R
261
+ },
262
+ groupLabel: t,
263
+ origin: l
264
+ };
265
+ }
266
+ function pt(e) {
267
+ if (!te(e)) return !1;
268
+ const t = H.value.options;
269
+ return e.isGroup === !0 ? !0 : Array.isArray(e[t]);
270
+ }
271
+ const le = u(() => {
272
+ const e = [], t = /* @__PURE__ */ new Map(), l = H.value;
273
+ return st.value.forEach((o) => {
274
+ if (pt(o)) {
275
+ const C = o[l.label] ?? o.label, h = C == null ? void 0 : String(C), ue = Array.isArray(o[l.options]) ? o[l.options] : [], R = { label: h, options: [] };
276
+ ue.forEach((Tt) => {
277
+ const Q = U(Tt, h, "base");
278
+ Q && (R.options.push(Q), t.has(Q.key) || t.set(Q.key, Q));
279
+ }), R.options.length > 0 && e.push(R);
280
+ return;
281
+ }
282
+ const c = U(o, void 0, "base");
283
+ c && (e.push({ options: [c] }), t.has(c.key) || t.set(c.key, c));
284
+ }), { groups: e, optionMap: t };
285
+ }), ae = u(() => {
286
+ if (a.fallbackOption === !1) return [];
287
+ const e = [], t = /* @__PURE__ */ new Set();
288
+ return k.value.forEach((l) => {
289
+ const n = w(l);
290
+ if (le.value.optionMap.has(n) || t.has(n)) return;
291
+ t.add(n);
292
+ const o = typeof a.fallbackOption == "function" ? a.fallbackOption(l) : {
293
+ [H.value.value]: l,
294
+ [H.value.label]: q(l),
295
+ [H.value.disabled]: !1
296
+ }, c = U(o, void 0, "fallback");
297
+ c && e.push(c);
298
+ }), e;
299
+ }), Me = u(() => {
300
+ if (!a.allowCreate) return null;
301
+ const e = z.value.trim();
302
+ if (!e) return null;
303
+ const t = w(e), l = le.value.optionMap.has(t), n = ae.value.some((o) => o.key === t);
304
+ return l || n ? null : U({ value: e, label: e }, void 0, "create");
305
+ });
306
+ function ft(e, t) {
307
+ if (a.filterOption === !1) return !0;
308
+ if (typeof a.filterOption == "function")
309
+ return a.filterOption(e, t.raw);
310
+ const l = e.trim().toLowerCase();
311
+ return l ? t.label.toLowerCase().includes(l) : !0;
312
+ }
313
+ const ve = u(() => {
314
+ const e = le.value.groups.map((n) => ({
315
+ label: n.label,
316
+ options: [...n.options]
317
+ }));
318
+ a.showExtraOptions && ae.value.length > 0 && e.push({ options: [...ae.value] }), a.showExtraOptions && Me.value && e.push({ options: [Me.value] });
319
+ const t = z.value;
320
+ return !!t.trim() && !a.remote && a.filterOption !== !1 ? e.map((n) => ({
321
+ label: n.label,
322
+ options: n.options.filter((o) => ft(t, o))
323
+ })).filter((n) => n.options.length > 0) : e;
324
+ }), b = u(() => ve.value.flatMap((e) => e.options)), Ne = u(() => new Set(k.value.map((e) => w(e)))), E = u(() => {
325
+ const e = new Map(ae.value.map((t) => [t.key, t]));
326
+ return k.value.map((t) => {
327
+ const l = w(t), n = le.value.optionMap.get(l);
328
+ if (n) return n;
329
+ const o = e.get(l);
330
+ return o || (U({ value: t, label: q(t) }, void 0, "fallback") ?? {
331
+ key: l,
332
+ value: t,
333
+ label: q(t),
334
+ disabled: !1,
335
+ raw: { value: t, label: q(t), disabled: !1 },
336
+ origin: "fallback"
337
+ });
338
+ });
339
+ }), oe = u(() => !a.maxTagCount || a.maxTagCount <= 0 ? E.value : E.value.slice(0, a.maxTagCount)), Fe = u(() => !a.maxTagCount || a.maxTagCount <= 0 ? 0 : Math.max(E.value.length - a.maxTagCount, 0)), vt = u(() => k.value.length > 0), Pe = u(() => b.value.length === 0), mt = u(() => a.allowClear && !V.value && vt.value && ie.value);
340
+ function me(e) {
341
+ return a.formatLabel ? a.formatLabel(e.raw) : e.label;
342
+ }
343
+ const ht = u(() => {
344
+ const e = E.value[0];
345
+ return e ? me(e) : "";
346
+ }), yt = u(() => m.value ? z.value : ht.value), bt = u(() => {
347
+ var e;
348
+ return ["x-select__panel", (e = a.triggerProps) == null ? void 0 : e.contentClass];
349
+ }), gt = u(() => ve.value.some((e) => !!e.label)), ze = u(() => {
350
+ var e;
351
+ return Math.max(Number(((e = a.virtualListProps) == null ? void 0 : e.threshold) ?? 0), 0);
352
+ }), T = u(() => {
353
+ var e;
354
+ return Math.max(Number(((e = a.virtualListProps) == null ? void 0 : e.estimatedSize) ?? 36), 24);
355
+ }), Ee = u(() => {
356
+ var e;
357
+ return Math.max(Number(((e = a.virtualListProps) == null ? void 0 : e.buffer) ?? 10), 0);
358
+ }), ne = u(() => {
359
+ var e;
360
+ return ((e = a.virtualListProps) == null ? void 0 : e.height) ?? 200;
361
+ }), kt = u(() => {
362
+ const e = ne.value;
363
+ if (typeof e == "number" && Number.isFinite(e)) return e;
364
+ const t = Number.parseFloat(String(e));
365
+ return Number.isFinite(t) ? t : 200;
366
+ }), x = u(() => !a.virtualListProps || gt.value || b.value.length === 0 ? !1 : ze.value <= 0 ? !0 : b.value.length >= ze.value), he = u(() => x.value ? Math.max(Math.floor(Z.value / T.value) - Ee.value, 0) : 0), _t = u(() => x.value ? Math.ceil(kt.value / T.value) + Ee.value * 2 : b.value.length), wt = u(() => x.value ? Math.min(he.value + _t.value, b.value.length) : b.value.length), Ie = u(() => x.value ? b.value.slice(he.value, wt.value) : b.value), ye = u(() => x.value ? he.value * T.value : 0), Le = u(() => {
367
+ if (!x.value) return 0;
368
+ const e = b.value.length * T.value, t = Ie.value.length * T.value;
369
+ return Math.max(e - ye.value - t, 0);
370
+ }), xt = u(() => x.value ? {
371
+ maxHeight: "none",
372
+ height: typeof ne.value == "number" ? `${ne.value}px` : String(ne.value)
373
+ } : void 0), Ae = u(() => a.scrollbar !== !1 && !x.value), Vt = u(() => Ae.value ? a.scrollbar && typeof a.scrollbar == "object" ? a.scrollbar : {} : {});
374
+ function Ct(e) {
375
+ if (!e) {
376
+ O.value = null;
377
+ return;
378
+ }
379
+ if (e instanceof HTMLElement) {
380
+ O.value = e;
381
+ return;
382
+ }
383
+ const t = e;
384
+ O.value = t.$el instanceof HTMLElement ? t.$el : null;
385
+ }
386
+ const He = u(() => b.value.filter((e) => !e.disabled));
387
+ se([m, He], ([e, t]) => {
388
+ var l;
389
+ if (!e) {
390
+ p.value = "";
391
+ return;
392
+ }
393
+ p.value && t.some((n) => n.key === p.value) || (a.defaultActiveFirstOption ? p.value = ((l = t[0]) == null ? void 0 : l.key) ?? "" : p.value = "");
394
+ }), se(
395
+ () => z.value,
396
+ () => {
397
+ x.value && (Z.value = 0, O.value && (O.value.scrollTop = 0));
398
+ }
399
+ ), se(
400
+ () => m.value,
401
+ (e) => {
402
+ if (!e) {
403
+ Z.value = 0;
404
+ return;
405
+ }
406
+ O.value && (O.value.scrollTop = 0);
407
+ }
408
+ ), se(
409
+ () => p.value,
410
+ () => {
411
+ if (!m.value || !p.value || !O.value) return;
412
+ const e = O.value;
413
+ if (x.value) {
414
+ const o = b.value.findIndex((h) => h.key === p.value);
415
+ if (o < 0) return;
416
+ const c = o * T.value, C = c + T.value;
417
+ c < e.scrollTop ? e.scrollTop = c : C > e.scrollTop + e.clientHeight && (e.scrollTop = C - e.clientHeight);
418
+ return;
419
+ }
420
+ const t = Array.from(e.querySelectorAll("[data-option-key]")).find((o) => o.getAttribute("data-option-key") === p.value);
421
+ if (!t) return;
422
+ const l = t.offsetTop, n = l + t.offsetHeight;
423
+ l < e.scrollTop ? e.scrollTop = l : n > e.scrollTop + e.clientHeight && (e.scrollTop = n - e.clientHeight);
424
+ }
425
+ );
426
+ function j(e) {
427
+ $e.value || (we.value = e), i("update:modelValue", e), i("change", e), v == null || v.notifyChange();
428
+ }
429
+ function J(e, t = !1) {
430
+ if (dt.value || (Ve.value = e), i("update:inputValue", e), i("update:searchValue", e), i("inputValueChange", e), i("input-value-change", e), t && (v == null || v.notifyInput()), !t) return;
431
+ if (typeof window > "u") {
432
+ i("search", e);
433
+ return;
434
+ }
435
+ A && window.clearTimeout(A);
436
+ const l = Math.max(Number(a.searchDelay) || 0, 0);
437
+ A = window.setTimeout(() => {
438
+ i("search", e), A = void 0;
439
+ }, l);
440
+ }
441
+ function $(e) {
442
+ if (!V.value) {
443
+ if (ct.value || (xe.value = e), i("update:popupVisible", e), i("update:open", e), i("popupVisibleChange", e), i("popup-visible-change", e), e && G.value) {
444
+ We(() => {
445
+ var t;
446
+ return (t = L.value) == null ? void 0 : t.focus();
447
+ });
448
+ return;
449
+ }
450
+ !e && !fe.value && z.value && J("", !1);
451
+ }
452
+ }
453
+ function D(e) {
454
+ return Ne.value.has(w(e));
455
+ }
456
+ function be(e, t) {
457
+ if (!e.disabled) {
458
+ if (a.multiple) {
459
+ const l = e.key, n = Ne.value.has(l);
460
+ if (!n && a.limit > 0 && k.value.length >= a.limit) {
461
+ i("exceedLimit", e.value, t), i("exceed-limit", e.value, t);
462
+ return;
463
+ }
464
+ if (n) {
465
+ const o = k.value.filter((c) => w(c) !== l);
466
+ j(o), i("remove", e.value);
467
+ } else
468
+ j([...k.value, e.value]);
469
+ fe.value || J("", !1), We(() => {
470
+ var o;
471
+ return (o = L.value) == null ? void 0 : o.focus();
472
+ });
473
+ return;
474
+ }
475
+ j(e.value), fe.value || J("", !1), $(!1);
476
+ }
477
+ }
478
+ function Bt(e, t) {
479
+ if (t.stopPropagation(), !a.multiple) return;
480
+ const l = e.key, n = k.value.filter((o) => w(o) !== l);
481
+ j(n), i("remove", e.value);
482
+ }
483
+ function St(e) {
484
+ e.stopPropagation(), j(a.multiple ? [] : void 0), J("", !1), i("clear", e);
485
+ }
486
+ function je(e) {
487
+ const t = e.target.value;
488
+ J(t, !0), m.value || $(!0);
489
+ }
490
+ function De(e) {
491
+ i("focus", e), v == null || v.notifyFocus(e), m.value || $(!0);
492
+ }
493
+ function Re(e) {
494
+ i("blur", e), v == null || v.notifyBlur(e);
495
+ }
496
+ function Ke(e) {
497
+ const t = He.value;
498
+ if (!t.length) return;
499
+ const l = t.findIndex((o) => o.key === p.value);
500
+ if (l < 0) {
501
+ p.value = e > 0 ? t[0].key : t[t.length - 1].key;
502
+ return;
503
+ }
504
+ const n = (l + e + t.length) % t.length;
505
+ p.value = t[n].key;
506
+ }
507
+ function ge(e) {
508
+ if (!V.value) {
509
+ if (e.key === "ArrowDown") {
510
+ if (e.preventDefault(), !m.value) {
511
+ $(!0);
512
+ return;
513
+ }
514
+ Ke(1);
515
+ return;
516
+ }
517
+ if (e.key === "ArrowUp") {
518
+ if (e.preventDefault(), !m.value) {
519
+ $(!0);
520
+ return;
521
+ }
522
+ Ke(-1);
523
+ return;
524
+ }
525
+ if (e.key === "Enter") {
526
+ if (!m.value) {
527
+ $(!0);
528
+ return;
529
+ }
530
+ if (!p.value) return;
531
+ const t = b.value.find((l) => l.key === p.value);
532
+ if (!t || t.disabled) return;
533
+ e.preventDefault(), be(t, e);
534
+ return;
535
+ }
536
+ if (e.key === "Escape" && m.value) {
537
+ e.preventDefault(), $(!1);
538
+ return;
539
+ }
540
+ if (e.key === "Backspace" && a.multiple && G.value && z.value.length === 0 && k.value.length > 0) {
541
+ const t = k.value[k.value.length - 1], l = w(t), n = k.value.filter((o) => w(o) !== l);
542
+ j(n), i("remove", t);
543
+ }
544
+ }
545
+ }
546
+ function Ot(e) {
547
+ i("dropdownScroll", e), i("dropdown-scroll", e);
548
+ const t = e.currentTarget || e.target;
549
+ if (!t) return;
550
+ Z.value = t.scrollTop, t.scrollHeight - (t.scrollTop + t.clientHeight) <= 1 && (i("dropdownReachBottom", e), i("dropdown-reach-bottom", e));
551
+ }
552
+ function Xe() {
553
+ V.value || $(!m.value);
554
+ }
555
+ return Nt(() => {
556
+ A && typeof window < "u" && window.clearTimeout(A);
557
+ }), Ze({
558
+ focus: () => {
559
+ var e;
560
+ return (e = L.value) == null ? void 0 : e.focus();
561
+ },
562
+ blur: () => {
563
+ var e;
564
+ return (e = L.value) == null ? void 0 : e.blur();
565
+ }
566
+ }), (e, t) => (s(), N(zt, Ge(d.triggerProps, {
567
+ class: "x-select__trigger",
568
+ "popup-visible": m.value,
569
+ "popup-container": d.popupContainer,
570
+ "unmount-on-close": d.unmountOnClose,
571
+ "auto-fit-popup-min-width": !0,
572
+ trigger: [],
573
+ position: "bottom-start",
574
+ "content-class": bt.value,
575
+ "onUpdate:popupVisible": $
576
+ }), {
577
+ default: W(() => [
578
+ e.$slots.trigger ? (s(), r("div", {
579
+ key: 0,
580
+ class: K(["x-select__custom-trigger", { "is-disabled": V.value }]),
581
+ onClick: Xe
582
+ }, [
583
+ f(e.$slots, "trigger", {
584
+ value: d.modelValue,
585
+ open: m.value
586
+ })
587
+ ], 2)) : (s(), r("div", jt, [
588
+ at.value ? (s(), r("span", Dt, [
589
+ f(e.$slots, "prepend", {}, () => [
590
+ F(_(d.prepend), 1)
591
+ ])
592
+ ])) : y("", !0),
593
+ S("div", {
594
+ class: K(["x-select", [B(It)(lt.value), { "is-disabled": V.value, "is-open": m.value, "is-multiple": d.multiple, "is-borderless": !d.bordered, "is-error": d.error }]]),
595
+ tabindex: V.value || G.value ? -1 : 0,
596
+ onClick: Xe,
597
+ onMouseenter: t[2] || (t[2] = (l) => ie.value = !0),
598
+ onMouseleave: t[3] || (t[3] = (l) => ie.value = !1),
599
+ onKeydown: ge
600
+ }, [
601
+ e.$slots.prefix ? (s(), r("span", Kt, [
602
+ f(e.$slots, "prefix")
603
+ ])) : y("", !0),
604
+ S("div", Xt, [
605
+ d.multiple ? (s(), r("div", {
606
+ key: 0,
607
+ class: K(["x-select__tags", { "is-nowrap": d.tagNowrap }])
608
+ }, [
609
+ oe.value.length ? (s(), r(g, { key: 0 }, [
610
+ (s(!0), r(g, null, re(oe.value, (l) => (s(), r("span", {
611
+ key: l.key,
612
+ class: "x-select__tag"
613
+ }, [
614
+ S("span", Gt, [
615
+ f(e.$slots, "label", {
616
+ data: l.raw
617
+ }, () => [
618
+ F(_(me(l)), 1)
619
+ ])
620
+ ]),
621
+ V.value ? y("", !0) : (s(), r("button", {
622
+ key: 0,
623
+ type: "button",
624
+ class: "x-select__tag-remove",
625
+ onClick: (n) => Bt(l, n)
626
+ }, [
627
+ Y(B(I), {
628
+ name: "guanbi",
629
+ size: 10
630
+ })
631
+ ], 8, qt))
632
+ ]))), 128)),
633
+ Fe.value > 0 ? (s(), r("span", Ut, "+" + _(Fe.value), 1)) : y("", !0)
634
+ ], 64)) : y("", !0),
635
+ G.value ? (s(), r("input", {
636
+ key: 1,
637
+ ref_key: "inputRef",
638
+ ref: L,
639
+ class: "x-select__input x-select__input--multiple",
640
+ value: z.value,
641
+ disabled: V.value,
642
+ placeholder: oe.value.length ? "" : ee.value,
643
+ onInput: je,
644
+ onFocus: De,
645
+ onBlur: Re,
646
+ onKeydown: ge,
647
+ onClick: t[0] || (t[0] = Ue(() => {
648
+ }, ["stop"]))
649
+ }, null, 40, Jt)) : oe.value.length ? y("", !0) : (s(), r("span", Qt, _(ee.value), 1))
650
+ ], 2)) : (s(), r(g, { key: 1 }, [
651
+ G.value ? (s(), r("input", {
652
+ key: 0,
653
+ ref_key: "inputRef",
654
+ ref: L,
655
+ class: "x-select__input",
656
+ value: yt.value,
657
+ disabled: V.value,
658
+ placeholder: ee.value,
659
+ onInput: je,
660
+ onFocus: De,
661
+ onBlur: Re,
662
+ onKeydown: ge,
663
+ onClick: t[1] || (t[1] = Ue(() => {
664
+ }, ["stop"]))
665
+ }, null, 40, Wt)) : E.value.length ? (s(), r("span", Yt, [
666
+ f(e.$slots, "label", {
667
+ data: E.value[0].raw
668
+ }, () => [
669
+ F(_(me(E.value[0])), 1)
670
+ ])
671
+ ])) : (s(), r("span", Zt, _(ee.value), 1))
672
+ ], 64))
673
+ ]),
674
+ S("span", el, [
675
+ f(e.$slots, "suffix"),
676
+ mt.value ? (s(), r("button", {
677
+ key: 0,
678
+ type: "button",
679
+ class: "x-select__clear",
680
+ onClick: St
681
+ }, [
682
+ Y(B(I), {
683
+ name: "guanbi",
684
+ size: 12
685
+ })
686
+ ])) : (s(), r("span", {
687
+ key: 1,
688
+ class: K(["x-select__icon", { "is-open": m.value }])
689
+ }, [
690
+ d.loading ? f(e.$slots, "loading-icon", { key: 0 }, () => [
691
+ Y(B(I), {
692
+ name: "jiazai",
693
+ size: 12,
694
+ spin: ""
695
+ })
696
+ ]) : f(e.$slots, "arrow-icon", { key: 1 }, () => [
697
+ Y(B(I), {
698
+ name: "xiangxia",
699
+ size: 12
700
+ })
701
+ ])
702
+ ], 2))
703
+ ])
704
+ ], 42, Rt),
705
+ ot.value ? (s(), r("span", tl, [
706
+ f(e.$slots, "append", {}, () => [
707
+ F(_(d.append), 1)
708
+ ])
709
+ ])) : y("", !0)
710
+ ]))
711
+ ]),
712
+ content: W(() => [
713
+ (s(), N(qe(Ae.value ? Pt : "div"), Ge({
714
+ ref: Ct,
715
+ class: "x-select__dropdown",
716
+ style: xt.value
717
+ }, Vt.value, { onScroll: Ot }), {
718
+ default: W(() => [
719
+ e.$slots.header && (!Pe.value || d.showHeaderOnEmpty) ? (s(), r("div", ll, [
720
+ f(e.$slots, "header")
721
+ ])) : y("", !0),
722
+ d.loading ? (s(), r("div", al, [
723
+ f(e.$slots, "loading-icon", {}, () => [
724
+ Y(B(I), {
725
+ name: "jiazai",
726
+ size: 14,
727
+ spin: ""
728
+ })
729
+ ])
730
+ ])) : b.value.length ? (s(), r(g, { key: 2 }, [
731
+ x.value ? (s(), r(g, { key: 0 }, [
732
+ ye.value > 0 ? (s(), r("div", {
733
+ key: 0,
734
+ style: ke({ height: `${ye.value}px` })
735
+ }, null, 4)) : y("", !0),
736
+ (s(!0), r(g, null, re(Ie.value, (l) => (s(), r("button", {
737
+ key: l.key,
738
+ type: "button",
739
+ class: K(["x-select__option", {
740
+ "is-selected": D(l.value),
741
+ "is-disabled": l.disabled,
742
+ "is-active": p.value === l.key,
743
+ "is-create": l.origin === "create"
744
+ }]),
745
+ style: ke({ minHeight: `${T.value}px`, lineHeight: `${T.value}px` }),
746
+ "data-option-key": l.key,
747
+ onClick: (n) => be(l, n),
748
+ onMouseenter: (n) => p.value = l.key
749
+ }, [
750
+ d.multiple ? (s(), N(Ye, {
751
+ key: 0,
752
+ class: "x-select__option-checkbox",
753
+ "model-value": D(l.value),
754
+ disabled: l.disabled
755
+ }, {
756
+ default: W(() => [
757
+ S("span", nl, [
758
+ f(e.$slots, "option", {
759
+ data: l.raw
760
+ }, () => [
761
+ F(_(l.label), 1)
762
+ ])
763
+ ])
764
+ ]),
765
+ _: 2
766
+ }, 1032, ["model-value", "disabled"])) : (s(), r(g, { key: 1 }, [
767
+ S("span", ul, [
768
+ f(e.$slots, "option", {
769
+ data: l.raw
770
+ }, () => [
771
+ F(_(l.label), 1)
772
+ ])
773
+ ]),
774
+ S("span", sl, [
775
+ D(l.value) ? (s(), N(B(I), {
776
+ key: 0,
777
+ name: "dui",
778
+ size: 12
779
+ })) : y("", !0)
780
+ ])
781
+ ], 64))
782
+ ], 46, ol))), 128)),
783
+ Le.value > 0 ? (s(), r("div", {
784
+ key: 1,
785
+ style: ke({ height: `${Le.value}px` })
786
+ }, null, 4)) : y("", !0)
787
+ ], 64)) : (s(!0), r(g, { key: 1 }, re(ve.value, (l, n) => (s(), r(g, {
788
+ key: l.label ?? `group-${n}`
789
+ }, [
790
+ l.label ? (s(), r("div", rl, _(l.label), 1)) : y("", !0),
791
+ (s(!0), r(g, null, re(l.options, (o) => (s(), r("button", {
792
+ key: o.key,
793
+ type: "button",
794
+ class: K(["x-select__option", {
795
+ "is-selected": D(o.value),
796
+ "is-disabled": o.disabled,
797
+ "is-active": p.value === o.key,
798
+ "is-create": o.origin === "create"
799
+ }]),
800
+ "data-option-key": o.key,
801
+ onClick: (c) => be(o, c),
802
+ onMouseenter: (c) => p.value = o.key
803
+ }, [
804
+ d.multiple ? (s(), N(Ye, {
805
+ key: 0,
806
+ class: "x-select__option-checkbox",
807
+ "model-value": D(o.value),
808
+ disabled: o.disabled
809
+ }, {
810
+ default: W(() => [
811
+ S("span", cl, [
812
+ f(e.$slots, "option", {
813
+ data: o.raw
814
+ }, () => [
815
+ F(_(o.label), 1)
816
+ ])
817
+ ])
818
+ ]),
819
+ _: 2
820
+ }, 1032, ["model-value", "disabled"])) : (s(), r(g, { key: 1 }, [
821
+ S("span", dl, [
822
+ f(e.$slots, "option", {
823
+ data: o.raw
824
+ }, () => [
825
+ F(_(o.label), 1)
826
+ ])
827
+ ]),
828
+ S("span", pl, [
829
+ D(o.value) ? (s(), N(B(I), {
830
+ key: 0,
831
+ name: "dui",
832
+ size: 12
833
+ })) : y("", !0)
834
+ ])
835
+ ], 64))
836
+ ], 42, il))), 128))
837
+ ], 64))), 128))
838
+ ], 64)) : f(e.$slots, "empty", { key: 3 }, () => [
839
+ B(Ce) ? (s(), N(qe(B(Ce)), { key: 0 })) : (s(), N(Ft, {
840
+ key: 1,
841
+ "in-config-provider": "",
842
+ description: nt.value
843
+ }, null, 8, ["description"]))
844
+ ]),
845
+ e.$slots.footer && (!Pe.value || d.showFooterOnEmpty) ? (s(), r("div", fl, [
846
+ f(e.$slots, "footer")
847
+ ])) : y("", !0)
848
+ ]),
849
+ _: 3
850
+ }, 16, ["style"]))
851
+ ]),
852
+ _: 3
853
+ }, 16, ["popup-visible", "popup-container", "unmount-on-close", "content-class"]));
854
+ }
855
+ });
856
+ export {
857
+ Vl as default
858
+ };