@para-ui/core 4.0.33 → 4.0.38
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/Anchor/anchorMenu/index.d.ts +16 -0
- package/Anchor/index.d.ts +4 -0
- package/Anchor/index.js +394 -0
- package/Anchor/lang/en_US.d.ts +4 -0
- package/Anchor/lang/index.d.ts +9 -0
- package/Anchor/lang/zh_CN.d.ts +4 -0
- package/Anchor/type.d.ts +42 -0
- package/Argv/batchEdit/index.d.ts +18 -0
- package/Argv/dataGenerator/config.d.ts +16 -0
- package/Argv/dataGenerator/index.d.ts +24 -0
- package/Argv/index.d.ts +36 -0
- package/Argv/index.js +738 -0
- package/Argv/lang/en_US.d.ts +15 -0
- package/Argv/lang/index.d.ts +31 -0
- package/Argv/lang/zh_CN.d.ts +15 -0
- package/AutoBox/index.js +1 -1
- package/AutoButton/index.js +1 -1
- package/AutoTips/index.js +1 -1
- package/Breadcrumbs/index.js +1 -1
- package/Button/index.d.ts +2 -2
- package/Button/index.js +4 -4
- package/ButtonGroup/index.d.ts +4 -0
- package/ButtonGroup/index.js +53 -37
- package/Card/index.js +3 -3
- package/Carousel/index.js +1 -1
- package/Cascader/index.js +3 -3
- package/Checkbox/index.js +1 -1
- package/CheckboxGroup/index.js +1 -1
- package/ComboSelect/index.js +2 -2
- package/CopyText/index.js +1 -1
- package/CycleSelector/index.js +1 -1
- package/DatePicker/index.js +1 -1
- package/Descriptions/index.js +1 -1
- package/Desktop/index.js +1 -1
- package/DragVerify/index.js +1 -1
- package/Drawer/index.js +1 -1
- package/DynamicMultiBox/index.js +2 -2
- package/Form/index.js +3 -3
- package/FormItem/index.js +3 -3
- package/FunctionModal/index.js +3 -3
- package/Help/index.js +1 -1
- package/Image/index.js +1 -1
- package/InputCode/index.js +1 -1
- package/InputLang/index.js +1 -1
- package/InputNumber/index.js +1 -1
- package/Label/index.js +1 -1
- package/Menu/index.js +1 -1
- package/Modal/index.js +1 -1
- package/MultiBox/index.js +1 -1
- package/OperateBtn/index.js +1 -1
- package/PageHeader/index.js +1 -1
- package/Pagination/index.js +1 -1
- package/PopConfirm/index.js +1 -1
- package/PopMenu/index.js +1 -1
- package/Popover/index.js +1 -1
- package/Progress/index.js +1 -1
- package/Querying/index.js +4 -4
- package/QuickReply/index.js +1 -1
- package/README.md +32 -0
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/RangeInput/index.js +1 -1
- package/Search/index.js +1 -1
- package/Select/index.js +3 -3
- package/SelectInput/index.js +1 -1
- package/Selector/index.js +53 -41
- package/Selector/interface.d.ts +2 -1
- package/SelectorPicker/index.js +1 -1
- package/SingleBox/index.js +1 -1
- package/Slider/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Switch/index.js +1 -1
- package/Table/index.js +6 -3
- package/Tabs/index.js +1 -1
- package/Tag/index.js +1 -1
- package/TextEditor/index.js +1 -1
- package/TextField/index.js +1 -1
- package/TimePicker/index.js +1 -1
- package/Timeline/index.js +1 -1
- package/Title/index.js +1 -1
- package/ToggleButton/ToggleButtonGroup.d.ts +4 -2
- package/ToggleButton/index.d.ts +4 -3
- package/ToggleButton/index.js +27 -11
- package/Tooltip/index.js +1 -1
- package/Transfer/index.js +1 -1
- package/Tree/index.js +3 -3
- package/Upload/index.js +79 -23
- package/Upload/interface.d.ts +4 -0
- package/Upload/util.d.ts +32 -0
- package/Utils/index.d.ts +7 -0
- package/Utils/index.js +10 -1
- package/Utils/type.d.ts +1 -0
- package/_verture/{index-8752ccab.js → index-63345bd4.js} +1 -1
- package/_verture/{index-567b5779.js → index-77fff5bd.js} +1 -1
- package/_verture/{modalContext-10f0c5aa.js → modalContext-205db1f4.js} +1 -1
- package/_verture/{tslib.es6-55ed4bd2.js → tslib.es6-f43aa41d.js} +1 -1
- package/index.d.ts +4 -0
- package/index.js +21 -16
- package/locale/en-US.d.ts +17 -0
- package/locale/index.d.ts +34 -0
- package/locale/index.js +34 -0
- package/locale/zh-CN.d.ts +17 -0
- package/package.json +6 -4
- package/umd/Anchor.js +43 -0
- package/umd/Argv.js +43 -0
- package/umd/AutoButton.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +5 -5
- package/umd/ComboSelect.js +2 -2
- package/umd/CopyText.js +3 -3
- package/umd/CycleSelector.js +3 -3
- package/umd/DatePicker.js +1 -1
- package/umd/Descriptions.js +1 -1
- package/umd/Desktop.js +3 -3
- package/umd/Drawer.js +1 -1
- package/umd/DynamicMultiBox.js +3 -3
- package/umd/Form.js +2 -2
- package/umd/FormItem.js +3 -3
- package/umd/FunctionModal.js +1 -1
- package/umd/InputCode.js +3 -3
- package/umd/InputLang.js +3 -3
- package/umd/Message.js +15 -16
- package/umd/Modal.js +1 -1
- package/umd/MultiBox.js +3 -3
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +1 -1
- package/umd/Pagination.js +3 -3
- package/umd/PopConfirm.js +1 -1
- package/umd/QuickReply.js +3 -3
- package/umd/Search.js +3 -3
- package/umd/Selector.js +4 -4
- package/umd/SelectorPicker.js +6 -6
- package/umd/SingleBox.js +3 -3
- package/umd/Table.js +3 -3
- package/umd/Tabs.js +1 -1
- package/umd/TextField.js +2 -2
- package/umd/TimePicker.js +1 -1
- package/umd/ToggleButton.js +6 -6
- package/umd/Transfer.js +2 -2
- package/umd/Upload.js +2 -2
- package/umd/Utils.js +1 -1
- package/umd/locale.js +1 -1
- /package/_verture/{index-e229330e.js → index-cf52327b.js} +0 -0
package/ToggleButton/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
4
|
import { Button } from '../Button/index.js';
|
|
@@ -22,7 +22,7 @@ import '../_verture/useFormatMessage-1fc7c957.js';
|
|
|
22
22
|
import '../_verture/index-ca413216.js';
|
|
23
23
|
import '../_verture/typeof-adeedc13.js';
|
|
24
24
|
|
|
25
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/23 上午9:50\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-toggle-button.
|
|
25
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/23 上午9:50\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::before {\n content: \" \";\n position: absolute;\n bottom: 0;\n right: 0;\n border: 8px solid rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::after {\n content: \" \";\n width: 8px;\n height: 8px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAM5JREFUOE/NkQENwjAURFcFIAEHgIM5YCgAHCABFBAUAA5wABI2CTgABeUd+V06BqFkCeEnl6X9d7d/vy7rWK6jPvu9gfe+z9QnsHDOlV9NgHhk4gpxrvjJBogL+DtwATkG12QDxEvIG3AzcRmW/5gAgsaR+1S54peht+c8s7vxc7+OAFHCIVhBWkfLUm6VliazRsUGAzoy6YEz0LaDeItYMVrVWCJ/nVuUmHhArPuX1XoFTI4wJ8au+NYb/ziBCJZdJqoiPFfyBO+I/2twBz0qQBFvrubpAAAAAElFTkSuQmCC\");\n background-size: 8px 8px;\n background-repeat: no-repeat;\n position: absolute;\n bottom: 1px;\n right: 1px;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover::before {\n border-color: rgb(87, 131, 235);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected::before {\n border-color: rgb(46, 101, 230);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected {\n border-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected::before {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n content: \"\";\n background-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover[disabled] {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected {\n color: rgb(46, 101, 230);\n border: 0;\n font-weight: 700;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled] {\n color: rgb(92, 101, 115);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:first-child:before {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected::after {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled] {\n color: rgb(161, 168, 179);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button-wrap {\n display: inline-block;\n}\n.paraui-v4-toggle-button .toggle-button-text {\n width: 100%;\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button:hover {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-togglebutton-group {\n display: flex;\n flex-flow: row wrap;\n}\n.paraui-v4-togglebutton-group .toggle-button-item {\n margin: 0 8px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item .paraui-v4-toggle-button {\n margin: 0;\n padding: 0 16px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item ~ .toggle-button-item .paraui-v4-toggle-button::before {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n content: \"\";\n width: 1px;\n height: 14px;\n background-color: rgb(212, 218, 227);\n}";
|
|
26
26
|
styleInject(css_248z);
|
|
27
27
|
|
|
28
28
|
//切换按钮组
|
|
@@ -90,12 +90,11 @@ var ToggleButtonGroup = function ToggleButtonGroup(props) {
|
|
|
90
90
|
children: jsx(ToggleButton, Object.assign({}, rest, {
|
|
91
91
|
style: style,
|
|
92
92
|
selected: hasSelected,
|
|
93
|
-
|
|
94
|
-
variant: type === 'text' ? 'text' : 'outlined',
|
|
93
|
+
type: type,
|
|
95
94
|
onClick: exclusive ? handleExclusiveChange : handleChange,
|
|
96
95
|
exclusive: exclusive
|
|
97
96
|
}, {
|
|
98
|
-
children: label
|
|
97
|
+
children: type === 'icon' ? item.icon || null : label
|
|
99
98
|
}))
|
|
100
99
|
}), idx);
|
|
101
100
|
});
|
|
@@ -112,23 +111,23 @@ const ToggleButton = props => {
|
|
|
112
111
|
const {
|
|
113
112
|
className,
|
|
114
113
|
style,
|
|
114
|
+
type = 'outlined',
|
|
115
115
|
children,
|
|
116
116
|
disabled = false,
|
|
117
117
|
toolTipTitle,
|
|
118
118
|
selected = false,
|
|
119
119
|
exclusive = false,
|
|
120
120
|
value,
|
|
121
|
-
autoToolTipOverflow = true,
|
|
122
121
|
width,
|
|
123
122
|
onClick
|
|
124
123
|
} = props,
|
|
125
|
-
restProps = __rest(props, ["className", "style", "children", "disabled", "toolTipTitle", "selected", "exclusive", "value", "
|
|
124
|
+
restProps = __rest(props, ["className", "style", "type", "children", "disabled", "toolTipTitle", "selected", "exclusive", "value", "width", "onClick"]);
|
|
126
125
|
// const [hasTip, setHasTip] = useState<boolean>(false);
|
|
127
126
|
const id = useRef(UUID()).current;
|
|
128
127
|
const prefixCls = "".concat($prefixCls, "-toggle-button");
|
|
129
128
|
//className
|
|
130
|
-
const makeCls = clsx(prefixCls, className, {
|
|
131
|
-
["".concat(prefixCls, "-").concat(exclusive ? 'radio' : 'check')]:
|
|
129
|
+
const makeCls = clsx(prefixCls, className, "toggle-button-".concat(type), {
|
|
130
|
+
["".concat(prefixCls, "-").concat(exclusive ? 'radio' : 'check')]: type === 'outlined',
|
|
132
131
|
["".concat(prefixCls, "-selected")]: selected,
|
|
133
132
|
["".concat(prefixCls, "-disabled")]: disabled
|
|
134
133
|
});
|
|
@@ -136,10 +135,27 @@ const ToggleButton = props => {
|
|
|
136
135
|
const handleClick = evt => {
|
|
137
136
|
if (onClick) onClick(evt, value);
|
|
138
137
|
};
|
|
138
|
+
if (type === 'icon') {
|
|
139
|
+
return jsx(Button.IconButton, Object.assign({
|
|
140
|
+
"data-id": id
|
|
141
|
+
}, restProps, {
|
|
142
|
+
variant: 'outlined',
|
|
143
|
+
style: Object.assign({
|
|
144
|
+
width
|
|
145
|
+
}, style),
|
|
146
|
+
className: makeCls,
|
|
147
|
+
disabled: disabled,
|
|
148
|
+
toolTipTitle: toolTipTitle,
|
|
149
|
+
value: value,
|
|
150
|
+
onClick: handleClick
|
|
151
|
+
}, {
|
|
152
|
+
children: children
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
139
155
|
return jsx(Button, Object.assign({
|
|
140
|
-
"data-id": id
|
|
141
|
-
variant: 'outlined'
|
|
156
|
+
"data-id": id
|
|
142
157
|
}, restProps, {
|
|
158
|
+
variant: type === 'text' ? 'text' : 'outlined',
|
|
143
159
|
style: Object.assign({
|
|
144
160
|
width
|
|
145
161
|
}, style),
|
package/Tooltip/index.js
CHANGED
package/Transfer/index.js
CHANGED
|
@@ -16,7 +16,7 @@ import Drag from '@para-ui/icons/Drag';
|
|
|
16
16
|
import { S as Sortable } from '../_verture/sortable.esm-76fe46a4.js';
|
|
17
17
|
import { d as debounce } from '../_verture/utils-c17b5265.js';
|
|
18
18
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
19
|
-
import '../_verture/tslib.es6-
|
|
19
|
+
import '../_verture/tslib.es6-f43aa41d.js';
|
|
20
20
|
import '@para-ui/icons/LoadingF';
|
|
21
21
|
import '../Tooltip/index.js';
|
|
22
22
|
import 'rc-tooltip';
|
package/Tree/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-77fff5bd.js';
|
|
2
|
+
export { T as default } from '../_verture/index-77fff5bd.js';
|
|
3
3
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
4
4
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
5
5
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
6
6
|
import '../_verture/typeof-adeedc13.js';
|
|
7
7
|
import '../_verture/index-94e24006.js';
|
|
8
8
|
import '../_verture/typeof-4646b22c.js';
|
|
9
|
-
import '../_verture/tslib.es6-
|
|
9
|
+
import '../_verture/tslib.es6-f43aa41d.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'rc-tree';
|
package/Upload/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as __awaiter, a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
|
|
2
2
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useMemo, useEffect, memo, forwardRef, useCallback, useImperativeHandle } from 'react';
|
|
4
4
|
import RcUpload from 'rc-upload';
|
|
@@ -21,6 +21,7 @@ import AutoTips from '../AutoTips/index.js';
|
|
|
21
21
|
import Image$1 from '../Image/index.js';
|
|
22
22
|
import OperateBtn from '../OperateBtn/index.js';
|
|
23
23
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc89.js';
|
|
24
|
+
import { UUID } from '@paraview/lib';
|
|
24
25
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
25
26
|
import Forbid from '@para-ui/icons/Forbid';
|
|
26
27
|
import { Button } from '../Button/index.js';
|
|
@@ -35,7 +36,6 @@ import { Modal } from '../Modal/index.js';
|
|
|
35
36
|
import '../_verture/typeof-4646b22c.js';
|
|
36
37
|
import 'rc-tooltip';
|
|
37
38
|
import 'rc-tooltip/lib/placements';
|
|
38
|
-
import '@paraview/lib';
|
|
39
39
|
import '../_verture/Portal-edd94cac.js';
|
|
40
40
|
import 'react-dom';
|
|
41
41
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
@@ -89,6 +89,62 @@ var isImageUrl = function isImageUrl(file) {
|
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
91
91
|
};
|
|
92
|
+
/**
|
|
93
|
+
* 默认文件添加isDefault标示
|
|
94
|
+
* @param defaultFile
|
|
95
|
+
*/
|
|
96
|
+
var composeDefaultFile = function composeDefaultFile(defaultFile) {
|
|
97
|
+
if (defaultFile) {
|
|
98
|
+
var newDefaultFile = Object.assign({}, defaultFile);
|
|
99
|
+
newDefaultFile.isDefault = true;
|
|
100
|
+
if (!newDefaultFile.uid) newDefaultFile.uid = UUID();
|
|
101
|
+
return Object.assign({}, newDefaultFile);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 组装默认文件,若存在defaultFileList,则defaultFile不生效
|
|
106
|
+
* @param defaultFileList
|
|
107
|
+
* @param defaultFile
|
|
108
|
+
*/
|
|
109
|
+
var composeDefaultFileList = function composeDefaultFileList(defaultFileList, defaultFile) {
|
|
110
|
+
var newDefaultFile = composeDefaultFile(defaultFile);
|
|
111
|
+
if (defaultFileList === null || defaultFileList === void 0 ? void 0 : defaultFileList.length) return defaultFileList;
|
|
112
|
+
if (newDefaultFile) {
|
|
113
|
+
return [newDefaultFile];
|
|
114
|
+
}
|
|
115
|
+
return [];
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* 处理上传文件列表
|
|
119
|
+
* @param maxAllowed
|
|
120
|
+
* @param uploadedFiles
|
|
121
|
+
* @param initialDefaultFile
|
|
122
|
+
*/
|
|
123
|
+
var processUploadFiles = function processUploadFiles(maxAllowed, uploadedFiles, initialDefaultFile) {
|
|
124
|
+
var newUploadedFiles = _toConsumableArray(uploadedFiles);
|
|
125
|
+
// 如果最大允许数量为1,则只保留最后一个文件
|
|
126
|
+
if (maxAllowed === 1) {
|
|
127
|
+
newUploadedFiles = newUploadedFiles.slice(-1);
|
|
128
|
+
} else if (maxAllowed) {
|
|
129
|
+
// 如果指定了最大数量,则截取前 maxAllowed 个文件
|
|
130
|
+
newUploadedFiles = newUploadedFiles.slice(0, maxAllowed);
|
|
131
|
+
}
|
|
132
|
+
//
|
|
133
|
+
// 组合或创建一个新的默认文件
|
|
134
|
+
var newDefaultFile = composeDefaultFile(initialDefaultFile);
|
|
135
|
+
// 如果有新的默认文件并且上传文件列表中有元素
|
|
136
|
+
if (newDefaultFile && newUploadedFiles.length) {
|
|
137
|
+
// 过滤掉所有标记为默认的文件
|
|
138
|
+
newUploadedFiles = newUploadedFiles.filter(function (file) {
|
|
139
|
+
return !file.isDefault;
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
// 如果过滤后上传文件列表为空且存在新默认文件,则添加到列表
|
|
143
|
+
if (!newUploadedFiles.length && newDefaultFile) {
|
|
144
|
+
newUploadedFiles = newUploadedFiles.concat(newDefaultFile);
|
|
145
|
+
}
|
|
146
|
+
return _toConsumableArray(newUploadedFiles);
|
|
147
|
+
};
|
|
92
148
|
|
|
93
149
|
var css_248z$4 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午3:08\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-upload-list-text .upload-list-item {\n margin-top: 10px;\n position: relative;\n}\n.paraui-v4-upload-list-text .upload-list-item-info {\n display: flex;\n align-items: center;\n line-height: 30px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n border-radius: 4px;\n transition: background-color 0.3s;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text {\n position: relative;\n display: inline-flex;\n align-items: center;\n width: 440px;\n height: 30px;\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item {\n display: flex;\n align-items: center;\n flex: 1;\n padding-left: 10px;\n max-width: 76%;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item .upload-list-text-name {\n margin-left: 8px;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item .upload-list-text-name {\n color: rgb(29, 33, 38);\n text-decoration: none;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item .upload-list-text-name:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item-error {\n color: rgb(244, 66, 66);\n cursor: pointer;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item-error .upload-list-text-name,\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-text-item-error .upload-list-text-name:hover {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-fileicon {\n line-height: 0;\n opacity: 1;\n transition: opacity 0.3s;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-fileicon svg {\n color: inherit;\n font-size: 18px;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-actions svg {\n font-size: 18px;\n}\n.paraui-v4-upload-list-text .upload-list-item-info .upload-list-text .upload-list-actions svg:hover {\n background-color: rgb(234, 236, 241);\n border-radius: 2px;\n}\n.paraui-v4-upload-list-text .upload-list-item .upload-list-actions {\n margin-left: auto;\n margin-right: 10px;\n}\n.paraui-v4-upload-list-text .upload-list-item .upload-list-actions > span {\n display: flex;\n align-items: center;\n}\n.paraui-v4-upload-list-picture {\n display: inline-flex;\n align-items: center;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-error {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background: rgb(247, 248, 250);\n border: 1px dashed rgb(246, 103, 103);\n border-radius: 4px;\n color: rgb(246, 103, 103);\n}\n.paraui-v4-upload-list-picture .upload-list-picture-error > svg {\n font-size: 30px;\n color: rgb(244, 66, 66);\n margin-bottom: 6px;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-error-name {\n font-size: 14px;\n color: rgb(244, 66, 66);\n padding: 0 10px;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item {\n position: relative;\n display: inline-block;\n width: 100px;\n height: 100px;\n margin-right: 16px;\n border-radius: 4px;\n cursor: default;\n overflow: hidden;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item::before {\n content: \" \";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background-color: rgba(29, 33, 38, 0.9);\n border-radius: 4px;\n opacity: 0;\n transition: 0.3s;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item img {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-file {\n font-size: 100px;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-filea {\n fill: none;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-fileb {\n opacity: 0.4;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-filec {\n fill: #2e65e6;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-filed {\n fill: #5783eb;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-filee {\n fill: #ffb900;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-filef {\n fill: #fff;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-picture-name {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n padding: 0 10px;\n font-size: 12px;\n line-height: 24px;\n text-align: center;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n background-color: rgba(29, 33, 38, 0.9);\n border-radius: 0 0 4px 4px;\n color: rgb(255, 255, 255);\n transition: 0.3s;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-actions {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n opacity: 0;\n line-height: 0;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-actions svg {\n color: rgb(255, 255, 255);\n transition: all 0.3s;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item .upload-list-actions svg:hover {\n background-color: rgba(255, 255, 255, 0.3);\n border-radius: 2px;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item:hover:not(.upload-list-picture-item-readonly)::before {\n opacity: 1;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item:hover:not(.upload-list-picture-item-readonly) .upload-list-actions {\n opacity: 1;\n}\n.paraui-v4-upload-list-picture .upload-list-picture-item:hover:not(.upload-list-picture-item-readonly) .upload-list-picture-name {\n opacity: 0;\n}\n\n.paraui-v4-upload-drag .paraui-v4-upload-list-text .upload-list-item-info .upload-list-text {\n width: 590px;\n}";
|
|
94
150
|
styleInject(css_248z$4);
|
|
@@ -284,7 +340,7 @@ var UploadList = function UploadList(props) {
|
|
|
284
340
|
icon: previewIcon || jsx(PreviewOpen, {}),
|
|
285
341
|
key: 'view'
|
|
286
342
|
});
|
|
287
|
-
if (showRemoveIcon && !readonly) list.push({
|
|
343
|
+
if (showRemoveIcon && !readonly && !file.isDefault) list.push({
|
|
288
344
|
icon: removeIcon || jsx(Delete, {}),
|
|
289
345
|
key: 'delete'
|
|
290
346
|
});
|
|
@@ -316,7 +372,7 @@ var UploadList = function UploadList(props) {
|
|
|
316
372
|
showNum: 2
|
|
317
373
|
}, operateBtnProps(file, actions)));
|
|
318
374
|
if (listType === 'picture-card') return pictureCardAction(file);
|
|
319
|
-
return !readonly && jsx("div", Object.assign({
|
|
375
|
+
return !readonly && !file.isDefault && jsx("div", Object.assign({
|
|
320
376
|
className: 'upload-list-actions'
|
|
321
377
|
}, {
|
|
322
378
|
children: showRemoveIcon && jsx("span", Object.assign({
|
|
@@ -632,9 +688,10 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
632
688
|
disabledTooltip = props.disabledTooltip,
|
|
633
689
|
removeErrorTip = props.removeErrorTip,
|
|
634
690
|
avatarProps = props.avatarProps,
|
|
635
|
-
|
|
691
|
+
defaultFile = props.defaultFile,
|
|
692
|
+
restProps = __rest(props, ["className", "style", "onStart", "onSuccess", "onError", "onProgress", "onRemove", "beforeUpload", "onChange", "defaultFileList", "fileList", "showUploadList", "maxCount", "children", "itemRender", "showUploadError", "stash", "uploading", "loading", "showLoading", "defaultImage", "readonly", "onPreview", "actionRender", "operateBtnProps", "disabledTooltip", "removeErrorTip", "avatarProps", "defaultFile"]);
|
|
636
693
|
var intl = useFormatMessage('Upload', localeJson);
|
|
637
|
-
var _useState = useState(defaultFileList),
|
|
694
|
+
var _useState = useState(composeDefaultFileList(defaultFileList, defaultFile)),
|
|
638
695
|
_useState2 = _slicedToArray(_useState, 2),
|
|
639
696
|
uploadFileList = _useState2[0],
|
|
640
697
|
setUploadFileList = _useState2[1]; //文件列表
|
|
@@ -846,11 +903,7 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
846
903
|
case 16:
|
|
847
904
|
return _context2.abrupt("return");
|
|
848
905
|
case 17:
|
|
849
|
-
|
|
850
|
-
cloneList = cloneList.slice(-1);
|
|
851
|
-
} else if (maxCount) {
|
|
852
|
-
cloneList = cloneList.slice(0, maxCount);
|
|
853
|
-
}
|
|
906
|
+
cloneList = processUploadFiles(maxCount, cloneList, defaultFile);
|
|
854
907
|
onChange === null || onChange === void 0 ? void 0 : onChange(cloneList);
|
|
855
908
|
setUploadFileList(cloneList);
|
|
856
909
|
case 20:
|
|
@@ -933,10 +986,13 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
933
986
|
}, leaveDelay);
|
|
934
987
|
};
|
|
935
988
|
useEffect(function () {
|
|
936
|
-
|
|
989
|
+
var newDefaultFile = composeDefaultFile(defaultFile);
|
|
990
|
+
if (newDefaultFile && !(fileList === null || fileList === void 0 ? void 0 : fileList.length)) {
|
|
991
|
+
setUploadFileList([newDefaultFile]);
|
|
992
|
+
} else if (fileList) {
|
|
937
993
|
setUploadFileList(_toConsumableArray(fileList));
|
|
938
994
|
}
|
|
939
|
-
}, [fileList]);
|
|
995
|
+
}, [fileList, defaultFile]);
|
|
940
996
|
//渲染上传列表
|
|
941
997
|
var renderUploadList = function renderUploadList() {
|
|
942
998
|
return showUploadList && jsx(UploadList, {
|
|
@@ -1642,11 +1698,12 @@ const InternalUpload = props => {
|
|
|
1642
1698
|
operateBtnProps,
|
|
1643
1699
|
actionRender,
|
|
1644
1700
|
onPreview,
|
|
1645
|
-
removeErrorTip
|
|
1701
|
+
removeErrorTip,
|
|
1702
|
+
defaultFile
|
|
1646
1703
|
} = props,
|
|
1647
|
-
restProps = __rest(props, ["type", "className", "style", "onStart", "onSuccess", "onError", "onProgress", "onRemove", "beforeUpload", "onChange", "onDrop", "defaultFileList", "fileList", "showUploadList", "maxCount", "children", "itemRender", "showUploadError", "size", "stash", "uploading", "showLoading", "loading", "dragArea", "disabledTooltip", "operateBtnProps", "actionRender", "onPreview", "removeErrorTip"]);
|
|
1704
|
+
restProps = __rest(props, ["type", "className", "style", "onStart", "onSuccess", "onError", "onProgress", "onRemove", "beforeUpload", "onChange", "onDrop", "defaultFileList", "fileList", "showUploadList", "maxCount", "children", "itemRender", "showUploadError", "size", "stash", "uploading", "showLoading", "loading", "dragArea", "disabledTooltip", "operateBtnProps", "actionRender", "onPreview", "removeErrorTip", "defaultFile"]);
|
|
1648
1705
|
const intl = useFormatMessage('Upload', localeJson);
|
|
1649
|
-
const [uploadFileList, setUploadFileList] = useState(defaultFileList); //文件列表
|
|
1706
|
+
const [uploadFileList, setUploadFileList] = useState(composeDefaultFileList(defaultFileList, defaultFile)); //文件列表
|
|
1650
1707
|
const [showLoading, setShowLoading] = useState(false); //upload loading
|
|
1651
1708
|
const [errTip, setErrTip] = useState(false); //upload error tip
|
|
1652
1709
|
const {
|
|
@@ -1720,11 +1777,7 @@ const InternalUpload = props => {
|
|
|
1720
1777
|
const onInternalChange = changedFileList => {
|
|
1721
1778
|
let cloneList = [...changedFileList];
|
|
1722
1779
|
// Cut to match count
|
|
1723
|
-
|
|
1724
|
-
cloneList = cloneList.slice(-1);
|
|
1725
|
-
} else if (maxCount) {
|
|
1726
|
-
cloneList = cloneList.slice(0, maxCount);
|
|
1727
|
-
}
|
|
1780
|
+
cloneList = processUploadFiles(maxCount, cloneList, defaultFile);
|
|
1728
1781
|
onChange === null || onChange === void 0 ? void 0 : onChange(cloneList);
|
|
1729
1782
|
setUploadFileList(cloneList);
|
|
1730
1783
|
};
|
|
@@ -1797,10 +1850,13 @@ const InternalUpload = props => {
|
|
|
1797
1850
|
}, leaveDelay);
|
|
1798
1851
|
};
|
|
1799
1852
|
useEffect(() => {
|
|
1800
|
-
|
|
1853
|
+
const newDefaultFile = composeDefaultFile(defaultFile);
|
|
1854
|
+
if (newDefaultFile && !(fileList === null || fileList === void 0 ? void 0 : fileList.length)) {
|
|
1855
|
+
setUploadFileList([newDefaultFile]);
|
|
1856
|
+
} else if (fileList) {
|
|
1801
1857
|
setUploadFileList([...fileList]);
|
|
1802
1858
|
}
|
|
1803
|
-
}, [fileList]);
|
|
1859
|
+
}, [fileList, defaultFile]);
|
|
1804
1860
|
useEffect(() => {
|
|
1805
1861
|
setShowLoading(loading);
|
|
1806
1862
|
}, [loading]);
|
package/Upload/interface.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export interface UploadFile<T = any> {
|
|
|
32
32
|
status?: 'error' | 'done' | 'removed';
|
|
33
33
|
/** 响应 */
|
|
34
34
|
response?: string;
|
|
35
|
+
/** 默认文件 */
|
|
36
|
+
isDefault?: boolean;
|
|
35
37
|
}
|
|
36
38
|
export interface IShowUploadList {
|
|
37
39
|
/** 是否显示删除图标 */
|
|
@@ -163,6 +165,8 @@ export interface UploadProps<T = any> {
|
|
|
163
165
|
* 是否移除错误提示弹窗,默认不移除
|
|
164
166
|
*/
|
|
165
167
|
removeErrorTip?: boolean;
|
|
168
|
+
/** 默认文件 */
|
|
169
|
+
defaultFile?: UploadFile<T>;
|
|
166
170
|
}
|
|
167
171
|
interface IActions {
|
|
168
172
|
onRemove: () => void;
|
package/Upload/util.d.ts
CHANGED
|
@@ -5,3 +5,35 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { UploadFile } from "./interface";
|
|
7
7
|
export declare const isImageUrl: (file: UploadFile) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 默认文件添加isDefault标示
|
|
10
|
+
* @param defaultFile
|
|
11
|
+
*/
|
|
12
|
+
export declare const composeDefaultFile: (defaultFile?: UploadFile) => {
|
|
13
|
+
uid: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type?: string | undefined;
|
|
16
|
+
size?: number | undefined;
|
|
17
|
+
lastModified?: number | undefined;
|
|
18
|
+
lastModifiedDate?: Date | undefined;
|
|
19
|
+
url?: string | undefined;
|
|
20
|
+
dataUrl?: string | undefined;
|
|
21
|
+
thumbUrl?: string | undefined;
|
|
22
|
+
originFileObj?: import("./interface").RcFile | undefined;
|
|
23
|
+
status?: "error" | "done" | "removed" | undefined;
|
|
24
|
+
response?: string | undefined;
|
|
25
|
+
isDefault?: boolean | undefined;
|
|
26
|
+
} | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* 组装默认文件,若存在defaultFileList,则defaultFile不生效
|
|
29
|
+
* @param defaultFileList
|
|
30
|
+
* @param defaultFile
|
|
31
|
+
*/
|
|
32
|
+
export declare const composeDefaultFileList: (defaultFileList: UploadFile[], defaultFile?: UploadFile) => UploadFile<any>[];
|
|
33
|
+
/**
|
|
34
|
+
* 处理上传文件列表
|
|
35
|
+
* @param maxAllowed
|
|
36
|
+
* @param uploadedFiles
|
|
37
|
+
* @param initialDefaultFile
|
|
38
|
+
*/
|
|
39
|
+
export declare const processUploadFiles: (maxAllowed: number | undefined, uploadedFiles: UploadFile[], initialDefaultFile?: UploadFile) => UploadFile<any>[];
|
package/Utils/index.d.ts
CHANGED
|
@@ -8,7 +8,14 @@ interface DateYYYYMMddHHMM {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const getDateYYYYMMddHHMM: (str: string) => DateYYYYMMddHHMM;
|
|
10
10
|
export declare const pixelReplacement: (str: number | string) => string;
|
|
11
|
+
/**
|
|
12
|
+
* @desc 判断是否为对象
|
|
13
|
+
* @param val
|
|
14
|
+
* @return boolean
|
|
15
|
+
* */
|
|
16
|
+
export declare const isObject: (val: any) => boolean;
|
|
11
17
|
declare const _default: {
|
|
18
|
+
isObject: (val: any) => boolean;
|
|
12
19
|
getDateYYYYMMddHHMM: (str: string) => DateYYYYMMddHHMM;
|
|
13
20
|
pixelReplacement: (str: string | number) => string;
|
|
14
21
|
};
|
package/Utils/index.js
CHANGED
|
@@ -21,9 +21,18 @@ const pixelReplacement = str => {
|
|
|
21
21
|
}
|
|
22
22
|
return str;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @desc 判断是否为对象
|
|
26
|
+
* @param val
|
|
27
|
+
* @return boolean
|
|
28
|
+
* */
|
|
29
|
+
const isObject = val => {
|
|
30
|
+
return Object.prototype.toString.call(val) === '[object Object]';
|
|
31
|
+
};
|
|
24
32
|
var index = {
|
|
33
|
+
isObject,
|
|
25
34
|
getDateYYYYMMddHHMM,
|
|
26
35
|
pixelReplacement
|
|
27
36
|
};
|
|
28
37
|
|
|
29
|
-
export { index as default, getDateYYYYMMddHHMM, pixelReplacement };
|
|
38
|
+
export { index as default, getDateYYYYMMddHHMM, isObject, pixelReplacement };
|
package/Utils/type.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IObject = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __rest } from './tslib.es6-f43aa41d.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-edd94cac.js';
|
|
4
4
|
import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-c7a8028f.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
|
2
2
|
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
4
4
|
import { r as regenerator } from './index-94e24006.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as __rest, _ as __awaiter } from './tslib.es6-f43aa41d.js';
|
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import React__default, { isValidElement, cloneElement, useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
8
8
|
import RcTree from 'rc-tree';
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
export { default as Anchor } from './Anchor';
|
|
2
|
+
export * from './Anchor';
|
|
3
|
+
export { default as Argv } from './Argv';
|
|
4
|
+
export * from './Argv';
|
|
1
5
|
export { default as AutoBox } from './AutoBox';
|
|
2
6
|
export * from './AutoBox';
|
|
3
7
|
export { default as AutoButton } from './AutoButton';
|
package/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as Anchor } from './Anchor/index.js';
|
|
2
|
+
export { default as Argv, checkArgvData, formatDataToObject, formatObjectToData } from './Argv/index.js';
|
|
1
3
|
export { AutoBox } from './AutoBox/index.js';
|
|
2
4
|
export { AutoButton } from './AutoButton/index.js';
|
|
3
5
|
export { default as AutoTips, AutoTipsMultiline } from './AutoTips/index.js';
|
|
@@ -7,7 +9,7 @@ export { Button } from './Button/index.js';
|
|
|
7
9
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
8
10
|
export { Card } from './Card/index.js';
|
|
9
11
|
export { Carousel } from './Carousel/index.js';
|
|
10
|
-
export { C as Cascader } from './_verture/index-
|
|
12
|
+
export { C as Cascader } from './_verture/index-63345bd4.js';
|
|
11
13
|
export { Checkbox } from './Checkbox/index.js';
|
|
12
14
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
13
15
|
export { Collapse } from './Collapse/index.js';
|
|
@@ -28,8 +30,8 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
|
|
|
28
30
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
29
31
|
export { default as Empty } from './Empty/index.js';
|
|
30
32
|
export { default as Form } from './Form/index.js';
|
|
31
|
-
export { F as FormItem } from './_verture/index-
|
|
32
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
33
|
+
export { F as FormItem } from './_verture/index-cf52327b.js';
|
|
34
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-205db1f4.js';
|
|
33
35
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
34
36
|
export { default as Help } from './Help/index.js';
|
|
35
37
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -81,25 +83,30 @@ export { Title } from './Title/index.js';
|
|
|
81
83
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
82
84
|
export { Tooltip } from './Tooltip/index.js';
|
|
83
85
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
84
|
-
export { T as Tree } from './_verture/index-
|
|
86
|
+
export { T as Tree } from './_verture/index-77fff5bd.js';
|
|
85
87
|
export { default as Upload } from './Upload/index.js';
|
|
86
|
-
export { default as Utils, getDateYYYYMMddHHMM, pixelReplacement } from './Utils/index.js';
|
|
88
|
+
export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
|
|
87
89
|
export { default as locale } from './locale/index.js';
|
|
90
|
+
import './_verture/tslib.es6-f43aa41d.js';
|
|
88
91
|
import 'react/jsx-runtime';
|
|
89
92
|
import 'react';
|
|
90
|
-
import '
|
|
91
|
-
import '@paraview/lib';
|
|
93
|
+
import 'clsx';
|
|
92
94
|
import './_verture/constant-5317fc89.js';
|
|
93
|
-
import '@para-ui/icons/
|
|
95
|
+
import '@para-ui/icons/Down';
|
|
94
96
|
import './_verture/style-inject.es-300983ab.js';
|
|
95
|
-
import '
|
|
96
|
-
import '@para-ui/icons/
|
|
97
|
-
import '
|
|
97
|
+
import '@para-ui/icons/ToRight';
|
|
98
|
+
import '@para-ui/icons/ToLeft';
|
|
99
|
+
import '@para-ui/icons/PreviewOpen';
|
|
98
100
|
import './_verture/useFormatMessage-1fc7c957.js';
|
|
101
|
+
import '@paraview/lib';
|
|
102
|
+
import '@para-ui/icons/ExpandPart';
|
|
103
|
+
import '@para-ui/icons/Delete';
|
|
104
|
+
import '@para-ui/icons/PlusCircleF';
|
|
105
|
+
import 'react-dom';
|
|
106
|
+
import '@para-ui/icons/More';
|
|
107
|
+
import '@para-ui/icons/MoreVert';
|
|
99
108
|
import '@para-ui/icons/Return';
|
|
100
109
|
import '@para-ui/icons/LoadingF';
|
|
101
|
-
import '@para-ui/icons/Down';
|
|
102
|
-
import '@para-ui/icons/Forbid';
|
|
103
110
|
import 'react-slick';
|
|
104
111
|
import '@para-ui/icons/RightCircleF';
|
|
105
112
|
import '@para-ui/icons/LeftCircleF';
|
|
@@ -144,8 +151,6 @@ import 'rc-drawer';
|
|
|
144
151
|
import 'rc-dropdown';
|
|
145
152
|
import './_verture/usePopupContainer-635f66f4.js';
|
|
146
153
|
import '@para-ui/icons/Panel';
|
|
147
|
-
import '@para-ui/icons/PlusCircleF';
|
|
148
|
-
import '@para-ui/icons/Delete';
|
|
149
154
|
import '@para-ui/icons/Drag';
|
|
150
155
|
import './_verture/index-c8cb6751.js';
|
|
151
156
|
import './_verture/sortable.esm-76fe46a4.js';
|
|
@@ -159,7 +164,6 @@ import '@para-ui/icons/TurnRight';
|
|
|
159
164
|
import '@para-ui/icons/TurnLeft';
|
|
160
165
|
import '@para-ui/icons/MinusCircle';
|
|
161
166
|
import '@para-ui/icons/PlusCircle';
|
|
162
|
-
import '@para-ui/icons/PreviewOpen';
|
|
163
167
|
import '@para-ui/icons/Internet';
|
|
164
168
|
import 'rc-input-number';
|
|
165
169
|
import '@para-ui/icons/Up';
|
|
@@ -198,6 +202,7 @@ import '@wangeditor/editor';
|
|
|
198
202
|
import '@para-ui/icons/PreviewClose';
|
|
199
203
|
import 'rc-tooltip';
|
|
200
204
|
import 'rc-tooltip/lib/placements';
|
|
205
|
+
import '@para-ui/icons/Forbid';
|
|
201
206
|
import 'rc-tree';
|
|
202
207
|
import '@para-ui/icons/Document';
|
|
203
208
|
import '@para-ui/icons/EditFile';
|
package/locale/en-US.d.ts
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
Anchor: {
|
|
3
|
+
pleaseEnter: string;
|
|
4
|
+
};
|
|
5
|
+
Argv: {
|
|
6
|
+
environmentVariable: string;
|
|
7
|
+
pleaseEnterKey: string;
|
|
8
|
+
pleaseEnterValue: string;
|
|
9
|
+
add: string;
|
|
10
|
+
batchEdit: string;
|
|
11
|
+
ok: string;
|
|
12
|
+
formatErrorJson: string;
|
|
13
|
+
formatErrorArrayJson: string;
|
|
14
|
+
pleaseEnter: string;
|
|
15
|
+
pleaseSelect: string;
|
|
16
|
+
formatError: string;
|
|
17
|
+
required: string;
|
|
18
|
+
};
|
|
2
19
|
AutoButton: {
|
|
3
20
|
more: string;
|
|
4
21
|
};
|