@zgfe/modules-attribution 1.0.1-alpha.21 → 1.0.1-alpha.23

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
- "propCategory": "eventProp",
68
- "type": 1,
69
- "attrId": 139499
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
- "propCategory": "eventProp",
98
- "type": 1,
99
- "attrId": 139490
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,10 @@ 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
84
  });
85
85
  setAttrSelectShow(true);
86
86
  }
@@ -163,11 +163,14 @@ var AttributableEvents = function AttributableEvents(props) {
163
163
  });
164
164
  }
165
165
  var _minceAttr = attr === undefined ? undefined : {
166
- propCategory: attr.propCategory,
167
- type: attr.type,
168
- attrId: attr.id,
169
- attrName: attr.name,
170
- category: attr.category
166
+ relation: "and",
167
+ conditions: {
168
+ propCategory: attr.propCategory,
169
+ type: attr.type,
170
+ attrId: attr.id,
171
+ attrName: attr.name,
172
+ category: attr.category
173
+ }
171
174
  };
172
175
  setMinceAttr(_minceAttr);
173
176
  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,16 +16,19 @@ export interface FiltersProps {
16
16
  eventId: number;
17
17
  eventName: string;
18
18
  filters?: AttrConditionTypes.GroupValue | undefined;
19
- attributionSubdivision?: PropfiltersProps | undefined;
19
+ attributionSubdivision?: AttributionSubdivisionProps | undefined;
20
20
  }
21
- export interface PropfiltersProps {
22
- attrId: number | undefined;
23
- propCategory: string | undefined;
24
- type: string | undefined;
25
- id?: number | undefined;
26
- name?: string | undefined;
27
- category?: string | undefined;
28
- attrName?: string | undefined;
21
+ export interface AttributionSubdivisionProps {
22
+ relation: 'and' | 'or';
23
+ conditions: {
24
+ attrId: number | undefined;
25
+ propCategory: string | undefined;
26
+ type: string | undefined;
27
+ id?: number | undefined;
28
+ name?: string | undefined;
29
+ category?: string | undefined;
30
+ attrName?: string | undefined;
31
+ };
29
32
  }
30
33
  export interface TableDataHandleProps {
31
34
  xAxis: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-attribution",
3
- "version": "1.0.1-alpha.21",
3
+ "version": "1.0.1-alpha.23",
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": "996f95a27a25d2365836ab5a3533ee33fb8a14b6"
53
+ "gitHead": "29c789967da8b0268c0d9e70e481252935120876"
54
54
  }