@zgfe/modules-attribution 1.0.4 → 1.1.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.
Files changed (152) hide show
  1. package/README.md +4 -2
  2. package/{dist/esm → es}/components/common/index.js +1 -5
  3. package/es/components/index.d.ts +5 -0
  4. package/es/components/index.js +5 -0
  5. package/es/components/option/index.js +141 -0
  6. package/{dist/esm → es}/components/option/styles/index.less +1 -1
  7. package/es/components/option/types.d.ts +5 -0
  8. package/{dist/esm/components/searchPanel → es/components/searchTime}/index.d.ts +2 -2
  9. package/es/components/searchTime/index.js +49 -0
  10. package/es/components/searchTime/styles/index.less +19 -0
  11. package/{dist/esm/components/searchPanel → es/components/searchTime}/types.d.ts +0 -2
  12. package/es/components/tableList/index.d.ts +8 -0
  13. package/es/components/tableList/index.js +32 -0
  14. package/es/components/tableList/styles/index.less +18 -0
  15. package/{dist/esm → es}/components/title/index.js +31 -27
  16. package/{dist/esm → es}/components/title/searchTitle.js +3 -3
  17. package/{dist/esm → es}/components/title/styles/index.less +22 -10
  18. package/es/constants/apis.d.ts +6 -0
  19. package/es/constants/apis.js +6 -0
  20. package/es/constants/fields.d.ts +11 -0
  21. package/es/constants/fields.js +45 -0
  22. package/es/constants/index.d.ts +4 -0
  23. package/es/constants/index.js +4 -0
  24. package/{dist/esm → es}/constants/initData.js +0 -6
  25. package/es/images/empty.png +0 -0
  26. package/es/index.d.ts +3 -0
  27. package/es/index.js +2 -0
  28. package/es/modules/content/index.d.ts +5 -0
  29. package/es/modules/content/index.js +134 -0
  30. package/es/modules/content/styles/index.less +7 -0
  31. package/es/modules/content/types.d.ts +8 -0
  32. package/es/modules/content/utils.d.ts +2 -0
  33. package/es/modules/content/utils.js +29 -0
  34. package/{dist/esm → es}/modules/home/demo/create.d.ts +0 -1
  35. package/es/modules/home/demo/create.js +23 -0
  36. package/{dist/esm → es}/modules/home/demo/edit.d.ts +0 -1
  37. package/es/modules/home/demo/edit.js +129 -0
  38. package/{dist/esm → es}/modules/home/demo/index.d.ts +0 -1
  39. package/es/modules/home/demo/index.js +19 -0
  40. package/{dist/esm → es}/modules/home/demo/scene.d.ts +0 -1
  41. package/es/modules/home/demo/scene.js +44 -0
  42. package/{dist/esm → es}/modules/home/index.d.ts +2 -2
  43. package/{dist/esm → es}/modules/home/index.js +35 -73
  44. package/es/modules/home/styles/index.less +68 -0
  45. package/{dist/esm → es}/modules/home/types.d.ts +1 -4
  46. package/es/modules/searchPanel/components/attributableEvents.d.ts +4 -0
  47. package/es/modules/searchPanel/components/attributableEvents.js +290 -0
  48. package/{dist/esm/modules/leftPanel → es/modules/searchPanel}/components/globalAttribute.d.ts +3 -1
  49. package/{dist/esm/modules/leftPanel → es/modules/searchPanel}/components/globalAttribute.js +19 -19
  50. package/es/modules/searchPanel/components/index.d.ts +4 -0
  51. package/es/modules/searchPanel/components/index.js +21 -0
  52. package/es/modules/searchPanel/components/targetEvent.d.ts +4 -0
  53. package/es/modules/searchPanel/components/targetEvent.js +159 -0
  54. package/es/modules/searchPanel/index.d.ts +6 -0
  55. package/es/modules/searchPanel/index.js +398 -0
  56. package/es/modules/searchPanel/styles/index.less +226 -0
  57. package/es/modules/searchPanel/types.d.ts +49 -0
  58. package/es/modules/searchPanel/utils.d.ts +8 -0
  59. package/es/modules/searchPanel/utils.js +81 -0
  60. package/{dist/esm → es}/style/index.less +2 -2
  61. package/{dist/esm → es}/style/theme.js +0 -2
  62. package/es/types.d.ts +52 -0
  63. package/es/types.js +2 -0
  64. package/{dist/esm → es}/utils/ajaxConfig.js +0 -7
  65. package/es/utils/request.d.ts +3 -0
  66. package/es/utils/request.js +5 -0
  67. package/{dist/esm → es}/utils/util.js +4 -42
  68. package/package.json +21 -21
  69. package/dist/esm/components/index.d.ts +0 -6
  70. package/dist/esm/components/index.js +0 -6
  71. package/dist/esm/components/option/index.js +0 -222
  72. package/dist/esm/components/option/types.d.ts +0 -9
  73. package/dist/esm/components/renderContent/index.d.ts +0 -5
  74. package/dist/esm/components/renderContent/index.js +0 -92
  75. package/dist/esm/components/renderContent/styles/index.less +0 -21
  76. package/dist/esm/components/renderContent/types.d.ts +0 -15
  77. package/dist/esm/components/searchPanel/index.js +0 -124
  78. package/dist/esm/components/searchPanel/styles/index.less +0 -44
  79. package/dist/esm/components/showList/index.d.ts +0 -10
  80. package/dist/esm/components/showList/index.js +0 -92
  81. package/dist/esm/components/showList/listPanel.d.ts +0 -9
  82. package/dist/esm/components/showList/listPanel.js +0 -118
  83. package/dist/esm/components/showList/styles/index.less +0 -75
  84. package/dist/esm/components/showList/types.d.ts +0 -9
  85. package/dist/esm/components/table/index.d.ts +0 -5
  86. package/dist/esm/components/table/index.js +0 -194
  87. package/dist/esm/components/table/styles/index.less +0 -12
  88. package/dist/esm/components/table/types.d.ts +0 -11
  89. package/dist/esm/constants/apis.d.ts +0 -9
  90. package/dist/esm/constants/apis.js +0 -9
  91. package/dist/esm/constants/chart.d.ts +0 -2
  92. package/dist/esm/constants/chart.js +0 -24
  93. package/dist/esm/constants/color.d.ts +0 -1
  94. package/dist/esm/constants/color.js +0 -1
  95. package/dist/esm/constants/fields.d.ts +0 -218
  96. package/dist/esm/constants/fields.js +0 -242
  97. package/dist/esm/constants/index.d.ts +0 -6
  98. package/dist/esm/constants/index.js +0 -6
  99. package/dist/esm/index.d.ts +0 -2
  100. package/dist/esm/index.js +0 -2
  101. package/dist/esm/modules/content/index.d.ts +0 -5
  102. package/dist/esm/modules/content/index.js +0 -218
  103. package/dist/esm/modules/content/styles/index.less +0 -7
  104. package/dist/esm/modules/content/types.d.ts +0 -8
  105. package/dist/esm/modules/content/types.js +0 -2
  106. package/dist/esm/modules/content/utiles.d.ts +0 -12
  107. package/dist/esm/modules/content/utiles.js +0 -231
  108. package/dist/esm/modules/home/demo/create.js +0 -54
  109. package/dist/esm/modules/home/demo/edit.js +0 -80
  110. package/dist/esm/modules/home/demo/index.js +0 -52
  111. package/dist/esm/modules/home/demo/scene.js +0 -74
  112. package/dist/esm/modules/home/styles/index.less +0 -37
  113. package/dist/esm/modules/home/types.js +0 -2
  114. package/dist/esm/modules/leftPanel/components/panel.d.ts +0 -4
  115. package/dist/esm/modules/leftPanel/components/panel.js +0 -92
  116. package/dist/esm/modules/leftPanel/demo/index.d.ts +0 -3
  117. package/dist/esm/modules/leftPanel/demo/index.js +0 -28
  118. package/dist/esm/modules/leftPanel/index.d.ts +0 -6
  119. package/dist/esm/modules/leftPanel/index.js +0 -285
  120. package/dist/esm/modules/leftPanel/styles/index.less +0 -55
  121. package/dist/esm/modules/leftPanel/types.d.ts +0 -27
  122. package/dist/esm/modules/leftPanel/types.js +0 -2
  123. package/dist/esm/modules/leftPanel/utils.d.ts +0 -5
  124. package/dist/esm/modules/leftPanel/utils.js +0 -262
  125. package/dist/esm/types.d.ts +0 -46
  126. package/dist/esm/types.js +0 -2
  127. package/dist/esm/utils/base64.d.ts +0 -23
  128. package/dist/esm/utils/base64.js +0 -132
  129. package/dist/esm/utils/formData.d.ts +0 -18
  130. package/dist/esm/utils/formData.js +0 -485
  131. package/dist/esm/utils/transfer.d.ts +0 -65
  132. package/dist/esm/utils/transfer.js +0 -206
  133. /package/{dist/esm → es}/components/common/index.d.ts +0 -0
  134. /package/{dist/esm → es}/components/common/styles/index.less +0 -0
  135. /package/{dist/esm → es}/components/option/index.d.ts +0 -0
  136. /package/{dist/esm → es}/components/option/types.js +0 -0
  137. /package/{dist/esm/components/renderContent → es/components/searchTime}/types.js +0 -0
  138. /package/{dist/esm → es}/components/title/index.d.ts +0 -0
  139. /package/{dist/esm → es}/components/title/searchTitle.d.ts +0 -0
  140. /package/{dist/esm → es}/components/title/styles/search.less +0 -0
  141. /package/{dist/esm → es}/components/title/types.d.ts +0 -0
  142. /package/{dist/esm/components/searchPanel → es/components/title}/types.js +0 -0
  143. /package/{dist/esm → es}/constants/initData.d.ts +0 -0
  144. /package/{dist/esm/components/showList → es/modules/content}/types.js +0 -0
  145. /package/{dist/esm → es}/modules/home/demo/styles/index.less +0 -0
  146. /package/{dist/esm/components/table → es/modules/home}/types.js +0 -0
  147. /package/{dist/esm/components/title → es/modules/searchPanel}/types.js +0 -0
  148. /package/{dist/esm → es}/style/image/noData.png +0 -0
  149. /package/{dist/esm → es}/style/image/ring.svg +0 -0
  150. /package/{dist/esm → es}/style/theme.d.ts +0 -0
  151. /package/{dist/esm → es}/utils/ajaxConfig.d.ts +0 -0
  152. /package/{dist/esm → es}/utils/util.d.ts +0 -0
@@ -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,2 +0,0 @@
1
- import { createContext } from 'react';
2
- export var AttributionContext = /*#__PURE__*/createContext(null);
@@ -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;
@@ -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
- };