@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.
Files changed (87) hide show
  1. package/AutoBox/index.js +2 -1
  2. package/AutoTips/index.js +2 -1
  3. package/Breadcrumbs/index.js +3 -2
  4. package/Button/index.js +2 -1
  5. package/ButtonGroup/index.js +2 -1
  6. package/Cascader/index.js +3 -2
  7. package/Checkbox/index.js +2 -1
  8. package/CheckboxGroup/index.js +2 -1
  9. package/CollapseBox/index.js +2 -1
  10. package/CollapseLayout/index.js +2 -1
  11. package/ComboSelect/index.js +4 -3
  12. package/DatePicker/index.js +3 -2
  13. package/Desktop/index.js +3 -2
  14. package/DragVerify/index.js +2 -1
  15. package/Drawer/index.js +2 -1
  16. package/DynamicMultiBox/index.js +4 -3
  17. package/Form/index.d.ts +8 -2
  18. package/Form/index.js +35 -19
  19. package/FormItem/index.js +5 -4
  20. package/FunctionModal/index.js +5 -4
  21. package/Help/index.js +2 -1
  22. package/InputLang/index.d.ts +13 -2
  23. package/InputLang/index.js +146 -37
  24. package/InputNumber/index.js +2 -1
  25. package/Label/index.js +2 -1
  26. package/Menu/index.js +3 -2
  27. package/Message/index.d.ts +26 -0
  28. package/Message/index.js +50 -8
  29. package/Modal/index.js +2 -1
  30. package/MultiBox/index.d.ts +3 -1
  31. package/MultiBox/index.js +16 -10
  32. package/OperateBtn/index.js +2 -1
  33. package/PageHeader/index.js +3 -2
  34. package/Pagination/index.js +3 -2
  35. package/PopConfirm/index.js +2 -1
  36. package/Popover/index.js +2 -1
  37. package/README.md +25 -0
  38. package/Radio/index.js +2 -1
  39. package/RadioGroup/index.js +2 -1
  40. package/Search/index.js +2 -1
  41. package/Select/index.js +4 -3
  42. package/SelectInput/index.js +3 -2
  43. package/Selector/index.js +3 -2
  44. package/SelectorPicker/index.js +4 -3
  45. package/SingleBox/index.js +3 -2
  46. package/Slider/index.js +2 -1
  47. package/Split/index.js +2 -1
  48. package/Switch/index.js +2 -1
  49. package/Table/index.js +3 -2
  50. package/Tabs/index.js +2 -1
  51. package/Tag/index.js +3 -2
  52. package/TextEditor/index.js +2 -1
  53. package/TextField/index.d.ts +0 -2
  54. package/TextField/index.js +5 -6
  55. package/TimePicker/index.js +3 -2
  56. package/ToggleButton/index.js +2 -1
  57. package/Tooltip/index.js +2 -1
  58. package/Transfer/index.js +3 -2
  59. package/Tree/index.js +5 -4
  60. package/Upload/index.js +3 -2
  61. package/_verture/{index-5ca4181b.js → index-74f820ba.js} +2 -2
  62. package/_verture/{index-b30abb46.js → index-b47439b6.js} +1 -1
  63. package/_verture/{modalContext-f70ba993.js → modalContext-92bb0e16.js} +2 -2
  64. package/_verture/{slicedToArray-708dbb18.js → slicedToArray-76060636.js} +3 -16
  65. package/_verture/{toConsumableArray-57dd2e23.js → toConsumableArray-81040c9e.js} +1 -1
  66. package/_verture/unsupportedIterableToArray-cb478f24.js +16 -0
  67. package/index.js +7 -6
  68. package/package.json +1 -1
  69. package/umd/ComboSelect.js +2 -2
  70. package/umd/Desktop.js +1 -1
  71. package/umd/Drawer.js +4 -4
  72. package/umd/DynamicMultiBox.js +4 -4
  73. package/umd/Form.js +3 -3
  74. package/umd/FormItem.js +2 -2
  75. package/umd/InputLang.js +4 -4
  76. package/umd/Message.js +3 -3
  77. package/umd/MultiBox.js +2 -2
  78. package/umd/Pagination.js +2 -2
  79. package/umd/Search.js +1 -1
  80. package/umd/Select.js +4 -4
  81. package/umd/SelectInput.js +7 -7
  82. package/umd/Selector.js +1 -1
  83. package/umd/SelectorPicker.js +2 -2
  84. package/umd/SingleBox.js +1 -1
  85. package/umd/Table.js +2 -2
  86. package/umd/TextField.js +1 -1
  87. package/umd/Transfer.js +1 -1
package/AutoBox/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-708dbb18.js';
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';
@@ -1,5 +1,5 @@
1
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-708dbb18.js';
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';
@@ -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-708dbb18.js';
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-57dd2e23.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-708dbb18.js';
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';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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';
@@ -1,10 +1,11 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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);
@@ -1,5 +1,5 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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);
@@ -1,6 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-5ca4181b.js';
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';
@@ -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-708dbb18.js';
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-57dd2e23.js';
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-57dd2e23.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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';
@@ -1,4 +1,4 @@
1
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-708dbb18.js';
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';
@@ -1,6 +1,6 @@
1
1
  import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as _toConsumableArray } from '../_verture/toConsumableArray-57dd2e23.js';
3
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-5ca4181b.js';
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?: Function;
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: Function) => {};
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-57dd2e23.js';
2
- import { _ as _slicedToArray } from '../_verture/slicedToArray-708dbb18.js';
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-b30abb46.js';
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-5ca4181b.js';
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
- for (var i = 0; i < refData.current.configList.length; i++) {
184
- var key = refData.current.configList[i].name;
185
- var tItem = refData.current.allItems[key];
186
- // 判断是否已经校验过了 或是 不需要校验,直接跳过
187
- if (tItem.disabled || tItem.hide || refData.current.itemsCheckStatus[key] === true) continue;
188
- if (refData.current.itemsCheckStatus[key] === false) {
189
- errorCount++;
190
- continue;
191
- }
192
- var msg = validate(tItem, refData.current.allValues[key]);
193
- if (msg) {
194
- errorCount++;
195
- if (typeof msg === 'string') refData.current.itemsCheckMessage[key] = msg;
196
- tItem.setErrorMsg && tItem.setErrorMsg(msg);
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-b30abb46.js';
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-708dbb18.js';
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-57dd2e23.js';
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-5ca4181b.js';
72
+ import '../_verture/index-74f820ba.js';
72
73
  import 'rc-tree';
73
74
  import '@para-ui/icons/Document';
74
75
  import 'react-dom';
@@ -1,7 +1,8 @@
1
- import { u as useModal } from '../_verture/modalContext-f70ba993.js';
2
- export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-f70ba993.js';
3
- import '../_verture/toConsumableArray-57dd2e23.js';
4
- import '../_verture/slicedToArray-708dbb18.js';
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-708dbb18.js';
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';
@@ -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;