@para-ui/core 3.0.3 → 3.0.6

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 (58) hide show
  1. package/Breadcrumbs/index.d.ts +14 -0
  2. package/Breadcrumbs/index.js +209 -156
  3. package/Breadcrumbs/lang/en_US.d.ts +4 -0
  4. package/Breadcrumbs/lang/index.d.ts +9 -0
  5. package/Breadcrumbs/lang/zh_CN.d.ts +4 -0
  6. package/Button/index.js +9 -3
  7. package/ButtonGroup/index.js +1 -1
  8. package/Cascader/index.js +1 -1
  9. package/CollapseBox/index.js +1 -18
  10. package/CollapseLayout/index.d.ts +51 -0
  11. package/CollapseLayout/index.js +190 -0
  12. package/ComboSelect/index.js +16 -10
  13. package/DatePicker/generatePicker/index.d.ts +11 -2
  14. package/DatePicker/index.js +46 -34
  15. package/Desktop/index.js +1 -1
  16. package/Drawer/index.js +1 -1
  17. package/Empty/index.js +1 -1
  18. package/Form/index.js +3 -3
  19. package/FormItem/index.js +3 -3
  20. package/FunctionModal/index.js +3 -3
  21. package/Menu/index.js +1 -0
  22. package/Modal/index.js +1 -1
  23. package/OperateBtn/index.js +1 -1
  24. package/PageHeader/index.js +1 -1
  25. package/Pagination/index.js +5 -5
  26. package/PopConfirm/index.js +1 -1
  27. package/Popover/index.js +2 -16
  28. package/Querying/index.js +1 -1
  29. package/README.md +19 -0
  30. package/Search/index.js +1 -1
  31. package/Select/index.js +1 -1
  32. package/SelectInput/index.js +1 -1
  33. package/Selector/index.js +2 -1
  34. package/Selector/lang/index.d.ts +2 -0
  35. package/SelectorPicker/index.js +2 -1
  36. package/Table/index.js +1 -1
  37. package/Tabs/index.js +1 -1
  38. package/TextEditor/common.d.ts +11 -0
  39. package/TextEditor/index.d.ts +106 -0
  40. package/TextEditor/index.js +20153 -0
  41. package/TextField/index.js +1 -1
  42. package/TimePicker/index.js +1 -1
  43. package/Title/index.js +6 -6
  44. package/ToggleButton/index.js +1 -1
  45. package/Tooltip/index.js +2 -3
  46. package/Transfer/index.d.ts +19 -4
  47. package/Transfer/index.js +118 -70
  48. package/Transfer/lang/index.d.ts +4 -0
  49. package/Tree/index.js +3 -3
  50. package/Upload/index.js +1 -1
  51. package/_verture/{index-3136f653.js → index-7b63f88e.js} +0 -0
  52. package/_verture/{index-77832168.js → index-e0508c99.js} +1 -1
  53. package/_verture/{modalContext-f1a611ab.js → modalContext-4bce2dae.js} +0 -0
  54. package/_verture/{useFormatMessage-ac9d6acf.js → useFormatMessage-f4452258.js} +6 -4
  55. package/_verture/util-a77b261e.js +19 -0
  56. package/index.d.ts +4 -0
  57. package/index.js +11 -7
  58. package/package.json +3 -1
package/Drawer/index.js CHANGED
@@ -5,7 +5,7 @@ import React__default from 'react';
5
5
  import RcDrawer from 'rc-drawer';
6
6
  import clsx from 'clsx';
7
7
  import { Button } from '../Button/index.js';
8
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
8
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
9
9
  import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
10
10
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
11
11
  import '../_verture/typeof-498dd2b1.js';
package/Empty/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
3
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
4
4
  import { u as useGlobalProps } from '../_verture/useGlobalProps-af9a2af6.js';
5
5
  import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
6
6
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
package/Form/index.js CHANGED
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { DeepClone } from '@paraview/lib';
5
5
  import React__default from 'react';
6
- import { F as FormItem, v as validate } from '../_verture/index-3136f653.js';
6
+ import { F as FormItem, v as validate } from '../_verture/index-7b63f88e.js';
7
7
  import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
8
8
  import '../TextField/index.js';
9
9
  import '../_verture/typeof-498dd2b1.js';
@@ -32,7 +32,7 @@ import '../Radio/index.js';
32
32
  import '../Select/index.js';
33
33
  import '../_verture/defineProperty-0590dc61.js';
34
34
  import '../Empty/index.js';
35
- import '../_verture/useFormatMessage-ac9d6acf.js';
35
+ import '../_verture/useFormatMessage-f4452258.js';
36
36
  import '@para-ui/icons/Close';
37
37
  import '@para-ui/icons/Down';
38
38
  import '@para-ui/icons/Check';
@@ -66,7 +66,7 @@ import '@para-ui/icons/DoubleLeft';
66
66
  import '@para-ui/icons/DoubleRight';
67
67
  import '@para-ui/icons/Left';
68
68
  import '@para-ui/icons/Right';
69
- import '../_verture/index-77832168.js';
69
+ import '../_verture/index-e0508c99.js';
70
70
  import 'rc-tree';
71
71
  import '@para-ui/icons/Document';
72
72
  import 'react-dom';
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-3136f653.js';
3
+ export { F as default } from '../_verture/index-7b63f88e.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-bf34e6fa.js';
@@ -32,7 +32,7 @@ import '../Select/index.js';
32
32
  import '../_verture/defineProperty-0590dc61.js';
33
33
  import '../_verture/toConsumableArray-f8047a75.js';
34
34
  import '../Empty/index.js';
35
- import '../_verture/useFormatMessage-ac9d6acf.js';
35
+ import '../_verture/useFormatMessage-f4452258.js';
36
36
  import '@para-ui/icons/Close';
37
37
  import '@para-ui/icons/Down';
38
38
  import '@para-ui/icons/Check';
@@ -66,7 +66,7 @@ import '@para-ui/icons/DoubleLeft';
66
66
  import '@para-ui/icons/DoubleRight';
67
67
  import '@para-ui/icons/Left';
68
68
  import '@para-ui/icons/Right';
69
- import '../_verture/index-77832168.js';
69
+ import '../_verture/index-e0508c99.js';
70
70
  import 'rc-tree';
71
71
  import '@para-ui/icons/Document';
72
72
  import 'react-dom';
@@ -1,5 +1,5 @@
1
- import { u as useModal } from '../_verture/modalContext-f1a611ab.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-f1a611ab.js';
1
+ import { u as useModal } from '../_verture/modalContext-4bce2dae.js';
2
+ export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-4bce2dae.js';
3
3
  import '../_verture/toConsumableArray-f8047a75.js';
4
4
  import '../_verture/slicedToArray-d7722f4b.js';
5
5
  import '../_verture/index-342379c6.js';
@@ -22,7 +22,7 @@ import '../_verture/style-inject.es-300983ab.js';
22
22
  import '@para-ui/icons/Down';
23
23
  import '../Dropdown/index.js';
24
24
  import 'rc-dropdown';
25
- import '../_verture/useFormatMessage-ac9d6acf.js';
25
+ import '../_verture/useFormatMessage-f4452258.js';
26
26
  import '@para-ui/core/GlobalContext';
27
27
  import '@para-ui/icons/Close';
28
28
  import '../_verture/index-e2881a53.js';
package/Menu/index.js CHANGED
@@ -12,6 +12,7 @@ import MenuMoreLine from '@para-ui/icons/IndentRightFill';
12
12
  import MenuLessLine from '@para-ui/icons/IndentLeftFill';
13
13
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
14
14
  import 'react-transition-group';
15
+ import '../_verture/util-a77b261e.js';
15
16
 
16
17
  var Logo = function Logo(props) {
17
18
  var _props$expansion = props.expansion,
package/Modal/index.js CHANGED
@@ -5,7 +5,7 @@ import React__default from 'react';
5
5
  import Dialog from 'rc-dialog';
6
6
  import { Button } from '../Button/index.js';
7
7
  import CloseIcon from '@para-ui/icons/Close';
8
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
8
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
9
9
  import { d as defaultModalLocale } from '../_verture/index-e2881a53.js';
10
10
  import ReactDOM from 'react-dom';
11
11
  import clsx from 'clsx';
@@ -19,7 +19,7 @@ import 'rc-tooltip/lib/placements';
19
19
  import '@para-ui/icons/Down';
20
20
  import '../Dropdown/index.js';
21
21
  import 'rc-dropdown';
22
- import '../_verture/useFormatMessage-ac9d6acf.js';
22
+ import '../_verture/useFormatMessage-f4452258.js';
23
23
  import '@para-ui/core/GlobalContext';
24
24
 
25
25
  var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2022/4/13 10:48 AM\n* @description 表格操作按钮\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-operate-btn {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: flex;\n align-items: center;\n}\n.paraui-v3-operate-btn > .operate-btn-line {\n display: inline-block;\n width: 1px;\n background-color: rgba(54, 102, 214, 0.2);\n margin: 0 12px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-small > .operate-btn-line {\n height: 12px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-small button svg {\n font-size: 18px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-medium > .operate-btn-line {\n height: 14px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-medium button svg {\n font-size: 24px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-large > .operate-btn-line {\n height: 16px;\n}\n.paraui-v3-operate-btn.paraui-v3-operate-btn-large button > svg {\n font-size: 28px;\n}\n\n.paraui-v3-operate-btn-popover .operate-btn-list {\n padding: 8px 0;\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item {\n padding: 0 12px;\n max-width: 120px;\n cursor: pointer;\n color: rgb(46, 55, 67);\n line-height: 36px;\n text-align: left;\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item-disabled {\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-operate-btn-popover .operate-btn-list > .operate-btn-list-item-danger {\n color: rgb(235, 96, 84);\n}";
@@ -20,7 +20,7 @@ import '@para-ui/icons/LoadingF';
20
20
  import '@para-ui/icons/Forbid';
21
21
  import '../Dropdown/index.js';
22
22
  import 'rc-dropdown';
23
- import '../_verture/useFormatMessage-ac9d6acf.js';
23
+ import '../_verture/useFormatMessage-f4452258.js';
24
24
  import '@para-ui/core/GlobalContext';
25
25
 
26
26
  var MenuItemPopper = function MenuItemPopper(props) {
@@ -2,13 +2,13 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-d7722f4b.js';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import React__default, { useState, useRef, useEffect, useMemo } from 'react';
4
4
  import PaginationCom from 'rc-pagination';
5
- import FirstPage from '@para-ui/icons/DoubleLeft';
6
- import LastPage from '@para-ui/icons/DoubleRight';
5
+ import DoubleLeft from '@para-ui/icons/DoubleLeft';
6
+ import DoubleRight from '@para-ui/icons/DoubleRight';
7
7
  import NavigateBefore from '@para-ui/icons/Left';
8
8
  import Right from '@para-ui/icons/Right';
9
9
  import Select from '../Select/index.js';
10
10
  import { TextField } from '../TextField/index.js';
11
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
11
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
12
12
  import GlobalContext from '@para-ui/core/GlobalContext';
13
13
  import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-bf34e6fa.js';
14
14
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
@@ -398,7 +398,7 @@ var Pagination = function Pagination(props) {
398
398
  onClick: clickPage('first'),
399
399
  className: pageCom === 1 ? 'disabled-btn' : ''
400
400
  }, {
401
- children: jsx(FirstPage, {})
401
+ children: jsx(DoubleLeft, {})
402
402
  })), jsx("div", Object.assign({
403
403
  onClick: clickPage('prev'),
404
404
  className: pageCom === 1 ? 'disabled-btn' : ''
@@ -426,7 +426,7 @@ var Pagination = function Pagination(props) {
426
426
  onClick: clickPage('last'),
427
427
  className: pageCom === totalPage ? 'disabled-btn' : ''
428
428
  }, {
429
- children: jsx(LastPage, {})
429
+ children: jsx(DoubleRight, {})
430
430
  }))]
431
431
  }))]
432
432
  }));
@@ -9,7 +9,7 @@ import WarningCircleF from '@para-ui/icons/WarningCircleF';
9
9
  import { Button } from '../Button/index.js';
10
10
  import { Tooltip } from '../Tooltip/index.js';
11
11
  import clsx from 'clsx';
12
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
12
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
13
13
  import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
14
14
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
15
15
  import '../_verture/typeof-498dd2b1.js';
package/Popover/index.js CHANGED
@@ -15,20 +15,7 @@ styleInject(css_248z);
15
15
  var Popover = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
16
16
  var title = props.title,
17
17
  content = props.content,
18
- restProps = __rest(props, ["title", "content"]); //渲染到输出位置
19
-
20
-
21
- var getPopupContainer = function getPopupContainer(triggerNode) {
22
- var container;
23
-
24
- if (!props.getPopupContainer) {
25
- container = document.body;
26
- } else {
27
- container = props.getPopupContainer(triggerNode) || document.body;
28
- }
29
-
30
- return container;
31
- }; //浮层
18
+ restProps = __rest(props, ["title", "content"]); //浮层
32
19
 
33
20
 
34
21
  var getOverlay = function getOverlay(prefixCls) {
@@ -53,8 +40,7 @@ var Popover = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
53
40
  overlayClassName: clsx("".concat($prefixCls, "-popover"), props.overlayClassName),
54
41
  ref: ref,
55
42
  title: getOverlay(prefixCls),
56
- transitionName: "".concat($rcPrefixCls, "-popover-zoom-big"),
57
- getPopupContainer: getPopupContainer
43
+ transitionName: "".concat($rcPrefixCls, "-popover-zoom-big")
58
44
  }));
59
45
  });
60
46
  Popover.displayName = 'Popover';
package/Querying/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
3
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
4
4
  import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
5
5
  import { u as useGlobalProps } from '../_verture/useGlobalProps-af9a2af6.js';
6
6
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
package/README.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 版本: 3.0.6
2
+
3
+ para-ui/core@3.0.6 发布
4
+ 【TextEditor】新增富文本编辑器
5
+
6
+ ## 版本: 3.0.5
7
+
8
+ para-ui/core@3.0.5 发布
9
+ 【CollapseLayout】分栏收缩容器
10
+
11
+ ## 版本: 3.0.4
12
+
13
+ para-ui/core@3.0.4 发布
14
+ 【RangePicker】增加shortcuts与shortcutsPlacement属性,支持快捷选择
15
+ 【Button】禁用时提示文字无箭头且位于下方
16
+ 【国际化】国际化支持zh-CN/en-US
17
+ 【Breadcrumbs】重构面包屑
18
+ 【Transfer】增加禁用逻辑,修改value改变不生效
19
+
1
20
  ## 版本: 3.0.3
2
21
 
3
22
  para-ui/core@3.0.3 发布
package/Search/index.js CHANGED
@@ -29,7 +29,7 @@ import '../Dropdown/index.js';
29
29
  import 'rc-dropdown';
30
30
  import '@para-ui/icons/Forbid';
31
31
  import '@para-ui/icons/Down';
32
- import '../_verture/useFormatMessage-ac9d6acf.js';
32
+ import '../_verture/useFormatMessage-f4452258.js';
33
33
 
34
34
  var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-search {\n display: flex;\n width: 100%;\n}\n.paraui-v3-search > .search-text-field {\n padding: 0;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: none;\n margin-right: 8px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .right-icon:hover > svg {\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 8px;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-after {\n padding: 0;\n background-color: white;\n}\n.paraui-v3-search > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n border: 0;\n}\n.paraui-v3-search.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n}\n.paraui-v3-search.paraui-v3-search-value > .search-text-field > .text-field-content > .text-field-content-within > .right-icon {\n display: flex;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-icon {\n margin-right: 0;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search .search-button > .paraui-v3-button-label {\n margin-left: 4px;\n}\n.paraui-v3-search.paraui-v3-search-outside > .search-button {\n margin-left: 16px;\n}\n.paraui-v3-search.paraui-v3-search-inside .search-button {\n padding: 0 8px;\n}\n.paraui-v3-search.paraui-v3-search-inside .search-button svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-btntext .search-button svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 26px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-inside.paraui-v3-search-no-btntext .search-button svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 16px;\n}\n.paraui-v3-search.paraui-v3-search-small.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 4px;\n}\n.paraui-v3-search.paraui-v3-search-medium > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 30px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-inside.search-no-btntext .search-button svg {\n font-size: 18px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 18px;\n}\n.paraui-v3-search.paraui-v3-search-medium.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 6px;\n}\n.paraui-v3-search.paraui-v3-search-large > .search-text-field > .text-field-content > .text-field-content-after .search-button {\n height: 34px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-inside.search-no-btntext .search-button svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .right-icon > svg {\n font-size: 20px;\n}\n.paraui-v3-search.paraui-v3-search-large.paraui-v3-search-right-icon-exist > .search-text-field > .text-field-content > .text-field-content-within > .clean-up-icon {\n margin-right: 8px;\n}";
35
35
  styleInject(css_248z);
package/Select/index.js CHANGED
@@ -14,7 +14,7 @@ import CloseCircle from '@para-ui/icons/CloseCircle';
14
14
  import Down from '@para-ui/icons/Down';
15
15
  import Check from '@para-ui/icons/Check';
16
16
  import SearchIcon from '@para-ui/icons/Search';
17
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
17
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
18
18
  import AutoTips from '../AutoTips/index.js';
19
19
  import { Loading } from '../Loading/index.js';
20
20
  import { Popover } from '../Popover/index.js';
@@ -8,7 +8,7 @@ import '../_verture/typeof-498dd2b1.js';
8
8
  import 'react';
9
9
  import '../Empty/index.js';
10
10
  import 'clsx';
11
- import '../_verture/useFormatMessage-ac9d6acf.js';
11
+ import '../_verture/useFormatMessage-f4452258.js';
12
12
  import '@para-ui/core/GlobalContext';
13
13
  import '../_verture/useGlobalProps-af9a2af6.js';
14
14
  import '../_verture/style-inject.es-300983ab.js';
package/Selector/index.js CHANGED
@@ -17,7 +17,7 @@ import Empty from '../Empty/index.js';
17
17
  import SearchIcon from '@para-ui/icons/Search';
18
18
  import Refresh from '@para-ui/icons/Refresh';
19
19
  import { ArrayToObject, Get, Post, Cancel } from '@paraview/lib';
20
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
20
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
21
21
  import { u as useGlobalProps } from '../_verture/useGlobalProps-af9a2af6.js';
22
22
  import '../Label/index.js';
23
23
  import '../Help/index.js';
@@ -41,6 +41,7 @@ import '@para-ui/icons/Forbid';
41
41
  import '@para-ui/icons/Down';
42
42
  import '@para-ui/core/GlobalContext';
43
43
  import '@para-ui/icons/More';
44
+ import '@para-ui/icons/Return';
44
45
 
45
46
  var css_248z$3 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author linhd\n* @date 2022/8/12 5:28 PM\n* @description 全局css前缀\n*/\n.paraui-v3-selector-node {\n display: flex;\n justify-content: space-between;\n align-items: center;\n cursor: pointer;\n}\n.paraui-v3-selector-node:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-selector-node > .selector-node-left {\n display: flex;\n align-items: center;\n flex: 1;\n overflow: hidden;\n padding-right: 16px;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-radio {\n margin-right: 8px;\n display: flex;\n align-items: center;\n padding: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-radio .radio-box {\n top: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-check {\n margin-right: 8px;\n display: flex;\n align-items: center;\n padding: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .selector-node-check .checkbox-box {\n top: 0;\n}\n.paraui-v3-selector-node > .selector-node-left > .node-img {\n display: inline-block;\n width: 30px;\n height: 30px;\n margin-right: 8px;\n}\n.paraui-v3-selector-node > .selector-node-left > .node-img img {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch {\n height: 36px;\n padding: 0 16px;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch > .selector-node-left > .main-title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n white-space: nowrap;\n height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch > .selector-node-left > .sub-title {\n margin-left: 8px;\n font-size: 14px;\n color: rgba(46, 55, 67, 0.4);\n white-space: nowrap;\n height: 20px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-branch > .selector-node-left > .tag {\n margin-left: 8px;\n background-color: rgba(54, 102, 214, 0.05);\n color: rgb(54, 102, 214);\n border-radius: 2px;\n font-size: 12px;\n padding: 0px 6px;\n white-space: nowrap;\n height: 17px;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf {\n padding: 6px 16px;\n height: 48px;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box {\n flex: 1;\n overflow: hidden;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box {\n display: flex;\n white-space: nowrap;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box > .main-title {\n font-size: 14px;\n color: rgb(46, 55, 67);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box > .tag {\n margin-left: 8px;\n background-color: rgba(54, 102, 214, 0.05);\n color: rgb(54, 102, 214);\n border-radius: 2px;\n font-size: 12px;\n padding: 1px 6px;\n white-space: nowrap;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .sub-title {\n font-size: 12px;\n color: rgba(46, 55, 67, 0.4);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.paraui-v3-selector-node > .selector-node-right {\n display: flex;\n align-items: center;\n height: 100%;\n}\n.paraui-v3-selector-node > .selector-node-right > .detail {\n font-size: 14px;\n color: rgb(54, 102, 214);\n white-space: nowrap;\n padding: 0 4px;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n border-radius: 2px;\n}\n.paraui-v3-selector-node > .selector-node-right > .detail:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-selector-node > .selector-node-right > .line {\n border-left: 1px solid rgba(171, 176, 185, 0.2);\n margin: 0 8px;\n content: \"\";\n display: inline-block;\n height: 12px;\n}\n.paraui-v3-selector-node > .selector-node-right > .lower-child {\n font-size: 14px;\n color: rgb(54, 102, 214);\n white-space: nowrap;\n padding: 0 4px;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n border-radius: 2px;\n}\n.paraui-v3-selector-node > .selector-node-right > .lower-child:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-selector-node > .selector-node-right > .close {\n display: flex;\n align-items: center;\n color: rgb(54, 102, 214);\n white-space: nowrap;\n padding: 0 4px;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n border-radius: 2px;\n}\n.paraui-v3-selector-node > .selector-node-right > .close:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-selector-node > .selector-node-right > .close:hover > svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-selector-node > .selector-node-right > .close > svg {\n font-size: 16px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .detail, .paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .lower-child {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .detail:hover, .paraui-v3-selector-node.paraui-v3-selector-node-edit > .selector-node-right > .lower-child:hover {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled.paraui-v3-selector-node-branch > .selector-node-left > .main-title {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled.paraui-v3-selector-node-leaf > .selector-node-left > .title-box > .main-title-box > .main-title {\n color: rgba(46, 55, 67, 0.4);\n}\n.paraui-v3-selector-node.paraui-v3-selector-node-disabled > .selector-node-right > .lower-child {\n cursor: not-allowed;\n color: rgba(46, 55, 67, 0.4);\n}\n\n.paraui-v3-selector-detail .selector-detail-popover-content.selector-detail-popover-content-loading {\n min-width: 100px;\n min-height: 50px;\n}";
46
47
  styleInject(css_248z$3);
@@ -5,6 +5,7 @@ declare const _default: {
5
5
  seeMore: string;
6
6
  selected: string;
7
7
  pleaseEnter: string;
8
+ searchResult: string;
8
9
  };
9
10
  en: {
10
11
  root: string;
@@ -12,6 +13,7 @@ declare const _default: {
12
13
  seeMore: string;
13
14
  selected: string;
14
15
  pleaseEnter: string;
16
+ searchResult: string;
15
17
  };
16
18
  };
17
19
  export default _default;
@@ -37,10 +37,11 @@ import '../_verture/useGlobalProps-af9a2af6.js';
37
37
  import '@para-ui/core/GlobalContext';
38
38
  import '../Button/index.js';
39
39
  import '@para-ui/icons/Forbid';
40
- import '../_verture/useFormatMessage-ac9d6acf.js';
40
+ import '../_verture/useFormatMessage-f4452258.js';
41
41
  import '@para-ui/icons/Search';
42
42
  import '../Breadcrumbs/index.js';
43
43
  import '@para-ui/icons/More';
44
+ import '@para-ui/icons/Return';
44
45
  import '../Empty/index.js';
45
46
  import '@para-ui/icons/Refresh';
46
47
 
package/Table/index.js CHANGED
@@ -15,7 +15,7 @@ import Screen from '@para-ui/icons/ScreenF';
15
15
  import SolidArrowUp from '@para-ui/icons/UpTriangleF';
16
16
  import SolidArrowDown from '@para-ui/icons/DownTriangleF';
17
17
  import Panel from '@para-ui/icons/Panel';
18
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
18
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
19
19
  import { $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
20
20
  import { _ as _defineProperty } from '../_verture/defineProperty-0590dc61.js';
21
21
  import { Radio } from '../Radio/index.js';
package/Tabs/index.js CHANGED
@@ -9,7 +9,7 @@ import CloseIcon from '@para-ui/icons/Close';
9
9
  import { PopConfirm } from '../PopConfirm/index.js';
10
10
  import Help from '../Help/index.js';
11
11
  import clsx from 'clsx';
12
- import { u as useFormatMessage } from '../_verture/useFormatMessage-ac9d6acf.js';
12
+ import { u as useFormatMessage } from '../_verture/useFormatMessage-f4452258.js';
13
13
  import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-bf34e6fa.js';
14
14
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
15
15
  import '../_verture/slicedToArray-d7722f4b.js';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @author xh
3
+ * @date 2022/09/06 18:00
4
+ * @description 存放富文本编辑器的一些默认配置
5
+ */
6
+ export declare const TOOL_BAR_CONFIG: (string | {
7
+ key: string;
8
+ title: string;
9
+ iconSvg: string;
10
+ menuKeys: string[];
11
+ })[];
@@ -0,0 +1,106 @@
1
+ /**
2
+ * @author xh
3
+ * @date 2022/09/06 11:26
4
+ * @description 基于wangEditor的富文本编辑器
5
+ */
6
+ import React, { ReactNode } from 'react';
7
+ import { LabelTooltipProps } from "../Label";
8
+ import { IDomEditor } from '@wangeditor/editor';
9
+ import { HelperTextDetailProps } from "../HelperText";
10
+ import './index.scss';
11
+ import '@wangeditor/editor/dist/css/style.css';
12
+ declare type InsertFnType = (url: string, alt: string, href: string) => void;
13
+ export interface IMenuGroup {
14
+ key: string;
15
+ title: string;
16
+ iconSvg?: string;
17
+ menuKeys: string[];
18
+ }
19
+ export interface UpLoadImgConfig {
20
+ fieldName: string;
21
+ maxFileSize: number;
22
+ maxNumberOfFiles: number;
23
+ allowedFileTypes: string[];
24
+ meta: object;
25
+ metaWithUrl: boolean;
26
+ headers: object;
27
+ withCredentials: boolean;
28
+ timeout: number;
29
+ base64LimitSize: number;
30
+ onSuccess: (file: File, res: any) => void;
31
+ onFailed: (file: File, res: any) => void;
32
+ onProgress: (progress: number) => void;
33
+ onBeforeUpload: (file: File) => any;
34
+ onError: (file: File, err: any, res: any) => void;
35
+ customUpload: (file: File, insertFn: InsertFnType) => void;
36
+ customInsert: (res: any, insertFn: InsertFnType) => void;
37
+ }
38
+ export declare type UpLoadVideoConfig = Omit<UpLoadImgConfig, 'base64LimitSize'>;
39
+ export interface TextEditorProps extends HelperTextDetailProps {
40
+ /** 样式class */
41
+ className?: string;
42
+ /** style */
43
+ style?: React.CSSProperties;
44
+ /** toolbarStyle */
45
+ toolbarStyle?: React.CSSProperties;
46
+ /** editorStyle */
47
+ editorStyle?: React.CSSProperties;
48
+ /** 富文本的最大长度 */
49
+ max?: number;
50
+ /** 标题 */
51
+ label?: ReactNode;
52
+ /** 标题提示 */
53
+ labelSign?: ReactNode;
54
+ /** 帮组提示信息 */
55
+ labelTooltip?: LabelTooltipProps;
56
+ /** 提示语 */
57
+ placeholder?: string;
58
+ /** 编辑器是否默认聚焦 */
59
+ autoFocus?: boolean;
60
+ /** 只读 */
61
+ readOnly?: boolean;
62
+ /** 是否必填 */
63
+ required?: boolean;
64
+ /** 默认值 不受控 */
65
+ defaultValue?: string;
66
+ /** 默认值 受控 */
67
+ value?: string;
68
+ /** 工具栏菜单配置*/
69
+ toolbarKeys?: Array<string | IMenuGroup>;
70
+ /** 工具栏不需要的配置 */
71
+ excludeKeys?: string[];
72
+ /** 工具栏插入新菜单 */
73
+ insertKeys?: {
74
+ index: number;
75
+ keys: string | Array<string | IMenuGroup>;
76
+ };
77
+ /** 文件上传的服务地址 */
78
+ server: string;
79
+ /** 上传图片配置 */
80
+ uploadImage?: Partial<UpLoadImgConfig>;
81
+ /** 上传视频配置 */
82
+ uploadVideo?: Partial<UpLoadVideoConfig>;
83
+ /** 改变事件 */
84
+ onChange?: (value: string, text: string) => void;
85
+ /** 失去焦点 */
86
+ onBlur?: (editor: IDomEditor) => void;
87
+ /** 得到焦点 */
88
+ onFocus?: (editor: IDomEditor) => void;
89
+ /** 编辑器销毁钩子 */
90
+ onDestroyed?: (editor: IDomEditor) => void;
91
+ [name: string]: any;
92
+ }
93
+ export interface TextEditorRef {
94
+ /** 获取html内容 */
95
+ getContent: () => string | undefined;
96
+ /** 获取纯文本内容 */
97
+ getText: () => string | undefined;
98
+ /** 清空编辑器 */
99
+ clearEditor: () => void;
100
+ /** 设置content */
101
+ setContent: (content: string) => void;
102
+ /** 获取编辑器实例 */
103
+ getEditor: () => IDomEditor | null;
104
+ }
105
+ declare const TextEditor: React.ForwardRefExoticComponent<Pick<TextEditorProps, keyof TextEditorProps> & React.RefAttributes<TextEditorRef>>;
106
+ export default TextEditor;