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

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 (204) hide show
  1. package/es/AUMFormulaTarget/components/formula/index.js +6 -4
  2. package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +2 -2
  3. package/es/AUMFormulaTarget/components/panel/index.less +269 -269
  4. package/es/AUMFormulaTarget/demo/index.js +1 -1
  5. package/es/AUMFormulaTarget/index.d.ts +4 -1
  6. package/es/addToPanel/components/radioGroup.d.ts +4 -1
  7. package/es/addToPanel/components/styleList.d.ts +4 -1
  8. package/es/addToPanel/index.d.ts +4 -1
  9. package/es/addToPanel/index.js +1 -1
  10. package/es/addToScene/index.js +1 -1
  11. package/es/amountSelector/demo/index.d.ts +3 -0
  12. package/es/amountSelector/demo/index.js +9 -0
  13. package/es/amountSelector/index.d.ts +10 -0
  14. package/es/amountSelector/index.js +21 -0
  15. package/es/amountSelector/styles/index.less +27 -0
  16. package/es/amountSelector/types.d.ts +4 -0
  17. package/es/amountSelector/types.js +1 -0
  18. package/es/amountSelector/util.d.ts +3 -0
  19. package/es/amountSelector/util.js +18 -0
  20. package/es/assets/colorIcon/demo_index.html +1023 -492
  21. package/es/assets/colorIcon/iconfont.css +203 -110
  22. package/es/assets/colorIcon/iconfont.js +13 -14
  23. package/es/assets/colorIcon/iconfont.json +555 -394
  24. package/es/assets/colorIcon/iconfont.ttf +0 -0
  25. package/es/assets/colorIcon/iconfont.woff +0 -0
  26. package/es/assets/colorIcon/iconfont.woff2 +0 -0
  27. package/es/assets/iconfont/demo_index.html +203 -348
  28. package/es/assets/iconfont/iconfont.css +103 -63
  29. package/es/assets/iconfont/iconfont.js +1 -1
  30. package/es/assets/iconfont/iconfont.json +1584 -1689
  31. package/es/assets/styles/resetAntd.less +568 -564
  32. package/es/assets/styles/variable.less +21 -21
  33. package/es/assets/theme.js +1 -1
  34. package/es/attrCondition/demo/group.js +1 -1
  35. package/es/attrCondition/group.js +11 -6
  36. package/es/attrCondition/index.js +11 -6
  37. package/es/attrCondition/styles/index.less +101 -101
  38. package/es/attrCondition/useAttrCondition.js +4 -5
  39. package/es/attrConditions/components/operateList.js +6 -3
  40. package/es/attrConditions/index.d.ts +4 -1
  41. package/es/attrConditions/index.js +4 -2
  42. package/es/attrConditions/types.d.ts +3 -0
  43. package/es/attrConditions/utils/operates.d.ts +4 -0
  44. package/es/attrConditions/utils/operates.js +37 -0
  45. package/es/attributeSelector/index.d.ts +4 -1
  46. package/es/attributeSelector/index.js +4 -2
  47. package/es/attributeSelector/listPanel.d.ts +4 -1
  48. package/es/attributeSelector/listPanel.js +6 -3
  49. package/es/attributeSelector/types.d.ts +1 -0
  50. package/es/chart/demo/data/data5 copy.js +2 -2
  51. package/es/chart/demo/index.js +1 -1
  52. package/es/chart/demo/line_bar_stack.js +4 -4
  53. package/es/chart/demo/stack.js +1 -1
  54. package/es/chart/index.js +10 -12
  55. package/es/chart/styles/index.less +113 -113
  56. package/es/chart/util/color.js +1 -1
  57. package/es/colorIcon/index.js +2 -4
  58. package/es/constants/apis.d.ts +1 -0
  59. package/es/constants/apis.js +2 -1
  60. package/es/constants/common.d.ts +11 -0
  61. package/es/constants/common.js +31 -0
  62. package/es/context/index.d.ts +1 -0
  63. package/es/cycleTime/index.js +6 -8
  64. package/es/cycleTime/month.js +2 -5
  65. package/es/dataSetGroup/index.js +0 -1
  66. package/es/datePicker/index.d.ts +4 -1
  67. package/es/datePickerV2/demo/index.js +1 -1
  68. package/es/datePickerV2/index.d.ts +4 -1
  69. package/es/datePickerV2/index.js +13 -4
  70. package/es/datePickerV2/popoverContent.js +1 -1
  71. package/es/datePickerV2/shortcut.js +1 -1
  72. package/es/datePickerV2/styles/index.less +194 -194
  73. package/es/datePickerV2/types.d.ts +1 -0
  74. package/es/datePickerV2/utils.js +8 -2
  75. package/es/demoWrapper/content.js +6 -1
  76. package/es/demoWrapper/innerDemo.js +1 -1
  77. package/es/dialog/index.d.ts +4 -1
  78. package/es/dnd/demo/index.js +5 -1
  79. package/es/dnd/index.d.ts +4 -1
  80. package/es/dnd/item.js +14 -0
  81. package/es/eventSelector/index.d.ts +4 -1
  82. package/es/eventSelector/index.js +3 -2
  83. package/es/eventSelector/listPanel.js +9 -13
  84. package/es/eventSelector/option.d.ts +1 -0
  85. package/es/eventSelector/option.js +14 -3
  86. package/es/eventSelector/styles/index.less +127 -123
  87. package/es/eventSelector/types.d.ts +1 -0
  88. package/es/formulaTarget/components/formula/index.js +2 -1
  89. package/es/formulaTarget/components/formula/index.less +76 -76
  90. package/es/formulaTarget/components/formula/types.d.ts +1 -0
  91. package/es/formulaTarget/components/formulaItem/index.js +7 -2
  92. package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
  93. package/es/formulaTarget/components/panel/index.js +2 -1
  94. package/es/formulaTarget/components/panel/item.js +5 -1
  95. package/es/formulaTarget/components/panel/types.d.ts +2 -0
  96. package/es/formulaTarget/index.d.ts +4 -1
  97. package/es/formulaTarget/index.js +2 -1
  98. package/es/formulaTarget/types.d.ts +1 -0
  99. package/es/icon/iconFont.d.ts +4 -1
  100. package/es/index.d.ts +2 -1
  101. package/es/index.js +2 -1
  102. package/es/layout/analysisLayout/index.d.ts +4 -1
  103. package/es/layout/columnLayout/index.d.ts +4 -1
  104. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  105. package/es/layout/optionTitle/components/title/index.d.ts +1 -2
  106. package/es/layout/optionTitle/components/title/index.js +10 -6
  107. package/es/layout/optionTitle/index.js +1 -1
  108. package/es/layout/optionTitle/styles/layout.less +90 -90
  109. package/es/platformSelector/styles/index.less +26 -26
  110. package/es/productCondition/conditionTypeList.d.ts +4 -1
  111. package/es/productCondition/conditions/cdpCshCondition.js +9 -6
  112. package/es/productCondition/conditions/constants.d.ts +2 -0
  113. package/es/productCondition/conditions/constants.js +2 -0
  114. package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
  115. package/es/productCondition/conditions/periodCondition.d.ts +4 -1
  116. package/es/productCondition/conditions/propCondition.d.ts +4 -1
  117. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  118. package/es/productCondition/index.d.ts +4 -1
  119. package/es/productCondition/styles/conditionTypeList.less +32 -30
  120. package/es/productCondition/styles/relationLabel.less +19 -19
  121. package/es/productCondition/types.d.ts +3 -1
  122. package/es/productCondition/util.d.ts +4 -0
  123. package/es/productCondition/util.js +4 -2
  124. package/es/quickDatePicker/demo/index.js +31 -11
  125. package/es/quickDatePicker/index.js +122 -23
  126. package/es/quickDatePicker/styles/index.less +141 -138
  127. package/es/quickDatePicker/types.d.ts +13 -0
  128. package/es/quickDatePicker/utils.d.ts +6 -0
  129. package/es/quickDatePicker/utils.js +54 -1
  130. package/es/select/demo/index.js +2 -1
  131. package/es/select/handle.js +2 -9
  132. package/es/select/index.d.ts +4 -1
  133. package/es/select/option.js +1 -1
  134. package/es/select/overlay.js +2 -2
  135. package/es/select/styles/handle.less +206 -193
  136. package/es/socket/demo/demo.js +2 -2
  137. package/es/subjectWrapper/index.js +3 -1
  138. package/es/table/demo/data/color.js +1 -1
  139. package/es/table/index.js +3 -30
  140. package/es/targetConditionGroup/components/targetDimension.d.ts +4 -1
  141. package/es/targetConditionGroup/demo/group.js +5 -18
  142. package/es/targetConditionGroup/index.d.ts +4 -1
  143. package/es/targetConditionGroup/index.js +6 -4
  144. package/es/targetConditionGroup/types.d.ts +1 -0
  145. package/es/targetSelector/editBox.d.ts +1 -0
  146. package/es/targetSelector/editBox.js +8 -3
  147. package/es/targetSelector/index.js +2 -1
  148. package/es/targetSelector/optionIcon.d.ts +4 -1
  149. package/es/targetSelector/optionIcon.js +3 -0
  150. package/es/targetSelector/styles/index.less +142 -110
  151. package/es/userCondition/conditionTypeList.d.ts +4 -1
  152. package/es/userCondition/conditionTypeList.js +5 -4
  153. package/es/userCondition/conditions/cdpCondition.js +9 -6
  154. package/es/userCondition/conditions/cdpCshCondition.js +9 -6
  155. package/es/userCondition/conditions/constants.d.ts +2 -0
  156. package/es/userCondition/conditions/constants.js +2 -0
  157. package/es/userCondition/conditions/dataAttribute.js +11 -7
  158. package/es/userCondition/conditions/eventCondition.js +16 -24
  159. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
  160. package/es/userCondition/conditions/periodCondition.d.ts +4 -1
  161. package/es/userCondition/conditions/periodCondition.js +19 -11
  162. package/es/userCondition/conditions/propCondition.js +5 -3
  163. package/es/userCondition/conditions/styles/eventCondition.less +71 -57
  164. package/es/userCondition/conditions/styles/periodCondition.less +32 -26
  165. package/es/userCondition/conditions/styles/textDesc.less +16 -17
  166. package/es/userCondition/conditions/tagsCondition.js +12 -5
  167. package/es/userCondition/conditions/textDesc.js +9 -5
  168. package/es/userCondition/demo/index.js +20 -14
  169. package/es/userCondition/demo/mockData.d.ts +20 -94
  170. package/es/userCondition/demo/mockData.js +31 -76
  171. package/es/userCondition/index.d.ts +5 -1
  172. package/es/userCondition/index.js +98 -20
  173. package/es/userCondition/styles/conditionTypeList.less +32 -30
  174. package/es/userCondition/styles/relationLabel.less +19 -19
  175. package/es/userCondition/types.d.ts +5 -2
  176. package/es/userCondition/util.d.ts +4 -0
  177. package/es/userCondition/util.js +4 -2
  178. package/es/userGroup/demo/index.js +2 -9
  179. package/es/userGroup/index.d.ts +4 -1
  180. package/es/userGroup/index.js +121 -16
  181. package/es/userGroup/overlay.js +17 -3
  182. package/es/userGroup/styles/index.less +199 -145
  183. package/es/userGroup/types.d.ts +2 -0
  184. package/es/userGroup/util.d.ts +2 -0
  185. package/es/userGroup/util.js +47 -0
  186. package/es/userGroupHeader/demo/index.js +1 -1
  187. package/es/userGroupHeader/index.d.ts +1 -0
  188. package/es/userGroupHeader/index.js +109 -6
  189. package/es/userGroupHeader/styles/index.less +50 -31
  190. package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
  191. package/es/userTagsSelector/cascaderOverlay.js +9 -2
  192. package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
  193. package/es/userTagsSelector/groups/index.d.ts +4 -1
  194. package/es/userTagsSelector/index.d.ts +4 -1
  195. package/es/userTagsSelector/index.js +32 -2
  196. package/es/userTagsSelector/styles/index.less +20 -10
  197. package/es/userTagsSelector/types.d.ts +2 -0
  198. package/es/userTagsSelector/util.d.ts +1 -0
  199. package/es/userTagsSelector/util.js +20 -0
  200. package/es/utils/ajax.js +63 -26
  201. package/es/utils/util.d.ts +1 -0
  202. package/es/utils/util.js +18 -0
  203. package/package.json +2 -2
  204. package/es/assets/colorIcon/iconfont.svg +0 -129
@@ -1,11 +1,40 @@
1
1
  export var tagList = [{
2
+ labelType: 1,
3
+ dataStatus: 1,
4
+ editStatus: 1,
5
+ labelCreateType: 6,
6
+ endProcessTime: '2025-03-26 15:08:00',
7
+ labelGroup: '基本标签',
8
+ startProcessTime: '',
9
+ layers: [],
10
+ expireStatus: 'effective',
11
+ id: 922,
12
+ releaseState: 1,
13
+ labelName: '事件偏好02',
14
+ labelRemark: ''
15
+ }, {
16
+ labelType: 1,
17
+ dataStatus: 1,
18
+ editStatus: 1,
19
+ labelCreateType: 6,
20
+ endProcessTime: '2025-03-26 15:08:00',
21
+ labelGroup: '基本标签',
22
+ startProcessTime: '',
23
+ layers: [],
24
+ expireStatus: 'effective',
25
+ id: 922,
26
+ releaseState: 1,
27
+ labelName: '事件偏好02',
28
+ labelRemark: ''
29
+ }, {
2
30
  labelGroup: '行为标签',
3
31
  startProcessTime: '2023-06-26T01:00:00',
4
32
  labelType: 0,
5
33
  layers: [{
6
34
  sequence: 1,
7
35
  layerLabelId: 550455830020096,
8
- layerLabelName: '分层1'
36
+ layerLabelName: '分层1',
37
+ ancestryState: 4
9
38
  }],
10
39
  dataStatus: 1,
11
40
  editStatus: 1,
@@ -143,83 +172,9 @@ export var tagList = [{
143
172
  export var conditions = [[{
144
173
  attrs: [],
145
174
  labels: {
146
- values: ['371:550455830020096', '522:fd'],
175
+ values: ['371:550455830020096', '522:fd', '666666:888888'],
147
176
  operator: 'equal'
148
177
  }
149
- }, {
150
- dataset: [{
151
- datasetId: 11,
152
- datasetTable: '99677e4429fd647bc4ff89f669859be168420',
153
- datasetName: 'rfm555',
154
- fieldName: 'price',
155
- fieldType: 'bigint',
156
- webType: 'number',
157
- paramType: 'cont-num',
158
- operator: 'gt',
159
- params: ['123']
160
- }]
161
- }, {
162
- data_set_csh: [{
163
- datasetName: 'rfm555',
164
- datasetTable: '99677e4429fd647bc4ff89f669859be168420',
165
- fieldName: 'price',
166
- fieldType: 'bigint',
167
- webType: 'number',
168
- paramType: 'cont-num',
169
- calculate: 'original',
170
- operator: 'greater',
171
- params: '123',
172
- subCondition: {
173
- operator: 'add',
174
- datasetName: 'frm4444',
175
- datasetTable: '996776d76380838014a92bc6a21c9da99301e',
176
- fieldName: 'price',
177
- calculate: 'original'
178
- }
179
- }]
180
- }, {
181
- data_set_csh: [{
182
- datasetName: 'rfm555',
183
- datasetTable: '99677e4429fd647bc4ff89f669859be168420',
184
- fieldName: 'price',
185
- fieldType: 'bigint',
186
- webType: 'number',
187
- paramType: 'cont-num',
188
- calculate: 'original',
189
- operator: 'between',
190
- between: [100, 200],
191
- subCondition: {
192
- operator: 'add',
193
- datasetName: 'frm4444',
194
- datasetTable: '996776d76380838014a92bc6a21c9da99301e',
195
- fieldName: 'price',
196
- calculate: 'original'
197
- }
198
- }]
199
- }, {
200
- data_set_csh: [{
201
- datasetName: 'rfm555',
202
- datasetTable: '99677e4429fd647bc4ff89f669859be168420',
203
- fieldName: 'price',
204
- fieldType: 'bigint',
205
- webType: 'number',
206
- paramType: 'cont-num',
207
- calculate: 'original',
208
- operator: 'greater',
209
- params: '123'
210
- }]
211
- }, {
212
- data_set_csh: [{
213
- datasetName: 'rfm555',
214
- datasetTable: '99677e4429fd647bc4ff89f669859be168420',
215
- fieldName: 'price',
216
- fieldType: 'bigint',
217
- webType: 'number',
218
- paramType: 'cont-num',
219
- calculate: 'original',
220
- operator: 'between',
221
- between: [100, 200]
222
- }]
223
178
  }]];
224
179
  export var datasetList = [{
225
180
  id: 12,
@@ -1,7 +1,11 @@
1
1
  import React from 'react';
2
2
  import { BizUserConditionT } from './types';
3
3
  import './styles/index.less';
4
- export declare const BizUserConditionContext: React.Context<BizUserConditionT.GlobalContext>;
4
+ interface NewGlobalContext extends BizUserConditionT.GlobalContext {
5
+ searchUserTagsData?: [];
6
+ setSearchUserTagsData?: Function;
7
+ }
8
+ export declare const BizUserConditionContext: React.Context<NewGlobalContext>;
5
9
  export declare const classPrefix = "biz-user-condition";
6
10
  declare const BizUserCondition: React.FC<BizUserConditionT.PropsI>;
7
11
  export default BizUserCondition;
@@ -52,16 +52,29 @@ var BizUserCondition = function BizUserCondition(props) {
52
52
  openOrderDataCondition = props.openOrderDataCondition,
53
53
  userTagsData = props.userTagsData,
54
54
  openCondition = props.openCondition,
55
- cdpTip = props.cdpTip;
55
+ cdpTip = props.cdpTip,
56
+ realTimeTags = props.realTimeTags;
56
57
  var _useState = useState([]),
57
58
  _useState2 = _slicedToArray(_useState, 2),
58
- showList = _useState2[0],
59
- setShowList = _useState2[1];
59
+ searchUserTagsData = _useState2[0],
60
+ setSearchUserTagsData = _useState2[1];
60
61
  var _useState3 = useState([]),
61
62
  _useState4 = _slicedToArray(_useState3, 2),
62
- dataList = _useState4[0],
63
- setDataList = _useState4[1];
64
- var _useState5 = useState(function () {
63
+ errorData = _useState4[0],
64
+ setErrorData = _useState4[1];
65
+ var _useState5 = useState(true),
66
+ _useState6 = _slicedToArray(_useState5, 2),
67
+ tagsStateLoading = _useState6[0],
68
+ setTagsStateLoading = _useState6[1];
69
+ var _useState7 = useState([]),
70
+ _useState8 = _slicedToArray(_useState7, 2),
71
+ showList = _useState8[0],
72
+ setShowList = _useState8[1];
73
+ var _useState9 = useState([]),
74
+ _useState10 = _slicedToArray(_useState9, 2),
75
+ dataList = _useState10[0],
76
+ setDataList = _useState10[1];
77
+ var _useState11 = useState(function () {
65
78
  var list = [];
66
79
  if (defaultValue) {
67
80
  var showTag = openTagCondition && authority[10038];
@@ -94,17 +107,17 @@ var BizUserCondition = function BizUserCondition(props) {
94
107
  }
95
108
  return list;
96
109
  }),
97
- _useState6 = _slicedToArray(_useState5, 2),
98
- value = _useState6[0],
99
- setValue = _useState6[1];
100
- var _useState7 = useState(true),
101
- _useState8 = _slicedToArray(_useState7, 2),
102
- loading = _useState8[0],
103
- setLoading = _useState8[1];
104
- var _useState9 = useState([]),
105
- _useState10 = _slicedToArray(_useState9, 2),
106
- dataset = _useState10[0],
107
- setDataset = _useState10[1];
110
+ _useState12 = _slicedToArray(_useState11, 2),
111
+ value = _useState12[0],
112
+ setValue = _useState12[1];
113
+ var _useState13 = useState(true),
114
+ _useState14 = _slicedToArray(_useState13, 2),
115
+ loading = _useState14[0],
116
+ setLoading = _useState14[1];
117
+ var _useState15 = useState([]),
118
+ _useState16 = _slicedToArray(_useState15, 2),
119
+ dataset = _useState16[0],
120
+ setDataset = _useState16[1];
108
121
  var envNameList = useMemo(function () {
109
122
  return eventEnvList ? eventEnvList.map(function (env) {
110
123
  return env.name;
@@ -124,6 +137,7 @@ var BizUserCondition = function BizUserCondition(props) {
124
137
  } else {
125
138
  setLoading(false);
126
139
  }
140
+ queryTagsState();
127
141
  }, []);
128
142
  function initShowList() {
129
143
  var showList = [];
@@ -213,7 +227,68 @@ var BizUserCondition = function BizUserCondition(props) {
213
227
  }));
214
228
  return _getDatasetList.apply(this, arguments);
215
229
  }
216
- if (loading) {
230
+ function queryTagsState() {
231
+ return _queryTagsState.apply(this, arguments);
232
+ }
233
+ function _queryTagsState() {
234
+ _queryTagsState = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
235
+ var _tagsData, _res$data, _res$data2, res, _res$data3;
236
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
237
+ while (1) switch (_context2.prev = _context2.next) {
238
+ case 0:
239
+ if (!(defaultValue.length > 0)) {
240
+ _context2.next = 17;
241
+ break;
242
+ }
243
+ _tagsData = [];
244
+ defaultValue.map(function (item) {
245
+ item.map(function (_item) {
246
+ var _item$labels;
247
+ if ((_item === null || _item === void 0 ? void 0 : _item.labels) && (_item === null || _item === void 0 ? void 0 : (_item$labels = _item.labels) === null || _item$labels === void 0 ? void 0 : _item$labels.values)) {
248
+ var _item$labels2;
249
+ _item === null || _item === void 0 ? void 0 : (_item$labels2 = _item.labels) === null || _item$labels2 === void 0 ? void 0 : _item$labels2.values.map(function (__item) {
250
+ if (_tagsData.indexOf(__item) === -1) _tagsData.push(__item);
251
+ });
252
+ }
253
+ });
254
+ });
255
+ _context2.prev = 3;
256
+ _context2.next = 6;
257
+ return request(Apis.tagsState, {
258
+ method: 'post',
259
+ data: {
260
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
261
+ platform: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.platform) || 0,
262
+ userGroup: [_tagsData]
263
+ }
264
+ });
265
+ case 6:
266
+ res = _context2.sent;
267
+ if (res.data && ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.labels) && ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.labels.length) > 0) {
268
+ setErrorData((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.labels);
269
+ }
270
+ setTagsStateLoading(false);
271
+ _context2.next = 15;
272
+ break;
273
+ case 11:
274
+ _context2.prev = 11;
275
+ _context2.t0 = _context2["catch"](3);
276
+ console.error(_context2.t0);
277
+ setTagsStateLoading(false);
278
+ case 15:
279
+ _context2.next = 18;
280
+ break;
281
+ case 17:
282
+ setTagsStateLoading(false);
283
+ case 18:
284
+ case "end":
285
+ return _context2.stop();
286
+ }
287
+ }, _callee2, null, [[3, 11]]);
288
+ }));
289
+ return _queryTagsState.apply(this, arguments);
290
+ }
291
+ if (loading || tagsStateLoading) {
217
292
  return /*#__PURE__*/React.createElement(Spin, null);
218
293
  }
219
294
  return /*#__PURE__*/React.createElement(BizUserConditionContext.Provider, {
@@ -227,11 +302,14 @@ var BizUserCondition = function BizUserCondition(props) {
227
302
  openBusinessDataCondition: openBusinessDataCondition,
228
303
  openOrderDataCondition: openOrderDataCondition,
229
304
  cdpTip: cdpTip,
230
- userTagsData: userTagsData !== null && userTagsData !== void 0 ? userTagsData : [],
305
+ userTagsData: (userTagsData !== null && userTagsData !== void 0 ? userTagsData : []).concat(errorData),
306
+ searchUserTagsData: searchUserTagsData,
307
+ setSearchUserTagsData: setSearchUserTagsData,
231
308
  isRealTime: props.isRealTime,
232
309
  envNameList: envNameList,
233
310
  userPropsMap: userPropsMap,
234
- datasetList: dataset
311
+ datasetList: dataset,
312
+ realTimeTags: realTimeTags
235
313
  }
236
314
  }, /*#__PURE__*/React.createElement("div", {
237
315
  className: classPrefix
@@ -1,30 +1,32 @@
1
- @import '../../assets/styles/inner.less';
2
- .biz-user-condition-type-list {
3
- display: flex;
4
- align-items: center;
5
- .biz-user-condition-type-label {
6
- margin-right: 10px;
7
- }
8
- .biz-user-condition-type-container {
9
- display: flex;
10
- margin: 0;
11
- padding: 0;
12
- list-style: none;
13
- .condition-type {
14
- padding: @padding-xss 12px;
15
- background-color: @background-color-base;
16
- border-radius: @border-radius-large;
17
- cursor: pointer;
18
- &:nth-child(n + 2) {
19
- margin-left: @margin-md;
20
- }
21
- &:hover {
22
- color: @primary-color;
23
- background-color: @primary-color-hover;
24
- }
25
- &:active {
26
- border-color: @primary-color;
27
- }
28
- }
29
- }
30
- }
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-user-condition-type-list {
3
+ display: flex;
4
+ align-items: center;
5
+ .biz-user-condition-type-label {
6
+ margin-right: 10px;
7
+ }
8
+ .biz-user-condition-type-container {
9
+ display: flex;
10
+ margin: 0;
11
+ padding: 0;
12
+ list-style: none;
13
+ .condition-type {
14
+ padding: @padding-xss 12px;
15
+ background-color: #fff;
16
+ border: 1px solid #ecedf0;
17
+ border-radius: @border-radius-large;
18
+ cursor: pointer;
19
+ &:nth-child(n + 2) {
20
+ margin-left: @margin-md;
21
+ }
22
+ &:hover {
23
+ color: @primary-color;
24
+ // background-color: @primary-color-hover;
25
+ border: 1px solid #b9ceff;
26
+ }
27
+ &:active {
28
+ border-color: @primary-color;
29
+ }
30
+ }
31
+ }
32
+ }
@@ -1,19 +1,19 @@
1
- @import '../../assets/styles/inner.less';
2
- .biz-user-condition-relation {
3
- position: relative;
4
- width: 2px;
5
- margin-right: @margin-lg;
6
- background-color: @border-color-split;
7
- &-label {
8
- position: absolute;
9
- top: 50%;
10
- left: 50%;
11
- width: 24px;
12
- height: 24px;
13
- line-height: 24px;
14
- text-align: center;
15
- background-color: @border-color-split;
16
- border-radius: @border-radius-small;
17
- transform: translate(-50%, -50%);
18
- }
19
- }
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-user-condition-relation {
3
+ position: relative;
4
+ width: 2px;
5
+ margin-right: @margin-lg;
6
+ background-color: #b9ceff;
7
+ &-label {
8
+ position: absolute;
9
+ top: 50%;
10
+ left: 50%;
11
+ width: 24px;
12
+ height: 24px;
13
+ line-height: 24px;
14
+ text-align: center;
15
+ background-color: @border-color-split;
16
+ border-radius: @border-radius-small;
17
+ transform: translate(-50%, -50%);
18
+ }
19
+ }
@@ -73,13 +73,14 @@ export declare namespace BizUserConditionT {
73
73
  openCondition?: boolean;
74
74
  cdpTip?: string;
75
75
  labelCreateType?: number;
76
+ realTimeTags?: boolean;
76
77
  }
77
78
  interface BusinessPropsI {
78
79
  dataId: number;
79
80
  condition: BizUserConditionT.BusinessCondition;
80
81
  openBusinessDataCondition?: boolean;
81
82
  openOrderDataCondition?: boolean;
82
- label?: string | React.ReactDOM;
83
+ label?: string | any;
83
84
  index?: number;
84
85
  onChange: (dataId: number, newData: any) => void;
85
86
  }
@@ -100,12 +101,14 @@ export declare namespace BizUserConditionT {
100
101
  userAmount: number;
101
102
  layerNum: number;
102
103
  endProcessTime: string;
104
+ ancestryState?: number;
103
105
  layers: {
104
106
  layerLabelId: number;
105
107
  layerLabelName: string;
106
108
  layerRemark: string;
107
109
  layerCondition: any[][];
108
110
  sequence: number;
111
+ ancestryState?: number;
109
112
  }[];
110
113
  }
111
114
  interface AttrCondition {
@@ -251,7 +254,7 @@ export declare namespace BizUserConditionT {
251
254
  orConditions: Conditions[number];
252
255
  }
253
256
  type ShowListT = ShowItemI[];
254
- type GlobalContext = Pick<BizUserConditionT.PropsI, 'orConditionNum' | 'eventAttrNum' | 'openTagCondition' | 'userTagsData' | 'openCdpCondition' | 'openBusinessDataCondition' | 'openOrderDataCondition' | 'openCondition' | 'textMode' | 'isRealTime' | 'cdpTip'> & {
257
+ type GlobalContext = Pick<BizUserConditionT.PropsI, 'orConditionNum' | 'eventAttrNum' | 'openTagCondition' | 'userTagsData' | 'openCdpCondition' | 'openBusinessDataCondition' | 'openOrderDataCondition' | 'openCondition' | 'textMode' | 'isRealTime' | 'cdpTip' | 'realTimeTags'> & {
255
258
  envNameList: string[];
256
259
  userPropsMap: {
257
260
  [key: string]: UserProp;
@@ -11,6 +11,7 @@ export declare function buildSelectLayer(data: BizUserConditionT.UserTagsDataI[]
11
11
  labelCreateType?: undefined;
12
12
  layerLabelId?: undefined;
13
13
  layerLabelName?: undefined;
14
+ ancestryState?: undefined;
14
15
  } | {
15
16
  id: number;
16
17
  labelName: string;
@@ -18,9 +19,11 @@ export declare function buildSelectLayer(data: BizUserConditionT.UserTagsDataI[]
18
19
  labelGroup?: undefined;
19
20
  layerLabelId?: undefined;
20
21
  layerLabelName?: undefined;
22
+ ancestryState?: undefined;
21
23
  } | {
22
24
  layerLabelId: string;
23
25
  layerLabelName: string;
26
+ ancestryState: number | undefined;
24
27
  labelGroup?: undefined;
25
28
  id?: undefined;
26
29
  labelName?: undefined;
@@ -28,6 +31,7 @@ export declare function buildSelectLayer(data: BizUserConditionT.UserTagsDataI[]
28
31
  } | {
29
32
  layerLabelId: number;
30
33
  layerLabelName: string;
34
+ ancestryState: number | undefined;
31
35
  labelGroup?: undefined;
32
36
  id?: undefined;
33
37
  labelName?: undefined;
@@ -181,10 +181,12 @@ export function buildSelectLayer(data) {
181
181
  labelCreateType: data[j].labelCreateType
182
182
  }, type === LabelCreateType.firstAndLastUpdate || type === LabelCreateType.fundingSource || type === LabelCreateType.eventPreference || type === LabelCreateType.sqlCreateTable ? {
183
183
  layerLabelId: layerLabelId,
184
- layerLabelName: ''
184
+ layerLabelName: '',
185
+ ancestryState: data[j].ancestryState
185
186
  } : {
186
187
  layerLabelId: data[j].layers[i].layerLabelId,
187
- layerLabelName: data[j].layers[i].layerLabelName
188
+ layerLabelName: data[j].layers[i].layerLabelName,
189
+ ancestryState: data[j].layers[i].ancestryState
188
190
  }];
189
191
  };
190
192
  }
@@ -79,7 +79,7 @@ var UserGroupDemo = function UserGroupDemo() {
79
79
  }
80
80
  }
81
81
  }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(BizUserGroup, {
82
- value: ['874:ep', '873:830763176214528'],
82
+ value: ['4230:1313538234793984', '666666:888888'],
83
83
  enableDelete: false,
84
84
  enableTags: true,
85
85
  placeholder: "\u652F\u6301\u6807\u7B7E",
@@ -98,14 +98,7 @@ var UserGroupDemo = function UserGroupDemo() {
98
98
  onCancel: function onCancel() {
99
99
  setShowUserGroupModal(false);
100
100
  }
101
- }, "\u6DFB\u52A0\u7528\u6237\u7FA4"), /*#__PURE__*/React.createElement(BizUserGroup, {
102
- value: 758,
103
- enableDelete: false,
104
- placeholder: "\u4E0D\u652F\u6301\u6807\u7B7E",
105
- onChange: function onChange(value) {
106
- return console.log(value);
107
- }
108
- })));
101
+ }, "\u6DFB\u52A0\u7528\u6237\u7FA4")));
109
102
  };
110
103
  export default (function () {
111
104
  return /*#__PURE__*/React.createElement(UserGroupDemo, null);
@@ -2,5 +2,8 @@ import React from 'react';
2
2
  import './styles/index.less';
3
3
  import { UserGroupTypes } from './types';
4
4
  export declare const classPrefix = "biz-user-group";
5
- declare const BizUserGroup: React.FC<UserGroupTypes.Props>;
5
+ type FCWithDefaultProps<P> = React.FC<P> & {
6
+ defaultProps?: Partial<P>;
7
+ };
8
+ declare const BizUserGroup: FCWithDefaultProps<UserGroupTypes.Props>;
6
9
  export default BizUserGroup;