@zgfe/modules-attribution 1.0.1-alpha.21 → 1.0.1-alpha.24
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.
|
@@ -64,9 +64,12 @@ var defaultValue = {
|
|
|
64
64
|
}]
|
|
65
65
|
},
|
|
66
66
|
"attributionSubdivision": {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
relation: "and",
|
|
68
|
+
conditions: {
|
|
69
|
+
"propCategory": "eventProp",
|
|
70
|
+
"type": 1,
|
|
71
|
+
"attrId": 139499
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
}, {
|
|
72
75
|
"eventId": 6088,
|
|
@@ -94,9 +97,12 @@ var defaultValue = {
|
|
|
94
97
|
}]
|
|
95
98
|
},
|
|
96
99
|
"attributionSubdivision": {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
relation: "and",
|
|
101
|
+
conditions: {
|
|
102
|
+
"propCategory": "eventProp",
|
|
103
|
+
"type": 1,
|
|
104
|
+
"attrId": 139490
|
|
105
|
+
}
|
|
100
106
|
}
|
|
101
107
|
}],
|
|
102
108
|
"globalFilters": {
|
|
@@ -77,10 +77,12 @@ var AttributableEvents = function AttributableEvents(props) {
|
|
|
77
77
|
if (eventIdList && eventIdList.length >= 0) {
|
|
78
78
|
setEventId(eventIdList[0]);
|
|
79
79
|
}
|
|
80
|
-
if (value.attributionSubdivision) {
|
|
80
|
+
if (value.attributionSubdivision && value.attributionSubdivision.conditions) {
|
|
81
81
|
setBizAttributeSelectorValue({
|
|
82
|
-
id: value.attributionSubdivision.attrId,
|
|
83
|
-
propCategory: value.attributionSubdivision.propCategory
|
|
82
|
+
id: value.attributionSubdivision.conditions.attrId,
|
|
83
|
+
propCategory: value.attributionSubdivision.conditions.propCategory,
|
|
84
|
+
name: value.attributionSubdivision.conditions.attrName,
|
|
85
|
+
category: value.attributionSubdivision.conditions.category
|
|
84
86
|
});
|
|
85
87
|
setAttrSelectShow(true);
|
|
86
88
|
}
|
|
@@ -159,15 +161,20 @@ var AttributableEvents = function AttributableEvents(props) {
|
|
|
159
161
|
} else {
|
|
160
162
|
setBizAttributeSelectorValue({
|
|
161
163
|
id: attr.id,
|
|
162
|
-
propCategory: attr.propCategory
|
|
164
|
+
propCategory: attr.propCategory,
|
|
165
|
+
name: attr.name,
|
|
166
|
+
category: attr.category
|
|
163
167
|
});
|
|
164
168
|
}
|
|
165
169
|
var _minceAttr = attr === undefined ? undefined : {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
relation: "and",
|
|
171
|
+
conditions: {
|
|
172
|
+
propCategory: attr.propCategory,
|
|
173
|
+
type: attr.type,
|
|
174
|
+
attrId: attr.id,
|
|
175
|
+
attrName: attr.name,
|
|
176
|
+
category: attr.category
|
|
177
|
+
}
|
|
171
178
|
};
|
|
172
179
|
setMinceAttr(_minceAttr);
|
|
173
180
|
onChangeHandle(ReasonData, filters, _minceAttr);
|
|
@@ -20,7 +20,6 @@ import { AttributableContext } from '../../types';
|
|
|
20
20
|
export var classPrefix = 'mi-left-form';
|
|
21
21
|
var SearchPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
22
22
|
var defaultValue = props.defaultValue;
|
|
23
|
-
console.log('SearchPanel', defaultValue);
|
|
24
23
|
var _useContext = useContext(AttributableContext),
|
|
25
24
|
buttonDisable = _useContext.buttonDisable,
|
|
26
25
|
setButtonDisable = _useContext.setButtonDisable;
|
package/es/types.d.ts
CHANGED
|
@@ -16,9 +16,13 @@ export interface FiltersProps {
|
|
|
16
16
|
eventId: number;
|
|
17
17
|
eventName: string;
|
|
18
18
|
filters?: AttrConditionTypes.GroupValue | undefined;
|
|
19
|
-
attributionSubdivision?:
|
|
19
|
+
attributionSubdivision?: AttributionSubdivisionProps | undefined;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface AttributionSubdivisionProps {
|
|
22
|
+
relation: string;
|
|
23
|
+
conditions: ConditionsnProps;
|
|
24
|
+
}
|
|
25
|
+
export interface ConditionsnProps {
|
|
22
26
|
attrId: number | undefined;
|
|
23
27
|
propCategory: string | undefined;
|
|
24
28
|
type: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-attribution",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.24",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react": "^16.12.0 || ^17.0.0",
|
|
51
51
|
"yorkie": "^2.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "2d3ab096fd12d162ccc7b0b9128ed188b2086cfd"
|
|
54
54
|
}
|