@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
@@ -5,6 +5,146 @@
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
+ },
43
+ {
44
+ "icon_id": "41047713",
45
+ "name": "js 2",
46
+ "font_class": "a-js2",
47
+ "unicode": "e63f",
48
+ "unicode_decimal": 58943
49
+ },
50
+ {
51
+ "icon_id": "41047712",
52
+ "name": "微信小程序",
53
+ "font_class": "weixinxiaochengxu",
54
+ "unicode": "e640",
55
+ "unicode_decimal": 58944
56
+ },
57
+ {
58
+ "icon_id": "41047711",
59
+ "name": "ios",
60
+ "font_class": "ios1",
61
+ "unicode": "e641",
62
+ "unicode_decimal": 58945
63
+ },
64
+ {
65
+ "icon_id": "41047710",
66
+ "name": "android2",
67
+ "font_class": "android1",
68
+ "unicode": "e642",
69
+ "unicode_decimal": 58946
70
+ },
71
+ {
72
+ "icon_id": "41047709",
73
+ "name": "服务器",
74
+ "font_class": "fuwuqi",
75
+ "unicode": "e643",
76
+ "unicode_decimal": 58947
77
+ },
78
+ {
79
+ "icon_id": "40911670",
80
+ "name": "菜单-用户营销",
81
+ "font_class": "caidan-yonghuyingxiao",
82
+ "unicode": "e63a",
83
+ "unicode_decimal": 58938
84
+ },
85
+ {
86
+ "icon_id": "40624563",
87
+ "name": "菜单-理财业务分析",
88
+ "font_class": "licaiyewufenxi",
89
+ "unicode": "e7c8",
90
+ "unicode_decimal": 59336
91
+ },
92
+ {
93
+ "icon_id": "40533696",
94
+ "name": "菜单-信用卡业务",
95
+ "font_class": "xinyongkayewu1",
96
+ "unicode": "e7c6",
97
+ "unicode_decimal": 59334
98
+ },
99
+ {
100
+ "icon_id": "40533695",
101
+ "name": "菜单-信用卡分期",
102
+ "font_class": "xinyongkafenqi",
103
+ "unicode": "e7c7",
104
+ "unicode_decimal": 59335
105
+ },
106
+ {
107
+ "icon_id": "39969156",
108
+ "name": "LTV 分析",
109
+ "font_class": "a-LTVfenxi",
110
+ "unicode": "e7c5",
111
+ "unicode_decimal": 59333
112
+ },
113
+ {
114
+ "icon_id": "39962950",
115
+ "name": "导航二级箭头",
116
+ "font_class": "daohangerjijiantou",
117
+ "unicode": "e632",
118
+ "unicode_decimal": 58930
119
+ },
120
+ {
121
+ "icon_id": "39962949",
122
+ "name": "导航一级箭头收起",
123
+ "font_class": "daohangyijijiantoushouqi",
124
+ "unicode": "e634",
125
+ "unicode_decimal": 58932
126
+ },
127
+ {
128
+ "icon_id": "39962948",
129
+ "name": "角色交换",
130
+ "font_class": "jiaosejiaohuan",
131
+ "unicode": "e635",
132
+ "unicode_decimal": 58933
133
+ },
134
+ {
135
+ "icon_id": "39962947",
136
+ "name": "导航一级箭头展开",
137
+ "font_class": "daohangyijijiantouzhankai",
138
+ "unicode": "e636",
139
+ "unicode_decimal": 58934
140
+ },
141
+ {
142
+ "icon_id": "39799478",
143
+ "name": "菜单-存款业务分析",
144
+ "font_class": "cunkuanyewu",
145
+ "unicode": "e7c4",
146
+ "unicode_decimal": 59332
147
+ },
8
148
  {
9
149
  "icon_id": "39634357",
10
150
  "name": "埋点",
@@ -924,8 +1064,8 @@
924
1064
  },
925
1065
  {
926
1066
  "icon_id": "31623999",
927
- "name": "left",
928
- "font_class": "left",
1067
+ "name": "数据集-left",
1068
+ "font_class": "shujuji_left",
929
1069
  "unicode": "e6d2",
930
1070
  "unicode_decimal": 59090
931
1071
  },
@@ -938,8 +1078,8 @@
938
1078
  },
939
1079
  {
940
1080
  "icon_id": "31624006",
941
- "name": "right",
942
- "font_class": "right",
1081
+ "name": "数据集-right",
1082
+ "font_class": "shujuji_right",
943
1083
  "unicode": "e6d4",
944
1084
  "unicode_decimal": 59092
945
1085
  },
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,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -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,19 @@
1
+ import React from 'react';
2
+ import { platItemProp } from './types';
3
+ import './styles/index.less';
4
+ declare const BizPlatformSelector: React.FC<{
5
+ onChange: (val: {
6
+ key: number;
7
+ value: string;
8
+ }) => void;
9
+ defaultValue?: {
10
+ key: number;
11
+ value: string;
12
+ };
13
+ value?: {
14
+ key: number;
15
+ value: string;
16
+ };
17
+ valueOption?: platItemProp[];
18
+ }>;
19
+ export default BizPlatformSelector;
@@ -0,0 +1,39 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ 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; }
5
+ 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; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useState, useEffect } from 'react';
8
+ import { BizSelect } from '@zgfe/business-lib';
9
+ import { platformOption } from './util';
10
+ import './styles/index.less';
11
+ var BizPlatformSelector = function BizPlatformSelector(props) {
12
+ var classPrefix = 'biz-platform-selector';
13
+ var _useState = useState(),
14
+ _useState2 = _slicedToArray(_useState, 2),
15
+ currentValue = _useState2[0],
16
+ setCurrentValue = _useState2[1];
17
+ useEffect(function () {
18
+ console.log('props-value', props.value);
19
+ setCurrentValue(props.value);
20
+ }, [props.value]);
21
+ return /*#__PURE__*/React.createElement("div", {
22
+ className: classPrefix
23
+ }, /*#__PURE__*/React.createElement(BizSelect, {
24
+ className: "".concat(classPrefix, "-select"),
25
+ options: props.valueOption && props.valueOption.length ? props.valueOption : platformOption,
26
+ overlayWidth: 134,
27
+ keyField: "key",
28
+ labelField: "value",
29
+ value: currentValue,
30
+ defaultValue: props.defaultValue ? props.defaultValue : {
31
+ value: '全部平台',
32
+ key: 0
33
+ },
34
+ onChange: function onChange(val) {
35
+ props.onChange(val);
36
+ }
37
+ }));
38
+ };
39
+ export default BizPlatformSelector;
@@ -0,0 +1,9 @@
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-platform-selector {
3
+ width: 134px;
4
+ border: 1px solid #f2f3f4;
5
+ border-radius: 4px;
6
+ .biz-platform-selector-select .biz-select-handle-input {
7
+ background-color: #fff;
8
+ }
9
+ }
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export interface platItemProp {
3
+ key: number;
4
+ value: string;
5
+ icon?: ReactNode;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { platItemProp } from './types';
2
+ export declare const platformOption: platItemProp[];
@@ -0,0 +1,44 @@
1
+ import React from 'react';
2
+ import { IconFont } from '@zgfe/business-lib';
3
+ export var platformOption = [{
4
+ key: 0,
5
+ value: '全部平台'
6
+ }, {
7
+ key: 1,
8
+ value: 'Android',
9
+ icon: /*#__PURE__*/React.createElement(IconFont, {
10
+ type: "android1",
11
+ size: 16
12
+ })
13
+ }, {
14
+ key: 2,
15
+ value: 'IOS',
16
+ icon: /*#__PURE__*/React.createElement(IconFont, {
17
+ type: "ios1",
18
+ size: 16
19
+ })
20
+ }, {
21
+ key: 3,
22
+ value: 'JS',
23
+ icon: /*#__PURE__*/React.createElement(IconFont, {
24
+ type: "a-js2",
25
+ size: 16
26
+ })
27
+ }, {
28
+ key: 4,
29
+ value: '微信小程序',
30
+ icon: /*#__PURE__*/React.createElement(IconFont, {
31
+ type: "weixinxiaochengxu",
32
+ size: 16
33
+ })
34
+ }, {
35
+ key: 5,
36
+ value: '服务端',
37
+ icon: /*#__PURE__*/React.createElement(IconFont, {
38
+ type: "fuwuqi",
39
+ size: 16
40
+ })
41
+ }, {
42
+ key: -1,
43
+ value: '其他'
44
+ }];