@rhino-design/vue 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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.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.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.js +399 -0
- package/dist/components/XAutoComplete.vue2.js +4 -0
- 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.js +118 -0
- package/dist/components/XBackTop.vue2.js +4 -0
- package/dist/components/XBadge.vue.js +64 -0
- package/dist/components/XBadge.vue2.js +4 -0
- package/dist/components/XBaseMenu.vue.js +37 -0
- package/dist/components/XBaseMenu.vue2.js +334 -0
- package/dist/components/XBreadcrumb.vue.d.ts +12 -7
- package/dist/components/XBreadcrumb.vue.js +97 -0
- package/dist/components/XBreadcrumb.vue2.js +4 -0
- package/dist/components/XBreadcrumbItem.vue.d.ts +7 -4
- package/dist/components/XBreadcrumbItem.vue.js +136 -0
- package/dist/components/XBreadcrumbItem.vue2.js +4 -0
- package/dist/components/XButton.vue.js +7 -0
- package/dist/components/XButton.vue2.js +142 -0
- package/dist/components/XButtonG.vue.js +7 -0
- package/dist/components/XButtonG.vue2.js +67 -0
- package/dist/components/XButtonGroup.vue.js +39 -0
- package/dist/components/XButtonGroup.vue3.js +5 -0
- package/dist/components/XCalendar.vue.js +309 -0
- package/dist/components/XCalendar.vue2.js +4 -0
- package/dist/components/XCard.vue.js +80 -0
- package/dist/components/XCard.vue2.js +4 -0
- 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.js +1015 -0
- package/dist/components/XCascader.vue2.js +4 -0
- package/dist/components/XCascaderPanel.vue.js +466 -0
- package/dist/components/XCascaderPanel.vue2.js +4 -0
- package/dist/components/XChatInput.vue.js +7 -0
- package/dist/components/XChatInput.vue2.js +454 -0
- package/dist/components/XCheckbox.vue.js +154 -0
- package/dist/components/XCheckbox.vue2.js +4 -0
- package/dist/components/XCheckboxGroup.vue.js +87 -0
- package/dist/components/XCheckboxGroup.vue2.js +4 -0
- package/dist/components/XCollapse.vue.js +54 -0
- package/dist/components/XCollapse.vue2.js +4 -0
- package/dist/components/XCollapseItem.vue.js +152 -0
- package/dist/components/XCollapseItem.vue2.js +4 -0
- 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.js +78 -0
- package/dist/components/XConfigProvider.vue2.js +4 -0
- package/dist/components/XCountdown.vue.js +7 -0
- package/dist/components/XCountdown.vue2.js +104 -0
- package/dist/components/XCropper.vue.js +7 -0
- package/dist/components/XCropper.vue2.js +525 -0
- package/dist/components/XDatePicker.vue.js +1798 -0
- package/dist/components/XDatePicker.vue2.js +4 -0
- package/dist/components/XDescriptions.vue.js +260 -0
- package/dist/components/XDescriptions.vue2.js +4 -0
- package/dist/components/XDescriptionsItem.vue.js +21 -0
- package/dist/components/XDescriptionsItem.vue2.js +4 -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.js +59 -0
- package/dist/components/XDoption.vue2.js +4 -0
- 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 +8 -7
- package/dist/components/XDropdown.vue.js +127 -0
- package/dist/components/XDropdown.vue2.js +4 -0
- package/dist/components/XDropdownButton.vue.js +84 -0
- package/dist/components/XDropdownButton.vue2.js +4 -0
- package/dist/components/XDropdownItem.vue.js +47 -0
- package/dist/components/XDropdownItem.vue2.js +4 -0
- package/dist/components/XDropdownPanel.vue.js +58 -0
- package/dist/components/XDropdownPanel.vue2.js +4 -0
- package/dist/components/XDsubmenu.vue.js +82 -0
- package/dist/components/XDsubmenu.vue2.js +4 -0
- 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.js +156 -0
- package/dist/components/XForm.vue2.js +4 -0
- package/dist/components/XFormItem.vue.js +425 -0
- package/dist/components/XFormItem.vue2.js +4 -0
- package/dist/components/XGrid.vue.js +7 -0
- package/dist/components/XGrid.vue2.js +88 -0
- 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.js +7 -0
- package/dist/components/XGridLayoutItem.vue2.js +56 -0
- package/dist/components/XIcon.js +5 -0
- package/dist/components/XIconLite.js +8 -0
- 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.js +7 -0
- package/dist/components/XInput.vue2.js +537 -0
- 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.js +7 -0
- package/dist/components/XInputNumber.vue2.js +344 -0
- package/dist/components/XInputPassword.vue.js +7 -0
- package/dist/components/XInputPassword.vue2.js +125 -0
- package/dist/components/XInputSearch.vue.js +7 -0
- package/dist/components/XInputSearch.vue2.js +154 -0
- 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.js +21 -0
- package/dist/components/XLink.vue2.js +4 -0
- package/dist/components/XList.vue.js +295 -0
- package/dist/components/XList.vue2.js +4 -0
- 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.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.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.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.js +7 -0
- package/dist/components/XMessage.vue2.js +89 -0
- package/dist/components/XMessageList.js +61 -0
- package/dist/components/XMessageService.js +118 -0
- package/dist/components/XModal.vue.js +7 -0
- package/dist/components/XModal.vue2.js +364 -0
- package/dist/components/XModalService.js +157 -0
- package/dist/components/XNotification.vue.js +7 -0
- package/dist/components/XNotification.vue2.js +107 -0
- package/dist/components/XNotificationList.js +70 -0
- package/dist/components/XNotificationService.js +119 -0
- package/dist/components/XOptgroup.vue.js +14 -0
- package/dist/components/XOptgroup.vue2.js +4 -0
- package/dist/components/XOption.vue.js +21 -0
- package/dist/components/XOption.vue2.js +4 -0
- package/dist/components/XOverflowList.vue.js +149 -0
- package/dist/components/XOverflowList.vue2.js +4 -0
- 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.js +90 -0
- package/dist/components/XPopconfirm.vue2.js +4 -0
- package/dist/components/XPopover.vue.js +53 -0
- package/dist/components/XPopover.vue2.js +4 -0
- package/dist/components/XProgress.vue.js +263 -0
- package/dist/components/XProgress.vue2.js +4 -0
- package/dist/components/XQRCode.vue.js +141 -0
- package/dist/components/XQRCode.vue2.js +4 -0
- package/dist/components/XRadio.vue.js +138 -0
- package/dist/components/XRadio.vue2.js +4 -0
- package/dist/components/XRadioButton.vue.js +41 -0
- package/dist/components/XRadioButton.vue2.js +4 -0
- package/dist/components/XRadioGroup.vue.js +168 -0
- package/dist/components/XRadioGroup.vue2.js +4 -0
- package/dist/components/XRate.vue.js +145 -0
- package/dist/components/XRate.vue2.js +4 -0
- 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.js +7 -0
- package/dist/components/XRichTextEditor.vue2.js +742 -0
- package/dist/components/XScrollbar.vue.d.ts +192 -0
- package/dist/components/XScrollbar.vue.js +190 -0
- package/dist/components/XScrollbar.vue2.js +4 -0
- package/dist/components/XScrollbarThumb.vue.d.ts +2 -6
- 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.js +858 -0
- package/dist/components/XSelect.vue2.js +4 -0
- package/dist/components/XSkeleton.vue.js +37 -0
- package/dist/components/XSkeleton.vue2.js +59 -0
- package/dist/components/XSkeletonLine.vue.js +36 -0
- package/dist/components/XSkeletonLine.vue2.js +4 -0
- package/dist/components/XSkeletonShape.vue.js +21 -0
- package/dist/components/XSkeletonShape.vue2.js +4 -0
- package/dist/components/XSlider.vue.js +402 -0
- package/dist/components/XSlider.vue2.js +4 -0
- 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.js +7 -0
- package/dist/components/XSplit.vue2.js +126 -0
- package/dist/components/XStatistic.vue.js +7 -0
- package/dist/components/XStatistic.vue2.js +176 -0
- package/dist/components/XStep.vue.js +91 -0
- package/dist/components/XStep.vue2.js +4 -0
- package/dist/components/XSteps.vue.js +73 -0
- package/dist/components/XSteps.vue2.js +4 -0
- 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.js +91 -0
- package/dist/components/XSubMenuPop.vue2.js +113 -0
- package/dist/components/XSwitch.vue.js +133 -0
- package/dist/components/XSwitch.vue2.js +4 -0
- package/dist/components/XTabPane.vue.js +59 -0
- package/dist/components/XTabPane.vue2.js +4 -0
- 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.js +402 -0
- package/dist/components/XTabs.vue2.js +4 -0
- package/dist/components/XTag.vue.js +126 -0
- package/dist/components/XTag.vue2.js +4 -0
- package/dist/components/XTextarea.vue.js +261 -0
- package/dist/components/XTextarea.vue2.js +4 -0
- package/dist/components/XTimePicker.vue.js +827 -0
- package/dist/components/XTimePicker.vue2.js +4 -0
- package/dist/components/XTimeline.vue.js +84 -0
- package/dist/components/XTimeline.vue2.js +4 -0
- package/dist/components/XTimelineItem.vue.js +202 -0
- package/dist/components/XTimelineItem.vue2.js +4 -0
- 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.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.js +7 -0
- package/dist/components/XTreeSelect.vue2.js +715 -0
- package/dist/components/XTrigger.vue.js +492 -0
- package/dist/components/XTrigger.vue2.js +4 -0
- package/dist/components/XTypography.vue.js +51 -0
- package/dist/components/XTypography.vue2.js +126 -0
- package/dist/components/XTypographyParagraph.vue.js +83 -0
- package/dist/components/XTypographyParagraph.vue2.js +4 -0
- package/dist/components/XTypographyText.vue.js +76 -0
- package/dist/components/XTypographyText.vue2.js +4 -0
- package/dist/components/XTypographyTitle.vue.js +77 -0
- package/dist/components/XTypographyTitle.vue2.js +4 -0
- package/dist/components/XUpload.vue.js +7 -0
- package/dist/components/XUpload.vue2.js +1060 -0
- package/dist/components/XVerificationCode.vue.js +149 -0
- package/dist/components/XVerificationCode.vue2.js +4 -0
- package/dist/components/XWatermark.vue.js +204 -0
- package/dist/components/XWatermark.vue2.js +4 -0
- package/dist/components/index.d.ts +10 -6
- 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.js +4 -0
- package/dist/components/x-checkbox-context.js +4 -0
- package/dist/components/x-dropdown-context.js +4 -0
- package/dist/components/x-icon-shared.js +151 -0
- package/dist/components/x-radio-context.js +4 -0
- package/dist/components/x-scrollbar-types.d.ts +5 -0
- package/dist/composables/collapse.js +9 -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.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.js +96 -0
- package/dist/composables/steps.js +9 -0
- package/dist/composables/tabs.js +10 -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 +1 -2
- package/dist/index.css +14834 -0
- package/dist/index.js +382 -31255
- 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.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.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/XRangePicker.vue.d.ts +0 -45
- package/dist/components/__tests__/XAffix.test.d.ts +0 -1
- package/dist/components/__tests__/XAutoComplete.test.d.ts +0 -1
- package/dist/components/__tests__/XBackTop.test.d.ts +0 -1
- package/dist/components/__tests__/XBreadcrumb.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__/XCheckbox.test.d.ts +0 -1
- package/dist/components/__tests__/XCollapse.test.d.ts +0 -1
- package/dist/components/__tests__/XComplexTriggerTheme.test.d.ts +0 -1
- package/dist/components/__tests__/XCropper.test.d.ts +0 -1
- package/dist/components/__tests__/XDropdown.test.d.ts +0 -1
- package/dist/components/__tests__/XImage.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__/XOverflowList.test.d.ts +0 -1
- package/dist/components/__tests__/XOverlayServiceTheme.test.d.ts +0 -1
- package/dist/components/__tests__/XPageHeader.test.d.ts +0 -1
- package/dist/components/__tests__/XRadioGroup.test.d.ts +0 -1
- package/dist/components/__tests__/XResizeBox.test.d.ts +0 -1
- package/dist/components/__tests__/XSkeleton.test.d.ts +0 -1
- package/dist/components/__tests__/XStatistic.test.d.ts +0 -1
- package/dist/components/__tests__/XSteps.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__/XTabs.test.d.ts +0 -1
- package/dist/components/__tests__/XTag.test.d.ts +0 -1
- package/dist/components/__tests__/XThemeAttrAllComponentsSmoke.test.d.ts +0 -1
- package/dist/components/__tests__/XThemeAttrsForwarding.test.d.ts +0 -1
- package/dist/components/__tests__/XTimePicker.test.d.ts +0 -1
- package/dist/components/__tests__/XTour.test.d.ts +0 -1
- package/dist/components/__tests__/XTree.test.d.ts +0 -1
- package/dist/components/__tests__/XTreeSelect.test.d.ts +0 -1
- package/dist/components/__tests__/XTrigger.test.d.ts +0 -1
- package/dist/components/__tests__/XTriggerWrappersTheme.test.d.ts +0 -1
- package/dist/components/__tests__/XWatermark.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,312 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
common: {
|
|
3
|
+
copy: "复制",
|
|
4
|
+
copied: "已复制",
|
|
5
|
+
edit: "编辑",
|
|
6
|
+
clear: "清空",
|
|
7
|
+
cancel: "取消",
|
|
8
|
+
confirm: "确定"
|
|
9
|
+
},
|
|
10
|
+
autoComplete: {
|
|
11
|
+
placeholder: "请输入内容"
|
|
12
|
+
},
|
|
13
|
+
mention: {
|
|
14
|
+
placeholder: "输入 @ 触发提及"
|
|
15
|
+
},
|
|
16
|
+
chatInput: {
|
|
17
|
+
placeholder: "输入消息...",
|
|
18
|
+
dragUpload: "释放以上传文件",
|
|
19
|
+
attachment: "附件",
|
|
20
|
+
quick: "快速",
|
|
21
|
+
programming: "编程",
|
|
22
|
+
imageGenerate: "图像生成",
|
|
23
|
+
videoGenerate: "视频生成",
|
|
24
|
+
helpWrite: "帮我写作",
|
|
25
|
+
musicGenerate: "音乐生成",
|
|
26
|
+
more: "更多",
|
|
27
|
+
send: "发送"
|
|
28
|
+
},
|
|
29
|
+
colorPicker: {
|
|
30
|
+
picking: "正在吸取颜色",
|
|
31
|
+
pickScreen: "吸取屏幕颜色",
|
|
32
|
+
dropper: "吸管取色",
|
|
33
|
+
unsupported: "当前浏览器不支持吸管取色"
|
|
34
|
+
},
|
|
35
|
+
colorGroup: {
|
|
36
|
+
angle: "角度"
|
|
37
|
+
},
|
|
38
|
+
datePicker: {
|
|
39
|
+
placeholder: "请选择日期",
|
|
40
|
+
placeholderWeek: "请选择周",
|
|
41
|
+
placeholderMonth: "请选择月份",
|
|
42
|
+
placeholderQuarter: "请选择季度",
|
|
43
|
+
placeholderYear: "请选择年份",
|
|
44
|
+
placeholderStart: "开始时间",
|
|
45
|
+
placeholderEnd: "结束时间",
|
|
46
|
+
todayButton: "今天",
|
|
47
|
+
nowButton: "此刻",
|
|
48
|
+
confirmButton: "确定",
|
|
49
|
+
hourLabel: "时",
|
|
50
|
+
minuteLabel: "分",
|
|
51
|
+
secondLabel: "秒",
|
|
52
|
+
rangeStartLabel: "开始时间",
|
|
53
|
+
rangeEndLabel: "结束时间",
|
|
54
|
+
quarterLabel: "Q{quarter}",
|
|
55
|
+
weekLabels: ["一", "二", "三", "四", "五", "六", "日"],
|
|
56
|
+
monthLabels: ["1 月", "2 月", "3 月", "4 月", "5 月", "6 月", "7 月", "8 月", "9 月", "10 月", "11 月", "12 月"],
|
|
57
|
+
titleYear: "{year} 年",
|
|
58
|
+
titleYearMonth: "{year} 年 {month} 月"
|
|
59
|
+
},
|
|
60
|
+
rangePicker: {
|
|
61
|
+
placeholderStart: "开始日期",
|
|
62
|
+
placeholderEnd: "结束日期",
|
|
63
|
+
todayButton: "今天",
|
|
64
|
+
weekLabels: ["一", "二", "三", "四", "五", "六", "日"],
|
|
65
|
+
monthLabels: ["1 月", "2 月", "3 月", "4 月", "5 月", "6 月", "7 月", "8 月", "9 月", "10 月", "11 月", "12 月"],
|
|
66
|
+
titleYearMonth: "{year} 年 {month} 月"
|
|
67
|
+
},
|
|
68
|
+
timePicker: {
|
|
69
|
+
placeholder: "请选择时间",
|
|
70
|
+
hourLabel: "时",
|
|
71
|
+
minuteLabel: "分",
|
|
72
|
+
secondLabel: "秒",
|
|
73
|
+
nowButton: "此刻",
|
|
74
|
+
clearButton: "清空"
|
|
75
|
+
},
|
|
76
|
+
modal: {
|
|
77
|
+
okText: "确定",
|
|
78
|
+
cancelText: "取消"
|
|
79
|
+
},
|
|
80
|
+
drawer: {
|
|
81
|
+
okText: "确定",
|
|
82
|
+
cancelText: "取消"
|
|
83
|
+
},
|
|
84
|
+
popconfirm: {
|
|
85
|
+
title: "确认执行该操作?",
|
|
86
|
+
okText: "确认",
|
|
87
|
+
cancelText: "取消"
|
|
88
|
+
},
|
|
89
|
+
select: {
|
|
90
|
+
placeholder: "请选择",
|
|
91
|
+
emptyText: "暂无数据"
|
|
92
|
+
},
|
|
93
|
+
treeSelect: {
|
|
94
|
+
placeholder: "请选择"
|
|
95
|
+
},
|
|
96
|
+
tree: {
|
|
97
|
+
emptyText: "暂无数据"
|
|
98
|
+
},
|
|
99
|
+
qrCode: {
|
|
100
|
+
alt: "二维码",
|
|
101
|
+
loading: "生成中..."
|
|
102
|
+
},
|
|
103
|
+
inputTag: {
|
|
104
|
+
placeholder: "输入后回车创建标签"
|
|
105
|
+
},
|
|
106
|
+
cascader: {
|
|
107
|
+
placeholder: "请选择",
|
|
108
|
+
searchPlaceholder: "搜索路径",
|
|
109
|
+
emptyText: "暂无匹配项"
|
|
110
|
+
},
|
|
111
|
+
table: {
|
|
112
|
+
summaryText: "合计",
|
|
113
|
+
emptyText: "暂无数据",
|
|
114
|
+
loadingText: "加载中..."
|
|
115
|
+
},
|
|
116
|
+
tableFilter: {
|
|
117
|
+
searchPlaceholder: "搜索...",
|
|
118
|
+
emptyText: "无匹配选项",
|
|
119
|
+
resetText: "重置",
|
|
120
|
+
confirmText: "确定"
|
|
121
|
+
},
|
|
122
|
+
list: {
|
|
123
|
+
loadingText: "加载中...",
|
|
124
|
+
emptyText: "暂无数据"
|
|
125
|
+
},
|
|
126
|
+
empty: {
|
|
127
|
+
description: "暂无数据"
|
|
128
|
+
},
|
|
129
|
+
pagination: {
|
|
130
|
+
prevPage: "上一页",
|
|
131
|
+
nextPage: "下一页",
|
|
132
|
+
totalText: "共 {total} 条",
|
|
133
|
+
rangeText: ",第 {start}-{end} 条",
|
|
134
|
+
pageSizeOption: "{size} / 页",
|
|
135
|
+
goto: "跳至",
|
|
136
|
+
page: "页"
|
|
137
|
+
},
|
|
138
|
+
upload: {
|
|
139
|
+
start: "开始",
|
|
140
|
+
cancel: "取消",
|
|
141
|
+
delete: "删除",
|
|
142
|
+
retry: "点击重试",
|
|
143
|
+
buttonText: "点击上传",
|
|
144
|
+
preview: "预览",
|
|
145
|
+
drag: "点击或拖拽文件到此处上传",
|
|
146
|
+
dragHover: "释放文件并开始上传",
|
|
147
|
+
error: "上传失败",
|
|
148
|
+
dragRelease: "释放文件并开始上传",
|
|
149
|
+
dragDrop: "点击或拖拽文件到此处上传",
|
|
150
|
+
statusUploading: "上传中 {percent}%",
|
|
151
|
+
statusError: "上传失败",
|
|
152
|
+
statusInit: "等待上传",
|
|
153
|
+
statusDone: "上传完成",
|
|
154
|
+
requestFailed: "上传失败",
|
|
155
|
+
requestTimeout: "上传超时",
|
|
156
|
+
requestStatusFailed: "上传失败(状态码 {status})",
|
|
157
|
+
actionPreview: "预览",
|
|
158
|
+
actionDownload: "下载",
|
|
159
|
+
actionUpload: "上传",
|
|
160
|
+
actionRetry: "重试",
|
|
161
|
+
actionCancel: "取消",
|
|
162
|
+
actionRemove: "删除"
|
|
163
|
+
},
|
|
164
|
+
tour: {
|
|
165
|
+
prevStep: "上一步",
|
|
166
|
+
skip: "跳过",
|
|
167
|
+
nextStep: "下一步",
|
|
168
|
+
finish: "完成"
|
|
169
|
+
},
|
|
170
|
+
transfer: {
|
|
171
|
+
sourceTitle: "待选列表",
|
|
172
|
+
targetTitle: "目标列表",
|
|
173
|
+
searchSourcePlaceholder: "搜索待选项",
|
|
174
|
+
searchTargetPlaceholder: "搜索目标项"
|
|
175
|
+
},
|
|
176
|
+
richText: {
|
|
177
|
+
placeholder: "请输入内容",
|
|
178
|
+
linkPromptText: "请输入链接地址",
|
|
179
|
+
clearText: "清空",
|
|
180
|
+
submitText: "发送",
|
|
181
|
+
toolbar: {
|
|
182
|
+
unorderedList: "无序列表",
|
|
183
|
+
orderedList: "有序列表",
|
|
184
|
+
quote: "引用",
|
|
185
|
+
codeBlock: "代码块",
|
|
186
|
+
paragraph: "正文",
|
|
187
|
+
link: "链接",
|
|
188
|
+
emoji: "表情",
|
|
189
|
+
image: "图片",
|
|
190
|
+
mention: "@ 提及",
|
|
191
|
+
clearFormat: "清格式"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
input: {
|
|
195
|
+
clearAria: "清空",
|
|
196
|
+
compositeMoreAria: "更多",
|
|
197
|
+
speechStartAria: "开始语音识别",
|
|
198
|
+
speechStopAria: "停止语音识别",
|
|
199
|
+
speechUnsupported: "当前浏览器不支持语音识别",
|
|
200
|
+
speechInitFailed: "语音识别初始化失败",
|
|
201
|
+
speechStartFailed: "语音识别启动失败",
|
|
202
|
+
speechFailed: "语音识别失败",
|
|
203
|
+
speechErrors: {
|
|
204
|
+
notAllowed: "麦克风权限被拒绝",
|
|
205
|
+
serviceNotAllowed: "浏览器禁止了语音识别服务",
|
|
206
|
+
audioCapture: "未检测到可用麦克风",
|
|
207
|
+
network: "语音识别网络异常",
|
|
208
|
+
noSpeech: "未检测到语音输入",
|
|
209
|
+
languageNotSupported: "当前语音语言不支持",
|
|
210
|
+
aborted: "语音识别已取消"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
inputSearch: {
|
|
214
|
+
searchAria: "搜索"
|
|
215
|
+
},
|
|
216
|
+
inputPassword: {
|
|
217
|
+
toggleVisibilityAria: "切换密码可见性"
|
|
218
|
+
},
|
|
219
|
+
tag: {
|
|
220
|
+
closeAria: "关闭"
|
|
221
|
+
},
|
|
222
|
+
typography: {
|
|
223
|
+
copy: "复制",
|
|
224
|
+
copied: "已复制",
|
|
225
|
+
edit: "编辑"
|
|
226
|
+
},
|
|
227
|
+
calendar: {
|
|
228
|
+
todayButton: "今天",
|
|
229
|
+
weekLabels: ["一", "二", "三", "四", "五", "六", "日"],
|
|
230
|
+
titleYear: "{year} 年",
|
|
231
|
+
titleYearMonth: "{year} 年 {month} 月",
|
|
232
|
+
monthLabel: "{month} 月",
|
|
233
|
+
yearSuffix: "年",
|
|
234
|
+
leapPrefix: "闰",
|
|
235
|
+
lunarMonthToNumber: {
|
|
236
|
+
正月: 1,
|
|
237
|
+
二月: 2,
|
|
238
|
+
三月: 3,
|
|
239
|
+
四月: 4,
|
|
240
|
+
五月: 5,
|
|
241
|
+
六月: 6,
|
|
242
|
+
七月: 7,
|
|
243
|
+
八月: 8,
|
|
244
|
+
九月: 9,
|
|
245
|
+
十月: 10,
|
|
246
|
+
十一月: 11,
|
|
247
|
+
腊月: 12,
|
|
248
|
+
冬月: 11
|
|
249
|
+
},
|
|
250
|
+
solarFestivals: {
|
|
251
|
+
"01-01": "元旦",
|
|
252
|
+
"02-14": "情人节",
|
|
253
|
+
"03-08": "妇女节",
|
|
254
|
+
"04-01": "愚人节",
|
|
255
|
+
"05-01": "劳动节",
|
|
256
|
+
"05-04": "青年节",
|
|
257
|
+
"06-01": "儿童节",
|
|
258
|
+
"09-10": "教师节",
|
|
259
|
+
"10-01": "国庆节",
|
|
260
|
+
"12-24": "平安夜",
|
|
261
|
+
"12-25": "圣诞节"
|
|
262
|
+
},
|
|
263
|
+
lunarFestivals: {
|
|
264
|
+
"1-1": "春节",
|
|
265
|
+
"1-15": "元宵",
|
|
266
|
+
"5-5": "端午",
|
|
267
|
+
"7-7": "七夕",
|
|
268
|
+
"8-15": "中秋",
|
|
269
|
+
"9-9": "重阳",
|
|
270
|
+
"12-8": "腊八",
|
|
271
|
+
"12-23": "小年"
|
|
272
|
+
},
|
|
273
|
+
solarTerms: [
|
|
274
|
+
{ name: "小寒", month: 1, c: 5.4055 },
|
|
275
|
+
{ name: "大寒", month: 1, c: 20.12 },
|
|
276
|
+
{ name: "立春", month: 2, c: 3.87 },
|
|
277
|
+
{ name: "雨水", month: 2, c: 18.73 },
|
|
278
|
+
{ name: "惊蛰", month: 3, c: 5.63 },
|
|
279
|
+
{ name: "春分", month: 3, c: 20.646 },
|
|
280
|
+
{ name: "清明", month: 4, c: 4.81 },
|
|
281
|
+
{ name: "谷雨", month: 4, c: 20.1 },
|
|
282
|
+
{ name: "立夏", month: 5, c: 5.52 },
|
|
283
|
+
{ name: "小满", month: 5, c: 21.04 },
|
|
284
|
+
{ name: "芒种", month: 6, c: 5.678 },
|
|
285
|
+
{ name: "夏至", month: 6, c: 21.37 },
|
|
286
|
+
{ name: "小暑", month: 7, c: 7.108 },
|
|
287
|
+
{ name: "大暑", month: 7, c: 22.83 },
|
|
288
|
+
{ name: "立秋", month: 8, c: 7.5 },
|
|
289
|
+
{ name: "处暑", month: 8, c: 23.13 },
|
|
290
|
+
{ name: "白露", month: 9, c: 7.646 },
|
|
291
|
+
{ name: "秋分", month: 9, c: 23.042 },
|
|
292
|
+
{ name: "寒露", month: 10, c: 8.318 },
|
|
293
|
+
{ name: "霜降", month: 10, c: 23.438 },
|
|
294
|
+
{ name: "立冬", month: 11, c: 7.438 },
|
|
295
|
+
{ name: "小雪", month: 11, c: 22.36 },
|
|
296
|
+
{ name: "大雪", month: 12, c: 7.18 },
|
|
297
|
+
{ name: "冬至", month: 12, c: 21.94 }
|
|
298
|
+
],
|
|
299
|
+
gan: ["甲", "乙", "丙", "丁", "戊", "己", "庚", "辛", "壬", "癸"],
|
|
300
|
+
zhi: ["子", "丑", "寅", "卯", "辰", "巳", "午", "未", "申", "酉", "戌", "亥"],
|
|
301
|
+
lunarDayNumbers: ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十"],
|
|
302
|
+
lunarDay10: "初十",
|
|
303
|
+
lunarDay20: "二十",
|
|
304
|
+
lunarDay30: "三十",
|
|
305
|
+
lunarDayPrefixLT10: "初",
|
|
306
|
+
lunarDayPrefixLT20: "十",
|
|
307
|
+
lunarDayPrefixGTE20: "廿"
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
export {
|
|
311
|
+
e as zhCN
|
|
312
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __module as l } from "../../_virtual/dijkstra.js";
|
|
2
|
+
(function(m) {
|
|
3
|
+
var u = {
|
|
4
|
+
single_source_shortest_paths: function(o, e, t) {
|
|
5
|
+
var r = {}, i = {};
|
|
6
|
+
i[e] = 0;
|
|
7
|
+
var n = u.PriorityQueue.make();
|
|
8
|
+
n.push(e, 0);
|
|
9
|
+
for (var f, p, s, c, _, h, a, d, v; !n.empty(); ) {
|
|
10
|
+
f = n.pop(), p = f.value, c = f.cost, _ = o[p] || {};
|
|
11
|
+
for (s in _)
|
|
12
|
+
_.hasOwnProperty(s) && (h = _[s], a = c + h, d = i[s], v = typeof i[s] > "u", (v || d > a) && (i[s] = a, n.push(s, a), r[s] = p));
|
|
13
|
+
}
|
|
14
|
+
if (typeof t < "u" && typeof i[t] > "u") {
|
|
15
|
+
var y = ["Could not find a path from ", e, " to ", t, "."].join("");
|
|
16
|
+
throw new Error(y);
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
},
|
|
20
|
+
extract_shortest_path_from_predecessor_list: function(o, e) {
|
|
21
|
+
for (var t = [], r = e; r; )
|
|
22
|
+
t.push(r), o[r], r = o[r];
|
|
23
|
+
return t.reverse(), t;
|
|
24
|
+
},
|
|
25
|
+
find_path: function(o, e, t) {
|
|
26
|
+
var r = u.single_source_shortest_paths(o, e, t);
|
|
27
|
+
return u.extract_shortest_path_from_predecessor_list(
|
|
28
|
+
r,
|
|
29
|
+
t
|
|
30
|
+
);
|
|
31
|
+
},
|
|
32
|
+
/**
|
|
33
|
+
* A very naive priority queue implementation.
|
|
34
|
+
*/
|
|
35
|
+
PriorityQueue: {
|
|
36
|
+
make: function(o) {
|
|
37
|
+
var e = u.PriorityQueue, t = {}, r;
|
|
38
|
+
o = o || {};
|
|
39
|
+
for (r in e)
|
|
40
|
+
e.hasOwnProperty(r) && (t[r] = e[r]);
|
|
41
|
+
return t.queue = [], t.sorter = o.sorter || e.default_sorter, t;
|
|
42
|
+
},
|
|
43
|
+
default_sorter: function(o, e) {
|
|
44
|
+
return o.cost - e.cost;
|
|
45
|
+
},
|
|
46
|
+
/**
|
|
47
|
+
* Add a new item to the queue and ensure the highest priority element
|
|
48
|
+
* is at the front of the queue.
|
|
49
|
+
*/
|
|
50
|
+
push: function(o, e) {
|
|
51
|
+
var t = { value: o, cost: e };
|
|
52
|
+
this.queue.push(t), this.queue.sort(this.sorter);
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* Return the highest priority element in the queue.
|
|
56
|
+
*/
|
|
57
|
+
pop: function() {
|
|
58
|
+
return this.queue.shift();
|
|
59
|
+
},
|
|
60
|
+
empty: function() {
|
|
61
|
+
return this.queue.length === 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
m.exports = u;
|
|
66
|
+
})(l);
|
|
67
|
+
var w = l.exports;
|
|
68
|
+
export {
|
|
69
|
+
w as d
|
|
70
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { __exports as f } from "../../../_virtual/browser.js";
|
|
2
|
+
import { c as w } from "./can-promise.js";
|
|
3
|
+
import "./core/qrcode.js";
|
|
4
|
+
import "./renderer/canvas.js";
|
|
5
|
+
import "./renderer/svg-tag.js";
|
|
6
|
+
import { __exports as _ } from "../../../_virtual/qrcode.js";
|
|
7
|
+
import { __exports as C } from "../../../_virtual/canvas.js";
|
|
8
|
+
import { __exports as p } from "../../../_virtual/svg-tag.js";
|
|
9
|
+
const h = w, u = _, g = C, R = p;
|
|
10
|
+
function m(d, e, r, n, i) {
|
|
11
|
+
const s = [].slice.call(arguments, 1), o = s.length, l = typeof s[o - 1] == "function";
|
|
12
|
+
if (!l && !h())
|
|
13
|
+
throw new Error("Callback required as last argument");
|
|
14
|
+
if (l) {
|
|
15
|
+
if (o < 2)
|
|
16
|
+
throw new Error("Too few arguments provided");
|
|
17
|
+
o === 2 ? (i = r, r = e, e = n = void 0) : o === 3 && (e.getContext && typeof i > "u" ? (i = n, n = void 0) : (i = n, n = r, r = e, e = void 0));
|
|
18
|
+
} else {
|
|
19
|
+
if (o < 1)
|
|
20
|
+
throw new Error("Too few arguments provided");
|
|
21
|
+
return o === 1 ? (r = e, e = n = void 0) : o === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(t, c) {
|
|
22
|
+
try {
|
|
23
|
+
const a = u.create(r, n);
|
|
24
|
+
t(d(a, e, n));
|
|
25
|
+
} catch (a) {
|
|
26
|
+
c(a);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
const t = u.create(r, n);
|
|
32
|
+
i(null, d(t, e, n));
|
|
33
|
+
} catch (t) {
|
|
34
|
+
i(t);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
f.create = u.create;
|
|
38
|
+
f.toCanvas = m.bind(null, g.render);
|
|
39
|
+
f.toDataURL = m.bind(null, g.renderToDataURL);
|
|
40
|
+
f.toString = m.bind(null, function(d, e, r) {
|
|
41
|
+
return R.render(d, r);
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
f as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __exports as f } from "../../../../_virtual/alignment-pattern.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import { __exports as u } from "../../../../_virtual/utils.js";
|
|
4
|
+
(function(r) {
|
|
5
|
+
const c = u.getSymbolSize;
|
|
6
|
+
r.getRowColCoords = function(e) {
|
|
7
|
+
if (e === 1) return [];
|
|
8
|
+
const i = Math.floor(e / 7) + 2, n = c(e), s = n === 145 ? 26 : Math.ceil((n - 13) / (2 * i - 2)) * 2, o = [n - 7];
|
|
9
|
+
for (let t = 1; t < i - 1; t++)
|
|
10
|
+
o[t] = o[t - 1] - s;
|
|
11
|
+
return o.push(6), o.reverse();
|
|
12
|
+
}, r.getPositions = function(e) {
|
|
13
|
+
const i = [], n = r.getRowColCoords(e), s = n.length;
|
|
14
|
+
for (let o = 0; o < s; o++)
|
|
15
|
+
for (let t = 0; t < s; t++)
|
|
16
|
+
o === 0 && t === 0 || // top-left
|
|
17
|
+
o === 0 && t === s - 1 || // bottom-left
|
|
18
|
+
o === s - 1 && t === 0 || i.push([n[o], n[t]]);
|
|
19
|
+
return i;
|
|
20
|
+
};
|
|
21
|
+
})(f);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import "./mode.js";
|
|
2
|
+
import { __exports as h } from "../../../../_virtual/mode.js";
|
|
3
|
+
const r = h, i = [
|
|
4
|
+
"0",
|
|
5
|
+
"1",
|
|
6
|
+
"2",
|
|
7
|
+
"3",
|
|
8
|
+
"4",
|
|
9
|
+
"5",
|
|
10
|
+
"6",
|
|
11
|
+
"7",
|
|
12
|
+
"8",
|
|
13
|
+
"9",
|
|
14
|
+
"A",
|
|
15
|
+
"B",
|
|
16
|
+
"C",
|
|
17
|
+
"D",
|
|
18
|
+
"E",
|
|
19
|
+
"F",
|
|
20
|
+
"G",
|
|
21
|
+
"H",
|
|
22
|
+
"I",
|
|
23
|
+
"J",
|
|
24
|
+
"K",
|
|
25
|
+
"L",
|
|
26
|
+
"M",
|
|
27
|
+
"N",
|
|
28
|
+
"O",
|
|
29
|
+
"P",
|
|
30
|
+
"Q",
|
|
31
|
+
"R",
|
|
32
|
+
"S",
|
|
33
|
+
"T",
|
|
34
|
+
"U",
|
|
35
|
+
"V",
|
|
36
|
+
"W",
|
|
37
|
+
"X",
|
|
38
|
+
"Y",
|
|
39
|
+
"Z",
|
|
40
|
+
" ",
|
|
41
|
+
"$",
|
|
42
|
+
"%",
|
|
43
|
+
"*",
|
|
44
|
+
"+",
|
|
45
|
+
"-",
|
|
46
|
+
".",
|
|
47
|
+
"/",
|
|
48
|
+
":"
|
|
49
|
+
];
|
|
50
|
+
function e(n) {
|
|
51
|
+
this.mode = r.ALPHANUMERIC, this.data = n;
|
|
52
|
+
}
|
|
53
|
+
e.getBitsLength = function(a) {
|
|
54
|
+
return 11 * Math.floor(a / 2) + 6 * (a % 2);
|
|
55
|
+
};
|
|
56
|
+
e.prototype.getLength = function() {
|
|
57
|
+
return this.data.length;
|
|
58
|
+
};
|
|
59
|
+
e.prototype.getBitsLength = function() {
|
|
60
|
+
return e.getBitsLength(this.data.length);
|
|
61
|
+
};
|
|
62
|
+
e.prototype.write = function(a) {
|
|
63
|
+
let t;
|
|
64
|
+
for (t = 0; t + 2 <= this.data.length; t += 2) {
|
|
65
|
+
let o = i.indexOf(this.data[t]) * 45;
|
|
66
|
+
o += i.indexOf(this.data[t + 1]), a.put(o, 11);
|
|
67
|
+
}
|
|
68
|
+
this.data.length % 2 && a.put(i.indexOf(this.data[t]), 6);
|
|
69
|
+
};
|
|
70
|
+
var d = e;
|
|
71
|
+
export {
|
|
72
|
+
d as a
|
|
73
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function n() {
|
|
2
|
+
this.buffer = [], this.length = 0;
|
|
3
|
+
}
|
|
4
|
+
n.prototype = {
|
|
5
|
+
get: function(f) {
|
|
6
|
+
const t = Math.floor(f / 8);
|
|
7
|
+
return (this.buffer[t] >>> 7 - f % 8 & 1) === 1;
|
|
8
|
+
},
|
|
9
|
+
put: function(f, t) {
|
|
10
|
+
for (let i = 0; i < t; i++)
|
|
11
|
+
this.putBit((f >>> t - i - 1 & 1) === 1);
|
|
12
|
+
},
|
|
13
|
+
getLengthInBits: function() {
|
|
14
|
+
return this.length;
|
|
15
|
+
},
|
|
16
|
+
putBit: function(f) {
|
|
17
|
+
const t = Math.floor(this.length / 8);
|
|
18
|
+
this.buffer.length <= t && this.buffer.push(0), f && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
var e = n;
|
|
22
|
+
export {
|
|
23
|
+
e as b
|
|
24
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function r(t) {
|
|
2
|
+
if (!t || t < 1)
|
|
3
|
+
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
4
|
+
this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
|
|
5
|
+
}
|
|
6
|
+
r.prototype.set = function(t, i, e, s) {
|
|
7
|
+
const n = t * this.size + i;
|
|
8
|
+
this.data[n] = e, s && (this.reservedBit[n] = !0);
|
|
9
|
+
};
|
|
10
|
+
r.prototype.get = function(t, i) {
|
|
11
|
+
return this.data[t * this.size + i];
|
|
12
|
+
};
|
|
13
|
+
r.prototype.xor = function(t, i, e) {
|
|
14
|
+
this.data[t * this.size + i] ^= e;
|
|
15
|
+
};
|
|
16
|
+
r.prototype.isReserved = function(t, i) {
|
|
17
|
+
return this.reservedBit[t * this.size + i];
|
|
18
|
+
};
|
|
19
|
+
var a = r;
|
|
20
|
+
export {
|
|
21
|
+
a as b
|
|
22
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./mode.js";
|
|
2
|
+
import { __exports as o } from "../../../../_virtual/mode.js";
|
|
3
|
+
const r = o;
|
|
4
|
+
function e(t) {
|
|
5
|
+
this.mode = r.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
|
|
6
|
+
}
|
|
7
|
+
e.getBitsLength = function(n) {
|
|
8
|
+
return n * 8;
|
|
9
|
+
};
|
|
10
|
+
e.prototype.getLength = function() {
|
|
11
|
+
return this.data.length;
|
|
12
|
+
};
|
|
13
|
+
e.prototype.getBitsLength = function() {
|
|
14
|
+
return e.getBitsLength(this.data.length);
|
|
15
|
+
};
|
|
16
|
+
e.prototype.write = function(t) {
|
|
17
|
+
for (let n = 0, i = this.data.length; n < i; n++)
|
|
18
|
+
t.put(this.data[n], 8);
|
|
19
|
+
};
|
|
20
|
+
var h = e;
|
|
21
|
+
export {
|
|
22
|
+
h as b
|
|
23
|
+
};
|