@zgfe/modules-interval 1.0.23-zhongyuan.1 → 1.0.23-zhongyuan.10

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 (31) hide show
  1. package/dist/esm/components/eventFilter/index.js +6 -5
  2. package/dist/esm/components/renderContent/styles/index.css +32 -0
  3. package/dist/esm/components/renderContent/styles/index.less +37 -36
  4. package/dist/esm/components/searchPanel/index.js +6 -1
  5. package/dist/esm/components/table/index.js +3 -2
  6. package/dist/esm/constants/code.d.ts +13 -0
  7. package/dist/esm/constants/code.js +13 -0
  8. package/dist/esm/modules/chart/customTooltip.js +5 -3
  9. package/dist/esm/modules/chart/customTooltip1.d.ts +7 -0
  10. package/dist/esm/modules/chart/customTooltip1.js +46 -0
  11. package/dist/esm/modules/chart/index.css +52 -0
  12. package/dist/esm/modules/chart/index.js +19 -8
  13. package/dist/esm/modules/chart/index.less +58 -58
  14. package/dist/esm/modules/chart/intervalChart copy.d.ts +4 -0
  15. package/dist/esm/modules/chart/intervalChart copy.js +299 -0
  16. package/dist/esm/modules/chart/intervalChart.js +321 -35
  17. package/dist/esm/modules/chart/types.d.ts +5 -0
  18. package/dist/esm/modules/content/index.js +50 -20
  19. package/dist/esm/modules/content/utils.d.ts +0 -1
  20. package/dist/esm/modules/content/utils.js +3 -4
  21. package/dist/esm/modules/home/demo/create.js +5 -3
  22. package/dist/esm/modules/home/demo/edit.js +132 -34
  23. package/dist/esm/modules/home/demo/index.js +1 -1
  24. package/dist/esm/modules/home/demo/scene.js +1 -1
  25. package/dist/esm/modules/home/index.js +8 -1
  26. package/dist/esm/modules/home/types.d.ts +0 -1
  27. package/dist/esm/modules/topPanel/index.js +39 -29
  28. package/dist/esm/modules/topPanel/styles/index.less +219 -219
  29. package/dist/esm/modules/topPanel/types.d.ts +1 -0
  30. package/dist/esm/utils/formData.js +31 -28
  31. package/package.json +3 -3
@@ -1,219 +1,219 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
-
3
- .top-panel-interval {
4
- &-form-botton-box {
5
- display: flex;
6
- justify-content: flex-end;
7
- margin-top: 24px;
8
- margin-right: 24px;
9
-
10
- > :nth-child(1) {
11
- margin-right: 16px;
12
- color: #fff;
13
- background-color: #29bd52;
14
- border-color: #29bd52;
15
- }
16
- }
17
-
18
- &-label-hasIcon {
19
- .bsicon {
20
- cursor: pointer;
21
- }
22
- }
23
- }
24
-
25
- .panel-form-interval {
26
- .ant-form-item-explain-error {
27
- margin-left: 24px;
28
- }
29
- &-item {
30
- .ant-form-item-label {
31
- padding-left: 24px !important;
32
- font-weight: 500;
33
- }
34
- .ant-form-item-control-input-content {
35
- height: 40px;
36
- padding: 0 24px !important;
37
- line-height: 40px !important;
38
- .biz-select-handle {
39
- display: inline-block;
40
- width: 208px;
41
- }
42
- span.ant-radio + * {
43
- padding-right: 40px;
44
- padding-left: 12px;
45
- }
46
- &:hover {
47
- background-color: #e8efff;
48
- }
49
- }
50
- }
51
- .interval-item {
52
- margin-top: -2px;
53
- .ant-space-vertical {
54
- gap: 0px !important;
55
- width: 100%;
56
- .ant-space-item:nth-child(1) {
57
- padding: 0 12px;
58
- }
59
-
60
- .ant-space-item:nth-child(2) {
61
- display: flex;
62
- align-items: center;
63
- height: 42px;
64
- margin-top: 4px;
65
- padding: 0 12px;
66
- }
67
-
68
- .ant-space-item:nth-child(2):hover {
69
- background-color: #e8efff;
70
- }
71
- }
72
- }
73
-
74
- .biz-user-group-header {
75
- padding: 0;
76
- background-color: #fff;
77
- }
78
-
79
- .space-item {
80
- .ant-space-item {
81
- .biz-user-group {
82
- width: 100%;
83
- min-width: 208px;
84
- }
85
- }
86
-
87
- .ant-space-horizontal .ant-space-item:nth-child(2) .tianjia {
88
- display: none;
89
- }
90
- }
91
-
92
- .collapseRefs {
93
- .ant-form-item {
94
- margin-bottom: 16px;
95
- }
96
-
97
- .ant-form-item-control-input {
98
- display: flex;
99
- align-items: center;
100
- }
101
-
102
- .ant-form-item-label {
103
- padding-left: 24px;
104
- font-weight: 500;
105
- }
106
-
107
- .interval-box {
108
- > div:nth-child(1) {
109
- padding: 4px 24px;
110
- }
111
-
112
- > div:nth-child(1):hover {
113
- background-color: #e8efff;
114
- }
115
-
116
- .biz-attr-condition-group-handle {
117
- margin-right: 0;
118
- margin-left: 32px;
119
- }
120
-
121
- .biz-attr-condition-group-container {
122
- gap: 0px !important;
123
- }
124
-
125
- .biz-attr-condition-group-container-item {
126
- max-width: calc(100% + 32px) !important;
127
- margin-top: 4px;
128
- padding: 4px 56px;
129
- .ant-space-item {
130
- width: auto;
131
- max-width: auto;
132
- margin-left: 0px;
133
- padding: 0;
134
- }
135
- }
136
-
137
- .ant-space-item:hover {
138
- background-color: #e8efff;
139
- }
140
- }
141
-
142
- .dimension-interval {
143
- .ant-form-item-control-input {
144
- padding: 4px 24px;
145
- }
146
-
147
- .ant-form-item-control-input:hover {
148
- background-color: #e8efff;
149
- }
150
- }
151
- }
152
-
153
- .biz-event-select {
154
- width: 208px;
155
- }
156
-
157
- > .ant-form-item {
158
- margin-bottom: 16px;
159
- .biz-user-group-val {
160
- color: #021429;
161
- }
162
- }
163
-
164
- .associated {
165
- margin-top: -10px;
166
- margin-bottom: 12px;
167
-
168
- .qingchu {
169
- color: #9aa1a9;
170
- }
171
-
172
- .qingchu:hover {
173
- color: @error-color;
174
- }
175
-
176
- .ant-form-item-control-input {
177
- padding: 4px 24px;
178
-
179
- .ant-form-item-control-input {
180
- padding: 0;
181
- }
182
-
183
- .ant-form-item {
184
- margin-bottom: 0;
185
- }
186
- }
187
-
188
- .ant-form-item-control-input:hover {
189
- background-color: #e8efff;
190
- }
191
-
192
- .associated-link {
193
- display: block;
194
- line-height: 32px;
195
- }
196
-
197
- .ant-form-item-row {
198
- flex-direction: inherit;
199
- }
200
-
201
- .ant-form-item-control-input-content {
202
- display: flex;
203
- gap: 12px;
204
- }
205
-
206
- .associated-label {
207
- color: var(--3, #5f6085);
208
- font-weight: 400;
209
- font-size: 14px;
210
- font-family: PingFang SC;
211
- font-style: normal;
212
- line-height: 32px;
213
- text-align: right;
214
- }
215
- .ant-form-item-explain-error {
216
- margin-left: 0 !important;
217
- }
218
- }
219
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .top-panel-interval {
4
+ &-form-botton-box {
5
+ display: flex;
6
+ justify-content: flex-end;
7
+ margin-top: 24px;
8
+ margin-right: 24px;
9
+
10
+ > :nth-child(1) {
11
+ margin-right: 16px;
12
+ color: #fff;
13
+ background-color: #29bd52;
14
+ border-color: #29bd52;
15
+ }
16
+ }
17
+
18
+ &-label-hasIcon {
19
+ .bsicon {
20
+ cursor: pointer;
21
+ }
22
+ }
23
+ }
24
+
25
+ .panel-form-interval {
26
+ .ant-form-item-explain-error {
27
+ margin-left: 24px;
28
+ }
29
+ &-item {
30
+ .ant-form-item-label {
31
+ padding-left: 24px !important;
32
+ font-weight: 500;
33
+ }
34
+ .ant-form-item-control-input-content {
35
+ height: 40px;
36
+ padding: 0 24px !important;
37
+ line-height: 40px !important;
38
+ .biz-select-handle {
39
+ display: inline-block;
40
+ width: 208px;
41
+ }
42
+ span.ant-radio + * {
43
+ padding-right: 40px;
44
+ padding-left: 12px;
45
+ }
46
+ &:hover {
47
+ background-color: #e7f3fe;
48
+ }
49
+ }
50
+ }
51
+ .interval-item {
52
+ margin-top: -2px;
53
+ .ant-space-vertical {
54
+ gap: 0px !important;
55
+ width: 100%;
56
+ .ant-space-item:nth-child(1) {
57
+ padding: 0 12px;
58
+ }
59
+
60
+ .ant-space-item:nth-child(2) {
61
+ display: flex;
62
+ align-items: center;
63
+ height: 42px;
64
+ margin-top: 4px;
65
+ padding: 0 12px;
66
+ }
67
+
68
+ .ant-space-item:nth-child(2):hover {
69
+ background-color: #e7f3fe;
70
+ }
71
+ }
72
+ }
73
+
74
+ .biz-user-group-header {
75
+ padding: 0;
76
+ background-color: #fff;
77
+ }
78
+
79
+ .space-item {
80
+ .ant-space-item {
81
+ .biz-user-group {
82
+ width: 100%;
83
+ min-width: 208px;
84
+ }
85
+ }
86
+
87
+ .ant-space-horizontal .ant-space-item:nth-child(2) .tianjia {
88
+ display: none;
89
+ }
90
+ }
91
+
92
+ .collapseRefs {
93
+ .ant-form-item {
94
+ margin-bottom: 16px;
95
+ }
96
+
97
+ .ant-form-item-control-input {
98
+ display: flex;
99
+ align-items: center;
100
+ }
101
+
102
+ .ant-form-item-label {
103
+ padding-left: 24px;
104
+ font-weight: 500;
105
+ }
106
+
107
+ .interval-box {
108
+ > div:nth-child(1) {
109
+ padding: 4px 24px;
110
+ }
111
+
112
+ > div:nth-child(1):hover {
113
+ background-color: #e7f3fe;
114
+ }
115
+
116
+ .biz-attr-condition-group-handle {
117
+ margin-right: 0;
118
+ margin-left: 32px;
119
+ }
120
+
121
+ .biz-attr-condition-group-container {
122
+ gap: 0px !important;
123
+ }
124
+
125
+ .biz-attr-condition-group-container-item {
126
+ max-width: calc(100% + 32px) !important;
127
+ margin-top: 4px;
128
+ padding: 4px 56px;
129
+ .ant-space-item {
130
+ width: auto;
131
+ max-width: auto;
132
+ margin-left: 0px;
133
+ padding: 0;
134
+ }
135
+ }
136
+
137
+ .ant-space-item:hover {
138
+ background-color: #e7f3fe;
139
+ }
140
+ }
141
+
142
+ .dimension-interval {
143
+ .ant-form-item-control-input {
144
+ padding: 4px 24px;
145
+ }
146
+
147
+ .ant-form-item-control-input:hover {
148
+ background-color: #e7f3fe;
149
+ }
150
+ }
151
+ }
152
+
153
+ .biz-event-select {
154
+ width: 208px;
155
+ }
156
+
157
+ > .ant-form-item {
158
+ margin-bottom: 16px;
159
+ .biz-user-group-val {
160
+ color: #021429;
161
+ }
162
+ }
163
+
164
+ .associated {
165
+ margin-top: -10px;
166
+ margin-bottom: 12px;
167
+
168
+ .qingchu {
169
+ color: #9aa1a9;
170
+ }
171
+
172
+ .qingchu:hover {
173
+ color: @error-color;
174
+ }
175
+
176
+ .ant-form-item-control-input {
177
+ padding: 4px 24px;
178
+
179
+ .ant-form-item-control-input {
180
+ padding: 0;
181
+ }
182
+
183
+ .ant-form-item {
184
+ margin-bottom: 0;
185
+ }
186
+ }
187
+
188
+ .ant-form-item-control-input:hover {
189
+ background-color: #e7f3fe;
190
+ }
191
+
192
+ .associated-link {
193
+ display: block;
194
+ line-height: 32px;
195
+ }
196
+
197
+ .ant-form-item-row {
198
+ flex-direction: inherit;
199
+ }
200
+
201
+ .ant-form-item-control-input-content {
202
+ display: flex;
203
+ gap: 12px;
204
+ }
205
+
206
+ .associated-label {
207
+ color: var(--3, #5f6085);
208
+ font-weight: 400;
209
+ font-size: 14px;
210
+ font-family: PingFang SC;
211
+ font-style: normal;
212
+ line-height: 32px;
213
+ text-align: right;
214
+ }
215
+ .ant-form-item-explain-error {
216
+ margin-left: 0 !important;
217
+ }
218
+ }
219
+ }
@@ -42,6 +42,7 @@ export interface TopPanelProps {
42
42
  * 默认值
43
43
  */
44
44
  defaultValue?: SearchValue;
45
+ propsDefaultValue?: SearchValue;
45
46
  loading?: boolean;
46
47
  /**
47
48
  * 数据更新
@@ -12,6 +12,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
12
12
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
13
13
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
14
14
  import React from 'react';
15
+ import { Tooltip } from 'antd';
15
16
  import { chartColors } from "../constants/color";
16
17
  import "../style/index.less";
17
18
  import { IconFont } from '@zgfe/business-lib';
@@ -27,10 +28,10 @@ function convertToHMS(seconds) {
27
28
  var s = remainingSeconds ? remainingSeconds + '秒' : '0秒';
28
29
  return h + m + s;
29
30
  }
30
- /**
31
- * 获取table的columns
32
- * @param columnData xAxis
33
- * @returns column fields
31
+ /**
32
+ * 获取table的columns
33
+ * @param columnData xAxis
34
+ * @returns column fields
34
35
  */
35
36
  export function getColumns(eventGroupList, userPropList, eventEnvList, columnData, dataSource, userGroup, searchData, showList, onUserDrill, currentApp
36
37
  // onClickToDetailCallback: Function,
@@ -46,7 +47,9 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
46
47
  dataIndex: 'time',
47
48
  className: "".concat(classPrefix, "-table-td"),
48
49
  render: function render(text, record) {
49
- return /*#__PURE__*/React.createElement("span", null, " ", text);
50
+ return /*#__PURE__*/React.createElement(Tooltip, {
51
+ title: text
52
+ }, /*#__PURE__*/React.createElement("span", null, " ", text));
50
53
  }
51
54
  }, {
52
55
  title: '最大值',
@@ -205,22 +208,22 @@ export function getColumns(eventGroupList, userPropList, eventEnvList, columnDat
205
208
  return data;
206
209
  }
207
210
 
208
- /**
209
- * 获取属性的label
210
- * @param attrData 当前属性
211
- * @param eventGroupList 事件属性列表
212
- * @param userPropList 用户属性列表
213
- * @param eventEnvList 环境属性列表
214
- * @returns label
211
+ /**
212
+ * 获取属性的label
213
+ * @param attrData 当前属性
214
+ * @param eventGroupList 事件属性列表
215
+ * @param userPropList 用户属性列表
216
+ * @param eventEnvList 环境属性列表
217
+ * @returns label
215
218
  */
216
219
 
217
- /**
218
- * 格式化表格数据
219
- * @param originalData 查询的数据
220
- * @param hasUserGroup 是否有多个用户群
221
- * @param attrNum 属性细分个数
222
- * @param showList 要展示的内容,如果没传,则展示全部
223
- * @returns
220
+ /**
221
+ * 格式化表格数据
222
+ * @param originalData 查询的数据
223
+ * @param hasUserGroup 是否有多个用户群
224
+ * @param attrNum 属性细分个数
225
+ * @param showList 要展示的内容,如果没传,则展示全部
226
+ * @returns
224
227
  */
225
228
  export function formTableData(originalData) {
226
229
  var result = createNewArray(originalData);
@@ -307,10 +310,10 @@ function getChildrenData(data, index) {
307
310
  }
308
311
  return [];
309
312
  }
310
- /**
311
- * 获取查询结果
312
- * @param source 结果数据
313
- * @returns 获取查询结果
313
+ /**
314
+ * 获取查询结果
315
+ * @param source 结果数据
316
+ * @returns 获取查询结果
314
317
  */
315
318
  export function getDefaultShow(source, data) {
316
319
  if (source.appData.series) {
@@ -332,11 +335,11 @@ export function getDefaultShow(source, data) {
332
335
  }
333
336
  return [];
334
337
  }
335
- /**
336
- * 获取显示事件对应的颜色
337
- * @param source 结果数据
338
- * @param showList 展示列表
339
- * @returns 展示列表对应的颜色
338
+ /**
339
+ * 获取显示事件对应的颜色
340
+ * @param source 结果数据
341
+ * @param showList 展示列表
342
+ * @returns 展示列表对应的颜色
340
343
  */
341
344
  export function getShowColor(source, showList) {
342
345
  var colors = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-interval",
3
- "version": "1.0.23-zhongyuan.1",
3
+ "version": "1.0.23-zhongyuan.10",
4
4
  "private": false,
5
5
  "module": "dist/esm/index.js",
6
6
  "typings": "dist/esm/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "@types/uuid": "^9.0.2",
43
43
  "@umijs/fabric": "^2.8.1",
44
44
  "@umijs/test": "^3.0.5",
45
- "@zgfe/business-lib": "1.2.70-hxd.10",
45
+ "@zgfe/business-lib": "1.2.70-hxd.1",
46
46
  "antd": "^4.22.6",
47
47
  "dumi": "^1.1.0",
48
48
  "echarts": "^5.3.2",
@@ -59,7 +59,7 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "e0ab09536ecccea2965d6c3e0e73ba24b31fea65",
62
+ "gitHead": "84e4a80651712930d3f41e02179b62c9c8891793",
63
63
  "gitHooks": {
64
64
  "pre-commit": "lint-staged"
65
65
  }