@zgfe/business-lib 1.0.26 → 1.0.27-adanalysis.0

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 (83) hide show
  1. package/es/addToPanel/index.js +16 -33
  2. package/es/assets/iconfont/demo_index.html +3 -647
  3. package/es/assets/iconfont/iconfont.css +3 -115
  4. package/es/assets/iconfont/iconfont.js +33 -37
  5. package/es/assets/iconfont/iconfont.json +0 -196
  6. package/es/assets/iconfont/iconfont.ttf +0 -0
  7. package/es/assets/iconfont/iconfont.woff +0 -0
  8. package/es/assets/iconfont/iconfont.woff2 +0 -0
  9. package/es/assets/styles/resetAntd.less +2 -7
  10. package/es/attrConditions/components/stringList.js +1 -1
  11. package/es/attrConditions/components/valuesList.js +5 -7
  12. package/es/attrConditions/group.js +4 -4
  13. package/es/attrConditions/types.d.ts +0 -1
  14. package/es/attributeSelector/styles/index.less +2 -31
  15. package/es/attributeSelector/util.js +1 -9
  16. package/es/chart/demo/bar.js +4 -3
  17. package/es/chart/demo/data/data.d.ts +0 -7
  18. package/es/chart/demo/data/data.js +0 -10
  19. package/es/chart/demo/data/data3.d.ts +2 -0
  20. package/es/chart/demo/data/data3.js +574 -15
  21. package/es/chart/demo/map.js +2 -1
  22. package/es/chart/index.js +2 -2
  23. package/es/chart/util/chartOptionConfig.d.ts +54 -1
  24. package/es/chart/util/chartOptionConfig.js +7 -13
  25. package/es/chart/util/formatData.js +1 -2
  26. package/es/chart/util/formatOption.js +23 -7
  27. package/es/chart/util/mapUtil.d.ts +2 -2
  28. package/es/chart/util/mapUtil.js +75 -59
  29. package/es/cycleTime/index.d.ts +0 -1
  30. package/es/cycleTime/index.js +5 -12
  31. package/es/cycleTime/month.d.ts +0 -1
  32. package/es/cycleTime/month.js +3 -6
  33. package/es/cycleTime/styles/month.less +0 -12
  34. package/es/datePicker/datePicker.js +1 -3
  35. package/es/{cycleTime/demo/disable.d.ts → datePicker/demo/day.d.ts} +1 -0
  36. package/es/datePicker/demo/day.js +49 -0
  37. package/es/datePicker/index.js +5 -3
  38. package/es/datePicker/styles/index.less +2 -1
  39. package/es/datePicker/types.d.ts +2 -0
  40. package/es/datePicker/utils.d.ts +1 -0
  41. package/es/datePicker/utils.js +37 -1
  42. package/es/eventSelector/index.js +2 -2
  43. package/es/eventSelector/listPanel.js +5 -20
  44. package/es/eventSelector/types.d.ts +1 -1
  45. package/es/layout/analysisLayout/demo/index.js +1 -5
  46. package/es/layout/analysisLayout/index.js +5 -5
  47. package/es/layout/analysisLayout/index.less +6 -0
  48. package/es/select/demo/multiple.js +2 -3
  49. package/es/select/handle.js +12 -50
  50. package/es/select/index.js +9 -44
  51. package/es/select/overlay.d.ts +1 -1
  52. package/es/select/overlay.js +5 -4
  53. package/es/select/styles/handle.less +28 -50
  54. package/es/select/types.d.ts +0 -6
  55. package/es/targetConditionGroup/index.js +1 -3
  56. package/es/targetConditionGroup/types.d.ts +0 -1
  57. package/es/targetSelector/index.js +0 -13
  58. package/es/targetSelector/styles/index.less +0 -1
  59. package/es/userCondition/conditions/styles/eventCondition.less +1 -1
  60. package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
  61. package/es/userCondition/conditions/tagsCondition.js +13 -26
  62. package/es/userCondition/conditions/textDesc.js +8 -29
  63. package/es/userCondition/demo/index.js +228 -5
  64. package/es/userCondition/types.d.ts +3 -21
  65. package/es/userCondition/util.d.ts +1 -23
  66. package/es/userCondition/util.js +5 -39
  67. package/es/userTagsSelector/cascaderOverlay.js +42 -132
  68. package/es/userTagsSelector/demo/index.js +5 -12
  69. package/es/userTagsSelector/groups/groupOption.js +2 -3
  70. package/es/userTagsSelector/groups/index.js +11 -18
  71. package/es/userTagsSelector/groups/styles/option.less +1 -6
  72. package/es/userTagsSelector/index.js +3 -17
  73. package/es/userTagsSelector/multipleCheckPanel/checkOption.js +1 -2
  74. package/es/userTagsSelector/multipleCheckPanel/index.js +16 -7
  75. package/es/userTagsSelector/styles/cascaderOverlay.less +4 -9
  76. package/es/userTagsSelector/types.d.ts +10 -1
  77. package/es/userTagsSelector/util.d.ts +1 -1
  78. package/es/userTagsSelector/util.js +2 -6
  79. package/es/utils/ajax.js +1 -5
  80. package/package.json +3 -3
  81. package/es/cycleTime/demo/disable.js +0 -17
  82. package/es/userCondition/demo/mockData.d.ts +0 -85
  83. package/es/userCondition/demo/mockData.js +0 -546
@@ -5,202 +5,6 @@
5
5
  "css_prefix_text": "",
6
6
  "description": "诸葛业务平台",
7
7
  "glyphs": [
8
- {
9
- "icon_id": "31661450",
10
- "name": "下载",
11
- "font_class": "xiazai1",
12
- "unicode": "e7b9",
13
- "unicode_decimal": 59321
14
- },
15
- {
16
- "icon_id": "31659188",
17
- "name": "复制",
18
- "font_class": "fuzhi",
19
- "unicode": "e6d7",
20
- "unicode_decimal": 59095
21
- },
22
- {
23
- "icon_id": "31659190",
24
- "name": "字符串",
25
- "font_class": "zifuchuan",
26
- "unicode": "e6d9",
27
- "unicode_decimal": 59097
28
- },
29
- {
30
- "icon_id": "31659191",
31
- "name": "日期",
32
- "font_class": "riqi",
33
- "unicode": "e6da",
34
- "unicode_decimal": 59098
35
- },
36
- {
37
- "icon_id": "31659192",
38
- "name": "数值",
39
- "font_class": "shuzhi",
40
- "unicode": "e6db",
41
- "unicode_decimal": 59099
42
- },
43
- {
44
- "icon_id": "31623999",
45
- "name": "left",
46
- "font_class": "left",
47
- "unicode": "e6d2",
48
- "unicode_decimal": 59090
49
- },
50
- {
51
- "icon_id": "31624000",
52
- "name": "inner",
53
- "font_class": "inner",
54
- "unicode": "e6d3",
55
- "unicode_decimal": 59091
56
- },
57
- {
58
- "icon_id": "31624006",
59
- "name": "right",
60
- "font_class": "right",
61
- "unicode": "e6d4",
62
- "unicode_decimal": 59092
63
- },
64
- {
65
- "icon_id": "31624012",
66
- "name": "all",
67
- "font_class": "all",
68
- "unicode": "e6d5",
69
- "unicode_decimal": 59093
70
- },
71
- {
72
- "icon_id": "31393133",
73
- "name": "删除桶",
74
- "font_class": "shanchutong",
75
- "unicode": "e6b1",
76
- "unicode_decimal": 59057
77
- },
78
- {
79
- "icon_id": "31393376",
80
- "name": "删除",
81
- "font_class": "shanchu2",
82
- "unicode": "e6b2",
83
- "unicode_decimal": 59058
84
- },
85
- {
86
- "icon_id": "31393404",
87
- "name": "重新加载",
88
- "font_class": "zhongxinjiazai",
89
- "unicode": "e6b3",
90
- "unicode_decimal": 59059
91
- },
92
- {
93
- "icon_id": "31393455",
94
- "name": "调整大小-左右",
95
- "font_class": "tiaozhengdaxiao-zuoyou",
96
- "unicode": "e6b4",
97
- "unicode_decimal": 59060
98
- },
99
- {
100
- "icon_id": "31393456",
101
- "name": "调整大小-上下",
102
- "font_class": "tiaozhengdaxiao-shangxia",
103
- "unicode": "e6b5",
104
- "unicode_decimal": 59061
105
- },
106
- {
107
- "icon_id": "31393505",
108
- "name": "拖拽",
109
- "font_class": "tuozhuai",
110
- "unicode": "e6b6",
111
- "unicode_decimal": 59062
112
- },
113
- {
114
- "icon_id": "31393091",
115
- "name": "更多操作",
116
- "font_class": "gengduocaozuo2",
117
- "unicode": "e6b0",
118
- "unicode_decimal": 59056
119
- },
120
- {
121
- "icon_id": "31393024",
122
- "name": "数据集业务",
123
- "font_class": "shujujiyewu",
124
- "unicode": "e6ad",
125
- "unicode_decimal": 59053
126
- },
127
- {
128
- "icon_id": "31393063",
129
- "name": "重命名",
130
- "font_class": "zhongmingming",
131
- "unicode": "e6ae",
132
- "unicode_decimal": 59054
133
- },
134
- {
135
- "icon_id": "31393075",
136
- "name": "编辑",
137
- "font_class": "bianji1",
138
- "unicode": "e6af",
139
- "unicode_decimal": 59055
140
- },
141
- {
142
- "icon_id": "31393004",
143
- "name": "输出",
144
- "font_class": "shuchu",
145
- "unicode": "e6ac",
146
- "unicode_decimal": 59052
147
- },
148
- {
149
- "icon_id": "31392973",
150
- "name": "数据拆分",
151
- "font_class": "shujuchaifen",
152
- "unicode": "e6a9",
153
- "unicode_decimal": 59049
154
- },
155
- {
156
- "icon_id": "31392994",
157
- "name": "聚合",
158
- "font_class": "juhe",
159
- "unicode": "e6ab",
160
- "unicode_decimal": 59051
161
- },
162
- {
163
- "icon_id": "31392962",
164
- "name": "列转列",
165
- "font_class": "liezhuanlie",
166
- "unicode": "e6a8",
167
- "unicode_decimal": 59048
168
- },
169
- {
170
- "icon_id": "31392944",
171
- "name": "行转列",
172
- "font_class": "hangzhuanlie",
173
- "unicode": "e6a7",
174
- "unicode_decimal": 59047
175
- },
176
- {
177
- "icon_id": "31392910",
178
- "name": "字段设置",
179
- "font_class": "ziduanshezhi",
180
- "unicode": "e6a6",
181
- "unicode_decimal": 59046
182
- },
183
- {
184
- "icon_id": "31392809",
185
- "name": "连接",
186
- "font_class": "lianjie",
187
- "unicode": "e6a4",
188
- "unicode_decimal": 59044
189
- },
190
- {
191
- "icon_id": "31392856",
192
- "name": "合并",
193
- "font_class": "hebing",
194
- "unicode": "e6a5",
195
- "unicode_decimal": 59045
196
- },
197
- {
198
- "icon_id": "31389407",
199
- "name": "全屏展示",
200
- "font_class": "quanpingzhanshi",
201
- "unicode": "e6a3",
202
- "unicode_decimal": 59043
203
- },
204
8
  {
205
9
  "icon_id": "31360676",
206
10
  "name": "收藏",
Binary file
Binary file
Binary file
@@ -5,7 +5,7 @@
5
5
  // 输入框(带icon)
6
6
  .ant-input-affix-wrapper {
7
7
  background-color: @background-color-base!important;
8
- border-color: @background-color-base !important;
8
+ border-color: #fff !important;
9
9
  border-radius: @border-radius-small!important;
10
10
 
11
11
  .ant-input {
@@ -31,10 +31,6 @@
31
31
  }
32
32
  }
33
33
 
34
- .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper,
35
- .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-borderless).ant-input-affix-wrapper:hover {
36
- border-color: @error-color!important;
37
- }
38
34
  // 输入框
39
35
  .ant-input {
40
36
  background-color: @background-color-base!important;
@@ -146,10 +142,9 @@
146
142
  display: none !important;
147
143
  }
148
144
 
149
- &,
150
145
  &.ant-picker-range {
151
146
  background-color: @background-color-base;
152
- border-color: @background-color-base;
147
+ border: none;
153
148
  }
154
149
  }
155
150
 
@@ -176,7 +176,7 @@ var StringList = function StringList(props) {
176
176
  className: "".concat(classPrefix, "-multi-select"),
177
177
  value: current,
178
178
  multiple: true,
179
- enableCreate: false,
179
+ enableCreate: true,
180
180
  theme: props.theme,
181
181
  size: "middle",
182
182
  disable: props.operate === OperateTypes.IsNull || props.operate === OperateTypes.IsNotNull,
@@ -42,8 +42,8 @@ var ValuesList = function ValuesList(props) {
42
42
 
43
43
  var _useState5 = useState(true),
44
44
  _useState6 = _slicedToArray(_useState5, 2),
45
- isFirst = _useState6[0],
46
- setIsFirst = _useState6[1];
45
+ ready = _useState6[0],
46
+ setReady = _useState6[1];
47
47
 
48
48
  useEffect(function () {
49
49
  if (defaultValue) {
@@ -55,18 +55,16 @@ var ValuesList = function ValuesList(props) {
55
55
  }
56
56
  }
57
57
 
58
- setIsFirst(false);
58
+ setReady(false);
59
59
  }, []);
60
60
  useEffect(function () {
61
- if (isFirst) return;
62
-
63
61
  if (operate === OperateTypes.Absolute || operate === OperateTypes.Relative) {
64
62
  var data = operate === OperateTypes.Absolute ? initValue : ['30', '1'];
65
63
  onChange(data);
66
64
  }
67
65
  }, [operate]);
68
66
  useEffect(function () {
69
- if (!isFirst && (attr === null || attr === void 0 ? void 0 : attr.type) !== PropType.DATE) {
67
+ if (!ready && (attr === null || attr === void 0 ? void 0 : attr.type) !== PropType.DATE) {
70
68
  onChange([]);
71
69
  setCurrent([]);
72
70
  }
@@ -117,7 +115,7 @@ var ValuesList = function ValuesList(props) {
117
115
  return current && current > moment().endOf('day');
118
116
  };
119
117
 
120
- if (!attr || !operate || isFirst) {
118
+ if (!attr || !operate || ready) {
121
119
  return /*#__PURE__*/React.createElement(BizSelect, {
122
120
  disable: true,
123
121
  className: "".concat(classPrefix, "-multi-select"),
@@ -53,7 +53,7 @@ var BizConditionGroup = function BizConditionGroup(props, ref) {
53
53
  var data = props.defaultValue || props.value;
54
54
 
55
55
  if (data) {
56
- if (data.relation) setRelation(props.onlyAnd ? 'and' : data.relation);
56
+ if (data.relation) setRelation(data.relation);
57
57
 
58
58
  if (data.conditions) {
59
59
  setConditions(function () {
@@ -77,7 +77,7 @@ var BizConditionGroup = function BizConditionGroup(props, ref) {
77
77
  },
78
78
  setValue: function setValue(data) {
79
79
  if (data) {
80
- if (data.relation) setRelation(props.onlyAnd ? 'and' : data.relation);
80
+ if (data.relation) setRelation(data.relation);
81
81
 
82
82
  if (data.conditions) {
83
83
  setConditions(function () {
@@ -169,8 +169,8 @@ var BizConditionGroup = function BizConditionGroup(props, ref) {
169
169
  className: "".concat(classPrefix, "-group-operate"),
170
170
  onClick: onClickRelation
171
171
  }, /*#__PURE__*/React.createElement("div", {
172
- className: "".concat(classPrefix, "-group-operate-text ").concat(relation === 'and' || props.onlyAnd ? 'active' : '')
173
- }, "\u4E14"), !props.onlyAnd && /*#__PURE__*/React.createElement("div", {
172
+ className: "".concat(classPrefix, "-group-operate-text ").concat(relation === 'and' ? 'active' : '')
173
+ }, "\u4E14"), /*#__PURE__*/React.createElement("div", {
174
174
  className: "".concat(classPrefix, "-group-operate-text ").concat(relation === 'or' ? 'active' : '')
175
175
  }, "\u6216"))), /*#__PURE__*/React.createElement("div", {
176
176
  className: "".concat(classPrefix, "-item-container")
@@ -36,7 +36,6 @@ export declare namespace AttrConditionTypes {
36
36
  interface GroupProp extends BasicAttrTypes {
37
37
  defaultValue?: GroupValue;
38
38
  value?: GroupValue;
39
- onlyAnd?: boolean;
40
39
  onChange?: (value: GroupValue) => void;
41
40
  onConditionsCount?: (value: number) => void;
42
41
  }
@@ -1,18 +1,15 @@
1
1
  @import '../../assets/styles/inner.less';
2
-
3
2
  .biz-attr-select {
4
3
  &-handle {
5
4
  display: flex;
6
5
  flex-direction: row;
7
6
  .__select-handle();
8
-
9
7
  &:hover .biz-attr-select-del-icon {
10
8
  display: flex;
11
9
  align-items: center;
12
10
  justify-content: center;
13
11
  }
14
12
  }
15
-
16
13
  &-del-icon {
17
14
  display: none;
18
15
  flex: none;
@@ -24,69 +21,48 @@
24
21
  .__error-hover();
25
22
  }
26
23
  }
27
-
28
24
  &-drowdown {
29
25
  .__select-panel();
30
-
31
26
  &.nodata {
32
27
  .__select-nodata();
33
28
  }
34
29
  }
35
-
36
30
  &-anchor-panel {
37
31
  padding: 12px 0;
38
-
39
32
  .ant-anchor {
40
33
  display: flex;
41
34
  flex-direction: row;
42
-
43
35
  .ant-anchor-ink::before {
44
36
  width: 0;
45
37
  }
46
-
47
38
  .ant-anchor-link {
48
39
  padding: 0;
49
-
50
40
  &:last-of-type .ant-btn {
51
41
  margin-right: 0;
52
42
  }
53
43
  }
54
-
55
44
  .ant-btn {
56
45
  margin-right: 8px;
57
46
  }
58
-
59
47
  .ant-anchor-link-active .ant-btn {
60
- &,
61
- &:focus {
62
- .__default-hover();
63
- }
64
- }
65
-
66
- .ant-btn:focus {
67
- color: @text-color;
68
- border-color: @border-color-base;
48
+ .__default-hover();
69
49
  }
70
50
  }
71
51
  }
72
-
73
52
  &-container {
74
- max-height: 224px;
53
+ max-height: 400px;
75
54
  overflow-x: hidden;
76
55
  overflow-y: auto;
77
56
  }
78
-
79
57
  &-nodata {
80
58
  .__select-nodata();
81
59
  }
82
-
83
60
  &-group {
84
61
  position: relative;
85
62
  height: 32px;
86
63
  padding: 0 @padding-sm;
87
64
  color: @text-color-secondary;
88
65
  line-height: 32px;
89
-
90
66
  &::before {
91
67
  position: absolute;
92
68
  top: 9px;
@@ -97,7 +73,6 @@
97
73
  border-radius: 10px;
98
74
  content: '';
99
75
  }
100
-
101
76
  & > span {
102
77
  position: relative;
103
78
  display: inline-block;
@@ -107,7 +82,6 @@
107
82
  .__default-overflow();
108
83
  }
109
84
  }
110
-
111
85
  &-split {
112
86
  position: absolute;
113
87
  top: 18px;
@@ -115,15 +89,12 @@
115
89
  height: 0;
116
90
  border-bottom: 1px solid @border-color-base;
117
91
  }
118
-
119
92
  &-option {
120
93
  .__select-option();
121
-
122
94
  &:not(.active, :hover, .disabled) .biz-attr-select-highlight {
123
95
  color: @primary-color;
124
96
  }
125
97
  }
126
-
127
98
  &-option-icon {
128
99
  margin-right: @margin-xs;
129
100
  }
@@ -14,8 +14,6 @@ export default function convertAttributeData(store) {
14
14
  name: group_.groupName,
15
15
  eventList: []
16
16
  };
17
- var list = [];
18
- var markList = [];
19
17
  group_.eventList.forEach(function (e) {
20
18
  if (e.is_delete) return;
21
19
  var event = {
@@ -41,14 +39,8 @@ export default function convertAttributeData(store) {
41
39
  eventHidden: e.event_hidden,
42
40
  marked: Boolean(e.mark_type)
43
41
  };
44
-
45
- if (event.marked) {
46
- markList.push(event);
47
- } else {
48
- list.push(event);
49
- }
42
+ group.eventList.push(event);
50
43
  });
51
- group.eventList = [].concat(markList, list);
52
44
  (_res$eventGroupList = res.eventGroupList) === null || _res$eventGroupList === void 0 ? void 0 : _res$eventGroupList.push(group);
53
45
  });
54
46
  res.envPropList = (_store$envPropList = store.envPropList) === null || _store$envPropList === void 0 ? void 0 : _store$envPropList.map(function (prop) {
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { BizChart } from '@zgfe/business-lib';
3
- import chartData, { barData } from './data/data';
3
+ import chartData from './data/data';
4
4
  export default (function () {
5
5
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizChart, {
6
- data: barData,
6
+ data: chartData,
7
7
  type: "bar",
8
- reverseXAxis: true
8
+ reverseXAxis: true,
9
+ showList: ['付款成功', '搜索商品', '查看商品详情']
9
10
  }), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(BizChart, {
10
11
  data: chartData,
11
12
  type: "bar",
@@ -6,10 +6,3 @@ declare const _default: {
6
6
  }[];
7
7
  };
8
8
  export default _default;
9
- export declare const barData: {
10
- x_axis: string[];
11
- series: {
12
- names: string[];
13
- values: number[];
14
- }[];
15
- };
@@ -25,14 +25,4 @@ export default {
25
25
  names: ['申请退货'],
26
26
  values: [5, 11, 14, 9, 8, 14, 9, 10, 12, 12, 14, 16, 12, 10]
27
27
  }]
28
- };
29
- export var barData = {
30
- x_axis: ['2022-08-23|2022-08-30'],
31
- series: [{
32
- names: ['北京市', '所有用户', '查看商品'],
33
- values: [1560]
34
- }, {
35
- names: ['北京市', '最近7天活跃用户', '查看商品'],
36
- values: [1560]
37
- }]
38
28
  };
@@ -2,7 +2,9 @@ declare const _default: {
2
2
  x_axis: string[];
3
3
  series: {
4
4
  names: string[];
5
+ original_names: string[];
5
6
  values: number[];
7
+ total: never[];
6
8
  }[];
7
9
  };
8
10
  export default _default;