ranui 0.1.10-alpha.12 → 0.1.10-alpha.17
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.zh-CN.md +1 -1
- package/dist/{arrow-down-B_hCY3Wt.js → arrow-down-BfP__spA.js} +27 -273
- package/dist/button.js +2 -2
- package/dist/checkbox.js +2 -2
- package/dist/colorpicker.js +4 -4
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/message/index.d.ts +0 -1
- package/dist/components/player/index.d.ts +0 -1
- package/dist/components/popover/index.d.ts +0 -1
- package/dist/components/preview/pptx/process_pptx.d.ts +0 -1
- package/dist/components/select/index.d.ts +0 -1
- package/dist/components/tab/index.d.ts +53 -50
- package/dist/components/tabpane/index.d.ts +54 -51
- package/dist/{docx-CHkPTdGU.js → docx-VUApAnRr.js} +339 -286
- package/dist/icon.js +2 -2
- package/dist/iconShadowless.js +2 -2
- package/dist/{index-D_CA5VDZ.js → index-B1Krwj3R.js} +2 -2
- package/dist/{index-D4qUro5V.js → index-BG_RPA3S.js} +3 -3
- package/dist/{index-1v568_nq.js → index-BKc8CN7b.js} +1 -1
- package/dist/{index-Bc2Bcl8D.js → index-Ba501-HG.js} +5713 -10567
- package/dist/{index-B897keW5.js → index-BlB9DoHg.js} +6 -6
- package/dist/{index-CGYfjKUV.js → index-BtvTF9Dy.js} +2 -2
- package/dist/{index-DJZmDHz-.js → index-C9ZeUM1l.js} +2 -2
- package/dist/{index-C6RcMHoH.js → index-CBApz0IY.js} +1 -1
- package/dist/{index-15M0olqa.js → index-ChCDonf3.js} +1 -1
- package/dist/{index-CGEx9VOA.js → index-Co9E57uv.js} +233 -481
- package/dist/{index-CiWwvEMM.js → index-D5ucMSCz.js} +3 -3
- package/dist/{index-D4y9c1Dj.js → index-DILUjTXZ.js} +2 -2
- package/dist/{index-mhFL9MJp.js → index-DU1-Vrso.js} +1 -1
- package/dist/{index-CFjEuvBW.js → index-DmVCN-bN.js} +1 -1
- package/dist/{index-CtVOgBDk.js → index-DpNvpcjW.js} +3 -3
- package/dist/{index-CVtBLEpV.js → index-DzITmPGZ.js} +1 -1
- package/dist/{index-B_GuEcTd.js → index-RzDJf-H8.js} +3612 -986
- package/dist/{index-C9z10IgG.js → index-x2z6Vm2E.js} +1 -1
- package/dist/index.js +14 -14
- package/dist/jszip.min-BIf20mgf.js +2898 -0
- package/dist/{katex-es-B5r5vt3m.js → katex-es-DoRbtDCO.js} +2094 -7496
- package/dist/loading.js +2 -2
- package/dist/math.js +2 -2
- package/dist/message.js +3 -3
- package/dist/player.js +3 -3
- package/dist/popover.js +3 -3
- package/dist/preview.js +4 -4
- package/dist/progress.js +2 -2
- package/dist/radar.js +2 -2
- package/dist/select.js +4 -4
- package/dist/selectShadowless.js +2 -2
- package/dist/shadowless/select/index.d.ts +0 -1
- package/dist/shadowless.js +1 -1
- package/dist/tab.js +2 -2
- package/dist/umd/index.umd.cjs +21 -21
- package/package.json +4 -2
- package/readme.md +1 -2
- package/dist/jszip.min-Dhs3nUkD.js +0 -2346
package/README.zh-CN.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://github.com/chaxus/ran"><img src="https://img.badgesize.io/https:/unpkg.com/ranui/dist/umd/shadowless/shadowless.umd.cjs?label=brotli&compression=brotli" alt="brotli"></a>
|
|
11
11
|
<a href="https://github.com/chaxus/ran"><img src="https://img.shields.io/badge/module%20formats-umd%2C%20esm-green.svg" alt="module formats: umd, esm"></a>
|
|
12
12
|
|
|
13
|
-
**中文** | [English](./
|
|
13
|
+
**中文** | [English](./readme.md)
|
|
14
14
|
|
|
15
15
|
## 特点
|
|
16
16
|
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
3
|
+
enumerable: true,
|
|
4
|
+
configurable: true,
|
|
5
|
+
writable: true,
|
|
6
|
+
value
|
|
7
|
+
}) : obj[key] = value;
|
|
3
8
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
9
|
const noop = () => {
|
|
5
10
|
};
|
|
@@ -22,72 +27,7 @@ const isMobile = () => {
|
|
|
22
27
|
}
|
|
23
28
|
return false;
|
|
24
29
|
};
|
|
25
|
-
const K_sha2 = [
|
|
26
|
-
1116352408,
|
|
27
|
-
1899447441,
|
|
28
|
-
3049323471,
|
|
29
|
-
3921009573,
|
|
30
|
-
961987163,
|
|
31
|
-
1508970993,
|
|
32
|
-
2453635748,
|
|
33
|
-
2870763221,
|
|
34
|
-
3624381080,
|
|
35
|
-
310598401,
|
|
36
|
-
607225278,
|
|
37
|
-
1426881987,
|
|
38
|
-
1925078388,
|
|
39
|
-
2162078206,
|
|
40
|
-
2614888103,
|
|
41
|
-
3248222580,
|
|
42
|
-
3835390401,
|
|
43
|
-
4022224774,
|
|
44
|
-
264347078,
|
|
45
|
-
604807628,
|
|
46
|
-
770255983,
|
|
47
|
-
1249150122,
|
|
48
|
-
1555081692,
|
|
49
|
-
1996064986,
|
|
50
|
-
2554220882,
|
|
51
|
-
2821834349,
|
|
52
|
-
2952996808,
|
|
53
|
-
3210313671,
|
|
54
|
-
3336571891,
|
|
55
|
-
3584528711,
|
|
56
|
-
113926993,
|
|
57
|
-
338241895,
|
|
58
|
-
666307205,
|
|
59
|
-
773529912,
|
|
60
|
-
1294757372,
|
|
61
|
-
1396182291,
|
|
62
|
-
1695183700,
|
|
63
|
-
1986661051,
|
|
64
|
-
2177026350,
|
|
65
|
-
2456956037,
|
|
66
|
-
2730485921,
|
|
67
|
-
2820302411,
|
|
68
|
-
3259730800,
|
|
69
|
-
3345764771,
|
|
70
|
-
3516065817,
|
|
71
|
-
3600352804,
|
|
72
|
-
4094571909,
|
|
73
|
-
275423344,
|
|
74
|
-
430227734,
|
|
75
|
-
506948616,
|
|
76
|
-
659060556,
|
|
77
|
-
883997877,
|
|
78
|
-
958139571,
|
|
79
|
-
1322822218,
|
|
80
|
-
1537002063,
|
|
81
|
-
1747873779,
|
|
82
|
-
1955562222,
|
|
83
|
-
2024104815,
|
|
84
|
-
2227730452,
|
|
85
|
-
2361852424,
|
|
86
|
-
2428436474,
|
|
87
|
-
2756734187,
|
|
88
|
-
3204031479,
|
|
89
|
-
3329325298
|
|
90
|
-
];
|
|
30
|
+
const K_sha2 = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
|
|
91
31
|
class Int_64 {
|
|
92
32
|
constructor(msint_32, lsint_32) {
|
|
93
33
|
__publicField(this, "highOrder");
|
|
@@ -96,114 +36,8 @@ class Int_64 {
|
|
|
96
36
|
this.lowOrder = lsint_32;
|
|
97
37
|
}
|
|
98
38
|
}
|
|
99
|
-
[
|
|
100
|
-
|
|
101
|
-
new Int_64(K_sha2[1], 602891725),
|
|
102
|
-
new Int_64(K_sha2[2], 3964484399),
|
|
103
|
-
new Int_64(K_sha2[3], 2173295548),
|
|
104
|
-
new Int_64(K_sha2[4], 4081628472),
|
|
105
|
-
new Int_64(K_sha2[5], 3053834265),
|
|
106
|
-
new Int_64(K_sha2[6], 2937671579),
|
|
107
|
-
new Int_64(K_sha2[7], 3664609560),
|
|
108
|
-
new Int_64(K_sha2[8], 2734883394),
|
|
109
|
-
new Int_64(K_sha2[9], 1164996542),
|
|
110
|
-
new Int_64(K_sha2[10], 1323610764),
|
|
111
|
-
new Int_64(K_sha2[11], 3590304994),
|
|
112
|
-
new Int_64(K_sha2[12], 4068182383),
|
|
113
|
-
new Int_64(K_sha2[13], 991336113),
|
|
114
|
-
new Int_64(K_sha2[14], 633803317),
|
|
115
|
-
new Int_64(K_sha2[15], 3479774868),
|
|
116
|
-
new Int_64(K_sha2[16], 2666613458),
|
|
117
|
-
new Int_64(K_sha2[17], 944711139),
|
|
118
|
-
new Int_64(K_sha2[18], 2341262773),
|
|
119
|
-
new Int_64(K_sha2[19], 2007800933),
|
|
120
|
-
new Int_64(K_sha2[20], 1495990901),
|
|
121
|
-
new Int_64(K_sha2[21], 1856431235),
|
|
122
|
-
new Int_64(K_sha2[22], 3175218132),
|
|
123
|
-
new Int_64(K_sha2[23], 2198950837),
|
|
124
|
-
new Int_64(K_sha2[24], 3999719339),
|
|
125
|
-
new Int_64(K_sha2[25], 766784016),
|
|
126
|
-
new Int_64(K_sha2[26], 2566594879),
|
|
127
|
-
new Int_64(K_sha2[27], 3203337956),
|
|
128
|
-
new Int_64(K_sha2[28], 1034457026),
|
|
129
|
-
new Int_64(K_sha2[29], 2466948901),
|
|
130
|
-
new Int_64(K_sha2[30], 3758326383),
|
|
131
|
-
new Int_64(K_sha2[31], 168717936),
|
|
132
|
-
new Int_64(K_sha2[32], 1188179964),
|
|
133
|
-
new Int_64(K_sha2[33], 1546045734),
|
|
134
|
-
new Int_64(K_sha2[34], 1522805485),
|
|
135
|
-
new Int_64(K_sha2[35], 2643833823),
|
|
136
|
-
new Int_64(K_sha2[36], 2343527390),
|
|
137
|
-
new Int_64(K_sha2[37], 1014477480),
|
|
138
|
-
new Int_64(K_sha2[38], 1206759142),
|
|
139
|
-
new Int_64(K_sha2[39], 344077627),
|
|
140
|
-
new Int_64(K_sha2[40], 1290863460),
|
|
141
|
-
new Int_64(K_sha2[41], 3158454273),
|
|
142
|
-
new Int_64(K_sha2[42], 3505952657),
|
|
143
|
-
new Int_64(K_sha2[43], 106217008),
|
|
144
|
-
new Int_64(K_sha2[44], 3606008344),
|
|
145
|
-
new Int_64(K_sha2[45], 1432725776),
|
|
146
|
-
new Int_64(K_sha2[46], 1467031594),
|
|
147
|
-
new Int_64(K_sha2[47], 851169720),
|
|
148
|
-
new Int_64(K_sha2[48], 3100823752),
|
|
149
|
-
new Int_64(K_sha2[49], 1363258195),
|
|
150
|
-
new Int_64(K_sha2[50], 3750685593),
|
|
151
|
-
new Int_64(K_sha2[51], 3785050280),
|
|
152
|
-
new Int_64(K_sha2[52], 3318307427),
|
|
153
|
-
new Int_64(K_sha2[53], 3812723403),
|
|
154
|
-
new Int_64(K_sha2[54], 2003034995),
|
|
155
|
-
new Int_64(K_sha2[55], 3602036899),
|
|
156
|
-
new Int_64(K_sha2[56], 1575990012),
|
|
157
|
-
new Int_64(K_sha2[57], 1125592928),
|
|
158
|
-
new Int_64(K_sha2[58], 2716904306),
|
|
159
|
-
new Int_64(K_sha2[59], 442776044),
|
|
160
|
-
new Int_64(K_sha2[60], 593698344),
|
|
161
|
-
new Int_64(K_sha2[61], 3733110249),
|
|
162
|
-
new Int_64(K_sha2[62], 2999351573),
|
|
163
|
-
new Int_64(K_sha2[63], 3815920427),
|
|
164
|
-
new Int_64(3391569614, 3928383900),
|
|
165
|
-
new Int_64(3515267271, 566280711),
|
|
166
|
-
new Int_64(3940187606, 3454069534),
|
|
167
|
-
new Int_64(4118630271, 4000239992),
|
|
168
|
-
new Int_64(116418474, 1914138554),
|
|
169
|
-
new Int_64(174292421, 2731055270),
|
|
170
|
-
new Int_64(289380356, 3203993006),
|
|
171
|
-
new Int_64(460393269, 320620315),
|
|
172
|
-
new Int_64(685471733, 587496836),
|
|
173
|
-
new Int_64(852142971, 1086792851),
|
|
174
|
-
new Int_64(1017036298, 365543100),
|
|
175
|
-
new Int_64(1126000580, 2618297676),
|
|
176
|
-
new Int_64(1288033470, 3409855158),
|
|
177
|
-
new Int_64(1501505948, 4234509866),
|
|
178
|
-
new Int_64(1607167915, 987167468),
|
|
179
|
-
new Int_64(1816402316, 1246189591)
|
|
180
|
-
];
|
|
181
|
-
[
|
|
182
|
-
new Int_64(0, 1),
|
|
183
|
-
new Int_64(0, 32898),
|
|
184
|
-
new Int_64(2147483648, 32906),
|
|
185
|
-
new Int_64(2147483648, 2147516416),
|
|
186
|
-
new Int_64(0, 32907),
|
|
187
|
-
new Int_64(0, 2147483649),
|
|
188
|
-
new Int_64(2147483648, 2147516545),
|
|
189
|
-
new Int_64(2147483648, 32777),
|
|
190
|
-
new Int_64(0, 138),
|
|
191
|
-
new Int_64(0, 136),
|
|
192
|
-
new Int_64(0, 2147516425),
|
|
193
|
-
new Int_64(0, 2147483658),
|
|
194
|
-
new Int_64(0, 2147516555),
|
|
195
|
-
new Int_64(2147483648, 139),
|
|
196
|
-
new Int_64(2147483648, 32905),
|
|
197
|
-
new Int_64(2147483648, 32771),
|
|
198
|
-
new Int_64(2147483648, 32770),
|
|
199
|
-
new Int_64(2147483648, 128),
|
|
200
|
-
new Int_64(0, 32778),
|
|
201
|
-
new Int_64(2147483648, 2147483658),
|
|
202
|
-
new Int_64(2147483648, 2147516545),
|
|
203
|
-
new Int_64(2147483648, 32896),
|
|
204
|
-
new Int_64(0, 2147483649),
|
|
205
|
-
new Int_64(2147483648, 2147516424)
|
|
206
|
-
];
|
|
39
|
+
[new Int_64(K_sha2[0], 3609767458), new Int_64(K_sha2[1], 602891725), new Int_64(K_sha2[2], 3964484399), new Int_64(K_sha2[3], 2173295548), new Int_64(K_sha2[4], 4081628472), new Int_64(K_sha2[5], 3053834265), new Int_64(K_sha2[6], 2937671579), new Int_64(K_sha2[7], 3664609560), new Int_64(K_sha2[8], 2734883394), new Int_64(K_sha2[9], 1164996542), new Int_64(K_sha2[10], 1323610764), new Int_64(K_sha2[11], 3590304994), new Int_64(K_sha2[12], 4068182383), new Int_64(K_sha2[13], 991336113), new Int_64(K_sha2[14], 633803317), new Int_64(K_sha2[15], 3479774868), new Int_64(K_sha2[16], 2666613458), new Int_64(K_sha2[17], 944711139), new Int_64(K_sha2[18], 2341262773), new Int_64(K_sha2[19], 2007800933), new Int_64(K_sha2[20], 1495990901), new Int_64(K_sha2[21], 1856431235), new Int_64(K_sha2[22], 3175218132), new Int_64(K_sha2[23], 2198950837), new Int_64(K_sha2[24], 3999719339), new Int_64(K_sha2[25], 766784016), new Int_64(K_sha2[26], 2566594879), new Int_64(K_sha2[27], 3203337956), new Int_64(K_sha2[28], 1034457026), new Int_64(K_sha2[29], 2466948901), new Int_64(K_sha2[30], 3758326383), new Int_64(K_sha2[31], 168717936), new Int_64(K_sha2[32], 1188179964), new Int_64(K_sha2[33], 1546045734), new Int_64(K_sha2[34], 1522805485), new Int_64(K_sha2[35], 2643833823), new Int_64(K_sha2[36], 2343527390), new Int_64(K_sha2[37], 1014477480), new Int_64(K_sha2[38], 1206759142), new Int_64(K_sha2[39], 344077627), new Int_64(K_sha2[40], 1290863460), new Int_64(K_sha2[41], 3158454273), new Int_64(K_sha2[42], 3505952657), new Int_64(K_sha2[43], 106217008), new Int_64(K_sha2[44], 3606008344), new Int_64(K_sha2[45], 1432725776), new Int_64(K_sha2[46], 1467031594), new Int_64(K_sha2[47], 851169720), new Int_64(K_sha2[48], 3100823752), new Int_64(K_sha2[49], 1363258195), new Int_64(K_sha2[50], 3750685593), new Int_64(K_sha2[51], 3785050280), new Int_64(K_sha2[52], 3318307427), new Int_64(K_sha2[53], 3812723403), new Int_64(K_sha2[54], 2003034995), new Int_64(K_sha2[55], 3602036899), new Int_64(K_sha2[56], 1575990012), new Int_64(K_sha2[57], 1125592928), new Int_64(K_sha2[58], 2716904306), new Int_64(K_sha2[59], 442776044), new Int_64(K_sha2[60], 593698344), new Int_64(K_sha2[61], 3733110249), new Int_64(K_sha2[62], 2999351573), new Int_64(K_sha2[63], 3815920427), new Int_64(3391569614, 3928383900), new Int_64(3515267271, 566280711), new Int_64(3940187606, 3454069534), new Int_64(4118630271, 4000239992), new Int_64(116418474, 1914138554), new Int_64(174292421, 2731055270), new Int_64(289380356, 3203993006), new Int_64(460393269, 320620315), new Int_64(685471733, 587496836), new Int_64(852142971, 1086792851), new Int_64(1017036298, 365543100), new Int_64(1126000580, 2618297676), new Int_64(1288033470, 3409855158), new Int_64(1501505948, 4234509866), new Int_64(1607167915, 987167468), new Int_64(1816402316, 1246189591)];
|
|
40
|
+
[new Int_64(0, 1), new Int_64(0, 32898), new Int_64(2147483648, 32906), new Int_64(2147483648, 2147516416), new Int_64(0, 32907), new Int_64(0, 2147483649), new Int_64(2147483648, 2147516545), new Int_64(2147483648, 32777), new Int_64(0, 138), new Int_64(0, 136), new Int_64(0, 2147516425), new Int_64(0, 2147483658), new Int_64(0, 2147516555), new Int_64(2147483648, 139), new Int_64(2147483648, 32905), new Int_64(2147483648, 32771), new Int_64(2147483648, 32770), new Int_64(2147483648, 128), new Int_64(0, 32778), new Int_64(2147483648, 2147483658), new Int_64(2147483648, 2147516545), new Int_64(2147483648, 32896), new Int_64(0, 2147483649), new Int_64(2147483648, 2147516424)];
|
|
207
41
|
function formatDuration(time) {
|
|
208
42
|
return time < 10 ? `0${time}` : time;
|
|
209
43
|
}
|
|
@@ -259,34 +93,7 @@ const createDocumentFragment = (list) => {
|
|
|
259
93
|
return Fragment;
|
|
260
94
|
};
|
|
261
95
|
const SVG_NS = "http://www.w3.org/2000/svg";
|
|
262
|
-
const SVG_TAG_NAMES = [
|
|
263
|
-
"svg",
|
|
264
|
-
"path",
|
|
265
|
-
"g",
|
|
266
|
-
"circle",
|
|
267
|
-
"rect",
|
|
268
|
-
"line",
|
|
269
|
-
"polyline",
|
|
270
|
-
"polygon",
|
|
271
|
-
"ellipse",
|
|
272
|
-
"text",
|
|
273
|
-
"tspan",
|
|
274
|
-
"textPath",
|
|
275
|
-
"defs",
|
|
276
|
-
"marker",
|
|
277
|
-
"radialGradient",
|
|
278
|
-
"stop",
|
|
279
|
-
"linearGradient",
|
|
280
|
-
"clipPath",
|
|
281
|
-
"mask",
|
|
282
|
-
"pattern",
|
|
283
|
-
"image",
|
|
284
|
-
"use",
|
|
285
|
-
"symbol",
|
|
286
|
-
"foreignObject",
|
|
287
|
-
"feGaussianBlur",
|
|
288
|
-
"feColorMatrix"
|
|
289
|
-
];
|
|
96
|
+
const SVG_TAG_NAMES = ["svg", "path", "g", "circle", "rect", "line", "polyline", "polygon", "ellipse", "text", "tspan", "textPath", "defs", "marker", "radialGradient", "stop", "linearGradient", "clipPath", "mask", "pattern", "image", "use", "symbol", "foreignObject", "feGaussianBlur", "feColorMatrix"];
|
|
290
97
|
class Chain {
|
|
291
98
|
constructor(tagName, options) {
|
|
292
99
|
__publicField(this, "listener");
|
|
@@ -401,71 +208,7 @@ const generateThrottle = () => {
|
|
|
401
208
|
};
|
|
402
209
|
};
|
|
403
210
|
};
|
|
404
|
-
const codes = /* @__PURE__ */ new Map([
|
|
405
|
-
[100, "Continue"],
|
|
406
|
-
[101, "Switching Protocols"],
|
|
407
|
-
[102, "Processing"],
|
|
408
|
-
[103, "Early Hints"],
|
|
409
|
-
[200, "OK"],
|
|
410
|
-
[201, "Created"],
|
|
411
|
-
[202, "Accepted"],
|
|
412
|
-
[203, "Non-Authoritative Information"],
|
|
413
|
-
[204, "No Content"],
|
|
414
|
-
[205, "Reset Content"],
|
|
415
|
-
[206, "Partial Content"],
|
|
416
|
-
[207, "Multi-Status"],
|
|
417
|
-
[208, "Already Reported"],
|
|
418
|
-
[226, "IM Used"],
|
|
419
|
-
[300, "Multiple Choices"],
|
|
420
|
-
[301, "Moved Permanently"],
|
|
421
|
-
[302, "Found"],
|
|
422
|
-
[303, "See Other"],
|
|
423
|
-
[304, "Not Modified"],
|
|
424
|
-
[305, "Use Proxy"],
|
|
425
|
-
[307, "Temporary Redirect"],
|
|
426
|
-
[308, "Permanent Redirect"],
|
|
427
|
-
[400, "Bad Request"],
|
|
428
|
-
[401, "Unauthorized"],
|
|
429
|
-
[402, "Payment Required"],
|
|
430
|
-
[403, "Forbidden"],
|
|
431
|
-
[404, "Not Found"],
|
|
432
|
-
[405, "Method Not Allowed"],
|
|
433
|
-
[406, "Not Acceptable"],
|
|
434
|
-
[407, "Proxy Authentication Required"],
|
|
435
|
-
[408, "Request Timeout"],
|
|
436
|
-
[409, "Conflict"],
|
|
437
|
-
[410, "Gone"],
|
|
438
|
-
[411, "Length Required"],
|
|
439
|
-
[412, "Precondition Failed"],
|
|
440
|
-
[413, "Payload Too Large"],
|
|
441
|
-
[414, "URI Too Long"],
|
|
442
|
-
[415, "Unsupported Media Type"],
|
|
443
|
-
[416, "Range Not Satisfiable"],
|
|
444
|
-
[417, "Expectation Failed"],
|
|
445
|
-
[418, "I'm a Teapot"],
|
|
446
|
-
[421, "Misdirected Request"],
|
|
447
|
-
[422, "Unprocessable Entity"],
|
|
448
|
-
[423, "Locked"],
|
|
449
|
-
[424, "Failed Dependency"],
|
|
450
|
-
[425, "Too Early"],
|
|
451
|
-
[426, "Upgrade Required"],
|
|
452
|
-
[428, "Precondition Required"],
|
|
453
|
-
[429, "Too Many Requests"],
|
|
454
|
-
[431, "Request Header Fields Too Large"],
|
|
455
|
-
[451, "Unavailable For Legal Reasons"],
|
|
456
|
-
[500, "Internal Server Error"],
|
|
457
|
-
[501, "Not Implemented"],
|
|
458
|
-
[502, "Bad Gateway"],
|
|
459
|
-
[503, "Service Unavailable"],
|
|
460
|
-
[504, "Gateway Timeout"],
|
|
461
|
-
[505, "HTTP Version Not Supported"],
|
|
462
|
-
[506, "Variant Also Negotiates"],
|
|
463
|
-
[507, "Insufficient Storage"],
|
|
464
|
-
[508, "Loop Detected"],
|
|
465
|
-
[509, "Bandwidth Limit Exceeded"],
|
|
466
|
-
[510, "Not Extended"],
|
|
467
|
-
[511, "Network Authentication Required"]
|
|
468
|
-
]);
|
|
211
|
+
const codes = /* @__PURE__ */ new Map([[100, "Continue"], [101, "Switching Protocols"], [102, "Processing"], [103, "Early Hints"], [200, "OK"], [201, "Created"], [202, "Accepted"], [203, "Non-Authoritative Information"], [204, "No Content"], [205, "Reset Content"], [206, "Partial Content"], [207, "Multi-Status"], [208, "Already Reported"], [226, "IM Used"], [300, "Multiple Choices"], [301, "Moved Permanently"], [302, "Found"], [303, "See Other"], [304, "Not Modified"], [305, "Use Proxy"], [307, "Temporary Redirect"], [308, "Permanent Redirect"], [400, "Bad Request"], [401, "Unauthorized"], [402, "Payment Required"], [403, "Forbidden"], [404, "Not Found"], [405, "Method Not Allowed"], [406, "Not Acceptable"], [407, "Proxy Authentication Required"], [408, "Request Timeout"], [409, "Conflict"], [410, "Gone"], [411, "Length Required"], [412, "Precondition Failed"], [413, "Payload Too Large"], [414, "URI Too Long"], [415, "Unsupported Media Type"], [416, "Range Not Satisfiable"], [417, "Expectation Failed"], [418, "I'm a Teapot"], [421, "Misdirected Request"], [422, "Unprocessable Entity"], [423, "Locked"], [424, "Failed Dependency"], [425, "Too Early"], [426, "Upgrade Required"], [428, "Precondition Required"], [429, "Too Many Requests"], [431, "Request Header Fields Too Large"], [451, "Unavailable For Legal Reasons"], [500, "Internal Server Error"], [501, "Not Implemented"], [502, "Bad Gateway"], [503, "Service Unavailable"], [504, "Gateway Timeout"], [505, "HTTP Version Not Supported"], [506, "Variant Also Negotiates"], [507, "Insufficient Storage"], [508, "Loop Detected"], [509, "Bandwidth Limit Exceeded"], [510, "Not Extended"], [511, "Network Authentication Required"]]);
|
|
469
212
|
({
|
|
470
213
|
// status code to message map
|
|
471
214
|
message: codes,
|
|
@@ -534,7 +277,10 @@ const _Mathjs = class _Mathjs2 {
|
|
|
534
277
|
};
|
|
535
278
|
__publicField(_Mathjs, "handleMethod", (l2, r2) => {
|
|
536
279
|
const mathjs2 = new _Mathjs();
|
|
537
|
-
const {
|
|
280
|
+
const {
|
|
281
|
+
power,
|
|
282
|
+
amend
|
|
283
|
+
} = mathjs2;
|
|
538
284
|
const pow = power(l2, r2);
|
|
539
285
|
const a2 = amend(l2 * pow);
|
|
540
286
|
const b2 = amend(r2 * pow);
|
|
@@ -586,14 +332,18 @@ class SyncHook {
|
|
|
586
332
|
__publicField(this, "call", (eventName, ...args) => {
|
|
587
333
|
const callbacks = this._events[eventName] || [];
|
|
588
334
|
callbacks.forEach((item) => {
|
|
589
|
-
const {
|
|
335
|
+
const {
|
|
336
|
+
callback
|
|
337
|
+
} = item;
|
|
590
338
|
callback(...args);
|
|
591
339
|
});
|
|
592
340
|
});
|
|
593
341
|
__publicField(this, "callSync", async (eventName, ...args) => {
|
|
594
342
|
const callbacks = this._events[eventName] || [];
|
|
595
343
|
for (const item of callbacks) {
|
|
596
|
-
const {
|
|
344
|
+
const {
|
|
345
|
+
callback
|
|
346
|
+
} = item;
|
|
597
347
|
await callback(...args);
|
|
598
348
|
}
|
|
599
349
|
});
|
|
@@ -609,7 +359,9 @@ class SyncHook {
|
|
|
609
359
|
initialCallback: eventItem
|
|
610
360
|
};
|
|
611
361
|
} else {
|
|
612
|
-
const {
|
|
362
|
+
const {
|
|
363
|
+
callback
|
|
364
|
+
} = eventItem;
|
|
613
365
|
one = {
|
|
614
366
|
name: eventName,
|
|
615
367
|
callback: (...args) => {
|
|
@@ -628,7 +380,9 @@ class SyncHook {
|
|
|
628
380
|
if (typeof eventItem === "function") {
|
|
629
381
|
return item.callback !== eventItem && item.initialCallback !== eventItem;
|
|
630
382
|
} else {
|
|
631
|
-
const {
|
|
383
|
+
const {
|
|
384
|
+
callback
|
|
385
|
+
} = eventItem;
|
|
632
386
|
return item.callback !== callback && item.initialCallback !== callback;
|
|
633
387
|
}
|
|
634
388
|
});
|
package/dist/button.js
CHANGED
package/dist/checkbox.js
CHANGED
package/dist/colorpicker.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./arrow-down-
|
|
1
|
+
import "./arrow-down-BfP__spA.js";
|
|
2
2
|
import "./index-DC5EA657.js";
|
|
3
|
-
import { C, a } from "./index-
|
|
4
|
-
import "./index-
|
|
3
|
+
import { C, a } from "./index-D5ucMSCz.js";
|
|
4
|
+
import "./index-DILUjTXZ.js";
|
|
5
5
|
import "./index-WfFw4LJT.js";
|
|
6
6
|
import "./selectShadowless.js";
|
|
7
|
-
import "./index-
|
|
7
|
+
import "./index-ChCDonf3.js";
|
|
8
8
|
export {
|
|
9
9
|
C as ColorPicker,
|
|
10
10
|
a as default
|
|
@@ -98,16 +98,16 @@ declare const _default: {
|
|
|
98
98
|
click(): void;
|
|
99
99
|
hidePopover(): void;
|
|
100
100
|
showPopover(): void;
|
|
101
|
-
togglePopover(force?: boolean
|
|
102
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions
|
|
103
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions
|
|
104
|
-
removeEventListener<
|
|
105
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions
|
|
106
|
-
mozRequestFullScreen: (options?: FullscreenOptions
|
|
107
|
-
msRequestFullscreen: (options?: FullscreenOptions
|
|
108
|
-
oRequestFullscreen: (options?: FullscreenOptions
|
|
109
|
-
webkitRequestFullscreen: (options?: FullscreenOptions
|
|
110
|
-
webkitEnterFullscreen: (options?: FullscreenOptions
|
|
101
|
+
togglePopover(force?: boolean): boolean;
|
|
102
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
103
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
104
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
105
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
106
|
+
mozRequestFullScreen: (options?: FullscreenOptions) => Promise<void>;
|
|
107
|
+
msRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
108
|
+
oRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
109
|
+
webkitRequestFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
110
|
+
webkitEnterFullscreen: (options?: FullscreenOptions) => Promise<void>;
|
|
111
111
|
readonly attributes: NamedNodeMap;
|
|
112
112
|
readonly classList: DOMTokenList;
|
|
113
113
|
className: string;
|
|
@@ -132,10 +132,10 @@ declare const _default: {
|
|
|
132
132
|
slot: string;
|
|
133
133
|
readonly tagName: string;
|
|
134
134
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
135
|
-
checkVisibility(options?: CheckVisibilityOptions
|
|
136
|
-
closest<
|
|
137
|
-
closest<
|
|
138
|
-
closest<
|
|
135
|
+
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
136
|
+
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
|
|
137
|
+
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
|
|
138
|
+
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
|
|
139
139
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
140
140
|
computedStyleMap(): StylePropertyMapReadOnly;
|
|
141
141
|
getAttribute(qualifiedName: string): string | null;
|
|
@@ -146,10 +146,10 @@ declare const _default: {
|
|
|
146
146
|
getBoundingClientRect(): DOMRect;
|
|
147
147
|
getClientRects(): DOMRectList;
|
|
148
148
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
149
|
-
getElementsByTagName<
|
|
150
|
-
getElementsByTagName<
|
|
151
|
-
getElementsByTagName<
|
|
152
|
-
getElementsByTagName<
|
|
149
|
+
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
150
|
+
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
151
|
+
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
152
|
+
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
153
153
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
154
154
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
155
155
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
@@ -167,21 +167,22 @@ declare const _default: {
|
|
|
167
167
|
removeAttribute(qualifiedName: string): void;
|
|
168
168
|
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
169
169
|
removeAttributeNode(attr: Attr): Attr;
|
|
170
|
-
requestFullscreen(options?: FullscreenOptions
|
|
170
|
+
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
171
171
|
requestPointerLock(): void;
|
|
172
|
-
scroll(options?: ScrollToOptions
|
|
172
|
+
scroll(options?: ScrollToOptions): void;
|
|
173
173
|
scroll(x: number, y: number): void;
|
|
174
|
-
scrollBy(options?: ScrollToOptions
|
|
174
|
+
scrollBy(options?: ScrollToOptions): void;
|
|
175
175
|
scrollBy(x: number, y: number): void;
|
|
176
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions
|
|
177
|
-
scrollTo(options?: ScrollToOptions
|
|
176
|
+
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
177
|
+
scrollTo(options?: ScrollToOptions): void;
|
|
178
178
|
scrollTo(x: number, y: number): void;
|
|
179
179
|
setAttribute(qualifiedName: string, value: string): void;
|
|
180
180
|
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
181
181
|
setAttributeNode(attr: Attr): Attr | null;
|
|
182
182
|
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
183
|
+
setHTMLUnsafe(html: string): void;
|
|
183
184
|
setPointerCapture(pointerId: number): void;
|
|
184
|
-
toggleAttribute(qualifiedName: string, force?: boolean
|
|
185
|
+
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
185
186
|
webkitMatchesSelector(selectors: string): boolean;
|
|
186
187
|
readonly baseURI: string;
|
|
187
188
|
readonly childNodes: NodeListOf<ChildNode>;
|
|
@@ -197,20 +198,20 @@ declare const _default: {
|
|
|
197
198
|
readonly previousSibling: ChildNode | null;
|
|
198
199
|
textContent: string | null;
|
|
199
200
|
appendChild<T extends Node>(node: T): T;
|
|
200
|
-
cloneNode(deep?: boolean
|
|
201
|
+
cloneNode(deep?: boolean): Node;
|
|
201
202
|
compareDocumentPosition(other: Node): number;
|
|
202
203
|
contains(other: Node | null): boolean;
|
|
203
|
-
getRootNode(options?: GetRootNodeOptions
|
|
204
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
204
205
|
hasChildNodes(): boolean;
|
|
205
|
-
insertBefore<
|
|
206
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
206
207
|
isDefaultNamespace(namespace: string | null): boolean;
|
|
207
208
|
isEqualNode(otherNode: Node | null): boolean;
|
|
208
209
|
isSameNode(otherNode: Node | null): boolean;
|
|
209
210
|
lookupNamespaceURI(prefix: string | null): string | null;
|
|
210
211
|
lookupPrefix(namespace: string | null): string | null;
|
|
211
212
|
normalize(): void;
|
|
212
|
-
removeChild<
|
|
213
|
-
replaceChild<
|
|
213
|
+
removeChild<T extends Node>(child: T): T;
|
|
214
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
214
215
|
readonly ELEMENT_NODE: 1;
|
|
215
216
|
readonly ATTRIBUTE_NODE: 2;
|
|
216
217
|
readonly TEXT_NODE: 3;
|
|
@@ -232,6 +233,8 @@ declare const _default: {
|
|
|
232
233
|
dispatchEvent(event: Event): boolean;
|
|
233
234
|
ariaAtomic: string | null;
|
|
234
235
|
ariaAutoComplete: string | null;
|
|
236
|
+
ariaBrailleLabel: string | null;
|
|
237
|
+
ariaBrailleRoleDescription: string | null;
|
|
235
238
|
ariaBusy: string | null;
|
|
236
239
|
ariaChecked: string | null;
|
|
237
240
|
ariaColCount: string | null;
|
|
@@ -269,12 +272,12 @@ declare const _default: {
|
|
|
269
272
|
ariaValueNow: string | null;
|
|
270
273
|
ariaValueText: string | null;
|
|
271
274
|
role: string | null;
|
|
272
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions
|
|
273
|
-
getAnimations(options?: GetAnimationsOptions
|
|
274
|
-
after(...nodes: (
|
|
275
|
-
before(...nodes: (
|
|
275
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
276
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
277
|
+
after(...nodes: (Node | string)[]): void;
|
|
278
|
+
before(...nodes: (Node | string)[]): void;
|
|
276
279
|
remove(): void;
|
|
277
|
-
replaceWith(...nodes: (
|
|
280
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
278
281
|
innerHTML: string;
|
|
279
282
|
readonly nextElementSibling: Element | null;
|
|
280
283
|
readonly previousElementSibling: Element | null;
|
|
@@ -282,19 +285,19 @@ declare const _default: {
|
|
|
282
285
|
readonly children: HTMLCollection;
|
|
283
286
|
readonly firstElementChild: Element | null;
|
|
284
287
|
readonly lastElementChild: Element | null;
|
|
285
|
-
append(...nodes: (
|
|
286
|
-
prepend(...nodes: (
|
|
287
|
-
querySelector<
|
|
288
|
-
querySelector<
|
|
289
|
-
querySelector<
|
|
290
|
-
querySelector<
|
|
291
|
-
querySelector<
|
|
292
|
-
querySelectorAll<
|
|
293
|
-
querySelectorAll<
|
|
294
|
-
querySelectorAll<
|
|
295
|
-
querySelectorAll<
|
|
296
|
-
querySelectorAll<
|
|
297
|
-
replaceChildren(...nodes: (
|
|
288
|
+
append(...nodes: (Node | string)[]): void;
|
|
289
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
290
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
291
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
292
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
293
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
294
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
295
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
296
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
297
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
298
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
299
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
300
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
298
301
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
299
302
|
readonly attributeStyleMap: StylePropertyMap;
|
|
300
303
|
readonly style: CSSStyleDeclaration;
|
|
@@ -365,7 +368,7 @@ declare const _default: {
|
|
|
365
368
|
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
366
369
|
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
367
370
|
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
368
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent
|
|
371
|
+
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
369
372
|
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
370
373
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
371
374
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
@@ -400,10 +403,10 @@ declare const _default: {
|
|
|
400
403
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
401
404
|
autofocus: boolean;
|
|
402
405
|
readonly dataset: DOMStringMap;
|
|
403
|
-
nonce?: string
|
|
406
|
+
nonce?: string;
|
|
404
407
|
tabIndex: number;
|
|
405
408
|
blur(): void;
|
|
406
|
-
focus(options?: FocusOptions
|
|
409
|
+
focus(options?: FocusOptions): void;
|
|
407
410
|
};
|
|
408
411
|
readonly observedAttributes: string[];
|
|
409
412
|
} | undefined;
|