@zgfe/business-lib 1.1.33-alpha.0 → 1.1.33-visual.1
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.
- package/es/attrConditions/index.js +0 -2
- package/es/attributeSelector/types.d.ts +0 -2
- package/es/eventSelector/demo/index.js +0 -1
- package/es/eventSelector/index.js +2 -5
- package/es/eventSelector/listPanel.js +3 -22
- package/es/eventSelector/types.d.ts +0 -2
- package/es/socket/index.d.ts +3 -2
- package/es/socket/index.js +3 -1
- package/es/targetConditionGroup/data/operates.js +3 -0
- package/es/targetConditionGroup/demo/index.js +1 -2
- package/es/targetConditionGroup/index.js +34 -65
- package/es/targetConditionGroup/types.d.ts +0 -1
- package/package.json +2 -2
- package/es/constants/common.d.ts +0 -11
- package/es/constants/common.js +0 -35
|
@@ -50,7 +50,6 @@ var BizConditionItem = function BizConditionItem(props) {
|
|
|
50
50
|
propCategory: data.propCategory,
|
|
51
51
|
type: data.type,
|
|
52
52
|
key: data.attrId,
|
|
53
|
-
label: data.label,
|
|
54
53
|
dimensionSub: data.dimensionSub || 'event_attr'
|
|
55
54
|
};
|
|
56
55
|
}
|
|
@@ -60,7 +59,6 @@ var BizConditionItem = function BizConditionItem(props) {
|
|
|
60
59
|
attrData = {
|
|
61
60
|
id: aId,
|
|
62
61
|
name: data.attrName,
|
|
63
|
-
label: data.label,
|
|
64
62
|
propCategory: data.propCategory,
|
|
65
63
|
type: data.type,
|
|
66
64
|
category: data.category,
|
|
@@ -10,7 +10,6 @@ import SelectHandle from '../select/handle';
|
|
|
10
10
|
import BizGlobalDataContext from '../context';
|
|
11
11
|
import EventListPanel from './listPanel';
|
|
12
12
|
import './styles/index.less';
|
|
13
|
-
import { BuiltinIndicators } from '../constants/common';
|
|
14
13
|
export var classPrefix = 'biz-event-select';
|
|
15
14
|
var BizEventSelector = function BizEventSelector(props) {
|
|
16
15
|
var alias = props.alias,
|
|
@@ -43,14 +42,13 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
43
42
|
var getValue = function getValue(param) {
|
|
44
43
|
var _param$group, _param$event;
|
|
45
44
|
var res = {};
|
|
46
|
-
var allEvents = props.showBuiltInTarget ? eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.concat(BuiltinIndicators) : eventGroupList;
|
|
47
45
|
if (!((_param$group = param.group) === null || _param$group === void 0 ? void 0 : _param$group.id)) {
|
|
48
46
|
res.group = {
|
|
49
47
|
id: 0,
|
|
50
48
|
name: '所有分组',
|
|
51
49
|
eventList: function () {
|
|
52
50
|
var list = [];
|
|
53
|
-
|
|
51
|
+
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
54
52
|
list = list.concat(group.eventList);
|
|
55
53
|
});
|
|
56
54
|
return list;
|
|
@@ -64,7 +62,7 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
64
62
|
attrList: []
|
|
65
63
|
};
|
|
66
64
|
}
|
|
67
|
-
|
|
65
|
+
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
|
|
68
66
|
var _param$group2;
|
|
69
67
|
if (group.id === ((_param$group2 = param.group) === null || _param$group2 === void 0 ? void 0 : _param$group2.id)) res.group = group;
|
|
70
68
|
group.eventList.forEach(function (event) {
|
|
@@ -106,7 +104,6 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
106
104
|
value: currentValue,
|
|
107
105
|
onChange: onChange,
|
|
108
106
|
showOverview: showAllEvent,
|
|
109
|
-
showBuiltInTarget: props.showBuiltInTarget,
|
|
110
107
|
defaultSelectAble: defaultSelectAble
|
|
111
108
|
}),
|
|
112
109
|
trigger: ['click'],
|
|
@@ -15,7 +15,6 @@ import InfiniteScroll from 'react-infinite-scroll-component';
|
|
|
15
15
|
import { classPrefix } from '.';
|
|
16
16
|
import { BizGlobalDataContext } from '..';
|
|
17
17
|
import { ShowStatus } from '../attributeSelector/types';
|
|
18
|
-
import { BuiltinIndicators } from '../constants/common';
|
|
19
18
|
import BizSearchInput from '../searchInput';
|
|
20
19
|
import EventListOption from './option';
|
|
21
20
|
var EventListPanel = function EventListPanel(props) {
|
|
@@ -69,33 +68,15 @@ var EventListPanel = function EventListPanel(props) {
|
|
|
69
68
|
}
|
|
70
69
|
});
|
|
71
70
|
});
|
|
72
|
-
list =
|
|
71
|
+
list = [].concat(markList, _toConsumableArray(list));
|
|
73
72
|
return list;
|
|
74
73
|
}(),
|
|
75
74
|
name: '所有分组'
|
|
76
75
|
};
|
|
77
76
|
setGroupList(function (list) {
|
|
78
|
-
return
|
|
79
|
-
});
|
|
80
|
-
setCurrentGroup(function () {
|
|
81
|
-
var _props$value;
|
|
82
|
-
if (props.defaultSelectAble && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.group)) {
|
|
83
|
-
if (props.showBuiltInTarget && props.value.group.id === -2) {
|
|
84
|
-
return BuiltinIndicators;
|
|
85
|
-
} else {
|
|
86
|
-
var _currentGroup = group;
|
|
87
|
-
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (eGroup) {
|
|
88
|
-
var _props$value2, _props$value2$group;
|
|
89
|
-
if (eGroup.id === ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : (_props$value2$group = _props$value2.group) === null || _props$value2$group === void 0 ? void 0 : _props$value2$group.id)) {
|
|
90
|
-
_currentGroup = eGroup;
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
return _currentGroup;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return group;
|
|
77
|
+
return [group].concat(_toConsumableArray(list));
|
|
98
78
|
});
|
|
79
|
+
setCurrentGroup(group);
|
|
99
80
|
}, []);
|
|
100
81
|
useEffect(function () {
|
|
101
82
|
setCurrentValue(props.value);
|
|
@@ -23,7 +23,6 @@ export declare namespace EventSelectTypes {
|
|
|
23
23
|
showAllEvent?: boolean;
|
|
24
24
|
defaultSelectAble?: boolean;
|
|
25
25
|
popupContainer?: boolean;
|
|
26
|
-
showBuiltInTarget?: boolean;
|
|
27
26
|
onVisibleChange?: (visible: boolean) => void;
|
|
28
27
|
border?: boolean;
|
|
29
28
|
theme?: string;
|
|
@@ -34,7 +33,6 @@ export declare namespace EventSelectTypes {
|
|
|
34
33
|
interface DropdownProps {
|
|
35
34
|
value?: Value;
|
|
36
35
|
showOverview?: boolean;
|
|
37
|
-
showBuiltInTarget?: boolean;
|
|
38
36
|
defaultSelectAble?: boolean;
|
|
39
37
|
onChange?: (value: Value, isOverview?: boolean) => void;
|
|
40
38
|
}
|
package/es/socket/index.d.ts
CHANGED
|
@@ -8,11 +8,12 @@ declare class SocketClient {
|
|
|
8
8
|
private showLog;
|
|
9
9
|
private pingTimer?;
|
|
10
10
|
private appkey?;
|
|
11
|
+
private token?;
|
|
11
12
|
constructor(url: string, appkey: string, params?: Record<string, any>);
|
|
12
13
|
emit(event: string, payload?: SocketClientTypes.Message['data']['payload']): void;
|
|
13
14
|
on<T>(type: SocketClientTypes.EventType | string, handle: (data?: T) => void): void;
|
|
14
|
-
onConnected(handle: () => void): void;
|
|
15
|
-
onDisconnected(handle: () => void): void;
|
|
15
|
+
onConnected(handle: (data?: any) => void): void;
|
|
16
|
+
onDisconnected(handle: (data?: any) => void): void;
|
|
16
17
|
onError(handle: (data?: Error) => void): void;
|
|
17
18
|
private _onError;
|
|
18
19
|
private _onClose;
|
package/es/socket/index.js
CHANGED
|
@@ -29,6 +29,7 @@ var SocketClient = /*#__PURE__*/function () {
|
|
|
29
29
|
this.showLog = false;
|
|
30
30
|
this.pingTimer = void 0;
|
|
31
31
|
this.appkey = void 0;
|
|
32
|
+
this.token = void 0;
|
|
32
33
|
this.appkey = appkey;
|
|
33
34
|
this.url = url;
|
|
34
35
|
this.params = params;
|
|
@@ -122,7 +123,7 @@ var SocketClient = /*#__PURE__*/function () {
|
|
|
122
123
|
_this = this;
|
|
123
124
|
this.log('info', 'socket连接成功', event);
|
|
124
125
|
(_this$listeners$conne = this.listeners['connected']) === null || _this$listeners$conne === void 0 ? void 0 : _this$listeners$conne.forEach(function (handle) {
|
|
125
|
-
handle.call(undefined);
|
|
126
|
+
handle.call(undefined, _this.token);
|
|
126
127
|
});
|
|
127
128
|
this.log('info', 'clear catch', this.catch);
|
|
128
129
|
this.catch.forEach(function (_ref) {
|
|
@@ -235,6 +236,7 @@ var SocketClient = /*#__PURE__*/function () {
|
|
|
235
236
|
var _this4 = this;
|
|
236
237
|
this.getToken().then(function (token) {
|
|
237
238
|
_this4.params = params || _this4.params;
|
|
239
|
+
_this4.token = token;
|
|
238
240
|
if (_this4.client) _this4.close();
|
|
239
241
|
var paramUrl = ["socketToken=".concat(token)];
|
|
240
242
|
if (_this4.params) {
|
|
@@ -51,7 +51,6 @@ export default (function () {
|
|
|
51
51
|
max: 3
|
|
52
52
|
}, /*#__PURE__*/React.createElement(BizEventSelector, {
|
|
53
53
|
showAllEvent: true,
|
|
54
|
-
border: false
|
|
55
|
-
showBuiltInTarget: true
|
|
54
|
+
border: false
|
|
56
55
|
}))), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("p", null, "\u5F53\u524D\u503C\uFF1A", JSON.stringify(target)));
|
|
57
56
|
});
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
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; }
|
|
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
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
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); }
|
|
7
1
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
2
|
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."); }
|
|
9
3
|
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); }
|
|
@@ -18,10 +12,9 @@ import BizConditionGroup from '../attrConditions/group';
|
|
|
18
12
|
import { Skeleton } from 'antd';
|
|
19
13
|
import _ from 'lodash';
|
|
20
14
|
import BizGlobalDataContext from '../context';
|
|
21
|
-
import { BuiltinIndicators } from '../constants/common';
|
|
22
15
|
export var classPrefix = 'biz-target';
|
|
23
16
|
var BizTargetCondition = function BizTargetCondition(props) {
|
|
24
|
-
var _targetData$value2, _targetData$value2$
|
|
17
|
+
var _targetData$value2, _targetData$value2$ev, _targetData$value3, _targetData$value3$ev, _targetData$value4, _targetData$value4$ev, _targetData$value5, _targetData$value5$ev;
|
|
25
18
|
var max = props.max;
|
|
26
19
|
var _useState = useState(),
|
|
27
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -76,14 +69,14 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
76
69
|
}, []);
|
|
77
70
|
useEffect(function () {
|
|
78
71
|
if (targetData === null || targetData === void 0 ? void 0 : targetData.value) {
|
|
79
|
-
var _targetData$value$eve
|
|
72
|
+
var _targetData$value$eve;
|
|
80
73
|
var canAdd = true,
|
|
81
74
|
canDelete = true;
|
|
82
|
-
if (((_targetData$value$eve = targetData.value.event) === null || _targetData$value$eve === void 0 ? void 0 : _targetData$value$eve.id) === -100
|
|
83
|
-
var _targetData$value$gro
|
|
75
|
+
if (((_targetData$value$eve = targetData.value.event) === null || _targetData$value$eve === void 0 ? void 0 : _targetData$value$eve.id) === -100) {
|
|
76
|
+
var _targetData$value$gro;
|
|
84
77
|
canAdd = false;
|
|
85
78
|
setFilters(undefined);
|
|
86
|
-
if (!((_targetData$value$gro = targetData.value.group) === null || _targetData$value$gro === void 0 ? void 0 : _targetData$value$gro.id)
|
|
79
|
+
if (!((_targetData$value$gro = targetData.value.group) === null || _targetData$value$gro === void 0 ? void 0 : _targetData$value$gro.id)) {
|
|
87
80
|
canDelete = false;
|
|
88
81
|
}
|
|
89
82
|
} else {
|
|
@@ -116,55 +109,37 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
116
109
|
eventList: []
|
|
117
110
|
};
|
|
118
111
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
eventList: []
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
BuiltinIndicators.eventList.forEach(function (item) {
|
|
129
|
-
if (item.id === data.eventId) {
|
|
130
|
-
target.value.event = _objectSpread({}, item);
|
|
131
|
-
hasEvent = true;
|
|
132
|
-
}
|
|
133
|
-
});
|
|
112
|
+
if (data.eventId === -100) {
|
|
113
|
+
target.value.event = {
|
|
114
|
+
id: -100,
|
|
115
|
+
name: '事件概览',
|
|
116
|
+
attrList: []
|
|
117
|
+
};
|
|
134
118
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
for (var i = 0; i < eventGroupList.length; i++) {
|
|
144
|
-
var group = eventGroupList[i];
|
|
145
|
-
if (data.eventId !== -100) {
|
|
146
|
-
for (var j = 0; j < group.eventList.length; j++) {
|
|
147
|
-
var event = group.eventList[j];
|
|
148
|
-
if (event.id === data.eventId) {
|
|
149
|
-
target.value.event = event;
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
119
|
+
for (var i = 0; i < eventGroupList.length; i++) {
|
|
120
|
+
var group = eventGroupList[i];
|
|
121
|
+
if (data.eventId !== -100) {
|
|
122
|
+
for (var j = 0; j < group.eventList.length; j++) {
|
|
123
|
+
var event = group.eventList[j];
|
|
124
|
+
if (event.id === data.eventId) {
|
|
125
|
+
target.value.event = event;
|
|
126
|
+
break;
|
|
152
127
|
}
|
|
153
128
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
129
|
+
}
|
|
130
|
+
if (data.eventGroupId && data.eventGroupId === group.id) {
|
|
131
|
+
target.value.group = group;
|
|
132
|
+
break;
|
|
158
133
|
}
|
|
159
134
|
}
|
|
160
135
|
}
|
|
161
136
|
return target;
|
|
162
137
|
};
|
|
163
138
|
var onChangeTarget = function onChangeTarget(target) {
|
|
164
|
-
var _target$value, _target$value$event, _targetData$value, _targetData$value$
|
|
139
|
+
var _target$value, _target$value$event, _targetData$value, _targetData$value$eve2;
|
|
165
140
|
setTargetData(target);
|
|
166
141
|
var filterData = _.cloneDeep(filters);
|
|
167
|
-
if (((_target$value = target.value) === null || _target$value === void 0 ? void 0 : (_target$value$event = _target$value.event) === null || _target$value$event === void 0 ? void 0 : _target$value$event.id) !== (targetData === null || targetData === void 0 ? void 0 : (_targetData$value = targetData.value) === null || _targetData$value === void 0 ? void 0 : (_targetData$value$
|
|
142
|
+
if (((_target$value = target.value) === null || _target$value === void 0 ? void 0 : (_target$value$event = _target$value.event) === null || _target$value$event === void 0 ? void 0 : _target$value$event.id) !== (targetData === null || targetData === void 0 ? void 0 : (_targetData$value = targetData.value) === null || _targetData$value === void 0 ? void 0 : (_targetData$value$eve2 = _targetData$value.event) === null || _targetData$value$eve2 === void 0 ? void 0 : _targetData$value$eve2.id)) {
|
|
168
143
|
filterData = undefined;
|
|
169
144
|
setFilters(undefined);
|
|
170
145
|
setIsAdd(false);
|
|
@@ -188,25 +163,19 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
188
163
|
setFilters(data);
|
|
189
164
|
onChange(dimension, targetData, data);
|
|
190
165
|
};
|
|
191
|
-
var onChange = function onChange(analysisDimension, target,
|
|
166
|
+
var onChange = function onChange(analysisDimension, target, filterDatas) {
|
|
192
167
|
if (props.onChange) {
|
|
193
|
-
var _target$value$event2, _target$value$event3, _target$value$event4, _target$value$event5, _target$value$event6, _target$value$
|
|
168
|
+
var _target$value$event2, _target$value$event3, _target$value$event4, _target$value$event5, _target$value$event6, _target$value$group;
|
|
194
169
|
if (!target || !target.value || !((_target$value$event2 = target.value.event) === null || _target$value$event2 === void 0 ? void 0 : _target$value$event2.id)) return;
|
|
195
|
-
var type = target.value.event.type;
|
|
196
|
-
if (!type) {
|
|
197
|
-
var _target$value$group;
|
|
198
|
-
type = ((_target$value$group = target.value.group) === null || _target$value$group === void 0 ? void 0 : _target$value$group.id) === -2 ? 'whole' : 'event';
|
|
199
|
-
}
|
|
200
170
|
var data = {
|
|
201
|
-
type:
|
|
171
|
+
type: 'event',
|
|
202
172
|
alias: (target === null || target === void 0 ? void 0 : target.alias) || target.value.event.alias || ((_target$value$event3 = target.value.event) === null || _target$value$event3 === void 0 ? void 0 : _target$value$event3.name) || '',
|
|
203
173
|
eventId: (_target$value$event4 = target.value.event) === null || _target$value$event4 === void 0 ? void 0 : _target$value$event4.id,
|
|
204
174
|
eventName: ((_target$value$event5 = target.value.event) === null || _target$value$event5 === void 0 ? void 0 : _target$value$event5.alias) || ((_target$value$event6 = target.value.event) === null || _target$value$event6 === void 0 ? void 0 : _target$value$event6.name),
|
|
205
|
-
eventGroupId: (_target$value$
|
|
175
|
+
eventGroupId: (_target$value$group = target.value.group) === null || _target$value$group === void 0 ? void 0 : _target$value$group.id,
|
|
206
176
|
analysisDimension: analysisDimension,
|
|
207
|
-
filters:
|
|
208
|
-
marked: target.value.event.marked
|
|
209
|
-
isBuiltIn: target.value.event.isBuiltIn
|
|
177
|
+
filters: filterDatas,
|
|
178
|
+
marked: target.value.event.marked
|
|
210
179
|
};
|
|
211
180
|
props.onChange(data);
|
|
212
181
|
}
|
|
@@ -237,8 +206,8 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
237
206
|
onAdd: onAdd,
|
|
238
207
|
onDelete: onDelete,
|
|
239
208
|
onChange: onChangeTarget
|
|
240
|
-
}, props.children),
|
|
241
|
-
eventId: (targetData === null || targetData === void 0 ? void 0 : (_targetData$
|
|
209
|
+
}, props.children), /*#__PURE__*/React.createElement(BizTargetDimension, {
|
|
210
|
+
eventId: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value2 = targetData.value) === null || _targetData$value2 === void 0 ? void 0 : (_targetData$value2$ev = _targetData$value2.event) === null || _targetData$value2$ev === void 0 ? void 0 : _targetData$value2$ev.id) ? targetData === null || targetData === void 0 ? void 0 : (_targetData$value3 = targetData.value) === null || _targetData$value3 === void 0 ? void 0 : (_targetData$value3$ev = _targetData$value3.event) === null || _targetData$value3$ev === void 0 ? void 0 : _targetData$value3$ev.id : undefined,
|
|
242
211
|
value: dimension,
|
|
243
212
|
onChange: onChangeDimension
|
|
244
213
|
})), (filters || isAdd) && /*#__PURE__*/React.createElement(BizConditionGroup, {
|
|
@@ -247,7 +216,7 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
247
216
|
onlyAnd: props.onlyAnd,
|
|
248
217
|
enableEventProp: true,
|
|
249
218
|
enableDelete: true,
|
|
250
|
-
eventIdList: (targetData === null || targetData === void 0 ? void 0 : (_targetData$
|
|
219
|
+
eventIdList: (targetData === null || targetData === void 0 ? void 0 : (_targetData$value4 = targetData.value) === null || _targetData$value4 === void 0 ? void 0 : (_targetData$value4$ev = _targetData$value4.event) === null || _targetData$value4$ev === void 0 ? void 0 : _targetData$value4$ev.id) ? [targetData === null || targetData === void 0 ? void 0 : (_targetData$value5 = targetData.value) === null || _targetData$value5 === void 0 ? void 0 : (_targetData$value5$ev = _targetData$value5.event) === null || _targetData$value5$ev === void 0 ? void 0 : _targetData$value5$ev.id] : undefined,
|
|
251
220
|
onChange: onChangeFilters,
|
|
252
221
|
onConditionsCount: setCount
|
|
253
222
|
})));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.33-
|
|
3
|
+
"version": "1.1.33-visual.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react": "^16.12.0 || ^17.0.0",
|
|
60
60
|
"yorkie": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "33f36100014f045a2edec042b3190bb476dbec4d"
|
|
63
63
|
}
|
package/es/constants/common.d.ts
DELETED
package/es/constants/common.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export var BuiltinIndicators = {
|
|
2
|
-
id: -2,
|
|
3
|
-
name: '整体',
|
|
4
|
-
eventList: [{
|
|
5
|
-
name: '新增用户',
|
|
6
|
-
id: -201,
|
|
7
|
-
type: 'add',
|
|
8
|
-
isBuiltIn: true,
|
|
9
|
-
attrList: []
|
|
10
|
-
}, {
|
|
11
|
-
name: '活跃用户',
|
|
12
|
-
id: -202,
|
|
13
|
-
type: 'active',
|
|
14
|
-
isBuiltIn: true,
|
|
15
|
-
attrList: []
|
|
16
|
-
}, {
|
|
17
|
-
name: '访问次数',
|
|
18
|
-
id: -203,
|
|
19
|
-
type: 'times',
|
|
20
|
-
isBuiltIn: true,
|
|
21
|
-
attrList: []
|
|
22
|
-
}, {
|
|
23
|
-
name: '平均使用时长',
|
|
24
|
-
id: -204,
|
|
25
|
-
type: 'duration_avg',
|
|
26
|
-
isBuiltIn: true,
|
|
27
|
-
attrList: []
|
|
28
|
-
}, {
|
|
29
|
-
name: '使用时长分布',
|
|
30
|
-
id: -205,
|
|
31
|
-
type: 'duration',
|
|
32
|
-
isBuiltIn: true,
|
|
33
|
-
attrList: []
|
|
34
|
-
}]
|
|
35
|
-
};
|