@para-ui/core 4.0.0-rc → 4.0.0-rc.2
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 +15 -21
- 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 +8 -38
- 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 +4 -2
- 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 +4 -4
- package/Collapse/index.js +5 -5
- package/CollapseBox/index.js +12 -20
- package/CollapseLayout/index.js +21 -21
- package/ColorPicker/index.js +2 -2
- package/ComboSelect/index.js +43 -52
- package/ComboSelect/interface.d.ts +3 -3
- package/Container/index.d.ts +3 -3
- package/Container/index.js +56 -56
- package/CopyText/index.d.ts +2 -2
- package/CopyText/index.js +3 -3
- package/DatePicker/generatePicker/index.d.ts +22 -22
- package/DatePicker/index.js +10 -9
- package/DatePicker/util.d.ts +1 -1
- package/Descriptions/index.d.ts +38 -0
- package/Descriptions/index.js +23 -0
- package/Desktop/index.d.ts +1 -1
- package/Desktop/index.js +18 -13
- package/DragVerify/index.d.ts +1 -1
- package/DragVerify/index.js +13 -13
- package/Drawer/index.js +40 -38
- package/Drawer/interface.d.ts +4 -6
- package/Dropdown/index.d.ts +1 -1
- package/DynamicMultiBox/formItem.d.ts +1 -1
- package/DynamicMultiBox/index.d.ts +1 -1
- package/DynamicMultiBox/index.js +38 -35
- 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 +3 -3
- package/Form/index.d.ts +12 -13
- package/Form/index.js +10 -8
- 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 +3 -2
- 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 -10
- package/FunctionModal/modalContext.d.ts +3 -3
- package/GlobalContext/componentsProps.d.ts +7 -7
- package/GlobalContext/confirmLocale.d.ts +1 -2
- package/GlobalContext/index.d.ts +2 -2
- package/GlobalContext/index.js +3 -2
- 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 +4 -2
- package/InputNumber/index.js +27 -15
- package/Label/index.js +2 -2
- package/Loading/index.js +1 -1
- package/Menu/index.js +17 -17
- package/Menu/interface.d.ts +1 -1
- package/Message/index.js +13 -13
- package/Modal/Confirm/index.d.ts +3 -3
- package/Modal/index.d.ts +1 -1
- package/Modal/index.js +20 -17
- package/Modal/lang/index.d.ts +8 -0
- package/MultiBox/index.d.ts +2 -2
- package/MultiBox/index.js +4 -4
- package/Notification/index.js +2 -2
- package/OperateBtn/index.d.ts +2 -2
- package/OperateBtn/index.js +49 -49
- package/PageHeader/index.js +45 -34
- package/PageHeader/interface.d.ts +1 -1
- package/Pagination/index.d.ts +1 -1
- package/Pagination/index.js +19 -19
- package/PasswordRules/index.js +8 -8
- package/PopConfirm/index.js +8 -7
- 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 +43 -42
- package/Progress/utils.d.ts +4 -4
- package/Querying/index.d.ts +1 -1
- package/Querying/index.js +3 -3
- package/README.md +7 -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 +4 -4
- package/Search/index.js +1 -1
- package/Select/index.d.ts +3 -3
- package/Select/index.js +43 -43
- package/SelectInput/index.js +2 -2
- package/Selector/index.js +26 -34
- package/Selector/interface.d.ts +6 -6
- package/SelectorPicker/index.d.ts +4 -4
- package/SelectorPicker/index.js +10 -10
- package/SingleBox/index.d.ts +2 -2
- package/SingleBox/index.js +4 -4
- package/Slider/index.js +1 -1
- package/Slider/interface.d.ts +1 -1
- package/Status/index.d.ts +4 -4
- package/Status/index.js +6 -7
- package/Stepper/index.d.ts +5 -5
- package/Stepper/index.js +23 -23
- package/Styles/theme.scss +1 -0
- package/Switch/index.d.ts +7 -7
- package/Switch/index.js +38 -21
- 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 +35 -35
- 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 +27 -19
- package/Tag/TagGroup.d.ts +5 -5
- package/Tag/index.d.ts +7 -7
- package/Tag/index.js +25 -25
- 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 +19 -16
- package/TimePicker/index.d.ts +1 -1
- package/TimePicker/index.js +2 -2
- 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 +4 -4
- package/Title/index.js +3 -3
- package/ToggleButton/ToggleButtonGroup.d.ts +1 -1
- package/ToggleButton/index.d.ts +5 -1
- package/ToggleButton/index.js +18 -11
- package/Transfer/box.d.ts +6 -6
- package/Transfer/index.js +22 -25
- package/Tree/OperateBar/index.d.ts +4 -4
- package/Tree/Tree.d.ts +2 -2
- package/Tree/index.js +2 -2
- package/Tree/interface.d.ts +4 -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 +10 -11
- package/Upload/interface.d.ts +1 -1
- package/_verture/{index-8469865e.js → index-024bbc9b.js} +3 -3
- package/_verture/{index-19947788.js → index-05f7bf11.js} +3 -1
- package/_verture/{index-e1b800aa.js → index-50f56891.js} +49 -25
- package/_verture/{index-1c8d3e94.js → index-649b450f.js} +102 -48
- package/_verture/{index-47297a40.js → index-692e29c1.js} +53 -46
- package/_verture/{modalContext-670eab09.js → modalContext-11c51a45.js} +25 -25
- package/index.d.ts +4 -0
- package/index.js +14 -11
- package/locale/en-US.d.ts +19 -0
- package/locale/index.d.ts +38 -0
- package/locale/index.js +40 -2
- package/locale/zh-CN.d.ts +19 -0
- package/package.json +4 -2
- package/umd/AutoBox.js +1 -1
- package/umd/AutoTips.js +1 -1
- package/umd/Badge.js +1 -0
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +2 -2
- package/umd/Cascader.js +4 -4
- package/umd/Checkbox.js +2 -2
- package/umd/CheckboxGroup.js +2 -2
- package/umd/Collapse.js +5 -5
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +4 -4
- package/umd/CopyText.js +2 -2
- package/umd/DatePicker.js +2 -2
- package/umd/Descriptions.js +1 -0
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +2 -2
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Empty.js +1 -1
- package/umd/Form.js +4 -4
- package/umd/FormItem.js +4 -4
- package/umd/FunctionModal.js +4 -4
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +2 -2
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +2 -2
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +2 -2
- package/umd/Loading.js +1 -1
- package/umd/Menu.js +3 -3
- package/umd/Message.js +2 -2
- package/umd/Modal.js +4 -4
- package/umd/MultiBox.js +7 -7
- package/umd/Notification.js +2 -2
- package/umd/OperateBtn.js +4 -4
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +2 -2
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +2 -2
- package/umd/Progress.js +3 -3
- package/umd/Querying.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/Slider.js +1 -1
- package/umd/Status.js +2 -2
- package/umd/Stepper.js +1 -1
- package/umd/Switch.js +5 -5
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +6 -6
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +2 -2
- package/umd/Title.js +7 -7
- package/umd/ToggleButton.js +4 -4
- package/umd/Transfer.js +3 -3
- package/umd/Tree.js +2 -2
- package/umd/Upload.js +2 -2
- package/umd/locale.js +1 -1
package/Empty/index.d.ts
CHANGED
package/Empty/index.js
CHANGED
|
@@ -566,12 +566,12 @@ var localeJson = {
|
|
|
566
566
|
en: en
|
|
567
567
|
};
|
|
568
568
|
|
|
569
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上午10:55\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-empty {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n}\n.paraui-v4-empty > .empty-image {\n line-height: 0;\n overflow: hidden;\n}\n.paraui-v4-empty > .empty-image img {\n width: 100%;\n}\n.paraui-v4-empty .empty-image-large {\n width: 334px;\n height: 238px;\n}\n.paraui-v4-empty .empty-image-small {\n width: 120px;\n height: 120px;\n}\n.paraui-v4-empty > .empty-description {\n line-height: 17px;\n font-size: 14px;\n font-weight: 400;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-empty > .empty-description > .empty-description-refresh {\n display: inline-block;\n}\n.paraui-v4-empty > .empty-description > .empty-description-refresh span {\n color: rgb(46, 101, 230);\n cursor: pointer;\n}\n.paraui-v4-empty.paraui-v4-empty-large > .empty-description {\n margin-top: 24px;\n}\n.paraui-v4-empty.paraui-v4-empty-small > .empty-description {\n margin-top: 10px;\n font-size:
|
|
569
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/2 上午10:55\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-empty {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n}\n.paraui-v4-empty > .empty-image {\n line-height: 0;\n overflow: hidden;\n}\n.paraui-v4-empty > .empty-image img {\n width: 100%;\n}\n.paraui-v4-empty .empty-image-large {\n width: 334px;\n height: 238px;\n}\n.paraui-v4-empty .empty-image-small {\n width: 120px;\n height: 120px;\n}\n.paraui-v4-empty > .empty-description {\n line-height: 17px;\n font-size: 14px;\n font-weight: 400;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-empty > .empty-description > .empty-description-refresh {\n display: inline-block;\n}\n.paraui-v4-empty > .empty-description > .empty-description-refresh span {\n color: rgb(46, 101, 230);\n cursor: pointer;\n}\n.paraui-v4-empty > .empty-description > .empty-description-refresh span:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-empty.paraui-v4-empty-large > .empty-description {\n margin-top: 24px;\n}\n.paraui-v4-empty.paraui-v4-empty-small > .empty-description {\n margin-top: 10px;\n font-size: 14px;\n}";
|
|
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-649b450f.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';
|
|
@@ -70,7 +70,7 @@ 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-692e29c1.js';
|
|
74
74
|
import 'rc-tree';
|
|
75
75
|
import '@para-ui/icons/Document';
|
|
76
76
|
import 'react-dom';
|
|
@@ -78,6 +78,7 @@ import '@para-ui/icons/EditFile';
|
|
|
78
78
|
import '@para-ui/icons/PlusCircle';
|
|
79
79
|
import '@para-ui/icons/MoreCircle';
|
|
80
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-06d86594.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-649b450f.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-0d9802f7.js';
|
|
@@ -70,7 +70,7 @@ 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-692e29c1.js';
|
|
74
74
|
import 'rc-tree';
|
|
75
75
|
import '@para-ui/icons/Document';
|
|
76
76
|
import 'react-dom';
|
|
@@ -78,3 +78,4 @@ import '@para-ui/icons/EditFile';
|
|
|
78
78
|
import '@para-ui/icons/PlusCircle';
|
|
79
79
|
import '@para-ui/icons/MoreCircle';
|
|
80
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,5 +1,5 @@
|
|
|
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-11c51a45.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-11c51a45.js';
|
|
3
3
|
import '../_verture/toConsumableArray-8f4c9589.js';
|
|
4
4
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
5
5
|
import '../_verture/slicedToArray-a8206399.js';
|
|
@@ -15,11 +15,11 @@ import 'rc-dialog';
|
|
|
15
15
|
import '../Button/index.js';
|
|
16
16
|
import 'clsx';
|
|
17
17
|
import '@para-ui/icons/LoadingF';
|
|
18
|
-
import '@para-ui/icons/Forbid';
|
|
19
18
|
import '../Tooltip/index.js';
|
|
20
19
|
import 'rc-tooltip';
|
|
21
20
|
import 'rc-tooltip/lib/placements';
|
|
22
21
|
import '../_verture/constant-0d9802f7.js';
|
|
22
|
+
import '@para-ui/icons/Forbid';
|
|
23
23
|
import '../_verture/style-inject.es-300983ab.js';
|
|
24
24
|
import '@para-ui/icons/Down';
|
|
25
25
|
import '../_verture/index-e9007d6a.js';
|
|
@@ -31,15 +31,14 @@ 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-05f7bf11.js';
|
|
35
35
|
import 'react-dom';
|
|
36
36
|
import '@para-ui/icons/CheckCircleF';
|
|
37
|
-
import '@para-ui/icons/CloseCircleF';
|
|
38
|
-
import '@para-ui/icons/WarningCircle';
|
|
39
37
|
import '@para-ui/icons/WarningCircleF';
|
|
38
|
+
import '@para-ui/icons/CloseCircleF';
|
|
40
39
|
|
|
41
40
|
/**
|
|
42
|
-
* @author zhanzl
|
|
43
|
-
* @date 2021/08/13
|
|
44
|
-
* @description 函数式弹窗
|
|
45
|
-
*/
|
|
41
|
+
* @author zhanzl
|
|
42
|
+
* @date 2021/08/13
|
|
43
|
+
* @description 函数式弹窗
|
|
44
|
+
*/
|
|
@@ -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-05f7bf11.js';
|
|
5
5
|
import '../_verture/typeof-adeedc13.js';
|
|
6
6
|
|
|
7
7
|
//confirm 默认中文
|
|
@@ -15,7 +15,8 @@ var changeConfirmLocale = function changeConfirmLocale(newLocale) {
|
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
var getConfirmLocale = function getConfirmLocale() {
|
|
18
|
-
|
|
18
|
+
var lang = GetLanguage();
|
|
19
|
+
return (defaultModalLocale === null || defaultModalLocale === void 0 ? void 0 : defaultModalLocale[lang]) || defaultModalLocale['zh'];
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
var GlobalContext = /*#__PURE__*/React__default.createContext({
|
package/Help/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import 'rc-tooltip';
|
|
|
12
12
|
import 'rc-tooltip/lib/placements';
|
|
13
13
|
import '@para-ui/icons/Forbid';
|
|
14
14
|
|
|
15
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/12/2 下午8:14\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-help {\n display: inline-block;\n font-weight: 500;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-help:hover {\n color: rgb(
|
|
15
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/12/2 下午8:14\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-help {\n display: inline-block;\n font-weight: 500;\n color: rgb(161, 168, 179);\n}\n.paraui-v4-help:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-help svg {\n font-size: inherit;\n color: inherit;\n font-size: 16px;\n}";
|
|
16
16
|
styleInject(css_248z);
|
|
17
17
|
|
|
18
18
|
//help
|
|
@@ -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
|
}
|