@zgfe/business-lib 1.2.70-hxd.7 → 1.2.71-hxd.1
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 +1 -1
- 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 +3 -8
- 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 +433 -272
- 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.css +539 -539
- package/es/assets/iconfont/demo_index.html +5563 -5708
- package/es/assets/iconfont/iconfont.css +1015 -975
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/resetAntd.less +6 -2
- package/es/assets/styles/variable.less +1 -1
- 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 +1 -1
- package/es/attrCondition/useAttrCondition.js +7 -5
- package/es/attrConditions/components/operateList.js +6 -3
- package/es/attrConditions/components/stringList.js +5 -9
- package/es/attrConditions/index.d.ts +4 -1
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/types.d.ts +4 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/index.js +11 -11
- package/es/attributeSelector/listPanel.js +313 -101
- package/es/attributeSelector/types.d.ts +2 -0
- package/es/attributeSelector/util.js +3 -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 +2 -2
- package/es/chart/util/color.js +1 -1
- package/es/colorIcon/index.js +2 -4
- package/es/constants/apis.d.ts +4 -0
- package/es/constants/apis.js +6 -2
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +2 -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 +1 -1
- package/es/datePickerV2/types.d.ts +1 -0
- package/es/datePickerV2/utils.js +8 -2
- package/es/demoWrapper/content.js +9 -10
- 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/demo/styles/index.less +34 -34
- 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 +4 -0
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +2 -1
- package/es/formulaTarget/components/formula/index.less +1 -1
- 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/hooks/useBizStore.js +3 -9
- 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/btnMenu/index.less +18 -18
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
- 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/components/title/index.less +43 -43
- package/es/layout/optionTitle/index.js +1 -1
- package/es/layout/optionTitle/styles/index.less +30 -30
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/layout/optionTitle/styles/search.less +27 -27
- package/es/platformSelector/styles/index.less +1 -1
- 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 +1 -1
- package/es/productCondition/index.d.ts +4 -1
- package/es/productCondition/styles/conditionTypeList.less +4 -2
- package/es/productCondition/styles/relationLabel.less +1 -1
- 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 +28 -25
- 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 +15 -2
- 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.js +147 -53
- package/es/targetConditionGroup/demo/group.js +5 -18
- package/es/targetConditionGroup/index.d.ts +4 -1
- package/es/targetConditionGroup/index.js +12 -10
- 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 +35 -3
- 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 +14 -0
- package/es/userCondition/conditions/styles/periodCondition.less +7 -1
- package/es/userCondition/conditions/styles/textDesc.less +3 -4
- 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 +37 -21
- package/es/userCondition/styles/conditionTypeList.less +4 -2
- package/es/userCondition/styles/relationLabel.less +1 -1
- 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 +63 -15
- package/es/userGroup/overlay.js +17 -3
- package/es/userGroup/styles/index.less +55 -1
- 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 +53 -6
- package/es/userGroupHeader/styles/index.less +21 -2
- 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 +10 -0
- 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/eventApi.d.ts +14 -0
- package/es/utils/eventApi.js +128 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.js +2 -1
- package/es/utils/type.d.ts +1 -0
- 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
|
@@ -1,90 +1,90 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
-
|
|
3
|
-
.biz-option-layout {
|
|
4
|
-
height: 100%;
|
|
5
|
-
border-radius: @border-radius-normal;
|
|
6
|
-
&-header {
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: space-between;
|
|
10
|
-
width: 100%;
|
|
11
|
-
height: 64px;
|
|
12
|
-
padding: 0 16px;
|
|
13
|
-
background-color: #fff;
|
|
14
|
-
border-bottom: 1px solid @border-color-base;
|
|
15
|
-
|
|
16
|
-
&-title {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
&-text {
|
|
20
|
-
margin-right: @margin-md;
|
|
21
|
-
color: @text-color-secondary;
|
|
22
|
-
}
|
|
23
|
-
&-btn {
|
|
24
|
-
color: @text-color-secondary;
|
|
25
|
-
&:hover {
|
|
26
|
-
color: @primary-color;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
&-icon {
|
|
30
|
-
display: flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
width: 20px;
|
|
34
|
-
height: 20px;
|
|
35
|
-
margin-left: 8px;
|
|
36
|
-
color: #5f6085;
|
|
37
|
-
font-size: 12px;
|
|
38
|
-
background: #f2f3f4;
|
|
39
|
-
border-radius: 10px;
|
|
40
|
-
}
|
|
41
|
-
&-icon:hover {
|
|
42
|
-
color: #
|
|
43
|
-
background: #e8efff;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
&-option {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex: 1;
|
|
49
|
-
flex-direction: row-reverse;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: space-between;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&-content {
|
|
56
|
-
width: 100%;
|
|
57
|
-
height: calc(100% - 64px);
|
|
58
|
-
overflow: auto;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&-panel-content {
|
|
62
|
-
z-index: 1000;
|
|
63
|
-
width: 284px;
|
|
64
|
-
max-height: 304px;
|
|
65
|
-
padding: 0;
|
|
66
|
-
overflow: auto;
|
|
67
|
-
background: #fff;
|
|
68
|
-
border-radius: 10px;
|
|
69
|
-
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
70
|
-
.ant-popover-arrow {
|
|
71
|
-
display: none !important;
|
|
72
|
-
}
|
|
73
|
-
.ant-popover-inner-content {
|
|
74
|
-
width: 100%;
|
|
75
|
-
padding: 8px;
|
|
76
|
-
}
|
|
77
|
-
.ant-tabs {
|
|
78
|
-
.ant-tabs-tab-btn {
|
|
79
|
-
font-size: 16px;
|
|
80
|
-
}
|
|
81
|
-
.ant-tabs-nav {
|
|
82
|
-
margin-bottom: 4px;
|
|
83
|
-
padding-left: 45px;
|
|
84
|
-
}
|
|
85
|
-
.ant-tabs-nav::before {
|
|
86
|
-
border: none !important;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/variable.less';
|
|
2
|
+
|
|
3
|
+
.biz-option-layout {
|
|
4
|
+
height: 100%;
|
|
5
|
+
border-radius: @border-radius-normal;
|
|
6
|
+
&-header {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: space-between;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 64px;
|
|
12
|
+
padding: 0 16px;
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
border-bottom: 1px solid @border-color-base;
|
|
15
|
+
|
|
16
|
+
&-title {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
&-text {
|
|
20
|
+
margin-right: @margin-md;
|
|
21
|
+
color: @text-color-secondary;
|
|
22
|
+
}
|
|
23
|
+
&-btn {
|
|
24
|
+
color: @text-color-secondary;
|
|
25
|
+
&:hover {
|
|
26
|
+
color: @primary-color;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
&-icon {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
width: 20px;
|
|
34
|
+
height: 20px;
|
|
35
|
+
margin-left: 8px;
|
|
36
|
+
color: #5f6085;
|
|
37
|
+
font-size: 12px;
|
|
38
|
+
background: #f2f3f4;
|
|
39
|
+
border-radius: 10px;
|
|
40
|
+
}
|
|
41
|
+
&-icon:hover {
|
|
42
|
+
color: #116acc;
|
|
43
|
+
background: #e8efff;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&-option {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex: 1;
|
|
49
|
+
flex-direction: row-reverse;
|
|
50
|
+
align-items: center;
|
|
51
|
+
justify-content: space-between;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&-content {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: calc(100% - 64px);
|
|
58
|
+
overflow: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-panel-content {
|
|
62
|
+
z-index: 1000;
|
|
63
|
+
width: 284px;
|
|
64
|
+
max-height: 304px;
|
|
65
|
+
padding: 0;
|
|
66
|
+
overflow: auto;
|
|
67
|
+
background: #fff;
|
|
68
|
+
border-radius: 10px;
|
|
69
|
+
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
70
|
+
.ant-popover-arrow {
|
|
71
|
+
display: none !important;
|
|
72
|
+
}
|
|
73
|
+
.ant-popover-inner-content {
|
|
74
|
+
width: 100%;
|
|
75
|
+
padding: 8px;
|
|
76
|
+
}
|
|
77
|
+
.ant-tabs {
|
|
78
|
+
.ant-tabs-tab-btn {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
.ant-tabs-nav {
|
|
82
|
+
margin-bottom: 4px;
|
|
83
|
+
padding-left: 45px;
|
|
84
|
+
}
|
|
85
|
+
.ant-tabs-nav::before {
|
|
86
|
+
border: none !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.search-title {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
height: 24px;
|
|
7
|
-
transition: all 0.3s;
|
|
8
|
-
|
|
9
|
-
&-title {
|
|
10
|
-
margin-right: 15px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&-input {
|
|
14
|
-
min-width: 100px;
|
|
15
|
-
max-width: 200px;
|
|
16
|
-
height: 24px;
|
|
17
|
-
background-color: #fff !important;
|
|
18
|
-
.ant-input {
|
|
19
|
-
background-color: #fff !important;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-icon {
|
|
24
|
-
color: #5f6085;
|
|
25
|
-
font-size: 12px;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.search-title {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
height: 24px;
|
|
7
|
+
transition: all 0.3s;
|
|
8
|
+
|
|
9
|
+
&-title {
|
|
10
|
+
margin-right: 15px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-input {
|
|
14
|
+
min-width: 100px;
|
|
15
|
+
max-width: 200px;
|
|
16
|
+
height: 24px;
|
|
17
|
+
background-color: #fff !important;
|
|
18
|
+
.ant-input {
|
|
19
|
+
background-color: #fff !important;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-icon {
|
|
24
|
+
color: #5f6085;
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -6,5 +6,8 @@ export interface ConditionTypeListPropsI {
|
|
|
6
6
|
label?: string | React.ReactNode;
|
|
7
7
|
show?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
10
|
+
defaultProps?: Partial<P>;
|
|
11
|
+
};
|
|
12
|
+
declare const ConditionTypeList: FCWithDefaultProps<ConditionTypeListPropsI>;
|
|
10
13
|
export default ConditionTypeList;
|
|
@@ -15,17 +15,20 @@ import BizSelect from '../../select';
|
|
|
15
15
|
import { PropType } from '../types';
|
|
16
16
|
import './styles/cdpCshCondition.less';
|
|
17
17
|
import _ from 'lodash';
|
|
18
|
-
import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2 } from '../../attrConditions/utils/operates';
|
|
18
|
+
import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2, stringOperate1 } from '../../attrConditions/utils/operates';
|
|
19
19
|
import { DatePicker, Input } 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 BizGlobalDataContext from '../../context';
|
|
24
25
|
var classPrefix = 'biz-user-condition-cdp-csh';
|
|
25
26
|
var CdpConditionItem = function CdpConditionItem(props) {
|
|
26
|
-
var _useContext = useContext(
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
28
|
+
basicConfig = _useContext.basicConfig;
|
|
29
|
+
var _useContext2 = useContext(BizUserConditionContext),
|
|
30
|
+
_useContext2$datasetL = _useContext2.datasetList,
|
|
31
|
+
datasetList = _useContext2$datasetL === void 0 ? [] : _useContext2$datasetL;
|
|
29
32
|
var _useState = useState(function () {
|
|
30
33
|
if (props.value) {
|
|
31
34
|
return _objectSpread(_objectSpread({}, props.value), {}, {
|
|
@@ -287,7 +290,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
287
290
|
list = numberOperateCsh;
|
|
288
291
|
break;
|
|
289
292
|
case PropType.STRING2:
|
|
290
|
-
list = stringOperate;
|
|
293
|
+
list = basicConfig && basicConfig.openRegexp ? stringOperate1 : stringOperate;
|
|
291
294
|
break;
|
|
292
295
|
default:
|
|
293
296
|
list = [];
|
|
@@ -314,7 +317,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
314
317
|
options: optionList,
|
|
315
318
|
labelField: "name",
|
|
316
319
|
keyField: "value",
|
|
317
|
-
overlayWidth:
|
|
320
|
+
overlayWidth: 120,
|
|
318
321
|
value: operator,
|
|
319
322
|
onChange: function onChange(v) {
|
|
320
323
|
onOperateChange(v);
|
|
@@ -16,7 +16,8 @@ var RangePicker = DatePicker.RangePicker;
|
|
|
16
16
|
var RunPeriodCondition = function RunPeriodCondition(props) {
|
|
17
17
|
var onChange = props.onChange,
|
|
18
18
|
condition = props.condition,
|
|
19
|
-
isEvent = props.isEvent
|
|
19
|
+
_props$isEvent = props.isEvent,
|
|
20
|
+
isEvent = _props$isEvent === void 0 ? false : _props$isEvent;
|
|
20
21
|
var options = [{
|
|
21
22
|
text: '最近',
|
|
22
23
|
value: 'relative'
|
|
@@ -126,7 +127,4 @@ var RunPeriodCondition = function RunPeriodCondition(props) {
|
|
|
126
127
|
onChange: onChange
|
|
127
128
|
}))));
|
|
128
129
|
};
|
|
129
|
-
RunPeriodCondition.defaultProps = {
|
|
130
|
-
isEvent: false
|
|
131
|
-
};
|
|
132
130
|
export default RunPeriodCondition;
|
|
@@ -7,5 +7,8 @@ export interface PeriodConditionPropsI extends AllConditionBasePropsI<RunPeriodI
|
|
|
7
7
|
runPeriod: RunPeriodI;
|
|
8
8
|
isRealTime?: boolean;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
11
|
+
defaultProps?: Partial<P>;
|
|
12
|
+
};
|
|
13
|
+
declare const PeriodCondition: FCWithDefaultProps<PeriodConditionPropsI>;
|
|
11
14
|
export default PeriodCondition;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PropConditionType } from '../types';
|
|
3
3
|
import './styles/propCondition.less';
|
|
4
|
-
|
|
4
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
5
|
+
defaultProps?: Partial<P>;
|
|
6
|
+
};
|
|
7
|
+
declare const PropCondition: FCWithDefaultProps<PropConditionType.PropsI>;
|
|
5
8
|
export default PropCondition;
|
|
@@ -3,5 +3,8 @@ import { BizProductConditionT } from './types';
|
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const BizUserConditionContext: React.Context<BizProductConditionT.GlobalContext>;
|
|
5
5
|
export declare const classPrefix = "biz-user-condition";
|
|
6
|
-
|
|
6
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
7
|
+
defaultProps?: Partial<P>;
|
|
8
|
+
};
|
|
9
|
+
declare const BizUserCondition: FCWithDefaultProps<BizProductConditionT.PropsI>;
|
|
7
10
|
export default BizUserCondition;
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
list-style: none;
|
|
13
13
|
.condition-type {
|
|
14
14
|
padding: @padding-xss 12px;
|
|
15
|
-
background-color:
|
|
15
|
+
background-color: #fff;
|
|
16
|
+
border: 1px solid #ecedf0;
|
|
16
17
|
border-radius: @border-radius-large;
|
|
17
18
|
cursor: pointer;
|
|
18
19
|
&:nth-child(n + 2) {
|
|
@@ -20,7 +21,8 @@
|
|
|
20
21
|
}
|
|
21
22
|
&:hover {
|
|
22
23
|
color: @primary-color;
|
|
23
|
-
background-color: @primary-color-hover;
|
|
24
|
+
// background-color: @primary-color-hover;
|
|
25
|
+
border: 1px solid #b9ceff;
|
|
24
26
|
}
|
|
25
27
|
&:active {
|
|
26
28
|
border-color: @primary-color;
|
|
@@ -73,7 +73,7 @@ export declare namespace BizProductConditionT {
|
|
|
73
73
|
condition: BizProductConditionT.BusinessCondition;
|
|
74
74
|
openBusinessDataCondition?: boolean;
|
|
75
75
|
openOrderDataCondition?: boolean;
|
|
76
|
-
label?: string |
|
|
76
|
+
label?: string | any;
|
|
77
77
|
index?: number;
|
|
78
78
|
onChange: (dataId: number, newData: BizProductConditionT.AttrCondition[]) => void;
|
|
79
79
|
}
|
|
@@ -94,12 +94,14 @@ export declare namespace BizProductConditionT {
|
|
|
94
94
|
userAmount: number;
|
|
95
95
|
layerNum: number;
|
|
96
96
|
endProcessTime: string;
|
|
97
|
+
ancestryState?: number;
|
|
97
98
|
layers: {
|
|
98
99
|
layerLabelId: number;
|
|
99
100
|
layerLabelName: string;
|
|
100
101
|
layerRemark: string;
|
|
101
102
|
layerCondition: Condition[][];
|
|
102
103
|
sequence: number;
|
|
104
|
+
ancestryState?: number;
|
|
103
105
|
}[];
|
|
104
106
|
}
|
|
105
107
|
interface AttrCondition {
|
|
@@ -13,6 +13,7 @@ export declare function buildSelectLayer(data: BizProductConditionT.UserTagsData
|
|
|
13
13
|
labelCreateType?: undefined;
|
|
14
14
|
layerLabelId?: undefined;
|
|
15
15
|
layerLabelName?: undefined;
|
|
16
|
+
ancestryState?: undefined;
|
|
16
17
|
} | {
|
|
17
18
|
id: number;
|
|
18
19
|
labelName: string;
|
|
@@ -20,9 +21,11 @@ export declare function buildSelectLayer(data: BizProductConditionT.UserTagsData
|
|
|
20
21
|
labelGroup?: undefined;
|
|
21
22
|
layerLabelId?: undefined;
|
|
22
23
|
layerLabelName?: undefined;
|
|
24
|
+
ancestryState?: undefined;
|
|
23
25
|
} | {
|
|
24
26
|
layerLabelId: string;
|
|
25
27
|
layerLabelName: string;
|
|
28
|
+
ancestryState: number | undefined;
|
|
26
29
|
labelGroup?: undefined;
|
|
27
30
|
id?: undefined;
|
|
28
31
|
labelName?: undefined;
|
|
@@ -30,6 +33,7 @@ export declare function buildSelectLayer(data: BizProductConditionT.UserTagsData
|
|
|
30
33
|
} | {
|
|
31
34
|
layerLabelId: number;
|
|
32
35
|
layerLabelName: string;
|
|
36
|
+
ancestryState: number | undefined;
|
|
33
37
|
labelGroup?: undefined;
|
|
34
38
|
id?: undefined;
|
|
35
39
|
labelName?: undefined;
|
|
@@ -110,10 +110,12 @@ export function buildSelectLayer(data) {
|
|
|
110
110
|
labelCreateType: data[j].labelCreateType
|
|
111
111
|
}, type === LabelCreateType.firstAndLastUpdate || type === LabelCreateType.fundingSource || type === LabelCreateType.eventPreference || type === LabelCreateType.sqlCreateTable ? {
|
|
112
112
|
layerLabelId: layerLabelId,
|
|
113
|
-
layerLabelName: ''
|
|
113
|
+
layerLabelName: '',
|
|
114
|
+
ancestryState: data[j].ancestryState
|
|
114
115
|
} : {
|
|
115
116
|
layerLabelId: data[j].layers[i].layerLabelId,
|
|
116
|
-
layerLabelName: data[j].layers[i].layerLabelName
|
|
117
|
+
layerLabelName: data[j].layers[i].layerLabelName,
|
|
118
|
+
ancestryState: data[j].layers[i].ancestryState
|
|
117
119
|
}];
|
|
118
120
|
};
|
|
119
121
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
1
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
8
|
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
9
|
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); }
|
|
@@ -10,17 +16,27 @@ import '@zgfe/business-lib/es/assets/styles/resetAntd.less';
|
|
|
10
16
|
import { ConfigProvider } from 'antd';
|
|
11
17
|
import zhCN from 'antd/es/locale/zh_CN';
|
|
12
18
|
export default (function () {
|
|
13
|
-
var _useState = useState({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
var _useState = useState([{
|
|
20
|
+
label: '上一时间段',
|
|
21
|
+
value: 5,
|
|
22
|
+
width: 96
|
|
23
|
+
}, {
|
|
24
|
+
label: '去年同期',
|
|
25
|
+
value: 6,
|
|
26
|
+
width: 80
|
|
27
|
+
}]),
|
|
28
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
29
|
+
customQuickModuleOptions = _useState2[0];
|
|
30
|
+
var _useState3 = useState(_objectSpread({
|
|
31
|
+
unit: 'hour',
|
|
32
|
+
begin: '2025-05-25',
|
|
33
|
+
end: '2025-05-25',
|
|
34
|
+
relative: 0
|
|
35
|
+
}, customQuickModuleOptions[0])),
|
|
36
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
|
+
time = _useState4[0],
|
|
38
|
+
setTime = _useState4[1];
|
|
22
39
|
var onChange = function onChange(data) {
|
|
23
|
-
console.log('onChange', data);
|
|
24
40
|
setTime(data);
|
|
25
41
|
};
|
|
26
42
|
return /*#__PURE__*/React.createElement(ConfigProvider, {
|
|
@@ -35,6 +51,10 @@ export default (function () {
|
|
|
35
51
|
}
|
|
36
52
|
}, "\u9009\u62E9\u65F6\u95F4\uFF1A"), /*#__PURE__*/React.createElement(BizQuickDatePicker, {
|
|
37
53
|
defaultValue: time,
|
|
38
|
-
onChange: onChange
|
|
54
|
+
onChange: onChange,
|
|
55
|
+
isComparison: true,
|
|
56
|
+
isShowDefaultQuick: false,
|
|
57
|
+
defaultOpen: true,
|
|
58
|
+
customQuickModuleOptions: customQuickModuleOptions
|
|
39
59
|
})));
|
|
40
60
|
});
|