@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,159 @@
|
|
|
1
|
+
import { __exports as P } from "../../../../_virtual/qrcode.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import "./error-correction-level.js";
|
|
4
|
+
import { b as D } from "./bit-buffer.js";
|
|
5
|
+
import { b as x } from "./bit-matrix.js";
|
|
6
|
+
import "./alignment-pattern.js";
|
|
7
|
+
import "./finder-pattern.js";
|
|
8
|
+
import "./mask-pattern.js";
|
|
9
|
+
import "./error-correction-code.js";
|
|
10
|
+
import { r as V } from "./reed-solomon-encoder.js";
|
|
11
|
+
import "./version.js";
|
|
12
|
+
import "./format-info.js";
|
|
13
|
+
import "./mode.js";
|
|
14
|
+
import "./segments.js";
|
|
15
|
+
import { __exports as G } from "../../../../_virtual/error-correction-level.js";
|
|
16
|
+
import { __exports as R } from "../../../../_virtual/version.js";
|
|
17
|
+
import { __exports as J } from "../../../../_virtual/mask-pattern.js";
|
|
18
|
+
import { __exports as N } from "../../../../_virtual/utils.js";
|
|
19
|
+
import { __exports as U } from "../../../../_virtual/segments.js";
|
|
20
|
+
import { __exports as q } from "../../../../_virtual/mode.js";
|
|
21
|
+
import { __exports as Q } from "../../../../_virtual/error-correction-code.js";
|
|
22
|
+
import { __exports as L } from "../../../../_virtual/finder-pattern.js";
|
|
23
|
+
import { __exports as j } from "../../../../_virtual/alignment-pattern.js";
|
|
24
|
+
import { __exports as H } from "../../../../_virtual/format-info.js";
|
|
25
|
+
const w = N, I = G, K = D, O = x, W = j, X = L, y = J, z = Q, Y = V, g = R, Z = H, $ = q, S = U;
|
|
26
|
+
function v(s, f) {
|
|
27
|
+
const n = s.size, t = X.getPositions(f);
|
|
28
|
+
for (let c = 0; c < t.length; c++) {
|
|
29
|
+
const e = t[c][0], o = t[c][1];
|
|
30
|
+
for (let i = -1; i <= 7; i++)
|
|
31
|
+
if (!(e + i <= -1 || n <= e + i))
|
|
32
|
+
for (let r = -1; r <= 7; r++)
|
|
33
|
+
o + r <= -1 || n <= o + r || (i >= 0 && i <= 6 && (r === 0 || r === 6) || r >= 0 && r <= 6 && (i === 0 || i === 6) || i >= 2 && i <= 4 && r >= 2 && r <= 4 ? s.set(e + i, o + r, !0, !0) : s.set(e + i, o + r, !1, !0));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function tt(s) {
|
|
37
|
+
const f = s.size;
|
|
38
|
+
for (let n = 8; n < f - 8; n++) {
|
|
39
|
+
const t = n % 2 === 0;
|
|
40
|
+
s.set(n, 6, t, !0), s.set(6, n, t, !0);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function et(s, f) {
|
|
44
|
+
const n = W.getPositions(f);
|
|
45
|
+
for (let t = 0; t < n.length; t++) {
|
|
46
|
+
const c = n[t][0], e = n[t][1];
|
|
47
|
+
for (let o = -2; o <= 2; o++)
|
|
48
|
+
for (let i = -2; i <= 2; i++)
|
|
49
|
+
o === -2 || o === 2 || i === -2 || i === 2 || o === 0 && i === 0 ? s.set(c + o, e + i, !0, !0) : s.set(c + o, e + i, !1, !0);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function ot(s, f) {
|
|
53
|
+
const n = s.size, t = g.getEncodedBits(f);
|
|
54
|
+
let c, e, o;
|
|
55
|
+
for (let i = 0; i < 18; i++)
|
|
56
|
+
c = Math.floor(i / 3), e = i % 3 + n - 8 - 3, o = (t >> i & 1) === 1, s.set(c, e, o, !0), s.set(e, c, o, !0);
|
|
57
|
+
}
|
|
58
|
+
function B(s, f, n) {
|
|
59
|
+
const t = s.size, c = Z.getEncodedBits(f, n);
|
|
60
|
+
let e, o;
|
|
61
|
+
for (e = 0; e < 15; e++)
|
|
62
|
+
o = (c >> e & 1) === 1, e < 6 ? s.set(e, 8, o, !0) : e < 8 ? s.set(e + 1, 8, o, !0) : s.set(t - 15 + e, 8, o, !0), e < 8 ? s.set(8, t - e - 1, o, !0) : e < 9 ? s.set(8, 15 - e - 1 + 1, o, !0) : s.set(8, 15 - e - 1, o, !0);
|
|
63
|
+
s.set(t - 8, 8, 1, !0);
|
|
64
|
+
}
|
|
65
|
+
function st(s, f) {
|
|
66
|
+
const n = s.size;
|
|
67
|
+
let t = -1, c = n - 1, e = 7, o = 0;
|
|
68
|
+
for (let i = n - 1; i > 0; i -= 2)
|
|
69
|
+
for (i === 6 && i--; ; ) {
|
|
70
|
+
for (let r = 0; r < 2; r++)
|
|
71
|
+
if (!s.isReserved(c, i - r)) {
|
|
72
|
+
let u = !1;
|
|
73
|
+
o < f.length && (u = (f[o] >>> e & 1) === 1), s.set(c, i - r, u), e--, e === -1 && (o++, e = 7);
|
|
74
|
+
}
|
|
75
|
+
if (c += t, c < 0 || n <= c) {
|
|
76
|
+
c -= t, t = -t;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function nt(s, f, n) {
|
|
82
|
+
const t = new K();
|
|
83
|
+
n.forEach(function(r) {
|
|
84
|
+
t.put(r.mode.bit, 4), t.put(r.getLength(), $.getCharCountIndicator(r.mode, s)), r.write(t);
|
|
85
|
+
});
|
|
86
|
+
const c = w.getSymbolTotalCodewords(s), e = z.getTotalCodewordsCount(s, f), o = (c - e) * 8;
|
|
87
|
+
for (t.getLengthInBits() + 4 <= o && t.put(0, 4); t.getLengthInBits() % 8 !== 0; )
|
|
88
|
+
t.putBit(0);
|
|
89
|
+
const i = (o - t.getLengthInBits()) / 8;
|
|
90
|
+
for (let r = 0; r < i; r++)
|
|
91
|
+
t.put(r % 2 ? 17 : 236, 8);
|
|
92
|
+
return rt(t, s, f);
|
|
93
|
+
}
|
|
94
|
+
function rt(s, f, n) {
|
|
95
|
+
const t = w.getSymbolTotalCodewords(f), c = z.getTotalCodewordsCount(f, n), e = t - c, o = z.getBlocksCount(f, n), i = t % o, r = o - i, u = Math.floor(t / o), m = Math.floor(e / o), k = m + 1, M = u - m, A = new Y(M);
|
|
96
|
+
let C = 0;
|
|
97
|
+
const p = new Array(o), T = new Array(o);
|
|
98
|
+
let b = 0;
|
|
99
|
+
const F = new Uint8Array(s.buffer);
|
|
100
|
+
for (let d = 0; d < o; d++) {
|
|
101
|
+
const _ = d < r ? m : k;
|
|
102
|
+
p[d] = F.slice(C, C + _), T[d] = A.encode(p[d]), C += _, b = Math.max(b, _);
|
|
103
|
+
}
|
|
104
|
+
const h = new Uint8Array(t);
|
|
105
|
+
let E = 0, l, a;
|
|
106
|
+
for (l = 0; l < b; l++)
|
|
107
|
+
for (a = 0; a < o; a++)
|
|
108
|
+
l < p[a].length && (h[E++] = p[a][l]);
|
|
109
|
+
for (l = 0; l < M; l++)
|
|
110
|
+
for (a = 0; a < o; a++)
|
|
111
|
+
h[E++] = T[a][l];
|
|
112
|
+
return h;
|
|
113
|
+
}
|
|
114
|
+
function it(s, f, n, t) {
|
|
115
|
+
let c;
|
|
116
|
+
if (Array.isArray(s))
|
|
117
|
+
c = S.fromArray(s);
|
|
118
|
+
else if (typeof s == "string") {
|
|
119
|
+
let u = f;
|
|
120
|
+
if (!u) {
|
|
121
|
+
const m = S.rawSplit(s);
|
|
122
|
+
u = g.getBestVersionForData(m, n);
|
|
123
|
+
}
|
|
124
|
+
c = S.fromString(s, u || 40);
|
|
125
|
+
} else
|
|
126
|
+
throw new Error("Invalid data");
|
|
127
|
+
const e = g.getBestVersionForData(c, n);
|
|
128
|
+
if (!e)
|
|
129
|
+
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
130
|
+
if (!f)
|
|
131
|
+
f = e;
|
|
132
|
+
else if (f < e)
|
|
133
|
+
throw new Error(
|
|
134
|
+
`
|
|
135
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
136
|
+
Minimum version required to store current data is: ` + e + `.
|
|
137
|
+
`
|
|
138
|
+
);
|
|
139
|
+
const o = nt(f, n, c), i = w.getSymbolSize(f), r = new O(i);
|
|
140
|
+
return v(r, f), tt(r), et(r, f), B(r, n, 0), f >= 7 && ot(r, f), st(r, o), isNaN(t) && (t = y.getBestMask(
|
|
141
|
+
r,
|
|
142
|
+
B.bind(null, r, n)
|
|
143
|
+
)), y.applyMask(t, r), B(r, n, t), {
|
|
144
|
+
modules: r,
|
|
145
|
+
version: f,
|
|
146
|
+
errorCorrectionLevel: n,
|
|
147
|
+
maskPattern: t,
|
|
148
|
+
segments: c
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
P.create = function(f, n) {
|
|
152
|
+
if (typeof f > "u" || f === "")
|
|
153
|
+
throw new Error("No input text");
|
|
154
|
+
let t = I.M, c, e;
|
|
155
|
+
return typeof n < "u" && (t = I.from(n.errorCorrectionLevel, I.M), c = g.from(n.version), e = y.from(n.maskPattern), n.toSJISFunc && w.setToSJISFunction(n.toSJISFunc)), it(f, c, t, e);
|
|
156
|
+
};
|
|
157
|
+
export {
|
|
158
|
+
P as default
|
|
159
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./polynomial.js";
|
|
2
|
+
import { __exports as l } from "../../../../_virtual/polynomial.js";
|
|
3
|
+
const d = l;
|
|
4
|
+
function n(t) {
|
|
5
|
+
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
6
|
+
}
|
|
7
|
+
n.prototype.initialize = function(e) {
|
|
8
|
+
this.degree = e, this.genPoly = d.generateECPolynomial(this.degree);
|
|
9
|
+
};
|
|
10
|
+
n.prototype.encode = function(e) {
|
|
11
|
+
if (!this.genPoly)
|
|
12
|
+
throw new Error("Encoder not initialized");
|
|
13
|
+
const o = new Uint8Array(e.length + this.degree);
|
|
14
|
+
o.set(e);
|
|
15
|
+
const i = d.mod(o, this.genPoly), r = this.degree - i.length;
|
|
16
|
+
if (r > 0) {
|
|
17
|
+
const s = new Uint8Array(this.degree);
|
|
18
|
+
return s.set(i, r), s;
|
|
19
|
+
}
|
|
20
|
+
return i;
|
|
21
|
+
};
|
|
22
|
+
var g = n;
|
|
23
|
+
export {
|
|
24
|
+
g as r
|
|
25
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/regex.js";
|
|
2
|
+
const r = "[0-9]+", E = "[A-Z $%*+\\-./:]+";
|
|
3
|
+
let t = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
4
|
+
t = t.replace(/u/g, "\\u");
|
|
5
|
+
const s = "(?:(?![A-Z0-9 $%*+\\-./:]|" + t + `)(?:.|[\r
|
|
6
|
+
]))+`;
|
|
7
|
+
u.KANJI = new RegExp(t, "g");
|
|
8
|
+
u.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
9
|
+
u.BYTE = new RegExp(s, "g");
|
|
10
|
+
u.NUMERIC = new RegExp(r, "g");
|
|
11
|
+
u.ALPHANUMERIC = new RegExp(E, "g");
|
|
12
|
+
const A = new RegExp("^" + t + "$"), c = new RegExp("^" + r + "$"), g = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
13
|
+
u.testKanji = function(e) {
|
|
14
|
+
return A.test(e);
|
|
15
|
+
};
|
|
16
|
+
u.testNumeric = function(e) {
|
|
17
|
+
return c.test(e);
|
|
18
|
+
};
|
|
19
|
+
u.testAlphanumeric = function(e) {
|
|
20
|
+
return g.test(e);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
u as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { __exports as Y } from "../../../../_virtual/segments.js";
|
|
2
|
+
import "./mode.js";
|
|
3
|
+
import { n as K } from "./numeric-data.js";
|
|
4
|
+
import { a as L } from "./alphanumeric-data.js";
|
|
5
|
+
import { b as y } from "./byte-data.js";
|
|
6
|
+
import { k as _ } from "./kanji-data.js";
|
|
7
|
+
import "./regex.js";
|
|
8
|
+
import "./utils.js";
|
|
9
|
+
import { d as k } from "../../../dijkstrajs/dijkstra.js";
|
|
10
|
+
import { __exports as D } from "../../../../_virtual/utils.js";
|
|
11
|
+
import { __exports as j } from "../../../../_virtual/mode.js";
|
|
12
|
+
import { __exports as x } from "../../../../_virtual/regex.js";
|
|
13
|
+
(function(g) {
|
|
14
|
+
const o = j, N = K, I = L, B = y, C = _, c = x, p = D, w = k;
|
|
15
|
+
function b(n) {
|
|
16
|
+
return unescape(encodeURIComponent(n)).length;
|
|
17
|
+
}
|
|
18
|
+
function h(n, r, e) {
|
|
19
|
+
const t = [];
|
|
20
|
+
let s;
|
|
21
|
+
for (; (s = n.exec(e)) !== null; )
|
|
22
|
+
t.push({
|
|
23
|
+
data: s[0],
|
|
24
|
+
index: s.index,
|
|
25
|
+
mode: r,
|
|
26
|
+
length: s[0].length
|
|
27
|
+
});
|
|
28
|
+
return t;
|
|
29
|
+
}
|
|
30
|
+
function M(n) {
|
|
31
|
+
const r = h(c.NUMERIC, o.NUMERIC, n), e = h(c.ALPHANUMERIC, o.ALPHANUMERIC, n);
|
|
32
|
+
let t, s;
|
|
33
|
+
return p.isKanjiModeEnabled() ? (t = h(c.BYTE, o.BYTE, n), s = h(c.KANJI, o.KANJI, n)) : (t = h(c.BYTE_KANJI, o.BYTE, n), s = []), r.concat(e, t, s).sort(function(i, l) {
|
|
34
|
+
return i.index - l.index;
|
|
35
|
+
}).map(function(i) {
|
|
36
|
+
return {
|
|
37
|
+
data: i.data,
|
|
38
|
+
mode: i.mode,
|
|
39
|
+
length: i.length
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function E(n, r) {
|
|
44
|
+
switch (r) {
|
|
45
|
+
case o.NUMERIC:
|
|
46
|
+
return N.getBitsLength(n);
|
|
47
|
+
case o.ALPHANUMERIC:
|
|
48
|
+
return I.getBitsLength(n);
|
|
49
|
+
case o.KANJI:
|
|
50
|
+
return C.getBitsLength(n);
|
|
51
|
+
case o.BYTE:
|
|
52
|
+
return B.getBitsLength(n);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function R(n) {
|
|
56
|
+
return n.reduce(function(r, e) {
|
|
57
|
+
const t = r.length - 1 >= 0 ? r[r.length - 1] : null;
|
|
58
|
+
return t && t.mode === e.mode ? (r[r.length - 1].data += e.data, r) : (r.push(e), r);
|
|
59
|
+
}, []);
|
|
60
|
+
}
|
|
61
|
+
function T(n) {
|
|
62
|
+
const r = [];
|
|
63
|
+
for (let e = 0; e < n.length; e++) {
|
|
64
|
+
const t = n[e];
|
|
65
|
+
switch (t.mode) {
|
|
66
|
+
case o.NUMERIC:
|
|
67
|
+
r.push([
|
|
68
|
+
t,
|
|
69
|
+
{ data: t.data, mode: o.ALPHANUMERIC, length: t.length },
|
|
70
|
+
{ data: t.data, mode: o.BYTE, length: t.length }
|
|
71
|
+
]);
|
|
72
|
+
break;
|
|
73
|
+
case o.ALPHANUMERIC:
|
|
74
|
+
r.push([
|
|
75
|
+
t,
|
|
76
|
+
{ data: t.data, mode: o.BYTE, length: t.length }
|
|
77
|
+
]);
|
|
78
|
+
break;
|
|
79
|
+
case o.KANJI:
|
|
80
|
+
r.push([
|
|
81
|
+
t,
|
|
82
|
+
{ data: t.data, mode: o.BYTE, length: b(t.data) }
|
|
83
|
+
]);
|
|
84
|
+
break;
|
|
85
|
+
case o.BYTE:
|
|
86
|
+
r.push([
|
|
87
|
+
{ data: t.data, mode: o.BYTE, length: b(t.data) }
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return r;
|
|
92
|
+
}
|
|
93
|
+
function U(n, r) {
|
|
94
|
+
const e = {}, t = { start: {} };
|
|
95
|
+
let s = ["start"];
|
|
96
|
+
for (let a = 0; a < n.length; a++) {
|
|
97
|
+
const i = n[a], l = [];
|
|
98
|
+
for (let m = 0; m < i.length; m++) {
|
|
99
|
+
const d = i[m], f = "" + a + m;
|
|
100
|
+
l.push(f), e[f] = { node: d, lastCount: 0 }, t[f] = {};
|
|
101
|
+
for (let A = 0; A < s.length; A++) {
|
|
102
|
+
const u = s[A];
|
|
103
|
+
e[u] && e[u].node.mode === d.mode ? (t[u][f] = E(e[u].lastCount + d.length, d.mode) - E(e[u].lastCount, d.mode), e[u].lastCount += d.length) : (e[u] && (e[u].lastCount = d.length), t[u][f] = E(d.length, d.mode) + 4 + o.getCharCountIndicator(d.mode, r));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
s = l;
|
|
107
|
+
}
|
|
108
|
+
for (let a = 0; a < s.length; a++)
|
|
109
|
+
t[s[a]].end = 0;
|
|
110
|
+
return { map: t, table: e };
|
|
111
|
+
}
|
|
112
|
+
function S(n, r) {
|
|
113
|
+
let e;
|
|
114
|
+
const t = o.getBestModeForData(n);
|
|
115
|
+
if (e = o.from(r, t), e !== o.BYTE && e.bit < t.bit)
|
|
116
|
+
throw new Error('"' + n + '" cannot be encoded with mode ' + o.toString(e) + `.
|
|
117
|
+
Suggested mode is: ` + o.toString(t));
|
|
118
|
+
switch (e === o.KANJI && !p.isKanjiModeEnabled() && (e = o.BYTE), e) {
|
|
119
|
+
case o.NUMERIC:
|
|
120
|
+
return new N(n);
|
|
121
|
+
case o.ALPHANUMERIC:
|
|
122
|
+
return new I(n);
|
|
123
|
+
case o.KANJI:
|
|
124
|
+
return new C(n);
|
|
125
|
+
case o.BYTE:
|
|
126
|
+
return new B(n);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
g.fromArray = function(r) {
|
|
130
|
+
return r.reduce(function(e, t) {
|
|
131
|
+
return typeof t == "string" ? e.push(S(t, null)) : t.data && e.push(S(t.data, t.mode)), e;
|
|
132
|
+
}, []);
|
|
133
|
+
}, g.fromString = function(r, e) {
|
|
134
|
+
const t = M(r, p.isKanjiModeEnabled()), s = T(t), a = U(s, e), i = w.find_path(a.map, "start", "end"), l = [];
|
|
135
|
+
for (let m = 1; m < i.length - 1; m++)
|
|
136
|
+
l.push(a.table[i[m]].node);
|
|
137
|
+
return g.fromArray(R(l));
|
|
138
|
+
}, g.rawSplit = function(r) {
|
|
139
|
+
return g.fromArray(
|
|
140
|
+
M(r, p.isKanjiModeEnabled())
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
})(Y);
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __exports as n } from "../../../../_virtual/utils.js";
|
|
2
|
+
let e;
|
|
3
|
+
const r = [
|
|
4
|
+
0,
|
|
5
|
+
// Not used
|
|
6
|
+
26,
|
|
7
|
+
44,
|
|
8
|
+
70,
|
|
9
|
+
100,
|
|
10
|
+
134,
|
|
11
|
+
172,
|
|
12
|
+
196,
|
|
13
|
+
242,
|
|
14
|
+
292,
|
|
15
|
+
346,
|
|
16
|
+
404,
|
|
17
|
+
466,
|
|
18
|
+
532,
|
|
19
|
+
581,
|
|
20
|
+
655,
|
|
21
|
+
733,
|
|
22
|
+
815,
|
|
23
|
+
901,
|
|
24
|
+
991,
|
|
25
|
+
1085,
|
|
26
|
+
1156,
|
|
27
|
+
1258,
|
|
28
|
+
1364,
|
|
29
|
+
1474,
|
|
30
|
+
1588,
|
|
31
|
+
1706,
|
|
32
|
+
1828,
|
|
33
|
+
1921,
|
|
34
|
+
2051,
|
|
35
|
+
2185,
|
|
36
|
+
2323,
|
|
37
|
+
2465,
|
|
38
|
+
2611,
|
|
39
|
+
2761,
|
|
40
|
+
2876,
|
|
41
|
+
3034,
|
|
42
|
+
3196,
|
|
43
|
+
3362,
|
|
44
|
+
3532,
|
|
45
|
+
3706
|
|
46
|
+
];
|
|
47
|
+
n.getSymbolSize = function(o) {
|
|
48
|
+
if (!o) throw new Error('"version" cannot be null or undefined');
|
|
49
|
+
if (o < 1 || o > 40) throw new Error('"version" should be in range from 1 to 40');
|
|
50
|
+
return o * 4 + 17;
|
|
51
|
+
};
|
|
52
|
+
n.getSymbolTotalCodewords = function(o) {
|
|
53
|
+
return r[o];
|
|
54
|
+
};
|
|
55
|
+
n.getBCHDigit = function(t) {
|
|
56
|
+
let o = 0;
|
|
57
|
+
for (; t !== 0; )
|
|
58
|
+
o++, t >>>= 1;
|
|
59
|
+
return o;
|
|
60
|
+
};
|
|
61
|
+
n.setToSJISFunction = function(o) {
|
|
62
|
+
if (typeof o != "function")
|
|
63
|
+
throw new Error('"toSJISFunc" is not a valid function.');
|
|
64
|
+
e = o;
|
|
65
|
+
};
|
|
66
|
+
n.isKanjiModeEnabled = function() {
|
|
67
|
+
return typeof e < "u";
|
|
68
|
+
};
|
|
69
|
+
n.toSJIS = function(o) {
|
|
70
|
+
return e(o);
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
n as default
|
|
74
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __exports as _ } from "../../../../_virtual/version.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import "./error-correction-code.js";
|
|
4
|
+
import "./error-correction-level.js";
|
|
5
|
+
import "./mode.js";
|
|
6
|
+
import "./version-check.js";
|
|
7
|
+
import { __exports as w } from "../../../../_virtual/utils.js";
|
|
8
|
+
import { __exports as M } from "../../../../_virtual/version-check.js";
|
|
9
|
+
import { __exports as D } from "../../../../_virtual/mode.js";
|
|
10
|
+
import { __exports as V } from "../../../../_virtual/error-correction-code.js";
|
|
11
|
+
import { __exports as y } from "../../../../_virtual/error-correction-level.js";
|
|
12
|
+
(function(i) {
|
|
13
|
+
const c = w, m = V, u = y, n = D, f = M, l = 7973, g = c.getBCHDigit(l);
|
|
14
|
+
function h(o, t, r) {
|
|
15
|
+
for (let e = 1; e <= 40; e++)
|
|
16
|
+
if (t <= i.getCapacity(e, r, o))
|
|
17
|
+
return e;
|
|
18
|
+
}
|
|
19
|
+
function d(o, t) {
|
|
20
|
+
return n.getCharCountIndicator(o, t) + 4;
|
|
21
|
+
}
|
|
22
|
+
function B(o, t) {
|
|
23
|
+
let r = 0;
|
|
24
|
+
return o.forEach(function(e) {
|
|
25
|
+
const s = d(e.mode, t);
|
|
26
|
+
r += s + e.getBitsLength();
|
|
27
|
+
}), r;
|
|
28
|
+
}
|
|
29
|
+
function p(o, t) {
|
|
30
|
+
for (let r = 1; r <= 40; r++)
|
|
31
|
+
if (B(o, r) <= i.getCapacity(r, t, n.MIXED))
|
|
32
|
+
return r;
|
|
33
|
+
}
|
|
34
|
+
i.from = function(t, r) {
|
|
35
|
+
return f.isValid(t) ? parseInt(t, 10) : r;
|
|
36
|
+
}, i.getCapacity = function(t, r, e) {
|
|
37
|
+
if (!f.isValid(t))
|
|
38
|
+
throw new Error("Invalid QR Code version");
|
|
39
|
+
typeof e > "u" && (e = n.BYTE);
|
|
40
|
+
const s = c.getSymbolTotalCodewords(t), E = m.getTotalCodewordsCount(t, r), C = (s - E) * 8;
|
|
41
|
+
if (e === n.MIXED) return C;
|
|
42
|
+
const a = C - d(e, t);
|
|
43
|
+
switch (e) {
|
|
44
|
+
case n.NUMERIC:
|
|
45
|
+
return Math.floor(a / 10 * 3);
|
|
46
|
+
case n.ALPHANUMERIC:
|
|
47
|
+
return Math.floor(a / 11 * 2);
|
|
48
|
+
case n.KANJI:
|
|
49
|
+
return Math.floor(a / 13);
|
|
50
|
+
case n.BYTE:
|
|
51
|
+
default:
|
|
52
|
+
return Math.floor(a / 8);
|
|
53
|
+
}
|
|
54
|
+
}, i.getBestVersionForData = function(t, r) {
|
|
55
|
+
let e;
|
|
56
|
+
const s = u.from(r, u.M);
|
|
57
|
+
if (Array.isArray(t)) {
|
|
58
|
+
if (t.length > 1)
|
|
59
|
+
return p(t, s);
|
|
60
|
+
if (t.length === 0)
|
|
61
|
+
return 1;
|
|
62
|
+
e = t[0];
|
|
63
|
+
} else
|
|
64
|
+
e = t;
|
|
65
|
+
return h(e.mode, e.getLength(), s);
|
|
66
|
+
}, i.getEncodedBits = function(t) {
|
|
67
|
+
if (!f.isValid(t) || t < 7)
|
|
68
|
+
throw new Error("Invalid QR Code version");
|
|
69
|
+
let r = t << 12;
|
|
70
|
+
for (; c.getBCHDigit(r) - g >= 0; )
|
|
71
|
+
r ^= l << c.getBCHDigit(r) - g;
|
|
72
|
+
return t << 12 | r;
|
|
73
|
+
};
|
|
74
|
+
})(_);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __exports as h } from "../../../../_virtual/canvas.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import { __exports as s } from "../../../../_virtual/utils2.js";
|
|
4
|
+
(function(f) {
|
|
5
|
+
const l = s;
|
|
6
|
+
function g(d, n, e) {
|
|
7
|
+
d.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = e, n.width = e, n.style.height = e + "px", n.style.width = e + "px";
|
|
8
|
+
}
|
|
9
|
+
function m() {
|
|
10
|
+
try {
|
|
11
|
+
return document.createElement("canvas");
|
|
12
|
+
} catch {
|
|
13
|
+
throw new Error("You need to specify a canvas element");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
f.render = function(n, e, u) {
|
|
17
|
+
let t = u, r = e;
|
|
18
|
+
typeof t > "u" && (!e || !e.getContext) && (t = e, e = void 0), e || (r = m()), t = l.getOptions(t);
|
|
19
|
+
const o = l.getImageWidth(n.modules.size, t), i = r.getContext("2d"), p = i.createImageData(o, o);
|
|
20
|
+
return l.qrToImageData(p.data, n, t), g(i, r, o), i.putImageData(p, 0, 0), r;
|
|
21
|
+
}, f.renderToDataURL = function(n, e, u) {
|
|
22
|
+
let t = u;
|
|
23
|
+
typeof t > "u" && (!e || !e.getContext) && (t = e, e = void 0), t || (t = {});
|
|
24
|
+
const r = f.render(n, e, t), o = t.type || "image/png", i = t.rendererOpts || {};
|
|
25
|
+
return r.toDataURL(o, i.quality);
|
|
26
|
+
};
|
|
27
|
+
})(h);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __exports as a } from "../../../../_virtual/svg-tag.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import { __exports as u } from "../../../../_virtual/utils2.js";
|
|
4
|
+
const w = u;
|
|
5
|
+
function g(s, n) {
|
|
6
|
+
const i = s.a / 255, o = n + '="' + s.hex + '"';
|
|
7
|
+
return i < 1 ? o + " " + n + '-opacity="' + i.toFixed(2).slice(1) + '"' : o;
|
|
8
|
+
}
|
|
9
|
+
function f(s, n, i) {
|
|
10
|
+
let o = s + n;
|
|
11
|
+
return typeof i < "u" && (o += " " + i), o;
|
|
12
|
+
}
|
|
13
|
+
function m(s, n, i) {
|
|
14
|
+
let o = "", e = 0, r = !1, c = 0;
|
|
15
|
+
for (let t = 0; t < s.length; t++) {
|
|
16
|
+
const l = Math.floor(t % n), h = Math.floor(t / n);
|
|
17
|
+
!l && !r && (r = !0), s[t] ? (c++, t > 0 && l > 0 && s[t - 1] || (o += r ? f("M", l + i, 0.5 + h + i) : f("m", e, 0), e = 0, r = !1), l + 1 < n && s[t + 1] || (o += f("h", c), c = 0)) : e++;
|
|
18
|
+
}
|
|
19
|
+
return o;
|
|
20
|
+
}
|
|
21
|
+
a.render = function(n, i, o) {
|
|
22
|
+
const e = w.getOptions(i), r = n.modules.size, c = n.modules.data, t = r + e.margin * 2, l = e.color.light.a ? "<path " + g(e.color.light, "fill") + ' d="M0 0h' + t + "v" + t + 'H0z"/>' : "", h = "<path " + g(e.color.dark, "stroke") + ' d="' + m(c, r, e.margin) + '"/>', p = 'viewBox="0 0 ' + t + " " + t + '"', d = '<svg xmlns="http://www.w3.org/2000/svg" ' + (e.width ? 'width="' + e.width + '" height="' + e.width + '" ' : "") + p + ' shape-rendering="crispEdges">' + l + h + `</svg>
|
|
23
|
+
`;
|
|
24
|
+
return typeof o == "function" && o(null, d), d;
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
a as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { __exports as b } from "../../../../_virtual/utils2.js";
|
|
2
|
+
(function(n) {
|
|
3
|
+
function u(l) {
|
|
4
|
+
if (typeof l == "number" && (l = l.toString()), typeof l != "string")
|
|
5
|
+
throw new Error("Color should be defined as hex string");
|
|
6
|
+
let e = l.slice().replace("#", "").split("");
|
|
7
|
+
if (e.length < 3 || e.length === 5 || e.length > 8)
|
|
8
|
+
throw new Error("Invalid hex color: " + l);
|
|
9
|
+
(e.length === 3 || e.length === 4) && (e = Array.prototype.concat.apply([], e.map(function(t) {
|
|
10
|
+
return [t, t];
|
|
11
|
+
}))), e.length === 6 && e.push("F", "F");
|
|
12
|
+
const r = parseInt(e.join(""), 16);
|
|
13
|
+
return {
|
|
14
|
+
r: r >> 24 & 255,
|
|
15
|
+
g: r >> 16 & 255,
|
|
16
|
+
b: r >> 8 & 255,
|
|
17
|
+
a: r & 255,
|
|
18
|
+
hex: "#" + e.slice(0, 6).join("")
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
n.getOptions = function(e) {
|
|
22
|
+
e || (e = {}), e.color || (e.color = {});
|
|
23
|
+
const r = typeof e.margin > "u" || e.margin === null || e.margin < 0 ? 4 : e.margin, t = e.width && e.width >= 21 ? e.width : void 0, f = e.scale || 4;
|
|
24
|
+
return {
|
|
25
|
+
width: t,
|
|
26
|
+
scale: t ? 4 : f,
|
|
27
|
+
margin: r,
|
|
28
|
+
color: {
|
|
29
|
+
dark: u(e.color.dark || "#000000ff"),
|
|
30
|
+
light: u(e.color.light || "#ffffffff")
|
|
31
|
+
},
|
|
32
|
+
type: e.type,
|
|
33
|
+
rendererOpts: e.rendererOpts || {}
|
|
34
|
+
};
|
|
35
|
+
}, n.getScale = function(e, r) {
|
|
36
|
+
return r.width && r.width >= e + r.margin * 2 ? r.width / (e + r.margin * 2) : r.scale;
|
|
37
|
+
}, n.getImageWidth = function(e, r) {
|
|
38
|
+
const t = n.getScale(e, r);
|
|
39
|
+
return Math.floor((e + r.margin * 2) * t);
|
|
40
|
+
}, n.qrToImageData = function(e, r, t) {
|
|
41
|
+
const f = r.modules.size, m = r.modules.data, d = n.getScale(f, t), g = Math.floor((f + t.margin * 2) * d), a = t.margin * d, s = [t.color.light, t.color.dark];
|
|
42
|
+
for (let c = 0; c < g; c++)
|
|
43
|
+
for (let i = 0; i < g; i++) {
|
|
44
|
+
let h = (c * g + i) * 4, o = t.color.light;
|
|
45
|
+
if (c >= a && i >= a && c < g - a && i < g - a) {
|
|
46
|
+
const w = Math.floor((c - a) / d), y = Math.floor((i - a) / d);
|
|
47
|
+
o = s[m[w * f + y] ? 1 : 0];
|
|
48
|
+
}
|
|
49
|
+
e[h++] = o.r, e[h++] = o.g, e[h++] = o.b, e[h] = o.a;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
})(b);
|