@zgfe/business-lib 1.2.71-hxd.8 → 1.2.86-h5.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.
- package/README.md +1 -1
- package/es/AUMFormulaTarget/components/formula/index.js +10 -10
- package/es/AUMFormulaTarget/components/formula/util.js +6 -6
- package/es/AUMFormulaTarget/components/formulaItem/index.js +23 -23
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +50 -50
- package/es/AUMFormulaTarget/components/panel/index.js +30 -30
- package/es/AUMFormulaTarget/components/panel/item.js +22 -22
- package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
- package/es/AUMFormulaTarget/demo/group.js +15 -15
- package/es/AUMFormulaTarget/demo/index.js +2 -2
- package/es/AUMFormulaTarget/index.d.ts +1 -4
- package/es/AUMFormulaTarget/index.js +11 -11
- package/es/addToPanel/components/addPanel.js +5 -5
- package/es/addToPanel/components/numberChart.js +5 -5
- package/es/addToPanel/components/radioGroup.d.ts +1 -4
- package/es/addToPanel/components/styleList.d.ts +1 -4
- package/es/addToPanel/components/styleList.js +5 -5
- package/es/addToPanel/components/wholeChart.js +5 -5
- package/es/addToPanel/demo/edit.js +8 -8
- package/es/addToPanel/demo/index.js +8 -8
- package/es/addToPanel/index.d.ts +1 -4
- package/es/addToPanel/index.js +22 -22
- package/es/addToScene/demo/index.js +8 -8
- package/es/addToScene/index.js +16 -11
- package/es/amountSelector/demo/index.js +1 -1
- package/es/amountSelector/index.js +1 -1
- package/es/assets/demo/dropdown.js +5 -5
- package/es/assets/demo/index.d.ts +1 -1
- package/es/assets/demo/index.js +1 -1
- package/es/assets/demo/input.js +6 -6
- package/es/assets/iconfont/demo_index.html +348 -19
- package/es/assets/iconfont/iconfont.css +3 -11
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +161 -0
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/demo/index.js +1 -1
- package/es/attrCondition/group.js +9 -12
- package/es/attrCondition/index.js +13 -16
- package/es/attrCondition/useAttrCondition.js +9 -11
- package/es/attrCondition/useConditionGroup.js +8 -8
- package/es/attrConditions/components/operateList.js +13 -16
- package/es/attrConditions/components/stringList.js +31 -26
- package/es/attrConditions/components/valuesList.js +5 -5
- package/es/attrConditions/demo/group.js +8 -8
- package/es/attrConditions/demo/index.js +6 -6
- package/es/attrConditions/group.js +3 -3
- package/es/attrConditions/index.d.ts +1 -4
- package/es/attrConditions/types.d.ts +0 -2
- package/es/attrConditions/utils/operates.d.ts +0 -4
- package/es/attrConditions/utils/operates.js +0 -37
- package/es/attributeSelector/demo/disable.d.ts +1 -1
- package/es/attributeSelector/demo/disable.js +7 -7
- package/es/attributeSelector/demo/extra.d.ts +1 -1
- package/es/attributeSelector/demo/extra.js +7 -7
- package/es/attributeSelector/demo/funnel.d.ts +1 -1
- package/es/attributeSelector/demo/funnel.js +7 -7
- package/es/attributeSelector/demo/index.d.ts +1 -1
- package/es/attributeSelector/demo/index.js +7 -7
- package/es/attributeSelector/index.js +35 -39
- package/es/attributeSelector/listPanel.js +126 -330
- package/es/attributeSelector/types.d.ts +0 -1
- package/es/attributeSelector/util.js +0 -3
- package/es/chart/demo/bar.js +1 -1
- package/es/chart/demo/index.js +7 -7
- package/es/chart/demo/line_bar.js +1 -1
- package/es/chart/demo/line_bar_stack.js +22 -22
- package/es/chart/demo/map.js +1 -1
- package/es/chart/demo/muit_y.js +1 -1
- package/es/chart/demo/pie.js +1 -1
- package/es/chart/demo/stack.js +7 -7
- package/es/chart/index.js +23 -21
- package/es/chart/util/chartOptionConfig.js +6 -6
- package/es/chart/util/data/china.js +1 -1
- package/es/chart/util/formatData.js +6 -6
- package/es/chart/util/mapUtil.js +11 -11
- package/es/colorIcon/demo/index.js +1 -1
- package/es/colorIcon/index.js +4 -2
- package/es/constants/apis.d.ts +0 -3
- package/es/constants/apis.js +2 -5
- package/es/constants/common.d.ts +0 -11
- package/es/constants/common.js +0 -31
- package/es/context/index.d.ts +0 -1
- package/es/context/index.js +1 -3
- package/es/cycleTime/demo/disable.js +1 -1
- package/es/cycleTime/demo/hour.js +6 -6
- package/es/cycleTime/demo/index.d.ts +1 -1
- package/es/cycleTime/demo/index.js +2 -2
- package/es/cycleTime/demo/multi.js +1 -1
- package/es/cycleTime/index.js +24 -22
- package/es/cycleTime/month.js +12 -9
- package/es/dataSetGroup/demo/index.js +1 -1
- package/es/dataSetGroup/index.js +6 -5
- package/es/dataSetGroup/overlay.js +10 -10
- package/es/datePicker/datePicker.js +8 -8
- package/es/datePicker/demo/customType.d.ts +1 -1
- package/es/datePicker/demo/customType.js +7 -7
- package/es/datePicker/demo/day.d.ts +1 -1
- package/es/datePicker/demo/day.js +7 -7
- package/es/datePicker/demo/index.d.ts +1 -1
- package/es/datePicker/demo/index.js +7 -7
- package/es/datePicker/index.d.ts +1 -4
- package/es/datePicker/index.js +19 -19
- package/es/datePicker/shortcut.js +5 -5
- package/es/datePickerV2/datePicker.d.ts +1 -1
- package/es/datePickerV2/datePicker.js +11 -20
- package/es/datePickerV2/demo/customType.d.ts +1 -1
- package/es/datePickerV2/demo/customType.js +7 -7
- package/es/datePickerV2/demo/day.d.ts +1 -1
- package/es/datePickerV2/demo/day.js +8 -10
- package/es/datePickerV2/demo/index.d.ts +1 -1
- package/es/datePickerV2/demo/index.js +9 -10
- package/es/datePickerV2/index.d.ts +1 -4
- package/es/datePickerV2/index.js +27 -33
- package/es/datePickerV2/popoverContent.d.ts +1 -1
- package/es/datePickerV2/popoverContent.js +9 -10
- package/es/datePickerV2/shortcut.js +7 -7
- package/es/datePickerV2/types.d.ts +1 -3
- package/es/datePickerV2/types.js +0 -1
- package/es/datePickerV2/utils.js +1 -17
- package/es/demoWrapper/content.js +46 -40
- package/es/demoWrapper/demo/index.js +1 -1
- package/es/demoWrapper/index.js +15 -15
- package/es/dialog/demo/index.js +6 -6
- package/es/dialog/index.d.ts +1 -4
- package/es/dialog/index.js +6 -6
- package/es/dnd/demo/data.js +6 -6
- package/es/dnd/demo/handle.js +6 -6
- package/es/dnd/demo/index.js +2 -6
- package/es/dnd/demo/styles/index.less +1 -1
- package/es/dnd/index.d.ts +1 -4
- package/es/dnd/index.js +11 -10
- package/es/dnd/item.js +6 -20
- package/es/empty/demo/index.d.ts +1 -1
- package/es/empty/demo/index.js +2 -2
- package/es/empty/index.js +6 -6
- package/es/eventSelector/demo/index.js +6 -6
- package/es/eventSelector/demo/multiple.js +6 -6
- package/es/eventSelector/index.d.ts +1 -4
- package/es/eventSelector/index.js +9 -10
- package/es/eventSelector/listPanel.js +39 -41
- package/es/eventSelector/option.js +3 -3
- package/es/eventSelector/types.d.ts +0 -1
- package/es/formulaTarget/components/formula/index.js +8 -9
- package/es/formulaTarget/components/formula/index.less +1 -1
- package/es/formulaTarget/components/formula/types.d.ts +0 -1
- package/es/formulaTarget/components/formula/util.js +6 -6
- package/es/formulaTarget/components/formulaItem/index.js +22 -27
- package/es/formulaTarget/components/formulaItem/types.d.ts +0 -1
- package/es/formulaTarget/components/panel/index.js +33 -34
- package/es/formulaTarget/components/panel/item.js +10 -17
- package/es/formulaTarget/components/panel/types.d.ts +0 -2
- package/es/formulaTarget/components/symbol/index.js +5 -5
- package/es/formulaTarget/demo/group.js +15 -15
- package/es/formulaTarget/demo/index.js +1 -1
- package/es/formulaTarget/index.d.ts +1 -4
- package/es/formulaTarget/index.js +26 -27
- package/es/formulaTarget/types.d.ts +0 -1
- package/es/hooks/useBizStore.js +44 -38
- package/es/hooks/useChanged.js +5 -5
- package/es/hooks/useSubject.js +5 -5
- package/es/icon/demo/index.js +1 -1
- package/es/icon/demo/list.js +1 -1
- package/es/icon/iconFont.d.ts +1 -4
- package/es/icon/iconFont.js +8 -8
- package/es/index.d.ts +1 -2
- package/es/index.js +1 -2
- package/es/layout/analysisLayout/demo/index.d.ts +1 -1
- package/es/layout/analysisLayout/demo/index.js +2 -2
- package/es/layout/analysisLayout/index.d.ts +1 -4
- package/es/layout/analysisLayout/index.js +8 -8
- package/es/layout/columnLayout/demo/data.js +9 -9
- package/es/layout/columnLayout/demo/index.js +6 -6
- package/es/layout/columnLayout/demo/panel.js +7 -7
- package/es/layout/columnLayout/index.d.ts +1 -4
- package/es/layout/columnLayout/index.js +10 -10
- package/es/layout/detail/demo/index.js +1 -1
- package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
- package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
- package/es/layout/optionTitle/components/btnMenu/index.less +1 -1
- package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
- package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
- package/es/layout/optionTitle/components/title/demo.js +5 -5
- package/es/layout/optionTitle/components/title/index.d.ts +2 -1
- package/es/layout/optionTitle/components/title/index.js +15 -19
- package/es/layout/optionTitle/components/title/index.less +1 -1
- package/es/layout/optionTitle/demo/index.js +6 -6
- package/es/layout/optionTitle/demo/layout.js +6 -6
- package/es/layout/optionTitle/demo/panelCreate.js +6 -6
- package/es/layout/optionTitle/index.js +16 -16
- package/es/layout/optionTitle/layout.js +9 -9
- package/es/layout/optionTitle/styles/index.less +1 -1
- package/es/layout/optionTitle/styles/layout.less +1 -1
- package/es/layout/optionTitle/styles/search.less +1 -1
- package/es/loading/demo/index.d.ts +1 -1
- package/es/loading/demo/index.js +2 -2
- package/es/loginForm/demo/index.js +1 -1
- package/es/loginForm/index.js +5 -5
- package/es/platformSelector/demo/index.js +1 -1
- package/es/platformSelector/index.js +6 -6
- package/es/platformSelector/util.js +1 -1
- package/es/productCondition/conditionTypeList.d.ts +1 -4
- package/es/productCondition/conditionTypeList.js +2 -2
- package/es/productCondition/conditions/cdpCshCondition.js +51 -54
- package/es/productCondition/conditions/constants.d.ts +0 -2
- package/es/productCondition/conditions/constants.js +0 -2
- package/es/productCondition/conditions/eventCondition.js +8 -8
- package/es/productCondition/conditions/order/runPeriodCondition.js +10 -8
- package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/productCondition/conditions/periodCondition.d.ts +1 -4
- package/es/productCondition/conditions/periodCondition.js +8 -8
- package/es/productCondition/conditions/propCondition.d.ts +1 -4
- package/es/productCondition/conditions/propCondition.js +14 -14
- package/es/productCondition/conditions/runTimesCondition.js +6 -6
- package/es/productCondition/conditions/textDesc.js +6 -6
- package/es/productCondition/conditions/timeDimension.js +18 -18
- package/es/productCondition/demo/business.d.ts +1 -1
- package/es/productCondition/demo/business.js +7 -7
- package/es/productCondition/demo/index.d.ts +1 -1
- package/es/productCondition/demo/index.js +7 -7
- package/es/productCondition/index.d.ts +1 -4
- package/es/productCondition/index.js +17 -17
- package/es/productCondition/orConditions.js +8 -8
- package/es/productCondition/relationLabel.js +2 -2
- package/es/productCondition/types.d.ts +1 -1
- package/es/productCondition/util.js +6 -6
- package/es/quickDatePicker/demo/index.d.ts +1 -1
- package/es/quickDatePicker/demo/index.js +18 -38
- package/es/quickDatePicker/index.js +21 -115
- package/es/quickDatePicker/styles/index.less +23 -26
- package/es/quickDatePicker/types.d.ts +0 -12
- package/es/quickDatePicker/utils.d.ts +0 -6
- package/es/quickDatePicker/utils.js +1 -54
- package/es/searchInput/demo/index.js +1 -1
- package/es/select/demo/children.js +6 -6
- package/es/select/demo/customLabel.js +1 -1
- package/es/select/demo/group.js +6 -6
- package/es/select/demo/index.js +6 -6
- package/es/select/demo/loading.js +6 -6
- package/es/select/demo/multiple.js +6 -6
- package/es/select/handle.js +20 -13
- package/es/select/index.d.ts +1 -4
- package/es/select/index.js +17 -16
- package/es/select/option.js +13 -13
- package/es/select/overlay.js +17 -16
- package/es/socket/demo/demo.js +12 -12
- package/es/socket/index.js +26 -23
- package/es/subjectWrapper/demo/index.js +1 -1
- package/es/subjectWrapper/index.js +13 -13
- package/es/table/demo/index.d.ts +1 -1
- package/es/table/demo/index.js +17 -17
- package/es/table/demo/index2.js +6 -6
- package/es/table/demo/index3.js +9 -9
- package/es/table/index.js +8 -8
- package/es/targetConditionGroup/components/targetDimension.js +64 -157
- package/es/targetConditionGroup/demo/group.js +15 -15
- package/es/targetConditionGroup/demo/index.js +6 -6
- package/es/targetConditionGroup/index.d.ts +1 -4
- package/es/targetConditionGroup/index.js +38 -38
- package/es/targetSelector/demo/index.d.ts +1 -1
- package/es/targetSelector/demo/index.js +7 -7
- package/es/targetSelector/editBox.js +5 -5
- package/es/targetSelector/index.js +7 -7
- package/es/targetSelector/optionIcon.d.ts +1 -4
- package/es/userCondition/conditionTypeList.d.ts +1 -4
- package/es/userCondition/conditionTypeList.js +11 -11
- package/es/userCondition/conditions/business/operatorCondition.js +15 -15
- package/es/userCondition/conditions/business/paramsCondition.js +10 -10
- package/es/userCondition/conditions/businessCondition.js +15 -15
- package/es/userCondition/conditions/cdpCondition.js +33 -36
- package/es/userCondition/conditions/cdpCshCondition.js +51 -54
- package/es/userCondition/conditions/constants.d.ts +0 -2
- package/es/userCondition/conditions/constants.js +0 -2
- package/es/userCondition/conditions/dataAttribute.js +18 -22
- package/es/userCondition/conditions/eventCondition.js +17 -17
- package/es/userCondition/conditions/order/runPeriodCondition.d.ts +1 -4
- package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/userCondition/conditions/periodCondition.d.ts +1 -4
- package/es/userCondition/conditions/periodCondition.js +10 -10
- package/es/userCondition/conditions/propCondition.js +20 -18
- package/es/userCondition/conditions/runTimesCondition.js +6 -6
- package/es/userCondition/conditions/tagsCondition.js +11 -11
- package/es/userCondition/conditions/textDesc.js +17 -17
- package/es/userCondition/conditions/timeDimension.js +18 -18
- package/es/userCondition/demo/business.d.ts +1 -1
- package/es/userCondition/demo/business.js +7 -7
- package/es/userCondition/demo/index.d.ts +1 -1
- package/es/userCondition/demo/index.js +7 -7
- package/es/userCondition/index.js +129 -70
- package/es/userCondition/orConditions.js +8 -8
- package/es/userCondition/relationLabel.js +2 -2
- package/es/userCondition/types.d.ts +1 -1
- package/es/userCondition/util.js +6 -6
- package/es/userGroup/demo/group.js +14 -14
- package/es/userGroup/demo/index.js +9 -9
- package/es/userGroup/index.d.ts +1 -4
- package/es/userGroup/index.js +71 -13
- package/es/userGroup/overlay.js +15 -15
- package/es/userGroupHeader/demo/index.js +1 -1
- package/es/userGroupHeader/index.d.ts +0 -1
- package/es/userGroupHeader/index.js +71 -34
- package/es/userGroupHeader/styles/index.less +0 -8
- package/es/userTagsSelector/cascaderOverlay.d.ts +1 -4
- package/es/userTagsSelector/cascaderOverlay.js +27 -27
- package/es/userTagsSelector/components/tagList/index.d.ts +1 -4
- package/es/userTagsSelector/components/tagList/index.js +5 -5
- package/es/userTagsSelector/demo/index.js +7 -7
- package/es/userTagsSelector/groups/index.d.ts +1 -4
- package/es/userTagsSelector/groups/index.js +5 -5
- package/es/userTagsSelector/index.d.ts +1 -4
- package/es/userTagsSelector/index.js +13 -13
- package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
- package/es/utils/ajax.js +54 -66
- package/es/utils/demo/ajax.js +1 -1
- package/es/utils/demo/interruption.js +6 -6
- package/es/utils/index.d.ts +1 -2
- package/es/utils/index.js +1 -2
- package/es/utils/type.d.ts +0 -1
- package/es/utils/type.js +6 -6
- package/package.json +2 -2
- package/es/utils/eventApi.d.ts +0 -14
- package/es/utils/eventApi.js +0 -120
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
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 _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Button, Input, message } from 'antd';
|
|
8
8
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { classPrefix } from '.';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
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 _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import BizEventNameEditBox from './editBox';
|
|
9
9
|
import './styles/index.less';
|
|
@@ -72,12 +72,12 @@ var BizTargetSelector = function BizTargetSelector(props) {
|
|
|
72
72
|
onClick: function onClick() {
|
|
73
73
|
return setShowEditModal(true);
|
|
74
74
|
}
|
|
75
|
-
}), showEditModal &&
|
|
75
|
+
}), showEditModal && /*#__PURE__*/React.createElement(BizEventNameEditBox, {
|
|
76
76
|
defaultValue: alias,
|
|
77
77
|
disabled: targetData === null || targetData === void 0 ? void 0 : (_targetData$event = targetData.event) === null || _targetData$event === void 0 ? void 0 : _targetData$event.name,
|
|
78
78
|
onCancel: onCancelEdit,
|
|
79
79
|
onChange: onChangeAlias,
|
|
80
80
|
isFunnelEvent: props.isFunnelEvent
|
|
81
|
-
}))
|
|
81
|
+
}));
|
|
82
82
|
};
|
|
83
83
|
export default BizTargetSelector;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
defaultProps?: Partial<P>;
|
|
4
|
-
};
|
|
5
|
-
declare const BizTargetOptionIcon: FCWithDefaultProps<{
|
|
2
|
+
declare const BizTargetOptionIcon: React.FC<{
|
|
6
3
|
enabled?: boolean;
|
|
7
4
|
title?: string;
|
|
8
5
|
name: string;
|
|
@@ -6,8 +6,5 @@ export interface ConditionTypeListPropsI {
|
|
|
6
6
|
label?: string | React.ReactNode;
|
|
7
7
|
show?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
defaultProps?: Partial<P>;
|
|
11
|
-
};
|
|
12
|
-
declare const ConditionTypeList: FCWithDefaultProps<ConditionTypeListPropsI>;
|
|
9
|
+
declare const ConditionTypeList: React.FC<ConditionTypeListPropsI>;
|
|
13
10
|
export default ConditionTypeList;
|
|
@@ -29,7 +29,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
29
29
|
className: "biz-user-condition-type-label"
|
|
30
30
|
}, label) : null, /*#__PURE__*/React.createElement("ul", {
|
|
31
31
|
className: "biz-user-condition-type-container"
|
|
32
|
-
}, openCondition ?
|
|
32
|
+
}, openCondition ? /*#__PURE__*/React.createElement("li", {
|
|
33
33
|
className: "condition-type",
|
|
34
34
|
key: "event",
|
|
35
35
|
onClick: function onClick() {
|
|
@@ -37,7 +37,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
37
37
|
}
|
|
38
38
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
39
39
|
key: "event"
|
|
40
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u505A\u8FC7\uFF08\u6CA1\u505A\u8FC7\uFF09\u2026")))
|
|
40
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u505A\u8FC7\uFF08\u6CA1\u505A\u8FC7\uFF09\u2026"))) : null, openCondition ? /*#__PURE__*/React.createElement("li", {
|
|
41
41
|
className: "condition-type",
|
|
42
42
|
key: "add",
|
|
43
43
|
onClick: function onClick() {
|
|
@@ -45,7 +45,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
45
45
|
}
|
|
46
46
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
47
47
|
key: "add"
|
|
48
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u65B0\u589E\u4E8E")))
|
|
48
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u65B0\u589E\u4E8E"))) : null, openCondition ? /*#__PURE__*/React.createElement("li", {
|
|
49
49
|
className: "condition-type",
|
|
50
50
|
key: "active",
|
|
51
51
|
onClick: function onClick() {
|
|
@@ -53,7 +53,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
53
53
|
}
|
|
54
54
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
55
55
|
key: "active"
|
|
56
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u6D3B\u8DC3\u4E8E")))
|
|
56
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u6D3B\u8DC3\u4E8E"))) : null, openCondition ? /*#__PURE__*/React.createElement("li", {
|
|
57
57
|
className: "condition-type",
|
|
58
58
|
key: "prop",
|
|
59
59
|
onClick: function onClick() {
|
|
@@ -61,30 +61,30 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
61
61
|
}
|
|
62
62
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
63
63
|
key: "prop"
|
|
64
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027\u6EE1\u8DB3")))
|
|
64
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u5C5E\u6027\u6EE1\u8DB3"))) : null, openTagCondition && authority[10038] ? /*#__PURE__*/React.createElement("li", {
|
|
65
65
|
className: "condition-type",
|
|
66
66
|
onClick: function onClick() {
|
|
67
67
|
return onAdd('tag');
|
|
68
68
|
}
|
|
69
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u6807\u7B7E")))
|
|
69
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' ? '用户' : '主体', "\u6807\u7B7E"))) : null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appVersion) === 2 && !realTimeTags ? /*#__PURE__*/React.createElement("li", {
|
|
70
70
|
className: "condition-type",
|
|
71
71
|
onClick: function onClick() {
|
|
72
72
|
return onAdd('cdp_csh');
|
|
73
73
|
}
|
|
74
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u660E\u7EC6\u6570\u636E"), cdpTip ?
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u660E\u7EC6\u6570\u636E"), cdpTip ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
75
75
|
title: cdpTip
|
|
76
76
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
77
77
|
type: "tishiicon"
|
|
78
|
-
}))
|
|
78
|
+
})) : null)) : null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appVersion) !== 2 && openCdpCondition && authority[1006] && !realTimeTags ? /*#__PURE__*/React.createElement("li", {
|
|
79
79
|
className: "condition-type",
|
|
80
80
|
onClick: function onClick() {
|
|
81
81
|
return onAdd('cdp');
|
|
82
82
|
}
|
|
83
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u660E\u7EC6\u6570\u636E"), cdpTip ?
|
|
83
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u660E\u7EC6\u6570\u636E"), cdpTip ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
84
84
|
title: cdpTip
|
|
85
85
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
86
86
|
type: "tishiicon"
|
|
87
|
-
}))
|
|
87
|
+
})) : null)) : null, (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) === 'user' && !realTimeTags && (openBusinessDataCondition || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 0 || (currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType) === 2) ? /*#__PURE__*/React.createElement("li", {
|
|
88
88
|
className: "condition-type",
|
|
89
89
|
key: "business",
|
|
90
90
|
onClick: function onClick() {
|
|
@@ -92,7 +92,7 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
92
92
|
}
|
|
93
93
|
}, /*#__PURE__*/React.createElement(Space, {
|
|
94
94
|
key: "business"
|
|
95
|
-
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E")))
|
|
95
|
+
}, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u4E1A\u52A1\u6570\u636E"))) : null));
|
|
96
96
|
};
|
|
97
97
|
ConditionTypeList.defaultProps = {
|
|
98
98
|
show: true
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizSelect from '../../../select';
|
|
15
15
|
import '../styles/runTimesCondition.less';
|
|
@@ -131,7 +131,7 @@ var OperatorCondition = function OperatorCondition(props) {
|
|
|
131
131
|
};
|
|
132
132
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
133
133
|
className: "".concat(classPrefix, "-runtimes-condition")
|
|
134
|
-
}, !(condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-num' ?
|
|
134
|
+
}, !(condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-num' ? /*#__PURE__*/React.createElement("div", {
|
|
135
135
|
className: "".concat(classPrefix, "-period-condition-operator")
|
|
136
136
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
137
137
|
className: "".concat(classPrefix, "-select-condition"),
|
|
@@ -144,7 +144,7 @@ var OperatorCondition = function OperatorCondition(props) {
|
|
|
144
144
|
},
|
|
145
145
|
overlayWidth: 120,
|
|
146
146
|
onChange: onComputeTypeOperateChange
|
|
147
|
-
}))
|
|
147
|
+
})) : null, (condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-num' || !(condition === null || condition === void 0 ? void 0 : condition.typeId) ? /*#__PURE__*/React.createElement("div", {
|
|
148
148
|
className: "".concat(classPrefix, "-period-condition-operator")
|
|
149
149
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
150
150
|
className: "".concat(classPrefix, "-select-condition"),
|
|
@@ -157,7 +157,7 @@ var OperatorCondition = function OperatorCondition(props) {
|
|
|
157
157
|
},
|
|
158
158
|
overlayWidth: 120,
|
|
159
159
|
onChange: onStringOperateChange
|
|
160
|
-
}))
|
|
160
|
+
})) : null, !(condition === null || condition === void 0 ? void 0 : condition.typeId) && condition.attrs[index].attrType === 'cont-string' || condition.attrs[index].attrType === 'cont-string' && condition.attrs[index].operator !== 'is null' && condition.attrs[index].operator !== 'is not null' ? /*#__PURE__*/React.createElement("div", {
|
|
161
161
|
className: "".concat(classPrefix, "-period-condition-operator"),
|
|
162
162
|
style: {
|
|
163
163
|
width: '250px'
|
|
@@ -174,6 +174,6 @@ var OperatorCondition = function OperatorCondition(props) {
|
|
|
174
174
|
onSearch: setSearchValue,
|
|
175
175
|
enableCreate: true,
|
|
176
176
|
enableSearch: true
|
|
177
|
-
}))
|
|
177
|
+
})) : null));
|
|
178
178
|
};
|
|
179
179
|
export default OperatorCondition;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import '../styles/runTimesCondition.less';
|
|
9
9
|
import { classPrefix } from '../..';
|
|
@@ -41,7 +41,7 @@ var ParamsCondition = function ParamsCondition(props) {
|
|
|
41
41
|
}
|
|
42
42
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
43
43
|
className: "".concat(classPrefix, "-runtimes-condition")
|
|
44
|
-
}, condition.attrs[index].attrType === 'cont-num' || condition.attrs[index].attrType === 'cont-date' && condition.attrs[index].operator !== 'absolute' ?
|
|
44
|
+
}, condition.attrs[index].attrType === 'cont-num' || condition.attrs[index].attrType === 'cont-date' && condition.attrs[index].operator !== 'absolute' ? /*#__PURE__*/React.createElement("div", {
|
|
45
45
|
className: "".concat(classPrefix, "-period-condition")
|
|
46
46
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
47
47
|
key: "relative-date",
|
|
@@ -55,7 +55,7 @@ var ParamsCondition = function ParamsCondition(props) {
|
|
|
55
55
|
},
|
|
56
56
|
suffix: condition.attrs[index].attrType === 'cont-date' ? '天' : null,
|
|
57
57
|
onChange: onValue0Change
|
|
58
|
-
}))
|
|
58
|
+
})) : null, condition.attrs[index].attrType === 'cont-num' && condition.attrs[index].operator === 'between' || condition.attrs[index].attrType === 'cont-date' && (condition.attrs[index].operator === 'relativeInterval' || condition.attrs[index].operator === 'futureInterval') ? /*#__PURE__*/React.createElement("div", {
|
|
59
59
|
className: "".concat(classPrefix, "-period-condition"),
|
|
60
60
|
style: {
|
|
61
61
|
marginLeft: 10
|
|
@@ -72,13 +72,13 @@ var ParamsCondition = function ParamsCondition(props) {
|
|
|
72
72
|
},
|
|
73
73
|
suffix: condition.attrs[index].attrType === 'cont-date' ? '天' : null,
|
|
74
74
|
onChange: onValue1Change
|
|
75
|
-
}))
|
|
75
|
+
})) : null, condition.attrs[index].attrType === 'cont-date' && condition.attrs[index].operator === 'absolute' ? /*#__PURE__*/React.createElement("div", {
|
|
76
76
|
className: "".concat(classPrefix, "-runtimes-condition")
|
|
77
77
|
}, /*#__PURE__*/React.createElement(RangePicker, {
|
|
78
78
|
size: "middle",
|
|
79
79
|
defaultValue: [moment(condition.attrs[index].params[0]), moment(condition.attrs[index].params[1])],
|
|
80
80
|
onChange: onDateChange,
|
|
81
81
|
allowClear: false
|
|
82
|
-
}))
|
|
82
|
+
})) : null));
|
|
83
83
|
};
|
|
84
84
|
export default ParamsCondition;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizSelect from '../../select';
|
|
15
15
|
import { DownOutlined } from '@ant-design/icons';
|
|
@@ -144,7 +144,7 @@ var BusinessCondition = function BusinessCondition(props) {
|
|
|
144
144
|
}
|
|
145
145
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
146
146
|
className: "".concat(classPrefix, "-period-condition")
|
|
147
|
-
}, label === '业务数据' && !serviceAttribute ?
|
|
147
|
+
}, label === '业务数据' && !serviceAttribute ? /*#__PURE__*/React.createElement("div", {
|
|
148
148
|
className: "".concat(classPrefix, "-period-condition-operator")
|
|
149
149
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
150
150
|
className: "".concat(classPrefix, "-select-condition"),
|
|
@@ -157,7 +157,7 @@ var BusinessCondition = function BusinessCondition(props) {
|
|
|
157
157
|
},
|
|
158
158
|
overlayWidth: 120,
|
|
159
159
|
onChange: onServiceAttributeChange
|
|
160
|
-
}))
|
|
160
|
+
})) : null, /*#__PURE__*/React.createElement("div", {
|
|
161
161
|
className: "".concat(classPrefix, "-period-condition-label")
|
|
162
162
|
}, serviceAttribute === null || serviceAttribute === void 0 ? void 0 : serviceAttribute.name), /*#__PURE__*/React.createElement("div", {
|
|
163
163
|
className: "".concat(classPrefix, "-period-condition-values")
|
|
@@ -219,7 +219,7 @@ var BusinessCondition = function BusinessCondition(props) {
|
|
|
219
219
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
220
220
|
type: "qingchu"
|
|
221
221
|
}))));
|
|
222
|
-
}), condition.typeId && label === '业务数据' ?
|
|
222
|
+
}), condition.typeId && label === '业务数据' ? /*#__PURE__*/React.createElement("div", null, ((_condition$timeDimens4 = condition.timeDimensions) === null || _condition$timeDimens4 === void 0 ? void 0 : _condition$timeDimens4.length) !== 3 || ((_condition$attrs2 = condition.attrs) === null || _condition$attrs2 === void 0 ? void 0 : _condition$attrs2.length) !== 6 ? /*#__PURE__*/React.createElement("div", {
|
|
223
223
|
style: {
|
|
224
224
|
margin: '2px 0 0 65px',
|
|
225
225
|
color: '#4075fd',
|
|
@@ -234,6 +234,6 @@ var BusinessCondition = function BusinessCondition(props) {
|
|
|
234
234
|
onClick: function onClick(e) {
|
|
235
235
|
return e.preventDefault();
|
|
236
236
|
}
|
|
237
|
-
}, /*#__PURE__*/React.createElement(Space, null, "\u9AD8\u7EA7\u7B5B\u9009 ", /*#__PURE__*/React.createElement(DownOutlined, null)))))
|
|
237
|
+
}, /*#__PURE__*/React.createElement(Space, null, "\u9AD8\u7EA7\u7B5B\u9009 ", /*#__PURE__*/React.createElement(DownOutlined, null))))) : null) : null);
|
|
238
238
|
};
|
|
239
239
|
export default BusinessCondition;
|
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
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); }
|
|
10
|
+
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; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizSelect from '../../select';
|
|
15
15
|
import { PropType } from '../types';
|
|
16
16
|
import './styles/cdpCondition.less';
|
|
17
17
|
import _ from 'lodash';
|
|
18
|
-
import { dateOperate, numberOperate, stringOperate
|
|
18
|
+
import { dateOperate, numberOperate, stringOperate } from '../../attrConditions/utils/operates';
|
|
19
19
|
import { DatePicker, Input } from 'antd';
|
|
20
20
|
import moment from 'moment';
|
|
21
21
|
import { BizUserConditionContext } from '..';
|
|
22
22
|
import request from '../../utils/ajax';
|
|
23
23
|
import Apis from '../../constants/apis';
|
|
24
24
|
import IconFont from '../../icon/iconFont';
|
|
25
|
-
import BizGlobalDataContext from '../../context';
|
|
26
25
|
var classPrefix = 'biz-user-condition-cdp';
|
|
27
26
|
var CdpConditionItem = function CdpConditionItem(props) {
|
|
28
|
-
var _useContext = useContext(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
_useContext2$datasetL = _useContext2.datasetList,
|
|
32
|
-
datasetList = _useContext2$datasetL === void 0 ? [] : _useContext2$datasetL;
|
|
27
|
+
var _useContext = useContext(BizUserConditionContext),
|
|
28
|
+
_useContext$datasetLi = _useContext.datasetList,
|
|
29
|
+
datasetList = _useContext$datasetLi === void 0 ? [] : _useContext$datasetLi;
|
|
33
30
|
var _useState = useState(function () {
|
|
34
31
|
if (props.value) {
|
|
35
32
|
return _objectSpread(_objectSpread({}, props.value), {}, {
|
|
@@ -55,17 +52,17 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
55
52
|
operator = _useState8[0],
|
|
56
53
|
setOperator = _useState8[1];
|
|
57
54
|
var _useState9 = useState(),
|
|
58
|
-
|
|
59
|
-
fieldValue =
|
|
60
|
-
setFieldValue =
|
|
61
|
-
var
|
|
62
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
63
|
-
fieldList = _useState10[0],
|
|
64
|
-
setFieldList = _useState10[1];
|
|
65
|
-
var _useState11 = useState(true),
|
|
55
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
56
|
+
fieldValue = _useState10[0],
|
|
57
|
+
setFieldValue = _useState10[1];
|
|
58
|
+
var _useState11 = useState([]),
|
|
66
59
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
fieldList = _useState12[0],
|
|
61
|
+
setFieldList = _useState12[1];
|
|
62
|
+
var _useState13 = useState(true),
|
|
63
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
64
|
+
isFirst = _useState14[0],
|
|
65
|
+
setIsFirst = _useState14[1];
|
|
69
66
|
useEffect(function () {
|
|
70
67
|
if (!props.value) {
|
|
71
68
|
setIsFirst(false);
|
|
@@ -184,7 +181,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
184
181
|
list = numberOperate;
|
|
185
182
|
break;
|
|
186
183
|
case PropType.STRING2:
|
|
187
|
-
list =
|
|
184
|
+
list = stringOperate;
|
|
188
185
|
break;
|
|
189
186
|
default:
|
|
190
187
|
list = [];
|
|
@@ -201,7 +198,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
201
198
|
options: optionList,
|
|
202
199
|
labelField: "name",
|
|
203
200
|
keyField: "value",
|
|
204
|
-
overlayWidth:
|
|
201
|
+
overlayWidth: 96,
|
|
205
202
|
value: operator,
|
|
206
203
|
onChange: onOperateChange
|
|
207
204
|
}), function () {
|
|
@@ -273,7 +270,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
273
270
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
274
271
|
type: "bangzhu",
|
|
275
272
|
className: "".concat(classPrefix, "-select-tips")
|
|
276
|
-
})), dataset ?
|
|
273
|
+
})), dataset ? /*#__PURE__*/React.createElement("div", {
|
|
277
274
|
className: "".concat(classPrefix, "-item")
|
|
278
275
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
279
276
|
className: "".concat(classPrefix, "-select-field"),
|
|
@@ -284,16 +281,16 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
284
281
|
value: field,
|
|
285
282
|
loading: loading,
|
|
286
283
|
onChange: onFieldChange
|
|
287
|
-
}), renderByType())
|
|
284
|
+
}), renderByType()) : null);
|
|
288
285
|
};
|
|
289
286
|
var CdpCondition = function CdpCondition(props) {
|
|
290
287
|
var dataId = props.dataId,
|
|
291
288
|
defaultValue = props.defaultValue,
|
|
292
289
|
onChange = props.onChange;
|
|
293
|
-
var
|
|
294
|
-
|
|
295
|
-
cdpConditions =
|
|
296
|
-
setCdpConditions =
|
|
290
|
+
var _useState15 = useState([undefined]),
|
|
291
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
292
|
+
cdpConditions = _useState16[0],
|
|
293
|
+
setCdpConditions = _useState16[1];
|
|
297
294
|
useEffect(function () {
|
|
298
295
|
if (defaultValue && defaultValue.dataset) {
|
|
299
296
|
setCdpConditions(defaultValue.dataset);
|