@unicom-cloud/ui 0.8.113 → 0.8.115
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/Affix.js +2 -2
- package/Alert.js +2 -2
- package/AutoComplete.js +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +4 -4
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +4 -4
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +4 -4
- package/Form.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/LiquidFill.js +4 -4
- package/List.js +6 -5
- package/Loading.js +4 -4
- package/Marquee.js +7 -6
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +4 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +7 -7
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/Segmented.js +4 -4
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +4 -4
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +4 -4
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +3 -3
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{yWKJUe_w.js → CKojyqln.js} +4 -4
- package/chunk/{DrYaod6k.js → CRgtPpMG.js} +1 -1
- package/chunk/{3t4FwEoB.js → CVjWKHBo.js} +1 -1
- package/chunk/{DB0hUIM1.js → CYPFoLks.js} +4 -4
- package/chunk/{D0dVE1v1.js → CcH9qbbg.js} +418 -416
- package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
- package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
- package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
- package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
- package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/countdown/index.js +4 -4
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +4 -4
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +4 -4
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +3 -3
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +6 -6
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +739 -726
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +29 -20
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +4 -4
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -1
- package/loading/index.js +4 -4
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +7 -6
- package/marquee-/index.js +7 -6
- package/mentions/index.js +1 -1
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +4 -4
- package/notification/index.js +2 -2
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +103 -31
- package/pagination/Pagination.js +38 -35
- package/pagination/index.js +2 -0
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +1233 -45
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +21 -21
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +5 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +1 -1
- package/tour/index.js +4 -4
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +1 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -0
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/pagination/PageOption.d.ts +3 -0
- package/types/pc/pagination/index.d.ts +2 -0
- package/types/pc/pagination/interface.d.ts +5 -0
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +247 -235
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/CXrVhA6-.js +0 -54
- package/chunk/De8RLlOK.js +0 -231
- package/chunk/d1c9z8T1.js +0 -49
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
export type Bit = number;
|
|
2
|
+
export type Byte = number;
|
|
3
|
+
export type Int = number;
|
|
4
|
+
/**
|
|
5
|
+
* QR Code 错误纠正级别。
|
|
6
|
+
* 枚举值表示容忍错误的能力,从低到高。
|
|
7
|
+
*/
|
|
8
|
+
export declare enum ErrorCorrectionLevel {
|
|
9
|
+
/** 低纠错级别:约可恢复 7% 的数据错误 */
|
|
10
|
+
LOW = 0,
|
|
11
|
+
/** 中纠错级别:约可恢复 15% 的数据错误 */
|
|
12
|
+
MEDIUM = 1,
|
|
13
|
+
/** 四分位纠错级别:约可恢复 25% 的数据错误 */
|
|
14
|
+
QUARTILE = 2,
|
|
15
|
+
/** 高纠错级别:约可恢复 30% 的数据错误 */
|
|
16
|
+
HIGH = 3
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* QR Code 数据编码模式。
|
|
20
|
+
* 枚举值表示不同的数据编码方式。
|
|
21
|
+
*/
|
|
22
|
+
export declare enum Mode {
|
|
23
|
+
/** 数字模式:仅编码数字 0-9 */
|
|
24
|
+
NUMERIC = 1,
|
|
25
|
+
/** 字母数字模式:编码数字、大写字母和一些符号 */
|
|
26
|
+
ALPHANUMERIC = 2,
|
|
27
|
+
/** 字节模式:编码任意字节数据 */
|
|
28
|
+
BYTE = 4,
|
|
29
|
+
/** 日文汉字模式:编码日文汉字字符 */
|
|
30
|
+
KANJI = 8,
|
|
31
|
+
/** ECI 模式:扩展信道解释 */
|
|
32
|
+
ECI = 7
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* QR Code 数据段接口。
|
|
36
|
+
* 表示 QR Code 中的一段数据,包含模式、字符数和数据位。
|
|
37
|
+
*/
|
|
38
|
+
export interface QRSegment {
|
|
39
|
+
/** 数据编码模式 */
|
|
40
|
+
mode: Mode;
|
|
41
|
+
/** 字符数量 */
|
|
42
|
+
numChars: Int;
|
|
43
|
+
/** 获取数据位数组 */
|
|
44
|
+
getData(): Bit[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* QR Code 数据段实现类。
|
|
48
|
+
* 表示 QR Code 中的一段数据,包含模式、字符数和数据位。
|
|
49
|
+
*/
|
|
50
|
+
export declare class QRSegmentImpl implements QRSegment {
|
|
51
|
+
readonly mode: Mode;
|
|
52
|
+
readonly numChars: Int;
|
|
53
|
+
private readonly bitData;
|
|
54
|
+
/**
|
|
55
|
+
* 创建 QR 段实例
|
|
56
|
+
* @param mode 数据编码模式
|
|
57
|
+
* @param numChars 字符数量
|
|
58
|
+
* @param bitData 数据位数组
|
|
59
|
+
*/
|
|
60
|
+
constructor(mode: Mode, numChars: Int, bitData: Bit[]);
|
|
61
|
+
/**
|
|
62
|
+
* 获取数据位的副本
|
|
63
|
+
* @returns 数据位数组
|
|
64
|
+
*/
|
|
65
|
+
getData(): Bit[];
|
|
66
|
+
/**
|
|
67
|
+
* 创建字节模式的数据段
|
|
68
|
+
* @param data 字节数组
|
|
69
|
+
* @returns 字节模式的 QR 段
|
|
70
|
+
*/
|
|
71
|
+
static makeBytes(data: Byte[]): QRSegmentImpl;
|
|
72
|
+
/**
|
|
73
|
+
* 创建数字模式的数据段
|
|
74
|
+
* @param digits 数字字符串
|
|
75
|
+
* @returns 数字模式的 QR 段
|
|
76
|
+
*/
|
|
77
|
+
static makeNumeric(digits: string): QRSegmentImpl;
|
|
78
|
+
/**
|
|
79
|
+
* 创建字母数字模式的数据段
|
|
80
|
+
* @param text 字母数字字符串
|
|
81
|
+
* @returns 字母数字模式的 QR 段
|
|
82
|
+
*/
|
|
83
|
+
static makeAlphanumeric(text: string): QRSegmentImpl;
|
|
84
|
+
/**
|
|
85
|
+
* 为给定文本创建最优的数据段列表
|
|
86
|
+
* @param text 要编码的文本
|
|
87
|
+
* @returns QR 段数组
|
|
88
|
+
*/
|
|
89
|
+
static makeSegments(text: string): QRSegmentImpl[];
|
|
90
|
+
/**
|
|
91
|
+
* 创建 ECI(扩展信道解释)数据段
|
|
92
|
+
* @param assignVal ECI 分配值
|
|
93
|
+
* @returns ECI 模式的 QR 段
|
|
94
|
+
*/
|
|
95
|
+
static makeEci(assignVal: Int): QRSegmentImpl;
|
|
96
|
+
/**
|
|
97
|
+
* 检查字符串是否可编码为数字模式
|
|
98
|
+
* @param text 要检查的字符串
|
|
99
|
+
* @returns 如果字符串仅包含数字则返回 true
|
|
100
|
+
*/
|
|
101
|
+
static isNumeric(text: string): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* 检查字符串是否可编码为字母数字模式
|
|
104
|
+
* @param text 要检查的字符串
|
|
105
|
+
* @returns 如果字符串仅包含字母数字字符则返回 true
|
|
106
|
+
*/
|
|
107
|
+
static isAlphanumeric(text: string): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* 计算给定版本下所有段所需的总位数
|
|
110
|
+
* @param segs 段数组
|
|
111
|
+
* @param version QR 码版本
|
|
112
|
+
* @returns 所需的总位数
|
|
113
|
+
*/
|
|
114
|
+
static getTotalBits(segs: QRSegment[], version: Int): number;
|
|
115
|
+
/**
|
|
116
|
+
* 将字符串转换为 UTF-8 字节数组
|
|
117
|
+
* @param str 要转换的字符串
|
|
118
|
+
* @returns UTF-8 字节数组
|
|
119
|
+
*/
|
|
120
|
+
private static toUtf8ByteArray;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* QR Code 符号接口。
|
|
124
|
+
* 表示一个 QR Code 符号,包含版本、错误纠正级别、大小和模块数据。
|
|
125
|
+
*/
|
|
126
|
+
export interface QRCode {
|
|
127
|
+
/** 版本号 (1-40) */
|
|
128
|
+
version: Int;
|
|
129
|
+
/** 错误纠正级别 */
|
|
130
|
+
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
131
|
+
/** QR Code 大小(模块数) */
|
|
132
|
+
size: Int;
|
|
133
|
+
/** 使用的掩模模式 (0-7) */
|
|
134
|
+
mask: Int;
|
|
135
|
+
/** 获取指定位置的模块颜色 */
|
|
136
|
+
getModule(x: Int, y: Int): boolean;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* QR Code 符号实现类。
|
|
140
|
+
* 表示一个二维条码符号,包含暗色和浅色单元的不可变方形网格。
|
|
141
|
+
*/
|
|
142
|
+
export declare class QRCodeImpl implements QRCode {
|
|
143
|
+
readonly version: Int;
|
|
144
|
+
readonly errorCorrectionLevel: ErrorCorrectionLevel;
|
|
145
|
+
/** QR Code 大小(模块数) */
|
|
146
|
+
readonly size: Int;
|
|
147
|
+
/** 使用的掩模模式 (0-7) */
|
|
148
|
+
mask: Int;
|
|
149
|
+
/** 模块数据(false = 浅色,true = 暗色) */
|
|
150
|
+
private modules;
|
|
151
|
+
/** 指示功能模块(不受掩模影响) */
|
|
152
|
+
private isFunction;
|
|
153
|
+
/** 支持的最小版本号 */
|
|
154
|
+
static readonly MIN_VERSION: Int;
|
|
155
|
+
/** 支持的最大版本号 */
|
|
156
|
+
static readonly MAX_VERSION: Int;
|
|
157
|
+
/** 惩罚分数系数 N1 */
|
|
158
|
+
static readonly PENALTY_N1: Int;
|
|
159
|
+
/** 惩罚分数系数 N2 */
|
|
160
|
+
static readonly PENALTY_N2: Int;
|
|
161
|
+
/** 惩罚分数系数 N3 */
|
|
162
|
+
static readonly PENALTY_N3: Int;
|
|
163
|
+
/** 惩罚分数系数 N4 */
|
|
164
|
+
static readonly PENALTY_N4: Int;
|
|
165
|
+
static readonly ECC_CODEWORDS_PER_BLOCK: Int[][];
|
|
166
|
+
static readonly NUM_ERROR_CORRECTION_BLOCKS: Int[][];
|
|
167
|
+
/**
|
|
168
|
+
* 创建 QR Code 实例(低级 API)
|
|
169
|
+
* @param version 版本号 (1-40)
|
|
170
|
+
* @param errorCorrectionLevel 错误纠正级别
|
|
171
|
+
* @param dataCodewords 数据码字字节数组
|
|
172
|
+
* @param msk 掩模模式 (-1 表示自动选择,0-7 表示指定掩模)
|
|
173
|
+
*/
|
|
174
|
+
constructor(version: Int, errorCorrectionLevel: ErrorCorrectionLevel, dataCodewords: Byte[], msk: Int);
|
|
175
|
+
/**
|
|
176
|
+
* 从文本创建 QR Code(高级 API)
|
|
177
|
+
* @param text 要编码的文本
|
|
178
|
+
* @param ecl 错误纠正级别
|
|
179
|
+
* @returns QR Code 实例
|
|
180
|
+
*/
|
|
181
|
+
static encodeText(text: string, ecl: ErrorCorrectionLevel): QRCodeImpl;
|
|
182
|
+
/**
|
|
183
|
+
* 从二进制数据创建 QR Code(高级 API)
|
|
184
|
+
* @param data 要编码的字节数组
|
|
185
|
+
* @param ecl 错误纠正级别
|
|
186
|
+
* @returns QR Code 实例
|
|
187
|
+
*/
|
|
188
|
+
static encodeBinary(data: Byte[], ecl: ErrorCorrectionLevel): QRCodeImpl;
|
|
189
|
+
/**
|
|
190
|
+
* 从数据段创建 QR Code(中级 API)
|
|
191
|
+
* @param segs 数据段数组
|
|
192
|
+
* @param ecl 错误纠正级别
|
|
193
|
+
* @param minVersion 最小版本号(默认 1)
|
|
194
|
+
* @param maxVersion 最大版本号(默认 40)
|
|
195
|
+
* @param mask 掩模模式(默认 -1 表示自动选择)
|
|
196
|
+
* @param boostEcl 是否提升错误纠正级别(默认 true)
|
|
197
|
+
* @returns QR Code 实例
|
|
198
|
+
*/
|
|
199
|
+
static encodeSegments(segs: QRSegment[], ecl: ErrorCorrectionLevel, minVersion?: Int, maxVersion?: Int, mask?: Int, boostEcl?: boolean): QRCodeImpl;
|
|
200
|
+
/**
|
|
201
|
+
* 获取指定位置的模块颜色
|
|
202
|
+
* @param x 水平坐标(0 为左上角)
|
|
203
|
+
* @param y 垂直坐标(0 为左上角)
|
|
204
|
+
* @returns 模块颜色(false 表示浅色,true 表示暗色)
|
|
205
|
+
*/
|
|
206
|
+
getModule(x: Int, y: Int): boolean;
|
|
207
|
+
/**
|
|
208
|
+
* 绘制所有功能模块
|
|
209
|
+
*/
|
|
210
|
+
private drawFunctionPatterns;
|
|
211
|
+
/**
|
|
212
|
+
* 绘制格式信息位
|
|
213
|
+
* @param mask 掩模模式
|
|
214
|
+
*/
|
|
215
|
+
private drawFormatBits;
|
|
216
|
+
/**
|
|
217
|
+
* 绘制版本信息位(版本 7+)
|
|
218
|
+
*/
|
|
219
|
+
private drawVersion;
|
|
220
|
+
/**
|
|
221
|
+
* 绘制查找器模式(包括边框分隔符)
|
|
222
|
+
* @param x 中心模块的水平坐标
|
|
223
|
+
* @param y 中心模块的垂直坐标
|
|
224
|
+
*/
|
|
225
|
+
private drawFinderPattern;
|
|
226
|
+
/**
|
|
227
|
+
* 绘制对齐模式
|
|
228
|
+
* @param x 中心模块的水平坐标
|
|
229
|
+
* @param y 中心模块的垂直坐标
|
|
230
|
+
*/
|
|
231
|
+
private drawAlignmentPattern;
|
|
232
|
+
/**
|
|
233
|
+
* 设置模块颜色并标记为功能模块
|
|
234
|
+
* @param x 水平坐标
|
|
235
|
+
* @param y 垂直坐标
|
|
236
|
+
* @param isDark 是否为暗色
|
|
237
|
+
*/
|
|
238
|
+
private setFunctionModule;
|
|
239
|
+
/**
|
|
240
|
+
* 添加错误纠正码并交织数据
|
|
241
|
+
* @param data 数据码字
|
|
242
|
+
* @returns 包含数据和错误纠正码的码字数组
|
|
243
|
+
*/
|
|
244
|
+
private addEccAndInterleave;
|
|
245
|
+
/**
|
|
246
|
+
* 绘制码字数据到 QR Code 的整个数据区域
|
|
247
|
+
* @param data 包含数据和错误纠正码的码字数组
|
|
248
|
+
*/
|
|
249
|
+
private drawCodewords;
|
|
250
|
+
/**
|
|
251
|
+
* 应用掩模模式到 QR Code 的码字模块
|
|
252
|
+
* @param mask 掩模模式
|
|
253
|
+
*/
|
|
254
|
+
private applyMask;
|
|
255
|
+
/**
|
|
256
|
+
* 计算并返回当前模块状态的惩罚分数
|
|
257
|
+
* @returns 惩罚分数
|
|
258
|
+
*/
|
|
259
|
+
private getPenaltyScore;
|
|
260
|
+
/**
|
|
261
|
+
* 返回此版本号的对齐模式位置列表
|
|
262
|
+
* @returns 对齐模式位置数组
|
|
263
|
+
*/
|
|
264
|
+
private getAlignmentPatternPositions;
|
|
265
|
+
/**
|
|
266
|
+
* 计算查找器模式惩罚分数
|
|
267
|
+
* @param runHistory 运行历史数组
|
|
268
|
+
* @returns 惩罚模式数量
|
|
269
|
+
*/
|
|
270
|
+
private finderPenaltyCountPatterns;
|
|
271
|
+
/**
|
|
272
|
+
* 终止运行并计算惩罚分数
|
|
273
|
+
* @param currentRunColor 当前运行颜色
|
|
274
|
+
* @param currentRunLength 当前运行长度
|
|
275
|
+
* @param runHistory 运行历史数组
|
|
276
|
+
* @returns 惩罚模式数量
|
|
277
|
+
*/
|
|
278
|
+
private finderPenaltyTerminateAndCount;
|
|
279
|
+
/**
|
|
280
|
+
* 添加运行历史记录
|
|
281
|
+
* @param currentRunLength 当前运行长度
|
|
282
|
+
* @param runHistory 运行历史数组
|
|
283
|
+
*/
|
|
284
|
+
private finderPenaltyAddHistory;
|
|
285
|
+
/**
|
|
286
|
+
* 获取原始数据模块数量
|
|
287
|
+
* @param ver 版本号
|
|
288
|
+
* @returns 原始数据模块数量
|
|
289
|
+
*/
|
|
290
|
+
private static getNumRawDataModules;
|
|
291
|
+
/**
|
|
292
|
+
* 获取数据码字数量
|
|
293
|
+
* @param ver 版本号
|
|
294
|
+
* @param ecl 错误纠正级别
|
|
295
|
+
* @returns 数据码字数量
|
|
296
|
+
*/
|
|
297
|
+
private static getNumDataCodewords;
|
|
298
|
+
/**
|
|
299
|
+
* 计算 Reed-Solomon 错误纠正除数多项式
|
|
300
|
+
* @param degree 度数
|
|
301
|
+
* @returns 除数多项式系数
|
|
302
|
+
*/
|
|
303
|
+
private static reedSolomonComputeDivisor;
|
|
304
|
+
/**
|
|
305
|
+
* 计算 Reed-Solomon 错误纠正余数
|
|
306
|
+
* @param data 数据多项式系数
|
|
307
|
+
* @param divisor 除数多项式系数
|
|
308
|
+
* @returns 余数多项式系数
|
|
309
|
+
*/
|
|
310
|
+
private static reedSolomonComputeRemainder;
|
|
311
|
+
/**
|
|
312
|
+
* Reed-Solomon 有限域乘法
|
|
313
|
+
* @param x 第一个域元素
|
|
314
|
+
* @param y 第二个域元素
|
|
315
|
+
* @returns 乘积结果
|
|
316
|
+
*/
|
|
317
|
+
private static reedSolomonMultiply;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* 从文本创建 QR Code 的便捷函数
|
|
321
|
+
* @param text 要编码的文本
|
|
322
|
+
* @param errorCorrectionLevel 错误纠正级别(默认为中)
|
|
323
|
+
* @returns QR Code 实例
|
|
324
|
+
*/
|
|
325
|
+
export declare function createQRCode(text: string, errorCorrectionLevel?: ErrorCorrectionLevel): QRCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from '../../common/utils/validate';
|
package/typography/Base.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p, jsxs as ne, Fragment as ie } from "react/jsx-runtime";
|
|
2
2
|
import re from "lodash/merge";
|
|
3
3
|
import _, { forwardRef as le, useContext as pe, useRef as ae, useState as W, useEffect as ce, useImperativeHandle as me } from "react";
|
|
4
|
-
import { a as de } from "../chunk/
|
|
4
|
+
import { a as de } from "../chunk/DstheLSK.js";
|
|
5
5
|
import { u as fe } from "../chunk/2vdCeheu.js";
|
|
6
6
|
import { u as ue } from "../chunk/DfChiMIE.js";
|
|
7
7
|
import he from "../popover/index.js";
|
package/typography/Ellipsis.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as g, Fragment as K, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as Q, useContext as U, useRef as v, useState as R, useMemo as V, useEffect as S, useCallback as X } from "react";
|
|
3
|
-
import { a as Y } from "../chunk/
|
|
3
|
+
import { a as Y } from "../chunk/DstheLSK.js";
|
|
4
4
|
import Z from "../copy/index.js";
|
|
5
5
|
import { u as ee } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import { u as te } from "../chunk/2vdCeheu.js";
|
|
7
7
|
import re from "../tooltip/index.js";
|
|
8
8
|
import s from "@unicom-cloud/utils/class-name";
|
|
9
|
-
import { a as oe } from "../chunk/
|
|
9
|
+
import { a as oe } from "../chunk/BcdTSJks.js";
|
|
10
10
|
import "../chunk/DsaQZE4X.js";
|
|
11
11
|
import { m as ne } from "../chunk/B5RFT17G.js";
|
|
12
12
|
import { r as se } from "../chunk/CHQ8c547.js";
|
package/typography/Paragraph.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p, useContext as c } from "react";
|
|
3
|
-
import { a as f } from "../chunk/
|
|
3
|
+
import { a as f } from "../chunk/DstheLSK.js";
|
|
4
4
|
import i from "@unicom-cloud/utils/class-name";
|
|
5
5
|
import l from "./Base.js";
|
|
6
6
|
function g(a, s) {
|
package/typography/Typography.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c, useContext as l } from "react";
|
|
3
|
-
import { a as f } from "../chunk/
|
|
3
|
+
import { a as f } from "../chunk/DstheLSK.js";
|
|
4
4
|
import i from "@unicom-cloud/utils/class-name";
|
|
5
5
|
function y(o, s) {
|
|
6
6
|
const { getPrefixCls: a } = l(f), t = a?.("typography"), { className: r, style: e, children: p } = o, m = i(t, r);
|
package/upload/TriggerNode.js
CHANGED
|
@@ -3,7 +3,7 @@ import h from "@unicom-cloud/icons/IconUiPlus";
|
|
|
3
3
|
import w from "@unicom-cloud/icons/IconUiUpload";
|
|
4
4
|
import N, { forwardRef as F, useContext as P, useState as E, useEffect as j } from "react";
|
|
5
5
|
import A from "../button/index.js";
|
|
6
|
-
import { a as G } from "../chunk/
|
|
6
|
+
import { a as G } from "../chunk/DstheLSK.js";
|
|
7
7
|
import { u as K } from "../chunk/Bvxzb1wd.js";
|
|
8
8
|
import $ from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import { loopDirectory as L, getFiles as O } from "./util.js";
|
package/upload/Upload.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as C, Fragment as F, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import P from "lodash/isFunction";
|
|
3
3
|
import ne from "lodash/isNumber";
|
|
4
4
|
import { useContext as S, forwardRef as A, useState as w, useEffect as L, isValidElement as re, useRef as B, useImperativeHandle as le } from "react";
|
|
5
|
-
import { a as D, I as se } from "../chunk/
|
|
5
|
+
import { a as D, I as se } from "../chunk/DstheLSK.js";
|
|
6
6
|
import { u as ae } from "../chunk/FgWHhRFz.js";
|
|
7
7
|
import W from "@unicom-cloud/utils/class-name";
|
|
8
8
|
import { o as ce } from "../chunk/BKKEev13.js";
|
|
@@ -10,7 +10,7 @@ import K from "../utils/warning.js";
|
|
|
10
10
|
import { STATUS as f } from "./constant.js";
|
|
11
11
|
import { b as de } from "../chunk/BJ9_azwQ.js";
|
|
12
12
|
import ue from "../image/ImagePreviewGroup.js";
|
|
13
|
-
import { P as M } from "../chunk/
|
|
13
|
+
import { P as M } from "../chunk/DQ8_XXrH.js";
|
|
14
14
|
import _ from "@unicom-cloud/icons/IconUiDelete";
|
|
15
15
|
import me from "@unicom-cloud/icons/IconUiEye";
|
|
16
16
|
import pe from "@unicom-cloud/icons/IconUiImageClose";
|
package/upload/Uploader.js
CHANGED
|
@@ -4,7 +4,7 @@ import N from "lodash/isFunction";
|
|
|
4
4
|
import M from "lodash/isNumber";
|
|
5
5
|
import Q from "lodash/isPlainObject";
|
|
6
6
|
import W, { useRef as X, useState as Y, useImperativeHandle as Z } from "react";
|
|
7
|
-
import { P as _ } from "../chunk/
|
|
7
|
+
import { P as _ } from "../chunk/DQ8_XXrH.js";
|
|
8
8
|
import tt from "./TriggerNode.js";
|
|
9
9
|
import { STATUS as c } from "./constant.js";
|
|
10
10
|
import et from "./request.js";
|