@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.
Files changed (216) hide show
  1. package/es/AUMFormulaTarget/components/formula/index.js +6 -4
  2. package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +2 -2
  3. package/es/AUMFormulaTarget/components/panel/index.less +1 -1
  4. package/es/AUMFormulaTarget/demo/index.js +1 -1
  5. package/es/AUMFormulaTarget/index.d.ts +4 -1
  6. package/es/addToPanel/components/radioGroup.d.ts +4 -1
  7. package/es/addToPanel/components/styleList.d.ts +4 -1
  8. package/es/addToPanel/index.d.ts +4 -1
  9. package/es/addToPanel/index.js +1 -1
  10. package/es/addToScene/index.js +3 -8
  11. package/es/amountSelector/demo/index.d.ts +3 -0
  12. package/es/amountSelector/demo/index.js +9 -0
  13. package/es/amountSelector/index.d.ts +10 -0
  14. package/es/amountSelector/index.js +21 -0
  15. package/es/amountSelector/styles/index.less +27 -0
  16. package/es/amountSelector/types.d.ts +4 -0
  17. package/es/amountSelector/types.js +1 -0
  18. package/es/amountSelector/util.d.ts +3 -0
  19. package/es/amountSelector/util.js +18 -0
  20. package/es/assets/colorIcon/demo_index.html +1023 -492
  21. package/es/assets/colorIcon/iconfont.css +203 -110
  22. package/es/assets/colorIcon/iconfont.js +13 -14
  23. package/es/assets/colorIcon/iconfont.json +433 -272
  24. package/es/assets/colorIcon/iconfont.ttf +0 -0
  25. package/es/assets/colorIcon/iconfont.woff +0 -0
  26. package/es/assets/colorIcon/iconfont.woff2 +0 -0
  27. package/es/assets/iconfont/demo.css +539 -539
  28. package/es/assets/iconfont/demo_index.html +5563 -5708
  29. package/es/assets/iconfont/iconfont.css +1015 -975
  30. package/es/assets/iconfont/iconfont.js +1 -1
  31. package/es/assets/iconfont/iconfont.json +1584 -1689
  32. package/es/assets/styles/resetAntd.less +6 -2
  33. package/es/assets/styles/variable.less +1 -1
  34. package/es/assets/theme.js +1 -1
  35. package/es/attrCondition/demo/group.js +1 -1
  36. package/es/attrCondition/group.js +11 -6
  37. package/es/attrCondition/index.js +11 -6
  38. package/es/attrCondition/styles/index.less +1 -1
  39. package/es/attrCondition/useAttrCondition.js +7 -5
  40. package/es/attrConditions/components/operateList.js +6 -3
  41. package/es/attrConditions/components/stringList.js +5 -9
  42. package/es/attrConditions/index.d.ts +4 -1
  43. package/es/attrConditions/index.js +4 -2
  44. package/es/attrConditions/types.d.ts +4 -0
  45. package/es/attrConditions/utils/operates.d.ts +4 -0
  46. package/es/attrConditions/utils/operates.js +37 -0
  47. package/es/attributeSelector/index.js +11 -11
  48. package/es/attributeSelector/listPanel.js +313 -101
  49. package/es/attributeSelector/types.d.ts +2 -0
  50. package/es/attributeSelector/util.js +3 -0
  51. package/es/chart/demo/data/data5 copy.js +2 -2
  52. package/es/chart/demo/index.js +1 -1
  53. package/es/chart/demo/line_bar_stack.js +4 -4
  54. package/es/chart/demo/stack.js +1 -1
  55. package/es/chart/index.js +10 -12
  56. package/es/chart/styles/index.less +2 -2
  57. package/es/chart/util/color.js +1 -1
  58. package/es/colorIcon/index.js +2 -4
  59. package/es/constants/apis.d.ts +4 -0
  60. package/es/constants/apis.js +6 -2
  61. package/es/constants/common.d.ts +11 -0
  62. package/es/constants/common.js +31 -0
  63. package/es/context/index.d.ts +2 -0
  64. package/es/cycleTime/index.js +6 -8
  65. package/es/cycleTime/month.js +2 -5
  66. package/es/dataSetGroup/index.js +0 -1
  67. package/es/datePicker/index.d.ts +4 -1
  68. package/es/datePickerV2/demo/index.js +1 -1
  69. package/es/datePickerV2/index.d.ts +4 -1
  70. package/es/datePickerV2/index.js +13 -4
  71. package/es/datePickerV2/popoverContent.js +1 -1
  72. package/es/datePickerV2/shortcut.js +1 -1
  73. package/es/datePickerV2/styles/index.less +1 -1
  74. package/es/datePickerV2/types.d.ts +1 -0
  75. package/es/datePickerV2/utils.js +8 -2
  76. package/es/demoWrapper/content.js +9 -10
  77. package/es/demoWrapper/innerDemo.js +1 -1
  78. package/es/dialog/index.d.ts +4 -1
  79. package/es/dnd/demo/index.js +5 -1
  80. package/es/dnd/demo/styles/index.less +34 -34
  81. package/es/dnd/index.d.ts +4 -1
  82. package/es/dnd/item.js +14 -0
  83. package/es/eventSelector/index.d.ts +4 -1
  84. package/es/eventSelector/index.js +3 -2
  85. package/es/eventSelector/listPanel.js +9 -13
  86. package/es/eventSelector/option.d.ts +1 -0
  87. package/es/eventSelector/option.js +14 -3
  88. package/es/eventSelector/styles/index.less +4 -0
  89. package/es/eventSelector/types.d.ts +1 -0
  90. package/es/formulaTarget/components/formula/index.js +2 -1
  91. package/es/formulaTarget/components/formula/index.less +1 -1
  92. package/es/formulaTarget/components/formula/types.d.ts +1 -0
  93. package/es/formulaTarget/components/formulaItem/index.js +7 -2
  94. package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
  95. package/es/formulaTarget/components/panel/index.js +2 -1
  96. package/es/formulaTarget/components/panel/item.js +5 -1
  97. package/es/formulaTarget/components/panel/types.d.ts +2 -0
  98. package/es/formulaTarget/index.d.ts +4 -1
  99. package/es/formulaTarget/index.js +2 -1
  100. package/es/formulaTarget/types.d.ts +1 -0
  101. package/es/hooks/useBizStore.js +3 -9
  102. package/es/icon/iconFont.d.ts +4 -1
  103. package/es/index.d.ts +2 -1
  104. package/es/index.js +2 -1
  105. package/es/layout/analysisLayout/index.d.ts +4 -1
  106. package/es/layout/columnLayout/index.d.ts +4 -1
  107. package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
  108. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
  109. package/es/layout/optionTitle/components/title/index.d.ts +1 -2
  110. package/es/layout/optionTitle/components/title/index.js +10 -6
  111. package/es/layout/optionTitle/components/title/index.less +43 -43
  112. package/es/layout/optionTitle/index.js +1 -1
  113. package/es/layout/optionTitle/styles/index.less +30 -30
  114. package/es/layout/optionTitle/styles/layout.less +90 -90
  115. package/es/layout/optionTitle/styles/search.less +27 -27
  116. package/es/platformSelector/styles/index.less +1 -1
  117. package/es/productCondition/conditionTypeList.d.ts +4 -1
  118. package/es/productCondition/conditions/cdpCshCondition.js +9 -6
  119. package/es/productCondition/conditions/constants.d.ts +2 -0
  120. package/es/productCondition/conditions/constants.js +2 -0
  121. package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
  122. package/es/productCondition/conditions/periodCondition.d.ts +4 -1
  123. package/es/productCondition/conditions/propCondition.d.ts +4 -1
  124. package/es/productCondition/conditions/styles/periodCondition.less +1 -1
  125. package/es/productCondition/index.d.ts +4 -1
  126. package/es/productCondition/styles/conditionTypeList.less +4 -2
  127. package/es/productCondition/styles/relationLabel.less +1 -1
  128. package/es/productCondition/types.d.ts +3 -1
  129. package/es/productCondition/util.d.ts +4 -0
  130. package/es/productCondition/util.js +4 -2
  131. package/es/quickDatePicker/demo/index.js +31 -11
  132. package/es/quickDatePicker/index.js +122 -23
  133. package/es/quickDatePicker/styles/index.less +28 -25
  134. package/es/quickDatePicker/types.d.ts +13 -0
  135. package/es/quickDatePicker/utils.d.ts +6 -0
  136. package/es/quickDatePicker/utils.js +54 -1
  137. package/es/select/demo/index.js +2 -1
  138. package/es/select/handle.js +2 -9
  139. package/es/select/index.d.ts +4 -1
  140. package/es/select/option.js +1 -1
  141. package/es/select/overlay.js +2 -2
  142. package/es/select/styles/handle.less +15 -2
  143. package/es/socket/demo/demo.js +2 -2
  144. package/es/subjectWrapper/index.js +3 -1
  145. package/es/table/demo/data/color.js +1 -1
  146. package/es/table/index.js +3 -30
  147. package/es/targetConditionGroup/components/targetDimension.js +147 -53
  148. package/es/targetConditionGroup/demo/group.js +5 -18
  149. package/es/targetConditionGroup/index.d.ts +4 -1
  150. package/es/targetConditionGroup/index.js +12 -10
  151. package/es/targetConditionGroup/types.d.ts +1 -0
  152. package/es/targetSelector/editBox.d.ts +1 -0
  153. package/es/targetSelector/editBox.js +8 -3
  154. package/es/targetSelector/index.js +2 -1
  155. package/es/targetSelector/optionIcon.d.ts +4 -1
  156. package/es/targetSelector/optionIcon.js +3 -0
  157. package/es/targetSelector/styles/index.less +35 -3
  158. package/es/userCondition/conditionTypeList.d.ts +4 -1
  159. package/es/userCondition/conditionTypeList.js +5 -4
  160. package/es/userCondition/conditions/cdpCondition.js +9 -6
  161. package/es/userCondition/conditions/cdpCshCondition.js +9 -6
  162. package/es/userCondition/conditions/constants.d.ts +2 -0
  163. package/es/userCondition/conditions/constants.js +2 -0
  164. package/es/userCondition/conditions/dataAttribute.js +11 -7
  165. package/es/userCondition/conditions/eventCondition.js +16 -24
  166. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
  167. package/es/userCondition/conditions/periodCondition.d.ts +4 -1
  168. package/es/userCondition/conditions/periodCondition.js +19 -11
  169. package/es/userCondition/conditions/propCondition.js +5 -3
  170. package/es/userCondition/conditions/styles/eventCondition.less +14 -0
  171. package/es/userCondition/conditions/styles/periodCondition.less +7 -1
  172. package/es/userCondition/conditions/styles/textDesc.less +3 -4
  173. package/es/userCondition/conditions/tagsCondition.js +12 -5
  174. package/es/userCondition/conditions/textDesc.js +9 -5
  175. package/es/userCondition/demo/index.js +20 -14
  176. package/es/userCondition/demo/mockData.d.ts +20 -94
  177. package/es/userCondition/demo/mockData.js +31 -76
  178. package/es/userCondition/index.d.ts +5 -1
  179. package/es/userCondition/index.js +37 -21
  180. package/es/userCondition/styles/conditionTypeList.less +4 -2
  181. package/es/userCondition/styles/relationLabel.less +1 -1
  182. package/es/userCondition/types.d.ts +5 -2
  183. package/es/userCondition/util.d.ts +4 -0
  184. package/es/userCondition/util.js +4 -2
  185. package/es/userGroup/demo/index.js +2 -9
  186. package/es/userGroup/index.d.ts +4 -1
  187. package/es/userGroup/index.js +63 -15
  188. package/es/userGroup/overlay.js +17 -3
  189. package/es/userGroup/styles/index.less +55 -1
  190. package/es/userGroup/types.d.ts +2 -0
  191. package/es/userGroup/util.d.ts +2 -0
  192. package/es/userGroup/util.js +47 -0
  193. package/es/userGroupHeader/demo/index.js +1 -1
  194. package/es/userGroupHeader/index.d.ts +1 -0
  195. package/es/userGroupHeader/index.js +53 -6
  196. package/es/userGroupHeader/styles/index.less +21 -2
  197. package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
  198. package/es/userTagsSelector/cascaderOverlay.js +9 -2
  199. package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
  200. package/es/userTagsSelector/groups/index.d.ts +4 -1
  201. package/es/userTagsSelector/index.d.ts +4 -1
  202. package/es/userTagsSelector/index.js +32 -2
  203. package/es/userTagsSelector/styles/index.less +10 -0
  204. package/es/userTagsSelector/types.d.ts +2 -0
  205. package/es/userTagsSelector/util.d.ts +1 -0
  206. package/es/userTagsSelector/util.js +20 -0
  207. package/es/utils/ajax.js +63 -26
  208. package/es/utils/eventApi.d.ts +14 -0
  209. package/es/utils/eventApi.js +128 -0
  210. package/es/utils/index.d.ts +2 -1
  211. package/es/utils/index.js +2 -1
  212. package/es/utils/type.d.ts +1 -0
  213. package/es/utils/util.d.ts +1 -0
  214. package/es/utils/util.js +18 -0
  215. package/package.json +2 -2
  216. 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: #165dff;
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
+ }
@@ -20,7 +20,7 @@
20
20
  }
21
21
  &:hover {
22
22
  .biz-select-option-icon .bsicon {
23
- color: #165dff;
23
+ color: #116acc;
24
24
  }
25
25
  }
26
26
  }
@@ -6,5 +6,8 @@ export interface ConditionTypeListPropsI {
6
6
  label?: string | React.ReactNode;
7
7
  show?: boolean;
8
8
  }
9
- declare const ConditionTypeList: React.FC<ConditionTypeListPropsI>;
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(BizUserConditionContext),
27
- _useContext$datasetLi = _useContext.datasetList,
28
- datasetList = _useContext$datasetLi === void 0 ? [] : _useContext$datasetLi;
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: 96,
320
+ overlayWidth: 120,
318
321
  value: operator,
319
322
  onChange: function onChange(v) {
320
323
  onOperateChange(v);
@@ -13,6 +13,8 @@ export declare const operatorMap: {
13
13
  'not begin with': string;
14
14
  'end with': string;
15
15
  'not end with': string;
16
+ regexp: string;
17
+ 'not regexp': string;
16
18
  '=': string;
17
19
  '<': string;
18
20
  '>': string;
@@ -13,6 +13,8 @@ export var operatorMap = {
13
13
  'not begin with': '开头不是',
14
14
  'end with': '结尾是',
15
15
  'not end with': '结尾不是',
16
+ regexp: '正则匹配',
17
+ 'not regexp': '正则不匹配',
16
18
  '=': '=',
17
19
  '<': '<',
18
20
  '>': '>',
@@ -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
- declare const PeriodCondition: React.FC<PeriodConditionPropsI>;
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
- declare const PropCondition: React.FC<PropConditionType.PropsI>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const PropCondition: FCWithDefaultProps<PropConditionType.PropsI>;
5
8
  export default PropCondition;
@@ -12,7 +12,7 @@
12
12
  }
13
13
  }
14
14
  &-operator {
15
- width: 129px;
15
+ width: 100px;
16
16
  }
17
17
  &-values {
18
18
  .ant-picker-range.ant-picker-larg {
@@ -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
- declare const BizUserCondition: React.FC<BizProductConditionT.PropsI>;
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: @background-color-base;
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;
@@ -3,7 +3,7 @@
3
3
  position: relative;
4
4
  width: 2px;
5
5
  margin-right: @margin-lg;
6
- background-color: @border-color-split;
6
+ background-color: #b9ceff;
7
7
  &-label {
8
8
  position: absolute;
9
9
  top: 50%;
@@ -73,7 +73,7 @@ export declare namespace BizProductConditionT {
73
73
  condition: BizProductConditionT.BusinessCondition;
74
74
  openBusinessDataCondition?: boolean;
75
75
  openOrderDataCondition?: boolean;
76
- label?: string | React.ReactDOM;
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
- unit: 'month',
15
- begin: '2023-06-23',
16
- end: '2023-06-30',
17
- relative: 2
18
- }),
19
- _useState2 = _slicedToArray(_useState, 2),
20
- time = _useState2[0],
21
- setTime = _useState2[1];
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
  });