@rhino-design/vue 0.2.2 → 0.2.6
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 +10 -40
- 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,359 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/error-correction-code.js";
|
|
2
|
+
import "./error-correction-level.js";
|
|
3
|
+
import { __exports as a } from "../../../../_virtual/error-correction-level.js";
|
|
4
|
+
const e = a, r = [
|
|
5
|
+
// L M Q H
|
|
6
|
+
1,
|
|
7
|
+
1,
|
|
8
|
+
1,
|
|
9
|
+
1,
|
|
10
|
+
1,
|
|
11
|
+
1,
|
|
12
|
+
1,
|
|
13
|
+
1,
|
|
14
|
+
1,
|
|
15
|
+
1,
|
|
16
|
+
2,
|
|
17
|
+
2,
|
|
18
|
+
1,
|
|
19
|
+
2,
|
|
20
|
+
2,
|
|
21
|
+
4,
|
|
22
|
+
1,
|
|
23
|
+
2,
|
|
24
|
+
4,
|
|
25
|
+
4,
|
|
26
|
+
2,
|
|
27
|
+
4,
|
|
28
|
+
4,
|
|
29
|
+
4,
|
|
30
|
+
2,
|
|
31
|
+
4,
|
|
32
|
+
6,
|
|
33
|
+
5,
|
|
34
|
+
2,
|
|
35
|
+
4,
|
|
36
|
+
6,
|
|
37
|
+
6,
|
|
38
|
+
2,
|
|
39
|
+
5,
|
|
40
|
+
8,
|
|
41
|
+
8,
|
|
42
|
+
4,
|
|
43
|
+
5,
|
|
44
|
+
8,
|
|
45
|
+
8,
|
|
46
|
+
4,
|
|
47
|
+
5,
|
|
48
|
+
8,
|
|
49
|
+
11,
|
|
50
|
+
4,
|
|
51
|
+
8,
|
|
52
|
+
10,
|
|
53
|
+
11,
|
|
54
|
+
4,
|
|
55
|
+
9,
|
|
56
|
+
12,
|
|
57
|
+
16,
|
|
58
|
+
4,
|
|
59
|
+
9,
|
|
60
|
+
16,
|
|
61
|
+
16,
|
|
62
|
+
6,
|
|
63
|
+
10,
|
|
64
|
+
12,
|
|
65
|
+
18,
|
|
66
|
+
6,
|
|
67
|
+
10,
|
|
68
|
+
17,
|
|
69
|
+
16,
|
|
70
|
+
6,
|
|
71
|
+
11,
|
|
72
|
+
16,
|
|
73
|
+
19,
|
|
74
|
+
6,
|
|
75
|
+
13,
|
|
76
|
+
18,
|
|
77
|
+
21,
|
|
78
|
+
7,
|
|
79
|
+
14,
|
|
80
|
+
21,
|
|
81
|
+
25,
|
|
82
|
+
8,
|
|
83
|
+
16,
|
|
84
|
+
20,
|
|
85
|
+
25,
|
|
86
|
+
8,
|
|
87
|
+
17,
|
|
88
|
+
23,
|
|
89
|
+
25,
|
|
90
|
+
9,
|
|
91
|
+
17,
|
|
92
|
+
23,
|
|
93
|
+
34,
|
|
94
|
+
9,
|
|
95
|
+
18,
|
|
96
|
+
25,
|
|
97
|
+
30,
|
|
98
|
+
10,
|
|
99
|
+
20,
|
|
100
|
+
27,
|
|
101
|
+
32,
|
|
102
|
+
12,
|
|
103
|
+
21,
|
|
104
|
+
29,
|
|
105
|
+
35,
|
|
106
|
+
12,
|
|
107
|
+
23,
|
|
108
|
+
34,
|
|
109
|
+
37,
|
|
110
|
+
12,
|
|
111
|
+
25,
|
|
112
|
+
34,
|
|
113
|
+
40,
|
|
114
|
+
13,
|
|
115
|
+
26,
|
|
116
|
+
35,
|
|
117
|
+
42,
|
|
118
|
+
14,
|
|
119
|
+
28,
|
|
120
|
+
38,
|
|
121
|
+
45,
|
|
122
|
+
15,
|
|
123
|
+
29,
|
|
124
|
+
40,
|
|
125
|
+
48,
|
|
126
|
+
16,
|
|
127
|
+
31,
|
|
128
|
+
43,
|
|
129
|
+
51,
|
|
130
|
+
17,
|
|
131
|
+
33,
|
|
132
|
+
45,
|
|
133
|
+
54,
|
|
134
|
+
18,
|
|
135
|
+
35,
|
|
136
|
+
48,
|
|
137
|
+
57,
|
|
138
|
+
19,
|
|
139
|
+
37,
|
|
140
|
+
51,
|
|
141
|
+
60,
|
|
142
|
+
19,
|
|
143
|
+
38,
|
|
144
|
+
53,
|
|
145
|
+
63,
|
|
146
|
+
20,
|
|
147
|
+
40,
|
|
148
|
+
56,
|
|
149
|
+
66,
|
|
150
|
+
21,
|
|
151
|
+
43,
|
|
152
|
+
59,
|
|
153
|
+
70,
|
|
154
|
+
22,
|
|
155
|
+
45,
|
|
156
|
+
62,
|
|
157
|
+
74,
|
|
158
|
+
24,
|
|
159
|
+
47,
|
|
160
|
+
65,
|
|
161
|
+
77,
|
|
162
|
+
25,
|
|
163
|
+
49,
|
|
164
|
+
68,
|
|
165
|
+
81
|
|
166
|
+
], o = [
|
|
167
|
+
// L M Q H
|
|
168
|
+
7,
|
|
169
|
+
10,
|
|
170
|
+
13,
|
|
171
|
+
17,
|
|
172
|
+
10,
|
|
173
|
+
16,
|
|
174
|
+
22,
|
|
175
|
+
28,
|
|
176
|
+
15,
|
|
177
|
+
26,
|
|
178
|
+
36,
|
|
179
|
+
44,
|
|
180
|
+
20,
|
|
181
|
+
36,
|
|
182
|
+
52,
|
|
183
|
+
64,
|
|
184
|
+
26,
|
|
185
|
+
48,
|
|
186
|
+
72,
|
|
187
|
+
88,
|
|
188
|
+
36,
|
|
189
|
+
64,
|
|
190
|
+
96,
|
|
191
|
+
112,
|
|
192
|
+
40,
|
|
193
|
+
72,
|
|
194
|
+
108,
|
|
195
|
+
130,
|
|
196
|
+
48,
|
|
197
|
+
88,
|
|
198
|
+
132,
|
|
199
|
+
156,
|
|
200
|
+
60,
|
|
201
|
+
110,
|
|
202
|
+
160,
|
|
203
|
+
192,
|
|
204
|
+
72,
|
|
205
|
+
130,
|
|
206
|
+
192,
|
|
207
|
+
224,
|
|
208
|
+
80,
|
|
209
|
+
150,
|
|
210
|
+
224,
|
|
211
|
+
264,
|
|
212
|
+
96,
|
|
213
|
+
176,
|
|
214
|
+
260,
|
|
215
|
+
308,
|
|
216
|
+
104,
|
|
217
|
+
198,
|
|
218
|
+
288,
|
|
219
|
+
352,
|
|
220
|
+
120,
|
|
221
|
+
216,
|
|
222
|
+
320,
|
|
223
|
+
384,
|
|
224
|
+
132,
|
|
225
|
+
240,
|
|
226
|
+
360,
|
|
227
|
+
432,
|
|
228
|
+
144,
|
|
229
|
+
280,
|
|
230
|
+
408,
|
|
231
|
+
480,
|
|
232
|
+
168,
|
|
233
|
+
308,
|
|
234
|
+
448,
|
|
235
|
+
532,
|
|
236
|
+
180,
|
|
237
|
+
338,
|
|
238
|
+
504,
|
|
239
|
+
588,
|
|
240
|
+
196,
|
|
241
|
+
364,
|
|
242
|
+
546,
|
|
243
|
+
650,
|
|
244
|
+
224,
|
|
245
|
+
416,
|
|
246
|
+
600,
|
|
247
|
+
700,
|
|
248
|
+
224,
|
|
249
|
+
442,
|
|
250
|
+
644,
|
|
251
|
+
750,
|
|
252
|
+
252,
|
|
253
|
+
476,
|
|
254
|
+
690,
|
|
255
|
+
816,
|
|
256
|
+
270,
|
|
257
|
+
504,
|
|
258
|
+
750,
|
|
259
|
+
900,
|
|
260
|
+
300,
|
|
261
|
+
560,
|
|
262
|
+
810,
|
|
263
|
+
960,
|
|
264
|
+
312,
|
|
265
|
+
588,
|
|
266
|
+
870,
|
|
267
|
+
1050,
|
|
268
|
+
336,
|
|
269
|
+
644,
|
|
270
|
+
952,
|
|
271
|
+
1110,
|
|
272
|
+
360,
|
|
273
|
+
700,
|
|
274
|
+
1020,
|
|
275
|
+
1200,
|
|
276
|
+
390,
|
|
277
|
+
728,
|
|
278
|
+
1050,
|
|
279
|
+
1260,
|
|
280
|
+
420,
|
|
281
|
+
784,
|
|
282
|
+
1140,
|
|
283
|
+
1350,
|
|
284
|
+
450,
|
|
285
|
+
812,
|
|
286
|
+
1200,
|
|
287
|
+
1440,
|
|
288
|
+
480,
|
|
289
|
+
868,
|
|
290
|
+
1290,
|
|
291
|
+
1530,
|
|
292
|
+
510,
|
|
293
|
+
924,
|
|
294
|
+
1350,
|
|
295
|
+
1620,
|
|
296
|
+
540,
|
|
297
|
+
980,
|
|
298
|
+
1440,
|
|
299
|
+
1710,
|
|
300
|
+
570,
|
|
301
|
+
1036,
|
|
302
|
+
1530,
|
|
303
|
+
1800,
|
|
304
|
+
570,
|
|
305
|
+
1064,
|
|
306
|
+
1590,
|
|
307
|
+
1890,
|
|
308
|
+
600,
|
|
309
|
+
1120,
|
|
310
|
+
1680,
|
|
311
|
+
1980,
|
|
312
|
+
630,
|
|
313
|
+
1204,
|
|
314
|
+
1770,
|
|
315
|
+
2100,
|
|
316
|
+
660,
|
|
317
|
+
1260,
|
|
318
|
+
1860,
|
|
319
|
+
2220,
|
|
320
|
+
720,
|
|
321
|
+
1316,
|
|
322
|
+
1950,
|
|
323
|
+
2310,
|
|
324
|
+
750,
|
|
325
|
+
1372,
|
|
326
|
+
2040,
|
|
327
|
+
2430
|
|
328
|
+
];
|
|
329
|
+
u.getBlocksCount = function(t, n) {
|
|
330
|
+
switch (n) {
|
|
331
|
+
case e.L:
|
|
332
|
+
return r[(t - 1) * 4 + 0];
|
|
333
|
+
case e.M:
|
|
334
|
+
return r[(t - 1) * 4 + 1];
|
|
335
|
+
case e.Q:
|
|
336
|
+
return r[(t - 1) * 4 + 2];
|
|
337
|
+
case e.H:
|
|
338
|
+
return r[(t - 1) * 4 + 3];
|
|
339
|
+
default:
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
u.getTotalCodewordsCount = function(t, n) {
|
|
344
|
+
switch (n) {
|
|
345
|
+
case e.L:
|
|
346
|
+
return o[(t - 1) * 4 + 0];
|
|
347
|
+
case e.M:
|
|
348
|
+
return o[(t - 1) * 4 + 1];
|
|
349
|
+
case e.Q:
|
|
350
|
+
return o[(t - 1) * 4 + 2];
|
|
351
|
+
case e.H:
|
|
352
|
+
return o[(t - 1) * 4 + 3];
|
|
353
|
+
default:
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
export {
|
|
358
|
+
u as default
|
|
359
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { __exports as a } from "../../../../_virtual/error-correction-level.js";
|
|
2
|
+
(function(r) {
|
|
3
|
+
r.L = { bit: 1 }, r.M = { bit: 0 }, r.Q = { bit: 3 }, r.H = { bit: 2 };
|
|
4
|
+
function t(n) {
|
|
5
|
+
if (typeof n != "string")
|
|
6
|
+
throw new Error("Param is not a string");
|
|
7
|
+
switch (n.toLowerCase()) {
|
|
8
|
+
case "l":
|
|
9
|
+
case "low":
|
|
10
|
+
return r.L;
|
|
11
|
+
case "m":
|
|
12
|
+
case "medium":
|
|
13
|
+
return r.M;
|
|
14
|
+
case "q":
|
|
15
|
+
case "quartile":
|
|
16
|
+
return r.Q;
|
|
17
|
+
case "h":
|
|
18
|
+
case "high":
|
|
19
|
+
return r.H;
|
|
20
|
+
default:
|
|
21
|
+
throw new Error("Unknown EC Level: " + n);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
r.isValid = function(i) {
|
|
25
|
+
return i && typeof i.bit < "u" && i.bit >= 0 && i.bit < 4;
|
|
26
|
+
}, r.from = function(i, c) {
|
|
27
|
+
if (r.isValid(i))
|
|
28
|
+
return i;
|
|
29
|
+
try {
|
|
30
|
+
return t(i);
|
|
31
|
+
} catch {
|
|
32
|
+
return c;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
})(a);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exports as s } from "../../../../_virtual/finder-pattern.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import { __exports as i } from "../../../../_virtual/utils.js";
|
|
4
|
+
const r = i.getSymbolSize, o = 7;
|
|
5
|
+
s.getPositions = function(e) {
|
|
6
|
+
const t = r(e);
|
|
7
|
+
return [
|
|
8
|
+
// top-left
|
|
9
|
+
[0, 0],
|
|
10
|
+
// top-right
|
|
11
|
+
[t - o, 0],
|
|
12
|
+
// bottom-left
|
|
13
|
+
[0, t - o]
|
|
14
|
+
];
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
s as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __exports as c } from "../../../../_virtual/format-info.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import { __exports as g } from "../../../../_virtual/utils.js";
|
|
4
|
+
const o = g, s = 1335, a = 21522, e = o.getBCHDigit(s);
|
|
5
|
+
c.getEncodedBits = function(n, r) {
|
|
6
|
+
const i = n.bit << 3 | r;
|
|
7
|
+
let t = i << 10;
|
|
8
|
+
for (; o.getBCHDigit(t) - e >= 0; )
|
|
9
|
+
t ^= s << o.getBCHDigit(t) - e;
|
|
10
|
+
return (i << 10 | t) ^ a;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __exports as i } from "../../../../_virtual/galois-field.js";
|
|
2
|
+
const n = new Uint8Array(512), o = new Uint8Array(256);
|
|
3
|
+
(function() {
|
|
4
|
+
let r = 1;
|
|
5
|
+
for (let t = 0; t < 255; t++)
|
|
6
|
+
n[t] = r, o[r] = t, r <<= 1, r & 256 && (r ^= 285);
|
|
7
|
+
for (let t = 255; t < 512; t++)
|
|
8
|
+
n[t] = n[t - 255];
|
|
9
|
+
})();
|
|
10
|
+
i.log = function(r) {
|
|
11
|
+
if (r < 1) throw new Error("log(" + r + ")");
|
|
12
|
+
return o[r];
|
|
13
|
+
};
|
|
14
|
+
i.exp = function(r) {
|
|
15
|
+
return n[r];
|
|
16
|
+
};
|
|
17
|
+
i.mul = function(r, t) {
|
|
18
|
+
return r === 0 || t === 0 ? 0 : n[o[r] + o[t]];
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
i as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import "./mode.js";
|
|
2
|
+
import "./utils.js";
|
|
3
|
+
import { __exports as o } from "../../../../_virtual/mode.js";
|
|
4
|
+
import { __exports as r } from "../../../../_virtual/utils.js";
|
|
5
|
+
const a = o, s = r;
|
|
6
|
+
function n(i) {
|
|
7
|
+
this.mode = a.KANJI, this.data = i;
|
|
8
|
+
}
|
|
9
|
+
n.getBitsLength = function(e) {
|
|
10
|
+
return e * 13;
|
|
11
|
+
};
|
|
12
|
+
n.prototype.getLength = function() {
|
|
13
|
+
return this.data.length;
|
|
14
|
+
};
|
|
15
|
+
n.prototype.getBitsLength = function() {
|
|
16
|
+
return n.getBitsLength(this.data.length);
|
|
17
|
+
};
|
|
18
|
+
n.prototype.write = function(i) {
|
|
19
|
+
let e;
|
|
20
|
+
for (e = 0; e < this.data.length; e++) {
|
|
21
|
+
let t = s.toSJIS(this.data[e]);
|
|
22
|
+
if (t >= 33088 && t <= 40956)
|
|
23
|
+
t -= 33088;
|
|
24
|
+
else if (t >= 57408 && t <= 60351)
|
|
25
|
+
t -= 49472;
|
|
26
|
+
else
|
|
27
|
+
throw new Error(
|
|
28
|
+
"Invalid SJIS character: " + this.data[e] + `
|
|
29
|
+
Make sure your charset is UTF-8`
|
|
30
|
+
);
|
|
31
|
+
t = (t >>> 8 & 255) * 192 + (t & 255), i.put(t, 13);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var u = n;
|
|
35
|
+
export {
|
|
36
|
+
u as k
|
|
37
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { __exports as T } from "../../../../_virtual/mask-pattern.js";
|
|
2
|
+
(function(r) {
|
|
3
|
+
r.Patterns = {
|
|
4
|
+
PATTERN000: 0,
|
|
5
|
+
PATTERN001: 1,
|
|
6
|
+
PATTERN010: 2,
|
|
7
|
+
PATTERN011: 3,
|
|
8
|
+
PATTERN100: 4,
|
|
9
|
+
PATTERN101: 5,
|
|
10
|
+
PATTERN110: 6,
|
|
11
|
+
PATTERN111: 7
|
|
12
|
+
};
|
|
13
|
+
const N = {
|
|
14
|
+
N1: 3,
|
|
15
|
+
N2: 3,
|
|
16
|
+
N3: 40,
|
|
17
|
+
N4: 10
|
|
18
|
+
};
|
|
19
|
+
r.isValid = function(t) {
|
|
20
|
+
return t != null && t !== "" && !isNaN(t) && t >= 0 && t <= 7;
|
|
21
|
+
}, r.from = function(t) {
|
|
22
|
+
return r.isValid(t) ? parseInt(t, 10) : void 0;
|
|
23
|
+
}, r.getPenaltyN1 = function(t) {
|
|
24
|
+
const l = t.size;
|
|
25
|
+
let s = 0, n = 0, e = 0, o = null, P = null;
|
|
26
|
+
for (let u = 0; u < l; u++) {
|
|
27
|
+
n = e = 0, o = P = null;
|
|
28
|
+
for (let c = 0; c < l; c++) {
|
|
29
|
+
let f = t.get(u, c);
|
|
30
|
+
f === o ? n++ : (n >= 5 && (s += N.N1 + (n - 5)), o = f, n = 1), f = t.get(c, u), f === P ? e++ : (e >= 5 && (s += N.N1 + (e - 5)), P = f, e = 1);
|
|
31
|
+
}
|
|
32
|
+
n >= 5 && (s += N.N1 + (n - 5)), e >= 5 && (s += N.N1 + (e - 5));
|
|
33
|
+
}
|
|
34
|
+
return s;
|
|
35
|
+
}, r.getPenaltyN2 = function(t) {
|
|
36
|
+
const l = t.size;
|
|
37
|
+
let s = 0;
|
|
38
|
+
for (let n = 0; n < l - 1; n++)
|
|
39
|
+
for (let e = 0; e < l - 1; e++) {
|
|
40
|
+
const o = t.get(n, e) + t.get(n, e + 1) + t.get(n + 1, e) + t.get(n + 1, e + 1);
|
|
41
|
+
(o === 4 || o === 0) && s++;
|
|
42
|
+
}
|
|
43
|
+
return s * N.N2;
|
|
44
|
+
}, r.getPenaltyN3 = function(t) {
|
|
45
|
+
const l = t.size;
|
|
46
|
+
let s = 0, n = 0, e = 0;
|
|
47
|
+
for (let o = 0; o < l; o++) {
|
|
48
|
+
n = e = 0;
|
|
49
|
+
for (let P = 0; P < l; P++)
|
|
50
|
+
n = n << 1 & 2047 | t.get(o, P), P >= 10 && (n === 1488 || n === 93) && s++, e = e << 1 & 2047 | t.get(P, o), P >= 10 && (e === 1488 || e === 93) && s++;
|
|
51
|
+
}
|
|
52
|
+
return s * N.N3;
|
|
53
|
+
}, r.getPenaltyN4 = function(t) {
|
|
54
|
+
let l = 0;
|
|
55
|
+
const s = t.data.length;
|
|
56
|
+
for (let e = 0; e < s; e++) l += t.data[e];
|
|
57
|
+
return Math.abs(Math.ceil(l * 100 / s / 5) - 10) * N.N4;
|
|
58
|
+
};
|
|
59
|
+
function a(i, t, l) {
|
|
60
|
+
switch (i) {
|
|
61
|
+
case r.Patterns.PATTERN000:
|
|
62
|
+
return (t + l) % 2 === 0;
|
|
63
|
+
case r.Patterns.PATTERN001:
|
|
64
|
+
return t % 2 === 0;
|
|
65
|
+
case r.Patterns.PATTERN010:
|
|
66
|
+
return l % 3 === 0;
|
|
67
|
+
case r.Patterns.PATTERN011:
|
|
68
|
+
return (t + l) % 3 === 0;
|
|
69
|
+
case r.Patterns.PATTERN100:
|
|
70
|
+
return (Math.floor(t / 2) + Math.floor(l / 3)) % 2 === 0;
|
|
71
|
+
case r.Patterns.PATTERN101:
|
|
72
|
+
return t * l % 2 + t * l % 3 === 0;
|
|
73
|
+
case r.Patterns.PATTERN110:
|
|
74
|
+
return (t * l % 2 + t * l % 3) % 2 === 0;
|
|
75
|
+
case r.Patterns.PATTERN111:
|
|
76
|
+
return (t * l % 3 + (t + l) % 2) % 2 === 0;
|
|
77
|
+
default:
|
|
78
|
+
throw new Error("bad maskPattern:" + i);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
r.applyMask = function(t, l) {
|
|
82
|
+
const s = l.size;
|
|
83
|
+
for (let n = 0; n < s; n++)
|
|
84
|
+
for (let e = 0; e < s; e++)
|
|
85
|
+
l.isReserved(e, n) || l.xor(e, n, a(t, e, n));
|
|
86
|
+
}, r.getBestMask = function(t, l) {
|
|
87
|
+
const s = Object.keys(r.Patterns).length;
|
|
88
|
+
let n = 0, e = 1 / 0;
|
|
89
|
+
for (let o = 0; o < s; o++) {
|
|
90
|
+
l(o), r.applyMask(o, t);
|
|
91
|
+
const P = r.getPenaltyN1(t) + r.getPenaltyN2(t) + r.getPenaltyN3(t) + r.getPenaltyN4(t);
|
|
92
|
+
r.applyMask(o, t), P < e && (e = P, n = o);
|
|
93
|
+
}
|
|
94
|
+
return n;
|
|
95
|
+
};
|
|
96
|
+
})(T);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { __exports as a } from "../../../../_virtual/mode.js";
|
|
2
|
+
import "./version-check.js";
|
|
3
|
+
import "./regex.js";
|
|
4
|
+
import { __exports as o } from "../../../../_virtual/version-check.js";
|
|
5
|
+
import { __exports as f } from "../../../../_virtual/regex.js";
|
|
6
|
+
(function(r) {
|
|
7
|
+
const e = o, c = f;
|
|
8
|
+
r.NUMERIC = {
|
|
9
|
+
id: "Numeric",
|
|
10
|
+
bit: 1,
|
|
11
|
+
ccBits: [10, 12, 14]
|
|
12
|
+
}, r.ALPHANUMERIC = {
|
|
13
|
+
id: "Alphanumeric",
|
|
14
|
+
bit: 2,
|
|
15
|
+
ccBits: [9, 11, 13]
|
|
16
|
+
}, r.BYTE = {
|
|
17
|
+
id: "Byte",
|
|
18
|
+
bit: 4,
|
|
19
|
+
ccBits: [8, 16, 16]
|
|
20
|
+
}, r.KANJI = {
|
|
21
|
+
id: "Kanji",
|
|
22
|
+
bit: 8,
|
|
23
|
+
ccBits: [8, 10, 12]
|
|
24
|
+
}, r.MIXED = {
|
|
25
|
+
bit: -1
|
|
26
|
+
}, r.getCharCountIndicator = function(i, n) {
|
|
27
|
+
if (!i.ccBits) throw new Error("Invalid mode: " + i);
|
|
28
|
+
if (!e.isValid(n))
|
|
29
|
+
throw new Error("Invalid version: " + n);
|
|
30
|
+
return n >= 1 && n < 10 ? i.ccBits[0] : n < 27 ? i.ccBits[1] : i.ccBits[2];
|
|
31
|
+
}, r.getBestModeForData = function(i) {
|
|
32
|
+
return c.testNumeric(i) ? r.NUMERIC : c.testAlphanumeric(i) ? r.ALPHANUMERIC : c.testKanji(i) ? r.KANJI : r.BYTE;
|
|
33
|
+
}, r.toString = function(i) {
|
|
34
|
+
if (i && i.id) return i.id;
|
|
35
|
+
throw new Error("Invalid mode");
|
|
36
|
+
}, r.isValid = function(i) {
|
|
37
|
+
return i && i.bit && i.ccBits;
|
|
38
|
+
};
|
|
39
|
+
function u(t) {
|
|
40
|
+
if (typeof t != "string")
|
|
41
|
+
throw new Error("Param is not a string");
|
|
42
|
+
switch (t.toLowerCase()) {
|
|
43
|
+
case "numeric":
|
|
44
|
+
return r.NUMERIC;
|
|
45
|
+
case "alphanumeric":
|
|
46
|
+
return r.ALPHANUMERIC;
|
|
47
|
+
case "kanji":
|
|
48
|
+
return r.KANJI;
|
|
49
|
+
case "byte":
|
|
50
|
+
return r.BYTE;
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("Unknown mode: " + t);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
r.from = function(i, n) {
|
|
56
|
+
if (r.isValid(i))
|
|
57
|
+
return i;
|
|
58
|
+
try {
|
|
59
|
+
return u(i);
|
|
60
|
+
} catch {
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
})(a);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import "./mode.js";
|
|
2
|
+
import { __exports as s } from "../../../../_virtual/mode.js";
|
|
3
|
+
const g = s;
|
|
4
|
+
function n(i) {
|
|
5
|
+
this.mode = g.NUMERIC, this.data = i.toString();
|
|
6
|
+
}
|
|
7
|
+
n.getBitsLength = function(t) {
|
|
8
|
+
return 10 * Math.floor(t / 3) + (t % 3 ? t % 3 * 3 + 1 : 0);
|
|
9
|
+
};
|
|
10
|
+
n.prototype.getLength = function() {
|
|
11
|
+
return this.data.length;
|
|
12
|
+
};
|
|
13
|
+
n.prototype.getBitsLength = function() {
|
|
14
|
+
return n.getBitsLength(this.data.length);
|
|
15
|
+
};
|
|
16
|
+
n.prototype.write = function(t) {
|
|
17
|
+
let e, r, a;
|
|
18
|
+
for (e = 0; e + 3 <= this.data.length; e += 3)
|
|
19
|
+
r = this.data.substr(e, 3), a = parseInt(r, 10), t.put(a, 10);
|
|
20
|
+
const o = this.data.length - e;
|
|
21
|
+
o > 0 && (r = this.data.substr(e), a = parseInt(r, 10), t.put(a, o * 3 + 1));
|
|
22
|
+
};
|
|
23
|
+
var p = n;
|
|
24
|
+
export {
|
|
25
|
+
p as n
|
|
26
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/polynomial.js";
|
|
2
|
+
import "./galois-field.js";
|
|
3
|
+
import { __exports as a } from "../../../../_virtual/galois-field.js";
|
|
4
|
+
(function(r) {
|
|
5
|
+
const f = a;
|
|
6
|
+
r.mul = function(l, n) {
|
|
7
|
+
const e = new Uint8Array(l.length + n.length - 1);
|
|
8
|
+
for (let o = 0; o < l.length; o++)
|
|
9
|
+
for (let t = 0; t < n.length; t++)
|
|
10
|
+
e[o + t] ^= f.mul(l[o], n[t]);
|
|
11
|
+
return e;
|
|
12
|
+
}, r.mod = function(l, n) {
|
|
13
|
+
let e = new Uint8Array(l);
|
|
14
|
+
for (; e.length - n.length >= 0; ) {
|
|
15
|
+
const o = e[0];
|
|
16
|
+
for (let i = 0; i < n.length; i++)
|
|
17
|
+
e[i] ^= f.mul(n[i], o);
|
|
18
|
+
let t = 0;
|
|
19
|
+
for (; t < e.length && e[t] === 0; ) t++;
|
|
20
|
+
e = e.slice(t);
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}, r.generateECPolynomial = function(l) {
|
|
24
|
+
let n = new Uint8Array([1]);
|
|
25
|
+
for (let e = 0; e < l; e++)
|
|
26
|
+
n = r.mul(n, new Uint8Array([1, f.exp(e)]));
|
|
27
|
+
return n;
|
|
28
|
+
};
|
|
29
|
+
})(u);
|