@zgfe/business-lib 1.0.0-beta.3 → 1.0.0-beta.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/analysisLayout/index.d.ts +28 -0
- package/es/analysisLayout/index.js +6 -2
- package/es/analysisLayout/index.less +10 -3
- package/es/attributeSelector/index.d.ts +4 -2
- package/es/attributeSelector/index.js +30 -15
- package/es/chart/demo/bar.js +2 -2
- package/es/chart/demo/data/data2.d.ts +8 -0
- package/es/chart/demo/data/data2.js +7 -0
- package/es/chart/demo/data/data3.d.ts +10 -0
- package/es/chart/demo/data/data3.js +584 -0
- package/es/chart/demo/map.d.ts +2 -0
- package/es/chart/demo/map.js +11 -0
- package/es/chart/index.d.ts +29 -9
- package/es/chart/index.js +30 -71
- package/es/chart/type.d.ts +22 -0
- package/es/chart/type.js +1 -0
- package/es/chart/{chartConfig.d.ts → util/chartConfig.d.ts} +68 -3
- package/es/chart/{chartConfig.js → util/chartConfig.js} +85 -11
- package/es/chart/{color.d.ts → util/color.d.ts} +0 -0
- package/es/chart/{color.js → util/color.js} +0 -0
- package/es/chart/util/data/china.js +530 -0
- package/es/chart/util/data/cityGeoCoord.d.ts +22553 -0
- package/es/chart/util/data/cityGeoCoord.js +22552 -0
- package/es/chart/util/data/provinceGeoCoord.d.ts +343 -0
- package/es/chart/util/data/provinceGeoCoord.js +9258 -0
- package/es/chart/util/formatData.d.ts +13 -0
- package/es/chart/util/formatData.js +56 -0
- package/es/chart/util/{format.d.ts → formatOption.d.ts} +2 -1
- package/es/chart/util/{format.js → formatOption.js} +31 -1
- package/es/chart/util/mapUtil.d.ts +8 -0
- package/es/chart/util/mapUtil.js +195 -0
- package/es/commonStyle/icon.less +19 -3
- package/es/commonStyle/theme.less +5 -2
- package/es/dialog/components/selectToInput.d.ts +10 -3
- package/es/dialog/components/selectToInput.js +75 -12
- package/es/dialog/demo/index.js +27 -20
- package/es/dialog/index.d.ts +34 -2
- package/es/dialog/index.js +129 -55
- package/es/dialog/style/index.less +11 -1
- package/es/eventSelector/index.d.ts +5 -0
- package/es/eventSelector/index.js +111 -32
- package/es/globalAttributes/index.d.ts +3 -2
- package/es/globalAttributes/index.js +18 -23
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/multipleSelector/index.js +32 -4
- package/es/select/demo/index.js +2 -1
- package/es/select/index.d.ts +9 -1
- package/es/select/index.js +4 -2
- package/es/table/demo/index2.js +45 -3
- package/es/table/demo/index3.d.ts +2 -0
- package/es/table/demo/index3.js +227 -0
- package/es/table/index.d.ts +1 -1
- package/es/targetConditionGroup/components/conditionGroup.d.ts +4 -4
- package/es/targetConditionGroup/components/conditionGroup.js +27 -26
- package/es/targetConditionGroup/components/conditionItem.d.ts +4 -4
- package/es/targetConditionGroup/components/conditionItem.js +81 -108
- package/es/targetConditionGroup/data/operates.js +5 -5
- package/es/targetConditionGroup/demo/group.d.ts +2 -0
- package/es/targetConditionGroup/demo/group.js +42 -0
- package/es/targetConditionGroup/demo/index.js +15 -25
- package/es/targetConditionGroup/group.d.ts +56 -0
- package/es/targetConditionGroup/group.js +204 -0
- package/es/targetConditionGroup/index.d.ts +6 -0
- package/es/targetConditionGroup/index.js +148 -83
- package/es/targetConditionGroup/index.less +12 -0
- package/es/targetConditionGroup/type.d.ts +47 -2
- package/es/targetSelector/demo/form.js +1 -1
- package/es/targetSelector/demo/index.js +1 -1
- package/es/targetSelector/index.d.ts +17 -1
- package/es/targetSelector/index.js +56 -10
- package/package.json +1 -1
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare type AnalysisLayoutProps = {
|
|
4
|
+
/**
|
|
5
|
+
* @description 右侧内容模块
|
|
6
|
+
* @default -
|
|
7
|
+
*/
|
|
4
8
|
children?: React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* @description 左侧内容模块
|
|
11
|
+
* @default -
|
|
12
|
+
*/
|
|
5
13
|
leftPanel?: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* @description 左侧底部内容模块
|
|
16
|
+
* @default -
|
|
17
|
+
*/
|
|
6
18
|
leftHandle?: React.ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* @description 是否固定
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
7
23
|
isFixed?: boolean | false;
|
|
24
|
+
/**
|
|
25
|
+
* @description 左侧默认宽度
|
|
26
|
+
* @default 580
|
|
27
|
+
*/
|
|
8
28
|
defaultLeftWidth?: number;
|
|
29
|
+
/**
|
|
30
|
+
* @description 左侧最小宽度
|
|
31
|
+
* @default 320
|
|
32
|
+
*/
|
|
9
33
|
minWidthOfLeft?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @description 左侧最大宽度
|
|
36
|
+
* @default 320
|
|
37
|
+
*/
|
|
10
38
|
maxWidthOfLeft?: number;
|
|
11
39
|
};
|
|
12
40
|
declare const BizAnalysisLayout: React.FC<AnalysisLayoutProps>;
|
|
@@ -108,7 +108,9 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
|
108
108
|
}
|
|
109
109
|
}, /*#__PURE__*/React.createElement("div", {
|
|
110
110
|
className: "biz-layout-panel"
|
|
111
|
-
},
|
|
111
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
112
|
+
className: "biz-left-content"
|
|
113
|
+
}, leftPanel)), /*#__PURE__*/React.createElement("div", {
|
|
112
114
|
className: "biz-layout-bottom"
|
|
113
115
|
}, leftHandle)), showLeft ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
114
116
|
title: function title() {
|
|
@@ -144,7 +146,9 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
|
144
146
|
style: {
|
|
145
147
|
width: "calc(100% - ".concat(width, "px)")
|
|
146
148
|
}
|
|
147
|
-
},
|
|
149
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
150
|
+
className: "biz-right-content"
|
|
151
|
+
}, children)));
|
|
148
152
|
};
|
|
149
153
|
|
|
150
154
|
export default BizAnalysisLayout;
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
display: flex;
|
|
6
6
|
width: 100%;
|
|
7
|
-
min-width: 1440px;
|
|
8
7
|
height: 100%;
|
|
9
|
-
|
|
8
|
+
overflow: hidden;
|
|
10
9
|
|
|
11
10
|
.biz-layout-left {
|
|
12
11
|
position: relative;
|
|
@@ -35,6 +34,9 @@
|
|
|
35
34
|
height: calc(100% - 30px);
|
|
36
35
|
padding: @searchPadding;
|
|
37
36
|
overflow: auto;
|
|
37
|
+
.biz-left-content {
|
|
38
|
+
min-height: 600px;
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
|
|
40
42
|
.biz-layout-bottom {
|
|
@@ -63,10 +65,15 @@
|
|
|
63
65
|
|
|
64
66
|
.biz-layout-right {
|
|
65
67
|
box-sizing: border-box;
|
|
66
|
-
min-width: 600px;
|
|
67
68
|
padding: @contentPadding;
|
|
68
69
|
overflow: auto;
|
|
69
70
|
background-color: #fff;
|
|
71
|
+
|
|
72
|
+
.biz-right-content {
|
|
73
|
+
min-width: 600px;
|
|
74
|
+
height: 100%;
|
|
75
|
+
min-height: 600px;
|
|
76
|
+
}
|
|
70
77
|
}
|
|
71
78
|
}
|
|
72
79
|
|
|
@@ -12,6 +12,8 @@ export interface AttrsListProps extends BasicOption {
|
|
|
12
12
|
value_dict?: boolean;
|
|
13
13
|
hidden?: boolean | number;
|
|
14
14
|
dimension_sub?: string | number;
|
|
15
|
+
id?: number;
|
|
16
|
+
label?: string;
|
|
15
17
|
[prop: string]: any;
|
|
16
18
|
}
|
|
17
19
|
interface BasicOption {
|
|
@@ -29,8 +31,8 @@ export interface AttributeProps {
|
|
|
29
31
|
*/
|
|
30
32
|
value?: string | number | AttrsListProps | null;
|
|
31
33
|
/**
|
|
32
|
-
* @description
|
|
33
|
-
* @description.zh-CN
|
|
34
|
+
* @description 默认选项,
|
|
35
|
+
* @description.zh-CN 可以是属性,也可以是事件属性的attr_name,其他属性的name -> value
|
|
34
36
|
* @default -
|
|
35
37
|
*/
|
|
36
38
|
defaultValue?: string | number | AttrsListProps | null;
|
|
@@ -141,12 +141,17 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
141
141
|
var eList = group.eventList || [];
|
|
142
142
|
eList.forEach(function (event) {
|
|
143
143
|
event.event_attrs.forEach(function (prop) {
|
|
144
|
+
// prop.attrId = Math.random().toString();
|
|
144
145
|
prop.id = prop.attr_id;
|
|
145
|
-
prop.
|
|
146
|
+
prop.label = prop.alias_name || prop.attr_name;
|
|
146
147
|
prop.value = prop.attr_name;
|
|
148
|
+
prop.type = prop.prop_type;
|
|
147
149
|
prop.dimensionId = [prop.dimension_sub, prop.value].join(','); // 增加属性细分唯一字段,区分同名自定义属性
|
|
148
150
|
|
|
149
|
-
prop.
|
|
151
|
+
prop.isEventProp = true;
|
|
152
|
+
prop.realTime = true;
|
|
153
|
+
prop.custom = true;
|
|
154
|
+
prop.attrType = 'EVENT_PROP';
|
|
150
155
|
});
|
|
151
156
|
var randomId = Math.random().toString(); // 事件(分组)添加锚点id
|
|
152
157
|
|
|
@@ -267,12 +272,21 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
267
272
|
var userOptions = JSON.parse(JSON.stringify(options && options.user || userProps)); // 添加属性
|
|
268
273
|
|
|
269
274
|
var userList = userOptions.map(function (prop) {
|
|
270
|
-
prop.
|
|
275
|
+
prop.attrId = Math.random().toString();
|
|
276
|
+
prop.label = prop.alias_name || prop.text;
|
|
271
277
|
prop.value = prop.name;
|
|
278
|
+
prop.isUserProp = true;
|
|
272
279
|
prop.custom = prop.category === 'custom';
|
|
280
|
+
prop.attrType = 'USER_PROP'; // 内置属性(名称、类型、诸葛ID 、用户ID): 实时
|
|
281
|
+
|
|
282
|
+
if (prop.name === 'name' || prop.name === 'is_anonymous' || prop.name === 'zg_id' || prop.name === 'app_user_id') {
|
|
283
|
+
prop.realTime = true;
|
|
284
|
+
} else {
|
|
285
|
+
prop.realTime = false;
|
|
286
|
+
}
|
|
287
|
+
|
|
273
288
|
prop.dimensionId = [prop.dimension_sub, prop.value].join(','); // 增加属性细分唯一字段,区分同名自定义属性
|
|
274
289
|
|
|
275
|
-
prop.attrId = Math.random().toString();
|
|
276
290
|
return prop;
|
|
277
291
|
});
|
|
278
292
|
anchors = _objectSpread(_objectSpread({}, anchors), {}, {
|
|
@@ -293,11 +307,15 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
293
307
|
};
|
|
294
308
|
var envOptions = JSON.parse(JSON.stringify(options && options.env || eventEnv));
|
|
295
309
|
var envList = envOptions.map(function (prop) {
|
|
310
|
+
prop.attrId = Math.random().toString();
|
|
311
|
+
prop.label = prop.text;
|
|
296
312
|
prop.value = prop.name;
|
|
297
|
-
prop.name = prop.text;
|
|
298
313
|
prop.dimensionId = [prop.dimension_sub, prop.value].join(','); // 增加属性细分唯一字段,区分同名自定义属性
|
|
299
314
|
|
|
300
|
-
prop.
|
|
315
|
+
prop.isEnvProp = true;
|
|
316
|
+
prop.realTime = true;
|
|
317
|
+
prop.custom = false;
|
|
318
|
+
prop.attrType = 'ENV_PROP';
|
|
301
319
|
return prop;
|
|
302
320
|
});
|
|
303
321
|
anchors = _objectSpread(_objectSpread({}, anchors), {}, {
|
|
@@ -345,11 +363,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
345
363
|
var defaultData;
|
|
346
364
|
|
|
347
365
|
if (_typeof(intoValue) === 'object') {
|
|
348
|
-
|
|
349
|
-
defaultData = intoValue.attr_name || '';
|
|
350
|
-
} else {
|
|
351
|
-
defaultData = intoValue.name || '';
|
|
352
|
-
}
|
|
366
|
+
defaultData = intoValue.value || intoValue.attr_name || intoValue.name || '';
|
|
353
367
|
} else {
|
|
354
368
|
defaultData = intoValue || '';
|
|
355
369
|
}
|
|
@@ -427,7 +441,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
427
441
|
res = _objectWithoutProperties(attr, _excluded);
|
|
428
442
|
|
|
429
443
|
var child = _children.filter(function (item) {
|
|
430
|
-
return item.
|
|
444
|
+
return item.label && item.label.indexOf(searchValue) > -1;
|
|
431
445
|
});
|
|
432
446
|
|
|
433
447
|
searchOptions.push(_objectSpread(_objectSpread({}, res), {}, {
|
|
@@ -456,7 +470,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
456
470
|
}
|
|
457
471
|
}, /*#__PURE__*/React.createElement("div", {
|
|
458
472
|
className: "biz-input ".concat(children && 'biz-bg-gray')
|
|
459
|
-
}, attrs.
|
|
473
|
+
}, attrs.label ? attrs.label : /*#__PURE__*/React.createElement("span", {
|
|
460
474
|
className: "biz-placeholder"
|
|
461
475
|
}, placeholder)), /*#__PURE__*/React.createElement(IconFont, {
|
|
462
476
|
className: "biz-select-zhankai",
|
|
@@ -537,7 +551,8 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
537
551
|
var _item$name;
|
|
538
552
|
|
|
539
553
|
return /*#__PURE__*/React.createElement("div", {
|
|
540
|
-
key
|
|
554
|
+
// key={child.attrId}
|
|
555
|
+
key: child.dimensionId,
|
|
541
556
|
className: "biz-drop-option biz-drop-index boxBg\n ".concat(child.value === attrs.value && 'box-active', "\n ").concat(child.value && attrs.value !== child.value && disabled.indexOf(child.value) > -1 && 'box-disabled'),
|
|
542
557
|
onClick: function onClick(e) {
|
|
543
558
|
e.stopPropagation();
|
|
@@ -567,7 +582,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
|
|
|
567
582
|
type: "".concat(item.name && item.name.indexOf('用户') > -1 ? 'icon-yonghushuxing' : item.name && ((_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.indexOf('事件')) > -1 ? 'icon-shijianshuxing1' : 'icon-chufahuanjing')
|
|
568
583
|
}), /*#__PURE__*/React.createElement("span", {
|
|
569
584
|
dangerouslySetInnerHTML: {
|
|
570
|
-
__html: util.setHighLight(child.
|
|
585
|
+
__html: util.setHighLight(child.label || '', searchValue)
|
|
571
586
|
}
|
|
572
587
|
}));
|
|
573
588
|
});
|
package/es/chart/demo/bar.js
CHANGED
|
@@ -6,10 +6,10 @@ export default (function () {
|
|
|
6
6
|
data: chartData,
|
|
7
7
|
type: "bar",
|
|
8
8
|
reverseXAxis: true,
|
|
9
|
-
seriesName: "fff",
|
|
10
9
|
showList: ['付款成功', '搜索商品', '查看商品详情']
|
|
11
10
|
}), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(BizChart, {
|
|
12
11
|
data: chartData,
|
|
13
|
-
type: "bar"
|
|
12
|
+
type: "bar",
|
|
13
|
+
xRotate: -45
|
|
14
14
|
}));
|
|
15
15
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
x_axis: ['2022-03-31', '2022-04-01', '2022-04-02', '2022-04-03', '2022-04-04', '2022-04-05', '2022-04-06', '2022-04-07', '2022-04-08', '2022-04-09', '2022-04-10', '2022-04-11', '2022-04-12', '2022-04-13'],
|
|
3
|
+
series: [{
|
|
4
|
+
names: ['付款成功'],
|
|
5
|
+
values: [26, 27, 43, 44, 40, 34, 33, 33, 34, 24, 30, 31, 31, 38]
|
|
6
|
+
}]
|
|
7
|
+
};
|