@zgfe/business-lib 1.2.71-hxd.1 → 1.2.71-hxd.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/AUMFormulaTarget/components/formula/index.js +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 +13 -13
- package/es/AUMFormulaTarget/index.js +11 -11
- package/es/addToPanel/components/addPanel.js +5 -5
- package/es/addToPanel/components/numberChart.js +5 -5
- package/es/addToPanel/components/styleList.js +5 -5
- package/es/addToPanel/components/wholeChart.js +5 -5
- package/es/addToPanel/demo/edit.js +7 -7
- package/es/addToPanel/demo/index.js +7 -7
- package/es/addToPanel/index.js +21 -21
- package/es/addToScene/demo/index.js +7 -7
- package/es/addToScene/index.js +8 -8
- package/es/assets/demo/dropdown.js +5 -5
- package/es/assets/demo/input.js +5 -5
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/group.js +4 -4
- package/es/attrCondition/index.js +11 -11
- package/es/attrCondition/useAttrCondition.js +7 -7
- package/es/attrCondition/useConditionGroup.js +8 -8
- package/es/attrConditions/components/operateList.js +10 -10
- package/es/attrConditions/components/stringList.js +21 -22
- package/es/attrConditions/components/valuesList.js +5 -5
- package/es/attrConditions/demo/group.js +7 -7
- package/es/attrConditions/demo/index.js +5 -5
- package/es/attrConditions/group.js +3 -3
- package/es/attributeSelector/demo/disable.js +5 -5
- package/es/attributeSelector/demo/extra.js +5 -5
- package/es/attributeSelector/demo/funnel.js +5 -5
- package/es/attributeSelector/demo/index.js +5 -5
- package/es/attributeSelector/index.js +32 -26
- package/es/attributeSelector/listPanel.js +124 -129
- package/es/chart/demo/index.js +5 -5
- package/es/chart/demo/line_bar_stack.js +21 -21
- package/es/chart/demo/stack.js +5 -5
- package/es/chart/index.js +11 -11
- 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/constants/common.js +5 -5
- package/es/context/index.js +3 -1
- package/es/cycleTime/demo/hour.js +5 -5
- package/es/cycleTime/index.js +16 -16
- package/es/cycleTime/month.js +7 -7
- package/es/dataSetGroup/index.js +5 -5
- package/es/dataSetGroup/overlay.js +10 -10
- package/es/datePicker/datePicker.js +8 -8
- package/es/datePicker/demo/customType.js +5 -5
- package/es/datePicker/demo/day.js +5 -5
- package/es/datePicker/demo/index.js +5 -5
- package/es/datePicker/index.js +19 -19
- package/es/datePicker/shortcut.js +5 -5
- package/es/datePickerV2/datePicker.d.ts +1 -1
- package/es/datePickerV2/datePicker.js +12 -9
- package/es/datePickerV2/demo/customType.js +5 -5
- package/es/datePickerV2/demo/day.js +5 -5
- package/es/datePickerV2/demo/index.js +5 -5
- package/es/datePickerV2/index.js +27 -22
- package/es/datePickerV2/popoverContent.d.ts +1 -1
- package/es/datePickerV2/popoverContent.js +8 -8
- package/es/datePickerV2/shortcut.js +7 -7
- package/es/datePickerV2/types.d.ts +2 -1
- package/es/datePickerV2/types.js +1 -0
- package/es/datePickerV2/utils.js +17 -1
- package/es/demoWrapper/content.js +37 -37
- package/es/demoWrapper/index.js +15 -15
- package/es/dialog/demo/index.js +5 -5
- package/es/dialog/index.js +6 -6
- package/es/dnd/demo/data.js +5 -5
- package/es/dnd/demo/handle.js +5 -5
- package/es/dnd/index.js +10 -11
- package/es/dnd/item.js +6 -6
- package/es/empty/index.js +6 -6
- package/es/eventSelector/demo/index.js +5 -5
- package/es/eventSelector/demo/multiple.js +5 -5
- package/es/eventSelector/index.js +7 -7
- package/es/eventSelector/listPanel.js +33 -33
- package/es/eventSelector/option.js +3 -3
- package/es/formulaTarget/components/formula/index.js +7 -7
- package/es/formulaTarget/components/formula/util.js +6 -6
- package/es/formulaTarget/components/formulaItem/index.js +21 -21
- package/es/formulaTarget/components/panel/index.js +32 -32
- package/es/formulaTarget/components/panel/item.js +17 -14
- package/es/formulaTarget/components/symbol/index.js +5 -5
- package/es/formulaTarget/demo/group.js +13 -13
- package/es/formulaTarget/index.js +25 -25
- package/es/hooks/useBizStore.js +35 -35
- package/es/hooks/useChanged.js +5 -5
- package/es/hooks/useSubject.js +5 -5
- package/es/icon/iconFont.js +8 -8
- package/es/layout/analysisLayout/index.js +8 -8
- package/es/layout/columnLayout/demo/data.js +9 -9
- package/es/layout/columnLayout/demo/index.js +5 -5
- package/es/layout/columnLayout/demo/panel.js +5 -5
- package/es/layout/columnLayout/index.js +10 -10
- package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
- package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
- package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
- package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
- package/es/layout/optionTitle/components/title/demo.js +5 -5
- package/es/layout/optionTitle/components/title/index.js +11 -11
- package/es/layout/optionTitle/demo/index.js +5 -5
- package/es/layout/optionTitle/demo/layout.js +5 -5
- package/es/layout/optionTitle/demo/panelCreate.js +5 -5
- package/es/layout/optionTitle/index.js +15 -15
- package/es/layout/optionTitle/layout.js +9 -9
- package/es/loginForm/index.js +5 -5
- package/es/platformSelector/index.js +5 -5
- package/es/productCondition/conditionTypeList.js +2 -2
- package/es/productCondition/conditions/cdpCshCondition.js +45 -45
- package/es/productCondition/conditions/eventCondition.js +8 -8
- package/es/productCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/productCondition/conditions/periodCondition.js +8 -8
- package/es/productCondition/conditions/propCondition.js +14 -14
- package/es/productCondition/conditions/runTimesCondition.js +6 -6
- package/es/productCondition/conditions/textDesc.js +6 -6
- package/es/productCondition/conditions/timeDimension.js +18 -18
- package/es/productCondition/demo/business.js +5 -5
- package/es/productCondition/demo/index.js +5 -5
- package/es/productCondition/index.js +17 -17
- package/es/productCondition/orConditions.js +8 -8
- package/es/productCondition/relationLabel.js +2 -2
- package/es/productCondition/util.js +6 -6
- package/es/quickDatePicker/demo/index.js +11 -11
- package/es/quickDatePicker/index.js +33 -35
- package/es/select/demo/children.js +5 -5
- package/es/select/demo/group.js +5 -5
- package/es/select/demo/index.js +5 -5
- package/es/select/demo/loading.js +5 -5
- package/es/select/demo/multiple.js +5 -5
- package/es/select/handle.js +12 -12
- package/es/select/index.js +16 -17
- package/es/select/option.js +13 -13
- package/es/select/overlay.js +16 -17
- package/es/socket/demo/demo.js +8 -8
- package/es/socket/index.js +23 -26
- package/es/subjectWrapper/index.js +13 -13
- package/es/table/demo/index.js +15 -15
- package/es/table/demo/index2.js +5 -5
- package/es/table/demo/index3.js +8 -8
- package/es/table/index.js +8 -8
- package/es/targetConditionGroup/components/targetDimension.js +65 -66
- package/es/targetConditionGroup/demo/group.js +13 -13
- package/es/targetConditionGroup/demo/index.js +5 -5
- package/es/targetConditionGroup/index.js +32 -32
- package/es/targetSelector/demo/index.js +5 -5
- package/es/targetSelector/editBox.js +5 -5
- package/es/targetSelector/index.js +7 -7
- 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 +27 -27
- package/es/userCondition/conditions/cdpCshCondition.js +45 -45
- package/es/userCondition/conditions/dataAttribute.js +11 -11
- package/es/userCondition/conditions/eventCondition.js +17 -17
- package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/userCondition/conditions/periodCondition.js +10 -10
- package/es/userCondition/conditions/propCondition.js +18 -20
- package/es/userCondition/conditions/runTimesCondition.js +6 -6
- package/es/userCondition/conditions/tagsCondition.js +11 -11
- package/es/userCondition/conditions/textDesc.js +14 -14
- package/es/userCondition/conditions/timeDimension.js +18 -18
- package/es/userCondition/demo/business.js +5 -5
- package/es/userCondition/demo/index.js +5 -5
- package/es/userCondition/index.js +67 -64
- package/es/userCondition/orConditions.js +8 -8
- package/es/userCondition/relationLabel.js +2 -2
- package/es/userCondition/util.js +6 -6
- package/es/userGroup/demo/group.js +13 -13
- package/es/userGroup/demo/index.js +7 -7
- package/es/userGroup/index.js +9 -10
- package/es/userGroup/overlay.js +15 -15
- package/es/userGroupHeader/index.js +10 -10
- package/es/userTagsSelector/cascaderOverlay.js +27 -27
- package/es/userTagsSelector/components/tagList/index.js +5 -5
- package/es/userTagsSelector/demo/index.js +5 -5
- package/es/userTagsSelector/groups/index.js +5 -5
- package/es/userTagsSelector/index.js +13 -13
- package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
- package/es/utils/ajax.js +47 -50
- package/es/utils/demo/interruption.js +5 -5
- package/es/utils/eventApi.js +50 -58
- package/es/utils/type.js +6 -6
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _toConsumableArray(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
8
8
|
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."); }
|
|
9
|
-
function _iterableToArray(
|
|
10
|
-
function _arrayWithoutHoles(
|
|
11
|
-
function _slicedToArray(
|
|
9
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
10
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
12
|
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."); }
|
|
13
|
-
function _unsupportedIterableToArray(
|
|
14
|
-
function _arrayLikeToArray(
|
|
15
|
-
function _iterableToArrayLimit(
|
|
16
|
-
function _arrayWithHoles(
|
|
13
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
17
|
import React, { useEffect, useState } from 'react';
|
|
18
18
|
import { BizChart } from '@zgfe/business-lib';
|
|
19
19
|
import data from './data/data5';
|
|
@@ -44,13 +44,13 @@ export default (function () {
|
|
|
44
44
|
legendToType = _useState8[0],
|
|
45
45
|
setLegendToType = _useState8[1];
|
|
46
46
|
var _useState9 = useState({}),
|
|
47
|
-
|
|
48
|
-
legendToColor =
|
|
49
|
-
setLegendToColor =
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
selectLegendArr =
|
|
53
|
-
setSelectLegendArr =
|
|
47
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
48
|
+
legendToColor = _useState0[0],
|
|
49
|
+
setLegendToColor = _useState0[1];
|
|
50
|
+
var _useState1 = useState([]),
|
|
51
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
52
|
+
selectLegendArr = _useState10[0],
|
|
53
|
+
setSelectLegendArr = _useState10[1];
|
|
54
54
|
useEffect(function () {
|
|
55
55
|
setSelectLegendArr(Object.keys(legendObj).filter(function (item) {
|
|
56
56
|
return !legendObj[item].isHide;
|
package/es/chart/demo/stack.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useRef, useState } from 'react';
|
|
8
8
|
import { BizChart } from '@zgfe/business-lib';
|
|
9
9
|
import chartData from './data/data7';
|
package/es/chart/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import React, { useEffect, useImperativeHandle, useState } from 'react';
|
|
14
14
|
import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
15
15
|
import * as echarts from 'echarts';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import { tooltipFormatterDefault, xAxisFormatterDefault, yAxisFormatterDefault, mapTooltipFormatter, legendFormatterDefault, tooltipFormatterItemDefault } from './formatOption';
|
|
8
8
|
import { chartColors } from './color';
|
|
9
9
|
import '../styles/index.less';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
/*
|
|
3
3
|
* Licensed to the Apache Software Foundation (ASF) under one
|
|
4
4
|
* or more contributor license agreements. See the NOTICE file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import util from '../../utils/util';
|
|
8
8
|
import { chartColors } from './color';
|
|
9
9
|
export var formatPieData = function formatPieData(data, showAll, showList, showOther) {
|
package/es/chart/util/mapUtil.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function _toConsumableArray(
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
3
|
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."); }
|
|
4
|
-
function _unsupportedIterableToArray(
|
|
5
|
-
function _iterableToArray(
|
|
6
|
-
function _arrayWithoutHoles(
|
|
7
|
-
function _arrayLikeToArray(
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
10
|
-
function _defineProperty(
|
|
11
|
-
function _toPropertyKey(
|
|
12
|
-
function _toPrimitive(
|
|
4
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
6
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
7
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
11
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
13
13
|
import util from '../../utils/util';
|
|
14
14
|
import cityGeoCoord from './data/cityGeoCoord';
|
|
15
15
|
import provinceGeoCoord from './data/provinceGeoCoord';
|
package/es/constants/common.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _toConsumableArray(
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _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 _unsupportedIterableToArray(
|
|
4
|
-
function _iterableToArray(
|
|
5
|
-
function _arrayWithoutHoles(
|
|
6
|
-
function _arrayLikeToArray(
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
7
|
export var BuiltinIndicators = function BuiltinIndicators(type) {
|
|
8
8
|
return {
|
|
9
9
|
id: -2,
|
package/es/context/index.js
CHANGED
|
@@ -17,6 +17,8 @@ export var serviceTypeType;
|
|
|
17
17
|
serviceTypeType[serviceTypeType["IO"] = 1] = "IO";
|
|
18
18
|
serviceTypeType[serviceTypeType["CEP"] = 2] = "CEP";
|
|
19
19
|
})(serviceTypeType || (serviceTypeType = {}));
|
|
20
|
-
var BizGlobalDataContext = /*#__PURE__*/createContext({
|
|
20
|
+
var BizGlobalDataContext = /*#__PURE__*/createContext({
|
|
21
|
+
showProdDownload: true
|
|
22
|
+
});
|
|
21
23
|
export default BizGlobalDataContext;
|
|
22
24
|
export var BizValidatorContext = /*#__PURE__*/createContext({});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { BizCycleTime } from '@zgfe/business-lib';
|
|
9
9
|
import { CycleTimeUnit } from '..';
|
package/es/cycleTime/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { DatePicker, Skeleton } from 'antd';
|
|
8
8
|
import moment from 'moment';
|
|
9
9
|
import React, { useEffect, useState } from 'react';
|
|
@@ -66,12 +66,12 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
66
66
|
time = _useState8[0],
|
|
67
67
|
setTime = _useState8[1];
|
|
68
68
|
var _useState9 = useState(true),
|
|
69
|
-
|
|
70
|
-
initing =
|
|
71
|
-
setIniting =
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
format =
|
|
69
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
70
|
+
initing = _useState0[0],
|
|
71
|
+
setIniting = _useState0[1];
|
|
72
|
+
var _useState1 = useState(props.format || 'hh:mm:ss'),
|
|
73
|
+
_useState10 = _slicedToArray(_useState1, 1),
|
|
74
|
+
format = _useState10[0];
|
|
75
75
|
useEffect(function () {
|
|
76
76
|
if (!props.value) {
|
|
77
77
|
setIniting(false);
|
|
@@ -157,7 +157,7 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
157
157
|
setTime(showHour && (v === null || v === void 0 ? void 0 : v.value) !== CycleTimeUnit.custom ? '00' : undefined);
|
|
158
158
|
setUnit(v);
|
|
159
159
|
}
|
|
160
|
-
}), unit.value === CycleTimeUnit.week && /*#__PURE__*/React.createElement(BizSelect, {
|
|
160
|
+
}), unit.value === CycleTimeUnit.week && (/*#__PURE__*/React.createElement(BizSelect, {
|
|
161
161
|
options: days,
|
|
162
162
|
labelField: "label",
|
|
163
163
|
keyField: "value",
|
|
@@ -171,12 +171,12 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
171
171
|
},
|
|
172
172
|
disable: disable,
|
|
173
173
|
enableCreate: false
|
|
174
|
-
}), unit.value === CycleTimeUnit.month && /*#__PURE__*/React.createElement(MonthDay, {
|
|
174
|
+
})), unit.value === CycleTimeUnit.month && (/*#__PURE__*/React.createElement(MonthDay, {
|
|
175
175
|
placeholder: props.placeholder,
|
|
176
176
|
defaultValue: day,
|
|
177
177
|
onChange: setDayList,
|
|
178
178
|
disable: disable
|
|
179
|
-
}), unit.value === CycleTimeUnit.day || unit.value && unit.value !== CycleTimeUnit.custom && showHour ? /*#__PURE__*/React.createElement(DatePicker.TimePicker, {
|
|
179
|
+
})), unit.value === CycleTimeUnit.day || unit.value && unit.value !== CycleTimeUnit.custom && showHour ? (/*#__PURE__*/React.createElement(DatePicker.TimePicker, {
|
|
180
180
|
className: "".concat(classPrefix, "-hour"),
|
|
181
181
|
size: size,
|
|
182
182
|
placeholder: props.placeholder,
|
|
@@ -186,7 +186,7 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
186
186
|
setTime(time === null || time === void 0 ? void 0 : time.format(format));
|
|
187
187
|
},
|
|
188
188
|
disabled: disable
|
|
189
|
-
}) : null, unit.value == CycleTimeUnit.custom && /*#__PURE__*/React.createElement(DatePicker, {
|
|
189
|
+
})) : null, unit.value == CycleTimeUnit.custom && (/*#__PURE__*/React.createElement(DatePicker, {
|
|
190
190
|
value: time ? moment(time, 'YYYY-MM-DD HH:mm:ss') : undefined,
|
|
191
191
|
showTime: true,
|
|
192
192
|
disabled: disable,
|
|
@@ -206,6 +206,6 @@ var BizCycleTime = function BizCycleTime(props) {
|
|
|
206
206
|
},
|
|
207
207
|
disabledTime: unit === null || unit === void 0 ? void 0 : unit.disabledTime,
|
|
208
208
|
disabledDate: unit === null || unit === void 0 ? void 0 : unit.disabledDate
|
|
209
|
-
}));
|
|
209
|
+
})));
|
|
210
210
|
};
|
|
211
211
|
export default BizCycleTime;
|
package/es/cycleTime/month.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { Dropdown, Tag } from 'antd';
|
|
8
8
|
import React, { useContext, useEffect, useState } from 'react';
|
|
9
9
|
import { IconFont } from '..';
|
|
@@ -105,9 +105,9 @@ var MonthDay = function MonthDay(props) {
|
|
|
105
105
|
!disable && onDelMonthDay(item);
|
|
106
106
|
}
|
|
107
107
|
}, item.label);
|
|
108
|
-
}), !chosenDayList.length && /*#__PURE__*/React.createElement("span", {
|
|
108
|
+
}), !chosenDayList.length && (/*#__PURE__*/React.createElement("span", {
|
|
109
109
|
className: "".concat(classPrefix, "-holder")
|
|
110
|
-
}, props.placeholder || '请选择')), /*#__PURE__*/React.createElement(IconFont, {
|
|
110
|
+
}, props.placeholder || '请选择'))), /*#__PURE__*/React.createElement(IconFont, {
|
|
111
111
|
type: "xiangxia"
|
|
112
112
|
}))));
|
|
113
113
|
};
|
package/es/dataSetGroup/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useEffect } from 'react';
|
|
8
8
|
import './styles/index.less';
|
|
9
9
|
import { Dropdown } from 'antd';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useContext, useEffect, useState } from 'react';
|
|
8
8
|
import { classPrefix } from '.';
|
|
9
9
|
import Search from '../userTagsSelector/components/search';
|
|
@@ -72,7 +72,7 @@ var Overlay = function Overlay(_ref2) {
|
|
|
72
72
|
}
|
|
73
73
|
return /*#__PURE__*/React.createElement("div", {
|
|
74
74
|
className: "".concat(classPrefix, "-overlay")
|
|
75
|
-
}, type === 'userGroup' && /*#__PURE__*/React.createElement("div", {
|
|
75
|
+
}, type === 'userGroup' && (/*#__PURE__*/React.createElement("div", {
|
|
76
76
|
className: "".concat(classPrefix, "-grouplist-no")
|
|
77
77
|
}, /*#__PURE__*/React.createElement("div", {
|
|
78
78
|
className: "".concat(classPrefix, "-top")
|
|
@@ -87,7 +87,7 @@ var Overlay = function Overlay(_ref2) {
|
|
|
87
87
|
type: "zengjia"
|
|
88
88
|
}), "\u5FEB\u901F\u521B\u5EFA\u660E\u7EC6\u8868")), /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
className: "".concat(classPrefix, "-divider")
|
|
90
|
-
}, /*#__PURE__*/React.createElement("span", null, "\u6240\u6709", (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) != 'user' ? '主体' : '用户')), showList.length > 10 ? /*#__PURE__*/React.createElement(List, {
|
|
90
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u6240\u6709", (currentApp === null || currentApp === void 0 ? void 0 : currentApp.type) != 'user' ? '主体' : '用户')), showList.length > 10 ? (/*#__PURE__*/React.createElement(List, {
|
|
91
91
|
data: showList || [],
|
|
92
92
|
itemHeight: 32,
|
|
93
93
|
itemKey: "id",
|
|
@@ -101,7 +101,7 @@ var Overlay = function Overlay(_ref2) {
|
|
|
101
101
|
setCurrentGroup: setCurrentGroup,
|
|
102
102
|
onClose: onClose
|
|
103
103
|
});
|
|
104
|
-
}) : /*#__PURE__*/React.createElement("div", {
|
|
104
|
+
})) : (/*#__PURE__*/React.createElement("div", {
|
|
105
105
|
className: "".concat(classPrefix, "-list")
|
|
106
106
|
}, showList === null || showList === void 0 ? void 0 : showList.map(function (item) {
|
|
107
107
|
return /*#__PURE__*/React.createElement(GroupItem, {
|
|
@@ -111,8 +111,8 @@ var Overlay = function Overlay(_ref2) {
|
|
|
111
111
|
setCurrentGroup: setCurrentGroup,
|
|
112
112
|
onClose: onClose
|
|
113
113
|
});
|
|
114
|
-
})), (showList === null || showList === void 0 ? void 0 : showList.length) === 0 && /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
}))), (showList === null || showList === void 0 ? void 0 : showList.length) === 0 && /*#__PURE__*/React.createElement("div", {
|
|
115
115
|
className: "".concat(classPrefix, "-empty")
|
|
116
|
-
}, "\u6682\u65E0\u6570\u636E")));
|
|
116
|
+
}, "\u6682\u65E0\u6570\u636E"))));
|
|
117
117
|
};
|
|
118
118
|
export default Overlay;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _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(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import { DatePicker, message } from 'antd';
|
|
8
8
|
import moment from 'moment';
|
|
9
9
|
import React, { useContext, useState, useEffect } from 'react';
|
|
@@ -69,7 +69,7 @@ var BizDate = function BizDate(_ref) {
|
|
|
69
69
|
}
|
|
70
70
|
return /*#__PURE__*/React.createElement("div", {
|
|
71
71
|
className: "".concat(classPrefix, "-panel")
|
|
72
|
-
}, currentType === DatePickerTypes.Unit.hour ? /*#__PURE__*/React.createElement(DatePicker, {
|
|
72
|
+
}, currentType === DatePickerTypes.Unit.hour ? (/*#__PURE__*/React.createElement(DatePicker, {
|
|
73
73
|
value: moment(dateRange.begin, 'YYYY-MM-DD'),
|
|
74
74
|
allowClear: false,
|
|
75
75
|
inputReadOnly: true,
|
|
@@ -91,7 +91,7 @@ var BizDate = function BizDate(_ref) {
|
|
|
91
91
|
}
|
|
92
92
|
if (setRelative) setRelative(undefined);
|
|
93
93
|
}
|
|
94
|
-
}) : /*#__PURE__*/React.createElement(RangePicker, {
|
|
94
|
+
})) : (/*#__PURE__*/React.createElement(RangePicker, {
|
|
95
95
|
value: [moment(dateRange.begin, 'YYYY-MM-DD'), moment(dateRange.end, 'YYYY-MM-DD')],
|
|
96
96
|
allowClear: false,
|
|
97
97
|
popupClassName: "".concat(classPrefix, "-drop"),
|
|
@@ -129,6 +129,6 @@ var BizDate = function BizDate(_ref) {
|
|
|
129
129
|
}
|
|
130
130
|
if (setRelative) setRelative(undefined);
|
|
131
131
|
}
|
|
132
|
-
}));
|
|
132
|
+
})));
|
|
133
133
|
};
|
|
134
134
|
export default BizDate;
|