orion-design 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Flex/Col.d.ts +25 -0
- package/dist/components/Flex/Item.d.ts +25 -0
- package/dist/components/Flex/Row.d.ts +25 -0
- package/dist/components/Flex/index.d.ts +10 -0
- package/dist/components/Flex/index.js +151 -0
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Space/index.d.ts +76 -0
- package/dist/components/_util/classNames.d.ts +2 -0
- package/dist/components/_util/classNames.js +31 -0
- package/dist/components/_util/isValid.d.ts +2 -0
- package/dist/components/_util/isValid.js +5 -0
- package/dist/components/_util/props-util/index.d.ts +6 -0
- package/dist/components/_util/props-util/index.js +53 -0
- package/dist/components/_util/props-util/initDefaultProps.d.ts +6 -0
- package/dist/components/_util/props-util/initDefaultProps.js +25 -0
- package/dist/components/_util/type.d.ts +62 -0
- package/dist/components/_util/type.js +66 -0
- package/dist/components/_util/util.d.ts +18 -0
- package/dist/components/_util/util.js +83 -0
- package/dist/components/_util/vue-types/index.d.ts +12 -0
- package/dist/components/_util/vue-types/index.js +473 -0
- package/dist/components/components.d.ts +4 -0
- package/dist/components/components.js +10 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +23 -0
- package/dist/components-O4L3qYfM.js +61 -0
- package/dist/error/OrionError.js +9 -7
- package/dist/index.css +44 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +11 -0
- package/dist/print/LodopFuncs.js +109 -140
- package/dist/print/index.js +204 -199
- package/dist/request/ErrorHandlerChain.js +13 -13
- package/dist/request/RequestFilterChain.js +13 -13
- package/dist/request/ResponseParserChain.js +13 -13
- package/dist/request/disivion/DateSerializer.js +43 -51
- package/dist/request/disivion/DivisionErrorHandler.js +42 -42
- package/dist/request/disivion/DivisionResponseParser.js +22 -18
- package/dist/request/disivion/index.d.ts +21 -1
- package/dist/request/disivion/index.js +174 -153
- package/dist/request/error/BizExceptionResponseError.js +10 -10
- package/dist/request/error/ExceptionResponseError.js +10 -10
- package/dist/request/error/ResponseError.js +11 -9
- package/dist/request/error/SessionExceptionResponseError.js +10 -10
- package/dist/request/index.d.ts +3 -0
- package/dist/request/index.js +3 -2
- package/dist/style/index.d.ts +3 -0
- package/dist/style/index.js +1 -0
- package/dist/utils/DateUtil.js +46 -50
- package/dist/utils/NumberUtil.js +5 -5
- package/dist/utils/cloneDeep.js +1 -2255
- package/dist/utils/delay.js +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/md5.js +215 -271
- package/dist/version/index.d.ts +2 -0
- package/dist/version/index.js +6 -0
- package/dist/version/version.d.ts +2 -0
- package/dist/version/version.js +3 -0
- package/global.d.ts +9 -0
- package/package.json +25 -9
- package/dist/bignumber-upqAL281.js +0 -2907
- package/dist/request/disivion/request.d.ts +0 -21
- package/dist/request/disivion/request.js +0 -476
- package/dist/request/postByOpenNewWindow.d.ts +0 -1
- package/dist/request/postByOpenNewWindow.js +0 -41
package/dist/utils/delay.js
CHANGED
package/dist/utils/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
+
export { cloneDeep } from 'lodash-es';
|
1
2
|
export { default as DateUtil } from './DateUtil.js';
|
2
3
|
export { default as delay } from './delay.js';
|
3
4
|
export { default as md5 } from './md5.js';
|
4
5
|
export { default as NumberUtil } from './NumberUtil.js';
|
5
|
-
export { default as cloneDeep } from './cloneDeep.js';
|
6
6
|
export { default as uuid } from './uuid.js';
|
7
7
|
import 'dayjs';
|
8
8
|
import '../error/OrionError.js';
|
9
|
-
import '
|
9
|
+
import 'decimal.js';
|
package/dist/utils/md5.js
CHANGED
@@ -6,137 +6,105 @@ var md5$1 = {exports: {}};
|
|
6
6
|
|
7
7
|
var crypt = {exports: {}};
|
8
8
|
|
9
|
-
(function() {
|
10
|
-
var base64map
|
11
|
-
|
9
|
+
(function () {
|
10
|
+
var base64map = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
11
|
+
crypt$1 = {
|
12
|
+
// Bit-wise rotation left
|
13
|
+
rotl: function (n, b) {
|
14
|
+
return n << b | n >>> 32 - b;
|
15
|
+
},
|
16
|
+
// Bit-wise rotation right
|
17
|
+
rotr: function (n, b) {
|
18
|
+
return n << 32 - b | n >>> b;
|
19
|
+
},
|
20
|
+
// Swap big-endian to little-endian and vice versa
|
21
|
+
endian: function (n) {
|
22
|
+
// If number given, swap endian
|
23
|
+
if (n.constructor == Number) {
|
24
|
+
return crypt$1.rotl(n, 8) & 0x00FF00FF | crypt$1.rotl(n, 24) & 0xFF00FF00;
|
25
|
+
}
|
12
26
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
hex.push((bytes[i] & 0xF).toString(16));
|
63
|
-
}
|
64
|
-
return hex.join('');
|
65
|
-
},
|
66
|
-
|
67
|
-
// Convert a hex string to a byte array
|
68
|
-
hexToBytes: function(hex) {
|
69
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
70
|
-
bytes.push(parseInt(hex.substr(c, 2), 16));
|
71
|
-
return bytes;
|
72
|
-
},
|
73
|
-
|
74
|
-
// Convert a byte array to a base-64 string
|
75
|
-
bytesToBase64: function(bytes) {
|
76
|
-
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
77
|
-
var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];
|
78
|
-
for (var j = 0; j < 4; j++)
|
79
|
-
if (i * 8 + j * 6 <= bytes.length * 8)
|
80
|
-
base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));
|
81
|
-
else
|
82
|
-
base64.push('=');
|
83
|
-
}
|
84
|
-
return base64.join('');
|
85
|
-
},
|
86
|
-
|
87
|
-
// Convert a base-64 string to a byte array
|
88
|
-
base64ToBytes: function(base64) {
|
89
|
-
// Remove non-base-64 characters
|
90
|
-
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
91
|
-
|
92
|
-
for (var bytes = [], i = 0, imod4 = 0; i < base64.length;
|
93
|
-
imod4 = ++i % 4) {
|
94
|
-
if (imod4 == 0) continue;
|
95
|
-
bytes.push(((base64map.indexOf(base64.charAt(i - 1))
|
96
|
-
& (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))
|
97
|
-
| (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));
|
27
|
+
// Else, assume array and swap all items
|
28
|
+
for (var i = 0; i < n.length; i++) n[i] = crypt$1.endian(n[i]);
|
29
|
+
return n;
|
30
|
+
},
|
31
|
+
// Generate an array of any length of random bytes
|
32
|
+
randomBytes: function (n) {
|
33
|
+
for (var bytes = []; n > 0; n--) bytes.push(Math.floor(Math.random() * 256));
|
34
|
+
return bytes;
|
35
|
+
},
|
36
|
+
// Convert a byte array to big-endian 32-bit words
|
37
|
+
bytesToWords: function (bytes) {
|
38
|
+
for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8) words[b >>> 5] |= bytes[i] << 24 - b % 32;
|
39
|
+
return words;
|
40
|
+
},
|
41
|
+
// Convert big-endian 32-bit words to a byte array
|
42
|
+
wordsToBytes: function (words) {
|
43
|
+
for (var bytes = [], b = 0; b < words.length * 32; b += 8) bytes.push(words[b >>> 5] >>> 24 - b % 32 & 0xFF);
|
44
|
+
return bytes;
|
45
|
+
},
|
46
|
+
// Convert a byte array to a hex string
|
47
|
+
bytesToHex: function (bytes) {
|
48
|
+
for (var hex = [], i = 0; i < bytes.length; i++) {
|
49
|
+
hex.push((bytes[i] >>> 4).toString(16));
|
50
|
+
hex.push((bytes[i] & 0xF).toString(16));
|
51
|
+
}
|
52
|
+
return hex.join('');
|
53
|
+
},
|
54
|
+
// Convert a hex string to a byte array
|
55
|
+
hexToBytes: function (hex) {
|
56
|
+
for (var bytes = [], c = 0; c < hex.length; c += 2) bytes.push(parseInt(hex.substr(c, 2), 16));
|
57
|
+
return bytes;
|
58
|
+
},
|
59
|
+
// Convert a byte array to a base-64 string
|
60
|
+
bytesToBase64: function (bytes) {
|
61
|
+
for (var base64 = [], i = 0; i < bytes.length; i += 3) {
|
62
|
+
var triplet = bytes[i] << 16 | bytes[i + 1] << 8 | bytes[i + 2];
|
63
|
+
for (var j = 0; j < 4; j++) if (i * 8 + j * 6 <= bytes.length * 8) base64.push(base64map.charAt(triplet >>> 6 * (3 - j) & 0x3F));else base64.push('=');
|
64
|
+
}
|
65
|
+
return base64.join('');
|
66
|
+
},
|
67
|
+
// Convert a base-64 string to a byte array
|
68
|
+
base64ToBytes: function (base64) {
|
69
|
+
// Remove non-base-64 characters
|
70
|
+
base64 = base64.replace(/[^A-Z0-9+\/]/ig, '');
|
71
|
+
for (var bytes = [], i = 0, imod4 = 0; i < base64.length; imod4 = ++i % 4) {
|
72
|
+
if (imod4 == 0) continue;
|
73
|
+
bytes.push((base64map.indexOf(base64.charAt(i - 1)) & Math.pow(2, -2 * imod4 + 8) - 1) << imod4 * 2 | base64map.indexOf(base64.charAt(i)) >>> 6 - imod4 * 2);
|
74
|
+
}
|
75
|
+
return bytes;
|
98
76
|
}
|
99
|
-
|
100
|
-
}
|
101
|
-
};
|
102
|
-
|
77
|
+
};
|
103
78
|
crypt.exports = crypt$1;
|
104
79
|
})();
|
105
|
-
|
106
80
|
var cryptExports = crypt.exports;
|
107
81
|
|
108
82
|
var charenc = {
|
109
83
|
// UTF-8 encoding
|
110
84
|
utf8: {
|
111
85
|
// Convert a string to a byte array
|
112
|
-
stringToBytes: function(str) {
|
86
|
+
stringToBytes: function (str) {
|
113
87
|
return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));
|
114
88
|
},
|
115
|
-
|
116
89
|
// Convert a byte array to a string
|
117
|
-
bytesToString: function(bytes) {
|
90
|
+
bytesToString: function (bytes) {
|
118
91
|
return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));
|
119
92
|
}
|
120
93
|
},
|
121
|
-
|
122
94
|
// Binary encoding
|
123
95
|
bin: {
|
124
96
|
// Convert a string to a byte array
|
125
|
-
stringToBytes: function(str) {
|
126
|
-
for (var bytes = [], i = 0; i < str.length; i++)
|
127
|
-
bytes.push(str.charCodeAt(i) & 0xFF);
|
97
|
+
stringToBytes: function (str) {
|
98
|
+
for (var bytes = [], i = 0; i < str.length; i++) bytes.push(str.charCodeAt(i) & 0xFF);
|
128
99
|
return bytes;
|
129
100
|
},
|
130
|
-
|
131
101
|
// Convert a byte array to a string
|
132
|
-
bytesToString: function(bytes) {
|
133
|
-
for (var str = [], i = 0; i < bytes.length; i++)
|
134
|
-
str.push(String.fromCharCode(bytes[i]));
|
102
|
+
bytesToString: function (bytes) {
|
103
|
+
for (var str = [], i = 0; i < bytes.length; i++) str.push(String.fromCharCode(bytes[i]));
|
135
104
|
return str.join('');
|
136
105
|
}
|
137
106
|
}
|
138
107
|
};
|
139
|
-
|
140
108
|
var charenc_1 = charenc;
|
141
109
|
|
142
110
|
/*!
|
@@ -149,179 +117,155 @@ var charenc_1 = charenc;
|
|
149
117
|
// The _isBuffer check is for Safari 5-7 support, because it's missing
|
150
118
|
// Object.prototype.constructor. Remove this eventually
|
151
119
|
var isBuffer_1 = function (obj) {
|
152
|
-
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)
|
120
|
+
return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer);
|
153
121
|
};
|
154
|
-
|
155
|
-
function isBuffer
|
156
|
-
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)
|
122
|
+
function isBuffer(obj) {
|
123
|
+
return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj);
|
157
124
|
}
|
158
125
|
|
159
126
|
// For Node v0.10 support. Remove this eventually.
|
160
|
-
function isSlowBuffer
|
161
|
-
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))
|
127
|
+
function isSlowBuffer(obj) {
|
128
|
+
return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0));
|
162
129
|
}
|
163
130
|
|
164
|
-
(function(){
|
165
|
-
var crypt = cryptExports,
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
if (
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
var m = crypt.bytesToWords(message),
|
185
|
-
l = message.length * 8,
|
186
|
-
a = 1732584193,
|
187
|
-
b = -271733879,
|
188
|
-
c = -1732584194,
|
189
|
-
d = 271733878;
|
190
|
-
|
191
|
-
// Swap endian
|
192
|
-
for (var i = 0; i < m.length; i++) {
|
193
|
-
m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |
|
194
|
-
((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;
|
195
|
-
}
|
196
|
-
|
197
|
-
// Padding
|
198
|
-
m[l >>> 5] |= 0x80 << (l % 32);
|
199
|
-
m[(((l + 64) >>> 9) << 4) + 14] = l;
|
200
|
-
|
201
|
-
// Method shortcuts
|
202
|
-
var FF = md5._ff,
|
203
|
-
GG = md5._gg,
|
204
|
-
HH = md5._hh,
|
205
|
-
II = md5._ii;
|
206
|
-
|
207
|
-
for (var i = 0; i < m.length; i += 16) {
|
208
|
-
|
209
|
-
var aa = a,
|
210
|
-
bb = b,
|
211
|
-
cc = c,
|
212
|
-
dd = d;
|
213
|
-
|
214
|
-
a = FF(a, b, c, d, m[i+ 0], 7, -680876936);
|
215
|
-
d = FF(d, a, b, c, m[i+ 1], 12, -389564586);
|
216
|
-
c = FF(c, d, a, b, m[i+ 2], 17, 606105819);
|
217
|
-
b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);
|
218
|
-
a = FF(a, b, c, d, m[i+ 4], 7, -176418897);
|
219
|
-
d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);
|
220
|
-
c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);
|
221
|
-
b = FF(b, c, d, a, m[i+ 7], 22, -45705983);
|
222
|
-
a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);
|
223
|
-
d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);
|
224
|
-
c = FF(c, d, a, b, m[i+10], 17, -42063);
|
225
|
-
b = FF(b, c, d, a, m[i+11], 22, -1990404162);
|
226
|
-
a = FF(a, b, c, d, m[i+12], 7, 1804603682);
|
227
|
-
d = FF(d, a, b, c, m[i+13], 12, -40341101);
|
228
|
-
c = FF(c, d, a, b, m[i+14], 17, -1502002290);
|
229
|
-
b = FF(b, c, d, a, m[i+15], 22, 1236535329);
|
230
|
-
|
231
|
-
a = GG(a, b, c, d, m[i+ 1], 5, -165796510);
|
232
|
-
d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);
|
233
|
-
c = GG(c, d, a, b, m[i+11], 14, 643717713);
|
234
|
-
b = GG(b, c, d, a, m[i+ 0], 20, -373897302);
|
235
|
-
a = GG(a, b, c, d, m[i+ 5], 5, -701558691);
|
236
|
-
d = GG(d, a, b, c, m[i+10], 9, 38016083);
|
237
|
-
c = GG(c, d, a, b, m[i+15], 14, -660478335);
|
238
|
-
b = GG(b, c, d, a, m[i+ 4], 20, -405537848);
|
239
|
-
a = GG(a, b, c, d, m[i+ 9], 5, 568446438);
|
240
|
-
d = GG(d, a, b, c, m[i+14], 9, -1019803690);
|
241
|
-
c = GG(c, d, a, b, m[i+ 3], 14, -187363961);
|
242
|
-
b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);
|
243
|
-
a = GG(a, b, c, d, m[i+13], 5, -1444681467);
|
244
|
-
d = GG(d, a, b, c, m[i+ 2], 9, -51403784);
|
245
|
-
c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);
|
246
|
-
b = GG(b, c, d, a, m[i+12], 20, -1926607734);
|
247
|
-
|
248
|
-
a = HH(a, b, c, d, m[i+ 5], 4, -378558);
|
249
|
-
d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);
|
250
|
-
c = HH(c, d, a, b, m[i+11], 16, 1839030562);
|
251
|
-
b = HH(b, c, d, a, m[i+14], 23, -35309556);
|
252
|
-
a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);
|
253
|
-
d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);
|
254
|
-
c = HH(c, d, a, b, m[i+ 7], 16, -155497632);
|
255
|
-
b = HH(b, c, d, a, m[i+10], 23, -1094730640);
|
256
|
-
a = HH(a, b, c, d, m[i+13], 4, 681279174);
|
257
|
-
d = HH(d, a, b, c, m[i+ 0], 11, -358537222);
|
258
|
-
c = HH(c, d, a, b, m[i+ 3], 16, -722521979);
|
259
|
-
b = HH(b, c, d, a, m[i+ 6], 23, 76029189);
|
260
|
-
a = HH(a, b, c, d, m[i+ 9], 4, -640364487);
|
261
|
-
d = HH(d, a, b, c, m[i+12], 11, -421815835);
|
262
|
-
c = HH(c, d, a, b, m[i+15], 16, 530742520);
|
263
|
-
b = HH(b, c, d, a, m[i+ 2], 23, -995338651);
|
264
|
-
|
265
|
-
a = II(a, b, c, d, m[i+ 0], 6, -198630844);
|
266
|
-
d = II(d, a, b, c, m[i+ 7], 10, 1126891415);
|
267
|
-
c = II(c, d, a, b, m[i+14], 15, -1416354905);
|
268
|
-
b = II(b, c, d, a, m[i+ 5], 21, -57434055);
|
269
|
-
a = II(a, b, c, d, m[i+12], 6, 1700485571);
|
270
|
-
d = II(d, a, b, c, m[i+ 3], 10, -1894986606);
|
271
|
-
c = II(c, d, a, b, m[i+10], 15, -1051523);
|
272
|
-
b = II(b, c, d, a, m[i+ 1], 21, -2054922799);
|
273
|
-
a = II(a, b, c, d, m[i+ 8], 6, 1873313359);
|
274
|
-
d = II(d, a, b, c, m[i+15], 10, -30611744);
|
275
|
-
c = II(c, d, a, b, m[i+ 6], 15, -1560198380);
|
276
|
-
b = II(b, c, d, a, m[i+13], 21, 1309151649);
|
277
|
-
a = II(a, b, c, d, m[i+ 4], 6, -145523070);
|
278
|
-
d = II(d, a, b, c, m[i+11], 10, -1120210379);
|
279
|
-
c = II(c, d, a, b, m[i+ 2], 15, 718787259);
|
280
|
-
b = II(b, c, d, a, m[i+ 9], 21, -343485551);
|
281
|
-
|
282
|
-
a = (a + aa) >>> 0;
|
283
|
-
b = (b + bb) >>> 0;
|
284
|
-
c = (c + cc) >>> 0;
|
285
|
-
d = (d + dd) >>> 0;
|
286
|
-
}
|
287
|
-
|
288
|
-
return crypt.endian([a, b, c, d]);
|
289
|
-
};
|
290
|
-
|
291
|
-
// Auxiliary functions
|
292
|
-
md5._ff = function (a, b, c, d, x, s, t) {
|
293
|
-
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
294
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
295
|
-
};
|
296
|
-
md5._gg = function (a, b, c, d, x, s, t) {
|
297
|
-
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
298
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
299
|
-
};
|
300
|
-
md5._hh = function (a, b, c, d, x, s, t) {
|
301
|
-
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
302
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
303
|
-
};
|
304
|
-
md5._ii = function (a, b, c, d, x, s, t) {
|
305
|
-
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
306
|
-
return ((n << s) | (n >>> (32 - s))) + b;
|
307
|
-
};
|
308
|
-
|
309
|
-
// Package private blocksize
|
310
|
-
md5._blocksize = 16;
|
311
|
-
md5._digestsize = 16;
|
312
|
-
|
313
|
-
md5$1.exports = function (message, options) {
|
314
|
-
if (message === undefined || message === null)
|
315
|
-
throw new Error('Illegal argument ' + message);
|
316
|
-
|
317
|
-
var digestbytes = crypt.wordsToBytes(md5(message, options));
|
318
|
-
return options && options.asBytes ? digestbytes :
|
319
|
-
options && options.asString ? bin.bytesToString(digestbytes) :
|
320
|
-
crypt.bytesToHex(digestbytes);
|
321
|
-
};
|
322
|
-
|
323
|
-
})();
|
131
|
+
(function () {
|
132
|
+
var crypt = cryptExports,
|
133
|
+
utf8 = charenc_1.utf8,
|
134
|
+
isBuffer = isBuffer_1,
|
135
|
+
bin = charenc_1.bin,
|
136
|
+
// The core
|
137
|
+
md5 = function (message, options) {
|
138
|
+
// Convert to byte array
|
139
|
+
if (message.constructor == String) {
|
140
|
+
if (options && options.encoding === 'binary') message = bin.stringToBytes(message);else message = utf8.stringToBytes(message);
|
141
|
+
} else if (isBuffer(message)) message = Array.prototype.slice.call(message, 0);else if (!Array.isArray(message) && message.constructor !== Uint8Array) message = message.toString();
|
142
|
+
// else, assume byte array already
|
143
|
+
|
144
|
+
var m = crypt.bytesToWords(message),
|
145
|
+
l = message.length * 8,
|
146
|
+
a = 1732584193,
|
147
|
+
b = -271733879,
|
148
|
+
c = -1732584194,
|
149
|
+
d = 271733878;
|
324
150
|
|
151
|
+
// Swap endian
|
152
|
+
for (var i = 0; i < m.length; i++) {
|
153
|
+
m[i] = (m[i] << 8 | m[i] >>> 24) & 0x00FF00FF | (m[i] << 24 | m[i] >>> 8) & 0xFF00FF00;
|
154
|
+
}
|
155
|
+
|
156
|
+
// Padding
|
157
|
+
m[l >>> 5] |= 0x80 << l % 32;
|
158
|
+
m[(l + 64 >>> 9 << 4) + 14] = l;
|
159
|
+
|
160
|
+
// Method shortcuts
|
161
|
+
var FF = md5._ff,
|
162
|
+
GG = md5._gg,
|
163
|
+
HH = md5._hh,
|
164
|
+
II = md5._ii;
|
165
|
+
for (var i = 0; i < m.length; i += 16) {
|
166
|
+
var aa = a,
|
167
|
+
bb = b,
|
168
|
+
cc = c,
|
169
|
+
dd = d;
|
170
|
+
a = FF(a, b, c, d, m[i + 0], 7, -680876936);
|
171
|
+
d = FF(d, a, b, c, m[i + 1], 12, -389564586);
|
172
|
+
c = FF(c, d, a, b, m[i + 2], 17, 606105819);
|
173
|
+
b = FF(b, c, d, a, m[i + 3], 22, -1044525330);
|
174
|
+
a = FF(a, b, c, d, m[i + 4], 7, -176418897);
|
175
|
+
d = FF(d, a, b, c, m[i + 5], 12, 1200080426);
|
176
|
+
c = FF(c, d, a, b, m[i + 6], 17, -1473231341);
|
177
|
+
b = FF(b, c, d, a, m[i + 7], 22, -45705983);
|
178
|
+
a = FF(a, b, c, d, m[i + 8], 7, 1770035416);
|
179
|
+
d = FF(d, a, b, c, m[i + 9], 12, -1958414417);
|
180
|
+
c = FF(c, d, a, b, m[i + 10], 17, -42063);
|
181
|
+
b = FF(b, c, d, a, m[i + 11], 22, -1990404162);
|
182
|
+
a = FF(a, b, c, d, m[i + 12], 7, 1804603682);
|
183
|
+
d = FF(d, a, b, c, m[i + 13], 12, -40341101);
|
184
|
+
c = FF(c, d, a, b, m[i + 14], 17, -1502002290);
|
185
|
+
b = FF(b, c, d, a, m[i + 15], 22, 1236535329);
|
186
|
+
a = GG(a, b, c, d, m[i + 1], 5, -165796510);
|
187
|
+
d = GG(d, a, b, c, m[i + 6], 9, -1069501632);
|
188
|
+
c = GG(c, d, a, b, m[i + 11], 14, 643717713);
|
189
|
+
b = GG(b, c, d, a, m[i + 0], 20, -373897302);
|
190
|
+
a = GG(a, b, c, d, m[i + 5], 5, -701558691);
|
191
|
+
d = GG(d, a, b, c, m[i + 10], 9, 38016083);
|
192
|
+
c = GG(c, d, a, b, m[i + 15], 14, -660478335);
|
193
|
+
b = GG(b, c, d, a, m[i + 4], 20, -405537848);
|
194
|
+
a = GG(a, b, c, d, m[i + 9], 5, 568446438);
|
195
|
+
d = GG(d, a, b, c, m[i + 14], 9, -1019803690);
|
196
|
+
c = GG(c, d, a, b, m[i + 3], 14, -187363961);
|
197
|
+
b = GG(b, c, d, a, m[i + 8], 20, 1163531501);
|
198
|
+
a = GG(a, b, c, d, m[i + 13], 5, -1444681467);
|
199
|
+
d = GG(d, a, b, c, m[i + 2], 9, -51403784);
|
200
|
+
c = GG(c, d, a, b, m[i + 7], 14, 1735328473);
|
201
|
+
b = GG(b, c, d, a, m[i + 12], 20, -1926607734);
|
202
|
+
a = HH(a, b, c, d, m[i + 5], 4, -378558);
|
203
|
+
d = HH(d, a, b, c, m[i + 8], 11, -2022574463);
|
204
|
+
c = HH(c, d, a, b, m[i + 11], 16, 1839030562);
|
205
|
+
b = HH(b, c, d, a, m[i + 14], 23, -35309556);
|
206
|
+
a = HH(a, b, c, d, m[i + 1], 4, -1530992060);
|
207
|
+
d = HH(d, a, b, c, m[i + 4], 11, 1272893353);
|
208
|
+
c = HH(c, d, a, b, m[i + 7], 16, -155497632);
|
209
|
+
b = HH(b, c, d, a, m[i + 10], 23, -1094730640);
|
210
|
+
a = HH(a, b, c, d, m[i + 13], 4, 681279174);
|
211
|
+
d = HH(d, a, b, c, m[i + 0], 11, -358537222);
|
212
|
+
c = HH(c, d, a, b, m[i + 3], 16, -722521979);
|
213
|
+
b = HH(b, c, d, a, m[i + 6], 23, 76029189);
|
214
|
+
a = HH(a, b, c, d, m[i + 9], 4, -640364487);
|
215
|
+
d = HH(d, a, b, c, m[i + 12], 11, -421815835);
|
216
|
+
c = HH(c, d, a, b, m[i + 15], 16, 530742520);
|
217
|
+
b = HH(b, c, d, a, m[i + 2], 23, -995338651);
|
218
|
+
a = II(a, b, c, d, m[i + 0], 6, -198630844);
|
219
|
+
d = II(d, a, b, c, m[i + 7], 10, 1126891415);
|
220
|
+
c = II(c, d, a, b, m[i + 14], 15, -1416354905);
|
221
|
+
b = II(b, c, d, a, m[i + 5], 21, -57434055);
|
222
|
+
a = II(a, b, c, d, m[i + 12], 6, 1700485571);
|
223
|
+
d = II(d, a, b, c, m[i + 3], 10, -1894986606);
|
224
|
+
c = II(c, d, a, b, m[i + 10], 15, -1051523);
|
225
|
+
b = II(b, c, d, a, m[i + 1], 21, -2054922799);
|
226
|
+
a = II(a, b, c, d, m[i + 8], 6, 1873313359);
|
227
|
+
d = II(d, a, b, c, m[i + 15], 10, -30611744);
|
228
|
+
c = II(c, d, a, b, m[i + 6], 15, -1560198380);
|
229
|
+
b = II(b, c, d, a, m[i + 13], 21, 1309151649);
|
230
|
+
a = II(a, b, c, d, m[i + 4], 6, -145523070);
|
231
|
+
d = II(d, a, b, c, m[i + 11], 10, -1120210379);
|
232
|
+
c = II(c, d, a, b, m[i + 2], 15, 718787259);
|
233
|
+
b = II(b, c, d, a, m[i + 9], 21, -343485551);
|
234
|
+
a = a + aa >>> 0;
|
235
|
+
b = b + bb >>> 0;
|
236
|
+
c = c + cc >>> 0;
|
237
|
+
d = d + dd >>> 0;
|
238
|
+
}
|
239
|
+
return crypt.endian([a, b, c, d]);
|
240
|
+
};
|
241
|
+
|
242
|
+
// Auxiliary functions
|
243
|
+
md5._ff = function (a, b, c, d, x, s, t) {
|
244
|
+
var n = a + (b & c | ~b & d) + (x >>> 0) + t;
|
245
|
+
return (n << s | n >>> 32 - s) + b;
|
246
|
+
};
|
247
|
+
md5._gg = function (a, b, c, d, x, s, t) {
|
248
|
+
var n = a + (b & d | c & ~d) + (x >>> 0) + t;
|
249
|
+
return (n << s | n >>> 32 - s) + b;
|
250
|
+
};
|
251
|
+
md5._hh = function (a, b, c, d, x, s, t) {
|
252
|
+
var n = a + (b ^ c ^ d) + (x >>> 0) + t;
|
253
|
+
return (n << s | n >>> 32 - s) + b;
|
254
|
+
};
|
255
|
+
md5._ii = function (a, b, c, d, x, s, t) {
|
256
|
+
var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;
|
257
|
+
return (n << s | n >>> 32 - s) + b;
|
258
|
+
};
|
259
|
+
|
260
|
+
// Package private blocksize
|
261
|
+
md5._blocksize = 16;
|
262
|
+
md5._digestsize = 16;
|
263
|
+
md5$1.exports = function (message, options) {
|
264
|
+
if (message === undefined || message === null) throw new Error('Illegal argument ' + message);
|
265
|
+
var digestbytes = crypt.wordsToBytes(md5(message, options));
|
266
|
+
return options && options.asBytes ? digestbytes : options && options.asString ? bin.bytesToString(digestbytes) : crypt.bytesToHex(digestbytes);
|
267
|
+
};
|
268
|
+
})();
|
325
269
|
var md5Exports = md5$1.exports;
|
326
270
|
var md5 = /*@__PURE__*/getDefaultExportFromCjs(md5Exports);
|
327
271
|
|
package/global.d.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
declare module 'vue' {
|
2
|
+
export interface GlobalComponents {
|
3
|
+
OSpace: typeof import('orion-design')['Space']
|
4
|
+
ORowflex: typeof import('orion-design')['Rowflex']
|
5
|
+
OColflex: typeof import('orion-design')['Colflex']
|
6
|
+
OFlexitem: typeof import('orion-design')['Flexitem']
|
7
|
+
}
|
8
|
+
}
|
9
|
+
export {}
|
package/package.json
CHANGED
@@ -1,22 +1,25 @@
|
|
1
1
|
{
|
2
2
|
"name": "orion-design",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.2",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"type": "module",
|
7
7
|
"types": "dist/index.d.ts",
|
8
8
|
"files": [
|
9
|
-
"dist"
|
9
|
+
"dist",
|
10
|
+
"global.d.ts"
|
10
11
|
],
|
11
12
|
"scripts": {
|
12
|
-
"dev": "rollup -c -w",
|
13
|
-
"build": "npm run clean:dist && rollup -c --environment BUILD:production && npm run build:types",
|
13
|
+
"dev": "npm run clean:dist && npm run build:types && rollup -c -w",
|
14
|
+
"build": "npm run clean:dist && npm run version && rollup -c --environment BUILD:production && npm run build:types",
|
14
15
|
"build:types": "tsc -b ./tsconfig.types.json",
|
15
|
-
"clean:dist": "rimraf dist"
|
16
|
+
"clean:dist": "rimraf dist",
|
17
|
+
"version": "node ./scripts/generate-version.cjs"
|
16
18
|
},
|
17
19
|
"author": "",
|
18
20
|
"license": "ISC",
|
19
21
|
"devDependencies": {
|
22
|
+
"@babel/core": "^7.25.2",
|
20
23
|
"@rollup/plugin-babel": "^6.0.4",
|
21
24
|
"@rollup/plugin-commonjs": "^26.0.1",
|
22
25
|
"@rollup/plugin-json": "^6.1.0",
|
@@ -25,23 +28,36 @@
|
|
25
28
|
"@types/md5": "^2.3.5",
|
26
29
|
"@types/node": "^22.5.5",
|
27
30
|
"@types/uuid": "^10.0.0",
|
31
|
+
"@vue/babel-plugin-jsx": "^1.2.5",
|
32
|
+
"axios": "^1.7.7",
|
33
|
+
"dayjs": "^1.11.13",
|
34
|
+
"decimal.js": "^10.4.3",
|
35
|
+
"element-plus": "^2.8.3",
|
28
36
|
"glob": "^11.0.0",
|
37
|
+
"lodash-es": "^4.17.21",
|
29
38
|
"rimraf": "^6.0.1",
|
30
39
|
"rollup": "^4.21.3",
|
31
40
|
"rollup-plugin-dts": "^6.1.1",
|
41
|
+
"rollup-plugin-sass": "^1.13.2",
|
32
42
|
"rollup-plugin-typescript2": "^0.36.0",
|
33
43
|
"tslib": "^2.7.0",
|
34
|
-
"typescript": "^5.6.2"
|
44
|
+
"typescript": "^5.6.2",
|
45
|
+
"vue": "^3.5.6",
|
46
|
+
"vue-router": "^4.4.5"
|
35
47
|
},
|
36
48
|
"dependencies": {
|
37
|
-
"bignumber.js": "^9.1.2",
|
38
49
|
"js-base64": "^3.7.7",
|
39
50
|
"md5": "^2.3.0",
|
40
|
-
"uuid": "^10.0.0"
|
51
|
+
"uuid": "^10.0.0",
|
52
|
+
"vue-types": "^5.1.3"
|
41
53
|
},
|
42
54
|
"peerDependencies": {
|
43
55
|
"axios": "^1.7.7",
|
44
56
|
"dayjs": "^1.11.13",
|
45
|
-
"
|
57
|
+
"decimal.js": "^10.4.3",
|
58
|
+
"element-plus": "^2.8.3",
|
59
|
+
"lodash-es": "^4.17.21",
|
60
|
+
"vue": "^3.0.0",
|
61
|
+
"vue-router": "^4.4.5"
|
46
62
|
}
|
47
63
|
}
|