orion-design 0.1.0 → 0.1.2

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