asterui 0.10.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/components/Segmented.d.ts +37 -0
- package/dist/components/Tour.d.ts +61 -0
- package/dist/hooks/useClickOutside.d.ts +17 -0
- package/dist/hooks/useClipboard.d.ts +20 -0
- package/dist/hooks/useDebounce.d.ts +18 -0
- package/dist/hooks/useDisclosure.d.ts +20 -0
- package/dist/hooks/useHover.d.ts +18 -0
- package/dist/hooks/useKeyPress.d.ts +40 -0
- package/dist/hooks/useLocalStorage.d.ts +12 -0
- package/dist/hooks/usePrevious.d.ts +15 -0
- package/dist/hooks/useWindowSize.d.ts +21 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +143 -120
- package/dist/index.js.map +1 -1
- package/dist/index100.js +5 -21
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +41 -23
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +2 -20
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +6 -99
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +149 -357
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +28 -23
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +28 -71
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -16
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +71 -65
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +34 -139
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +26 -2
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +20 -55
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +24 -2
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +20 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +100 -2
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +360 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +25 -2
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +73 -2
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +16 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +63 -29
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +144 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -8
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +56 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.js +2 -21
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -24
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +2 -71
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +2 -21
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +2 -34
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +28 -66
- package/dist/index130.js.map +1 -1
- package/dist/index132.js +8 -2
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -22
- package/dist/index133.js.map +1 -1
- package/dist/index135.js +21 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index137.js +24 -2
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +70 -3
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +24 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.js +1 -1
- package/dist/index140.js +37 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.js +73 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.js +5 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.js +5 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.js +25 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.js +5 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.js +5 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.js +5 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.js +5 -0
- package/dist/index148.js.map +1 -0
- package/dist/index149.js +7 -0
- package/dist/index149.js.map +1 -0
- package/dist/index59.js +1 -1
- package/dist/index66.js +66 -19
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +18 -43
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -132
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +132 -50
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +51 -21
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +19 -19
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +20 -327
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +323 -50
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +56 -40
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +40 -95
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +88 -123
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +123 -154
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +159 -63
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +65 -35
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +35 -34
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +222 -198
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +34 -213
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +190 -275
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +202 -167
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +263 -226
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +176 -12
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +257 -32
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +13 -10792
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +33 -5
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +5 -41
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +14 -2
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +45 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +11 -150
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +13 -28
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +7 -29
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +13 -2
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +30 -71
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +16 -37
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +10792 -25
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import { Affix as e } from "./index2.js";
|
|
2
2
|
import { Alert as p } from "./index3.js";
|
|
3
3
|
import { Autocomplete as x } from "./index4.js";
|
|
4
|
-
import { Avatar as a, AvatarGroup as
|
|
5
|
-
import { Badge as
|
|
6
|
-
import { Breadcrumb as
|
|
4
|
+
import { Avatar as a, AvatarGroup as i } from "./index5.js";
|
|
5
|
+
import { Badge as s } from "./index6.js";
|
|
6
|
+
import { Breadcrumb as l } from "./index7.js";
|
|
7
7
|
import { Button as c } from "./index8.js";
|
|
8
|
-
import { Checkbox as
|
|
8
|
+
import { Checkbox as g } from "./index9.js";
|
|
9
9
|
import { Chat as P } from "./index10.js";
|
|
10
10
|
import { ColorPicker as b } from "./index11.js";
|
|
11
|
-
import { Card as
|
|
12
|
-
import { Cascader as
|
|
13
|
-
import { Chart as
|
|
14
|
-
import { Carousel as
|
|
15
|
-
import { Collapse as
|
|
16
|
-
import { Container as
|
|
17
|
-
import { ContextMenu as
|
|
18
|
-
import { Countdown as
|
|
19
|
-
import { DatePicker as
|
|
20
|
-
import { Descriptions as
|
|
21
|
-
import { Divider as
|
|
22
|
-
import { Drawer as
|
|
23
|
-
import { Fieldset as
|
|
11
|
+
import { Card as h } from "./index12.js";
|
|
12
|
+
import { Cascader as y } from "./index13.js";
|
|
13
|
+
import { Chart as D } from "./index14.js";
|
|
14
|
+
import { Carousel as I } from "./index15.js";
|
|
15
|
+
import { Collapse as B } from "./index16.js";
|
|
16
|
+
import { Container as A } from "./index17.js";
|
|
17
|
+
import { ContextMenu as H } from "./index18.js";
|
|
18
|
+
import { Countdown as K } from "./index19.js";
|
|
19
|
+
import { DatePicker as O } from "./index20.js";
|
|
20
|
+
import { Descriptions as z } from "./index21.js";
|
|
21
|
+
import { Divider as J } from "./index22.js";
|
|
22
|
+
import { Drawer as U } from "./index23.js";
|
|
23
|
+
import { Fieldset as q } from "./index24.js";
|
|
24
24
|
import { FileInput as X } from "./index25.js";
|
|
25
25
|
import { Flex as Z } from "./index26.js";
|
|
26
26
|
import { FloatButton as $ } from "./index27.js";
|
|
27
27
|
import { Footer as ro } from "./index28.js";
|
|
28
28
|
import { Form as to, useFormInstance as po } from "./index29.js";
|
|
29
29
|
import { Col as xo, Grid as fo, Row as ao } from "./index30.js";
|
|
30
|
-
import { Hero as
|
|
31
|
-
import { Image as
|
|
30
|
+
import { Hero as no } from "./index31.js";
|
|
31
|
+
import { Image as uo } from "./index32.js";
|
|
32
32
|
import { Indicator as co } from "./index33.js";
|
|
33
|
-
import { Dropdown as
|
|
33
|
+
import { Dropdown as go } from "./index34.js";
|
|
34
34
|
import { Empty as Po } from "./index35.js";
|
|
35
35
|
import { Input as bo } from "./index36.js";
|
|
36
|
-
import { InputNumber as
|
|
37
|
-
import { Join as
|
|
38
|
-
import { Label as
|
|
39
|
-
import { Layout as
|
|
40
|
-
import { List as
|
|
36
|
+
import { InputNumber as ho } from "./index37.js";
|
|
37
|
+
import { Join as yo } from "./index38.js";
|
|
38
|
+
import { Label as Do } from "./index39.js";
|
|
39
|
+
import { Layout as Io, useSiderContext as Ro } from "./index40.js";
|
|
40
|
+
import { List as Lo } from "./index41.js";
|
|
41
41
|
import { Loading as Mo } from "./index42.js";
|
|
42
|
-
import { Masonry as
|
|
43
|
-
import { Mention as
|
|
44
|
-
import { Menu as
|
|
45
|
-
import { Browser as
|
|
46
|
-
import { Code as
|
|
47
|
-
import { Phone as
|
|
42
|
+
import { Masonry as Go } from "./index43.js";
|
|
43
|
+
import { Mention as No } from "./index44.js";
|
|
44
|
+
import { Menu as Wo } from "./index45.js";
|
|
45
|
+
import { Browser as Eo } from "./index46.js";
|
|
46
|
+
import { Code as Qo } from "./index47.js";
|
|
47
|
+
import { Phone as jo } from "./index48.js";
|
|
48
48
|
import { Window as Vo } from "./index49.js";
|
|
49
49
|
import { Modal as Yo } from "./index50.js";
|
|
50
50
|
import { Navbar as _o } from "./index51.js";
|
|
@@ -53,130 +53,153 @@ import { OTPInput as er } from "./index53.js";
|
|
|
53
53
|
import { Pagination as pr } from "./index54.js";
|
|
54
54
|
import { PageLayout as xr } from "./index55.js";
|
|
55
55
|
import { Popconfirm as ar } from "./index56.js";
|
|
56
|
-
import { Popover as
|
|
57
|
-
import { Progress as
|
|
58
|
-
import { QRCode as
|
|
56
|
+
import { Popover as nr } from "./index57.js";
|
|
57
|
+
import { Progress as ur } from "./index58.js";
|
|
58
|
+
import { QRCode as dr } from "./index59.js";
|
|
59
59
|
import { Radio as Cr } from "./index60.js";
|
|
60
|
-
import { RadialProgress as
|
|
60
|
+
import { RadialProgress as Tr } from "./index61.js";
|
|
61
61
|
import { Range as Sr } from "./index62.js";
|
|
62
|
-
import { Rating as
|
|
62
|
+
import { Rating as kr } from "./index63.js";
|
|
63
63
|
import { Result as wr } from "./index64.js";
|
|
64
|
-
import { Select as
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
64
|
+
import { Select as vr } from "./index65.js";
|
|
65
|
+
import { Segmented as Fr } from "./index66.js";
|
|
66
|
+
import { Skeleton as Rr } from "./index67.js";
|
|
67
|
+
import { Space as Lr } from "./index68.js";
|
|
68
|
+
import { Splitter as Mr } from "./index69.js";
|
|
69
|
+
import { Stack as Gr } from "./index70.js";
|
|
70
|
+
import { Stats as Nr } from "./index71.js";
|
|
71
|
+
import { Steps as Wr } from "./index72.js";
|
|
72
|
+
import { Table as Er } from "./index73.js";
|
|
73
|
+
import { Tabs as Qr } from "./index74.js";
|
|
74
|
+
import { Textarea as jr } from "./index75.js";
|
|
75
|
+
import { CheckableTag as Vr, Tag as Xr } from "./index76.js";
|
|
76
|
+
import { ThemeController as Zr } from "./index77.js";
|
|
77
|
+
import { TimePicker as $r } from "./index78.js";
|
|
78
|
+
import { Timeline as re } from "./index79.js";
|
|
79
|
+
import { Toggle as te } from "./index80.js";
|
|
80
|
+
import { Tour as me } from "./index81.js";
|
|
81
|
+
import { Tooltip as fe } from "./index82.js";
|
|
82
|
+
import { Transfer as ie } from "./index83.js";
|
|
83
|
+
import { Tree as se } from "./index84.js";
|
|
84
|
+
import { TreeSelect as le } from "./index85.js";
|
|
85
|
+
import { Typography as ce } from "./index86.js";
|
|
86
|
+
import { Upload as ge } from "./index87.js";
|
|
87
|
+
import { Hide as Pe, Show as Se } from "./index88.js";
|
|
88
|
+
import { useBreakpoint as ke } from "./index89.js";
|
|
89
|
+
import { useDisclosure as we } from "./index90.js";
|
|
90
|
+
import { useClipboard as ve } from "./index91.js";
|
|
91
|
+
import { useLocalStorage as Fe } from "./index92.js";
|
|
92
|
+
import { useDebounce as Re } from "./index93.js";
|
|
93
|
+
import { useClickOutside as Le } from "./index94.js";
|
|
94
|
+
import { usePrevious as Me } from "./index95.js";
|
|
95
|
+
import { useHover as Ge } from "./index96.js";
|
|
96
|
+
import { useKeyPress as Ne, useKeyPressCallback as Oe } from "./index97.js";
|
|
97
|
+
import { useWindowSize as ze } from "./index98.js";
|
|
87
98
|
export {
|
|
88
99
|
e as Affix,
|
|
89
100
|
p as Alert,
|
|
90
101
|
x as Autocomplete,
|
|
91
102
|
a as Avatar,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
i as AvatarGroup,
|
|
104
|
+
s as Badge,
|
|
105
|
+
l as Breadcrumb,
|
|
106
|
+
Eo as Browser,
|
|
96
107
|
c as Button,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
108
|
+
h as Card,
|
|
109
|
+
I as Carousel,
|
|
110
|
+
y as Cascader,
|
|
111
|
+
D as Chart,
|
|
101
112
|
P as Chat,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
Vr as CheckableTag,
|
|
114
|
+
g as Checkbox,
|
|
115
|
+
Qo as Code,
|
|
105
116
|
xo as Col,
|
|
106
|
-
|
|
117
|
+
B as Collapse,
|
|
107
118
|
b as ColorPicker,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
A as Container,
|
|
120
|
+
H as ContextMenu,
|
|
121
|
+
K as Countdown,
|
|
122
|
+
O as DatePicker,
|
|
123
|
+
z as Descriptions,
|
|
124
|
+
J as Divider,
|
|
125
|
+
U as Drawer,
|
|
126
|
+
go as Dropdown,
|
|
116
127
|
Po as Empty,
|
|
117
|
-
|
|
128
|
+
q as Fieldset,
|
|
118
129
|
X as FileInput,
|
|
119
130
|
Z as Flex,
|
|
120
131
|
$ as FloatButton,
|
|
121
132
|
ro as Footer,
|
|
122
133
|
to as Form,
|
|
123
134
|
fo as Grid,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
135
|
+
no as Hero,
|
|
136
|
+
Pe as Hide,
|
|
137
|
+
uo as Image,
|
|
127
138
|
co as Indicator,
|
|
128
139
|
bo as Input,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
140
|
+
ho as InputNumber,
|
|
141
|
+
yo as Join,
|
|
142
|
+
Do as Label,
|
|
143
|
+
Io as Layout,
|
|
144
|
+
Lo as List,
|
|
134
145
|
Mo as Loading,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
146
|
+
Go as Masonry,
|
|
147
|
+
No as Mention,
|
|
148
|
+
Wo as Menu,
|
|
138
149
|
Yo as Modal,
|
|
139
150
|
_o as Navbar,
|
|
140
151
|
er as OTPInput,
|
|
141
152
|
xr as PageLayout,
|
|
142
153
|
pr as Pagination,
|
|
143
|
-
|
|
154
|
+
jo as Phone,
|
|
144
155
|
ar as Popconfirm,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
156
|
+
nr as Popover,
|
|
157
|
+
ur as Progress,
|
|
158
|
+
dr as QRCode,
|
|
159
|
+
Tr as RadialProgress,
|
|
149
160
|
Cr as Radio,
|
|
150
161
|
Sr as Range,
|
|
151
|
-
|
|
162
|
+
kr as Rating,
|
|
152
163
|
wr as Result,
|
|
153
164
|
ao as Row,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
Mr as
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
+
Fr as Segmented,
|
|
166
|
+
vr as Select,
|
|
167
|
+
Se as Show,
|
|
168
|
+
Rr as Skeleton,
|
|
169
|
+
Lr as Space,
|
|
170
|
+
Mr as Splitter,
|
|
171
|
+
Gr as Stack,
|
|
172
|
+
Nr as Stats,
|
|
173
|
+
Wr as Steps,
|
|
174
|
+
Er as Table,
|
|
175
|
+
Qr as Tabs,
|
|
176
|
+
Xr as Tag,
|
|
165
177
|
jr as Textarea,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
me as
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
le as
|
|
175
|
-
|
|
178
|
+
Zr as ThemeController,
|
|
179
|
+
$r as TimePicker,
|
|
180
|
+
re as Timeline,
|
|
181
|
+
te as Toggle,
|
|
182
|
+
fe as Tooltip,
|
|
183
|
+
me as Tour,
|
|
184
|
+
ie as Transfer,
|
|
185
|
+
se as Tree,
|
|
186
|
+
le as TreeSelect,
|
|
187
|
+
ce as Typography,
|
|
188
|
+
ge as Upload,
|
|
176
189
|
Vo as Window,
|
|
177
190
|
or as notification,
|
|
178
|
-
|
|
191
|
+
ke as useBreakpoint,
|
|
192
|
+
Le as useClickOutside,
|
|
193
|
+
ve as useClipboard,
|
|
194
|
+
Re as useDebounce,
|
|
195
|
+
we as useDisclosure,
|
|
179
196
|
po as useFormInstance,
|
|
180
|
-
|
|
197
|
+
Ge as useHover,
|
|
198
|
+
Ne as useKeyPress,
|
|
199
|
+
Oe as useKeyPressCallback,
|
|
200
|
+
Fe as useLocalStorage,
|
|
201
|
+
Me as usePrevious,
|
|
202
|
+
Ro as useSiderContext,
|
|
203
|
+
ze as useWindowSize
|
|
181
204
|
};
|
|
182
205
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index100.js
CHANGED
|
@@ -1,24 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function i(t) {
|
|
6
|
-
if (!t || t < 1)
|
|
7
|
-
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
8
|
-
this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
|
|
9
|
-
}
|
|
10
|
-
return i.prototype.set = function(t, r, e, o) {
|
|
11
|
-
const a = t * this.size + r;
|
|
12
|
-
this.data[a] = e, o && (this.reservedBit[a] = !0);
|
|
13
|
-
}, i.prototype.get = function(t, r) {
|
|
14
|
-
return this.data[t * this.size + r];
|
|
15
|
-
}, i.prototype.xor = function(t, r, e) {
|
|
16
|
-
this.data[t * this.size + r] ^= e;
|
|
17
|
-
}, i.prototype.isReserved = function(t, r) {
|
|
18
|
-
return this.reservedBit[t * this.size + r];
|
|
19
|
-
}, n = i, n;
|
|
20
|
-
}
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index149.js";
|
|
2
|
+
import { __require as o } from "./index101.js";
|
|
3
|
+
var e = o();
|
|
4
|
+
const a = /* @__PURE__ */ r(e);
|
|
21
5
|
export {
|
|
22
|
-
|
|
6
|
+
a as default
|
|
23
7
|
};
|
|
24
8
|
//# sourceMappingURL=index100.js.map
|
package/dist/index100.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index100.js","sources":[
|
|
1
|
+
{"version":3,"file":"index100.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index101.js
CHANGED
|
@@ -1,27 +1,45 @@
|
|
|
1
|
-
import { __exports as u } from "./
|
|
2
|
-
import { __require as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { __exports as u } from "./index102.js";
|
|
2
|
+
import { __require as C } from "./index103.js";
|
|
3
|
+
import { __require as h } from "./index104.js";
|
|
4
|
+
import { __require as R } from "./index105.js";
|
|
5
|
+
import { __require as y } from "./index106.js";
|
|
6
|
+
var _;
|
|
7
|
+
function B() {
|
|
8
|
+
if (_) return u;
|
|
9
|
+
_ = 1;
|
|
10
|
+
const q = C(), f = h(), l = R(), w = y();
|
|
11
|
+
function a(d, e, r, n, o) {
|
|
12
|
+
const m = [].slice.call(arguments, 1), i = m.length, g = typeof m[i - 1] == "function";
|
|
13
|
+
if (!g && !q())
|
|
14
|
+
throw new Error("Callback required as last argument");
|
|
15
|
+
if (g) {
|
|
16
|
+
if (i < 2)
|
|
17
|
+
throw new Error("Too few arguments provided");
|
|
18
|
+
i === 2 ? (o = r, r = e, e = n = void 0) : i === 3 && (e.getContext && typeof o > "u" ? (o = n, n = void 0) : (o = n, n = r, r = e, e = void 0));
|
|
19
|
+
} else {
|
|
20
|
+
if (i < 1)
|
|
21
|
+
throw new Error("Too few arguments provided");
|
|
22
|
+
return i === 1 ? (r = e, e = n = void 0) : i === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(t, c) {
|
|
23
|
+
try {
|
|
24
|
+
const s = f.create(r, n);
|
|
25
|
+
t(d(s, e, n));
|
|
26
|
+
} catch (s) {
|
|
27
|
+
c(s);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
const t = f.create(r, n);
|
|
33
|
+
o(null, d(t, e, n));
|
|
34
|
+
} catch (t) {
|
|
35
|
+
o(t);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return u.create = f.create, u.toCanvas = a.bind(null, l.render), u.toDataURL = a.bind(null, l.renderToDataURL), u.toString = a.bind(null, function(d, e, r) {
|
|
39
|
+
return w.render(d, r);
|
|
40
|
+
}), u;
|
|
23
41
|
}
|
|
24
42
|
export {
|
|
25
|
-
|
|
43
|
+
B as __require
|
|
26
44
|
};
|
|
27
45
|
//# sourceMappingURL=index101.js.map
|
package/dist/index101.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index101.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/
|
|
1
|
+
{"version":3,"file":"index101.js","sources":["../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/browser.js"],"sourcesContent":["\nconst canPromise = require('./can-promise')\n\nconst QRCode = require('./core/qrcode')\nconst CanvasRenderer = require('./renderer/canvas')\nconst SvgRenderer = require('./renderer/svg-tag.js')\n\nfunction renderCanvas (renderFunc, canvas, text, opts, cb) {\n const args = [].slice.call(arguments, 1)\n const argsNum = args.length\n const isLastArgCb = typeof args[argsNum - 1] === 'function'\n\n if (!isLastArgCb && !canPromise()) {\n throw new Error('Callback required as last argument')\n }\n\n if (isLastArgCb) {\n if (argsNum < 2) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 2) {\n cb = text\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 3) {\n if (canvas.getContext && typeof cb === 'undefined') {\n cb = opts\n opts = undefined\n } else {\n cb = opts\n opts = text\n text = canvas\n canvas = undefined\n }\n }\n } else {\n if (argsNum < 1) {\n throw new Error('Too few arguments provided')\n }\n\n if (argsNum === 1) {\n text = canvas\n canvas = opts = undefined\n } else if (argsNum === 2 && !canvas.getContext) {\n opts = text\n text = canvas\n canvas = undefined\n }\n\n return new Promise(function (resolve, reject) {\n try {\n const data = QRCode.create(text, opts)\n resolve(renderFunc(data, canvas, opts))\n } catch (e) {\n reject(e)\n }\n })\n }\n\n try {\n const data = QRCode.create(text, opts)\n cb(null, renderFunc(data, canvas, opts))\n } catch (e) {\n cb(e)\n }\n}\n\nexports.create = QRCode.create\nexports.toCanvas = renderCanvas.bind(null, CanvasRenderer.render)\nexports.toDataURL = renderCanvas.bind(null, CanvasRenderer.renderToDataURL)\n\n// only svg for now.\nexports.toString = renderCanvas.bind(null, function (data, _, opts) {\n return SvgRenderer.render(data, opts)\n})\n"],"names":["canPromise","require$$0","QRCode","require$$1","CanvasRenderer","require$$2","SvgRenderer","require$$3","renderCanvas","renderFunc","canvas","text","opts","cb","args","argsNum","isLastArgCb","resolve","reject","data","e","browser","_"],"mappings":";;;;;;;;;AACA,QAAMA,IAAaC,EAAA,GAEbC,IAASC,EAAA,GACTC,IAAiBC,EAAA,GACjBC,IAAcC,EAAA;AAEpB,WAASC,EAAcC,GAAYC,GAAQC,GAAMC,GAAMC,GAAI;AACzD,UAAMC,IAAO,CAAA,EAAG,MAAM,KAAK,WAAW,CAAC,GACjCC,IAAUD,EAAK,QACfE,IAAc,OAAOF,EAAKC,IAAU,CAAC,KAAM;AAEjD,QAAI,CAACC,KAAe,CAAChB;AACnB,YAAM,IAAI,MAAM,oCAAoC;AAGtD,QAAIgB,GAAa;AACf,UAAID,IAAU;AACZ,cAAM,IAAI,MAAM,4BAA4B;AAG9C,MAAIA,MAAY,KACdF,IAAKF,GACLA,IAAOD,GACPA,IAASE,IAAO,UACPG,MAAY,MACjBL,EAAO,cAAc,OAAOG,IAAO,OACrCA,IAAKD,GACLA,IAAO,WAEPC,IAAKD,GACLA,IAAOD,GACPA,IAAOD,GACPA,IAAS;AAAA,IAGjB,OAAS;AACL,UAAIK,IAAU;AACZ,cAAM,IAAI,MAAM,4BAA4B;AAG9C,aAAIA,MAAY,KACdJ,IAAOD,GACPA,IAASE,IAAO,UACPG,MAAY,KAAK,CAACL,EAAO,eAClCE,IAAOD,GACPA,IAAOD,GACPA,IAAS,SAGJ,IAAI,QAAQ,SAAUO,GAASC,GAAQ;AAC5C,YAAI;AACF,gBAAMC,IAAOjB,EAAO,OAAOS,GAAMC,CAAI;AACrC,UAAAK,EAAQR,EAAWU,GAAMT,GAAQE,CAAI,CAAC;AAAA,QAC9C,SAAeQ,GAAG;AACV,UAAAF,EAAOE,CAAC;AAAA,QAChB;AAAA,MACA,CAAK;AAAA,IACL;AAEE,QAAI;AACF,YAAMD,IAAOjB,EAAO,OAAOS,GAAMC,CAAI;AACrC,MAAAC,EAAG,MAAMJ,EAAWU,GAAMT,GAAQE,CAAI,CAAC;AAAA,IAC3C,SAAWQ,GAAG;AACV,MAAAP,EAAGO,CAAC;AAAA,IACR;AAAA,EACA;AAEA,SAAAC,EAAA,SAAiBnB,EAAO,QACxBmB,EAAA,WAAmBb,EAAa,KAAK,MAAMJ,EAAe,MAAM,GAChEiB,EAAA,YAAoBb,EAAa,KAAK,MAAMJ,EAAe,eAAe,GAG1EiB,EAAA,WAAmBb,EAAa,KAAK,MAAM,SAAUW,GAAMG,GAAGV,GAAM;AAClE,WAAON,EAAY,OAAOa,GAAMP,CAAI;AAAA,EACtC,CAAC;;","x_google_ignoreList":[0]}
|
package/dist/index102.js
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as s } from "./index97.js";
|
|
3
|
-
var i;
|
|
4
|
-
function f() {
|
|
5
|
-
if (i) return e;
|
|
6
|
-
i = 1;
|
|
7
|
-
const n = s().getSymbolSize, r = 7;
|
|
8
|
-
return e.getPositions = function(o) {
|
|
9
|
-
const t = n(o);
|
|
10
|
-
return [
|
|
11
|
-
// top-left
|
|
12
|
-
[0, 0],
|
|
13
|
-
// top-right
|
|
14
|
-
[t - r, 0],
|
|
15
|
-
// bottom-left
|
|
16
|
-
[0, t - r]
|
|
17
|
-
];
|
|
18
|
-
}, e;
|
|
19
|
-
}
|
|
1
|
+
var r = {};
|
|
20
2
|
export {
|
|
21
|
-
|
|
3
|
+
r as __exports
|
|
22
4
|
};
|
|
23
5
|
//# sourceMappingURL=index102.js.map
|
package/dist/index102.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index102.js","sources":[
|
|
1
|
+
{"version":3,"file":"index102.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index103.js
CHANGED
|
@@ -1,103 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
PATTERN000: 0,
|
|
7
|
-
PATTERN001: 1,
|
|
8
|
-
PATTERN010: 2,
|
|
9
|
-
PATTERN011: 3,
|
|
10
|
-
PATTERN100: 4,
|
|
11
|
-
PATTERN101: 5,
|
|
12
|
-
PATTERN110: 6,
|
|
13
|
-
PATTERN111: 7
|
|
14
|
-
};
|
|
15
|
-
const u = {
|
|
16
|
-
N1: 3,
|
|
17
|
-
N2: 3,
|
|
18
|
-
N3: 40,
|
|
19
|
-
N4: 10
|
|
20
|
-
};
|
|
21
|
-
r.isValid = function(t) {
|
|
22
|
-
return t != null && t !== "" && !isNaN(t) && t >= 0 && t <= 7;
|
|
23
|
-
}, r.from = function(t) {
|
|
24
|
-
return r.isValid(t) ? parseInt(t, 10) : void 0;
|
|
25
|
-
}, r.getPenaltyN1 = function(t) {
|
|
26
|
-
const l = t.size;
|
|
27
|
-
let s = 0, n = 0, e = 0, i = null, o = null;
|
|
28
|
-
for (let f = 0; f < l; f++) {
|
|
29
|
-
n = e = 0, i = o = null;
|
|
30
|
-
for (let N = 0; N < l; N++) {
|
|
31
|
-
let a = t.get(f, N);
|
|
32
|
-
a === i ? n++ : (n >= 5 && (s += u.N1 + (n - 5)), i = a, n = 1), a = t.get(N, f), a === o ? e++ : (e >= 5 && (s += u.N1 + (e - 5)), o = a, e = 1);
|
|
33
|
-
}
|
|
34
|
-
n >= 5 && (s += u.N1 + (n - 5)), e >= 5 && (s += u.N1 + (e - 5));
|
|
35
|
-
}
|
|
36
|
-
return s;
|
|
37
|
-
}, r.getPenaltyN2 = function(t) {
|
|
38
|
-
const l = t.size;
|
|
39
|
-
let s = 0;
|
|
40
|
-
for (let n = 0; n < l - 1; n++)
|
|
41
|
-
for (let e = 0; e < l - 1; e++) {
|
|
42
|
-
const i = t.get(n, e) + t.get(n, e + 1) + t.get(n + 1, e) + t.get(n + 1, e + 1);
|
|
43
|
-
(i === 4 || i === 0) && s++;
|
|
44
|
-
}
|
|
45
|
-
return s * u.N2;
|
|
46
|
-
}, r.getPenaltyN3 = function(t) {
|
|
47
|
-
const l = t.size;
|
|
48
|
-
let s = 0, n = 0, e = 0;
|
|
49
|
-
for (let i = 0; i < l; i++) {
|
|
50
|
-
n = e = 0;
|
|
51
|
-
for (let o = 0; o < l; o++)
|
|
52
|
-
n = n << 1 & 2047 | t.get(i, o), o >= 10 && (n === 1488 || n === 93) && s++, e = e << 1 & 2047 | t.get(o, i), o >= 10 && (e === 1488 || e === 93) && s++;
|
|
53
|
-
}
|
|
54
|
-
return s * u.N3;
|
|
55
|
-
}, r.getPenaltyN4 = function(t) {
|
|
56
|
-
let l = 0;
|
|
57
|
-
const s = t.data.length;
|
|
58
|
-
for (let e = 0; e < s; e++) l += t.data[e];
|
|
59
|
-
return Math.abs(Math.ceil(l * 100 / s / 5) - 10) * u.N4;
|
|
60
|
-
};
|
|
61
|
-
function g(P, t, l) {
|
|
62
|
-
switch (P) {
|
|
63
|
-
case r.Patterns.PATTERN000:
|
|
64
|
-
return (t + l) % 2 === 0;
|
|
65
|
-
case r.Patterns.PATTERN001:
|
|
66
|
-
return t % 2 === 0;
|
|
67
|
-
case r.Patterns.PATTERN010:
|
|
68
|
-
return l % 3 === 0;
|
|
69
|
-
case r.Patterns.PATTERN011:
|
|
70
|
-
return (t + l) % 3 === 0;
|
|
71
|
-
case r.Patterns.PATTERN100:
|
|
72
|
-
return (Math.floor(t / 2) + Math.floor(l / 3)) % 2 === 0;
|
|
73
|
-
case r.Patterns.PATTERN101:
|
|
74
|
-
return t * l % 2 + t * l % 3 === 0;
|
|
75
|
-
case r.Patterns.PATTERN110:
|
|
76
|
-
return (t * l % 2 + t * l % 3) % 2 === 0;
|
|
77
|
-
case r.Patterns.PATTERN111:
|
|
78
|
-
return (t * l % 3 + (t + l) % 2) % 2 === 0;
|
|
79
|
-
default:
|
|
80
|
-
throw new Error("bad maskPattern:" + P);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
r.applyMask = function(t, l) {
|
|
84
|
-
const s = l.size;
|
|
85
|
-
for (let n = 0; n < s; n++)
|
|
86
|
-
for (let e = 0; e < s; e++)
|
|
87
|
-
l.isReserved(e, n) || l.xor(e, n, g(t, e, n));
|
|
88
|
-
}, r.getBestMask = function(t, l) {
|
|
89
|
-
const s = Object.keys(r.Patterns).length;
|
|
90
|
-
let n = 0, e = 1 / 0;
|
|
91
|
-
for (let i = 0; i < s; i++) {
|
|
92
|
-
l(i), r.applyMask(i, t);
|
|
93
|
-
const o = r.getPenaltyN1(t) + r.getPenaltyN2(t) + r.getPenaltyN3(t) + r.getPenaltyN4(t);
|
|
94
|
-
r.applyMask(i, t), o < e && (e = o, n = i);
|
|
95
|
-
}
|
|
96
|
-
return n;
|
|
97
|
-
};
|
|
98
|
-
})(c), c);
|
|
1
|
+
var r, e;
|
|
2
|
+
function o() {
|
|
3
|
+
return e || (e = 1, r = function() {
|
|
4
|
+
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
5
|
+
}), r;
|
|
99
6
|
}
|
|
100
7
|
export {
|
|
101
|
-
|
|
8
|
+
o as __require
|
|
102
9
|
};
|
|
103
10
|
//# sourceMappingURL=index103.js.map
|