@zgfe/business-lib 1.2.48-plat.0 → 1.2.48-plat.10
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/assets/iconfont/demo_index.html +118 -3
- package/es/assets/iconfont/iconfont.css +23 -3
- package/es/assets/iconfont/iconfont.js +9 -9
- package/es/assets/iconfont/iconfont.json +35 -0
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/platformSelector/demo/index.d.ts +3 -0
- package/es/platformSelector/demo/index.js +16 -0
- package/es/platformSelector/index.d.ts +14 -0
- package/es/platformSelector/index.js +65 -0
- package/es/platformSelector/styles/index.less +9 -0
- package/es/userCondition/conditions/cdpCondition.js +8 -2
- package/es/userCondition/conditions/cdpCshCondition.js +14 -3
- package/es/userCondition/conditions/styles/cdpCondition.less +6 -0
- package/es/userCondition/conditions/styles/cdpCshCondition.less +6 -0
- package/es/userGroup/overlay.js +6 -5
- package/es/userGroupHeader/index.js +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,41 @@
|
|
|
5
5
|
"css_prefix_text": "",
|
|
6
6
|
"description": "诸葛业务平台",
|
|
7
7
|
"glyphs": [
|
|
8
|
+
{
|
|
9
|
+
"icon_id": "41153342",
|
|
10
|
+
"name": "上传图片",
|
|
11
|
+
"font_class": "shangchuantupian",
|
|
12
|
+
"unicode": "e648",
|
|
13
|
+
"unicode_decimal": 58952
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"icon_id": "41153408",
|
|
17
|
+
"name": "插入指标",
|
|
18
|
+
"font_class": "charuzhibiao",
|
|
19
|
+
"unicode": "e644",
|
|
20
|
+
"unicode_decimal": 58948
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"icon_id": "41153407",
|
|
24
|
+
"name": "添加标题",
|
|
25
|
+
"font_class": "tianjiabiaoti",
|
|
26
|
+
"unicode": "e645",
|
|
27
|
+
"unicode_decimal": 58949
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"icon_id": "41153406",
|
|
31
|
+
"name": "添加文本",
|
|
32
|
+
"font_class": "tianjiawenben",
|
|
33
|
+
"unicode": "e646",
|
|
34
|
+
"unicode_decimal": 58950
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"icon_id": "41153405",
|
|
38
|
+
"name": "添加图片",
|
|
39
|
+
"font_class": "tianjiatupian",
|
|
40
|
+
"unicode": "e647",
|
|
41
|
+
"unicode_decimal": 58951
|
|
42
|
+
},
|
|
8
43
|
{
|
|
9
44
|
"icon_id": "41047713",
|
|
10
45
|
"name": "js 2",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/es/index.d.ts
CHANGED
|
@@ -46,8 +46,9 @@ import { chartColors } from './chart/util/color';
|
|
|
46
46
|
import useBizStore from './hooks/useBizStore';
|
|
47
47
|
import useChanged from './hooks/useChanged';
|
|
48
48
|
import useSubject from './hooks/useSubject';
|
|
49
|
+
import BizPlatformSelector from './platformSelector';
|
|
49
50
|
import DataSetGroup from './dataSetGroup';
|
|
50
|
-
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, };
|
|
51
|
+
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizPlatformSelector, };
|
|
51
52
|
export type { UserGroupTypes } from './userGroup/types';
|
|
52
53
|
export type { BizProductConditionT } from './productCondition/types';
|
|
53
54
|
export type { BizSelectTypes } from './select/types';
|
package/es/index.js
CHANGED
|
@@ -45,5 +45,6 @@ import { chartColors } from './chart/util/color';
|
|
|
45
45
|
import useBizStore from './hooks/useBizStore';
|
|
46
46
|
import useChanged from './hooks/useChanged';
|
|
47
47
|
import useSubject from './hooks/useSubject';
|
|
48
|
+
import BizPlatformSelector from './platformSelector';
|
|
48
49
|
import DataSetGroup from './dataSetGroup';
|
|
49
|
-
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup };
|
|
50
|
+
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizPlatformSelector };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BizPlatformSelector } from '@zgfe/business-lib';
|
|
3
|
+
import InnerDemo from '../../demoWrapper/innerDemo';
|
|
4
|
+
export default (function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(InnerDemo, null, /*#__PURE__*/React.createElement("div", {
|
|
6
|
+
style: {
|
|
7
|
+
padding: '16px',
|
|
8
|
+
border: '1px solid #eee',
|
|
9
|
+
background: '#ddd'
|
|
10
|
+
}
|
|
11
|
+
}, /*#__PURE__*/React.createElement(BizPlatformSelector, {
|
|
12
|
+
onChange: function onChange(value) {
|
|
13
|
+
console.log('>>>>>>>>回传值', value);
|
|
14
|
+
}
|
|
15
|
+
})));
|
|
16
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import './styles/index.less';
|
|
3
|
+
export interface platItemProp {
|
|
4
|
+
key: number;
|
|
5
|
+
value: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const BizPlatformSelector: React.FC<{
|
|
9
|
+
onChange: (val: {
|
|
10
|
+
key: number;
|
|
11
|
+
value: string;
|
|
12
|
+
}) => void;
|
|
13
|
+
}>;
|
|
14
|
+
export default BizPlatformSelector;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconFont, BizSelect } from '@zgfe/business-lib';
|
|
3
|
+
import './styles/index.less';
|
|
4
|
+
var BizPlatformSelector = function BizPlatformSelector(props) {
|
|
5
|
+
var classPrefix = 'biz-platform-selector';
|
|
6
|
+
var platformOption = [{
|
|
7
|
+
key: -1,
|
|
8
|
+
value: '全部平台'
|
|
9
|
+
}, {
|
|
10
|
+
key: 1,
|
|
11
|
+
value: 'Android',
|
|
12
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
13
|
+
type: "android1",
|
|
14
|
+
size: 16
|
|
15
|
+
})
|
|
16
|
+
}, {
|
|
17
|
+
key: 2,
|
|
18
|
+
value: 'IOS',
|
|
19
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
20
|
+
type: "ios1",
|
|
21
|
+
size: 16
|
|
22
|
+
})
|
|
23
|
+
}, {
|
|
24
|
+
key: 3,
|
|
25
|
+
value: 'JS',
|
|
26
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
27
|
+
type: "a-js2",
|
|
28
|
+
size: 16
|
|
29
|
+
})
|
|
30
|
+
}, {
|
|
31
|
+
key: 4,
|
|
32
|
+
value: '微信小程序',
|
|
33
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
34
|
+
type: "weixinxiaochengxu",
|
|
35
|
+
size: 16
|
|
36
|
+
})
|
|
37
|
+
}, {
|
|
38
|
+
key: 5,
|
|
39
|
+
value: '服务端',
|
|
40
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
41
|
+
type: "fuwuqi",
|
|
42
|
+
size: 16
|
|
43
|
+
})
|
|
44
|
+
}, {
|
|
45
|
+
key: 0,
|
|
46
|
+
value: '其他'
|
|
47
|
+
}];
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: classPrefix
|
|
50
|
+
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
51
|
+
className: "".concat(classPrefix, "-select"),
|
|
52
|
+
options: platformOption,
|
|
53
|
+
overlayWidth: 134,
|
|
54
|
+
keyField: "key",
|
|
55
|
+
labelField: "value",
|
|
56
|
+
defaultValue: {
|
|
57
|
+
value: '全部平台',
|
|
58
|
+
key: -1
|
|
59
|
+
},
|
|
60
|
+
onChange: function onChange(val) {
|
|
61
|
+
props.onChange(val);
|
|
62
|
+
}
|
|
63
|
+
}));
|
|
64
|
+
};
|
|
65
|
+
export default BizPlatformSelector;
|
|
@@ -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
|
-
}),
|
|
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(
|
|
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
|
-
}),
|
|
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"),
|
package/es/userGroup/overlay.js
CHANGED
|
@@ -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\
|
|
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\
|
|
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\
|
|
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.48-plat.
|
|
3
|
+
"version": "1.2.48-plat.10",
|
|
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": "
|
|
58
|
+
"gitHead": "9eb12ea12533922d504954aca060e35aeecc72e6",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|