@para-ui/core 3.0.85 → 4.0.0-alpha
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/AutoBox/index.js +18 -19
- package/AutoTips/index.js +5 -4
- package/Breadcrumbs/index.js +5 -4
- package/Button/SplitButton.d.ts +13 -0
- package/Button/index.d.ts +1 -1
- package/Button/index.js +54 -12
- package/ButtonGroup/index.js +6 -5
- package/Carousel/index.d.ts +5 -5
- package/Carousel/index.js +21 -9
- package/Cascader/Cascader.d.ts +99 -0
- package/Cascader/OptionList/CacheContent.d.ts +7 -0
- package/Cascader/OptionList/Column.d.ts +21 -0
- package/Cascader/OptionList/index.d.ts +4 -0
- package/Cascader/OptionList/useActive.d.ts +6 -0
- package/Cascader/context.d.ts +23 -0
- package/Cascader/hooks/useDisplayValues.d.ts +10 -0
- package/Cascader/hooks/useEntities.d.ts +10 -0
- package/Cascader/hooks/useMissingValues.d.ts +3 -0
- package/Cascader/index.d.ts +3 -58
- package/Cascader/index.js +28 -177
- package/Cascader/utils/commonUtil.d.ts +18 -0
- package/Cascader/utils/treeUtil.d.ts +55 -0
- package/Checkbox/index.d.ts +7 -0
- package/Checkbox/index.js +50 -29
- package/CheckboxGroup/index.d.ts +3 -1
- package/CheckboxGroup/index.js +48 -18
- package/Collapse/index.js +2 -2
- package/Collapse/motion.d.ts +0 -2
- package/CollapseBox/index.js +3 -3
- package/CollapseLayout/index.d.ts +5 -0
- package/CollapseLayout/index.js +144 -22
- package/ColorPicker/chromePicker/index.d.ts +9 -0
- package/ColorPicker/compactPicker/index.d.ts +9 -0
- package/ColorPicker/config.d.ts +5 -0
- package/ColorPicker/index.d.ts +4 -1
- package/ColorPicker/index.js +7 -3
- package/ColorPicker/sketchPicker/index.d.ts +11 -0
- package/ColorPicker/swatchesPicker/index.d.ts +9 -0
- package/ComboSelect/index.js +14 -12
- package/Container/index.js +2 -2
- package/CopyText/index.d.ts +33 -0
- package/CopyText/index.js +180 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +9 -2
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +8 -8
- package/DatePicker/generatePicker/index.d.ts +32 -26
- package/DatePicker/generatePicker/interface.d.ts +12 -0
- package/DatePicker/index.d.ts +12 -8
- package/DatePicker/index.js +367 -454
- package/DatePicker/util.d.ts +40 -4
- package/Desktop/index.d.ts +16 -3
- package/Desktop/index.js +177 -68
- package/Desktop/lang/en_US.d.ts +6 -0
- package/Desktop/lang/index.d.ts +13 -0
- package/Desktop/lang/zh_CN.d.ts +6 -0
- package/DragVerify/index.js +9 -100
- package/Drawer/index.js +8 -8
- package/Drawer/interface.d.ts +2 -2
- package/Dropdown/index.js +2 -2
- package/DynamicMultiBox/index.js +57 -41
- package/DynamicMultiBox/interface.d.ts +4 -4
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +20 -26
- package/Form/index.js +48 -69
- package/FormItem/index.js +15 -15
- package/FunctionModal/index.js +11 -9
- package/GlobalContext/constant.d.ts +1 -1
- package/GlobalContext/index.js +2 -2
- package/Help/index.js +4 -3
- package/HelperText/index.js +2 -2
- package/InputLang/index.d.ts +5 -0
- package/InputLang/index.js +35 -29
- package/InputNumber/index.d.ts +5 -0
- package/InputNumber/index.js +95 -80
- package/Label/index.js +4 -3
- package/Loading/index.js +2 -2
- package/Menu/index.js +114 -39
- package/Menu/interface.d.ts +8 -0
- package/Message/index.d.ts +4 -4
- package/Message/index.js +13 -11
- package/Modal/index.js +29 -15
- package/MultiBox/index.js +9 -8
- package/Notification/index.d.ts +9 -1
- package/Notification/index.js +29 -15
- package/OperateBtn/index.js +28 -11
- package/PageHeader/index.js +270 -74
- package/PageHeader/interface.d.ts +17 -0
- package/Pagination/index.d.ts +4 -3
- package/Pagination/index.js +117 -95
- package/Pagination/lang/en_US.d.ts +3 -2
- package/Pagination/lang/index.d.ts +6 -4
- package/Pagination/lang/zh_CN.d.ts +3 -2
- package/ParauiProvider/index.js +4 -4
- package/PasswordRules/index.js +5 -5
- package/PopConfirm/index.d.ts +15 -5
- package/PopConfirm/index.js +62 -16
- package/Popover/index.js +4 -3
- package/Progress/index.js +10 -9
- package/Querying/index.js +7 -7
- package/README.md +41 -1114
- package/Radio/index.d.ts +7 -0
- package/Radio/index.js +49 -27
- package/RadioGroup/index.d.ts +3 -1
- package/RadioGroup/index.js +48 -21
- package/Search/index.d.ts +3 -15
- package/Search/index.js +21 -83
- package/Select/index.d.ts +7 -2
- package/Select/index.js +114 -91
- package/Select/lang/en_US.d.ts +1 -1
- package/Select/lang/index.d.ts +2 -2
- package/Select/lang/zh_CN.d.ts +1 -1
- package/SelectInput/index.js +8 -7
- package/Selector/index.js +30 -22
- package/SelectorPicker/index.d.ts +5 -0
- package/SelectorPicker/index.js +47 -32
- package/SelectorPicker/lang/en_US.d.ts +1 -0
- package/SelectorPicker/lang/index.d.ts +2 -0
- package/SelectorPicker/lang/zh_CN.d.ts +1 -0
- package/SingleBox/index.js +8 -7
- package/Slider/index.js +5 -5
- package/Status/index.d.ts +6 -5
- package/Status/index.js +27 -4
- package/Stepper/index.d.ts +9 -10
- package/Stepper/index.js +69 -29
- package/Styles/index.scss +4 -0
- package/Styles/scrollbar.scss +24 -24
- package/Styles/theme.scss +104 -57
- package/Switch/index.d.ts +34 -14
- package/Switch/index.js +97 -30
- package/Table/index.js +33 -27
- package/Table/interface.d.ts +3 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +5 -5
- package/Tabs/index.d.ts +11 -1
- package/Tabs/index.js +49 -16
- package/Tag/TagGroup.d.ts +11 -7
- package/Tag/index.d.ts +22 -7
- package/Tag/index.js +1382 -53
- package/TextEditor/index.js +4 -3
- package/TextField/index.d.ts +5 -0
- package/TextField/index.js +55 -38
- package/TimePicker/index.d.ts +5 -0
- package/TimePicker/index.js +39 -23
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +21 -18
- package/Title/index.d.ts +15 -3
- package/Title/index.js +95 -29
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -0
- package/ToggleButton/index.d.ts +4 -0
- package/ToggleButton/index.js +14 -52
- package/Tooltip/index.js +28 -34
- package/Tooltip/interface.d.ts +4 -10
- package/Tooltip/utils.d.ts +1 -3
- package/Transfer/index.d.ts +3 -3
- package/Transfer/index.js +72 -68
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +10 -9
- package/Tree/utils/treeUtil.d.ts +0 -7
- package/Upload/index.js +16 -14
- package/_verture/{constant-66aa48a1.js → constant-0d9802f7.js} +1 -1
- package/_verture/{defineProperty-62acccfc.js → defineProperty-1d116156.js} +1 -1
- package/_verture/index-5c77417d.js +150 -0
- package/_verture/index-68db2bc3.js +10530 -0
- package/_verture/{index-11e04b7f.js → index-7ec72724.js} +44 -38
- package/_verture/index-d63bd287.js +327 -0
- package/_verture/{index-c23dc3b0.js → index-e6f85fd5.js} +7 -8
- package/_verture/{index-77f9e0fb.js → index-e9007d6a.js} +6 -6
- package/_verture/{intl-4a9f1b44.js → intl-5c1ec055.js} +1 -1
- package/_verture/{modalContext-20780c9a.js → modalContext-c12ca3e8.js} +3 -3
- package/_verture/slicedToArray-a8206399.js +43 -0
- package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-8f4c9589.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/_verture/typeof-b240b062.js +16 -0
- package/_verture/{utils-c9b9a157.js → utils-f0e81540.js} +8 -8
- package/index.d.ts +2 -2
- package/index.js +32 -27
- package/locale/en-US.d.ts +10 -6
- package/locale/index.d.ts +20 -12
- package/locale/index.js +33 -25
- package/locale/zh-CN.d.ts +10 -6
- package/package.json +25 -11
- package/umd/AutoBox.js +20 -21
- package/umd/AutoTips.js +31 -4
- package/umd/Breadcrumbs.js +7 -7
- package/umd/Button.js +7 -8
- package/umd/ButtonGroup.js +7 -8
- package/umd/Carousel.js +29 -1
- package/umd/Cascader.js +20 -21
- package/umd/Checkbox.js +7 -7
- package/umd/CheckboxGroup.js +7 -7
- package/umd/Collapse.js +19 -21
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +7 -7
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +42 -0
- package/umd/DatePicker.js +7 -7
- package/umd/Desktop.js +7 -7
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +7 -8
- package/umd/Dropdown.js +3 -3
- package/umd/DynamicMultiBox.js +7 -7
- package/umd/Empty.js +1 -1
- package/umd/Form.js +6 -6
- package/umd/FormItem.js +6 -6
- package/umd/FunctionModal.js +7 -7
- package/umd/Help.js +7 -7
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +7 -7
- package/umd/InputNumber.js +7 -7
- package/umd/Label.js +7 -7
- package/umd/Loading.js +4 -5
- package/umd/Menu.js +4 -4
- package/umd/Message.js +3 -4
- package/umd/Modal.js +7 -7
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +5 -6
- package/umd/OperateBtn.js +7 -7
- package/umd/PageHeader.js +7 -7
- package/umd/Pagination.js +7 -7
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +3 -4
- package/umd/PopConfirm.js +7 -7
- package/umd/Popover.js +31 -4
- package/umd/Progress.js +4 -5
- package/umd/Querying.js +1 -1
- package/umd/Radio.js +7 -7
- package/umd/RadioGroup.js +7 -7
- package/umd/Search.js +7 -7
- package/umd/Select.js +7 -7
- package/umd/SelectInput.js +7 -7
- package/umd/Selector.js +7 -7
- package/umd/SelectorPicker.js +7 -7
- package/umd/SingleBox.js +7 -7
- package/umd/Slider.js +3 -3
- package/umd/Status.js +29 -1
- package/umd/Stepper.js +20 -20
- package/umd/Switch.js +7 -7
- package/umd/Table.js +7 -7
- package/umd/Tabs.js +7 -7
- package/umd/Tag.js +7 -8
- package/umd/TextEditor.js +19 -19
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +7 -7
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +42 -1
- package/umd/ToggleButton.js +7 -8
- package/umd/Tooltip.js +31 -4
- package/umd/Transfer.js +8 -8
- package/umd/Tree.js +7 -7
- package/umd/Upload.js +8 -8
- package/umd/locale.js +1 -1
- package/Cascader/lang/en_US.d.ts +0 -4
- package/Cascader/lang/index.d.ts +0 -9
- package/Cascader/lang/zh_CN.d.ts +0 -4
- package/Split/index.d.ts +0 -7
- package/Split/index.js +0 -123
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/index-beef914f.js +0 -340
- package/_verture/slicedToArray-76060636.js +0 -43
- package/_verture/typeof-498dd2b1.js +0 -11
- package/umd/Split.js +0 -1
package/umd/locale.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ParaUI=t():e.ParaUI=t()}(self,(function(){return function(){"use strict";var e={d:function(t,a){for(var l in a)e.o(a,l)&&!e.o(t,l)&&Object.defineProperty(t,l,{enumerable:!0,get:a[l]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return a}});var a={enUS:{Breadcrumbs:{back:"Back"},Button:{moreActions:"More actions"},ComboSelect:{searchPlaceholder:"Please enter",cancel:"Cancel",ok:"Ok",fullPath:"Full path",pleaseSelect:"Please select",selected:"selected"},DatePicker:{lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:"[Start date, End date]",rangeYearPlaceholder:"[Start year, End year]",rangeMonthPlaceholder:"[Start month, End month]",rangeWeekPlaceholder:"[Start week, End week]",today:"Today",now:"Now",ok:"Ok"},timePickerLocale:{},placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:"[Start date, End date]",rangeYearPlaceholder:"[Start year, End year]",rangeMonthPlaceholder:"[Start month, End month]",rangeWeekPlaceholder:"[Start week, End week]",today:"Today",now:"Now",ok:"Ok"},Desktop:{createDir:"Create Folder",save:"Save",outDir:"Move out of folder"},DragVerify:{tryAgain:"Try again",swipe:"Swipe right to fill puzzle"},Drawer:{cancel:"Cancel",ok:"Ok"},DynamicMultiBox:{add:"Newly Added",titleForm:"Form configuration (non mandatory)",default:"Restore default",noData:"There are currently no other attributes available"},Empty:{noData:"No Data",click:",Click to ",refresh:"refresh"},Modal:{cancel:"Cancel",ok:"Ok"},MultiBox:{add:"Newly Added"},OperateBtn:{more:"more"},Pagination:{total:"Total {total}",barPage:"Bar/Page",prevPage:"Prev",nextPage:"Next",jumpTo:"Go to",page:" Page"},PopConfirm:{cancel:"Cancel",ok:"Ok"},Querying:{querying:"Data querying"},Select:{searchPlaceholder:"Please enter",more:"More"},Selector:{root:"root",selectAll:"Select all",seeMore:"See more",selected:"Selected",pleaseEnter:"Please enter",searchResult:"Search result",detail:"Details",child:"Level"},SelectorPicker:{selected:"Selected",select:"Please select",more:"More"},SingleBox:{add:"Newly Added"},Table:{empty:"Empty",determine:"Ok",restoreDefault:"Restore default",serial:"Sort",loadMore:"Load more",refresh:"Refresh",selectNum:"Selected {num} items",selectAll:"Select All"},Tabs:{confirmDelete:"Are you sure delete?"},Transfer:{left:"Left",right:"Right",allCheck:"Select All",inVertCheck:"Invert selection",searchPlaceholder:"Please enter",leftBtnTips:"Please check the content on the right first",rightBtnTips:"Please check the content on the left first"},Tree:{loadMore:"Load more",add:"Add",edit:"Edit",disabled:"Disabled",delete:"Delete"},Upload:{uploadError:"Upload error",uploading:"Uploading",clickUploadFile:"Click to upload file",dragFileUpload:"After downloading the template and completing the information, you can directly drag and drop the file here to upload it. Supported formats: XLS, XLSX...",add:"Add",edit:"Edit",disabled:"Disabled",delete:"Delete",editImage:"Edit image"}},zhCN:{Breadcrumbs:{back:"返回"},Button:{moreActions:"更多操作"},ComboSelect:{searchPlaceholder:"请输入",cancel:"取消",ok:"确定",fullPath:"完整路径",pleaseSelect:"请选择",selected:"已选中"},DatePicker:{lang:{placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:"[开始日期, 结束日期]",rangeYearPlaceholder:"[开始年份, 结束年份]",rangeMonthPlaceholder:"[开始月份, 结束月份]",rangeWeekPlaceholder:"[开始周, 结束周]",today:"选择今天",now:"此刻",ok:"确 定"},timePickerLocale:{},placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:"[开始日期, 结束日期]",rangeYearPlaceholder:"[开始年份, 结束年份]",rangeMonthPlaceholder:"[开始月份, 结束月份]",rangeWeekPlaceholder:"[开始周, 结束周]",today:"选择今天",now:"此刻",ok:"确 定"},Desktop:{createDir:"新建文件夹",save:"保 存",outDir:"移出文件夹"},DragVerify:{tryAgain:"再试一次",swipe:"向右滑动填充拼图"},Drawer:{cancel:"取消",ok:"确定"},DynamicMultiBox:{add:"添 加",titleForm:"表单配置 (非必填项)",default:"恢复默认",noData:"暂无其他属性"},Empty:{noData:"暂无内容",click:",点击",refresh:"刷新"},Modal:{cancel:"取消",ok:"确定"},MultiBox:{add:"添 加"},OperateBtn:{more:"更多"},Pagination:{total:"共{total}条",barPage:"条/页",prevPage:"上一页",nextPage:"下一页",jumpTo:"前往",page:"页"},PopConfirm:{cancel:"取消",ok:"确定"},Querying:{querying:"数据查询中"},Select:{searchPlaceholder:"请输入",more:"更多"},Selector:{root:"根",selectAll:"全选",seeMore:"查看更多",selected:"已选",pleaseEnter:"请输入",searchResult:"搜索结果",detail:"详情",child:"下级"},SelectorPicker:{selected:"已选中",select:"请选择",more:"更多"},SingleBox:{add:"新增"},Table:{empty:"清空",determine:"确定",restoreDefault:"恢复默认",serial:"序号",loadMore:"加载更多",refresh:"刷新",selectNum:"已选{num}项",selectAll:"全选"},Tabs:{confirmDelete:"确定删除吗?"},Transfer:{left:"左侧",right:"右侧",allCheck:"全选",inVertCheck:"反选",searchPlaceholder:"请输入",leftBtnTips:"请先勾选右侧内容",rightBtnTips:"请先勾选左侧内容"},Tree:{loadMore:"加载更多",add:"新增",edit:"编辑",disabled:"禁用",delete:"删除"},Upload:{uploadError:"上传失败",uploading:"正在上传",clickUploadFile:"点击上传文件",dragFileUpload:"下载模板并完善信息后,可直接将文件拖拽到此处进行上传,支持格式:XLS、XLSX...",add:"新增",edit:"编辑",disabled:"禁用",delete:"删除",editImage:"编辑图片"}}};return t}()}));
|
package/Cascader/lang/en_US.d.ts
DELETED
package/Cascader/lang/index.d.ts
DELETED
package/Cascader/lang/zh_CN.d.ts
DELETED
package/Split/index.d.ts
DELETED
package/Split/index.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
import React__default from 'react';
|
|
5
|
-
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
6
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
7
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
|
-
|
|
9
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-split {\n display: flex;\n min-height: 200px;\n -webkit-user-select: none;\n user-select: none;\n}\n.paraui-v3-split .split-left {\n background-color: #ffffff;\n position: relative;\n min-width: 201px;\n}\n.paraui-v3-split .split-left .split-separator {\n display: flex;\n justify-content: center;\n align-items: center;\n position: absolute;\n top: 0;\n right: 0;\n width: 6px;\n height: 100%;\n background-color: white;\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);\n cursor: col-resize;\n}\n.paraui-v3-split .split-left .split-separator i {\n display: inline-block;\n height: 14px;\n width: 1px;\n background-color: #e9e9e9;\n margin: 0 1px;\n}\n.paraui-v3-split .split-left .split-left-content {\n padding: 20px 34px 20px 20px;\n}\n.paraui-v3-split .split-right {\n background-color: #ffffff;\n flex: 1;\n}\n.paraui-v3-split .split-right-content {\n padding: 20px;\n}";
|
|
10
|
-
styleInject(css_248z);
|
|
11
|
-
|
|
12
|
-
var Split = function Split(props) {
|
|
13
|
-
var _props$minWidth = props.minWidth,
|
|
14
|
-
minWidth = _props$minWidth === void 0 ? 200 : _props$minWidth,
|
|
15
|
-
children = props.children;
|
|
16
|
-
var startX, startWidth, startWidthContainer;
|
|
17
|
-
var separatorRef = React__default.useRef(null);
|
|
18
|
-
var scalableRef = React__default.useRef(null);
|
|
19
|
-
var containerRef = React__default.useRef(null);
|
|
20
|
-
var _React$useState = React__default.useState({
|
|
21
|
-
left: null,
|
|
22
|
-
right: null
|
|
23
|
-
}),
|
|
24
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
25
|
-
state = _React$useState2[0],
|
|
26
|
-
setState = _React$useState2[1];
|
|
27
|
-
/**
|
|
28
|
-
* 陈夕 2021/4/21 下午3:34
|
|
29
|
-
* desc: 开始拖拽
|
|
30
|
-
* @params
|
|
31
|
-
**/
|
|
32
|
-
var startDrag = function startDrag(e) {
|
|
33
|
-
startX = e.clientX;
|
|
34
|
-
startWidthContainer = getDivWidth(containerRef.current);
|
|
35
|
-
startWidth = getDivWidth(scalableRef.current);
|
|
36
|
-
document.documentElement.addEventListener("mousemove", onDrag);
|
|
37
|
-
document.documentElement.addEventListener("mouseup", onStopDrag);
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* 陈夕 2021/4/21 下午3:34
|
|
41
|
-
* desc: 拖拽计算宽度位置,不能出现滚动条,所以要设置临界值
|
|
42
|
-
* @params
|
|
43
|
-
**/
|
|
44
|
-
var onDrag = function onDrag(e) {
|
|
45
|
-
var newWidth = startWidth + e.clientX - startX;
|
|
46
|
-
if (startWidthContainer - newWidth <= minWidth || newWidth <= minWidth) return;
|
|
47
|
-
scalableRef.current.style.width = newWidth + "px";
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* 陈夕 2021/4/21 下午3:35
|
|
51
|
-
* desc: 停止拖动,移除事件
|
|
52
|
-
* @params
|
|
53
|
-
**/
|
|
54
|
-
var onStopDrag = function onStopDrag(e) {
|
|
55
|
-
document.documentElement.removeEventListener("mousemove", onDrag);
|
|
56
|
-
document.documentElement.removeEventListener("mouseup", onStopDrag);
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* 陈夕 2021/4/21 下午3:35
|
|
60
|
-
* desc: 获取dom的宽度
|
|
61
|
-
* @params
|
|
62
|
-
**/
|
|
63
|
-
var getDivWidth = function getDivWidth(dom) {
|
|
64
|
-
return parseInt(dom.getBoundingClientRect().width, 10);
|
|
65
|
-
};
|
|
66
|
-
React__default.useEffect(function () {
|
|
67
|
-
var _a;
|
|
68
|
-
if (separatorRef.current) {
|
|
69
|
-
(_a = separatorRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener("mousedown", startDrag);
|
|
70
|
-
}
|
|
71
|
-
}, [separatorRef]);
|
|
72
|
-
/**
|
|
73
|
-
* 陈夕 2021/4/21 下午3:35
|
|
74
|
-
* desc: 切分传进来的数组的组件值
|
|
75
|
-
* @params
|
|
76
|
-
**/
|
|
77
|
-
React__default.useEffect(function () {
|
|
78
|
-
if (children && _typeof(children) === "object") {
|
|
79
|
-
setState({
|
|
80
|
-
left: children,
|
|
81
|
-
right: null
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
if (children && Array.isArray(children)) {
|
|
85
|
-
var leftComponent = children.slice(0, Math.floor(children.length / 2));
|
|
86
|
-
var rightComponent = children.slice(Math.floor(children.length / 2), children.length);
|
|
87
|
-
setState({
|
|
88
|
-
left: leftComponent,
|
|
89
|
-
right: rightComponent
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}, [children]);
|
|
93
|
-
return jsxs("div", Object.assign({
|
|
94
|
-
className: $prefixCls + '-split',
|
|
95
|
-
ref: containerRef
|
|
96
|
-
}, {
|
|
97
|
-
children: [jsxs("div", Object.assign({
|
|
98
|
-
className: "split-left"
|
|
99
|
-
}, {
|
|
100
|
-
children: [jsx("div", Object.assign({
|
|
101
|
-
className: "split-left-content",
|
|
102
|
-
ref: scalableRef
|
|
103
|
-
}, {
|
|
104
|
-
children: state.left
|
|
105
|
-
})), jsxs("div", Object.assign({
|
|
106
|
-
className: "split-separator",
|
|
107
|
-
ref: separatorRef
|
|
108
|
-
}, {
|
|
109
|
-
children: [jsx("i", {}), jsx("i", {})]
|
|
110
|
-
}))]
|
|
111
|
-
})), jsx("div", Object.assign({
|
|
112
|
-
className: "split-right"
|
|
113
|
-
}, {
|
|
114
|
-
children: jsx("div", Object.assign({
|
|
115
|
-
className: "split-right-content"
|
|
116
|
-
}, {
|
|
117
|
-
children: state.right
|
|
118
|
-
}))
|
|
119
|
-
}))]
|
|
120
|
-
}));
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export { Split as default };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
2
|
-
|
|
3
|
-
var css_248z = ".sketch-picker, .chrome-picker,\n.swatches-picker, .compact-picker {\n box-sizing: content-box !important;\n}\n.sketch-picker *, .chrome-picker *,\n.swatches-picker *, .compact-picker * {\n box-sizing: content-box !important;\n}";
|
|
4
|
-
styleInject(css_248z);
|
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
2
|
-
|
|
3
|
-
var _typeof = {exports: {}};
|
|
4
|
-
|
|
5
|
-
(function (module) {
|
|
6
|
-
function _typeof(obj) {
|
|
7
|
-
"@babel/helpers - typeof";
|
|
8
|
-
|
|
9
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
10
|
-
return typeof obj;
|
|
11
|
-
} : function (obj) {
|
|
12
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
13
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
14
|
-
}
|
|
15
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
16
|
-
} (_typeof));
|
|
17
|
-
|
|
18
|
-
(function (module) {
|
|
19
|
-
var _typeof$1 = _typeof.exports["default"];
|
|
20
|
-
function _regeneratorRuntime() {
|
|
21
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
22
|
-
return exports;
|
|
23
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
24
|
-
var exports = {},
|
|
25
|
-
Op = Object.prototype,
|
|
26
|
-
hasOwn = Op.hasOwnProperty,
|
|
27
|
-
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
28
|
-
obj[key] = desc.value;
|
|
29
|
-
},
|
|
30
|
-
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
31
|
-
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
32
|
-
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
33
|
-
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
34
|
-
function define(obj, key, value) {
|
|
35
|
-
return Object.defineProperty(obj, key, {
|
|
36
|
-
value: value,
|
|
37
|
-
enumerable: !0,
|
|
38
|
-
configurable: !0,
|
|
39
|
-
writable: !0
|
|
40
|
-
}), obj[key];
|
|
41
|
-
}
|
|
42
|
-
try {
|
|
43
|
-
define({}, "");
|
|
44
|
-
} catch (err) {
|
|
45
|
-
define = function define(obj, key, value) {
|
|
46
|
-
return obj[key] = value;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
50
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
51
|
-
generator = Object.create(protoGenerator.prototype),
|
|
52
|
-
context = new Context(tryLocsList || []);
|
|
53
|
-
return defineProperty(generator, "_invoke", {
|
|
54
|
-
value: makeInvokeMethod(innerFn, self, context)
|
|
55
|
-
}), generator;
|
|
56
|
-
}
|
|
57
|
-
function tryCatch(fn, obj, arg) {
|
|
58
|
-
try {
|
|
59
|
-
return {
|
|
60
|
-
type: "normal",
|
|
61
|
-
arg: fn.call(obj, arg)
|
|
62
|
-
};
|
|
63
|
-
} catch (err) {
|
|
64
|
-
return {
|
|
65
|
-
type: "throw",
|
|
66
|
-
arg: err
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.wrap = wrap;
|
|
71
|
-
var ContinueSentinel = {};
|
|
72
|
-
function Generator() {}
|
|
73
|
-
function GeneratorFunction() {}
|
|
74
|
-
function GeneratorFunctionPrototype() {}
|
|
75
|
-
var IteratorPrototype = {};
|
|
76
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
77
|
-
return this;
|
|
78
|
-
});
|
|
79
|
-
var getProto = Object.getPrototypeOf,
|
|
80
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
81
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
82
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
83
|
-
function defineIteratorMethods(prototype) {
|
|
84
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
85
|
-
define(prototype, method, function (arg) {
|
|
86
|
-
return this._invoke(method, arg);
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
91
|
-
function invoke(method, arg, resolve, reject) {
|
|
92
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
93
|
-
if ("throw" !== record.type) {
|
|
94
|
-
var result = record.arg,
|
|
95
|
-
value = result.value;
|
|
96
|
-
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
97
|
-
invoke("next", value, resolve, reject);
|
|
98
|
-
}, function (err) {
|
|
99
|
-
invoke("throw", err, resolve, reject);
|
|
100
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
101
|
-
result.value = unwrapped, resolve(result);
|
|
102
|
-
}, function (error) {
|
|
103
|
-
return invoke("throw", error, resolve, reject);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
reject(record.arg);
|
|
107
|
-
}
|
|
108
|
-
var previousPromise;
|
|
109
|
-
defineProperty(this, "_invoke", {
|
|
110
|
-
value: function value(method, arg) {
|
|
111
|
-
function callInvokeWithMethodAndArg() {
|
|
112
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
113
|
-
invoke(method, arg, resolve, reject);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
121
|
-
var state = "suspendedStart";
|
|
122
|
-
return function (method, arg) {
|
|
123
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
124
|
-
if ("completed" === state) {
|
|
125
|
-
if ("throw" === method) throw arg;
|
|
126
|
-
return doneResult();
|
|
127
|
-
}
|
|
128
|
-
for (context.method = method, context.arg = arg;;) {
|
|
129
|
-
var delegate = context.delegate;
|
|
130
|
-
if (delegate) {
|
|
131
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
132
|
-
if (delegateResult) {
|
|
133
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
134
|
-
return delegateResult;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
138
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
139
|
-
context.dispatchException(context.arg);
|
|
140
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
141
|
-
state = "executing";
|
|
142
|
-
var record = tryCatch(innerFn, self, context);
|
|
143
|
-
if ("normal" === record.type) {
|
|
144
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
145
|
-
return {
|
|
146
|
-
value: record.arg,
|
|
147
|
-
done: context.done
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
155
|
-
var methodName = context.method,
|
|
156
|
-
method = delegate.iterator[methodName];
|
|
157
|
-
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
158
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
159
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
160
|
-
var info = record.arg;
|
|
161
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
162
|
-
}
|
|
163
|
-
function pushTryEntry(locs) {
|
|
164
|
-
var entry = {
|
|
165
|
-
tryLoc: locs[0]
|
|
166
|
-
};
|
|
167
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
168
|
-
}
|
|
169
|
-
function resetTryEntry(entry) {
|
|
170
|
-
var record = entry.completion || {};
|
|
171
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
172
|
-
}
|
|
173
|
-
function Context(tryLocsList) {
|
|
174
|
-
this.tryEntries = [{
|
|
175
|
-
tryLoc: "root"
|
|
176
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
177
|
-
}
|
|
178
|
-
function values(iterable) {
|
|
179
|
-
if (iterable) {
|
|
180
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
181
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
182
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
183
|
-
if (!isNaN(iterable.length)) {
|
|
184
|
-
var i = -1,
|
|
185
|
-
next = function next() {
|
|
186
|
-
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
187
|
-
return next.value = undefined, next.done = !0, next;
|
|
188
|
-
};
|
|
189
|
-
return next.next = next;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
return {
|
|
193
|
-
next: doneResult
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
function doneResult() {
|
|
197
|
-
return {
|
|
198
|
-
value: undefined,
|
|
199
|
-
done: !0
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
203
|
-
value: GeneratorFunctionPrototype,
|
|
204
|
-
configurable: !0
|
|
205
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
206
|
-
value: GeneratorFunction,
|
|
207
|
-
configurable: !0
|
|
208
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
209
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
210
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
211
|
-
}, exports.mark = function (genFun) {
|
|
212
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
213
|
-
}, exports.awrap = function (arg) {
|
|
214
|
-
return {
|
|
215
|
-
__await: arg
|
|
216
|
-
};
|
|
217
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
218
|
-
return this;
|
|
219
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
220
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
221
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
222
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
223
|
-
return result.done ? result.value : iter.next();
|
|
224
|
-
});
|
|
225
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
226
|
-
return this;
|
|
227
|
-
}), define(Gp, "toString", function () {
|
|
228
|
-
return "[object Generator]";
|
|
229
|
-
}), exports.keys = function (val) {
|
|
230
|
-
var object = Object(val),
|
|
231
|
-
keys = [];
|
|
232
|
-
for (var key in object) keys.push(key);
|
|
233
|
-
return keys.reverse(), function next() {
|
|
234
|
-
for (; keys.length;) {
|
|
235
|
-
var key = keys.pop();
|
|
236
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
237
|
-
}
|
|
238
|
-
return next.done = !0, next;
|
|
239
|
-
};
|
|
240
|
-
}, exports.values = values, Context.prototype = {
|
|
241
|
-
constructor: Context,
|
|
242
|
-
reset: function reset(skipTempReset) {
|
|
243
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
244
|
-
},
|
|
245
|
-
stop: function stop() {
|
|
246
|
-
this.done = !0;
|
|
247
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
248
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
249
|
-
return this.rval;
|
|
250
|
-
},
|
|
251
|
-
dispatchException: function dispatchException(exception) {
|
|
252
|
-
if (this.done) throw exception;
|
|
253
|
-
var context = this;
|
|
254
|
-
function handle(loc, caught) {
|
|
255
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
256
|
-
}
|
|
257
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
258
|
-
var entry = this.tryEntries[i],
|
|
259
|
-
record = entry.completion;
|
|
260
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
261
|
-
if (entry.tryLoc <= this.prev) {
|
|
262
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
263
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
264
|
-
if (hasCatch && hasFinally) {
|
|
265
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
266
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
267
|
-
} else if (hasCatch) {
|
|
268
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
269
|
-
} else {
|
|
270
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
271
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
},
|
|
276
|
-
abrupt: function abrupt(type, arg) {
|
|
277
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
278
|
-
var entry = this.tryEntries[i];
|
|
279
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
280
|
-
var finallyEntry = entry;
|
|
281
|
-
break;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
285
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
286
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
287
|
-
},
|
|
288
|
-
complete: function complete(record, afterLoc) {
|
|
289
|
-
if ("throw" === record.type) throw record.arg;
|
|
290
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
291
|
-
},
|
|
292
|
-
finish: function finish(finallyLoc) {
|
|
293
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
294
|
-
var entry = this.tryEntries[i];
|
|
295
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
"catch": function _catch(tryLoc) {
|
|
299
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
300
|
-
var entry = this.tryEntries[i];
|
|
301
|
-
if (entry.tryLoc === tryLoc) {
|
|
302
|
-
var record = entry.completion;
|
|
303
|
-
if ("throw" === record.type) {
|
|
304
|
-
var thrown = record.arg;
|
|
305
|
-
resetTryEntry(entry);
|
|
306
|
-
}
|
|
307
|
-
return thrown;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
throw new Error("illegal catch attempt");
|
|
311
|
-
},
|
|
312
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
313
|
-
return this.delegate = {
|
|
314
|
-
iterator: values(iterable),
|
|
315
|
-
resultName: resultName,
|
|
316
|
-
nextLoc: nextLoc
|
|
317
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
318
|
-
}
|
|
319
|
-
}, exports;
|
|
320
|
-
}
|
|
321
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
322
|
-
} (regeneratorRuntime$1));
|
|
323
|
-
|
|
324
|
-
// TODO(Babel 8): Remove this file.
|
|
325
|
-
|
|
326
|
-
var runtime = regeneratorRuntime$1.exports();
|
|
327
|
-
var regenerator = runtime;
|
|
328
|
-
|
|
329
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
330
|
-
try {
|
|
331
|
-
regeneratorRuntime = runtime;
|
|
332
|
-
} catch (accidentalStrictMode) {
|
|
333
|
-
if (typeof globalThis === "object") {
|
|
334
|
-
globalThis.regeneratorRuntime = runtime;
|
|
335
|
-
} else {
|
|
336
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export { regenerator as r };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cb478f24.js';
|
|
2
|
-
|
|
3
|
-
function _arrayWithHoles(arr) {
|
|
4
|
-
if (Array.isArray(arr)) return arr;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function _iterableToArrayLimit(arr, i) {
|
|
8
|
-
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9
|
-
if (null != _i) {
|
|
10
|
-
var _s,
|
|
11
|
-
_e,
|
|
12
|
-
_x,
|
|
13
|
-
_r,
|
|
14
|
-
_arr = [],
|
|
15
|
-
_n = !0,
|
|
16
|
-
_d = !1;
|
|
17
|
-
try {
|
|
18
|
-
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
19
|
-
if (Object(_i) !== _i) return;
|
|
20
|
-
_n = !1;
|
|
21
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
22
|
-
} catch (err) {
|
|
23
|
-
_d = !0, _e = err;
|
|
24
|
-
} finally {
|
|
25
|
-
try {
|
|
26
|
-
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
|
|
27
|
-
} finally {
|
|
28
|
-
if (_d) throw _e;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return _arr;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function _nonIterableRest() {
|
|
36
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function _slicedToArray(arr, i) {
|
|
40
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export { _slicedToArray as _ };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) {
|
|
2
|
-
"@babel/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
5
|
-
return typeof obj;
|
|
6
|
-
} : function (obj) {
|
|
7
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
8
|
-
}, _typeof(obj);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { _typeof as _ };
|
package/umd/Split.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ParaUI=t(require("react")):e.ParaUI=t(e.react)}(self,(function(e){return function(){var t={44941:function(e,t,n){(t=n(23645)(!1)).push([e.id,".paraui-v3-split{display:flex;min-height:200px;-webkit-user-select:none;user-select:none}.paraui-v3-split .split-left{background-color:#fff;position:relative;min-width:201px}.paraui-v3-split .split-left .split-separator{display:flex;justify-content:center;align-items:center;position:absolute;top:0;right:0;width:6px;height:100%;background-color:#fff;box-shadow:0 0 2px rgba(0,0,0,.35);cursor:col-resize}.paraui-v3-split .split-left .split-separator i{display:inline-block;height:14px;width:1px;background-color:#e9e9e9;margin:0 1px}.paraui-v3-split .split-left .split-left-content{padding:20px 34px 20px 20px}.paraui-v3-split .split-right{background-color:#fff;flex:1}.paraui-v3-split .split-right-content{padding:20px}",""]),e.exports=t},23645:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(u," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(i).concat([o]).join("\n")}var a,c,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},74027:function(e,t,n){var r=n(93379),o=n(44941);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var i={insert:"head",singleton:!1};r(o,i);e.exports=o.locals||{}},93379:function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function c(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function u(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],u=t.base?i[0]+t.base:i[0],l=n[u]||0,s="".concat(u," ").concat(l);n[u]=l+1;var f=c(s),d={css:i[1],media:i[2],sourceMap:i[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:s,updater:h(d,t),references:1}),r.push(s)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var s,f=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function d(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function p(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var v=null,m=0;function h(e,t){var n,r,o;if(t.singleton){var i=m++;n=v||(v=l(t)),r=d.bind(null,n,i,!1),o=d.bind(null,n,i,!0)}else n=l(t),r=p.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=u(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=c(n[r]);a[o].references--}for(var i=u(e,t),l=0;l<n.length;l++){var s=c(n[l]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}n=i}}}},8156:function(t){"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nc=void 0;var o={};return function(){"use strict";r.r(o),r.d(o,{default:function(){return a}});var e=r(8156),t=r.n(e);r(74027);function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=function(e){var n,r,o,a=e.minWidth,c=void 0===a?200:a,u=e.children,l=t().useRef(null),s=t().useRef(null),f=t().useRef(null),d=i(t().useState({left:null,right:null}),2),p=d[0],v=d[1],m=function(e){n=e.clientX,o=y(f.current),r=y(s.current),document.documentElement.addEventListener("mousemove",h),document.documentElement.addEventListener("mouseup",g)},h=function(e){var t=r+e.clientX-n;o-t<=c||t<=c||(s.current.style.width=t+"px")},g=function(e){document.documentElement.removeEventListener("mousemove",h),document.documentElement.removeEventListener("mouseup",g)},y=function(e){return parseInt(e.getBoundingClientRect().width,10)};return t().useEffect((function(){var e;l.current&&(null===(e=l.current)||void 0===e||e.addEventListener("mousedown",m))}),[l]),t().useEffect((function(){if(u&&"object"==typeof u&&v({left:u,right:null}),u&&Array.isArray(u)){var e=u.slice(0,Math.floor(u.length/2)),t=u.slice(Math.floor(u.length/2),u.length);v({left:e,right:t})}}),[u]),t().createElement("div",{className:"paraui-v3-split",ref:f},t().createElement("div",{className:"split-left"},t().createElement("div",{className:"split-left-content",ref:s},p.left),t().createElement("div",{className:"split-separator",ref:l},t().createElement("i",null),t().createElement("i",null))),t().createElement("div",{className:"split-right"},t().createElement("div",{className:"split-right-content"},p.right)))}}(),o}()}));
|