@para-ui/core 4.0.61 → 4.0.62
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/Anchor/index.js +2 -1
- package/Argv/index.js +3 -2
- package/AutoButton/index.js +3 -2
- package/AutoTips/index.js +248 -7
- package/Breadcrumbs/index.js +2 -1
- package/Button/index.js +3 -2
- package/ButtonGroup/index.js +3 -2
- package/Card/index.js +33 -23
- package/Cascader/index.js +4 -3
- package/ComboSelect/index.js +4 -3
- package/CopyText/index.js +2 -1
- package/CycleSelector/index.js +3 -2
- package/DatePicker/index.js +6 -5
- package/Descriptions/index.js +3 -2
- package/Desktop/index.js +6 -5
- package/Drawer/index.js +3 -2
- package/DynamicMultiBox/index.js +4 -3
- package/Form/index.js +5 -4
- package/FormItem/index.js +5 -4
- package/FunctionModal/index.js +5 -4
- package/InputCode/index.js +3 -2
- package/InputLang/index.d.ts +2 -0
- package/InputLang/index.js +12 -3
- package/Menu/index.js +2 -1
- package/Modal/index.js +3 -2
- package/MultiBox/index.js +6 -5
- package/OperateBtn/index.js +3 -2
- package/PageHeader/index.js +3 -2
- package/Pagination/index.js +3 -2
- package/PopConfirm/index.js +3 -2
- package/PopMenu/index.js +2 -1
- package/QuickReply/index.js +3 -2
- package/README.md +6 -0
- package/Result/index.js +2 -1
- package/Search/index.js +2 -1
- package/Select/index.js +2 -1
- package/SelectInput/index.js +2 -1
- package/Selector/index.js +2 -1
- package/SelectorPicker/index.js +2 -1
- package/SingleBox/index.js +6 -5
- package/Stepper/index.js +2 -1
- package/Table/index.js +3 -2
- package/Tabs/index.js +6 -5
- package/Tag/index.js +2 -1
- package/TextField/index.js +2 -1
- package/TimePicker/index.js +6 -5
- package/Title/index.js +2 -1
- package/ToggleButton/index.js +3 -2
- package/Transfer/index.js +3 -2
- package/Tree/index.js +4 -3
- package/Upload/index.js +3 -2
- package/Utils/Hooks/useResizeObserver.d.ts +2 -0
- package/_verture/{index-7d115f38.js → index-0163a7b0.js} +2 -2
- package/_verture/{index-2055d357.js → index-09404080.js} +1 -1
- package/_verture/{index-3f811a6c.js → index-78f0f0e7.js} +1 -1
- package/_verture/{index-6bbcdc7f.js → index-98ae8a30.js} +1 -1
- package/_verture/useResizeObserver-edda059a.js +69 -0
- package/index.js +7 -6
- package/package.json +1 -1
- package/umd/AutoButton.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Card.js +1 -1
- package/umd/ComboSelect.js +3 -3
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/Table.js +1 -1
- package/_verture/index-f62daef9.js +0 -298
- /package/_verture/{modalContext-15114682.js → modalContext-e3beaf4b.js} +0 -0
package/Table/index.js
CHANGED
|
@@ -8,8 +8,8 @@ import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
9
9
|
import { Popover } from '../Popover/index.js';
|
|
10
10
|
import { Checkbox } from '../Checkbox/index.js';
|
|
11
|
-
import { B as Button } from '../_verture/index-
|
|
12
|
-
import
|
|
11
|
+
import { B as Button } from '../_verture/index-98ae8a30.js';
|
|
12
|
+
import AutoTips from '../AutoTips/index.js';
|
|
13
13
|
import Screen from '@para-ui/icons/ScreenF';
|
|
14
14
|
import SolidArrowUp from '@para-ui/icons/UpTriangleF';
|
|
15
15
|
import SolidArrowDown from '@para-ui/icons/DownTriangleF';
|
|
@@ -27,6 +27,7 @@ import { Pagination } from '../Pagination/index.js';
|
|
|
27
27
|
import { Loading } from '../Loading/index.js';
|
|
28
28
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-4ae1a007.js';
|
|
29
29
|
import ScrollBar from '../ScrollBar/index.js';
|
|
30
|
+
import { u as useResizeObserver } from '../_verture/useResizeObserver-edda059a.js';
|
|
30
31
|
import '../Tooltip/index.js';
|
|
31
32
|
import 'rc-tooltip';
|
|
32
33
|
import 'rc-tooltip/lib/placements';
|
package/Tabs/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import RcTabs, { TabPane } from 'rc-tabs';
|
|
|
5
5
|
import More from '@para-ui/icons/More';
|
|
6
6
|
import Plus from '@para-ui/icons/Plus';
|
|
7
7
|
import Close from '@para-ui/icons/Close';
|
|
8
|
-
import { P as PopConfirm } from '../_verture/index-
|
|
8
|
+
import { P as PopConfirm } from '../_verture/index-98ae8a30.js';
|
|
9
9
|
import { Radio } from '../Radio/index.js';
|
|
10
10
|
import Help from '../Help/index.js';
|
|
11
11
|
import clsx from 'clsx';
|
|
@@ -20,15 +20,16 @@ import 'rc-dropdown';
|
|
|
20
20
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
21
21
|
import 'dayjs';
|
|
22
22
|
import '@paraview/lib';
|
|
23
|
-
import '../
|
|
23
|
+
import '../AutoTips/index.js';
|
|
24
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
25
|
+
import 'rc-tooltip';
|
|
26
|
+
import 'rc-tooltip/lib/placements';
|
|
27
|
+
import '@para-ui/icons/Forbid';
|
|
24
28
|
import '@para-ui/icons/CheckCircleF';
|
|
25
29
|
import '@para-ui/icons/WarningCircle';
|
|
26
30
|
import '@para-ui/icons/CloseCircleF';
|
|
27
31
|
import '@para-ui/icons/WarningCircleF';
|
|
28
32
|
import '../Label/index.js';
|
|
29
|
-
import 'rc-tooltip';
|
|
30
|
-
import 'rc-tooltip/lib/placements';
|
|
31
|
-
import '@para-ui/icons/Forbid';
|
|
32
33
|
import '@para-ui/icons/Help';
|
|
33
34
|
import '../_verture/index-ca413216.js';
|
|
34
35
|
|
package/Tag/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.
|
|
|
8
8
|
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
9
9
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
10
10
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
11
|
-
import
|
|
11
|
+
import AutoTips from '../AutoTips/index.js';
|
|
12
12
|
import { t as tinycolor } from '../_verture/tinycolor-ece3542d.js';
|
|
13
13
|
import { u as useGlobalProps } from '../_verture/useGlobalProps-4ae1a007.js';
|
|
14
14
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
@@ -18,6 +18,7 @@ import 'rc-tooltip';
|
|
|
18
18
|
import 'rc-tooltip/lib/placements';
|
|
19
19
|
import '@para-ui/icons/Forbid';
|
|
20
20
|
import '@paraview/lib';
|
|
21
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
21
22
|
import '../_verture/index-ca413216.js';
|
|
22
23
|
|
|
23
24
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/1/12 上午9:43\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-tag-outline.paraui-v4-tag {\n border: 0.5px solid rgb(92, 101, 115);\n}\n.paraui-v4-tag-outline.paraui-v4-tag-blue {\n border: 0.5px solid rgb(46, 101, 230);\n}\n.paraui-v4-tag-outline.paraui-v4-tag-green {\n border: 0.5px solid rgb(19, 191, 76);\n}\n.paraui-v4-tag-outline.paraui-v4-tag-yellow {\n border: 0.5px solid rgb(255, 147, 38);\n}\n.paraui-v4-tag-outline.paraui-v4-tag-red {\n border: 0.5px solid rgb(244, 66, 66);\n}\n\n.paraui-v4-tag-edit-input {\n height: 24px;\n align-self: flex-start;\n font-size: 14px;\n color: rgb(29, 33, 38);\n text-indent: 8px;\n border: 1px solid rgb(46, 101, 230);\n border-radius: 4px;\n}\n\n.paraui-v4-tag {\n vertical-align: bottom;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n max-width: 100%;\n height: 24px;\n padding: 0 10px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n white-space: nowrap;\n background: rgb(234, 236, 241);\n border-radius: 2px;\n line-height: 18px;\n}\n.paraui-v4-tag .tag-custom-icon:hover {\n background: none !important;\n cursor: default;\n}\n.paraui-v4-tag .tag-close-icon:hover {\n background-color: rgb(212, 218, 227);\n}\n.paraui-v4-tag .tag-edit-icon {\n display: flex;\n}\n.paraui-v4-tag.paraui-v4-tag-small {\n height: 20px;\n font-size: 12px;\n padding: 0 6px;\n}\n.paraui-v4-tag.paraui-v4-tag-small > svg {\n font-size: 12px;\n}\n.paraui-v4-tag.paraui-v4-tag-small > svg + .paraui-v4-auto-tips {\n margin-left: 2px;\n}\n.paraui-v4-tag.paraui-v4-tag-small .tag-close-icon {\n margin-left: 2px;\n}\n.paraui-v4-tag.paraui-v4-tag-small .tag-edit-icon {\n font-size: 12px;\n}\n.paraui-v4-tag > svg {\n color: inherit;\n font-size: 16px;\n}\n.paraui-v4-tag .tag-edit-icon {\n color: inherit;\n font-size: 16px;\n cursor: pointer;\n}\n.paraui-v4-tag .tag-edit-icon > svg {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-tag .tag-close-icon {\n margin-left: 4px;\n color: inherit;\n font-size: 16px;\n cursor: pointer;\n}\n.paraui-v4-tag .tag-close-icon:hover {\n color: inherit;\n}\n.paraui-v4-tag > svg + .paraui-v4-auto-tips {\n margin-left: 4px;\n}\n.paraui-v4-tag.paraui-v4-tag-has-color, .paraui-v4-tag.paraui-v4-tag-has-color svg, .paraui-v4-tag.paraui-v4-tag-has-color svg:hover {\n color: inherit;\n}\n.paraui-v4-tag.paraui-v4-tag-blue {\n color: rgb(46, 101, 230);\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-tag.paraui-v4-tag-green {\n color: rgb(19, 191, 76);\n background-color: rgba(19, 191, 76, 0.1);\n}\n.paraui-v4-tag.paraui-v4-tag-yellow {\n color: rgb(255, 147, 38);\n background-color: rgba(255, 147, 38, 0.1);\n}\n.paraui-v4-tag.paraui-v4-tag-red {\n color: rgb(244, 66, 66);\n background-color: rgba(244, 66, 66, 0.1);\n}\n.paraui-v4-tag.paraui-v4-tag-hidden {\n display: none;\n}\n\n.paraui-v4-tag-small svg {\n font-size: 12px;\n}\n\n.paraui-v4-tag-group {\n display: flex;\n align-items: center;\n flex-flow: row wrap;\n}\n.paraui-v4-tag-group .tag-group-input {\n height: 24px;\n align-self: flex-start;\n font-size: 14px;\n color: rgb(29, 33, 38);\n text-indent: 8px;\n border: 1px solid rgb(46, 101, 230);\n border-radius: 4px;\n}\n.paraui-v4-tag-group .tag-group-input .tag-group-input-large {\n height: 28px;\n}\n.paraui-v4-tag-group .tag-group-new .tag-group-new-icon {\n padding: 0 5px;\n}\n.paraui-v4-tag-group .tag-group-add-btn {\n border: 1px dashed rgb(212, 218, 227);\n}\n.paraui-v4-tag-group .tag-group-add-btn .tag-edit-icon {\n background: none !important;\n}\n.paraui-v4-tag-group .tag-group-add-btn:hover {\n cursor: pointer;\n}\n.paraui-v4-tag-group .tag-group-add-btn:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-tag-group .tag-group-add-btn:hover .tag-text {\n color: rgb(46, 101, 230);\n}";
|
package/TextField/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { UUID } from '@paraview/lib';
|
|
|
6
6
|
import VisibilityOff from '@para-ui/icons/PreviewClose';
|
|
7
7
|
import PreviewOpen from '@para-ui/icons/PreviewOpen';
|
|
8
8
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
9
|
-
import
|
|
9
|
+
import AutoTips from '../AutoTips/index.js';
|
|
10
10
|
import { Loading } from '../Loading/index.js';
|
|
11
11
|
import { Tooltip } from '../Tooltip/index.js';
|
|
12
12
|
import HelperText from '../HelperText/index.js';
|
|
@@ -20,6 +20,7 @@ import 'clsx';
|
|
|
20
20
|
import 'rc-tooltip';
|
|
21
21
|
import 'rc-tooltip/lib/placements';
|
|
22
22
|
import '@para-ui/icons/Forbid';
|
|
23
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
23
24
|
import '@para-ui/icons/LoadingF';
|
|
24
25
|
import '../_verture/index-ca413216.js';
|
|
25
26
|
import 'rc-dropdown';
|
package/TimePicker/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import DatePicker from '../DatePicker/index.js';
|
|
5
5
|
import { Tooltip } from '../Tooltip/index.js';
|
|
6
6
|
import 'rc-picker/es/generate/dayjs';
|
|
7
|
-
import '../_verture/index-
|
|
7
|
+
import '../_verture/index-98ae8a30.js';
|
|
8
8
|
import 'clsx';
|
|
9
9
|
import '@para-ui/icons/LoadingF';
|
|
10
10
|
import '@para-ui/icons/Down';
|
|
@@ -17,7 +17,11 @@ import 'dayjs';
|
|
|
17
17
|
import '@paraview/lib';
|
|
18
18
|
import '../_verture/useFormatMessage-1fc7c957.js';
|
|
19
19
|
import '../_verture/index-ca413216.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../AutoTips/index.js';
|
|
21
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
22
|
+
import 'rc-tooltip';
|
|
23
|
+
import 'rc-tooltip/lib/placements';
|
|
24
|
+
import '@para-ui/icons/Forbid';
|
|
21
25
|
import '@para-ui/icons/CheckCircleF';
|
|
22
26
|
import '@para-ui/icons/WarningCircle';
|
|
23
27
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -31,9 +35,6 @@ import '../_verture/typeof-adeedc13.js';
|
|
|
31
35
|
import '../_verture/tinycolor-ece3542d.js';
|
|
32
36
|
import '../_verture/useGlobalProps-4ae1a007.js';
|
|
33
37
|
import '@para-ui/icons/Plus';
|
|
34
|
-
import 'rc-tooltip';
|
|
35
|
-
import 'rc-tooltip/lib/placements';
|
|
36
|
-
import '@para-ui/icons/Forbid';
|
|
37
38
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
38
39
|
import 'rc-picker';
|
|
39
40
|
import '@para-ui/icons/Calendar';
|
package/Title/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
|
-
import
|
|
4
|
+
import AutoTips from '../AutoTips/index.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import Help from '../Help/index.js';
|
|
7
7
|
import { Collapse } from '../Collapse/index.js';
|
|
@@ -12,6 +12,7 @@ import 'rc-tooltip';
|
|
|
12
12
|
import 'rc-tooltip/lib/placements';
|
|
13
13
|
import '@para-ui/icons/Forbid';
|
|
14
14
|
import '@paraview/lib';
|
|
15
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
15
16
|
import '@para-ui/icons/Help';
|
|
16
17
|
import 'rc-collapse';
|
|
17
18
|
import '@para-ui/icons/Right';
|
package/ToggleButton/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef } from 'react';
|
|
4
|
-
import { B as Button } from '../_verture/index-
|
|
4
|
+
import { B as Button } from '../_verture/index-98ae8a30.js';
|
|
5
5
|
import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
|
|
6
6
|
import { UUID } from '@paraview/lib';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
9
|
-
import
|
|
9
|
+
import AutoTips from '../AutoTips/index.js';
|
|
10
10
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
11
|
import '@para-ui/icons/LoadingF';
|
|
12
12
|
import '../Tooltip/index.js';
|
|
@@ -25,6 +25,7 @@ import '@para-ui/icons/WarningCircle';
|
|
|
25
25
|
import '@para-ui/icons/CloseCircleF';
|
|
26
26
|
import '@para-ui/icons/WarningCircleF';
|
|
27
27
|
import '../_verture/typeof-adeedc13.js';
|
|
28
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
28
29
|
|
|
29
30
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/23 上午9:50\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-radio[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::before {\n content: \" \";\n position: absolute;\n bottom: 0;\n right: 0;\n border: 8px solid rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check::after {\n content: \" \";\n width: 8px;\n height: 8px;\n background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAM5JREFUOE/NkQENwjAURFcFIAEHgIM5YCgAHCABFBAUAA5wABI2CTgABeUd+V06BqFkCeEnl6X9d7d/vy7rWK6jPvu9gfe+z9QnsHDOlV9NgHhk4gpxrvjJBogL+DtwATkG12QDxEvIG3AzcRmW/5gAgsaR+1S54peht+c8s7vxc7+OAFHCIVhBWkfLUm6VliazRsUGAzoy6YEz0LaDeItYMVrVWCJ/nVuUmHhArPuX1XoFTI4wJ8au+NYb/ziBCJZdJqoiPFfyBO+I/2twBz0qQBFvrubpAAAAAElFTkSuQmCC\");\n background-size: 8px 8px;\n background-repeat: no-repeat;\n position: absolute;\n bottom: 1px;\n right: 1px;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check:hover::before {\n border-color: rgb(87, 131, 235);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check.paraui-v4-toggle-button-selected::before {\n border-color: rgb(46, 101, 230);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled] {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover {\n color: rgb(161, 168, 179);\n background-color: rgb(255, 255, 255);\n border: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled]:hover::before {\n border-color: rgb(212, 218, 227);\n border-top-color: transparent;\n border-left-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-outlined.paraui-v4-toggle-button-check[disabled].paraui-v4-toggle-button-selected {\n color: rgb(92, 101, 115);\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected {\n border-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon.paraui-v4-toggle-button-selected:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected {\n border-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-icon[disabled].paraui-v4-toggle-button-selected::before {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n z-index: 1;\n content: \"\";\n background-color: rgba(255, 255, 255, 0.5);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-button-text:hover[disabled] {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected {\n color: rgb(46, 101, 230);\n border: 0;\n font-weight: 700;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled] {\n color: rgb(92, 101, 115);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected[disabled]:hover {\n background-color: transparent;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected:first-child:before {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text.paraui-v4-toggle-button-selected::after {\n display: none;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled] {\n color: rgb(161, 168, 179);\n background-color: transparent;\n border: 0;\n}\n.paraui-v4-toggle-button.toggle-button-text[disabled]:hover {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-toggle-button-wrap {\n display: inline-block;\n}\n.paraui-v4-toggle-button .toggle-button-text {\n width: 100%;\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-toggle-button-disabled.paraui-v4-toggle-button:hover {\n color: rgb(92, 101, 115);\n}\n\n.paraui-v4-togglebutton-group {\n display: flex;\n flex-flow: row wrap;\n}\n.paraui-v4-togglebutton-group .toggle-button-item {\n margin: 0 8px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item .paraui-v4-toggle-button {\n margin: 0;\n padding: 0 16px;\n}\n.paraui-v4-togglebutton-group-text .toggle-button-item ~ .toggle-button-item .paraui-v4-toggle-button::before {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n content: \"\";\n width: 1px;\n height: 14px;\n background-color: rgb(212, 218, 227);\n}";
|
|
30
31
|
styleInject(css_248z);
|
package/Transfer/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 { B as Button } from '../_verture/index-
|
|
4
|
+
import { B as Button } from '../_verture/index-98ae8a30.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';
|
|
@@ -11,7 +11,7 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
|
11
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
|
-
import
|
|
14
|
+
import AutoTips from '../AutoTips/index.js';
|
|
15
15
|
import Drag from '@para-ui/icons/Drag';
|
|
16
16
|
import { S as Sortable } from '../_verture/sortable.esm-76fe46a4.js';
|
|
17
17
|
import { d as debounce } from '../_verture/utils-c17b5265.js';
|
|
@@ -41,6 +41,7 @@ import '@para-ui/icons/PreviewOpen';
|
|
|
41
41
|
import '../Loading/index.js';
|
|
42
42
|
import '../HelperText/index.js';
|
|
43
43
|
import '../_verture/useGlobalProps-4ae1a007.js';
|
|
44
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
|
44
45
|
|
|
45
46
|
var en = {
|
|
46
47
|
left: 'Left',
|
package/Tree/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-09404080.js';
|
|
2
|
+
export { T as default } from '../_verture/index-09404080.js';
|
|
3
3
|
import '../_verture/toConsumableArray-599cd94a.js';
|
|
4
4
|
import '../_verture/slicedToArray-61604a6c.js';
|
|
5
5
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
@@ -35,4 +35,5 @@ import '@para-ui/icons/MoreCircle';
|
|
|
35
35
|
import '../Empty/index.js';
|
|
36
36
|
import '../_verture/useGlobalProps-4ae1a007.js';
|
|
37
37
|
import '../Loading/index.js';
|
|
38
|
-
import '../
|
|
38
|
+
import '../AutoTips/index.js';
|
|
39
|
+
import '../_verture/useResizeObserver-edda059a.js';
|
package/Upload/index.js
CHANGED
|
@@ -17,14 +17,14 @@ import PhotoIcon from '@para-ui/icons/Photo';
|
|
|
17
17
|
import PreviewOpen from '@para-ui/icons/PreviewOpen';
|
|
18
18
|
import InfoOutlined from '@para-ui/icons/WarningCircle';
|
|
19
19
|
import { Tooltip } from '../Tooltip/index.js';
|
|
20
|
-
import
|
|
20
|
+
import AutoTips from '../AutoTips/index.js';
|
|
21
21
|
import Image$1 from '../Image/index.js';
|
|
22
22
|
import OperateBtn from '../OperateBtn/index.js';
|
|
23
23
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc89.js';
|
|
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 { B as Button } from '../_verture/index-
|
|
27
|
+
import { B as Button } from '../_verture/index-98ae8a30.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,6 +36,7 @@ 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/useResizeObserver-edda059a.js';
|
|
39
40
|
import '../_verture/index-1856bbeb.js';
|
|
40
41
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
42
|
import '../_verture/Portal-502bb85e.js';
|
|
@@ -8,8 +8,8 @@ import { CheckboxGroup } from '../CheckboxGroup/index.js';
|
|
|
8
8
|
import { Switch } from '../Switch/index.js';
|
|
9
9
|
import Delete from '@para-ui/icons/Delete';
|
|
10
10
|
import ParaLinkGroup from '@para-ui/icons/LinkGroup';
|
|
11
|
-
import
|
|
12
|
-
import { B as Button } from './index-
|
|
11
|
+
import AutoTips from '../AutoTips/index.js';
|
|
12
|
+
import { B as Button } from './index-98ae8a30.js';
|
|
13
13
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
14
14
|
import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
|
|
15
15
|
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
@@ -25,7 +25,7 @@ import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
|
25
25
|
import MoreOutlinedIcon from '@para-ui/icons/MoreCircle';
|
|
26
26
|
import Empty from '../Empty/index.js';
|
|
27
27
|
import { Loading } from '../Loading/index.js';
|
|
28
|
-
import
|
|
28
|
+
import AutoTips from '../AutoTips/index.js';
|
|
29
29
|
|
|
30
30
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
31
31
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -22,7 +22,7 @@ import { Tooltip } from '../Tooltip/index.js';
|
|
|
22
22
|
import { Forbid } from '@para-ui/icons';
|
|
23
23
|
import { $ as $prefixCls } from './constant-5317fc89.js';
|
|
24
24
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
25
|
-
import
|
|
25
|
+
import AutoTips from '../AutoTips/index.js';
|
|
26
26
|
import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
|
|
27
27
|
import { UUID } from '@paraview/lib';
|
|
28
28
|
import HelperText from '../HelperText/index.js';
|
|
@@ -9,7 +9,7 @@ import { $ as $prefixCls } from './constant-5317fc89.js';
|
|
|
9
9
|
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
10
10
|
import { D as Dropdown } from './index-bde7aabe.js';
|
|
11
11
|
import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
|
|
12
|
-
import
|
|
12
|
+
import AutoTips from '../AutoTips/index.js';
|
|
13
13
|
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
14
14
|
import InfoOutlined from '@para-ui/icons/WarningCircle';
|
|
15
15
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { useRef, useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @author linhd
|
|
5
|
+
* @date 2024/12/23 10:45
|
|
6
|
+
* @description 监听元素发生变化
|
|
7
|
+
*/
|
|
8
|
+
const useResizeObserver = props => {
|
|
9
|
+
const constData = useRef({});
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
resizeObserverDom();
|
|
12
|
+
return () => {
|
|
13
|
+
clearInterval(constData.current.resizeTimer);
|
|
14
|
+
clearTimeout(constData.current.resizeLimit);
|
|
15
|
+
};
|
|
16
|
+
}, [props.dom]);
|
|
17
|
+
// 判断宽高发生变化
|
|
18
|
+
const isChangeSize = rect => {
|
|
19
|
+
const width = rect.width;
|
|
20
|
+
const height = rect.height;
|
|
21
|
+
if (width === constData.current.width && height === constData.current.height) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let bol = true;
|
|
25
|
+
if (props.resizeType) {
|
|
26
|
+
if (props.resizeType === 'width' && width === constData.current.width) {
|
|
27
|
+
bol = false;
|
|
28
|
+
}
|
|
29
|
+
if (props.resizeType === 'height' && height === constData.current.height) {
|
|
30
|
+
bol = false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (!bol) return;
|
|
34
|
+
constData.current.width = width;
|
|
35
|
+
constData.current.height = height;
|
|
36
|
+
if (props.timer === 0) {
|
|
37
|
+
props.cb();
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
clearTimeout(constData.current.resizeLimit);
|
|
41
|
+
const timer = props.timer !== undefined ? props.timer : 100;
|
|
42
|
+
constData.current.resizeLimit = setTimeout(() => {
|
|
43
|
+
props.cb();
|
|
44
|
+
}, timer);
|
|
45
|
+
};
|
|
46
|
+
// 监听表格容器宽高发生变化
|
|
47
|
+
const resizeObserverDom = () => {
|
|
48
|
+
const dom = props.dom;
|
|
49
|
+
if (!dom) return;
|
|
50
|
+
if (window.ResizeObserver === undefined) {
|
|
51
|
+
clearInterval(constData.current.resizeTimer);
|
|
52
|
+
constData.current.resizeTimer = setInterval(() => {
|
|
53
|
+
const tableRefEleRect = dom.getBoundingClientRect();
|
|
54
|
+
isChangeSize(tableRefEleRect);
|
|
55
|
+
});
|
|
56
|
+
} else {
|
|
57
|
+
// 创建一个ResizeObserver实例并传入回调函数
|
|
58
|
+
const resizeObserver = new ResizeObserver(entries => {
|
|
59
|
+
var _a;
|
|
60
|
+
const contentRect = (_a = entries[0]) === null || _a === void 0 ? void 0 : _a.contentRect;
|
|
61
|
+
isChangeSize(contentRect);
|
|
62
|
+
});
|
|
63
|
+
// 开始观察元素
|
|
64
|
+
resizeObserver.observe(dom);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { useResizeObserver as u };
|
package/index.js
CHANGED
|
@@ -3,14 +3,14 @@ export { default as Anchor } from './Anchor/index.js';
|
|
|
3
3
|
export { default as Argv, checkArgvData, formatDataToObject, formatObjectToData } from './Argv/index.js';
|
|
4
4
|
export { AutoBox } from './AutoBox/index.js';
|
|
5
5
|
export { AutoButton } from './AutoButton/index.js';
|
|
6
|
-
export {
|
|
6
|
+
export { default as AutoTips, AutoTipsMultiline } from './AutoTips/index.js';
|
|
7
7
|
export { Badge } from './Badge/index.js';
|
|
8
8
|
export { Breadcrumbs } from './Breadcrumbs/index.js';
|
|
9
|
-
export { B as Button, P as PopConfirm } from './_verture/index-
|
|
9
|
+
export { B as Button, P as PopConfirm } from './_verture/index-98ae8a30.js';
|
|
10
10
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
11
11
|
export { Card } from './Card/index.js';
|
|
12
12
|
export { Carousel } from './Carousel/index.js';
|
|
13
|
-
export { C as Cascader } from './_verture/index-
|
|
13
|
+
export { C as Cascader } from './_verture/index-78f0f0e7.js';
|
|
14
14
|
export { Checkbox } from './Checkbox/index.js';
|
|
15
15
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
16
16
|
export { default as CodeEditor, CompletionItemKind } from './CodeEditor/index.js';
|
|
@@ -33,8 +33,8 @@ export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
|
33
33
|
export { default as Empty } from './Empty/index.js';
|
|
34
34
|
export { default as FieldForm } from './FieldForm/index.js';
|
|
35
35
|
export { default as Form } from './Form/index.js';
|
|
36
|
-
export { F as FormItem } from './_verture/index-
|
|
37
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
36
|
+
export { F as FormItem } from './_verture/index-0163a7b0.js';
|
|
37
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-e3beaf4b.js';
|
|
38
38
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
39
39
|
export { default as Help } from './Help/index.js';
|
|
40
40
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -87,7 +87,7 @@ export { Title } from './Title/index.js';
|
|
|
87
87
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
88
88
|
export { Tooltip } from './Tooltip/index.js';
|
|
89
89
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
90
|
-
export { T as Tree } from './_verture/index-
|
|
90
|
+
export { T as Tree } from './_verture/index-09404080.js';
|
|
91
91
|
export { default as Upload } from './Upload/index.js';
|
|
92
92
|
export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
|
|
93
93
|
export { default as locale } from './locale/index.js';
|
|
@@ -109,6 +109,7 @@ import '@para-ui/icons/PlusCircleF';
|
|
|
109
109
|
import 'react-dom';
|
|
110
110
|
import '@para-ui/icons/More';
|
|
111
111
|
import '@para-ui/icons/MoreVert';
|
|
112
|
+
import './_verture/useResizeObserver-edda059a.js';
|
|
112
113
|
import '@para-ui/icons/Return';
|
|
113
114
|
import '@para-ui/icons/LoadingF';
|
|
114
115
|
import '@para-ui/icons/CheckCircleF';
|