@zgfe/business-lib 1.2.50 → 1.2.51-plat.0

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 +477 -17
  2. package/es/assets/iconfont/iconfont.css +85 -5
  3. package/es/assets/iconfont/iconfont.js +9 -9
  4. package/es/assets/iconfont/iconfont.json +144 -4
  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/index.d.ts +2 -1
  9. package/es/index.js +2 -1
  10. package/es/platformSelector/demo/index.d.ts +3 -0
  11. package/es/platformSelector/demo/index.js +16 -0
  12. package/es/platformSelector/index.d.ts +19 -0
  13. package/es/platformSelector/index.js +39 -0
  14. package/es/platformSelector/styles/index.less +9 -0
  15. package/es/platformSelector/types.d.ts +6 -0
  16. package/es/platformSelector/types.js +1 -0
  17. package/es/platformSelector/util.d.ts +2 -0
  18. package/es/platformSelector/util.js +44 -0
  19. package/es/table/font_2545884_ievcoe4sky/demo.css +539 -0
  20. package/es/table/font_2545884_ievcoe4sky/demo_index.html +4857 -0
  21. package/es/table/font_2545884_ievcoe4sky/iconfont.css +827 -0
  22. package/es/table/font_2545884_ievcoe4sky/iconfont.js +43 -0
  23. package/es/table/font_2545884_ievcoe4sky/iconfont.json +1430 -0
  24. package/es/table/font_2545884_ievcoe4sky/iconfont.ttf +0 -0
  25. package/es/table/font_2545884_ievcoe4sky/iconfont.woff +0 -0
  26. package/es/table/font_2545884_ievcoe4sky/iconfont.woff2 +0 -0
  27. package/es/userCondition/conditions/cdpCondition.js +8 -2
  28. package/es/userCondition/conditions/cdpCshCondition.js +14 -3
  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 +1 -1
  33. package/package.json +2 -2
@@ -16,11 +16,12 @@ import { PropType } from '../types';
16
16
  import './styles/cdpCondition.less';
17
17
  import _ from 'lodash';
18
18
  import { dateOperate, numberOperate, stringOperate } from '../../attrConditions/utils/operates';
19
- import { DatePicker, Input } from 'antd';
19
+ import { DatePicker, Input, Tooltip } from 'antd';
20
20
  import moment from 'moment';
21
21
  import { BizUserConditionContext } from '..';
22
22
  import request from '../../utils/ajax';
23
23
  import Apis from '../../constants/apis';
24
+ import IconFont from '../../icon/iconFont';
24
25
  var classPrefix = 'biz-user-condition-cdp';
25
26
  var CdpConditionItem = function CdpConditionItem(props) {
26
27
  var _useContext = useContext(BizUserConditionContext),
@@ -263,7 +264,12 @@ var CdpConditionItem = function CdpConditionItem(props) {
263
264
  keyField: "metaDatasetId",
264
265
  value: dataset,
265
266
  onChange: onTableChange
266
- }), dataset ? /*#__PURE__*/React.createElement("div", {
267
+ }), /*#__PURE__*/React.createElement(Tooltip, {
268
+ title: "\u9009\u62E9\u660E\u7EC6\u6570\u636E\uFF0C\u589E\u52A0\u5E2E\u52A9\u5F15\u5BFC\u5165\u53E3"
269
+ }, /*#__PURE__*/React.createElement(IconFont, {
270
+ type: "bangzhu",
271
+ className: "".concat(classPrefix, "-select-tips")
272
+ })), dataset ? /*#__PURE__*/React.createElement("div", {
267
273
  className: "".concat(classPrefix, "-item")
268
274
  }, /*#__PURE__*/React.createElement(BizSelect, {
269
275
  className: "".concat(classPrefix, "-select-field"),
@@ -16,11 +16,12 @@ import { PropType } from '../types';
16
16
  import './styles/cdpCshCondition.less';
17
17
  import _ from 'lodash';
18
18
  import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2 } from '../../attrConditions/utils/operates';
19
- import { DatePicker, Input } from 'antd';
19
+ import { DatePicker, Input, Tooltip } from 'antd';
20
20
  import moment from 'moment';
21
21
  import { BizUserConditionContext } from '..';
22
22
  import request from '../../utils/ajax';
23
23
  import Apis from '../../constants/apis';
24
+ import IconFont from '../../icon/iconFont';
24
25
  var classPrefix = 'biz-user-condition-cdp-csh';
25
26
  var CdpConditionItem = function CdpConditionItem(props) {
26
27
  var _useContext = useContext(BizUserConditionContext),
@@ -407,7 +408,12 @@ var CdpConditionItem = function CdpConditionItem(props) {
407
408
  keyField: "metaDatasetId",
408
409
  value: subDataset,
409
410
  onChange: onSubTableChange
410
- }), /*#__PURE__*/React.createElement("div", {
411
+ }), /*#__PURE__*/React.createElement(Tooltip, {
412
+ title: "\u9009\u62E9\u660E\u7EC6\u6570\u636E\uFF0C\u589E\u52A0\u5E2E\u52A9\u5F15\u5BFC\u5165\u53E3"
413
+ }, /*#__PURE__*/React.createElement(IconFont, {
414
+ type: "bangzhu",
415
+ className: "".concat(classPrefix, "-select-tips")
416
+ })), /*#__PURE__*/React.createElement("div", {
411
417
  className: "".concat(classPrefix, "-item")
412
418
  }, /*#__PURE__*/React.createElement(BizSelect, {
413
419
  className: "".concat(classPrefix, "-select-field"),
@@ -464,7 +470,12 @@ var CdpConditionItem = function CdpConditionItem(props) {
464
470
  keyField: "metaDatasetId",
465
471
  value: dataset,
466
472
  onChange: onTableChange
467
- }), dataset ? /*#__PURE__*/React.createElement("div", {
473
+ }), /*#__PURE__*/React.createElement(Tooltip, {
474
+ title: "\u9009\u62E9\u660E\u7EC6\u6570\u636E\uFF0C\u589E\u52A0\u5E2E\u52A9\u5F15\u5BFC\u5165\u53E3"
475
+ }, /*#__PURE__*/React.createElement(IconFont, {
476
+ type: "bangzhu",
477
+ className: "".concat(classPrefix, "-select-tips")
478
+ })), dataset ? /*#__PURE__*/React.createElement("div", {
468
479
  className: "".concat(classPrefix, "-item")
469
480
  }, /*#__PURE__*/React.createElement(BizSelect, {
470
481
  className: "".concat(classPrefix, "-select-field"),
@@ -21,6 +21,12 @@
21
21
  &-select-dataset {
22
22
  width: 255px;
23
23
  }
24
+ &-select-tips {
25
+ height: 32px;
26
+ margin-left: 8px;
27
+ color: #9aa1a9;
28
+ line-height: 32px;
29
+ }
24
30
  &-select-field {
25
31
  width: 129px;
26
32
  }
@@ -27,6 +27,12 @@
27
27
  &-select-dataset {
28
28
  width: 150px;
29
29
  }
30
+ &-select-tips {
31
+ height: 32px;
32
+ margin-left: 8px;
33
+ color: #9aa1a9;
34
+ line-height: 32px;
35
+ }
30
36
  &-select-field {
31
37
  width: 129px;
32
38
  }
@@ -45,7 +45,8 @@ var Overlay = function Overlay(_ref2) {
45
45
  var _useContext = useContext(BizGlobalDataContext),
46
46
  userGroupList = _useContext.userGroupList,
47
47
  showUserGroupModal = _useContext.showUserGroupModal,
48
- setUserGroupList = _useContext.setUserGroupList;
48
+ setUserGroupList = _useContext.setUserGroupList,
49
+ currentApp = _useContext.currentApp;
49
50
  var _useState5 = useState(),
50
51
  _useState6 = _slicedToArray(_useState5, 2),
51
52
  currentGroup = _useState6[0],
@@ -96,10 +97,10 @@ var Overlay = function Overlay(_ref2) {
96
97
  className: "".concat(classPrefix, "-typelist")
97
98
  }, [{
98
99
  type: 'userGroup',
99
- label: '用户分群'
100
+ label: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5206\u7FA4")
100
101
  }, {
101
102
  type: 'tag',
102
- label: '用户标签'
103
+ label: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u6807\u7B7E")
103
104
  }].map(function (item) {
104
105
  return /*#__PURE__*/React.createElement("div", {
105
106
  key: item.type,
@@ -123,13 +124,13 @@ var Overlay = function Overlay(_ref2) {
123
124
  }, /*#__PURE__*/React.createElement(Search, {
124
125
  show: true,
125
126
  onChange: onSearch,
126
- placeholder: "\u641C\u7D22\u7528\u6237\u7FA4\u540D\u79F0"
127
+ placeholder: "\u641C\u7D22\u5206\u7FA4\u540D\u79F0"
127
128
  }), /*#__PURE__*/React.createElement("a", {
128
129
  className: "".concat(classPrefix, "-add"),
129
130
  onClick: onClickAdd
130
131
  }, /*#__PURE__*/React.createElement(IconFont, {
131
132
  type: "zengjia"
132
- }), "\u65B0\u5EFA\u7528\u6237\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
133
+ }), "\u65B0\u5EFA\u5206\u7FA4")), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
133
134
  data: showList || [],
134
135
  itemHeight: 32,
135
136
  itemKey: "id",
@@ -77,7 +77,7 @@ var BizUserGroupHeader = function BizUserGroupHeader(_ref) {
77
77
  placeholder: placeholder
78
78
  });
79
79
  })], /*#__PURE__*/React.createElement(Tooltip, {
80
- title: "\u6DFB\u52A0\u7528\u6237\u7FA4\u505A\u5BF9\u6BD4"
80
+ title: "\u6DFB\u52A0\u5206\u7FA4\u505A\u5BF9\u6BD4"
81
81
  }, /*#__PURE__*/React.createElement(IconFont, {
82
82
  type: "tianjia",
83
83
  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.50",
3
+ "version": "1.2.51-plat.0",
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": "43bb6c649f157574dd89b35c9d491644708aecad",
58
+ "gitHead": "9754b25ed99633fd6b49b84307065bd28e482e7a",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }