@zgfe/business-lib 1.2.51-heyh.0 → 1.2.51-heyh.3

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 (33) hide show
  1. package/es/assets/iconfont/demo_index.html +49 -26
  2. package/es/assets/iconfont/iconfont.css +11 -7
  3. package/es/assets/iconfont/iconfont.js +1 -1
  4. package/es/assets/iconfont/iconfont.json +14 -7
  5. package/es/assets/iconfont/iconfont.ttf +0 -0
  6. package/es/assets/iconfont/iconfont.woff +0 -0
  7. package/es/assets/iconfont/iconfont.woff2 +0 -0
  8. package/es/chart/demo/data/data.d.ts +2 -0
  9. package/es/chart/demo/data/data.js +5 -37
  10. package/es/chart/demo/line_bar_stack.js +0 -1
  11. package/es/chart/index.js +10 -0
  12. package/es/chart/styles/index.less +45 -0
  13. package/es/chart/util/chartOptionConfig.js +12 -0
  14. package/es/chart/util/formatData.js +3 -1
  15. package/es/chart/util/formatOption.js +21 -11
  16. package/es/index.d.ts +2 -1
  17. package/es/index.js +2 -1
  18. package/es/platformSelector/demo/index.d.ts +3 -0
  19. package/es/platformSelector/demo/index.js +16 -0
  20. package/es/platformSelector/index.d.ts +16 -0
  21. package/es/platformSelector/index.js +44 -0
  22. package/es/platformSelector/styles/index.less +22 -0
  23. package/es/platformSelector/types.d.ts +6 -0
  24. package/es/platformSelector/types.js +1 -0
  25. package/es/platformSelector/util.d.ts +2 -0
  26. package/es/platformSelector/util.js +44 -0
  27. package/es/userCondition/conditions/cdpCondition.js +8 -1
  28. package/es/userCondition/conditions/cdpCshCondition.js +15 -2
  29. package/es/userCondition/conditions/styles/cdpCondition.less +6 -0
  30. package/es/userCondition/conditions/styles/cdpCshCondition.less +6 -0
  31. package/es/userGroup/overlay.js +6 -5
  32. package/es/userGroupHeader/index.js +7 -4
  33. package/package.json +2 -2
@@ -8,11 +8,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { useEffect } from 'react';
11
+ import React, { useEffect, useContext } from 'react';
12
12
  import './styles/index.less';
13
13
  import { Space, Tooltip } from 'antd';
14
14
  import BizUserGroup from '../userGroup';
15
15
  import IconFont from '../icon/iconFont';
16
+ import BizGlobalDataContext from '../context';
16
17
  import _ from 'lodash';
17
18
  var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
18
19
  var max = _ref.max,
@@ -21,6 +22,8 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
21
22
  enableTags = _ref.enableTags,
22
23
  title = _ref.title,
23
24
  placeholder = _ref.placeholder;
25
+ var _useContext = useContext(BizGlobalDataContext),
26
+ currentApp = _useContext.currentApp;
24
27
  var classPrefix = 'biz-user-group-header';
25
28
  var _React$useState = React.useState([]),
26
29
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -55,7 +58,7 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
55
58
  className: classPrefix
56
59
  }, /*#__PURE__*/React.createElement("div", {
57
60
  className: "".concat(classPrefix, "-title")
58
- }, title || '分析用户群'), /*#__PURE__*/React.createElement(Space, {
61
+ }, title || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '分析用户群' : '主体分群'), /*#__PURE__*/React.createElement(Space, {
59
62
  size: 16,
60
63
  className: "".concat(classPrefix, "-container")
61
64
  }, [tempValue.map(function (item, i) {
@@ -74,10 +77,10 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
74
77
  list[i].value = val;
75
78
  setTempValue(list);
76
79
  },
77
- placeholder: placeholder
80
+ placeholder: placeholder || '请选择分群'
78
81
  });
79
82
  })], /*#__PURE__*/React.createElement(Tooltip, {
80
- title: "\u6DFB\u52A0\u7528\u6237\u7FA4\u505A\u5BF9\u6BD4"
83
+ title: "\u6DFB\u52A0\u5206\u7FA4\u505A\u5BF9\u6BD4"
81
84
  }, /*#__PURE__*/React.createElement(IconFont, {
82
85
  type: "tianjia",
83
86
  className: "".concat(classPrefix, "-add ").concat(max && tempValue.length >= max ? 'disabled' : ''),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.51-heyh.0",
3
+ "version": "1.2.51-heyh.3",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "files": [
@@ -55,7 +55,7 @@
55
55
  "react": "^16.12.0 || ^17.0.0",
56
56
  "yorkie": "^2.0.0"
57
57
  },
58
- "gitHead": "e55ca3a4e52f26b97894c3df9b0dffe165f70f73",
58
+ "gitHead": "48615f39cbf4e9000895406779da526afe803b32",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }