@zgfe/business-lib 1.2.70-hxd.3 → 1.2.70-hxd.31

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 (217) 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 +3 -8
  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 +312 -100
  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/context/index.js +8 -1
  65. package/es/cycleTime/index.js +6 -8
  66. package/es/cycleTime/month.js +2 -5
  67. package/es/dataSetGroup/index.js +0 -1
  68. package/es/datePicker/index.d.ts +4 -1
  69. package/es/datePickerV2/demo/index.js +1 -1
  70. package/es/datePickerV2/index.d.ts +4 -1
  71. package/es/datePickerV2/index.js +13 -4
  72. package/es/datePickerV2/popoverContent.js +1 -1
  73. package/es/datePickerV2/shortcut.js +1 -1
  74. package/es/datePickerV2/styles/index.less +1 -1
  75. package/es/datePickerV2/types.d.ts +1 -0
  76. package/es/datePickerV2/utils.js +8 -2
  77. package/es/demoWrapper/content.js +9 -10
  78. package/es/demoWrapper/innerDemo.js +1 -1
  79. package/es/dialog/index.d.ts +4 -1
  80. package/es/dnd/demo/index.js +5 -1
  81. package/es/dnd/demo/styles/index.less +34 -34
  82. package/es/dnd/index.d.ts +4 -1
  83. package/es/dnd/item.js +14 -0
  84. package/es/eventSelector/index.d.ts +4 -1
  85. package/es/eventSelector/index.js +3 -2
  86. package/es/eventSelector/listPanel.js +10 -14
  87. package/es/eventSelector/option.d.ts +1 -0
  88. package/es/eventSelector/option.js +14 -3
  89. package/es/eventSelector/styles/index.less +4 -0
  90. package/es/eventSelector/types.d.ts +1 -0
  91. package/es/formulaTarget/components/formula/index.js +2 -1
  92. package/es/formulaTarget/components/formula/index.less +1 -1
  93. package/es/formulaTarget/components/formula/types.d.ts +1 -0
  94. package/es/formulaTarget/components/formulaItem/index.js +7 -2
  95. package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
  96. package/es/formulaTarget/components/panel/index.js +2 -1
  97. package/es/formulaTarget/components/panel/item.js +5 -1
  98. package/es/formulaTarget/components/panel/types.d.ts +2 -0
  99. package/es/formulaTarget/index.d.ts +4 -1
  100. package/es/formulaTarget/index.js +2 -1
  101. package/es/formulaTarget/types.d.ts +1 -0
  102. package/es/hooks/useBizStore.js +3 -9
  103. package/es/icon/iconFont.d.ts +4 -1
  104. package/es/index.d.ts +2 -1
  105. package/es/index.js +2 -1
  106. package/es/layout/analysisLayout/index.d.ts +4 -1
  107. package/es/layout/columnLayout/index.d.ts +4 -1
  108. package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
  109. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
  110. package/es/layout/optionTitle/components/title/index.d.ts +1 -2
  111. package/es/layout/optionTitle/components/title/index.js +10 -6
  112. package/es/layout/optionTitle/components/title/index.less +43 -43
  113. package/es/layout/optionTitle/index.js +1 -1
  114. package/es/layout/optionTitle/styles/index.less +30 -30
  115. package/es/layout/optionTitle/styles/layout.less +90 -90
  116. package/es/layout/optionTitle/styles/search.less +27 -27
  117. package/es/platformSelector/styles/index.less +1 -1
  118. package/es/productCondition/conditionTypeList.d.ts +4 -1
  119. package/es/productCondition/conditions/cdpCshCondition.js +9 -6
  120. package/es/productCondition/conditions/constants.d.ts +2 -0
  121. package/es/productCondition/conditions/constants.js +2 -0
  122. package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
  123. package/es/productCondition/conditions/periodCondition.d.ts +4 -1
  124. package/es/productCondition/conditions/propCondition.d.ts +4 -1
  125. package/es/productCondition/conditions/styles/periodCondition.less +1 -1
  126. package/es/productCondition/index.d.ts +4 -1
  127. package/es/productCondition/styles/conditionTypeList.less +4 -2
  128. package/es/productCondition/styles/relationLabel.less +1 -1
  129. package/es/productCondition/types.d.ts +3 -1
  130. package/es/productCondition/util.d.ts +4 -0
  131. package/es/productCondition/util.js +4 -2
  132. package/es/quickDatePicker/demo/index.js +31 -11
  133. package/es/quickDatePicker/index.js +122 -23
  134. package/es/quickDatePicker/styles/index.less +28 -25
  135. package/es/quickDatePicker/types.d.ts +13 -0
  136. package/es/quickDatePicker/utils.d.ts +6 -0
  137. package/es/quickDatePicker/utils.js +54 -1
  138. package/es/select/demo/index.js +2 -1
  139. package/es/select/handle.js +2 -9
  140. package/es/select/index.d.ts +4 -1
  141. package/es/select/option.js +1 -1
  142. package/es/select/overlay.js +2 -2
  143. package/es/select/styles/handle.less +15 -2
  144. package/es/socket/demo/demo.js +2 -2
  145. package/es/subjectWrapper/index.js +3 -1
  146. package/es/table/demo/data/color.js +1 -1
  147. package/es/table/index.js +3 -30
  148. package/es/targetConditionGroup/components/targetDimension.js +147 -53
  149. package/es/targetConditionGroup/demo/group.js +5 -18
  150. package/es/targetConditionGroup/index.d.ts +4 -1
  151. package/es/targetConditionGroup/index.js +12 -10
  152. package/es/targetConditionGroup/types.d.ts +1 -0
  153. package/es/targetSelector/editBox.d.ts +1 -0
  154. package/es/targetSelector/editBox.js +8 -3
  155. package/es/targetSelector/index.js +2 -1
  156. package/es/targetSelector/optionIcon.d.ts +4 -1
  157. package/es/targetSelector/optionIcon.js +3 -0
  158. package/es/targetSelector/styles/index.less +35 -3
  159. package/es/userCondition/conditionTypeList.d.ts +4 -1
  160. package/es/userCondition/conditionTypeList.js +5 -4
  161. package/es/userCondition/conditions/cdpCondition.js +9 -6
  162. package/es/userCondition/conditions/cdpCshCondition.js +9 -6
  163. package/es/userCondition/conditions/constants.d.ts +2 -0
  164. package/es/userCondition/conditions/constants.js +2 -0
  165. package/es/userCondition/conditions/dataAttribute.js +11 -7
  166. package/es/userCondition/conditions/eventCondition.js +16 -24
  167. package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
  168. package/es/userCondition/conditions/periodCondition.d.ts +4 -1
  169. package/es/userCondition/conditions/periodCondition.js +19 -11
  170. package/es/userCondition/conditions/propCondition.js +5 -3
  171. package/es/userCondition/conditions/styles/eventCondition.less +14 -0
  172. package/es/userCondition/conditions/styles/periodCondition.less +7 -1
  173. package/es/userCondition/conditions/styles/textDesc.less +3 -4
  174. package/es/userCondition/conditions/tagsCondition.js +12 -5
  175. package/es/userCondition/conditions/textDesc.js +9 -5
  176. package/es/userCondition/demo/index.js +20 -14
  177. package/es/userCondition/demo/mockData.d.ts +20 -94
  178. package/es/userCondition/demo/mockData.js +31 -76
  179. package/es/userCondition/index.d.ts +5 -1
  180. package/es/userCondition/index.js +37 -21
  181. package/es/userCondition/styles/conditionTypeList.less +4 -2
  182. package/es/userCondition/styles/relationLabel.less +1 -1
  183. package/es/userCondition/types.d.ts +5 -2
  184. package/es/userCondition/util.d.ts +4 -0
  185. package/es/userCondition/util.js +4 -2
  186. package/es/userGroup/demo/index.js +2 -9
  187. package/es/userGroup/index.d.ts +4 -1
  188. package/es/userGroup/index.js +63 -15
  189. package/es/userGroup/overlay.js +17 -3
  190. package/es/userGroup/styles/index.less +55 -1
  191. package/es/userGroup/types.d.ts +2 -0
  192. package/es/userGroup/util.d.ts +2 -0
  193. package/es/userGroup/util.js +47 -0
  194. package/es/userGroupHeader/demo/index.js +1 -1
  195. package/es/userGroupHeader/index.d.ts +1 -0
  196. package/es/userGroupHeader/index.js +53 -6
  197. package/es/userGroupHeader/styles/index.less +21 -2
  198. package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
  199. package/es/userTagsSelector/cascaderOverlay.js +9 -2
  200. package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
  201. package/es/userTagsSelector/groups/index.d.ts +4 -1
  202. package/es/userTagsSelector/index.d.ts +4 -1
  203. package/es/userTagsSelector/index.js +32 -2
  204. package/es/userTagsSelector/styles/index.less +10 -0
  205. package/es/userTagsSelector/types.d.ts +2 -0
  206. package/es/userTagsSelector/util.d.ts +1 -0
  207. package/es/userTagsSelector/util.js +20 -0
  208. package/es/utils/ajax.js +77 -27
  209. package/es/utils/eventApi.d.ts +14 -0
  210. package/es/utils/eventApi.js +128 -0
  211. package/es/utils/index.d.ts +2 -1
  212. package/es/utils/index.js +2 -1
  213. package/es/utils/type.d.ts +1 -0
  214. package/es/utils/util.d.ts +1 -0
  215. package/es/utils/util.js +18 -0
  216. package/package.json +2 -2
  217. package/es/assets/colorIcon/iconfont.svg +0 -129
@@ -1,4 +1,4 @@
1
- import { Badge, Checkbox } from 'antd';
1
+ import { Badge, Checkbox, Tooltip } from 'antd';
2
2
  import React from 'react';
3
3
  import { classPrefix } from '.';
4
4
  import IconFont from '../icon/iconFont';
@@ -11,7 +11,8 @@ var EventListOption = function EventListOption(props) {
11
11
  highlight = props.highlight,
12
12
  onClick = props.onClick,
13
13
  data = props.data,
14
- disable = props.disable;
14
+ disable = props.disable,
15
+ showTip = props.showTip;
15
16
  var _onClick = function _onClick(e) {
16
17
  if (disable) return;
17
18
  e.stopPropagation();
@@ -45,7 +46,17 @@ var EventListOption = function EventListOption(props) {
45
46
  className: "".concat(classPrefix, "-like")
46
47
  }, data.marked ? /*#__PURE__*/React.createElement(IconFont, {
47
48
  type: "shoucang"
48
- }) : null), getLabel(label || '')), showCount && /*#__PURE__*/React.createElement(Badge, {
49
+ }) : null), getLabel(label || '')), showTip && /*#__PURE__*/React.createElement(Tooltip, {
50
+ overlayInnerStyle: {
51
+ width: '402px'
52
+ },
53
+ title: "\u4F7F\u7528\u65F6\u957F\u4E3A\u4F1A\u8BDD\u65F6\u957F\uFF0C\u5047\u8BBE\u4E00\u4E2A\u7528\u6237\u4EA7\u751F\u4E86\u591A\u6B21\u4F1A\u8BDD\uFF0C\u7B2C\u4E00\u6B21\u4F1A\u8BDD\u65F6\u957F3\u79D2\uFF0C\u7B2C\u4E8C\u6B2145\u79D2\uFF0C\u90A3\u4E48\u8FD9\u4E2A\u7528\u6237\u4F1A\u5206\u522B\u843D\u52301-5\u79D2\uFF0C31-60\u79D2\u7684\u533A\u95F4\u5185\u3002",
54
+ placement: "right",
55
+ zIndex: 999999
56
+ }, /*#__PURE__*/React.createElement(IconFont, {
57
+ type: "tishi",
58
+ className: "".concat(classPrefix, "-tip")
59
+ })), showCount && /*#__PURE__*/React.createElement(Badge, {
49
60
  count: count
50
61
  }));
51
62
  };
@@ -120,4 +120,8 @@
120
120
  .biz-select-handle-input.active {
121
121
  box-shadow: none;
122
122
  }
123
+
124
+ &-tip {
125
+ float: right;
126
+ }
123
127
  }
@@ -19,6 +19,7 @@ export declare namespace EventSelectTypes {
19
19
  multiple?: boolean;
20
20
  maxEventCount?: number;
21
21
  showBuiltInTarget?: boolean;
22
+ showRetentionTarget?: number;
22
23
  defaultSelectAble?: boolean;
23
24
  selectList?: number[];
24
25
  disableList?: number[];
@@ -115,7 +115,8 @@ var FormulaContainer = /*#__PURE__*/React.forwardRef(function (props, ref) {
115
115
  },
116
116
  onDelete: function onDelete() {
117
117
  return _onDelete(target.id);
118
- }
118
+ },
119
+ onlyAnd: props.onlyAnd
119
120
  });
120
121
  }), targetList.length < 9 ? /*#__PURE__*/React.createElement(Tooltip, {
121
122
  title: "\u6DFB\u52A0\u6307\u6807\u8FD0\u7B97"
@@ -34,7 +34,7 @@
34
34
  &-format {
35
35
  display: flex;
36
36
  align-items: center;
37
- margin-left: 40px;
37
+ margin-left: 10px;
38
38
  & > span {
39
39
  margin-right: 12px;
40
40
  }
@@ -5,6 +5,7 @@ export declare namespace FormulaContainerTypes {
5
5
  formula?: string;
6
6
  resultFormat?: string;
7
7
  onChange?: (formulaList: TargetConditionTypes.Value[], formula: string, result?: string) => void;
8
+ onlyAnd?: boolean;
8
9
  }
9
10
  type Value = null | string | TargetConditionTypes.Value;
10
11
  interface FormulaItemValue {
@@ -166,7 +166,8 @@ var FormulaItem = function FormulaItem(props) {
166
166
  onDelete: props.onDelete,
167
167
  onSubmit: function onSubmit() {
168
168
  return setOpen(false);
169
- }
169
+ },
170
+ onlyAnd: props.onlyAnd
170
171
  });
171
172
  },
172
173
  trigger: ['click'],
@@ -179,7 +180,11 @@ var FormulaItem = function FormulaItem(props) {
179
180
  }, /*#__PURE__*/React.createElement(SelectHandle, {
180
181
  label: label,
181
182
  open: open
182
- }, /*#__PURE__*/React.createElement("span", null, label), haveFilter ? /*#__PURE__*/React.createElement(IconFont, {
183
+ }, !label && /*#__PURE__*/React.createElement("span", {
184
+ style: {
185
+ color: '#9797AE'
186
+ }
187
+ }, label ? label : '请选择'), /*#__PURE__*/React.createElement("span", null, label), haveFilter ? /*#__PURE__*/React.createElement(IconFont, {
183
188
  className: "".concat(classPrefix, "-target-handle-icon"),
184
189
  type: "a-shaixuan2"
185
190
  }) : null, /*#__PURE__*/React.createElement("span", {
@@ -7,4 +7,5 @@ export interface FormulaItemProps {
7
7
  onChange?: (data: FormulaContainerTypes.Item) => void;
8
8
  onDelete?: () => void;
9
9
  onSubmit?: () => void;
10
+ onlyAnd?: boolean;
10
11
  }
@@ -166,7 +166,8 @@ var FormulaPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
166
166
  onBack: function onBack() {
167
167
  return setCurrentValue(null);
168
168
  },
169
- onChange: onChangeFilter
169
+ onChange: onChangeFilter,
170
+ onlyAnd: props.onlyAnd
170
171
  }) : /*#__PURE__*/React.createElement("div", {
171
172
  className: "".concat(classPrefix, "-right")
172
173
  }, type === FormulaTypes.EVENT ? /*#__PURE__*/React.createElement(BizSearchInput, {
@@ -63,14 +63,18 @@ var PanelItem = function PanelItem(props) {
63
63
  }, /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
64
64
  ref: conditionRef,
65
65
  value: filterList,
66
- showHandle: false,
66
+ showHandle: !props.onlyAnd,
67
67
  enableDelete: true,
68
68
  enableEventProp: true,
69
69
  enableEnvProp: true,
70
70
  enableUserProp: true,
71
71
  eventIdList: [props.value.eventId],
72
72
  onChange: setFilterList,
73
+ onlyAnd: props.onlyAnd,
73
74
  onConditionsCount: setCount
74
75
  })));
75
76
  };
77
+ PanelItem.defaultProps = {
78
+ onlyAnd: true
79
+ };
76
80
  export default PanelItem;
@@ -5,11 +5,13 @@ export interface FormulaPanelProps {
5
5
  onChange?: (data?: FormulaContainerTypes.Value) => void;
6
6
  onDelete?: () => void;
7
7
  onSubmit?: () => void;
8
+ onlyAnd?: boolean;
8
9
  }
9
10
  export interface PanelItemProps {
10
11
  value: TargetConditionTypes.Value;
11
12
  onBack?: () => void;
12
13
  onChange?: (dimension: TargetConditionTypes.DimensionValue, filters?: AttrConditionTypes.GroupValue) => void;
14
+ onlyAnd?: boolean;
13
15
  }
14
16
  export declare enum FormulaTypes {
15
17
  EVENT = "event",
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import './styles/index.less';
3
3
  import { BizFormulaTargetTypes } from './types';
4
- declare const BizFormulaTarget: React.FC<BizFormulaTargetTypes.Props>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const BizFormulaTarget: FCWithDefaultProps<BizFormulaTargetTypes.Props>;
5
8
  export default BizFormulaTarget;
@@ -211,7 +211,8 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
211
211
  value: condition.customCondition,
212
212
  formula: condition.formula,
213
213
  resultFormat: condition.resultFormat,
214
- onChange: onChange
214
+ onChange: onChange,
215
+ onlyAnd: props.onlyAnd
215
216
  }));
216
217
  };
217
218
  BizFormulaTarget.defaultProps = {
@@ -6,6 +6,7 @@ export declare namespace BizFormulaTargetTypes {
6
6
  enableDelete?: boolean;
7
7
  onChange?: (data: Value) => void;
8
8
  onDelete?: () => void;
9
+ onlyAnd?: boolean;
9
10
  }
10
11
  interface Value {
11
12
  eventName?: string;
@@ -14,6 +14,7 @@ import { useEffect, useState, useCallback } from 'react';
14
14
  import { ajax } from '../utils';
15
15
  import Apis from '../constants/apis';
16
16
  import convertAttributeData from '../attributeSelector/util';
17
+ import { eventApi } from '../utils';
17
18
  function useBizStore(_ref) {
18
19
  var currentApp = _ref.currentApp;
19
20
  var _useState = useState([]),
@@ -101,15 +102,8 @@ function useBizStore(_ref) {
101
102
  }, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
102
103
  var loadEvents = useCallback(function () {
103
104
  setLoadEvent(true);
104
- ajax('/zg/web/v2/data/queryEventMetasOfGroup', {
105
- method: 'post',
106
- data: {
107
- appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
108
- platform: 0,
109
- isAll: true
110
- }
111
- }).then(function (res) {
112
- setEventGroups(res.data);
105
+ eventApi.fetchAllEvents(currentApp === null || currentApp === void 0 ? void 0 : currentApp.id, 0, false).then(function (eventGroups) {
106
+ setEventGroups(Array.isArray(eventGroups) ? eventGroups : []);
113
107
  setLoadEvent(false);
114
108
  });
115
109
  }, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
@@ -6,5 +6,8 @@ interface Props extends IconFontProps {
6
6
  size?: number;
7
7
  className?: string;
8
8
  }
9
- declare const IconFont: React.FC<Props>;
9
+ type FCWithDefaultProps<P> = React.FC<P> & {
10
+ defaultProps?: Partial<P>;
11
+ };
12
+ declare const IconFont: FCWithDefaultProps<Props>;
10
13
  export default IconFont;
package/es/index.d.ts CHANGED
@@ -48,13 +48,14 @@ import useBizStore from './hooks/useBizStore';
48
48
  import useChanged from './hooks/useChanged';
49
49
  import useSubject from './hooks/useSubject';
50
50
  import BizPlatformSelector from './platformSelector';
51
+ import BizAmountSelector from './amountSelector';
51
52
  import DataSetGroup from './dataSetGroup';
52
53
  import BizDatePickerV2 from './datePickerV2';
53
54
  import SubjectWrapper from './subjectWrapper';
54
55
  import StyleList from './addToPanel/components/styleList';
55
56
  import BizEditText from './layout/optionTitle/components/title';
56
57
  import ValuesList from './attrConditions/components/valuesList';
57
- export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, SubjectWrapper, StyleList, BizEditText, ValuesList, };
58
+ export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, BizAmountSelector, SubjectWrapper, StyleList, BizEditText, ValuesList, };
58
59
  export type { UserGroupTypes } from './userGroup/types';
59
60
  export type { BizProductConditionT } from './productCondition/types';
60
61
  export type { BizSelectTypes } from './select/types';
package/es/index.js CHANGED
@@ -47,10 +47,11 @@ import useBizStore from './hooks/useBizStore';
47
47
  import useChanged from './hooks/useChanged';
48
48
  import useSubject from './hooks/useSubject';
49
49
  import BizPlatformSelector from './platformSelector';
50
+ import BizAmountSelector from './amountSelector';
50
51
  import DataSetGroup from './dataSetGroup';
51
52
  import BizDatePickerV2 from './datePickerV2';
52
53
  import SubjectWrapper from './subjectWrapper';
53
54
  import StyleList from './addToPanel/components/styleList';
54
55
  import BizEditText from './layout/optionTitle/components/title';
55
56
  import ValuesList from './attrConditions/components/valuesList';
56
- export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, SubjectWrapper, StyleList, BizEditText, ValuesList };
57
+ export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, BizAmountSelector, SubjectWrapper, StyleList, BizEditText, ValuesList };
@@ -11,5 +11,8 @@ type AnalysisLayoutProps = {
11
11
  maxWidthOfLeft?: number;
12
12
  onCollapse?: (flag: boolean) => void;
13
13
  };
14
- declare const BizAnalysisLayout: React.FC<AnalysisLayoutProps>;
14
+ type FCWithDefaultProps<P> = React.FC<P> & {
15
+ defaultProps?: Partial<P>;
16
+ };
17
+ declare const BizAnalysisLayout: FCWithDefaultProps<AnalysisLayoutProps>;
15
18
  export default BizAnalysisLayout;
@@ -1,5 +1,8 @@
1
1
  import React from 'react';
2
2
  import { LayoutTypes } from './types';
3
3
  import './index.less';
4
- declare const BizLayout: React.FC<LayoutTypes.Props>;
4
+ type FCWithDefaultProps<P> = React.FC<P> & {
5
+ defaultProps?: Partial<P>;
6
+ };
7
+ declare const BizLayout: FCWithDefaultProps<LayoutTypes.Props>;
5
8
  export default BizLayout;
@@ -1,18 +1,18 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
- .btn-menu {
3
- display: flex;
4
- align-items: center;
5
-
6
- &-btn {
7
- margin-right: 16px;
8
- border-radius: @border-radius-small;
9
- }
10
-
11
- &-divider {
12
- width: 1px;
13
- height: 32px;
14
- margin-right: 32px;
15
- margin-left: 16px;
16
- background-color: #ecedf0;
17
- }
18
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/variable.less';
2
+ .btn-menu {
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ &-btn {
7
+ margin-right: 16px;
8
+ border-radius: @border-radius-small;
9
+ }
10
+
11
+ &-divider {
12
+ width: 1px;
13
+ height: 32px;
14
+ margin-right: 32px;
15
+ margin-left: 16px;
16
+ background-color: #ecedf0;
17
+ }
18
+ }
@@ -5,7 +5,7 @@
5
5
  display: flex;
6
6
  align-items: center;
7
7
  height: 32px;
8
- color: #165dff;
8
+ color: #116acc;
9
9
  cursor: pointer;
10
10
  .tianjia1 {
11
11
  margin-right: 8px;
@@ -68,7 +68,7 @@
68
68
  }
69
69
  }
70
70
  .modules-panel-item:hover {
71
- color: #165dff;
71
+ color: #116acc;
72
72
  background: #e8efff;
73
73
  .gengduocaozuo {
74
74
  display: block;
@@ -78,7 +78,7 @@
78
78
  padding: 0 8px;
79
79
  color: #fff;
80
80
  line-height: 40px;
81
- background: #165dff;
81
+ background: #116acc;
82
82
  .gengduocaozuo {
83
83
  display: block;
84
84
  }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
2
  import './index.less';
3
- import { BizOptionTitleProps } from '../../types';
4
- declare const BizEditText: React.ForwardRefExoticComponent<BizOptionTitleProps.TitleProps & React.RefAttributes<any>>;
3
+ declare const BizEditText: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<any>>;
5
4
  export default BizEditText;
@@ -1,14 +1,22 @@
1
+ var _excluded = ["required", "canEdit"];
1
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
3
  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
4
  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
5
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
6
  function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
7
10
  import { Input, message, Tooltip } from 'antd';
8
11
  import React, { useImperativeHandle, useRef, useState } from 'react';
9
12
  import './index.less';
10
13
  import { IconFont } from '../../../..';
11
- var BizEditText = /*#__PURE__*/React.forwardRef(function (props, ref) {
14
+ var BizEditText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
15
+ var _ref$required = _ref.required,
16
+ required = _ref$required === void 0 ? true : _ref$required,
17
+ _ref$canEdit = _ref.canEdit,
18
+ canEdit = _ref$canEdit === void 0 ? true : _ref$canEdit,
19
+ props = _objectWithoutProperties(_ref, _excluded);
12
20
  var classPrefix = 'biz-edit-text';
13
21
  var inputRef = useRef(null);
14
22
  var _useState = useState(props.value),
@@ -19,7 +27,7 @@ var BizEditText = /*#__PURE__*/React.forwardRef(function (props, ref) {
19
27
  _useState4 = _slicedToArray(_useState3, 2),
20
28
  prevTitle = _useState4[0],
21
29
  setPrevTitle = _useState4[1];
22
- var _useState5 = useState(!props.value && props.canEdit),
30
+ var _useState5 = useState(!props.value && (props === null || props === void 0 ? void 0 : props.canEdit)),
23
31
  _useState6 = _slicedToArray(_useState5, 2),
24
32
  isEdit = _useState6[0],
25
33
  setIsEdit = _useState6[1];
@@ -108,8 +116,4 @@ var BizEditText = /*#__PURE__*/React.forwardRef(function (props, ref) {
108
116
  }
109
117
  }) : null));
110
118
  });
111
- BizEditText.defaultProps = {
112
- required: true,
113
- canEdit: true
114
- };
115
119
  export default BizEditText;
@@ -1,43 +1,43 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
- .biz-edit-text {
3
- display: flex;
4
- align-items: center;
5
- &-input {
6
- position: relative;
7
- width: 350px;
8
- height: 100%;
9
- .ant-input {
10
- background-color: #fff !important;
11
- border-color: #fff;
12
- &:not(.ant-input-status-error):hover {
13
- border-color: @primary-color!important;
14
- }
15
- &:not(.ant-input-status-error):focus {
16
- border-color: @primary-color!important;
17
- }
18
- }
19
- }
20
- &-error-tip {
21
- position: absolute;
22
- top: 100%;
23
- left: 0;
24
- color: @error-color;
25
- line-height: 1.2;
26
- }
27
-
28
- &-content {
29
- display: inline-block;
30
- max-width: 330px;
31
- height: @height-sm;
32
- color: @text-color;
33
- font-weight: bold;
34
- font-size: 16px;
35
- line-height: @height-sm;
36
- .__default-overflow();
37
- }
38
- &-icon {
39
- margin-left: @margin-xs;
40
- color: @primary-color;
41
- cursor: pointer;
42
- }
43
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+ .biz-edit-text {
3
+ display: flex;
4
+ align-items: center;
5
+ &-input {
6
+ position: relative;
7
+ width: 350px;
8
+ height: 100%;
9
+ .ant-input {
10
+ background-color: #fff !important;
11
+ border-color: #fff;
12
+ &:not(.ant-input-status-error):hover {
13
+ border-color: @primary-color!important;
14
+ }
15
+ &:not(.ant-input-status-error):focus {
16
+ border-color: @primary-color!important;
17
+ }
18
+ }
19
+ }
20
+ &-error-tip {
21
+ position: absolute;
22
+ top: 100%;
23
+ left: 0;
24
+ color: @error-color;
25
+ line-height: 1.2;
26
+ }
27
+
28
+ &-content {
29
+ display: inline-block;
30
+ max-width: 330px;
31
+ height: @height-sm;
32
+ color: @text-color;
33
+ font-weight: bold;
34
+ font-size: 16px;
35
+ line-height: @height-sm;
36
+ .__default-overflow();
37
+ }
38
+ &-icon {
39
+ margin-left: @margin-xs;
40
+ color: @primary-color;
41
+ cursor: pointer;
42
+ }
43
+ }
@@ -160,7 +160,7 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
160
160
  },
161
161
  name: saveType === BizOptionTitleProps.OptionTypes.SAVE_AS ? title + '(1)' : title,
162
162
  chartType: ((_props$value$target$p = props.value.target.params) === null || _props$value$target$p === void 0 ? void 0 : _props$value$target$p.chartType) || 'line',
163
- showList: 'fix'
163
+ showList: props.value.target.showList && props.value.target.showList.length > 0 ? 'dynamic' : 'fix'
164
164
  },
165
165
  type: props.value.target.id && saveType === BizOptionTitleProps.OptionTypes.SAVE ? BizOptionTitleProps.OptionTypes.EDIT : BizOptionTitleProps.OptionTypes.CREATE,
166
166
  styleOptions: props.styleOptions,
@@ -1,30 +1,30 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
-
3
- .biz-layout-panel {
4
- width: 100%;
5
- height: 100%;
6
- & > .ant-spin-container {
7
- height: 100%;
8
- }
9
- /*更多按钮*/
10
- &-btn-more {
11
- width: @height-base;
12
- height: @height-base;
13
- color: @text-color-secondary;
14
- font-size: 16px;
15
- line-height: @height-base;
16
- text-align: center;
17
- border-radius: @border-radius-small;
18
- transform: rotate(90deg);
19
-
20
- &:hover {
21
- .__default-hover();
22
- }
23
- }
24
-
25
- &-content {
26
- width: 100%;
27
- height: 100%;
28
- overflow: auto;
29
- }
30
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .biz-layout-panel {
4
+ width: 100%;
5
+ height: 100%;
6
+ & > .ant-spin-container {
7
+ height: 100%;
8
+ }
9
+ /*更多按钮*/
10
+ &-btn-more {
11
+ width: @height-base;
12
+ height: @height-base;
13
+ color: @text-color-secondary;
14
+ font-size: 16px;
15
+ line-height: @height-base;
16
+ text-align: center;
17
+ border-radius: @border-radius-small;
18
+ transform: rotate(90deg);
19
+
20
+ &:hover {
21
+ .__default-hover();
22
+ }
23
+ }
24
+
25
+ &-content {
26
+ width: 100%;
27
+ height: 100%;
28
+ overflow: auto;
29
+ }
30
+ }