@zgfe/business-lib 1.2.66-hxd.2 → 1.2.70-hxd.10

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 (70) hide show
  1. package/README.md +1 -1
  2. package/es/assets/iconfont/demo_index.html +348 -3
  3. package/es/assets/iconfont/iconfont.css +63 -3
  4. package/es/assets/iconfont/iconfont.js +8 -8
  5. package/es/assets/iconfont/iconfont.json +105 -0
  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 +20 -7
  10. package/es/attrCondition/useAttrCondition.js +4 -1
  11. package/es/attrConditions/components/operateList.js +4 -4
  12. package/es/attrConditions/components/valuesList.js +1 -1
  13. package/es/attrConditions/types.d.ts +1 -0
  14. package/es/attributeSelector/index.js +3 -1
  15. package/es/attributeSelector/listPanel.js +3 -3
  16. package/es/attributeSelector/types.d.ts +2 -0
  17. package/es/attributeSelector/util.js +4 -0
  18. package/es/chart/demo/data/data7.d.ts +54 -0
  19. package/es/chart/demo/data/data7.js +1527 -0
  20. package/es/chart/demo/stack.d.ts +3 -0
  21. package/es/chart/demo/stack.js +31 -0
  22. package/es/chart/index.js +16 -6
  23. package/es/chart/types.d.ts +4 -1
  24. package/es/chart/util/chartOptionConfig.d.ts +4 -3
  25. package/es/chart/util/chartOptionConfig.js +84 -4
  26. package/es/chart/util/formatData.d.ts +1 -0
  27. package/es/chart/util/formatData.js +13 -0
  28. package/es/cycleTime/index.js +1 -1
  29. package/es/datePicker/index.js +6 -6
  30. package/es/datePickerV2/index.js +6 -3
  31. package/es/datePickerV2/popoverContent.d.ts +1 -0
  32. package/es/datePickerV2/popoverContent.js +3 -1
  33. package/es/datePickerV2/shortcut.d.ts +2 -0
  34. package/es/datePickerV2/shortcut.js +4 -3
  35. package/es/datePickerV2/types.d.ts +2 -0
  36. package/es/datePickerV2/utils.d.ts +1 -1
  37. package/es/datePickerV2/utils.js +5 -5
  38. package/es/dnd/demo/styles/index.less +34 -34
  39. package/es/eventSelector/listPanel.js +1 -1
  40. package/es/hooks/useBizStore.js +5 -2
  41. package/es/index.d.ts +4 -1
  42. package/es/index.js +4 -1
  43. package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
  44. package/es/layout/optionTitle/components/title/index.less +43 -43
  45. package/es/layout/optionTitle/styles/index.less +30 -30
  46. package/es/layout/optionTitle/styles/layout.less +90 -90
  47. package/es/layout/optionTitle/styles/search.less +27 -27
  48. package/es/productCondition/conditions/order/runPeriodCondition.js +1 -1
  49. package/es/productCondition/conditions/periodCondition.js +1 -1
  50. package/es/productCondition/conditions/runTimesCondition.js +1 -1
  51. package/es/select/index.js +9 -1
  52. package/es/select/types.d.ts +3 -2
  53. package/es/subjectWrapper/demo/index.d.ts +3 -0
  54. package/es/subjectWrapper/demo/index.js +28 -0
  55. package/es/subjectWrapper/index.d.ts +5 -0
  56. package/es/subjectWrapper/index.js +98 -0
  57. package/es/subjectWrapper/index.less +12 -0
  58. package/es/subjectWrapper/types.d.ts +14 -0
  59. package/es/subjectWrapper/types.js +4 -0
  60. package/es/userCondition/conditions/cdpCshCondition.js +0 -1
  61. package/es/userCondition/conditions/order/runPeriodCondition.js +1 -1
  62. package/es/userCondition/conditions/periodCondition.js +1 -1
  63. package/es/userCondition/conditions/runTimesCondition.js +1 -1
  64. package/es/userGroup/index.js +2 -2
  65. package/es/userGroupHeader/demo/index.js +1 -1
  66. package/es/utils/ajax.js +15 -2
  67. package/es/utils/type.d.ts +1 -0
  68. package/es/utils/util.d.ts +3 -0
  69. package/es/utils/util.js +10 -0
  70. package/package.json +62 -62
@@ -5,6 +5,111 @@
5
5
  "css_prefix_text": "",
6
6
  "description": "诸葛业务平台",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "42855475",
10
+ "name": "quxiaoquanping 1",
11
+ "font_class": "a-quxiaoquanping1",
12
+ "unicode": "e658",
13
+ "unicode_decimal": 58968
14
+ },
15
+ {
16
+ "icon_id": "42827457",
17
+ "name": "二维码",
18
+ "font_class": "erweima",
19
+ "unicode": "e7dd",
20
+ "unicode_decimal": 59357
21
+ },
22
+ {
23
+ "icon_id": "42825294",
24
+ "name": "手机",
25
+ "font_class": "shouji",
26
+ "unicode": "e7db",
27
+ "unicode_decimal": 59355
28
+ },
29
+ {
30
+ "icon_id": "42825293",
31
+ "name": "切换横屏",
32
+ "font_class": "qiehuanhengping",
33
+ "unicode": "e7dc",
34
+ "unicode_decimal": 59356
35
+ },
36
+ {
37
+ "icon_id": "42735941",
38
+ "name": "用户人数刷新",
39
+ "font_class": "yonghurenshushuaxin",
40
+ "unicode": "e657",
41
+ "unicode_decimal": 58967
42
+ },
43
+ {
44
+ "icon_id": "42421332",
45
+ "name": "分享",
46
+ "font_class": "fenxiang",
47
+ "unicode": "e656",
48
+ "unicode_decimal": 58966
49
+ },
50
+ {
51
+ "icon_id": "42402282",
52
+ "name": "icon 注意",
53
+ "font_class": "a-iconzhuyi",
54
+ "unicode": "e655",
55
+ "unicode_decimal": 58965
56
+ },
57
+ {
58
+ "icon_id": "42390038",
59
+ "name": "姓名排序A-Z",
60
+ "font_class": "xingmingpaixuA-Z",
61
+ "unicode": "e7d9",
62
+ "unicode_decimal": 59353
63
+ },
64
+ {
65
+ "icon_id": "42390037",
66
+ "name": "姓名排序Z-A",
67
+ "font_class": "xingmingpaixuZ-A",
68
+ "unicode": "e7da",
69
+ "unicode_decimal": 59354
70
+ },
71
+ {
72
+ "icon_id": "42372608",
73
+ "name": "属性分析",
74
+ "font_class": "shuxingfenxi",
75
+ "unicode": "e654",
76
+ "unicode_decimal": 58964
77
+ },
78
+ {
79
+ "icon_id": "42169337",
80
+ "name": "放大镜",
81
+ "font_class": "fangdajing",
82
+ "unicode": "e652",
83
+ "unicode_decimal": 58962
84
+ },
85
+ {
86
+ "icon_id": "42169336",
87
+ "name": "缩小",
88
+ "font_class": "suoxiao1",
89
+ "unicode": "e653",
90
+ "unicode_decimal": 58963
91
+ },
92
+ {
93
+ "icon_id": "42132750",
94
+ "name": "关系图",
95
+ "font_class": "a-node-tree2",
96
+ "unicode": "e650",
97
+ "unicode_decimal": 58960
98
+ },
99
+ {
100
+ "icon_id": "42132749",
101
+ "name": "表格模式",
102
+ "font_class": "a-table-view1",
103
+ "unicode": "e651",
104
+ "unicode_decimal": 58961
105
+ },
106
+ {
107
+ "icon_id": "41866164",
108
+ "name": "提交",
109
+ "font_class": "tijiao",
110
+ "unicode": "e7d8",
111
+ "unicode_decimal": 59352
112
+ },
8
113
  {
9
114
  "icon_id": "41736285",
10
115
  "name": "更多",
Binary file
Binary file
Binary file
@@ -12,6 +12,14 @@
12
12
  background-color: @background-color-base!important;
13
13
  }
14
14
 
15
+ > .ant-input:hover {
16
+ border-color: #165dff00 !important;
17
+ }
18
+
19
+ > .ant-input:focus {
20
+ border-color: #165dff00 !important;
21
+ }
22
+
15
23
  &:hover {
16
24
  border-color: @primary-color!important;
17
25
  }
@@ -46,15 +54,16 @@
46
54
  // 输入框
47
55
  .ant-input {
48
56
  background-color: @background-color-base!important;
57
+ border: 1px solid #ecedf000 !important;
49
58
  // border-color: @background-color-base!important;
50
59
  border-radius: @border-radius-small!important;
51
60
  &:hover {
52
- border-color: @primary-color;
61
+ border-color: @primary-color !important;
53
62
  }
54
63
  &:focus,
55
64
  &-focused {
56
65
  background-color: #fff !important;
57
- border-color: @primary-color;
66
+ border-color: @primary-color !important;
58
67
  box-shadow: 0 0 0 4px @custom-focus !important;
59
68
  }
60
69
  &.ant-input-status-error {
@@ -62,11 +71,16 @@
62
71
  &:focus,
63
72
  &-focused {
64
73
  &:not(.ant-input-disable):not(.ant-input-borderless) {
65
- box-shadow: 0 0 0 4px rgba(#ff8170, 0.2) !important;
74
+ box-shadow: 0 0 0 4px rgba(#ff8170, 0) !important;
66
75
  }
67
76
  }
68
77
  }
69
78
  }
79
+ .ant-input[disabled] {
80
+ color: rgba(2, 20, 41, 1) !important;
81
+ background-color: #f2f3f4 !important;
82
+ border-color: #ecedf000 !important;
83
+ }
70
84
 
71
85
  .ant-input-group-addon {
72
86
  color: @text-color-secondary!important;
@@ -519,24 +533,23 @@
519
533
  }
520
534
 
521
535
  .ant-btn-text {
522
- background-color: @background-color-gray!important;
536
+ background-color: none !important;
523
537
  border: none !important;
524
538
 
525
539
  &:hover {
526
540
  color: @text-color!important;
527
- background-color: @btn-text-hover-bg!important;
541
+ background-color: none !important;
528
542
  }
529
543
 
530
544
  &:focus {
531
545
  color: @text-color!important;
532
- background-color: #94a6ce !important;
546
+ background-color: none !important;
533
547
  }
534
548
  }
535
549
  .ant-form-item-explain-error {
536
550
  color: @error-color!important;
537
551
  }
538
552
 
539
- //dropdown
540
553
  .ant-dropdown,
541
554
  .ant-picker-dropdown,
542
555
  .ant-dropdown-menu-submenu-popup {
@@ -37,6 +37,7 @@ var useAttrCondition = function useAttrCondition(props) {
37
37
  attrData = {
38
38
  id: data.attrId,
39
39
  propCategory: data.propCategory,
40
+ encryptionType: data.encryptionType,
40
41
  type: data.type,
41
42
  key: "".concat(data.propCategory, "-").concat(data.attrId),
42
43
  label: data.attrNameStr || data.label,
@@ -52,6 +53,7 @@ var useAttrCondition = function useAttrCondition(props) {
52
53
  propCategory: data.propCategory,
53
54
  type: data.type,
54
55
  category: data.category,
56
+ encryptionType: data.encryptionType,
55
57
  key: "".concat(data.propCategory, "-").concat(data.attrName, "-").concat(aId),
56
58
  subtype: data.subtype,
57
59
  label: data.attrNameStr || data.label,
@@ -66,7 +68,8 @@ var useAttrCondition = function useAttrCondition(props) {
66
68
  type: data.type,
67
69
  key: "".concat(data.propCategory, "-").concat(data.attrId),
68
70
  label: data.attrNameStr || data.label,
69
- subtype: data.subtype
71
+ subtype: data.subtype,
72
+ encryptionType: data.encryptionType
70
73
  };
71
74
  }
72
75
  }
@@ -35,9 +35,9 @@ var BizOperateList = function BizOperateList(props) {
35
35
  _useState8 = _slicedToArray(_useState7, 2),
36
36
  ready = _useState8[0],
37
37
  setReady = _useState8[1];
38
- var specialOperateHandle = function specialOperateHandle(label) {
39
- var _special = ['平台', '网络', '运营商', '设备型号'];
40
- return label && _special.indexOf(label) !== -1 ? true : false;
38
+ var specialOperateHandle = function specialOperateHandle(name) {
39
+ var _special = ['platform', 'network', 'mccmnc', 'device_model'];
40
+ return name && _special.indexOf(name) !== -1 ? true : false;
41
41
  };
42
42
  useEffect(function () {
43
43
  if (/place/.test(props.defaultValue || '')) {
@@ -63,7 +63,7 @@ var BizOperateList = function BizOperateList(props) {
63
63
  var _props$attr2, _props$attr3;
64
64
  if (((_props$attr2 = props.attr) === null || _props$attr2 === void 0 ? void 0 : _props$attr2.id) == 31415926) {
65
65
  optionData = stringBusinessOperate;
66
- } else if (specialOperateHandle((_props$attr3 = props.attr) === null || _props$attr3 === void 0 ? void 0 : _props$attr3.label)) {
66
+ } else if (specialOperateHandle((_props$attr3 = props.attr) === null || _props$attr3 === void 0 ? void 0 : _props$attr3.name)) {
67
67
  optionData = specialOperate;
68
68
  } else {
69
69
  optionData = stringOperate;
@@ -170,7 +170,7 @@ var ValuesList = function ValuesList(props) {
170
170
  } else {
171
171
  return /*#__PURE__*/React.createElement(Input, {
172
172
  className: "".concat(classPrefix, "-input"),
173
- value: current && current[0] ? current[0] : 30,
173
+ value: current && current[0] ? current[0] : '',
174
174
  placeholder: "\u8BF7\u8F93\u5165\u5C5E\u6027\u503C",
175
175
  type: "number",
176
176
  suffix: "\u5929",
@@ -19,6 +19,7 @@ export declare namespace AttrConditionTypes {
19
19
  attrNameStr?: string;
20
20
  type?: PropType;
21
21
  propCategory?: 'userProp' | 'eventProp' | 'envProp' | string;
22
+ encryptionType?: number;
22
23
  category?: 'fixed' | 'custom';
23
24
  dimensionSub?: string;
24
25
  operator?: OperateTypes;
@@ -23,6 +23,7 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
23
23
  placeholder = props.placeholder,
24
24
  theme = props.theme,
25
25
  extra = props.extra,
26
+ extraUser = props.extraUser,
26
27
  isNumber = props.isNumber,
27
28
  overlayClassName = props.overlayClassName,
28
29
  isStrNum = props.isStrNum,
@@ -73,7 +74,8 @@ var BizAttributeSelector = function BizAttributeSelector(props) {
73
74
  });
74
75
  if (res && param.step !== undefined) res.step = param.step;
75
76
  } else if ((param === null || param === void 0 ? void 0 : param.propCategory) === 'userProp') {
76
- userPropList === null || userPropList === void 0 ? void 0 : userPropList.forEach(function (attr) {
77
+ var _concat;
78
+ (_concat = (extraUser ? extraUser : []).concat(userPropList ? userPropList : [])) === null || _concat === void 0 ? void 0 : _concat.forEach(function (attr) {
77
79
  if (attr.id === param.id && attr.category === param.category && attr.name === (param.name || param.value)) res = attr;
78
80
  });
79
81
  } else {
@@ -24,6 +24,7 @@ var AttrListPanel = function AttrListPanel(props) {
24
24
  eventIdList = props.eventIdList,
25
25
  funnelEventIdList = props.funnelEventIdList,
26
26
  extra = props.extra,
27
+ extraUser = props.extraUser,
27
28
  isNumber = props.isNumber,
28
29
  isStrNum = props.isStrNum,
29
30
  isString = props.isString,
@@ -195,7 +196,7 @@ var AttrListPanel = function AttrListPanel(props) {
195
196
  groupName: "".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027"),
196
197
  key: 'userProps',
197
198
  anchor: anchor.user,
198
- children: userPropList
199
+ children: (extraUser ? extraUser : []).concat(userPropList)
199
200
  });
200
201
  }
201
202
  if (enableEnvProp) {
@@ -210,7 +211,6 @@ var AttrListPanel = function AttrListPanel(props) {
210
211
  setOptionList(list);
211
212
  }, [anchor, eventIdMap, userPropList, eventEnvList, eventIdList, props.showCommonProp]);
212
213
  useEffect(function () {
213
- console.log('currentAttr', props.value);
214
214
  setCurrentAttr(props.value);
215
215
  }, [props.value]);
216
216
  function onClick(option) {
@@ -228,7 +228,7 @@ var AttrListPanel = function AttrListPanel(props) {
228
228
  });
229
229
  var childList = [];
230
230
  group.children.forEach(function (option) {
231
- if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test((option === null || option === void 0 ? void 0 : option.alias) || (option === null || option === void 0 ? void 0 : option.label))) return;
231
+ if (searchValue && !(new RegExp(_.escapeRegExp(searchValue), 'i').test(" ".concat(option === null || option === void 0 ? void 0 : option.alias)) || new RegExp(_.escapeRegExp(searchValue), 'i').test(" ".concat(option === null || option === void 0 ? void 0 : option.label)))) return;
232
232
  var disabled = false;
233
233
  disableItemlist === null || disableItemlist === void 0 ? void 0 : disableItemlist.forEach(function (item) {
234
234
  if (item.key === option.key) disabled = true;
@@ -40,6 +40,7 @@ export interface EventGroup {
40
40
  export interface BasicProp {
41
41
  id?: number;
42
42
  label?: string;
43
+ encryptionType: number;
43
44
  alias?: string;
44
45
  type?: PropType;
45
46
  realTime?: boolean;
@@ -96,6 +97,7 @@ export declare namespace AttributeSelect {
96
97
  size?: SizeType;
97
98
  status?: string;
98
99
  extra?: AttributeExtra[];
100
+ extraUser?: ExtraProp[];
99
101
  isNumber?: Boolean;
100
102
  isStrNum?: Boolean;
101
103
  isString?: Boolean;
@@ -31,6 +31,7 @@ export default function convertAttributeData(store) {
31
31
  propCategory: 'eventProp',
32
32
  type: item.prop_type,
33
33
  realTime: true,
34
+ encryptionType: item.encryption_type,
34
35
  dimensionSub: item.dimension_sub || 'event_attr'
35
36
  };
36
37
  }),
@@ -64,6 +65,7 @@ export default function convertAttributeData(store) {
64
65
  label: prop.text,
65
66
  name: prop.name,
66
67
  propCategory: 'envProp',
68
+ encryptionType: prop.encryption_type,
67
69
  type: prop.type,
68
70
  realTime: true,
69
71
  dimensionSub: prop.dimension_sub || prop.name
@@ -77,6 +79,7 @@ export default function convertAttributeData(store) {
77
79
  category: prop.category,
78
80
  key: "userProp-".concat(prop.name, "-").concat(prop.id || 0),
79
81
  label: prop.text || prop.name,
82
+ encryptionType: prop.encryption_type,
80
83
  name: prop.name,
81
84
  propCategory: 'userProp',
82
85
  type: prop.type,
@@ -115,6 +118,7 @@ export function getIcon(name) {
115
118
  device_brand: 'overall',
116
119
  device_model: 'overall',
117
120
  event_duration: 'time',
121
+ userCount: 'web',
118
122
  first_visit_time: 'time',
119
123
  last_visit_time: 'time',
120
124
  visit_times: 'time',
@@ -0,0 +1,54 @@
1
+ declare const _default: {
2
+ delEventName: null;
3
+ huanbi: never[];
4
+ md5: string;
5
+ numberCard: number;
6
+ series: {
7
+ diyTarget: boolean;
8
+ duration: never[];
9
+ groupId: number;
10
+ index: string;
11
+ names: string[];
12
+ orderNum: null;
13
+ originalNames: never[];
14
+ pNext: never[];
15
+ pTotal: never[];
16
+ proMd5: null;
17
+ resultFormat: null;
18
+ sum: null;
19
+ total: never[];
20
+ values: number[];
21
+ }[];
22
+ table: string;
23
+ tongbi: never[];
24
+ total: never[];
25
+ updateTime: string;
26
+ xAxis: string[];
27
+ yesterDay: never[];
28
+ seriesOriginal: {
29
+ diyTarget: boolean;
30
+ duration: never[];
31
+ groupId: number;
32
+ index: string;
33
+ names: string[];
34
+ orderNum: null;
35
+ originalNames: never[];
36
+ pNext: never[];
37
+ pTotal: never[];
38
+ proMd5: null;
39
+ resultFormat: null;
40
+ sum: null;
41
+ total: never[];
42
+ values: number[];
43
+ }[];
44
+ };
45
+ export default _default;
46
+ export declare const barData: {
47
+ xAxis: string[];
48
+ series: {
49
+ names: string[];
50
+ values: number[];
51
+ orderNum: number;
52
+ }[];
53
+ };
54
+ export declare const showCharts: string[];