@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.
- package/es/AUMFormulaTarget/components/formula/index.js +6 -4
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +2 -2
- package/es/AUMFormulaTarget/components/panel/index.less +1 -1
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- package/es/AUMFormulaTarget/index.d.ts +4 -1
- package/es/addToPanel/components/radioGroup.d.ts +4 -1
- package/es/addToPanel/components/styleList.d.ts +4 -1
- package/es/addToPanel/index.d.ts +4 -1
- package/es/addToPanel/index.js +1 -1
- package/es/addToScene/index.js +3 -8
- package/es/amountSelector/demo/index.d.ts +3 -0
- package/es/amountSelector/demo/index.js +9 -0
- package/es/amountSelector/index.d.ts +10 -0
- package/es/amountSelector/index.js +21 -0
- package/es/amountSelector/styles/index.less +27 -0
- package/es/amountSelector/types.d.ts +4 -0
- package/es/amountSelector/types.js +1 -0
- package/es/amountSelector/util.d.ts +3 -0
- package/es/amountSelector/util.js +18 -0
- package/es/assets/colorIcon/demo_index.html +1023 -492
- package/es/assets/colorIcon/iconfont.css +203 -110
- package/es/assets/colorIcon/iconfont.js +13 -14
- package/es/assets/colorIcon/iconfont.json +433 -272
- package/es/assets/colorIcon/iconfont.ttf +0 -0
- package/es/assets/colorIcon/iconfont.woff +0 -0
- package/es/assets/colorIcon/iconfont.woff2 +0 -0
- package/es/assets/iconfont/demo.css +539 -539
- package/es/assets/iconfont/demo_index.html +5563 -5708
- package/es/assets/iconfont/iconfont.css +1015 -975
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/resetAntd.less +6 -2
- package/es/assets/styles/variable.less +1 -1
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/group.js +11 -6
- package/es/attrCondition/index.js +11 -6
- package/es/attrCondition/styles/index.less +1 -1
- package/es/attrCondition/useAttrCondition.js +7 -5
- package/es/attrConditions/components/operateList.js +6 -3
- package/es/attrConditions/components/stringList.js +3 -8
- package/es/attrConditions/index.d.ts +4 -1
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/types.d.ts +4 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/index.js +11 -11
- package/es/attributeSelector/listPanel.js +312 -100
- package/es/attributeSelector/types.d.ts +2 -0
- package/es/attributeSelector/util.js +3 -0
- package/es/chart/demo/data/data5 copy.js +2 -2
- package/es/chart/demo/index.js +1 -1
- package/es/chart/demo/line_bar_stack.js +4 -4
- package/es/chart/demo/stack.js +1 -1
- package/es/chart/index.js +10 -12
- package/es/chart/styles/index.less +2 -2
- package/es/chart/util/color.js +1 -1
- package/es/colorIcon/index.js +2 -4
- package/es/constants/apis.d.ts +4 -0
- package/es/constants/apis.js +6 -2
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +2 -0
- package/es/context/index.js +8 -1
- package/es/cycleTime/index.js +6 -8
- package/es/cycleTime/month.js +2 -5
- package/es/dataSetGroup/index.js +0 -1
- package/es/datePicker/index.d.ts +4 -1
- package/es/datePickerV2/demo/index.js +1 -1
- package/es/datePickerV2/index.d.ts +4 -1
- package/es/datePickerV2/index.js +13 -4
- package/es/datePickerV2/popoverContent.js +1 -1
- package/es/datePickerV2/shortcut.js +1 -1
- package/es/datePickerV2/styles/index.less +1 -1
- package/es/datePickerV2/types.d.ts +1 -0
- package/es/datePickerV2/utils.js +8 -2
- package/es/demoWrapper/content.js +9 -10
- package/es/demoWrapper/innerDemo.js +1 -1
- package/es/dialog/index.d.ts +4 -1
- package/es/dnd/demo/index.js +5 -1
- package/es/dnd/demo/styles/index.less +34 -34
- package/es/dnd/index.d.ts +4 -1
- package/es/dnd/item.js +14 -0
- package/es/eventSelector/index.d.ts +4 -1
- package/es/eventSelector/index.js +3 -2
- package/es/eventSelector/listPanel.js +10 -14
- package/es/eventSelector/option.d.ts +1 -0
- package/es/eventSelector/option.js +14 -3
- package/es/eventSelector/styles/index.less +4 -0
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +2 -1
- package/es/formulaTarget/components/formula/index.less +1 -1
- package/es/formulaTarget/components/formula/types.d.ts +1 -0
- package/es/formulaTarget/components/formulaItem/index.js +7 -2
- package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
- package/es/formulaTarget/components/panel/index.js +2 -1
- package/es/formulaTarget/components/panel/item.js +5 -1
- package/es/formulaTarget/components/panel/types.d.ts +2 -0
- package/es/formulaTarget/index.d.ts +4 -1
- package/es/formulaTarget/index.js +2 -1
- package/es/formulaTarget/types.d.ts +1 -0
- package/es/hooks/useBizStore.js +3 -9
- package/es/icon/iconFont.d.ts +4 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/layout/analysisLayout/index.d.ts +4 -1
- package/es/layout/columnLayout/index.d.ts +4 -1
- package/es/layout/optionTitle/components/btnMenu/index.less +18 -18
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
- package/es/layout/optionTitle/components/title/index.d.ts +1 -2
- package/es/layout/optionTitle/components/title/index.js +10 -6
- package/es/layout/optionTitle/components/title/index.less +43 -43
- package/es/layout/optionTitle/index.js +1 -1
- package/es/layout/optionTitle/styles/index.less +30 -30
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/layout/optionTitle/styles/search.less +27 -27
- package/es/platformSelector/styles/index.less +1 -1
- package/es/productCondition/conditionTypeList.d.ts +4 -1
- package/es/productCondition/conditions/cdpCshCondition.js +9 -6
- package/es/productCondition/conditions/constants.d.ts +2 -0
- package/es/productCondition/conditions/constants.js +2 -0
- package/es/productCondition/conditions/order/runPeriodCondition.js +2 -4
- package/es/productCondition/conditions/periodCondition.d.ts +4 -1
- package/es/productCondition/conditions/propCondition.d.ts +4 -1
- package/es/productCondition/conditions/styles/periodCondition.less +1 -1
- package/es/productCondition/index.d.ts +4 -1
- package/es/productCondition/styles/conditionTypeList.less +4 -2
- package/es/productCondition/styles/relationLabel.less +1 -1
- package/es/productCondition/types.d.ts +3 -1
- package/es/productCondition/util.d.ts +4 -0
- package/es/productCondition/util.js +4 -2
- package/es/quickDatePicker/demo/index.js +31 -11
- package/es/quickDatePicker/index.js +122 -23
- package/es/quickDatePicker/styles/index.less +28 -25
- package/es/quickDatePicker/types.d.ts +13 -0
- package/es/quickDatePicker/utils.d.ts +6 -0
- package/es/quickDatePicker/utils.js +54 -1
- package/es/select/demo/index.js +2 -1
- package/es/select/handle.js +2 -9
- package/es/select/index.d.ts +4 -1
- package/es/select/option.js +1 -1
- package/es/select/overlay.js +2 -2
- package/es/select/styles/handle.less +15 -2
- package/es/socket/demo/demo.js +2 -2
- package/es/subjectWrapper/index.js +3 -1
- package/es/table/demo/data/color.js +1 -1
- package/es/table/index.js +3 -30
- package/es/targetConditionGroup/components/targetDimension.js +147 -53
- package/es/targetConditionGroup/demo/group.js +5 -18
- package/es/targetConditionGroup/index.d.ts +4 -1
- package/es/targetConditionGroup/index.js +12 -10
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/editBox.d.ts +1 -0
- package/es/targetSelector/editBox.js +8 -3
- package/es/targetSelector/index.js +2 -1
- package/es/targetSelector/optionIcon.d.ts +4 -1
- package/es/targetSelector/optionIcon.js +3 -0
- package/es/targetSelector/styles/index.less +35 -3
- package/es/userCondition/conditionTypeList.d.ts +4 -1
- package/es/userCondition/conditionTypeList.js +5 -4
- package/es/userCondition/conditions/cdpCondition.js +9 -6
- package/es/userCondition/conditions/cdpCshCondition.js +9 -6
- package/es/userCondition/conditions/constants.d.ts +2 -0
- package/es/userCondition/conditions/constants.js +2 -0
- package/es/userCondition/conditions/dataAttribute.js +11 -7
- package/es/userCondition/conditions/eventCondition.js +16 -24
- package/es/userCondition/conditions/order/runPeriodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.d.ts +4 -1
- package/es/userCondition/conditions/periodCondition.js +19 -11
- package/es/userCondition/conditions/propCondition.js +5 -3
- package/es/userCondition/conditions/styles/eventCondition.less +14 -0
- package/es/userCondition/conditions/styles/periodCondition.less +7 -1
- package/es/userCondition/conditions/styles/textDesc.less +3 -4
- package/es/userCondition/conditions/tagsCondition.js +12 -5
- package/es/userCondition/conditions/textDesc.js +9 -5
- package/es/userCondition/demo/index.js +20 -14
- package/es/userCondition/demo/mockData.d.ts +20 -94
- package/es/userCondition/demo/mockData.js +31 -76
- package/es/userCondition/index.d.ts +5 -1
- package/es/userCondition/index.js +37 -21
- package/es/userCondition/styles/conditionTypeList.less +4 -2
- package/es/userCondition/styles/relationLabel.less +1 -1
- package/es/userCondition/types.d.ts +5 -2
- package/es/userCondition/util.d.ts +4 -0
- package/es/userCondition/util.js +4 -2
- package/es/userGroup/demo/index.js +2 -9
- package/es/userGroup/index.d.ts +4 -1
- package/es/userGroup/index.js +63 -15
- package/es/userGroup/overlay.js +17 -3
- package/es/userGroup/styles/index.less +55 -1
- package/es/userGroup/types.d.ts +2 -0
- package/es/userGroup/util.d.ts +2 -0
- package/es/userGroup/util.js +47 -0
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userGroupHeader/index.d.ts +1 -0
- package/es/userGroupHeader/index.js +53 -6
- package/es/userGroupHeader/styles/index.less +21 -2
- package/es/userTagsSelector/cascaderOverlay.d.ts +4 -1
- package/es/userTagsSelector/cascaderOverlay.js +9 -2
- package/es/userTagsSelector/components/tagList/index.d.ts +4 -1
- package/es/userTagsSelector/groups/index.d.ts +4 -1
- package/es/userTagsSelector/index.d.ts +4 -1
- package/es/userTagsSelector/index.js +32 -2
- package/es/userTagsSelector/styles/index.less +10 -0
- package/es/userTagsSelector/types.d.ts +2 -0
- package/es/userTagsSelector/util.d.ts +1 -0
- package/es/userTagsSelector/util.js +20 -0
- package/es/utils/ajax.js +77 -27
- package/es/utils/eventApi.d.ts +14 -0
- package/es/utils/eventApi.js +128 -0
- package/es/utils/index.d.ts +2 -1
- package/es/utils/index.js +2 -1
- package/es/utils/type.d.ts +1 -0
- package/es/utils/util.d.ts +1 -0
- package/es/utils/util.js +18 -0
- package/package.json +2 -2
- package/es/assets/colorIcon/iconfont.svg +0 -129
package/es/colorIcon/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
var ColorIcon = function ColorIcon(props) {
|
|
3
|
-
var className = props.className,
|
|
3
|
+
var _props$className = props.className,
|
|
4
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
4
5
|
type = props.type;
|
|
5
6
|
return /*#__PURE__*/React.createElement("svg", {
|
|
6
7
|
className: className,
|
|
@@ -13,7 +14,4 @@ var ColorIcon = function ColorIcon(props) {
|
|
|
13
14
|
xlinkHref: "#".concat(type)
|
|
14
15
|
}));
|
|
15
16
|
};
|
|
16
|
-
ColorIcon.defaultProps = {
|
|
17
|
-
className: ''
|
|
18
|
-
};
|
|
19
17
|
export default ColorIcon;
|
package/es/constants/apis.d.ts
CHANGED
|
@@ -29,5 +29,9 @@ declare const Apis: {
|
|
|
29
29
|
queryPlatformList: string;
|
|
30
30
|
queryRelationResult: string;
|
|
31
31
|
queryEventRemoved: string;
|
|
32
|
+
tagsState: string;
|
|
33
|
+
queryEventMetas: string;
|
|
34
|
+
queryEventAttrMetas: string;
|
|
35
|
+
queryEventAttrByAttrId: string;
|
|
32
36
|
};
|
|
33
37
|
export default Apis;
|
package/es/constants/apis.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Apis = {
|
|
2
2
|
querySceneGroup: '/zg/web/v2/scene/queryScenesOfGroup',
|
|
3
3
|
addScene: '/zg/web/v2/scene/addScene',
|
|
4
|
-
esQuery: '/data/queryEsData
|
|
4
|
+
esQuery: '/zg/web/v2/data/queryEsData',
|
|
5
5
|
addPanel: '/zg/web/v2/apppanel/addPanelElement',
|
|
6
6
|
updatePanelTarget: '/zg/web/v2/apppanel/updateElement',
|
|
7
7
|
queryPanelGroup: '/zg/web/v2/apppanel/panels',
|
|
@@ -28,6 +28,10 @@ var Apis = {
|
|
|
28
28
|
queryDatasetTableNames: '/zg/web/cdp/dataset/manager/datasetList',
|
|
29
29
|
queryPlatformList: '/zg/web/v2/data/dynamicPlatformByAppid',
|
|
30
30
|
queryRelationResult: '/zg/web/v2/event/queryRelationResult',
|
|
31
|
-
queryEventRemoved: '/zg/web/v2/event/queryEventRemoved'
|
|
31
|
+
queryEventRemoved: '/zg/web/v2/event/queryEventRemoved',
|
|
32
|
+
tagsState: '/zg/web/v2/label/state',
|
|
33
|
+
queryEventMetas: '/zg/web/v2/data/queryEventMetas',
|
|
34
|
+
queryEventAttrMetas: '/zg/web/v2/data/queryEventAttrMetas',
|
|
35
|
+
queryEventAttrByAttrId: '/zg/web/v2/data/queryEventAttrByAttrId'
|
|
32
36
|
};
|
|
33
37
|
export default Apis;
|
package/es/constants/common.d.ts
CHANGED
|
@@ -9,6 +9,17 @@ export declare const BuiltinIndicators: (type: 'user' | 'custom' | 'product' | u
|
|
|
9
9
|
attrList: never[];
|
|
10
10
|
}[];
|
|
11
11
|
};
|
|
12
|
+
export declare const RetentionTarget: (type: 'user' | 'custom' | 'product' | undefined, showRetentionTarget: number) => {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
eventList: {
|
|
16
|
+
name: string;
|
|
17
|
+
id: number;
|
|
18
|
+
type: string;
|
|
19
|
+
isBuiltIn: boolean;
|
|
20
|
+
attrList: never[];
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
12
23
|
export declare const indicatorList: (currentApp: any) => {
|
|
13
24
|
name: string;
|
|
14
25
|
id: number;
|
package/es/constants/common.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
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
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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; }
|
|
1
7
|
export var BuiltinIndicators = function BuiltinIndicators(type) {
|
|
2
8
|
return {
|
|
3
9
|
id: -2,
|
|
@@ -35,6 +41,31 @@ export var BuiltinIndicators = function BuiltinIndicators(type) {
|
|
|
35
41
|
}]
|
|
36
42
|
};
|
|
37
43
|
};
|
|
44
|
+
export var RetentionTarget = function RetentionTarget(type, showRetentionTarget) {
|
|
45
|
+
return {
|
|
46
|
+
id: -2,
|
|
47
|
+
name: '整体',
|
|
48
|
+
eventList: [{
|
|
49
|
+
name: '任意行为',
|
|
50
|
+
id: -1,
|
|
51
|
+
type: 'any',
|
|
52
|
+
isBuiltIn: true,
|
|
53
|
+
attrList: []
|
|
54
|
+
}].concat(_toConsumableArray(showRetentionTarget === 2 ? [] : [{
|
|
55
|
+
name: "\u65B0\u589E".concat(type != 'user' ? '主体' : '用户'),
|
|
56
|
+
id: -201,
|
|
57
|
+
type: 'add',
|
|
58
|
+
isBuiltIn: true,
|
|
59
|
+
attrList: []
|
|
60
|
+
}, {
|
|
61
|
+
name: "\u6D3B\u8DC3".concat(type != 'user' ? '主体' : '用户'),
|
|
62
|
+
id: -202,
|
|
63
|
+
type: 'active',
|
|
64
|
+
isBuiltIn: true,
|
|
65
|
+
attrList: []
|
|
66
|
+
}]))
|
|
67
|
+
};
|
|
68
|
+
};
|
|
38
69
|
export var indicatorList = function indicatorList(currentApp) {
|
|
39
70
|
return [{
|
|
40
71
|
name: "\u65B0\u589E".concat((currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) != 'user' ? '主体' : '用户'),
|
package/es/context/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ export interface GlobalContextProps {
|
|
|
90
90
|
getMenuRouterByName?: (name: string) => string;
|
|
91
91
|
authority?: any;
|
|
92
92
|
basicConfig?: any;
|
|
93
|
+
customized_version?: string;
|
|
94
|
+
showProdDownload?: Boolean;
|
|
93
95
|
}
|
|
94
96
|
declare const BizGlobalDataContext: import("react").Context<GlobalContextProps>;
|
|
95
97
|
export default BizGlobalDataContext;
|
package/es/context/index.js
CHANGED
|
@@ -17,6 +17,13 @@ export var serviceTypeType;
|
|
|
17
17
|
serviceTypeType[serviceTypeType["IO"] = 1] = "IO";
|
|
18
18
|
serviceTypeType[serviceTypeType["CEP"] = 2] = "CEP";
|
|
19
19
|
})(serviceTypeType || (serviceTypeType = {}));
|
|
20
|
-
var
|
|
20
|
+
var showProdDownloadMethod = function showProdDownloadMethod() {
|
|
21
|
+
var ipList = ['10.82.0.0', '10.82.0.16', '10.64.64.0', '10.64.64.24', '10.64.71.0', '10.64.71.24', '10.64.48.0', '10.64.48.23', '10.64.50.0', '10.64.50.24', '10.64.162.0', '10.64.162.24', '10.64.188.0', '10.64.188.23', '10.64.140.0', '10.64.140.24'];
|
|
22
|
+
var ip = window.location.hostname;
|
|
23
|
+
return !ipList.includes(ip);
|
|
24
|
+
};
|
|
25
|
+
var BizGlobalDataContext = /*#__PURE__*/createContext({
|
|
26
|
+
showProdDownload: showProdDownloadMethod()
|
|
27
|
+
});
|
|
21
28
|
export default BizGlobalDataContext;
|
|
22
29
|
export var BizValidatorContext = /*#__PURE__*/createContext({});
|
package/es/cycleTime/index.js
CHANGED
|
@@ -20,9 +20,12 @@ export var CycleTimeUnit;
|
|
|
20
20
|
CycleTimeUnit[CycleTimeUnit["custom"] = 5] = "custom";
|
|
21
21
|
})(CycleTimeUnit || (CycleTimeUnit = {}));
|
|
22
22
|
var BizCycleTime = function BizCycleTime(props) {
|
|
23
|
-
var multiple = props.multiple,
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
var _props$multiple = props.multiple,
|
|
24
|
+
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
25
|
+
_props$size = props.size,
|
|
26
|
+
size = _props$size === void 0 ? 'middle' : _props$size,
|
|
27
|
+
_props$disable = props.disable,
|
|
28
|
+
disable = _props$disable === void 0 ? false : _props$disable,
|
|
26
29
|
showHour = props.showHour,
|
|
27
30
|
options = props.options,
|
|
28
31
|
minTime = props.minTime,
|
|
@@ -205,9 +208,4 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
205
208
|
disabledDate: unit === null || unit === void 0 ? void 0 : unit.disabledDate
|
|
206
209
|
}));
|
|
207
210
|
};
|
|
208
|
-
BizCycleTime.defaultProps = {
|
|
209
|
-
multiple: false,
|
|
210
|
-
size: 'middle',
|
|
211
|
-
disable: false
|
|
212
|
-
};
|
|
213
211
|
export default BizCycleTime;
|
package/es/cycleTime/month.js
CHANGED
|
@@ -12,7 +12,8 @@ import _ from 'lodash';
|
|
|
12
12
|
import { FormItemInputContext } from 'antd/es/form/context';
|
|
13
13
|
var MonthDay = function MonthDay(props) {
|
|
14
14
|
var classPrefix = 'biz-month-day';
|
|
15
|
-
var disable = props.disable
|
|
15
|
+
var _props$disable = props.disable,
|
|
16
|
+
disable = _props$disable === void 0 ? false : _props$disable;
|
|
16
17
|
var _useState = useState([]),
|
|
17
18
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
19
|
chosenDayList = _useState2[0],
|
|
@@ -110,8 +111,4 @@ var MonthDay = function MonthDay(props) {
|
|
|
110
111
|
type: "xiangxia"
|
|
111
112
|
}))));
|
|
112
113
|
};
|
|
113
|
-
MonthDay.defaultProps = {
|
|
114
|
-
size: 'middle',
|
|
115
|
-
disable: false
|
|
116
|
-
};
|
|
117
114
|
export default MonthDay;
|
package/es/dataSetGroup/index.js
CHANGED
package/es/datePicker/index.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { DatePickerTypes } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const classPrefix = "biz-date-picker-wrap";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizDatePicker: FCWithDefaultProps<DatePickerTypes.Props>;
|
|
6
9
|
export default BizDatePicker;
|
|
@@ -27,7 +27,6 @@ export default (function () {
|
|
|
27
27
|
var handleChange = function handleChange(data) {
|
|
28
28
|
setTime(data);
|
|
29
29
|
};
|
|
30
|
-
console.log(moment().subtract(360, 'days').format('YYYY-MM-DD'));
|
|
31
30
|
function calculateTimeUnits(selectRange, selectRangeUnit, currentType) {
|
|
32
31
|
var duration = moment.duration(1, currentType);
|
|
33
32
|
switch (selectRangeUnit) {
|
|
@@ -60,6 +59,7 @@ export default (function () {
|
|
|
60
59
|
value: time,
|
|
61
60
|
defaultValue: time,
|
|
62
61
|
dateTypeList: [DatePickerTypes.Unit.hour, DatePickerTypes.Unit.day, DatePickerTypes.Unit.week, DatePickerTypes.Unit.month, DatePickerTypes.Unit.quarter, DatePickerTypes.Unit.custom],
|
|
62
|
+
openComparison: true,
|
|
63
63
|
selectRange: 365,
|
|
64
64
|
selectRangeUnit: "days",
|
|
65
65
|
onChange: handleChange
|
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { DatePickerTypes } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const classPrefix = "biz-date-picker-old-wrap";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizDatePicker: FCWithDefaultProps<DatePickerTypes.Props>;
|
|
6
9
|
export default BizDatePicker;
|
package/es/datePickerV2/index.js
CHANGED
|
@@ -40,7 +40,8 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
40
40
|
selectRangeUnit = _ref.selectRangeUnit,
|
|
41
41
|
timeRangeOpen = _ref.timeRangeOpen,
|
|
42
42
|
hiddenUnitType = _ref.hiddenUnitType,
|
|
43
|
-
shortcuts = _ref.shortcuts
|
|
43
|
+
shortcuts = _ref.shortcuts,
|
|
44
|
+
openComparison = _ref.openComparison;
|
|
44
45
|
var _useState = useState(false),
|
|
45
46
|
_useState2 = _slicedToArray(_useState, 2),
|
|
46
47
|
ready = _useState2[0],
|
|
@@ -133,7 +134,7 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
133
134
|
}, [dateRange, currentType, relative, ready]);
|
|
134
135
|
var renderLabel = function renderLabel() {
|
|
135
136
|
var typeList = getTypeList(currentType === null || currentType === void 0 ? void 0 : currentType.value, includeToday);
|
|
136
|
-
if (relative) {
|
|
137
|
+
if (relative && !openComparison) {
|
|
137
138
|
var type = typeList.find(function (item) {
|
|
138
139
|
return item.count == relative[0];
|
|
139
140
|
});
|
|
@@ -141,8 +142,16 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
141
142
|
if ((currentType === null || currentType === void 0 ? void 0 : currentType.value) == DatePickerTypes.Unit.hour) {
|
|
142
143
|
return type.value;
|
|
143
144
|
}
|
|
144
|
-
return '最近' + type.value;
|
|
145
|
+
return type.count == 0 ? '今天' : '最近' + type.value;
|
|
145
146
|
} else {
|
|
147
|
+
if (!includeToday) {
|
|
148
|
+
if ((currentType === null || currentType === void 0 ? void 0 : currentType.value) == DatePickerTypes.Unit.hour) {
|
|
149
|
+
setDateRange(getDateRange(DatePickerTypes.Unit.day, 1, includeToday));
|
|
150
|
+
setRelative([1, 1]);
|
|
151
|
+
return '昨天';
|
|
152
|
+
}
|
|
153
|
+
return '最近' + relative[0] + Reflect.get(DateOptionMap, currentType === null || currentType === void 0 ? void 0 : currentType.value);
|
|
154
|
+
}
|
|
146
155
|
return '最近' + relative[0] + Reflect.get(DateOptionMap, currentType === null || currentType === void 0 ? void 0 : currentType.value);
|
|
147
156
|
}
|
|
148
157
|
} else {
|
|
@@ -183,7 +192,7 @@ var BizDatePicker = function BizDatePicker(_ref) {
|
|
|
183
192
|
setCurrentType(type);
|
|
184
193
|
if (type.value === 'hour') {
|
|
185
194
|
setDateRange(getDateRange(DatePickerTypes.Unit.day, 1, includeToday));
|
|
186
|
-
setRelative([1, 1]);
|
|
195
|
+
setRelative([1, includeToday ? 0 : 1]);
|
|
187
196
|
}
|
|
188
197
|
if (type.value === 'day') {
|
|
189
198
|
setDateRange(getDateRange(DatePickerTypes.Unit.day, 7, includeToday));
|
|
@@ -18,7 +18,7 @@ export default (function (props) {
|
|
|
18
18
|
relative = props.relative,
|
|
19
19
|
selectRangeUnit = props.selectRangeUnit,
|
|
20
20
|
shortcuts = props.shortcuts;
|
|
21
|
-
var ref = useRef();
|
|
21
|
+
var ref = useRef(null);
|
|
22
22
|
return /*#__PURE__*/React.createElement(Tabs, {
|
|
23
23
|
defaultActiveKey: relative ? '1' : '2'
|
|
24
24
|
}, currentType != DatePickerTypes.Unit.custom && /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
package/es/datePickerV2/utils.js
CHANGED
|
@@ -45,6 +45,9 @@ export var getTypeList = function getTypeList(currentType, includeToday, shortcu
|
|
|
45
45
|
label: '按小时',
|
|
46
46
|
value: DatePickerTypes.Unit.hour,
|
|
47
47
|
children: [{
|
|
48
|
+
value: '今天',
|
|
49
|
+
count: 0
|
|
50
|
+
}, {
|
|
48
51
|
value: '昨天',
|
|
49
52
|
count: 1
|
|
50
53
|
}, {
|
|
@@ -55,6 +58,9 @@ export var getTypeList = function getTypeList(currentType, includeToday, shortcu
|
|
|
55
58
|
label: '按天',
|
|
56
59
|
value: DatePickerTypes.Unit.day,
|
|
57
60
|
children: [{
|
|
61
|
+
value: '今天',
|
|
62
|
+
count: 0
|
|
63
|
+
}, {
|
|
58
64
|
value: '7天',
|
|
59
65
|
count: 7
|
|
60
66
|
}, {
|
|
@@ -107,8 +113,8 @@ export var getTypeList = function getTypeList(currentType, includeToday, shortcu
|
|
|
107
113
|
var list = (((_find = (shortcuts ? shortcuts : defaultShortcuts).find(function (item) {
|
|
108
114
|
return item.value === currentType;
|
|
109
115
|
})) === null || _find === void 0 ? void 0 : _find.children) || []).filter(function (item) {
|
|
110
|
-
if (currentType === 'day') {
|
|
111
|
-
if (!includeToday &&
|
|
116
|
+
if (currentType === 'day' || currentType === 'hour') {
|
|
117
|
+
if (!includeToday && item.count === 0) return false;
|
|
112
118
|
return true;
|
|
113
119
|
}
|
|
114
120
|
return true;
|
|
@@ -16,6 +16,7 @@ import convertAttributeData from '../attributeSelector/util';
|
|
|
16
16
|
import BizGlobalDataContext from '../context';
|
|
17
17
|
import request from '../utils/ajax';
|
|
18
18
|
import useBizStore from '../hooks/useBizStore';
|
|
19
|
+
import { eventApi } from '../utils';
|
|
19
20
|
var catchPool = {};
|
|
20
21
|
function ajax(url, options) {
|
|
21
22
|
return new Promise(function (resolve, reject) {
|
|
@@ -198,15 +199,8 @@ var DemoContent = function DemoContent(_ref3) {
|
|
|
198
199
|
}
|
|
199
200
|
function loadEvents() {
|
|
200
201
|
setLoadEvent(true);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
data: {
|
|
204
|
-
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.id,
|
|
205
|
-
platform: 0,
|
|
206
|
-
isAll: true
|
|
207
|
-
}
|
|
208
|
-
}).then(function (res) {
|
|
209
|
-
setEventGroups(res.data);
|
|
202
|
+
eventApi.fetchAllEvents(currentApp === null || currentApp === void 0 ? void 0 : currentApp.id, 0, false).then(function (eventGroups) {
|
|
203
|
+
setEventGroups(Array.isArray(eventGroups) ? eventGroups : []);
|
|
210
204
|
setLoadEvent(false);
|
|
211
205
|
});
|
|
212
206
|
}
|
|
@@ -250,7 +244,12 @@ var DemoContent = function DemoContent(_ref3) {
|
|
|
250
244
|
tagLoading: tagLoading,
|
|
251
245
|
setTagList: setTagList,
|
|
252
246
|
queryGroups: queryGroups,
|
|
253
|
-
queryTags: queryTags
|
|
247
|
+
queryTags: queryTags,
|
|
248
|
+
envs: {
|
|
249
|
+
staticFilePath: function staticFilePath(src) {
|
|
250
|
+
return 'https://demo.zhugeio.com/zg-analysis/' + src;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
254
253
|
}, contextProps)
|
|
255
254
|
}, children));
|
|
256
255
|
};
|
|
@@ -5,7 +5,7 @@ var InnerDemo = function InnerDemo(_ref) {
|
|
|
5
5
|
contextProps = _ref.contextProps;
|
|
6
6
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
7
7
|
needMeta: true,
|
|
8
|
-
defaultApp:
|
|
8
|
+
defaultApp: 163,
|
|
9
9
|
contextProps: contextProps
|
|
10
10
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11
11
|
style: {
|
package/es/dialog/index.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { DialogTypes } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const classPrefix = "biz-dialog";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizDialog: FCWithDefaultProps<DialogTypes.Props>;
|
|
6
9
|
export default BizDialog;
|
package/es/dnd/demo/index.js
CHANGED
|
@@ -19,8 +19,12 @@ export default (function () {
|
|
|
19
19
|
tempClassName: styles.temp,
|
|
20
20
|
draddingClassName: styles.doing,
|
|
21
21
|
itemRender: function itemRender(data) {
|
|
22
|
+
var _data = data.label;
|
|
22
23
|
return /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
key: data.id
|
|
24
|
+
key: data.id,
|
|
25
|
+
onClick: function onClick() {
|
|
26
|
+
return console.log(_data);
|
|
27
|
+
}
|
|
24
28
|
}, data.label);
|
|
25
29
|
},
|
|
26
30
|
onChange: function onChange(list) {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
-
.container {
|
|
3
|
-
padding: @padding-md;
|
|
4
|
-
border: 1px solid @border-color-base;
|
|
5
|
-
border-radius: @border-radius-normal;
|
|
6
|
-
}
|
|
7
|
-
.item {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
width: 10%;
|
|
10
|
-
height: 150px;
|
|
11
|
-
margin: @margin-md;
|
|
12
|
-
line-height: 150px;
|
|
13
|
-
text-align: center;
|
|
14
|
-
vertical-align: top;
|
|
15
|
-
background: @background-color-base;
|
|
16
|
-
border-radius: @border-radius-normal;
|
|
17
|
-
}
|
|
18
|
-
.temp {
|
|
19
|
-
display: inline-block;
|
|
20
|
-
border: 2px dashed @primary-color;
|
|
21
|
-
border-radius: @border-radius-normal;
|
|
22
|
-
}
|
|
23
|
-
.add {
|
|
24
|
-
font-size: 48px;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
.doing {
|
|
28
|
-
border: 1px solid @warning-color;
|
|
29
|
-
}
|
|
30
|
-
.handle {
|
|
31
|
-
display: block;
|
|
32
|
-
height: 25px;
|
|
33
|
-
background: @info-color;
|
|
34
|
-
}
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
.container {
|
|
3
|
+
padding: @padding-md;
|
|
4
|
+
border: 1px solid @border-color-base;
|
|
5
|
+
border-radius: @border-radius-normal;
|
|
6
|
+
}
|
|
7
|
+
.item {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: 10%;
|
|
10
|
+
height: 150px;
|
|
11
|
+
margin: @margin-md;
|
|
12
|
+
line-height: 150px;
|
|
13
|
+
text-align: center;
|
|
14
|
+
vertical-align: top;
|
|
15
|
+
background: @background-color-base;
|
|
16
|
+
border-radius: @border-radius-normal;
|
|
17
|
+
}
|
|
18
|
+
.temp {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
border: 2px dashed @primary-color;
|
|
21
|
+
border-radius: @border-radius-normal;
|
|
22
|
+
}
|
|
23
|
+
.add {
|
|
24
|
+
font-size: 48px;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
}
|
|
27
|
+
.doing {
|
|
28
|
+
border: 1px solid @warning-color;
|
|
29
|
+
}
|
|
30
|
+
.handle {
|
|
31
|
+
display: block;
|
|
32
|
+
height: 25px;
|
|
33
|
+
background: @info-color;
|
|
34
|
+
}
|
package/es/dnd/index.d.ts
CHANGED
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { DndTypes } from './types';
|
|
3
3
|
import './styles/index.less';
|
|
4
4
|
export declare const classPrefix = "biz-dnd";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizDnd: FCWithDefaultProps<DndTypes.ContainerProps>;
|
|
6
9
|
export default BizDnd;
|
package/es/dnd/item.js
CHANGED
|
@@ -26,7 +26,15 @@ var BizDndItem = function BizDndItem(props) {
|
|
|
26
26
|
isDragging = _useState2[0],
|
|
27
27
|
setIsDragging = _useState2[1];
|
|
28
28
|
var ref = useRef();
|
|
29
|
+
var startPos = useRef({
|
|
30
|
+
x: 0,
|
|
31
|
+
y: 0
|
|
32
|
+
});
|
|
29
33
|
function onMousedown(e) {
|
|
34
|
+
startPos.current = {
|
|
35
|
+
x: e.clientX,
|
|
36
|
+
y: e.clientY
|
|
37
|
+
};
|
|
30
38
|
var _e$currentTarget$getB = e.currentTarget.getBoundingClientRect(),
|
|
31
39
|
top = _e$currentTarget$getB.top,
|
|
32
40
|
left = _e$currentTarget$getB.left;
|
|
@@ -51,6 +59,12 @@ var BizDndItem = function BizDndItem(props) {
|
|
|
51
59
|
}
|
|
52
60
|
}
|
|
53
61
|
function onMouseMove(e) {
|
|
62
|
+
var dx = e.clientX - startPos.current.x;
|
|
63
|
+
var dy = e.clientY - startPos.current.y;
|
|
64
|
+
var distance = Math.sqrt(dx * dx + dy * dy);
|
|
65
|
+
if (distance <= 10) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
54
68
|
var computedStyle = window.getComputedStyle(ref.current);
|
|
55
69
|
style.position = 'fixed';
|
|
56
70
|
style.top += e.clientY - (preMouse.y || 0);
|
|
@@ -2,5 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import './styles/index.less';
|
|
3
3
|
import { EventSelectTypes } from './types';
|
|
4
4
|
export declare const classPrefix = "biz-event-select";
|
|
5
|
-
|
|
5
|
+
type FCWithDefaultProps<P> = React.FC<P> & {
|
|
6
|
+
defaultProps?: Partial<P>;
|
|
7
|
+
};
|
|
8
|
+
declare const BizEventSelector: FCWithDefaultProps<EventSelectTypes.Props>;
|
|
6
9
|
export default BizEventSelector;
|
|
@@ -10,7 +10,7 @@ import SelectHandle from '../select/handle';
|
|
|
10
10
|
import BizGlobalDataContext from '../context';
|
|
11
11
|
import EventListPanel from './listPanel';
|
|
12
12
|
import './styles/index.less';
|
|
13
|
-
import { BuiltinIndicators } from '../constants/common';
|
|
13
|
+
import { BuiltinIndicators, RetentionTarget } from '../constants/common';
|
|
14
14
|
import _ from 'lodash';
|
|
15
15
|
import useChanged from '../hooks/useChanged';
|
|
16
16
|
import BizTargetOptionIcon from '../targetSelector/optionIcon';
|
|
@@ -68,7 +68,7 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
68
68
|
}
|
|
69
69
|
var getValue = function getValue(param) {
|
|
70
70
|
var res = {};
|
|
71
|
-
var allEvents = props.showBuiltInTarget ? eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.concat(BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type)) : eventGroupList;
|
|
71
|
+
var allEvents = props.showRetentionTarget ? eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.concat(RetentionTarget(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type, props.showRetentionTarget)) : props.showBuiltInTarget ? eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.concat(BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type)) : eventGroupList;
|
|
72
72
|
if (props.multiple) {
|
|
73
73
|
var params = param;
|
|
74
74
|
return params.filter(function (item) {
|
|
@@ -166,6 +166,7 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
166
166
|
multiple: props.multiple,
|
|
167
167
|
maxEventCount: props.maxEventCount,
|
|
168
168
|
showBuiltInTarget: props.showBuiltInTarget,
|
|
169
|
+
showRetentionTarget: props.showRetentionTarget,
|
|
169
170
|
defaultSelectAble: defaultSelectAble,
|
|
170
171
|
selectList: props.selectList,
|
|
171
172
|
disableList: props.disableList,
|
|
@@ -21,7 +21,7 @@ import InfiniteScroll from 'react-infinite-scroll-component';
|
|
|
21
21
|
import { classPrefix } from '.';
|
|
22
22
|
import { BizGlobalDataContext, useChanged } from '..';
|
|
23
23
|
import { ShowStatus } from '../attributeSelector/types';
|
|
24
|
-
import { BuiltinIndicators } from '../constants/common';
|
|
24
|
+
import { BuiltinIndicators, RetentionTarget } from '../constants/common';
|
|
25
25
|
import BizSearchInput from '../searchInput';
|
|
26
26
|
import EventListOption from './option';
|
|
27
27
|
var EventListPanel = function EventListPanel(props) {
|
|
@@ -108,7 +108,7 @@ var EventListPanel = function EventListPanel(props) {
|
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
});
|
|
111
|
-
list = props.showBuiltInTarget ? [].concat(_toConsumableArray(BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type).eventList), markList, _toConsumableArray(list)) : [].concat(markList, _toConsumableArray(list));
|
|
111
|
+
list = props.showRetentionTarget ? [].concat(_toConsumableArray(RetentionTarget(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type, props.showRetentionTarget).eventList), markList, _toConsumableArray(list)) : props.showBuiltInTarget ? [].concat(_toConsumableArray(BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type).eventList), markList, _toConsumableArray(list)) : [].concat(markList, _toConsumableArray(list));
|
|
112
112
|
if (props.extendEvents) {
|
|
113
113
|
list = [].concat(_toConsumableArray(props.extendEvents), _toConsumableArray(list));
|
|
114
114
|
}
|
|
@@ -117,7 +117,7 @@ var EventListPanel = function EventListPanel(props) {
|
|
|
117
117
|
name: '所有分组'
|
|
118
118
|
};
|
|
119
119
|
setGroupList(function (list) {
|
|
120
|
-
var result = props.showBuiltInTarget ? [group, BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type)].concat(_toConsumableArray(list)) : [group].concat(_toConsumableArray(list));
|
|
120
|
+
var result = props.showRetentionTarget ? [group, RetentionTarget(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type, props.showRetentionTarget)].concat(_toConsumableArray(list)) : props.showBuiltInTarget ? [group, BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type)].concat(_toConsumableArray(list)) : [group].concat(_toConsumableArray(list));
|
|
121
121
|
if (!props.filter) return result;
|
|
122
122
|
var finalList = [];
|
|
123
123
|
result.forEach(function (group) {
|
|
@@ -141,8 +141,10 @@ var EventListPanel = function EventListPanel(props) {
|
|
|
141
141
|
if (!props.multiple) {
|
|
142
142
|
var _props$value;
|
|
143
143
|
if (props.defaultSelectAble && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.group)) {
|
|
144
|
-
var _props$value$group;
|
|
145
|
-
if (props.
|
|
144
|
+
var _props$value$group, _props$value$group2;
|
|
145
|
+
if (props.showRetentionTarget && ((_props$value$group = props.value.group) === null || _props$value$group === void 0 ? void 0 : _props$value$group.id) === -2) {
|
|
146
|
+
resultGroup = RetentionTarget(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type, props.showRetentionTarget);
|
|
147
|
+
} else if (props.showBuiltInTarget && ((_props$value$group2 = props.value.group) === null || _props$value$group2 === void 0 ? void 0 : _props$value$group2.id) === -2) {
|
|
146
148
|
resultGroup = BuiltinIndicators(currentApp === null || currentApp === void 0 ? void 0 : currentApp.type);
|
|
147
149
|
} else {
|
|
148
150
|
var _currentGroup = group;
|
|
@@ -166,17 +168,10 @@ var EventListPanel = function EventListPanel(props) {
|
|
|
166
168
|
});
|
|
167
169
|
setReady(true);
|
|
168
170
|
}, [eventGroupListData]);
|
|
169
|
-
useChanged(function () {
|
|
170
|
-
if (props.multiple) {
|
|
171
|
-
setCheckedEventList(_.cloneDeep(props.value) || []);
|
|
172
|
-
} else {
|
|
173
|
-
setCurrentValue(_.cloneDeep(props.value));
|
|
174
|
-
}
|
|
175
|
-
}, props.value);
|
|
176
171
|
useEffect(function () {
|
|
177
172
|
var list = [];
|
|
178
173
|
currentGroup === null || currentGroup === void 0 ? void 0 : currentGroup.eventList.forEach(function (event) {
|
|
179
|
-
if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test("".concat(event.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(event.alias || event.name))) return;
|
|
174
|
+
if (searchValue && !(new RegExp(_.escapeRegExp(searchValue), 'i').test("".concat(event.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(event.alias)) || new RegExp(_.escapeRegExp(searchValue), 'i').test("".concat(event.owner === 'zg_vtl' ? '虚拟事件' : '元事件', " | ").concat(event.name)))) return;
|
|
180
175
|
list.push(event);
|
|
181
176
|
});
|
|
182
177
|
if (showOverview) list.unshift(overviewData);
|
|
@@ -355,7 +350,8 @@ export var InfiniteScrollList = function InfiniteScrollList(_ref) {
|
|
|
355
350
|
},
|
|
356
351
|
multiple: multiple,
|
|
357
352
|
data: e,
|
|
358
|
-
onClick: onClick
|
|
353
|
+
onClick: onClick,
|
|
354
|
+
showTip: e.id === -205
|
|
359
355
|
});
|
|
360
356
|
}));
|
|
361
357
|
};
|