@para-ui/core 4.0.37 → 4.0.39
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/Cascader/index.js +6 -5
- package/ComboSelect/index.js +7 -6
- package/CycleSelector/index.js +4 -1
- package/DatePicker/index.js +4 -1
- package/Drawer/index.js +4 -4
- package/DynamicMultiBox/index.js +31 -28
- package/Form/index.js +7 -6
- package/FormItem/index.js +7 -6
- package/Image/index.js +3 -2
- package/Pagination/index.js +2 -2
- package/PopConfirm/index.js +2 -2
- package/Progress/index.js +40 -41
- package/Querying/index.js +4 -4
- package/QuickReply/index.js +1 -1
- package/README.md +18 -2
- package/Select/index.js +3 -3
- package/Selector/index.js +2 -2
- package/SelectorPicker/index.js +4 -4
- package/SingleBox/index.js +2 -2
- package/SortBox/index.js +1 -1
- package/Switch/index.js +2 -2
- package/Table/index.js +493 -425
- package/Tag/index.js +82 -53
- package/TimePicker/index.js +4 -1
- package/Timeline/index.js +14 -20
- package/ToggleButton/index.js +2 -1
- package/Tree/index.js +6 -5
- package/Upload/index.js +5 -4
- package/_verture/{Portal-42560ff0.js → Portal-edd94cac.js} +2 -1
- package/_verture/{defineProperty-f0e15205.js → defineProperty-6f62bb2a.js} +2 -10
- package/_verture/{index-086e9a6d.js → index-63345bd4.js} +4 -3
- package/_verture/{index-5f0bfdcf.js → index-77fff5bd.js} +3 -2
- package/_verture/{index-8ac46bd9.js → index-94e24006.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/index.js +9 -8
- package/package.json +3 -4
- package/umd/Argv.js +1 -1
- package/umd/ComboSelect.js +1 -1
- package/umd/CycleSelector.js +1 -1
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/Pagination.js +1 -1
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Table.js +2 -2
- /package/_verture/{index-4c5d6cd7.js → index-182d41ee.js} +0 -0
- /package/_verture/{index-0f5ee6f7.js → index-c8cb6751.js} +0 -0
- /package/_verture/{typeof-6ec38efd.js → typeof-4646b22c.js} +0 -0
package/Tag/index.js
CHANGED
|
@@ -4,6 +4,9 @@ import { useState, useRef, useEffect } from 'react';
|
|
|
4
4
|
import CloseIcon from '@para-ui/icons/Close';
|
|
5
5
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
8
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
9
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
7
10
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
8
11
|
import AutoTips from '../AutoTips/index.js';
|
|
9
12
|
import { t as tinycolor } from '../_verture/tinycolor-ece3542d.js';
|
|
@@ -19,97 +22,121 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/1/12 上
|
|
|
19
22
|
styleInject(css_248z);
|
|
20
23
|
|
|
21
24
|
//tag group
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
size = 'large',
|
|
26
|
-
style,
|
|
27
|
-
defaultInputValue,
|
|
28
|
-
increased =
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
var TagGroup = function TagGroup(props) {
|
|
26
|
+
var className = props.className,
|
|
27
|
+
_props$size = props.size,
|
|
28
|
+
size = _props$size === void 0 ? 'large' : _props$size,
|
|
29
|
+
style = props.style,
|
|
30
|
+
defaultInputValue = props.defaultInputValue,
|
|
31
|
+
_props$increased = props.increased,
|
|
32
|
+
increased = _props$increased === void 0 ? false : _props$increased,
|
|
33
|
+
increasedTag = props.increasedTag,
|
|
34
|
+
inputClassName = props.inputClassName,
|
|
35
|
+
inputWidth = props.inputWidth,
|
|
36
|
+
onChange = props.onChange;
|
|
37
|
+
var _useState = useState([]),
|
|
38
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
+
inData = _useState2[0],
|
|
40
|
+
setInData = _useState2[1]; //数据源
|
|
41
|
+
var _useState3 = useState(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : ''),
|
|
42
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
+
inputValue = _useState4[0],
|
|
44
|
+
setInputValue = _useState4[1]; //input value
|
|
45
|
+
var _useState5 = useState(false),
|
|
46
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
47
|
+
inputVisible = _useState6[0],
|
|
48
|
+
setInputVisible = _useState6[1]; //input visible
|
|
49
|
+
var inputRef = useRef(); //input ref
|
|
50
|
+
var _useState7 = useState(),
|
|
51
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
52
|
+
increasedInputWidth = _useState8[0],
|
|
53
|
+
setIncreasedInputWidth = _useState8[1]; //添加标签的最小宽
|
|
54
|
+
useEffect(function () {
|
|
40
55
|
if (props.data) {
|
|
41
|
-
|
|
56
|
+
var tArr = props.data;
|
|
42
57
|
//Item[]
|
|
43
|
-
|
|
58
|
+
var unObjType = tArr.some(function (v) {
|
|
59
|
+
return ['string', 'number'].includes(_typeof(v));
|
|
60
|
+
});
|
|
44
61
|
if (unObjType) {
|
|
45
|
-
tArr = tArr.map(_
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
tArr = tArr.map(function (_) {
|
|
63
|
+
return {
|
|
64
|
+
value: _,
|
|
65
|
+
label: _
|
|
66
|
+
};
|
|
67
|
+
});
|
|
49
68
|
}
|
|
50
|
-
setInData(
|
|
69
|
+
setInData(_toConsumableArray(tArr));
|
|
51
70
|
}
|
|
52
71
|
}, [props.data]);
|
|
53
72
|
//tag value
|
|
54
|
-
|
|
55
|
-
return data.map(
|
|
73
|
+
var getTagGroupVal = function getTagGroupVal(data) {
|
|
74
|
+
return data.map(function (_) {
|
|
75
|
+
return _.value;
|
|
76
|
+
});
|
|
56
77
|
};
|
|
57
78
|
//show input
|
|
58
|
-
|
|
79
|
+
var showInput = function showInput() {
|
|
59
80
|
setInputVisible(true);
|
|
60
|
-
setTimeout(()
|
|
81
|
+
setTimeout(function () {
|
|
61
82
|
var _a;
|
|
62
83
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
63
84
|
});
|
|
64
85
|
};
|
|
65
|
-
|
|
86
|
+
var handleTagEdit = function handleTagEdit(value, idx) {
|
|
66
87
|
inData[idx].value = value;
|
|
67
|
-
setInData(
|
|
88
|
+
setInData(_toConsumableArray(inData));
|
|
68
89
|
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
69
90
|
};
|
|
70
91
|
//input change
|
|
71
|
-
|
|
92
|
+
var handleInputChange = function handleInputChange(e) {
|
|
72
93
|
setInputValue(e.target.value);
|
|
73
94
|
};
|
|
74
95
|
//input confirm
|
|
75
|
-
|
|
76
|
-
|
|
96
|
+
var handleInputConfirm = function handleInputConfirm() {
|
|
97
|
+
var val = inputValue.trim();
|
|
77
98
|
if (val !== '') {
|
|
78
99
|
inData.push({
|
|
79
100
|
value: val,
|
|
80
101
|
label: val,
|
|
81
102
|
closable: true
|
|
82
103
|
});
|
|
83
|
-
setInData(
|
|
104
|
+
setInData(_toConsumableArray(inData));
|
|
84
105
|
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
85
106
|
}
|
|
86
107
|
setInputValue(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : '');
|
|
87
108
|
setInputVisible(false);
|
|
88
109
|
};
|
|
89
110
|
//input enter
|
|
90
|
-
|
|
111
|
+
var handleInputEnter = function handleInputEnter(e) {
|
|
91
112
|
if (e.keyCode === 13 || e.which === 13) {
|
|
92
113
|
handleInputConfirm();
|
|
93
114
|
}
|
|
94
115
|
};
|
|
95
116
|
//handle close
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
117
|
+
var handleClose = function handleClose(item) {
|
|
118
|
+
return function (e) {
|
|
119
|
+
var idx = inData.findIndex(function (_) {
|
|
120
|
+
return _.value === item.value;
|
|
121
|
+
});
|
|
122
|
+
if (idx > -1) {
|
|
123
|
+
inData.splice(idx, 1);
|
|
124
|
+
setInData(_toConsumableArray(inData));
|
|
125
|
+
}
|
|
126
|
+
if (item.onClose) item.onClose(e);
|
|
127
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
128
|
+
};
|
|
104
129
|
};
|
|
105
130
|
//渲染Tag组
|
|
106
|
-
|
|
131
|
+
var renderTagGroup = function renderTagGroup() {
|
|
107
132
|
if (!(inData === null || inData === void 0 ? void 0 : inData.length)) return null;
|
|
108
|
-
return inData.map((item, idx)
|
|
133
|
+
return inData.map(function (item, idx) {
|
|
109
134
|
return jsx(Tag, Object.assign({}, item, {
|
|
110
135
|
size: size,
|
|
111
136
|
visible: true,
|
|
112
|
-
tagChange:
|
|
137
|
+
tagChange: function tagChange(value) {
|
|
138
|
+
return handleTagEdit(value, idx);
|
|
139
|
+
},
|
|
113
140
|
onClose: handleClose(item)
|
|
114
141
|
}, {
|
|
115
142
|
children: item.label
|
|
@@ -117,10 +144,10 @@ const TagGroup = props => {
|
|
|
117
144
|
});
|
|
118
145
|
};
|
|
119
146
|
//动态增加tag
|
|
120
|
-
|
|
147
|
+
var renderNewInput = function renderNewInput() {
|
|
121
148
|
var _a;
|
|
122
149
|
if (inputVisible) {
|
|
123
|
-
|
|
150
|
+
var inputCls = clsx('tag-group-input', {
|
|
124
151
|
'tag-group-input-large': size === 'large'
|
|
125
152
|
}, inputClassName);
|
|
126
153
|
return jsx("input", {
|
|
@@ -137,17 +164,19 @@ const TagGroup = props => {
|
|
|
137
164
|
onKeyDown: handleInputEnter
|
|
138
165
|
});
|
|
139
166
|
}
|
|
140
|
-
|
|
141
|
-
|
|
167
|
+
var icon = jsx(Plus, {});
|
|
168
|
+
var text = 'New Tag';
|
|
142
169
|
if (increasedTag) {
|
|
143
170
|
icon = increasedTag.icon || jsx(Plus, {});
|
|
144
171
|
text = (_a = increasedTag.text) !== null && _a !== void 0 ? _a : 'New Tag';
|
|
145
172
|
}
|
|
146
|
-
|
|
173
|
+
var newCls = clsx('tag-group-new', {
|
|
147
174
|
'tag-group-new-icon': !text
|
|
148
175
|
}, 'tag-group-add-btn');
|
|
149
176
|
return jsx(Tag, Object.assign({
|
|
150
|
-
getWidth:
|
|
177
|
+
getWidth: function getWidth(width) {
|
|
178
|
+
return setIncreasedInputWidth(width);
|
|
179
|
+
},
|
|
151
180
|
className: newCls,
|
|
152
181
|
size: size,
|
|
153
182
|
icon: icon,
|
package/TimePicker/index.js
CHANGED
|
@@ -24,9 +24,12 @@ import '@para-ui/icons/Forbid';
|
|
|
24
24
|
import '../Tag/index.js';
|
|
25
25
|
import '@para-ui/icons/Close';
|
|
26
26
|
import '@para-ui/icons/EditOutline';
|
|
27
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
28
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
29
|
+
import '../_verture/typeof-adeedc13.js';
|
|
27
30
|
import '../_verture/tinycolor-ece3542d.js';
|
|
28
31
|
import '@para-ui/icons/Plus';
|
|
29
|
-
import '../_verture/defineProperty-
|
|
32
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
30
33
|
import 'rc-picker';
|
|
31
34
|
import '@para-ui/icons/CloseCircleF';
|
|
32
35
|
import '@para-ui/icons/Calendar';
|
package/Timeline/index.js
CHANGED
|
@@ -2,33 +2,27 @@ import { a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
|
|
5
6
|
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
+
import '../_verture/typeof-adeedc13.js';
|
|
7
9
|
|
|
8
10
|
//TimelineItem
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = props,
|
|
11
|
+
var TimelineItem = function TimelineItem(props) {
|
|
12
|
+
var className = props.className,
|
|
13
|
+
color = props.color,
|
|
14
|
+
dot = props.dot,
|
|
15
|
+
_props$pending = props.pending,
|
|
16
|
+
pending = _props$pending === void 0 ? false : _props$pending;
|
|
17
|
+
props.position;
|
|
18
|
+
var label = props.label,
|
|
19
|
+
children = props.children,
|
|
19
20
|
restProps = __rest(props, ["className", "color", "dot", "pending", "position", "label", "children"]);
|
|
20
|
-
|
|
21
|
+
var prefixCls = "".concat($rcPrefixCls, "-timeline");
|
|
21
22
|
//item cls
|
|
22
|
-
|
|
23
|
-
["".concat(prefixCls, "-item")]: true,
|
|
24
|
-
["".concat(prefixCls, "-item-pending")]: pending
|
|
25
|
-
}, className);
|
|
23
|
+
var itemClassName = clsx(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-item"), true), "".concat(prefixCls, "-item-pending"), pending), className);
|
|
26
24
|
//dot cls
|
|
27
|
-
|
|
28
|
-
["".concat(prefixCls, "-item-head")]: true,
|
|
29
|
-
["".concat(prefixCls, "-item-head-custom")]: !!dot,
|
|
30
|
-
["".concat(prefixCls, "-item-head-").concat(color)]: color
|
|
31
|
-
});
|
|
25
|
+
var dotClassName = clsx(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-item-head"), true), "".concat(prefixCls, "-item-head-custom"), !!dot), "".concat(prefixCls, "-item-head-").concat(color), color));
|
|
32
26
|
return jsxs("li", Object.assign({}, restProps, {
|
|
33
27
|
className: itemClassName
|
|
34
28
|
}, {
|
package/ToggleButton/index.js
CHANGED
|
@@ -2,7 +2,7 @@ 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';
|
|
5
|
-
import {
|
|
5
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
|
|
6
6
|
import { UUID } from '@paraview/lib';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
@@ -20,6 +20,7 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
20
20
|
import 'dayjs';
|
|
21
21
|
import '../_verture/useFormatMessage-1fc7c957.js';
|
|
22
22
|
import '../_verture/index-ca413216.js';
|
|
23
|
+
import '../_verture/typeof-adeedc13.js';
|
|
23
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.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}";
|
|
25
26
|
styleInject(css_248z);
|
package/Tree/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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
|
-
import '../_verture/defineProperty-
|
|
6
|
-
import '../_verture/
|
|
7
|
-
import '../_verture/
|
|
5
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
6
|
+
import '../_verture/typeof-adeedc13.js';
|
|
7
|
+
import '../_verture/index-94e24006.js';
|
|
8
|
+
import '../_verture/typeof-4646b22c.js';
|
|
8
9
|
import '../_verture/tslib.es6-f43aa41d.js';
|
|
9
10
|
import 'react/jsx-runtime';
|
|
10
11
|
import 'react';
|
package/Upload/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import clsx from 'clsx';
|
|
|
6
6
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
7
7
|
import LoadingIcon from '@para-ui/icons/Loading';
|
|
8
8
|
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
9
|
-
import { _ as _typeof } from '../_verture/
|
|
9
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
10
10
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
11
|
-
import { r as regenerator } from '../_verture/index-
|
|
11
|
+
import { r as regenerator } from '../_verture/index-94e24006.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
13
13
|
import CloseIcon from '@para-ui/icons/Close';
|
|
14
14
|
import Delete from '@para-ui/icons/Delete';
|
|
@@ -33,11 +33,12 @@ import TurnRight from '@para-ui/icons/TurnRight';
|
|
|
33
33
|
import TurnLeft from '@para-ui/icons/TurnLeft';
|
|
34
34
|
import { Slider } from '../Slider/index.js';
|
|
35
35
|
import { Modal } from '../Modal/index.js';
|
|
36
|
-
import '../_verture/typeof-
|
|
36
|
+
import '../_verture/typeof-4646b22c.js';
|
|
37
37
|
import 'rc-tooltip';
|
|
38
38
|
import 'rc-tooltip/lib/placements';
|
|
39
|
-
import '../_verture/Portal-
|
|
39
|
+
import '../_verture/Portal-edd94cac.js';
|
|
40
40
|
import 'react-dom';
|
|
41
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
42
|
import 'rc-dialog';
|
|
42
43
|
import 'rc-motion';
|
|
43
44
|
import '@para-ui/icons/Sort';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import {
|
|
4
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
5
5
|
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
6
|
+
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
6
7
|
|
|
7
8
|
function _extends() {
|
|
8
9
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
"@babel/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function (o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
1
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
10
2
|
|
|
11
3
|
function toPrimitive(t, r) {
|
|
12
4
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -39,4 +31,4 @@ function _defineProperty(obj, key, value) {
|
|
|
39
31
|
return obj;
|
|
40
32
|
}
|
|
41
33
|
|
|
42
|
-
export {
|
|
34
|
+
export { _defineProperty as _, toPropertyKey as t };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { a as __rest } from './tslib.es6-f43aa41d.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
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-
|
|
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';
|
|
5
|
-
import {
|
|
5
|
+
import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
6
6
|
import { _ as _slicedToArray, a as _arrayWithHoles, b as _unsupportedIterableToArray, c as _nonIterableRest } from './slicedToArray-75fa4188.js';
|
|
7
|
+
import { _ as _typeof$1 } from './typeof-adeedc13.js';
|
|
7
8
|
import * as React$4 from 'react';
|
|
8
9
|
import React__default, { useState as useState$1, useMemo, useCallback, useRef, useEffect } from 'react';
|
|
9
10
|
import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
|
|
10
11
|
import CSSMotion from 'rc-motion';
|
|
11
12
|
import clsx$1 from 'clsx';
|
|
12
|
-
import { _ as _typeof$2 } from './typeof-
|
|
13
|
+
import { _ as _typeof$2 } from './typeof-4646b22c.js';
|
|
13
14
|
import { conductCheck } from 'rc-tree/lib/utils/conductUtil';
|
|
14
15
|
import Right from '@para-ui/icons/Right';
|
|
15
16
|
import Down from '@para-ui/icons/Down';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
2
|
-
import { _ as
|
|
2
|
+
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
4
|
-
import { r as regenerator } from './index-
|
|
4
|
+
import { r as regenerator } from './index-94e24006.js';
|
|
5
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';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
10
11
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
11
12
|
import FileOutlined from '@para-ui/icons/Document';
|
|
12
13
|
import SolidArrowDown from '@para-ui/icons/DownTriangleF';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _typeof(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function (o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { _typeof as _ };
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { Button } from './Button/index.js';
|
|
|
9
9
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
10
10
|
export { Card } from './Card/index.js';
|
|
11
11
|
export { Carousel } from './Carousel/index.js';
|
|
12
|
-
export { C as Cascader } from './_verture/index-
|
|
12
|
+
export { C as Cascader } from './_verture/index-63345bd4.js';
|
|
13
13
|
export { Checkbox } from './Checkbox/index.js';
|
|
14
14
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
15
15
|
export { Collapse } from './Collapse/index.js';
|
|
@@ -30,7 +30,7 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
|
|
|
30
30
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
31
31
|
export { default as Empty } from './Empty/index.js';
|
|
32
32
|
export { default as Form } from './Form/index.js';
|
|
33
|
-
export { F as FormItem } from './_verture/index-
|
|
33
|
+
export { F as FormItem } from './_verture/index-182d41ee.js';
|
|
34
34
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-205db1f4.js';
|
|
35
35
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
36
36
|
export { default as Help } from './Help/index.js';
|
|
@@ -83,7 +83,7 @@ export { Title } from './Title/index.js';
|
|
|
83
83
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
84
84
|
export { Tooltip } from './Tooltip/index.js';
|
|
85
85
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
86
|
-
export { T as Tree } from './_verture/index-
|
|
86
|
+
export { T as Tree } from './_verture/index-77fff5bd.js';
|
|
87
87
|
export { default as Upload } from './Upload/index.js';
|
|
88
88
|
export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
|
|
89
89
|
export { default as locale } from './locale/index.js';
|
|
@@ -110,12 +110,13 @@ import '@para-ui/icons/LoadingF';
|
|
|
110
110
|
import 'react-slick';
|
|
111
111
|
import '@para-ui/icons/RightCircleF';
|
|
112
112
|
import '@para-ui/icons/LeftCircleF';
|
|
113
|
-
import './_verture/Portal-
|
|
113
|
+
import './_verture/Portal-edd94cac.js';
|
|
114
114
|
import './_verture/slicedToArray-75fa4188.js';
|
|
115
|
-
import './_verture/
|
|
115
|
+
import './_verture/typeof-adeedc13.js';
|
|
116
116
|
import './_verture/toConsumableArray-c7a8028f.js';
|
|
117
|
+
import './_verture/defineProperty-6f62bb2a.js';
|
|
117
118
|
import 'rc-motion';
|
|
118
|
-
import './_verture/typeof-
|
|
119
|
+
import './_verture/typeof-4646b22c.js';
|
|
119
120
|
import 'rc-tree/lib/utils/conductUtil';
|
|
120
121
|
import '@para-ui/icons/Right';
|
|
121
122
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -151,7 +152,7 @@ import 'rc-dropdown';
|
|
|
151
152
|
import './_verture/usePopupContainer-635f66f4.js';
|
|
152
153
|
import '@para-ui/icons/Panel';
|
|
153
154
|
import '@para-ui/icons/Drag';
|
|
154
|
-
import './_verture/index-
|
|
155
|
+
import './_verture/index-c8cb6751.js';
|
|
155
156
|
import './_verture/sortable.esm-76fe46a4.js';
|
|
156
157
|
import '@para-ui/icons/LinkGroup';
|
|
157
158
|
import '@para-ui/icons/UploadFile';
|
|
@@ -178,7 +179,7 @@ import '@para-ui/icons/Plus';
|
|
|
178
179
|
import '@para-ui/icons/EditOutline';
|
|
179
180
|
import '@para-ui/icons/Message';
|
|
180
181
|
import '@para-ui/icons/Set';
|
|
181
|
-
import './_verture/index-
|
|
182
|
+
import './_verture/index-94e24006.js';
|
|
182
183
|
import 'rc-slider';
|
|
183
184
|
import './_verture/tinycolor-ece3542d.js';
|
|
184
185
|
import 'rc-steps';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@para-ui/core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.39",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"description": "Powered by Para FED",
|
|
@@ -23,12 +23,11 @@
|
|
|
23
23
|
"lint": "npm run lint:script && npm run lint:style",
|
|
24
24
|
"lint:script-all": "eslint --ext .js,.jsx,.ts,.tsx --fix src",
|
|
25
25
|
"lint:style-all": "stylelint 'src/**/*.{css,scss}' --fix",
|
|
26
|
-
"lint:all": "npm run lint:script-all && npm run lint:style-all"
|
|
27
|
-
"prepare": "if [ \"$CI\" != \"true\" ]; then npx husky install; fi"
|
|
26
|
+
"lint:all": "npm run lint:script-all && npm run lint:style-all"
|
|
28
27
|
},
|
|
29
28
|
"dependencies": {
|
|
30
29
|
"@monaco-editor/react": "^4.6.0",
|
|
31
|
-
"@paraview/lib": "
|
|
30
|
+
"@paraview/lib": "3.0.4",
|
|
32
31
|
"@wangeditor/editor": "^5.1.15",
|
|
33
32
|
"@wangeditor/editor-for-react": "^1.0.5",
|
|
34
33
|
"clsx": "1.1.1",
|