@para-ui/core 3.0.92-rc → 3.0.93-beta
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 +9 -5
- package/AutoTips/index.js +11 -4
- package/Breadcrumbs/index.js +11 -7
- package/Button/index.js +12 -8
- package/ButtonGroup/index.js +12 -8
- package/Carousel/index.js +8 -4
- package/Cascader/index.js +11 -7
- package/Checkbox/index.js +8 -4
- package/CheckboxGroup/index.js +8 -4
- package/Collapse/index.js +5 -1
- package/CollapseBox/index.js +8 -4
- package/CollapseLayout/index.js +10 -6
- package/ColorPicker/index.js +2 -0
- package/ComboSelect/index.js +18 -14
- package/Container/index.js +5 -1
- package/DatePicker/index.js +14 -10
- package/Desktop/index.js +14 -10
- package/DragVerify/index.js +10 -6
- package/Drawer/index.js +12 -8
- package/Dropdown/index.js +4 -3
- package/DynamicMultiBox/index.js +19 -15
- package/Empty/index.js +7 -3
- package/Form/index.js +16 -15
- package/FormItem/index.d.ts +4 -0
- package/FormItem/index.js +16 -15
- package/FunctionModal/index.js +15 -14
- package/GlobalContext/index.js +3 -3
- package/Help/index.js +8 -4
- package/HelperText/index.js +5 -1
- package/InputLang/index.js +15 -11
- package/InputNumber/index.js +8 -4
- package/Label/index.js +8 -4
- package/Loading/index.js +5 -1
- package/Menu/index.js +9 -5
- package/Message/index.js +8 -4
- package/Modal/index.js +17 -10
- package/MultiBox/index.js +14 -10
- package/Notification/index.js +7 -3
- package/OperateBtn/index.js +13 -9
- package/PageHeader/index.js +13 -9
- package/Pagination/index.js +15 -11
- package/ParauiProvider/index.js +10 -3
- package/PasswordRules/index.js +7 -3
- package/PopConfirm/index.js +12 -8
- package/Popover/index.js +9 -5
- package/Progress/index.js +6 -2
- package/Querying/index.js +7 -3
- package/README.md +5 -0
- package/Radio/index.js +8 -4
- package/RadioGroup/index.js +8 -4
- package/Search/index.js +13 -9
- package/Select/index.js +15 -11
- package/SelectInput/index.js +12 -11
- package/Selector/index.js +24 -11
- package/SelectorPicker/index.js +16 -12
- package/SingleBox/index.js +14 -10
- package/Slider/index.js +10 -6
- package/Split/index.js +8 -4
- package/Status/index.js +5 -1
- package/Stepper/index.js +7 -3
- package/Switch/index.js +10 -6
- package/Table/index.js +37 -12
- package/Tabs/index.js +13 -9
- package/Tag/index.js +11 -7
- package/TextEditor/index.js +12 -5
- package/TextField/index.js +12 -8
- package/TimePicker/index.js +11 -10
- package/Timeline/index.js +8 -4
- package/Title/index.js +5 -1
- package/ToggleButton/index.js +13 -9
- package/Tooltip/index.js +8 -4
- package/Transfer/index.js +17 -13
- package/Tree/index.js +13 -12
- package/Upload/index.js +28 -12
- package/_verture/{defineProperty-e729a320.js → defineProperty-62acccfc.js} +1 -1
- package/_verture/{index-383f675d.js → index-0732ec3c.js} +6 -2
- package/_verture/{closestPolyfill-1f8bf9f2.js → index-1a55db55.js} +15 -8
- package/_verture/index-a369ca3f.js +4 -0
- package/_verture/{index-7549c845.js → index-dc433156.js} +14 -6
- package/_verture/{intl-0422b858.js → intl-4a9f1b44.js} +1 -1
- package/_verture/{modalContext-596b8662.js → modalContext-5439180f.js} +8 -4
- package/_verture/{slicedToArray-8aff58fe.js → slicedToArray-76060636.js} +1 -1
- package/_verture/style-inject.es-300983ab.js +28 -0
- package/_verture/{toConsumableArray-9281dc38.js → toConsumableArray-81040c9e.js} +1 -1
- package/_verture/{utils-f01f50a9.js → utils-c9b9a157.js} +1 -1
- package/index.js +22 -20
- package/package.json +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/theme/theme-api.css +0 -14167
- /package/_verture/{constant-a5bc0793.js → constant-66aa48a1.js} +0 -0
- /package/_verture/{index-4fd2b25a.js → index-65bbd1e4.js} +0 -0
- /package/_verture/{index-59b0a520.js → index-beef914f.js} +0 -0
- /package/_verture/{sortable.esm-c9d2bc7d.js → sortable.esm-49896035.js} +0 -0
- /package/_verture/{tslib.es6-2834ab12.js → tslib.es6-55ed4bd2.js} +0 -0
- /package/_verture/{typeof-deea1bb6.js → typeof-498dd2b1.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-e38d5bd7.js → unsupportedIterableToArray-cb478f24.js} +0 -0
- /package/_verture/{useFormatMessage-2c1d843e.js → useFormatMessage-703f8b20.js} +0 -0
- /package/_verture/{useGlobalProps-846a80fb.js → useGlobalProps-1b846a65.js} +0 -0
- /package/_verture/{usePopupContainer-92beddef.js → usePopupContainer-87febeb9.js} +0 -0
- /package/_verture/{util-a064dba3.js → util-7e1fb1e2.js} +0 -0
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-76060636.js';
|
|
4
4
|
import { TextField } from '../TextField/index.js';
|
|
5
5
|
import { RadioGroup } from '../RadioGroup/index.js';
|
|
6
6
|
import Select from '../Select/index.js';
|
|
7
7
|
import { CheckboxGroup } from '../CheckboxGroup/index.js';
|
|
8
|
-
import { _ as _typeof } from './typeof-
|
|
8
|
+
import { _ as _typeof } from './typeof-498dd2b1.js';
|
|
9
9
|
import { Switch } from '../Switch/index.js';
|
|
10
10
|
import Delete from '@para-ui/icons/Delete';
|
|
11
11
|
import ParaLinkGroup from '@para-ui/icons/LinkGroup';
|
|
12
12
|
import AutoTips from '../AutoTips/index.js';
|
|
13
13
|
import { Button } from '../Button/index.js';
|
|
14
|
-
import { u as useFormatMessage } from './useFormatMessage-
|
|
14
|
+
import { u as useFormatMessage } from './useFormatMessage-703f8b20.js';
|
|
15
|
+
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
15
16
|
import { InputNumber } from '../InputNumber/index.js';
|
|
16
17
|
import { ComboSelect } from '../ComboSelect/index.js';
|
|
17
18
|
import HelperText from '../HelperText/index.js';
|
|
18
19
|
import clsx from 'clsx';
|
|
19
20
|
import Label from '../Label/index.js';
|
|
20
|
-
import { $ as $prefixCls } from './constant-
|
|
21
|
+
import { $ as $prefixCls } from './constant-66aa48a1.js';
|
|
21
22
|
|
|
22
23
|
var FormRadioGroup = function FormRadioGroup(props) {
|
|
23
24
|
var defaultValue = props.defaultValue,
|
|
@@ -267,6 +268,9 @@ var localeJson = {
|
|
|
267
268
|
en: en
|
|
268
269
|
};
|
|
269
270
|
|
|
271
|
+
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.form-file {\n padding: 6px;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.form-file .file-tips {\n min-height: 20px;\n position: relative;\n padding: 6px;\n}\n.form-file .file-tips .file-tips-item {\n position: relative;\n height: 20px;\n line-height: 16px;\n padding-right: 20px;\n}\n.form-file .file-tips .file-tips-item > [data-name=LinkGroup] {\n vertical-align: middle;\n margin-right: 9px;\n}\n.form-file .file-tips .file-tips-item .file-tips-context {\n display: inline-block;\n vertical-align: middle;\n width: calc(100% - 45px);\n color: rgba(46, 55, 67, 0.7);\n}\n.form-file .file-tips .file-tips-item > [data-name=Delete] {\n display: none;\n vertical-align: middle;\n cursor: pointer;\n position: absolute;\n right: 3px;\n top: 2px;\n}\n.form-file .file-tips .file-tips-item > [data-name=Delete]:hover {\n opacity: 0.8;\n}\n.form-file .file-tips .file-tips-item:hover {\n backgroundColor: #f5f5f5;\n}\n.form-file .file-tips .file-tips-item:hover > [data-name=Delete] {\n display: inline-block;\n}";
|
|
272
|
+
styleInject(css_248z$1);
|
|
273
|
+
|
|
270
274
|
/**
|
|
271
275
|
* 文件组件
|
|
272
276
|
*/
|
|
@@ -414,7 +418,8 @@ var ItemType = function ItemType(props) {
|
|
|
414
418
|
setError = props.setError,
|
|
415
419
|
backData = props.backData,
|
|
416
420
|
disabled = props.disabled,
|
|
417
|
-
change = props.change
|
|
421
|
+
change = props.change,
|
|
422
|
+
isComponents = props.isComponents;
|
|
418
423
|
var intl = useFormatMessage('FormItem', localeJson);
|
|
419
424
|
var tipsStr = placeholder || "".concat(label);
|
|
420
425
|
/**
|
|
@@ -466,7 +471,7 @@ var ItemType = function ItemType(props) {
|
|
|
466
471
|
* 判断显示那个
|
|
467
472
|
*/
|
|
468
473
|
var selectType = function selectType() {
|
|
469
|
-
if (itemType && typeof itemType !== 'string' && (!itemType.name || itemType.name === 'InputType')) {
|
|
474
|
+
if (!isComponents && itemType && typeof itemType !== 'string' && (!itemType.name || itemType.name === 'InputType')) {
|
|
470
475
|
var item = Object.assign(Object.assign({}, props), {
|
|
471
476
|
setErrorMsg: setErrorMsg,
|
|
472
477
|
setAndValidateValue: setAndValidateValue
|
|
@@ -625,6 +630,9 @@ var ErrorTips = function ErrorTips(props) {
|
|
|
625
630
|
}, helperTextProps));
|
|
626
631
|
};
|
|
627
632
|
|
|
633
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-form-item {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v3-form-item .paraui-v3-text-field {\n display: block;\n}\n.paraui-v3-form-item.paraui-v3-form-item-checkGroup .form-label .form-labe-text, .paraui-v3-form-item.paraui-v3-form-item-radioGroup .form-label .form-labe-text {\n margin-bottom: 4px;\n}\n.paraui-v3-form-item .form-label {\n display: inline-block;\n}\n.paraui-v3-form-item .form-edit > div {\n padding: 0;\n width: 100%;\n}\n.paraui-v3-form-item .form-content-vertical {\n display: inline-block;\n width: 100%;\n}";
|
|
634
|
+
styleInject(css_248z);
|
|
635
|
+
|
|
628
636
|
var formInputTypeJson = {
|
|
629
637
|
checkGroup: true,
|
|
630
638
|
select: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _typeof } from './typeof-
|
|
1
|
+
import { _ as _typeof } from './typeof-498dd2b1.js';
|
|
2
2
|
|
|
3
3
|
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; } } }; }
|
|
4
4
|
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); }
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
3
|
-
import { r as regenerator } from './index-
|
|
4
|
-
import { a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-76060636.js';
|
|
3
|
+
import { r as regenerator } from './index-beef914f.js';
|
|
4
|
+
import { a as __awaiter } from './tslib.es6-55ed4bd2.js';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import React__default from 'react';
|
|
7
7
|
import { Modal } from '../Modal/index.js';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
+
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = ".function-modal-default [class*=makeStyles-md] {\n width: 440px;\n height: auto;\n max-height: initial;\n}";
|
|
12
|
+
styleInject(css_248z);
|
|
9
13
|
|
|
10
14
|
var FDialog = function FDialog(props) {
|
|
11
15
|
var open = props.open,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function styleInject(css, ref) {
|
|
2
|
+
if ( ref === void 0 ) ref = {};
|
|
3
|
+
var insertAt = ref.insertAt;
|
|
4
|
+
|
|
5
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
6
|
+
|
|
7
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
+
var style = document.createElement('style');
|
|
9
|
+
style.type = 'text/css';
|
|
10
|
+
|
|
11
|
+
if (insertAt === 'top') {
|
|
12
|
+
if (head.firstChild) {
|
|
13
|
+
head.insertBefore(style, head.firstChild);
|
|
14
|
+
} else {
|
|
15
|
+
head.appendChild(style);
|
|
16
|
+
}
|
|
17
|
+
} else {
|
|
18
|
+
head.appendChild(style);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (style.styleSheet) {
|
|
22
|
+
style.styleSheet.cssText = css;
|
|
23
|
+
} else {
|
|
24
|
+
style.appendChild(document.createTextNode(css));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { styleInject as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-
|
|
1
|
+
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cb478f24.js';
|
|
2
2
|
|
|
3
3
|
function _arrayWithoutHoles(arr) {
|
|
4
4
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
package/index.js
CHANGED
|
@@ -11,18 +11,19 @@ export { Collapse } from './Collapse/index.js';
|
|
|
11
11
|
export { default as CollapseBox } from './CollapseBox/index.js';
|
|
12
12
|
export { default as CollapseLayout } from './CollapseLayout/index.js';
|
|
13
13
|
export { ChromePicker, SketchPicker as ColorPicker, CompactPicker, SwatchesPicker } from 'react-color';
|
|
14
|
+
import './_verture/index-a369ca3f.js';
|
|
14
15
|
export { ComboSelect } from './ComboSelect/index.js';
|
|
15
16
|
export { Container } from './Container/index.js';
|
|
16
17
|
export { default as DatePicker } from './DatePicker/index.js';
|
|
17
18
|
export { Desktop } from './Desktop/index.js';
|
|
18
19
|
export { DragVerify } from './DragVerify/index.js';
|
|
19
20
|
export { Drawer } from './Drawer/index.js';
|
|
20
|
-
export { D as Dropdown } from './_verture/index-
|
|
21
|
+
export { D as Dropdown } from './_verture/index-0732ec3c.js';
|
|
21
22
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
22
23
|
export { default as Empty } from './Empty/index.js';
|
|
23
24
|
export { default as Form } from './Form/index.js';
|
|
24
|
-
export { F as FormItem } from './_verture/index-
|
|
25
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
25
|
+
export { F as FormItem } from './_verture/index-dc433156.js';
|
|
26
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-5439180f.js';
|
|
26
27
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
27
28
|
export { default as Help } from './Help/index.js';
|
|
28
29
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -68,43 +69,44 @@ export { Title } from './Title/index.js';
|
|
|
68
69
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
69
70
|
export { Tooltip } from './Tooltip/index.js';
|
|
70
71
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
71
|
-
export { T as Tree } from './_verture/
|
|
72
|
+
export { T as Tree } from './_verture/index-1a55db55.js';
|
|
72
73
|
export { default as Upload } from './Upload/index.js';
|
|
73
74
|
export { default as locale } from './locale/index.js';
|
|
74
|
-
import './_verture/slicedToArray-
|
|
75
|
-
import './_verture/unsupportedIterableToArray-
|
|
75
|
+
import './_verture/slicedToArray-76060636.js';
|
|
76
|
+
import './_verture/unsupportedIterableToArray-cb478f24.js';
|
|
76
77
|
import 'react/jsx-runtime';
|
|
77
78
|
import 'react';
|
|
78
79
|
import 'react-dom';
|
|
79
80
|
import '@paraview/lib';
|
|
80
|
-
import './_verture/constant-
|
|
81
|
+
import './_verture/constant-66aa48a1.js';
|
|
81
82
|
import '@para-ui/icons/More';
|
|
82
|
-
import './_verture/
|
|
83
|
+
import './_verture/style-inject.es-300983ab.js';
|
|
84
|
+
import './_verture/toConsumableArray-81040c9e.js';
|
|
83
85
|
import '@para-ui/icons/Return';
|
|
84
|
-
import './_verture/useFormatMessage-
|
|
86
|
+
import './_verture/useFormatMessage-703f8b20.js';
|
|
85
87
|
import '@para-ui/core/GlobalContext';
|
|
86
|
-
import './_verture/typeof-
|
|
87
|
-
import './_verture/tslib.es6-
|
|
88
|
+
import './_verture/typeof-498dd2b1.js';
|
|
89
|
+
import './_verture/tslib.es6-55ed4bd2.js';
|
|
88
90
|
import 'clsx';
|
|
89
91
|
import '@para-ui/icons/LoadingF';
|
|
90
92
|
import '@para-ui/icons/Forbid';
|
|
91
93
|
import '@para-ui/icons/Down';
|
|
92
|
-
import './_verture/defineProperty-
|
|
94
|
+
import './_verture/defineProperty-62acccfc.js';
|
|
93
95
|
import 'react-slick';
|
|
94
|
-
import './_verture/index-
|
|
96
|
+
import './_verture/index-beef914f.js';
|
|
95
97
|
import 'rc-cascader';
|
|
96
98
|
import '@para-ui/icons/Right';
|
|
97
99
|
import '@para-ui/icons/Loading';
|
|
98
100
|
import 'rc-collapse';
|
|
99
101
|
import 'react-transition-group';
|
|
100
|
-
import './_verture/util-
|
|
102
|
+
import './_verture/util-7e1fb1e2.js';
|
|
101
103
|
import '@para-ui/icons/DoubleLeft';
|
|
102
104
|
import '@para-ui/icons/DoubleRight';
|
|
103
105
|
import '@para-ui/icons/Search';
|
|
104
106
|
import '@para-ui/icons/Close';
|
|
105
107
|
import '@para-ui/icons/CloseCircle';
|
|
106
|
-
import './_verture/utils-
|
|
107
|
-
import './_verture/useGlobalProps-
|
|
108
|
+
import './_verture/utils-c9b9a157.js';
|
|
109
|
+
import './_verture/useGlobalProps-1b846a65.js';
|
|
108
110
|
import 'rc-picker/es/generate/dayjs';
|
|
109
111
|
import 'rc-picker';
|
|
110
112
|
import '@para-ui/icons/Calendar';
|
|
@@ -115,16 +117,16 @@ import '@para-ui/icons/SortRight';
|
|
|
115
117
|
import '@para-ui/icons/Check';
|
|
116
118
|
import 'rc-drawer';
|
|
117
119
|
import 'rc-dropdown';
|
|
118
|
-
import './_verture/usePopupContainer-
|
|
120
|
+
import './_verture/usePopupContainer-87febeb9.js';
|
|
119
121
|
import 'dayjs';
|
|
120
122
|
import '@para-ui/icons/Panel';
|
|
121
123
|
import '@para-ui/icons/PlusCircleF';
|
|
122
124
|
import '@para-ui/icons/Delete';
|
|
123
125
|
import '@para-ui/icons/Drag';
|
|
124
|
-
import './_verture/sortable.esm-
|
|
126
|
+
import './_verture/sortable.esm-49896035.js';
|
|
125
127
|
import '@para-ui/icons/LinkGroup';
|
|
126
|
-
import './_verture/intl-
|
|
127
|
-
import './_verture/index-
|
|
128
|
+
import './_verture/intl-4a9f1b44.js';
|
|
129
|
+
import './_verture/index-65bbd1e4.js';
|
|
128
130
|
import '@para-ui/icons/Help';
|
|
129
131
|
import '@para-ui/icons/Application';
|
|
130
132
|
import 'rc-input-number';
|