@uzum-tech/ui 1.11.2 → 1.12.1
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/dist/index.js +54230 -49889
- package/dist/index.prod.js +4 -4
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/icons/BurgerMenuIcon.d.ts +2 -0
- package/es/_internal/icons/BurgerMenuIcon.js +4 -0
- package/es/_internal/icons/Logout.d.ts +2 -0
- package/es/_internal/icons/Logout.js +4 -0
- package/es/_internal/icons/OzbekFlag.d.ts +2 -0
- package/es/_internal/icons/OzbekFlag.js +15 -0
- package/es/_internal/icons/RussiaFlag.d.ts +2 -0
- package/es/_internal/icons/RussiaFlag.js +11 -0
- package/es/_internal/icons/SendFilled.d.ts +2 -0
- package/es/_internal/icons/SendFilled.js +9 -0
- package/es/_internal/icons/index.d.ts +5 -0
- package/es/_internal/icons/index.js +5 -0
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +7 -7
- package/es/_internal/selection/src/Selection.d.ts +13 -13
- package/es/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/es/_internal/typography/index.d.ts +1 -0
- package/es/_internal/typography/src/text.d.ts +42 -3
- package/es/_internal/typography/src/text.js +17 -4
- package/es/_internal/typography/src/variants.d.ts +105 -4
- package/es/_internal/typography/src/variants.js +84 -42
- package/es/_internal/typography/styles/dark.js +1 -1
- package/es/_internal/typography/styles/light.d.ts +1 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +1 -0
- package/es/_styles/common/light.js +1 -1
- package/es/affix/src/Affix.d.ts +3 -3
- package/es/alert/src/Alert.d.ts +3 -3
- package/es/anchor/src/AnchorAdapter.d.ts +5 -5
- package/es/auto-complete/src/AutoComplete.d.ts +3 -3
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/button/src/Button.d.ts +7 -7
- package/es/card/src/Card.d.ts +3 -3
- package/es/card-list/src/CardList.d.ts +2 -2
- package/es/card-list/src/CardListItem.d.ts +1 -1
- package/es/carousel/src/Carousel.d.ts +8 -8
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +12 -12
- package/es/cascader/src/CascaderMenu.d.ts +1 -1
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/es/chat/src/Chat.d.ts +464 -83
- package/es/chat/src/Chat.js +17 -2
- package/es/chat/src/ChatListItems.d.ts +497 -94
- package/es/chat/src/ChatListItems.js +1 -1
- package/es/chat/src/ChatMessages.d.ts +501 -94
- package/es/chat/src/ChatMessages.js +115 -22
- package/es/chat/src/ChatParts/MainArea.d.ts +7 -3
- package/es/chat/src/ChatParts/MainArea.js +110 -14
- package/es/chat/src/ChatParts/Sidebar.d.ts +64 -11
- package/es/chat/src/interface.d.ts +18 -0
- package/es/chat/src/interface.js +6 -0
- package/es/chat/src/styles/index.cssr.js +22 -1
- package/es/chat/styles/dark.d.ts +41 -8
- package/es/chat/styles/dark.js +6 -2
- package/es/chat/styles/light.d.ts +42 -8
- package/es/chat/styles/light.js +7 -2
- package/es/checkbox/src/Checkbox.d.ts +5 -5
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +3 -3
- package/es/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/ConfigProvider.d.ts +7 -1
- package/es/config-provider/src/ConfigProvider.js +83 -12
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +212 -33
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.js +34 -3
- package/es/data-table/src/DataTable.d.ts +6 -6
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +4 -4
- package/es/date-picker/src/panel/date.d.ts +1 -1
- package/es/date-picker/src/panel/daterange.d.ts +1 -1
- package/es/date-picker/src/panel/datetime.d.ts +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/es/date-picker/src/panel/panelMonth.d.ts +9 -9
- package/es/date-picker/src/panel/panelMonthContent.d.ts +1 -1
- package/es/date-picker/src/panel/panelYear.d.ts +9 -9
- package/es/date-picker/src/panel/panelYearContent.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +3 -3
- package/es/dialog/src/Dialog.d.ts +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +3 -3
- package/es/dialog/src/DialogProvider.d.ts +31 -29
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +7 -7
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +15 -15
- package/es/dropdown/src/DropdownMenu.d.ts +2 -2
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/flex/src/Flex.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +3 -3
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +3 -3
- package/es/form/src/FormItemRow.d.ts +2 -2
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +3 -3
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/header/demos/mock.d.ts +2 -0
- package/es/header/demos/mock.js +235 -0
- package/es/header/index.d.ts +12 -0
- package/es/header/index.js +10 -0
- package/es/header/src/Header.d.ts +604 -0
- package/es/header/src/Header.js +320 -0
- package/es/header/src/HeaderActions.d.ts +120 -0
- package/es/header/src/HeaderActions.js +166 -0
- package/es/header/src/HeaderDesktopLayout.d.ts +25 -0
- package/es/header/src/HeaderDesktopLayout.js +24 -0
- package/es/header/src/HeaderMobileLayout.d.ts +25 -0
- package/es/header/src/HeaderMobileLayout.js +21 -0
- package/es/header/src/HeaderNavigation.d.ts +128 -0
- package/es/header/src/HeaderNavigation.js +172 -0
- package/es/header/src/HeaderSearchDesktop.d.ts +79 -0
- package/es/header/src/HeaderSearchDesktop.js +77 -0
- package/es/header/src/HeaderSearchMobile.d.ts +73 -0
- package/es/header/src/HeaderSearchMobile.js +126 -0
- package/es/header/src/HeaderSearchResults.d.ts +81 -0
- package/es/header/src/HeaderSearchResults.js +74 -0
- package/es/header/src/constants.d.ts +1 -0
- package/es/header/src/constants.js +1 -0
- package/es/header/src/interface.d.ts +58 -0
- package/es/header/src/interface.js +1 -0
- package/es/header/src/mobile/HeaderMobile.d.ts +218 -0
- package/es/header/src/mobile/HeaderMobile.js +241 -0
- package/es/header/src/styles/index.cssr.d.ts +6 -0
- package/es/header/src/styles/index.cssr.js +519 -0
- package/es/header/src/utils.d.ts +12 -0
- package/es/header/src/utils.js +47 -0
- package/es/header/styles/dark.d.ts +36 -0
- package/es/header/styles/dark.js +9 -0
- package/es/header/styles/index.d.ts +3 -0
- package/es/header/styles/index.js +2 -0
- package/es/header/styles/light.d.ts +72 -0
- package/es/header/styles/light.js +45 -0
- package/es/icon/src/Icon.d.ts +3 -0
- package/es/icon/src/Icon.js +3 -2
- package/es/icon-bar/index.d.ts +4 -0
- package/es/icon-bar/index.js +2 -0
- package/es/icon-bar/src/IconBar.d.ts +175 -0
- package/es/icon-bar/src/IconBar.js +57 -0
- package/es/icon-bar/src/IconBarItem.d.ts +163 -0
- package/es/icon-bar/src/IconBarItem.js +50 -0
- package/es/icon-bar/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-bar/src/styles/index.cssr.js +62 -0
- package/es/icon-bar/styles/dark.d.ts +3 -0
- package/es/icon-bar/styles/dark.js +8 -0
- package/es/icon-bar/styles/index.d.ts +3 -0
- package/es/icon-bar/styles/index.js +2 -0
- package/es/icon-bar/styles/light.d.ts +19 -0
- package/es/icon-bar/styles/light.js +23 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/input/src/Input.d.ts +8 -8
- package/es/input-number/src/InputNumber.d.ts +3 -3
- package/es/input-otp/src/InputOtp.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +2 -2
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +2 -2
- package/es/list/src/List.d.ts +6 -6
- package/es/list/src/ListItem.d.ts +4 -4
- package/es/locales/common/arDZ.js +11 -1
- package/es/locales/common/deDE.js +11 -1
- package/es/locales/common/enGB.js +11 -1
- package/es/locales/common/enUS.d.ts +10 -0
- package/es/locales/common/enUS.js +11 -1
- package/es/locales/common/eo.js +11 -1
- package/es/locales/common/esAR.js +11 -1
- package/es/locales/common/faIR.js +11 -1
- package/es/locales/common/frFR.js +11 -1
- package/es/locales/common/idID.js +11 -1
- package/es/locales/common/itIT.js +11 -1
- package/es/locales/common/jaJP.js +11 -1
- package/es/locales/common/koKR.js +11 -1
- package/es/locales/common/nbNO.js +11 -1
- package/es/locales/common/nlNL.js +11 -1
- package/es/locales/common/plPL.js +11 -1
- package/es/locales/common/ptBR.js +11 -1
- package/es/locales/common/ruRU.js +11 -1
- package/es/locales/common/skSK.js +11 -1
- package/es/locales/common/svSE.js +11 -1
- package/es/locales/common/thTH.js +11 -1
- package/es/locales/common/trTR.js +11 -1
- package/es/locales/common/ukUA.js +11 -1
- package/es/locales/common/viVN.js +11 -1
- package/es/locales/common/zhCN.js +11 -1
- package/es/locales/common/zhTW.js +11 -1
- package/es/log/src/Log.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +3 -3
- package/es/menu/src/Menu.d.ts +5 -5
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +3 -3
- package/es/modal/src/Modal.d.ts +6 -6
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +9 -9
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -8
- package/es/popover/src/Popover.d.ts +8 -8
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +81 -81
- package/es/popselect/src/PopselectPanel.d.ts +4 -4
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +4 -4
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +171 -0
- package/es/qr-code/src/QrCode.js +229 -0
- package/es/qr-code/src/qrcodegen.d.ts +95 -0
- package/es/qr-code/src/qrcodegen.js +949 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/radio/src/Radio.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +3 -3
- package/es/result/src/Result.d.ts +1 -1
- package/es/select/src/Select.d.ts +19 -19
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +4 -4
- package/es/space/src/Space.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +2 -2
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +4 -4
- package/es/tag/src/Tag.d.ts +2 -2
- package/es/tag/src/TagGroup.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/es/themes/dark.js +7 -1
- package/es/themes/light.js +7 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +5 -5
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +8 -8
- package/es/transfer/src/Transfer.d.ts +3 -3
- package/es/tree/src/Tree.d.ts +18 -18
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +15 -15
- package/es/typography/index.d.ts +1 -0
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/text.d.ts +44 -5
- package/es/upload/src/Upload.d.ts +11 -11
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +2 -2
- package/es/watermark/src/Watermark.d.ts +7 -7
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/icons/BurgerMenuIcon.d.ts +2 -0
- package/lib/_internal/icons/BurgerMenuIcon.js +6 -0
- package/lib/_internal/icons/Logout.d.ts +2 -0
- package/lib/_internal/icons/Logout.js +6 -0
- package/lib/_internal/icons/OzbekFlag.d.ts +2 -0
- package/lib/_internal/icons/OzbekFlag.js +17 -0
- package/lib/_internal/icons/RussiaFlag.d.ts +2 -0
- package/lib/_internal/icons/RussiaFlag.js +13 -0
- package/lib/_internal/icons/SendFilled.d.ts +2 -0
- package/lib/_internal/icons/SendFilled.js +11 -0
- package/lib/_internal/icons/index.d.ts +5 -0
- package/lib/_internal/icons/index.js +11 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +2 -2
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +7 -7
- package/lib/_internal/selection/src/Selection.d.ts +13 -13
- package/lib/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/_internal/typography/index.d.ts +1 -0
- package/lib/_internal/typography/src/text.d.ts +42 -3
- package/lib/_internal/typography/src/text.js +18 -5
- package/lib/_internal/typography/src/variants.d.ts +105 -4
- package/lib/_internal/typography/src/variants.js +87 -43
- package/lib/_internal/typography/styles/dark.js +2 -2
- package/lib/_internal/typography/styles/light.d.ts +1 -1
- package/lib/_internal/typography/styles/light.js +2 -2
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +1 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/affix/src/Affix.d.ts +3 -3
- package/lib/alert/src/Alert.d.ts +3 -3
- package/lib/anchor/src/AnchorAdapter.d.ts +5 -5
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -3
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/button/src/Button.d.ts +7 -7
- package/lib/card/src/Card.d.ts +3 -3
- package/lib/card-list/src/CardList.d.ts +2 -2
- package/lib/card-list/src/CardListItem.d.ts +1 -1
- package/lib/carousel/src/Carousel.d.ts +8 -8
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +12 -12
- package/lib/cascader/src/CascaderMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/lib/chat/src/Chat.d.ts +464 -83
- package/lib/chat/src/Chat.js +17 -2
- package/lib/chat/src/ChatListItems.d.ts +497 -94
- package/lib/chat/src/ChatListItems.js +1 -1
- package/lib/chat/src/ChatMessages.d.ts +501 -94
- package/lib/chat/src/ChatMessages.js +113 -20
- package/lib/chat/src/ChatParts/MainArea.d.ts +7 -3
- package/lib/chat/src/ChatParts/MainArea.js +108 -12
- package/lib/chat/src/ChatParts/Sidebar.d.ts +64 -11
- package/lib/chat/src/interface.d.ts +18 -0
- package/lib/chat/src/interface.js +7 -1
- package/lib/chat/src/styles/index.cssr.js +22 -1
- package/lib/chat/styles/dark.d.ts +41 -8
- package/lib/chat/styles/dark.js +6 -2
- package/lib/chat/styles/light.d.ts +42 -8
- package/lib/chat/styles/light.js +7 -2
- package/lib/checkbox/src/Checkbox.d.ts +5 -5
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +3 -3
- package/lib/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +7 -1
- package/lib/config-provider/src/ConfigProvider.js +81 -10
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +212 -33
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.js +34 -3
- package/lib/data-table/src/DataTable.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +4 -4
- package/lib/date-picker/src/panel/date.d.ts +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/lib/date-picker/src/panel/panelMonth.d.ts +9 -9
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +1 -1
- package/lib/date-picker/src/panel/panelYear.d.ts +9 -9
- package/lib/date-picker/src/panel/panelYearContent.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +3 -3
- package/lib/dialog/src/Dialog.d.ts +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +31 -29
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +7 -7
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +15 -15
- package/lib/dropdown/src/DropdownMenu.d.ts +2 -2
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/flex/src/Flex.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +3 -3
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +3 -3
- package/lib/form/src/FormItemRow.d.ts +2 -2
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +3 -3
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/header/demos/mock.d.ts +2 -0
- package/lib/header/demos/mock.js +238 -0
- package/lib/header/index.d.ts +12 -0
- package/lib/header/index.js +48 -0
- package/lib/header/src/Header.d.ts +604 -0
- package/lib/header/src/Header.js +349 -0
- package/lib/header/src/HeaderActions.d.ts +120 -0
- package/lib/header/src/HeaderActions.js +172 -0
- package/lib/header/src/HeaderDesktopLayout.d.ts +25 -0
- package/lib/header/src/HeaderDesktopLayout.js +27 -0
- package/lib/header/src/HeaderMobileLayout.d.ts +25 -0
- package/lib/header/src/HeaderMobileLayout.js +24 -0
- package/lib/header/src/HeaderNavigation.d.ts +128 -0
- package/lib/header/src/HeaderNavigation.js +175 -0
- package/lib/header/src/HeaderSearchDesktop.d.ts +79 -0
- package/lib/header/src/HeaderSearchDesktop.js +83 -0
- package/lib/header/src/HeaderSearchMobile.d.ts +73 -0
- package/lib/header/src/HeaderSearchMobile.js +132 -0
- package/lib/header/src/HeaderSearchResults.d.ts +81 -0
- package/lib/header/src/HeaderSearchResults.js +77 -0
- package/lib/header/src/constants.d.ts +1 -0
- package/lib/header/src/constants.js +4 -0
- package/lib/header/src/interface.d.ts +58 -0
- package/lib/header/src/interface.js +2 -0
- package/lib/header/src/mobile/HeaderMobile.d.ts +218 -0
- package/lib/header/src/mobile/HeaderMobile.js +244 -0
- package/lib/header/src/styles/index.cssr.d.ts +6 -0
- package/lib/header/src/styles/index.cssr.js +525 -0
- package/lib/header/src/utils.d.ts +12 -0
- package/lib/header/src/utils.js +58 -0
- package/lib/header/styles/dark.d.ts +36 -0
- package/lib/header/styles/dark.js +11 -0
- package/lib/header/styles/index.d.ts +3 -0
- package/lib/header/styles/index.js +10 -0
- package/lib/header/styles/light.d.ts +72 -0
- package/lib/header/styles/light.js +49 -0
- package/lib/icon/src/Icon.d.ts +3 -0
- package/lib/icon/src/Icon.js +3 -2
- package/lib/icon-bar/index.d.ts +4 -0
- package/lib/icon-bar/index.js +12 -0
- package/lib/icon-bar/src/IconBar.d.ts +175 -0
- package/lib/icon-bar/src/IconBar.js +63 -0
- package/lib/icon-bar/src/IconBarItem.d.ts +163 -0
- package/lib/icon-bar/src/IconBarItem.js +56 -0
- package/lib/icon-bar/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-bar/src/styles/index.cssr.js +67 -0
- package/lib/icon-bar/styles/dark.d.ts +3 -0
- package/lib/icon-bar/styles/dark.js +10 -0
- package/lib/icon-bar/styles/index.d.ts +3 -0
- package/lib/icon-bar/styles/index.js +10 -0
- package/lib/icon-bar/styles/light.d.ts +19 -0
- package/lib/icon-bar/styles/light.js +27 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/input/src/Input.d.ts +8 -8
- package/lib/input-number/src/InputNumber.d.ts +3 -3
- package/lib/input-otp/src/InputOtp.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +2 -2
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
- package/lib/list/src/List.d.ts +6 -6
- package/lib/list/src/ListItem.d.ts +4 -4
- package/lib/locales/common/arDZ.js +11 -1
- package/lib/locales/common/deDE.js +11 -1
- package/lib/locales/common/enGB.js +11 -1
- package/lib/locales/common/enUS.d.ts +10 -0
- package/lib/locales/common/enUS.js +11 -1
- package/lib/locales/common/eo.js +11 -1
- package/lib/locales/common/esAR.js +11 -1
- package/lib/locales/common/faIR.js +11 -1
- package/lib/locales/common/frFR.js +11 -1
- package/lib/locales/common/idID.js +11 -1
- package/lib/locales/common/itIT.js +11 -1
- package/lib/locales/common/jaJP.js +11 -1
- package/lib/locales/common/koKR.js +11 -1
- package/lib/locales/common/nbNO.js +11 -1
- package/lib/locales/common/nlNL.js +11 -1
- package/lib/locales/common/plPL.js +11 -1
- package/lib/locales/common/ptBR.js +11 -1
- package/lib/locales/common/ruRU.js +11 -1
- package/lib/locales/common/skSK.js +11 -1
- package/lib/locales/common/svSE.js +11 -1
- package/lib/locales/common/thTH.js +11 -1
- package/lib/locales/common/trTR.js +11 -1
- package/lib/locales/common/ukUA.js +11 -1
- package/lib/locales/common/viVN.js +11 -1
- package/lib/locales/common/zhCN.js +11 -1
- package/lib/locales/common/zhTW.js +11 -1
- package/lib/log/src/Log.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +3 -3
- package/lib/menu/src/Menu.d.ts +5 -5
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +3 -3
- package/lib/modal/src/Modal.d.ts +6 -6
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +9 -9
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -8
- package/lib/popover/src/Popover.d.ts +8 -8
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +81 -81
- package/lib/popselect/src/PopselectPanel.d.ts +4 -4
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +4 -4
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +171 -0
- package/lib/qr-code/src/QrCode.js +235 -0
- package/lib/qr-code/src/qrcodegen.d.ts +95 -0
- package/lib/qr-code/src/qrcodegen.js +950 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/radio/src/Radio.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +3 -3
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/select/src/Select.d.ts +19 -19
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +4 -4
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +2 -2
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +4 -4
- package/lib/tag/src/Tag.d.ts +2 -2
- package/lib/tag/src/TagGroup.d.ts +1 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -0
- package/lib/themes/dark.js +7 -1
- package/lib/themes/light.js +7 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +5 -5
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +8 -8
- package/lib/transfer/src/Transfer.d.ts +3 -3
- package/lib/tree/src/Tree.d.ts +18 -18
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +15 -15
- package/lib/typography/index.d.ts +1 -0
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/text.d.ts +44 -5
- package/lib/upload/src/Upload.d.ts +11 -11
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +2 -2
- package/lib/watermark/src/Watermark.d.ts +7 -7
- package/package.json +1 -1
- package/volar.d.ts +166 -153
- package/web-types.json +912 -3
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { computed, defineComponent, h, onMounted, ref, watchEffect } from 'vue';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
|
+
import { qrcodeLight } from '../styles';
|
|
4
|
+
import qrcodegen from './qrcodegen';
|
|
5
|
+
import style from './styles/index.cssr';
|
|
6
|
+
const ERROR_CORRECTION_LEVEL = {
|
|
7
|
+
L: qrcodegen.QrCode.Ecc.LOW,
|
|
8
|
+
M: qrcodegen.QrCode.Ecc.MEDIUM,
|
|
9
|
+
Q: qrcodegen.QrCode.Ecc.QUARTILE,
|
|
10
|
+
H: qrcodegen.QrCode.Ecc.HIGH
|
|
11
|
+
};
|
|
12
|
+
export const qrCodeProps = Object.assign(Object.assign({}, useTheme.props), { value: String, color: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: '#000'
|
|
15
|
+
}, backgroundColor: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: '#FFF'
|
|
18
|
+
}, iconSrc: String, iconSize: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 40
|
|
21
|
+
}, iconBackgroundColor: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: '#FFF'
|
|
24
|
+
}, iconBorderRadius: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 4
|
|
27
|
+
}, size: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 100
|
|
30
|
+
}, padding: {
|
|
31
|
+
type: [Number, String],
|
|
32
|
+
default: 12
|
|
33
|
+
}, errorCorrectionLevel: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: 'M'
|
|
36
|
+
}, type: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: 'canvas'
|
|
39
|
+
} });
|
|
40
|
+
// For retina display
|
|
41
|
+
const UPSCALE_RATIO = 2;
|
|
42
|
+
export default defineComponent({
|
|
43
|
+
name: 'QrCode',
|
|
44
|
+
props: qrCodeProps,
|
|
45
|
+
setup(props) {
|
|
46
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
47
|
+
const themeRef = useTheme('QrCode', '-qr-code', style, qrcodeLight, props, mergedClsPrefixRef);
|
|
48
|
+
const cssVarsRef = computed(() => {
|
|
49
|
+
return {
|
|
50
|
+
'--u-border-radius': themeRef.value.self.borderRadius
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
const themeClassHandle = inlineThemeDisabled
|
|
54
|
+
? useThemeClass('qr-code', undefined, cssVarsRef, props)
|
|
55
|
+
: undefined;
|
|
56
|
+
const canvasRef = ref();
|
|
57
|
+
const qr = computed(() => {
|
|
58
|
+
var _a;
|
|
59
|
+
const errorCorrectionLevel = ERROR_CORRECTION_LEVEL[props.errorCorrectionLevel];
|
|
60
|
+
return qrcodegen.QrCode.encodeText((_a = props.value) !== null && _a !== void 0 ? _a : '-', errorCorrectionLevel);
|
|
61
|
+
});
|
|
62
|
+
onMounted(() => {
|
|
63
|
+
const imageLoadedTrigger = ref(0);
|
|
64
|
+
let loadedIcon = null;
|
|
65
|
+
watchEffect(() => {
|
|
66
|
+
if (props.type === 'svg') {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
void imageLoadedTrigger.value;
|
|
70
|
+
drawCanvas(qr.value, props.size, props.color, props.backgroundColor, loadedIcon
|
|
71
|
+
? {
|
|
72
|
+
icon: loadedIcon,
|
|
73
|
+
iconBorderRadius: props.iconBorderRadius,
|
|
74
|
+
iconSize: props.iconSize,
|
|
75
|
+
iconBackgroundColor: props.iconBackgroundColor
|
|
76
|
+
}
|
|
77
|
+
: null);
|
|
78
|
+
});
|
|
79
|
+
watchEffect(() => {
|
|
80
|
+
if (props.type === 'svg') {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const { iconSrc } = props;
|
|
84
|
+
if (iconSrc) {
|
|
85
|
+
let aborted = false;
|
|
86
|
+
const img = new Image();
|
|
87
|
+
img.src = iconSrc;
|
|
88
|
+
img.onload = () => {
|
|
89
|
+
if (aborted) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
loadedIcon = img;
|
|
93
|
+
imageLoadedTrigger.value++;
|
|
94
|
+
};
|
|
95
|
+
return () => {
|
|
96
|
+
aborted = true;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
function drawCanvas(qr, size, foregroundColor, backgroundColor, iconConfig) {
|
|
102
|
+
const canvas = canvasRef.value;
|
|
103
|
+
if (!canvas) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const canvasWidth = size * UPSCALE_RATIO;
|
|
107
|
+
const width = qr.size;
|
|
108
|
+
const scale = canvasWidth / width;
|
|
109
|
+
canvas.width = canvasWidth;
|
|
110
|
+
canvas.height = canvasWidth;
|
|
111
|
+
const ctx = canvas.getContext('2d');
|
|
112
|
+
if (!ctx) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
116
|
+
for (let y = 0; y < qr.size; y++) {
|
|
117
|
+
for (let x = 0; x < qr.size; x++) {
|
|
118
|
+
ctx.fillStyle = qr.getModule(x, y) ? foregroundColor : backgroundColor;
|
|
119
|
+
const startX = Math.floor(x * scale);
|
|
120
|
+
const endX = Math.ceil((x + 1) * scale);
|
|
121
|
+
const startY = Math.floor(y * scale);
|
|
122
|
+
const endY = Math.ceil((y + 1) * scale);
|
|
123
|
+
ctx.fillRect(startX, startY, endX - startX, endY - startY);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
if (iconConfig) {
|
|
127
|
+
const { icon, iconBackgroundColor, iconBorderRadius, iconSize } = iconConfig;
|
|
128
|
+
const finalIconSize = iconSize * UPSCALE_RATIO;
|
|
129
|
+
const centerX = (canvas.width - finalIconSize) / 2;
|
|
130
|
+
const centerY = (canvas.height - finalIconSize) / 2;
|
|
131
|
+
ctx.fillStyle = iconBackgroundColor;
|
|
132
|
+
ctx.beginPath();
|
|
133
|
+
ctx.roundRect(centerX, centerY, finalIconSize, finalIconSize, iconBorderRadius * UPSCALE_RATIO);
|
|
134
|
+
ctx.fill();
|
|
135
|
+
const aspectRatio = icon.width / icon.height;
|
|
136
|
+
const scaledWidth = aspectRatio >= 1 ? finalIconSize : finalIconSize * aspectRatio;
|
|
137
|
+
const scaledHeight = aspectRatio <= 1 ? finalIconSize : finalIconSize / aspectRatio;
|
|
138
|
+
const left = centerX + (finalIconSize - scaledWidth) / 2;
|
|
139
|
+
const top = centerY + (finalIconSize - scaledHeight) / 2;
|
|
140
|
+
ctx.drawImage(icon, left, top, scaledWidth, scaledHeight);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
function generatePath(modules, margin = 0) {
|
|
144
|
+
const ops = [];
|
|
145
|
+
modules.forEach((row, y) => {
|
|
146
|
+
let start = null;
|
|
147
|
+
row.forEach((cell, x) => {
|
|
148
|
+
if (!cell && start !== null) {
|
|
149
|
+
// M0 0h7v1H0z injects the space with the move and drops the comma,
|
|
150
|
+
// saving a char per operation
|
|
151
|
+
ops.push(`M${start + margin} ${y + margin}h${x - start}v1H${start + margin}z`);
|
|
152
|
+
start = null;
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
// end of row, clean up or skip
|
|
156
|
+
if (x === row.length - 1) {
|
|
157
|
+
if (!cell) {
|
|
158
|
+
// We would have closed the op above already so this can only mean
|
|
159
|
+
// 2+ light modules in a row.
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
if (start === null) {
|
|
163
|
+
// Just a single dark module.
|
|
164
|
+
ops.push(`M${x + margin},${y + margin} h1v1H${x + margin}z`);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
// Otherwise finish the current line.
|
|
168
|
+
ops.push(`M${start + margin},${y + margin} h${x + 1 - start}v1H${start + margin}z`);
|
|
169
|
+
}
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (cell && start === null) {
|
|
173
|
+
start = x;
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
return ops.join('');
|
|
178
|
+
}
|
|
179
|
+
function svgInfo(qr, size, iconConfig) {
|
|
180
|
+
const cells = qr.getModules();
|
|
181
|
+
const numCells = cells.length;
|
|
182
|
+
const cellsToDraw = cells;
|
|
183
|
+
let svgInnerHtml = '';
|
|
184
|
+
const path1Html = `<path fill="transparent" d="M0,0 h${numCells}v${numCells}H0z" shape-rendering="crispEdges"></path>`;
|
|
185
|
+
const path2Html = `<path fill="${props.color}" d="${generatePath(cellsToDraw, 0)}" shape-rendering="crispEdges"></path>`;
|
|
186
|
+
let iconHtml = '';
|
|
187
|
+
if (iconConfig) {
|
|
188
|
+
const { iconSrc, iconSize } = iconConfig;
|
|
189
|
+
const DEFAULT_IMG_SCALE = 0.1;
|
|
190
|
+
const defaultSize = Math.floor(size * DEFAULT_IMG_SCALE);
|
|
191
|
+
const scale = numCells / size;
|
|
192
|
+
const h = (iconSize || defaultSize) * scale;
|
|
193
|
+
const w = (iconSize || defaultSize) * scale;
|
|
194
|
+
const x = cells.length / 2 - w / 2;
|
|
195
|
+
const y = cells.length / 2 - h / 2;
|
|
196
|
+
iconHtml += `<image href="${iconSrc}" width="${w}" height="${h}" x="${x}" y="${y}" preserveAspectRatio="none"></image>`;
|
|
197
|
+
}
|
|
198
|
+
svgInnerHtml += path1Html;
|
|
199
|
+
svgInnerHtml += path2Html;
|
|
200
|
+
svgInnerHtml += iconHtml;
|
|
201
|
+
return {
|
|
202
|
+
innerHtml: svgInnerHtml,
|
|
203
|
+
numCells
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
const svgInfoRef = computed(() => svgInfo(qr.value, props.size, props.iconSrc
|
|
207
|
+
? {
|
|
208
|
+
iconSrc: props.iconSrc,
|
|
209
|
+
iconBorderRadius: props.iconBorderRadius,
|
|
210
|
+
iconSize: props.iconSize,
|
|
211
|
+
iconBackgroundColor: props.iconBackgroundColor
|
|
212
|
+
}
|
|
213
|
+
: null));
|
|
214
|
+
return {
|
|
215
|
+
canvasRef,
|
|
216
|
+
mergedClsPrefix: mergedClsPrefixRef,
|
|
217
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
218
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
219
|
+
svgInfo: svgInfoRef
|
|
220
|
+
};
|
|
221
|
+
},
|
|
222
|
+
render() {
|
|
223
|
+
const { mergedClsPrefix, backgroundColor, padding, cssVars, themeClass, size, type } = this;
|
|
224
|
+
return (h("div", { class: [`${mergedClsPrefix}-qr-code`, themeClass], style: Object.assign({ padding: typeof padding === 'number' ? `${padding}px` : padding, backgroundColor, width: `${size}px`, height: `${size}px` }, cssVars) }, type === 'canvas' ? (h("canvas", { ref: "canvasRef", style: {
|
|
225
|
+
width: `${size}px`,
|
|
226
|
+
height: `${size}px`
|
|
227
|
+
} })) : (h("svg", { height: size, width: size, viewBox: `0 0 ${this.svgInfo.numCells} ${this.svgInfo.numCells}`, role: "img", innerHTML: this.svgInfo.innerHtml }))));
|
|
228
|
+
}
|
|
229
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare namespace qrcodegen {
|
|
2
|
+
type bit = number;
|
|
3
|
+
type byte = number;
|
|
4
|
+
type int = number;
|
|
5
|
+
export class QrCode {
|
|
6
|
+
readonly version: int;
|
|
7
|
+
readonly errorCorrectionLevel: QrCode.Ecc;
|
|
8
|
+
static encodeText(text: string, ecl: QrCode.Ecc): QrCode;
|
|
9
|
+
static encodeBinary(data: Readonly<byte[]>, ecl: QrCode.Ecc): QrCode;
|
|
10
|
+
static encodeSegments(segs: Readonly<QrSegment[]>, ecl: QrCode.Ecc, minVersion?: int, maxVersion?: int, mask?: int, boostEcl?: boolean): QrCode;
|
|
11
|
+
readonly size: int;
|
|
12
|
+
readonly mask: int;
|
|
13
|
+
private readonly modules;
|
|
14
|
+
private readonly isFunction;
|
|
15
|
+
constructor(version: int, errorCorrectionLevel: QrCode.Ecc, dataCodewords: Readonly<byte[]>, msk: int);
|
|
16
|
+
getModule(x: int, y: int): boolean;
|
|
17
|
+
getModules(): boolean[][];
|
|
18
|
+
private drawFunctionPatterns;
|
|
19
|
+
private drawFormatBits;
|
|
20
|
+
private drawVersion;
|
|
21
|
+
private drawFinderPattern;
|
|
22
|
+
private drawAlignmentPattern;
|
|
23
|
+
private setFunctionModule;
|
|
24
|
+
private addEccAndInterleave;
|
|
25
|
+
private drawCodewords;
|
|
26
|
+
private applyMask;
|
|
27
|
+
private getPenaltyScore;
|
|
28
|
+
private getAlignmentPatternPositions;
|
|
29
|
+
private static getNumRawDataModules;
|
|
30
|
+
private static getNumDataCodewords;
|
|
31
|
+
private static reedSolomonComputeDivisor;
|
|
32
|
+
private static reedSolomonComputeRemainder;
|
|
33
|
+
private static reedSolomonMultiply;
|
|
34
|
+
private finderPenaltyCountPatterns;
|
|
35
|
+
private finderPenaltyTerminateAndCount;
|
|
36
|
+
private finderPenaltyAddHistory;
|
|
37
|
+
static readonly MIN_VERSION: int;
|
|
38
|
+
static readonly MAX_VERSION: int;
|
|
39
|
+
private static readonly PENALTY_N1;
|
|
40
|
+
private static readonly PENALTY_N2;
|
|
41
|
+
private static readonly PENALTY_N3;
|
|
42
|
+
private static readonly PENALTY_N4;
|
|
43
|
+
private static readonly ECC_CODEWORDS_PER_BLOCK;
|
|
44
|
+
private static readonly NUM_ERROR_CORRECTION_BLOCKS;
|
|
45
|
+
}
|
|
46
|
+
export class QrSegment {
|
|
47
|
+
readonly mode: QrSegment.Mode;
|
|
48
|
+
readonly numChars: int;
|
|
49
|
+
private readonly bitData;
|
|
50
|
+
static makeBytes(data: Readonly<byte[]>): QrSegment;
|
|
51
|
+
static makeNumeric(digits: string): QrSegment;
|
|
52
|
+
static makeAlphanumeric(text: string): QrSegment;
|
|
53
|
+
static makeSegments(text: string): QrSegment[];
|
|
54
|
+
static makeEci(assignVal: int): QrSegment;
|
|
55
|
+
static isNumeric(text: string): boolean;
|
|
56
|
+
static isAlphanumeric(text: string): boolean;
|
|
57
|
+
constructor(mode: QrSegment.Mode, numChars: int, bitData: bit[]);
|
|
58
|
+
getData(): bit[];
|
|
59
|
+
static getTotalBits(segs: Readonly<QrSegment[]>, version: int): number;
|
|
60
|
+
private static toUtf8ByteArray;
|
|
61
|
+
private static readonly NUMERIC_REGEX;
|
|
62
|
+
private static readonly ALPHANUMERIC_REGEX;
|
|
63
|
+
private static readonly ALPHANUMERIC_CHARSET;
|
|
64
|
+
}
|
|
65
|
+
export {};
|
|
66
|
+
}
|
|
67
|
+
declare namespace qrcodegen.QrCode {
|
|
68
|
+
type int = number;
|
|
69
|
+
export class Ecc {
|
|
70
|
+
readonly ordinal: int;
|
|
71
|
+
readonly formatBits: int;
|
|
72
|
+
static readonly LOW: Ecc;
|
|
73
|
+
static readonly MEDIUM: Ecc;
|
|
74
|
+
static readonly QUARTILE: Ecc;
|
|
75
|
+
static readonly HIGH: Ecc;
|
|
76
|
+
private constructor();
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
79
|
+
}
|
|
80
|
+
declare namespace qrcodegen.QrSegment {
|
|
81
|
+
type int = number;
|
|
82
|
+
export class Mode {
|
|
83
|
+
readonly modeBits: int;
|
|
84
|
+
private readonly numBitsCharCount;
|
|
85
|
+
static readonly NUMERIC: Mode;
|
|
86
|
+
static readonly ALPHANUMERIC: Mode;
|
|
87
|
+
static readonly BYTE: Mode;
|
|
88
|
+
static readonly KANJI: Mode;
|
|
89
|
+
static readonly ECI: Mode;
|
|
90
|
+
private constructor();
|
|
91
|
+
numCharCountBits(ver: int): int;
|
|
92
|
+
}
|
|
93
|
+
export {};
|
|
94
|
+
}
|
|
95
|
+
export default qrcodegen;
|