@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,11 +1,11 @@
|
|
|
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, { useContext, useEffect, useState } from 'react';
|
|
8
|
-
import { DemoWrapper, BizTargetFromPanel, BizTargetFromPanelContext } from '@
|
|
8
|
+
import { DemoWrapper, BizTargetFromPanel, BizTargetFromPanelContext } from '@iofe/business-lib';
|
|
9
9
|
import { Button, Spin } from 'antd';
|
|
10
10
|
var params = {
|
|
11
11
|
app_id: 4,
|
|
@@ -1,11 +1,11 @@
|
|
|
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, { useState } from 'react';
|
|
8
|
-
import { BizOptionLayout } from '@
|
|
8
|
+
import { BizOptionLayout } from '@iofe/business-lib';
|
|
9
9
|
import './index.less';
|
|
10
10
|
export default (function () {
|
|
11
11
|
var _useState = useState('报告1'),
|
|
@@ -1,11 +1,11 @@
|
|
|
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, { useContext, useEffect, useState } from 'react';
|
|
8
|
-
import { DemoWrapper, BizTargetFromPanel, BizTargetFromPanelContext } from '@
|
|
8
|
+
import { DemoWrapper, BizTargetFromPanel, BizTargetFromPanelContext } from '@iofe/business-lib';
|
|
9
9
|
import { Button, Spin } from 'antd';
|
|
10
10
|
var params = {
|
|
11
11
|
app_id: 4,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function _toConsumableArray(
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _iterableToArray(
|
|
4
|
-
function _arrayWithoutHoles(
|
|
5
|
-
function _slicedToArray(
|
|
3
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
4
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
5
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
6
6
|
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."); }
|
|
7
|
-
function _unsupportedIterableToArray(
|
|
8
|
-
function _arrayLikeToArray(
|
|
9
|
-
function _iterableToArrayLimit(
|
|
10
|
-
function _arrayWithHoles(
|
|
7
|
+
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); }
|
|
8
|
+
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; }
|
|
9
|
+
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; } }
|
|
10
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import React, { useEffect, useRef, useState } from 'react';
|
|
12
12
|
import BizOptionLayout from './layout';
|
|
13
13
|
import { BizOptionTitleProps, BizTargetFromPanelContext } from './types';
|
|
@@ -19,7 +19,7 @@ import Apis from '../../constants/apis';
|
|
|
19
19
|
import { Spin, message } from 'antd';
|
|
20
20
|
export var classPrefix = 'biz-layout-panel';
|
|
21
21
|
var BizTargetFromPanel = function BizTargetFromPanel(props) {
|
|
22
|
-
var _props$value, _props$
|
|
22
|
+
var _props$value, _props$value10, _props$value$target$p;
|
|
23
23
|
var _useState = useState([]),
|
|
24
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25
25
|
options = _useState2[0],
|
|
@@ -37,9 +37,9 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
|
|
|
37
37
|
saveType = _useState8[0],
|
|
38
38
|
setSaveType = _useState8[1];
|
|
39
39
|
var _useState9 = useState(false),
|
|
40
|
-
|
|
41
|
-
loading =
|
|
42
|
-
setLoading =
|
|
40
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
41
|
+
loading = _useState10[0],
|
|
42
|
+
setLoading = _useState10[1];
|
|
43
43
|
var titleRef = useRef(null);
|
|
44
44
|
useEffect(function () {
|
|
45
45
|
var _props$value2, _props$value3;
|
|
@@ -127,7 +127,7 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
|
|
|
127
127
|
return _toConsumableArray(option);
|
|
128
128
|
});
|
|
129
129
|
};
|
|
130
|
-
if (!((_props$
|
|
130
|
+
if (!((_props$value10 = props.value) === null || _props$value10 === void 0 ? void 0 : _props$value10.panelId)) {
|
|
131
131
|
return /*#__PURE__*/React.createElement("div", {
|
|
132
132
|
className: "".concat(classPrefix, "-content")
|
|
133
133
|
}, props.children);
|
|
@@ -153,14 +153,14 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
|
|
|
153
153
|
return onClick(BizOptionTitleProps.OptionTypes.CANCEL);
|
|
154
154
|
},
|
|
155
155
|
max: 20
|
|
156
|
-
}, props === null || props === void 0 ? void 0 : props.children, showDialog &&
|
|
156
|
+
}, props === null || props === void 0 ? void 0 : props.children, showDialog && /*#__PURE__*/React.createElement(BizAddToPanel, {
|
|
157
157
|
defaultValue: {
|
|
158
158
|
panel: {
|
|
159
159
|
id: props.value.panelId
|
|
160
160
|
},
|
|
161
161
|
name: saveType === BizOptionTitleProps.OptionTypes.SAVE_AS ? title + '(1)' : title,
|
|
162
162
|
chartType: ((_props$value$target$p = props.value.target.params) === null || _props$value$target$p === void 0 ? void 0 : _props$value$target$p.chartType) || 'line',
|
|
163
|
-
showList:
|
|
163
|
+
showList: 'fix'
|
|
164
164
|
},
|
|
165
165
|
type: props.value.target.id && saveType === BizOptionTitleProps.OptionTypes.SAVE ? BizOptionTitleProps.OptionTypes.EDIT : BizOptionTitleProps.OptionTypes.CREATE,
|
|
166
166
|
styleOptions: props.styleOptions,
|
|
@@ -170,6 +170,6 @@ var BizTargetFromPanel = function BizTargetFromPanel(props) {
|
|
|
170
170
|
showOptions: props.showOptions,
|
|
171
171
|
onCancel: onCancel,
|
|
172
172
|
onOk: onPanelSave
|
|
173
|
-
}))))
|
|
173
|
+
}))));
|
|
174
174
|
};
|
|
175
175
|
export default BizTargetFromPanel;
|
|
@@ -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, { useState } from 'react';
|
|
8
8
|
import { IconFont } from '../..';
|
|
9
9
|
import BizEditText from './components/title';
|
|
@@ -26,12 +26,12 @@ var BizOptionLayout = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
26
26
|
className: "".concat(classPrefix, "-header-title")
|
|
27
27
|
}, /*#__PURE__*/React.createElement("div", {
|
|
28
28
|
className: "".concat(classPrefix, "-header-title-text")
|
|
29
|
-
}, props.backExtra ||
|
|
29
|
+
}, props.backExtra || /*#__PURE__*/React.createElement("a", {
|
|
30
30
|
onClick: props.onBack,
|
|
31
31
|
className: "".concat(classPrefix, "-header-title-btn")
|
|
32
32
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
33
33
|
type: "fanhuiicon"
|
|
34
|
-
}), "\u8FD4\u56DE"))
|
|
34
|
+
}), "\u8FD4\u56DE")), props.canEdit && /*#__PURE__*/React.createElement(BizEditText, {
|
|
35
35
|
ref: ref,
|
|
36
36
|
name: props.name,
|
|
37
37
|
value: props.value,
|
|
@@ -40,7 +40,7 @@ var BizOptionLayout = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
40
40
|
canEdit: props.canEdit,
|
|
41
41
|
onChange: props.onChange,
|
|
42
42
|
onService: props.onService
|
|
43
|
-
})
|
|
43
|
+
}), props.canEdit && /*#__PURE__*/React.createElement(Popover, {
|
|
44
44
|
overlayClassName: "".concat(classPrefix, "-panel-content"),
|
|
45
45
|
arrowPointAtCenter: true,
|
|
46
46
|
open: show,
|
|
@@ -60,7 +60,7 @@ var BizOptionLayout = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
60
60
|
}
|
|
61
61
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
62
62
|
type: "xiangxia"
|
|
63
|
-
})))))
|
|
63
|
+
}))))), props.extra, /*#__PURE__*/React.createElement(BizBtnMenu, {
|
|
64
64
|
className: props.optionClass,
|
|
65
65
|
menu: props.options || []
|
|
66
66
|
})), props.children && /*#__PURE__*/React.createElement("div", {
|
package/es/loading/demo/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BizLoading } from '@
|
|
1
|
+
import { BizLoading } from '@iofe/business-lib';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import '@
|
|
3
|
+
import '@iofe/business-lib/es/assets/styles/resetAntd.less';
|
|
4
4
|
export default (function () {
|
|
5
5
|
return /*#__PURE__*/React.createElement("div", {
|
|
6
6
|
style: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BizLoginForm } from '@
|
|
2
|
+
import { BizLoginForm } from '@iofe/business-lib';
|
|
3
3
|
export default (function () {
|
|
4
4
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizLoginForm, null));
|
|
5
5
|
});
|
package/es/loginForm/index.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 { Button, Form, Input } from 'antd';
|
|
8
8
|
import React, { useState } from 'react';
|
|
9
9
|
import request from '../utils/ajax';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BizPlatformSelector } from '@
|
|
2
|
+
import { BizPlatformSelector } from '@iofe/business-lib';
|
|
3
3
|
import InnerDemo from '../../demoWrapper/innerDemo';
|
|
4
4
|
export default (function () {
|
|
5
5
|
return /*#__PURE__*/React.createElement(InnerDemo, null, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1,11 +1,11 @@
|
|
|
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, { useState, useEffect, useContext } from 'react';
|
|
8
|
-
import { BizSelect } from '@
|
|
8
|
+
import { BizSelect } from '@iofe/business-lib';
|
|
9
9
|
import './styles/index.less';
|
|
10
10
|
import request from '../utils/ajax';
|
|
11
11
|
import Apis from '../constants/apis';
|
|
@@ -6,8 +6,5 @@ export interface ConditionTypeListPropsI {
|
|
|
6
6
|
label?: string | React.ReactNode;
|
|
7
7
|
show?: boolean;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
defaultProps?: Partial<P>;
|
|
11
|
-
};
|
|
12
|
-
declare const ConditionTypeList: FCWithDefaultProps<ConditionTypeListPropsI>;
|
|
9
|
+
declare const ConditionTypeList: React.FC<ConditionTypeListPropsI>;
|
|
13
10
|
export default ConditionTypeList;
|
|
@@ -39,11 +39,11 @@ var ConditionTypeList = function ConditionTypeList(props) {
|
|
|
39
39
|
onClick: function onClick() {
|
|
40
40
|
return onAdd('cdp_csh');
|
|
41
41
|
}
|
|
42
|
-
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u660E\u7EC6\u6570\u636E"), cdpTip ?
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(PlusOutlined, null), /*#__PURE__*/React.createElement("span", null, "\u660E\u7EC6\u6570\u636E"), cdpTip ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
43
43
|
title: cdpTip
|
|
44
44
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
45
45
|
type: "tishiicon"
|
|
46
|
-
}))
|
|
46
|
+
})) : null))));
|
|
47
47
|
};
|
|
48
48
|
ConditionTypeList.defaultProps = {
|
|
49
49
|
show: true
|
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
function _unsupportedIterableToArray(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
9
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import BizSelect from '../../select';
|
|
15
15
|
import { PropType } from '../types';
|
|
16
16
|
import './styles/cdpCshCondition.less';
|
|
17
17
|
import _ from 'lodash';
|
|
18
|
-
import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2
|
|
18
|
+
import { dateOperate, numberOperateCsh, numberTypeCsh, stringOperate, numberOperateCsh2 } from '../../attrConditions/utils/operates';
|
|
19
19
|
import { DatePicker, Input } from 'antd';
|
|
20
20
|
import moment from 'moment';
|
|
21
21
|
import { BizUserConditionContext } from '..';
|
|
22
22
|
import request from '../../utils/ajax';
|
|
23
23
|
import Apis from '../../constants/apis';
|
|
24
|
-
import BizGlobalDataContext from '../../context';
|
|
25
24
|
var classPrefix = 'biz-user-condition-cdp-csh';
|
|
26
25
|
var CdpConditionItem = function CdpConditionItem(props) {
|
|
27
|
-
var _useContext = useContext(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_useContext2$datasetL = _useContext2.datasetList,
|
|
31
|
-
datasetList = _useContext2$datasetL === void 0 ? [] : _useContext2$datasetL;
|
|
26
|
+
var _useContext = useContext(BizUserConditionContext),
|
|
27
|
+
_useContext$datasetLi = _useContext.datasetList,
|
|
28
|
+
datasetList = _useContext$datasetLi === void 0 ? [] : _useContext$datasetLi;
|
|
32
29
|
var _useState = useState(function () {
|
|
33
30
|
if (props.value) {
|
|
34
31
|
return _objectSpread(_objectSpread({}, props.value), {}, {
|
|
@@ -54,41 +51,41 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
54
51
|
field = _useState8[0],
|
|
55
52
|
setField = _useState8[1];
|
|
56
53
|
var _useState9 = useState(),
|
|
57
|
-
|
|
58
|
-
subField =
|
|
59
|
-
setSubField =
|
|
60
|
-
var _useState1 = useState(),
|
|
61
|
-
_useState10 = _slicedToArray(_useState1, 2),
|
|
62
|
-
operator = _useState10[0],
|
|
63
|
-
setOperator = _useState10[1];
|
|
54
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
55
|
+
subField = _useState10[0],
|
|
56
|
+
setSubField = _useState10[1];
|
|
64
57
|
var _useState11 = useState(),
|
|
65
58
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
operator = _useState12[0],
|
|
60
|
+
setOperator = _useState12[1];
|
|
68
61
|
var _useState13 = useState(),
|
|
69
62
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
70
|
-
|
|
71
|
-
|
|
63
|
+
subOperator = _useState14[0],
|
|
64
|
+
setSubOperator = _useState14[1];
|
|
72
65
|
var _useState15 = useState(),
|
|
73
66
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
calculate = _useState16[0],
|
|
68
|
+
setCalculate = _useState16[1];
|
|
76
69
|
var _useState17 = useState(),
|
|
77
70
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
var _useState19 = useState(
|
|
71
|
+
subcalculate = _useState18[0],
|
|
72
|
+
setSubCalculate = _useState18[1];
|
|
73
|
+
var _useState19 = useState(),
|
|
81
74
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
fieldValue = _useState20[0],
|
|
76
|
+
setFieldValue = _useState20[1];
|
|
84
77
|
var _useState21 = useState([]),
|
|
85
78
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
var _useState23 = useState(
|
|
79
|
+
fieldList = _useState22[0],
|
|
80
|
+
setFieldList = _useState22[1];
|
|
81
|
+
var _useState23 = useState([]),
|
|
89
82
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
subFieldList = _useState24[0],
|
|
84
|
+
setSubFieldList = _useState24[1];
|
|
85
|
+
var _useState25 = useState(true),
|
|
86
|
+
_useState26 = _slicedToArray(_useState25, 2),
|
|
87
|
+
isFirst = _useState26[0],
|
|
88
|
+
setIsFirst = _useState26[1];
|
|
92
89
|
useEffect(function () {
|
|
93
90
|
if (!props.value) {
|
|
94
91
|
setIsFirst(false);
|
|
@@ -290,7 +287,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
290
287
|
list = numberOperateCsh;
|
|
291
288
|
break;
|
|
292
289
|
case PropType.STRING2:
|
|
293
|
-
list =
|
|
290
|
+
list = stringOperate;
|
|
294
291
|
break;
|
|
295
292
|
default:
|
|
296
293
|
list = [];
|
|
@@ -302,7 +299,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
302
299
|
var optionList = getOptions(field.webType);
|
|
303
300
|
return /*#__PURE__*/React.createElement("div", {
|
|
304
301
|
className: "".concat(classPrefix, "-condition-group")
|
|
305
|
-
}, field.webType === PropType.NUMBER2 &&
|
|
302
|
+
}, field.webType === PropType.NUMBER2 && /*#__PURE__*/React.createElement(BizSelect, {
|
|
306
303
|
className: "".concat(classPrefix, "-select-condition"),
|
|
307
304
|
options: numberTypeCsh,
|
|
308
305
|
labelField: "name",
|
|
@@ -312,12 +309,12 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
312
309
|
onChange: function onChange(v) {
|
|
313
310
|
onCalculateChange(v);
|
|
314
311
|
}
|
|
315
|
-
})
|
|
312
|
+
}), /*#__PURE__*/React.createElement(BizSelect, {
|
|
316
313
|
className: "".concat(classPrefix, "-select-condition"),
|
|
317
314
|
options: optionList,
|
|
318
315
|
labelField: "name",
|
|
319
316
|
keyField: "value",
|
|
320
|
-
overlayWidth:
|
|
317
|
+
overlayWidth: 96,
|
|
321
318
|
value: operator,
|
|
322
319
|
onChange: function onChange(v) {
|
|
323
320
|
onOperateChange(v);
|
|
@@ -457,7 +454,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
457
454
|
e.persist();
|
|
458
455
|
setFieldValue([e.target.value, fieldValue && fieldValue[1] || '']);
|
|
459
456
|
}
|
|
460
|
-
}), (subOperator === null || subOperator === void 0 ? void 0 : subOperator.value) === 'between' &&
|
|
457
|
+
}), (subOperator === null || subOperator === void 0 ? void 0 : subOperator.value) === 'between' && /*#__PURE__*/React.createElement(Input, {
|
|
461
458
|
type: "number",
|
|
462
459
|
className: "".concat(classPrefix, "-value"),
|
|
463
460
|
value: fieldValue && fieldValue[1],
|
|
@@ -466,7 +463,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
466
463
|
e.persist();
|
|
467
464
|
setFieldValue([fieldValue && fieldValue[0] || '', e.target.value]);
|
|
468
465
|
}
|
|
469
|
-
}))))
|
|
466
|
+
}))));
|
|
470
467
|
}
|
|
471
468
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
472
469
|
className: "".concat(classPrefix, "-content")
|
|
@@ -480,7 +477,7 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
480
477
|
onChange: function onChange(v) {
|
|
481
478
|
return onTableChange(v);
|
|
482
479
|
}
|
|
483
|
-
}), dataset ?
|
|
480
|
+
}), dataset ? /*#__PURE__*/React.createElement("div", {
|
|
484
481
|
className: "".concat(classPrefix, "-item")
|
|
485
482
|
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
486
483
|
className: "".concat(classPrefix, "-select-field"),
|
|
@@ -493,18 +490,18 @@ var CdpConditionItem = function CdpConditionItem(props) {
|
|
|
493
490
|
onChange: function onChange(v) {
|
|
494
491
|
return onFieldChange(v);
|
|
495
492
|
}
|
|
496
|
-
}), renderByType())
|
|
493
|
+
}), renderByType()) : null), ['add', 'subtraction', 'multiplication', 'division'].includes((operator === null || operator === void 0 ? void 0 : operator.value) || '') && /*#__PURE__*/React.createElement("div", {
|
|
497
494
|
className: "".concat(classPrefix, "-content")
|
|
498
|
-
}, renderSubCondition()))
|
|
495
|
+
}, renderSubCondition()));
|
|
499
496
|
};
|
|
500
497
|
var CdpCondition = function CdpCondition(props) {
|
|
501
498
|
var dataId = props.dataId,
|
|
502
499
|
defaultValue = props.defaultValue,
|
|
503
500
|
onChange = props.onChange;
|
|
504
|
-
var
|
|
505
|
-
|
|
506
|
-
cdpConditions =
|
|
507
|
-
setCdpConditions =
|
|
501
|
+
var _useState27 = useState([undefined]),
|
|
502
|
+
_useState28 = _slicedToArray(_useState27, 2),
|
|
503
|
+
cdpConditions = _useState28[0],
|
|
504
|
+
setCdpConditions = _useState28[1];
|
|
508
505
|
useEffect(function () {
|
|
509
506
|
if (defaultValue && defaultValue.data_set_csh) {
|
|
510
507
|
setCdpConditions(defaultValue.data_set_csh);
|