@zgfe/business-lib 1.2.70-hxd.11 → 1.2.70-hxd.19
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/AUMFormulaTarget/components/formula/index.js +6 -4
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +2 -2
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- package/es/AUMFormulaTarget/index.d.ts +4 -1
- package/es/addToPanel/components/radioGroup.d.ts +4 -1
- package/es/addToPanel/components/styleList.d.ts +4 -1
- package/es/addToPanel/index.d.ts +4 -1
- package/es/addToPanel/index.js +1 -1
- package/es/addToScene/index.js +1 -1
- package/es/amountSelector/demo/index.d.ts +3 -0
- package/es/amountSelector/demo/index.js +9 -0
- package/es/amountSelector/index.d.ts +10 -0
- package/es/amountSelector/index.js +21 -0
- package/es/amountSelector/styles/index.less +27 -0
- package/es/amountSelector/types.d.ts +4 -0
- package/es/amountSelector/types.js +1 -0
- package/es/amountSelector/util.d.ts +3 -0
- package/es/amountSelector/util.js +18 -0
- package/es/assets/colorIcon/demo_index.html +1023 -492
- package/es/assets/colorIcon/iconfont.css +203 -110
- package/es/assets/colorIcon/iconfont.js +13 -14
- package/es/assets/colorIcon/iconfont.json +555 -394
- package/es/assets/colorIcon/iconfont.ttf +0 -0
- package/es/assets/colorIcon/iconfont.woff +0 -0
- package/es/assets/colorIcon/iconfont.woff2 +0 -0
- package/es/assets/iconfont/demo_index.html +203 -348
- package/es/assets/iconfont/iconfont.css +103 -63
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/resetAntd.less +568 -564
- package/es/assets/styles/variable.less +21 -21
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/group.js +11 -6
- package/es/attrCondition/index.js +11 -6
- package/es/attrCondition/styles/index.less +101 -101
- package/es/attrCondition/useAttrCondition.js +4 -5
- package/es/attrConditions/components/operateList.js +6 -3
- package/es/attrConditions/index.d.ts +4 -1
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/types.d.ts +3 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/index.d.ts +4 -1
- package/es/attributeSelector/index.js +4 -2
- package/es/attributeSelector/listPanel.d.ts +4 -1
- package/es/attributeSelector/listPanel.js +6 -3
- package/es/attributeSelector/types.d.ts +1 -0
- package/es/chart/demo/data/data5 copy.js +2 -2
- package/es/chart/demo/index.js +1 -1
- package/es/chart/demo/line_bar_stack.js +4 -4
- package/es/chart/demo/stack.js +1 -1
- package/es/chart/index.js +10 -12
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/color.js +1 -1
- package/es/colorIcon/index.js +2 -4
- package/es/constants/apis.d.ts +1 -0
- package/es/constants/apis.js +2 -1
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +1 -0
- package/es/cycleTime/index.js +6 -8
- package/es/cycleTime/month.js +2 -5
- package/es/dataSetGroup/index.js +0 -1
- package/es/datePicker/index.d.ts +4 -1
- package/es/datePickerV2/demo/index.js +1 -1
- package/es/datePickerV2/index.d.ts +4 -1
- package/es/datePickerV2/index.js +13 -4
- package/es/datePickerV2/popoverContent.js +1 -1
- package/es/datePickerV2/shortcut.js +1 -1
- package/es/datePickerV2/styles/index.less +194 -194
- package/es/datePickerV2/types.d.ts +1 -0
- package/es/datePickerV2/utils.js +8 -2
- package/es/demoWrapper/content.js +6 -1
- package/es/demoWrapper/innerDemo.js +1 -1
- package/es/dialog/index.d.ts +4 -1
- package/es/dnd/demo/index.js +5 -1
- package/es/dnd/index.d.ts +4 -1
- package/es/dnd/item.js +14 -0
- package/es/eventSelector/index.d.ts +4 -1
- package/es/eventSelector/index.js +3 -2
- package/es/eventSelector/listPanel.js +9 -13
- package/es/eventSelector/option.d.ts +1 -0
- package/es/eventSelector/option.js +14 -3
- package/es/eventSelector/styles/index.less +127 -123
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +2 -1
- package/es/formulaTarget/components/formula/index.less +76 -76
- package/es/formulaTarget/components/formula/types.d.ts +1 -0
- package/es/formulaTarget/components/formulaItem/index.js +7 -2
- package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
- package/es/formulaTarget/components/panel/index.js +2 -1
- package/es/formulaTarget/components/panel/item.js +5 -1
- package/es/formulaTarget/components/panel/types.d.ts +2 -0
- package/es/formulaTarget/index.d.ts +4 -1
- package/es/formulaTarget/index.js +2 -1
- package/es/formulaTarget/types.d.ts +1 -0
- package/es/icon/iconFont.d.ts +4 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/layout/analysisLayout/index.d.ts +4 -1
- package/es/layout/columnLayout/index.d.ts +4 -1
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
- package/es/layout/optionTitle/components/title/index.d.ts +1 -2
- package/es/layout/optionTitle/components/title/index.js +10 -6
- package/es/layout/optionTitle/index.js +1 -1
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/platformSelector/styles/index.less +26 -26
- package/es/productCondition/conditionTypeList.d.ts +4 -1
- package/es/productCondition/conditions/cdpCshCondition.js +9 -6
- package/es/productCondition/conditions/constants.d.ts +2 -0
- package/es/productCondition/conditions/constants.js +2 -0
- package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
- package/es/productCondition/conditions/periodCondition.d.ts +4 -1
- package/es/productCondition/conditions/propCondition.d.ts +4 -1
- package/es/productCondition/conditions/styles/periodCondition.less +26 -26
- package/es/productCondition/index.d.ts +4 -1
- package/es/productCondition/styles/conditionTypeList.less +32 -30
- package/es/productCondition/styles/relationLabel.less +19 -19
- package/es/productCondition/types.d.ts +3 -1
- package/es/productCondition/util.d.ts +4 -0
- package/es/productCondition/util.js +4 -2
- package/es/quickDatePicker/demo/index.js +31 -11
- package/es/quickDatePicker/index.js +122 -23
- package/es/quickDatePicker/styles/index.less +141 -138
- package/es/quickDatePicker/types.d.ts +13 -0
- package/es/quickDatePicker/utils.d.ts +6 -0
- package/es/quickDatePicker/utils.js +54 -1
- package/es/select/demo/index.js +2 -1
- package/es/select/handle.js +2 -9
- package/es/select/index.d.ts +4 -1
- package/es/select/option.js +1 -1
- package/es/select/overlay.js +2 -2
- package/es/select/styles/handle.less +206 -193
- package/es/socket/demo/demo.js +2 -2
- package/es/subjectWrapper/index.js +3 -1
- package/es/table/demo/data/color.js +1 -1
- package/es/table/index.js +3 -30
- package/es/targetConditionGroup/components/targetDimension.d.ts +4 -1
- package/es/targetConditionGroup/demo/group.js +5 -18
- package/es/targetConditionGroup/index.d.ts +4 -1
- package/es/targetConditionGroup/index.js +6 -4
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/editBox.d.ts +1 -0
- package/es/targetSelector/editBox.js +8 -3
- package/es/targetSelector/index.js +2 -1
- package/es/targetSelector/optionIcon.d.ts +4 -1
- package/es/targetSelector/optionIcon.js +3 -0
- package/es/targetSelector/styles/index.less +142 -110
- package/es/userCondition/conditionTypeList.d.ts +4 -1
- package/es/userCondition/conditionTypeList.js +5 -4
- package/es/userCondition/conditions/cdpCondition.js +9 -6
- package/es/userCondition/conditions/cdpCshCondition.js +9 -6
- package/es/userCondition/conditions/constants.d.ts +2 -0
- package/es/userCondition/conditions/constants.js +2 -0
- package/es/userCondition/conditions/dataAttribute.js +11 -7
- package/es/userCondition/conditions/eventCondition.js +16 -24
- package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.js +19 -11
- package/es/userCondition/conditions/propCondition.js +5 -3
- package/es/userCondition/conditions/styles/eventCondition.less +71 -57
- package/es/userCondition/conditions/styles/periodCondition.less +32 -26
- package/es/userCondition/conditions/styles/textDesc.less +16 -17
- package/es/userCondition/conditions/tagsCondition.js +12 -5
- package/es/userCondition/conditions/textDesc.js +9 -5
- package/es/userCondition/demo/index.js +20 -14
- package/es/userCondition/demo/mockData.d.ts +20 -94
- package/es/userCondition/demo/mockData.js +31 -76
- package/es/userCondition/index.d.ts +5 -1
- package/es/userCondition/index.js +98 -20
- package/es/userCondition/styles/conditionTypeList.less +32 -30
- package/es/userCondition/styles/relationLabel.less +19 -19
- package/es/userCondition/types.d.ts +5 -2
- package/es/userCondition/util.d.ts +4 -0
- package/es/userCondition/util.js +4 -2
- package/es/userGroup/demo/index.js +2 -9
- package/es/userGroup/index.d.ts +4 -1
- package/es/userGroup/index.js +121 -16
- package/es/userGroup/overlay.js +17 -3
- package/es/userGroup/styles/index.less +199 -145
- package/es/userGroup/types.d.ts +2 -0
- package/es/userGroup/util.d.ts +2 -0
- package/es/userGroup/util.js +47 -0
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userGroupHeader/index.d.ts +1 -0
- package/es/userGroupHeader/index.js +109 -6
- package/es/userGroupHeader/styles/index.less +50 -31
- package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
- package/es/userTagsSelector/cascaderOverlay.js +9 -2
- package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
- package/es/userTagsSelector/groups/index.d.ts +4 -1
- package/es/userTagsSelector/index.d.ts +4 -1
- package/es/userTagsSelector/index.js +32 -2
- package/es/userTagsSelector/styles/index.less +20 -10
- package/es/userTagsSelector/types.d.ts +2 -0
- package/es/userTagsSelector/util.d.ts +1 -0
- package/es/userTagsSelector/util.js +20 -0
- package/es/utils/ajax.js +63 -26
- package/es/utils/util.d.ts +1 -0
- package/es/utils/util.js +18 -0
- package/package.json +2 -2
- package/es/assets/colorIcon/iconfont.svg +0 -129
|
@@ -17,9 +17,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
17
17
|
import React, { useEffect, useState } from 'react';
|
|
18
18
|
import { BizChart } from '@zgfe/business-lib';
|
|
19
19
|
import data from './data/data5';
|
|
20
|
-
var color = ['#
|
|
20
|
+
var color = ['#4392E0', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED'];
|
|
21
21
|
var colorKeyList = {
|
|
22
|
-
'#
|
|
22
|
+
'#4392E0': ['#5888F4', '#4392E0', '#3F72EA', '#3A69D8', '#3560C5', '#3057B3', '#2B4EA0', '#26458D', '#213C7B', '#1C3368'],
|
|
23
23
|
'#80E1D9': ['#80E1D9', '#74CCC4', '#69B9B2', '#5FA6A0', '#54948F', '#4A817D', '#3F6F6B', '#355C59', '#2A4A47', '#1F3735'],
|
|
24
24
|
'#65789B': ['#A0BEF6', '#92ADE0', '#869FCD', '#7990BB', '#65789B', '#586887', '#4B5A74', '#3F4B62', '#333D4F', '#272F3D'],
|
|
25
25
|
'#F8BC3B': ['#F8BC3B', '#E2AC36', '#D09E32', '#BD902D', '#AB8229', '#987425', '#866620', '#73571C', '#614917', '#4E3B13'],
|
|
@@ -141,9 +141,9 @@ export default (function () {
|
|
|
141
141
|
var htmlArray = [];
|
|
142
142
|
htmlArray.push("<div class=\"biz-chart-tooltip-title\">".concat(xLabel, "</div>"));
|
|
143
143
|
if (totalData.isHasTotalDateKey[params.seriesName]) {
|
|
144
|
-
htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(totalData.isHasTotalDateKey[params.seriesName], "</div>\n </div
|
|
144
|
+
htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(totalData.isHasTotalDateKey[params.seriesName], "</div>\n </div>\n <span class=\"biz-chart-tooltip-value\">").concat(totalData.totalDateValue[totalData.isHasTotalDateKey[params.seriesName]][params.dataIndex], "</span>\n </div>"));
|
|
145
145
|
}
|
|
146
|
-
htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(params.seriesName, "</div>\n </div
|
|
146
|
+
htmlArray.push("<div class=\"biz-chart-tooltip-item\">\n <div class=\"biz-chart-tooltip-content\">\n <span class=\"biz-tooltip-order\" style=\"background:".concat(params.color, "\"></span>\n <div class=\"biz-tooltip-name\">").concat(params.seriesName, "</div>\n </div>\n <span class=\"biz-chart-tooltip-value\">").concat(params.value, "</span>\n </div>"));
|
|
147
147
|
return htmlArray.join('');
|
|
148
148
|
};
|
|
149
149
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizChart, {
|
package/es/chart/demo/stack.js
CHANGED
|
@@ -9,7 +9,7 @@ import { BizChart } from '@zgfe/business-lib';
|
|
|
9
9
|
import chartData from './data/data7';
|
|
10
10
|
import { Button } from 'antd';
|
|
11
11
|
export default (function () {
|
|
12
|
-
var chartRef = useRef();
|
|
12
|
+
var chartRef = useRef(null);
|
|
13
13
|
var _useState = useState(true),
|
|
14
14
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15
15
|
show = _useState2[0],
|
package/es/chart/index.js
CHANGED
|
@@ -25,11 +25,16 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
25
25
|
showList = props.showList,
|
|
26
26
|
option = props.option,
|
|
27
27
|
userGroup = props.userGroup,
|
|
28
|
-
showAll = props.showAll,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
_props$showAll = props.showAll,
|
|
29
|
+
showAll = _props$showAll === void 0 ? false : _props$showAll,
|
|
30
|
+
_props$reverseXAxis = props.reverseXAxis,
|
|
31
|
+
reverseXAxis = _props$reverseXAxis === void 0 ? false : _props$reverseXAxis,
|
|
32
|
+
_props$isCity = props.isCity,
|
|
33
|
+
isCity = _props$isCity === void 0 ? true : _props$isCity,
|
|
34
|
+
_props$xRotate = props.xRotate,
|
|
35
|
+
xRotate = _props$xRotate === void 0 ? 0 : _props$xRotate,
|
|
36
|
+
_props$yRotate = props.yRotate,
|
|
37
|
+
yRotate = _props$yRotate === void 0 ? 0 : _props$yRotate,
|
|
33
38
|
seriesName = props.seriesName,
|
|
34
39
|
colors = props.colors,
|
|
35
40
|
tooltipFormatter = props.tooltipFormatter,
|
|
@@ -193,11 +198,4 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
193
198
|
}
|
|
194
199
|
});
|
|
195
200
|
});
|
|
196
|
-
BizChart.defaultProps = {
|
|
197
|
-
showAll: false,
|
|
198
|
-
reverseXAxis: false,
|
|
199
|
-
isCity: true,
|
|
200
|
-
xRotate: 0,
|
|
201
|
-
yRotate: 0
|
|
202
|
-
};
|
|
203
201
|
export default BizChart;
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
@import '../../assets/styles/variable.less';
|
|
2
|
-
|
|
3
|
-
.biz-chart-tooltip {
|
|
4
|
-
max-height: 324px;
|
|
5
|
-
overflow: auto;
|
|
6
|
-
border-radius: 10px !important;
|
|
7
|
-
|
|
8
|
-
.biz-chart-tooltip-title {
|
|
9
|
-
margin-bottom: @margin-xss;
|
|
10
|
-
color: @text-color;
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
font-size: @font-size-sm;
|
|
13
|
-
line-height: 17px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.biz-chart-tooltip-item {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
justify-content: space-between;
|
|
20
|
-
min-height: @height-sm;
|
|
21
|
-
padding: 0px @padding-xs;
|
|
22
|
-
font-size: @font-size-sm;
|
|
23
|
-
background: @white;
|
|
24
|
-
border-radius: @border-radius-small;
|
|
25
|
-
box-shadow: @box-shadow-small;
|
|
26
|
-
&:not(:last-child) {
|
|
27
|
-
margin-bottom: @margin-xss;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.biz-chart-tooltip-content {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
color: @text-color-secondary;
|
|
34
|
-
|
|
35
|
-
.biz-tooltip-marker {
|
|
36
|
-
width: 8px;
|
|
37
|
-
height: 8px;
|
|
38
|
-
margin-right: @margin-xs;
|
|
39
|
-
border-radius: 50%;
|
|
40
|
-
}
|
|
41
|
-
.biz-tooltip-order {
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
width: 12.8px;
|
|
46
|
-
height: 12.8px;
|
|
47
|
-
margin-right: @margin-xs;
|
|
48
|
-
color: #fff;
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
font-size: 8.96px;
|
|
51
|
-
background: #
|
|
52
|
-
border-radius: 50%;
|
|
53
|
-
}
|
|
54
|
-
.biz-tooltip-name {
|
|
55
|
-
max-width: 300px;
|
|
56
|
-
white-space: pre-wrap;
|
|
57
|
-
word-wrap: break-word;
|
|
58
|
-
word-break: break-all;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.biz-chart-tooltip-value {
|
|
63
|
-
margin-left: @margin-xs;
|
|
64
|
-
color: @text-color;
|
|
65
|
-
font-weight: 500;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.biz-chart-tooltip-item-new {
|
|
70
|
-
min-height: @height-sm;
|
|
71
|
-
margin-bottom: 4px;
|
|
72
|
-
padding: 0px @padding-xs;
|
|
73
|
-
font-size: @font-size-sm;
|
|
74
|
-
background: @white;
|
|
75
|
-
border-radius: @border-radius-small;
|
|
76
|
-
box-shadow: @box-shadow-small;
|
|
77
|
-
.biz-chart-tooltip-content {
|
|
78
|
-
display: flex;
|
|
79
|
-
align-items: center;
|
|
80
|
-
color: @text-color-secondary;
|
|
81
|
-
|
|
82
|
-
.biz-tooltip-marker {
|
|
83
|
-
width: 8px;
|
|
84
|
-
height: 8px;
|
|
85
|
-
margin-right: @margin-xs;
|
|
86
|
-
border-radius: 50%;
|
|
87
|
-
}
|
|
88
|
-
.biz-tooltip-order {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
justify-content: center;
|
|
92
|
-
width: 12.8px;
|
|
93
|
-
height: 12.8px;
|
|
94
|
-
margin-right: @margin-xs;
|
|
95
|
-
color: #fff;
|
|
96
|
-
font-weight: 500;
|
|
97
|
-
font-size: 8.96px;
|
|
98
|
-
background: #
|
|
99
|
-
border-radius: 50%;
|
|
100
|
-
}
|
|
101
|
-
.biz-tooltip-name {
|
|
102
|
-
max-width: 300px;
|
|
103
|
-
white-space: pre-wrap;
|
|
104
|
-
word-wrap: break-word;
|
|
105
|
-
word-break: break-all;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
&-value {
|
|
109
|
-
font-weight: 700;
|
|
110
|
-
// font-size: 14px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
@import '../../assets/styles/variable.less';
|
|
2
|
+
|
|
3
|
+
.biz-chart-tooltip {
|
|
4
|
+
max-height: 324px;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
border-radius: 10px !important;
|
|
7
|
+
|
|
8
|
+
.biz-chart-tooltip-title {
|
|
9
|
+
margin-bottom: @margin-xss;
|
|
10
|
+
color: @text-color;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
font-size: @font-size-sm;
|
|
13
|
+
line-height: 17px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.biz-chart-tooltip-item {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
min-height: @height-sm;
|
|
21
|
+
padding: 0px @padding-xs;
|
|
22
|
+
font-size: @font-size-sm;
|
|
23
|
+
background: @white;
|
|
24
|
+
border-radius: @border-radius-small;
|
|
25
|
+
box-shadow: @box-shadow-small;
|
|
26
|
+
&:not(:last-child) {
|
|
27
|
+
margin-bottom: @margin-xss;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.biz-chart-tooltip-content {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
color: @text-color-secondary;
|
|
34
|
+
|
|
35
|
+
.biz-tooltip-marker {
|
|
36
|
+
width: 8px;
|
|
37
|
+
height: 8px;
|
|
38
|
+
margin-right: @margin-xs;
|
|
39
|
+
border-radius: 50%;
|
|
40
|
+
}
|
|
41
|
+
.biz-tooltip-order {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
width: 12.8px;
|
|
46
|
+
height: 12.8px;
|
|
47
|
+
margin-right: @margin-xs;
|
|
48
|
+
color: #fff;
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
font-size: 8.96px;
|
|
51
|
+
background: #4392e0;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
}
|
|
54
|
+
.biz-tooltip-name {
|
|
55
|
+
max-width: 300px;
|
|
56
|
+
white-space: pre-wrap;
|
|
57
|
+
word-wrap: break-word;
|
|
58
|
+
word-break: break-all;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.biz-chart-tooltip-value {
|
|
63
|
+
margin-left: @margin-xs;
|
|
64
|
+
color: @text-color;
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.biz-chart-tooltip-item-new {
|
|
70
|
+
min-height: @height-sm;
|
|
71
|
+
margin-bottom: 4px;
|
|
72
|
+
padding: 0px @padding-xs;
|
|
73
|
+
font-size: @font-size-sm;
|
|
74
|
+
background: @white;
|
|
75
|
+
border-radius: @border-radius-small;
|
|
76
|
+
box-shadow: @box-shadow-small;
|
|
77
|
+
.biz-chart-tooltip-content {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
color: @text-color-secondary;
|
|
81
|
+
|
|
82
|
+
.biz-tooltip-marker {
|
|
83
|
+
width: 8px;
|
|
84
|
+
height: 8px;
|
|
85
|
+
margin-right: @margin-xs;
|
|
86
|
+
border-radius: 50%;
|
|
87
|
+
}
|
|
88
|
+
.biz-tooltip-order {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
width: 12.8px;
|
|
93
|
+
height: 12.8px;
|
|
94
|
+
margin-right: @margin-xs;
|
|
95
|
+
color: #fff;
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
font-size: 8.96px;
|
|
98
|
+
background: #4392e0;
|
|
99
|
+
border-radius: 50%;
|
|
100
|
+
}
|
|
101
|
+
.biz-tooltip-name {
|
|
102
|
+
max-width: 300px;
|
|
103
|
+
white-space: pre-wrap;
|
|
104
|
+
word-wrap: break-word;
|
|
105
|
+
word-break: break-all;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
&-value {
|
|
109
|
+
font-weight: 700;
|
|
110
|
+
// font-size: 14px;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
package/es/chart/util/color.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export var chartColors = ['#
|
|
1
|
+
export var chartColors = ['#4392E0', '#80E1D9', '#65789B', '#F8BC3B', '#6F66ED', '#66AFED', '#9661BC', '#FF7557', '#4DB273', '#F08BB4', '#CDDBFD', '#CDF3F0', '#CED4DE', '#FCE7B9', '#D1CEFD', '#D3E7F9', '#DFCFEA', '#FFD1C7', '#BBDEC8', '#FFE0ED'];
|
package/es/colorIcon/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
var ColorIcon = function ColorIcon(props) {
|
|
3
|
-
var className = props.className,
|
|
3
|
+
var _props$className = props.className,
|
|
4
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
4
5
|
type = props.type;
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
className: className,
|
|
@@ -13,7 +14,4 @@ var ColorIcon = function ColorIcon(props) {
|
|
|
13
14
|
xlinkHref: "#".concat(type)
|
|
14
15
|
}));
|
|
15
16
|
};
|
|
16
|
-
ColorIcon.defaultProps = {
|
|
17
|
-
className: ''
|
|
18
|
-
};
|
|
19
17
|
export default ColorIcon;
|
package/es/constants/apis.d.ts
CHANGED
package/es/constants/apis.js
CHANGED
|
@@ -28,6 +28,7 @@ var Apis = {
|
|
|
28
28
|
queryDatasetTableNames: '/zg/web/cdp/dataset/manager/datasetList',
|
|
29
29
|
queryPlatformList: '/zg/web/v2/data/dynamicPlatformByAppid',
|
|
30
30
|
queryRelationResult: '/zg/web/v2/event/queryRelationResult',
|
|
31
|
-
queryEventRemoved: '/zg/web/v2/event/queryEventRemoved'
|
|
31
|
+
queryEventRemoved: '/zg/web/v2/event/queryEventRemoved',
|
|
32
|
+
tagsState: '/zg/web/v2/label/state'
|
|
32
33
|
};
|
|
33
34
|
export default Apis;
|
package/es/constants/common.d.ts
CHANGED
|
@@ -9,6 +9,17 @@ export declare const BuiltinIndicators: (type: 'user' | 'custom' | 'product' | u
|
|
|
9
9
|
attrList: never[];
|
|
10
10
|
}[];
|
|
11
11
|
};
|
|
12
|
+
export declare const RetentionTarget: (type: 'user' | 'custom' | 'product' | undefined, showRetentionTarget: number) => {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
eventList: {
|
|
16
|
+
name: string;
|
|
17
|
+
id: number;
|
|
18
|
+
type: string;
|
|
19
|
+
isBuiltIn: boolean;
|
|
20
|
+
attrList: never[];
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
12
23
|
export declare const indicatorList: (currentApp: any) => {
|
|
13
24
|
name: string;
|
|
14
25
|
id: number;
|
package/es/constants/common.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread 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 _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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; }
|
|
1
7
|
export var BuiltinIndicators = function BuiltinIndicators(type) {
|
|
2
8
|
return {
|
|
3
9
|
id: -2,
|
|
@@ -35,6 +41,31 @@ export var BuiltinIndicators = function BuiltinIndicators(type) {
|
|
|
35
41
|
}]
|
|
36
42
|
};
|
|
37
43
|
};
|
|
44
|
+
export var RetentionTarget = function RetentionTarget(type, showRetentionTarget) {
|
|
45
|
+
return {
|
|
46
|
+
id: -2,
|
|
47
|
+
name: '整体',
|
|
48
|
+
eventList: [{
|
|
49
|
+
name: '任意行为',
|
|
50
|
+
id: -1,
|
|
51
|
+
type: 'any',
|
|
52
|
+
isBuiltIn: true,
|
|
53
|
+
attrList: []
|
|
54
|
+
}].concat(_toConsumableArray(showRetentionTarget === 2 ? [] : [{
|
|
55
|
+
name: "\u65B0\u589E".concat(type != 'user' ? '主体' : '用户'),
|
|
56
|
+
id: -201,
|
|
57
|
+
type: 'add',
|
|
58
|
+
isBuiltIn: true,
|
|
59
|
+
attrList: []
|
|
60
|
+
}, {
|
|
61
|
+
name: "\u6D3B\u8DC3".concat(type != 'user' ? '主体' : '用户'),
|
|
62
|
+
id: -202,
|
|
63
|
+
type: 'active',
|
|
64
|
+
isBuiltIn: true,
|
|
65
|
+
attrList: []
|
|
66
|
+
}]))
|
|
67
|
+
};
|
|
68
|
+
};
|
|
38
69
|
export var indicatorList = function indicatorList(currentApp) {
|
|
39
70
|
return [{
|
|
40
71
|
name: "\u65B0\u589E".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) != 'user' ? '主体' : '用户'),
|
package/es/context/index.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export interface GlobalContextProps {
|
|
|
90
90
|
getMenuRouterByName?: (name: string) => string;
|
|
91
91
|
authority?: any;
|
|
92
92
|
basicConfig?: any;
|
|
93
|
+
customized_version?: string;
|
|
93
94
|
}
|
|
94
95
|
declare const BizGlobalDataContext: import("react").Context<GlobalContextProps>;
|
|
95
96
|
export default BizGlobalDataContext;
|
package/es/cycleTime/index.js
CHANGED
|
@@ -20,9 +20,12 @@ export var CycleTimeUnit;
|
|
|
20
20
|
CycleTimeUnit[CycleTimeUnit["custom"] = 5] = "custom";
|
|
21
21
|
})(CycleTimeUnit || (CycleTimeUnit = {}));
|
|
22
22
|
var BizCycleTime = function BizCycleTime(props) {
|
|
23
|
-
var multiple = props.multiple,
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
var _props$multiple = props.multiple,
|
|
24
|
+
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
25
|
+
_props$size = props.size,
|
|
26
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
27
|
+
_props$disable = props.disable,
|
|
28
|
+
disable = _props$disable === void 0 ? false : _props$disable,
|
|
26
29
|
showHour = props.showHour,
|
|
27
30
|
options = props.options,
|
|
28
31
|
minTime = props.minTime,
|
|
@@ -205,9 +208,4 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
205
208
|
disabledDate: unit === null || unit === void 0 ? void 0 : unit.disabledDate
|
|
206
209
|
}));
|
|
207
210
|
};
|
|
208
|
-
BizCycleTime.defaultProps = {
|
|
209
|
-
multiple: false,
|
|
210
|
-
size: 'middle',
|
|
211
|
-
disable: false
|
|
212
|
-
};
|
|
213
211
|
export default BizCycleTime;
|
package/es/cycleTime/month.js
CHANGED
|
@@ -12,7 +12,8 @@ import _ from 'lodash';
|
|
|
12
12
|
import { FormItemInputContext } from 'antd/es/form/context';
|
|
13
13
|
var MonthDay = function MonthDay(props) {
|
|
14
14
|
var classPrefix = 'biz-month-day';
|
|
15
|
-
var disable = props.disable
|
|
15
|
+
var _props$disable = props.disable,
|
|
16
|
+
disable = _props$disable === void 0 ? false : _props$disable;
|
|
16
17
|
var _useState = useState([]),
|
|
17
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
19
|
chosenDayList = _useState2[0],
|
|
@@ -110,8 +111,4 @@ var MonthDay = function MonthDay(props) {
|
|
|
110
111
|
type: "xiangxia"
|
|
111
112
|
}))));
|
|
112
113
|
};
|
|
113
|
-
MonthDay.defaultProps = {
|
|
114
|
-
size: 'middle',
|
|
115
|
-
disable: false
|
|
116
|
-
};
|
|
117
114
|
export default MonthDay;
|
package/es/dataSetGroup/index.js
CHANGED
package/es/datePicker/index.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { DatePickerTypes } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const classPrefix = "biz-date-picker-wrap";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizDatePicker: FCWithDefaultProps<DatePickerTypes.Props>;
|
|
6
9
|
export default BizDatePicker;
|
|
@@ -27,7 +27,6 @@ export default (function () {
|
|
|
27
27
|
var handleChange = function handleChange(data) {
|
|
28
28
|
setTime(data);
|
|
29
29
|
};
|
|
30
|
-
console.log(moment().subtract(360, 'days').format('YYYY-MM-DD'));
|
|
31
30
|
function calculateTimeUnits(selectRange, selectRangeUnit, currentType) {
|
|
32
31
|
var duration = moment.duration(1, currentType);
|
|
33
32
|
switch (selectRangeUnit) {
|
|
@@ -60,6 +59,7 @@ export default (function () {
|
|
|
60
59
|
value: time,
|
|
61
60
|
defaultValue: time,
|
|
62
61
|
dateTypeList: [DatePickerTypes.Unit.hour, DatePickerTypes.Unit.day, DatePickerTypes.Unit.week, DatePickerTypes.Unit.month, DatePickerTypes.Unit.quarter, DatePickerTypes.Unit.custom],
|
|
62
|
+
openComparison: true,
|
|
63
63
|
selectRange: 365,
|
|
64
64
|
selectRangeUnit: "days",
|
|
65
65
|
onChange: handleChange
|
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { DatePickerTypes } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const classPrefix = "biz-date-picker-old-wrap";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizDatePicker: FCWithDefaultProps<DatePickerTypes.Props>;
|
|
6
9
|
export default BizDatePicker;
|
package/es/datePickerV2/index.js
CHANGED
|
@@ -40,7 +40,8 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
40
40
|
selectRangeUnit = _ref.selectRangeUnit,
|
|
41
41
|
timeRangeOpen = _ref.timeRangeOpen,
|
|
42
42
|
hiddenUnitType = _ref.hiddenUnitType,
|
|
43
|
-
shortcuts = _ref.shortcuts
|
|
43
|
+
shortcuts = _ref.shortcuts,
|
|
44
|
+
openComparison = _ref.openComparison;
|
|
44
45
|
var _useState = useState(false),
|
|
45
46
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
47
|
ready = _useState2[0],
|
|
@@ -133,7 +134,7 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
133
134
|
}, [dateRange, currentType, relative, ready]);
|
|
134
135
|
var renderLabel = function renderLabel() {
|
|
135
136
|
var typeList = getTypeList(currentType === null || currentType === void 0 ? void 0 : currentType.value, includeToday);
|
|
136
|
-
if (relative) {
|
|
137
|
+
if (relative && !openComparison) {
|
|
137
138
|
var type = typeList.find(function (item) {
|
|
138
139
|
return item.count == relative[0];
|
|
139
140
|
});
|
|
@@ -141,8 +142,16 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
141
142
|
if ((currentType === null || currentType === void 0 ? void 0 : currentType.value) == DatePickerTypes.Unit.hour) {
|
|
142
143
|
return type.value;
|
|
143
144
|
}
|
|
144
|
-
return '最近' + type.value;
|
|
145
|
+
return type.count == 0 ? '今天' : '最近' + type.value;
|
|
145
146
|
} else {
|
|
147
|
+
if (!includeToday) {
|
|
148
|
+
if ((currentType === null || currentType === void 0 ? void 0 : currentType.value) == DatePickerTypes.Unit.hour) {
|
|
149
|
+
setDateRange(getDateRange(DatePickerTypes.Unit.day, 1, includeToday));
|
|
150
|
+
setRelative([1, 1]);
|
|
151
|
+
return '昨天';
|
|
152
|
+
}
|
|
153
|
+
return '最近' + relative[0] + Reflect.get(DateOptionMap, currentType === null || currentType === void 0 ? void 0 : currentType.value);
|
|
154
|
+
}
|
|
146
155
|
return '最近' + relative[0] + Reflect.get(DateOptionMap, currentType === null || currentType === void 0 ? void 0 : currentType.value);
|
|
147
156
|
}
|
|
148
157
|
} else {
|
|
@@ -183,7 +192,7 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
183
192
|
setCurrentType(type);
|
|
184
193
|
if (type.value === 'hour') {
|
|
185
194
|
setDateRange(getDateRange(DatePickerTypes.Unit.day, 1, includeToday));
|
|
186
|
-
setRelative([1, 1]);
|
|
195
|
+
setRelative([1, includeToday ? 0 : 1]);
|
|
187
196
|
}
|
|
188
197
|
if (type.value === 'day') {
|
|
189
198
|
setDateRange(getDateRange(DatePickerTypes.Unit.day, 7, includeToday));
|
|
@@ -18,7 +18,7 @@ export default (function (props) {
|
|
|
18
18
|
relative = props.relative,
|
|
19
19
|
selectRangeUnit = props.selectRangeUnit,
|
|
20
20
|
shortcuts = props.shortcuts;
|
|
21
|
-
var ref = useRef();
|
|
21
|
+
var ref = useRef(null);
|
|
22
22
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
23
23
|
defaultActiveKey: relative ? '1' : '2'
|
|
24
24
|
}, currentType != DatePickerTypes.Unit.custom && /*#__PURE__*/React.createElement(Tabs.TabPane, {
|