@unicom-cloud/ui 0.8.149 → 0.8.151
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/.virtual/_rolldown/runtime.js +19 -0
- package/.vite/license.md +3 -0
- package/.vite/manifest.json +8214 -0
- package/affix/Affix.d.ts +10 -0
- package/affix/Affix.js +114 -130
- package/affix/index.d.ts +7 -0
- package/affix/index.js +7 -5
- package/alert/Alert.d.ts +5 -0
- package/alert/Alert.js +82 -111
- package/alert/index.d.ts +3 -0
- package/alert/index.js +7 -5
- package/anchor/Anchor.d.ts +10 -0
- package/anchor/Anchor.js +146 -190
- package/anchor/Link.d.ts +6 -0
- package/anchor/Link.js +40 -57
- package/anchor/context.d.ts +3 -0
- package/anchor/context.js +12 -15
- package/anchor/index.d.ts +14 -0
- package/anchor/index.js +9 -9
- package/anchor/utils.d.ts +5 -0
- package/anchor/utils.js +37 -46
- package/app/App.js +34 -26
- package/app/context.d.ts +4 -0
- package/app/context.js +11 -10
- package/app/index.js +9 -12
- package/app/useApp.d.ts +3 -0
- package/app/useApp.js +8 -7
- package/auto-complete/AutoComplete.d.ts +11 -0
- package/auto-complete/AutoComplete.js +109 -165
- package/auto-complete/index.d.ts +20 -0
- package/auto-complete/index.js +10 -7
- package/auto-complete/interface.d.ts +122 -0
- package/avatar/Avatar.d.ts +6 -0
- package/avatar/Avatar.js +70 -91
- package/avatar/Group.d.ts +6 -0
- package/avatar/Group.js +65 -83
- package/avatar/context.d.ts +3 -0
- package/avatar/context.js +7 -6
- package/avatar/index.d.ts +12 -0
- package/avatar/index.js +9 -11
- package/avatar/interface.d.ts +91 -0
- package/back-top/BackTop.d.ts +6 -0
- package/back-top/BackTop.js +59 -74
- package/back-top/index.d.ts +5 -0
- package/back-top/index.js +7 -5
- package/badge/Badge.d.ts +7 -0
- package/badge/Badge.js +123 -211
- package/badge/Count.js +33 -36
- package/badge/index.d.ts +10 -0
- package/badge/index.js +9 -10
- package/badge/utils.d.ts +5 -0
- package/badge/utils.js +24 -0
- package/breadcrumb/Breadcrumb.d.ts +9 -0
- package/breadcrumb/Breadcrumb.js +77 -94
- package/breadcrumb/Item.d.ts +8 -0
- package/breadcrumb/Item.js +37 -67
- package/breadcrumb/context.d.ts +4 -0
- package/breadcrumb/context.js +7 -6
- package/breadcrumb/index.d.ts +11 -0
- package/breadcrumb/index.js +9 -9
- package/breadcrumb/interface.d.ts +79 -0
- package/button/Button.d.ts +19 -0
- package/button/Button.js +102 -157
- package/button/Group.d.ts +5 -0
- package/button/Group.js +20 -13
- package/button/index.d.ts +18 -0
- package/button/index.js +11 -10
- package/button/interface.d.ts +114 -0
- package/calendar/Calendar.d.ts +4 -0
- package/calendar/Calendar.js +138 -0
- package/calendar/Month.d.ts +15 -0
- package/calendar/Month.js +115 -142
- package/calendar/WeekList.js +24 -24
- package/calendar/Year.d.ts +13 -0
- package/calendar/Year.js +82 -78
- package/calendar/header/Panel.js +43 -57
- package/calendar/header/index.js +95 -109
- package/calendar/hook/useCellClassName.js +32 -40
- package/calendar/index.d.ts +10 -0
- package/calendar/index.js +12 -183
- package/card/Card.d.ts +11 -0
- package/card/Card.js +73 -0
- package/card/Grid.d.ts +5 -0
- package/card/Grid.js +20 -26
- package/card/Meta.d.ts +5 -0
- package/card/Meta.js +35 -31
- package/card/index.d.ts +13 -0
- package/card/index.js +12 -133
- package/carousel/Arrow.d.ts +4 -0
- package/carousel/Arrow.js +37 -56
- package/carousel/Carousel.d.ts +5 -0
- package/carousel/Carousel.js +180 -0
- package/carousel/Indicator.d.ts +4 -0
- package/carousel/Indicator.js +42 -67
- package/carousel/index.d.ts +4 -0
- package/carousel/index.js +7 -287
- package/cascader/Cascader.d.ts +12 -0
- package/cascader/Cascader.js +229 -305
- package/cascader/base/node.d.ts +66 -0
- package/cascader/base/node.js +87 -95
- package/cascader/base/store.d.ts +40 -0
- package/cascader/base/store.js +65 -52
- package/cascader/hook/useRefCurrent.js +13 -12
- package/cascader/index.d.ts +5 -0
- package/cascader/index.js +7 -5
- package/cascader/interface.d.ts +297 -0
- package/cascader/panel/List.d.ts +4 -0
- package/cascader/panel/List.js +198 -269
- package/cascader/panel/Option.d.ts +23 -0
- package/cascader/panel/Option.js +24 -34
- package/cascader/panel/Search.d.ts +28 -0
- package/cascader/panel/Search.js +138 -161
- package/cascader/utils.d.ts +23 -0
- package/cascader/utils.js +50 -64
- package/checkbox/Checkbox.d.ts +5 -0
- package/checkbox/Checkbox.js +87 -138
- package/checkbox/Group.d.ts +9 -0
- package/checkbox/Group.js +71 -104
- package/checkbox/GroupBlock.d.ts +8 -0
- package/checkbox/GroupBlock.js +59 -102
- package/checkbox/context.js +12 -15
- package/checkbox/index.d.ts +12 -0
- package/checkbox/index.js +15 -14
- package/checkbox/interface.d.ts +102 -0
- package/checkbox/useCheckbox.js +49 -45
- package/collapse/Collapse.d.ts +11 -0
- package/collapse/Collapse.js +75 -119
- package/collapse/Item.d.ts +8 -0
- package/collapse/Item.js +118 -182
- package/collapse/context.d.ts +5 -0
- package/collapse/context.js +12 -12
- package/collapse/index.d.ts +14 -0
- package/collapse/index.js +9 -9
- package/color-picker/ColorPicker.d.ts +19 -0
- package/color-picker/ColorPicker.js +120 -0
- package/color-picker/ControlBar.d.ts +18 -0
- package/color-picker/ControlBar.js +45 -64
- package/color-picker/InputAlpha.d.ts +7 -0
- package/color-picker/InputAlpha.js +21 -23
- package/color-picker/InputHex.d.ts +11 -0
- package/color-picker/InputHex.js +49 -55
- package/color-picker/InputRgb.d.ts +10 -0
- package/color-picker/InputRgb.js +67 -63
- package/color-picker/Mode.d.ts +8 -0
- package/color-picker/Mode.js +8 -12
- package/color-picker/Palette.d.ts +7 -0
- package/color-picker/Palette.js +34 -35
- package/color-picker/Panel.d.ts +31 -0
- package/color-picker/Panel.js +227 -284
- package/color-picker/colors.d.ts +2 -0
- package/color-picker/colors.js +12 -34
- package/color-picker/hooks/useColorPicker.d.ts +35 -0
- package/color-picker/hooks/useColorPicker.js +101 -120
- package/color-picker/hooks/useControlBlock.d.ts +18 -0
- package/color-picker/hooks/useControlBlock.js +48 -57
- package/color-picker/index.js +20 -188
- package/color-picker/interface.d.ts +148 -0
- package/color-picker/interface.js +9 -5
- package/color-picker/utils.d.ts +23 -0
- package/color-picker/utils.js +64 -90
- package/comment/Comment.d.ts +6 -0
- package/comment/Comment.js +71 -0
- package/comment/index.d.ts +6 -0
- package/comment/index.js +7 -77
- package/config-provider/ConfigProvider.d.ts +6 -0
- package/config-provider/ConfigProvider.js +38 -49
- package/config-provider/context.d.ts +6 -0
- package/config-provider/context.js +26 -28
- package/config-provider/index.d.ts +8 -0
- package/config-provider/index.js +8 -10
- package/config-provider/initUI.js +14 -14
- package/config-provider/interface.d.ts +273 -0
- package/config-provider/useConfigProvider.js +53 -97
- package/constant/index.d.ts +3 -0
- package/constant/index.js +6 -6
- package/copy/Copy.d.ts +7 -0
- package/copy/Copy.js +46 -0
- package/copy/index.d.ts +5 -0
- package/copy/index.js +7 -71
- package/countdown/Countdown.d.ts +4 -0
- package/countdown/Countdown.js +63 -0
- package/countdown/index.d.ts +4 -0
- package/countdown/index.js +7 -115
- package/countdown/utils.js +21 -28
- package/date-picker/DatePicker.d.ts +11 -0
- package/date-picker/DatePicker.js +53 -0
- package/date-picker/DatePickerRange.d.ts +3 -0
- package/date-picker/DatePickerRange.js +397 -593
- package/date-picker/Picker.d.ts +4 -0
- package/date-picker/Picker.js +307 -408
- package/date-picker/context.d.ts +6 -0
- package/date-picker/context.js +7 -9
- package/date-picker/hook/useCellClassName.js +52 -81
- package/date-picker/index.d.ts +13 -0
- package/date-picker/index.js +16 -64
- package/date-picker/interface.d.ts +532 -0
- package/date-picker/panel/Body.d.ts +30 -0
- package/date-picker/panel/Body.js +63 -94
- package/date-picker/panel/Footer.js +61 -75
- package/date-picker/panel/Header.d.ts +22 -0
- package/date-picker/panel/Header.js +84 -100
- package/date-picker/panel/Shortcut.d.ts +3 -0
- package/date-picker/panel/Shortcut.js +40 -47
- package/date-picker/panel/WeekList.js +28 -26
- package/date-picker/panel/date/index.js +162 -230
- package/date-picker/panel/month/index.d.ts +17 -0
- package/date-picker/panel/month/index.js +93 -129
- package/date-picker/panel/quarter/index.d.ts +17 -0
- package/date-picker/panel/quarter/index.js +79 -111
- package/date-picker/panel/range/index.d.ts +28 -0
- package/date-picker/panel/range/index.js +169 -270
- package/date-picker/panel/week/index.d.ts +16 -0
- package/date-picker/panel/week/index.js +34 -50
- package/date-picker/panel/year/index.d.ts +16 -0
- package/date-picker/panel/year/index.js +59 -87
- package/date-picker/utils.d.ts +11 -0
- package/date-picker/utils.js +75 -100
- package/descriptions/Descriptions.d.ts +4 -0
- package/descriptions/Descriptions.js +142 -0
- package/descriptions/index.d.ts +4 -0
- package/descriptions/index.js +7 -251
- package/descriptions/interface.d.ts +80 -0
- package/details/Details.d.ts +5 -0
- package/details/Details.js +83 -0
- package/details/index.d.ts +4 -0
- package/details/index.js +7 -121
- package/development/Development.js +29 -0
- package/development/index.d.ts +4 -0
- package/development/index.js +7 -36
- package/divider/Divider.d.ts +7 -0
- package/divider/Divider.js +51 -0
- package/divider/index.d.ts +8 -0
- package/divider/index.js +7 -78
- package/draggable/Draggable.d.ts +4 -0
- package/draggable/Draggable.js +33 -0
- package/draggable/Item.d.ts +3 -0
- package/draggable/Item.js +51 -67
- package/draggable/index.d.ts +8 -0
- package/draggable/index.js +8 -39
- package/draw/Draw.d.ts +4 -0
- package/draw/Draw.js +34 -45
- package/draw/constant.js +2 -1
- package/draw/index.d.ts +6 -0
- package/draw/index.js +7 -6
- package/drawer/Drawer.d.ts +5 -0
- package/drawer/Drawer.js +200 -269
- package/drawer/index.d.ts +3 -0
- package/drawer/index.js +7 -5
- package/drawer/interface.d.ts +175 -0
- package/dropdown/Button.d.ts +4 -0
- package/dropdown/Button.js +55 -89
- package/dropdown/Dropdown.d.ts +5 -0
- package/dropdown/Dropdown.js +93 -0
- package/dropdown/index.d.ts +8 -0
- package/dropdown/index.js +8 -130
- package/dropdown/interface.d.ts +100 -0
- package/empty/Empty.d.ts +4 -0
- package/empty/Empty.js +27 -0
- package/empty/index.d.ts +4 -0
- package/empty/index.js +7 -38
- package/empty/interface.d.ts +8 -0
- package/flex/Flex.d.ts +9 -0
- package/flex/Flex.js +39 -0
- package/flex/index.d.ts +8 -0
- package/flex/index.js +7 -51
- package/flex/interface.d.ts +9 -0
- package/form/Control.d.ts +51 -0
- package/form/Control.js +204 -229
- package/form/Form.d.ts +6 -0
- package/form/Form.js +146 -169
- package/form/FormControl.d.ts +50 -0
- package/form/FormControl.js +246 -0
- package/form/FormItem.d.ts +7 -0
- package/form/FormItem.js +169 -250
- package/form/FormItemTip.d.ts +3 -0
- package/form/FormItemTip.js +39 -45
- package/form/FormLabel.js +44 -74
- package/form/FormLabelSymbol.d.ts +3 -0
- package/form/FormLabelSymbol.js +19 -0
- package/form/FormList.d.ts +6 -0
- package/form/FormList.js +85 -100
- package/form/FormProvider.d.ts +5 -0
- package/form/FormProvider.js +28 -45
- package/form/constant.d.ts +2 -0
- package/form/constant.js +6 -0
- package/form/context.d.ts +15 -0
- package/form/context.js +61 -50
- package/form/hook/useForm.d.ts +5 -0
- package/form/hook/useForm.js +53 -57
- package/form/hook/useFormContext.d.ts +10 -0
- package/form/hook/useFormContext.js +33 -31
- package/form/hook/useFormState.d.ts +3 -0
- package/form/hook/useFormState.js +30 -29
- package/form/hook/useWatch.d.ts +3 -0
- package/form/hook/useWatch.js +33 -33
- package/form/index.d.ts +35 -0
- package/form/index.js +37 -43
- package/form/interface.d.ts +558 -0
- package/form/interface.js +16 -10
- package/form/promisify.js +14 -13
- package/form/store.d.ts +81 -0
- package/form/store.js +239 -264
- package/form/utils.d.ts +19 -0
- package/form/utils.js +73 -77
- package/global-provider/GlobalProvider.d.ts +7 -0
- package/global-provider/GlobalProvider.js +18 -0
- package/global-provider/context.d.ts +3 -0
- package/global-provider/context.js +7 -6
- package/global-provider/index.d.ts +11 -0
- package/global-provider/index.js +11 -20
- package/grid/Grid.js +55 -84
- package/grid/Item.d.ts +4 -0
- package/grid/Item.js +34 -59
- package/grid/context.js +7 -6
- package/grid/index.d.ts +25 -0
- package/grid/index.js +16 -17
- package/grid/interface.d.ts +114 -0
- package/grid/utils.d.ts +2 -0
- package/grid/utils.js +11 -13
- package/hooks/index.js +8 -120
- package/hooks/use-breakpoint/index.d.ts +3 -0
- package/hooks/use-breakpoint/index.js +18 -17
- package/hooks/use-computed-state/index.js +7 -6
- package/hooks/use-create/index.js +7 -6
- package/hooks/use-creation/index.js +7 -6
- package/hooks/use-event/index.js +7 -6
- package/hooks/use-event-listener/index.js +7 -6
- package/hooks/use-force-update/index.js +7 -6
- package/hooks/use-fullscreen/index.js +7 -6
- package/hooks/use-id/index.js +7 -6
- package/hooks/use-in-view/index.js +7 -6
- package/hooks/use-intersection-observer/index.js +7 -6
- package/hooks/use-intersection-observers/index.js +7 -6
- package/hooks/use-interval/index.js +7 -6
- package/hooks/use-is-first-render/index.js +7 -6
- package/hooks/use-isomorphic-layout-effect/index.js +7 -6
- package/hooks/use-keyboard-event/index.js +7 -6
- package/hooks/use-latest/index.js +7 -6
- package/hooks/use-listen-window-resize/index.js +7 -6
- package/hooks/use-media/index.js +7 -6
- package/hooks/use-merge-props/index.js +7 -6
- package/hooks/use-merge-value/index.js +7 -6
- package/hooks/use-move/index.js +7 -6
- package/hooks/use-mutation-observers/index.js +7 -6
- package/hooks/use-online-status/index.js +7 -6
- package/hooks/use-overflow-hidden/index.js +7 -6
- package/hooks/use-override-ref/index.js +7 -6
- package/hooks/use-persist-callback/index.js +7 -6
- package/hooks/use-prefers-color-scheme-dark/index.js +7 -6
- package/hooks/use-previous/index.js +7 -6
- package/hooks/use-refs/index.js +7 -7
- package/hooks/use-resize-observer/index.js +7 -6
- package/hooks/use-resize-observers/index.js +7 -6
- package/hooks/use-responsive-state/index.js +42 -52
- package/hooks/use-set-state/index.js +7 -6
- package/hooks/use-state-callback/index.js +7 -6
- package/hooks/use-state-with-promise/index.js +7 -6
- package/hooks/use-update-effect/index.js +7 -6
- package/hooks/use-update-layout-effect/index.js +7 -6
- package/hooks/use-verification-code/index.d.ts +3 -0
- package/hooks/use-verification-code/index.js +64 -69
- package/hooks/use-watch/index.js +7 -6
- package/hooks/use-watermark/index.d.ts +3 -0
- package/hooks/use-watermark/index.js +142 -157
- package/hooks/use-watermark/utils.js +9 -9
- package/hooks/use-window-size/index.js +7 -6
- package/hooks/useUnmountOnExit.js +13 -10
- package/icon/Icon.d.ts +5 -0
- package/icon/Icon.js +32 -41
- package/icon/addIconFromCdn.js +34 -27
- package/icon/index.d.ts +7 -0
- package/icon/index.js +13 -11
- package/icon-hover/IconHover.d.ts +5 -0
- package/icon-hover/IconHover.js +29 -0
- package/icon-hover/index.d.ts +6 -0
- package/icon-hover/index.js +7 -46
- package/icon-hover/interface.d.ts +8 -0
- package/icons/file/File.d.ts +4 -0
- package/icons/file/File.js +26 -0
- package/icons/file/index.d.ts +4 -0
- package/icons/file/index.js +7 -33
- package/icons/file/interface.d.ts +7 -0
- package/icons.js +7 -6
- package/image/Image.d.ts +12 -0
- package/image/Image.js +154 -199
- package/image/ImageFooter.d.ts +13 -0
- package/image/ImageFooter.js +57 -46
- package/image/ImagePreview.d.ts +7 -0
- package/image/ImagePreview.js +400 -481
- package/image/ImagePreviewArrow.js +30 -47
- package/image/ImagePreviewGroup.d.ts +11 -0
- package/image/ImagePreviewGroup.js +103 -126
- package/image/ImagePreviewToolbar.d.ts +14 -0
- package/image/ImagePreviewToolbar.js +60 -100
- package/image/TriggerForToolbar.d.ts +10 -0
- package/image/TriggerForToolbar.js +18 -10
- package/image/context.d.ts +24 -0
- package/image/context.js +18 -19
- package/image/index.d.ts +18 -0
- package/image/index.js +13 -11
- package/image/interface.d.ts +257 -0
- package/image/utils/getFixTranslate.js +8 -7
- package/image/utils/getScale.d.ts +12 -0
- package/image/utils/getScale.js +68 -70
- package/image/utils/hook/useImageStatus.js +17 -16
- package/image/utils/hook/useShowFooter.d.ts +8 -0
- package/image/utils/hook/useShowFooter.js +12 -7
- package/index.d.ts +194 -0
- package/index.js +918 -890
- package/input/Button.d.ts +5 -0
- package/input/Button.js +52 -86
- package/input/Group.d.ts +7 -0
- package/input/Group.js +20 -22
- package/input/Input.d.ts +5 -0
- package/input/Input.js +140 -218
- package/input/InputElement.d.ts +4 -0
- package/input/InputElement.js +183 -241
- package/input/Number.js +7 -5
- package/input/Password.d.ts +5 -0
- package/input/Password.js +57 -85
- package/input/Search.d.ts +5 -0
- package/input/Search.js +53 -81
- package/input/Tag.js +7 -5
- package/input/Textarea.d.ts +9 -0
- package/input/Textarea.js +166 -211
- package/input/autoSizeTextareaHeight.js +65 -72
- package/input/index.d.ts +23 -0
- package/input/index.js +23 -20
- package/input/interface.d.ts +318 -0
- package/input/useComposition.d.ts +18 -0
- package/input/useComposition.js +30 -39
- package/input/utils.js +9 -8
- package/input-number/InputNumber.d.ts +6 -0
- package/input-number/InputNumber.js +158 -0
- package/input-number/decimal.js +113 -140
- package/input-number/index.d.ts +4 -0
- package/input-number/index.js +7 -220
- package/input-number/interface.d.ts +128 -0
- package/input-number/useSelectionRange.js +24 -26
- package/input-number/utils.js +42 -53
- package/input-tag/InputTag.d.ts +7 -0
- package/input-tag/InputTag.js +280 -359
- package/input-tag/constant.d.ts +1 -0
- package/input-tag/constant.js +6 -0
- package/input-tag/hook/useComputeAutoWidthDelay.d.ts +3 -0
- package/input-tag/hook/useComputeAutoWidthDelay.js +12 -0
- package/input-tag/index.d.ts +4 -0
- package/input-tag/index.js +7 -5
- package/input-tag/interface.d.ts +187 -0
- package/layout/Content.d.ts +3 -0
- package/layout/Content.js +20 -14
- package/layout/Footer.d.ts +3 -0
- package/layout/Footer.js +20 -14
- package/layout/Header.d.ts +3 -0
- package/layout/Header.js +20 -14
- package/layout/Layout.d.ts +14 -0
- package/layout/Layout.js +36 -0
- package/layout/Sider.d.ts +8 -0
- package/layout/Sider.js +96 -130
- package/layout/context.js +8 -7
- package/layout/index.d.ts +25 -0
- package/layout/index.js +18 -56
- package/layout/interface.d.ts +123 -0
- package/link/Link.d.ts +6 -0
- package/link/Link.js +42 -0
- package/link/index.d.ts +6 -0
- package/link/index.js +7 -72
- package/liquid-fill/LiquidFill.js +168 -0
- package/liquid-fill/index.d.ts +4 -0
- package/liquid-fill/index.js +7 -222
- package/list/Item.d.ts +8 -0
- package/list/Item.js +49 -50
- package/list/List.d.ts +12 -0
- package/list/List.js +185 -0
- package/list/Meta.d.ts +4 -0
- package/list/Meta.js +32 -20
- package/list/index.js +8 -274
- package/list/interface.d.ts +189 -0
- package/loading/Loading.js +62 -0
- package/loading/index.d.ts +4 -0
- package/loading/index.js +7 -81
- package/locale/ar-EG.d.ts +4 -0
- package/locale/ar-EG.js +164 -169
- package/locale/de-DE.d.ts +4 -0
- package/locale/de-DE.js +164 -169
- package/locale/default.js +7 -5
- package/locale/en-US.js +183 -198
- package/locale/es-ES.d.ts +4 -0
- package/locale/es-ES.js +164 -169
- package/locale/fr-FR.d.ts +4 -0
- package/locale/fr-FR.js +164 -169
- package/locale/id-ID.d.ts +4 -0
- package/locale/id-ID.js +164 -169
- package/locale/it-IT.d.ts +4 -0
- package/locale/it-IT.js +164 -169
- package/locale/ja-JP.d.ts +4 -0
- package/locale/ja-JP.js +219 -226
- package/locale/ko-KR.d.ts +4 -0
- package/locale/ko-KR.js +164 -169
- package/locale/ms-MY.d.ts +4 -0
- package/locale/ms-MY.js +164 -169
- package/locale/pt-BR.d.ts +4 -0
- package/locale/pt-BR.js +164 -169
- package/locale/pt-PT.d.ts +4 -0
- package/locale/pt-PT.js +164 -169
- package/locale/ru-RU.d.ts +4 -0
- package/locale/ru-RU.js +164 -169
- package/locale/th-TH.d.ts +4 -0
- package/locale/th-TH.js +164 -169
- package/locale/tr-TR.d.ts +4 -0
- package/locale/tr-TR.js +164 -169
- package/locale/vi-VN.d.ts +4 -0
- package/locale/vi-VN.js +164 -169
- package/locale/zh-CN.d.ts +4 -0
- package/locale/zh-CN.js +228 -245
- package/locale/zh-HK.d.ts +4 -0
- package/locale/zh-HK.js +219 -227
- package/locale/zh-TW.d.ts +4 -0
- package/locale/zh-TW.js +219 -226
- package/marquee/Marquee.js +135 -0
- package/marquee/index.d.ts +4 -0
- package/marquee/index.js +7 -164
- package/marquee/interface.d.ts +96 -0
- package/mask/Mask.d.ts +5 -0
- package/mask/Mask.js +44 -76
- package/mask/index.d.ts +6 -0
- package/mask/index.js +7 -5
- package/masonry/Masonry.js +110 -211
- package/masonry/MasonryItem.js +36 -35
- package/masonry/hooks/useDelay.d.ts +2 -0
- package/masonry/hooks/useDelay.js +13 -12
- package/masonry/hooks/useGutter.d.ts +5 -0
- package/masonry/hooks/useGutter.js +26 -27
- package/masonry/hooks/usePositions.js +25 -24
- package/masonry/hooks/useRefs.js +7 -6
- package/masonry/index.d.ts +10 -0
- package/masonry/index.js +8 -5
- package/masonry/interface.d.ts +43 -0
- package/mentions/Mentions.d.ts +5 -0
- package/mentions/Mentions.js +123 -0
- package/mentions/index.d.ts +4 -0
- package/mentions/index.js +7 -160
- package/mentions/interface.d.ts +88 -0
- package/mentions/utils.d.ts +9 -0
- package/mentions/utils.js +21 -25
- package/menu/Indent.js +14 -17
- package/menu/Item.d.ts +6 -0
- package/menu/Item.js +75 -124
- package/menu/ItemGroup.d.ts +6 -0
- package/menu/ItemGroup.js +28 -39
- package/menu/Menu.d.ts +3 -0
- package/menu/Menu.js +120 -199
- package/menu/OverflowWrap.d.ts +9 -0
- package/menu/OverflowWrap.js +69 -90
- package/menu/context.d.ts +15 -0
- package/menu/context.js +7 -6
- package/menu/index.d.ts +9 -0
- package/menu/index.js +18 -16
- package/menu/interface.d.ts +222 -0
- package/menu/sub-menu/Inline.d.ts +5 -0
- package/menu/sub-menu/Inline.js +84 -113
- package/menu/sub-menu/Pop.d.ts +5 -0
- package/menu/sub-menu/Pop.js +84 -121
- package/menu/sub-menu/index.d.ts +5 -0
- package/menu/sub-menu/index.js +22 -18
- package/menu/utils.js +74 -80
- package/message/Message.d.ts +20 -0
- package/message/Message.js +127 -167
- package/message/index.js +8 -7
- package/message/useMessage.d.ts +5 -0
- package/message/useMessage.js +51 -113
- package/modal/Confirm.d.ts +15 -0
- package/modal/Confirm.js +102 -112
- package/modal/Modal.d.ts +19 -0
- package/modal/Modal.js +301 -400
- package/modal/config.d.ts +9 -0
- package/modal/config.js +16 -24
- package/modal/index.d.ts +6 -0
- package/modal/index.js +8 -7
- package/modal/interface.d.ts +191 -0
- package/modal/use-modal/Hook.d.ts +7 -0
- package/modal/use-modal/Hook.js +46 -52
- package/modal/use-modal/index.d.ts +4 -0
- package/modal/use-modal/index.js +61 -71
- package/notice/Notice.d.ts +4 -0
- package/notice/Notice.js +151 -171
- package/notice/index.d.ts +4 -0
- package/notice/index.js +7 -5
- package/notification/Notification.d.ts +22 -0
- package/notification/Notification.js +132 -161
- package/notification/index.js +7 -6
- package/notification/interface.d.ts +85 -0
- package/notification/useNotification.d.ts +5 -0
- package/notification/useNotification.js +42 -111
- package/notification/withNotification.js +46 -57
- package/overflow-ellipsis/OverflowEllipsis.d.ts +3 -0
- package/overflow-ellipsis/OverflowEllipsis.js +72 -0
- package/overflow-ellipsis/OverflowItem.js +22 -29
- package/overflow-ellipsis/index.d.ts +6 -0
- package/overflow-ellipsis/index.js +8 -80
- package/package.json +1 -1
- package/page-header/PageHeader.d.ts +6 -0
- package/page-header/PageHeader.js +108 -0
- package/page-header/index.d.ts +6 -0
- package/page-header/index.js +7 -163
- package/page-header/interface.d.ts +57 -0
- package/pagination/PageItem.d.ts +18 -0
- package/pagination/PageItem.js +71 -114
- package/pagination/PageJumper.d.ts +13 -0
- package/pagination/PageJumper.js +64 -58
- package/pagination/PageOption.d.ts +17 -0
- package/pagination/PageOption.js +59 -121
- package/pagination/Pagination.d.ts +11 -0
- package/pagination/Pagination.js +206 -249
- package/pagination/index.d.ts +5 -0
- package/pagination/index.js +6 -5
- package/pagination/interface.d.ts +179 -0
- package/pagination/interface.js +9 -5
- package/picker/Input.d.ts +3 -0
- package/picker/Input.js +92 -135
- package/picker/InputRange.d.ts +3 -0
- package/picker/InputRange.js +129 -167
- package/picker/index.d.ts +3 -0
- package/picker/index.js +8 -7
- package/picker/interface.d.ts +57 -0
- package/popconfirm/Popconfirm.d.ts +6 -0
- package/popconfirm/Popconfirm.js +121 -0
- package/popconfirm/index.d.ts +6 -0
- package/popconfirm/index.js +7 -132
- package/popconfirm/interface.d.ts +109 -0
- package/popover/Popover.d.ts +6 -0
- package/popover/Popover.js +52 -73
- package/popover/index.d.ts +5 -0
- package/popover/index.js +6 -4
- package/popover/interface.d.ts +19 -0
- package/portal/Portal.d.ts +3 -0
- package/portal/Portal.js +21 -27
- package/portal/index.d.ts +4 -0
- package/portal/index.js +7 -5
- package/progress/CircleProgress.d.ts +8 -0
- package/progress/CircleProgress.js +101 -116
- package/progress/LineProgess.js +72 -92
- package/progress/Progress.d.ts +4 -0
- package/progress/Progress.js +82 -0
- package/progress/StepProgress.js +50 -65
- package/progress/index.d.ts +19 -0
- package/progress/index.js +16 -107
- package/progress/interface.d.ts +85 -0
- package/qr-code/QRCode.d.ts +5 -0
- package/qr-code/QRCode.js +50 -77
- package/qr-code/index.d.ts +5 -0
- package/qr-code/index.js +8 -7
- package/qr-code/src/index.js +195 -257
- package/qr-code/src/qrcodegen.d.ts +66 -0
- package/qr-code/src/qrcodegen.js +782 -943
- package/radio/Group.d.ts +8 -0
- package/radio/Group.js +81 -122
- package/radio/GroupBlock.d.ts +7 -0
- package/radio/GroupBlock.js +62 -117
- package/radio/Radio.d.ts +5 -0
- package/radio/Radio.js +74 -118
- package/radio/context.d.ts +2 -0
- package/radio/context.js +6 -0
- package/radio/index.d.ts +13 -0
- package/radio/index.js +15 -11
- package/radio/interface.d.ts +102 -0
- package/rate/Rate.d.ts +5 -0
- package/rate/Rate.js +98 -0
- package/rate/index.d.ts +4 -0
- package/rate/index.js +7 -135
- package/rate/interface.d.ts +66 -0
- package/resize-box/ResizeBox.d.ts +13 -0
- package/resize-box/ResizeBox.js +143 -0
- package/resize-box/ResizeTrigger.js +55 -71
- package/resize-box/Split.d.ts +4 -0
- package/resize-box/Split.js +95 -132
- package/resize-box/SplitGroup.d.ts +4 -0
- package/resize-box/SplitGroup.js +145 -197
- package/resize-box/index.d.ts +15 -0
- package/resize-box/index.js +12 -181
- package/result/403.js +720 -695
- package/result/404.js +508 -513
- package/result/500.js +176 -166
- package/result/Result.d.ts +6 -0
- package/result/Result.js +71 -0
- package/result/index.d.ts +6 -0
- package/result/index.js +7 -79
- package/rich-text/RichText.d.ts +8 -0
- package/rich-text/RichText.js +322 -454
- package/rich-text/Toolbar.js +555 -702
- package/rich-text/constant.d.ts +1 -0
- package/rich-text/constant.js +7 -6
- package/rich-text/index.d.ts +11 -0
- package/rich-text/index.js +19 -25
- package/rich-text/lib/blots/block.js +113 -127
- package/rich-text/lib/blots/break.js +19 -28
- package/rich-text/lib/blots/container.js +8 -15
- package/rich-text/lib/blots/cursor.js +95 -122
- package/rich-text/lib/blots/embed.js +46 -57
- package/rich-text/lib/blots/inline.js +49 -54
- package/rich-text/lib/blots/scroll.d.ts +43 -0
- package/rich-text/lib/blots/scroll.js +246 -277
- package/rich-text/lib/blots/text.js +15 -24
- package/rich-text/lib/core/composition.d.ts +9 -0
- package/rich-text/lib/core/composition.js +36 -40
- package/rich-text/lib/core/editor.js +241 -280
- package/rich-text/lib/core/emitter.js +46 -44
- package/rich-text/lib/core/logger.js +18 -17
- package/rich-text/lib/core/module.js +13 -13
- package/rich-text/lib/core/rich.d.ts +183 -0
- package/rich-text/lib/core/rich.js +359 -471
- package/rich-text/lib/core/selection.d.ts +71 -0
- package/rich-text/lib/core/selection.js +221 -278
- package/rich-text/lib/core/theme.js +31 -36
- package/rich-text/lib/core/utils/createRegistryWithFormats.js +28 -32
- package/rich-text/lib/core/utils/scrollRectIntoView.js +58 -68
- package/rich-text/lib/delta/AttributeMap.js +32 -39
- package/rich-text/lib/delta/Op.js +9 -8
- package/rich-text/lib/delta/OpIterator.js +44 -50
- package/rich-text/lib/delta/index.d.ts +53 -0
- package/rich-text/lib/delta/index.js +234 -314
- package/rich-text/lib/diff/index.js +266 -364
- package/rich-text/lib/formats/align.js +20 -28
- package/rich-text/lib/formats/background.js +11 -28
- package/rich-text/lib/formats/blockquote.js +15 -14
- package/rich-text/lib/formats/bold.js +23 -22
- package/rich-text/lib/formats/code.js +37 -51
- package/rich-text/lib/formats/color.js +16 -36
- package/rich-text/lib/formats/direction.js +15 -28
- package/rich-text/lib/formats/emoji.js +19 -18
- package/rich-text/lib/formats/font.js +51 -67
- package/rich-text/lib/formats/formula.js +33 -32
- package/rich-text/lib/formats/header.js +24 -25
- package/rich-text/lib/formats/hr.js +16 -21
- package/rich-text/lib/formats/image.js +45 -47
- package/rich-text/lib/formats/indent.js +38 -41
- package/rich-text/lib/formats/italic.js +15 -14
- package/rich-text/lib/formats/lineHeight.js +11 -21
- package/rich-text/lib/formats/link.js +46 -40
- package/rich-text/lib/formats/list.js +35 -42
- package/rich-text/lib/formats/script.js +21 -22
- package/rich-text/lib/formats/size.js +26 -32
- package/rich-text/lib/formats/strike.js +15 -14
- package/rich-text/lib/formats/table.js +133 -144
- package/rich-text/lib/formats/underline.js +13 -12
- package/rich-text/lib/formats/video.js +39 -42
- package/rich-text/lib/index.js +113 -121
- package/rich-text/lib/modules/clipboard.d.ts +44 -0
- package/rich-text/lib/modules/clipboard.js +281 -374
- package/rich-text/lib/modules/history.d.ts +38 -0
- package/rich-text/lib/modules/history.js +115 -113
- package/rich-text/lib/modules/image-resize/index.js +78 -81
- package/rich-text/lib/modules/image-resize/modules/Base.js +13 -43
- package/rich-text/lib/modules/image-resize/modules/DisplaySize.js +40 -49
- package/rich-text/lib/modules/image-resize/modules/Resize.js +61 -52
- package/rich-text/lib/modules/image-resize/options.js +10 -9
- package/rich-text/lib/modules/input.d.ts +8 -0
- package/rich-text/lib/modules/input.js +53 -61
- package/rich-text/lib/modules/keyboard.d.ts +60 -0
- package/rich-text/lib/modules/keyboard.js +415 -508
- package/rich-text/lib/modules/normalizeExternalHTML/index.js +10 -9
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/googleDocs.js +20 -17
- package/rich-text/lib/modules/normalizeExternalHTML/normalizers/msWord.js +37 -41
- package/rich-text/lib/modules/table.d.ts +22 -0
- package/rich-text/lib/modules/table.js +112 -102
- package/rich-text/lib/modules/toolbar.js +15 -13
- package/rich-text/lib/modules/uiNode.d.ts +11 -0
- package/rich-text/lib/modules/uiNode.js +51 -72
- package/rich-text/lib/modules/uploader.d.ts +17 -0
- package/rich-text/lib/modules/uploader.js +44 -46
- package/rich-text/lib/parchment/attributor/attributor.js +29 -31
- package/rich-text/lib/parchment/attributor/class.js +24 -23
- package/rich-text/lib/parchment/attributor/store.d.ts +14 -0
- package/rich-text/lib/parchment/attributor/store.js +43 -44
- package/rich-text/lib/parchment/attributor/style.js +23 -22
- package/rich-text/lib/parchment/blot/abstract/container.js +30 -28
- package/rich-text/lib/parchment/blot/abstract/leaf.js +24 -43
- package/rich-text/lib/parchment/blot/abstract/parent.js +154 -173
- package/rich-text/lib/parchment/blot/abstract/shadow.js +76 -81
- package/rich-text/lib/parchment/blot/block.js +70 -75
- package/rich-text/lib/parchment/blot/embed.js +17 -17
- package/rich-text/lib/parchment/blot/inline.js +72 -78
- package/rich-text/lib/parchment/blot/scroll.d.ts +35 -0
- package/rich-text/lib/parchment/blot/scroll.js +99 -103
- package/rich-text/lib/parchment/blot/text.js +55 -56
- package/rich-text/lib/parchment/collection/linked-list.js +85 -105
- package/rich-text/lib/parchment/error.js +9 -8
- package/rich-text/lib/parchment/index.js +36 -31
- package/rich-text/lib/parchment/registry.d.ts +18 -0
- package/rich-text/lib/parchment/registry.js +55 -57
- package/rich-text/lib/parchment/scope.js +8 -5
- package/row-col/Col-.js +63 -85
- package/row-col/Col.js +135 -142
- package/row-col/Row.js +57 -79
- package/row-col/context.js +7 -6
- package/row-col/index.d.ts +14 -0
- package/row-col/index.js +12 -13
- package/segmented/Segmented.js +210 -0
- package/segmented/index.d.ts +4 -0
- package/segmented/index.js +7 -272
- package/segmented/interface.d.ts +123 -0
- package/select/Option.d.ts +7 -0
- package/select/Option.js +69 -97
- package/select/OptionGroup.d.ts +7 -0
- package/select/OptionGroup.js +22 -22
- package/select/Select.d.ts +11 -0
- package/select/Select.js +400 -555
- package/select/index.d.ts +16 -0
- package/select/index.js +12 -9
- package/select/interface.d.ts +295 -0
- package/select/utils.d.ts +26 -0
- package/select/utils.js +93 -114
- package/select-view/Core.js +308 -411
- package/select-view/SelectView.js +60 -0
- package/select-view/index.d.ts +3 -0
- package/select-view/index.js +7 -75
- package/select-view/interface.d.ts +148 -0
- package/skeleton/Image.d.ts +3 -0
- package/skeleton/Image.js +17 -24
- package/skeleton/Skeleton.d.ts +7 -0
- package/skeleton/Skeleton.js +62 -0
- package/skeleton/Text.d.ts +4 -0
- package/skeleton/Text.js +23 -27
- package/skeleton/index.d.ts +11 -0
- package/skeleton/index.js +12 -60
- package/slider/Button.d.ts +21 -0
- package/slider/Button.js +120 -151
- package/slider/Dot.d.ts +17 -0
- package/slider/Dot.js +26 -43
- package/slider/Input.d.ts +16 -0
- package/slider/Input.js +56 -79
- package/slider/Mark.d.ts +16 -0
- package/slider/Mark.js +26 -28
- package/slider/Slider.d.ts +5 -0
- package/slider/Slider.js +247 -0
- package/slider/Tick.d.ts +14 -0
- package/slider/Tick.js +31 -41
- package/slider/hook/useInterval.d.ts +24 -0
- package/slider/hook/useInterval.js +92 -71
- package/slider/hook/useLegalValue.d.ts +16 -0
- package/slider/hook/useLegalValue.js +56 -65
- package/slider/index.js +18 -318
- package/slider/interface.d.ts +119 -0
- package/slider/utils.d.ts +11 -0
- package/slider/utils.js +50 -64
- package/space/Space.d.ts +5 -0
- package/space/Space.js +46 -0
- package/space/index.d.ts +8 -0
- package/space/index.js +7 -58
- package/space/interface.d.ts +10 -0
- package/speech-synthesis/SpeechSynthesis.d.ts +3 -0
- package/speech-synthesis/SpeechSynthesis.js +15 -0
- package/speech-synthesis/index.d.ts +4 -0
- package/speech-synthesis/index.js +7 -13
- package/speech-synthesis/interface.d.ts +7 -0
- package/spin/DotLoading.js +32 -25
- package/spin/Spin.d.ts +5 -0
- package/spin/Spin.js +78 -0
- package/spin/index.d.ts +7 -0
- package/spin/index.js +8 -113
- package/splitter/Panel.js +23 -40
- package/splitter/SplitBar.js +96 -157
- package/splitter/Splitter.js +86 -140
- package/splitter/hooks/useItems.js +23 -26
- package/splitter/hooks/useResizable.js +22 -17
- package/splitter/hooks/useResize.js +53 -69
- package/splitter/hooks/useSizes.js +56 -59
- package/splitter/index.d.ts +7 -0
- package/splitter/index.js +8 -9
- package/statistic/Statistic.d.ts +8 -0
- package/statistic/Statistic.js +108 -0
- package/statistic/index.d.ts +10 -0
- package/statistic/index.js +8 -124
- package/statistic/interface.js +8 -5
- package/steps/Step.d.ts +4 -0
- package/steps/Step.js +61 -68
- package/steps/Steps.d.ts +10 -0
- package/steps/Steps.js +62 -0
- package/steps/index.d.ts +12 -0
- package/steps/index.js +11 -97
- package/style.css +2 -1
- package/suspense-fallback-test/SuspenseFallbackTest.js +7 -0
- package/suspense-fallback-test/index.d.ts +2 -0
- package/suspense-fallback-test/index.js +7 -6
- package/suspense-fallback-test/interface.d.ts +2 -0
- package/switch/Switch.d.ts +11 -0
- package/switch/Switch.js +75 -0
- package/switch/index.d.ts +8 -0
- package/switch/index.js +7 -103
- package/switch/interface.d.ts +66 -0
- package/table/ColGroup.d.ts +13 -0
- package/table/ColGroup.js +46 -68
- package/table/Table.d.ts +10 -0
- package/table/Table.js +501 -660
- package/table/constant.d.ts +5 -0
- package/table/constant.js +35 -42
- package/table/context.js +7 -10
- package/table/hook/useColumns.d.ts +3 -0
- package/table/hook/useColumns.js +112 -140
- package/table/hook/useComponent.d.ts +31 -0
- package/table/hook/useComponent.js +25 -24
- package/table/hook/useExpand.d.ts +4 -0
- package/table/hook/useExpand.js +32 -44
- package/table/hook/useRowSelection.d.ts +13 -0
- package/table/hook/useRowSelection.js +71 -93
- package/table/hook/useSorter.d.ts +8 -0
- package/table/hook/useSorter.js +50 -57
- package/table/hook/useStickyClassNames.d.ts +3 -0
- package/table/hook/useStickyClassNames.js +23 -30
- package/table/hook/useStickyOffsets.d.ts +3 -0
- package/table/hook/useStickyOffsets.js +27 -28
- package/table/hook/useThResizable.js +35 -36
- package/table/index.js +40 -39
- package/table/interface.d.ts +729 -0
- package/table/summary/Cell.js +20 -10
- package/table/summary/Row.js +29 -24
- package/table/summary/context.d.ts +9 -0
- package/table/summary/context.js +7 -6
- package/table/summary/index.d.ts +11 -0
- package/table/summary/index.js +11 -12
- package/table/tbody/DataRecordRenderer.d.ts +11 -0
- package/table/tbody/DataRecordRenderer.js +58 -0
- package/table/tbody/Td.d.ts +4 -0
- package/table/tbody/Td.js +145 -213
- package/table/tbody/Tr.d.ts +9 -0
- package/table/tbody/Tr.js +153 -196
- package/table/tbody/index.d.ts +3 -0
- package/table/tbody/index.js +81 -177
- package/table/tfoot/index.d.ts +3 -0
- package/table/tfoot/index.js +26 -17
- package/table/th-resizable/index.js +49 -56
- package/table/thead/Column.d.ts +3 -0
- package/table/thead/Column.js +193 -261
- package/table/thead/index.d.ts +3 -0
- package/table/thead/index.js +91 -131
- package/table/utils.d.ts +16 -0
- package/table/utils.js +71 -107
- package/tabs/TabContent.d.ts +3 -0
- package/tabs/TabContent.js +36 -51
- package/tabs/TabPane.d.ts +4 -0
- package/tabs/TabPane.js +27 -33
- package/tabs/Tabs.d.ts +11 -0
- package/tabs/Tabs.js +137 -185
- package/tabs/context.js +7 -7
- package/tabs/hook/useDomSize.d.ts +12 -0
- package/tabs/hook/useDomSize.js +22 -17
- package/tabs/hook/useHeaderScroll.d.ts +12 -0
- package/tabs/hook/useHeaderScroll.js +73 -58
- package/tabs/index.d.ts +25 -0
- package/tabs/index.js +14 -14
- package/tabs/interface.d.ts +228 -0
- package/tabs/tab-header/DropdownIcon.js +65 -73
- package/tabs/tab-header/TabInk.js +58 -65
- package/tabs/tab-header/TabNavIcon.d.ts +17 -0
- package/tabs/tab-header/TabNavIcon.js +61 -66
- package/tabs/tab-header/TabTitle.js +59 -80
- package/tabs/tab-header/index.d.ts +4 -0
- package/tabs/tab-header/index.js +250 -320
- package/tabs/utils.js +20 -23
- package/tag/Tag.d.ts +4 -0
- package/tag/Tag.js +101 -0
- package/tag/index.d.ts +6 -0
- package/tag/index.js +8 -152
- package/tag/interface.d.ts +70 -0
- package/tag/utils.d.ts +1 -0
- package/tag/utils.js +19 -0
- package/time-picker/Picker.d.ts +3 -0
- package/time-picker/Picker.js +173 -231
- package/time-picker/TimeColumn.js +46 -59
- package/time-picker/TimePicker.d.ts +3 -0
- package/time-picker/TimePicker.js +160 -241
- package/time-picker/TimePickerRange.d.ts +3 -0
- package/time-picker/TimePickerRange.js +45 -59
- package/time-picker/context.d.ts +6 -0
- package/time-picker/context.js +6 -10
- package/time-picker/index.d.ts +10 -0
- package/time-picker/index.js +24 -25
- package/time-picker/interface.d.ts +264 -0
- package/time-picker/utils.js +29 -23
- package/timeline/Item.d.ts +8 -0
- package/timeline/Item.js +70 -92
- package/timeline/Timeline.d.ts +11 -0
- package/timeline/Timeline.js +54 -79
- package/timeline/index.d.ts +13 -0
- package/timeline/index.js +8 -7
- package/timer/Timer.js +28 -0
- package/timer/index.d.ts +2 -0
- package/timer/index.js +7 -39
- package/timer/interface.d.ts +6 -0
- package/tooltip/Tooltip.d.ts +6 -0
- package/tooltip/Tooltip.js +103 -133
- package/tooltip/index.d.ts +5 -0
- package/tooltip/index.js +7 -5
- package/tooltip/interface.d.ts +95 -0
- package/tour/Tour.js +211 -0
- package/tour/index.d.ts +4 -0
- package/tour/index.js +7 -287
- package/transfer/Item.d.ts +3 -0
- package/transfer/Item.js +76 -113
- package/transfer/List.d.ts +5 -0
- package/transfer/List.js +164 -213
- package/transfer/Transfer.d.ts +5 -0
- package/transfer/Transfer.js +139 -0
- package/transfer/index.d.ts +4 -0
- package/transfer/index.js +7 -192
- package/transfer/interface.d.ts +219 -0
- package/tree/Animation.d.ts +4 -0
- package/tree/Animation.js +103 -101
- package/tree/Context.d.ts +28 -0
- package/tree/Context2.js +7 -0
- package/tree/Node.d.ts +10 -0
- package/tree/Node.js +194 -208
- package/tree/NodeList.js +74 -83
- package/tree/Tree.d.ts +11 -0
- package/tree/Tree.js +425 -540
- package/tree/context.js +7 -6
- package/tree/index.js +20 -9
- package/tree/interface.d.ts +371 -0
- package/tree/utils.d.ts +15 -0
- package/tree/utils.js +62 -72
- package/tree-select/List.d.ts +11 -0
- package/tree-select/List.js +113 -122
- package/tree-select/TreeSelect.d.ts +13 -0
- package/tree-select/TreeSelect.js +213 -0
- package/tree-select/hook/useKeyCache.d.ts +6 -0
- package/tree-select/hook/useKeyCache.js +49 -55
- package/tree-select/hook/useStateValue.d.ts +19 -0
- package/tree-select/hook/useStateValue.js +69 -93
- package/tree-select/hook/useTreeData.d.ts +4 -0
- package/tree-select/hook/useTreeData.js +14 -13
- package/tree-select/index.d.ts +17 -0
- package/tree-select/index.js +14 -7
- package/tree-select/interface.d.ts +196 -0
- package/tree-select/interface.js +15 -13
- package/tree-select/utils.js +9 -8
- package/trigger/Trigger.d.ts +9 -0
- package/trigger/Trigger.js +494 -0
- package/trigger/getPopupStyle.d.ts +14 -0
- package/trigger/getPopupStyle.js +166 -213
- package/trigger/index.d.ts +6 -0
- package/trigger/index.js +8 -622
- package/trigger/interface.d.ts +258 -0
- package/trigger/utils.d.ts +1 -0
- package/trigger/utils.js +15 -0
- package/typography/Base.d.ts +8 -0
- package/typography/Base.js +139 -189
- package/typography/EditContent.d.ts +4 -0
- package/typography/EditContent.js +53 -58
- package/typography/Ellipsis.d.ts +6 -0
- package/typography/Ellipsis.js +140 -174
- package/typography/Operations.d.ts +4 -0
- package/typography/Operations.js +49 -76
- package/typography/Paragraph.d.ts +3 -0
- package/typography/Paragraph.js +21 -25
- package/typography/Text.js +16 -11
- package/typography/Title.d.ts +3 -0
- package/typography/Title.js +18 -12
- package/typography/Typography.d.ts +3 -0
- package/typography/Typography.js +22 -18
- package/typography/index.d.ts +23 -0
- package/typography/index.js +22 -16
- package/typography/interface.d.ts +277 -0
- package/typography/useCssEllipsis.d.ts +6 -0
- package/typography/useCssEllipsis.js +40 -37
- package/typography/useEllipsis.d.ts +21 -0
- package/typography/useEllipsis.js +148 -148
- package/upload/TriggerNode.d.ts +6 -0
- package/upload/TriggerNode.js +86 -114
- package/upload/Upload.d.ts +7 -0
- package/upload/Upload.js +157 -234
- package/upload/Uploader.d.ts +15 -0
- package/upload/Uploader.js +158 -208
- package/upload/constant.d.ts +4 -0
- package/upload/constant.js +10 -9
- package/upload/index.d.ts +26 -0
- package/upload/index.js +16 -9
- package/upload/interface.d.ts +336 -0
- package/upload/list/PictureItem.d.ts +8 -0
- package/upload/list/PictureItem.js +109 -117
- package/upload/list/TextItem.d.ts +8 -0
- package/upload/list/TextItem.js +114 -121
- package/upload/list/UploadProgress.d.ts +14 -0
- package/upload/list/UploadProgress.js +86 -90
- package/upload/list/index.d.ts +6 -0
- package/upload/list/index.js +70 -104
- package/upload/list/utils.d.ts +2 -0
- package/upload/list/utils.js +32 -18
- package/upload/request.d.ts +3 -0
- package/upload/request.js +33 -49
- package/upload/utils.d.ts +4 -0
- package/upload/utils.js +50 -59
- package/utils/callOrReturn.js +4 -6
- package/utils/callbackOriginRef.js +7 -7
- package/utils/caseName.js +7 -7
- package/utils/className.js +7 -8
- package/utils/constant.d.ts +4 -0
- package/utils/constant.js +20 -23
- package/utils/contextHolder.d.ts +10 -0
- package/utils/contextHolder.js +26 -28
- package/utils/copy.js +7 -8
- package/utils/date.js +4 -8
- package/utils/dayjs.js +125 -164
- package/utils/dom.js +4 -14
- package/utils/emitter.js +7 -12
- package/utils/fileRead.js +4 -6
- package/utils/fileToDataURL.js +4 -6
- package/utils/fillNBSP.js +7 -7
- package/utils/findRootElement.js +7 -7
- package/utils/findScrollParent.js +7 -6
- package/utils/getHighlightText.js +7 -7
- package/utils/getHotkeyHandler.d.ts +5 -0
- package/utils/getHotkeyHandler.js +7 -7
- package/utils/getStringLength.js +7 -7
- package/utils/include.js +7 -7
- package/utils/index.js +337 -332
- package/utils/intersectionObserver.js +7 -6
- package/utils/is.d.ts +1 -0
- package/utils/is.js +107 -97
- package/utils/keyboardCode.js +8 -30
- package/utils/lodash.js +5 -64
- package/utils/math.js +4 -10
- package/utils/mergeProps.js +7 -7
- package/utils/mergedToString.js +7 -7
- package/utils/mutationObserver.js +7 -6
- package/utils/names.d.ts +1023 -0
- package/utils/names.js +1030 -1041
- package/utils/omit.js +7 -7
- package/utils/pad.js +4 -6
- package/utils/pick.js +7 -8
- package/utils/pinyin.js +4 -6
- package/utils/react19Adapter.js +2 -1
- package/utils/ref.js +4 -11
- package/utils/resizeObserver.js +7 -6
- package/utils/responsiveObserve.js +64 -79
- package/utils/saveAs.js +7 -7
- package/utils/screenfull.js +7 -7
- package/utils/scrollIntoViewIfNeeded.js +7 -7
- package/utils/setCreateRoot.js +7 -7
- package/utils/setDarkTheme.js +18 -16
- package/utils/setPrimaryColor.js +12 -9
- package/utils/setTheme.js +11 -8
- package/utils/string.js +4 -6
- package/utils/style.js +4 -7
- package/utils/throttleByRaf.js +4 -6
- package/utils/throttleByRaf2.js +4 -6
- package/utils/toArray.js +7 -7
- package/utils/tree.js +4 -12
- package/utils/tween.js +4 -7
- package/utils/uuid.js +4 -7
- package/utils/validate.d.ts +2 -0
- package/utils/validate.js +4 -16
- package/utils/warning.js +4 -6
- package/verification-code/VerificationCode.d.ts +4 -0
- package/verification-code/VerificationCode.js +74 -105
- package/verification-code/index.d.ts +8 -0
- package/verification-code/index.js +8 -7
- package/verification-code/interface.d.ts +74 -0
- package/version/index.d.ts +5 -0
- package/version/index.js +30 -8
- package/virtual-list/Filler.js +36 -31
- package/virtual-list/VirtualList.js +296 -368
- package/virtual-list/constant.js +7 -7
- package/virtual-list/hook/useCacheChildrenNodes.d.ts +4 -0
- package/virtual-list/hook/useCacheChildrenNodes.js +11 -10
- package/virtual-list/hook/useComputeVirtualItemHeight.d.ts +3 -0
- package/virtual-list/hook/useComputeVirtualItemHeight.js +16 -18
- package/virtual-list/index.js +8 -5
- package/virtual-list/interface.d.ts +55 -0
- package/virtual-list/utils/algorithm.d.ts +23 -0
- package/virtual-list/utils/algorithm.js +32 -31
- package/virtual-list/utils/item.js +71 -91
- package/watermark/Watermark.d.ts +3 -0
- package/watermark/Watermark.js +57 -68
- package/watermark/index.d.ts +8 -0
- package/watermark/index.js +8 -7
- package/Affix.js +0 -5
- package/Alert.js +0 -5
- package/Anchor.js +0 -9
- package/App.js +0 -10
- package/AutoComplete.js +0 -7
- package/Avatar.js +0 -10
- package/BackTop.js +0 -5
- package/Badge.js +0 -9
- package/Breadcrumb.js +0 -9
- package/Button.js +0 -9
- package/Calendar.js +0 -21
- package/Card.js +0 -16
- package/Carousel.js +0 -18
- package/Cascader.js +0 -5
- package/Checkbox.js +0 -14
- package/Collapse.js +0 -9
- package/ColorPicker.js +0 -30
- package/Comment.js +0 -13
- package/ConfigProvider.js +0 -9
- package/Constant.js +0 -6
- package/Copy.js +0 -18
- package/Countdown.js +0 -16
- package/DatePicker.js +0 -23
- package/Descriptions.js +0 -66
- package/Details.js +0 -17
- package/Development.js +0 -11
- package/Divider.js +0 -12
- package/Draggable.js +0 -11
- package/Draw.js +0 -6
- package/Drawer.js +0 -5
- package/Dropdown.js +0 -21
- package/Empty.js +0 -11
- package/Flex.js +0 -13
- package/Form.js +0 -30
- package/GlobalProvider.js +0 -11
- package/Grid.js +0 -14
- package/Icon.js +0 -11
- package/IconHover.js +0 -11
- package/Image.js +0 -11
- package/Input.js +0 -20
- package/InputNumber.js +0 -25
- package/InputTag.js +0 -5
- package/Layout.js +0 -23
- package/Link.js +0 -13
- package/LiquidFill.js +0 -14
- package/List.js +0 -23
- package/Loading.js +0 -11
- package/Marquee.js +0 -214
- package/Mask.js +0 -5
- package/Masonry.js +0 -5
- package/Mentions.js +0 -17
- package/Menu.js +0 -16
- package/Message.js +0 -7
- package/Modal.js +0 -7
- package/Notice.js +0 -5
- package/Notification.js +0 -7
- package/OverflowEllipsis.js +0 -14
- package/PageHeader.js +0 -20
- package/Pagination.js +0 -7
- package/Picker.js +0 -7
- package/Popconfirm.js +0 -16
- package/Popover.js +0 -5
- package/Portal.js +0 -5
- package/Progress.js +0 -15
- package/Progress2.js +0 -6
- package/QrCode.js +0 -7
- package/Radio.js +0 -11
- package/Rate.js +0 -20
- package/ResizeBox.js +0 -20
- package/Result.js +0 -18
- package/RichText.js +0 -25
- package/RowCol.js +0 -11
- package/Segmented.js +0 -14
- package/Select.js +0 -9
- package/SelectView.js +0 -12
- package/Skeleton.js +0 -15
- package/Slider.js +0 -26
- package/Space.js +0 -13
- package/SpeechSynthesis.js +0 -10
- package/Spin.js +0 -18
- package/Splitter.js +0 -8
- package/Statistic.js +0 -19
- package/Steps.js +0 -16
- package/SuspenseFallbackTest.js +0 -5
- package/Switch.js +0 -16
- package/Table.js +0 -38
- package/Tabs.js +0 -15
- package/Tag.js +0 -19
- package/TimePicker.js +0 -13
- package/Timeline.js +0 -7
- package/Timer.js +0 -12
- package/Tooltip.js +0 -5
- package/Tour.js +0 -23
- package/Transfer.js +0 -19
- package/Tree.js +0 -9
- package/TreeSelect.js +0 -7
- package/Trigger.js +0 -24
- package/Typography.js +0 -14
- package/Upload.js +0 -9
- package/VerificationCode.js +0 -7
- package/VirtualList.js +0 -5
- package/Watermark.js +0 -7
- package/calendar/Lunar.js +0 -71
- package/hooks/useBreakpoint.js +0 -8
- package/hooks/useComputedState.js +0 -5
- package/hooks/useCreate.js +0 -5
- package/hooks/useCreation.js +0 -5
- package/hooks/useEvent.js +0 -5
- package/hooks/useEventListener.js +0 -5
- package/hooks/useForceUpdate.js +0 -5
- package/hooks/useFullscreen.js +0 -5
- package/hooks/useId.js +0 -5
- package/hooks/useInView.js +0 -5
- package/hooks/useIntersectionObserver.js +0 -5
- package/hooks/useIntersectionObservers.js +0 -5
- package/hooks/useInterval.js +0 -5
- package/hooks/useIsFirstRender.js +0 -5
- package/hooks/useIsomorphicLayoutEffect.js +0 -5
- package/hooks/useKeyboardEvent.js +0 -5
- package/hooks/useLatest.js +0 -5
- package/hooks/useListenWindowResize.js +0 -5
- package/hooks/useMedia.js +0 -5
- package/hooks/useMergeProps.js +0 -5
- package/hooks/useMergeValue.js +0 -5
- package/hooks/useMove.js +0 -5
- package/hooks/useMutationObservers.js +0 -5
- package/hooks/useOnlineStatus.js +0 -5
- package/hooks/useOverflowHidden.js +0 -5
- package/hooks/useOverrideRef.js +0 -5
- package/hooks/usePersistCallback.js +0 -5
- package/hooks/usePrefersColorSchemeDark.js +0 -5
- package/hooks/usePrevious.js +0 -5
- package/hooks/useRefs.js +0 -6
- package/hooks/useResizeObserver.js +0 -5
- package/hooks/useResizeObservers.js +0 -5
- package/hooks/useResponsiveState.js +0 -11
- package/hooks/useSetState.js +0 -5
- package/hooks/useStateCallback.js +0 -5
- package/hooks/useStateWithPromise.js +0 -5
- package/hooks/useUpdateEffect.js +0 -5
- package/hooks/useUpdateLayoutEffect.js +0 -5
- package/hooks/useVerificationCode.js +0 -10
- package/hooks/useWatch.js +0 -5
- package/hooks/useWatermark.js +0 -11
- package/hooks/useWindowSize.js +0 -5
- package/icons/file.js +0 -11
- package/progress2/index.js +0 -6
- package/tree-select/Select.js +0 -262
- package/types/affix/Affix.d.ts +0 -10
- package/types/affix/index.d.ts +0 -3
- package/types/alert/Alert.d.ts +0 -5
- package/types/alert/index.d.ts +0 -3
- package/types/anchor/Anchor.d.ts +0 -12
- package/types/anchor/Link.d.ts +0 -6
- package/types/anchor/context.d.ts +0 -3
- package/types/anchor/index.d.ts +0 -4
- package/types/anchor/utils.d.ts +0 -5
- package/types/app/context.d.ts +0 -4
- package/types/app/useApp.d.ts +0 -3
- package/types/auto-complete/AutoComplete.d.ts +0 -17
- package/types/auto-complete/index.d.ts +0 -4
- package/types/auto-complete/interface.d.ts +0 -122
- package/types/avatar/Avatar.d.ts +0 -8
- package/types/avatar/Group.d.ts +0 -6
- package/types/avatar/context.d.ts +0 -3
- package/types/avatar/index.d.ts +0 -9
- package/types/avatar/interface.d.ts +0 -91
- package/types/back-top/BackTop.d.ts +0 -6
- package/types/back-top/index.d.ts +0 -3
- package/types/badge/Badge.d.ts +0 -11
- package/types/badge/index.d.ts +0 -4
- package/types/breadcrumb/Breadcrumb.d.ts +0 -10
- package/types/breadcrumb/Item.d.ts +0 -8
- package/types/breadcrumb/context.d.ts +0 -4
- package/types/breadcrumb/index.d.ts +0 -6
- package/types/breadcrumb/interface.d.ts +0 -79
- package/types/button/Button.d.ts +0 -19
- package/types/button/Group.d.ts +0 -5
- package/types/button/index.d.ts +0 -4
- package/types/button/interface.d.ts +0 -114
- package/types/calendar/Lunar.d.ts +0 -17
- package/types/calendar/Month.d.ts +0 -15
- package/types/calendar/Year.d.ts +0 -13
- package/types/calendar/index.d.ts +0 -7
- package/types/card/Grid.d.ts +0 -5
- package/types/card/Meta.d.ts +0 -5
- package/types/card/index.d.ts +0 -12
- package/types/carousel/Arrow.d.ts +0 -4
- package/types/carousel/Indicator.d.ts +0 -4
- package/types/carousel/index.d.ts +0 -5
- package/types/cascader/Cascader.d.ts +0 -17
- package/types/cascader/base/node.d.ts +0 -78
- package/types/cascader/base/store.d.ts +0 -44
- package/types/cascader/index.d.ts +0 -5
- package/types/cascader/interface.d.ts +0 -297
- package/types/cascader/panel/List.d.ts +0 -4
- package/types/cascader/panel/Option.d.ts +0 -23
- package/types/cascader/panel/Search.d.ts +0 -28
- package/types/cascader/utils.d.ts +0 -23
- package/types/checkbox/Checkbox.d.ts +0 -18
- package/types/checkbox/Group.d.ts +0 -9
- package/types/checkbox/GroupBlock.d.ts +0 -8
- package/types/checkbox/index.d.ts +0 -5
- package/types/checkbox/interface.d.ts +0 -102
- package/types/collapse/Collapse.d.ts +0 -13
- package/types/collapse/Item.d.ts +0 -8
- package/types/collapse/context.d.ts +0 -5
- package/types/collapse/index.d.ts +0 -5
- package/types/color-picker/ControlBar.d.ts +0 -18
- package/types/color-picker/InputAlpha.d.ts +0 -7
- package/types/color-picker/InputHex.d.ts +0 -11
- package/types/color-picker/InputRgb.d.ts +0 -10
- package/types/color-picker/Mode.d.ts +0 -7
- package/types/color-picker/Palette.d.ts +0 -7
- package/types/color-picker/Panel.d.ts +0 -30
- package/types/color-picker/colors.d.ts +0 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +0 -39
- package/types/color-picker/hooks/useControlBlock.d.ts +0 -18
- package/types/color-picker/index.d.ts +0 -12
- package/types/color-picker/interface.d.ts +0 -148
- package/types/color-picker/utils.d.ts +0 -28
- package/types/comment/index.d.ts +0 -6
- package/types/config-provider/ConfigProvider.d.ts +0 -11
- package/types/config-provider/context.d.ts +0 -5
- package/types/config-provider/index.d.ts +0 -4
- package/types/config-provider/interface.d.ts +0 -273
- package/types/constant/index.d.ts +0 -2
- package/types/copy/index.d.ts +0 -7
- package/types/countdown/index.d.ts +0 -4
- package/types/date-picker/DatePickerRange.d.ts +0 -3
- package/types/date-picker/Picker.d.ts +0 -4
- package/types/date-picker/context.d.ts +0 -6
- package/types/date-picker/index.d.ts +0 -11
- package/types/date-picker/interface.d.ts +0 -530
- package/types/date-picker/panel/Body.d.ts +0 -30
- package/types/date-picker/panel/Header.d.ts +0 -22
- package/types/date-picker/panel/Shortcut.d.ts +0 -3
- package/types/date-picker/panel/month/index.d.ts +0 -17
- package/types/date-picker/panel/quarter/index.d.ts +0 -17
- package/types/date-picker/panel/range/index.d.ts +0 -28
- package/types/date-picker/panel/week/index.d.ts +0 -16
- package/types/date-picker/panel/year/index.d.ts +0 -16
- package/types/date-picker/utils.d.ts +0 -11
- package/types/descriptions/index.d.ts +0 -4
- package/types/descriptions/interface.d.ts +0 -80
- package/types/details/index.d.ts +0 -5
- package/types/divider/index.d.ts +0 -10
- package/types/draggable/Item.d.ts +0 -3
- package/types/draggable/index.d.ts +0 -4
- package/types/draw/Draw.d.ts +0 -6
- package/types/draw/index.d.ts +0 -4
- package/types/drawer/Drawer.d.ts +0 -5
- package/types/drawer/index.d.ts +0 -3
- package/types/drawer/interface.d.ts +0 -175
- package/types/dropdown/Button.d.ts +0 -4
- package/types/dropdown/index.d.ts +0 -10
- package/types/dropdown/interface.d.ts +0 -100
- package/types/empty/index.d.ts +0 -4
- package/types/empty/interface.d.ts +0 -8
- package/types/flex/index.d.ts +0 -11
- package/types/flex/interface.d.ts +0 -9
- package/types/form/Control.d.ts +0 -65
- package/types/form/Form.d.ts +0 -6
- package/types/form/FormItem.d.ts +0 -7
- package/types/form/FormItemTip.d.ts +0 -3
- package/types/form/FormList.d.ts +0 -6
- package/types/form/FormProvider.d.ts +0 -5
- package/types/form/context.d.ts +0 -15
- package/types/form/hook/useForm.d.ts +0 -5
- package/types/form/hook/useFormContext.d.ts +0 -10
- package/types/form/hook/useFormState.d.ts +0 -3
- package/types/form/hook/useWatch.d.ts +0 -3
- package/types/form/index.d.ts +0 -32
- package/types/form/interface.d.ts +0 -552
- package/types/form/store.d.ts +0 -99
- package/types/form/utils.d.ts +0 -17
- package/types/global-provider/context.d.ts +0 -3
- package/types/global-provider/index.d.ts +0 -11
- package/types/grid/Item.d.ts +0 -4
- package/types/grid/index.d.ts +0 -11
- package/types/grid/interface.d.ts +0 -114
- package/types/grid/utils.d.ts +0 -2
- package/types/hooks/use-breakpoint/index.d.ts +0 -3
- package/types/hooks/use-verification-code/index.d.ts +0 -3
- package/types/hooks/use-watermark/index.d.ts +0 -3
- package/types/icon/Icon.d.ts +0 -8
- package/types/icon/index.d.ts +0 -2
- package/types/icon-hover/index.d.ts +0 -6
- package/types/icon-hover/interface.d.ts +0 -8
- package/types/icons/file/index.d.ts +0 -4
- package/types/icons/file/interface.d.ts +0 -7
- package/types/image/Image.d.ts +0 -14
- package/types/image/ImageFooter.d.ts +0 -13
- package/types/image/ImagePreview.d.ts +0 -7
- package/types/image/ImagePreviewGroup.d.ts +0 -11
- package/types/image/ImagePreviewToolbar.d.ts +0 -14
- package/types/image/TriggerForToolbar.d.ts +0 -10
- package/types/image/context.d.ts +0 -24
- package/types/image/index.d.ts +0 -4
- package/types/image/interface.d.ts +0 -257
- package/types/image/utils/getScale.d.ts +0 -13
- package/types/image/utils/hook/useShowFooter.d.ts +0 -8
- package/types/index.d.ts +0 -195
- package/types/input/Button.d.ts +0 -5
- package/types/input/Group.d.ts +0 -7
- package/types/input/Input.d.ts +0 -25
- package/types/input/InputElement.d.ts +0 -4
- package/types/input/Password.d.ts +0 -5
- package/types/input/Search.d.ts +0 -5
- package/types/input/Textarea.d.ts +0 -9
- package/types/input/index.d.ts +0 -8
- package/types/input/interface.d.ts +0 -318
- package/types/input/useComposition.d.ts +0 -18
- package/types/input-number/index.d.ts +0 -6
- package/types/input-number/interface.d.ts +0 -128
- package/types/input-tag/InputTag.d.ts +0 -7
- package/types/input-tag/index.d.ts +0 -3
- package/types/input-tag/interface.d.ts +0 -187
- package/types/layout/Content.d.ts +0 -3
- package/types/layout/Footer.d.ts +0 -3
- package/types/layout/Header.d.ts +0 -3
- package/types/layout/Sider.d.ts +0 -8
- package/types/layout/index.d.ts +0 -16
- package/types/layout/interface.d.ts +0 -123
- package/types/link/index.d.ts +0 -6
- package/types/list/Item.d.ts +0 -8
- package/types/list/Meta.d.ts +0 -4
- package/types/list/index.d.ts +0 -13
- package/types/list/interface.d.ts +0 -189
- package/types/locale/ar-EG.d.ts +0 -4
- package/types/locale/de-DE.d.ts +0 -4
- package/types/locale/es-ES.d.ts +0 -4
- package/types/locale/fr-FR.d.ts +0 -4
- package/types/locale/id-ID.d.ts +0 -4
- package/types/locale/it-IT.d.ts +0 -4
- package/types/locale/ja-JP.d.ts +0 -4
- package/types/locale/ko-KR.d.ts +0 -4
- package/types/locale/ms-MY.d.ts +0 -4
- package/types/locale/pt-BR.d.ts +0 -4
- package/types/locale/pt-PT.d.ts +0 -4
- package/types/locale/ru-RU.d.ts +0 -4
- package/types/locale/th-TH.d.ts +0 -4
- package/types/locale/tr-TR.d.ts +0 -4
- package/types/locale/vi-VN.d.ts +0 -4
- package/types/locale/zh-CN.d.ts +0 -4
- package/types/locale/zh-HK.d.ts +0 -4
- package/types/locale/zh-TW.d.ts +0 -4
- package/types/marquee/interface.d.ts +0 -95
- package/types/marquee-/index.d.ts +0 -8
- package/types/marquee-/interface.d.ts +0 -56
- package/types/mask/Mask.d.ts +0 -5
- package/types/mask/index.d.ts +0 -2
- package/types/masonry/hooks/useDelay.d.ts +0 -2
- package/types/masonry/hooks/useGutter.d.ts +0 -5
- package/types/masonry/index.d.ts +0 -2
- package/types/masonry/interface.d.ts +0 -43
- package/types/mentions/index.d.ts +0 -5
- package/types/mentions/interface.d.ts +0 -88
- package/types/mentions/utils.d.ts +0 -9
- package/types/menu/Item.d.ts +0 -6
- package/types/menu/ItemGroup.d.ts +0 -6
- package/types/menu/Menu.d.ts +0 -16
- package/types/menu/OverflowWrap.d.ts +0 -9
- package/types/menu/context.d.ts +0 -15
- package/types/menu/index.d.ts +0 -4
- package/types/menu/interface.d.ts +0 -222
- package/types/menu/sub-menu/Inline.d.ts +0 -5
- package/types/menu/sub-menu/Pop.d.ts +0 -5
- package/types/menu/sub-menu/index.d.ts +0 -6
- package/types/message/Message.d.ts +0 -20
- package/types/message/index.d.ts +0 -6
- package/types/message/useMessage.d.ts +0 -5
- package/types/modal/Confirm.d.ts +0 -15
- package/types/modal/Modal.d.ts +0 -20
- package/types/modal/config.d.ts +0 -9
- package/types/modal/index.d.ts +0 -4
- package/types/modal/interface.d.ts +0 -191
- package/types/modal/use-modal/Hook.d.ts +0 -7
- package/types/modal/use-modal/index.d.ts +0 -4
- package/types/notice/Notice.d.ts +0 -4
- package/types/notice/index.d.ts +0 -2
- package/types/notification/Notification.d.ts +0 -22
- package/types/notification/index.d.ts +0 -6
- package/types/notification/interface.d.ts +0 -84
- package/types/notification/useNotification.d.ts +0 -5
- package/types/overflow-ellipsis/index.d.ts +0 -5
- package/types/page-header/index.d.ts +0 -7
- package/types/page-header/interface.d.ts +0 -57
- package/types/pagination/PageItem.d.ts +0 -18
- package/types/pagination/PageJumper.d.ts +0 -13
- package/types/pagination/PageOption.d.ts +0 -17
- package/types/pagination/Pagination.d.ts +0 -11
- package/types/pagination/index.d.ts +0 -5
- package/types/pagination/interface.d.ts +0 -179
- package/types/picker/Input.d.ts +0 -3
- package/types/picker/InputRange.d.ts +0 -3
- package/types/picker/index.d.ts +0 -3
- package/types/picker/interface.d.ts +0 -57
- package/types/popconfirm/index.d.ts +0 -6
- package/types/popconfirm/interface.d.ts +0 -108
- package/types/popover/Popover.d.ts +0 -6
- package/types/popover/index.d.ts +0 -3
- package/types/popover/interface.d.ts +0 -19
- package/types/portal/Portal.d.ts +0 -4
- package/types/portal/index.d.ts +0 -4
- package/types/progress/CircleProgress.d.ts +0 -8
- package/types/progress/index.d.ts +0 -4
- package/types/progress/interface.d.ts +0 -84
- package/types/progress2/index.d.ts +0 -1
- package/types/progress2/interface.d.ts +0 -1
- package/types/qr-code/QRCode.d.ts +0 -5
- package/types/qr-code/index.d.ts +0 -4
- package/types/qr-code/src/qrcodegen.d.ts +0 -95
- package/types/qr-code/src/qrcodegen2.d.ts +0 -325
- package/types/radio/Group.d.ts +0 -10
- package/types/radio/GroupBlock.d.ts +0 -7
- package/types/radio/Radio.d.ts +0 -14
- package/types/radio/index.d.ts +0 -6
- package/types/radio/interface.d.ts +0 -102
- package/types/rate/index.d.ts +0 -5
- package/types/rate/interface.d.ts +0 -66
- package/types/resize-box/Split.d.ts +0 -4
- package/types/resize-box/SplitGroup.d.ts +0 -4
- package/types/resize-box/index.d.ts +0 -14
- package/types/result/index.d.ts +0 -6
- package/types/rich-text/RichText.d.ts +0 -8
- package/types/rich-text/constant.d.ts +0 -1
- package/types/rich-text/index.d.ts +0 -6
- package/types/rich-text/lib/blots/scroll.d.ts +0 -44
- package/types/rich-text/lib/core/composition.d.ts +0 -16
- package/types/rich-text/lib/core/rich.d.ts +0 -185
- package/types/rich-text/lib/core/selection.d.ts +0 -74
- package/types/rich-text/lib/delta/index.d.ts +0 -54
- package/types/rich-text/lib/modules/clipboard.d.ts +0 -47
- package/types/rich-text/lib/modules/history.d.ts +0 -39
- package/types/rich-text/lib/modules/input.d.ts +0 -13
- package/types/rich-text/lib/modules/keyboard.d.ts +0 -60
- package/types/rich-text/lib/modules/table.d.ts +0 -22
- package/types/rich-text/lib/modules/uiNode.d.ts +0 -22
- package/types/rich-text/lib/modules/uploader.d.ts +0 -17
- package/types/rich-text/lib/parchment/attributor/store.d.ts +0 -15
- package/types/rich-text/lib/parchment/blot/scroll.d.ts +0 -34
- package/types/rich-text/lib/parchment/registry.d.ts +0 -21
- package/types/row-col/index.d.ts +0 -8
- package/types/segmented/interface.d.ts +0 -123
- package/types/select/Option.d.ts +0 -7
- package/types/select/OptionGroup.d.ts +0 -7
- package/types/select/Select.d.ts +0 -12
- package/types/select/index.d.ts +0 -4
- package/types/select/interface.d.ts +0 -295
- package/types/select/utils.d.ts +0 -25
- package/types/select-view/interface.d.ts +0 -148
- package/types/skeleton/Image.d.ts +0 -3
- package/types/skeleton/Text.d.ts +0 -4
- package/types/skeleton/index.d.ts +0 -7
- package/types/slider/Button.d.ts +0 -21
- package/types/slider/Dot.d.ts +0 -17
- package/types/slider/Input.d.ts +0 -16
- package/types/slider/Mark.d.ts +0 -16
- package/types/slider/Tick.d.ts +0 -14
- package/types/slider/hook/useInterval.d.ts +0 -24
- package/types/slider/hook/useLegalValue.d.ts +0 -16
- package/types/slider/index.d.ts +0 -5
- package/types/slider/interface.d.ts +0 -119
- package/types/slider/utils.d.ts +0 -11
- package/types/space/index.d.ts +0 -7
- package/types/space/interface.d.ts +0 -10
- package/types/speech-synthesis/index.d.ts +0 -3
- package/types/speech-synthesis/interface.d.ts +0 -7
- package/types/speech-synthesis/style/index.d.ts +0 -1
- package/types/spin/index.d.ts +0 -5
- package/types/splitter/index.d.ts +0 -9
- package/types/statistic/index.d.ts +0 -9
- package/types/steps/Step.d.ts +0 -4
- package/types/steps/index.d.ts +0 -11
- package/types/suspense-fallback-test/interface.d.ts +0 -2
- package/types/switch/index.d.ts +0 -11
- package/types/switch/interface.d.ts +0 -66
- package/types/table/ColGroup.d.ts +0 -13
- package/types/table/Table.d.ts +0 -10
- package/types/table/constant.d.ts +0 -4
- package/types/table/hook/useColumns.d.ts +0 -3
- package/types/table/hook/useComponent.d.ts +0 -31
- package/types/table/hook/useExpand.d.ts +0 -4
- package/types/table/hook/useRowSelection.d.ts +0 -13
- package/types/table/hook/useSorter.d.ts +0 -8
- package/types/table/hook/useStickyClassNames.d.ts +0 -3
- package/types/table/hook/useStickyOffsets.d.ts +0 -3
- package/types/table/index.d.ts +0 -19
- package/types/table/interface.d.ts +0 -729
- package/types/table/summary/context.d.ts +0 -9
- package/types/table/summary/index.d.ts +0 -11
- package/types/table/tbody/Td.d.ts +0 -5
- package/types/table/tbody/Tr.d.ts +0 -9
- package/types/table/tbody/index.d.ts +0 -4
- package/types/table/tfoot/index.d.ts +0 -3
- package/types/table/thead/Column.d.ts +0 -3
- package/types/table/thead/index.d.ts +0 -3
- package/types/table/utils.d.ts +0 -17
- package/types/tabs/TabContent.d.ts +0 -3
- package/types/tabs/TabPane.d.ts +0 -5
- package/types/tabs/Tabs.d.ts +0 -13
- package/types/tabs/hook/useDomSize.d.ts +0 -12
- package/types/tabs/hook/useHeaderScroll.d.ts +0 -10
- package/types/tabs/index.d.ts +0 -7
- package/types/tabs/interface.d.ts +0 -228
- package/types/tabs/tab-header/TabNavIcon.d.ts +0 -17
- package/types/tabs/tab-header/index.d.ts +0 -4
- package/types/tag/index.d.ts +0 -6
- package/types/tag/interface.d.ts +0 -70
- package/types/time-picker/Picker.d.ts +0 -3
- package/types/time-picker/TimePicker.d.ts +0 -3
- package/types/time-picker/TimePickerRange.d.ts +0 -3
- package/types/time-picker/context.d.ts +0 -6
- package/types/time-picker/index.d.ts +0 -10
- package/types/time-picker/interface.d.ts +0 -264
- package/types/timeline/Item.d.ts +0 -8
- package/types/timeline/Timeline.d.ts +0 -12
- package/types/timeline/index.d.ts +0 -4
- package/types/timer/interface.d.ts +0 -6
- package/types/tooltip/Tooltip.d.ts +0 -6
- package/types/tooltip/index.d.ts +0 -3
- package/types/tooltip/interface.d.ts +0 -94
- package/types/transfer/Item.d.ts +0 -3
- package/types/transfer/List.d.ts +0 -5
- package/types/transfer/index.d.ts +0 -5
- package/types/transfer/interface.d.ts +0 -219
- package/types/tree/Animation.d.ts +0 -4
- package/types/tree/Context.d.ts +0 -28
- package/types/tree/Node.d.ts +0 -10
- package/types/tree/Tree.d.ts +0 -19
- package/types/tree/index.d.ts +0 -2
- package/types/tree/interface.d.ts +0 -371
- package/types/tree/utils.d.ts +0 -12
- package/types/tree-select/List.d.ts +0 -11
- package/types/tree-select/Select.d.ts +0 -14
- package/types/tree-select/hook/useKeyCache.d.ts +0 -6
- package/types/tree-select/hook/useStateValue.d.ts +0 -19
- package/types/tree-select/hook/useTreeData.d.ts +0 -4
- package/types/tree-select/index.d.ts +0 -4
- package/types/tree-select/interface.d.ts +0 -196
- package/types/trigger/getPopupStyle.d.ts +0 -14
- package/types/trigger/index.d.ts +0 -10
- package/types/trigger/interface.d.ts +0 -257
- package/types/typography/Base.d.ts +0 -8
- package/types/typography/EditContent.d.ts +0 -4
- package/types/typography/Ellipsis.d.ts +0 -6
- package/types/typography/Operations.d.ts +0 -4
- package/types/typography/Paragraph.d.ts +0 -3
- package/types/typography/Title.d.ts +0 -3
- package/types/typography/Typography.d.ts +0 -3
- package/types/typography/index.d.ts +0 -14
- package/types/typography/interface.d.ts +0 -277
- package/types/typography/useCssEllipsis.d.ts +0 -6
- package/types/typography/useEllipsis.d.ts +0 -21
- package/types/upload/TriggerNode.d.ts +0 -6
- package/types/upload/Upload.d.ts +0 -9
- package/types/upload/Uploader.d.ts +0 -15
- package/types/upload/constant.d.ts +0 -4
- package/types/upload/index.d.ts +0 -6
- package/types/upload/interface.d.ts +0 -336
- package/types/upload/list/PictureItem.d.ts +0 -8
- package/types/upload/list/TextItem.d.ts +0 -8
- package/types/upload/list/UploadProgress.d.ts +0 -14
- package/types/upload/list/index.d.ts +0 -6
- package/types/upload/list/utils.d.ts +0 -2
- package/types/upload/request.d.ts +0 -3
- package/types/upload/utils.d.ts +0 -4
- package/types/utils/constant.d.ts +0 -4
- package/types/utils/contextHolder.d.ts +0 -10
- package/types/utils/getHotkeyHandler.d.ts +0 -4
- package/types/utils/is.d.ts +0 -1
- package/types/utils/names.d.ts +0 -1035
- package/types/utils/validate.d.ts +0 -2
- package/types/verification-code/VerificationCode.d.ts +0 -10
- package/types/verification-code/index.d.ts +0 -6
- package/types/verification-code/interface.d.ts +0 -74
- package/types/version/index.d.ts +0 -4
- package/types/virtual-list/hook/useCacheChildrenNodes.d.ts +0 -4
- package/types/virtual-list/hook/useComputeVirtualItemHeight.d.ts +0 -3
- package/types/virtual-list/index.d.ts +0 -4
- package/types/virtual-list/interface.d.ts +0 -55
- package/types/virtual-list/utils/algorithm.d.ts +0 -23
- package/types/watermark/Watermark.d.ts +0 -5
- package/types/watermark/index.d.ts +0 -6
- /package/{types/affix → affix}/interface.d.ts +0 -0
- /package/{types/alert → alert}/interface.d.ts +0 -0
- /package/{types/anchor → anchor}/interface.d.ts +0 -0
- /package/{types/app → app}/App.d.ts +0 -0
- /package/{types/app → app}/index.d.ts +0 -0
- /package/{types/app → app}/interface.d.ts +0 -0
- /package/{types/back-top → back-top}/interface.d.ts +0 -0
- /package/{types/badge → badge}/Count.d.ts +0 -0
- /package/{types/badge → badge}/interface.d.ts +0 -0
- /package/{types/calendar → calendar}/WeekList.d.ts +0 -0
- /package/{types/calendar → calendar}/header/Panel.d.ts +0 -0
- /package/{types/calendar → calendar}/header/index.d.ts +0 -0
- /package/{types/calendar → calendar}/hook/useCellClassName.d.ts +0 -0
- /package/{types/calendar → calendar}/interface.d.ts +0 -0
- /package/{types/card → card}/interface.d.ts +0 -0
- /package/{types/carousel → carousel}/interface.d.ts +0 -0
- /package/{types/cascader → cascader}/hook/useRefCurrent.d.ts +0 -0
- /package/{types/checkbox → checkbox}/context.d.ts +0 -0
- /package/{types/checkbox → checkbox}/useCheckbox.d.ts +0 -0
- /package/{types/collapse → collapse}/interface.d.ts +0 -0
- /package/{types/comment → comment}/interface.d.ts +0 -0
- /package/{types/config-provider → config-provider}/initUI.d.ts +0 -0
- /package/{types/config-provider → config-provider}/useConfigProvider.d.ts +0 -0
- /package/{types/copy → copy}/interface.d.ts +0 -0
- /package/{types/countdown → countdown}/interface.d.ts +0 -0
- /package/{types/countdown → countdown}/utils.d.ts +0 -0
- /package/{types/date-picker → date-picker}/hook/useCellClassName.d.ts +0 -0
- /package/{types/date-picker → date-picker}/panel/Footer.d.ts +0 -0
- /package/{types/date-picker → date-picker}/panel/WeekList.d.ts +0 -0
- /package/{types/date-picker → date-picker}/panel/date/index.d.ts +0 -0
- /package/{types/details → details}/interface.d.ts +0 -0
- /package/{types/development/index.d.ts → development/Development.d.ts} +0 -0
- /package/{types/development → development}/interface.d.ts +0 -0
- /package/{types/divider → divider}/interface.d.ts +0 -0
- /package/{types/draggable → draggable}/interface.d.ts +0 -0
- /package/{types/draw → draw}/constant.d.ts +0 -0
- /package/{types/draw → draw}/interface.d.ts +0 -0
- /package/{types/form → form}/FormLabel.d.ts +0 -0
- /package/{types/form → form}/promisify.d.ts +0 -0
- /package/{types/global-provider → global-provider}/interface.d.ts +0 -0
- /package/{types/grid → grid}/Grid.d.ts +0 -0
- /package/{types/grid → grid}/context.d.ts +0 -0
- /package/{types/hooks → hooks}/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-computed-state/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-create/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-creation/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-event/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-event-listener/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-force-update/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-fullscreen/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-id/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-in-view/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-intersection-observer/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-intersection-observers/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-interval/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-is-first-render/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-isomorphic-layout-effect/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-keyboard-event/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-latest/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-listen-window-resize/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-media/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-merge-props/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-merge-value/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-move/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-mutation-observers/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-online-status/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-overflow-hidden/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-override-ref/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-persist-callback/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-prefers-color-scheme-dark/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-previous/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-refs/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-resize-observer/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-resize-observers/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-responsive-state/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-set-state/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-state-callback/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-state-with-promise/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-update-effect/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-update-layout-effect/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-verification-code/interface.d.ts +0 -0
- /package/{types/hooks → hooks}/use-watch/index.d.ts +0 -0
- /package/{types/hooks → hooks}/use-watermark/interface.d.ts +0 -0
- /package/{types/hooks → hooks}/use-watermark/utils.d.ts +0 -0
- /package/{types/hooks → hooks}/use-window-size/index.d.ts +0 -0
- /package/{types/hooks → hooks}/useUnmountOnExit.d.ts +0 -0
- /package/{types/icon → icon}/addIconFromCdn.d.ts +0 -0
- /package/{types/icon → icon}/interface.d.ts +0 -0
- /package/{types/icons.d.ts → icons.d.ts} +0 -0
- /package/{types/image → image}/ImagePreviewArrow.d.ts +0 -0
- /package/{types/image → image}/utils/getFixTranslate.d.ts +0 -0
- /package/{types/image → image}/utils/hook/useImageStatus.d.ts +0 -0
- /package/{types/input → input}/Number.d.ts +0 -0
- /package/{types/input → input}/Tag.d.ts +0 -0
- /package/{types/input → input}/autoSizeTextareaHeight.d.ts +0 -0
- /package/{types/input → input}/utils.d.ts +0 -0
- /package/{types/input-number → input-number}/decimal.d.ts +0 -0
- /package/{types/input-number → input-number}/useSelectionRange.d.ts +0 -0
- /package/{types/input-number → input-number}/utils.d.ts +0 -0
- /package/{types/interface.d.ts → interface.d.ts} +0 -0
- /package/{types/layout → layout}/context.d.ts +0 -0
- /package/{types/link → link}/interface.d.ts +0 -0
- /package/{types/liquid-fill/index.d.ts → liquid-fill/LiquidFill.d.ts} +0 -0
- /package/{types/liquid-fill → liquid-fill}/interface.d.ts +0 -0
- /package/{types/loading/index.d.ts → loading/Loading.d.ts} +0 -0
- /package/{types/loading → loading}/interface.d.ts +0 -0
- /package/{types/locale → locale}/default.d.ts +0 -0
- /package/{types/locale → locale}/en-US.d.ts +0 -0
- /package/{types/locale → locale}/interface.d.ts +0 -0
- /package/{types/marquee/index.d.ts → marquee/Marquee.d.ts} +0 -0
- /package/{types/mask → mask}/interface.d.ts +0 -0
- /package/{types/masonry → masonry}/Masonry.d.ts +0 -0
- /package/{types/masonry → masonry}/MasonryItem.d.ts +0 -0
- /package/{types/masonry → masonry}/hooks/usePositions.d.ts +0 -0
- /package/{types/masonry → masonry}/hooks/useRefs.d.ts +0 -0
- /package/{types/menu → menu}/Indent.d.ts +0 -0
- /package/{types/menu → menu}/utils.d.ts +0 -0
- /package/{types/message → message}/interface.d.ts +0 -0
- /package/{types/notice → notice}/interface.d.ts +0 -0
- /package/{types/notification → notification}/withNotification.d.ts +0 -0
- /package/{types/overflow-ellipsis → overflow-ellipsis}/OverflowItem.d.ts +0 -0
- /package/{types/overflow-ellipsis → overflow-ellipsis}/interface.d.ts +0 -0
- /package/{types/portal → portal}/interface.d.ts +0 -0
- /package/{types/progress → progress}/LineProgess.d.ts +0 -0
- /package/{types/progress → progress}/StepProgress.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/demo.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/download.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/full.d.ts +0 -0
- /package/{types/qr-code → qr-code}/examples/image.d.ts +0 -0
- /package/{types/qr-code → qr-code}/interface.d.ts +0 -0
- /package/{types/qr-code → qr-code}/src/index.d.ts +0 -0
- /package/{types/resize-box → resize-box}/ResizeTrigger.d.ts +0 -0
- /package/{types/resize-box → resize-box}/interface.d.ts +0 -0
- /package/{types/result → result}/403.d.ts +0 -0
- /package/{types/result → result}/404.d.ts +0 -0
- /package/{types/result → result}/500.d.ts +0 -0
- /package/{types/result → result}/interface.d.ts +0 -0
- /package/{types/rich-text → rich-text}/Toolbar.d.ts +0 -0
- /package/{types/rich-text → rich-text}/interface.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/block.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/break.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/container.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/cursor.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/embed.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/inline.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/blots/text.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/editor.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/emitter.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/logger.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/module.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/theme.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/utils/createRegistryWithFormats.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/core/utils/scrollRectIntoView.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/delta/AttributeMap.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/delta/Op.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/delta/OpIterator.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/diff/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/align.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/background.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/blockquote.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/bold.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/code.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/color.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/direction.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/emoji.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/font.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/formula.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/header.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/hr.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/image.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/indent.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/italic.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/liOl.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/liUl.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/lineHeight.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/link.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/list.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/script.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/size.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/strike.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/table.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/underline.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/formats/video.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/modules/Base.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/modules/DisplaySize.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/modules/Resize.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/image-resize/options.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/normalizeExternalHTML/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/normalizeExternalHTML/normalizers/googleDocs.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/normalizeExternalHTML/normalizers/msWord.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/tableEmbed.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/toolbar copy.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/modules/toolbar.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/attributor/attributor.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/attributor/class.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/attributor/style.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/blot.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/container.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/leaf.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/parent.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/abstract/shadow.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/block.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/embed.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/inline.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/blot/text.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/collection/linked-list.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/collection/linked-node.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/error.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/index.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/parchment/scope.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/themes/base.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/themes/pqb.d.ts +0 -0
- /package/{types/rich-text → rich-text}/lib/ui/tooltip.d.ts +0 -0
- /package/{types/row-col → row-col}/Col-.d.ts +0 -0
- /package/{types/row-col → row-col}/Col.d.ts +0 -0
- /package/{types/row-col → row-col}/Row.d.ts +0 -0
- /package/{types/row-col → row-col}/context.d.ts +0 -0
- /package/{types/row-col → row-col}/interface.d.ts +0 -0
- /package/{types/segmented/index.d.ts → segmented/Segmented.d.ts} +0 -0
- /package/{types/select-view → select-view}/Core.d.ts +0 -0
- /package/{types/select-view/index.d.ts → select-view/SelectView.d.ts} +0 -0
- /package/{types/skeleton → skeleton}/interface.d.ts +0 -0
- /package/{types/spin → spin}/DotLoading.d.ts +0 -0
- /package/{types/spin → spin}/interface.d.ts +0 -0
- /package/{types/splitter → splitter}/Panel.d.ts +0 -0
- /package/{types/splitter → splitter}/SplitBar.d.ts +0 -0
- /package/{types/splitter → splitter}/Splitter.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useItems.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useResizable.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useResize.d.ts +0 -0
- /package/{types/splitter → splitter}/hooks/useSizes.d.ts +0 -0
- /package/{types/splitter → splitter}/interface.d.ts +0 -0
- /package/{types/statistic → statistic}/interface.d.ts +0 -0
- /package/{types/steps → steps}/interface.d.ts +0 -0
- /package/{types/suspense-fallback-test/index.d.ts → suspense-fallback-test/SuspenseFallbackTest.d.ts} +0 -0
- /package/{types/table → table}/context.d.ts +0 -0
- /package/{types/table → table}/hook/useThResizable.d.ts +0 -0
- /package/{types/table → table}/summary/Cell.d.ts +0 -0
- /package/{types/table → table}/summary/Row.d.ts +0 -0
- /package/{types/table → table}/th-resizable/index.d.ts +0 -0
- /package/{types/tabs → tabs}/context.d.ts +0 -0
- /package/{types/tabs → tabs}/tab-header/DropdownIcon.d.ts +0 -0
- /package/{types/tabs → tabs}/tab-header/TabInk.d.ts +0 -0
- /package/{types/tabs → tabs}/tab-header/TabTitle.d.ts +0 -0
- /package/{types/tabs → tabs}/utils.d.ts +0 -0
- /package/{types/time-picker → time-picker}/TimeColumn.d.ts +0 -0
- /package/{types/time-picker → time-picker}/utils.d.ts +0 -0
- /package/{types/timeline → timeline}/interface.d.ts +0 -0
- /package/{types/timer/index.d.ts → timer/Timer.d.ts} +0 -0
- /package/{types/tour/index.d.ts → tour/Tour.d.ts} +0 -0
- /package/{types/tour → tour}/interface.d.ts +0 -0
- /package/{types/tree → tree}/NodeList.d.ts +0 -0
- /package/{types/tree-select → tree-select}/utils.d.ts +0 -0
- /package/{types/typography → typography}/Text.d.ts +0 -0
- /package/{types/utils → utils}/callOrReturn.d.ts +0 -0
- /package/{types/utils → utils}/callbackOriginRef.d.ts +0 -0
- /package/{types/utils → utils}/caseName.d.ts +0 -0
- /package/{types/utils → utils}/className.d.ts +0 -0
- /package/{types/utils → utils}/copy.d.ts +0 -0
- /package/{types/utils → utils}/date.d.ts +0 -0
- /package/{types/utils → utils}/dayjs.d.ts +0 -0
- /package/{types/utils → utils}/dom.d.ts +0 -0
- /package/{types/utils → utils}/emitter.d.ts +0 -0
- /package/{types/utils → utils}/fileRead.d.ts +0 -0
- /package/{types/utils → utils}/fileToDataURL.d.ts +0 -0
- /package/{types/utils → utils}/fillNBSP.d.ts +0 -0
- /package/{types/utils → utils}/findRootElement.d.ts +0 -0
- /package/{types/utils → utils}/findScrollParent.d.ts +0 -0
- /package/{types/utils → utils}/getHighlightText.d.ts +0 -0
- /package/{types/utils → utils}/getStringLength.d.ts +0 -0
- /package/{types/utils → utils}/include.d.ts +0 -0
- /package/{types/utils → utils}/index.d.ts +0 -0
- /package/{types/utils → utils}/intersectionObserver.d.ts +0 -0
- /package/{types/utils → utils}/keyboardCode.d.ts +0 -0
- /package/{types/utils → utils}/lodash.d.ts +0 -0
- /package/{types/utils → utils}/math.d.ts +0 -0
- /package/{types/utils → utils}/mergeProps.d.ts +0 -0
- /package/{types/utils → utils}/mergedToString.d.ts +0 -0
- /package/{types/utils → utils}/mutationObserver.d.ts +0 -0
- /package/{types/utils → utils}/omit.d.ts +0 -0
- /package/{types/utils → utils}/pad.d.ts +0 -0
- /package/{types/utils → utils}/pick.d.ts +0 -0
- /package/{types/utils → utils}/pinyin.d.ts +0 -0
- /package/{types/utils → utils}/react19Adapter.d.ts +0 -0
- /package/{types/utils → utils}/ref.d.ts +0 -0
- /package/{types/utils → utils}/resizeObserver.d.ts +0 -0
- /package/{types/utils → utils}/responsiveObserve.d.ts +0 -0
- /package/{types/utils → utils}/saveAs.d.ts +0 -0
- /package/{types/utils → utils}/screenfull.d.ts +0 -0
- /package/{types/utils → utils}/scrollIntoViewIfNeeded.d.ts +0 -0
- /package/{types/utils → utils}/setCreateRoot.d.ts +0 -0
- /package/{types/utils → utils}/setDarkTheme.d.ts +0 -0
- /package/{types/utils → utils}/setPrimaryColor.d.ts +0 -0
- /package/{types/utils → utils}/setTheme.d.ts +0 -0
- /package/{types/utils → utils}/string.d.ts +0 -0
- /package/{types/utils → utils}/style.d.ts +0 -0
- /package/{types/utils → utils}/throttleByRaf.d.ts +0 -0
- /package/{types/utils → utils}/throttleByRaf2.d.ts +0 -0
- /package/{types/utils → utils}/toArray.d.ts +0 -0
- /package/{types/utils → utils}/tree.d.ts +0 -0
- /package/{types/utils → utils}/tween.d.ts +0 -0
- /package/{types/utils → utils}/uuid.d.ts +0 -0
- /package/{types/utils → utils}/warning.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/Filler.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/VirtualList.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/constant.d.ts +0 -0
- /package/{types/virtual-list → virtual-list}/utils/item.d.ts +0 -0
- /package/{types/watermark → watermark}/interface.d.ts +0 -0
package/qr-code/src/qrcodegen.js
CHANGED
|
@@ -1,943 +1,782 @@
|
|
|
1
|
-
/* 2026-03-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
const s = [];
|
|
784
|
-
for (const e of t) h(e, 8, s);
|
|
785
|
-
return new c(c.Mode.BYTE, t.length, s);
|
|
786
|
-
}
|
|
787
|
-
// Returns a segment representing the given string of decimal digits encoded in numeric mode.
|
|
788
|
-
static makeNumeric(t) {
|
|
789
|
-
if (!c.isNumeric(t))
|
|
790
|
-
throw new RangeError("String contains non-numeric characters");
|
|
791
|
-
const s = [];
|
|
792
|
-
for (let e = 0; e < t.length; ) {
|
|
793
|
-
const i = Math.min(t.length - e, 3);
|
|
794
|
-
h(parseInt(t.substring(e, e + i), 10), i * 3 + 1, s), e += i;
|
|
795
|
-
}
|
|
796
|
-
return new c(c.Mode.NUMERIC, t.length, s);
|
|
797
|
-
}
|
|
798
|
-
// Returns a segment representing the given text string encoded in alphanumeric mode.
|
|
799
|
-
// The characters allowed are: 0 to 9, A to Z (uppercase only), space,
|
|
800
|
-
// dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
801
|
-
static makeAlphanumeric(t) {
|
|
802
|
-
if (!c.isAlphanumeric(t))
|
|
803
|
-
throw new RangeError(
|
|
804
|
-
"String contains unencodable characters in alphanumeric mode"
|
|
805
|
-
);
|
|
806
|
-
const s = [];
|
|
807
|
-
let e;
|
|
808
|
-
for (e = 0; e + 2 <= t.length; e += 2) {
|
|
809
|
-
let i = c.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)) * 45;
|
|
810
|
-
i += c.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e + 1)), h(i, 11, s);
|
|
811
|
-
}
|
|
812
|
-
return e < t.length && h(
|
|
813
|
-
c.ALPHANUMERIC_CHARSET.indexOf(t.charAt(e)),
|
|
814
|
-
6,
|
|
815
|
-
s
|
|
816
|
-
), new c(c.Mode.ALPHANUMERIC, t.length, s);
|
|
817
|
-
}
|
|
818
|
-
// Returns a new mutable list of zero or more segments to represent the given Unicode text string.
|
|
819
|
-
// The result may use various segment modes and switch modes to optimize the length of the bit stream.
|
|
820
|
-
static makeSegments(t) {
|
|
821
|
-
return t == "" ? [] : c.isNumeric(t) ? [c.makeNumeric(t)] : c.isAlphanumeric(t) ? [c.makeAlphanumeric(t)] : [c.makeBytes(c.toUtf8ByteArray(t))];
|
|
822
|
-
}
|
|
823
|
-
// Returns a segment representing an Extended Channel Interpretation
|
|
824
|
-
// (ECI) designator with the given assignment value.
|
|
825
|
-
static makeEci(t) {
|
|
826
|
-
const s = [];
|
|
827
|
-
if (t < 0)
|
|
828
|
-
throw new RangeError("ECI assignment value out of range");
|
|
829
|
-
if (t < 128) h(t, 8, s);
|
|
830
|
-
else if (t < 16384)
|
|
831
|
-
h(2, 2, s), h(t, 14, s);
|
|
832
|
-
else if (t < 1e6)
|
|
833
|
-
h(6, 3, s), h(t, 21, s);
|
|
834
|
-
else throw new RangeError("ECI assignment value out of range");
|
|
835
|
-
return new c(c.Mode.ECI, 0, s);
|
|
836
|
-
}
|
|
837
|
-
// Tests whether the given string can be encoded as a segment in numeric mode.
|
|
838
|
-
// A string is encodable iff each character is in the range 0 to 9.
|
|
839
|
-
static isNumeric(t) {
|
|
840
|
-
return c.NUMERIC_REGEX.test(t);
|
|
841
|
-
}
|
|
842
|
-
// Tests whether the given string can be encoded as a segment in alphanumeric mode.
|
|
843
|
-
// A string is encodable iff each character is in the following set: 0 to 9, A to Z
|
|
844
|
-
// (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
|
|
845
|
-
static isAlphanumeric(t) {
|
|
846
|
-
return c.ALPHANUMERIC_REGEX.test(t);
|
|
847
|
-
}
|
|
848
|
-
/*-- Methods --*/
|
|
849
|
-
// Returns a new copy of the data bits of this segment.
|
|
850
|
-
getData() {
|
|
851
|
-
return this.bitData.slice();
|
|
852
|
-
}
|
|
853
|
-
// (Package-private) Calculates and returns the number of bits needed to encode the given segments at
|
|
854
|
-
// the given version. The result is infinity if a segment has too many characters to fit its length field.
|
|
855
|
-
static getTotalBits(t, s) {
|
|
856
|
-
let e = 0;
|
|
857
|
-
for (const i of t) {
|
|
858
|
-
const o = i.mode.numCharCountBits(s);
|
|
859
|
-
if (i.numChars >= 1 << o) return 1 / 0;
|
|
860
|
-
e += 4 + o + i.bitData.length;
|
|
861
|
-
}
|
|
862
|
-
return e;
|
|
863
|
-
}
|
|
864
|
-
// Returns a new array of bytes representing the given string encoded in UTF-8.
|
|
865
|
-
static toUtf8ByteArray(t) {
|
|
866
|
-
t = encodeURI(t);
|
|
867
|
-
const s = [];
|
|
868
|
-
for (let e = 0; e < t.length; e++)
|
|
869
|
-
t.charAt(e) != "%" ? s.push(t.charCodeAt(e)) : (s.push(parseInt(t.substring(e + 1, e + 3), 16)), e += 2);
|
|
870
|
-
return s;
|
|
871
|
-
}
|
|
872
|
-
static {
|
|
873
|
-
this.NUMERIC_REGEX = /^[0-9]*$/;
|
|
874
|
-
}
|
|
875
|
-
static {
|
|
876
|
-
this.ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+./:-]*$/;
|
|
877
|
-
}
|
|
878
|
-
static {
|
|
879
|
-
this.ALPHANUMERIC_CHARSET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
w.QrSegment = c;
|
|
883
|
-
})(A || (A = {}));
|
|
884
|
-
((w) => {
|
|
885
|
-
((r) => {
|
|
886
|
-
class h {
|
|
887
|
-
// The QR Code can tolerate about 30% erroneous codewords
|
|
888
|
-
/*-- Constructor and fields --*/
|
|
889
|
-
constructor(d, c) {
|
|
890
|
-
this.ordinal = d, this.formatBits = c;
|
|
891
|
-
}
|
|
892
|
-
static {
|
|
893
|
-
this.LOW = new h(0, 1);
|
|
894
|
-
}
|
|
895
|
-
static {
|
|
896
|
-
this.MEDIUM = new h(1, 0);
|
|
897
|
-
}
|
|
898
|
-
static {
|
|
899
|
-
this.QUARTILE = new h(2, 3);
|
|
900
|
-
}
|
|
901
|
-
static {
|
|
902
|
-
this.HIGH = new h(3, 2);
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
r.Ecc = h;
|
|
906
|
-
})(w.QrCode || (w.QrCode = {}));
|
|
907
|
-
})(A || (A = {}));
|
|
908
|
-
((w) => {
|
|
909
|
-
((r) => {
|
|
910
|
-
class h {
|
|
911
|
-
/*-- Constructor and fields --*/
|
|
912
|
-
constructor(d, c) {
|
|
913
|
-
this.modeBits = d, this.numBitsCharCount = c;
|
|
914
|
-
}
|
|
915
|
-
static {
|
|
916
|
-
this.NUMERIC = new h(1, [10, 12, 14]);
|
|
917
|
-
}
|
|
918
|
-
static {
|
|
919
|
-
this.ALPHANUMERIC = new h(2, [9, 11, 13]);
|
|
920
|
-
}
|
|
921
|
-
static {
|
|
922
|
-
this.BYTE = new h(4, [8, 16, 16]);
|
|
923
|
-
}
|
|
924
|
-
static {
|
|
925
|
-
this.KANJI = new h(8, [8, 10, 12]);
|
|
926
|
-
}
|
|
927
|
-
static {
|
|
928
|
-
this.ECI = new h(7, [0, 0, 0]);
|
|
929
|
-
}
|
|
930
|
-
/*-- Method --*/
|
|
931
|
-
// (Package-private) Returns the bit width of the character count field for a segment in
|
|
932
|
-
// this mode in a QR Code at the given version number. The result is in the range [0, 16].
|
|
933
|
-
numCharCountBits(d) {
|
|
934
|
-
return this.numBitsCharCount[Math.floor((d + 7) / 17)];
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
r.Mode = h;
|
|
938
|
-
})(w.QrSegment || (w.QrSegment = {}));
|
|
939
|
-
})(A || (A = {}));
|
|
940
|
-
const p = A;
|
|
941
|
-
export {
|
|
942
|
-
p as default
|
|
943
|
-
};
|
|
1
|
+
/* 潘启宝 2026-03-24 15:26:28 星期二 */
|
|
2
|
+
//#region components/pc/qr-code/src/qrcodegen.ts
|
|
3
|
+
var e;
|
|
4
|
+
(function(t) {
|
|
5
|
+
class n {
|
|
6
|
+
static encodeText(t, r) {
|
|
7
|
+
let i = e.QrSegment.makeSegments(t);
|
|
8
|
+
return n.encodeSegments(i, r);
|
|
9
|
+
}
|
|
10
|
+
static encodeBinary(t, r) {
|
|
11
|
+
let i = e.QrSegment.makeBytes(t);
|
|
12
|
+
return n.encodeSegments([i], r);
|
|
13
|
+
}
|
|
14
|
+
static encodeSegments(e, t, i = 1, s = 40, c = -1, l = !0) {
|
|
15
|
+
if (!(n.MIN_VERSION <= i && i <= s && s <= n.MAX_VERSION) || c < -1 || c > 7) throw RangeError("Invalid value");
|
|
16
|
+
let u, d;
|
|
17
|
+
for (u = i;; u++) {
|
|
18
|
+
let r = n.#m(u, t) * 8, i = o.getTotalBits(e, u);
|
|
19
|
+
if (i <= r) {
|
|
20
|
+
d = i;
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
if (u >= s) throw RangeError("Data too long");
|
|
24
|
+
}
|
|
25
|
+
for (let e of [
|
|
26
|
+
n.Ecc.MEDIUM,
|
|
27
|
+
n.Ecc.QUARTILE,
|
|
28
|
+
n.Ecc.HIGH
|
|
29
|
+
]) l && d <= n.#m(u, e) * 8 && (t = e);
|
|
30
|
+
let f = [];
|
|
31
|
+
for (let t of e) {
|
|
32
|
+
r(t.mode.modeBits, 4, f), r(t.numChars, t.mode.numCharCountBits(u), f);
|
|
33
|
+
for (let e of t.getData()) f.push(e);
|
|
34
|
+
}
|
|
35
|
+
a(f.length == d);
|
|
36
|
+
let p = n.#m(u, t) * 8;
|
|
37
|
+
a(f.length <= p), r(0, Math.min(4, p - f.length), f), r(0, (8 - f.length % 8) % 8, f), a(f.length % 8 == 0);
|
|
38
|
+
for (let e = 236; f.length < p; e ^= 253) r(e, 8, f);
|
|
39
|
+
let m = [];
|
|
40
|
+
for (; m.length * 8 < f.length;) m.push(0);
|
|
41
|
+
return f.forEach((e, t) => m[t >>> 3] |= e << 7 - (t & 7)), new n(u, t, m, c);
|
|
42
|
+
}
|
|
43
|
+
#e = [];
|
|
44
|
+
#t = [];
|
|
45
|
+
constructor(e, t, r, i) {
|
|
46
|
+
if (this.version = e, this.errorCorrectionLevel = t, e < n.MIN_VERSION || e > n.MAX_VERSION) throw RangeError("Version value out of range");
|
|
47
|
+
if (i < -1 || i > 7) throw RangeError("Mask value out of range");
|
|
48
|
+
this.size = e * 4 + 17;
|
|
49
|
+
let o = [];
|
|
50
|
+
for (let e = 0; e < this.size; e++) o.push(!1);
|
|
51
|
+
for (let e = 0; e < this.size; e++) this.#e.push(o.slice()), this.#t.push(o.slice());
|
|
52
|
+
this.#n();
|
|
53
|
+
let s = this.#c(r);
|
|
54
|
+
if (this.#l(s), i == -1) {
|
|
55
|
+
let e = 1e9;
|
|
56
|
+
for (let t = 0; t < 8; t++) {
|
|
57
|
+
this.#u(t), this.#r(t);
|
|
58
|
+
let n = this.#d();
|
|
59
|
+
n < e && (i = t, e = n), this.#u(t);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
a(0 <= i && i <= 7), this.mask = i, this.#u(i), this.#r(i), this.#t = [];
|
|
63
|
+
}
|
|
64
|
+
getModule(e, t) {
|
|
65
|
+
return 0 <= e && e < this.size && 0 <= t && t < this.size && this.#e[t][e];
|
|
66
|
+
}
|
|
67
|
+
getModules() {
|
|
68
|
+
return this.#e;
|
|
69
|
+
}
|
|
70
|
+
#n() {
|
|
71
|
+
for (let e = 0; e < this.size; e++) this.#s(6, e, e % 2 == 0), this.#s(e, 6, e % 2 == 0);
|
|
72
|
+
this.#a(3, 3), this.#a(this.size - 4, 3), this.#a(3, this.size - 4);
|
|
73
|
+
let e = this.#f(), t = e.length;
|
|
74
|
+
for (let n = 0; n < t; n++) for (let r = 0; r < t; r++) n == 0 && r == 0 || n == 0 && r == t - 1 || n == t - 1 && r == 0 || this.#o(e[n], e[r]);
|
|
75
|
+
this.#r(0), this.#i();
|
|
76
|
+
}
|
|
77
|
+
#r(e) {
|
|
78
|
+
let t = this.errorCorrectionLevel.formatBits << 3 | e, n = t;
|
|
79
|
+
for (let e = 0; e < 10; e++) n = n << 1 ^ (n >>> 9) * 1335;
|
|
80
|
+
let r = (t << 10 | n) ^ 21522;
|
|
81
|
+
a(r >>> 15 == 0);
|
|
82
|
+
for (let e = 0; e <= 5; e++) this.#s(8, e, i(r, e));
|
|
83
|
+
this.#s(8, 7, i(r, 6)), this.#s(8, 8, i(r, 7)), this.#s(7, 8, i(r, 8));
|
|
84
|
+
for (let e = 9; e < 15; e++) this.#s(14 - e, 8, i(r, e));
|
|
85
|
+
for (let e = 0; e < 8; e++) this.#s(this.size - 1 - e, 8, i(r, e));
|
|
86
|
+
for (let e = 8; e < 15; e++) this.#s(8, this.size - 15 + e, i(r, e));
|
|
87
|
+
this.#s(8, this.size - 8, !0);
|
|
88
|
+
}
|
|
89
|
+
#i() {
|
|
90
|
+
if (this.version < 7) return;
|
|
91
|
+
let e = this.version;
|
|
92
|
+
for (let t = 0; t < 12; t++) e = e << 1 ^ (e >>> 11) * 7973;
|
|
93
|
+
let t = this.version << 12 | e;
|
|
94
|
+
a(t >>> 18 == 0);
|
|
95
|
+
for (let e = 0; e < 18; e++) {
|
|
96
|
+
let n = i(t, e), r = this.size - 11 + e % 3, a = Math.floor(e / 3);
|
|
97
|
+
this.#s(r, a, n), this.#s(a, r, n);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
#a(e, t) {
|
|
101
|
+
for (let n = -4; n <= 4; n++) for (let r = -4; r <= 4; r++) {
|
|
102
|
+
let i = Math.max(Math.abs(r), Math.abs(n)), a = e + r, o = t + n;
|
|
103
|
+
0 <= a && a < this.size && 0 <= o && o < this.size && this.#s(a, o, i != 2 && i != 4);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
#o(e, t) {
|
|
107
|
+
for (let n = -2; n <= 2; n++) for (let r = -2; r <= 2; r++) this.#s(e + r, t + n, Math.max(Math.abs(r), Math.abs(n)) != 1);
|
|
108
|
+
}
|
|
109
|
+
#s(e, t, n) {
|
|
110
|
+
this.#e[t][e] = n, this.#t[t][e] = !0;
|
|
111
|
+
}
|
|
112
|
+
#c(e) {
|
|
113
|
+
let t = this.version, r = this.errorCorrectionLevel;
|
|
114
|
+
if (e.length != n.#m(t, r)) throw RangeError("Invalid argument");
|
|
115
|
+
let i = n.#E[r.ordinal][t], o = n.#T[r.ordinal][t], s = Math.floor(n.#p(t) / 8), c = i - s % i, l = Math.floor(s / i), u = [], d = n.#h(o);
|
|
116
|
+
for (let t = 0, r = 0; t < i; t++) {
|
|
117
|
+
let i = e.slice(r, r + l - o + (t < c ? 0 : 1));
|
|
118
|
+
r += i.length;
|
|
119
|
+
let a = n.#g(i, d);
|
|
120
|
+
t < c && i.push(0), u.push(i.concat(a));
|
|
121
|
+
}
|
|
122
|
+
let f = [];
|
|
123
|
+
for (let e = 0; e < u[0].length; e++) u.forEach((t, n) => {
|
|
124
|
+
(e != l - o || n >= c) && f.push(t[e]);
|
|
125
|
+
});
|
|
126
|
+
return a(f.length == s), f;
|
|
127
|
+
}
|
|
128
|
+
#l(e) {
|
|
129
|
+
if (e.length != Math.floor(n.#p(this.version) / 8)) throw RangeError("Invalid argument");
|
|
130
|
+
let t = 0;
|
|
131
|
+
for (let n = this.size - 1; n >= 1; n -= 2) {
|
|
132
|
+
n == 6 && (n = 5);
|
|
133
|
+
for (let r = 0; r < this.size; r++) for (let a = 0; a < 2; a++) {
|
|
134
|
+
let o = n - a, s = n + 1 & 2 ? r : this.size - 1 - r;
|
|
135
|
+
!this.#t[s][o] && t < e.length * 8 && (this.#e[s][o] = i(e[t >>> 3], 7 - (t & 7)), t++);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
a(t == e.length * 8);
|
|
139
|
+
}
|
|
140
|
+
#u(e) {
|
|
141
|
+
if (e < 0 || e > 7) throw RangeError("Mask value out of range");
|
|
142
|
+
for (let t = 0; t < this.size; t++) for (let n = 0; n < this.size; n++) {
|
|
143
|
+
let r;
|
|
144
|
+
switch (e) {
|
|
145
|
+
case 0:
|
|
146
|
+
r = (n + t) % 2 == 0;
|
|
147
|
+
break;
|
|
148
|
+
case 1:
|
|
149
|
+
r = t % 2 == 0;
|
|
150
|
+
break;
|
|
151
|
+
case 2:
|
|
152
|
+
r = n % 3 == 0;
|
|
153
|
+
break;
|
|
154
|
+
case 3:
|
|
155
|
+
r = (n + t) % 3 == 0;
|
|
156
|
+
break;
|
|
157
|
+
case 4:
|
|
158
|
+
r = (Math.floor(n / 3) + Math.floor(t / 2)) % 2 == 0;
|
|
159
|
+
break;
|
|
160
|
+
case 5:
|
|
161
|
+
r = n * t % 2 + n * t % 3 == 0;
|
|
162
|
+
break;
|
|
163
|
+
case 6:
|
|
164
|
+
r = (n * t % 2 + n * t % 3) % 2 == 0;
|
|
165
|
+
break;
|
|
166
|
+
case 7:
|
|
167
|
+
r = ((n + t) % 2 + n * t % 3) % 2 == 0;
|
|
168
|
+
break;
|
|
169
|
+
default: throw Error("Unreachable");
|
|
170
|
+
}
|
|
171
|
+
!this.#t[t][n] && r && (this.#e[t][n] = !this.#e[t][n]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
#d() {
|
|
175
|
+
let e = 0;
|
|
176
|
+
for (let t = 0; t < this.size; t++) {
|
|
177
|
+
let r = !1, i = 0, a = [
|
|
178
|
+
0,
|
|
179
|
+
0,
|
|
180
|
+
0,
|
|
181
|
+
0,
|
|
182
|
+
0,
|
|
183
|
+
0,
|
|
184
|
+
0
|
|
185
|
+
];
|
|
186
|
+
for (let o = 0; o < this.size; o++) this.#e[t][o] == r ? (i++, i == 5 ? e += n.#x : i > 5 && e++) : (this.#b(i, a), r || (e += this.#v(a) * n.#C), r = this.#e[t][o], i = 1);
|
|
187
|
+
e += this.#y(r, i, a) * n.#C;
|
|
188
|
+
}
|
|
189
|
+
for (let t = 0; t < this.size; t++) {
|
|
190
|
+
let r = !1, i = 0, a = [
|
|
191
|
+
0,
|
|
192
|
+
0,
|
|
193
|
+
0,
|
|
194
|
+
0,
|
|
195
|
+
0,
|
|
196
|
+
0,
|
|
197
|
+
0
|
|
198
|
+
];
|
|
199
|
+
for (let o = 0; o < this.size; o++) this.#e[o][t] == r ? (i++, i == 5 ? e += n.#x : i > 5 && e++) : (this.#b(i, a), r || (e += this.#v(a) * n.#C), r = this.#e[o][t], i = 1);
|
|
200
|
+
e += this.#y(r, i, a) * n.#C;
|
|
201
|
+
}
|
|
202
|
+
for (let t = 0; t < this.size - 1; t++) for (let r = 0; r < this.size - 1; r++) {
|
|
203
|
+
let i = this.#e[t][r];
|
|
204
|
+
i == this.#e[t][r + 1] && i == this.#e[t + 1][r] && i == this.#e[t + 1][r + 1] && (e += n.#S);
|
|
205
|
+
}
|
|
206
|
+
let t = 0;
|
|
207
|
+
for (let e of this.#e) t = e.reduce((e, t) => e + (t ? 1 : 0), t);
|
|
208
|
+
let r = this.size * this.size, i = Math.ceil(Math.abs(t * 20 - r * 10) / r) - 1;
|
|
209
|
+
return a(0 <= i && i <= 9), e += i * n.#w, a(0 <= e && e <= 2568888), e;
|
|
210
|
+
}
|
|
211
|
+
#f() {
|
|
212
|
+
if (this.version == 1) return [];
|
|
213
|
+
{
|
|
214
|
+
let e = Math.floor(this.version / 7) + 2, t = Math.floor((this.version * 8 + e * 3 + 5) / (e * 4 - 4)) * 2, n = [6];
|
|
215
|
+
for (let r = this.size - 7; n.length < e; r -= t) n.splice(1, 0, r);
|
|
216
|
+
return n;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
static #p(e) {
|
|
220
|
+
if (e < n.MIN_VERSION || e > n.MAX_VERSION) throw RangeError("Version number out of range");
|
|
221
|
+
let t = (16 * e + 128) * e + 64;
|
|
222
|
+
if (e >= 2) {
|
|
223
|
+
let n = Math.floor(e / 7) + 2;
|
|
224
|
+
t -= (25 * n - 10) * n - 55, e >= 7 && (t -= 36);
|
|
225
|
+
}
|
|
226
|
+
return a(208 <= t && t <= 29648), t;
|
|
227
|
+
}
|
|
228
|
+
static #m(e, t) {
|
|
229
|
+
return Math.floor(n.#p(e) / 8) - n.#T[t.ordinal][e] * n.#E[t.ordinal][e];
|
|
230
|
+
}
|
|
231
|
+
static #h(e) {
|
|
232
|
+
if (e < 1 || e > 255) throw RangeError("Degree out of range");
|
|
233
|
+
let t = [];
|
|
234
|
+
for (let n = 0; n < e - 1; n++) t.push(0);
|
|
235
|
+
t.push(1);
|
|
236
|
+
let r = 1;
|
|
237
|
+
for (let i = 0; i < e; i++) {
|
|
238
|
+
for (let e = 0; e < t.length; e++) t[e] = n.#_(t[e], r), e + 1 < t.length && (t[e] ^= t[e + 1]);
|
|
239
|
+
r = n.#_(r, 2);
|
|
240
|
+
}
|
|
241
|
+
return t;
|
|
242
|
+
}
|
|
243
|
+
static #g(e, t) {
|
|
244
|
+
let r = t.map((e) => 0);
|
|
245
|
+
for (let i of e) {
|
|
246
|
+
let e = i ^ r.shift();
|
|
247
|
+
r.push(0), t.forEach((t, i) => r[i] ^= n.#_(t, e));
|
|
248
|
+
}
|
|
249
|
+
return r;
|
|
250
|
+
}
|
|
251
|
+
static #_(e, t) {
|
|
252
|
+
if (e >>> 8 || t >>> 8) throw RangeError("Byte out of range");
|
|
253
|
+
let n = 0;
|
|
254
|
+
for (let r = 7; r >= 0; r--) n = n << 1 ^ (n >>> 7) * 285, n ^= (t >>> r & 1) * e;
|
|
255
|
+
return a(n >>> 8 == 0), n;
|
|
256
|
+
}
|
|
257
|
+
#v(e) {
|
|
258
|
+
let t = e[1];
|
|
259
|
+
a(t <= this.size * 3);
|
|
260
|
+
let n = t > 0 && e[2] == t && e[3] == t * 3 && e[4] == t && e[5] == t;
|
|
261
|
+
return (n && e[0] >= t * 4 && e[6] >= t ? 1 : 0) + (n && e[6] >= t * 4 && e[0] >= t ? 1 : 0);
|
|
262
|
+
}
|
|
263
|
+
#y(e, t, n) {
|
|
264
|
+
return e && (this.#b(t, n), t = 0), t += this.size, this.#b(t, n), this.#v(n);
|
|
265
|
+
}
|
|
266
|
+
#b(e, t) {
|
|
267
|
+
t[0] == 0 && (e += this.size), t.pop(), t.unshift(e);
|
|
268
|
+
}
|
|
269
|
+
static {
|
|
270
|
+
this.MIN_VERSION = 1;
|
|
271
|
+
}
|
|
272
|
+
static {
|
|
273
|
+
this.MAX_VERSION = 40;
|
|
274
|
+
}
|
|
275
|
+
static #x = 3;
|
|
276
|
+
static #S = 3;
|
|
277
|
+
static #C = 40;
|
|
278
|
+
static #w = 10;
|
|
279
|
+
static #T = [
|
|
280
|
+
[
|
|
281
|
+
-1,
|
|
282
|
+
7,
|
|
283
|
+
10,
|
|
284
|
+
15,
|
|
285
|
+
20,
|
|
286
|
+
26,
|
|
287
|
+
18,
|
|
288
|
+
20,
|
|
289
|
+
24,
|
|
290
|
+
30,
|
|
291
|
+
18,
|
|
292
|
+
20,
|
|
293
|
+
24,
|
|
294
|
+
26,
|
|
295
|
+
30,
|
|
296
|
+
22,
|
|
297
|
+
24,
|
|
298
|
+
28,
|
|
299
|
+
30,
|
|
300
|
+
28,
|
|
301
|
+
28,
|
|
302
|
+
28,
|
|
303
|
+
28,
|
|
304
|
+
30,
|
|
305
|
+
30,
|
|
306
|
+
26,
|
|
307
|
+
28,
|
|
308
|
+
30,
|
|
309
|
+
30,
|
|
310
|
+
30,
|
|
311
|
+
30,
|
|
312
|
+
30,
|
|
313
|
+
30,
|
|
314
|
+
30,
|
|
315
|
+
30,
|
|
316
|
+
30,
|
|
317
|
+
30,
|
|
318
|
+
30,
|
|
319
|
+
30,
|
|
320
|
+
30,
|
|
321
|
+
30
|
|
322
|
+
],
|
|
323
|
+
[
|
|
324
|
+
-1,
|
|
325
|
+
10,
|
|
326
|
+
16,
|
|
327
|
+
26,
|
|
328
|
+
18,
|
|
329
|
+
24,
|
|
330
|
+
16,
|
|
331
|
+
18,
|
|
332
|
+
22,
|
|
333
|
+
22,
|
|
334
|
+
26,
|
|
335
|
+
30,
|
|
336
|
+
22,
|
|
337
|
+
22,
|
|
338
|
+
24,
|
|
339
|
+
24,
|
|
340
|
+
28,
|
|
341
|
+
28,
|
|
342
|
+
26,
|
|
343
|
+
26,
|
|
344
|
+
26,
|
|
345
|
+
26,
|
|
346
|
+
28,
|
|
347
|
+
28,
|
|
348
|
+
28,
|
|
349
|
+
28,
|
|
350
|
+
28,
|
|
351
|
+
28,
|
|
352
|
+
28,
|
|
353
|
+
28,
|
|
354
|
+
28,
|
|
355
|
+
28,
|
|
356
|
+
28,
|
|
357
|
+
28,
|
|
358
|
+
28,
|
|
359
|
+
28,
|
|
360
|
+
28,
|
|
361
|
+
28,
|
|
362
|
+
28,
|
|
363
|
+
28,
|
|
364
|
+
28
|
|
365
|
+
],
|
|
366
|
+
[
|
|
367
|
+
-1,
|
|
368
|
+
13,
|
|
369
|
+
22,
|
|
370
|
+
18,
|
|
371
|
+
26,
|
|
372
|
+
18,
|
|
373
|
+
24,
|
|
374
|
+
18,
|
|
375
|
+
22,
|
|
376
|
+
20,
|
|
377
|
+
24,
|
|
378
|
+
28,
|
|
379
|
+
26,
|
|
380
|
+
24,
|
|
381
|
+
20,
|
|
382
|
+
30,
|
|
383
|
+
24,
|
|
384
|
+
28,
|
|
385
|
+
28,
|
|
386
|
+
26,
|
|
387
|
+
30,
|
|
388
|
+
28,
|
|
389
|
+
30,
|
|
390
|
+
30,
|
|
391
|
+
30,
|
|
392
|
+
30,
|
|
393
|
+
28,
|
|
394
|
+
30,
|
|
395
|
+
30,
|
|
396
|
+
30,
|
|
397
|
+
30,
|
|
398
|
+
30,
|
|
399
|
+
30,
|
|
400
|
+
30,
|
|
401
|
+
30,
|
|
402
|
+
30,
|
|
403
|
+
30,
|
|
404
|
+
30,
|
|
405
|
+
30,
|
|
406
|
+
30,
|
|
407
|
+
30
|
|
408
|
+
],
|
|
409
|
+
[
|
|
410
|
+
-1,
|
|
411
|
+
17,
|
|
412
|
+
28,
|
|
413
|
+
22,
|
|
414
|
+
16,
|
|
415
|
+
22,
|
|
416
|
+
28,
|
|
417
|
+
26,
|
|
418
|
+
26,
|
|
419
|
+
24,
|
|
420
|
+
28,
|
|
421
|
+
24,
|
|
422
|
+
28,
|
|
423
|
+
22,
|
|
424
|
+
24,
|
|
425
|
+
24,
|
|
426
|
+
30,
|
|
427
|
+
28,
|
|
428
|
+
28,
|
|
429
|
+
26,
|
|
430
|
+
28,
|
|
431
|
+
30,
|
|
432
|
+
24,
|
|
433
|
+
30,
|
|
434
|
+
30,
|
|
435
|
+
30,
|
|
436
|
+
30,
|
|
437
|
+
30,
|
|
438
|
+
30,
|
|
439
|
+
30,
|
|
440
|
+
30,
|
|
441
|
+
30,
|
|
442
|
+
30,
|
|
443
|
+
30,
|
|
444
|
+
30,
|
|
445
|
+
30,
|
|
446
|
+
30,
|
|
447
|
+
30,
|
|
448
|
+
30,
|
|
449
|
+
30,
|
|
450
|
+
30
|
|
451
|
+
]
|
|
452
|
+
];
|
|
453
|
+
static #E = [
|
|
454
|
+
[
|
|
455
|
+
-1,
|
|
456
|
+
1,
|
|
457
|
+
1,
|
|
458
|
+
1,
|
|
459
|
+
1,
|
|
460
|
+
1,
|
|
461
|
+
2,
|
|
462
|
+
2,
|
|
463
|
+
2,
|
|
464
|
+
2,
|
|
465
|
+
4,
|
|
466
|
+
4,
|
|
467
|
+
4,
|
|
468
|
+
4,
|
|
469
|
+
4,
|
|
470
|
+
6,
|
|
471
|
+
6,
|
|
472
|
+
6,
|
|
473
|
+
6,
|
|
474
|
+
7,
|
|
475
|
+
8,
|
|
476
|
+
8,
|
|
477
|
+
9,
|
|
478
|
+
9,
|
|
479
|
+
10,
|
|
480
|
+
12,
|
|
481
|
+
12,
|
|
482
|
+
12,
|
|
483
|
+
13,
|
|
484
|
+
14,
|
|
485
|
+
15,
|
|
486
|
+
16,
|
|
487
|
+
17,
|
|
488
|
+
18,
|
|
489
|
+
19,
|
|
490
|
+
19,
|
|
491
|
+
20,
|
|
492
|
+
21,
|
|
493
|
+
22,
|
|
494
|
+
24,
|
|
495
|
+
25
|
|
496
|
+
],
|
|
497
|
+
[
|
|
498
|
+
-1,
|
|
499
|
+
1,
|
|
500
|
+
1,
|
|
501
|
+
1,
|
|
502
|
+
2,
|
|
503
|
+
2,
|
|
504
|
+
4,
|
|
505
|
+
4,
|
|
506
|
+
4,
|
|
507
|
+
5,
|
|
508
|
+
5,
|
|
509
|
+
5,
|
|
510
|
+
8,
|
|
511
|
+
9,
|
|
512
|
+
9,
|
|
513
|
+
10,
|
|
514
|
+
10,
|
|
515
|
+
11,
|
|
516
|
+
13,
|
|
517
|
+
14,
|
|
518
|
+
16,
|
|
519
|
+
17,
|
|
520
|
+
17,
|
|
521
|
+
18,
|
|
522
|
+
20,
|
|
523
|
+
21,
|
|
524
|
+
23,
|
|
525
|
+
25,
|
|
526
|
+
26,
|
|
527
|
+
28,
|
|
528
|
+
29,
|
|
529
|
+
31,
|
|
530
|
+
33,
|
|
531
|
+
35,
|
|
532
|
+
37,
|
|
533
|
+
38,
|
|
534
|
+
40,
|
|
535
|
+
43,
|
|
536
|
+
45,
|
|
537
|
+
47,
|
|
538
|
+
49
|
|
539
|
+
],
|
|
540
|
+
[
|
|
541
|
+
-1,
|
|
542
|
+
1,
|
|
543
|
+
1,
|
|
544
|
+
2,
|
|
545
|
+
2,
|
|
546
|
+
4,
|
|
547
|
+
4,
|
|
548
|
+
6,
|
|
549
|
+
6,
|
|
550
|
+
8,
|
|
551
|
+
8,
|
|
552
|
+
8,
|
|
553
|
+
10,
|
|
554
|
+
12,
|
|
555
|
+
16,
|
|
556
|
+
12,
|
|
557
|
+
17,
|
|
558
|
+
16,
|
|
559
|
+
18,
|
|
560
|
+
21,
|
|
561
|
+
20,
|
|
562
|
+
23,
|
|
563
|
+
23,
|
|
564
|
+
25,
|
|
565
|
+
27,
|
|
566
|
+
29,
|
|
567
|
+
34,
|
|
568
|
+
34,
|
|
569
|
+
35,
|
|
570
|
+
38,
|
|
571
|
+
40,
|
|
572
|
+
43,
|
|
573
|
+
45,
|
|
574
|
+
48,
|
|
575
|
+
51,
|
|
576
|
+
53,
|
|
577
|
+
56,
|
|
578
|
+
59,
|
|
579
|
+
62,
|
|
580
|
+
65,
|
|
581
|
+
68
|
|
582
|
+
],
|
|
583
|
+
[
|
|
584
|
+
-1,
|
|
585
|
+
1,
|
|
586
|
+
1,
|
|
587
|
+
2,
|
|
588
|
+
4,
|
|
589
|
+
4,
|
|
590
|
+
4,
|
|
591
|
+
5,
|
|
592
|
+
6,
|
|
593
|
+
8,
|
|
594
|
+
8,
|
|
595
|
+
11,
|
|
596
|
+
11,
|
|
597
|
+
16,
|
|
598
|
+
16,
|
|
599
|
+
18,
|
|
600
|
+
16,
|
|
601
|
+
19,
|
|
602
|
+
21,
|
|
603
|
+
25,
|
|
604
|
+
25,
|
|
605
|
+
25,
|
|
606
|
+
34,
|
|
607
|
+
30,
|
|
608
|
+
32,
|
|
609
|
+
35,
|
|
610
|
+
37,
|
|
611
|
+
40,
|
|
612
|
+
42,
|
|
613
|
+
45,
|
|
614
|
+
48,
|
|
615
|
+
51,
|
|
616
|
+
54,
|
|
617
|
+
57,
|
|
618
|
+
60,
|
|
619
|
+
63,
|
|
620
|
+
66,
|
|
621
|
+
70,
|
|
622
|
+
74,
|
|
623
|
+
77,
|
|
624
|
+
81
|
|
625
|
+
]
|
|
626
|
+
];
|
|
627
|
+
}
|
|
628
|
+
t.QrCode = n;
|
|
629
|
+
function r(e, t, n) {
|
|
630
|
+
if (t < 0 || t > 31 || e >>> t) throw RangeError("Value out of range");
|
|
631
|
+
for (let r = t - 1; r >= 0; r--) n.push(e >>> r & 1);
|
|
632
|
+
}
|
|
633
|
+
function i(e, t) {
|
|
634
|
+
return (e >>> t & 1) != 0;
|
|
635
|
+
}
|
|
636
|
+
function a(e) {
|
|
637
|
+
if (!e) throw Error("Assertion error");
|
|
638
|
+
}
|
|
639
|
+
class o {
|
|
640
|
+
static makeBytes(e) {
|
|
641
|
+
let t = [];
|
|
642
|
+
for (let n of e) r(n, 8, t);
|
|
643
|
+
return new o(o.Mode.BYTE, e.length, t);
|
|
644
|
+
}
|
|
645
|
+
static makeNumeric(e) {
|
|
646
|
+
if (!o.isNumeric(e)) throw RangeError("String contains non-numeric characters");
|
|
647
|
+
let t = [];
|
|
648
|
+
for (let n = 0; n < e.length;) {
|
|
649
|
+
let i = Math.min(e.length - n, 3);
|
|
650
|
+
r(parseInt(e.substring(n, n + i), 10), i * 3 + 1, t), n += i;
|
|
651
|
+
}
|
|
652
|
+
return new o(o.Mode.NUMERIC, e.length, t);
|
|
653
|
+
}
|
|
654
|
+
static makeAlphanumeric(e) {
|
|
655
|
+
if (!o.isAlphanumeric(e)) throw RangeError("String contains unencodable characters in alphanumeric mode");
|
|
656
|
+
let t = [], n;
|
|
657
|
+
for (n = 0; n + 2 <= e.length; n += 2) {
|
|
658
|
+
let i = o.#r.indexOf(e.charAt(n)) * 45;
|
|
659
|
+
i += o.#r.indexOf(e.charAt(n + 1)), r(i, 11, t);
|
|
660
|
+
}
|
|
661
|
+
return n < e.length && r(o.#r.indexOf(e.charAt(n)), 6, t), new o(o.Mode.ALPHANUMERIC, e.length, t);
|
|
662
|
+
}
|
|
663
|
+
static makeSegments(e) {
|
|
664
|
+
return e == "" ? [] : o.isNumeric(e) ? [o.makeNumeric(e)] : o.isAlphanumeric(e) ? [o.makeAlphanumeric(e)] : [o.makeBytes(o.#e(e))];
|
|
665
|
+
}
|
|
666
|
+
static makeEci(e) {
|
|
667
|
+
let t = [];
|
|
668
|
+
if (e < 0) throw RangeError("ECI assignment value out of range");
|
|
669
|
+
if (e < 128) r(e, 8, t);
|
|
670
|
+
else if (e < 16384) r(2, 2, t), r(e, 14, t);
|
|
671
|
+
else if (e < 1e6) r(6, 3, t), r(e, 21, t);
|
|
672
|
+
else throw RangeError("ECI assignment value out of range");
|
|
673
|
+
return new o(o.Mode.ECI, 0, t);
|
|
674
|
+
}
|
|
675
|
+
static isNumeric(e) {
|
|
676
|
+
return o.#t.test(e);
|
|
677
|
+
}
|
|
678
|
+
static isAlphanumeric(e) {
|
|
679
|
+
return o.#n.test(e);
|
|
680
|
+
}
|
|
681
|
+
constructor(e, t, n) {
|
|
682
|
+
if (this.mode = e, this.numChars = t, this.bitData = n, t < 0) throw RangeError("Invalid argument");
|
|
683
|
+
this.bitData = n.slice();
|
|
684
|
+
}
|
|
685
|
+
getData() {
|
|
686
|
+
return this.bitData.slice();
|
|
687
|
+
}
|
|
688
|
+
static getTotalBits(e, t) {
|
|
689
|
+
let n = 0;
|
|
690
|
+
for (let r of e) {
|
|
691
|
+
let e = r.mode.numCharCountBits(t);
|
|
692
|
+
if (r.numChars >= 1 << e) return Infinity;
|
|
693
|
+
n += 4 + e + r.bitData.length;
|
|
694
|
+
}
|
|
695
|
+
return n;
|
|
696
|
+
}
|
|
697
|
+
static #e(e) {
|
|
698
|
+
e = encodeURI(e);
|
|
699
|
+
let t = [];
|
|
700
|
+
for (let n = 0; n < e.length; n++) e.charAt(n) == "%" ? (t.push(parseInt(e.substring(n + 1, n + 3), 16)), n += 2) : t.push(e.charCodeAt(n));
|
|
701
|
+
return t;
|
|
702
|
+
}
|
|
703
|
+
static #t = /^[0-9]*$/;
|
|
704
|
+
static #n = /^[A-Z0-9 $%*+./:-]*$/;
|
|
705
|
+
static #r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";
|
|
706
|
+
}
|
|
707
|
+
t.QrSegment = o;
|
|
708
|
+
})(e ||= {}), (function(e) {
|
|
709
|
+
let t;
|
|
710
|
+
(function(e) {
|
|
711
|
+
class t {
|
|
712
|
+
static {
|
|
713
|
+
this.LOW = new t(0, 1);
|
|
714
|
+
}
|
|
715
|
+
static {
|
|
716
|
+
this.MEDIUM = new t(1, 0);
|
|
717
|
+
}
|
|
718
|
+
static {
|
|
719
|
+
this.QUARTILE = new t(2, 3);
|
|
720
|
+
}
|
|
721
|
+
static {
|
|
722
|
+
this.HIGH = new t(3, 2);
|
|
723
|
+
}
|
|
724
|
+
constructor(e, t) {
|
|
725
|
+
this.ordinal = e, this.formatBits = t;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
e.Ecc = t;
|
|
729
|
+
})(t ||= e.QrCode ||= {});
|
|
730
|
+
})(e ||= {}), (function(e) {
|
|
731
|
+
let t;
|
|
732
|
+
(function(e) {
|
|
733
|
+
class t {
|
|
734
|
+
static {
|
|
735
|
+
this.NUMERIC = new t(1, [
|
|
736
|
+
10,
|
|
737
|
+
12,
|
|
738
|
+
14
|
|
739
|
+
]);
|
|
740
|
+
}
|
|
741
|
+
static {
|
|
742
|
+
this.ALPHANUMERIC = new t(2, [
|
|
743
|
+
9,
|
|
744
|
+
11,
|
|
745
|
+
13
|
|
746
|
+
]);
|
|
747
|
+
}
|
|
748
|
+
static {
|
|
749
|
+
this.BYTE = new t(4, [
|
|
750
|
+
8,
|
|
751
|
+
16,
|
|
752
|
+
16
|
|
753
|
+
]);
|
|
754
|
+
}
|
|
755
|
+
static {
|
|
756
|
+
this.KANJI = new t(8, [
|
|
757
|
+
8,
|
|
758
|
+
10,
|
|
759
|
+
12
|
|
760
|
+
]);
|
|
761
|
+
}
|
|
762
|
+
static {
|
|
763
|
+
this.ECI = new t(7, [
|
|
764
|
+
0,
|
|
765
|
+
0,
|
|
766
|
+
0
|
|
767
|
+
]);
|
|
768
|
+
}
|
|
769
|
+
constructor(e, t) {
|
|
770
|
+
this.modeBits = e, this.numBitsCharCount = t;
|
|
771
|
+
}
|
|
772
|
+
numCharCountBits(e) {
|
|
773
|
+
return this.numBitsCharCount[Math.floor((e + 7) / 17)];
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
e.Mode = t;
|
|
777
|
+
})(t ||= e.QrSegment ||= {});
|
|
778
|
+
})(e ||= {});
|
|
779
|
+
var t = e;
|
|
780
|
+
//#endregion
|
|
781
|
+
export { t as default };
|
|
782
|
+
/* 独立思考,明辨是非 */
|