@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,107 @@
|
|
|
1
|
+
import { defineComponent as m, computed as g, onMounted as k, onUpdated as _, onUnmounted as L, openBlock as t, createElementBlock as o, normalizeClass as x, createElementVNode as c, renderSlot as n, createCommentVNode as s, createVNode as b, unref as M } from "vue";
|
|
2
|
+
import u from "../iconfont/generated/icons/guanbi.js";
|
|
3
|
+
import V from "./XIcon.js";
|
|
4
|
+
import "./XIconLite.js";
|
|
5
|
+
import { XIconRegistry as f } from "./x-icon-shared.js";
|
|
6
|
+
const y = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "x-notification__left"
|
|
9
|
+
}, H = { class: "x-notification__icon" }, B = ["innerHTML"], Z = { class: "x-notification__right" }, $ = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "x-notification__title"
|
|
12
|
+
}, T = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "x-notification__content"
|
|
15
|
+
}, I = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "x-notification__footer"
|
|
18
|
+
}, N = {
|
|
19
|
+
class: "x-notification__close-icon-wrap",
|
|
20
|
+
role: "button",
|
|
21
|
+
"aria-label": "close"
|
|
22
|
+
}, A = /* @__PURE__ */ m({
|
|
23
|
+
__name: "XNotification",
|
|
24
|
+
props: {
|
|
25
|
+
type: { default: "info" },
|
|
26
|
+
showIcon: { type: Boolean, default: !0 },
|
|
27
|
+
closable: { type: Boolean, default: !1 },
|
|
28
|
+
duration: { default: 3e3 },
|
|
29
|
+
resetOnUpdate: { type: Boolean, default: !1 }
|
|
30
|
+
},
|
|
31
|
+
emits: ["close"],
|
|
32
|
+
setup(i, { emit: h }) {
|
|
33
|
+
const l = i, w = h;
|
|
34
|
+
f.has("guanbi") || f.register("guanbi", {
|
|
35
|
+
viewBox: u.viewBox,
|
|
36
|
+
content: u.content
|
|
37
|
+
});
|
|
38
|
+
const v = {
|
|
39
|
+
info: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" stroke-width="4"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44ZM26 14C26 13.4477 25.5523 13 25 13H23C22.4477 13 22 13.4477 22 14V16C22 16.5523 22.4477 17 23 17H25C25.5523 17 26 16.5523 26 16V14ZM26 31H27C27.5523 31 28 31.4477 28 32V34C28 34.5523 27.5523 35 27 35H21C20.4477 35 20 34.5523 20 34V32C20 31.4477 20.4477 31 21 31H22V23C21.4477 23 21 22.5523 21 22V20C21 19.4477 21.4477 19 22 19H25C25.5523 19 26 19.4477 26 20V31Z" fill="currentColor" stroke="none" stroke-width="none" stroke-linecap="butt"></path></svg>',
|
|
40
|
+
success: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" stroke-width="4"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44ZM34.2073 19.6214C34.5978 19.2308 34.5978 18.5977 34.2073 18.2071L32.793 16.7929C32.4025 16.4024 31.7694 16.4024 31.3788 16.7929L22.0002 26.1716L17.1215 21.2929C16.7309 20.9024 16.0978 20.9024 15.7073 21.2929L14.293 22.7071C13.9025 23.0977 13.9025 23.7308 14.293 24.1213L21.293 31.1213C21.6836 31.5119 22.3167 31.5119 22.7073 31.1213L34.2073 19.6214Z" fill="currentColor" stroke="none" stroke-width="none" stroke-linecap="butt"></path></svg>',
|
|
41
|
+
warning: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" stroke-width="4"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44ZM22 33C22 33.5523 22.4477 34 23 34H25C25.5523 34 26 33.5523 26 33V31C26 30.4477 25.5523 30 25 30H23C22.4477 30 22 30.4477 22 31V33ZM26 15C26 14.4477 25.5523 14 25 14H23C22.4477 14 22 14.4477 22 15L22 27C22 27.5523 22.4477 28 23 28H25C25.5523 28 26 27.5523 26 27L26 15Z" fill="currentColor" stroke="none" stroke-width="none" stroke-linecap="butt"></path></svg>',
|
|
42
|
+
error: '<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" stroke-width="4"><path fill-rule="evenodd" clip-rule="evenodd" d="M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44ZM28.9547 16.2287L24.005 21.1785L19.0552 16.2287C18.6647 15.8382 18.0315 15.8382 17.641 16.2287L16.2268 17.6429C15.8363 18.0335 15.8363 18.6666 16.2268 19.0571L21.1765 24.0069L16.2268 28.9566C15.8363 29.3472 15.8363 29.9803 16.2268 30.3708L17.641 31.7851C18.0315 32.1756 18.6647 32.1756 19.0552 31.7851L24.005 26.8353L28.9547 31.7851C29.3452 32.1756 29.9784 32.1756 30.3689 31.7851L31.7831 30.3708C32.1737 29.9803 32.1737 29.3472 31.7831 28.9566L26.8334 24.0069L31.7831 19.0571C32.1737 18.6666 32.1737 18.0335 31.7831 17.6429L30.3689 16.2287C29.9784 15.8382 29.3452 15.8382 28.9547 16.2287Z" fill="currentColor" stroke="none" stroke-width="none" stroke-linecap="butt"></path></svg>'
|
|
43
|
+
}, p = g(() => v[l.type]);
|
|
44
|
+
let r = 0;
|
|
45
|
+
const a = () => {
|
|
46
|
+
w("close");
|
|
47
|
+
}, d = () => {
|
|
48
|
+
r && (window.clearTimeout(r), r = 0);
|
|
49
|
+
}, C = () => {
|
|
50
|
+
d(), l.duration > 0 && (r = window.setTimeout(a, l.duration));
|
|
51
|
+
};
|
|
52
|
+
return k(() => {
|
|
53
|
+
C();
|
|
54
|
+
}), _(() => {
|
|
55
|
+
l.resetOnUpdate && C();
|
|
56
|
+
}), L(() => {
|
|
57
|
+
d();
|
|
58
|
+
}), (e, S) => (t(), o("li", {
|
|
59
|
+
role: "alert",
|
|
60
|
+
class: x(["x-notification", [
|
|
61
|
+
`x-notification--${i.type}`,
|
|
62
|
+
{ "x-notification--closable": i.closable }
|
|
63
|
+
]])
|
|
64
|
+
}, [
|
|
65
|
+
i.showIcon ? (t(), o("div", y, [
|
|
66
|
+
c("div", H, [
|
|
67
|
+
n(e.$slots, "icon", {}, () => [
|
|
68
|
+
c("span", {
|
|
69
|
+
class: "x-notification__status-svg",
|
|
70
|
+
innerHTML: p.value
|
|
71
|
+
}, null, 8, B)
|
|
72
|
+
], !0)
|
|
73
|
+
])
|
|
74
|
+
])) : s("", !0),
|
|
75
|
+
c("div", Z, [
|
|
76
|
+
e.$slots.default ? (t(), o("div", $, [
|
|
77
|
+
n(e.$slots, "default", {}, void 0, !0)
|
|
78
|
+
])) : s("", !0),
|
|
79
|
+
e.$slots.content ? (t(), o("div", T, [
|
|
80
|
+
n(e.$slots, "content", {}, void 0, !0)
|
|
81
|
+
])) : s("", !0),
|
|
82
|
+
e.$slots.footer ? (t(), o("div", I, [
|
|
83
|
+
n(e.$slots, "footer", {}, void 0, !0)
|
|
84
|
+
])) : s("", !0)
|
|
85
|
+
]),
|
|
86
|
+
i.closable ? (t(), o("div", {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: "x-notification__close-btn",
|
|
89
|
+
onClick: a
|
|
90
|
+
}, [
|
|
91
|
+
n(e.$slots, "closeIconElement", {}, () => [
|
|
92
|
+
c("span", N, [
|
|
93
|
+
n(e.$slots, "closeIcon", {}, () => [
|
|
94
|
+
b(M(V), {
|
|
95
|
+
name: "guanbi",
|
|
96
|
+
size: 12
|
|
97
|
+
})
|
|
98
|
+
], !0)
|
|
99
|
+
])
|
|
100
|
+
], !0)
|
|
101
|
+
])) : s("", !0)
|
|
102
|
+
], 2));
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export {
|
|
106
|
+
A as default
|
|
107
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { NotificationItem, NotificationPosition } from './XNotificationService';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
notifications: {
|
|
5
|
+
type: PropType<NotificationItem[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
position: {
|
|
9
|
+
type: PropType<NotificationPosition>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
zIndex: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "afterClose")[], "close" | "afterClose", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
|
+
notifications: {
|
|
20
|
+
type: PropType<NotificationItem[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
position: {
|
|
24
|
+
type: PropType<NotificationPosition>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
zIndex: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
}>> & Readonly<{
|
|
32
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
onAfterClose?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
position: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
36
|
+
zIndex: number;
|
|
37
|
+
notifications: NotificationItem[];
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as c, h as i, TransitionGroup as r } from "vue";
|
|
2
|
+
import f from "./XNotification.vue.js";
|
|
3
|
+
function u(t) {
|
|
4
|
+
return t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
5
|
+
}
|
|
6
|
+
function n(t) {
|
|
7
|
+
if (t != null)
|
|
8
|
+
return typeof t == "function" ? t : () => t;
|
|
9
|
+
}
|
|
10
|
+
const y = c({
|
|
11
|
+
name: "XNotificationList",
|
|
12
|
+
props: {
|
|
13
|
+
notifications: {
|
|
14
|
+
type: Array,
|
|
15
|
+
default: () => []
|
|
16
|
+
},
|
|
17
|
+
position: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "topRight"
|
|
20
|
+
},
|
|
21
|
+
zIndex: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 2003
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
emits: ["close", "afterClose"],
|
|
27
|
+
setup(t, { emit: e }) {
|
|
28
|
+
const s = t.position.includes("Right"), l = `x-notification-list--${u(t.position)}`;
|
|
29
|
+
return () => i(
|
|
30
|
+
r,
|
|
31
|
+
{
|
|
32
|
+
class: ["x-notification-list", l],
|
|
33
|
+
style: { zIndex: `${t.zIndex}` },
|
|
34
|
+
name: s ? "slide-right-notification" : "slide-left-notification",
|
|
35
|
+
onAfterLeave: () => e("afterClose"),
|
|
36
|
+
tag: "ul"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
default: () => t.notifications.map((o) => {
|
|
40
|
+
const a = {
|
|
41
|
+
default: n(o.title),
|
|
42
|
+
content: n(o.content),
|
|
43
|
+
icon: n(o.icon),
|
|
44
|
+
footer: n(o.footer),
|
|
45
|
+
closeIcon: n(o.closeIcon),
|
|
46
|
+
closeIconElement: n(o.closeIconElement)
|
|
47
|
+
};
|
|
48
|
+
return i(
|
|
49
|
+
f,
|
|
50
|
+
{
|
|
51
|
+
key: o.id,
|
|
52
|
+
type: o.type,
|
|
53
|
+
style: o.style,
|
|
54
|
+
class: o.class,
|
|
55
|
+
duration: o.duration,
|
|
56
|
+
closable: o.closable,
|
|
57
|
+
showIcon: o.showIcon,
|
|
58
|
+
resetOnUpdate: o.resetOnUpdate,
|
|
59
|
+
onClose: () => e("close", o.id)
|
|
60
|
+
},
|
|
61
|
+
a
|
|
62
|
+
);
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
export {
|
|
69
|
+
y as default
|
|
70
|
+
};
|
|
@@ -1,20 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { App, AppContext, CSSProperties, VNodeChild } from 'vue';
|
|
2
|
+
import { XThemeMode } from '../composables/theme-context';
|
|
3
|
+
export declare const NOTIFICATION_TYPES: readonly ["info", "success", "warning", "error"];
|
|
4
|
+
export declare const NOTIFICATION_POSITIONS: readonly ["topLeft", "topRight", "bottomLeft", "bottomRight"];
|
|
5
|
+
export type NotificationType = typeof NOTIFICATION_TYPES[number];
|
|
6
|
+
export type NotificationPosition = typeof NOTIFICATION_POSITIONS[number];
|
|
7
|
+
export type NotificationRenderFunction = () => VNodeChild;
|
|
8
|
+
export type NotificationRenderContent = VNodeChild | (() => VNodeChild);
|
|
9
|
+
export interface NotificationConfig {
|
|
10
|
+
content: NotificationRenderContent;
|
|
11
|
+
title?: NotificationRenderContent;
|
|
12
|
+
theme?: XThemeMode;
|
|
13
|
+
icon?: NotificationRenderFunction;
|
|
14
|
+
id?: string;
|
|
15
|
+
style?: CSSProperties;
|
|
16
|
+
class?: unknown;
|
|
17
|
+
position?: NotificationPosition;
|
|
18
|
+
showIcon?: boolean;
|
|
6
19
|
closable?: boolean;
|
|
20
|
+
duration?: number;
|
|
21
|
+
footer?: NotificationRenderFunction;
|
|
22
|
+
closeIcon?: NotificationRenderFunction;
|
|
23
|
+
closeIconElement?: NotificationRenderFunction;
|
|
24
|
+
onClose?: (id: number | string) => void;
|
|
25
|
+
}
|
|
26
|
+
export interface NotificationReturn {
|
|
27
|
+
close: () => void;
|
|
28
|
+
}
|
|
29
|
+
export interface NotificationMethod {
|
|
30
|
+
info: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
|
|
31
|
+
success: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
|
|
32
|
+
warning: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
|
|
33
|
+
error: (config: string | NotificationConfig, appContext?: AppContext) => NotificationReturn;
|
|
34
|
+
remove: (id: string) => void;
|
|
35
|
+
clear: (position?: NotificationPosition) => void;
|
|
36
|
+
}
|
|
37
|
+
export interface NotificationItem {
|
|
38
|
+
id: number | string;
|
|
39
|
+
type: NotificationType;
|
|
40
|
+
content: NotificationRenderContent;
|
|
41
|
+
style?: CSSProperties;
|
|
42
|
+
class?: unknown;
|
|
43
|
+
title?: NotificationRenderContent;
|
|
44
|
+
icon?: NotificationRenderFunction;
|
|
45
|
+
footer?: NotificationRenderFunction;
|
|
46
|
+
closeIcon?: NotificationRenderFunction;
|
|
47
|
+
closeIconElement?: NotificationRenderFunction;
|
|
7
48
|
showIcon?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
49
|
+
closable?: boolean;
|
|
50
|
+
duration?: number;
|
|
51
|
+
resetOnUpdate?: boolean;
|
|
52
|
+
onClose?: (id: number | string) => void;
|
|
10
53
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
warning(config: string | NotificationConfig): string;
|
|
15
|
-
error(config: string | NotificationConfig): string;
|
|
16
|
-
normal(config: string | NotificationConfig): string;
|
|
17
|
-
remove(id: string): void;
|
|
18
|
-
clear(): void;
|
|
54
|
+
type NotificationService = NotificationMethod & {
|
|
55
|
+
install: (app: App) => void;
|
|
56
|
+
_context: AppContext | null;
|
|
19
57
|
};
|
|
58
|
+
export declare const Notification: NotificationService;
|
|
20
59
|
export default Notification;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var m = (i, t, n) => t in i ? d(i, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[t] = n;
|
|
3
|
+
var s = (i, t, n) => m(i, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as v, createVNode as p, render as h } from "vue";
|
|
5
|
+
import C from "./XNotificationList.js";
|
|
6
|
+
import { syncThemeContextToElement as u } from "../composables/theme-context.js";
|
|
7
|
+
function l() {
|
|
8
|
+
return typeof document > "u" ? null : document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
9
|
+
}
|
|
10
|
+
class x {
|
|
11
|
+
constructor(t, n) {
|
|
12
|
+
s(this, "notificationIds");
|
|
13
|
+
s(this, "notifications");
|
|
14
|
+
s(this, "position");
|
|
15
|
+
s(this, "container");
|
|
16
|
+
s(this, "notificationCount", 0);
|
|
17
|
+
s(this, "setTheme", (t, n) => {
|
|
18
|
+
this.container && u(this.container, t, n);
|
|
19
|
+
});
|
|
20
|
+
s(this, "add", (t) => {
|
|
21
|
+
this.setTheme(t.theme, l()), this.notificationCount += 1;
|
|
22
|
+
const n = t.id ?? `__x_notification_${this.notificationCount}`;
|
|
23
|
+
if (this.notificationIds.has(n))
|
|
24
|
+
return this.update(n, t);
|
|
25
|
+
const o = { id: n, ...t };
|
|
26
|
+
return this.notifications.value.push(o), this.notificationIds.add(n), {
|
|
27
|
+
close: () => this.remove(n)
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
s(this, "update", (t, n) => {
|
|
31
|
+
for (let o = 0; o < this.notifications.value.length; o += 1)
|
|
32
|
+
if (this.notifications.value[o].id === t) {
|
|
33
|
+
const e = n.duration !== void 0;
|
|
34
|
+
Object.assign(this.notifications.value[o], {
|
|
35
|
+
...n,
|
|
36
|
+
id: t,
|
|
37
|
+
resetOnUpdate: e
|
|
38
|
+
});
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
close: () => this.remove(t)
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
s(this, "remove", (t) => {
|
|
46
|
+
var n;
|
|
47
|
+
for (let o = 0; o < this.notifications.value.length; o += 1) {
|
|
48
|
+
const e = this.notifications.value[o];
|
|
49
|
+
if (e.id === t) {
|
|
50
|
+
(n = e.onClose) == null || n.call(e, t), this.notifications.value.splice(o, 1), this.notificationIds.delete(t);
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
s(this, "clear", () => {
|
|
56
|
+
this.notifications.value.splice(0);
|
|
57
|
+
});
|
|
58
|
+
s(this, "destroy", () => {
|
|
59
|
+
this.notifications.value.length === 0 && this.container && (h(null, this.container), this.container.parentNode && this.container.parentNode.removeChild(this.container), this.container = null, c[this.position] = void 0);
|
|
60
|
+
});
|
|
61
|
+
const { position: o = "topRight" } = t;
|
|
62
|
+
this.container = document.createElement("div"), this.notificationIds = /* @__PURE__ */ new Set(), this.notifications = v([]), this.position = o;
|
|
63
|
+
const e = p(C, {
|
|
64
|
+
notifications: this.notifications.value,
|
|
65
|
+
position: o,
|
|
66
|
+
onClose: this.remove,
|
|
67
|
+
onAfterClose: this.destroy
|
|
68
|
+
});
|
|
69
|
+
(n ?? r._context) && (e.appContext = n ?? r._context), h(e, this.container), u(this.container, t.theme, l()), document.body.appendChild(this.container);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const c = {};
|
|
73
|
+
function _(i) {
|
|
74
|
+
return typeof i == "string" ? { content: i } : i;
|
|
75
|
+
}
|
|
76
|
+
function f(i, t, n) {
|
|
77
|
+
const o = _(t), e = { type: i, ...o }, { position: a = "topRight" } = e;
|
|
78
|
+
return c[a] || (c[a] = new x(e, n ?? r._context)), c[a].setTheme(e.theme, l()), c[a].add(e);
|
|
79
|
+
}
|
|
80
|
+
const r = {
|
|
81
|
+
info(i, t) {
|
|
82
|
+
return f("info", i, t);
|
|
83
|
+
},
|
|
84
|
+
success(i, t) {
|
|
85
|
+
return f("success", i, t);
|
|
86
|
+
},
|
|
87
|
+
warning(i, t) {
|
|
88
|
+
return f("warning", i, t);
|
|
89
|
+
},
|
|
90
|
+
error(i, t) {
|
|
91
|
+
return f("error", i, t);
|
|
92
|
+
},
|
|
93
|
+
remove(i) {
|
|
94
|
+
i && Object.values(c).forEach((t) => t == null ? void 0 : t.remove(i));
|
|
95
|
+
},
|
|
96
|
+
clear(i) {
|
|
97
|
+
var t;
|
|
98
|
+
if (i) {
|
|
99
|
+
(t = c[i]) == null || t.clear();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
Object.values(c).forEach((n) => n == null ? void 0 : n.clear());
|
|
103
|
+
},
|
|
104
|
+
install(i) {
|
|
105
|
+
const t = {
|
|
106
|
+
info: (n, o = i._context) => r.info(n, o),
|
|
107
|
+
success: (n, o = i._context) => r.success(n, o),
|
|
108
|
+
warning: (n, o = i._context) => r.warning(n, o),
|
|
109
|
+
error: (n, o = i._context) => r.error(n, o),
|
|
110
|
+
remove: r.remove,
|
|
111
|
+
clear: r.clear
|
|
112
|
+
};
|
|
113
|
+
i.config.globalProperties.$notification = t;
|
|
114
|
+
},
|
|
115
|
+
_context: null
|
|
116
|
+
};
|
|
117
|
+
export {
|
|
118
|
+
r as Notification
|
|
119
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as t, renderSlot as r } from "vue";
|
|
2
|
+
const s = /* @__PURE__ */ t({
|
|
3
|
+
__name: "XOptgroup",
|
|
4
|
+
props: {
|
|
5
|
+
theme: {},
|
|
6
|
+
label: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
return (e, p) => r(e.$slots, "default");
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
s as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as a, renderSlot as o, createTextVNode as n, toDisplayString as r } from "vue";
|
|
2
|
+
const p = /* @__PURE__ */ a({
|
|
3
|
+
__name: "XOption",
|
|
4
|
+
props: {
|
|
5
|
+
theme: {},
|
|
6
|
+
value: { type: [String, Number, Boolean, Object] },
|
|
7
|
+
label: {},
|
|
8
|
+
disabled: { type: Boolean },
|
|
9
|
+
tagProps: {},
|
|
10
|
+
extra: {},
|
|
11
|
+
index: {}
|
|
12
|
+
},
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (t, l) => o(t.$slots, "default", {}, () => [
|
|
15
|
+
n(r(e.label ?? e.value), 1)
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
p as default
|
|
21
|
+
};
|
|
@@ -1,9 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
min: {
|
|
4
|
+
type: NumberConstructor;
|
|
5
|
+
default: number;
|
|
6
|
+
};
|
|
7
|
+
margin: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
default: number;
|
|
10
|
+
};
|
|
11
|
+
from: {
|
|
12
|
+
type: PropType<"start" | "end">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
change: (value: number) => boolean;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
min: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
margin: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
default: number;
|
|
27
|
+
};
|
|
28
|
+
from: {
|
|
29
|
+
type: PropType<"start" | "end">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onChange?: ((value: number) => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
margin: number;
|
|
36
|
+
min: number;
|
|
37
|
+
from: "end" | "start";
|
|
38
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
39
|
export default _default;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { defineComponent as z, ref as b, computed as C, watch as N, onMounted as F, onBeforeUnmount as M, mergeProps as L, h as R, isVNode as P, Comment as S, Fragment as j } from "vue";
|
|
2
|
+
import k from "./XTag.vue.js";
|
|
3
|
+
const G = 1, H = 6;
|
|
4
|
+
function T(n) {
|
|
5
|
+
const s = [];
|
|
6
|
+
for (let l = 0; l < n.length; l += 1)
|
|
7
|
+
s[l] = n[n.length - 1 - l];
|
|
8
|
+
return s;
|
|
9
|
+
}
|
|
10
|
+
function B(n) {
|
|
11
|
+
const s = [], l = (a) => {
|
|
12
|
+
var m, g, W, u;
|
|
13
|
+
for (const e of a ?? [])
|
|
14
|
+
if (e) {
|
|
15
|
+
if (Array.isArray(e)) {
|
|
16
|
+
l(e);
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
if (P(e) && e.type !== S) {
|
|
20
|
+
if (e.type === j) {
|
|
21
|
+
Array.isArray(e.children) ? l(e.children) : e.children && typeof e.children == "object" && "default" in e.children && typeof e.children.default == "function" && l((g = (m = e.children).default) == null ? void 0 : g.call(m));
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
if (e.shapeFlag & G || e.shapeFlag & H) {
|
|
25
|
+
s.push(e);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
Array.isArray(e.children) ? l(e.children) : e.children && typeof e.children == "object" && "default" in e.children && typeof e.children.default == "function" && l((u = (W = e.children).default) == null ? void 0 : u.call(W));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return l(n), s;
|
|
33
|
+
}
|
|
34
|
+
const X = z({
|
|
35
|
+
name: "XOverflowList",
|
|
36
|
+
props: {
|
|
37
|
+
min: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 0
|
|
40
|
+
},
|
|
41
|
+
margin: {
|
|
42
|
+
type: Number,
|
|
43
|
+
default: 8
|
|
44
|
+
},
|
|
45
|
+
from: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "end"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
emits: {
|
|
51
|
+
change: (n) => typeof n == "number"
|
|
52
|
+
},
|
|
53
|
+
setup(n, { attrs: s, emit: l, slots: a }) {
|
|
54
|
+
const m = "x-overflow-list", g = b(), W = b(), u = b(), e = { value: [] }, A = [], c = b(0), t = b(0), $ = C(() => t.value > 0), E = b(0), d = C(() => n.from === "start");
|
|
55
|
+
let w = null, _ = !1;
|
|
56
|
+
N(c, (i, f) => {
|
|
57
|
+
t.value > 0 && (t.value += i - f, t.value < 0 && (t.value = 0));
|
|
58
|
+
}), N(t, (i) => {
|
|
59
|
+
l("change", i);
|
|
60
|
+
});
|
|
61
|
+
const p = () => {
|
|
62
|
+
var v;
|
|
63
|
+
if (!g.value || !u.value)
|
|
64
|
+
return;
|
|
65
|
+
if (c.value === 0) {
|
|
66
|
+
t.value !== 0 && (t.value = 0);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const i = u.value.offsetWidth;
|
|
70
|
+
if (i > 1 && (t.value === 0 || i < E.value))
|
|
71
|
+
return;
|
|
72
|
+
for (let o = 0; o < e.value.length; o += 1) {
|
|
73
|
+
const h = e.value[o].el;
|
|
74
|
+
h && h.offsetWidth && (A[o] = h.offsetWidth + n.margin);
|
|
75
|
+
}
|
|
76
|
+
let f = g.value.clientWidth - (((v = W.value) == null ? void 0 : v.offsetWidth) ?? 0) - (d.value ? n.margin : 0);
|
|
77
|
+
const y = d.value ? T(A) : A;
|
|
78
|
+
let r = 0;
|
|
79
|
+
for (let o = 0; o < y.length; o += 1) {
|
|
80
|
+
const h = y[o] ?? 0;
|
|
81
|
+
if (h < f - 1)
|
|
82
|
+
f -= h, r += 1;
|
|
83
|
+
else {
|
|
84
|
+
E.value = h;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
r < n.min && n.min < c.value && (r = n.min);
|
|
89
|
+
const x = c.value - r;
|
|
90
|
+
t.value !== x && (t.value = x);
|
|
91
|
+
};
|
|
92
|
+
N($, () => p(), { flush: "post" }), N(() => [n.from, n.margin, n.min], () => p(), { flush: "post" }), F(() => {
|
|
93
|
+
typeof ResizeObserver < "u" && u.value ? (w = new ResizeObserver(() => {
|
|
94
|
+
p();
|
|
95
|
+
}), w.observe(u.value)) : typeof window < "u" && (_ = !0, window.addEventListener("resize", p)), u.value && u.value.offsetWidth < 1 && p();
|
|
96
|
+
}), M(() => {
|
|
97
|
+
w == null || w.disconnect(), w = null, _ && typeof window < "u" && window.removeEventListener("resize", p);
|
|
98
|
+
});
|
|
99
|
+
const O = () => {
|
|
100
|
+
var f;
|
|
101
|
+
const i = (f = a.overflow) == null ? void 0 : f.call(a, { number: t.value });
|
|
102
|
+
return R(
|
|
103
|
+
"div",
|
|
104
|
+
{
|
|
105
|
+
ref: W,
|
|
106
|
+
class: `${m}-overflow`,
|
|
107
|
+
style: d.value ? { marginRight: `${n.margin}px` } : void 0
|
|
108
|
+
},
|
|
109
|
+
i && i.length > 0 ? i : [
|
|
110
|
+
R(
|
|
111
|
+
k,
|
|
112
|
+
null,
|
|
113
|
+
{
|
|
114
|
+
default: () => `+${t.value}`
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
]
|
|
118
|
+
);
|
|
119
|
+
};
|
|
120
|
+
return () => {
|
|
121
|
+
var x;
|
|
122
|
+
e.value = B((x = a.default) == null ? void 0 : x.call(a)), c.value !== e.value.length && (c.value = e.value.length, A.length = c.value);
|
|
123
|
+
let i = e.value;
|
|
124
|
+
t.value > 0 && (i = d.value ? e.value.slice(t.value) : e.value.slice(0, -t.value));
|
|
125
|
+
const f = t.value === 0 || d.value ? i.length - 1 : i.length, y = [...i];
|
|
126
|
+
for (let v = 0; v < f; v += 1)
|
|
127
|
+
y[v].props = L(y[v].props ?? {}, {
|
|
128
|
+
style: { marginRight: `${n.margin}px` }
|
|
129
|
+
});
|
|
130
|
+
const r = [];
|
|
131
|
+
return d.value && t.value > 0 && r.push(O()), r.push(...y), !d.value && t.value > 0 && r.push(O()), r.push(
|
|
132
|
+
R("div", {
|
|
133
|
+
ref: u,
|
|
134
|
+
class: `${m}-spacer`
|
|
135
|
+
})
|
|
136
|
+
), R(
|
|
137
|
+
"div",
|
|
138
|
+
L(s, {
|
|
139
|
+
ref: g,
|
|
140
|
+
class: m
|
|
141
|
+
}),
|
|
142
|
+
r
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
export {
|
|
148
|
+
X as default
|
|
149
|
+
};
|