@chaoswise/ui 2.6.0 → 2.6.2
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/lib/AbreastLayout/CollapsedIcon.js +1 -1
- package/lib/AbreastLayout/index.js +9 -9
- package/lib/Ace/ace.js +12 -13
- package/lib/Ace/diff.js +13 -14
- package/lib/Ace/split.js +12 -13
- package/lib/AdaptiveLayout/index.js +11 -11
- package/lib/Alert/index.js +3 -3
- package/lib/AlgorithmChart/index.js +3 -3
- package/lib/Antd/Drawer.js +9 -9
- package/lib/Antd4Form/FieldList.js +4 -4
- package/lib/Antd4Form/Form.js +7 -7
- package/lib/Antd4Form/FormItem.js +5 -5
- package/lib/Antd4Form/FormItemChildren.js +13 -14
- package/lib/Antd4Form/useForm.js +6 -6
- package/lib/Badge/index.js +1 -1
- package/lib/BasicLayout/Breadcrumb.js +5 -5
- package/lib/BasicLayout/Footer.js +3 -3
- package/lib/BasicLayout/Sider.js +5 -5
- package/lib/BasicLayout/index.js +7 -7
- package/lib/Button/index.js +3 -3
- package/lib/CWCascader/Cascader/index.js +10 -10
- package/lib/CWCascader/index.js +1 -1
- package/lib/CWCascader/rc-cascader/Cascader.js +10 -10
- package/lib/CWCascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/lib/CWCascader/rc-cascader/OptionList/Column.js +12 -12
- package/lib/CWCascader/rc-cascader/OptionList/index.js +10 -10
- package/lib/CWCascader/rc-cascader/OptionList/useActive.js +4 -4
- package/lib/CWCascader/rc-cascader/OptionList/useKeyboard.js +7 -7
- package/lib/CWCascader/rc-cascader/hooks/useDisplayValues.js +5 -5
- package/lib/CWCascader/rc-cascader/hooks/useEntities.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useSearchConfig.js +2 -2
- package/lib/CWCascader/rc-cascader/hooks/useSearchOptions.js +7 -7
- package/lib/CWMessage/MessageContent/TabList/index.js +5 -5
- package/lib/CWMessage/MessageContent/index.js +10 -10
- package/lib/CWMessage/index.js +21 -18
- package/lib/CWRadioTabs/index.js +7 -7
- package/lib/CWRangePicker/DropdownMenu/index.js +11 -11
- package/lib/CWRangePicker/Refresh/index.js +8 -8
- package/lib/CWRangePicker/assets/Calendar.js +1 -1
- package/lib/CWRangePicker/assets/Calendar2.js +1 -1
- package/lib/CWRangePicker/assets/Recover.js +1 -1
- package/lib/CWRangePicker/assets/Refresh1.js +1 -1
- package/lib/CWRangePicker/assets/Refresh2.js +1 -1
- package/lib/CWRangePicker/assets/Refresh3.js +1 -1
- package/lib/CWRangePicker/assets/live.js +1 -1
- package/lib/CWRangePicker/assets/more.js +1 -1
- package/lib/CWRangePicker/index.js +12 -12
- package/lib/CWRangePicker/utils/index.js +6 -6
- package/lib/CWSelect/DragTag/index.js +4 -4
- package/lib/CWSelect/antd-select.js +17 -18
- package/lib/CWSelect/index.js +12 -12
- package/lib/CWTable/CWTable.js +16 -16
- package/lib/CWTable/EditLine.js +12 -12
- package/lib/CWTable/Filter.js +4 -4
- package/lib/CWTable/FormTable.js +2 -2
- package/lib/CWTable/header.js +7 -7
- package/lib/CWTable/icon/DownGraySvg.js +1 -1
- package/lib/CWTable/icon/DownLightSvg.js +1 -1
- package/lib/CWTable/icon/SortSvg.js +1 -1
- package/lib/CWTable/icon/SortingSvg.js +1 -1
- package/lib/CWTable/icon/UpGraySvg.js +1 -1
- package/lib/CWTable/icon/UpLightSvg.js +1 -1
- package/lib/CWTable/index.js +1 -1
- package/lib/CWTree/assets/Drag.js +1 -1
- package/lib/CWTree/index.js +9 -9
- package/lib/CWTree/utils/index.js +2 -2
- package/lib/CWUpload/index.js +1 -1
- package/lib/CWUpload/upload/DragList.js +6 -6
- package/lib/CWUpload/upload/Upload.js +19 -20
- package/lib/CWUpload/upload/UploadList.js +12 -13
- package/lib/CardSelect/index.js +7 -7
- package/lib/Cascader/index.js +1 -1
- package/lib/ChangeIcon/index.js +4 -4
- package/lib/Checkbox/Checkbox.js +20 -21
- package/lib/Checkbox/Group.js +27 -28
- package/lib/Checkbox/assets/duigou1.js +1 -1
- package/lib/Checkbox/assets/duigou2.js +1 -1
- package/lib/CitySelect/index.js +1 -1
- package/lib/Collapse/index.js +3 -3
- package/lib/ColorPicker/SketchPicker/components/common/Alpha.js +16 -17
- package/lib/ColorPicker/SketchPicker/components/common/Checkboard.js +2 -2
- package/lib/ColorPicker/SketchPicker/components/common/ColorWrap.js +15 -16
- package/lib/ColorPicker/SketchPicker/components/common/EditableInput.js +19 -20
- package/lib/ColorPicker/SketchPicker/components/common/Hue.js +15 -16
- package/lib/ColorPicker/SketchPicker/components/common/Saturation.js +15 -16
- package/lib/ColorPicker/SketchPicker/components/common/Swatch.js +3 -3
- package/lib/ColorPicker/SketchPicker/components/sketch/SketchPresetColors.js +1 -1
- package/lib/ColorPicker/SketchPicker/components/sketch/index.js +2 -2
- package/lib/ColorPicker/SketchPicker/helpers/interaction.js +16 -17
- package/lib/ColorPicker/index.js +7 -7
- package/lib/ConfigProvider/ConfigProvider.js +9 -9
- package/lib/CustomNotification/PurePanel.js +126 -0
- package/lib/CustomNotification/index.js +210 -0
- package/lib/CustomNotification/index.less +102 -0
- package/lib/CustomNotification/useNotification.js +195 -0
- package/lib/CustomNotification/util.js +58 -0
- package/lib/CustomScrollBar/index.js +5 -5
- package/lib/DatePicker/DatePicker.js +1 -1
- package/lib/DatePicker/MonthPicker.js +1 -1
- package/lib/DatePicker/QuarterPicker.js +1 -1
- package/lib/DatePicker/RangePicker.js +1 -1
- package/lib/DatePicker/TimePicker.js +1 -1
- package/lib/DatePicker/WeekPicker.js +1 -1
- package/lib/DatePicker/YearPicker.js +1 -1
- package/lib/DateRangePicker/RangeDatePicker.js +7 -7
- package/lib/DateRangePicker/RangeDateTimePicker.js +10 -10
- package/lib/DateRangePicker/components/ExtraTimeFooter.js +3 -3
- package/lib/DateRangePicker/index.js +3 -3
- package/lib/Documentation/Tocify.js +5 -6
- package/lib/Documentation/index.js +6 -6
- package/lib/Drawer/index.js +9 -9
- package/lib/DropdownDatePicker/DropdownMenu/index.js +4 -4
- package/lib/DropdownDatePicker/assets/Calendar2.js +1 -1
- package/lib/DropdownDatePicker/assets/Recover.js +1 -1
- package/lib/DropdownDatePicker/assets/live.js +1 -1
- package/lib/DropdownDatePicker/assets/more.js +1 -1
- package/lib/DropdownDatePicker/index.js +9 -9
- package/lib/DropdownDatePicker/utils/index.js +6 -6
- package/lib/EchartsArea/index.js +5 -5
- package/lib/EchartsBar/index.js +5 -5
- package/lib/EchartsBarRow/index.js +3 -3
- package/lib/EchartsBase/index.js +5 -5
- package/lib/EchartsLine/index.js +5 -5
- package/lib/EchartsPie/index.js +3 -3
- package/lib/EchartsRing/index.js +3 -3
- package/lib/EditableText/index.js +6 -6
- package/lib/Empty/index.js +3 -3
- package/lib/ErrorBoundary/history.js +6 -8
- package/lib/ErrorBoundary/index.js +15 -16
- package/lib/FilterDropDown/DragList.js +7 -7
- package/lib/FilterDropDown/assets/ShowSvgIcon.js +1 -1
- package/lib/FilterDropDown/index.js +7 -7
- package/lib/Flow/BasicLayout/Chain.js +5 -5
- package/lib/Flow/Flow.js +4 -4
- package/lib/Flow/components/PluginWrapper.js +2 -2
- package/lib/Flow/layouts/callChain.js +2 -2
- package/lib/Flow/plugins/CommandLifeCycle.js +5 -6
- package/lib/Flow/plugins/InitSideBarPlugin.js +5 -6
- package/lib/Flow/plugins/InitToolBarPlugin.js +5 -6
- package/lib/Footer/index.js +2 -2
- package/lib/Form/FormItem.js +5 -5
- package/lib/Form4/index.js +1 -1
- package/lib/FormItemWrapper/index.js +5 -5
- package/lib/Formily/FieldList/index.js +4 -4
- package/lib/Formily/FormItem/index.js +5 -5
- package/lib/Formily/FormItem/items/formItemWrapper.js +2 -2
- package/lib/Formily/MegaLayout/index.js +3 -3
- package/lib/Formily/formily/index.js +4 -4
- package/lib/Formily/subscribeFields/index.js +8 -8
- package/lib/GlobalTabs/TabPane.js +2 -2
- package/lib/GlobalTabs/index.js +5 -5
- package/lib/Header/CommonDropMenu.js +7 -7
- package/lib/Header/CommonIcon.js +2 -2
- package/lib/Header/LocaleSwitcher.js +3 -3
- package/lib/Header/Message/index.js +2 -2
- package/lib/Header/UserSetting/TenantList.js +1 -1
- package/lib/Header/UserSetting/TenantTree.js +1 -1
- package/lib/Header/UserSetting/index.js +4 -4
- package/lib/Header/UserSetting/utils.js +2 -2
- package/lib/Header/index.js +4 -4
- package/lib/IconSelect/components/SearchIcon/index.js +4 -4
- package/lib/IconSelect/index.js +4 -4
- package/lib/ImagePreview/index.js +3 -3
- package/lib/Input/InputComponent.js +9 -9
- package/lib/Input/index.js +2 -2
- package/lib/InputNumber/index.js +3 -3
- package/lib/IntersectionInput/index.js +9 -9
- package/lib/Joyride/index.js +9 -9
- package/lib/LayoutBreadcrumb/index.js +5 -5
- package/lib/LayoutWrapper/Footer.js +3 -3
- package/lib/LayoutWrapper/Header.js +3 -3
- package/lib/LayoutWrapper/LeftArrow.js +1 -1
- package/lib/LayoutWrapper/index.js +5 -5
- package/lib/LazyLoadingTreeSelect/index.js +12 -12
- package/lib/Menu/index.js +1 -1
- package/lib/Menu/menu/MenuItem.js +11 -12
- package/lib/Menu/menu/SubMenu.js +11 -12
- package/lib/Menu/menu/index.js +14 -16
- package/lib/Modal/Modal.js +19 -20
- package/lib/Modal/assets/Close.js +1 -1
- package/lib/Modal/custom-backup/entiretyDrag.js +3 -3
- package/lib/Modal/index.js +5 -5
- package/lib/ModuleFederation/ErrorBoundary/index.js +11 -12
- package/lib/ModuleFederation/react-dynamic-remote-component/RemoteComponent.js +12 -12
- package/lib/ModuleFederation/react-dynamic-remote-component/load-module.js +3 -3
- package/lib/ModuleTitle/index.js +3 -3
- package/lib/OutlineNumber/index.js +3 -3
- package/lib/Pagination/index.js +9 -9
- package/lib/PolymerizationSearch/index.js +8 -8
- package/lib/Popconfirm/index.js +3 -3
- package/lib/Progress/index.js +3 -3
- package/lib/QuickRangePicker/index.js +9 -9
- package/lib/QuickTransfer/Drag.js +5 -5
- package/lib/QuickTransfer/DragList.js +7 -7
- package/lib/QuickTransfer/assets/DragSvg.js +1 -1
- package/lib/QuickTransfer/assets/LockSvg.js +1 -1
- package/lib/QuickTransfer/index.js +12 -12
- package/lib/QuickTransfer/utils.js +7 -7
- package/lib/Radio/Group.js +16 -17
- package/lib/Radio/Radio.js +21 -22
- package/lib/RangePicker/components/ExtraTimeFooter.js +3 -3
- package/lib/RangePicker/index.js +10 -10
- package/lib/RangePicker/utils/index.js +5 -5
- package/lib/ReactSelect/CustomControl.js +2 -2
- package/lib/ReactSelect/CustomMultiValueLabel.js +2 -2
- package/lib/ReactSelect/CustomOption.js +2 -2
- package/lib/ReactSelect/CustomSingleValue.js +2 -2
- package/lib/ReactSelect/customStyles.js +2 -2
- package/lib/ReactSelect/index.js +9 -9
- package/lib/ScrollLoad/index.js +7 -7
- package/lib/SearchBar/index.js +12 -12
- package/lib/SelectBackup/index.js +9 -9
- package/lib/SiderMenu/Item.js +14 -15
- package/lib/SiderMenu/index.js +5 -5
- package/lib/SiderMenu/sub-menu.js +3 -3
- package/lib/SimpleCard/index.js +3 -3
- package/lib/SimplePagination/index.js +6 -6
- package/lib/SingleSpa/hooks/useErrorHandle.js +6 -6
- package/lib/SingleSpa/hooks/useModel.js +4 -4
- package/lib/SingleSpa/import-html/process-tpl.js +4 -4
- package/lib/SingleSpa/import-html/utils.js +4 -4
- package/lib/SingleSpa/index.js +8 -8
- package/lib/SingleSpa/singleSpa/single-spa.dev.js +2 -2
- package/lib/Table/index.js +1 -1
- package/lib/Tabs/index.js +5 -5
- package/lib/Tag/CheckableTag.js +3 -3
- package/lib/Tag/assets/LeftBottomCorner.js +1 -1
- package/lib/Tag/assets/LeftTopCorner.js +1 -1
- package/lib/Tag/assets/RightBottomCorner.js +1 -1
- package/lib/Tag/assets/RightTopCorner.js +1 -1
- package/lib/Tag/index.js +3 -3
- package/lib/ThemeProvider/main.js +9 -9
- package/lib/ThemeProvider/utils.js +4 -4
- package/lib/TimeRangeSlider/Refresh/index.js +8 -8
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/Limit.js +1 -1
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/assets/LimitAreaSvg.js +1 -1
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/BottomSlider/BottomPlaceholder.js +4 -4
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/components/TopSlider/TopPlaceholder.js +4 -4
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useHover.js +4 -4
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/hooks/useMouse.js +6 -6
- package/lib/TimeRangeSlider/TimeRangeSliderCmp/utils/index.js +2 -2
- package/lib/TimeRangeSlider/assets/Calendar.js +1 -1
- package/lib/TimeRangeSlider/assets/Calendar2.js +1 -1
- package/lib/TimeRangeSlider/assets/Recover.js +1 -1
- package/lib/TimeRangeSlider/assets/Refresh1.js +1 -1
- package/lib/TimeRangeSlider/assets/Refresh2.js +1 -1
- package/lib/TimeRangeSlider/assets/Refresh3.js +1 -1
- package/lib/TimeRangeSlider/assets/live.js +1 -1
- package/lib/TimeRangeSlider/assets/more.js +1 -1
- package/lib/TimeRangeSlider/index.js +9 -9
- package/lib/TimeRangeSlider/utils/index.js +6 -6
- package/lib/Tooltip/index.js +3 -3
- package/lib/TooltipText/ResizeObserverManager.js +3 -3
- package/lib/TooltipText/index.js +7 -7
- package/lib/TreeList/index.js +6 -6
- package/lib/TreeSelect111/index.js +9 -9
- package/lib/TreeSelect111/utils/index.js +5 -5
- package/lib/Upload-back/index.js +7 -7
- package/lib/VerticalLayout/index.js +2 -2
- package/lib/WangEditor/editor4.js +2 -2
- package/lib/WangEditor/index.js +2 -2
- package/lib/WangEditor/usePreview.js +4 -4
- package/lib/Watermark/index.js +7 -7
- package/lib/Watermark/useClips.js +4 -4
- package/lib/Watermark/useWatermark.js +4 -4
- package/lib/configConsumer/index.js +1 -1
- package/lib/configHoc/index.js +3 -3
- package/lib/message/assets/Close.js +1 -1
- package/lib/message/index.js +2 -2
- package/lib/noticeManager/globalState.js +6 -7
- package/lib/portalNoticeManager/usePortalDispatchNotice.js +6 -6
- package/lib/portalNoticeManager/withPortalDispatchNotice.js +1 -1
- package/lib/useLocale/index.js +4 -4
- package/lib/usePreview/index.js +4 -4
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React from "react";
|
|
3
3
|
var SvgIcon = function SvgIcon(props) {
|
|
4
4
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
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
|
var _excluded = ["children", "type", "Siderbar", "SiderWidth", "ResizeBarWidth", "resizeBarColor", "showCollapsedBtn", "onCollapse", "contentStyle", "siderStyle"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
8
|
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); }
|
|
9
|
-
function _slicedToArray(
|
|
9
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
10
10
|
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."); }
|
|
11
|
-
function _unsupportedIterableToArray(
|
|
12
|
-
function _arrayLikeToArray(
|
|
11
|
+
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; } }
|
|
12
|
+
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; }
|
|
13
13
|
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; } }
|
|
14
|
-
function _arrayWithHoles(
|
|
15
|
-
function _objectWithoutProperties(
|
|
16
|
-
function _objectWithoutPropertiesLoose(
|
|
14
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
15
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
17
17
|
import React, { useState, useLayoutEffect } from "react";
|
|
18
18
|
import { Resizable } from "re-resizable";
|
|
19
19
|
import PropTypes from 'prop-types';
|
package/lib/Ace/ace.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
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 _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
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
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _possibleConstructorReturn(
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
9
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
-
function _getPrototypeOf(
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
13
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
14
|
import PropTypes from 'prop-types';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { isEqual } from 'lodash-es';
|
|
@@ -18,18 +18,18 @@ import { Range } from '@chaoswise/ace';
|
|
|
18
18
|
import { getAceInstance, editorEvents, debounce, editorOptions } from './editorOptions';
|
|
19
19
|
var ace = getAceInstance();
|
|
20
20
|
var ReactAce = /*#__PURE__*/function (_React$Component) {
|
|
21
|
-
_inherits(ReactAce, _React$Component);
|
|
22
21
|
function ReactAce(props) {
|
|
23
22
|
var _this;
|
|
24
23
|
_classCallCheck(this, ReactAce);
|
|
25
24
|
_this = _callSuper(this, ReactAce, [props]);
|
|
26
25
|
editorEvents.forEach(function (method) {
|
|
27
|
-
_this[method] = _this[method].bind(
|
|
26
|
+
_this[method] = _this[method].bind(_this);
|
|
28
27
|
});
|
|
29
28
|
_this.debounce = debounce;
|
|
30
29
|
return _this;
|
|
31
30
|
}
|
|
32
|
-
|
|
31
|
+
_inherits(ReactAce, _React$Component);
|
|
32
|
+
return _createClass(ReactAce, [{
|
|
33
33
|
key: "isInShadow",
|
|
34
34
|
value: function isInShadow(node) {
|
|
35
35
|
var parent = node && node.parentNode;
|
|
@@ -404,7 +404,6 @@ var ReactAce = /*#__PURE__*/function (_React$Component) {
|
|
|
404
404
|
});
|
|
405
405
|
}
|
|
406
406
|
}]);
|
|
407
|
-
return ReactAce;
|
|
408
407
|
}(React.Component);
|
|
409
408
|
ReactAce.propTypes = {
|
|
410
409
|
/**
|
package/lib/Ace/diff.js
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
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 _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
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
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _possibleConstructorReturn(
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
9
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
-
function _getPrototypeOf(
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
13
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
14
|
import PropTypes from "prop-types";
|
|
15
15
|
import React from "react";
|
|
16
16
|
import split_1 from "./split";
|
|
17
17
|
import DiffMatchPatch from "diff-match-patch";
|
|
18
18
|
var DiffComponent = /*#__PURE__*/function (_React$Component) {
|
|
19
|
-
_inherits(DiffComponent, _React$Component);
|
|
20
19
|
function DiffComponent(props) {
|
|
21
20
|
var _this;
|
|
22
21
|
_classCallCheck(this, DiffComponent);
|
|
@@ -24,11 +23,12 @@ var DiffComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
24
23
|
_this.state = {
|
|
25
24
|
value: _this.props.value
|
|
26
25
|
};
|
|
27
|
-
_this.onChange = _this.onChange.bind(
|
|
28
|
-
_this.diff = _this.diff.bind(
|
|
26
|
+
_this.onChange = _this.onChange.bind(_this);
|
|
27
|
+
_this.diff = _this.diff.bind(_this);
|
|
29
28
|
return _this;
|
|
30
29
|
}
|
|
31
|
-
|
|
30
|
+
_inherits(DiffComponent, _React$Component);
|
|
31
|
+
return _createClass(DiffComponent, [{
|
|
32
32
|
key: "componentDidUpdate",
|
|
33
33
|
value: function componentDidUpdate() {
|
|
34
34
|
var value = this.props.value;
|
|
@@ -224,7 +224,6 @@ var DiffComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
}]);
|
|
227
|
-
return DiffComponent;
|
|
228
227
|
}(React.Component);
|
|
229
228
|
DiffComponent.propTypes = {
|
|
230
229
|
cursorStart: PropTypes.number,
|
package/lib/Ace/split.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
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 _classCallCheck(
|
|
3
|
-
function _defineProperties(
|
|
4
|
-
function _createClass(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
2
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
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
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _possibleConstructorReturn(
|
|
8
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
9
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
-
function _getPrototypeOf(
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
11
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
13
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
14
|
import { getAceInstance, editorEvents, debounce, editorOptions } from "./editorOptions";
|
|
15
15
|
import { Range } from "@chaoswise/ace";
|
|
16
16
|
import ext_split_1 from "@chaoswise/ace/ace-builds/src-noconflict/ext-split";
|
|
@@ -19,18 +19,18 @@ import React from "react";
|
|
|
19
19
|
import { isEqual, get } from "lodash-es";
|
|
20
20
|
var ace = getAceInstance();
|
|
21
21
|
var SplitComponent = /*#__PURE__*/function (_React$Component) {
|
|
22
|
-
_inherits(SplitComponent, _React$Component);
|
|
23
22
|
function SplitComponent(props) {
|
|
24
23
|
var _this;
|
|
25
24
|
_classCallCheck(this, SplitComponent);
|
|
26
25
|
_this = _callSuper(this, SplitComponent, [props]);
|
|
27
26
|
editorEvents.forEach(function (method) {
|
|
28
|
-
_this[method] = _this[method].bind(
|
|
27
|
+
_this[method] = _this[method].bind(_this);
|
|
29
28
|
});
|
|
30
29
|
_this.debounce = debounce;
|
|
31
30
|
return _this;
|
|
32
31
|
}
|
|
33
|
-
|
|
32
|
+
_inherits(SplitComponent, _React$Component);
|
|
33
|
+
return _createClass(SplitComponent, [{
|
|
34
34
|
key: "isInShadow",
|
|
35
35
|
value: function isInShadow(node) {
|
|
36
36
|
var parent = node && node.parentNode;
|
|
@@ -382,7 +382,6 @@ var SplitComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
}]);
|
|
385
|
-
return SplitComponent;
|
|
386
385
|
}(React.Component);
|
|
387
386
|
SplitComponent.propTypes = {
|
|
388
387
|
className: PropTypes.string,
|
|
@@ -2,21 +2,21 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
var _excluded = ["info"];
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _defineProperty(
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
5
|
+
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; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
7
|
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); }
|
|
8
|
-
function _objectWithoutProperties(
|
|
9
|
-
function _objectWithoutPropertiesLoose(
|
|
10
|
-
function _toConsumableArray(
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
10
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
11
11
|
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."); }
|
|
12
|
-
function _iterableToArray(
|
|
13
|
-
function _arrayWithoutHoles(
|
|
14
|
-
function _slicedToArray(
|
|
12
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
13
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
14
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
15
15
|
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."); }
|
|
16
|
-
function _unsupportedIterableToArray(
|
|
17
|
-
function _arrayLikeToArray(
|
|
16
|
+
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; } }
|
|
17
|
+
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; }
|
|
18
18
|
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; } }
|
|
19
|
-
function _arrayWithHoles(
|
|
19
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
20
20
|
import React, { useEffect, useRef, useState } from 'react';
|
|
21
21
|
import PropTypes from 'prop-types';
|
|
22
22
|
|
package/lib/Alert/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import _Alert from "antd/es/alert";
|
|
|
3
3
|
import _Icon from "@chaoswise/ui/lib/Icon";
|
|
4
4
|
import _ThemeProvider from "@chaoswise/ui/lib/ThemeProvider";
|
|
5
5
|
var _excluded = ["message", "description", "isPageTop", "className"];
|
|
6
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
7
|
-
function _objectWithoutProperties(
|
|
8
|
-
function _objectWithoutPropertiesLoose(
|
|
6
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
9
9
|
import React, { forwardRef } from "react";
|
|
10
10
|
import PropTypes from "prop-types";
|
|
11
11
|
import classnames from "classnames";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _EchartsLine from "@chaoswise/ui/lib/EchartsLine";
|
|
2
2
|
var _excluded = ["data", "chartOption"];
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
-
function _objectWithoutProperties(
|
|
5
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
6
6
|
import React, { useMemo } from "react";
|
|
7
7
|
import _option from './common/chart.option';
|
|
8
8
|
import PropTypes from 'prop-types';
|
package/lib/Antd/Drawer.js
CHANGED
|
@@ -2,20 +2,20 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
import "antd/es/drawer/style";
|
|
3
3
|
import _Drawer from "antd/es/drawer";
|
|
4
4
|
var _excluded = ["size", "children", "footer", "bodyStyle", "title", "extraLeft", "extraRight", "visible", "closable"];
|
|
5
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
5
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
6
6
|
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; }
|
|
7
7
|
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; }
|
|
8
|
-
function _defineProperty(
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
10
|
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); }
|
|
11
|
-
function _slicedToArray(
|
|
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(
|
|
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
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(
|
|
17
|
-
function _objectWithoutProperties(
|
|
18
|
-
function _objectWithoutPropertiesLoose(
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
18
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
19
19
|
import React, { forwardRef, useRef, useState, useEffect, useMemo } from "react";
|
|
20
20
|
import PropTypes from "prop-types";
|
|
21
21
|
import classnames from "classnames";
|
|
@@ -3,11 +3,11 @@ var _excluded = ["children"],
|
|
|
3
3
|
_excluded2 = ["state", "mutators"];
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
|
-
function _defineProperty(
|
|
7
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
6
|
+
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; }
|
|
7
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
8
|
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); }
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { FieldList as OriginFieldList } from '@formily/antd';
|
|
13
13
|
function FieldList(_ref) {
|
package/lib/Antd4Form/Form.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var _excluded = ["onFinish", "onFinishFailed", "form", "onValuesChange"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _slicedToArray(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
4
|
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."); }
|
|
5
|
-
function _unsupportedIterableToArray(
|
|
6
|
-
function _arrayLikeToArray(
|
|
5
|
+
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; } }
|
|
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
|
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; } }
|
|
8
|
-
function _arrayWithHoles(
|
|
9
|
-
function _objectWithoutProperties(
|
|
10
|
-
function _objectWithoutPropertiesLoose(
|
|
8
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
10
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
11
11
|
import React, { forwardRef, useEffect, useImperativeHandle } from 'react';
|
|
12
12
|
import { Form } from '@formily/antd';
|
|
13
13
|
import useForm from './useForm';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var _excluded = ["children", "valuePropName", "name", "validateTrigger", "shouldUpdate"],
|
|
2
2
|
_excluded2 = ["form"],
|
|
3
3
|
_excluded3 = ["value"];
|
|
4
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
4
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
5
5
|
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; }
|
|
6
6
|
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; }
|
|
7
|
-
function _defineProperty(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
7
|
+
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; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
9
|
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); }
|
|
10
10
|
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); }
|
|
11
|
-
function _objectWithoutProperties(
|
|
12
|
-
function _objectWithoutPropertiesLoose(
|
|
11
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
12
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
13
13
|
import React, { Fragment, useMemo } from 'react';
|
|
14
14
|
import { FormItem, FormSpy, FormButtonGroup } from '@formily/antd';
|
|
15
15
|
import FormItemChildren from './FormItemChildren';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
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
|
var _excluded = ["children", "values"];
|
|
3
|
-
function _objectWithoutProperties(
|
|
4
|
-
function _objectWithoutPropertiesLoose(
|
|
5
|
-
function _classCallCheck(
|
|
6
|
-
function _defineProperties(
|
|
7
|
-
function _createClass(
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
5
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
9
|
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); }
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
|
-
function _possibleConstructorReturn(
|
|
12
|
-
function _assertThisInitialized(
|
|
11
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
12
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
13
13
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
14
|
-
function _getPrototypeOf(
|
|
15
|
-
function _inherits(
|
|
16
|
-
function _setPrototypeOf(
|
|
14
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
15
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
18
|
var FormItemChildren = /*#__PURE__*/function (_Component) {
|
|
19
|
-
_inherits(FormItemChildren, _Component);
|
|
20
19
|
function FormItemChildren() {
|
|
21
20
|
_classCallCheck(this, FormItemChildren);
|
|
22
21
|
return _callSuper(this, FormItemChildren, arguments);
|
|
23
22
|
}
|
|
24
|
-
|
|
23
|
+
_inherits(FormItemChildren, _Component);
|
|
24
|
+
return _createClass(FormItemChildren, [{
|
|
25
25
|
key: "shouldComponentUpdate",
|
|
26
26
|
value: function shouldComponentUpdate(props) {
|
|
27
27
|
var shouldUpdate = this.props.shouldUpdate;
|
|
@@ -46,6 +46,5 @@ var FormItemChildren = /*#__PURE__*/function (_Component) {
|
|
|
46
46
|
return children(resP);
|
|
47
47
|
}
|
|
48
48
|
}]);
|
|
49
|
-
return FormItemChildren;
|
|
50
49
|
}(Component);
|
|
51
50
|
export default FormItemChildren;
|
package/lib/Antd4Form/useForm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
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
|
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
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(
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i :
|
|
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
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(
|
|
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(
|
|
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
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(
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import { createFormActions } from '@formily/antd';
|
|
14
14
|
var actions = createFormActions();
|
|
15
15
|
function useCustomForm() {
|