@para-ui/core 4.0.53 → 4.0.54
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/Button/index.js +2 -2
- package/Cascader/Cascader.d.ts +3 -0
- package/Cascader/index.js +11 -7
- package/ComboSelect/index.js +5 -4
- package/CycleSelector/index.js +4 -1
- package/DatePicker/index.js +4 -1
- package/DynamicMultiBox/index.js +7 -6
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/FieldForm/ErrorList.d.ts +16 -0
- package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
- package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
- package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
- package/FieldForm/FieldFormItem/index.d.ts +58 -0
- package/FieldForm/Form.d.ts +36 -0
- package/FieldForm/FormItemInput.d.ts +21 -0
- package/FieldForm/FormItemLabel.d.ts +21 -0
- package/FieldForm/FormList.d.ts +23 -0
- package/FieldForm/context.d.ts +33 -0
- package/FieldForm/hooks/useChildren.d.ts +2 -0
- package/FieldForm/hooks/useDebounce.d.ts +1 -0
- package/FieldForm/hooks/useForm.d.ts +6 -0
- package/FieldForm/hooks/useFormInstance.d.ts +2 -0
- package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
- package/FieldForm/hooks/useFrameState.d.ts +3 -0
- package/FieldForm/hooks/useItemRef.d.ts +3 -0
- package/FieldForm/index.d.ts +30 -0
- package/FieldForm/index.js +5326 -0
- package/FieldForm/interface.d.ts +2 -0
- package/FieldForm/lang/en_US.d.ts +51 -0
- package/FieldForm/lang/index.d.ts +105 -0
- package/FieldForm/lang/zh_CN.d.ts +51 -0
- package/FieldForm/util.d.ts +21 -0
- package/Form/index.js +6 -5
- package/FormItem/index.js +6 -5
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +7 -56
- package/PopMenu/index.js +2 -2
- package/README.md +10 -0
- package/Result/index.js +2 -2
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/Stepper/index.js +1 -1
- package/Switch/index.d.ts +4 -0
- package/Switch/index.js +3 -2
- package/Tabs/index.js +2 -2
- package/Tag/index.js +87 -55
- package/TextEditor/index.d.ts +2 -0
- package/TextEditor/index.js +27 -6
- package/TimePicker/index.js +4 -1
- package/Timeline/index.js +2 -1
- package/ToggleButton/index.js +2 -1
- package/Transfer/index.d.ts +1 -0
- package/Transfer/index.js +120 -119
- package/Tree/index.js +6 -5
- package/Upload/index.js +10 -7
- package/_verture/{Portal-42560ff0.js → Portal-502bb85e.js} +30 -481
- package/_verture/{defineProperty-f0e15205.js → defineProperty-6f62bb2a.js} +2 -10
- package/_verture/{index-063009f8.js → index-0a300edb.js} +388 -700
- package/_verture/index-1856bbeb.js +480 -0
- package/_verture/{index-d728b0ce.js → index-320d67c4.js} +4 -3
- package/_verture/{index-f30ae73e.js → index-43c653bb.js} +1 -1
- package/_verture/isEqual-30b6f859.js +56 -0
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
- package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/_verture/useState-f2419d68.js +353 -0
- package/index.d.ts +2 -0
- package/index.js +16 -11
- package/locale/en-US.d.ts +46 -0
- package/locale/index.d.ts +92 -0
- package/locale/index.js +92 -0
- package/locale/zh-CN.d.ts +46 -0
- package/package.json +3 -1
- package/umd/Anchor.js +5 -5
- package/umd/Argv.js +5 -5
- package/umd/AutoBox.js +5 -5
- package/umd/AutoButton.js +6 -6
- package/umd/AutoTips.js +5 -5
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +5 -5
- package/umd/ButtonGroup.js +6 -6
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +4 -4
- package/umd/CheckboxGroup.js +4 -4
- package/umd/Collapse.js +1 -1
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +5 -5
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +6 -6
- package/umd/Desktop.js +5 -5
- package/umd/Drawer.js +5 -5
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/FieldForm.js +43 -0
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +5 -5
- package/umd/Image.js +3 -3
- package/umd/InputCode.js +5 -5
- package/umd/InputLang.js +5 -5
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Modal.js +5 -5
- package/umd/MultiBox.js +6 -6
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +5 -5
- package/umd/PageHeader.js +5 -5
- package/umd/Pagination.js +5 -5
- package/umd/PopConfirm.js +5 -5
- package/umd/PopMenu.js +5 -5
- package/umd/Popover.js +5 -5
- package/umd/QuickReply.js +5 -5
- package/umd/Radio.js +4 -4
- package/umd/RadioGroup.js +4 -4
- package/umd/RangeInput.js +5 -5
- package/umd/Result.js +4 -4
- package/umd/Search.js +5 -5
- package/umd/Select.js +5 -5
- package/umd/SelectInput.js +5 -5
- package/umd/Selector.js +5 -5
- package/umd/SelectorPicker.js +5 -5
- package/umd/SingleBox.js +5 -5
- package/umd/Slider.js +4 -4
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +5 -5
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +5 -5
- package/umd/TextEditor.js +6 -6
- package/umd/TextField.js +5 -5
- package/umd/TimePicker.js +5 -5
- package/umd/Title.js +3 -3
- package/umd/ToggleButton.js +5 -5
- package/umd/Tooltip.js +4 -4
- package/umd/Transfer.js +7 -7
- package/umd/Tree.js +3 -3
- package/umd/Upload.js +5 -5
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-8a48c400.js → modalContext-6ac2e323.js} +0 -0
package/Transfer/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import ExpandLess from '@para-ui/icons/Up';
|
|
|
8
8
|
import Down from '@para-ui/icons/Down';
|
|
9
9
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
10
10
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
11
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
11
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
12
12
|
import { Search } from '../Search/index.js';
|
|
13
13
|
import SearchIcon from '@para-ui/icons/Search';
|
|
14
14
|
import AutoTips from '../AutoTips/index.js';
|
|
@@ -257,7 +257,7 @@ var Box = function Box(props) {
|
|
|
257
257
|
};
|
|
258
258
|
var Sortablejs = Sortable;
|
|
259
259
|
|
|
260
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-transfer {\n display: flex;\n font-size: 14px;\n user-select: none;\n}\n.paraui-v4-transfer .blue-background-class {\n background-color: rgb(240, 245, 255);\n}\n.paraui-v4-transfer .drag-item {\n background: rgb(255, 255, 255) !important;\n box-shadow: rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-transfer .box {\n border-radius: 4px;\n border: 1px solid rgb(212, 218, 227);\n overflow: hidden;\n}\n.paraui-v4-transfer .box .box-header {\n background: rgb(247, 248, 250);\n color: rgb(29, 33, 38);\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 10px;\n height: 36px;\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-transfer .box .count {\n color: rgb(29, 33, 38);\n letter-spacing: 1px;\n}\n.paraui-v4-transfer .box .context {\n height: 400px;\n overflow: auto;\n margin-top: 4px;\n}\n.paraui-v4-transfer .box .context .item-fluctuation {\n animation: flucturation 0.4s forwards;\n}\n.paraui-v4-transfer .box .context .item-fluctuationOrther {\n animation: flucturationOrther 0.5s forwards;\n}\n.paraui-v4-transfer .box .context .item {\n padding: 0px 10px;\n height: 30px;\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.paraui-v4-transfer .box .context .item.item-checked:hover {\n background-color: rgb(247, 248, 250) !important;\n}\n.paraui-v4-transfer .box .context .item.item-checked > .item-label {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-transfer .box .context .item > .item-label {\n flex: 1;\n overflow: hidden;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-transfer .box .context .item:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-transfer .box .context .item.item-disabled:hover {\n background: inherit;\n cursor: no-drop;\n}\n.paraui-v4-transfer .box .context .item.item-disabled > .item-label {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-transfer .box .context .item .handle {\n margin-left: 8px;\n display: flex;\n align-content: center;\n}\n.paraui-v4-transfer .box .context .item .handle .handle-line {\n height: 12px;\n border-left: 1px solid rgb(212, 218, 227);\n margin: auto 10px auto 0;\n}\n.paraui-v4-transfer .box .context .item .handle svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-transfer .box .context .item .handle:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-transfer .box .context .item-border {\n padding-left: 6px;\n}\n.paraui-v4-transfer .box .text-field-content {\n border: none;\n border-radius: 0;\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-transfer .box .footer {\n display: flex;\n align-items: center;\n border-top: 1px solid rgb(212, 218, 227);\n height: 36px;\n justify-content: space-between;\n padding: 0 10px;\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) button {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) button:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) .btn-off {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) .btn-off:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) > button {\n padding: 0;\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) > button:nth-child(2) {\n margin-left: 16px;\n}\n.paraui-v4-transfer .moveBtn {\n display: flex;\n height: 500px;\n flex-direction: column;\n justify-content: center;\n margin: 0 20px;\n}\n.paraui-v4-transfer .moveBtn > button {\n background-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n}\n.paraui-v4-transfer .moveBtn .btn-left {\n margin-top: 16px;\n}\n\n@keyframes flucturation {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(36px);\n }\n}\n@keyframes flucturationOrther {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(-36px);\n }\n}";
|
|
260
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-transfer {\n display: flex;\n font-size: 14px;\n user-select: none;\n}\n.paraui-v4-transfer .blue-background-class {\n background-color: rgb(240, 245, 255);\n}\n.paraui-v4-transfer .drag-item {\n background: rgb(255, 255, 255) !important;\n box-shadow: rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-transfer .box {\n border-radius: 4px;\n border: 1px solid rgb(212, 218, 227);\n overflow: hidden;\n}\n.paraui-v4-transfer .box .box-header {\n background: rgb(247, 248, 250);\n color: rgb(29, 33, 38);\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding-left: 10px;\n height: 36px;\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-transfer .box .count {\n color: rgb(29, 33, 38);\n letter-spacing: 1px;\n}\n.paraui-v4-transfer .box .context {\n height: 400px;\n overflow: auto;\n margin-top: 4px;\n}\n.paraui-v4-transfer .box .context .item-fluctuation {\n animation: flucturation 0.4s forwards;\n}\n.paraui-v4-transfer .box .context .item-fluctuationOrther {\n animation: flucturationOrther 0.5s forwards;\n}\n.paraui-v4-transfer .box .context .item {\n padding: 0px 10px;\n height: 30px;\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.paraui-v4-transfer .box .context .item.item-checked:hover {\n background-color: rgb(247, 248, 250) !important;\n}\n.paraui-v4-transfer .box .context .item.item-checked > .item-label {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-transfer .box .context .item > .item-label {\n flex: 1;\n overflow: hidden;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-transfer .box .context .item:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-transfer .box .context .item.item-disabled:hover {\n background: inherit;\n cursor: no-drop;\n}\n.paraui-v4-transfer .box .context .item.item-disabled > .item-label {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-transfer .box .context .item .handle {\n margin-left: 8px;\n display: flex;\n align-content: center;\n}\n.paraui-v4-transfer .box .context .item .handle .handle-line {\n height: 12px;\n border-left: 1px solid rgb(212, 218, 227);\n margin: auto 10px auto 0;\n}\n.paraui-v4-transfer .box .context .item .handle svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-transfer .box .context .item .handle:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-transfer .box .context .item-border {\n padding-left: 6px;\n}\n.paraui-v4-transfer .box .text-field-content {\n border: none;\n border-radius: 0;\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-transfer .box .footer {\n display: flex;\n align-items: center;\n border-top: 1px solid rgb(212, 218, 227);\n height: 36px;\n justify-content: space-between;\n padding: 0 10px;\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) button {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) button:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) .btn-off {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) .btn-off:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) > button {\n padding: 0;\n}\n.paraui-v4-transfer .box .footer > div:nth-child(1) > button:nth-child(2) {\n margin-left: 16px;\n}\n.paraui-v4-transfer .moveBtn {\n display: flex;\n height: 500px;\n flex-direction: column;\n justify-content: center;\n margin: 0 20px;\n}\n.paraui-v4-transfer .moveBtn > button {\n background-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n}\n.paraui-v4-transfer .moveBtn .btn-left {\n margin-top: 16px;\n}\n.paraui-v4-transfer .paraui-v4-transfer-container {\n display: flex;\n}\n.paraui-v4-transfer-disabled > .paraui-v4-transfer-container {\n position: relative;\n}\n.paraui-v4-transfer-disabled > .paraui-v4-transfer-container::before {\n content: \"\";\n position: absolute;\n display: block;\n top: -1px;\n left: -1px;\n width: calc(100% + 2px);\n height: calc(100% + 2px);\n z-index: 1;\n background: rgba(255, 255, 255, 0.3);\n border-radius: 4px;\n backdrop-filter: blur(1px);\n}\n\n@keyframes flucturation {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(36px);\n }\n}\n@keyframes flucturationOrther {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(-36px);\n }\n}";
|
|
261
261
|
styleInject(css_248z);
|
|
262
262
|
|
|
263
263
|
const Transfer = props => {
|
|
@@ -282,9 +282,9 @@ const Transfer = props => {
|
|
|
282
282
|
trim = false,
|
|
283
283
|
multiple = true,
|
|
284
284
|
rightIcon,
|
|
285
|
-
render = item => {}
|
|
285
|
+
render = item => {},
|
|
286
|
+
disabled
|
|
286
287
|
} = props;
|
|
287
|
-
const [transData, setTransData] = useState({});
|
|
288
288
|
const [leftData, setLeftData] = useState([]);
|
|
289
289
|
const [rightData, setRightData] = useState([]);
|
|
290
290
|
const [leftCount, setLeftCount] = useState([]);
|
|
@@ -306,12 +306,12 @@ const Transfer = props => {
|
|
|
306
306
|
const queryAll = useCallback((checked, direction) => {
|
|
307
307
|
if (direction === 'left') {
|
|
308
308
|
leftData.forEach(item => {
|
|
309
|
-
if (!item.disabled && !item.hide) item.checked = checked;
|
|
309
|
+
if (!item.disabled && !item.hide && !disabled) item.checked = checked;
|
|
310
310
|
});
|
|
311
311
|
setLeftData([...leftData]);
|
|
312
312
|
} else {
|
|
313
313
|
rightData.forEach(item => {
|
|
314
|
-
if (!item.disabled && !item.hide) item.checked = checked;
|
|
314
|
+
if (!item.disabled && !item.hide && !disabled) item.checked = checked;
|
|
315
315
|
});
|
|
316
316
|
setRightData([...rightData]);
|
|
317
317
|
}
|
|
@@ -319,12 +319,12 @@ const Transfer = props => {
|
|
|
319
319
|
const inverse = useCallback(direction => {
|
|
320
320
|
if (direction === 'left') {
|
|
321
321
|
leftData.forEach(item => {
|
|
322
|
-
if (!item.disabled && !item.hide) item.checked = !item.checked;
|
|
322
|
+
if (!item.disabled && !item.hide && !disabled) item.checked = !item.checked;
|
|
323
323
|
});
|
|
324
324
|
setLeftData([...leftData]);
|
|
325
325
|
} else {
|
|
326
326
|
rightData.forEach(item => {
|
|
327
|
-
if (!item.disabled && !item.hide) item.checked = !item.checked;
|
|
327
|
+
if (!item.disabled && !item.hide && !disabled) item.checked = !item.checked;
|
|
328
328
|
});
|
|
329
329
|
setRightData([...rightData]);
|
|
330
330
|
}
|
|
@@ -439,32 +439,27 @@ const Transfer = props => {
|
|
|
439
439
|
return [...pre];
|
|
440
440
|
});
|
|
441
441
|
}, []);
|
|
442
|
-
useEffect(() => {
|
|
443
|
-
if (data.length) {
|
|
444
|
-
const leftData = {};
|
|
445
|
-
data.forEach(item => {
|
|
446
|
-
const key = item[customKey];
|
|
447
|
-
render(item);
|
|
448
|
-
leftData[key] = item;
|
|
449
|
-
});
|
|
450
|
-
setTransData(Object.assign({}, leftData));
|
|
451
|
-
}
|
|
452
|
-
}, [data]);
|
|
453
442
|
useEffect(() => {
|
|
454
443
|
const rData = [];
|
|
455
444
|
const lData = [];
|
|
445
|
+
const leftData = {};
|
|
446
|
+
data.forEach(item => {
|
|
447
|
+
const key = item[customKey];
|
|
448
|
+
render(item);
|
|
449
|
+
leftData[key] = item;
|
|
450
|
+
});
|
|
456
451
|
value === null || value === void 0 ? void 0 : value.forEach(item => {
|
|
457
|
-
if (
|
|
458
|
-
rData.push(
|
|
459
|
-
delete
|
|
452
|
+
if (leftData[item]) {
|
|
453
|
+
rData.push(leftData[item]);
|
|
454
|
+
delete leftData[item];
|
|
460
455
|
}
|
|
461
456
|
});
|
|
462
|
-
for (const key in
|
|
463
|
-
lData.push(
|
|
457
|
+
for (const key in leftData) {
|
|
458
|
+
lData.push(leftData[key]);
|
|
464
459
|
}
|
|
465
460
|
setRightData([...rData]);
|
|
466
461
|
setLeftData([...lData]);
|
|
467
|
-
}, [value,
|
|
462
|
+
}, [value, data]);
|
|
468
463
|
useEffect(() => {
|
|
469
464
|
const arr = [];
|
|
470
465
|
leftData.forEach((item, index) => {
|
|
@@ -481,103 +476,109 @@ const Transfer = props => {
|
|
|
481
476
|
});
|
|
482
477
|
setRightCount(rArr);
|
|
483
478
|
}, [leftData, rightData]);
|
|
484
|
-
return
|
|
485
|
-
className: clsx("".concat($prefixCls, "-transfer"), className
|
|
479
|
+
return jsx("div", Object.assign({
|
|
480
|
+
className: clsx("".concat($prefixCls, "-transfer"), className, {
|
|
481
|
+
["".concat($prefixCls, "-transfer-disabled")]: disabled
|
|
482
|
+
})
|
|
486
483
|
}, {
|
|
487
|
-
children:
|
|
488
|
-
|
|
489
|
-
queryAll: queryAll,
|
|
490
|
-
data: leftData,
|
|
491
|
-
style: style,
|
|
492
|
-
direction: "left",
|
|
493
|
-
customKey: customKey,
|
|
494
|
-
rightIcon: rightIcon,
|
|
495
|
-
onchange: onchange,
|
|
496
|
-
multiple: multiple,
|
|
497
|
-
onMove: onMove,
|
|
498
|
-
inverse: inverse,
|
|
499
|
-
onSearch: onSearch
|
|
500
|
-
}), jsxs("div", Object.assign({
|
|
501
|
-
className: "moveBtn"
|
|
484
|
+
children: jsxs("div", Object.assign({
|
|
485
|
+
className: "".concat($prefixCls, "-transfer-container")
|
|
502
486
|
}, {
|
|
503
|
-
children: [jsx(
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
}, {
|
|
517
|
-
|
|
518
|
-
})), jsx(Button.IconButton, Object.assign({
|
|
519
|
-
className: 'btn btn-left',
|
|
520
|
-
disabled: rightCount.length <= 0 || ((_a = rightData[0]) === null || _a === void 0 ? void 0 : _a.checked) || animationsLock,
|
|
521
|
-
toolTipTitle: rightCount.length <= 0 || ((_b = rightData[0]) === null || _b === void 0 ? void 0 : _b.checked) ? intl({
|
|
522
|
-
id: 'leftBtnTips'
|
|
523
|
-
}) : '',
|
|
524
|
-
TooltipProps: {
|
|
525
|
-
arrow: false,
|
|
526
|
-
placement: 'bottomLeft'
|
|
527
|
-
},
|
|
528
|
-
onClick: () => {
|
|
529
|
-
fluctuation('up');
|
|
530
|
-
}
|
|
531
|
-
}, {
|
|
532
|
-
children: jsx(ExpandLess, {})
|
|
533
|
-
})), jsx(Button.IconButton, Object.assign({
|
|
534
|
-
className: 'btn btn-left',
|
|
535
|
-
disabled: rightCount.length <= 0 || ((_c = rightData[rightData.length - 1]) === null || _c === void 0 ? void 0 : _c.checked) || animationsLock,
|
|
536
|
-
toolTipTitle: rightCount.length <= 0 || ((_d = rightData[rightData.length - 1]) === null || _d === void 0 ? void 0 : _d.checked) ? intl({
|
|
537
|
-
id: 'leftBtnTips'
|
|
538
|
-
}) : '',
|
|
539
|
-
TooltipProps: {
|
|
540
|
-
arrow: false,
|
|
541
|
-
placement: 'bottomLeft'
|
|
542
|
-
},
|
|
543
|
-
onClick: () => {
|
|
544
|
-
fluctuation('down');
|
|
545
|
-
}
|
|
546
|
-
}, {
|
|
547
|
-
children: jsx(Down, {})
|
|
548
|
-
})), jsx(Button.IconButton, Object.assign({
|
|
549
|
-
className: 'btn btn-left',
|
|
550
|
-
disabled: rightCount.length <= 0,
|
|
551
|
-
toolTipTitle: rightCount.length <= 0 ? intl({
|
|
552
|
-
id: 'leftBtnTips'
|
|
553
|
-
}) : '',
|
|
554
|
-
TooltipProps: {
|
|
555
|
-
arrow: false,
|
|
556
|
-
placement: 'bottomLeft'
|
|
557
|
-
},
|
|
558
|
-
onClick: () => {
|
|
559
|
-
onMove('left');
|
|
560
|
-
}
|
|
487
|
+
children: [jsx(Box, {
|
|
488
|
+
title: titles[0],
|
|
489
|
+
queryAll: queryAll,
|
|
490
|
+
data: leftData,
|
|
491
|
+
style: style,
|
|
492
|
+
direction: "left",
|
|
493
|
+
customKey: customKey,
|
|
494
|
+
rightIcon: rightIcon,
|
|
495
|
+
onchange: onchange,
|
|
496
|
+
multiple: multiple,
|
|
497
|
+
onMove: onMove,
|
|
498
|
+
inverse: inverse,
|
|
499
|
+
onSearch: onSearch
|
|
500
|
+
}), jsxs("div", Object.assign({
|
|
501
|
+
className: "moveBtn"
|
|
561
502
|
}, {
|
|
562
|
-
children: jsx(
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
503
|
+
children: [jsx(Button.IconButton, Object.assign({
|
|
504
|
+
className: 'btn btn-right',
|
|
505
|
+
disabled: leftCount.length <= 0 || disabled,
|
|
506
|
+
toolTipTitle: leftCount.length <= 0 ? intl({
|
|
507
|
+
id: 'rightBtnTips'
|
|
508
|
+
}) : '',
|
|
509
|
+
TooltipProps: {
|
|
510
|
+
arrow: false,
|
|
511
|
+
placement: 'bottomLeft'
|
|
512
|
+
},
|
|
513
|
+
onClick: () => {
|
|
514
|
+
onMove('right');
|
|
515
|
+
}
|
|
516
|
+
}, {
|
|
517
|
+
children: jsx(Right, {})
|
|
518
|
+
})), jsx(Button.IconButton, Object.assign({
|
|
519
|
+
className: 'btn btn-left',
|
|
520
|
+
disabled: rightCount.length <= 0 || ((_a = rightData[0]) === null || _a === void 0 ? void 0 : _a.checked) || animationsLock || disabled,
|
|
521
|
+
toolTipTitle: rightCount.length <= 0 || ((_b = rightData[0]) === null || _b === void 0 ? void 0 : _b.checked) ? intl({
|
|
522
|
+
id: 'leftBtnTips'
|
|
523
|
+
}) : '',
|
|
524
|
+
TooltipProps: {
|
|
525
|
+
arrow: false,
|
|
526
|
+
placement: 'bottomLeft'
|
|
527
|
+
},
|
|
528
|
+
onClick: () => {
|
|
529
|
+
fluctuation('up');
|
|
530
|
+
}
|
|
531
|
+
}, {
|
|
532
|
+
children: jsx(ExpandLess, {})
|
|
533
|
+
})), jsx(Button.IconButton, Object.assign({
|
|
534
|
+
className: 'btn btn-left',
|
|
535
|
+
disabled: rightCount.length <= 0 || ((_c = rightData[rightData.length - 1]) === null || _c === void 0 ? void 0 : _c.checked) || animationsLock || disabled,
|
|
536
|
+
toolTipTitle: rightCount.length <= 0 || ((_d = rightData[rightData.length - 1]) === null || _d === void 0 ? void 0 : _d.checked) ? intl({
|
|
537
|
+
id: 'leftBtnTips'
|
|
538
|
+
}) : '',
|
|
539
|
+
TooltipProps: {
|
|
540
|
+
arrow: false,
|
|
541
|
+
placement: 'bottomLeft'
|
|
542
|
+
},
|
|
543
|
+
onClick: () => {
|
|
544
|
+
fluctuation('down');
|
|
545
|
+
}
|
|
546
|
+
}, {
|
|
547
|
+
children: jsx(Down, {})
|
|
548
|
+
})), jsx(Button.IconButton, Object.assign({
|
|
549
|
+
className: 'btn btn-left',
|
|
550
|
+
disabled: rightCount.length <= 0 || disabled,
|
|
551
|
+
toolTipTitle: rightCount.length <= 0 ? intl({
|
|
552
|
+
id: 'leftBtnTips'
|
|
553
|
+
}) : '',
|
|
554
|
+
TooltipProps: {
|
|
555
|
+
arrow: false,
|
|
556
|
+
placement: 'bottomLeft'
|
|
557
|
+
},
|
|
558
|
+
onClick: () => {
|
|
559
|
+
onMove('left');
|
|
560
|
+
}
|
|
561
|
+
}, {
|
|
562
|
+
children: jsx(NavigateBefore, {})
|
|
563
|
+
}))]
|
|
564
|
+
})), jsx(Box, {
|
|
565
|
+
title: titles[1],
|
|
566
|
+
queryAll: queryAll,
|
|
567
|
+
data: rightData,
|
|
568
|
+
style: style,
|
|
569
|
+
direction: "right",
|
|
570
|
+
customKey: customKey,
|
|
571
|
+
rightIcon: rightIcon,
|
|
572
|
+
onchange: onchange,
|
|
573
|
+
multiple: multiple,
|
|
574
|
+
onMove: onMove,
|
|
575
|
+
inverse: inverse,
|
|
576
|
+
fluctuationPosition: fluctuationPosition,
|
|
577
|
+
fluctuationOrther: fluctuationOrther,
|
|
578
|
+
onEndSort: onEndSort,
|
|
579
|
+
onSearch: onSearch
|
|
580
|
+
})]
|
|
581
|
+
}))
|
|
581
582
|
}));
|
|
582
583
|
};
|
|
583
584
|
const SSortablejs = Sortablejs;
|
package/Tree/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
3
|
-
import '../_verture/toConsumableArray-
|
|
4
|
-
import '../_verture/slicedToArray-
|
|
5
|
-
import '../_verture/defineProperty-
|
|
1
|
+
import { T as Tree } from '../_verture/index-320d67c4.js';
|
|
2
|
+
export { T as default } from '../_verture/index-320d67c4.js';
|
|
3
|
+
import '../_verture/toConsumableArray-599cd94a.js';
|
|
4
|
+
import '../_verture/slicedToArray-61604a6c.js';
|
|
5
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
6
|
+
import '../_verture/typeof-adeedc13.js';
|
|
6
7
|
import '../_verture/index-8ac46bd9.js';
|
|
7
8
|
import '../_verture/typeof-6ec38efd.js';
|
|
8
9
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
package/Upload/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { useState, useRef, useMemo, useEffect, memo, forwardRef, useCallback, us
|
|
|
4
4
|
import RcUpload from 'rc-upload';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
7
|
-
import
|
|
8
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
9
|
-
import { _ as _typeof } from '../_verture/
|
|
10
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
7
|
+
import Loading from '@para-ui/icons/Loading';
|
|
8
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
|
|
9
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
10
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
11
11
|
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
13
13
|
import Close from '@para-ui/icons/Close';
|
|
@@ -36,9 +36,12 @@ 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/
|
|
39
|
+
import '../_verture/index-1856bbeb.js';
|
|
40
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
|
+
import '../_verture/Portal-502bb85e.js';
|
|
40
42
|
import 'react-dom';
|
|
41
43
|
import 'rc-dialog';
|
|
44
|
+
import '../_verture/isEqual-30b6f859.js';
|
|
42
45
|
import 'rc-motion';
|
|
43
46
|
import '@para-ui/icons/Sort';
|
|
44
47
|
import '@para-ui/icons/Switch';
|
|
@@ -1035,7 +1038,7 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
1035
1038
|
}))]
|
|
1036
1039
|
}));
|
|
1037
1040
|
var uploadNode = jsxs(Fragment, {
|
|
1038
|
-
children: [showLoading ? jsx(
|
|
1041
|
+
children: [showLoading ? jsx(Loading, {
|
|
1039
1042
|
className: 'upload-image-loading'
|
|
1040
1043
|
}) : jsx(UploadIcon, {
|
|
1041
1044
|
className: 'upload-image-icon'
|
|
@@ -1911,7 +1914,7 @@ const InternalUpload = props => {
|
|
|
1911
1914
|
areaDesc = hint
|
|
1912
1915
|
} = dragArea !== null && dragArea !== void 0 ? dragArea : {};
|
|
1913
1916
|
if (showLoading) {
|
|
1914
|
-
areaIcon = jsx(
|
|
1917
|
+
areaIcon = jsx(Loading, {
|
|
1915
1918
|
className: 'upload-drag-loading'
|
|
1916
1919
|
});
|
|
1917
1920
|
areaText = jsxs("span", Object.assign({
|