@zgfe/modules-attribution 1.0.1 → 1.0.2-alpha.0
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.md +4 -2
- package/{dist/esm → es}/components/common/index.js +1 -5
- package/es/components/index.d.ts +5 -0
- package/es/components/index.js +5 -0
- package/es/components/option/index.js +141 -0
- package/{dist/esm → es}/components/option/styles/index.less +1 -1
- package/es/components/option/types.d.ts +5 -0
- package/{dist/esm/components/searchPanel → es/components/searchTime}/index.d.ts +2 -2
- package/es/components/searchTime/index.js +49 -0
- package/es/components/searchTime/styles/index.less +19 -0
- package/{dist/esm/components/searchPanel → es/components/searchTime}/types.d.ts +0 -2
- package/es/components/tableList/index.d.ts +8 -0
- package/es/components/tableList/index.js +32 -0
- package/es/components/tableList/styles/index.less +15 -0
- package/{dist/esm → es}/components/title/index.js +31 -27
- package/{dist/esm → es}/components/title/searchTitle.js +3 -3
- package/{dist/esm → es}/components/title/styles/index.less +19 -8
- package/es/constants/apis.d.ts +6 -0
- package/es/constants/apis.js +6 -0
- package/es/constants/fields.d.ts +7 -0
- package/es/constants/fields.js +32 -0
- package/es/constants/index.d.ts +4 -0
- package/es/constants/index.js +4 -0
- package/{dist/esm → es}/constants/initData.js +0 -6
- package/es/images/empty.png +0 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +2 -0
- package/es/modules/content/index.d.ts +5 -0
- package/es/modules/content/index.js +132 -0
- package/es/modules/content/styles/index.less +7 -0
- package/es/modules/content/types.d.ts +8 -0
- package/es/modules/content/utils.d.ts +2 -0
- package/es/modules/content/utils.js +29 -0
- package/{dist/esm → es}/modules/home/demo/create.d.ts +0 -1
- package/es/modules/home/demo/create.js +23 -0
- package/{dist/esm → es}/modules/home/demo/edit.d.ts +0 -1
- package/es/modules/home/demo/edit.js +129 -0
- package/{dist/esm → es}/modules/home/demo/index.d.ts +0 -1
- package/es/modules/home/demo/index.js +19 -0
- package/{dist/esm → es}/modules/home/demo/scene.d.ts +0 -1
- package/es/modules/home/demo/scene.js +44 -0
- package/{dist/esm → es}/modules/home/index.d.ts +2 -2
- package/{dist/esm → es}/modules/home/index.js +35 -73
- package/es/modules/home/styles/index.less +64 -0
- package/{dist/esm → es}/modules/home/types.d.ts +1 -4
- package/es/modules/searchPanel/components/attributableEvents.d.ts +4 -0
- package/es/modules/searchPanel/components/attributableEvents.js +272 -0
- package/{dist/esm/modules/leftPanel → es/modules/searchPanel}/components/globalAttribute.d.ts +3 -1
- package/{dist/esm/modules/leftPanel → es/modules/searchPanel}/components/globalAttribute.js +15 -17
- package/es/modules/searchPanel/components/index.d.ts +4 -0
- package/es/modules/searchPanel/components/index.js +21 -0
- package/es/modules/searchPanel/components/targetEvent.d.ts +4 -0
- package/es/modules/searchPanel/components/targetEvent.js +161 -0
- package/es/modules/searchPanel/index.d.ts +6 -0
- package/es/modules/searchPanel/index.js +361 -0
- package/es/modules/searchPanel/styles/index.less +202 -0
- package/es/modules/searchPanel/types.d.ts +48 -0
- package/es/modules/searchPanel/utils.d.ts +8 -0
- package/es/modules/searchPanel/utils.js +88 -0
- package/{dist/esm → es}/style/index.less +2 -2
- package/{dist/esm → es}/style/theme.js +0 -2
- package/es/types.d.ts +52 -0
- package/es/types.js +2 -0
- package/{dist/esm → es}/utils/ajaxConfig.js +0 -7
- package/es/utils/request.d.ts +3 -0
- package/es/utils/request.js +5 -0
- package/{dist/esm → es}/utils/util.js +4 -42
- package/package.json +21 -21
- package/dist/esm/components/index.d.ts +0 -6
- package/dist/esm/components/index.js +0 -6
- package/dist/esm/components/option/index.js +0 -199
- package/dist/esm/components/option/types.d.ts +0 -9
- package/dist/esm/components/renderContent/index.d.ts +0 -5
- package/dist/esm/components/renderContent/index.js +0 -92
- package/dist/esm/components/renderContent/styles/index.less +0 -21
- package/dist/esm/components/renderContent/types.d.ts +0 -15
- package/dist/esm/components/searchPanel/index.js +0 -122
- package/dist/esm/components/searchPanel/styles/index.less +0 -38
- package/dist/esm/components/showList/index.d.ts +0 -10
- package/dist/esm/components/showList/index.js +0 -92
- package/dist/esm/components/showList/listPanel.d.ts +0 -9
- package/dist/esm/components/showList/listPanel.js +0 -118
- package/dist/esm/components/showList/styles/index.less +0 -75
- package/dist/esm/components/showList/types.d.ts +0 -9
- package/dist/esm/components/table/index.d.ts +0 -5
- package/dist/esm/components/table/index.js +0 -194
- package/dist/esm/components/table/styles/index.less +0 -12
- package/dist/esm/components/table/types.d.ts +0 -11
- package/dist/esm/constants/apis.d.ts +0 -9
- package/dist/esm/constants/apis.js +0 -9
- package/dist/esm/constants/chart.d.ts +0 -2
- package/dist/esm/constants/chart.js +0 -24
- package/dist/esm/constants/color.d.ts +0 -1
- package/dist/esm/constants/color.js +0 -1
- package/dist/esm/constants/fields.d.ts +0 -218
- package/dist/esm/constants/fields.js +0 -242
- package/dist/esm/constants/index.d.ts +0 -6
- package/dist/esm/constants/index.js +0 -6
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/modules/content/index.d.ts +0 -5
- package/dist/esm/modules/content/index.js +0 -218
- package/dist/esm/modules/content/styles/index.less +0 -7
- package/dist/esm/modules/content/types.d.ts +0 -8
- package/dist/esm/modules/content/types.js +0 -2
- package/dist/esm/modules/content/utiles.d.ts +0 -12
- package/dist/esm/modules/content/utiles.js +0 -231
- package/dist/esm/modules/home/demo/create.js +0 -54
- package/dist/esm/modules/home/demo/edit.js +0 -80
- package/dist/esm/modules/home/demo/index.js +0 -52
- package/dist/esm/modules/home/demo/scene.js +0 -74
- package/dist/esm/modules/home/styles/index.less +0 -37
- package/dist/esm/modules/home/types.js +0 -2
- package/dist/esm/modules/leftPanel/components/panel.d.ts +0 -4
- package/dist/esm/modules/leftPanel/components/panel.js +0 -87
- package/dist/esm/modules/leftPanel/demo/index.d.ts +0 -3
- package/dist/esm/modules/leftPanel/demo/index.js +0 -28
- package/dist/esm/modules/leftPanel/index.d.ts +0 -6
- package/dist/esm/modules/leftPanel/index.js +0 -285
- package/dist/esm/modules/leftPanel/styles/index.less +0 -55
- package/dist/esm/modules/leftPanel/types.d.ts +0 -27
- package/dist/esm/modules/leftPanel/types.js +0 -2
- package/dist/esm/modules/leftPanel/utils.d.ts +0 -5
- package/dist/esm/modules/leftPanel/utils.js +0 -262
- package/dist/esm/types.d.ts +0 -46
- package/dist/esm/types.js +0 -2
- package/dist/esm/utils/base64.d.ts +0 -23
- package/dist/esm/utils/base64.js +0 -132
- package/dist/esm/utils/formData.d.ts +0 -18
- package/dist/esm/utils/formData.js +0 -485
- package/dist/esm/utils/transfer.d.ts +0 -65
- package/dist/esm/utils/transfer.js +0 -206
- /package/{dist/esm → es}/components/common/index.d.ts +0 -0
- /package/{dist/esm → es}/components/common/styles/index.less +0 -0
- /package/{dist/esm → es}/components/option/index.d.ts +0 -0
- /package/{dist/esm → es}/components/option/types.js +0 -0
- /package/{dist/esm/components/renderContent → es/components/searchTime}/types.js +0 -0
- /package/{dist/esm → es}/components/title/index.d.ts +0 -0
- /package/{dist/esm → es}/components/title/searchTitle.d.ts +0 -0
- /package/{dist/esm → es}/components/title/styles/search.less +0 -0
- /package/{dist/esm → es}/components/title/types.d.ts +0 -0
- /package/{dist/esm/components/searchPanel → es/components/title}/types.js +0 -0
- /package/{dist/esm → es}/constants/initData.d.ts +0 -0
- /package/{dist/esm/components/showList → es/modules/content}/types.js +0 -0
- /package/{dist/esm → es}/modules/home/demo/styles/index.less +0 -0
- /package/{dist/esm/components/table → es/modules/home}/types.js +0 -0
- /package/{dist/esm/components/title → es/modules/searchPanel}/types.js +0 -0
- /package/{dist/esm → es}/style/image/noData.png +0 -0
- /package/{dist/esm → es}/style/image/ring.svg +0 -0
- /package/{dist/esm → es}/style/theme.d.ts +0 -0
- /package/{dist/esm → es}/utils/ajaxConfig.d.ts +0 -0
- /package/{dist/esm → es}/utils/util.d.ts +0 -0
package/dist/esm/types.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { TargetConditionTypes, AttrConditionTypes, BizSelectTypes, AttributeSelect } from '@zgfe/business-lib';
|
|
2
|
-
import { DatePickerTypes } from '@zgfe/business-lib/es/datePicker/types';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
export interface SearchValue {
|
|
5
|
-
userGroup?: number[];
|
|
6
|
-
event?: Array<TargetConditionTypes.Value>;
|
|
7
|
-
process?: Array<TargetConditionTypes.Value>;
|
|
8
|
-
targets?: Array<TargetConditionTypes.Value>;
|
|
9
|
-
globalFilters?: AttrConditionTypes.GroupValue;
|
|
10
|
-
globalDimensions?: Array<AttrConditionTypes.ItemValue>;
|
|
11
|
-
chartType?: 'line' | 'bar' | 'map';
|
|
12
|
-
time?: DatePickerTypes.Value;
|
|
13
|
-
}
|
|
14
|
-
export interface SearchData {
|
|
15
|
-
userGroup?: Array<BizSelectTypes.Option>;
|
|
16
|
-
targets: Array<TargetConditionTypes.Value>;
|
|
17
|
-
globalFilters?: AttrConditionTypes.GroupValue;
|
|
18
|
-
globalDimensions?: Array<AttributeSelect.Value>;
|
|
19
|
-
chartType?: 'line' | 'bar' | 'map';
|
|
20
|
-
time?: DatePickerTypes.Value;
|
|
21
|
-
}
|
|
22
|
-
export interface ChartItemProp {
|
|
23
|
-
label?: string;
|
|
24
|
-
value: 'line' | 'bar' | 'map';
|
|
25
|
-
icon?: ReactNode;
|
|
26
|
-
disabled?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export interface ResponseDataProps {
|
|
29
|
-
x_axis?: string[];
|
|
30
|
-
series: SeriesProps[];
|
|
31
|
-
tongbi?: number[];
|
|
32
|
-
huanbi?: number[];
|
|
33
|
-
total?: number[];
|
|
34
|
-
yesterDay?: string[];
|
|
35
|
-
}
|
|
36
|
-
export interface SeriesProps {
|
|
37
|
-
names?: string[];
|
|
38
|
-
values: number[];
|
|
39
|
-
index?: string;
|
|
40
|
-
duration?: TableChildrenProps[];
|
|
41
|
-
}
|
|
42
|
-
export interface TableChildrenProps {
|
|
43
|
-
name: string;
|
|
44
|
-
values: number[];
|
|
45
|
-
}
|
|
46
|
-
export declare const AttributionContext: import("react").Context<any>;
|
package/dist/esm/types.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
_keyStr: string;
|
|
3
|
-
_utf8_encode: (string: string) => string;
|
|
4
|
-
_utf8_decode: (utftext: string) => string;
|
|
5
|
-
encode: (input: string, type?: any) => string;
|
|
6
|
-
decode: (input: string) => string;
|
|
7
|
-
_$: string[];
|
|
8
|
-
pw: string;
|
|
9
|
-
gString: (O6b8: {
|
|
10
|
-
[x: string]: (arg0: number) => {
|
|
11
|
-
(): any;
|
|
12
|
-
new (): any;
|
|
13
|
-
[x: string]: () => any;
|
|
14
|
-
};
|
|
15
|
-
}[], O492: {
|
|
16
|
-
[x: string]: (arg0: number) => {
|
|
17
|
-
(): any;
|
|
18
|
-
new (): any;
|
|
19
|
-
[x: string]: () => any;
|
|
20
|
-
};
|
|
21
|
-
}[]) => string;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
package/dist/esm/utils/base64.js
DELETED
|
@@ -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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AttrConditionTypes } from '@zgfe/business-lib';
|
|
2
|
-
import type { ColumnsType } from 'antd/es/table';
|
|
3
|
-
import { EventGroup, UserProp, EnvProp } from '@zgfe/business-lib/es/attributeSelector/types';
|
|
4
|
-
import { ResponseDataProps, SearchValue } from '../types';
|
|
5
|
-
import '../style/index.less';
|
|
6
|
-
export declare function getColumns(columnData: string[], userGroup: number[], searchData: SearchValue, eventGroupList: EventGroup[] | undefined, userPropList: UserProp[] | undefined, eventEnvList: EnvProp[] | undefined, showList: string[], onShowCallback: Function, onTagCallback: Function, onFilter: Function, onClickToDetailCallback: Function): ColumnsType<any>;
|
|
7
|
-
export declare function getAttrLabel(attrData: AttrConditionTypes.ItemValue, eventGroupList: EventGroup[] | undefined, userPropList: UserProp[] | undefined, eventEnvList: EnvProp[] | undefined): string | undefined;
|
|
8
|
-
export declare function formTableData(originalData: ResponseDataProps, userGroups: number[], attrNum: number, eventGroupList: any[], showList?: string[]): any;
|
|
9
|
-
export declare function mergeRow(source: any[], fieldLen?: number): any;
|
|
10
|
-
export declare function getDefaultShow(source: ResponseDataProps): string[];
|
|
11
|
-
export declare function getShowColor(source: ResponseDataProps, showList: string[]): string[];
|
|
12
|
-
export declare function fetchDrillData(current: any, timeData: string, searchData: SearchValue, userGroupList: any[], eventGroupList: EventGroup[]): {
|
|
13
|
-
userGroup: any[];
|
|
14
|
-
targets: {};
|
|
15
|
-
globalFilters: any;
|
|
16
|
-
time: any;
|
|
17
|
-
duration: any;
|
|
18
|
-
};
|