@para-ui/core 4.0.24 → 4.0.25
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/AutoTips/index.js +14 -14
- package/Cascader/index.js +2 -2
- package/ComboSelect/index.js +1 -1
- package/CycleSelector/index.d.ts +14 -2
- package/CycleSelector/index.js +42 -3
- package/DynamicMultiBox/index.js +1 -1
- package/Form/index.js +2 -2
- package/FormItem/index.js +2 -2
- package/FunctionModal/index.js +2 -2
- package/README.md +7 -0
- package/Selector/index.js +325 -2
- package/SelectorPicker/index.js +0 -1
- package/Transfer/index.js +49 -43
- package/Tree/index.js +2 -2
- package/Upload/index.js +479 -756
- package/index.js +4 -5
- package/package.json +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +1 -1
- package/umd/Cascader.js +1 -1
- package/umd/ComboSelect.js +1 -1
- package/umd/CopyText.js +1 -1
- package/umd/CycleSelector.js +2 -2
- package/umd/DatePicker.js +1 -1
- package/umd/Descriptions.js +1 -1
- package/umd/Desktop.js +1 -1
- package/umd/Drawer.js +1 -1
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/FunctionModal.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/Menu.js +1 -1
- package/umd/Modal.js +1 -1
- package/umd/MultiBox.js +1 -1
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +1 -1
- package/umd/Pagination.js +1 -1
- package/umd/PopConfirm.js +1 -1
- package/umd/PopMenu.js +1 -1
- package/umd/QuickReply.js +1 -1
- package/umd/Search.js +1 -1
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/SingleBox.js +1 -1
- package/umd/Stepper.js +1 -1
- package/umd/Table.js +1 -1
- package/umd/Tabs.js +1 -1
- package/umd/Tag.js +1 -1
- package/umd/TextField.js +1 -1
- package/umd/TimePicker.js +1 -1
- package/umd/Title.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Transfer.js +1 -1
- package/umd/Tree.js +1 -1
- package/umd/Upload.js +1 -1
- package/_verture/index-8ac46bd9.js +0 -327
- /package/_verture/{index-8cfd01fd.js → index-0eca82dc.js} +0 -0
- /package/_verture/{index-2a6adf4d.js → index-5f205d87.js} +0 -0
- /package/_verture/{index-bbe5660a.js → index-93662604.js} +0 -0
- /package/_verture/{modalContext-0c08a396.js → modalContext-c57b51b7.js} +0 -0
package/AutoTips/index.js
CHANGED
|
@@ -66,7 +66,7 @@ const AutoTipsMultiline = props => {
|
|
|
66
66
|
addWidth = offsetWidth; // 重置宽度
|
|
67
67
|
// 最后一个字
|
|
68
68
|
if (i === singleWordRefs.current.length - 1) {
|
|
69
|
-
if (lineArr.length < constData.current.line
|
|
69
|
+
if (lineArr.length < constData.current.line) {
|
|
70
70
|
// 没超出行数
|
|
71
71
|
lineArr.push(children.slice(linePos, children.length));
|
|
72
72
|
} else {
|
|
@@ -226,20 +226,20 @@ const AutoTips = props => {
|
|
|
226
226
|
if (className) str += " ".concat(className);
|
|
227
227
|
return str;
|
|
228
228
|
};
|
|
229
|
-
return jsx(
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
229
|
+
return jsx(Tooltip, Object.assign({
|
|
230
|
+
arrow: arrow,
|
|
231
|
+
title: tTips,
|
|
232
|
+
placement: placement,
|
|
233
|
+
interactive: interactive,
|
|
234
|
+
boundariesElement: 'viewport',
|
|
235
|
+
overlayClassName: "".concat($prefixCls, "-auto-tips-tooltip"),
|
|
236
|
+
maxWidth: tipMaxWidth
|
|
234
237
|
}, {
|
|
235
|
-
children: jsx(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
boundariesElement: 'viewport',
|
|
241
|
-
overlayClassName: "".concat($prefixCls, "-auto-tips-tooltip"),
|
|
242
|
-
maxWidth: tipMaxWidth
|
|
238
|
+
children: jsx("div", Object.assign({
|
|
239
|
+
ref: tipsElm,
|
|
240
|
+
className: handClass(),
|
|
241
|
+
onMouseOver: mouseHover,
|
|
242
|
+
style: style
|
|
243
243
|
}, {
|
|
244
244
|
children: jsx("div", Object.assign({
|
|
245
245
|
className: "auto-tips-content",
|
package/Cascader/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as Cascader } from '../_verture/index-
|
|
2
|
-
export { C as default } from '../_verture/index-
|
|
1
|
+
import { C as Cascader } from '../_verture/index-5f205d87.js';
|
|
2
|
+
export { C as default } from '../_verture/index-5f205d87.js';
|
|
3
3
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import '../_verture/Portal-5bd49559.js';
|
package/ComboSelect/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import SearchIcon from '@para-ui/icons/Search';
|
|
|
6
6
|
import CloseIcon from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import Table from '../Table/index.js';
|
|
9
|
-
import { T as Tree } from '../_verture/index-
|
|
9
|
+
import { T as Tree } from '../_verture/index-93662604.js';
|
|
10
10
|
import { Button } from '../Button/index.js';
|
|
11
11
|
import { D as Dropdown } from '../_verture/index-bde7aabe.js';
|
|
12
12
|
import { Popover } from '../Popover/index.js';
|
package/CycleSelector/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { HelperTextDetailProps } from "../HelperText";
|
|
|
9
9
|
import './index.scss';
|
|
10
10
|
export interface CycleSelectorValueProps {
|
|
11
11
|
/** 开始时间 */
|
|
12
|
-
startTime?: string;
|
|
12
|
+
startTime?: string | number;
|
|
13
13
|
/** 周期类型:0:不重复,1:每天重复,2:每周重复,3:每月重复,4:每年重复,5:自定义 */
|
|
14
14
|
cycleType?: number;
|
|
15
15
|
/** 周期频率 */
|
|
@@ -25,7 +25,7 @@ export interface CycleSelectorValueProps {
|
|
|
25
25
|
/** 当结束方式是限定次数,限定的重复执行次数 */
|
|
26
26
|
limitNum?: number;
|
|
27
27
|
/** 当结束方式是限定时间,结束执行的日期 */
|
|
28
|
-
endTime?: string;
|
|
28
|
+
endTime?: string | number;
|
|
29
29
|
}
|
|
30
30
|
declare type DisabledTimes = {
|
|
31
31
|
disabledHours?: () => number[];
|
|
@@ -37,12 +37,24 @@ export interface CycleSelectorProps extends HelperTextDetailProps {
|
|
|
37
37
|
className?: string;
|
|
38
38
|
style?: React.CSSProperties;
|
|
39
39
|
value: CycleSelectorValueProps;
|
|
40
|
+
/** 时间格式
|
|
41
|
+
* undefined:YYYY-MM-DD HH:mm:ss
|
|
42
|
+
* zone: YYYY-MM-DD[T]HH:mm:ss[Z]
|
|
43
|
+
* stamp: 时间戳
|
|
44
|
+
* */
|
|
45
|
+
timeType?: 'zone' | 'stamp';
|
|
46
|
+
/** 提示文本自定义渲染 */
|
|
47
|
+
tipRender?: () => React.ReactNode;
|
|
40
48
|
/** 禁用 */
|
|
41
49
|
disabled?: boolean;
|
|
42
50
|
/** 禁用日期 */
|
|
43
51
|
disabledDate?: (date: Dayjs) => boolean;
|
|
44
52
|
/** 禁用时间 */
|
|
45
53
|
disabledTime?: DisabledTime<Dayjs>;
|
|
54
|
+
/** 显示弹窗
|
|
55
|
+
* 不传:组件里面控制
|
|
56
|
+
* */
|
|
57
|
+
showPopover?: boolean;
|
|
46
58
|
onChange: (val: CycleSelectorValueProps) => void;
|
|
47
59
|
}
|
|
48
60
|
declare const CycleSelector: FunctionComponent<CycleSelectorProps>;
|
package/CycleSelector/index.js
CHANGED
|
@@ -235,6 +235,9 @@ const CycleSelector = props => {
|
|
|
235
235
|
helperText,
|
|
236
236
|
disabledDate,
|
|
237
237
|
disabledTime,
|
|
238
|
+
timeType,
|
|
239
|
+
tipRender,
|
|
240
|
+
showPopover,
|
|
238
241
|
onChange
|
|
239
242
|
} = props;
|
|
240
243
|
const {
|
|
@@ -300,10 +303,36 @@ const CycleSelector = props => {
|
|
|
300
303
|
useEffect(() => {
|
|
301
304
|
const valC = value ? Object.assign({}, value) : {};
|
|
302
305
|
if (!valC.startTime) valC.cycleType = 0;
|
|
306
|
+
if (valC.startTime) valC.startTime = handleTimeEnter(valC.startTime, 'YYYY-MM-DD HH:mm');
|
|
307
|
+
if (valC.endTime) valC.endTime = handleTimeEnter(valC.endTime, 'YYYY-MM-DD');
|
|
303
308
|
setValueCom(valC);
|
|
304
309
|
constData.current.valueCom = valC;
|
|
305
310
|
handleSelectData();
|
|
306
311
|
}, [value, language]);
|
|
312
|
+
useEffect(() => {
|
|
313
|
+
if (showPopover !== undefined) {
|
|
314
|
+
if (showPopover) handlePopoverDefaultValue();
|
|
315
|
+
}
|
|
316
|
+
}, [showPopover]);
|
|
317
|
+
// 出参
|
|
318
|
+
const handleTimeOut = val => {
|
|
319
|
+
if (!val) return '';
|
|
320
|
+
if (timeType === 'zone') {
|
|
321
|
+
// 时区
|
|
322
|
+
return new Date(val).toISOString();
|
|
323
|
+
}
|
|
324
|
+
if (timeType === 'stamp') {
|
|
325
|
+
// 时间戳
|
|
326
|
+
return new Date(val).getTime();
|
|
327
|
+
}
|
|
328
|
+
return val;
|
|
329
|
+
};
|
|
330
|
+
// 入参
|
|
331
|
+
const handleTimeEnter = (val, format) => {
|
|
332
|
+
if (!val) return '';
|
|
333
|
+
const timeVal = new Date(val).toLocaleString();
|
|
334
|
+
return dayjs(timeVal).format(format);
|
|
335
|
+
};
|
|
307
336
|
// 处理下拉框选择
|
|
308
337
|
const handleSelectData = () => {
|
|
309
338
|
var _a, _b;
|
|
@@ -434,7 +463,10 @@ const CycleSelector = props => {
|
|
|
434
463
|
delete constData.current.valueCom.limitNum;
|
|
435
464
|
delete constData.current.valueCom.executionDay;
|
|
436
465
|
}
|
|
437
|
-
|
|
466
|
+
const val = cancel ? Object.assign({}, constData.current.value) : Object.assign({}, constData.current.valueCom);
|
|
467
|
+
if (val.startTime) val.startTime = handleTimeOut(val.startTime);
|
|
468
|
+
if (val.endTime) val.endTime = handleTimeOut(val.endTime);
|
|
469
|
+
onChange(val);
|
|
438
470
|
};
|
|
439
471
|
const onVisibleChange = bol => {
|
|
440
472
|
if (!bol) cancelPopover();
|
|
@@ -450,6 +482,7 @@ const CycleSelector = props => {
|
|
|
450
482
|
const text = [];
|
|
451
483
|
const everyText1 = intl('every') + value.frequency + intl(value.frequencyUnit);
|
|
452
484
|
const timeText = (_a = constData.current.timeDetail) === null || _a === void 0 ? void 0 : _a.hm;
|
|
485
|
+
if (tipRender) return tipRender();
|
|
453
486
|
if (value.frequencyUnit === 'week') {
|
|
454
487
|
const arr = [];
|
|
455
488
|
let str;
|
|
@@ -494,7 +527,7 @@ const CycleSelector = props => {
|
|
|
494
527
|
}
|
|
495
528
|
if (value.endType === 1) {
|
|
496
529
|
text.push(intl('text3', {
|
|
497
|
-
date: value.endTime
|
|
530
|
+
date: handleTimeEnter(value.endTime, 'YYYY-MM-DD')
|
|
498
531
|
}));
|
|
499
532
|
}
|
|
500
533
|
return jsxs("p", Object.assign({
|
|
@@ -748,13 +781,19 @@ const CycleSelector = props => {
|
|
|
748
781
|
}
|
|
749
782
|
}*/
|
|
750
783
|
};
|
|
784
|
+
const handleOpen = () => {
|
|
785
|
+
if (showPopover !== undefined) {
|
|
786
|
+
return showPopover;
|
|
787
|
+
}
|
|
788
|
+
return open;
|
|
789
|
+
};
|
|
751
790
|
return jsxs("div", Object.assign({
|
|
752
791
|
className: clsx("".concat($prefixCls, "-cycle-selector"), className),
|
|
753
792
|
style: style
|
|
754
793
|
}, {
|
|
755
794
|
children: [jsx(Popover, Object.assign({
|
|
756
795
|
content: handleContent(),
|
|
757
|
-
open:
|
|
796
|
+
open: handleOpen(),
|
|
758
797
|
placement: "bottomRight",
|
|
759
798
|
overlayClassName: "".concat($prefixCls, "-cycle-selector-popover"),
|
|
760
799
|
onVisibleChange: onVisibleChange
|
package/DynamicMultiBox/index.js
CHANGED
|
@@ -70,7 +70,7 @@ import 'rc-pagination';
|
|
|
70
70
|
import '@para-ui/icons/Right';
|
|
71
71
|
import '@para-ui/icons/DoubleLeft';
|
|
72
72
|
import '@para-ui/icons/DoubleRight';
|
|
73
|
-
import '../_verture/index-
|
|
73
|
+
import '../_verture/index-93662604.js';
|
|
74
74
|
import 'rc-tree';
|
|
75
75
|
import '../_verture/typeof-adeedc13.js';
|
|
76
76
|
import '@para-ui/icons/Document';
|
package/Form/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DeepClone } from '@paraview/lib';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-
|
|
4
|
+
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-0eca82dc.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
7
7
|
import '../TextField/index.js';
|
|
@@ -69,7 +69,7 @@ import 'rc-pagination';
|
|
|
69
69
|
import '@para-ui/icons/Right';
|
|
70
70
|
import '@para-ui/icons/DoubleLeft';
|
|
71
71
|
import '@para-ui/icons/DoubleRight';
|
|
72
|
-
import '../_verture/index-
|
|
72
|
+
import '../_verture/index-93662604.js';
|
|
73
73
|
import 'rc-tree';
|
|
74
74
|
import '../_verture/typeof-adeedc13.js';
|
|
75
75
|
import '@para-ui/icons/Document';
|
package/FormItem/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { F as default } from '../_verture/index-
|
|
3
|
+
export { F as default } from '../_verture/index-0eca82dc.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-5317fc89.js';
|
|
@@ -69,7 +69,7 @@ import 'rc-pagination';
|
|
|
69
69
|
import '@para-ui/icons/Right';
|
|
70
70
|
import '@para-ui/icons/DoubleLeft';
|
|
71
71
|
import '@para-ui/icons/DoubleRight';
|
|
72
|
-
import '../_verture/index-
|
|
72
|
+
import '../_verture/index-93662604.js';
|
|
73
73
|
import 'rc-tree';
|
|
74
74
|
import '../_verture/typeof-adeedc13.js';
|
|
75
75
|
import '@para-ui/icons/Document';
|
package/FunctionModal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useModal } from '../_verture/modalContext-
|
|
2
|
-
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-
|
|
1
|
+
import { u as useModal } from '../_verture/modalContext-c57b51b7.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-c57b51b7.js';
|
|
3
3
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## 版本: 4.0.25
|
|
2
|
+
【超出省略-AutoTips】修复未超出,只多出的最后一行一个字符出现浮层
|
|
3
|
+
【超出省略-AutoTips】更换Tooltip层级
|
|
4
|
+
【周期选择器-CycleSelector】增加时间类型timeType参数
|
|
5
|
+
【周期选择器-CycleSelector】增加提示文本自定义渲染tipRender参数
|
|
6
|
+
【周期选择器-CycleSelector】增加显示弹窗showPopover参数
|
|
7
|
+
|
|
1
8
|
## 版本: 4.0.24
|
|
2
9
|
【超出省略-AutoTips】修复多行超出省略,丢失只多出的最后一个字符
|
|
3
10
|
【表单-Form】修复输入框输入丢失焦点问题
|
package/Selector/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useEffect, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
5
|
-
import {
|
|
5
|
+
import { _ as _typeof } from '../_verture/typeof-6ec38efd.js';
|
|
6
6
|
import { Radio } from '../Radio/index.js';
|
|
7
7
|
import { Checkbox } from '../Checkbox/index.js';
|
|
8
8
|
import { Popover } from '../Popover/index.js';
|
|
@@ -20,7 +20,6 @@ import Refresh from '@para-ui/icons/Refresh';
|
|
|
20
20
|
import { ArrayToObject, Get, Post, Cancel } from '@paraview/lib';
|
|
21
21
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-4ae1a007.js';
|
|
22
22
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
23
|
-
import '../_verture/typeof-6ec38efd.js';
|
|
24
23
|
import '../Label/index.js';
|
|
25
24
|
import '../Help/index.js';
|
|
26
25
|
import '../Tooltip/index.js';
|
|
@@ -43,6 +42,330 @@ import 'dayjs';
|
|
|
43
42
|
import '@para-ui/icons/More';
|
|
44
43
|
import '@para-ui/icons/Return';
|
|
45
44
|
|
|
45
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
46
|
+
|
|
47
|
+
(function (module) {
|
|
48
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
49
|
+
function _regeneratorRuntime() {
|
|
50
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
51
|
+
return e;
|
|
52
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
53
|
+
var t,
|
|
54
|
+
e = {},
|
|
55
|
+
r = Object.prototype,
|
|
56
|
+
n = r.hasOwnProperty,
|
|
57
|
+
o = Object.defineProperty || function (t, e, r) {
|
|
58
|
+
t[e] = r.value;
|
|
59
|
+
},
|
|
60
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
|
61
|
+
a = i.iterator || "@@iterator",
|
|
62
|
+
c = i.asyncIterator || "@@asyncIterator",
|
|
63
|
+
u = i.toStringTag || "@@toStringTag";
|
|
64
|
+
function define(t, e, r) {
|
|
65
|
+
return Object.defineProperty(t, e, {
|
|
66
|
+
value: r,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
configurable: !0,
|
|
69
|
+
writable: !0
|
|
70
|
+
}), t[e];
|
|
71
|
+
}
|
|
72
|
+
try {
|
|
73
|
+
define({}, "");
|
|
74
|
+
} catch (t) {
|
|
75
|
+
define = function define(t, e, r) {
|
|
76
|
+
return t[e] = r;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function wrap(t, e, r, n) {
|
|
80
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
81
|
+
a = Object.create(i.prototype),
|
|
82
|
+
c = new Context(n || []);
|
|
83
|
+
return o(a, "_invoke", {
|
|
84
|
+
value: makeInvokeMethod(t, r, c)
|
|
85
|
+
}), a;
|
|
86
|
+
}
|
|
87
|
+
function tryCatch(t, e, r) {
|
|
88
|
+
try {
|
|
89
|
+
return {
|
|
90
|
+
type: "normal",
|
|
91
|
+
arg: t.call(e, r)
|
|
92
|
+
};
|
|
93
|
+
} catch (t) {
|
|
94
|
+
return {
|
|
95
|
+
type: "throw",
|
|
96
|
+
arg: t
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
e.wrap = wrap;
|
|
101
|
+
var h = "suspendedStart",
|
|
102
|
+
l = "suspendedYield",
|
|
103
|
+
f = "executing",
|
|
104
|
+
s = "completed",
|
|
105
|
+
y = {};
|
|
106
|
+
function Generator() {}
|
|
107
|
+
function GeneratorFunction() {}
|
|
108
|
+
function GeneratorFunctionPrototype() {}
|
|
109
|
+
var p = {};
|
|
110
|
+
define(p, a, function () {
|
|
111
|
+
return this;
|
|
112
|
+
});
|
|
113
|
+
var d = Object.getPrototypeOf,
|
|
114
|
+
v = d && d(d(values([])));
|
|
115
|
+
v && v !== r && n.call(v, a) && (p = v);
|
|
116
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
117
|
+
function defineIteratorMethods(t) {
|
|
118
|
+
["next", "throw", "return"].forEach(function (e) {
|
|
119
|
+
define(t, e, function (t) {
|
|
120
|
+
return this._invoke(e, t);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
function AsyncIterator(t, e) {
|
|
125
|
+
function invoke(r, o, i, a) {
|
|
126
|
+
var c = tryCatch(t[r], t, o);
|
|
127
|
+
if ("throw" !== c.type) {
|
|
128
|
+
var u = c.arg,
|
|
129
|
+
h = u.value;
|
|
130
|
+
return h && "object" == _typeof$1(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
131
|
+
invoke("next", t, i, a);
|
|
132
|
+
}, function (t) {
|
|
133
|
+
invoke("throw", t, i, a);
|
|
134
|
+
}) : e.resolve(h).then(function (t) {
|
|
135
|
+
u.value = t, i(u);
|
|
136
|
+
}, function (t) {
|
|
137
|
+
return invoke("throw", t, i, a);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
a(c.arg);
|
|
141
|
+
}
|
|
142
|
+
var r;
|
|
143
|
+
o(this, "_invoke", {
|
|
144
|
+
value: function value(t, n) {
|
|
145
|
+
function callInvokeWithMethodAndArg() {
|
|
146
|
+
return new e(function (e, r) {
|
|
147
|
+
invoke(t, n, e, r);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
function makeInvokeMethod(e, r, n) {
|
|
155
|
+
var o = h;
|
|
156
|
+
return function (i, a) {
|
|
157
|
+
if (o === f) throw Error("Generator is already running");
|
|
158
|
+
if (o === s) {
|
|
159
|
+
if ("throw" === i) throw a;
|
|
160
|
+
return {
|
|
161
|
+
value: t,
|
|
162
|
+
done: !0
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
for (n.method = i, n.arg = a;;) {
|
|
166
|
+
var c = n.delegate;
|
|
167
|
+
if (c) {
|
|
168
|
+
var u = maybeInvokeDelegate(c, n);
|
|
169
|
+
if (u) {
|
|
170
|
+
if (u === y) continue;
|
|
171
|
+
return u;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
175
|
+
if (o === h) throw o = s, n.arg;
|
|
176
|
+
n.dispatchException(n.arg);
|
|
177
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
178
|
+
o = f;
|
|
179
|
+
var p = tryCatch(e, r, n);
|
|
180
|
+
if ("normal" === p.type) {
|
|
181
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
|
182
|
+
return {
|
|
183
|
+
value: p.arg,
|
|
184
|
+
done: n.done
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function maybeInvokeDelegate(e, r) {
|
|
192
|
+
var n = r.method,
|
|
193
|
+
o = e.iterator[n];
|
|
194
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
195
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
|
196
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
197
|
+
var a = i.arg;
|
|
198
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
199
|
+
}
|
|
200
|
+
function pushTryEntry(t) {
|
|
201
|
+
var e = {
|
|
202
|
+
tryLoc: t[0]
|
|
203
|
+
};
|
|
204
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
205
|
+
}
|
|
206
|
+
function resetTryEntry(t) {
|
|
207
|
+
var e = t.completion || {};
|
|
208
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
|
209
|
+
}
|
|
210
|
+
function Context(t) {
|
|
211
|
+
this.tryEntries = [{
|
|
212
|
+
tryLoc: "root"
|
|
213
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
214
|
+
}
|
|
215
|
+
function values(e) {
|
|
216
|
+
if (e || "" === e) {
|
|
217
|
+
var r = e[a];
|
|
218
|
+
if (r) return r.call(e);
|
|
219
|
+
if ("function" == typeof e.next) return e;
|
|
220
|
+
if (!isNaN(e.length)) {
|
|
221
|
+
var o = -1,
|
|
222
|
+
i = function next() {
|
|
223
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
224
|
+
return next.value = t, next.done = !0, next;
|
|
225
|
+
};
|
|
226
|
+
return i.next = i;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
throw new TypeError(_typeof$1(e) + " is not iterable");
|
|
230
|
+
}
|
|
231
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
232
|
+
value: GeneratorFunctionPrototype,
|
|
233
|
+
configurable: !0
|
|
234
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
235
|
+
value: GeneratorFunction,
|
|
236
|
+
configurable: !0
|
|
237
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
238
|
+
var e = "function" == typeof t && t.constructor;
|
|
239
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
240
|
+
}, e.mark = function (t) {
|
|
241
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
242
|
+
}, e.awrap = function (t) {
|
|
243
|
+
return {
|
|
244
|
+
__await: t
|
|
245
|
+
};
|
|
246
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
247
|
+
return this;
|
|
248
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
249
|
+
void 0 === i && (i = Promise);
|
|
250
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
251
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
252
|
+
return t.done ? t.value : a.next();
|
|
253
|
+
});
|
|
254
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
255
|
+
return this;
|
|
256
|
+
}), define(g, "toString", function () {
|
|
257
|
+
return "[object Generator]";
|
|
258
|
+
}), e.keys = function (t) {
|
|
259
|
+
var e = Object(t),
|
|
260
|
+
r = [];
|
|
261
|
+
for (var n in e) r.push(n);
|
|
262
|
+
return r.reverse(), function next() {
|
|
263
|
+
for (; r.length;) {
|
|
264
|
+
var t = r.pop();
|
|
265
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
|
266
|
+
}
|
|
267
|
+
return next.done = !0, next;
|
|
268
|
+
};
|
|
269
|
+
}, e.values = values, Context.prototype = {
|
|
270
|
+
constructor: Context,
|
|
271
|
+
reset: function reset(e) {
|
|
272
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
273
|
+
},
|
|
274
|
+
stop: function stop() {
|
|
275
|
+
this.done = !0;
|
|
276
|
+
var t = this.tryEntries[0].completion;
|
|
277
|
+
if ("throw" === t.type) throw t.arg;
|
|
278
|
+
return this.rval;
|
|
279
|
+
},
|
|
280
|
+
dispatchException: function dispatchException(e) {
|
|
281
|
+
if (this.done) throw e;
|
|
282
|
+
var r = this;
|
|
283
|
+
function handle(n, o) {
|
|
284
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
285
|
+
}
|
|
286
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
287
|
+
var i = this.tryEntries[o],
|
|
288
|
+
a = i.completion;
|
|
289
|
+
if ("root" === i.tryLoc) return handle("end");
|
|
290
|
+
if (i.tryLoc <= this.prev) {
|
|
291
|
+
var c = n.call(i, "catchLoc"),
|
|
292
|
+
u = n.call(i, "finallyLoc");
|
|
293
|
+
if (c && u) {
|
|
294
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
295
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
296
|
+
} else if (c) {
|
|
297
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
298
|
+
} else {
|
|
299
|
+
if (!u) throw Error("try statement without catch or finally");
|
|
300
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
abrupt: function abrupt(t, e) {
|
|
306
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
307
|
+
var o = this.tryEntries[r];
|
|
308
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
309
|
+
var i = o;
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
314
|
+
var a = i ? i.completion : {};
|
|
315
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
316
|
+
},
|
|
317
|
+
complete: function complete(t, e) {
|
|
318
|
+
if ("throw" === t.type) throw t.arg;
|
|
319
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
320
|
+
},
|
|
321
|
+
finish: function finish(t) {
|
|
322
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
323
|
+
var r = this.tryEntries[e];
|
|
324
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"catch": function _catch(t) {
|
|
328
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
329
|
+
var r = this.tryEntries[e];
|
|
330
|
+
if (r.tryLoc === t) {
|
|
331
|
+
var n = r.completion;
|
|
332
|
+
if ("throw" === n.type) {
|
|
333
|
+
var o = n.arg;
|
|
334
|
+
resetTryEntry(r);
|
|
335
|
+
}
|
|
336
|
+
return o;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
throw Error("illegal catch attempt");
|
|
340
|
+
},
|
|
341
|
+
delegateYield: function delegateYield(e, r, n) {
|
|
342
|
+
return this.delegate = {
|
|
343
|
+
iterator: values(e),
|
|
344
|
+
resultName: r,
|
|
345
|
+
nextLoc: n
|
|
346
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
347
|
+
}
|
|
348
|
+
}, e;
|
|
349
|
+
}
|
|
350
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
351
|
+
} (regeneratorRuntime$1));
|
|
352
|
+
|
|
353
|
+
// TODO(Babel 8): Remove this file.
|
|
354
|
+
|
|
355
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
356
|
+
var regenerator = runtime;
|
|
357
|
+
|
|
358
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
359
|
+
try {
|
|
360
|
+
regeneratorRuntime = runtime;
|
|
361
|
+
} catch (accidentalStrictMode) {
|
|
362
|
+
if (typeof globalThis === "object") {
|
|
363
|
+
globalThis.regeneratorRuntime = runtime;
|
|
364
|
+
} else {
|
|
365
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
46
369
|
var en = {
|
|
47
370
|
root: 'root',
|
|
48
371
|
selectAll: 'Select all',
|
package/SelectorPicker/index.js
CHANGED
|
@@ -26,7 +26,6 @@ import 'dayjs';
|
|
|
26
26
|
import '@paraview/lib';
|
|
27
27
|
import '../_verture/slicedToArray-a8206399.js';
|
|
28
28
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
29
|
-
import '../_verture/index-8ac46bd9.js';
|
|
30
29
|
import '../_verture/typeof-6ec38efd.js';
|
|
31
30
|
import '../Radio/index.js';
|
|
32
31
|
import '../Checkbox/index.js';
|