@zgfe/business-lib 1.2.70-hxd.19 → 1.2.70-hxd.21

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 (40) hide show
  1. package/es/AUMFormulaTarget/components/panel/index.less +269 -269
  2. package/es/assets/colorIcon/iconfont.json +555 -555
  3. package/es/assets/iconfont/iconfont.json +1584 -1584
  4. package/es/assets/styles/resetAntd.less +568 -568
  5. package/es/assets/styles/variable.less +21 -21
  6. package/es/attrCondition/styles/index.less +101 -101
  7. package/es/attributeSelector/listPanel.d.ts +1 -4
  8. package/es/attributeSelector/listPanel.js +311 -102
  9. package/es/attributeSelector/types.d.ts +0 -1
  10. package/es/attributeSelector/util.js +0 -3
  11. package/es/chart/styles/index.less +113 -113
  12. package/es/constants/apis.d.ts +3 -0
  13. package/es/constants/apis.js +5 -2
  14. package/es/datePickerV2/styles/index.less +194 -194
  15. package/es/demoWrapper/content.js +3 -9
  16. package/es/eventSelector/styles/index.less +127 -127
  17. package/es/formulaTarget/components/formula/index.less +76 -76
  18. package/es/hooks/useBizStore.js +3 -9
  19. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  20. package/es/layout/optionTitle/styles/layout.less +90 -90
  21. package/es/platformSelector/styles/index.less +26 -26
  22. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  23. package/es/productCondition/styles/conditionTypeList.less +32 -32
  24. package/es/productCondition/styles/relationLabel.less +19 -19
  25. package/es/quickDatePicker/styles/index.less +141 -141
  26. package/es/select/styles/handle.less +206 -206
  27. package/es/targetSelector/styles/index.less +142 -142
  28. package/es/userCondition/conditions/styles/eventCondition.less +71 -71
  29. package/es/userCondition/conditions/styles/periodCondition.less +32 -32
  30. package/es/userCondition/conditions/styles/textDesc.less +16 -16
  31. package/es/userCondition/styles/conditionTypeList.less +32 -32
  32. package/es/userCondition/styles/relationLabel.less +19 -19
  33. package/es/userGroup/styles/index.less +199 -199
  34. package/es/userGroupHeader/styles/index.less +50 -50
  35. package/es/userTagsSelector/styles/index.less +20 -20
  36. package/es/utils/eventApi.d.ts +14 -0
  37. package/es/utils/eventApi.js +128 -0
  38. package/es/utils/index.d.ts +2 -1
  39. package/es/utils/index.js +2 -1
  40. package/package.json +2 -2
@@ -1,113 +1,113 @@
1
- @import '../../assets/styles/variable.less';
2
-
3
- .biz-chart-tooltip {
4
- max-height: 324px;
5
- overflow: auto;
6
- border-radius: 10px !important;
7
-
8
- .biz-chart-tooltip-title {
9
- margin-bottom: @margin-xss;
10
- color: @text-color;
11
- font-weight: 600;
12
- font-size: @font-size-sm;
13
- line-height: 17px;
14
- }
15
-
16
- .biz-chart-tooltip-item {
17
- display: flex;
18
- align-items: center;
19
- justify-content: space-between;
20
- min-height: @height-sm;
21
- padding: 0px @padding-xs;
22
- font-size: @font-size-sm;
23
- background: @white;
24
- border-radius: @border-radius-small;
25
- box-shadow: @box-shadow-small;
26
- &:not(:last-child) {
27
- margin-bottom: @margin-xss;
28
- }
29
-
30
- .biz-chart-tooltip-content {
31
- display: flex;
32
- align-items: center;
33
- color: @text-color-secondary;
34
-
35
- .biz-tooltip-marker {
36
- width: 8px;
37
- height: 8px;
38
- margin-right: @margin-xs;
39
- border-radius: 50%;
40
- }
41
- .biz-tooltip-order {
42
- display: flex;
43
- align-items: center;
44
- justify-content: center;
45
- width: 12.8px;
46
- height: 12.8px;
47
- margin-right: @margin-xs;
48
- color: #fff;
49
- font-weight: 500;
50
- font-size: 8.96px;
51
- background: #4392e0;
52
- border-radius: 50%;
53
- }
54
- .biz-tooltip-name {
55
- max-width: 300px;
56
- white-space: pre-wrap;
57
- word-wrap: break-word;
58
- word-break: break-all;
59
- }
60
- }
61
-
62
- .biz-chart-tooltip-value {
63
- margin-left: @margin-xs;
64
- color: @text-color;
65
- font-weight: 500;
66
- }
67
- }
68
-
69
- .biz-chart-tooltip-item-new {
70
- min-height: @height-sm;
71
- margin-bottom: 4px;
72
- padding: 0px @padding-xs;
73
- font-size: @font-size-sm;
74
- background: @white;
75
- border-radius: @border-radius-small;
76
- box-shadow: @box-shadow-small;
77
- .biz-chart-tooltip-content {
78
- display: flex;
79
- align-items: center;
80
- color: @text-color-secondary;
81
-
82
- .biz-tooltip-marker {
83
- width: 8px;
84
- height: 8px;
85
- margin-right: @margin-xs;
86
- border-radius: 50%;
87
- }
88
- .biz-tooltip-order {
89
- display: flex;
90
- align-items: center;
91
- justify-content: center;
92
- width: 12.8px;
93
- height: 12.8px;
94
- margin-right: @margin-xs;
95
- color: #fff;
96
- font-weight: 500;
97
- font-size: 8.96px;
98
- background: #4392e0;
99
- border-radius: 50%;
100
- }
101
- .biz-tooltip-name {
102
- max-width: 300px;
103
- white-space: pre-wrap;
104
- word-wrap: break-word;
105
- word-break: break-all;
106
- }
107
- }
108
- &-value {
109
- font-weight: 700;
110
- // font-size: 14px;
111
- }
112
- }
113
- }
1
+ @import '../../assets/styles/variable.less';
2
+
3
+ .biz-chart-tooltip {
4
+ max-height: 324px;
5
+ overflow: auto;
6
+ border-radius: 10px !important;
7
+
8
+ .biz-chart-tooltip-title {
9
+ margin-bottom: @margin-xss;
10
+ color: @text-color;
11
+ font-weight: 600;
12
+ font-size: @font-size-sm;
13
+ line-height: 17px;
14
+ }
15
+
16
+ .biz-chart-tooltip-item {
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: space-between;
20
+ min-height: @height-sm;
21
+ padding: 0px @padding-xs;
22
+ font-size: @font-size-sm;
23
+ background: @white;
24
+ border-radius: @border-radius-small;
25
+ box-shadow: @box-shadow-small;
26
+ &:not(:last-child) {
27
+ margin-bottom: @margin-xss;
28
+ }
29
+
30
+ .biz-chart-tooltip-content {
31
+ display: flex;
32
+ align-items: center;
33
+ color: @text-color-secondary;
34
+
35
+ .biz-tooltip-marker {
36
+ width: 8px;
37
+ height: 8px;
38
+ margin-right: @margin-xs;
39
+ border-radius: 50%;
40
+ }
41
+ .biz-tooltip-order {
42
+ display: flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ width: 12.8px;
46
+ height: 12.8px;
47
+ margin-right: @margin-xs;
48
+ color: #fff;
49
+ font-weight: 500;
50
+ font-size: 8.96px;
51
+ background: #4392e0;
52
+ border-radius: 50%;
53
+ }
54
+ .biz-tooltip-name {
55
+ max-width: 300px;
56
+ white-space: pre-wrap;
57
+ word-wrap: break-word;
58
+ word-break: break-all;
59
+ }
60
+ }
61
+
62
+ .biz-chart-tooltip-value {
63
+ margin-left: @margin-xs;
64
+ color: @text-color;
65
+ font-weight: 500;
66
+ }
67
+ }
68
+
69
+ .biz-chart-tooltip-item-new {
70
+ min-height: @height-sm;
71
+ margin-bottom: 4px;
72
+ padding: 0px @padding-xs;
73
+ font-size: @font-size-sm;
74
+ background: @white;
75
+ border-radius: @border-radius-small;
76
+ box-shadow: @box-shadow-small;
77
+ .biz-chart-tooltip-content {
78
+ display: flex;
79
+ align-items: center;
80
+ color: @text-color-secondary;
81
+
82
+ .biz-tooltip-marker {
83
+ width: 8px;
84
+ height: 8px;
85
+ margin-right: @margin-xs;
86
+ border-radius: 50%;
87
+ }
88
+ .biz-tooltip-order {
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ width: 12.8px;
93
+ height: 12.8px;
94
+ margin-right: @margin-xs;
95
+ color: #fff;
96
+ font-weight: 500;
97
+ font-size: 8.96px;
98
+ background: #4392e0;
99
+ border-radius: 50%;
100
+ }
101
+ .biz-tooltip-name {
102
+ max-width: 300px;
103
+ white-space: pre-wrap;
104
+ word-wrap: break-word;
105
+ word-break: break-all;
106
+ }
107
+ }
108
+ &-value {
109
+ font-weight: 700;
110
+ // font-size: 14px;
111
+ }
112
+ }
113
+ }
@@ -30,5 +30,8 @@ declare const Apis: {
30
30
  queryRelationResult: string;
31
31
  queryEventRemoved: string;
32
32
  tagsState: string;
33
+ queryEventMetas: string;
34
+ queryEventAttrMetas: string;
35
+ queryEventAttrByAttrId: string;
33
36
  };
34
37
  export default Apis;
@@ -1,7 +1,7 @@
1
1
  var Apis = {
2
2
  querySceneGroup: '/zg/web/v2/scene/queryScenesOfGroup',
3
3
  addScene: '/zg/web/v2/scene/addScene',
4
- esQuery: '/data/queryEsData.jsp',
4
+ esQuery: '/zg/web/v2/data/queryEsData',
5
5
  addPanel: '/zg/web/v2/apppanel/addPanelElement',
6
6
  updatePanelTarget: '/zg/web/v2/apppanel/updateElement',
7
7
  queryPanelGroup: '/zg/web/v2/apppanel/panels',
@@ -29,6 +29,9 @@ var Apis = {
29
29
  queryPlatformList: '/zg/web/v2/data/dynamicPlatformByAppid',
30
30
  queryRelationResult: '/zg/web/v2/event/queryRelationResult',
31
31
  queryEventRemoved: '/zg/web/v2/event/queryEventRemoved',
32
- tagsState: '/zg/web/v2/label/state'
32
+ tagsState: '/zg/web/v2/label/state',
33
+ queryEventMetas: '/zg/web/v2/data/queryEventMetas',
34
+ queryEventAttrMetas: '/zg/web/v2/data/queryEventAttrMetas',
35
+ queryEventAttrByAttrId: '/zg/web/v2/data/queryEventAttrByAttrId'
33
36
  };
34
37
  export default Apis;
@@ -1,194 +1,194 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-date-picker-old-wrap {
4
- display: flex;
5
-
6
- &-type {
7
- width: 88px;
8
- }
9
-
10
- &-shortcut {
11
- display: flex;
12
- }
13
-
14
- &-list {
15
- display: flex;
16
- // margin: 0 16px 0 0;
17
-
18
- &-relative {
19
- display: flex;
20
- gap: 24px;
21
- align-items: center;
22
- margin-left: 16px;
23
-
24
- &-content {
25
- display: flex;
26
- align-items: center;
27
- span {
28
- margin: 0 8px;
29
- }
30
-
31
- .ant-input-number {
32
- background-color: #fff !important;
33
- border: 1px solid var(---, #ecedf0);
34
- border-radius: 4px;
35
- }
36
- }
37
- }
38
- }
39
-
40
- .biz-select-handle {
41
- margin-right: 8px;
42
- padding: 0;
43
- }
44
-
45
- &-item {
46
- display: flex;
47
- align-items: center;
48
- justify-content: center;
49
- width: 58px;
50
- height: @height-base;
51
- color: @text-color-secondary;
52
- border: 1px solid @border-color-base;
53
- cursor: pointer;
54
-
55
- &:first-child {
56
- border-radius: @border-radius-small 0px 0px @border-radius-small;
57
- }
58
-
59
- &:last-child {
60
- border-radius: 0px @border-radius-small @border-radius-small 0px;
61
- }
62
-
63
- &:not(:last-child) {
64
- border-right: none;
65
- }
66
-
67
- &:hover {
68
- .__default-hover();
69
- border-color: @border-color-base;
70
- }
71
-
72
- &.active {
73
- color: @primary-color;
74
- background: @primary-color-hover;
75
- border: 1px solid @primary-color;
76
- }
77
- }
78
-
79
- &-input {
80
- display: flex;
81
- flex-shrink: 0;
82
- gap: 4px;
83
- align-items: center;
84
- justify-content: space-between;
85
- width: 262px;
86
- padding: 0px 12px;
87
- font-size: 14px;
88
- background: #fff;
89
- border: 1px solid var(---, #ecedf0);
90
- border-radius: 4px;
91
-
92
- &-label {
93
- display: flex;
94
- gap: 4px;
95
- align-items: center;
96
- }
97
-
98
- &:hover {
99
- // color: #116ACC;
100
- border-color: @primary-color;
101
- cursor: pointer;
102
- }
103
-
104
- &:focus {
105
- border-color: @primary-color;
106
- }
107
-
108
- &:active {
109
- border-color: @primary-color;
110
- }
111
-
112
- &-active {
113
- border-color: @primary-color;
114
- box-shadow: 0 0 0 4px #f0f7ff;
115
- }
116
-
117
- &-popover {
118
- padding-top: 0 !important;
119
- .ant-popover-arrow {
120
- display: none;
121
- }
122
-
123
- .ant-popover-inner-content {
124
- padding: 0 16px 16px;
125
- }
126
-
127
- .ant-picker-dropdown {
128
- padding-top: 0;
129
-
130
- .ant-picker-range-arrow {
131
- display: none;
132
- }
133
- }
134
-
135
- .ant-tabs-top > .ant-tabs-nav::before {
136
- border-bottom: 1px solid #fafafb;
137
- }
138
-
139
- .ant-tabs-tab {
140
- padding: 12px 0 !important;
141
- font-size: 14px !important;
142
- }
143
-
144
- .ant-popover-inner {
145
- background: #fff;
146
- border-radius: 8px;
147
- box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
148
- }
149
- }
150
-
151
- &-error {
152
- position: relative;
153
- border: 1px solid var(--io-Error-E-, #fb5547) !important;
154
-
155
- &::after {
156
- position: absolute;
157
- width: 67px;
158
- color: red;
159
- font-size: 12px;
160
- content: '请输入内容';
161
- }
162
- }
163
- }
164
-
165
- &-panel {
166
- & div:last-of-type {
167
- position: relative !important;
168
- }
169
- .biz-date-picker-old-wrap-drop {
170
- top: 0 !important;
171
- margin-top: 12px;
172
- padding: 0;
173
- }
174
- .ant-picker-panel-container {
175
- background: #fff;
176
- border: 1px solid var(--io-n-02, #f2f3f4);
177
- border-radius: 10px;
178
- box-shadow: none;
179
- }
180
-
181
- .ant-picker-panel-container .ant-picker-panel-focused {
182
- border-color: var(--io-n-02, #f2f3f4);
183
- }
184
- }
185
-
186
- &-popoverContent-btns {
187
- position: absolute;
188
- top: 0;
189
- right: 0;
190
- display: flex;
191
- gap: 16px;
192
- justify-content: flex-end;
193
- }
194
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-date-picker-old-wrap {
4
+ display: flex;
5
+
6
+ &-type {
7
+ width: 88px;
8
+ }
9
+
10
+ &-shortcut {
11
+ display: flex;
12
+ }
13
+
14
+ &-list {
15
+ display: flex;
16
+ // margin: 0 16px 0 0;
17
+
18
+ &-relative {
19
+ display: flex;
20
+ gap: 24px;
21
+ align-items: center;
22
+ margin-left: 16px;
23
+
24
+ &-content {
25
+ display: flex;
26
+ align-items: center;
27
+ span {
28
+ margin: 0 8px;
29
+ }
30
+
31
+ .ant-input-number {
32
+ background-color: #fff !important;
33
+ border: 1px solid var(---, #ecedf0);
34
+ border-radius: 4px;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+ .biz-select-handle {
41
+ margin-right: 8px;
42
+ padding: 0;
43
+ }
44
+
45
+ &-item {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ width: 58px;
50
+ height: @height-base;
51
+ color: @text-color-secondary;
52
+ border: 1px solid @border-color-base;
53
+ cursor: pointer;
54
+
55
+ &:first-child {
56
+ border-radius: @border-radius-small 0px 0px @border-radius-small;
57
+ }
58
+
59
+ &:last-child {
60
+ border-radius: 0px @border-radius-small @border-radius-small 0px;
61
+ }
62
+
63
+ &:not(:last-child) {
64
+ border-right: none;
65
+ }
66
+
67
+ &:hover {
68
+ .__default-hover();
69
+ border-color: @border-color-base;
70
+ }
71
+
72
+ &.active {
73
+ color: @primary-color;
74
+ background: @primary-color-hover;
75
+ border: 1px solid @primary-color;
76
+ }
77
+ }
78
+
79
+ &-input {
80
+ display: flex;
81
+ flex-shrink: 0;
82
+ gap: 4px;
83
+ align-items: center;
84
+ justify-content: space-between;
85
+ width: 262px;
86
+ padding: 0px 12px;
87
+ font-size: 14px;
88
+ background: #fff;
89
+ border: 1px solid var(---, #ecedf0);
90
+ border-radius: 4px;
91
+
92
+ &-label {
93
+ display: flex;
94
+ gap: 4px;
95
+ align-items: center;
96
+ }
97
+
98
+ &:hover {
99
+ // color: #116ACC;
100
+ border-color: @primary-color;
101
+ cursor: pointer;
102
+ }
103
+
104
+ &:focus {
105
+ border-color: @primary-color;
106
+ }
107
+
108
+ &:active {
109
+ border-color: @primary-color;
110
+ }
111
+
112
+ &-active {
113
+ border-color: @primary-color;
114
+ box-shadow: 0 0 0 4px #f0f7ff;
115
+ }
116
+
117
+ &-popover {
118
+ padding-top: 0 !important;
119
+ .ant-popover-arrow {
120
+ display: none;
121
+ }
122
+
123
+ .ant-popover-inner-content {
124
+ padding: 0 16px 16px;
125
+ }
126
+
127
+ .ant-picker-dropdown {
128
+ padding-top: 0;
129
+
130
+ .ant-picker-range-arrow {
131
+ display: none;
132
+ }
133
+ }
134
+
135
+ .ant-tabs-top > .ant-tabs-nav::before {
136
+ border-bottom: 1px solid #fafafb;
137
+ }
138
+
139
+ .ant-tabs-tab {
140
+ padding: 12px 0 !important;
141
+ font-size: 14px !important;
142
+ }
143
+
144
+ .ant-popover-inner {
145
+ background: #fff;
146
+ border-radius: 8px;
147
+ box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
148
+ }
149
+ }
150
+
151
+ &-error {
152
+ position: relative;
153
+ border: 1px solid var(--io-Error-E-, #fb5547) !important;
154
+
155
+ &::after {
156
+ position: absolute;
157
+ width: 67px;
158
+ color: red;
159
+ font-size: 12px;
160
+ content: '请输入内容';
161
+ }
162
+ }
163
+ }
164
+
165
+ &-panel {
166
+ & div:last-of-type {
167
+ position: relative !important;
168
+ }
169
+ .biz-date-picker-old-wrap-drop {
170
+ top: 0 !important;
171
+ margin-top: 12px;
172
+ padding: 0;
173
+ }
174
+ .ant-picker-panel-container {
175
+ background: #fff;
176
+ border: 1px solid var(--io-n-02, #f2f3f4);
177
+ border-radius: 10px;
178
+ box-shadow: none;
179
+ }
180
+
181
+ .ant-picker-panel-container .ant-picker-panel-focused {
182
+ border-color: var(--io-n-02, #f2f3f4);
183
+ }
184
+ }
185
+
186
+ &-popoverContent-btns {
187
+ position: absolute;
188
+ top: 0;
189
+ right: 0;
190
+ display: flex;
191
+ gap: 16px;
192
+ justify-content: flex-end;
193
+ }
194
+ }
@@ -16,6 +16,7 @@ import convertAttributeData from '../attributeSelector/util';
16
16
  import BizGlobalDataContext from '../context';
17
17
  import request from '../utils/ajax';
18
18
  import useBizStore from '../hooks/useBizStore';
19
+ import { eventApi } from '../utils';
19
20
  var catchPool = {};
20
21
  function ajax(url, options) {
21
22
  return new Promise(function (resolve, reject) {
@@ -198,15 +199,8 @@ var DemoContent = function DemoContent(_ref3) {
198
199
  }
199
200
  function loadEvents() {
200
201
  setLoadEvent(true);
201
- ajax('/zg/web/v2/data/queryEventMetasOfGroup', {
202
- method: 'post',
203
- data: {
204
- appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.id,
205
- platform: 0,
206
- isAll: true
207
- }
208
- }).then(function (res) {
209
- setEventGroups(res.data);
202
+ eventApi.fetchAllEvents(currentApp === null || currentApp === void 0 ? void 0 : currentApp.id, 0, false).then(function (eventGroups) {
203
+ setEventGroups(Array.isArray(eventGroups) ? eventGroups : []);
210
204
  setLoadEvent(false);
211
205
  });
212
206
  }