@para-ui/core 3.0.51 → 3.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoBox/index.js +2 -1
- package/AutoTips/index.js +2 -1
- package/Breadcrumbs/index.js +3 -2
- package/Button/index.js +2 -1
- package/ButtonGroup/index.js +2 -1
- package/Cascader/index.js +3 -2
- package/Checkbox/index.js +2 -1
- package/CheckboxGroup/index.js +2 -1
- package/CollapseBox/index.js +2 -1
- package/CollapseLayout/index.js +2 -1
- package/ComboSelect/index.js +4 -3
- package/DatePicker/index.js +3 -2
- package/Desktop/index.js +3 -2
- package/DragVerify/index.js +2 -1
- package/Drawer/index.js +2 -1
- package/DynamicMultiBox/index.js +4 -3
- package/Form/index.d.ts +8 -2
- package/Form/index.js +35 -19
- package/FormItem/index.js +5 -4
- package/FunctionModal/index.js +5 -4
- package/Help/index.js +2 -1
- package/InputLang/index.d.ts +13 -2
- package/InputLang/index.js +146 -37
- package/InputNumber/index.js +2 -1
- package/Label/index.js +2 -1
- package/Menu/index.js +3 -2
- package/Message/index.d.ts +26 -0
- package/Message/index.js +50 -8
- package/Modal/index.js +2 -1
- package/MultiBox/index.d.ts +3 -1
- package/MultiBox/index.js +16 -10
- package/OperateBtn/index.js +2 -1
- package/PageHeader/index.js +3 -2
- package/Pagination/index.js +3 -2
- package/PopConfirm/index.js +2 -1
- package/Popover/index.js +2 -1
- package/README.md +25 -0
- package/Radio/index.js +2 -1
- package/RadioGroup/index.js +2 -1
- package/Search/index.js +2 -1
- package/Select/index.js +4 -3
- package/SelectInput/index.js +3 -2
- package/Selector/index.js +3 -2
- package/SelectorPicker/index.js +4 -3
- package/SingleBox/index.js +3 -2
- package/Slider/index.js +2 -1
- package/Split/index.js +2 -1
- package/Switch/index.js +2 -1
- package/Table/index.js +3 -2
- package/Tabs/index.js +2 -1
- package/Tag/index.js +3 -2
- package/TextEditor/index.js +2 -1
- package/TextField/index.d.ts +0 -2
- package/TextField/index.js +5 -6
- package/TimePicker/index.js +3 -2
- package/ToggleButton/index.js +2 -1
- package/Tooltip/index.js +2 -1
- package/Transfer/index.js +3 -2
- package/Tree/index.js +5 -4
- package/Upload/index.js +3 -2
- package/_verture/{index-5ca4181b.js → index-74f820ba.js} +2 -2
- package/_verture/{index-b30abb46.js → index-b47439b6.js} +1 -1
- package/_verture/{modalContext-f70ba993.js → modalContext-92bb0e16.js} +2 -2
- package/_verture/{slicedToArray-708dbb18.js → slicedToArray-76060636.js} +3 -16
- package/_verture/{toConsumableArray-57dd2e23.js → toConsumableArray-81040c9e.js} +1 -1
- package/_verture/unsupportedIterableToArray-cb478f24.js +16 -0
- package/index.js +7 -6
- package/package.json +1 -1
- package/umd/ComboSelect.js +2 -2
- package/umd/Desktop.js +1 -1
- package/umd/Drawer.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Form.js +3 -3
- package/umd/FormItem.js +2 -2
- package/umd/InputLang.js +4 -4
- package/umd/Message.js +3 -3
- package/umd/MultiBox.js +2 -2
- package/umd/Pagination.js +2 -2
- package/umd/Search.js +1 -1
- package/umd/Select.js +4 -4
- package/umd/SelectInput.js +7 -7
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +1 -1
- package/umd/Table.js +2 -2
- package/umd/TextField.js +1 -1
- package/umd/Transfer.js +1 -1
package/AutoBox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useEffect, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { Popover } from '../Popover/index.js';
|
|
@@ -7,6 +7,7 @@ import { UUID } from '@paraview/lib';
|
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
8
8
|
import More from '@para-ui/icons/More';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
10
11
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
11
12
|
import '../Tooltip/index.js';
|
|
12
13
|
import 'rc-tooltip';
|
package/AutoTips/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useEffect, useMemo } from 'react';
|
|
4
4
|
import { Tooltip } from '../Tooltip/index.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
6
6
|
import { isIE } from '@paraview/lib';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
9
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
9
10
|
import 'rc-tooltip';
|
|
10
11
|
import 'rc-tooltip/lib/placements';
|
package/Breadcrumbs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
3
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
4
4
|
import { useState, useRef, useEffect, Fragment } from 'react';
|
|
5
5
|
import { Popover } from '../Popover/index.js';
|
|
@@ -9,6 +9,7 @@ import Return from '@para-ui/icons/Return';
|
|
|
9
9
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
10
10
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
11
11
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
12
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
12
13
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
13
14
|
import '../Tooltip/index.js';
|
|
14
15
|
import 'rc-tooltip';
|
package/Button/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
3
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import { useRef, useState, useEffect } from 'react';
|
|
@@ -12,6 +12,7 @@ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
|
12
12
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
13
13
|
import { D as Dropdown } from '../_verture/index-77f9e0fb.js';
|
|
14
14
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
15
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
15
16
|
import 'rc-tooltip';
|
|
16
17
|
import 'rc-tooltip/lib/placements';
|
|
17
18
|
import 'rc-dropdown';
|
package/ButtonGroup/index.js
CHANGED
|
@@ -8,7 +8,8 @@ import Forbid from '@para-ui/icons/Forbid';
|
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
10
|
import '../_verture/typeof-498dd2b1.js';
|
|
11
|
-
import '../_verture/slicedToArray-
|
|
11
|
+
import '../_verture/slicedToArray-76060636.js';
|
|
12
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
12
13
|
import '@para-ui/icons/LoadingF';
|
|
13
14
|
import '@para-ui/icons/Down';
|
|
14
15
|
import '../_verture/index-77f9e0fb.js';
|
package/Cascader/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
3
|
import { r as regenerator } from '../_verture/index-beef914f.js';
|
|
4
4
|
import { a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -10,6 +10,7 @@ import LoadingIcon from '@para-ui/icons/Loading';
|
|
|
10
10
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
11
11
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-66aa48a1.js';
|
|
12
12
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
13
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
13
14
|
import '@para-ui/core/GlobalContext';
|
|
14
15
|
|
|
15
16
|
var en = {
|
package/Checkbox/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
4
|
import Label from '../Label/index.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
6
6
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
7
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
7
8
|
import '../Help/index.js';
|
|
8
9
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
9
10
|
import '../Tooltip/index.js';
|
package/CheckboxGroup/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { useState, useEffect, createElement } from 'react';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { Checkbox } from '../Checkbox/index.js';
|
|
@@ -7,6 +7,7 @@ import HelperText from '../HelperText/index.js';
|
|
|
7
7
|
import { DeepClone } from '@paraview/lib';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
10
11
|
import '../Help/index.js';
|
|
11
12
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
12
13
|
import '../Tooltip/index.js';
|
package/CollapseBox/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { useRef, useState, useEffect } from 'react';
|
|
4
4
|
import { Transition } from 'react-transition-group';
|
|
5
5
|
import { g as getTransitionProps, a as getAutoHeightDuration } from '../_verture/util-7e1fb1e2.js';
|
|
6
6
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
9
|
|
|
9
10
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-collapse-box {\n transition: height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n width: 100%;\n overflow: hidden;\n height: 0;\n}\n.paraui-v3-collapse-box > .collapse-box-wrapper {\n display: flex;\n width: 100%;\n}\n.paraui-v3-collapse-box > .collapse-box-wrapper > .collapse-box-wrapper-inner {\n width: 100%;\n}\n.paraui-v3-collapse-box.paraui-v3-collapse-box-entered {\n overflow: visible;\n}\n.paraui-v3-collapse-box.paraui-v3-collapse-box-hidden {\n visibility: hidden;\n}";
|
|
10
11
|
styleInject(css_248z);
|
package/CollapseLayout/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
3
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { useRef, useState, useEffect } from 'react';
|
|
5
5
|
import DoubleLeft from '@para-ui/icons/DoubleLeft';
|
|
@@ -9,6 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import { a as getAutoHeightDuration } from '../_verture/util-7e1fb1e2.js';
|
|
10
10
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
11
|
import '../_verture/typeof-498dd2b1.js';
|
|
12
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
12
13
|
|
|
13
14
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-collapse-layout {\n height: 100%;\n width: 100%;\n position: relative;\n overflow: hidden;\n}\n.paraui-v3-collapse-layout .collapse-layout-icon-transform-top {\n transform: rotate(90deg);\n}\n.paraui-v3-collapse-layout .collapse-layout-icon-transform-bottom {\n transform: rotate(-90deg);\n}\n.paraui-v3-collapse-layout .collapse-layout-icon-transform-right {\n transform: rotate(180deg);\n}\n.paraui-v3-collapse-layout .collapse-layout-display {\n overflow: hidden;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click span, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click span, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-click span, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-click span {\n font-size: 12px;\n font-weight: 400;\n text-align: center;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click {\n position: absolute;\n top: 50%;\n left: \"\";\n width: 20px;\n height: 72px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n margin-top: -36px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-property: right;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n right: 0px;\n border-radius: 4px 0 0 4px;\n border-right: 1px solid rgb(54, 102, 214);\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-display-shadow {\n transition-property: margin-right;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click {\n position: absolute;\n top: 50%;\n left: 0;\n width: 20px;\n height: 72px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n margin-top: -36px;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-property: left;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n border-left: 1px solid rgb(54, 102, 214);\n border-radius: 0 4px 4px 0;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-display-shadow {\n transition-property: margin-left;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left > div, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right > div {\n display: inline-block;\n vertical-align: middle;\n height: 100%;\n position: relative;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-display-shadow, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-display-shadow {\n height: 100%;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-default, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-default {\n transition: width;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-left .collapse-layout-click, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-right .collapse-layout-click {\n flex-direction: column;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-click {\n position: absolute;\n top: 0;\n left: 50%;\n width: 72px;\n height: 20px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n margin-top: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-property: top;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n margin-left: -36px;\n border-top: 1px solid rgb(54, 102, 214);\n border-radius: 0 0 4px 4px;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-display-shadow {\n transition-property: margin-top;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-click {\n position: absolute;\n top: \"\";\n left: 50%;\n width: 72px;\n height: 20px;\n background: rgba(171, 176, 185, 0.12);\n text-align: center;\n cursor: pointer;\n margin-top: 0;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n transition-property: bottom;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n margin-left: -36px;\n bottom: 0px;\n border-bottom: 1px solid rgb(54, 102, 214);\n border-radius: 4px 4px 0 0;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-display-shadow {\n transition-property: margin-bottom;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-default, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-display,\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-default {\n transition-property: height;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-delay: 0ms;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top .collapse-layout-display-shadow, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom .collapse-layout-display-shadow {\n width: 100%;\n}\n.paraui-v3-collapse-layout.paraui-v3-collapse-layout-top > div, .paraui-v3-collapse-layout.paraui-v3-collapse-layout-bottom > div {\n display: block;\n width: 100%;\n position: relative;\n}";
|
|
14
15
|
styleInject(css_248z);
|
package/ComboSelect/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
3
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
2
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
3
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
import React__default, { useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
6
6
|
import Down from '@para-ui/icons/Down';
|
|
@@ -8,7 +8,7 @@ import SearchIcon from '@para-ui/icons/Search';
|
|
|
8
8
|
import CloseIcon from '@para-ui/icons/Close';
|
|
9
9
|
import CloseCircle from '@para-ui/icons/CloseCircle';
|
|
10
10
|
import Table from '../Table/index.js';
|
|
11
|
-
import { T as Tree } from '../_verture/index-
|
|
11
|
+
import { T as Tree } from '../_verture/index-74f820ba.js';
|
|
12
12
|
import { Button } from '../Button/index.js';
|
|
13
13
|
import { D as Dropdown } from '../_verture/index-77f9e0fb.js';
|
|
14
14
|
import { Popover } from '../Popover/index.js';
|
|
@@ -23,6 +23,7 @@ import HelperText from '../HelperText/index.js';
|
|
|
23
23
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
24
24
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
25
25
|
import '../_verture/typeof-498dd2b1.js';
|
|
26
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
26
27
|
import '../_verture/index-beef914f.js';
|
|
27
28
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
28
29
|
import '../Checkbox/index.js';
|
package/DatePicker/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import Label from '../Label/index.js';
|
|
|
19
19
|
import HelperText from '../HelperText/index.js';
|
|
20
20
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
21
21
|
import { UUID } from '@paraview/lib';
|
|
22
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
22
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
23
23
|
import PickerArrowIcon from '@para-ui/icons/SortRight';
|
|
24
24
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
25
25
|
import '@para-ui/icons/LoadingF';
|
|
@@ -29,11 +29,12 @@ import 'rc-tooltip';
|
|
|
29
29
|
import 'rc-tooltip/lib/placements';
|
|
30
30
|
import '@para-ui/icons/Down';
|
|
31
31
|
import '../_verture/useFormatMessage-703f8b20.js';
|
|
32
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
32
33
|
import 'rc-dropdown';
|
|
33
34
|
import '../_verture/usePopupContainer-87febeb9.js';
|
|
34
35
|
import 'dayjs';
|
|
35
36
|
import '@para-ui/icons/Close';
|
|
36
|
-
import '../_verture/toConsumableArray-
|
|
37
|
+
import '../_verture/toConsumableArray-81040c9e.js';
|
|
37
38
|
import '../AutoTips/index.js';
|
|
38
39
|
import '@para-ui/icons/Plus';
|
|
39
40
|
import '../Help/index.js';
|
package/Desktop/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import React__default, { useRef, useState, useMemo } from 'react';
|
|
5
5
|
import { TextField } from '../TextField/index.js';
|
|
@@ -7,6 +7,7 @@ import { Button } from '../Button/index.js';
|
|
|
7
7
|
import { DeepClone } from '@paraview/lib';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
10
11
|
import '../_verture/typeof-498dd2b1.js';
|
|
11
12
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
12
13
|
import '../Label/index.js';
|
package/DragVerify/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { r as regenerator } from '../_verture/index-beef914f.js';
|
|
3
3
|
import { a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -11,6 +11,7 @@ import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
|
11
11
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
12
12
|
import { Loading } from '../Loading/index.js';
|
|
13
13
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
14
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
14
15
|
import '@para-ui/core/GlobalContext';
|
|
15
16
|
import '@para-ui/icons/LoadingF';
|
|
16
17
|
|
package/Drawer/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
2
2
|
import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
3
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import React__default from 'react';
|
|
@@ -8,6 +8,7 @@ import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js'
|
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
9
9
|
import AutoTips from '../AutoTips/index.js';
|
|
10
10
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
11
12
|
import '../_verture/typeof-498dd2b1.js';
|
|
12
13
|
import 'clsx';
|
|
13
14
|
import '@para-ui/icons/LoadingF';
|
package/DynamicMultiBox/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
|
|
2
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
3
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
2
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
3
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.js';
|
|
4
4
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import React__default, { useState, useRef, useEffect, useMemo } from 'react';
|
|
6
6
|
import { Popover } from '../Popover/index.js';
|
|
@@ -21,6 +21,7 @@ import { s as sortable_esm } from '../_verture/sortable.esm-49896035.js';
|
|
|
21
21
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
22
22
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
23
23
|
import '../_verture/typeof-498dd2b1.js';
|
|
24
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
24
25
|
import '../Tooltip/index.js';
|
|
25
26
|
import 'rc-tooltip';
|
|
26
27
|
import 'rc-tooltip/lib/placements';
|
|
@@ -72,7 +73,7 @@ import '@para-ui/icons/Left';
|
|
|
72
73
|
import 'rc-pagination';
|
|
73
74
|
import '@para-ui/icons/Right';
|
|
74
75
|
import '@para-ui/icons/DoubleRight';
|
|
75
|
-
import '../_verture/index-
|
|
76
|
+
import '../_verture/index-74f820ba.js';
|
|
76
77
|
import 'rc-tree';
|
|
77
78
|
import '@para-ui/icons/Document';
|
|
78
79
|
import 'react-dom';
|
package/Form/index.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ interface FormHtmlProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
|
12
12
|
* 配置项项类型
|
|
13
13
|
*/
|
|
14
14
|
export type configListProps = Array<FormItemProps>;
|
|
15
|
+
/**
|
|
16
|
+
* 表单校验方法type
|
|
17
|
+
*/
|
|
18
|
+
export type TCheckFormFunction = (nameList?: string[]) => false | {
|
|
19
|
+
[name: string]: any;
|
|
20
|
+
};
|
|
15
21
|
/**
|
|
16
22
|
* form 表单组件属性
|
|
17
23
|
* @typedef {object} FormProps
|
|
@@ -29,7 +35,7 @@ export interface FormProps {
|
|
|
29
35
|
* 校验表单方法,校验成功返回表单的键值对
|
|
30
36
|
* @return {false | {[name: string]: any}}
|
|
31
37
|
*/
|
|
32
|
-
check?:
|
|
38
|
+
check?: TCheckFormFunction;
|
|
33
39
|
/**
|
|
34
40
|
* 存储所有表单item最后的配置,方便提交时做总的校验
|
|
35
41
|
*/
|
|
@@ -77,7 +83,7 @@ export interface FormProps {
|
|
|
77
83
|
/**
|
|
78
84
|
* 获取表单的校验方法,会传出表单的校验方法
|
|
79
85
|
*/
|
|
80
|
-
getCheckForm?: (checkFrom:
|
|
86
|
+
getCheckForm?: (checkFrom: TCheckFormFunction) => {};
|
|
81
87
|
/**
|
|
82
88
|
* 输入框内容改变传出
|
|
83
89
|
* @param {string} name 表单项的name
|
package/Form/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
1
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-76060636.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-
|
|
6
|
+
import { F as FormItem, v as validate } from '../_verture/index-b47439b6.js';
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
8
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
9
|
import '../TextField/index.js';
|
|
9
10
|
import '../_verture/typeof-498dd2b1.js';
|
|
10
11
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -68,7 +69,7 @@ import '@para-ui/icons/Left';
|
|
|
68
69
|
import 'rc-pagination';
|
|
69
70
|
import '@para-ui/icons/Right';
|
|
70
71
|
import '@para-ui/icons/DoubleRight';
|
|
71
|
-
import '../_verture/index-
|
|
72
|
+
import '../_verture/index-74f820ba.js';
|
|
72
73
|
import 'rc-tree';
|
|
73
74
|
import '@para-ui/icons/Document';
|
|
74
75
|
import 'react-dom';
|
|
@@ -76,6 +77,9 @@ import '@para-ui/icons/EditFile';
|
|
|
76
77
|
import '@para-ui/icons/PlusCircle';
|
|
77
78
|
import '@para-ui/icons/MoreCircle';
|
|
78
79
|
|
|
80
|
+
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; } } }; }
|
|
81
|
+
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); }
|
|
82
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
79
83
|
/**
|
|
80
84
|
* form 表单组件
|
|
81
85
|
* @author zhanzl
|
|
@@ -178,23 +182,35 @@ var Form = function Form(props) {
|
|
|
178
182
|
* 校验表单校验状态
|
|
179
183
|
* @return {boolean | { [name: string]: any }} 返回 校验错误false,如果校验通过则返回表单所有值
|
|
180
184
|
*/
|
|
181
|
-
var checkFrom = function checkFrom() {
|
|
185
|
+
var checkFrom = function checkFrom(nameList) {
|
|
182
186
|
var errorCount = 0;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if (
|
|
196
|
-
|
|
187
|
+
// 需要校验的表单项
|
|
188
|
+
var checkList = nameList ? nameList : refData.current.configList.map(function (item) {
|
|
189
|
+
return item.name;
|
|
190
|
+
});
|
|
191
|
+
var _iterator = _createForOfIteratorHelper(checkList),
|
|
192
|
+
_step;
|
|
193
|
+
try {
|
|
194
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
195
|
+
var key = _step.value;
|
|
196
|
+
var tItem = refData.current.allItems[key];
|
|
197
|
+
// 判断是否已经校验过了 或是 不需要校验,直接跳过
|
|
198
|
+
if (tItem.disabled || tItem.hide || refData.current.itemsCheckStatus[key] === true) continue;
|
|
199
|
+
if (refData.current.itemsCheckStatus[key] === false) {
|
|
200
|
+
errorCount++;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
var msg = validate(tItem, refData.current.allValues[key]);
|
|
204
|
+
if (msg) {
|
|
205
|
+
errorCount++;
|
|
206
|
+
if (typeof msg === 'string') refData.current.itemsCheckMessage[key] = msg;
|
|
207
|
+
tItem.setErrorMsg && tItem.setErrorMsg(msg);
|
|
208
|
+
}
|
|
197
209
|
}
|
|
210
|
+
} catch (err) {
|
|
211
|
+
_iterator.e(err);
|
|
212
|
+
} finally {
|
|
213
|
+
_iterator.f();
|
|
198
214
|
}
|
|
199
215
|
return !errorCount && refData.current.allValues;
|
|
200
216
|
};
|
package/FormItem/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { F as default } from '../_verture/index-
|
|
3
|
+
export { F as default } from '../_verture/index-b47439b6.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-66aa48a1.js';
|
|
7
|
-
import '../_verture/slicedToArray-
|
|
7
|
+
import '../_verture/slicedToArray-76060636.js';
|
|
8
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
8
9
|
import '../TextField/index.js';
|
|
9
10
|
import '../_verture/typeof-498dd2b1.js';
|
|
10
11
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
@@ -32,7 +33,7 @@ import '../RadioGroup/index.js';
|
|
|
32
33
|
import '../Radio/index.js';
|
|
33
34
|
import '../Select/index.js';
|
|
34
35
|
import '../_verture/defineProperty-62acccfc.js';
|
|
35
|
-
import '../_verture/toConsumableArray-
|
|
36
|
+
import '../_verture/toConsumableArray-81040c9e.js';
|
|
36
37
|
import '../Empty/index.js';
|
|
37
38
|
import '../_verture/useFormatMessage-703f8b20.js';
|
|
38
39
|
import '@para-ui/icons/Close';
|
|
@@ -68,7 +69,7 @@ import '@para-ui/icons/Left';
|
|
|
68
69
|
import 'rc-pagination';
|
|
69
70
|
import '@para-ui/icons/Right';
|
|
70
71
|
import '@para-ui/icons/DoubleRight';
|
|
71
|
-
import '../_verture/index-
|
|
72
|
+
import '../_verture/index-74f820ba.js';
|
|
72
73
|
import 'rc-tree';
|
|
73
74
|
import '@para-ui/icons/Document';
|
|
74
75
|
import 'react-dom';
|
package/FunctionModal/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { u as useModal } from '../_verture/modalContext-
|
|
2
|
-
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-
|
|
3
|
-
import '../_verture/toConsumableArray-
|
|
4
|
-
import '../_verture/
|
|
1
|
+
import { u as useModal } from '../_verture/modalContext-92bb0e16.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-92bb0e16.js';
|
|
3
|
+
import '../_verture/toConsumableArray-81040c9e.js';
|
|
4
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
5
|
+
import '../_verture/slicedToArray-76060636.js';
|
|
5
6
|
import '../_verture/index-beef914f.js';
|
|
6
7
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
7
8
|
import 'react/jsx-runtime';
|
package/Help/index.js
CHANGED
|
@@ -5,7 +5,8 @@ import HelpIcon from '@para-ui/icons/Help';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { $ as $prefixCls } from '../_verture/constant-66aa48a1.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import '../_verture/slicedToArray-
|
|
8
|
+
import '../_verture/slicedToArray-76060636.js';
|
|
9
|
+
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
9
10
|
import 'react';
|
|
10
11
|
import 'rc-tooltip';
|
|
11
12
|
import 'rc-tooltip/lib/placements';
|
package/InputLang/index.d.ts
CHANGED
|
@@ -39,8 +39,19 @@ export interface InputLangProps extends HelperTextDetailProps {
|
|
|
39
39
|
value?: valueProps;
|
|
40
40
|
/** 改变值 */
|
|
41
41
|
onChange?: (val: valueProps) => void;
|
|
42
|
-
/**
|
|
43
|
-
langList?: string
|
|
42
|
+
/** 语言列表 */
|
|
43
|
+
langList?: (string | {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
})[];
|
|
47
|
+
/** 默认语种 */
|
|
48
|
+
defaultLang?: string;
|
|
49
|
+
/** 禁用增加 */
|
|
50
|
+
disabledAdd?: boolean;
|
|
51
|
+
/** 禁用删除 */
|
|
52
|
+
disabledDelete?: boolean;
|
|
53
|
+
/** 禁用key */
|
|
54
|
+
disabledKey?: boolean | string[];
|
|
44
55
|
}
|
|
45
56
|
export declare const InputLang: FunctionComponent<InputLangProps>;
|
|
46
57
|
export default InputLang;
|