@para-ui/core 4.0.41 → 4.0.43
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 +4 -5
- package/ComboSelect/index.js +5 -6
- package/CycleSelector/index.js +3 -6
- package/DatePicker/index.js +1 -4
- package/DragVerify/index.js +2 -2
- package/DynamicMultiBox/index.js +2 -3
- package/Form/index.js +3 -4
- package/FormItem/index.js +3 -4
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +2 -3
- package/Message/index.js +2 -2
- package/Modal/index.js +3 -3
- package/Notification/index.js +3 -3
- package/Pagination/index.d.ts +4 -0
- package/Pagination/index.js +3 -2
- package/Progress/index.js +2 -2
- package/Prompt/index.js +2 -2
- package/README.md +10 -1
- package/Result/index.d.ts +25 -0
- package/Result/index.js +94 -0
- package/Select/index.js +5 -5
- package/Selector/index.js +3 -3
- package/SelectorPicker/index.js +3 -3
- package/Stepper/index.js +3 -3
- package/Table/index.js +43 -6
- package/Table/lang/en_US.d.ts +2 -0
- package/Table/lang/index.d.ts +4 -0
- package/Table/lang/zh_CN.d.ts +2 -0
- package/Tabs/index.js +4 -4
- package/Tag/index.js +55 -84
- package/TextEditor/index.js +3 -3
- package/TimePicker/index.js +1 -4
- package/Timeline/index.js +13 -20
- package/ToggleButton/index.js +1 -2
- package/Tree/index.js +3 -4
- package/Upload/index.js +4 -5
- package/_verture/{Portal-f9bedb3a.js → Portal-42560ff0.js} +1 -2
- package/_verture/{defineProperty-6f62bb2a.js → defineProperty-f0e15205.js} +10 -2
- package/_verture/{index-6016a7ed.js → index-3fcb421f.js} +2 -3
- package/_verture/{index-5b4ff3b2.js → index-5f0bfdcf.js} +1 -2
- package/index.d.ts +2 -0
- package/index.js +8 -8
- package/locale/en-US.d.ts +2 -0
- package/locale/index.d.ts +4 -0
- package/locale/index.js +6 -2
- package/locale/zh-CN.d.ts +2 -0
- package/package.json +1 -1
- package/umd/ComboSelect.js +1 -1
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/Pagination.js +1 -1
- package/umd/Result.js +43 -0
- package/umd/Table.js +2 -2
- package/umd/locale.js +1 -1
- package/_verture/typeof-adeedc13.js +0 -11
- /package/_verture/{index-8a431cd6.js → index-4b1025fa.js} +0 -0
- /package/_verture/{modalContext-efa83b5c.js → modalContext-369509dd.js} +0 -0
package/SelectorPicker/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import AutoTips from '../AutoTips/index.js';
|
|
|
9
9
|
import { Popover } from '../Popover/index.js';
|
|
10
10
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
11
11
|
import Down from '@para-ui/icons/Down';
|
|
12
|
-
import
|
|
12
|
+
import Close from '@para-ui/icons/Close';
|
|
13
13
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
14
14
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
15
15
|
import { Tooltip } from '../Tooltip/index.js';
|
|
@@ -265,7 +265,7 @@ const SelectorPicker = props => {
|
|
|
265
265
|
}, {
|
|
266
266
|
children: renderVal || val
|
|
267
267
|
}))
|
|
268
|
-
}), isClose && jsx(
|
|
268
|
+
}), isClose && jsx(Close, {
|
|
269
269
|
onClick: e => handleTagRemove === null || handleTagRemove === void 0 ? void 0 : handleTagRemove(item, index, e)
|
|
270
270
|
})]
|
|
271
271
|
}), index);
|
|
@@ -364,7 +364,7 @@ const SelectorPicker = props => {
|
|
|
364
364
|
}, {
|
|
365
365
|
children: renderVal || val
|
|
366
366
|
}))
|
|
367
|
-
}), isClose && jsx(
|
|
367
|
+
}), isClose && jsx(Close, {
|
|
368
368
|
onClick: e => handleTagRemove === null || handleTagRemove === void 0 ? void 0 : handleTagRemove(item, index, e)
|
|
369
369
|
})]
|
|
370
370
|
}), index);
|
package/Stepper/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import Check from '@para-ui/icons/Check';
|
|
|
15
15
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc89.js';
|
|
16
16
|
import clsx from 'clsx';
|
|
17
17
|
import AutoTips from '../AutoTips/index.js';
|
|
18
|
-
import
|
|
18
|
+
import Close from '@para-ui/icons/Close';
|
|
19
19
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
20
20
|
import '../Tooltip/index.js';
|
|
21
21
|
import 'rc-tooltip';
|
|
@@ -98,13 +98,13 @@ const Stepper = props => {
|
|
|
98
98
|
const isErr = index === errorStep;
|
|
99
99
|
if (typeof item === 'string') {
|
|
100
100
|
label = item;
|
|
101
|
-
icon = isErr ? jsx(
|
|
101
|
+
icon = isErr ? jsx(Close, {
|
|
102
102
|
size: "medium"
|
|
103
103
|
}) : Icons[index + 1];
|
|
104
104
|
} else if (typeof item === 'object') {
|
|
105
105
|
label = item.label;
|
|
106
106
|
description = item.description;
|
|
107
|
-
icon = isErr ? jsx(
|
|
107
|
+
icon = isErr ? jsx(Close, {
|
|
108
108
|
size: "medium"
|
|
109
109
|
}) : item.icon || Icons[index + 1];
|
|
110
110
|
}
|
package/Table/index.js
CHANGED
|
@@ -343,7 +343,9 @@ var en = {
|
|
|
343
343
|
refresh: 'Refresh',
|
|
344
344
|
selectNum: 'Selected {num} items',
|
|
345
345
|
selectAll: 'Select All',
|
|
346
|
-
dragSort: 'Drag Sort'
|
|
346
|
+
dragSort: 'Drag Sort',
|
|
347
|
+
noHomePageEmpty: 'There is no data on this page',
|
|
348
|
+
returnPrevPage: 'Return to previous page'
|
|
347
349
|
};
|
|
348
350
|
|
|
349
351
|
var zh = {
|
|
@@ -355,7 +357,9 @@ var zh = {
|
|
|
355
357
|
refresh: '刷新',
|
|
356
358
|
selectNum: '已选{num}项',
|
|
357
359
|
selectAll: '全选',
|
|
358
|
-
dragSort: '拖动排序'
|
|
360
|
+
dragSort: '拖动排序',
|
|
361
|
+
noHomePageEmpty: '当前页面无数据',
|
|
362
|
+
returnPrevPage: '返回上一页'
|
|
359
363
|
};
|
|
360
364
|
|
|
361
365
|
var localeJson = {
|
|
@@ -1248,11 +1252,42 @@ const TableBody = props => {
|
|
|
1248
1252
|
if ((emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.showRefresh) !== undefined) {
|
|
1249
1253
|
return emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.showRefresh;
|
|
1250
1254
|
}
|
|
1251
|
-
if (url) {
|
|
1255
|
+
if (url && Number(page) <= 1) {
|
|
1252
1256
|
return true;
|
|
1253
1257
|
}
|
|
1254
1258
|
return false;
|
|
1255
1259
|
};
|
|
1260
|
+
// 处理非首页非空状态
|
|
1261
|
+
const handleDescription = () => {
|
|
1262
|
+
if (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.description) return emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.description;
|
|
1263
|
+
if (Number(page) > 1) {
|
|
1264
|
+
return jsxs("div", Object.assign({
|
|
1265
|
+
className: 'no-home-page-empty'
|
|
1266
|
+
}, {
|
|
1267
|
+
children: [jsx("div", Object.assign({
|
|
1268
|
+
className: 'empty-desc'
|
|
1269
|
+
}, {
|
|
1270
|
+
children: intl({
|
|
1271
|
+
id: 'noHomePageEmpty'
|
|
1272
|
+
})
|
|
1273
|
+
})), jsx("div", Object.assign({
|
|
1274
|
+
className: 'return-prev-page'
|
|
1275
|
+
}, {
|
|
1276
|
+
children: jsx(Button, Object.assign({
|
|
1277
|
+
variant: "text",
|
|
1278
|
+
size: "small",
|
|
1279
|
+
onClick: () => {
|
|
1280
|
+
changePage && changePage(Number(page) - 1);
|
|
1281
|
+
}
|
|
1282
|
+
}, {
|
|
1283
|
+
children: intl({
|
|
1284
|
+
id: 'returnPrevPage'
|
|
1285
|
+
})
|
|
1286
|
+
}))
|
|
1287
|
+
}))]
|
|
1288
|
+
}));
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1256
1291
|
// 处理className
|
|
1257
1292
|
const handClassNoData = () => {
|
|
1258
1293
|
let str = 'table-no-data';
|
|
@@ -1267,6 +1302,7 @@ const TableBody = props => {
|
|
|
1267
1302
|
colSpan: expandableColSpan
|
|
1268
1303
|
}, {
|
|
1269
1304
|
children: jsx(Empty, Object.assign({}, emptyProps, {
|
|
1305
|
+
description: handleDescription(),
|
|
1270
1306
|
showRefresh: handRefreshBtn(),
|
|
1271
1307
|
onRefresh: event => {
|
|
1272
1308
|
if (emptyProps === null || emptyProps === void 0 ? void 0 : emptyProps.onRefresh) {
|
|
@@ -1278,7 +1314,7 @@ const TableBody = props => {
|
|
|
1278
1314
|
}))
|
|
1279
1315
|
}))
|
|
1280
1316
|
}));
|
|
1281
|
-
}, [expandableColSpan, emptyProps, url, onRefresh]);
|
|
1317
|
+
}, [expandableColSpan, emptyProps, url, onRefresh, page, changePage]);
|
|
1282
1318
|
// 复选框useCallback
|
|
1283
1319
|
const TableCheckCallback = useCallback(row => {
|
|
1284
1320
|
if (check) {
|
|
@@ -1735,6 +1771,7 @@ const TableHead = props => {
|
|
|
1735
1771
|
}, {
|
|
1736
1772
|
children: [handlePaginationRight(), jsx(Pagination, {
|
|
1737
1773
|
className: 'table-pagination-com',
|
|
1774
|
+
pageMaxLimit: false,
|
|
1738
1775
|
type: paginationType,
|
|
1739
1776
|
autoType: autoPagination,
|
|
1740
1777
|
flippingArrow: flippingArrow,
|
|
@@ -2673,8 +2710,8 @@ const Table = propsInit => {
|
|
|
2673
2710
|
/**
|
|
2674
2711
|
* 加载更多,点击改变分页
|
|
2675
2712
|
*/
|
|
2676
|
-
const changePageMore =
|
|
2677
|
-
const pageHnad = Number(pageCom) + 1;
|
|
2713
|
+
const changePageMore = num => {
|
|
2714
|
+
const pageHnad = num ? num : Number(pageCom) + 1;
|
|
2678
2715
|
handPage(pageHnad);
|
|
2679
2716
|
};
|
|
2680
2717
|
/**
|
package/Table/lang/en_US.d.ts
CHANGED
package/Table/lang/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ declare const _default: {
|
|
|
9
9
|
selectNum: string;
|
|
10
10
|
selectAll: string;
|
|
11
11
|
dragSort: string;
|
|
12
|
+
noHomePageEmpty: string;
|
|
13
|
+
returnPrevPage: string;
|
|
12
14
|
};
|
|
13
15
|
en: {
|
|
14
16
|
empty: string;
|
|
@@ -20,6 +22,8 @@ declare const _default: {
|
|
|
20
22
|
selectNum: string;
|
|
21
23
|
selectAll: string;
|
|
22
24
|
dragSort: string;
|
|
25
|
+
noHomePageEmpty: string;
|
|
26
|
+
returnPrevPage: string;
|
|
23
27
|
};
|
|
24
28
|
};
|
|
25
29
|
export default _default;
|
package/Table/lang/zh_CN.d.ts
CHANGED
package/Tabs/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
4
4
|
import RcTabs, { TabPane } from 'rc-tabs';
|
|
5
5
|
import More from '@para-ui/icons/More';
|
|
6
6
|
import Plus from '@para-ui/icons/Plus';
|
|
7
|
-
import
|
|
7
|
+
import Close from '@para-ui/icons/Close';
|
|
8
8
|
import { PopConfirm } from '../PopConfirm/index.js';
|
|
9
9
|
import { Radio } from '../Radio/index.js';
|
|
10
10
|
import Help from '../Help/index.js';
|
|
@@ -122,7 +122,7 @@ const Tabs = props => {
|
|
|
122
122
|
onEdit === null || onEdit === void 0 ? void 0 : onEdit(currItem, tKey, editType);
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
removeIcon: jsx(
|
|
125
|
+
removeIcon: jsx(Close, {}),
|
|
126
126
|
addIcon: addIcon || jsx(Plus, {}),
|
|
127
127
|
showAdd: hideAdd !== true && showAdd !== false
|
|
128
128
|
};
|
|
@@ -143,7 +143,7 @@ const Tabs = props => {
|
|
|
143
143
|
} = item;
|
|
144
144
|
if (closable === false) return null;
|
|
145
145
|
if (!showPopConfirm) {
|
|
146
|
-
return closeIcon || jsx(
|
|
146
|
+
return closeIcon || jsx(Close, {});
|
|
147
147
|
}
|
|
148
148
|
return jsx("span", Object.assign({
|
|
149
149
|
onClick: ev => ev.stopPropagation()
|
|
@@ -156,7 +156,7 @@ const Tabs = props => {
|
|
|
156
156
|
}, popConfirmProps, {
|
|
157
157
|
onOk: () => onEdit === null || onEdit === void 0 ? void 0 : onEdit(item, item.value, 'remove')
|
|
158
158
|
}, {
|
|
159
|
-
children: closeIcon || jsx(
|
|
159
|
+
children: closeIcon || jsx(Close, {})
|
|
160
160
|
}))
|
|
161
161
|
}));
|
|
162
162
|
};
|
package/Tag/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useEffect } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import Close 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';
|
|
10
7
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
11
8
|
import AutoTips from '../AutoTips/index.js';
|
|
12
9
|
import { t as tinycolor } from '../_verture/tinycolor-ece3542d.js';
|
|
@@ -22,121 +19,97 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/1/12 上
|
|
|
22
19
|
styleInject(css_248z);
|
|
23
20
|
|
|
24
21
|
//tag group
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
size =
|
|
29
|
-
style
|
|
30
|
-
defaultInputValue
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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 () {
|
|
22
|
+
const TagGroup = props => {
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
size = 'large',
|
|
26
|
+
style,
|
|
27
|
+
defaultInputValue,
|
|
28
|
+
increased = false,
|
|
29
|
+
increasedTag,
|
|
30
|
+
inputClassName,
|
|
31
|
+
inputWidth,
|
|
32
|
+
onChange
|
|
33
|
+
} = props;
|
|
34
|
+
const [inData, setInData] = useState([]); //数据源
|
|
35
|
+
const [inputValue, setInputValue] = useState(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : ''); //input value
|
|
36
|
+
const [inputVisible, setInputVisible] = useState(false); //input visible
|
|
37
|
+
const inputRef = useRef(); //input ref
|
|
38
|
+
const [increasedInputWidth, setIncreasedInputWidth] = useState(); //添加标签的最小宽
|
|
39
|
+
useEffect(() => {
|
|
55
40
|
if (props.data) {
|
|
56
|
-
|
|
41
|
+
let tArr = props.data;
|
|
57
42
|
//Item[]
|
|
58
|
-
|
|
59
|
-
return ['string', 'number'].includes(_typeof(v));
|
|
60
|
-
});
|
|
43
|
+
const unObjType = tArr.some(v => ['string', 'number'].includes(typeof v));
|
|
61
44
|
if (unObjType) {
|
|
62
|
-
tArr = tArr.map(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
};
|
|
67
|
-
});
|
|
45
|
+
tArr = tArr.map(_ => ({
|
|
46
|
+
value: _,
|
|
47
|
+
label: _
|
|
48
|
+
}));
|
|
68
49
|
}
|
|
69
|
-
setInData(
|
|
50
|
+
setInData([...tArr]);
|
|
70
51
|
}
|
|
71
52
|
}, [props.data]);
|
|
72
53
|
//tag value
|
|
73
|
-
|
|
74
|
-
return data.map(
|
|
75
|
-
return _.value;
|
|
76
|
-
});
|
|
54
|
+
const getTagGroupVal = data => {
|
|
55
|
+
return data.map(_ => _.value);
|
|
77
56
|
};
|
|
78
57
|
//show input
|
|
79
|
-
|
|
58
|
+
const showInput = () => {
|
|
80
59
|
setInputVisible(true);
|
|
81
|
-
setTimeout(
|
|
60
|
+
setTimeout(() => {
|
|
82
61
|
var _a;
|
|
83
62
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
84
63
|
});
|
|
85
64
|
};
|
|
86
|
-
|
|
65
|
+
const handleTagEdit = (value, idx) => {
|
|
87
66
|
inData[idx].value = value;
|
|
88
|
-
setInData(
|
|
67
|
+
setInData([...inData]);
|
|
89
68
|
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
90
69
|
};
|
|
91
70
|
//input change
|
|
92
|
-
|
|
71
|
+
const handleInputChange = e => {
|
|
93
72
|
setInputValue(e.target.value);
|
|
94
73
|
};
|
|
95
74
|
//input confirm
|
|
96
|
-
|
|
97
|
-
|
|
75
|
+
const handleInputConfirm = () => {
|
|
76
|
+
const val = inputValue.trim();
|
|
98
77
|
if (val !== '') {
|
|
99
78
|
inData.push({
|
|
100
79
|
value: val,
|
|
101
80
|
label: val,
|
|
102
81
|
closable: true
|
|
103
82
|
});
|
|
104
|
-
setInData(
|
|
83
|
+
setInData([...inData]);
|
|
105
84
|
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
106
85
|
}
|
|
107
86
|
setInputValue(defaultInputValue !== null && defaultInputValue !== void 0 ? defaultInputValue : '');
|
|
108
87
|
setInputVisible(false);
|
|
109
88
|
};
|
|
110
89
|
//input enter
|
|
111
|
-
|
|
90
|
+
const handleInputEnter = e => {
|
|
112
91
|
if (e.keyCode === 13 || e.which === 13) {
|
|
113
92
|
handleInputConfirm();
|
|
114
93
|
}
|
|
115
94
|
};
|
|
116
95
|
//handle close
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
if (item.onClose) item.onClose(e);
|
|
127
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
128
|
-
};
|
|
96
|
+
const handleClose = item => e => {
|
|
97
|
+
const idx = inData.findIndex(_ => _.value === item.value);
|
|
98
|
+
if (idx > -1) {
|
|
99
|
+
inData.splice(idx, 1);
|
|
100
|
+
setInData([...inData]);
|
|
101
|
+
}
|
|
102
|
+
if (item.onClose) item.onClose(e);
|
|
103
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(inData, getTagGroupVal(inData));
|
|
129
104
|
};
|
|
130
105
|
//渲染Tag组
|
|
131
|
-
|
|
106
|
+
const renderTagGroup = () => {
|
|
132
107
|
if (!(inData === null || inData === void 0 ? void 0 : inData.length)) return null;
|
|
133
|
-
return inData.map(
|
|
108
|
+
return inData.map((item, idx) => {
|
|
134
109
|
return jsx(Tag, Object.assign({}, item, {
|
|
135
110
|
size: size,
|
|
136
111
|
visible: true,
|
|
137
|
-
tagChange:
|
|
138
|
-
return handleTagEdit(value, idx);
|
|
139
|
-
},
|
|
112
|
+
tagChange: value => handleTagEdit(value, idx),
|
|
140
113
|
onClose: handleClose(item)
|
|
141
114
|
}, {
|
|
142
115
|
children: item.label
|
|
@@ -144,10 +117,10 @@ var TagGroup = function TagGroup(props) {
|
|
|
144
117
|
});
|
|
145
118
|
};
|
|
146
119
|
//动态增加tag
|
|
147
|
-
|
|
120
|
+
const renderNewInput = () => {
|
|
148
121
|
var _a;
|
|
149
122
|
if (inputVisible) {
|
|
150
|
-
|
|
123
|
+
const inputCls = clsx('tag-group-input', {
|
|
151
124
|
'tag-group-input-large': size === 'large'
|
|
152
125
|
}, inputClassName);
|
|
153
126
|
return jsx("input", {
|
|
@@ -164,19 +137,17 @@ var TagGroup = function TagGroup(props) {
|
|
|
164
137
|
onKeyDown: handleInputEnter
|
|
165
138
|
});
|
|
166
139
|
}
|
|
167
|
-
|
|
168
|
-
|
|
140
|
+
let icon = jsx(Plus, {});
|
|
141
|
+
let text = 'New Tag';
|
|
169
142
|
if (increasedTag) {
|
|
170
143
|
icon = increasedTag.icon || jsx(Plus, {});
|
|
171
144
|
text = (_a = increasedTag.text) !== null && _a !== void 0 ? _a : 'New Tag';
|
|
172
145
|
}
|
|
173
|
-
|
|
146
|
+
const newCls = clsx('tag-group-new', {
|
|
174
147
|
'tag-group-new-icon': !text
|
|
175
148
|
}, 'tag-group-add-btn');
|
|
176
149
|
return jsx(Tag, Object.assign({
|
|
177
|
-
getWidth:
|
|
178
|
-
return setIncreasedInputWidth(width);
|
|
179
|
-
},
|
|
150
|
+
getWidth: width => setIncreasedInputWidth(width),
|
|
180
151
|
className: newCls,
|
|
181
152
|
size: size,
|
|
182
153
|
icon: icon,
|
|
@@ -319,7 +290,7 @@ const InternalTag = props => {
|
|
|
319
290
|
onMouseLeave: handleCloseLeave
|
|
320
291
|
}, {
|
|
321
292
|
children: closeIcon
|
|
322
|
-
})) : jsx(
|
|
293
|
+
})) : jsx(Close, {
|
|
323
294
|
className: 'tag-close-icon',
|
|
324
295
|
style: closeIconStyle,
|
|
325
296
|
onClick: handleCloseClick,
|
package/TextEditor/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import '../_verture/index-ca413216.js';
|
|
|
23
23
|
* @date 2022/09/06 18:00
|
|
24
24
|
* @description 存放富文本编辑器的一些默认配置
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
var TOOL_BAR_CONFIG = ['headerSelect', 'blockquote', '|', 'bold', 'underline', 'italic', {
|
|
27
27
|
key: 'group-more-style',
|
|
28
28
|
title: '更多',
|
|
29
29
|
iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',
|
|
@@ -59,8 +59,8 @@ var zh = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
var localeJson = {
|
|
62
|
-
zh,
|
|
63
|
-
en
|
|
62
|
+
zh: zh,
|
|
63
|
+
en: en
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-text-editor .w-e-max-length-info {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-editor .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item {\n padding-left: 0;\n padding-right: 0;\n display: flex;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button {\n flex: 1;\n display: flex;\n justify-content: flex-start;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-full-screen-container {\n z-index: 1000;\n}\n.paraui-v4-text-editor .text-editor-content {\n border: 1px solid rgb(212, 218, 227);\n border-radius: 4px;\n padding: 1px 0;\n background-color: #fff;\n}\n.paraui-v4-text-editor .text-editor-content > div:nth-child(1) {\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false] {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false]:hover {\n border-color: rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-text-editor .preview-mode > div:nth-child(1) {\n border-bottom: none;\n}";
|
package/TimePicker/index.js
CHANGED
|
@@ -24,12 +24,9 @@ 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';
|
|
30
27
|
import '../_verture/tinycolor-ece3542d.js';
|
|
31
28
|
import '@para-ui/icons/Plus';
|
|
32
|
-
import '../_verture/defineProperty-
|
|
29
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
33
30
|
import 'rc-picker';
|
|
34
31
|
import '@para-ui/icons/CloseCircleF';
|
|
35
32
|
import '@para-ui/icons/Calendar';
|
package/Timeline/index.js
CHANGED
|
@@ -2,33 +2,26 @@ 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 { a as _defineProperty } from '../_verture/defineProperty-f0e15205.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';
|
|
7
8
|
|
|
8
9
|
//TimelineItem
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} = props,
|
|
10
|
+
var TimelineItem = function TimelineItem(props) {
|
|
11
|
+
var className = props.className,
|
|
12
|
+
color = props.color,
|
|
13
|
+
dot = props.dot,
|
|
14
|
+
_props$pending = props.pending,
|
|
15
|
+
pending = _props$pending === void 0 ? false : _props$pending;
|
|
16
|
+
props.position;
|
|
17
|
+
var label = props.label,
|
|
18
|
+
children = props.children,
|
|
19
19
|
restProps = __rest(props, ["className", "color", "dot", "pending", "position", "label", "children"]);
|
|
20
|
-
|
|
20
|
+
var prefixCls = "".concat($rcPrefixCls, "-timeline");
|
|
21
21
|
//item cls
|
|
22
|
-
|
|
23
|
-
["".concat(prefixCls, "-item")]: true,
|
|
24
|
-
["".concat(prefixCls, "-item-pending")]: pending
|
|
25
|
-
}, className);
|
|
22
|
+
var itemClassName = clsx(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-item"), true), "".concat(prefixCls, "-item-pending"), pending), className);
|
|
26
23
|
//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
|
-
});
|
|
24
|
+
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
25
|
return jsxs("li", Object.assign({}, restProps, {
|
|
33
26
|
className: itemClassName
|
|
34
27
|
}, {
|
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 { a as _defineProperty } from '../_verture/defineProperty-f0e15205.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,7 +20,6 @@ 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';
|
|
24
23
|
|
|
25
24
|
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
25
|
styleInject(css_248z);
|
package/Tree/index.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-5f0bfdcf.js';
|
|
2
|
+
export { T as default } from '../_verture/index-5f0bfdcf.js';
|
|
3
3
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
4
4
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
5
|
-
import '../_verture/defineProperty-
|
|
6
|
-
import '../_verture/typeof-adeedc13.js';
|
|
5
|
+
import '../_verture/defineProperty-f0e15205.js';
|
|
7
6
|
import '../_verture/index-8ac46bd9.js';
|
|
8
7
|
import '../_verture/typeof-6ec38efd.js';
|
|
9
8
|
import '../_verture/tslib.es6-f43aa41d.js';
|
package/Upload/index.js
CHANGED
|
@@ -6,11 +6,11 @@ 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/defineProperty-f0e15205.js';
|
|
10
10
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
11
11
|
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
13
|
-
import
|
|
13
|
+
import Close from '@para-ui/icons/Close';
|
|
14
14
|
import Delete from '@para-ui/icons/Delete';
|
|
15
15
|
import FileOutlined from '@para-ui/icons/Document';
|
|
16
16
|
import PhotoIcon from '@para-ui/icons/Photo';
|
|
@@ -36,9 +36,8 @@ import { Modal } from '../Modal/index.js';
|
|
|
36
36
|
import '../_verture/typeof-6ec38efd.js';
|
|
37
37
|
import 'rc-tooltip';
|
|
38
38
|
import 'rc-tooltip/lib/placements';
|
|
39
|
-
import '../_verture/Portal-
|
|
39
|
+
import '../_verture/Portal-42560ff0.js';
|
|
40
40
|
import 'react-dom';
|
|
41
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
42
41
|
import 'rc-dialog';
|
|
43
42
|
import 'rc-motion';
|
|
44
43
|
import '@para-ui/icons/Sort';
|
|
@@ -1107,7 +1106,7 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
1107
1106
|
size: "small",
|
|
1108
1107
|
onClick: handleReset
|
|
1109
1108
|
}, {
|
|
1110
|
-
children: jsx(
|
|
1109
|
+
children: jsx(Close, {})
|
|
1111
1110
|
})), renderUploadSelector()]
|
|
1112
1111
|
})) : renderUploadSelector() : jsx(Fragment, {})]
|
|
1113
1112
|
}));
|
|
@@ -1,9 +1,8 @@
|
|
|
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 { _ as _typeof } from './
|
|
4
|
+
import { a as _defineProperty, _ as _typeof } from './defineProperty-f0e15205.js';
|
|
5
5
|
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
6
|
-
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
7
6
|
|
|
8
7
|
function _extends() {
|
|
9
8
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
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
|
+
}
|
|
2
10
|
|
|
3
11
|
function toPrimitive(t, r) {
|
|
4
12
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -31,4 +39,4 @@ function _defineProperty(obj, key, value) {
|
|
|
31
39
|
return obj;
|
|
32
40
|
}
|
|
33
41
|
|
|
34
|
-
export {
|
|
42
|
+
export { _typeof as _, _defineProperty as a, toPropertyKey as t };
|