@solar-taro/ui-sun 1.6.3 → 1.6.5

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.d.ts +1 -0
  3. package/index.js +19 -17
  4. package/index11.js +75 -19
  5. package/index12.js +19 -49
  6. package/index13.js +46 -141
  7. package/index14.js +142 -27
  8. package/index15.js +29 -21
  9. package/index16.js +18 -21
  10. package/index17.js +21 -9
  11. package/index18.js +10 -27
  12. package/index19.js +27 -117
  13. package/index20.js +123 -10
  14. package/index21.js +9 -9
  15. package/index22.js +9 -9
  16. package/index23.js +10 -2
  17. package/index24.js +1 -1
  18. package/index25.js +1 -1
  19. package/index26.js +1 -1
  20. package/index27.js +2 -7
  21. package/index28.js +1 -1
  22. package/index29.js +1 -1
  23. package/index30.js +7 -2
  24. package/index31.js +1 -1
  25. package/index32.js +1 -1
  26. package/index33.js +1 -1
  27. package/index34.js +1 -1
  28. package/index35.js +1 -1
  29. package/index36.js +1 -1
  30. package/index37.js +1 -1
  31. package/index38.js +1 -1
  32. package/index39.js +1 -1
  33. package/index40.js +1 -1
  34. package/index41.js +2 -3
  35. package/index42.js +2 -66
  36. package/index43.js +526 -12
  37. package/index44.js +3 -25
  38. package/index45.js +65 -13
  39. package/index46.js +12 -5
  40. package/index47.js +25 -26
  41. package/index48.js +14 -2
  42. package/index49.js +4 -505
  43. package/index50.js +24 -77
  44. package/index51.js +2 -70
  45. package/index52.js +484 -47
  46. package/index53.js +54 -518
  47. package/index54.js +70 -2
  48. package/index55.js +69 -2
  49. package/index56.js +543 -2
  50. package/index57.js +2 -4
  51. package/index59.js +2 -4
  52. package/index60.js +4 -2
  53. package/index62.js +4 -2
  54. package/index64.js +2 -48
  55. package/index65.js +2 -82
  56. package/index66.js +48 -2
  57. package/index67.js +82 -2
  58. package/index68.js +2 -2
  59. package/index69.js +4 -0
  60. package/index70.js +4 -0
  61. package/index71.js +4 -0
  62. package/package.json +1 -1
  63. package/qrcode/index.d.ts +1 -0
  64. package/qrcode/index.scss +9 -0
  65. package/qrcode/index.vue.d.ts +47 -0
  66. package/qrcode/qrcodegen.d.ts +83 -0
package/index64.js CHANGED
@@ -1,50 +1,4 @@
1
- import { commonjsGlobal as B } from "./index47.js";
2
- import { __module as d } from "./index66.js";
3
- import { __require as S } from "./index49.js";
4
- var m;
5
- function w() {
6
- return m ? d.exports : (m = 1, function(p, g) {
7
- (function(v, c) {
8
- p.exports = c(S());
9
- })(B, function(v) {
10
- return function() {
11
- var c = v, u = c.lib, b = u.WordArray, f = u.Hasher, A = c.algo, i = [], x = A.SHA1 = f.extend({
12
- _doReset: function() {
13
- this._hash = new b.init([
14
- 1732584193,
15
- 4023233417,
16
- 2562383102,
17
- 271733878,
18
- 3285377520
19
- ]);
20
- },
21
- _doProcessBlock: function(s, h) {
22
- for (var r = this._hash.words, a = r[0], o = r[1], t = r[2], n = r[3], _ = r[4], e = 0; e < 80; e++) {
23
- if (e < 16)
24
- i[e] = s[h + e] | 0;
25
- else {
26
- var H = i[e - 3] ^ i[e - 8] ^ i[e - 14] ^ i[e - 16];
27
- i[e] = H << 1 | H >>> 31;
28
- }
29
- var l = (a << 5 | a >>> 27) + _ + i[e];
30
- e < 20 ? l += (o & t | ~o & n) + 1518500249 : e < 40 ? l += (o ^ t ^ n) + 1859775393 : e < 60 ? l += (o & t | o & n | t & n) - 1894007588 : l += (o ^ t ^ n) - 899497514, _ = n, n = t, t = o << 30 | o >>> 2, o = a, a = l;
31
- }
32
- r[0] = r[0] + a | 0, r[1] = r[1] + o | 0, r[2] = r[2] + t | 0, r[3] = r[3] + n | 0, r[4] = r[4] + _ | 0;
33
- },
34
- _doFinalize: function() {
35
- var s = this._data, h = s.words, r = this._nDataBytes * 8, a = s.sigBytes * 8;
36
- return h[a >>> 5] |= 128 << 24 - a % 32, h[(a + 64 >>> 9 << 4) + 14] = Math.floor(r / 4294967296), h[(a + 64 >>> 9 << 4) + 15] = r, s.sigBytes = h.length * 4, this._process(), this._hash;
37
- },
38
- clone: function() {
39
- var s = f.clone.call(this);
40
- return s._hash = this._hash.clone(), s;
41
- }
42
- });
43
- c.SHA1 = f._createHelper(x), c.HmacSHA1 = f._createHmacHelper(x);
44
- }(), v.SHA1;
45
- });
46
- }(d), d.exports);
47
- }
1
+ var e = { exports: {} };
48
2
  export {
49
- w as __require
3
+ e as __module
50
4
  };
package/index65.js CHANGED
@@ -1,84 +1,4 @@
1
- import { commonjsGlobal as B } from "./index47.js";
2
- import { __module as s } from "./index67.js";
3
- import { __require as K } from "./index49.js";
4
- var f;
5
- function y() {
6
- return f ? s.exports : (f = 1, function(u, z) {
7
- (function(n, i) {
8
- u.exports = i(K());
9
- })(B, function(n) {
10
- (function() {
11
- var i = n, l = i.lib, v = l.Base, _ = i.enc, m = _.Utf8, p = i.algo;
12
- p.HMAC = v.extend({
13
- /**
14
- * Initializes a newly created HMAC.
15
- *
16
- * @param {Hasher} hasher The hash algorithm to use.
17
- * @param {WordArray|string} key The secret key.
18
- *
19
- * @example
20
- *
21
- * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
22
- */
23
- init: function(e, r) {
24
- e = this._hasher = new e.init(), typeof r == "string" && (r = m.parse(r));
25
- var t = e.blockSize, a = t * 4;
26
- r.sigBytes > a && (r = e.finalize(r)), r.clamp();
27
- for (var c = this._oKey = r.clone(), h = this._iKey = r.clone(), d = c.words, x = h.words, o = 0; o < t; o++)
28
- d[o] ^= 1549556828, x[o] ^= 909522486;
29
- c.sigBytes = h.sigBytes = a, this.reset();
30
- },
31
- /**
32
- * Resets this HMAC to its initial state.
33
- *
34
- * @example
35
- *
36
- * hmacHasher.reset();
37
- */
38
- reset: function() {
39
- var e = this._hasher;
40
- e.reset(), e.update(this._iKey);
41
- },
42
- /**
43
- * Updates this HMAC with a message.
44
- *
45
- * @param {WordArray|string} messageUpdate The message to append.
46
- *
47
- * @return {HMAC} This HMAC instance.
48
- *
49
- * @example
50
- *
51
- * hmacHasher.update('message');
52
- * hmacHasher.update(wordArray);
53
- */
54
- update: function(e) {
55
- return this._hasher.update(e), this;
56
- },
57
- /**
58
- * Finalizes the HMAC computation.
59
- * Note that the finalize operation is effectively a destructive, read-once operation.
60
- *
61
- * @param {WordArray|string} messageUpdate (Optional) A final message update.
62
- *
63
- * @return {WordArray} The HMAC.
64
- *
65
- * @example
66
- *
67
- * var hmac = hmacHasher.finalize();
68
- * var hmac = hmacHasher.finalize('message');
69
- * var hmac = hmacHasher.finalize(wordArray);
70
- */
71
- finalize: function(e) {
72
- var r = this._hasher, t = r.finalize(e);
73
- r.reset();
74
- var a = r.finalize(this._oKey.clone().concat(t));
75
- return a;
76
- }
77
- });
78
- })();
79
- });
80
- }(s), s.exports);
81
- }
1
+ var e = { exports: {} };
82
2
  export {
83
- y as __require
3
+ e as __module
84
4
  };
package/index66.js CHANGED
@@ -1,4 +1,50 @@
1
- var a = { exports: {} };
1
+ import { commonjsGlobal as B } from "./index50.js";
2
+ import { __module as d } from "./index70.js";
3
+ import { __require as S } from "./index52.js";
4
+ var m;
5
+ function w() {
6
+ return m ? d.exports : (m = 1, function(p, g) {
7
+ (function(v, c) {
8
+ p.exports = c(S());
9
+ })(B, function(v) {
10
+ return function() {
11
+ var c = v, u = c.lib, b = u.WordArray, f = u.Hasher, A = c.algo, i = [], x = A.SHA1 = f.extend({
12
+ _doReset: function() {
13
+ this._hash = new b.init([
14
+ 1732584193,
15
+ 4023233417,
16
+ 2562383102,
17
+ 271733878,
18
+ 3285377520
19
+ ]);
20
+ },
21
+ _doProcessBlock: function(s, h) {
22
+ for (var r = this._hash.words, a = r[0], o = r[1], t = r[2], n = r[3], _ = r[4], e = 0; e < 80; e++) {
23
+ if (e < 16)
24
+ i[e] = s[h + e] | 0;
25
+ else {
26
+ var H = i[e - 3] ^ i[e - 8] ^ i[e - 14] ^ i[e - 16];
27
+ i[e] = H << 1 | H >>> 31;
28
+ }
29
+ var l = (a << 5 | a >>> 27) + _ + i[e];
30
+ e < 20 ? l += (o & t | ~o & n) + 1518500249 : e < 40 ? l += (o ^ t ^ n) + 1859775393 : e < 60 ? l += (o & t | o & n | t & n) - 1894007588 : l += (o ^ t ^ n) - 899497514, _ = n, n = t, t = o << 30 | o >>> 2, o = a, a = l;
31
+ }
32
+ r[0] = r[0] + a | 0, r[1] = r[1] + o | 0, r[2] = r[2] + t | 0, r[3] = r[3] + n | 0, r[4] = r[4] + _ | 0;
33
+ },
34
+ _doFinalize: function() {
35
+ var s = this._data, h = s.words, r = this._nDataBytes * 8, a = s.sigBytes * 8;
36
+ return h[a >>> 5] |= 128 << 24 - a % 32, h[(a + 64 >>> 9 << 4) + 14] = Math.floor(r / 4294967296), h[(a + 64 >>> 9 << 4) + 15] = r, s.sigBytes = h.length * 4, this._process(), this._hash;
37
+ },
38
+ clone: function() {
39
+ var s = f.clone.call(this);
40
+ return s._hash = this._hash.clone(), s;
41
+ }
42
+ });
43
+ c.SHA1 = f._createHelper(x), c.HmacSHA1 = f._createHmacHelper(x);
44
+ }(), v.SHA1;
45
+ });
46
+ }(d), d.exports);
47
+ }
2
48
  export {
3
- a as __module
49
+ w as __require
4
50
  };
package/index67.js CHANGED
@@ -1,4 +1,84 @@
1
- var a = { exports: {} };
1
+ import { commonjsGlobal as B } from "./index50.js";
2
+ import { __module as s } from "./index71.js";
3
+ import { __require as K } from "./index52.js";
4
+ var f;
5
+ function y() {
6
+ return f ? s.exports : (f = 1, function(u, z) {
7
+ (function(n, i) {
8
+ u.exports = i(K());
9
+ })(B, function(n) {
10
+ (function() {
11
+ var i = n, l = i.lib, v = l.Base, _ = i.enc, m = _.Utf8, p = i.algo;
12
+ p.HMAC = v.extend({
13
+ /**
14
+ * Initializes a newly created HMAC.
15
+ *
16
+ * @param {Hasher} hasher The hash algorithm to use.
17
+ * @param {WordArray|string} key The secret key.
18
+ *
19
+ * @example
20
+ *
21
+ * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
22
+ */
23
+ init: function(e, r) {
24
+ e = this._hasher = new e.init(), typeof r == "string" && (r = m.parse(r));
25
+ var t = e.blockSize, a = t * 4;
26
+ r.sigBytes > a && (r = e.finalize(r)), r.clamp();
27
+ for (var c = this._oKey = r.clone(), h = this._iKey = r.clone(), d = c.words, x = h.words, o = 0; o < t; o++)
28
+ d[o] ^= 1549556828, x[o] ^= 909522486;
29
+ c.sigBytes = h.sigBytes = a, this.reset();
30
+ },
31
+ /**
32
+ * Resets this HMAC to its initial state.
33
+ *
34
+ * @example
35
+ *
36
+ * hmacHasher.reset();
37
+ */
38
+ reset: function() {
39
+ var e = this._hasher;
40
+ e.reset(), e.update(this._iKey);
41
+ },
42
+ /**
43
+ * Updates this HMAC with a message.
44
+ *
45
+ * @param {WordArray|string} messageUpdate The message to append.
46
+ *
47
+ * @return {HMAC} This HMAC instance.
48
+ *
49
+ * @example
50
+ *
51
+ * hmacHasher.update('message');
52
+ * hmacHasher.update(wordArray);
53
+ */
54
+ update: function(e) {
55
+ return this._hasher.update(e), this;
56
+ },
57
+ /**
58
+ * Finalizes the HMAC computation.
59
+ * Note that the finalize operation is effectively a destructive, read-once operation.
60
+ *
61
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
62
+ *
63
+ * @return {WordArray} The HMAC.
64
+ *
65
+ * @example
66
+ *
67
+ * var hmac = hmacHasher.finalize();
68
+ * var hmac = hmacHasher.finalize('message');
69
+ * var hmac = hmacHasher.finalize(wordArray);
70
+ */
71
+ finalize: function(e) {
72
+ var r = this._hasher, t = r.finalize(e);
73
+ r.reset();
74
+ var a = r.finalize(this._oKey.clone().concat(t));
75
+ return a;
76
+ }
77
+ });
78
+ })();
79
+ });
80
+ }(s), s.exports);
81
+ }
2
82
  export {
3
- a as __module
83
+ y as __require
4
84
  };
package/index68.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- e as default
3
+ e as __module
4
4
  };
package/index69.js ADDED
@@ -0,0 +1,4 @@
1
+ const e = {};
2
+ export {
3
+ e as default
4
+ };
package/index70.js ADDED
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
package/index71.js ADDED
@@ -0,0 +1,4 @@
1
+ var a = { exports: {} };
2
+ export {
3
+ a as __module
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/ui-sun",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -0,0 +1 @@
1
+ export { default as SunQrcode } from './index.vue';
@@ -0,0 +1,9 @@
1
+ .sun-qrcode {
2
+ display: inline-block;
3
+
4
+ > canvas {
5
+ display: inline-block;
6
+ width: 100%;
7
+ height: 100%;
8
+ }
9
+ }
@@ -0,0 +1,47 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ value: string;
3
+ color?: string;
4
+ backgroundColor?: string;
5
+ level?: "M" | "H" | "L" | "Q";
6
+ }>, {
7
+ color: string;
8
+ backgroundColor: string;
9
+ level: string;
10
+ }>>, {
11
+ getDataURL: () => string;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ rendered: () => void;
14
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
+ value: string;
16
+ color?: string;
17
+ backgroundColor?: string;
18
+ level?: "M" | "H" | "L" | "Q";
19
+ }>, {
20
+ color: string;
21
+ backgroundColor: string;
22
+ level: string;
23
+ }>>> & Readonly<{
24
+ onRendered?: (() => any) | undefined;
25
+ }>, {
26
+ color: string;
27
+ backgroundColor: string;
28
+ level: "M" | "H" | "L" | "Q";
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
+ export default _default;
31
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
32
+ type __VLS_TypePropsToRuntimeProps<T> = {
33
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
34
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
35
+ } : {
36
+ type: import('vue').PropType<T[K]>;
37
+ required: true;
38
+ };
39
+ };
40
+ type __VLS_WithDefaults<P, D> = {
41
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
42
+ default: D[K];
43
+ }> : P[K];
44
+ };
45
+ type __VLS_Prettify<T> = {
46
+ [K in keyof T]: T[K];
47
+ } & {};
@@ -0,0 +1,83 @@
1
+ type bit = number;
2
+ type byte = number;
3
+ type int = number;
4
+ export declare class QrCode {
5
+ readonly version: int;
6
+ readonly errorCorrectionLevel: QrCodeEcc;
7
+ static encodeText(text: string, ecl: QrCodeEcc): QrCode;
8
+ static encodeBinary(data: Readonly<Array<byte>>, ecl: QrCodeEcc): QrCode;
9
+ static encodeSegments(segs: Readonly<Array<QrSegment>>, ecl: QrCodeEcc, minVersion?: int, maxVersion?: int, mask?: int, boostEcl?: boolean): QrCode;
10
+ readonly size: int;
11
+ readonly mask: int;
12
+ private readonly modules;
13
+ private readonly isFunction;
14
+ constructor(version: int, errorCorrectionLevel: QrCodeEcc, dataCodewords: Readonly<Array<byte>>, msk: int);
15
+ getModule(x: int, y: int): boolean;
16
+ private drawFunctionPatterns;
17
+ private drawFormatBits;
18
+ private drawVersion;
19
+ private drawFinderPattern;
20
+ private drawAlignmentPattern;
21
+ private setFunctionModule;
22
+ private addEccAndInterleave;
23
+ private drawCodewords;
24
+ private applyMask;
25
+ private getPenaltyScore;
26
+ private getAlignmentPatternPositions;
27
+ private static getNumRawDataModules;
28
+ private static getNumDataCodewords;
29
+ private static reedSolomonComputeDivisor;
30
+ private static reedSolomonComputeRemainder;
31
+ private static reedSolomonMultiply;
32
+ private finderPenaltyCountPatterns;
33
+ private finderPenaltyTerminateAndCount;
34
+ private finderPenaltyAddHistory;
35
+ static readonly MIN_VERSION: int;
36
+ static readonly MAX_VERSION: int;
37
+ private static readonly PENALTY_N1;
38
+ private static readonly PENALTY_N2;
39
+ private static readonly PENALTY_N3;
40
+ private static readonly PENALTY_N4;
41
+ private static readonly ECC_CODEWORDS_PER_BLOCK;
42
+ private static readonly NUM_ERROR_CORRECTION_BLOCKS;
43
+ }
44
+ export declare class QrSegment {
45
+ readonly mode: QrSegmentMode;
46
+ readonly numChars: int;
47
+ private readonly bitData;
48
+ static makeBytes(data: Readonly<Array<byte>>): QrSegment;
49
+ static makeNumeric(digits: string): QrSegment;
50
+ static makeAlphanumeric(text: string): QrSegment;
51
+ static makeSegments(text: string): Array<QrSegment>;
52
+ static makeEci(assignVal: int): QrSegment;
53
+ static isNumeric(text: string): boolean;
54
+ static isAlphanumeric(text: string): boolean;
55
+ constructor(mode: QrSegmentMode, numChars: int, bitData: Array<bit>);
56
+ getData(): Array<bit>;
57
+ static getTotalBits(segs: Readonly<Array<QrSegment>>, version: int): number;
58
+ private static toUtf8ByteArray;
59
+ private static readonly NUMERIC_REGEX;
60
+ private static readonly ALPHANUMERIC_REGEX;
61
+ private static readonly ALPHANUMERIC_CHARSET;
62
+ }
63
+ export declare class QrCodeEcc {
64
+ readonly ordinal: int;
65
+ readonly formatBits: int;
66
+ static readonly LOW: QrCodeEcc;
67
+ static readonly MEDIUM: QrCodeEcc;
68
+ static readonly QUARTILE: QrCodeEcc;
69
+ static readonly HIGH: QrCodeEcc;
70
+ private constructor();
71
+ }
72
+ export declare class QrSegmentMode {
73
+ readonly modeBits: int;
74
+ private readonly numBitsCharCount;
75
+ static readonly NUMERIC: QrSegmentMode;
76
+ static readonly ALPHANUMERIC: QrSegmentMode;
77
+ static readonly BYTE: QrSegmentMode;
78
+ static readonly KANJI: QrSegmentMode;
79
+ static readonly ECI: QrSegmentMode;
80
+ private constructor();
81
+ numCharCountBits(ver: int): int;
82
+ }
83
+ export {};