@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,22 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
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."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _arrayLikeToArray(
|
|
6
|
-
function _iterableToArrayLimit(
|
|
7
|
-
function _arrayWithHoles(
|
|
8
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
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; }
|
|
10
7
|
import React, { useEffect, useRef, useState } from 'react';
|
|
11
8
|
import { BizAttrConditionGroup, IconFont } from '../../..';
|
|
12
9
|
import BizTargetDimension from '../../../targetConditionGroup/components/targetDimension';
|
|
13
10
|
import './index.less';
|
|
14
11
|
import { classPrefix } from '.';
|
|
15
12
|
import { filterData } from './data';
|
|
16
|
-
var PanelItem = function PanelItem(
|
|
17
|
-
var _ref$onlyAnd = _ref.onlyAnd,
|
|
18
|
-
onlyAnd = _ref$onlyAnd === void 0 ? true : _ref$onlyAnd,
|
|
19
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
13
|
+
var PanelItem = function PanelItem(props) {
|
|
20
14
|
var prefix = "".concat(classPrefix, "-detail");
|
|
21
15
|
var _useState = useState(props.value.analysisDimension),
|
|
22
16
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -55,28 +49,27 @@ var PanelItem = function PanelItem(_ref) {
|
|
|
55
49
|
className: "".concat(prefix, "-title-left-icon"),
|
|
56
50
|
type: "fanhuiicon",
|
|
57
51
|
onClick: onBack
|
|
58
|
-
}), /*#__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, {
|
|
59
53
|
eventId: props.value.eventId,
|
|
60
54
|
value: props.value.analysisDimension,
|
|
61
55
|
onChange: onChangeDimension
|
|
62
|
-
})
|
|
56
|
+
}) : null), count < 5 ? /*#__PURE__*/React.createElement("div", {
|
|
63
57
|
className: "".concat(prefix, "-title-right"),
|
|
64
58
|
onClick: onAdd
|
|
65
59
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
66
60
|
type: "shaixuan"
|
|
67
|
-
}), /*#__PURE__*/React.createElement("span", null, "\u7B5B\u9009"))
|
|
61
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u7B5B\u9009")) : null), /*#__PURE__*/React.createElement("div", {
|
|
68
62
|
className: "".concat(prefix, "-content")
|
|
69
63
|
}, /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
|
|
70
64
|
ref: conditionRef,
|
|
71
65
|
value: filterList,
|
|
72
|
-
showHandle:
|
|
66
|
+
showHandle: false,
|
|
73
67
|
enableDelete: true,
|
|
74
68
|
enableEventProp: true,
|
|
75
69
|
enableEnvProp: true,
|
|
76
70
|
enableUserProp: true,
|
|
77
71
|
eventIdList: [props.value.eventId],
|
|
78
72
|
onChange: setFilterList,
|
|
79
|
-
onlyAnd: onlyAnd,
|
|
80
73
|
onConditionsCount: setCount
|
|
81
74
|
})));
|
|
82
75
|
};
|
|
@@ -5,13 +5,11 @@ export interface FormulaPanelProps {
|
|
|
5
5
|
onChange?: (data?: FormulaContainerTypes.Value) => void;
|
|
6
6
|
onDelete?: () => void;
|
|
7
7
|
onSubmit?: () => void;
|
|
8
|
-
onlyAnd?: boolean;
|
|
9
8
|
}
|
|
10
9
|
export interface PanelItemProps {
|
|
11
10
|
value: TargetConditionTypes.Value;
|
|
12
11
|
onBack?: () => void;
|
|
13
12
|
onChange?: (dimension: TargetConditionTypes.DimensionValue, filters?: AttrConditionTypes.GroupValue) => void;
|
|
14
|
-
onlyAnd?: boolean;
|
|
15
13
|
}
|
|
16
14
|
export declare enum FormulaTypes {
|
|
17
15
|
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,19 +1,19 @@
|
|
|
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
|
-
import { BizFormulaTarget, DemoWrapper } from '@
|
|
14
|
+
import { BizFormulaTarget, DemoWrapper } from '@iofe/business-lib';
|
|
15
15
|
import { Form } from 'antd';
|
|
16
|
-
import { IconFont } from '@
|
|
16
|
+
import { IconFont } from '@iofe/business-lib';
|
|
17
17
|
export default (function () {
|
|
18
18
|
var _useState = useState({
|
|
19
19
|
targets: []
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BizFormulaTarget, DemoWrapper } from '@
|
|
2
|
+
import { BizFormulaTarget, DemoWrapper } from '@iofe/business-lib';
|
|
3
3
|
export default (function () {
|
|
4
4
|
var onChange = function onChange(data) {
|
|
5
5
|
console.log('BizFormulaTarget:', data);
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './styles/index.less';
|
|
3
3
|
import { BizFormulaTargetTypes } from './types';
|
|
4
|
-
|
|
5
|
-
defaultProps?: Partial<P>;
|
|
6
|
-
};
|
|
7
|
-
declare const BizFormulaTarget: FCWithDefaultProps<BizFormulaTargetTypes.Props>;
|
|
4
|
+
declare const BizFormulaTarget: React.FC<BizFormulaTargetTypes.Props>;
|
|
8
5
|
export default BizFormulaTarget;
|
|
@@ -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,22 +197,21 @@ 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
|
|
215
|
-
onlyAnd: props.onlyAnd
|
|
214
|
+
onChange: onChange
|
|
216
215
|
}));
|
|
217
216
|
};
|
|
218
217
|
BizFormulaTarget.defaultProps = {
|
package/es/hooks/useBizStore.js
CHANGED
|
@@ -1,20 +1,19 @@
|
|
|
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';
|
|
16
16
|
import convertAttributeData from '../attributeSelector/util';
|
|
17
|
-
import { eventApi } from '../utils';
|
|
18
17
|
function useBizStore(_ref) {
|
|
19
18
|
var currentApp = _ref.currentApp;
|
|
20
19
|
var _useState = useState([]),
|
|
@@ -33,41 +32,41 @@ function useBizStore(_ref) {
|
|
|
33
32
|
eventGroups = _useState8[0],
|
|
34
33
|
setEventGroups = _useState8[1];
|
|
35
34
|
var _useState9 = useState([]),
|
|
36
|
-
|
|
37
|
-
userProps =
|
|
38
|
-
setUserProps =
|
|
39
|
-
var
|
|
40
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
41
|
-
envList = _useState10[0],
|
|
42
|
-
setEnvList = _useState10[1];
|
|
43
|
-
var _useState11 = useState(true),
|
|
35
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
36
|
+
userProps = _useState10[0],
|
|
37
|
+
setUserProps = _useState10[1];
|
|
38
|
+
var _useState11 = useState([]),
|
|
44
39
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
envList = _useState12[0],
|
|
41
|
+
setEnvList = _useState12[1];
|
|
47
42
|
var _useState13 = useState(true),
|
|
48
43
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
loadEvent = _useState14[0],
|
|
45
|
+
setLoadEvent = _useState14[1];
|
|
51
46
|
var _useState15 = useState(true),
|
|
52
47
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
loadUsers = _useState16[0],
|
|
49
|
+
setLoadUsers = _useState16[1];
|
|
55
50
|
var _useState17 = useState(true),
|
|
56
51
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
loadEnv = _useState18[0],
|
|
53
|
+
setLoadEnv = _useState18[1];
|
|
59
54
|
var _useState19 = useState(true),
|
|
60
55
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
var _useState21 = useState(
|
|
56
|
+
groupLoading = _useState20[0],
|
|
57
|
+
setGroupLoading = _useState20[1];
|
|
58
|
+
var _useState21 = useState(true),
|
|
64
59
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
var _useState23 = useState(
|
|
60
|
+
tagLoading = _useState22[0],
|
|
61
|
+
setTagLoading = _useState22[1];
|
|
62
|
+
var _useState23 = useState({}),
|
|
68
63
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
69
|
-
|
|
70
|
-
|
|
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];
|
|
71
70
|
var queryGroups = useCallback(function () {
|
|
72
71
|
setGroupLoading(true);
|
|
73
72
|
ajax(Apis.queryUserGroup, {
|
|
@@ -102,8 +101,15 @@ function useBizStore(_ref) {
|
|
|
102
101
|
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
|
103
102
|
var loadEvents = useCallback(function () {
|
|
104
103
|
setLoadEvent(true);
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
ajax('/zg/web/v2/data/queryEventMetasOfGroup', {
|
|
105
|
+
method: 'post',
|
|
106
|
+
data: {
|
|
107
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
108
|
+
platform: 0,
|
|
109
|
+
isAll: true
|
|
110
|
+
}
|
|
111
|
+
}).then(function (res) {
|
|
112
|
+
setEventGroups(res.data);
|
|
107
113
|
setLoadEvent(false);
|
|
108
114
|
});
|
|
109
115
|
}, [currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId]);
|
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';
|
package/es/icon/demo/index.js
CHANGED
package/es/icon/demo/list.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as json from '../../assets/iconfont/iconfont.json';
|
|
3
|
-
import { IconFont } from '@
|
|
3
|
+
import { IconFont } from '@iofe/business-lib';
|
|
4
4
|
import styles from './list.less';
|
|
5
5
|
import { Typography } from 'antd';
|
|
6
6
|
export default (function () {
|
package/es/icon/iconFont.d.ts
CHANGED
|
@@ -6,8 +6,5 @@ interface Props extends IconFontProps {
|
|
|
6
6
|
size?: number;
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
defaultProps?: Partial<P>;
|
|
11
|
-
};
|
|
12
|
-
declare const IconFont: FCWithDefaultProps<Props>;
|
|
9
|
+
declare const IconFont: React.FC<Props>;
|
|
13
10
|
export default IconFont;
|
package/es/icon/iconFont.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
function _typeof(
|
|
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
2
|
var _excluded = ["className", "type", "family"];
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
5
|
-
function _defineProperty(
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
8
|
-
function _objectWithoutProperties(
|
|
9
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
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; }
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
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); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
10
|
import React, { useMemo } from 'react';
|
|
11
11
|
import '../assets/iconfont/iconfont.css';
|
|
12
12
|
var IconFont = function IconFont(props) {
|
package/es/index.d.ts
CHANGED
|
@@ -54,8 +54,7 @@ import BizDatePickerV2 from './datePickerV2';
|
|
|
54
54
|
import SubjectWrapper from './subjectWrapper';
|
|
55
55
|
import StyleList from './addToPanel/components/styleList';
|
|
56
56
|
import BizEditText from './layout/optionTitle/components/title';
|
|
57
|
-
|
|
58
|
-
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, BizAmountSelector, SubjectWrapper, StyleList, BizEditText, ValuesList, };
|
|
57
|
+
export { BizTargetDimension, BizTargetFromPanel, BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizLayout, BizAnalysisLayout, BizDetailLayout, BizUserGroup, BizUserGroupHeader, IconFont, ColorIcon, BizFormulaTarget, BizAUMFormulaTarget, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetFromPanelContext, BizTargetCondition, BizDatePicker, BizQuickDatePicker, BizLoading, BizEmpty, BizConditionItem, BizConditionGroup, BizAttrCondition, BizAttrConditionGroup, BizUserCondition, BizProductCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, BizLoginForm, DemoWrapper, SocketClient, ajax, util, base64, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, chartColors, useBizStore, useChanged, useSubject, DataSetGroup, BizDatePickerV2, BizPlatformSelector, BizAmountSelector, SubjectWrapper, StyleList, BizEditText, };
|
|
59
58
|
export type { UserGroupTypes } from './userGroup/types';
|
|
60
59
|
export type { BizProductConditionT } from './productCondition/types';
|
|
61
60
|
export type { BizSelectTypes } from './select/types';
|