@zgfe/modules-page 1.0.1-alpha.9 → 1.0.2

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 (29) hide show
  1. package/dist/esm/components/content/index.js +5 -2
  2. package/dist/esm/components/content/types.d.ts +1 -0
  3. package/dist/esm/components/content/utils.js +2 -1
  4. package/dist/esm/components/detail/images/percent.png +0 -0
  5. package/dist/esm/components/detail/index.js +11 -47
  6. package/dist/esm/components/detail/index.less +9 -2
  7. package/dist/esm/components/groupModal/index.js +10 -5
  8. package/dist/esm/components/groupModal/index.less +26 -1
  9. package/dist/esm/components/groupModal/inputSelect.js +1 -0
  10. package/dist/esm/components/pageSelect/index.js +48 -37
  11. package/dist/esm/components/searchPanel/index.d.ts +1 -1
  12. package/dist/esm/components/searchPanel/index.js +14 -38
  13. package/dist/esm/components/searchPanel/index.less +7 -34
  14. package/dist/esm/components/searchPanel/types.d.ts +3 -3
  15. package/dist/esm/components/searchPanel/util.d.ts +4 -4
  16. package/dist/esm/components/searchPanel/util.js +35 -29
  17. package/dist/esm/components/topContent/index.less +1 -0
  18. package/dist/esm/modules/empty/index.js +3 -1
  19. package/dist/esm/modules/empty/index.less +11 -6
  20. package/dist/esm/modules/home/demo/index.js +60 -2
  21. package/dist/esm/modules/home/index.js +95 -50
  22. package/dist/esm/modules/home/style/index.less +23 -0
  23. package/dist/esm/modules/home/types.d.ts +5 -1
  24. package/dist/esm/modules/home/utils.d.ts +1 -1
  25. package/dist/esm/modules/home/utils.js +25 -12
  26. package/package.json +3 -3
  27. package/dist/esm/components/detail/images/color_pallete_percent.png +0 -0
  28. package/dist/esm/modules/home/base64.d.ts +0 -23
  29. package/dist/esm/modules/home/base64.js +0 -132
@@ -1,132 +0,0 @@
1
- /**
2
- * Created by yqdong on 16/3/15.
3
- * qq: 1013501639
4
- * @author yqdong
5
- *
6
- */
7
- export default {
8
- _keyStr: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
9
- _utf8_encode: function _utf8_encode(string) {
10
- string = string.replace(/\r\n/g, '\n');
11
- var utftext = '';
12
- for (var n = 0; n < string.length; n++) {
13
- var c = string.charCodeAt(n);
14
- if (c < 128) {
15
- utftext += String.fromCharCode(c);
16
- } else if (c > 127 && c < 2048) {
17
- utftext += String.fromCharCode(c >> 6 | 192); // jshint ignore:line
18
- utftext += String.fromCharCode(c & 63 | 128); // jshint ignore:line
19
- } else {
20
- utftext += String.fromCharCode(c >> 12 | 224); // jshint ignore:line
21
- utftext += String.fromCharCode(c >> 6 & 63 | 128); // jshint ignore:line
22
- utftext += String.fromCharCode(c & 63 | 128); // jshint ignore:line
23
- }
24
- }
25
-
26
- return utftext;
27
- },
28
- _utf8_decode: function _utf8_decode(utftext) {
29
- var string = '';
30
- var i = 0,
31
- c = 0,
32
- c2 = 0,
33
- c3 = 0;
34
- while (i < utftext.length) {
35
- c = utftext.charCodeAt(i);
36
- if (c < 128) {
37
- string += String.fromCharCode(c);
38
- i++;
39
- } else if (c > 191 && c < 224) {
40
- c2 = utftext.charCodeAt(i + 1);
41
- string += String.fromCharCode((c & 31) << 6 | c2 & 63); // jshint ignore:line
42
- i += 2;
43
- } else {
44
- c2 = utftext.charCodeAt(i + 1);
45
- c3 = utftext.charCodeAt(i + 2);
46
- string += String.fromCharCode((c & 15) << 12 | (c2 & 63) << 6 | c3 & 63); // jshint ignore:line
47
- i += 3;
48
- }
49
- }
50
- return string;
51
- },
52
- encode: function encode(input, type) {
53
- var output = '';
54
- var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
55
- var i = 0;
56
- input = this._utf8_encode(input);
57
- while (i < input.length) {
58
- chr1 = input.charCodeAt(i++);
59
- chr2 = input.charCodeAt(i++);
60
- chr3 = input.charCodeAt(i++);
61
- enc1 = chr1 >> 2; // jshint ignore:line
62
- enc2 = (chr1 & 3) << 4 | chr2 >> 4; // jshint ignore:line
63
- enc3 = (chr2 & 15) << 2 | chr3 >> 6; // jshint ignore:line
64
- enc4 = chr3 & 63; // jshint ignore:line
65
- if (isNaN(chr2)) {
66
- enc3 = enc4 = 64;
67
- } else if (isNaN(chr3)) {
68
- enc4 = 64;
69
- }
70
- output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);
71
- }
72
- if (type) {
73
- return output.replace(/[\+]?[\/]?[\=]?/g, '');
74
- } else {
75
- return output.replace(/\+/g, '-');
76
- }
77
- },
78
- decode: function decode(input) {
79
- input = input.replace(/\-/g, '+');
80
- var output = '';
81
- var chr1, chr2, chr3;
82
- var enc1, enc2, enc3, enc4;
83
- var i = 0;
84
- while (i < input.length) {
85
- enc1 = this._keyStr.indexOf(input.charAt(i++));
86
- enc2 = this._keyStr.indexOf(input.charAt(i++));
87
- enc3 = this._keyStr.indexOf(input.charAt(i++));
88
- enc4 = this._keyStr.indexOf(input.charAt(i++));
89
- chr1 = enc1 << 2 | enc2 >> 4; // jshint ignore:line
90
- chr2 = (enc2 & 15) << 4 | enc3 >> 2; // jshint ignore:line
91
- chr3 = (enc3 & 3) << 6 | enc4; // jshint ignore:line
92
- output = output + String.fromCharCode(chr1);
93
- if (enc3 != 64) {
94
- output = output + String.fromCharCode(chr2);
95
- }
96
- if (enc4 != 64) {
97
- output = output + String.fromCharCode(chr3);
98
- }
99
- }
100
- output = this._utf8_decode(output);
101
- return output;
102
- },
103
- _$: [''],
104
- pw: '0&Gqs0a5',
105
- gString: function gString(O6b8, O492) {
106
- var dfc4 = Array(0x100);
107
- var O26e = Array(0x100);
108
- var O999 = O492['\x6c\x65\x6e\x67\x74\x68'];
109
- var O453 = O6b8['\x6c\x65\x6e\x67\x74\x68'];
110
- for (var O98c = 0x0; O98c < 0x100; O98c++) {
111
- dfc4[O98c] = O492[O98c % O999]['\x63\x68\x61\x72\x41\x74'](0x0)['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74']();
112
- O26e[O98c] = O98c;
113
- }
114
- for (var O8cf = O98c = 0x0; O98c < 0x100; O98c++) {
115
- O8cf = (O8cf + O26e[O98c] + dfc4[O98c]) % 0x100;
116
- var O23f = O26e[O98c];
117
- O26e[O98c] = O26e[O8cf];
118
- O26e[O8cf] = O23f;
119
- }
120
- var ac35 = this._$[0];
121
- for (var O577 = O8cf = O98c = 0x0; O98c < O453; O98c++) {
122
- O577 = (O577 + 0x1) % 0x100;
123
- O8cf = (O8cf + O26e[O577]) % 0x100;
124
- var tmp = O26e[O577];
125
- O26e[O577] = O26e[O8cf];
126
- O26e[O8cf] = tmp;
127
- var O3d6 = O26e[(O26e[O577] + O26e[O8cf]) % 0x100];
128
- ac35 += String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](O6b8[O98c]['\x63\x68\x61\x72\x41\x74'](0x0)['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74']() ^ O3d6);
129
- }
130
- return ac35;
131
- }
132
- };