@zgfe/business-lib 1.0.0-beta.6 → 1.0.3

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 (283) hide show
  1. package/es/analysisLayout/demo/index.js +4 -1
  2. package/es/analysisLayout/index.d.ts +1 -28
  3. package/es/analysisLayout/index.js +38 -48
  4. package/es/analysisLayout/index.less +1 -1
  5. package/es/assets/styles/chunks.less +143 -0
  6. package/es/assets/styles/inner.less +3 -0
  7. package/es/assets/styles/resetAntd.less +398 -0
  8. package/es/assets/styles/variable.less +21 -0
  9. package/es/assets/theme.d.ts +5 -0
  10. package/es/assets/theme.js +4 -0
  11. package/es/attrConditions/components/operateList.d.ts +8 -0
  12. package/es/attrConditions/components/operateList.js +83 -0
  13. package/es/attrConditions/components/stringList.d.ts +9 -0
  14. package/es/attrConditions/components/stringList.js +168 -0
  15. package/es/attrConditions/components/valuesList.d.ts +10 -0
  16. package/es/attrConditions/components/valuesList.js +188 -0
  17. package/es/{attributeSelector/demo/multi.d.ts → attrConditions/demo/group.d.ts} +0 -0
  18. package/es/attrConditions/demo/group.js +82 -0
  19. package/es/{globalAttributes → attrConditions}/demo/index.d.ts +0 -0
  20. package/es/{datePicker/demo/form.js → attrConditions/demo/index.js} +43 -23
  21. package/es/attrConditions/group.d.ts +5 -0
  22. package/es/attrConditions/group.js +183 -0
  23. package/es/attrConditions/index.d.ts +6 -0
  24. package/es/attrConditions/index.js +160 -0
  25. package/es/attrConditions/styles/group.less +49 -0
  26. package/es/attrConditions/styles/index.less +94 -0
  27. package/es/attrConditions/types.d.ts +63 -0
  28. package/es/attrConditions/types.js +19 -0
  29. package/es/attrConditions/utils/operates.d.ts +16 -0
  30. package/es/attrConditions/utils/operates.js +67 -0
  31. package/es/attributeSelector/demo/index.d.ts +3 -0
  32. package/es/attributeSelector/demo/{singleForm.js → index.js} +42 -44
  33. package/es/attributeSelector/index.d.ts +4 -111
  34. package/es/attributeSelector/index.js +88 -543
  35. package/es/attributeSelector/listPanel.d.ts +4 -0
  36. package/es/attributeSelector/listPanel.js +208 -0
  37. package/es/attributeSelector/option.d.ts +15 -0
  38. package/es/attributeSelector/option.js +53 -0
  39. package/es/attributeSelector/styles/index.less +100 -0
  40. package/es/attributeSelector/types.d.ts +79 -0
  41. package/es/attributeSelector/types.js +15 -0
  42. package/es/attributeSelector/util.d.ts +7 -0
  43. package/es/attributeSelector/util.js +69 -0
  44. package/es/chart/demo/pie.js +1 -0
  45. package/es/chart/index.d.ts +2 -96
  46. package/es/chart/index.js +28 -35
  47. package/es/chart/styles/index.less +50 -0
  48. package/es/chart/types.d.ts +46 -0
  49. package/es/chart/{type.js → types.js} +0 -0
  50. package/es/chart/util/{chartConfig.d.ts → chartOptionConfig.d.ts} +4 -35
  51. package/es/chart/util/{chartConfig.js → chartOptionConfig.js} +45 -111
  52. package/es/chart/util/formatData.d.ts +3 -7
  53. package/es/chart/util/formatData.js +47 -26
  54. package/es/chart/util/formatOption.d.ts +2 -1
  55. package/es/chart/util/formatOption.js +22 -9
  56. package/es/chart/util/mapUtil.d.ts +3 -3
  57. package/es/chart/util/mapUtil.js +9 -19
  58. package/es/commonStyle/icon.less +116 -112
  59. package/es/commonStyle/select.less +1 -1
  60. package/es/commonStyle/theme.less +520 -473
  61. package/es/components/iconFont.js +4 -2
  62. package/es/context/index.d.ts +16 -0
  63. package/es/context/index.js +3 -0
  64. package/es/datePicker/datePicker.d.ts +10 -0
  65. package/es/datePicker/datePicker.js +115 -0
  66. package/es/datePicker/demo/index.d.ts +1 -0
  67. package/es/datePicker/demo/index.js +9 -2
  68. package/es/datePicker/index.d.ts +4 -27
  69. package/es/datePicker/index.js +72 -148
  70. package/es/datePicker/styles/index.less +48 -0
  71. package/es/datePicker/types.d.ts +24 -0
  72. package/es/{eventSelector/type.js → datePicker/types.js} +0 -0
  73. package/es/datePicker/utils.d.ts +6 -0
  74. package/es/datePicker/utils.js +70 -0
  75. package/es/dialog/components/itemNode.d.ts +10 -0
  76. package/es/dialog/components/itemNode.js +109 -0
  77. package/es/dialog/components/list.d.ts +3 -13
  78. package/es/dialog/components/list.js +15 -12
  79. package/es/dialog/components/selectToInput.d.ts +4 -48
  80. package/es/dialog/components/selectToInput.js +74 -80
  81. package/es/dialog/components/styles/handle.less +39 -0
  82. package/es/dialog/components/styles/list.less +60 -0
  83. package/es/dialog/components/styles/tab.less +55 -0
  84. package/es/dialog/components/tab.d.ts +3 -7
  85. package/es/dialog/components/tab.js +57 -19
  86. package/es/dialog/data/{chart.d.ts → data.d.ts} +9 -0
  87. package/es/dialog/data/{chart.js → data.js} +11 -0
  88. package/es/dialog/demo/index.d.ts +23 -0
  89. package/es/dialog/demo/index.js +34 -3
  90. package/es/dialog/demo/index2.js +14 -2
  91. package/es/dialog/index.d.ts +4 -97
  92. package/es/dialog/index.js +54 -109
  93. package/es/dialog/styles/index.less +11 -0
  94. package/es/dialog/types.d.ts +77 -0
  95. package/es/{targetConditionGroup/type.js → dialog/types.js} +0 -0
  96. package/es/eventSelector/demo/index.js +26 -44
  97. package/es/eventSelector/index.d.ts +4 -30
  98. package/es/eventSelector/index.js +90 -416
  99. package/es/eventSelector/listPanel.d.ts +4 -0
  100. package/es/eventSelector/listPanel.js +197 -0
  101. package/es/eventSelector/option.d.ts +17 -0
  102. package/es/eventSelector/option.js +54 -0
  103. package/es/eventSelector/styles/index.less +77 -0
  104. package/es/eventSelector/types.d.ts +31 -0
  105. package/es/eventSelector/types.js +1 -0
  106. package/es/index.d.ts +14 -11
  107. package/es/index.js +9 -11
  108. package/es/{attributeSelector/data → mock}/env.d.ts +0 -0
  109. package/es/{attributeSelector/data → mock}/env.js +0 -0
  110. package/es/{attributeSelector/data → mock}/event.d.ts +0 -0
  111. package/es/{attributeSelector/data → mock}/event.js +0 -0
  112. package/es/{attributeSelector/data → mock}/user.d.ts +0 -0
  113. package/es/{attributeSelector/data → mock}/user.js +0 -0
  114. package/es/{multipleSelector → searchInput}/demo/index.d.ts +0 -0
  115. package/es/searchInput/demo/index.js +5 -0
  116. package/es/searchInput/index.d.ts +8 -0
  117. package/es/searchInput/index.js +31 -0
  118. package/es/{attributeSelector/demo/multiForm.d.ts → select/demo/group.d.ts} +0 -0
  119. package/es/{globalAttributes/demo/index.js → select/demo/group.js} +49 -31
  120. package/es/select/demo/index.js +49 -21
  121. package/es/{attributeSelector/demo/single.d.ts → select/demo/multiple.d.ts} +0 -0
  122. package/es/{multipleSelector/demo/index.js → select/demo/multiple.js} +55 -12
  123. package/es/select/handle.d.ts +5 -0
  124. package/es/select/handle.js +119 -0
  125. package/es/select/index.d.ts +4 -49
  126. package/es/select/index.js +168 -122
  127. package/es/select/option.d.ts +4 -0
  128. package/es/select/option.js +59 -0
  129. package/es/select/overlay.d.ts +4 -0
  130. package/es/select/overlay.js +154 -0
  131. package/es/select/styles/handle.less +111 -0
  132. package/es/select/styles/index.less +99 -0
  133. package/es/select/types.d.ts +65 -0
  134. package/es/select/types.js +1 -0
  135. package/es/table/demo/data/table.js +1 -1
  136. package/es/table/demo/index.d.ts +1 -1
  137. package/es/table/demo/index.js +9 -8
  138. package/es/table/demo/index3.js +9 -18
  139. package/es/table/index.d.ts +4 -30
  140. package/es/table/index.js +30 -26
  141. package/es/table/styles/index.less +5 -0
  142. package/es/table/type.d.ts +10 -0
  143. package/es/table/type.js +1 -0
  144. package/es/targetConditionGroup/components/targetDimension.d.ts +8 -0
  145. package/es/targetConditionGroup/components/targetDimension.js +153 -0
  146. package/es/targetConditionGroup/data/operates.d.ts +8 -24
  147. package/es/targetConditionGroup/data/operates.js +26 -69
  148. package/es/targetConditionGroup/demo/group.d.ts +1 -0
  149. package/es/targetConditionGroup/demo/group.js +108 -23
  150. package/es/targetConditionGroup/demo/index.js +34 -34
  151. package/es/targetConditionGroup/demo/styles/index.less +29 -0
  152. package/es/targetConditionGroup/index.d.ts +4 -57
  153. package/es/targetConditionGroup/index.js +177 -274
  154. package/es/targetConditionGroup/styles/index.less +25 -0
  155. package/es/targetConditionGroup/types.d.ts +32 -0
  156. package/es/targetConditionGroup/types.js +1 -0
  157. package/es/targetSelector/demo/index.d.ts +1 -0
  158. package/es/targetSelector/demo/index.js +29 -71
  159. package/es/targetSelector/editBox.d.ts +8 -0
  160. package/es/targetSelector/{components/BizEventNameEditBox.js → editBox.js} +49 -24
  161. package/es/targetSelector/index.d.ts +5 -55
  162. package/es/targetSelector/index.js +103 -214
  163. package/es/targetSelector/optionIcon.d.ts +9 -0
  164. package/es/targetSelector/optionIcon.js +24 -0
  165. package/es/targetSelector/optionMenu.d.ts +7 -0
  166. package/es/targetSelector/optionMenu.js +38 -0
  167. package/es/targetSelector/styles/index.less +88 -0
  168. package/es/targetSelector/types.d.ts +18 -0
  169. package/es/targetSelector/types.js +1 -0
  170. package/es/userCondition/conditionTypeList.d.ts +10 -0
  171. package/es/userCondition/conditionTypeList.js +43 -0
  172. package/es/userCondition/conditionWrap.d.ts +7 -0
  173. package/es/userCondition/conditionWrap.js +18 -0
  174. package/es/userCondition/conditions/eventCondition.d.ts +8 -0
  175. package/es/userCondition/conditions/eventCondition.js +104 -0
  176. package/es/userCondition/conditions/periodCondition.d.ts +11 -0
  177. package/es/userCondition/conditions/periodCondition.js +156 -0
  178. package/es/userCondition/conditions/propCondition.d.ts +11 -0
  179. package/es/userCondition/conditions/propCondition.js +147 -0
  180. package/es/userCondition/conditions/runTimesCondition.d.ts +9 -0
  181. package/es/userCondition/conditions/runTimesCondition.js +78 -0
  182. package/es/userCondition/conditions/styles/eventCondition.less +49 -0
  183. package/es/userCondition/conditions/styles/periodCondition.less +14 -0
  184. package/es/userCondition/conditions/styles/propCondition.less +36 -0
  185. package/es/userCondition/conditions/styles/runTimesCondition.less +16 -0
  186. package/es/{attributeSelector/demo/singleForm.d.ts → userCondition/demo/index.d.ts} +0 -0
  187. package/es/userCondition/demo/index.js +97 -0
  188. package/es/userCondition/index.d.ts +7 -0
  189. package/es/userCondition/index.js +146 -0
  190. package/es/userCondition/orConditions.d.ts +5 -0
  191. package/es/userCondition/orConditions.js +202 -0
  192. package/es/userCondition/relationLabel.d.ts +6 -0
  193. package/es/userCondition/relationLabel.js +12 -0
  194. package/es/userCondition/styles/conditionTypeList.less +31 -0
  195. package/es/userCondition/styles/conditionWrap.less +14 -0
  196. package/es/userCondition/styles/index.less +13 -0
  197. package/es/userCondition/styles/orConditions.less +16 -0
  198. package/es/userCondition/styles/relationLabel.less +18 -0
  199. package/es/userCondition/types.d.ts +79 -0
  200. package/es/userCondition/types.js +1 -0
  201. package/es/userCondition/util.d.ts +2 -0
  202. package/es/userCondition/util.js +54 -0
  203. package/es/{datePicker/demo/form.d.ts → userGroup/demo/group.d.ts} +0 -0
  204. package/es/{targetConditionGroup/demo/form.js → userGroup/demo/group.js} +68 -72
  205. package/es/userGroup/demo/index.d.ts +0 -1
  206. package/es/userGroup/demo/index.js +5 -62
  207. package/es/userGroup/index.d.ts +3 -77
  208. package/es/userGroup/index.js +60 -108
  209. package/es/userGroup/styles/index.less +20 -0
  210. package/es/userGroup/types.d.ts +15 -0
  211. package/es/userGroup/types.js +1 -0
  212. package/es/utils/ajax.js +5 -20
  213. package/es/utils/type.d.ts +42 -44
  214. package/es/utils/util.d.ts +1 -35
  215. package/es/utils/util.js +27 -57
  216. package/package.json +11 -4
  217. package/es/attributeSelector/demo/multi.js +0 -39
  218. package/es/attributeSelector/demo/multiForm.js +0 -64
  219. package/es/attributeSelector/demo/single.js +0 -43
  220. package/es/attributeSelector/group.d.ts +0 -31
  221. package/es/attributeSelector/group.js +0 -225
  222. package/es/attributeSelector/index.less +0 -172
  223. package/es/chart/index.less +0 -38
  224. package/es/chart/style/circle.svg +0 -4
  225. package/es/chart/type.d.ts +0 -22
  226. package/es/datePicker/data.d.ts +0 -9
  227. package/es/datePicker/data.js +0 -65
  228. package/es/datePicker/index.less +0 -364
  229. package/es/dialog/components/style/list.less +0 -59
  230. package/es/dialog/components/style/tab.less +0 -61
  231. package/es/dialog/style/index.less +0 -86
  232. package/es/eventSelector/demo/form.d.ts +0 -2
  233. package/es/eventSelector/demo/form.js +0 -89
  234. package/es/eventSelector/demo/nodata.d.ts +0 -2
  235. package/es/eventSelector/demo/nodata.js +0 -13
  236. package/es/eventSelector/index.less +0 -121
  237. package/es/eventSelector/type.d.ts +0 -41
  238. package/es/globalAttributes/demo/data/env.d.ts +0 -11
  239. package/es/globalAttributes/demo/data/env.js +0 -181
  240. package/es/globalAttributes/demo/data/event.d.ts +0 -237
  241. package/es/globalAttributes/demo/data/event.js +0 -3483
  242. package/es/globalAttributes/demo/data/user.d.ts +0 -22
  243. package/es/globalAttributes/demo/data/user.js +0 -218
  244. package/es/globalAttributes/index.d.ts +0 -47
  245. package/es/globalAttributes/index.js +0 -112
  246. package/es/multipleSelector/index.d.ts +0 -36
  247. package/es/multipleSelector/index.js +0 -131
  248. package/es/multipleSelector/index.less +0 -136
  249. package/es/table/demo/index.less +0 -8
  250. package/es/table/index.less +0 -139
  251. package/es/targetConditionGroup/components/conditionGroup.d.ts +0 -30
  252. package/es/targetConditionGroup/components/conditionGroup.js +0 -112
  253. package/es/targetConditionGroup/components/conditionItem.d.ts +0 -47
  254. package/es/targetConditionGroup/components/conditionItem.js +0 -232
  255. package/es/targetConditionGroup/components/style/group.less +0 -47
  256. package/es/targetConditionGroup/components/style/index.less +0 -16
  257. package/es/targetConditionGroup/demo/data/env.d.ts +0 -11
  258. package/es/targetConditionGroup/demo/data/env.js +0 -181
  259. package/es/targetConditionGroup/demo/data/event.d.ts +0 -237
  260. package/es/targetConditionGroup/demo/data/event.js +0 -3483
  261. package/es/targetConditionGroup/demo/data/user.d.ts +0 -22
  262. package/es/targetConditionGroup/demo/data/user.js +0 -218
  263. package/es/targetConditionGroup/demo/form.d.ts +0 -2
  264. package/es/targetConditionGroup/demo/item.d.ts +0 -2
  265. package/es/targetConditionGroup/demo/item.js +0 -5
  266. package/es/targetConditionGroup/group.d.ts +0 -56
  267. package/es/targetConditionGroup/group.js +0 -204
  268. package/es/targetConditionGroup/index.less +0 -76
  269. package/es/targetConditionGroup/type.d.ts +0 -95
  270. package/es/targetSelector/components/BizCascadeBox.d.ts +0 -34
  271. package/es/targetSelector/components/BizCascadeBox.js +0 -213
  272. package/es/targetSelector/components/BizEventNameEditBox.d.ts +0 -20
  273. package/es/targetSelector/demo/form.d.ts +0 -2
  274. package/es/targetSelector/demo/form.js +0 -133
  275. package/es/targetSelector/demo/nodata.d.ts +0 -2
  276. package/es/targetSelector/demo/nodata.js +0 -13
  277. package/es/targetSelector/index.less +0 -28
  278. package/es/userGroup/demo/cluster.d.ts +0 -3
  279. package/es/userGroup/demo/cluster.js +0 -102
  280. package/es/userGroup/demo/index.less +0 -3
  281. package/es/userGroup/index.less +0 -2
  282. package/es/userGroup/userCluster.d.ts +0 -63
  283. package/es/userGroup/userCluster.js +0 -255
@@ -1,22 +0,0 @@
1
- declare const _default: ({
2
- dimension_sub: string;
3
- value_dict: boolean;
4
- name: string;
5
- id: number;
6
- text: string;
7
- category: string;
8
- type: number;
9
- alias_name: null;
10
- subtype?: undefined;
11
- } | {
12
- dimension_sub: string;
13
- subtype: number;
14
- value_dict: boolean;
15
- name: string;
16
- id: number;
17
- text: string;
18
- category: string;
19
- type: number;
20
- alias_name: null;
21
- })[];
22
- export default _default;
@@ -1,218 +0,0 @@
1
- export default [{
2
- dimension_sub: 'name',
3
- value_dict: false,
4
- name: 'name',
5
- id: 0,
6
- text: '名称',
7
- category: 'fixed',
8
- type: 1,
9
- alias_name: null
10
- }, {
11
- dimension_sub: 'is_anonymous',
12
- value_dict: false,
13
- name: 'is_anonymous',
14
- id: 0,
15
- text: '实名/匿名',
16
- category: 'fixed',
17
- type: 1,
18
- alias_name: null
19
- }, {
20
- dimension_sub: 'app_user_id',
21
- value_dict: false,
22
- name: 'app_user_id',
23
- id: -1,
24
- text: '用户ID',
25
- category: 'fixed',
26
- type: 1,
27
- alias_name: null
28
- }, {
29
- dimension_sub: 'zg_id',
30
- value_dict: false,
31
- name: 'zg_id',
32
- id: 0,
33
- text: '诸葛ID',
34
- category: 'fixed',
35
- type: 2,
36
- alias_name: null
37
- }, {
38
- dimension_sub: 'first_visit_time',
39
- value_dict: false,
40
- name: 'first_visit_time',
41
- id: 0,
42
- text: '首次访问时间',
43
- category: 'fixed',
44
- type: 3,
45
- alias_name: null
46
- }, {
47
- dimension_sub: 'last_visit_time',
48
- value_dict: false,
49
- name: 'last_visit_time',
50
- id: 0,
51
- text: '最后一次访问时间',
52
- category: 'fixed',
53
- type: 3,
54
- alias_name: null
55
- }, {
56
- dimension_sub: 'visit_times',
57
- value_dict: false,
58
- name: 'visit_times',
59
- id: 0,
60
- text: '近30天访问次数',
61
- category: 'fixed',
62
- type: 2,
63
- alias_name: null
64
- }, {
65
- dimension_sub: 'duration',
66
- subtype: 2,
67
- value_dict: false,
68
- name: 'duration',
69
- id: 0,
70
- text: '近30天访问时长',
71
- category: 'fixed',
72
- type: 2,
73
- alias_name: null
74
- }, {
75
- dimension_sub: 'current_country',
76
- value_dict: false,
77
- name: 'current_country',
78
- id: 0,
79
- text: '国家',
80
- category: 'fixed',
81
- type: 1,
82
- alias_name: null
83
- }, {
84
- dimension_sub: 'current_area',
85
- value_dict: false,
86
- name: 'current_area',
87
- id: 0,
88
- text: '省份',
89
- category: 'fixed',
90
- type: 1,
91
- alias_name: null
92
- }, {
93
- dimension_sub: 'current_city',
94
- value_dict: false,
95
- name: 'current_city',
96
- id: 0,
97
- text: '城市',
98
- category: 'fixed',
99
- type: 1,
100
- alias_name: null
101
- }, {
102
- dimension_sub: 'user_referer_url',
103
- value_dict: false,
104
- name: 'user_referer_url',
105
- id: 0,
106
- text: '首次来源URL',
107
- category: 'fixed',
108
- type: 1,
109
- alias_name: null
110
- }, {
111
- dimension_sub: 'first_website',
112
- value_dict: false,
113
- name: 'first_website',
114
- id: 0,
115
- text: '首次来源域名',
116
- category: 'fixed',
117
- type: 1,
118
- alias_name: null
119
- }, {
120
- dimension_sub: 'first_utm_source',
121
- value_dict: false,
122
- name: 'first_utm_source',
123
- id: 0,
124
- text: '首次utm_source',
125
- category: 'fixed',
126
- type: 1,
127
- alias_name: null
128
- }, {
129
- dimension_sub: 'first_utm_medium',
130
- value_dict: false,
131
- name: 'first_utm_medium',
132
- id: 0,
133
- text: '首次utm_medium',
134
- category: 'fixed',
135
- type: 1,
136
- alias_name: null
137
- }, {
138
- dimension_sub: 'first_utm_campaign',
139
- value_dict: false,
140
- name: 'first_utm_campaign',
141
- id: 0,
142
- text: '首次utm_campaign',
143
- category: 'fixed',
144
- type: 1,
145
- alias_name: null
146
- }, {
147
- dimension_sub: 'first_utm_content',
148
- value_dict: false,
149
- name: 'first_utm_content',
150
- id: 0,
151
- text: '首次utm_content',
152
- category: 'fixed',
153
- type: 1,
154
- alias_name: null
155
- }, {
156
- dimension_sub: 'first_utm_term',
157
- value_dict: false,
158
- name: 'first_utm_term',
159
- id: 0,
160
- text: '首次utm_term',
161
- category: 'fixed',
162
- type: 1,
163
- alias_name: null
164
- }, {
165
- dimension_sub: 'current_browser_brand',
166
- value_dict: false,
167
- name: 'current_browser_brand',
168
- id: 0,
169
- text: '浏览器品牌',
170
- category: 'fixed',
171
- type: 1,
172
- alias_name: null
173
- }, {
174
- dimension_sub: 'current_browser_version',
175
- value_dict: false,
176
- name: 'current_browser_version',
177
- id: 0,
178
- text: '浏览器版本',
179
- category: 'fixed',
180
- type: 2,
181
- alias_name: null
182
- }, {
183
- dimension_sub: 'current_os',
184
- value_dict: false,
185
- name: 'current_os',
186
- id: 0,
187
- text: '操作系统',
188
- category: 'fixed',
189
- type: 1,
190
- alias_name: null
191
- }, {
192
- dimension_sub: 'current_ov',
193
- value_dict: false,
194
- name: 'current_ov',
195
- id: 0,
196
- text: '系统版本',
197
- category: 'fixed',
198
- type: 2,
199
- alias_name: null
200
- }, {
201
- dimension_sub: 'current_resolution_h',
202
- value_dict: false,
203
- name: 'current_resolution_h',
204
- id: 0,
205
- text: '屏幕高度',
206
- category: 'fixed',
207
- type: 2,
208
- alias_name: null
209
- }, {
210
- dimension_sub: 'current_resolution_l',
211
- value_dict: false,
212
- name: 'current_resolution_l',
213
- id: 0,
214
- text: '屏幕宽度',
215
- category: 'fixed',
216
- type: 2,
217
- alias_name: null
218
- }];
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import BizScreenItem from '../components/conditionItem';
3
- export default (function () {
4
- return /*#__PURE__*/React.createElement(BizScreenItem, null);
5
- });
@@ -1,56 +0,0 @@
1
- import React from 'react';
2
- import { OptionType, TargetCondition } from './type';
3
- interface BizTargetConditionGrouppProps {
4
- /**
5
- * @description 默认值
6
- * @default -
7
- */
8
- defaultValue?: Array<TargetCondition>;
9
- /**
10
- * @description 值
11
- * @default -
12
- */
13
- value?: Array<TargetCondition>;
14
- /**
15
- * @description 最多几个指标
16
- * @default 10
17
- */
18
- max?: number;
19
- /**
20
- * @description 指标下最多几个属性
21
- * @default 10
22
- */
23
- attrMax?: number;
24
- /**
25
- * @description 数据化配置选项内容
26
- * @description.zh-CN
27
- * @default -
28
- */
29
- options?: OptionType;
30
- /**
31
- * @description 自定义指标下拉框 label、value 的字段
32
- * @description.zh-CN
33
- * @default { label: 'name', value: 'id', groupLabel: 'name', groupValue: 'id' }
34
- */
35
- fieldNames?: {
36
- label: string;
37
- value: string;
38
- groupLabel: string;
39
- groupValue: string;
40
- children: string;
41
- };
42
- /**
43
- * @description 指标删除回调
44
- * @description.zh-CN
45
- * @default
46
- */
47
- onDelete?: () => void;
48
- /**
49
- * @description 改变回调
50
- * @description.zh-CN
51
- * @default
52
- */
53
- onChange?: (data: Array<TargetCondition>) => void;
54
- }
55
- declare const BizTargetConditionGroup: React.FC<BizTargetConditionGrouppProps>;
56
- export default BizTargetConditionGroup;
@@ -1,204 +0,0 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
-
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
-
5
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
8
-
9
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
10
-
11
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
-
13
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
14
-
15
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
16
-
17
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
-
19
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
-
21
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
22
-
23
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
-
25
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
26
-
27
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
-
29
- import React, { useEffect, useState } from 'react';
30
- import BizTargetCondition from '.';
31
- import IconFont from '../components/iconFont';
32
-
33
- var BizTargetConditionGroup = function BizTargetConditionGroup(props) {
34
- var defaultValue = props.defaultValue,
35
- value = props.value,
36
- _props$max = props.max,
37
- max = _props$max === void 0 ? 10 : _props$max,
38
- options = props.options,
39
- _props$fieldNames = props.fieldNames,
40
- fieldNames = _props$fieldNames === void 0 ? {
41
- label: 'event_name',
42
- value: 'event_id',
43
- groupLabel: 'groupName',
44
- groupValue: 'groupId',
45
- children: 'eventList'
46
- } : _props$fieldNames,
47
- onChange = props.onChange,
48
- onDelete = props.onDelete; // 初始值:所有分组-事件概览
49
-
50
- var initData = {
51
- eventId: -2,
52
- eventGroupId: -2,
53
- analysisIndex: 'number'
54
- };
55
-
56
- var _useState = useState([]),
57
- _useState2 = _slicedToArray(_useState, 2),
58
- conditionGroup = _useState2[0],
59
- setConditionGroup = _useState2[1];
60
-
61
- var _useState3 = useState(false),
62
- _useState4 = _slicedToArray(_useState3, 2),
63
- isChange = _useState4[0],
64
- setIsChange = _useState4[1];
65
-
66
- var _useState5 = useState(true),
67
- _useState6 = _slicedToArray(_useState5, 2),
68
- showOverview = _useState6[0],
69
- setShowOverview = _useState6[1];
70
-
71
- var _useState7 = useState(false),
72
- _useState8 = _slicedToArray(_useState7, 2),
73
- cantClick = _useState8[0],
74
- setCantClick = _useState8[1];
75
-
76
- var getInitData = function getInitData() {
77
- return [{
78
- key: Math.random().toString(),
79
- data: initData
80
- }];
81
- }; // 添加指标
82
-
83
-
84
- var addGroup = function addGroup() {
85
- var newData = {
86
- key: Math.random().toString()
87
- };
88
- setIsChange(false);
89
- setConditionGroup(function (group) {
90
- return [].concat(_toConsumableArray(group), [newData]);
91
- });
92
- };
93
-
94
- useEffect(function () {
95
- // 初始化值
96
- var data = defaultValue || value || [];
97
-
98
- if (!data.length) {
99
- setConditionGroup(function () {
100
- return getInitData();
101
- });
102
- setCantClick(true);
103
- setIsChange(true);
104
- } else {
105
- var result = [];
106
-
107
- if (data) {
108
- result = data.map(function (item) {
109
- return {
110
- key: Math.random().toString(),
111
- data: item
112
- };
113
- });
114
- }
115
-
116
- setConditionGroup(result);
117
-
118
- if (data[0].eventId && data[0].eventId < 0) {
119
- setShowOverview(true);
120
- setCantClick(true);
121
- } else {
122
- setCantClick(false);
123
- setShowOverview(false);
124
- }
125
- }
126
- }, [defaultValue, value]);
127
- useEffect(function () {
128
- if (!isChange) return;
129
- var result = [];
130
-
131
- var _iterator = _createForOfIteratorHelper(conditionGroup),
132
- _step;
133
-
134
- try {
135
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
136
- var group = _step.value;
137
-
138
- if (group.data) {
139
- result.push(group.data);
140
- }
141
- }
142
- } catch (err) {
143
- _iterator.e(err);
144
- } finally {
145
- _iterator.f();
146
- }
147
-
148
- onChange && onChange(result); // 当选择非事件概览时,事件概览隐藏
149
- // 选择事件概览时,不能再添加指标
150
-
151
- if (result[0].eventId && result[0].eventId < 0) {
152
- setShowOverview(true);
153
- setCantClick(true);
154
- } else {
155
- setCantClick(false);
156
- setShowOverview(false);
157
- }
158
- }, [conditionGroup]);
159
- return /*#__PURE__*/React.createElement("div", null, conditionGroup.map(function (item, index) {
160
- return /*#__PURE__*/React.createElement(BizTargetCondition, {
161
- className: "biz-group-item",
162
- key: item.key,
163
- value: item.data,
164
- options: options,
165
- fieldNames: fieldNames,
166
- showOverview: showOverview,
167
- onChange: function onChange(data) {
168
- setConditionGroup(function (group) {
169
- group[index].data = _objectSpread({}, data);
170
- return _toConsumableArray(group);
171
- });
172
- setIsChange(true); // onChange && onChange(data)
173
- },
174
- onDelete: function onDelete() {
175
- if (conditionGroup.length <= 1) {
176
- setConditionGroup(function () {
177
- return getInitData();
178
- });
179
- } else {
180
- setConditionGroup(function (group) {
181
- group.splice(index, 1);
182
- return _toConsumableArray(group);
183
- });
184
- }
185
-
186
- setIsChange(true);
187
- }
188
- });
189
- }), conditionGroup.length < max && /*#__PURE__*/React.createElement("div", {
190
- className: "biz-icon-add ".concat(cantClick ? 'biz-disabled' : ''),
191
- onClick: function onClick() {
192
- if (!cantClick) {
193
- addGroup();
194
- }
195
- }
196
- }, /*#__PURE__*/React.createElement(IconFont, {
197
- className: "biz-icon",
198
- type: 'icon-tianjia1'
199
- }), /*#__PURE__*/React.createElement("span", {
200
- className: "biz-icon-text"
201
- }, "\u6DFB\u52A0\u6307\u6807")));
202
- };
203
-
204
- export default BizTargetConditionGroup;
@@ -1,76 +0,0 @@
1
- @import '../commonStyle/select.less';
2
-
3
- .biz-attr-group-container {
4
- display: flex;
5
- .biz-attr-group-content {
6
- flex: 1;
7
- .biz-select-cotainer:nth-last-child(1) {
8
- margin-bottom: 0;
9
- }
10
- &:nth-child(:first-child) {
11
- height: 300px;
12
- }
13
- }
14
- .biz-attr-group-operate {
15
- position: relative;
16
- width: 1px;
17
- margin-right: 16px;
18
- margin-left: 8px;
19
- background: #ecedf0;
20
- .biz-attr-operate {
21
- position: absolute;
22
- top: 50%;
23
- left: 50%;
24
- width: 16px;
25
- border-radius: 3px;
26
- transform: translate(-50%, -50%);
27
- div {
28
- width: 16px;
29
- height: 16px;
30
- font-size: 12px;
31
- line-height: 16px;
32
- text-align: center;
33
- cursor: pointer;
34
- .box-hover();
35
- &:nth-child(:first-child) {
36
- border-radius: 3px 3px 0px 0px;
37
- }
38
- &:nth-last-child(1) {
39
- border-radius: 0px 0px 3px 3px;
40
- }
41
- &.active {
42
- .box-active();
43
- }
44
- }
45
- }
46
- }
47
- }
48
-
49
- .biz-target-condition-container {
50
- display: flex;
51
-
52
- .biz-select-dimision {
53
- flex: none;
54
- width: 114px;
55
- margin-left: 12px;
56
- .ant-select {
57
- width: 100%;
58
- }
59
- .biz-select-content {
60
- height: 32px;
61
- padding: 6px 8px;
62
- }
63
- }
64
- }
65
-
66
- .biz-group-item {
67
- &:not(:last-child) {
68
- margin-bottom: 24px;
69
- }
70
- &:last-child {
71
- margin-bottom: 12px;
72
- }
73
- &:nth-last-child(1) {
74
- margin-bottom: 12px;
75
- }
76
- }
@@ -1,95 +0,0 @@
1
- export interface AttrType {
2
- attrId?: string;
3
- data?: AttrItemType;
4
- [props: string]: any;
5
- }
6
- export interface DataType {
7
- attrs?: string | number | object;
8
- values?: Array<string | number>;
9
- operate?: string | number;
10
- }
11
- export interface AttrItemType {
12
- attr_id?: string | number;
13
- attr_name?: string;
14
- params?: Array<string | number>;
15
- operator?: string | number;
16
- }
17
- export interface ValueType {
18
- operator?: string;
19
- attrs?: Array<AttrType>;
20
- }
21
- interface Option {
22
- groupValue?: string | number;
23
- groupLabel?: string | number;
24
- children?: Event[];
25
- [prop: string]: any;
26
- }
27
- export interface OptionType {
28
- eventOption?: Array<Option>;
29
- attrOption?: Array<object>;
30
- }
31
- export interface AttrItem {
32
- key?: string;
33
- operation?: string;
34
- /**
35
- * 属性类型:事件属性、用户属性、环境属性
36
- */
37
- type?: string;
38
- /**
39
- * 属性名称
40
- */
41
- attrName?: string;
42
- /**
43
- * 属性id
44
- */
45
- attrId?: string | number;
46
- values?: Array<number | string>;
47
- /**
48
- * 1 string 2 number 3 date
49
- */
50
- attrType?: number;
51
- dimension_sub?: string;
52
- dimensionId?: string;
53
- }
54
- export interface AttrGroup {
55
- relation?: string;
56
- conditions?: Array<AttrItem>;
57
- }
58
- export interface TargetCondition {
59
- type?: string;
60
- alias?: string;
61
- filters?: AttrGroup;
62
- analysisIndex?: string | number;
63
- eventId?: string | number;
64
- eventGroupId?: string | number;
65
- key?: string;
66
- aliasName?: string;
67
- operator?: string;
68
- attrs?: Array<AttrType>;
69
- dimension?: string | number;
70
- }
71
- export interface TargetConditionGroup {
72
- /**
73
- * 指标组
74
- */
75
- target?: Array<TargetCondition>;
76
- /**
77
- * -1 整体事件概览、其他:指定事件分组概览
78
- */
79
- eventGroupId?: number;
80
- }
81
- export interface TargetType {
82
- alias?: string;
83
- option?: string | number;
84
- eventId?: string | number;
85
- eventGroupId?: string | number;
86
- }
87
- export interface CurrentType {
88
- operator?: string;
89
- attrs?: Array<AttrType>;
90
- }
91
- export interface AttrObjectType {
92
- dimension_sub?: string;
93
- [prop: string]: any;
94
- }
95
- export {};