@para-ui/core 3.0.37 → 3.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/AutoBox/index.js +1 -1
  2. package/AutoTips/index.js +1 -1
  3. package/Breadcrumbs/index.js +2 -2
  4. package/Button/index.js +1 -1
  5. package/ButtonGroup/index.js +1 -1
  6. package/Cascader/index.js +16 -20
  7. package/Checkbox/index.js +1 -1
  8. package/CheckboxGroup/index.js +1 -1
  9. package/CollapseBox/index.js +1 -1
  10. package/CollapseLayout/index.js +1 -1
  11. package/ComboSelect/index.js +4 -4
  12. package/DatePicker/index.js +2 -2
  13. package/Desktop/index.js +2 -2
  14. package/DragVerify/index.d.ts +50 -0
  15. package/DragVerify/index.js +264 -0
  16. package/DragVerify/lang/en_US.d.ts +5 -0
  17. package/DragVerify/lang/index.d.ts +11 -0
  18. package/DragVerify/lang/zh_CN.d.ts +5 -0
  19. package/Drawer/index.js +4 -2
  20. package/DynamicMultiBox/formItem.d.ts +14 -0
  21. package/DynamicMultiBox/index.d.ts +5 -0
  22. package/DynamicMultiBox/index.js +1312 -0
  23. package/DynamicMultiBox/interface.d.ts +161 -0
  24. package/DynamicMultiBox/rowForm.d.ts +24 -0
  25. package/Form/index.js +5 -5
  26. package/FormItem/index.js +5 -5
  27. package/FunctionModal/index.js +5 -5
  28. package/Help/index.js +1 -1
  29. package/InputLang/index.js +2 -2
  30. package/InputNumber/index.js +1 -1
  31. package/Label/index.js +1 -1
  32. package/Menu/index.js +2 -2
  33. package/Modal/index.js +1 -1
  34. package/MultiBox/index.js +2 -2
  35. package/OperateBtn/index.js +43 -45
  36. package/PageHeader/index.js +2 -2
  37. package/Pagination/index.js +2 -2
  38. package/PopConfirm/index.js +1 -1
  39. package/Popover/index.js +2 -2
  40. package/README.md +13 -0
  41. package/Radio/index.js +1 -1
  42. package/RadioGroup/index.js +1 -1
  43. package/Search/index.js +1 -1
  44. package/Select/index.js +2 -2
  45. package/SelectInput/index.js +2 -2
  46. package/Selector/index.js +290 -306
  47. package/SelectorPicker/index.js +3 -3
  48. package/SingleBox/index.js +2 -2
  49. package/Slider/index.js +1 -1
  50. package/Split/index.js +1 -1
  51. package/Switch/index.js +1 -1
  52. package/Table/index.js +48 -50
  53. package/Table/interface.d.ts +1 -1
  54. package/Tabs/index.js +1 -1
  55. package/Tag/index.js +2 -2
  56. package/TextEditor/index.js +1 -1
  57. package/TextField/index.js +1 -1
  58. package/TimePicker/index.js +2 -2
  59. package/ToggleButton/index.js +1 -1
  60. package/Tooltip/index.js +1 -1
  61. package/Transfer/index.js +3 -3022
  62. package/Tree/index.js +5 -5
  63. package/Upload/index.js +345 -361
  64. package/_verture/{index-06fea29b.js → index-beef914f.js} +3 -9
  65. package/_verture/{index-c62ad493.js → index-c2a6ba28.js} +1 -1
  66. package/_verture/{index-257f53f9.js → index-da441266.js} +162 -168
  67. package/_verture/{modalContext-c749e1c6.js → modalContext-44e0b3ea.js} +28 -30
  68. package/_verture/{slicedToArray-77980792.js → slicedToArray-708dbb18.js} +2 -6
  69. package/_verture/sortable.esm-49896035.js +3791 -0
  70. package/_verture/{toConsumableArray-87c7d895.js → toConsumableArray-57dd2e23.js} +1 -1
  71. package/index.d.ts +4 -0
  72. package/index.js +11 -8
  73. package/package.json +3 -2
  74. package/umd/AutoBox.js +7 -7
  75. package/umd/AutoTips.js +3 -3
  76. package/umd/Breadcrumbs.js +7 -7
  77. package/umd/Button.js +6 -6
  78. package/umd/ButtonGroup.js +6 -6
  79. package/umd/Carousel.js +1 -1
  80. package/umd/Cascader.js +6 -6
  81. package/umd/Checkbox.js +6 -6
  82. package/umd/CheckboxGroup.js +6 -6
  83. package/umd/Collapse.js +3 -3
  84. package/umd/CollapseLayout.js +1 -1
  85. package/umd/ColorPicker.js +1 -1
  86. package/umd/ComboSelect.js +5 -5
  87. package/umd/Container.js +1 -1
  88. package/umd/DatePicker.js +6 -6
  89. package/umd/Desktop.js +7 -7
  90. package/umd/DragVerify.js +29 -0
  91. package/umd/Drawer.js +7 -7
  92. package/umd/Dropdown.js +3 -3
  93. package/umd/DynamicMultiBox.js +54 -0
  94. package/umd/Empty.js +2 -2
  95. package/umd/Form.js +5 -5
  96. package/umd/FormItem.js +5 -5
  97. package/umd/FunctionModal.js +5 -5
  98. package/umd/Help.js +6 -6
  99. package/umd/InputLang.js +7 -7
  100. package/umd/InputNumber.js +7 -7
  101. package/umd/Label.js +5 -5
  102. package/umd/Loading.js +1 -1
  103. package/umd/Menu.js +2 -2
  104. package/umd/Message.js +2 -2
  105. package/umd/Modal.js +5 -5
  106. package/umd/MultiBox.js +7 -7
  107. package/umd/Notification.js +3 -3
  108. package/umd/OperateBtn.js +7 -7
  109. package/umd/PageHeader.js +7 -7
  110. package/umd/Pagination.js +6 -6
  111. package/umd/ParauiProvider.js +1 -1
  112. package/umd/PasswordRules.js +1 -1
  113. package/umd/PopConfirm.js +7 -7
  114. package/umd/Popover.js +3 -3
  115. package/umd/Progress.js +1 -1
  116. package/umd/Querying.js +1 -1
  117. package/umd/Radio.js +5 -5
  118. package/umd/RadioGroup.js +6 -6
  119. package/umd/Search.js +7 -7
  120. package/umd/Select.js +5 -5
  121. package/umd/SelectInput.js +5 -5
  122. package/umd/Selector.js +6 -6
  123. package/umd/SelectorPicker.js +5 -5
  124. package/umd/SingleBox.js +7 -7
  125. package/umd/Slider.js +3 -3
  126. package/umd/Stepper.js +1 -1
  127. package/umd/Switch.js +5 -5
  128. package/umd/Table.js +5 -5
  129. package/umd/Tabs.js +6 -6
  130. package/umd/Tag.js +6 -6
  131. package/umd/TextEditor.js +19 -19
  132. package/umd/TextField.js +7 -7
  133. package/umd/TimePicker.js +6 -6
  134. package/umd/ToggleButton.js +7 -7
  135. package/umd/Tooltip.js +3 -3
  136. package/umd/Transfer.js +7 -7
  137. package/umd/Tree.js +7 -7
  138. package/umd/Upload.js +8 -8
@@ -1,6 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
3
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
  import { useState, useRef, useEffect } from 'react';
6
6
  import clsx from 'clsx';
@@ -27,7 +27,7 @@ import 'rc-dropdown';
27
27
  import '../_verture/usePopupContainer-87febeb9.js';
28
28
  import 'dayjs';
29
29
  import '@paraview/lib';
30
- import '../_verture/index-06fea29b.js';
30
+ import '../_verture/index-beef914f.js';
31
31
  import '../Radio/index.js';
32
32
  import '../Checkbox/index.js';
33
33
  import '../Loading/index.js';
@@ -1,6 +1,6 @@
1
1
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
3
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
4
4
  import { jsxs, jsx } from 'react/jsx-runtime';
5
5
  import { useState, useEffect } from 'react';
6
6
  import { TextField } from '../TextField/index.js';
package/Slider/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
3
3
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
4
4
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
5
5
  import { jsx } from 'react/jsx-runtime';
package/Split/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
3
3
  import { jsxs, jsx } from 'react/jsx-runtime';
4
4
  import React__default from 'react';
5
5
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
package/Switch/index.js CHANGED
@@ -10,7 +10,7 @@ import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
10
  import '../_verture/typeof-498dd2b1.js';
11
11
  import '../Help/index.js';
12
12
  import '../Tooltip/index.js';
13
- import '../_verture/slicedToArray-77980792.js';
13
+ import '../_verture/slicedToArray-708dbb18.js';
14
14
  import 'react';
15
15
  import 'rc-tooltip';
16
16
  import 'rc-tooltip/lib/placements';
package/Table/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
1
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
2
2
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
4
- import { r as regenerator } from '../_verture/index-06fea29b.js';
3
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
4
+ import { r as regenerator } from '../_verture/index-beef914f.js';
5
5
  import { _ as __rest, a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { useRef, useState, useEffect, useMemo, useCallback, Fragment as Fragment$1 } from 'react';
@@ -682,7 +682,7 @@ var TableHead$1 = function TableHead(props) {
682
682
  // 自定义渲染过滤
683
683
  return filterHead.filterRender({
684
684
  filterValue: filterValue,
685
- selectFilterCom: selectFilterCom,
685
+ selectFilter: selectFilterCom,
686
686
  filterHead: filterHead,
687
687
  setFilter: filterCustomConfirm
688
688
  });
@@ -2446,53 +2446,51 @@ var Table = function Table(propsInit) {
2446
2446
  return __awaiter(void 0, void 0, void 0, /*#__PURE__*/regenerator.mark(function _callee() {
2447
2447
  var _yield$requestFunc, data, err;
2448
2448
  return regenerator.wrap(function _callee$(_context) {
2449
- while (1) {
2450
- switch (_context.prev = _context.next) {
2451
- case 0:
2452
- obj.uuid = reqId;
2453
- if (props.loading === undefined) setLoadState(true);
2454
- _context.next = 4;
2455
- return requestFunc(obj);
2456
- case 4:
2457
- _yield$requestFunc = _context.sent;
2458
- data = _yield$requestFunc.data;
2459
- err = _yield$requestFunc.err;
2460
- if (!constData.current.isDestroy) {
2461
- _context.next = 9;
2462
- break;
2463
- }
2464
- return _context.abrupt("return");
2465
- case 9:
2466
- if (!err) {
2467
- _context.next = 13;
2468
- break;
2469
- }
2449
+ while (1) switch (_context.prev = _context.next) {
2450
+ case 0:
2451
+ obj.uuid = reqId;
2452
+ if (props.loading === undefined) setLoadState(true);
2453
+ _context.next = 4;
2454
+ return requestFunc(obj);
2455
+ case 4:
2456
+ _yield$requestFunc = _context.sent;
2457
+ data = _yield$requestFunc.data;
2458
+ err = _yield$requestFunc.err;
2459
+ if (!constData.current.isDestroy) {
2460
+ _context.next = 9;
2461
+ break;
2462
+ }
2463
+ return _context.abrupt("return");
2464
+ case 9:
2465
+ if (!err) {
2466
+ _context.next = 13;
2467
+ break;
2468
+ }
2469
+ if (props.loading === undefined) setLoadState(false);
2470
+ // cancel的接口不清除上次展示的数据
2471
+ if (!err.__CANCEL__) {
2472
+ setRowData([]);
2473
+ setTotal(0);
2474
+ setRowDataJson({});
2475
+ }
2476
+ return _context.abrupt("return", false);
2477
+ case 13:
2478
+ if (requestCallback) {
2479
+ requestCallback(data, function (handData) {
2480
+ if (handData) {
2481
+ if (handData.data) handData = handData.data;
2482
+ handReqData(handData);
2483
+ if (props.loading === undefined) setLoadState(false);
2484
+ }
2485
+ });
2486
+ } else {
2487
+ if (data.data) data = data.data;
2488
+ handReqData(data);
2470
2489
  if (props.loading === undefined) setLoadState(false);
2471
- // cancel的接口不清除上次展示的数据
2472
- if (!err.__CANCEL__) {
2473
- setRowData([]);
2474
- setTotal(0);
2475
- setRowDataJson({});
2476
- }
2477
- return _context.abrupt("return", false);
2478
- case 13:
2479
- if (requestCallback) {
2480
- requestCallback(data, function (handData) {
2481
- if (handData) {
2482
- if (handData.data) handData = handData.data;
2483
- handReqData(handData);
2484
- if (props.loading === undefined) setLoadState(false);
2485
- }
2486
- });
2487
- } else {
2488
- if (data.data) data = data.data;
2489
- handReqData(data);
2490
- if (props.loading === undefined) setLoadState(false);
2491
- }
2492
- case 14:
2493
- case "end":
2494
- return _context.stop();
2495
- }
2490
+ }
2491
+ case 14:
2492
+ case "end":
2493
+ return _context.stop();
2496
2494
  }
2497
2495
  }, _callee);
2498
2496
  }));
@@ -28,7 +28,7 @@ export interface HeadDataProps {
28
28
  /** 数据属性 */
29
29
  name?: string;
30
30
  /** 显示名 */
31
- label?: string;
31
+ label?: ReactNode;
32
32
  /** 是否拖拽列 */
33
33
  drag?: boolean;
34
34
  /** 是否排序 */
package/Tabs/index.js CHANGED
@@ -13,7 +13,7 @@ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js'
13
13
  import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
14
14
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
15
15
  import '../_verture/typeof-498dd2b1.js';
16
- import '../_verture/slicedToArray-77980792.js';
16
+ import '../_verture/slicedToArray-708dbb18.js';
17
17
  import '@para-ui/icons/CheckCircleF';
18
18
  import '@para-ui/icons/WarningCircle';
19
19
  import '@para-ui/icons/CloseCircleF';
package/Tag/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
3
3
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import { useState, useRef, useEffect } from 'react';
6
6
  import CloseIcon from '@para-ui/icons/Close';
7
7
  import clsx from 'clsx';
8
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-87c7d895.js';
8
+ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
9
9
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
10
10
  import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
11
11
  import AutoTips from '../AutoTips/index.js';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { forwardRef, useState, useEffect, useImperativeHandle, useMemo } from 'react';
4
4
  import Label from '../Label/index.js';
@@ -1,5 +1,5 @@
1
1
  import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
3
3
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
5
5
  import { useState, useRef, useEffect, useMemo } from 'react';
@@ -5,7 +5,7 @@ import DatePicker from '../DatePicker/index.js';
5
5
  import 'rc-picker/es/generate/dayjs';
6
6
  import '../Button/index.js';
7
7
  import '../_verture/typeof-498dd2b1.js';
8
- import '../_verture/slicedToArray-77980792.js';
8
+ import '../_verture/slicedToArray-708dbb18.js';
9
9
  import 'clsx';
10
10
  import '@para-ui/icons/LoadingF';
11
11
  import '@para-ui/icons/Forbid';
@@ -25,7 +25,7 @@ import '@para-ui/core/GlobalContext';
25
25
  import '../Tag/index.js';
26
26
  import '../_verture/defineProperty-62acccfc.js';
27
27
  import '@para-ui/icons/Close';
28
- import '../_verture/toConsumableArray-87c7d895.js';
28
+ import '../_verture/toConsumableArray-57dd2e23.js';
29
29
  import '../AutoTips/index.js';
30
30
  import '@para-ui/icons/Plus';
31
31
  import 'rc-picker';
@@ -1,5 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
2
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
3
3
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import { jsx, Fragment } from 'react/jsx-runtime';
5
5
  import { useState, useRef, useLayoutEffect } from 'react';
package/Tooltip/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-77980792.js';
1
+ import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
2
2
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import React__default from 'react';