@para-ui/core 4.0.0-beta → 4.0.0-rc.1
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.d.ts +1 -1
- package/AutoBox/index.js +12 -12
- package/AutoTips/autoTipsMultiline/index.d.ts +1 -1
- package/AutoTips/index.d.ts +2 -2
- package/AutoTips/index.js +17 -17
- package/Badge/index.d.ts +23 -0
- package/Badge/index.js +54 -0
- package/Breadcrumbs/index.js +8 -8
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/index.js +4 -4
- package/Carousel/index.d.ts +6 -6
- package/Carousel/index.js +5 -5
- package/Cascader/Cascader.d.ts +10 -10
- package/Cascader/OptionList/Column.d.ts +3 -3
- package/Cascader/OptionList/index.d.ts +2 -2
- package/Cascader/index.d.ts +1 -1
- package/Cascader/index.js +5 -3
- package/Cascader/lang/en_US.d.ts +5 -0
- package/Cascader/lang/index.d.ts +11 -0
- package/Cascader/lang/zh_CN.d.ts +5 -0
- package/Cascader/utils/treeUtil.d.ts +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/index.js +5 -5
- package/CheckboxGroup/index.d.ts +2 -2
- package/CheckboxGroup/index.js +3 -3
- package/Collapse/index.js +4 -4
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +20 -20
- package/ColorPicker/index.js +2 -2
- package/ComboSelect/index.js +53 -63
- package/ComboSelect/interface.d.ts +3 -3
- package/ComboSelect/utils.d.ts +5 -0
- package/Container/index.d.ts +3 -3
- package/Container/index.js +56 -56
- package/CopyText/index.d.ts +2 -2
- package/CopyText/index.js +2 -2
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +10 -8
- package/DatePicker/util.d.ts +1 -1
- package/Desktop/index.d.ts +1 -1
- package/Desktop/index.js +19 -14
- package/DragVerify/index.d.ts +1 -1
- package/DragVerify/index.js +15 -15
- package/Drawer/index.d.ts +2 -2
- package/Drawer/index.js +118 -17
- package/Drawer/interface.d.ts +10 -2
- package/Drawer/util.d.ts +6 -0
- package/Dropdown/index.d.ts +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -1
- package/DynamicMultiBox/index.d.ts +7 -2
- package/DynamicMultiBox/index.js +42 -39
- package/DynamicMultiBox/interface.d.ts +8 -8
- package/DynamicMultiBox/rowForm.d.ts +3 -1
- package/Empty/index.d.ts +1 -1
- package/Empty/index.js +2 -2
- package/Form/index.d.ts +12 -13
- package/Form/index.js +14 -12
- package/FormItem/compoments/defaultCompoments/index.d.ts +4 -4
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +1 -1
- package/FormItem/compoments/formFile/index.d.ts +2 -2
- package/FormItem/compoments/formRadioGroup/index.d.ts +1 -1
- package/FormItem/compoments/formSelect/index.d.ts +7 -7
- package/FormItem/errorTips.d.ts +3 -3
- package/FormItem/index.d.ts +5 -5
- package/FormItem/index.js +7 -6
- package/FormItem/lang/en_US.d.ts +10 -0
- package/FormItem/lang/index.d.ts +21 -0
- package/FormItem/lang/zh_CN.d.ts +10 -0
- package/FormItem/validateFunction.d.ts +1 -1
- package/FunctionModal/dialog.d.ts +26 -26
- package/FunctionModal/index.d.ts +6 -6
- package/FunctionModal/index.js +9 -9
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/index.js +1 -1
- package/GlobalContext/useFormatMessage.d.ts +1 -1
- package/Help/index.js +2 -2
- package/HelperText/index.js +1 -1
- package/InputLang/index.d.ts +2 -2
- package/InputLang/index.js +8 -8
- package/InputNumber/index.d.ts +2 -2
- package/InputNumber/index.js +4 -4
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +14 -14
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +12 -12
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +7 -7
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +11 -7
- package/Notification/index.js +2 -2
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +42 -37
- package/PageHeader/index.js +31 -31
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +17 -17
- package/ParauiProvider/index.js +1 -1
- package/PasswordRules/index.js +8 -8
- package/PopConfirm/index.js +4 -4
- package/Progress/Line.d.ts +10 -10
- package/Progress/Steps.d.ts +2 -2
- package/Progress/index.d.ts +12 -12
- package/Progress/index.js +40 -40
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +2 -2
- package/README.md +3 -0
- package/Radio/index.d.ts +1 -1
- package/Radio/index.js +5 -5
- package/RadioGroup/index.d.ts +2 -2
- package/RadioGroup/index.js +3 -3
- package/Search/index.js +2 -2
- package/Select/index.d.ts +3 -3
- package/Select/index.js +43 -43
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +19 -19
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +12 -12
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +3 -3
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +6 -4
- package/Status/index.js +21 -9
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +24 -24
- package/Styles/scrollbar.scss +66 -66
- package/Styles/theme.scss +62 -61
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +24 -6
- package/Switch/lang/en_US.d.ts +4 -0
- package/Switch/lang/index.d.ts +9 -0
- package/Switch/lang/zh_CN.d.ts +4 -0
- package/Table/index.js +36 -36
- package/Table/interface.d.ts +4 -4
- package/Table/tableBodyElement/index.d.ts +1 -1
- package/Table/tableBodyInterface.d.ts +2 -2
- package/Table/tableContainer/index.d.ts +1 -1
- package/Table/tableElement/index.d.ts +1 -1
- package/Table/tableHeadElement/index.d.ts +1 -1
- package/Table/tableHeadInterface.d.ts +1 -1
- package/Table/tablePaginationInterface.d.ts +6 -6
- package/Table/tdElement/index.d.ts +1 -1
- package/Table/thElement/index.d.ts +2 -2
- package/Table/trElement/index.d.ts +1 -1
- package/Table/util.d.ts +1 -1
- package/Tabs/index.d.ts +1 -1
- package/Tabs/index.js +26 -18
- package/Tag/TagGroup.d.ts +5 -5
- package/Tag/index.d.ts +7 -7
- package/Tag/index.js +33 -1207
- package/TextEditor/index.d.ts +2 -2
- package/TextEditor/index.js +45 -27
- package/TextEditor/lang/en_US.d.ts +4 -0
- package/TextEditor/lang/index.d.ts +9 -0
- package/TextEditor/lang/zh_CN.d.ts +4 -0
- package/TextField/index.d.ts +1 -1
- package/TextField/index.js +13 -13
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +2 -1
- package/Timeline/TimelineItem.d.ts +1 -1
- package/Timeline/index.d.ts +5 -5
- package/Timeline/index.js +14 -14
- package/Title/index.d.ts +6 -4
- package/Title/index.js +9 -5
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.d.ts +5 -1
- package/ToggleButton/index.js +17 -10
- package/Tooltip/index.js +1 -1
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +27 -27
- package/Tree/OperateBar/index.d.ts +2 -2
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +4 -4
- package/Tree/interface.d.ts +8 -4
- package/Tree/utils/tools.d.ts +1 -1
- package/Upload/Dragger/index.d.ts +2 -2
- package/Upload/ErroTip/index.d.ts +1 -1
- package/Upload/index.d.ts +2 -2
- package/Upload/index.js +13 -13
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-5c77417d.js → index-0f315bca.js} +4 -4
- package/_verture/{index-e2881a53.js → index-19947788.js} +2 -2
- package/_verture/{index-d63bd287.js → index-232d890b.js} +1 -1
- package/_verture/{index-68db2bc3.js → index-92e406f4.js} +50 -26
- package/_verture/{index-7ec72724.js → index-bc461491.js} +45 -38
- package/_verture/{index-e6f85fd5.js → index-d251967e.js} +104 -47
- package/_verture/{modalContext-c12ca3e8.js → modalContext-9299acc9.js} +26 -26
- package/_verture/tinycolor-ece3542d.js +1180 -0
- package/_verture/{utils-f0e81540.js → utils-06d86594.js} +3 -6
- package/index.d.ts +2 -0
- package/index.js +14 -13
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +41 -3
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +53 -8
- package/umd/AutoBox.js +2 -2
- package/umd/AutoTips.js +4 -4
- package/umd/Badge.js +1 -0
- package/umd/Breadcrumbs.js +2 -2
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +4 -4
- package/umd/Cascader.js +4 -4
- package/umd/Checkbox.js +5 -5
- package/umd/CheckboxGroup.js +5 -5
- package/umd/Collapse.js +1 -1
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +6 -6
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +2 -2
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +2 -2
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +2 -2
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +4 -4
- package/umd/InputNumber.js +2 -2
- package/umd/Label.js +2 -2
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +2 -2
- package/umd/Message.js +1 -1
- package/umd/Modal.js +2 -2
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +2 -2
- package/umd/OperateBtn.js +2 -2
- package/umd/PageHeader.js +2 -2
- package/umd/Pagination.js +4 -4
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +3 -3
- package/umd/PopConfirm.js +2 -2
- package/umd/Popover.js +1 -1
- package/umd/Progress.js +1 -1
- package/umd/Radio.js +2 -2
- package/umd/RadioGroup.js +2 -2
- package/umd/Search.js +7 -7
- package/umd/Select.js +2 -2
- package/umd/SelectInput.js +2 -2
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +2 -2
- package/umd/SingleBox.js +2 -2
- package/umd/Status.js +4 -4
- package/umd/Stepper.js +2 -2
- package/umd/Switch.js +5 -5
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +2 -2
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +2 -2
- package/umd/ToggleButton.js +4 -4
- package/umd/Tooltip.js +1 -1
- package/umd/Transfer.js +5 -5
- package/umd/Tree.js +7 -7
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
- /package/_verture/{typeof-b240b062.js → typeof-c310ee4a.js} +0 -0
package/Empty/index.d.ts
CHANGED
package/Empty/index.js
CHANGED
|
@@ -570,8 +570,8 @@ var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上
|
|
|
570
570
|
styleInject(css_248z);
|
|
571
571
|
|
|
572
572
|
var imageMap = {
|
|
573
|
-
|
|
574
|
-
|
|
573
|
+
large: jsx(LargeNull, {}),
|
|
574
|
+
small: jsx(SmallNull, {})
|
|
575
575
|
};
|
|
576
576
|
//empty空状态
|
|
577
577
|
var Empty = function Empty(props) {
|
package/Form/index.d.ts
CHANGED
|
@@ -6,8 +6,7 @@ import { ItemTypeProps } from '../FormItem/itemType';
|
|
|
6
6
|
/**
|
|
7
7
|
* form 表单原始属性
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
}
|
|
9
|
+
type FormHtmlProps = FormHTMLAttributes<HTMLFormElement>;
|
|
11
10
|
/**
|
|
12
11
|
* 配置项项类型
|
|
13
12
|
*/
|
|
@@ -53,17 +52,17 @@ export interface FormProps {
|
|
|
53
52
|
*/
|
|
54
53
|
refData?: RefDataProps;
|
|
55
54
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
* 获取生效项目的值对象,会过滤掉不显示或是不启用的项目的值,
|
|
56
|
+
*/
|
|
58
57
|
getValidValues?: Function;
|
|
59
58
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
* 重置表单
|
|
60
|
+
*/
|
|
62
61
|
reset?: Function;
|
|
63
62
|
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
* 清空表单数据
|
|
64
|
+
* 允许清空单个
|
|
65
|
+
*/
|
|
67
66
|
clear?: (name?: string | string[]) => void;
|
|
68
67
|
}>;
|
|
69
68
|
/**
|
|
@@ -122,12 +121,12 @@ export interface FormProps {
|
|
|
122
121
|
*/
|
|
123
122
|
className?: string;
|
|
124
123
|
/**
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
* 标题其他配置
|
|
125
|
+
*/
|
|
127
126
|
labelProps?: LabelProps;
|
|
128
127
|
/**
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
* 报错提示其他配置
|
|
129
|
+
*/
|
|
131
130
|
helperTextProps?: HelperTextProps;
|
|
132
131
|
/**
|
|
133
132
|
* 文字宽度, 只对 type === vertical,状态下生效
|
package/Form/index.js
CHANGED
|
@@ -3,8 +3,9 @@ import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.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, l as localeJson, v as validate } from '../_verture/index-d251967e.js';
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-0d9802f7.js';
|
|
8
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
8
9
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
9
10
|
import '../TextField/index.js';
|
|
10
11
|
import '../_verture/typeof-adeedc13.js';
|
|
@@ -36,7 +37,6 @@ import '../Radio/index.js';
|
|
|
36
37
|
import '../Select/index.js';
|
|
37
38
|
import '../_verture/defineProperty-1d116156.js';
|
|
38
39
|
import '../Empty/index.js';
|
|
39
|
-
import '../_verture/useFormatMessage-703f8b20.js';
|
|
40
40
|
import '@para-ui/icons/Close';
|
|
41
41
|
import '@para-ui/icons/Down';
|
|
42
42
|
import '@para-ui/icons/Check';
|
|
@@ -49,13 +49,13 @@ import 'rc-switch';
|
|
|
49
49
|
import '@para-ui/icons/Delete';
|
|
50
50
|
import '@para-ui/icons/LinkGroup';
|
|
51
51
|
import '../Button/index.js';
|
|
52
|
+
import '@para-ui/icons/UploadFile';
|
|
52
53
|
import '../InputNumber/index.js';
|
|
53
54
|
import 'rc-input-number';
|
|
54
55
|
import '@para-ui/icons/Up';
|
|
55
56
|
import '../ComboSelect/index.js';
|
|
56
|
-
import '../_verture/index-
|
|
57
|
-
import '../_verture/typeof-
|
|
58
|
-
import '@para-ui/icons/CloseCircle';
|
|
57
|
+
import '../_verture/index-232d890b.js';
|
|
58
|
+
import '../_verture/typeof-c310ee4a.js';
|
|
59
59
|
import '../Table/index.js';
|
|
60
60
|
import '@para-ui/icons/ScreenF';
|
|
61
61
|
import '@para-ui/icons/UpTriangleF';
|
|
@@ -70,14 +70,15 @@ import 'rc-pagination';
|
|
|
70
70
|
import '@para-ui/icons/Right';
|
|
71
71
|
import '@para-ui/icons/DoubleLeft';
|
|
72
72
|
import '@para-ui/icons/DoubleRight';
|
|
73
|
-
import '../_verture/index-
|
|
73
|
+
import '../_verture/index-bc461491.js';
|
|
74
74
|
import 'rc-tree';
|
|
75
75
|
import '@para-ui/icons/Document';
|
|
76
76
|
import 'react-dom';
|
|
77
77
|
import '@para-ui/icons/EditFile';
|
|
78
78
|
import '@para-ui/icons/PlusCircle';
|
|
79
79
|
import '@para-ui/icons/MoreCircle';
|
|
80
|
-
import '../_verture/utils-
|
|
80
|
+
import '../_verture/utils-06d86594.js';
|
|
81
|
+
import '../Search/index.js';
|
|
81
82
|
|
|
82
83
|
/**
|
|
83
84
|
* form 表单组件
|
|
@@ -90,6 +91,7 @@ import '../_verture/utils-f0e81540.js';
|
|
|
90
91
|
* @description 用于根据配置自动生成表单
|
|
91
92
|
*/
|
|
92
93
|
var Form = function Form(props) {
|
|
94
|
+
var intl = useFormatMessage('FormItem', localeJson);
|
|
93
95
|
var _props$className = props.className,
|
|
94
96
|
className = _props$className === void 0 ? '' : _props$className,
|
|
95
97
|
FormProps = props.FormProps,
|
|
@@ -192,7 +194,7 @@ var Form = function Form(props) {
|
|
|
192
194
|
errorCount++;
|
|
193
195
|
continue;
|
|
194
196
|
}
|
|
195
|
-
var msg = validate(tItem, refData.current.allValues[key]);
|
|
197
|
+
var msg = validate(tItem, refData.current.allValues[key], intl);
|
|
196
198
|
if (msg) {
|
|
197
199
|
errorCount++;
|
|
198
200
|
if (typeof msg === 'string') refData.current.itemsCheckMessage[key] = msg;
|
|
@@ -202,8 +204,8 @@ var Form = function Form(props) {
|
|
|
202
204
|
return !errorCount && refData.current.allValues;
|
|
203
205
|
};
|
|
204
206
|
/**
|
|
205
|
-
|
|
206
|
-
|
|
207
|
+
* 过滤有效值
|
|
208
|
+
*/
|
|
207
209
|
var getValidValues = function getValidValues() {
|
|
208
210
|
var tObj = {};
|
|
209
211
|
for (var i = 0; i < refData.current.configList.length; i++) {
|
|
@@ -215,8 +217,8 @@ var Form = function Form(props) {
|
|
|
215
217
|
return tObj;
|
|
216
218
|
};
|
|
217
219
|
/**
|
|
218
|
-
|
|
219
|
-
|
|
220
|
+
* 重置表单
|
|
221
|
+
*/
|
|
220
222
|
var resetForm = function resetForm() {
|
|
221
223
|
var isClear = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
222
224
|
var name = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -11,9 +11,9 @@ interface DefaultCompomentsProps {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* @module src\FormItem\compoments\defaultCompoments\index.tsx
|
|
15
|
-
* @author zhanzl
|
|
16
|
-
* @date 2022/06/02
|
|
17
|
-
*/
|
|
14
|
+
* @module src\FormItem\compoments\defaultCompoments\index.tsx
|
|
15
|
+
* @author zhanzl
|
|
16
|
+
* @date 2022/06/02
|
|
17
|
+
*/
|
|
18
18
|
declare const DefaultCompoments: FC<DefaultCompomentsProps>;
|
|
19
19
|
export default DefaultCompoments;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { FC } from
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { SelectProps } from '../../../Select';
|
|
3
3
|
export interface FormSelectProps extends SelectProps {
|
|
4
4
|
/**
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
* 默认值
|
|
6
|
+
*/
|
|
7
7
|
defaultValue?: string;
|
|
8
8
|
/**
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
* 改变方法
|
|
10
|
+
*/
|
|
11
11
|
change?: (value: any) => any;
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
* 绑定值
|
|
14
|
+
*/
|
|
15
15
|
value?: string;
|
|
16
16
|
}
|
|
17
17
|
declare const FormSelect: FC<FormSelectProps>;
|
package/FormItem/errorTips.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { HelperTextProps } from '../HelperText';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
/**
|
|
4
|
-
* 报错信息组件
|
|
5
|
-
* @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
|
|
6
|
-
*/
|
|
4
|
+
* 报错信息组件
|
|
5
|
+
* @description 为了解决,在主组件设置state,导致输入框中内容刷新,且失去焦点
|
|
6
|
+
*/
|
|
7
7
|
declare const ErrorTips: FC<{
|
|
8
8
|
getSetError?: Function;
|
|
9
9
|
errorMessage?: string;
|
package/FormItem/index.d.ts
CHANGED
|
@@ -21,11 +21,11 @@ export interface ruleType {
|
|
|
21
21
|
* @return {boolean | string}, 子定义校验方法时 返回 false 或 字符串 均为校验失败 true为校验通过
|
|
22
22
|
*/
|
|
23
23
|
validate?: {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
required?: boolean | validateFunctionType;
|
|
25
|
+
maxlength?: number | validateFunctionType;
|
|
26
|
+
minLength?: number | validateFunctionType;
|
|
27
|
+
pattern?: RegExp | validateFunctionType;
|
|
28
|
+
disOnlySpace?: boolean | validateFunctionType;
|
|
29
29
|
[name: string]: validateFunctionType | boolean | number | RegExp | undefined;
|
|
30
30
|
};
|
|
31
31
|
message?: {
|
package/FormItem/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { F as default } from '../_verture/index-
|
|
3
|
+
export { F as default } from '../_verture/index-d251967e.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-0d9802f7.js';
|
|
@@ -49,13 +49,13 @@ import 'rc-switch';
|
|
|
49
49
|
import '@para-ui/icons/Delete';
|
|
50
50
|
import '@para-ui/icons/LinkGroup';
|
|
51
51
|
import '../Button/index.js';
|
|
52
|
+
import '@para-ui/icons/UploadFile';
|
|
52
53
|
import '../InputNumber/index.js';
|
|
53
54
|
import 'rc-input-number';
|
|
54
55
|
import '@para-ui/icons/Up';
|
|
55
56
|
import '../ComboSelect/index.js';
|
|
56
|
-
import '../_verture/index-
|
|
57
|
-
import '../_verture/typeof-
|
|
58
|
-
import '@para-ui/icons/CloseCircle';
|
|
57
|
+
import '../_verture/index-232d890b.js';
|
|
58
|
+
import '../_verture/typeof-c310ee4a.js';
|
|
59
59
|
import '../Table/index.js';
|
|
60
60
|
import '@para-ui/icons/ScreenF';
|
|
61
61
|
import '@para-ui/icons/UpTriangleF';
|
|
@@ -70,11 +70,12 @@ import 'rc-pagination';
|
|
|
70
70
|
import '@para-ui/icons/Right';
|
|
71
71
|
import '@para-ui/icons/DoubleLeft';
|
|
72
72
|
import '@para-ui/icons/DoubleRight';
|
|
73
|
-
import '../_verture/index-
|
|
73
|
+
import '../_verture/index-bc461491.js';
|
|
74
74
|
import 'rc-tree';
|
|
75
75
|
import '@para-ui/icons/Document';
|
|
76
76
|
import 'react-dom';
|
|
77
77
|
import '@para-ui/icons/EditFile';
|
|
78
78
|
import '@para-ui/icons/PlusCircle';
|
|
79
79
|
import '@para-ui/icons/MoreCircle';
|
|
80
|
-
import '../_verture/utils-
|
|
80
|
+
import '../_verture/utils-06d86594.js';
|
|
81
|
+
import '../Search/index.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
zh: {
|
|
3
|
+
choseFile: string;
|
|
4
|
+
unEmpty: string;
|
|
5
|
+
maxLength: string;
|
|
6
|
+
minLength: string;
|
|
7
|
+
unRule: string;
|
|
8
|
+
minValue: string;
|
|
9
|
+
maxValue: string;
|
|
10
|
+
};
|
|
11
|
+
en: {
|
|
12
|
+
choseFile: string;
|
|
13
|
+
unEmpty: string;
|
|
14
|
+
maxLength: string;
|
|
15
|
+
minLength: string;
|
|
16
|
+
unRule: string;
|
|
17
|
+
minValue: string;
|
|
18
|
+
maxValue: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -6,7 +6,7 @@ import { FormItemProps } from './index';
|
|
|
6
6
|
* @param {any} val 校验项的值
|
|
7
7
|
* @return {boolean | string} 返回校验结果或报错信息
|
|
8
8
|
*/
|
|
9
|
-
export type validateFunctionType = (item: FormItemProps, val: any) => boolean | string;
|
|
9
|
+
export type validateFunctionType = (item: FormItemProps, val: any, intl: any) => boolean | string;
|
|
10
10
|
/**
|
|
11
11
|
* 表单rules校验方法
|
|
12
12
|
* @type {validateFunctionType}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import React, { ReactElement } from
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import { ModalProps } from '../Modal';
|
|
3
|
-
import { JsxElement } from
|
|
3
|
+
import { JsxElement } from 'typescript';
|
|
4
4
|
import './index.scss';
|
|
5
5
|
/**
|
|
6
|
-
* 弹窗配置
|
|
7
|
-
*/
|
|
6
|
+
* 弹窗配置
|
|
7
|
+
*/
|
|
8
8
|
export interface modalOptions extends ModalProps {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
* 非正常关闭仍然返回true
|
|
11
|
+
*/
|
|
12
12
|
disCatchOnCancel?: boolean;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* 模态框大小
|
|
15
|
+
*/
|
|
16
16
|
size?: 'sm' | 'md' | 'lg' | 'auto' | 'fullScreen';
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
* 模态框标题
|
|
19
|
+
*/
|
|
20
20
|
title?: string;
|
|
21
21
|
context?: ReactElement | JsxElement;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* 内容
|
|
24
|
+
*/
|
|
25
25
|
content?: ReactElement | JsxElement;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
* 检查方法,根据返回值判断是否关闭模态框
|
|
28
|
+
*/
|
|
29
29
|
checkFunction?: () => boolean | Promise<boolean>;
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* 获得关闭模态框方法
|
|
32
|
+
*/
|
|
33
33
|
getClose?: (close: Function) => void;
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
* 模态框其他配置
|
|
36
|
+
*/
|
|
37
37
|
ModalProps?: ModalProps;
|
|
38
38
|
}
|
|
39
39
|
interface DialogProps extends modalOptions {
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
* 模态框状态
|
|
42
|
+
*/
|
|
43
43
|
open: boolean;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
* 提交方法
|
|
46
|
+
*/
|
|
47
47
|
onSubmit: (idx: number) => void;
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
* 关闭方法
|
|
50
|
+
*/
|
|
51
51
|
onClose: (idx: number) => void;
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
* 模态框组下标
|
|
54
|
+
*/
|
|
55
55
|
listIndex: number;
|
|
56
56
|
}
|
|
57
57
|
export declare const FDialog: React.FC<DialogProps>;
|
package/FunctionModal/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @author zhanzl
|
|
3
|
-
* @date 2021/08/13
|
|
4
|
-
* @description 函数式弹窗
|
|
5
|
-
*/
|
|
6
|
-
import { useModal, useClose, FunctionModalProvider } from
|
|
2
|
+
* @author zhanzl
|
|
3
|
+
* @date 2021/08/13
|
|
4
|
+
* @description 函数式弹窗
|
|
5
|
+
*/
|
|
6
|
+
import { useModal, useClose, FunctionModalProvider } from './modalContext';
|
|
7
7
|
export default useModal;
|
|
8
|
-
export { useClose, FunctionModalProvider
|
|
8
|
+
export { useClose, FunctionModalProvider };
|
package/FunctionModal/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as useModal } from '../_verture/modalContext-
|
|
2
|
-
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-
|
|
1
|
+
import { u as useModal } from '../_verture/modalContext-9299acc9.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-9299acc9.js';
|
|
3
3
|
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
4
4
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
5
5
|
import '../_verture/slicedToArray-a8206399.js';
|
|
6
|
-
import '../_verture/index-
|
|
7
|
-
import '../_verture/typeof-
|
|
6
|
+
import '../_verture/index-232d890b.js';
|
|
7
|
+
import '../_verture/typeof-c310ee4a.js';
|
|
8
8
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
9
9
|
import 'react/jsx-runtime';
|
|
10
10
|
import 'react';
|
|
@@ -31,7 +31,7 @@ import '../_verture/useFormatMessage-703f8b20.js';
|
|
|
31
31
|
import '@para-ui/core/GlobalContext';
|
|
32
32
|
import '../AutoTips/index.js';
|
|
33
33
|
import '@para-ui/icons/Close';
|
|
34
|
-
import '../_verture/index-
|
|
34
|
+
import '../_verture/index-19947788.js';
|
|
35
35
|
import 'react-dom';
|
|
36
36
|
import '@para-ui/icons/CheckCircleF';
|
|
37
37
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -39,7 +39,7 @@ import '@para-ui/icons/WarningCircle';
|
|
|
39
39
|
import '@para-ui/icons/WarningCircleF';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
* @author zhanzl
|
|
43
|
-
* @date 2021/08/13
|
|
44
|
-
* @description 函数式弹窗
|
|
45
|
-
*/
|
|
42
|
+
* @author zhanzl
|
|
43
|
+
* @date 2021/08/13
|
|
44
|
+
* @description 函数式弹窗
|
|
45
|
+
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { modalOptions } from
|
|
2
|
+
import { modalOptions } from './dialog';
|
|
3
3
|
/**
|
|
4
4
|
* 弹出框组件
|
|
5
5
|
* @param context 主体内容
|
|
@@ -9,7 +9,7 @@ import { modalOptions } from "./dialog";
|
|
|
9
9
|
**/
|
|
10
10
|
export declare const useModal: () => (options: modalOptions) => Promise<boolean>;
|
|
11
11
|
/**
|
|
12
|
-
* 函数弹窗组件Provider
|
|
13
|
-
*/
|
|
12
|
+
* 函数弹窗组件Provider
|
|
13
|
+
*/
|
|
14
14
|
export declare const FunctionModalProvider: ({ children }: any) => JSX.Element;
|
|
15
15
|
export declare const useClose: () => Function;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* @date 2022/5/5 4:08 PM
|
|
4
4
|
* @description 全局每个组件的props
|
|
5
5
|
*/
|
|
6
|
-
import { SelectProps } from
|
|
7
|
-
import { TextFieldProps } from
|
|
8
|
-
import { TableProps } from
|
|
9
|
-
import { EmptyProps } from
|
|
10
|
-
import { QueryingProps } from
|
|
11
|
-
import { SelectorProps } from
|
|
12
|
-
import { ComboSelectProps } from
|
|
6
|
+
import { SelectProps } from '../Select';
|
|
7
|
+
import { TextFieldProps } from '../TextField';
|
|
8
|
+
import { TableProps } from '../Table/interface';
|
|
9
|
+
import { EmptyProps } from '../Empty';
|
|
10
|
+
import { QueryingProps } from '../Querying';
|
|
11
|
+
import { SelectorProps } from '../Selector/interface';
|
|
12
|
+
import { ComboSelectProps } from '../ComboSelect/interface';
|
|
13
13
|
interface ComponentsProps {
|
|
14
14
|
Select?: Partial<SelectProps>;
|
|
15
15
|
TextField?: Partial<TextFieldProps>;
|
package/GlobalContext/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { changeConfirmLocale, getConfirmLocale } from './confirmLocale';
|
|
3
|
-
import ComponentsProps from
|
|
3
|
+
import ComponentsProps from './componentsProps';
|
|
4
4
|
/** 国际化props */
|
|
5
5
|
export interface localeProps {
|
|
6
6
|
/** 语言 */
|
package/GlobalContext/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { i as i18nIntl } from '../_verture/intl-5c1ec055.js';
|
|
3
3
|
import { GetLanguage } from '@paraview/lib';
|
|
4
|
-
import { d as defaultModalLocale } from '../_verture/index-
|
|
4
|
+
import { d as defaultModalLocale } from '../_verture/index-19947788.js';
|
|
5
5
|
import '../_verture/typeof-adeedc13.js';
|
|
6
6
|
|
|
7
7
|
//confirm 默认中文
|
package/Help/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var Help = function Help(props) {
|
|
|
24
24
|
arrow = _props$arrow === void 0 ? true : _props$arrow,
|
|
25
25
|
className = props.className,
|
|
26
26
|
_props$placement = props.placement,
|
|
27
|
-
placement = _props$placement === void 0 ? 'top' : _props$placement,
|
|
27
|
+
placement = _props$placement === void 0 ? 'top-start' : _props$placement,
|
|
28
28
|
restProps = __rest(props, ["title", "children", "arrow", "className", "placement"]);
|
|
29
29
|
return jsx(Tooltip, Object.assign({
|
|
30
30
|
title: title,
|
|
@@ -32,7 +32,7 @@ var Help = function Help(props) {
|
|
|
32
32
|
placement: placement
|
|
33
33
|
}, restProps, {
|
|
34
34
|
children: jsx("span", Object.assign({
|
|
35
|
-
className: clsx($prefixCls
|
|
35
|
+
className: clsx("".concat($prefixCls, "-help"), className)
|
|
36
36
|
}, {
|
|
37
37
|
children: children || jsx(HelpIcon, {})
|
|
38
38
|
}))
|
package/HelperText/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var HelperText = function HelperText(props) {
|
|
|
19
19
|
// 处理class
|
|
20
20
|
var handClass = function handClass() {
|
|
21
21
|
var str = "".concat($prefixCls, "-helper-text");
|
|
22
|
-
if (className) str +=
|
|
22
|
+
if (className) str += " ".concat(className);
|
|
23
23
|
if (error) str += " ".concat($prefixCls, "-helper-text-error");
|
|
24
24
|
return str;
|
|
25
25
|
};
|
package/InputLang/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
7
|
import { HelperTextDetailProps } from '../HelperText';
|
|
8
|
-
import { LabelTooltipProps } from
|
|
8
|
+
import { LabelTooltipProps } from '../Label';
|
|
9
|
+
import { TooltipProps } from '../Tooltip';
|
|
9
10
|
import './index.scss';
|
|
10
|
-
import { TooltipProps } from "../Tooltip";
|
|
11
11
|
interface valueProps {
|
|
12
12
|
[name: string]: string;
|
|
13
13
|
}
|