@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.
- package/README.md +4 -6
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/alignment-pattern.js +4 -0
- package/dist/_virtual/browser.js +4 -0
- package/dist/_virtual/canvas.js +4 -0
- package/dist/_virtual/dijkstra.js +4 -0
- package/dist/_virtual/error-correction-code.js +4 -0
- package/dist/_virtual/error-correction-level.js +4 -0
- package/dist/_virtual/finder-pattern.js +4 -0
- package/dist/_virtual/format-info.js +4 -0
- package/dist/_virtual/galois-field.js +4 -0
- package/dist/_virtual/mask-pattern.js +4 -0
- package/dist/_virtual/mode.js +4 -0
- package/dist/_virtual/polynomial.js +4 -0
- package/dist/_virtual/qrcode.js +4 -0
- package/dist/_virtual/regex.js +4 -0
- package/dist/_virtual/segments.js +4 -0
- package/dist/_virtual/svg-tag.js +4 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils2.js +4 -0
- package/dist/_virtual/version-check.js +4 -0
- package/dist/_virtual/version.js +4 -0
- package/dist/arco.less +14834 -0
- package/dist/components/XAffix.vue.d.ts +1 -1
- package/dist/components/XAffix.vue.js +7 -0
- package/dist/components/XAffix.vue2.js +181 -0
- package/dist/components/XAlert.vue.js +106 -0
- package/dist/components/XAlert.vue2.js +4 -0
- package/dist/components/XAnchor.vue.d.ts +2 -2
- package/dist/components/XAnchor.vue.js +9 -0
- package/dist/components/XAnchor.vue2.js +204 -0
- package/dist/components/XAnchorLink.vue.js +7 -0
- package/dist/components/XAnchorLink.vue2.js +44 -0
- package/dist/components/XApp.vue.js +12 -0
- package/dist/components/XAutoComplete.vue.d.ts +649 -15
- package/dist/components/XAutoComplete.vue.js +399 -0
- package/dist/components/XAutoComplete.vue2.js +4 -0
- package/dist/components/XAvatar.vue.d.ts +2 -2
- package/dist/components/XAvatar.vue.js +166 -0
- package/dist/components/XAvatar.vue2.js +4 -0
- package/dist/components/XAvatarGroup.vue.js +27 -0
- package/dist/components/XAvatarGroup.vue2.js +4 -0
- package/dist/components/XBackTop.vue.d.ts +23 -7
- package/dist/components/XBackTop.vue.js +118 -0
- package/dist/components/XBackTop.vue2.js +4 -0
- package/dist/components/XBadge.vue.d.ts +3 -3
- package/dist/components/XBadge.vue.js +64 -0
- package/dist/components/XBadge.vue2.js +4 -0
- package/dist/components/XBaseMenu.vue.d.ts +5 -5
- package/dist/components/XBaseMenu.vue.js +37 -0
- package/dist/components/XBaseMenu.vue2.js +334 -0
- package/dist/components/XBreadcrumb.vue.d.ts +31 -6
- package/dist/components/XBreadcrumb.vue.js +97 -0
- package/dist/components/XBreadcrumb.vue2.js +4 -0
- package/dist/components/XBreadcrumbItem.vue.d.ts +21 -6
- package/dist/components/XBreadcrumbItem.vue.js +136 -0
- package/dist/components/XBreadcrumbItem.vue2.js +4 -0
- package/dist/components/XButton.vue.d.ts +4 -4
- package/dist/components/XButton.vue.js +7 -0
- package/dist/components/XButton.vue2.js +142 -0
- package/dist/components/XButtonG.vue.d.ts +2 -2
- package/dist/components/XButtonG.vue.js +7 -0
- package/dist/components/XButtonG.vue2.js +67 -0
- package/dist/components/XButtonGroup.vue.d.ts +1 -1
- package/dist/components/XButtonGroup.vue.js +39 -0
- package/dist/components/XButtonGroup.vue3.js +5 -0
- package/dist/components/XCalendar.vue.d.ts +5 -2
- package/dist/components/XCalendar.vue.js +309 -0
- package/dist/components/XCalendar.vue2.js +4 -0
- package/dist/components/XCard.vue.d.ts +1 -1
- package/dist/components/XCard.vue.js +80 -0
- package/dist/components/XCard.vue2.js +4 -0
- package/dist/components/XCarousel.vue.d.ts +2 -2
- package/dist/components/XCarousel.vue.js +7 -0
- package/dist/components/XCarousel.vue2.js +150 -0
- package/dist/components/XCarouselItem.vue.js +7 -0
- package/dist/components/XCarouselItem.vue2.js +112 -0
- package/dist/components/XCascader.vue.d.ts +19 -19
- package/dist/components/XCascader.vue.js +1015 -0
- package/dist/components/XCascader.vue2.js +4 -0
- package/dist/components/XCascaderPanel.vue.d.ts +6 -6
- package/dist/components/XCascaderPanel.vue.js +466 -0
- package/dist/components/XCascaderPanel.vue2.js +4 -0
- package/dist/components/XChatInput.vue.d.ts +5 -5
- package/dist/components/XChatInput.vue.js +7 -0
- package/dist/components/XChatInput.vue2.js +454 -0
- package/dist/components/XCheckbox.vue.d.ts +14 -8
- package/dist/components/XCheckbox.vue.js +154 -0
- package/dist/components/XCheckbox.vue2.js +4 -0
- package/dist/components/XCheckboxGroup.vue.d.ts +36 -13
- package/dist/components/XCheckboxGroup.vue.js +87 -0
- package/dist/components/XCheckboxGroup.vue2.js +4 -0
- package/dist/components/XCollapse.vue.d.ts +14 -7
- package/dist/components/XCollapse.vue.js +54 -0
- package/dist/components/XCollapse.vue2.js +4 -0
- package/dist/components/XCollapseItem.vue.d.ts +16 -4
- package/dist/components/XCollapseItem.vue.js +152 -0
- package/dist/components/XCollapseItem.vue2.js +4 -0
- package/dist/components/XColorGroup.vue.d.ts +1 -1
- package/dist/components/XColorGroup.vue.js +7 -0
- package/dist/components/XColorGroup.vue2.js +306 -0
- package/dist/components/XColorPicker.vue.js +62 -0
- package/dist/components/XColorPicker.vue2.js +4 -0
- package/dist/components/XComment.vue.js +129 -0
- package/dist/components/XComment.vue2.js +4 -0
- package/dist/components/XCompact.vue.js +17 -0
- package/dist/components/XCompact.vue2.js +4 -0
- package/dist/components/XConfigProvider.vue.d.ts +17 -4
- package/dist/components/XConfigProvider.vue.js +78 -0
- package/dist/components/XConfigProvider.vue2.js +4 -0
- package/dist/components/XCountdown.vue.d.ts +2 -2
- package/dist/components/XCountdown.vue.js +7 -0
- package/dist/components/XCountdown.vue2.js +104 -0
- package/dist/components/XCropper.vue.d.ts +2 -2
- package/dist/components/XCropper.vue.js +7 -0
- package/dist/components/XCropper.vue2.js +525 -0
- package/dist/components/XDatePicker.vue.d.ts +17 -17
- package/dist/components/XDatePicker.vue.js +1798 -0
- package/dist/components/XDatePicker.vue2.js +4 -0
- package/dist/components/XDescriptions.vue.d.ts +4 -4
- package/dist/components/XDescriptions.vue.js +260 -0
- package/dist/components/XDescriptions.vue2.js +4 -0
- package/dist/components/XDescriptionsItem.vue.d.ts +2 -1
- package/dist/components/XDescriptionsItem.vue.js +21 -0
- package/dist/components/XDescriptionsItem.vue2.js +4 -0
- package/dist/components/XDgroup.vue.d.ts +21 -0
- package/dist/components/XDgroup.vue.js +21 -0
- package/dist/components/XDgroup.vue2.js +4 -0
- package/dist/components/XDivider.vue.js +54 -0
- package/dist/components/XDivider.vue2.js +4 -0
- package/dist/components/XDoption.vue.d.ts +38 -0
- package/dist/components/XDoption.vue.js +59 -0
- package/dist/components/XDoption.vue2.js +4 -0
- package/dist/components/XDrawer.vue.d.ts +7 -7
- package/dist/components/XDrawer.vue.js +7 -0
- package/dist/components/XDrawer.vue2.js +320 -0
- package/dist/components/XDrawerService.d.ts +2 -0
- package/dist/components/XDrawerService.js +97 -0
- package/dist/components/XDropdown.vue.d.ts +43 -17
- package/dist/components/XDropdown.vue.js +127 -0
- package/dist/components/XDropdown.vue2.js +4 -0
- package/dist/components/XDropdownButton.vue.d.ts +65 -0
- package/dist/components/XDropdownButton.vue.js +84 -0
- package/dist/components/XDropdownButton.vue2.js +4 -0
- package/dist/components/XDropdownItem.vue.d.ts +29 -0
- package/dist/components/XDropdownItem.vue.js +47 -0
- package/dist/components/XDropdownItem.vue2.js +4 -0
- package/dist/components/XDropdownPanel.vue.d.ts +33 -0
- package/dist/components/XDropdownPanel.vue.js +58 -0
- package/dist/components/XDropdownPanel.vue2.js +4 -0
- package/dist/components/XDsubmenu.vue.d.ts +48 -0
- package/dist/components/XDsubmenu.vue.js +82 -0
- package/dist/components/XDsubmenu.vue2.js +4 -0
- package/dist/components/XEmpty.vue.d.ts +2 -2
- package/dist/components/XEmpty.vue.js +54 -0
- package/dist/components/XEmpty.vue2.js +4 -0
- package/dist/components/XFlex.vue.js +7 -0
- package/dist/components/XFlex.vue2.js +122 -0
- package/dist/components/XFloatButton.vue.js +28 -0
- package/dist/components/XFloatButton.vue2.js +4 -0
- package/dist/components/XFloatButtonGroup.vue.js +17 -0
- package/dist/components/XFloatButtonGroup.vue2.js +4 -0
- package/dist/components/XForm.vue.d.ts +2 -2
- package/dist/components/XForm.vue.js +156 -0
- package/dist/components/XForm.vue2.js +4 -0
- package/dist/components/XFormItem.vue.d.ts +21 -5
- package/dist/components/XFormItem.vue.js +425 -0
- package/dist/components/XFormItem.vue2.js +4 -0
- package/dist/components/XGrid.vue.d.ts +1 -1
- package/dist/components/XGrid.vue.js +7 -0
- package/dist/components/XGrid.vue2.js +88 -0
- package/dist/components/XGridItem.vue.d.ts +3 -3
- package/dist/components/XGridItem.vue.js +8 -0
- package/dist/components/XGridItem.vue2.js +112 -0
- package/dist/components/XGridLayout.vue.js +7 -0
- package/dist/components/XGridLayout.vue2.js +66 -0
- package/dist/components/XGridLayoutItem.vue.d.ts +1 -1
- package/dist/components/XGridLayoutItem.vue.js +7 -0
- package/dist/components/XGridLayoutItem.vue2.js +56 -0
- package/dist/components/XIcon.d.ts +1 -1
- package/dist/components/XIcon.js +5 -0
- package/dist/components/XIconLite.d.ts +1 -1
- package/dist/components/XIconLite.js +8 -0
- package/dist/components/XImage.vue.d.ts +7 -3
- package/dist/components/XImage.vue.js +7 -0
- package/dist/components/XImage.vue2.js +241 -0
- package/dist/components/XImageGroup.vue.js +7 -0
- package/dist/components/XImageGroup.vue2.js +22 -0
- package/dist/components/XInput.vue.d.ts +5 -5
- package/dist/components/XInput.vue.js +7 -0
- package/dist/components/XInput.vue2.js +537 -0
- package/dist/components/XInputComposite.vue.d.ts +12 -12
- package/dist/components/XInputComposite.vue.js +7 -0
- package/dist/components/XInputComposite.vue2.js +176 -0
- package/dist/components/XInputGroup.vue.js +19 -0
- package/dist/components/XInputGroup.vue3.js +5 -0
- package/dist/components/XInputNumber.vue.d.ts +9 -9
- package/dist/components/XInputNumber.vue.js +7 -0
- package/dist/components/XInputNumber.vue2.js +344 -0
- package/dist/components/XInputPassword.vue.d.ts +24 -24
- package/dist/components/XInputPassword.vue.js +7 -0
- package/dist/components/XInputPassword.vue2.js +125 -0
- package/dist/components/XInputSearch.vue.d.ts +26 -26
- package/dist/components/XInputSearch.vue.js +7 -0
- package/dist/components/XInputSearch.vue2.js +154 -0
- package/dist/components/XInputTag.vue.d.ts +10 -10
- package/dist/components/XInputTag.vue.js +367 -0
- package/dist/components/XInputTag.vue2.js +4 -0
- package/dist/components/XLayout.vue.js +22 -0
- package/dist/components/XLayout.vue2.js +4 -0
- package/dist/components/XLayoutContent.vue.js +13 -0
- package/dist/components/XLayoutContent.vue2.js +4 -0
- package/dist/components/XLayoutFooter.vue.js +22 -0
- package/dist/components/XLayoutFooter.vue2.js +4 -0
- package/dist/components/XLayoutHeader.vue.js +128 -0
- package/dist/components/XLayoutHeader.vue2.js +4 -0
- package/dist/components/XLayoutSider.vue.js +108 -0
- package/dist/components/XLayoutSider.vue2.js +4 -0
- package/dist/components/XLink.vue.d.ts +1 -1
- package/dist/components/XLink.vue.js +21 -0
- package/dist/components/XLink.vue2.js +4 -0
- package/dist/components/XList.vue.d.ts +8 -5
- package/dist/components/XList.vue.js +295 -0
- package/dist/components/XList.vue2.js +4 -0
- package/dist/components/XListItem.vue.d.ts +2 -3
- package/dist/components/XListItem.vue.js +53 -0
- package/dist/components/XListItem.vue2.js +4 -0
- package/dist/components/XListItemMeta.vue.js +43 -0
- package/dist/components/XListItemMeta.vue2.js +4 -0
- package/dist/components/XMention.vue.d.ts +899 -0
- package/dist/components/XMention.vue.js +456 -0
- package/dist/components/XMention.vue2.js +4 -0
- package/dist/components/XMentions.vue.js +16 -0
- package/dist/components/XMentions.vue2.js +4 -0
- package/dist/components/XMenu.vue.d.ts +7 -7
- package/dist/components/XMenu.vue.js +57 -0
- package/dist/components/XMenu.vue2.js +123 -0
- package/dist/components/XMenuIndent.vue.js +19 -0
- package/dist/components/XMenuIndent.vue2.js +21 -0
- package/dist/components/XMenuItem.vue.d.ts +43 -43
- package/dist/components/XMenuItem.vue.js +71 -0
- package/dist/components/XMenuItem.vue2.js +92 -0
- package/dist/components/XMenuItemGroup.vue.js +27 -0
- package/dist/components/XMenuItemGroup.vue2.js +26 -0
- package/dist/components/XMenuOverflowWrap.vue.js +116 -0
- package/dist/components/XMenuOverflowWrap.vue2.js +4 -0
- package/dist/components/XMessage.vue.d.ts +1 -1
- package/dist/components/XMessage.vue.js +7 -0
- package/dist/components/XMessage.vue2.js +89 -0
- package/dist/components/XMessageList.d.ts +1 -1
- package/dist/components/XMessageList.js +61 -0
- package/dist/components/XMessageService.d.ts +2 -0
- package/dist/components/XMessageService.js +118 -0
- package/dist/components/XModal.vue.d.ts +8 -8
- package/dist/components/XModal.vue.js +7 -0
- package/dist/components/XModal.vue2.js +364 -0
- package/dist/components/XModalService.d.ts +2 -0
- package/dist/components/XModalService.js +157 -0
- package/dist/components/XNotification.vue.d.ts +31 -20
- package/dist/components/XNotification.vue.js +7 -0
- package/dist/components/XNotification.vue2.js +107 -0
- package/dist/components/XNotificationList.d.ts +39 -0
- package/dist/components/XNotificationList.js +70 -0
- package/dist/components/XNotificationService.d.ts +54 -15
- package/dist/components/XNotificationService.js +119 -0
- package/dist/components/XOptgroup.vue.d.ts +1 -0
- package/dist/components/XOptgroup.vue.js +14 -0
- package/dist/components/XOptgroup.vue2.js +4 -0
- package/dist/components/XOption.vue.d.ts +1 -0
- package/dist/components/XOption.vue.js +21 -0
- package/dist/components/XOption.vue2.js +4 -0
- package/dist/components/XOverflowList.vue.d.ts +38 -8
- package/dist/components/XOverflowList.vue.js +149 -0
- package/dist/components/XOverflowList.vue2.js +4 -0
- package/dist/components/XPageHeader.vue.d.ts +11 -5
- package/dist/components/XPageHeader.vue.js +84 -0
- package/dist/components/XPageHeader.vue2.js +4 -0
- package/dist/components/XPagination.vue.js +121 -0
- package/dist/components/XPagination.vue2.js +4 -0
- package/dist/components/XPopconfirm.vue.d.ts +82 -77
- package/dist/components/XPopconfirm.vue.js +90 -0
- package/dist/components/XPopconfirm.vue2.js +4 -0
- package/dist/components/XPopover.vue.d.ts +3 -3
- package/dist/components/XPopover.vue.js +53 -0
- package/dist/components/XPopover.vue2.js +4 -0
- package/dist/components/XProgress.vue.d.ts +2 -2
- package/dist/components/XProgress.vue.js +263 -0
- package/dist/components/XProgress.vue2.js +4 -0
- package/dist/components/XQRCode.vue.d.ts +3 -3
- package/dist/components/XQRCode.vue.js +141 -0
- package/dist/components/XQRCode.vue2.js +4 -0
- package/dist/components/XRadio.vue.d.ts +1 -1
- package/dist/components/XRadio.vue.js +138 -0
- package/dist/components/XRadio.vue2.js +4 -0
- package/dist/components/XRadioButton.vue.d.ts +1 -1
- package/dist/components/XRadioButton.vue.js +41 -0
- package/dist/components/XRadioButton.vue2.js +4 -0
- package/dist/components/XRadioGroup.vue.d.ts +3 -3
- package/dist/components/XRadioGroup.vue.js +168 -0
- package/dist/components/XRadioGroup.vue2.js +4 -0
- package/dist/components/XRate.vue.d.ts +3 -3
- package/dist/components/XRate.vue.js +145 -0
- package/dist/components/XRate.vue2.js +4 -0
- package/dist/components/XResizeBox.vue.d.ts +41 -9
- package/dist/components/XResizeBox.vue.js +184 -0
- package/dist/components/XResizeBox.vue2.js +4 -0
- package/dist/components/XResult.vue.js +78 -0
- package/dist/components/XResult.vue2.js +4 -0
- package/dist/components/XRichTextEditor.vue.d.ts +2 -2
- package/dist/components/XRichTextEditor.vue.js +7 -0
- package/dist/components/XRichTextEditor.vue2.js +742 -0
- package/dist/components/XScrollbar.vue.d.ts +176 -5
- package/dist/components/XScrollbar.vue.js +190 -0
- package/dist/components/XScrollbar.vue2.js +4 -0
- package/dist/components/XScrollbarThumb.vue.d.ts +22 -0
- package/dist/components/XScrollbarThumb.vue.js +97 -0
- package/dist/components/XScrollbarThumb.vue2.js +4 -0
- package/dist/components/XSegmented.vue.js +7 -0
- package/dist/components/XSegmented.vue2.js +71 -0
- package/dist/components/XSelect.vue.d.ts +27 -27
- package/dist/components/XSelect.vue.js +858 -0
- package/dist/components/XSelect.vue2.js +4 -0
- package/dist/components/XSkeleton.vue.d.ts +100 -29
- package/dist/components/XSkeleton.vue.js +37 -0
- package/dist/components/XSkeleton.vue2.js +59 -0
- package/dist/components/XSkeletonLine.vue.d.ts +15 -0
- package/dist/components/XSkeletonLine.vue.js +36 -0
- package/dist/components/XSkeletonLine.vue2.js +4 -0
- package/dist/components/XSkeletonShape.vue.d.ts +9 -0
- package/dist/components/XSkeletonShape.vue.js +21 -0
- package/dist/components/XSkeletonShape.vue2.js +4 -0
- package/dist/components/XSlider.vue.d.ts +86 -86
- package/dist/components/XSlider.vue.js +402 -0
- package/dist/components/XSlider.vue2.js +4 -0
- package/dist/components/XSpace.vue.d.ts +59 -28
- package/dist/components/XSpace.vue.js +125 -0
- package/dist/components/XSpace.vue2.js +4 -0
- package/dist/components/XSpin.vue.js +54 -0
- package/dist/components/XSpin.vue2.js +4 -0
- package/dist/components/XSplit.vue.d.ts +3 -3
- package/dist/components/XSplit.vue.js +7 -0
- package/dist/components/XSplit.vue2.js +126 -0
- package/dist/components/XStatistic.vue.d.ts +5 -5
- package/dist/components/XStatistic.vue.js +7 -0
- package/dist/components/XStatistic.vue2.js +176 -0
- package/dist/components/XStep.vue.d.ts +3 -3
- package/dist/components/XStep.vue.js +91 -0
- package/dist/components/XStep.vue2.js +4 -0
- package/dist/components/XSteps.vue.d.ts +2 -2
- package/dist/components/XSteps.vue.js +73 -0
- package/dist/components/XSteps.vue2.js +4 -0
- package/dist/components/XSubMenu.vue.d.ts +30 -30
- package/dist/components/XSubMenu.vue.js +109 -0
- package/dist/components/XSubMenu.vue2.js +69 -0
- package/dist/components/XSubMenuInline.vue.js +74 -0
- package/dist/components/XSubMenuInline.vue2.js +56 -0
- package/dist/components/XSubMenuPop.vue.d.ts +29 -29
- package/dist/components/XSubMenuPop.vue.js +91 -0
- package/dist/components/XSubMenuPop.vue2.js +113 -0
- package/dist/components/XSwitch.vue.d.ts +5 -5
- package/dist/components/XSwitch.vue.js +133 -0
- package/dist/components/XSwitch.vue2.js +4 -0
- package/dist/components/XTabPane.vue.d.ts +4 -4
- package/dist/components/XTabPane.vue.js +59 -0
- package/dist/components/XTabPane.vue2.js +4 -0
- package/dist/components/XTable.vue.d.ts +5 -5
- package/dist/components/XTable.vue.js +7 -0
- package/dist/components/XTable.vue2.js +1059 -0
- package/dist/components/XTableFilter.vue.js +7 -0
- package/dist/components/XTableFilter.vue2.js +141 -0
- package/dist/components/XTabs.vue.d.ts +53 -25
- package/dist/components/XTabs.vue.js +402 -0
- package/dist/components/XTabs.vue2.js +4 -0
- package/dist/components/XTag.vue.d.ts +5 -3
- package/dist/components/XTag.vue.js +126 -0
- package/dist/components/XTag.vue2.js +4 -0
- package/dist/components/XTextarea.vue.d.ts +9 -9
- package/dist/components/XTextarea.vue.js +261 -0
- package/dist/components/XTextarea.vue2.js +4 -0
- package/dist/components/XTimePicker.vue.d.ts +13 -13
- package/dist/components/XTimePicker.vue.js +827 -0
- package/dist/components/XTimePicker.vue2.js +4 -0
- package/dist/components/XTimeline.vue.d.ts +2 -2
- package/dist/components/XTimeline.vue.js +84 -0
- package/dist/components/XTimeline.vue2.js +4 -0
- package/dist/components/XTimelineItem.vue.d.ts +3 -3
- package/dist/components/XTimelineItem.vue.js +202 -0
- package/dist/components/XTimelineItem.vue2.js +4 -0
- package/dist/components/XTooltip.vue.d.ts +76 -76
- package/dist/components/XTooltip.vue.js +78 -0
- package/dist/components/XTooltip.vue2.js +4 -0
- package/dist/components/XTour.vue.js +120 -0
- package/dist/components/XTour.vue2.js +4 -0
- package/dist/components/XTr.vue.js +12 -0
- package/dist/components/XTransfer.vue.js +128 -0
- package/dist/components/XTransfer.vue2.js +4 -0
- package/dist/components/XTree.vue.d.ts +3 -1
- package/dist/components/XTree.vue.js +7 -0
- package/dist/components/XTree.vue2.js +601 -0
- package/dist/components/XTreeNode.vue.js +7 -0
- package/dist/components/XTreeNode.vue2.js +314 -0
- package/dist/components/XTreeSelect.vue.d.ts +175 -29
- package/dist/components/XTreeSelect.vue.js +7 -0
- package/dist/components/XTreeSelect.vue2.js +715 -0
- package/dist/components/XTrigger.vue.d.ts +6 -6
- package/dist/components/XTrigger.vue.js +492 -0
- package/dist/components/XTrigger.vue2.js +4 -0
- package/dist/components/XTypography.vue.d.ts +4 -4
- package/dist/components/XTypography.vue.js +51 -0
- package/dist/components/XTypography.vue2.js +126 -0
- package/dist/components/XTypographyParagraph.vue.d.ts +2 -2
- package/dist/components/XTypographyParagraph.vue.js +83 -0
- package/dist/components/XTypographyParagraph.vue2.js +4 -0
- package/dist/components/XTypographyText.vue.d.ts +3 -3
- package/dist/components/XTypographyText.vue.js +76 -0
- package/dist/components/XTypographyText.vue2.js +4 -0
- package/dist/components/XTypographyTitle.vue.d.ts +2 -2
- package/dist/components/XTypographyTitle.vue.js +77 -0
- package/dist/components/XTypographyTitle.vue2.js +4 -0
- package/dist/components/XUpload.vue.d.ts +7 -5
- package/dist/components/XUpload.vue.js +7 -0
- package/dist/components/XUpload.vue2.js +1060 -0
- package/dist/components/XVerificationCode.vue.d.ts +3 -3
- package/dist/components/XVerificationCode.vue.js +149 -0
- package/dist/components/XVerificationCode.vue2.js +4 -0
- package/dist/components/XWatermark.vue.d.ts +30 -4
- package/dist/components/XWatermark.vue.js +204 -0
- package/dist/components/XWatermark.vue2.js +4 -0
- package/dist/components/index.d.ts +504 -1
- package/dist/components/index.js +308 -0
- package/dist/components/result-assets/result-403.svg.js +4 -0
- package/dist/components/result-assets/result-404.svg.js +4 -0
- package/dist/components/result-assets/result-500.svg.js +4 -0
- package/dist/components/statistic-utils.js +81 -0
- package/dist/components/timelineContext.js +4 -0
- package/dist/components/x-breadcrumb-context.d.ts +9 -0
- package/dist/components/x-breadcrumb-context.js +4 -0
- package/dist/components/x-checkbox-context.d.ts +19 -0
- package/dist/components/x-checkbox-context.js +4 -0
- package/dist/components/x-dropdown-context.d.ts +7 -0
- package/dist/components/x-dropdown-context.js +4 -0
- package/dist/components/x-icon-shared.d.ts +1 -1
- package/dist/components/x-icon-shared.js +151 -0
- package/dist/components/x-list-shared.d.ts +20 -8
- package/dist/components/x-radio-context.js +4 -0
- package/dist/components/x-scrollbar-types.d.ts +5 -0
- package/dist/composables/collapse.d.ts +8 -5
- package/dist/composables/collapse.js +9 -0
- package/dist/composables/config-provider.d.ts +29 -0
- package/dist/composables/config-provider.js +48 -0
- package/dist/composables/config.js +39 -0
- package/dist/composables/form.js +397 -0
- package/dist/composables/i18n.d.ts +4 -2
- package/dist/composables/i18n.js +257 -0
- package/dist/composables/menu-context.js +6 -0
- package/dist/composables/menu-hooks/use-level.js +25 -0
- package/dist/composables/menu-hooks/use-menu-context.js +8 -0
- package/dist/composables/menu-hooks/use-menu-data-collector.js +63 -0
- package/dist/composables/menu-hooks/use-menu-open-state.js +120 -0
- package/dist/composables/menu-hooks/use-menu.js +19 -0
- package/dist/composables/popup.js +177 -0
- package/dist/composables/scrollbar-visibility.d.ts +1 -0
- package/dist/composables/scrollbar-visibility.js +96 -0
- package/dist/composables/steps.d.ts +1 -0
- package/dist/composables/steps.js +9 -0
- package/dist/composables/tabs.d.ts +19 -8
- package/dist/composables/tabs.js +10 -0
- package/dist/composables/theme-context.d.ts +9 -0
- package/dist/composables/theme-context.js +24 -0
- package/dist/composables/theme.js +53 -0
- package/dist/composables/useMergeState.js +27 -0
- package/dist/composables/useResponsive.js +36 -0
- package/dist/iconfont/generated/icons/guanbi.js +7 -0
- package/dist/iconfont/generated/icons/shijian.js +7 -0
- package/dist/iconfont/internal-icons.js +71 -0
- package/dist/index.cjs +10 -11
- package/dist/index.css +14834 -0
- package/dist/index.js +382 -27802
- package/dist/index.less +14834 -0
- package/dist/install.js +39 -0
- package/dist/locales/ar-EG.js +5 -0
- package/dist/locales/da-DK.d.ts +381 -0
- package/dist/locales/da-DK.js +5 -0
- package/dist/locales/de-DE.js +5 -0
- package/dist/locales/en-US.js +312 -0
- package/dist/locales/es-ES.js +5 -0
- package/dist/locales/fr-FR.js +5 -0
- package/dist/locales/id-ID.js +5 -0
- package/dist/locales/it-IT.js +5 -0
- package/dist/locales/ja-JP.js +5 -0
- package/dist/locales/km-KH.js +5 -0
- package/dist/locales/ko-KR.js +5 -0
- package/dist/locales/ms-MY.js +5 -0
- package/dist/locales/nl-NL.d.ts +381 -0
- package/dist/locales/nl-NL.js +5 -0
- package/dist/locales/pt-PT.js +5 -0
- package/dist/locales/ru-RU.js +5 -0
- package/dist/locales/th-TH.js +5 -0
- package/dist/locales/vi-VN.js +5 -0
- package/dist/locales/zh-CN.js +312 -0
- package/dist/locales/zh-TW.js +5 -0
- package/dist/node_modules/dijkstrajs/dijkstra.js +70 -0
- package/dist/node_modules/qrcode/lib/browser.js +45 -0
- package/dist/node_modules/qrcode/lib/can-promise.js +6 -0
- package/dist/node_modules/qrcode/lib/core/alignment-pattern.js +21 -0
- package/dist/node_modules/qrcode/lib/core/alphanumeric-data.js +73 -0
- package/dist/node_modules/qrcode/lib/core/bit-buffer.js +24 -0
- package/dist/node_modules/qrcode/lib/core/bit-matrix.js +22 -0
- package/dist/node_modules/qrcode/lib/core/byte-data.js +23 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-code.js +359 -0
- package/dist/node_modules/qrcode/lib/core/error-correction-level.js +35 -0
- package/dist/node_modules/qrcode/lib/core/finder-pattern.js +18 -0
- package/dist/node_modules/qrcode/lib/core/format-info.js +14 -0
- package/dist/node_modules/qrcode/lib/core/galois-field.js +22 -0
- package/dist/node_modules/qrcode/lib/core/kanji-data.js +37 -0
- package/dist/node_modules/qrcode/lib/core/mask-pattern.js +96 -0
- package/dist/node_modules/qrcode/lib/core/mode.js +64 -0
- package/dist/node_modules/qrcode/lib/core/numeric-data.js +26 -0
- package/dist/node_modules/qrcode/lib/core/polynomial.js +29 -0
- package/dist/node_modules/qrcode/lib/core/qrcode.js +159 -0
- package/dist/node_modules/qrcode/lib/core/reed-solomon-encoder.js +25 -0
- package/dist/node_modules/qrcode/lib/core/regex.js +24 -0
- package/dist/node_modules/qrcode/lib/core/segments.js +143 -0
- package/dist/node_modules/qrcode/lib/core/utils.js +74 -0
- package/dist/node_modules/qrcode/lib/core/version-check.js +7 -0
- package/dist/node_modules/qrcode/lib/core/version.js +74 -0
- package/dist/node_modules/qrcode/lib/renderer/canvas.js +27 -0
- package/dist/node_modules/qrcode/lib/renderer/svg-tag.js +28 -0
- package/dist/node_modules/qrcode/lib/renderer/utils.js +52 -0
- package/dist/style.css +14834 -1
- package/dist/style.less +14834 -0
- package/package.json +12 -4
- package/dist/components/__tests__/XAffix.test.d.ts +0 -1
- package/dist/components/__tests__/XButton.test.d.ts +0 -1
- package/dist/components/__tests__/XCard.test.d.ts +0 -1
- package/dist/components/__tests__/XCarousel.test.d.ts +0 -1
- package/dist/components/__tests__/XCascader.test.d.ts +0 -1
- package/dist/components/__tests__/XCropper.test.d.ts +0 -1
- package/dist/components/__tests__/XMention.test.d.ts +0 -1
- package/dist/components/__tests__/XMenuAccordion.test.d.ts +0 -1
- package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
- package/dist/components/__tests__/XSwitch.test.d.ts +0 -1
- package/dist/components/__tests__/XTable.test.d.ts +0 -1
- package/dist/components/__tests__/XTag.test.d.ts +0 -1
- package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
- package/dist/components/__tests__/XTree.test.d.ts +0 -1
- package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
- package/dist/favicon.ico +0 -1
- package/dist/favicon.svg +0 -5
- package/dist/images/carousel-0.png +0 -0
- package/dist/images/carousel-2.png +0 -0
- package/dist/images/carousel-3.png +0 -0
- package/dist/images/image-1.png +0 -0
- package/dist/img/avatar-1.jpg +0 -0
- package/dist/img/avatar.jpg +0 -0
- package/dist/img/avatar0.jpg +0 -0
- package/dist/img/avatar1.jpg +0 -0
- package/dist/img/image-1.png +0 -0
- package/dist/img/image-2.png +0 -0
- package/dist/img/image-3.png +0 -0
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ref as b, provide as k, onMounted as d, onUnmounted as h, computed as p, inject as D } from "vue";
|
|
2
|
+
import { DataCollectorInjectionKey as y } from "../menu-context.js";
|
|
3
|
+
const v = (t) => t === void 0;
|
|
4
|
+
function M(t, o) {
|
|
5
|
+
const n = [], e = (u) => {
|
|
6
|
+
u.forEach((r) => {
|
|
7
|
+
o(r) && n.push(r.key), r.children && e(r.children);
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
return e(t), n;
|
|
11
|
+
}
|
|
12
|
+
function I(t = !1) {
|
|
13
|
+
return t ? void 0 : D(y);
|
|
14
|
+
}
|
|
15
|
+
function j(t) {
|
|
16
|
+
const { key: o, type: n } = t, e = b([]), u = I(n === "menu");
|
|
17
|
+
return k(y, {
|
|
18
|
+
collectSubMenu(l, a, f = !1) {
|
|
19
|
+
const s = {
|
|
20
|
+
key: l,
|
|
21
|
+
children: a
|
|
22
|
+
}, i = e.value.findIndex((c) => c.key === l);
|
|
23
|
+
if (f)
|
|
24
|
+
if (i > -1) {
|
|
25
|
+
const c = [...e.value];
|
|
26
|
+
c[i] = s, e.value = c;
|
|
27
|
+
} else
|
|
28
|
+
e.value.push(s);
|
|
29
|
+
else {
|
|
30
|
+
if (i > -1)
|
|
31
|
+
return;
|
|
32
|
+
e.value = [...e.value, s];
|
|
33
|
+
}
|
|
34
|
+
f && (n === "popupMenu" ? u == null || u.reportMenuData(e.value) : n === "subMenu" && !v(o) && (u == null || u.collectSubMenu(o, e.value, !0)));
|
|
35
|
+
},
|
|
36
|
+
removeSubMenu(l) {
|
|
37
|
+
e.value = e.value.filter((a) => a.key !== l);
|
|
38
|
+
},
|
|
39
|
+
collectMenuItem(l) {
|
|
40
|
+
e.value.some((a) => a.key === l) || e.value.push({ key: l });
|
|
41
|
+
},
|
|
42
|
+
removeMenuItem(l) {
|
|
43
|
+
e.value = e.value.filter((a) => a.key !== l);
|
|
44
|
+
},
|
|
45
|
+
reportMenuData(l) {
|
|
46
|
+
e.value = l, n === "subMenu" && !v(o) && (u == null || u.collectSubMenu(o, e.value, !0));
|
|
47
|
+
}
|
|
48
|
+
}), n === "subMenu" && !v(o) ? (d(() => {
|
|
49
|
+
u == null || u.collectSubMenu(o, e.value);
|
|
50
|
+
}), h(() => {
|
|
51
|
+
u == null || u.removeSubMenu(o);
|
|
52
|
+
})) : n === "popupMenu" && d(() => {
|
|
53
|
+
u == null || u.reportMenuData(e.value);
|
|
54
|
+
}), {
|
|
55
|
+
menuData: e,
|
|
56
|
+
subMenuKeys: p(() => M(e.value, (l) => !!l.children)),
|
|
57
|
+
menuItemKeys: p(() => M(e.value, (l) => !l.children))
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
j as default,
|
|
62
|
+
I as useMenuDataCollectorContext
|
|
63
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { toRefs as M, ref as x, watch as S, onMounted as y, computed as A } from "vue";
|
|
2
|
+
const h = (l) => l === void 0, B = "__x_menu_root__";
|
|
3
|
+
function m(l, t) {
|
|
4
|
+
const u = [], a = (v) => {
|
|
5
|
+
for (let s = 0; s < v.length; s++) {
|
|
6
|
+
const c = v[s];
|
|
7
|
+
if (c.key === t)
|
|
8
|
+
return !0;
|
|
9
|
+
if (c.children) {
|
|
10
|
+
if (u.push(c.key), a(c.children))
|
|
11
|
+
return !0;
|
|
12
|
+
u.pop();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return !1;
|
|
16
|
+
};
|
|
17
|
+
return a(l), u;
|
|
18
|
+
}
|
|
19
|
+
function E(l, t) {
|
|
20
|
+
return l.length !== t.length ? !1 : l.toString() === t.toString();
|
|
21
|
+
}
|
|
22
|
+
function g(l, t, u) {
|
|
23
|
+
if (!l) return [];
|
|
24
|
+
const a = [...new Set(l)];
|
|
25
|
+
if (!t) return a;
|
|
26
|
+
const v = /* @__PURE__ */ new Map();
|
|
27
|
+
a.forEach((n) => {
|
|
28
|
+
const o = m(u, n), K = o[o.length - 1] ?? B;
|
|
29
|
+
v.set(K, n);
|
|
30
|
+
});
|
|
31
|
+
const s = Array.from(v.values()), c = new Set(s);
|
|
32
|
+
return s.filter(
|
|
33
|
+
(n) => m(u, n).every((o) => c.has(o))
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function P(l, t, u) {
|
|
37
|
+
return l.filter(
|
|
38
|
+
(a) => a !== u && !m(t, a).includes(u)
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
function T(l) {
|
|
42
|
+
const {
|
|
43
|
+
modelValue: t,
|
|
44
|
+
defaultValue: u,
|
|
45
|
+
autoOpen: a,
|
|
46
|
+
autoOpenSelected: v,
|
|
47
|
+
subMenuKeys: s,
|
|
48
|
+
selectedKeys: c,
|
|
49
|
+
menuData: n,
|
|
50
|
+
accordion: o
|
|
51
|
+
} = M(l), K = x(
|
|
52
|
+
g(
|
|
53
|
+
h(t.value) ? h(u.value) ? [] : u.value : t.value,
|
|
54
|
+
o.value,
|
|
55
|
+
n.value
|
|
56
|
+
)
|
|
57
|
+
), d = (e) => {
|
|
58
|
+
K.value = g(e, o.value, n.value);
|
|
59
|
+
};
|
|
60
|
+
S(t, () => {
|
|
61
|
+
h(t.value) && d([]);
|
|
62
|
+
}), S(u, (e) => {
|
|
63
|
+
h(t.value) && !h(e) && d(e);
|
|
64
|
+
});
|
|
65
|
+
let _ = [];
|
|
66
|
+
y(() => {
|
|
67
|
+
_ = [...s.value];
|
|
68
|
+
let e = [];
|
|
69
|
+
if (a.value && (e = o.value ? s.value.slice(0, 1) : [...s.value]), v.value) {
|
|
70
|
+
const f = c.value.map(
|
|
71
|
+
(r) => m(n.value, r)
|
|
72
|
+
);
|
|
73
|
+
f.length && (!a.value || o.value) && (e = o.value ? f[0] : [...new Set([].concat(...f))]);
|
|
74
|
+
}
|
|
75
|
+
e.length && d(e);
|
|
76
|
+
});
|
|
77
|
+
let w = !1;
|
|
78
|
+
S(s, (e, f = []) => {
|
|
79
|
+
if (w || !E(e, _)) {
|
|
80
|
+
const r = i.value.filter(
|
|
81
|
+
(O) => e.includes(O)
|
|
82
|
+
);
|
|
83
|
+
if (a.value) {
|
|
84
|
+
const O = e.filter((p) => !f.includes(p));
|
|
85
|
+
r.push(...O);
|
|
86
|
+
}
|
|
87
|
+
d(r);
|
|
88
|
+
}
|
|
89
|
+
w = !0;
|
|
90
|
+
});
|
|
91
|
+
const i = A(
|
|
92
|
+
() => g(
|
|
93
|
+
h(t.value) ? K.value : t.value,
|
|
94
|
+
o.value,
|
|
95
|
+
n.value
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
return {
|
|
99
|
+
openKeys: i,
|
|
100
|
+
localOpenKeys: K,
|
|
101
|
+
setOpenKeys: d,
|
|
102
|
+
open(e, f) {
|
|
103
|
+
let r = [];
|
|
104
|
+
if (f === 1 && i.value.indexOf(e) > -1) {
|
|
105
|
+
const O = i.value.filter(
|
|
106
|
+
(p) => p === e || m(n.value, p).includes(e)
|
|
107
|
+
);
|
|
108
|
+
r = [e, ...O.filter((p) => p !== e)];
|
|
109
|
+
} else i.value.indexOf(e) > -1 ? r = P(i.value, n.value, e) : o.value ? r = g(
|
|
110
|
+
i.value.concat(m(n.value, e), [e]),
|
|
111
|
+
!0,
|
|
112
|
+
n.value
|
|
113
|
+
) : r = i.value.concat([e]);
|
|
114
|
+
return d(r), r;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export {
|
|
119
|
+
T as default
|
|
120
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getCurrentInstance as a, computed as u, unref as d } from "vue";
|
|
2
|
+
const o = /* @__PURE__ */ (() => {
|
|
3
|
+
let e = 0;
|
|
4
|
+
return (r = "") => (e += 1, `${r}${e}`);
|
|
5
|
+
})(), n = (e) => {
|
|
6
|
+
if (!(e == null || e === ""))
|
|
7
|
+
return String(e);
|
|
8
|
+
};
|
|
9
|
+
function f(e) {
|
|
10
|
+
const r = a(), t = (e == null ? void 0 : e.componentName) || "MenuNode", c = u(() => n(d(e == null ? void 0 : e.menuKey))), l = u(() => n(r == null ? void 0 : r.vnode.key)), m = u(
|
|
11
|
+
() => `__x_menu_auto_${t}_${(r == null ? void 0 : r.uid) ?? o("local_")}`
|
|
12
|
+
);
|
|
13
|
+
return {
|
|
14
|
+
key: u(() => c.value || l.value || m.value)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
f as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { ref as C, watch as x, onBeforeUnmount as W, nextTick as z } from "vue";
|
|
2
|
+
function m(e, t) {
|
|
3
|
+
return e === void 0 ? t : typeof e == "object" && e !== null && "value" in e ? e.value : e;
|
|
4
|
+
}
|
|
5
|
+
function D(e) {
|
|
6
|
+
const [t, l] = e.split("-");
|
|
7
|
+
return {
|
|
8
|
+
side: t,
|
|
9
|
+
align: l ?? "center"
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function j(e) {
|
|
13
|
+
switch (e) {
|
|
14
|
+
case "top":
|
|
15
|
+
return "bottom";
|
|
16
|
+
case "bottom":
|
|
17
|
+
return "top";
|
|
18
|
+
case "left":
|
|
19
|
+
return "right";
|
|
20
|
+
default:
|
|
21
|
+
return "left";
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function b(e, t, l) {
|
|
25
|
+
return l < t ? t : Math.min(Math.max(e, t), l);
|
|
26
|
+
}
|
|
27
|
+
function $(e, t, l, n, r) {
|
|
28
|
+
switch (e) {
|
|
29
|
+
case "top":
|
|
30
|
+
return t.top >= l.height + n + r;
|
|
31
|
+
case "bottom":
|
|
32
|
+
return window.innerHeight - t.bottom >= l.height + n + r;
|
|
33
|
+
case "left":
|
|
34
|
+
return t.left >= l.width + n + r;
|
|
35
|
+
case "right":
|
|
36
|
+
return window.innerWidth - t.right >= l.width + n + r;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function k(e, t) {
|
|
40
|
+
return e ? Array.isArray(e) ? e : e[t] ?? [0, 0] : [0, 0];
|
|
41
|
+
}
|
|
42
|
+
function I(e) {
|
|
43
|
+
return typeof DOMRect < "u" ? new DOMRect(e.x, e.y, 0, 0) : {
|
|
44
|
+
x: e.x,
|
|
45
|
+
y: e.y,
|
|
46
|
+
width: 0,
|
|
47
|
+
height: 0,
|
|
48
|
+
top: e.y,
|
|
49
|
+
bottom: e.y,
|
|
50
|
+
left: e.x,
|
|
51
|
+
right: e.x,
|
|
52
|
+
toJSON: () => ({})
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function B(e) {
|
|
56
|
+
const t = e.querySelector('[data-trigger-anchor="true"]');
|
|
57
|
+
if (t)
|
|
58
|
+
return t;
|
|
59
|
+
const l = e.getBoundingClientRect();
|
|
60
|
+
return (l.width === 0 || l.height === 0) && e.firstElementChild instanceof HTMLElement ? e.firstElementChild : e;
|
|
61
|
+
}
|
|
62
|
+
function J(e, t, l, n, r, v, d, o) {
|
|
63
|
+
const s = D(l), A = j(s.side);
|
|
64
|
+
let h = s.side;
|
|
65
|
+
d && !v && !$(s.side, e, t, n, r) && $(A, e, t, n, r) && (h = A);
|
|
66
|
+
let c = 0, u = 0;
|
|
67
|
+
h === "top" || h === "bottom" ? (s.align === "start" ? u = e.left : s.align === "end" ? u = e.right - t.width : u = e.left + e.width / 2 - t.width / 2, c = h === "top" ? e.top - t.height - n : e.bottom + n, d && !v && (u = b(u, r, window.innerWidth - t.width - r), c = b(c, r, window.innerHeight - t.height - r))) : (s.align === "start" ? c = e.top : s.align === "end" ? c = e.bottom - t.height : c = e.top + e.height / 2 - t.height / 2, u = h === "left" ? e.left - t.width - n : e.right + n, d && !v && (c = b(c, r, window.innerHeight - t.height - r), u = b(u, r, window.innerWidth - t.width - r)));
|
|
68
|
+
const y = `${h}${s.align === "center" ? "" : `-${s.align}`}`, [E, w] = k(o, y);
|
|
69
|
+
return {
|
|
70
|
+
top: c + w,
|
|
71
|
+
left: u + E,
|
|
72
|
+
placement: y
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function V(e, t, l, n) {
|
|
76
|
+
const r = C({}), v = C(n.placement.value);
|
|
77
|
+
let d = 0, o = null;
|
|
78
|
+
const s = () => m(n.offset, 8), A = () => m(n.viewportPadding, 8), h = () => m(n.allowOverflow, !1), c = () => {
|
|
79
|
+
var i;
|
|
80
|
+
return ((i = n.autoFitPosition) == null ? void 0 : i.value) ?? !0;
|
|
81
|
+
}, u = () => {
|
|
82
|
+
var i;
|
|
83
|
+
return ((i = n.alignPoint) == null ? void 0 : i.value) ?? !1;
|
|
84
|
+
}, y = () => {
|
|
85
|
+
var i;
|
|
86
|
+
return ((i = n.updateAtScroll) == null ? void 0 : i.value) ?? !0;
|
|
87
|
+
}, E = () => {
|
|
88
|
+
var i;
|
|
89
|
+
return ((i = n.autoFixPosition) == null ? void 0 : i.value) ?? !0;
|
|
90
|
+
}, w = async () => {
|
|
91
|
+
var S, M;
|
|
92
|
+
if (!l.value) return;
|
|
93
|
+
await z();
|
|
94
|
+
const i = e.value, f = t.value;
|
|
95
|
+
if (!i || !f) return;
|
|
96
|
+
const U = u(), O = (S = n.point) == null ? void 0 : S.value, q = B(i), T = U && O ? I(O) : q.getBoundingClientRect(), F = J(
|
|
97
|
+
T,
|
|
98
|
+
f.getBoundingClientRect(),
|
|
99
|
+
n.placement.value,
|
|
100
|
+
s(),
|
|
101
|
+
A(),
|
|
102
|
+
h(),
|
|
103
|
+
c(),
|
|
104
|
+
(M = n.translate) == null ? void 0 : M.value
|
|
105
|
+
);
|
|
106
|
+
v.value = F.placement, r.value = {
|
|
107
|
+
position: "fixed",
|
|
108
|
+
top: `${F.top}px`,
|
|
109
|
+
left: `${F.left}px`
|
|
110
|
+
};
|
|
111
|
+
}, a = () => {
|
|
112
|
+
cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
113
|
+
w();
|
|
114
|
+
});
|
|
115
|
+
}, H = () => {
|
|
116
|
+
cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
117
|
+
w();
|
|
118
|
+
});
|
|
119
|
+
}, P = () => {
|
|
120
|
+
typeof ResizeObserver > "u" || (o == null || o.disconnect(), o = new ResizeObserver(() => {
|
|
121
|
+
a();
|
|
122
|
+
}), E() && e.value && o.observe(B(e.value)), t.value && o.observe(t.value));
|
|
123
|
+
}, L = () => {
|
|
124
|
+
o == null || o.disconnect(), o = null;
|
|
125
|
+
};
|
|
126
|
+
return x(
|
|
127
|
+
() => {
|
|
128
|
+
var i, f;
|
|
129
|
+
return [l.value, n.placement.value, (i = n.updateAtScroll) == null ? void 0 : i.value, (f = n.autoFixPosition) == null ? void 0 : f.value];
|
|
130
|
+
},
|
|
131
|
+
([i]) => {
|
|
132
|
+
window.removeEventListener("resize", a), window.removeEventListener("scroll", a, !0), window.removeEventListener("scroll", a, !1), L(), i && (H(), P(), window.addEventListener("resize", a), y() && window.addEventListener("scroll", a, !0));
|
|
133
|
+
},
|
|
134
|
+
{ immediate: !0 }
|
|
135
|
+
), x([e, t], () => {
|
|
136
|
+
l.value && (P(), a());
|
|
137
|
+
}), n.point && x(
|
|
138
|
+
n.point,
|
|
139
|
+
() => {
|
|
140
|
+
l.value && u() && a();
|
|
141
|
+
},
|
|
142
|
+
{ deep: !0 }
|
|
143
|
+
), x(
|
|
144
|
+
() => {
|
|
145
|
+
var i;
|
|
146
|
+
return (i = n.translate) == null ? void 0 : i.value;
|
|
147
|
+
},
|
|
148
|
+
() => {
|
|
149
|
+
l.value && a();
|
|
150
|
+
},
|
|
151
|
+
{ deep: !0 }
|
|
152
|
+
), x(
|
|
153
|
+
() => {
|
|
154
|
+
var i, f;
|
|
155
|
+
return [
|
|
156
|
+
m(n.offset, 8),
|
|
157
|
+
m(n.viewportPadding, 8),
|
|
158
|
+
m(n.allowOverflow, !1),
|
|
159
|
+
((i = n.autoFitPosition) == null ? void 0 : i.value) ?? !0,
|
|
160
|
+
((f = n.alignPoint) == null ? void 0 : f.value) ?? !1
|
|
161
|
+
];
|
|
162
|
+
},
|
|
163
|
+
() => {
|
|
164
|
+
l.value && a();
|
|
165
|
+
},
|
|
166
|
+
{ deep: !0 }
|
|
167
|
+
), W(() => {
|
|
168
|
+
cancelAnimationFrame(d), window.removeEventListener("resize", a), window.removeEventListener("scroll", a, !0), window.removeEventListener("scroll", a, !1), L();
|
|
169
|
+
}), {
|
|
170
|
+
popupStyle: r,
|
|
171
|
+
resolvedPlacement: v,
|
|
172
|
+
updatePosition: w
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
export {
|
|
176
|
+
V as usePopupPosition
|
|
177
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function initScrollbarVisibility(): void;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const i = "x-scrollbar--scrolling", c = "x-native-scrollbar-container", d = "x-scrollbar-container";
|
|
2
|
+
const a = "__xScrollbarVisibilityState__", f = [
|
|
3
|
+
"x-input",
|
|
4
|
+
"x-badge",
|
|
5
|
+
"x-avatar",
|
|
6
|
+
"x-image",
|
|
7
|
+
"x-cropper",
|
|
8
|
+
"x-switch",
|
|
9
|
+
"x-slider",
|
|
10
|
+
"x-page-header",
|
|
11
|
+
"x-icon",
|
|
12
|
+
"x-button",
|
|
13
|
+
"x-link",
|
|
14
|
+
"x-tag",
|
|
15
|
+
"x-radio",
|
|
16
|
+
"x-checkbox",
|
|
17
|
+
"x-rate",
|
|
18
|
+
"x-input-tag",
|
|
19
|
+
"x-cascader"
|
|
20
|
+
];
|
|
21
|
+
function S(t) {
|
|
22
|
+
return f.some((n) => t === n || t.startsWith(`${n}-`) || t.startsWith(`${n}__`));
|
|
23
|
+
}
|
|
24
|
+
function L(t) {
|
|
25
|
+
for (const n of t.classList)
|
|
26
|
+
if (n.startsWith("x-") && !S(n))
|
|
27
|
+
return !0;
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
function l(t) {
|
|
31
|
+
return t === "auto" || t === "scroll" || t === "overlay";
|
|
32
|
+
}
|
|
33
|
+
function _(t) {
|
|
34
|
+
const n = window.getComputedStyle(t), e = l(n.overflowY) && t.scrollHeight - t.clientHeight > 1;
|
|
35
|
+
return l(n.overflowX) && t.scrollWidth - t.clientWidth > 1 || e;
|
|
36
|
+
}
|
|
37
|
+
function u(t) {
|
|
38
|
+
return t.classList.contains(d) || !L(t) || !_(t) ? (t.classList.remove(c), !1) : (t.classList.add(c), !0);
|
|
39
|
+
}
|
|
40
|
+
function b() {
|
|
41
|
+
const t = document.querySelectorAll('[class^="x-"], [class*=" x-"]');
|
|
42
|
+
for (const n of t)
|
|
43
|
+
u(n);
|
|
44
|
+
}
|
|
45
|
+
function s(t) {
|
|
46
|
+
t.scanRafId === null && (t.scanRafId = window.requestAnimationFrame(() => {
|
|
47
|
+
t.scanRafId = null, b();
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
function x(t) {
|
|
51
|
+
let n = t instanceof HTMLElement ? t : null;
|
|
52
|
+
for (; n && n !== document.body && n !== document.documentElement; ) {
|
|
53
|
+
if (u(n))
|
|
54
|
+
return n;
|
|
55
|
+
n = n.parentElement;
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
function E(t, n) {
|
|
60
|
+
t.classList.add(i);
|
|
61
|
+
const e = n.get(t);
|
|
62
|
+
e && window.clearTimeout(e);
|
|
63
|
+
const r = window.setTimeout(() => {
|
|
64
|
+
t.classList.remove(i), n.delete(t);
|
|
65
|
+
}, 520);
|
|
66
|
+
n.set(t, r);
|
|
67
|
+
}
|
|
68
|
+
function R() {
|
|
69
|
+
var e;
|
|
70
|
+
if (typeof window > "u" || typeof document > "u")
|
|
71
|
+
return;
|
|
72
|
+
const t = globalThis;
|
|
73
|
+
if ((e = t[a]) != null && e.initialized)
|
|
74
|
+
return;
|
|
75
|
+
const n = {
|
|
76
|
+
initialized: !0,
|
|
77
|
+
timers: /* @__PURE__ */ new WeakMap(),
|
|
78
|
+
scanRafId: null
|
|
79
|
+
};
|
|
80
|
+
t[a] = n, s(n), window.addEventListener("resize", () => {
|
|
81
|
+
s(n);
|
|
82
|
+
}, { passive: !0 }), document.body && new MutationObserver(() => {
|
|
83
|
+
s(n);
|
|
84
|
+
}).observe(document.body, {
|
|
85
|
+
subtree: !0,
|
|
86
|
+
childList: !0,
|
|
87
|
+
attributes: !0,
|
|
88
|
+
attributeFilter: ["class", "style"]
|
|
89
|
+
}), document.addEventListener("scroll", (r) => {
|
|
90
|
+
const o = x(r.target);
|
|
91
|
+
o && E(o, n.timers);
|
|
92
|
+
}, { capture: !0, passive: !0 });
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
R as initScrollbarVisibility
|
|
96
|
+
};
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import { ComputedRef, InjectionKey } from 'vue';
|
|
1
|
+
import { ComputedRef, InjectionKey, Slots } from 'vue';
|
|
2
|
+
export type XTabsPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
3
|
+
export type XTabsDirection = 'horizontal' | 'vertical';
|
|
4
|
+
export type XTabsType = 'line' | 'card' | 'card-gutter' | 'text' | 'rounded' | 'capsule';
|
|
5
|
+
export type XTabsSize = 'mini' | 'small' | 'medium' | 'large';
|
|
6
|
+
export type XTabTriggerEvent = 'click' | 'hover';
|
|
7
|
+
export type XTabScrollPosition = 'start' | 'end' | 'center' | 'auto' | number;
|
|
2
8
|
export interface XTabPaneRecord {
|
|
3
|
-
|
|
4
|
-
|
|
9
|
+
uid: number;
|
|
10
|
+
key: string | number;
|
|
11
|
+
title?: string;
|
|
5
12
|
disabled?: boolean;
|
|
6
13
|
closable?: boolean;
|
|
7
14
|
destroyOnHide?: boolean;
|
|
15
|
+
slots: Slots;
|
|
8
16
|
}
|
|
9
17
|
export interface XTabsContext {
|
|
10
|
-
activeKey: ComputedRef<string>;
|
|
18
|
+
activeKey: ComputedRef<string | number | undefined>;
|
|
19
|
+
lazyLoad: ComputedRef<boolean>;
|
|
11
20
|
destroyOnHide: ComputedRef<boolean>;
|
|
12
|
-
|
|
21
|
+
trigger: ComputedRef<XTabTriggerEvent>;
|
|
13
22
|
register: (pane: XTabPaneRecord) => void;
|
|
14
|
-
unregister: (
|
|
15
|
-
select: (key: string) => void;
|
|
23
|
+
unregister: (uid: number) => void;
|
|
16
24
|
}
|
|
17
25
|
export declare const xTabsKey: InjectionKey<XTabsContext>;
|
|
18
|
-
export declare function resolveTabsClassName(type:
|
|
26
|
+
export declare function resolveTabsClassName(type: XTabsType, size: XTabsSize, direction: XTabsDirection, position: XTabsPosition, justify: boolean): ComputedRef<(string | {
|
|
27
|
+
'x-tabs--justify': boolean;
|
|
28
|
+
})[]>;
|
|
29
|
+
export declare function updateTabsScrollOffset(parentNode: HTMLElement, direction: XTabsDirection): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
const f = Symbol("x-tabs");
|
|
3
|
+
function r(l, o) {
|
|
4
|
+
const { scrollTop: s, scrollLeft: t } = l;
|
|
5
|
+
o === "horizontal" && t && l.scrollTo({ left: -1 * t }), o === "vertical" && s && l.scrollTo({ top: -1 * s });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
r as updateTabsScrollOffset,
|
|
9
|
+
f as xTabsKey
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface DarkThemeContextOptions {
|
|
2
|
+
includeDescendants?: boolean;
|
|
3
|
+
checkDocumentRoot?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export type XThemeMode = 'light' | 'dark';
|
|
6
|
+
export declare function hasDarkThemeContext(element: HTMLElement | null, options?: DarkThemeContextOptions): boolean;
|
|
7
|
+
export declare function resolveDarkThemeEnabled(theme?: XThemeMode, contextElement?: HTMLElement | null): boolean;
|
|
8
|
+
export declare function syncThemeContextToElement(element: HTMLElement, theme?: XThemeMode, contextElement?: HTMLElement | null): void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function a(e) {
|
|
2
|
+
return e ? e.getAttribute("theme") === "dark" || e.getAttribute("data-theme") === "dark" || e.classList.contains("x-theme-dark") : !1;
|
|
3
|
+
}
|
|
4
|
+
function u(e, t = {}) {
|
|
5
|
+
let r = e;
|
|
6
|
+
for (; r; ) {
|
|
7
|
+
if (a(r))
|
|
8
|
+
return !0;
|
|
9
|
+
r = r.parentElement;
|
|
10
|
+
}
|
|
11
|
+
return t.includeDescendants && e && e.querySelector('[theme="dark"], [data-theme="dark"], .x-theme-dark') ? !0 : t.checkDocumentRoot === !1 || typeof document > "u" ? !1 : a(document.documentElement);
|
|
12
|
+
}
|
|
13
|
+
function c(e, t) {
|
|
14
|
+
return e === "dark" ? !0 : e === "light" ? !1 : t && u(t, { checkDocumentRoot: !1 }) ? !0 : u(null);
|
|
15
|
+
}
|
|
16
|
+
function i(e, t, r) {
|
|
17
|
+
const n = c(t, r);
|
|
18
|
+
e.classList.toggle("x-theme-dark", n), n ? e.setAttribute("theme", "dark") : e.removeAttribute("theme");
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
u as hasDarkThemeContext,
|
|
22
|
+
c as resolveDarkThemeEnabled,
|
|
23
|
+
i as syncThemeContextToElement
|
|
24
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ref as u, watch as c } from "vue";
|
|
2
|
+
const r = "rhino-design-theme", n = u("light"), t = typeof window < "u" ? window.matchMedia("(prefers-color-scheme: dark)") : null;
|
|
3
|
+
function a(e) {
|
|
4
|
+
if (typeof document > "u") return;
|
|
5
|
+
const o = document.documentElement;
|
|
6
|
+
o.removeAttribute("data-theme"), (e === "dark" || e === "auto" && (t != null && t.matches)) && o.setAttribute("data-theme", "dark");
|
|
7
|
+
}
|
|
8
|
+
function l(e) {
|
|
9
|
+
typeof localStorage < "u" && localStorage.setItem(r, e);
|
|
10
|
+
}
|
|
11
|
+
function f() {
|
|
12
|
+
if (typeof localStorage < "u") {
|
|
13
|
+
const e = localStorage.getItem(r);
|
|
14
|
+
if (e && ["light", "dark", "auto"].includes(e))
|
|
15
|
+
return e;
|
|
16
|
+
}
|
|
17
|
+
return "light";
|
|
18
|
+
}
|
|
19
|
+
function h() {
|
|
20
|
+
n.value === "auto" && a("auto");
|
|
21
|
+
}
|
|
22
|
+
function m() {
|
|
23
|
+
const e = f();
|
|
24
|
+
n.value = e, a(e), t == null || t.addEventListener("change", h);
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
n.value = e, a(e), l(e);
|
|
28
|
+
}
|
|
29
|
+
function d() {
|
|
30
|
+
const e = n.value === "light" ? "dark" : "light";
|
|
31
|
+
i(e);
|
|
32
|
+
}
|
|
33
|
+
function g() {
|
|
34
|
+
return n.value;
|
|
35
|
+
}
|
|
36
|
+
function v() {
|
|
37
|
+
const e = u(n.value);
|
|
38
|
+
return c(n, (o) => {
|
|
39
|
+
e.value = o;
|
|
40
|
+
}), {
|
|
41
|
+
theme: e,
|
|
42
|
+
setTheme: i,
|
|
43
|
+
toggleTheme: d,
|
|
44
|
+
isDark: () => !!(e.value === "dark" || e.value === "auto" && (t != null && t.matches))
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
g as getTheme,
|
|
49
|
+
m as initTheme,
|
|
50
|
+
i as setTheme,
|
|
51
|
+
d as toggleTheme,
|
|
52
|
+
v as useTheme
|
|
53
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ref as o, watch as i } from "vue";
|
|
2
|
+
function s(l, v) {
|
|
3
|
+
const {
|
|
4
|
+
value: a,
|
|
5
|
+
defaultValue: e,
|
|
6
|
+
syncDefaultValue: f = !1
|
|
7
|
+
} = v, t = o(
|
|
8
|
+
(e == null ? void 0 : e.value) !== void 0 ? e.value : l
|
|
9
|
+
), n = (u) => {
|
|
10
|
+
t.value = u;
|
|
11
|
+
};
|
|
12
|
+
return a && i(
|
|
13
|
+
() => a.value,
|
|
14
|
+
(u) => {
|
|
15
|
+
u !== void 0 && (t.value = u);
|
|
16
|
+
},
|
|
17
|
+
{ immediate: !0 }
|
|
18
|
+
), f && e && i(
|
|
19
|
+
() => e.value,
|
|
20
|
+
(u) => {
|
|
21
|
+
(a == null ? void 0 : a.value) === void 0 && (t.value = u);
|
|
22
|
+
}
|
|
23
|
+
), [t, n];
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
s as useMergeState
|
|
27
|
+
};
|