@zgfe/business-lib 1.2.70-hxd.17 → 1.2.70-hxd.19
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 +16 -14
- 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 +52 -52
- package/es/AUMFormulaTarget/components/panel/index.js +30 -30
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/components/panel/item.js +22 -22
- package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
- package/es/AUMFormulaTarget/demo/group.js +13 -13
- package/es/AUMFormulaTarget/demo/index.js +1 -1
- 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/styleList.js +5 -5
- package/es/addToPanel/components/wholeChart.js +5 -5
- package/es/addToPanel/demo/edit.js +7 -7
- package/es/addToPanel/demo/index.js +7 -7
- package/es/addToPanel/index.js +22 -22
- package/es/addToScene/demo/index.js +7 -7
- package/es/addToScene/index.js +9 -9
- 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 +555 -394
- 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/demo/dropdown.js +5 -5
- package/es/assets/demo/input.js +5 -5
- package/es/assets/iconfont/demo_index.html +203 -348
- package/es/assets/iconfont/iconfont.css +103 -63
- package/es/assets/iconfont/iconfont.js +1 -1
- package/es/assets/iconfont/iconfont.json +1584 -1689
- package/es/assets/styles/resetAntd.less +568 -564
- package/es/assets/styles/variable.less +21 -21
- package/es/assets/theme.js +2 -2
- package/es/attrCondition/demo/group.js +1 -1
- package/es/attrCondition/group.js +15 -7
- package/es/attrCondition/index.js +15 -13
- package/es/attrCondition/styles/index.less +101 -101
- package/es/attrCondition/useAttrCondition.js +11 -12
- package/es/attrCondition/useConditionGroup.js +8 -8
- package/es/attrConditions/components/operateList.js +16 -13
- package/es/attrConditions/components/stringList.js +22 -21
- package/es/attrConditions/components/valuesList.js +5 -5
- package/es/attrConditions/demo/group.js +7 -7
- package/es/attrConditions/demo/index.js +5 -5
- package/es/attrConditions/group.js +3 -3
- package/es/attrConditions/index.js +4 -2
- package/es/attrConditions/types.d.ts +3 -0
- package/es/attrConditions/utils/operates.d.ts +4 -0
- package/es/attrConditions/utils/operates.js +37 -0
- package/es/attributeSelector/demo/disable.js +5 -5
- package/es/attributeSelector/demo/extra.js +5 -5
- package/es/attributeSelector/demo/funnel.js +5 -5
- package/es/attributeSelector/demo/index.js +5 -5
- package/es/attributeSelector/index.js +17 -15
- package/es/attributeSelector/listPanel.js +20 -17
- package/es/attributeSelector/types.d.ts +1 -0
- package/es/chart/demo/data/data5 copy.js +2 -2
- package/es/chart/demo/index.js +5 -5
- package/es/chart/demo/line_bar_stack.js +25 -25
- package/es/chart/demo/stack.js +5 -5
- package/es/chart/index.js +11 -11
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/chartOptionConfig.js +6 -6
- package/es/chart/util/color.js +1 -1
- 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/constants/apis.d.ts +1 -0
- package/es/constants/apis.js +2 -1
- package/es/constants/common.d.ts +11 -0
- package/es/constants/common.js +31 -0
- package/es/context/index.d.ts +1 -0
- package/es/cycleTime/demo/hour.js +5 -5
- package/es/cycleTime/index.js +16 -16
- package/es/cycleTime/month.js +7 -7
- package/es/dataSetGroup/index.js +5 -5
- package/es/dataSetGroup/overlay.js +10 -10
- package/es/datePicker/datePicker.js +8 -8
- package/es/datePicker/demo/customType.js +5 -5
- package/es/datePicker/demo/day.js +5 -5
- package/es/datePicker/demo/index.js +5 -5
- package/es/datePicker/index.js +19 -19
- package/es/datePicker/shortcut.js +5 -5
- package/es/datePickerV2/datePicker.js +8 -8
- package/es/datePickerV2/demo/customType.js +5 -5
- package/es/datePickerV2/demo/day.js +5 -5
- package/es/datePickerV2/demo/index.js +6 -6
- package/es/datePickerV2/index.js +35 -26
- package/es/datePickerV2/popoverContent.js +8 -8
- package/es/datePickerV2/shortcut.js +8 -8
- package/es/datePickerV2/styles/index.less +194 -194
- package/es/datePickerV2/types.d.ts +1 -0
- package/es/datePickerV2/utils.js +8 -2
- package/es/demoWrapper/content.js +43 -38
- package/es/demoWrapper/index.js +15 -15
- package/es/demoWrapper/innerDemo.js +1 -1
- package/es/dialog/demo/index.js +5 -5
- package/es/dialog/index.js +6 -6
- package/es/dnd/demo/data.js +5 -5
- package/es/dnd/demo/handle.js +5 -5
- package/es/dnd/demo/index.js +5 -1
- package/es/dnd/index.js +11 -10
- package/es/dnd/item.js +20 -6
- package/es/empty/index.js +6 -6
- package/es/eventSelector/demo/index.js +5 -5
- package/es/eventSelector/demo/multiple.js +5 -5
- package/es/eventSelector/index.js +10 -9
- package/es/eventSelector/listPanel.js +42 -46
- package/es/eventSelector/option.d.ts +1 -0
- package/es/eventSelector/option.js +15 -4
- package/es/eventSelector/styles/index.less +127 -123
- package/es/eventSelector/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/index.js +9 -8
- package/es/formulaTarget/components/formula/index.less +76 -76
- package/es/formulaTarget/components/formula/types.d.ts +1 -0
- package/es/formulaTarget/components/formula/util.js +6 -6
- package/es/formulaTarget/components/formulaItem/index.js +27 -22
- package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
- package/es/formulaTarget/components/panel/index.js +34 -33
- package/es/formulaTarget/components/panel/item.js +13 -9
- package/es/formulaTarget/components/panel/types.d.ts +2 -0
- package/es/formulaTarget/components/symbol/index.js +5 -5
- package/es/formulaTarget/demo/group.js +13 -13
- package/es/formulaTarget/index.js +27 -26
- package/es/formulaTarget/types.d.ts +1 -0
- package/es/hooks/useBizStore.js +35 -35
- package/es/hooks/useChanged.js +5 -5
- package/es/hooks/useSubject.js +5 -5
- package/es/icon/iconFont.js +8 -8
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/layout/analysisLayout/index.js +8 -8
- package/es/layout/columnLayout/demo/data.js +9 -9
- package/es/layout/columnLayout/demo/index.js +5 -5
- package/es/layout/columnLayout/demo/panel.js +5 -5
- package/es/layout/columnLayout/index.js +10 -10
- 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/changePanelModal/index.js +14 -14
- package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
- package/es/layout/optionTitle/components/title/demo.js +5 -5
- package/es/layout/optionTitle/components/title/index.js +11 -11
- package/es/layout/optionTitle/demo/index.js +5 -5
- package/es/layout/optionTitle/demo/layout.js +5 -5
- package/es/layout/optionTitle/demo/panelCreate.js +5 -5
- package/es/layout/optionTitle/index.js +16 -16
- package/es/layout/optionTitle/layout.js +9 -9
- package/es/layout/optionTitle/styles/layout.less +90 -90
- package/es/loginForm/index.js +5 -5
- package/es/platformSelector/index.js +5 -5
- package/es/platformSelector/styles/index.less +26 -26
- package/es/productCondition/conditionTypeList.js +2 -2
- package/es/productCondition/conditions/cdpCshCondition.js +54 -51
- package/es/productCondition/conditions/constants.d.ts +2 -0
- package/es/productCondition/conditions/constants.js +2 -0
- package/es/productCondition/conditions/eventCondition.js +8 -8
- package/es/productCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/productCondition/conditions/periodCondition.js +8 -8
- package/es/productCondition/conditions/propCondition.js +14 -14
- package/es/productCondition/conditions/runTimesCondition.js +6 -6
- package/es/productCondition/conditions/styles/periodCondition.less +26 -26
- package/es/productCondition/conditions/textDesc.js +6 -6
- package/es/productCondition/conditions/timeDimension.js +18 -18
- package/es/productCondition/demo/business.js +5 -5
- package/es/productCondition/demo/index.js +5 -5
- package/es/productCondition/index.js +17 -17
- package/es/productCondition/orConditions.js +8 -8
- package/es/productCondition/relationLabel.js +2 -2
- package/es/productCondition/styles/conditionTypeList.less +32 -30
- package/es/productCondition/styles/relationLabel.less +19 -19
- package/es/productCondition/types.d.ts +2 -0
- package/es/productCondition/util.d.ts +4 -0
- package/es/productCondition/util.js +10 -8
- package/es/quickDatePicker/demo/index.js +36 -16
- package/es/quickDatePicker/index.js +129 -30
- package/es/quickDatePicker/styles/index.less +141 -138
- 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/children.js +5 -5
- package/es/select/demo/group.js +5 -5
- package/es/select/demo/index.js +7 -6
- package/es/select/demo/loading.js +5 -5
- package/es/select/demo/multiple.js +5 -5
- package/es/select/handle.js +13 -13
- package/es/select/index.js +17 -16
- package/es/select/option.js +14 -14
- package/es/select/overlay.js +18 -17
- package/es/select/styles/handle.less +206 -193
- package/es/socket/demo/demo.js +8 -8
- package/es/socket/index.js +26 -23
- package/es/subjectWrapper/index.js +16 -14
- package/es/table/demo/data/color.js +1 -1
- package/es/table/demo/index.js +15 -15
- package/es/table/demo/index2.js +5 -5
- package/es/table/demo/index3.js +8 -8
- package/es/table/index.js +11 -38
- package/es/targetConditionGroup/components/targetDimension.js +7 -7
- package/es/targetConditionGroup/demo/group.js +18 -31
- package/es/targetConditionGroup/demo/index.js +5 -5
- package/es/targetConditionGroup/index.js +35 -33
- package/es/targetConditionGroup/types.d.ts +1 -0
- package/es/targetSelector/demo/index.js +5 -5
- package/es/targetSelector/editBox.d.ts +1 -0
- package/es/targetSelector/editBox.js +13 -8
- package/es/targetSelector/index.js +9 -8
- package/es/targetSelector/optionIcon.js +3 -0
- package/es/targetSelector/styles/index.less +142 -110
- package/es/userCondition/conditionTypeList.js +13 -12
- 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 +36 -33
- package/es/userCondition/conditions/cdpCshCondition.js +54 -51
- package/es/userCondition/conditions/constants.d.ts +2 -0
- package/es/userCondition/conditions/constants.js +2 -0
- package/es/userCondition/conditions/dataAttribute.js +22 -18
- package/es/userCondition/conditions/eventCondition.js +31 -39
- package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/userCondition/conditions/periodCondition.js +25 -17
- package/es/userCondition/conditions/propCondition.d.ts +1 -4
- package/es/userCondition/conditions/propCondition.js +21 -19
- package/es/userCondition/conditions/runTimesCondition.js +6 -6
- package/es/userCondition/conditions/styles/eventCondition.less +71 -57
- package/es/userCondition/conditions/styles/periodCondition.less +32 -26
- package/es/userCondition/conditions/styles/textDesc.less +16 -17
- package/es/userCondition/conditions/tagsCondition.js +23 -16
- package/es/userCondition/conditions/textDesc.js +20 -16
- package/es/userCondition/conditions/timeDimension.js +18 -18
- package/es/userCondition/demo/business.js +5 -5
- package/es/userCondition/demo/index.js +25 -19
- package/es/userCondition/demo/mockData.d.ts +20 -94
- package/es/userCondition/demo/mockData.js +31 -76
- package/es/userCondition/index.d.ts +6 -5
- package/es/userCondition/index.js +129 -50
- package/es/userCondition/orConditions.js +8 -8
- package/es/userCondition/relationLabel.js +2 -2
- package/es/userCondition/styles/conditionTypeList.less +32 -30
- package/es/userCondition/styles/relationLabel.less +19 -19
- package/es/userCondition/types.d.ts +4 -1
- package/es/userCondition/util.d.ts +4 -0
- package/es/userCondition/util.js +10 -8
- package/es/userGroup/demo/group.js +13 -13
- package/es/userGroup/demo/index.js +8 -15
- package/es/userGroup/index.js +129 -23
- package/es/userGroup/overlay.js +32 -18
- package/es/userGroup/styles/index.less +199 -145
- 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 +117 -14
- package/es/userGroupHeader/styles/index.less +50 -31
- package/es/userTagsSelector/cascaderOverlay.js +36 -29
- package/es/userTagsSelector/components/tagList/index.js +5 -5
- package/es/userTagsSelector/demo/index.js +5 -5
- package/es/userTagsSelector/groups/index.js +5 -5
- package/es/userTagsSelector/index.js +43 -13
- package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
- package/es/userTagsSelector/styles/index.less +20 -10
- 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 +86 -46
- package/es/utils/demo/interruption.js +5 -5
- package/es/utils/type.js +6 -6
- 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
|
@@ -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 './index.less';
|
|
15
15
|
import { Button, InputNumber, Spin } from 'antd';
|
|
@@ -44,22 +44,22 @@ var FormulaPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
44
44
|
allList = _useState8[0],
|
|
45
45
|
setAllList = _useState8[1];
|
|
46
46
|
var _useState9 = useState(true),
|
|
47
|
-
|
|
48
|
-
loading =
|
|
49
|
-
setLoading =
|
|
50
|
-
var
|
|
51
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
52
|
-
currentValue = _useState10[0],
|
|
53
|
-
setCurrentValue = _useState10[1];
|
|
54
|
-
var scrollableId = 'scrollableFormula' + Math.random();
|
|
55
|
-
var _useState11 = useState(''),
|
|
47
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
48
|
+
loading = _useState10[0],
|
|
49
|
+
setLoading = _useState10[1];
|
|
50
|
+
var _useState11 = useState(),
|
|
56
51
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var
|
|
52
|
+
currentValue = _useState12[0],
|
|
53
|
+
setCurrentValue = _useState12[1];
|
|
54
|
+
var scrollableId = 'scrollableFormula' + Math.random();
|
|
55
|
+
var _useState13 = useState(''),
|
|
60
56
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
validateData = _useState14[0],
|
|
58
|
+
setValidateData = _useState14[1];
|
|
59
|
+
var _useState15 = useState(0),
|
|
60
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
61
|
+
timer = _useState16[0],
|
|
62
|
+
setTimer = _useState16[1];
|
|
63
63
|
var _useContext2 = useContext(BizValidatorContext),
|
|
64
64
|
setValidate = _useContext2.setValidate;
|
|
65
65
|
useEffect(function () {
|
|
@@ -161,19 +161,20 @@ var FormulaPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
161
161
|
return onClickMenu(item.value);
|
|
162
162
|
}
|
|
163
163
|
}, item.name);
|
|
164
|
-
})), currentValue && currentValue.eventId && getParentType(currentValue.type) === type ?
|
|
164
|
+
})), currentValue && currentValue.eventId && getParentType(currentValue.type) === type ? /*#__PURE__*/React.createElement(PanelItem, {
|
|
165
165
|
value: currentValue,
|
|
166
166
|
onBack: function onBack() {
|
|
167
167
|
return setCurrentValue(null);
|
|
168
168
|
},
|
|
169
|
-
onChange: onChangeFilter
|
|
170
|
-
|
|
169
|
+
onChange: onChangeFilter,
|
|
170
|
+
onlyAnd: props.onlyAnd
|
|
171
|
+
}) : /*#__PURE__*/React.createElement("div", {
|
|
171
172
|
className: "".concat(classPrefix, "-right")
|
|
172
|
-
}, type === FormulaTypes.EVENT ?
|
|
173
|
+
}, type === FormulaTypes.EVENT ? /*#__PURE__*/React.createElement(BizSearchInput, {
|
|
173
174
|
value: searchValue,
|
|
174
175
|
className: "".concat(classPrefix, "-right-search"),
|
|
175
176
|
onChange: setSearchValue
|
|
176
|
-
})
|
|
177
|
+
}) : null, type === FormulaTypes.CONSTANT ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(InputNumber, {
|
|
177
178
|
className: "".concat(classPrefix, "-right-number"),
|
|
178
179
|
value: typeof currentValue === 'string' || typeof currentValue === 'number' ? currentValue : undefined,
|
|
179
180
|
autoFocus: true,
|
|
@@ -186,17 +187,17 @@ var FormulaPanel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
186
187
|
onBlur: onBlur
|
|
187
188
|
}), /*#__PURE__*/React.createElement("div", {
|
|
188
189
|
className: "".concat(classPrefix, "-error")
|
|
189
|
-
}, validateData))
|
|
190
|
+
}, validateData)) : /*#__PURE__*/React.createElement("div", {
|
|
190
191
|
className: "".concat(classPrefix, "-right-list"),
|
|
191
192
|
id: scrollableId
|
|
192
|
-
}, loading ?
|
|
193
|
+
}, loading ? /*#__PURE__*/React.createElement(Spin, null) : allList[type].length ? /*#__PURE__*/React.createElement(InfiniteScrollList, {
|
|
193
194
|
scrollableTarget: scrollableId,
|
|
194
195
|
searchEventList: allList[type],
|
|
195
196
|
searchValue: searchValue,
|
|
196
197
|
groupId: type,
|
|
197
198
|
currentId: currentValue === null || currentValue === void 0 ? void 0 : currentValue.eventId,
|
|
198
199
|
onClick: onClick
|
|
199
|
-
})
|
|
200
|
+
}) : '暂无数据'))), /*#__PURE__*/React.createElement("div", {
|
|
200
201
|
className: "".concat(classPrefix, "-footer")
|
|
201
202
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
202
203
|
type: "text",
|
|
@@ -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, useRef, useState } from 'react';
|
|
8
8
|
import { BizAttrConditionGroup, IconFont } from '../../..';
|
|
9
9
|
import BizTargetDimension from '../../../targetConditionGroup/components/targetDimension';
|
|
@@ -49,28 +49,32 @@ var PanelItem = function PanelItem(props) {
|
|
|
49
49
|
className: "".concat(prefix, "-title-left-icon"),
|
|
50
50
|
type: "fanhuiicon",
|
|
51
51
|
onClick: onBack
|
|
52
|
-
}), /*#__PURE__*/React.createElement("span", null, props.value.eventName), props.value.type === 'event' ?
|
|
52
|
+
}), /*#__PURE__*/React.createElement("span", null, props.value.eventName), props.value.type === 'event' ? /*#__PURE__*/React.createElement(BizTargetDimension, {
|
|
53
53
|
eventId: props.value.eventId,
|
|
54
54
|
value: props.value.analysisDimension,
|
|
55
55
|
onChange: onChangeDimension
|
|
56
|
-
})
|
|
56
|
+
}) : null), count < 5 ? /*#__PURE__*/React.createElement("div", {
|
|
57
57
|
className: "".concat(prefix, "-title-right"),
|
|
58
58
|
onClick: onAdd
|
|
59
59
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
60
60
|
type: "shaixuan"
|
|
61
|
-
}), /*#__PURE__*/React.createElement("span", null, "\u7B5B\u9009"))
|
|
61
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u7B5B\u9009")) : null), /*#__PURE__*/React.createElement("div", {
|
|
62
62
|
className: "".concat(prefix, "-content")
|
|
63
63
|
}, /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
|
|
64
64
|
ref: conditionRef,
|
|
65
65
|
value: filterList,
|
|
66
|
-
showHandle:
|
|
66
|
+
showHandle: !props.onlyAnd,
|
|
67
67
|
enableDelete: true,
|
|
68
68
|
enableEventProp: true,
|
|
69
69
|
enableEnvProp: true,
|
|
70
70
|
enableUserProp: true,
|
|
71
71
|
eventIdList: [props.value.eventId],
|
|
72
72
|
onChange: setFilterList,
|
|
73
|
+
onlyAnd: props.onlyAnd,
|
|
73
74
|
onConditionsCount: setCount
|
|
74
75
|
})));
|
|
75
76
|
};
|
|
77
|
+
PanelItem.defaultProps = {
|
|
78
|
+
onlyAnd: true
|
|
79
|
+
};
|
|
76
80
|
export default PanelItem;
|
|
@@ -5,11 +5,13 @@ export interface FormulaPanelProps {
|
|
|
5
5
|
onChange?: (data?: FormulaContainerTypes.Value) => void;
|
|
6
6
|
onDelete?: () => void;
|
|
7
7
|
onSubmit?: () => void;
|
|
8
|
+
onlyAnd?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface PanelItemProps {
|
|
10
11
|
value: TargetConditionTypes.Value;
|
|
11
12
|
onBack?: () => void;
|
|
12
13
|
onChange?: (dimension: TargetConditionTypes.DimensionValue, filters?: AttrConditionTypes.GroupValue) => void;
|
|
14
|
+
onlyAnd?: boolean;
|
|
13
15
|
}
|
|
14
16
|
export declare enum FormulaTypes {
|
|
15
17
|
EVENT = "event",
|
|
@@ -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 { Popover } from 'antd';
|
|
8
8
|
import React, { useEffect, useState } from 'react';
|
|
9
9
|
import './index.less';
|
|
@@ -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, { useMemo, useState } from 'react';
|
|
14
14
|
import { BizFormulaTarget, DemoWrapper } from '@zgfe/business-lib';
|
|
15
15
|
import { Form } from 'antd';
|
|
@@ -91,7 +91,7 @@ export default (function () {
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}));
|
|
94
|
-
}), fields.length < 5 &&
|
|
94
|
+
}), fields.length < 5 && /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement("div", {
|
|
95
95
|
className: "biz-add-btn",
|
|
96
96
|
onClick: function onClick() {
|
|
97
97
|
return onAdd(add);
|
|
@@ -99,6 +99,6 @@ export default (function () {
|
|
|
99
99
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
100
100
|
className: "biz-icon",
|
|
101
101
|
type: 'tianjia1'
|
|
102
|
-
}), "\u6DFB\u52A0\u81EA\u5B9A\u4E49\u6307\u6807")))
|
|
102
|
+
}), "\u6DFB\u52A0\u81EA\u5B9A\u4E49\u6307\u6807")));
|
|
103
103
|
}))));
|
|
104
104
|
});
|
|
@@ -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, { useMemo, useRef, useState } from 'react';
|
|
14
14
|
import './styles/index.less';
|
|
15
15
|
import { Input, Popconfirm, Tooltip } from 'antd';
|
|
@@ -42,13 +42,13 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
|
|
|
42
42
|
condition = _useState8[0],
|
|
43
43
|
setCondition = _useState8[1];
|
|
44
44
|
var _useState9 = useState(false),
|
|
45
|
-
|
|
46
|
-
open =
|
|
47
|
-
setOpen =
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
errorMsg =
|
|
51
|
-
setErrorMsg =
|
|
45
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
46
|
+
open = _useState10[0],
|
|
47
|
+
setOpen = _useState10[1];
|
|
48
|
+
var _useState11 = useState(''),
|
|
49
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
50
|
+
errorMsg = _useState12[0],
|
|
51
|
+
setErrorMsg = _useState12[1];
|
|
52
52
|
var formulaRef = useRef(null);
|
|
53
53
|
var contentChange = useMemo(function () {
|
|
54
54
|
return !_.isEqual(props.value, condition);
|
|
@@ -161,7 +161,7 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
|
|
|
161
161
|
className: "".concat(classPrefix, "-title-panel")
|
|
162
162
|
}, /*#__PURE__*/React.createElement("div", {
|
|
163
163
|
className: "".concat(classPrefix, "-title-content")
|
|
164
|
-
}, isEdit ?
|
|
164
|
+
}, isEdit ? /*#__PURE__*/React.createElement(Input, {
|
|
165
165
|
className: "".concat(classPrefix, "-title-input").concat(isEdit ? ' focused' : ''),
|
|
166
166
|
defaultValue: condition.eventName,
|
|
167
167
|
autoFocus: true,
|
|
@@ -170,20 +170,20 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
|
|
|
170
170
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
171
171
|
onChange: onChangeTemporaryName,
|
|
172
172
|
onPressEnter: onChangeName
|
|
173
|
-
})
|
|
173
|
+
}) : /*#__PURE__*/React.createElement("span", null, condition.eventName)), /*#__PURE__*/React.createElement("div", {
|
|
174
174
|
className: "".concat(classPrefix, "-title-option").concat(isEdit || contentChange ? ' show' : '')
|
|
175
|
-
}, isEdit ?
|
|
175
|
+
}, isEdit ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
176
176
|
className: "primary",
|
|
177
177
|
onClick: onChangeName
|
|
178
178
|
}, "\u786E\u5B9A"), /*#__PURE__*/React.createElement("div", {
|
|
179
179
|
onClick: onCancelChangeName
|
|
180
|
-
}, "\u53D6\u6D88"))
|
|
180
|
+
}, "\u53D6\u6D88")) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
|
|
181
181
|
type: "bianji1",
|
|
182
182
|
className: "".concat(classPrefix, "-title-option-icon"),
|
|
183
183
|
onClick: function onClick() {
|
|
184
184
|
return setIsEdit(true);
|
|
185
185
|
}
|
|
186
|
-
}), contentChange ?
|
|
186
|
+
}), contentChange ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popconfirm, {
|
|
187
187
|
title: errorMsg,
|
|
188
188
|
open: open,
|
|
189
189
|
okText: "\u786E\u5B9A",
|
|
@@ -197,21 +197,22 @@ var BizFormulaTarget = function BizFormulaTarget(props) {
|
|
|
197
197
|
onClick: function onClick(e) {
|
|
198
198
|
return onCancel(e);
|
|
199
199
|
}
|
|
200
|
-
}, "\u53D6\u6D88"))
|
|
200
|
+
}, "\u53D6\u6D88")) : null, /*#__PURE__*/React.createElement("div", {
|
|
201
201
|
className: "delete".concat(!props.enableDelete && !contentChange ? ' disable' : ''),
|
|
202
202
|
onClick: function onClick(e) {
|
|
203
203
|
return onDelete(e);
|
|
204
204
|
}
|
|
205
205
|
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
206
206
|
title: "\u5220\u9664\u6307\u6807"
|
|
207
|
-
}, "\u5220\u9664")))))
|
|
207
|
+
}, "\u5220\u9664"))))), nameError && isEdit ? /*#__PURE__*/React.createElement("div", {
|
|
208
208
|
className: "".concat(classPrefix, "-error")
|
|
209
209
|
}, nameError) : null), /*#__PURE__*/React.createElement(FormulaContainer, {
|
|
210
210
|
ref: formulaRef,
|
|
211
211
|
value: condition.customCondition,
|
|
212
212
|
formula: condition.formula,
|
|
213
213
|
resultFormat: condition.resultFormat,
|
|
214
|
-
onChange: onChange
|
|
214
|
+
onChange: onChange,
|
|
215
|
+
onlyAnd: props.onlyAnd
|
|
215
216
|
}));
|
|
216
217
|
};
|
|
217
218
|
BizFormulaTarget.defaultProps = {
|
package/es/hooks/useBizStore.js
CHANGED
|
@@ -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 { useEffect, useState, useCallback } from 'react';
|
|
14
14
|
import { ajax } from '../utils';
|
|
15
15
|
import Apis from '../constants/apis';
|
|
@@ -32,41 +32,41 @@ function useBizStore(_ref) {
|
|
|
32
32
|
eventGroups = _useState8[0],
|
|
33
33
|
setEventGroups = _useState8[1];
|
|
34
34
|
var _useState9 = useState([]),
|
|
35
|
-
|
|
36
|
-
userProps =
|
|
37
|
-
setUserProps =
|
|
38
|
-
var
|
|
39
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
40
|
-
envList = _useState10[0],
|
|
41
|
-
setEnvList = _useState10[1];
|
|
42
|
-
var _useState11 = useState(true),
|
|
35
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
36
|
+
userProps = _useState10[0],
|
|
37
|
+
setUserProps = _useState10[1];
|
|
38
|
+
var _useState11 = useState([]),
|
|
43
39
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
envList = _useState12[0],
|
|
41
|
+
setEnvList = _useState12[1];
|
|
46
42
|
var _useState13 = useState(true),
|
|
47
43
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
loadEvent = _useState14[0],
|
|
45
|
+
setLoadEvent = _useState14[1];
|
|
50
46
|
var _useState15 = useState(true),
|
|
51
47
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
loadUsers = _useState16[0],
|
|
49
|
+
setLoadUsers = _useState16[1];
|
|
54
50
|
var _useState17 = useState(true),
|
|
55
51
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
loadEnv = _useState18[0],
|
|
53
|
+
setLoadEnv = _useState18[1];
|
|
58
54
|
var _useState19 = useState(true),
|
|
59
55
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
var _useState21 = useState(
|
|
56
|
+
groupLoading = _useState20[0],
|
|
57
|
+
setGroupLoading = _useState20[1];
|
|
58
|
+
var _useState21 = useState(true),
|
|
63
59
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var _useState23 = useState(
|
|
60
|
+
tagLoading = _useState22[0],
|
|
61
|
+
setTagLoading = _useState22[1];
|
|
62
|
+
var _useState23 = useState({}),
|
|
67
63
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
store = _useState24[0],
|
|
65
|
+
setStore = _useState24[1];
|
|
66
|
+
var _useState25 = useState(true),
|
|
67
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
68
|
+
useBizStoreLoading = _useState26[0],
|
|
69
|
+
setUseBizStoreLoading = _useState26[1];
|
|
70
70
|
var queryGroups = useCallback(function () {
|
|
71
71
|
setGroupLoading(true);
|
|
72
72
|
ajax(Apis.queryUserGroup, {
|
package/es/hooks/useChanged.js
CHANGED
|
@@ -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 { useEffect, useState } from 'react';
|
|
8
8
|
import _ from 'lodash';
|
|
9
9
|
function useChanged(callback, dep) {
|
package/es/hooks/useSubject.js
CHANGED
|
@@ -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 { useContext, useState, useCallback, useEffect } from 'react';
|
|
8
8
|
import BizGlobalDataContext from '../context';
|
|
9
9
|
import request from '../utils/ajax';
|