@para-ui/core 4.0.53 → 4.0.55

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.
Files changed (160) hide show
  1. package/Argv/index.js +5 -4
  2. package/AutoButton/index.d.ts +3 -0
  3. package/AutoButton/index.js +19 -6
  4. package/Button/SplitButton.d.ts +3 -0
  5. package/Button/index.d.ts +4 -0
  6. package/Button/index.js +17 -352
  7. package/ButtonGroup/index.js +5 -1
  8. package/Cascader/Cascader.d.ts +3 -0
  9. package/Cascader/index.js +11 -7
  10. package/ComboSelect/index.js +10 -10
  11. package/CycleSelector/index.js +7 -2
  12. package/DatePicker/index.js +10 -4
  13. package/Descriptions/index.js +5 -1
  14. package/Desktop/index.js +4 -1
  15. package/Drawer/index.js +5 -1
  16. package/DynamicMultiBox/index.js +11 -11
  17. package/DynamicMultiBox/interface.d.ts +1 -1
  18. package/FieldForm/ErrorList.d.ts +16 -0
  19. package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
  20. package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
  21. package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
  22. package/FieldForm/FieldFormItem/index.d.ts +58 -0
  23. package/FieldForm/Form.d.ts +36 -0
  24. package/FieldForm/FormItemInput.d.ts +21 -0
  25. package/FieldForm/FormItemLabel.d.ts +21 -0
  26. package/FieldForm/FormList.d.ts +23 -0
  27. package/FieldForm/context.d.ts +33 -0
  28. package/FieldForm/hooks/useChildren.d.ts +2 -0
  29. package/FieldForm/hooks/useDebounce.d.ts +1 -0
  30. package/FieldForm/hooks/useForm.d.ts +6 -0
  31. package/FieldForm/hooks/useFormInstance.d.ts +2 -0
  32. package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
  33. package/FieldForm/hooks/useFrameState.d.ts +3 -0
  34. package/FieldForm/hooks/useItemRef.d.ts +3 -0
  35. package/FieldForm/index.d.ts +30 -0
  36. package/FieldForm/index.js +5326 -0
  37. package/FieldForm/interface.d.ts +2 -0
  38. package/FieldForm/lang/en_US.d.ts +51 -0
  39. package/FieldForm/lang/index.d.ts +105 -0
  40. package/FieldForm/lang/zh_CN.d.ts +51 -0
  41. package/FieldForm/util.d.ts +21 -0
  42. package/Form/index.js +10 -10
  43. package/FormItem/index.js +10 -10
  44. package/FunctionModal/index.js +7 -6
  45. package/Image/index.js +7 -56
  46. package/InputCode/index.js +4 -1
  47. package/Modal/index.js +2 -1
  48. package/OperateBtn/index.js +5 -6
  49. package/PageHeader/index.js +5 -1
  50. package/Pagination/index.js +4 -1
  51. package/PopConfirm/index.js +14 -213
  52. package/PopMenu/index.js +2 -2
  53. package/QuickReply/index.js +6 -7
  54. package/README.md +17 -0
  55. package/Result/index.js +2 -2
  56. package/Selector/index.js +1 -1
  57. package/SelectorPicker/index.js +1 -1
  58. package/Stepper/index.js +1 -1
  59. package/Switch/index.d.ts +4 -0
  60. package/Switch/index.js +5 -4
  61. package/Table/index.js +4 -5
  62. package/Tabs/index.js +8 -9
  63. package/Tag/index.js +87 -55
  64. package/TextEditor/index.d.ts +2 -0
  65. package/TextEditor/index.js +27 -6
  66. package/TimePicker/index.js +9 -3
  67. package/Timeline/index.js +2 -1
  68. package/ToggleButton/index.js +7 -2
  69. package/Transfer/index.d.ts +1 -0
  70. package/Transfer/index.js +125 -121
  71. package/Tree/index.js +6 -5
  72. package/Upload/index.js +13 -11
  73. package/_verture/{Portal-42560ff0.js → Portal-502bb85e.js} +30 -481
  74. package/_verture/{defineProperty-f0e15205.js → defineProperty-6f62bb2a.js} +2 -10
  75. package/_verture/{index-063009f8.js → index-0a300edb.js} +388 -700
  76. package/_verture/{index-f30ae73e.js → index-0e866545.js} +2 -2
  77. package/_verture/index-1856bbeb.js +480 -0
  78. package/_verture/{index-d728b0ce.js → index-320d67c4.js} +4 -3
  79. package/_verture/index-7e60b72c.js +593 -0
  80. package/_verture/isEqual-30b6f859.js +56 -0
  81. package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
  82. package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
  83. package/_verture/typeof-adeedc13.js +11 -0
  84. package/_verture/useState-f2419d68.js +353 -0
  85. package/index.d.ts +2 -0
  86. package/index.js +21 -17
  87. package/locale/en-US.d.ts +46 -0
  88. package/locale/index.d.ts +92 -0
  89. package/locale/index.js +92 -0
  90. package/locale/zh-CN.d.ts +46 -0
  91. package/package.json +3 -1
  92. package/umd/Anchor.js +5 -5
  93. package/umd/Argv.js +6 -6
  94. package/umd/AutoBox.js +5 -5
  95. package/umd/AutoButton.js +7 -7
  96. package/umd/AutoTips.js +5 -5
  97. package/umd/Breadcrumbs.js +4 -4
  98. package/umd/Button.js +7 -7
  99. package/umd/ButtonGroup.js +7 -7
  100. package/umd/Cascader.js +5 -5
  101. package/umd/Checkbox.js +4 -4
  102. package/umd/CheckboxGroup.js +4 -4
  103. package/umd/Collapse.js +1 -1
  104. package/umd/ComboSelect.js +4 -4
  105. package/umd/CopyText.js +5 -5
  106. package/umd/CycleSelector.js +7 -7
  107. package/umd/DatePicker.js +7 -7
  108. package/umd/Descriptions.js +6 -6
  109. package/umd/Desktop.js +7 -7
  110. package/umd/Drawer.js +7 -7
  111. package/umd/Dropdown.js +4 -4
  112. package/umd/DynamicMultiBox.js +4 -4
  113. package/umd/FieldForm.js +43 -0
  114. package/umd/Form.js +4 -4
  115. package/umd/FormItem.js +4 -4
  116. package/umd/FunctionModal.js +7 -7
  117. package/umd/Help.js +5 -5
  118. package/umd/Image.js +3 -3
  119. package/umd/InputCode.js +7 -7
  120. package/umd/InputLang.js +5 -5
  121. package/umd/InputNumber.js +4 -4
  122. package/umd/Label.js +4 -4
  123. package/umd/Menu.js +4 -4
  124. package/umd/Modal.js +6 -6
  125. package/umd/MultiBox.js +6 -6
  126. package/umd/Notification.js +3 -3
  127. package/umd/OperateBtn.js +6 -6
  128. package/umd/PageHeader.js +7 -7
  129. package/umd/Pagination.js +7 -7
  130. package/umd/PopConfirm.js +5 -5
  131. package/umd/PopMenu.js +5 -5
  132. package/umd/Popover.js +5 -5
  133. package/umd/QuickReply.js +5 -5
  134. package/umd/Radio.js +4 -4
  135. package/umd/RadioGroup.js +4 -4
  136. package/umd/RangeInput.js +5 -5
  137. package/umd/Result.js +4 -4
  138. package/umd/Search.js +5 -5
  139. package/umd/Select.js +5 -5
  140. package/umd/SelectInput.js +5 -5
  141. package/umd/Selector.js +5 -5
  142. package/umd/SelectorPicker.js +5 -5
  143. package/umd/SingleBox.js +5 -5
  144. package/umd/Slider.js +4 -4
  145. package/umd/Stepper.js +4 -4
  146. package/umd/Switch.js +4 -4
  147. package/umd/Table.js +5 -5
  148. package/umd/Tabs.js +4 -4
  149. package/umd/Tag.js +5 -5
  150. package/umd/TextEditor.js +6 -6
  151. package/umd/TextField.js +5 -5
  152. package/umd/TimePicker.js +7 -7
  153. package/umd/Title.js +3 -3
  154. package/umd/ToggleButton.js +7 -7
  155. package/umd/Tooltip.js +4 -4
  156. package/umd/Transfer.js +8 -8
  157. package/umd/Tree.js +3 -3
  158. package/umd/Upload.js +5 -5
  159. package/umd/locale.js +1 -1
  160. /package/_verture/{modalContext-8a48c400.js → modalContext-3ed7e7f6.js} +0 -0
package/Transfer/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useState, useEffect, useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
- import { Button } from '../Button/index.js';
4
+ import { B as Button } from '../_verture/index-7e60b72c.js';
5
5
  import NavigateBefore from '@para-ui/icons/Left';
6
6
  import Right from '@para-ui/icons/Right';
7
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-75fa4188.js';
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';
@@ -27,6 +27,10 @@ import 'rc-dropdown';
27
27
  import '../_verture/usePopupContainer-635f66f4.js';
28
28
  import 'dayjs';
29
29
  import '@paraview/lib';
30
+ import '@para-ui/icons/CheckCircleF';
31
+ import '@para-ui/icons/WarningCircle';
32
+ import '@para-ui/icons/CloseCircleF';
33
+ import '@para-ui/icons/WarningCircleF';
30
34
  import '../_verture/index-ca413216.js';
31
35
  import '../TextField/index.js';
32
36
  import '../Label/index.js';
@@ -34,7 +38,6 @@ import '../Help/index.js';
34
38
  import '@para-ui/icons/Help';
35
39
  import '@para-ui/icons/PreviewClose';
36
40
  import '@para-ui/icons/PreviewOpen';
37
- import '@para-ui/icons/CloseCircleF';
38
41
  import '../Loading/index.js';
39
42
  import '../HelperText/index.js';
40
43
  import '../_verture/useGlobalProps-4ae1a007.js';
@@ -257,7 +260,7 @@ var Box = function Box(props) {
257
260
  };
258
261
  var Sortablejs = Sortable;
259
262
 
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}";
263
+ 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
264
  styleInject(css_248z);
262
265
 
263
266
  const Transfer = props => {
@@ -282,9 +285,9 @@ const Transfer = props => {
282
285
  trim = false,
283
286
  multiple = true,
284
287
  rightIcon,
285
- render = item => {}
288
+ render = item => {},
289
+ disabled
286
290
  } = props;
287
- const [transData, setTransData] = useState({});
288
291
  const [leftData, setLeftData] = useState([]);
289
292
  const [rightData, setRightData] = useState([]);
290
293
  const [leftCount, setLeftCount] = useState([]);
@@ -306,12 +309,12 @@ const Transfer = props => {
306
309
  const queryAll = useCallback((checked, direction) => {
307
310
  if (direction === 'left') {
308
311
  leftData.forEach(item => {
309
- if (!item.disabled && !item.hide) item.checked = checked;
312
+ if (!item.disabled && !item.hide && !disabled) item.checked = checked;
310
313
  });
311
314
  setLeftData([...leftData]);
312
315
  } else {
313
316
  rightData.forEach(item => {
314
- if (!item.disabled && !item.hide) item.checked = checked;
317
+ if (!item.disabled && !item.hide && !disabled) item.checked = checked;
315
318
  });
316
319
  setRightData([...rightData]);
317
320
  }
@@ -319,12 +322,12 @@ const Transfer = props => {
319
322
  const inverse = useCallback(direction => {
320
323
  if (direction === 'left') {
321
324
  leftData.forEach(item => {
322
- if (!item.disabled && !item.hide) item.checked = !item.checked;
325
+ if (!item.disabled && !item.hide && !disabled) item.checked = !item.checked;
323
326
  });
324
327
  setLeftData([...leftData]);
325
328
  } else {
326
329
  rightData.forEach(item => {
327
- if (!item.disabled && !item.hide) item.checked = !item.checked;
330
+ if (!item.disabled && !item.hide && !disabled) item.checked = !item.checked;
328
331
  });
329
332
  setRightData([...rightData]);
330
333
  }
@@ -439,32 +442,27 @@ const Transfer = props => {
439
442
  return [...pre];
440
443
  });
441
444
  }, []);
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
445
  useEffect(() => {
454
446
  const rData = [];
455
447
  const lData = [];
448
+ const leftData = {};
449
+ data.forEach(item => {
450
+ const key = item[customKey];
451
+ render(item);
452
+ leftData[key] = item;
453
+ });
456
454
  value === null || value === void 0 ? void 0 : value.forEach(item => {
457
- if (transData[item]) {
458
- rData.push(transData[item]);
459
- delete transData[item];
455
+ if (leftData[item]) {
456
+ rData.push(leftData[item]);
457
+ delete leftData[item];
460
458
  }
461
459
  });
462
- for (const key in transData) {
463
- lData.push(transData[key]);
460
+ for (const key in leftData) {
461
+ lData.push(leftData[key]);
464
462
  }
465
463
  setRightData([...rData]);
466
464
  setLeftData([...lData]);
467
- }, [value, transData]);
465
+ }, [value, data]);
468
466
  useEffect(() => {
469
467
  const arr = [];
470
468
  leftData.forEach((item, index) => {
@@ -481,103 +479,109 @@ const Transfer = props => {
481
479
  });
482
480
  setRightCount(rArr);
483
481
  }, [leftData, rightData]);
484
- return jsxs("div", Object.assign({
485
- className: clsx("".concat($prefixCls, "-transfer"), className)
482
+ return jsx("div", Object.assign({
483
+ className: clsx("".concat($prefixCls, "-transfer"), className, {
484
+ ["".concat($prefixCls, "-transfer-disabled")]: disabled
485
+ })
486
486
  }, {
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"
487
+ children: jsxs("div", Object.assign({
488
+ className: "".concat($prefixCls, "-transfer-container")
502
489
  }, {
503
- children: [jsx(Button.IconButton, Object.assign({
504
- className: 'btn btn-right',
505
- disabled: leftCount.length <= 0,
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,
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
- }
490
+ children: [jsx(Box, {
491
+ title: titles[0],
492
+ queryAll: queryAll,
493
+ data: leftData,
494
+ style: style,
495
+ direction: "left",
496
+ customKey: customKey,
497
+ rightIcon: rightIcon,
498
+ onchange: onchange,
499
+ multiple: multiple,
500
+ onMove: onMove,
501
+ inverse: inverse,
502
+ onSearch: onSearch
503
+ }), jsxs("div", Object.assign({
504
+ className: "moveBtn"
561
505
  }, {
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
- })]
506
+ children: [jsx(Button.IconButton, Object.assign({
507
+ className: 'btn btn-right',
508
+ disabled: leftCount.length <= 0 || disabled,
509
+ toolTipTitle: leftCount.length <= 0 ? intl({
510
+ id: 'rightBtnTips'
511
+ }) : '',
512
+ TooltipProps: {
513
+ arrow: false,
514
+ placement: 'bottomLeft'
515
+ },
516
+ onClick: () => {
517
+ onMove('right');
518
+ }
519
+ }, {
520
+ children: jsx(Right, {})
521
+ })), jsx(Button.IconButton, Object.assign({
522
+ className: 'btn btn-left',
523
+ disabled: rightCount.length <= 0 || ((_a = rightData[0]) === null || _a === void 0 ? void 0 : _a.checked) || animationsLock || disabled,
524
+ toolTipTitle: rightCount.length <= 0 || ((_b = rightData[0]) === null || _b === void 0 ? void 0 : _b.checked) ? intl({
525
+ id: 'leftBtnTips'
526
+ }) : '',
527
+ TooltipProps: {
528
+ arrow: false,
529
+ placement: 'bottomLeft'
530
+ },
531
+ onClick: () => {
532
+ fluctuation('up');
533
+ }
534
+ }, {
535
+ children: jsx(ExpandLess, {})
536
+ })), jsx(Button.IconButton, Object.assign({
537
+ className: 'btn btn-left',
538
+ disabled: rightCount.length <= 0 || ((_c = rightData[rightData.length - 1]) === null || _c === void 0 ? void 0 : _c.checked) || animationsLock || disabled,
539
+ toolTipTitle: rightCount.length <= 0 || ((_d = rightData[rightData.length - 1]) === null || _d === void 0 ? void 0 : _d.checked) ? intl({
540
+ id: 'leftBtnTips'
541
+ }) : '',
542
+ TooltipProps: {
543
+ arrow: false,
544
+ placement: 'bottomLeft'
545
+ },
546
+ onClick: () => {
547
+ fluctuation('down');
548
+ }
549
+ }, {
550
+ children: jsx(Down, {})
551
+ })), jsx(Button.IconButton, Object.assign({
552
+ className: 'btn btn-left',
553
+ disabled: rightCount.length <= 0 || disabled,
554
+ toolTipTitle: rightCount.length <= 0 ? intl({
555
+ id: 'leftBtnTips'
556
+ }) : '',
557
+ TooltipProps: {
558
+ arrow: false,
559
+ placement: 'bottomLeft'
560
+ },
561
+ onClick: () => {
562
+ onMove('left');
563
+ }
564
+ }, {
565
+ children: jsx(NavigateBefore, {})
566
+ }))]
567
+ })), jsx(Box, {
568
+ title: titles[1],
569
+ queryAll: queryAll,
570
+ data: rightData,
571
+ style: style,
572
+ direction: "right",
573
+ customKey: customKey,
574
+ rightIcon: rightIcon,
575
+ onchange: onchange,
576
+ multiple: multiple,
577
+ onMove: onMove,
578
+ inverse: inverse,
579
+ fluctuationPosition: fluctuationPosition,
580
+ fluctuationOrther: fluctuationOrther,
581
+ onEndSort: onEndSort,
582
+ onSearch: onSearch
583
+ })]
584
+ }))
581
585
  }));
582
586
  };
583
587
  const SSortablejs = Sortablejs;
package/Tree/index.js CHANGED
@@ -1,8 +1,9 @@
1
- import { T as Tree } from '../_verture/index-d728b0ce.js';
2
- export { T as default } from '../_verture/index-d728b0ce.js';
3
- import '../_verture/toConsumableArray-c7a8028f.js';
4
- import '../_verture/slicedToArray-75fa4188.js';
5
- import '../_verture/defineProperty-f0e15205.js';
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 LoadingIcon from '@para-ui/icons/Loading';
8
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
9
- import { _ as _typeof } from '../_verture/defineProperty-f0e15205.js';
10
- import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
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';
@@ -24,7 +24,7 @@ import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc8
24
24
  import { UUID } from '@paraview/lib';
25
25
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
26
26
  import Forbid from '@para-ui/icons/Forbid';
27
- import { Button } from '../Button/index.js';
27
+ import { B as Button } from '../_verture/index-7e60b72c.js';
28
28
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
29
29
  import Cropper from 'react-easy-crop';
30
30
  import PlusCircle from '@para-ui/icons/PlusCircle';
@@ -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/Portal-42560ff0.js';
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';
@@ -48,14 +51,13 @@ import '@para-ui/icons/CloseCircleF';
48
51
  import '@para-ui/icons/More';
49
52
  import '../Popover/index.js';
50
53
  import '../_verture/usePopupContainer-635f66f4.js';
51
- import '../PopConfirm/index.js';
52
- import '@para-ui/icons/CheckCircleF';
53
- import '@para-ui/icons/WarningCircleF';
54
54
  import '@para-ui/icons/LoadingF';
55
55
  import '@para-ui/icons/Down';
56
56
  import '../_verture/index-bde7aabe.js';
57
57
  import 'rc-dropdown';
58
58
  import 'dayjs';
59
+ import '@para-ui/icons/CheckCircleF';
60
+ import '@para-ui/icons/WarningCircleF';
59
61
  import '../_verture/index-ca413216.js';
60
62
  import 'rc-slider';
61
63
 
@@ -1035,7 +1037,7 @@ var ImageUpload = function ImageUpload(props) {
1035
1037
  }))]
1036
1038
  }));
1037
1039
  var uploadNode = jsxs(Fragment, {
1038
- children: [showLoading ? jsx(LoadingIcon, {
1040
+ children: [showLoading ? jsx(Loading, {
1039
1041
  className: 'upload-image-loading'
1040
1042
  }) : jsx(UploadIcon, {
1041
1043
  className: 'upload-image-icon'
@@ -1911,7 +1913,7 @@ const InternalUpload = props => {
1911
1913
  areaDesc = hint
1912
1914
  } = dragArea !== null && dragArea !== void 0 ? dragArea : {};
1913
1915
  if (showLoading) {
1914
- areaIcon = jsx(LoadingIcon, {
1916
+ areaIcon = jsx(Loading, {
1915
1917
  className: 'upload-drag-loading'
1916
1918
  });
1917
1919
  areaText = jsxs("span", Object.assign({