@zgfe/modules-attribution 1.1.6-alpha.0 → 1.1.6-guiyang-optimize.6
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/components/option/index.js +16 -13
- package/es/components/searchTime/index.js +5 -5
- package/es/components/title/index.js +17 -18
- package/es/components/title/searchTitle.js +8 -8
- package/es/modules/chart/demo/index.d.ts +2 -1
- package/es/modules/chart/index.js +12 -9
- package/es/modules/content/index.js +13 -10
- package/es/modules/content/utils.js +6 -3
- package/es/modules/home/demo/create.d.ts +2 -1
- package/es/modules/home/demo/edit.d.ts +2 -1
- package/es/modules/home/demo/index.d.ts +2 -1
- package/es/modules/home/demo/scene.d.ts +2 -1
- package/es/modules/home/index.js +42 -38
- package/es/modules/searchPanel/components/attributableEvents.js +31 -31
- package/es/modules/searchPanel/components/globalAttribute.d.ts +1 -9
- package/es/modules/searchPanel/components/globalAttribute.js +25 -25
- package/es/modules/searchPanel/components/index.d.ts +1 -3
- package/es/modules/searchPanel/components/index.js +22 -10
- package/es/modules/searchPanel/components/targetEvent.js +10 -10
- package/es/modules/searchPanel/index.js +45 -40
- package/es/modules/searchPanel/utils.d.ts +1 -1
- package/es/modules/searchPanel/utils.js +69 -17
- package/package.json +3 -3
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
2
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
3
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
4
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
6
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
7
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
8
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
9
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
11
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
12
|
+
import { eventApi } from '@zgfe/business-lib';
|
|
13
|
+
export function targetChangeCallback(data, eList, eventGroupList, appId) {
|
|
2
14
|
if (eList.length <= 0) {
|
|
3
15
|
data.globalFilters = undefined;
|
|
4
16
|
} else {
|
|
@@ -7,7 +19,7 @@ export function targetChangeCallback(data, eList, eventGroupList) {
|
|
|
7
19
|
data.globalFilters.conditions.forEach(function (condition) {
|
|
8
20
|
if (condition) {
|
|
9
21
|
if (condition.propCategory === 'eventProp' && condition.attrId) {
|
|
10
|
-
var hasExit = judgeAttrInEvents(eList, condition.attrId, eventGroupList);
|
|
22
|
+
var hasExit = judgeAttrInEvents(eList, condition.attrId, eventGroupList, appId);
|
|
11
23
|
if (!hasExit) {
|
|
12
24
|
flag = false;
|
|
13
25
|
}
|
|
@@ -21,23 +33,63 @@ export function targetChangeCallback(data, eList, eventGroupList) {
|
|
|
21
33
|
}
|
|
22
34
|
return data;
|
|
23
35
|
}
|
|
24
|
-
var judgeAttrInEvents = function
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
var judgeAttrInEvents = /*#__PURE__*/function () {
|
|
37
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(elds, attrId, eventGroupList, appId) {
|
|
38
|
+
var flag, allAttrs, _iterator, _step, eventId, attrs, _t;
|
|
39
|
+
return _regenerator().w(function (_context) {
|
|
40
|
+
while (1) switch (_context.p = _context.n) {
|
|
41
|
+
case 0:
|
|
42
|
+
flag = false;
|
|
43
|
+
if (eventGroupList) {
|
|
44
|
+
_context.n = 1;
|
|
45
|
+
break;
|
|
34
46
|
}
|
|
35
|
-
|
|
47
|
+
return _context.a(2, false);
|
|
48
|
+
case 1:
|
|
49
|
+
allAttrs = [];
|
|
50
|
+
_iterator = _createForOfIteratorHelper(elds);
|
|
51
|
+
_context.p = 2;
|
|
52
|
+
_iterator.s();
|
|
53
|
+
case 3:
|
|
54
|
+
if ((_step = _iterator.n()).done) {
|
|
55
|
+
_context.n = 6;
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
eventId = _step.value;
|
|
59
|
+
_context.n = 4;
|
|
60
|
+
return eventApi.fetchEventAttrs(eventId, appId);
|
|
61
|
+
case 4:
|
|
62
|
+
attrs = _context.v;
|
|
63
|
+
allAttrs.push.apply(allAttrs, _toConsumableArray(attrs));
|
|
64
|
+
allAttrs.forEach(function (attr) {
|
|
65
|
+
if (attr.id === attrId) {
|
|
66
|
+
flag = true;
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
case 5:
|
|
71
|
+
_context.n = 3;
|
|
72
|
+
break;
|
|
73
|
+
case 6:
|
|
74
|
+
_context.n = 8;
|
|
75
|
+
break;
|
|
76
|
+
case 7:
|
|
77
|
+
_context.p = 7;
|
|
78
|
+
_t = _context.v;
|
|
79
|
+
_iterator.e(_t);
|
|
80
|
+
case 8:
|
|
81
|
+
_context.p = 8;
|
|
82
|
+
_iterator.f();
|
|
83
|
+
return _context.f(8);
|
|
84
|
+
case 9:
|
|
85
|
+
return _context.a(2, flag);
|
|
36
86
|
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
return
|
|
40
|
-
|
|
87
|
+
}, _callee, null, [[2, 7, 8, 9]]);
|
|
88
|
+
}));
|
|
89
|
+
return function judgeAttrInEvents(_x, _x2, _x3, _x4) {
|
|
90
|
+
return _ref.apply(this, arguments);
|
|
91
|
+
};
|
|
92
|
+
}();
|
|
41
93
|
export function operableOrNotHandle(data, attrSourceCount, attrTargetCount, mincePropCount, attrGlobalCount) {
|
|
42
94
|
var flagList = [];
|
|
43
95
|
if (data.attributionType === undefined) return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-attribution",
|
|
3
|
-
"version": "1.1.6-
|
|
3
|
+
"version": "1.1.6-guiyang-optimize.6",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/lodash": "^4.14.191",
|
|
38
38
|
"@umijs/fabric": "^2.8.1",
|
|
39
39
|
"@umijs/test": "^3.0.5",
|
|
40
|
-
"@zgfe/business-lib": "1.
|
|
40
|
+
"@zgfe/business-lib": "1.2.34-guiyang2-optimize.10",
|
|
41
41
|
"antd": "^4.22.6",
|
|
42
42
|
"dumi": "^1.1.0",
|
|
43
43
|
"echarts": "^5.3.2",
|
|
@@ -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": "80084abd7fb92ac6f2549d64f8b7cd09025e3edc"
|
|
54
54
|
}
|