@zgfe/business-lib 1.2.66-hxd.2 → 1.2.70-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 (150) hide show
  1. package/README.md +12 -12
  2. package/config.js +41 -41
  3. package/es/AUMFormulaTarget/components/formula/index.less +86 -86
  4. package/es/AUMFormulaTarget/components/panel/index.less +269 -269
  5. package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
  6. package/es/AUMFormulaTarget/styles/index.less +74 -74
  7. package/es/addToPanel/styles/addPanel.less +25 -25
  8. package/es/addToPanel/styles/index.less +17 -17
  9. package/es/addToPanel/styles/style.less +66 -66
  10. package/es/addToScene/styles/index.less +30 -30
  11. package/es/assets/colorIcon/demo.css +539 -539
  12. package/es/assets/colorIcon/demo_index.html +1454 -1454
  13. package/es/assets/colorIcon/iconfont.css +236 -236
  14. package/es/assets/colorIcon/iconfont.json +394 -394
  15. package/es/assets/colorIcon/iconfont.svg +129 -129
  16. package/es/assets/iconfont/demo.css +539 -539
  17. package/es/assets/iconfont/demo_index.html +5593 -5363
  18. package/es/assets/iconfont/iconfont.css +955 -915
  19. package/es/assets/iconfont/iconfont.js +8 -8
  20. package/es/assets/iconfont/iconfont.json +1654 -1584
  21. package/es/assets/iconfont/iconfont.ttf +0 -0
  22. package/es/assets/iconfont/iconfont.woff +0 -0
  23. package/es/assets/iconfont/iconfont.woff2 +0 -0
  24. package/es/assets/styles/chunks.less +183 -183
  25. package/es/assets/styles/inner.less +3 -3
  26. package/es/assets/styles/resetAntd.less +564 -551
  27. package/es/assets/styles/variable.less +21 -21
  28. package/es/attrCondition/styles/index.less +101 -101
  29. package/es/attrConditions/components/operateList.js +4 -4
  30. package/es/attrConditions/components/valuesList.js +1 -1
  31. package/es/attrConditions/styles/group.less +49 -49
  32. package/es/attrConditions/styles/index.less +151 -151
  33. package/es/attributeSelector/index.js +3 -1
  34. package/es/attributeSelector/listPanel.js +2 -2
  35. package/es/attributeSelector/styles/index.less +141 -141
  36. package/es/attributeSelector/types.d.ts +1 -0
  37. package/es/attributeSelector/util.js +1 -0
  38. package/es/chart/demo/data/data7.d.ts +54 -0
  39. package/es/chart/demo/data/data7.js +1527 -0
  40. package/es/chart/demo/stack.d.ts +3 -0
  41. package/es/chart/demo/stack.js +31 -0
  42. package/es/chart/index.js +16 -6
  43. package/es/chart/styles/index.less +113 -113
  44. package/es/chart/types.d.ts +4 -1
  45. package/es/chart/util/chartOptionConfig.d.ts +4 -3
  46. package/es/chart/util/chartOptionConfig.js +84 -4
  47. package/es/chart/util/data/china.js +17 -17
  48. package/es/chart/util/formatData.d.ts +1 -0
  49. package/es/chart/util/formatData.js +13 -0
  50. package/es/cycleTime/index.js +1 -1
  51. package/es/cycleTime/styles/index.less +24 -24
  52. package/es/cycleTime/styles/month.less +95 -95
  53. package/es/dataSetGroup/styles/index.less +146 -146
  54. package/es/datePicker/index.js +6 -6
  55. package/es/datePicker/styles/index.less +53 -53
  56. package/es/datePickerV2/index.js +6 -3
  57. package/es/datePickerV2/popoverContent.d.ts +1 -0
  58. package/es/datePickerV2/popoverContent.js +3 -1
  59. package/es/datePickerV2/shortcut.d.ts +2 -0
  60. package/es/datePickerV2/shortcut.js +4 -3
  61. package/es/datePickerV2/styles/index.less +194 -194
  62. package/es/datePickerV2/types.d.ts +2 -0
  63. package/es/datePickerV2/utils.d.ts +1 -1
  64. package/es/datePickerV2/utils.js +5 -5
  65. package/es/demoWrapper/index.less +3 -3
  66. package/es/dialog/styles/index.less +22 -22
  67. package/es/dnd/styles/index.less +19 -19
  68. package/es/eventSelector/styles/index.less +123 -123
  69. package/es/formulaTarget/components/formula/index.less +76 -76
  70. package/es/formulaTarget/components/panel/index.less +139 -139
  71. package/es/formulaTarget/components/symbol/index.less +49 -49
  72. package/es/formulaTarget/styles/index.less +74 -74
  73. package/es/hooks/types/subject.d.ts +14 -14
  74. package/es/hooks/useBizStore.js +5 -2
  75. package/es/icon/demo/list.less +32 -32
  76. package/es/index.d.ts +4 -1
  77. package/es/index.js +4 -1
  78. package/es/layout/analysisLayout/demo/index.less +12 -12
  79. package/es/layout/analysisLayout/index.less +118 -118
  80. package/es/layout/columnLayout/demo/index.less +15 -15
  81. package/es/layout/columnLayout/index.less +81 -81
  82. package/es/layout/detail/index.less +27 -27
  83. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  84. package/es/layout/optionTitle/demo/index.less +12 -12
  85. package/es/loading/styles/index.less +20 -20
  86. package/es/loginForm/index.less +7 -7
  87. package/es/platformSelector/styles/index.less +26 -26
  88. package/es/productCondition/conditions/order/runPeriodCondition.js +1 -1
  89. package/es/productCondition/conditions/periodCondition.js +1 -1
  90. package/es/productCondition/conditions/runTimesCondition.js +1 -1
  91. package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
  92. package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
  93. package/es/productCondition/conditions/styles/eventCondition.less +51 -51
  94. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  95. package/es/productCondition/conditions/styles/propCondition.less +43 -43
  96. package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
  97. package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
  98. package/es/productCondition/conditions/styles/textDesc.less +17 -17
  99. package/es/productCondition/styles/conditionTypeList.less +30 -30
  100. package/es/productCondition/styles/conditionWrap.less +18 -18
  101. package/es/productCondition/styles/index.less +33 -33
  102. package/es/productCondition/styles/orConditions.less +34 -34
  103. package/es/productCondition/styles/relationLabel.less +19 -19
  104. package/es/quickDatePicker/styles/index.less +138 -138
  105. package/es/select/index.js +9 -1
  106. package/es/select/styles/handle.less +193 -193
  107. package/es/select/styles/index.less +129 -129
  108. package/es/select/types.d.ts +3 -2
  109. package/es/socket/demo/index.less +27 -27
  110. package/es/subjectWrapper/demo/index.d.ts +3 -0
  111. package/es/subjectWrapper/demo/index.js +28 -0
  112. package/es/subjectWrapper/index.d.ts +5 -0
  113. package/es/subjectWrapper/index.js +98 -0
  114. package/es/subjectWrapper/index.less +12 -0
  115. package/es/subjectWrapper/types.d.ts +14 -0
  116. package/es/subjectWrapper/types.js +4 -0
  117. package/es/table/styles/index.less +5 -5
  118. package/es/targetConditionGroup/demo/styles/index.less +29 -29
  119. package/es/targetConditionGroup/styles/index.less +53 -53
  120. package/es/targetSelector/styles/index.less +110 -110
  121. package/es/userCondition/conditions/cdpCshCondition.js +0 -1
  122. package/es/userCondition/conditions/order/runPeriodCondition.js +1 -1
  123. package/es/userCondition/conditions/periodCondition.js +1 -1
  124. package/es/userCondition/conditions/runTimesCondition.js +1 -1
  125. package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
  126. package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
  127. package/es/userCondition/conditions/styles/eventCondition.less +57 -57
  128. package/es/userCondition/conditions/styles/periodCondition.less +26 -26
  129. package/es/userCondition/conditions/styles/propCondition.less +43 -43
  130. package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
  131. package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
  132. package/es/userCondition/conditions/styles/textDesc.less +17 -17
  133. package/es/userCondition/styles/conditionTypeList.less +30 -30
  134. package/es/userCondition/styles/conditionWrap.less +18 -18
  135. package/es/userCondition/styles/index.less +33 -33
  136. package/es/userCondition/styles/orConditions.less +34 -34
  137. package/es/userCondition/styles/relationLabel.less +19 -19
  138. package/es/userGroup/index.js +2 -2
  139. package/es/userGroup/styles/index.less +145 -145
  140. package/es/userGroupHeader/demo/index.js +1 -1
  141. package/es/userGroupHeader/styles/index.less +31 -31
  142. package/es/userTagsSelector/components/search/index.less +6 -6
  143. package/es/userTagsSelector/components/tagList/index.less +13 -13
  144. package/es/userTagsSelector/groups/styles/option.less +55 -55
  145. package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
  146. package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
  147. package/es/userTagsSelector/styles/index.less +10 -10
  148. package/es/utils/util.d.ts +3 -0
  149. package/es/utils/util.js +10 -0
  150. package/package.json +62 -62
@@ -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) {
@@ -1,141 +1,141 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-attr-select {
4
- &-handle {
5
- display: flex;
6
- flex-direction: row;
7
- align-items: center;
8
- width: fit-content;
9
- min-width: 208px;
10
- .__select-handle();
11
- &.error {
12
- border-color: @error-color;
13
- &.focus {
14
- box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2);
15
- }
16
- }
17
-
18
- &:hover {
19
- .biz-target-select-option-icon {
20
- display: flex;
21
- align-items: center;
22
- justify-content: center;
23
- }
24
- }
25
-
26
- .biz-select-handle-input {
27
- border: none;
28
- &.middle {
29
- height: 32px;
30
- line-height: 32px;
31
- }
32
- }
33
- .biz-select-handle-content-label {
34
- max-width: 450px;
35
- }
36
- }
37
-
38
- &-drowdown {
39
- .__select-panel();
40
-
41
- &.nodata {
42
- .__select-nodata();
43
- }
44
- }
45
-
46
- &-anchor-panel {
47
- max-width: 496px;
48
- padding: 12px 0;
49
-
50
- .ant-anchor {
51
- display: flex;
52
- flex-direction: row;
53
-
54
- .ant-anchor-ink::before {
55
- width: 0;
56
- }
57
-
58
- .ant-anchor-link {
59
- padding: 0;
60
-
61
- &:last-of-type .ant-btn {
62
- margin-right: 0;
63
- }
64
- }
65
-
66
- .ant-btn {
67
- margin-right: 8px;
68
- }
69
-
70
- .ant-anchor-link-active .ant-btn {
71
- &,
72
- &:focus {
73
- .__default-hover();
74
- }
75
- }
76
-
77
- .ant-btn:focus {
78
- color: @text-color;
79
- border-color: @border-color-base;
80
- }
81
- }
82
- }
83
-
84
- &-container {
85
- max-height: 224px;
86
- overflow-x: hidden;
87
- overflow-y: auto;
88
- }
89
-
90
- &-nodata {
91
- .__select-nodata();
92
- }
93
-
94
- &-group {
95
- position: relative;
96
- height: 32px;
97
- padding: 0 @padding-sm;
98
- color: @text-color-secondary;
99
- line-height: 32px;
100
-
101
- &::before {
102
- position: absolute;
103
- top: 9px;
104
- left: 5px;
105
- width: 3px;
106
- height: 14px;
107
- background-color: @primary-color;
108
- border-radius: 10px;
109
- content: '';
110
- }
111
-
112
- & > span {
113
- position: relative;
114
- display: inline-block;
115
- max-width: 225px;
116
- padding-right: @padding-xss;
117
- background: #fff;
118
- .__default-overflow();
119
- }
120
- }
121
-
122
- &-split {
123
- position: absolute;
124
- top: 18px;
125
- width: 100%;
126
- height: 0;
127
- border-bottom: 1px solid @border-color-base;
128
- }
129
-
130
- &-option {
131
- .__select-option();
132
-
133
- &:not(.active, :hover, .disabled) .biz-attr-select-highlight {
134
- color: @primary-color;
135
- }
136
- }
137
-
138
- &-option-icon {
139
- margin-right: @margin-xs;
140
- }
141
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-attr-select {
4
+ &-handle {
5
+ display: flex;
6
+ flex-direction: row;
7
+ align-items: center;
8
+ width: fit-content;
9
+ min-width: 208px;
10
+ .__select-handle();
11
+ &.error {
12
+ border-color: @error-color;
13
+ &.focus {
14
+ box-shadow: 0 0 0 2px rgba(251, 85, 71, 0.2);
15
+ }
16
+ }
17
+
18
+ &:hover {
19
+ .biz-target-select-option-icon {
20
+ display: flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ }
24
+ }
25
+
26
+ .biz-select-handle-input {
27
+ border: none;
28
+ &.middle {
29
+ height: 32px;
30
+ line-height: 32px;
31
+ }
32
+ }
33
+ .biz-select-handle-content-label {
34
+ max-width: 450px;
35
+ }
36
+ }
37
+
38
+ &-drowdown {
39
+ .__select-panel();
40
+
41
+ &.nodata {
42
+ .__select-nodata();
43
+ }
44
+ }
45
+
46
+ &-anchor-panel {
47
+ max-width: 496px;
48
+ padding: 12px 0;
49
+
50
+ .ant-anchor {
51
+ display: flex;
52
+ flex-direction: row;
53
+
54
+ .ant-anchor-ink::before {
55
+ width: 0;
56
+ }
57
+
58
+ .ant-anchor-link {
59
+ padding: 0;
60
+
61
+ &:last-of-type .ant-btn {
62
+ margin-right: 0;
63
+ }
64
+ }
65
+
66
+ .ant-btn {
67
+ margin-right: 8px;
68
+ }
69
+
70
+ .ant-anchor-link-active .ant-btn {
71
+ &,
72
+ &:focus {
73
+ .__default-hover();
74
+ }
75
+ }
76
+
77
+ .ant-btn:focus {
78
+ color: @text-color;
79
+ border-color: @border-color-base;
80
+ }
81
+ }
82
+ }
83
+
84
+ &-container {
85
+ max-height: 224px;
86
+ overflow-x: hidden;
87
+ overflow-y: auto;
88
+ }
89
+
90
+ &-nodata {
91
+ .__select-nodata();
92
+ }
93
+
94
+ &-group {
95
+ position: relative;
96
+ height: 32px;
97
+ padding: 0 @padding-sm;
98
+ color: @text-color-secondary;
99
+ line-height: 32px;
100
+
101
+ &::before {
102
+ position: absolute;
103
+ top: 9px;
104
+ left: 5px;
105
+ width: 3px;
106
+ height: 14px;
107
+ background-color: @primary-color;
108
+ border-radius: 10px;
109
+ content: '';
110
+ }
111
+
112
+ & > span {
113
+ position: relative;
114
+ display: inline-block;
115
+ max-width: 225px;
116
+ padding-right: @padding-xss;
117
+ background: #fff;
118
+ .__default-overflow();
119
+ }
120
+ }
121
+
122
+ &-split {
123
+ position: absolute;
124
+ top: 18px;
125
+ width: 100%;
126
+ height: 0;
127
+ border-bottom: 1px solid @border-color-base;
128
+ }
129
+
130
+ &-option {
131
+ .__select-option();
132
+
133
+ &:not(.active, :hover, .disabled) .biz-attr-select-highlight {
134
+ color: @primary-color;
135
+ }
136
+ }
137
+
138
+ &-option-icon {
139
+ margin-right: @margin-xs;
140
+ }
141
+ }
@@ -96,6 +96,7 @@ export declare namespace AttributeSelect {
96
96
  size?: SizeType;
97
97
  status?: string;
98
98
  extra?: AttributeExtra[];
99
+ extraUser?: ExtraProp[];
99
100
  isNumber?: Boolean;
100
101
  isStrNum?: Boolean;
101
102
  isString?: Boolean;
@@ -115,6 +115,7 @@ export function getIcon(name) {
115
115
  device_brand: 'overall',
116
116
  device_model: 'overall',
117
117
  event_duration: 'time',
118
+ userCount: 'web',
118
119
  first_visit_time: 'time',
119
120
  last_visit_time: 'time',
120
121
  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[];