@para-ui/core 4.0.52 → 4.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Button/index.js +2 -2
- package/Cascader/Cascader.d.ts +3 -0
- package/Cascader/index.js +11 -8
- package/ComboSelect/index.js +5 -5
- package/CycleSelector/index.js +2 -2
- package/DatePicker/index.js +2 -2
- package/DynamicMultiBox/index.js +7 -7
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/FieldForm/ErrorList.d.ts +16 -0
- package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
- package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
- package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
- package/FieldForm/FieldFormItem/index.d.ts +58 -0
- package/FieldForm/Form.d.ts +36 -0
- package/FieldForm/FormItemInput.d.ts +21 -0
- package/FieldForm/FormItemLabel.d.ts +21 -0
- package/FieldForm/FormList.d.ts +23 -0
- package/FieldForm/context.d.ts +33 -0
- package/FieldForm/hooks/useChildren.d.ts +2 -0
- package/FieldForm/hooks/useDebounce.d.ts +1 -0
- package/FieldForm/hooks/useForm.d.ts +6 -0
- package/FieldForm/hooks/useFormInstance.d.ts +2 -0
- package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
- package/FieldForm/hooks/useFrameState.d.ts +3 -0
- package/FieldForm/hooks/useItemRef.d.ts +3 -0
- package/FieldForm/index.d.ts +30 -0
- package/FieldForm/index.js +5326 -0
- package/FieldForm/interface.d.ts +2 -0
- package/FieldForm/lang/en_US.d.ts +51 -0
- package/FieldForm/lang/index.d.ts +105 -0
- package/FieldForm/lang/zh_CN.d.ts +51 -0
- package/FieldForm/util.d.ts +21 -0
- package/Form/index.js +6 -6
- package/FormItem/index.js +6 -6
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +5 -55
- package/PopMenu/index.js +2 -2
- package/README.md +15 -0
- package/Result/index.js +2 -2
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/Switch/index.d.ts +4 -0
- package/Switch/index.js +3 -2
- package/Table/index.js +433 -498
- package/Tag/index.js +2 -2
- package/TextEditor/index.d.ts +2 -0
- package/TextEditor/index.js +27 -6
- package/TimePicker/index.js +2 -2
- package/Tooltip/index.js +26 -27
- package/Transfer/index.d.ts +1 -0
- package/Transfer/index.js +120 -119
- package/Tree/index.js +4 -4
- package/Upload/index.js +9 -7
- package/_verture/{Portal-f9bedb3a.js → Portal-502bb85e.js} +29 -481
- package/_verture/{index-5b0d1c7d.js → index-0a300edb.js} +387 -700
- package/_verture/index-1856bbeb.js +480 -0
- package/_verture/{index-ba8815d0.js → index-320d67c4.js} +2 -2
- package/_verture/{index-887e5e11.js → index-43c653bb.js} +1 -1
- package/_verture/isEqual-30b6f859.js +56 -0
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
- package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
- package/_verture/useState-f2419d68.js +353 -0
- package/index.d.ts +2 -0
- package/index.js +15 -11
- package/locale/en-US.d.ts +46 -0
- package/locale/index.d.ts +92 -0
- package/locale/index.js +92 -0
- package/locale/zh-CN.d.ts +46 -0
- package/package.json +3 -1
- package/umd/Anchor.js +5 -5
- package/umd/Argv.js +5 -5
- package/umd/AutoBox.js +5 -5
- package/umd/AutoButton.js +6 -6
- package/umd/AutoTips.js +5 -5
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +5 -5
- package/umd/ButtonGroup.js +6 -6
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +4 -4
- package/umd/CheckboxGroup.js +4 -4
- package/umd/Collapse.js +1 -1
- package/umd/ComboSelect.js +5 -5
- package/umd/CopyText.js +5 -5
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +6 -6
- package/umd/Desktop.js +5 -5
- package/umd/Drawer.js +5 -5
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +5 -5
- package/umd/FieldForm.js +43 -0
- package/umd/Form.js +5 -5
- package/umd/FormItem.js +5 -5
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +5 -5
- package/umd/Image.js +3 -3
- package/umd/InputCode.js +5 -5
- package/umd/InputLang.js +5 -5
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Modal.js +5 -5
- package/umd/MultiBox.js +6 -6
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +5 -5
- package/umd/PageHeader.js +5 -5
- package/umd/Pagination.js +5 -5
- package/umd/PopConfirm.js +5 -5
- package/umd/PopMenu.js +5 -5
- package/umd/Popover.js +5 -5
- package/umd/QuickReply.js +5 -5
- package/umd/Radio.js +4 -4
- package/umd/RadioGroup.js +4 -4
- package/umd/RangeInput.js +5 -5
- package/umd/Result.js +4 -4
- package/umd/Search.js +5 -5
- package/umd/Select.js +5 -5
- package/umd/SelectInput.js +5 -5
- package/umd/Selector.js +5 -5
- package/umd/SelectorPicker.js +5 -5
- package/umd/SingleBox.js +5 -5
- package/umd/Slider.js +4 -4
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +5 -5
- package/umd/TextEditor.js +6 -6
- package/umd/TextField.js +5 -5
- package/umd/TimePicker.js +5 -5
- package/umd/Title.js +3 -3
- package/umd/ToggleButton.js +5 -5
- package/umd/Tooltip.js +4 -4
- package/umd/Transfer.js +7 -7
- package/umd/Tree.js +3 -3
- package/umd/Upload.js +5 -5
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-f68b51a2.js → modalContext-6ac2e323.js} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const defaultValidateMessages: {
|
|
2
|
+
default: string;
|
|
3
|
+
required: string;
|
|
4
|
+
enum: string;
|
|
5
|
+
whitespace: string;
|
|
6
|
+
date: {
|
|
7
|
+
format: string;
|
|
8
|
+
parse: string;
|
|
9
|
+
invalid: string;
|
|
10
|
+
};
|
|
11
|
+
types: {
|
|
12
|
+
string: string;
|
|
13
|
+
method: string;
|
|
14
|
+
array: string;
|
|
15
|
+
object: string;
|
|
16
|
+
number: string;
|
|
17
|
+
date: string;
|
|
18
|
+
boolean: string;
|
|
19
|
+
integer: string;
|
|
20
|
+
float: string;
|
|
21
|
+
regexp: string;
|
|
22
|
+
email: string;
|
|
23
|
+
url: string;
|
|
24
|
+
hex: string;
|
|
25
|
+
};
|
|
26
|
+
string: {
|
|
27
|
+
len: string;
|
|
28
|
+
min: string;
|
|
29
|
+
max: string;
|
|
30
|
+
range: string;
|
|
31
|
+
};
|
|
32
|
+
number: {
|
|
33
|
+
len: string;
|
|
34
|
+
min: string;
|
|
35
|
+
max: string;
|
|
36
|
+
range: string;
|
|
37
|
+
};
|
|
38
|
+
array: {
|
|
39
|
+
len: string;
|
|
40
|
+
min: string;
|
|
41
|
+
max: string;
|
|
42
|
+
range: string;
|
|
43
|
+
};
|
|
44
|
+
pattern: {
|
|
45
|
+
mismatch: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
declare const _default: {
|
|
49
|
+
colon: string;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
zh: {
|
|
3
|
+
colon: string;
|
|
4
|
+
};
|
|
5
|
+
en: {
|
|
6
|
+
colon: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const defaultValidateMessages: {
|
|
11
|
+
zh: {
|
|
12
|
+
default: string;
|
|
13
|
+
required: string;
|
|
14
|
+
enum: string;
|
|
15
|
+
whitespace: string;
|
|
16
|
+
date: {
|
|
17
|
+
format: string;
|
|
18
|
+
parse: string;
|
|
19
|
+
invalid: string;
|
|
20
|
+
};
|
|
21
|
+
types: {
|
|
22
|
+
string: string;
|
|
23
|
+
method: string;
|
|
24
|
+
array: string;
|
|
25
|
+
object: string;
|
|
26
|
+
number: string;
|
|
27
|
+
date: string;
|
|
28
|
+
boolean: string;
|
|
29
|
+
integer: string;
|
|
30
|
+
float: string;
|
|
31
|
+
regexp: string;
|
|
32
|
+
email: string;
|
|
33
|
+
url: string;
|
|
34
|
+
hex: string;
|
|
35
|
+
};
|
|
36
|
+
string: {
|
|
37
|
+
len: string;
|
|
38
|
+
min: string;
|
|
39
|
+
max: string;
|
|
40
|
+
range: string;
|
|
41
|
+
};
|
|
42
|
+
number: {
|
|
43
|
+
len: string;
|
|
44
|
+
min: string;
|
|
45
|
+
max: string;
|
|
46
|
+
range: string;
|
|
47
|
+
};
|
|
48
|
+
array: {
|
|
49
|
+
len: string;
|
|
50
|
+
min: string;
|
|
51
|
+
max: string;
|
|
52
|
+
range: string;
|
|
53
|
+
};
|
|
54
|
+
pattern: {
|
|
55
|
+
mismatch: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
en: {
|
|
59
|
+
default: string;
|
|
60
|
+
required: string;
|
|
61
|
+
enum: string;
|
|
62
|
+
whitespace: string;
|
|
63
|
+
date: {
|
|
64
|
+
format: string;
|
|
65
|
+
parse: string;
|
|
66
|
+
invalid: string;
|
|
67
|
+
};
|
|
68
|
+
types: {
|
|
69
|
+
string: string;
|
|
70
|
+
method: string;
|
|
71
|
+
array: string;
|
|
72
|
+
object: string;
|
|
73
|
+
number: string;
|
|
74
|
+
date: string;
|
|
75
|
+
boolean: string;
|
|
76
|
+
integer: string;
|
|
77
|
+
float: string;
|
|
78
|
+
regexp: string;
|
|
79
|
+
email: string;
|
|
80
|
+
url: string;
|
|
81
|
+
hex: string;
|
|
82
|
+
};
|
|
83
|
+
string: {
|
|
84
|
+
len: string;
|
|
85
|
+
min: string;
|
|
86
|
+
max: string;
|
|
87
|
+
range: string;
|
|
88
|
+
};
|
|
89
|
+
number: {
|
|
90
|
+
len: string;
|
|
91
|
+
min: string;
|
|
92
|
+
max: string;
|
|
93
|
+
range: string;
|
|
94
|
+
};
|
|
95
|
+
array: {
|
|
96
|
+
len: string;
|
|
97
|
+
min: string;
|
|
98
|
+
max: string;
|
|
99
|
+
range: string;
|
|
100
|
+
};
|
|
101
|
+
pattern: {
|
|
102
|
+
mismatch: string;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const defaultValidateMessages: {
|
|
2
|
+
default: string;
|
|
3
|
+
required: string;
|
|
4
|
+
enum: string;
|
|
5
|
+
whitespace: string;
|
|
6
|
+
date: {
|
|
7
|
+
format: string;
|
|
8
|
+
parse: string;
|
|
9
|
+
invalid: string;
|
|
10
|
+
};
|
|
11
|
+
types: {
|
|
12
|
+
string: string;
|
|
13
|
+
method: string;
|
|
14
|
+
array: string;
|
|
15
|
+
object: string;
|
|
16
|
+
number: string;
|
|
17
|
+
date: string;
|
|
18
|
+
boolean: string;
|
|
19
|
+
integer: string;
|
|
20
|
+
float: string;
|
|
21
|
+
regexp: string;
|
|
22
|
+
email: string;
|
|
23
|
+
url: string;
|
|
24
|
+
hex: string;
|
|
25
|
+
};
|
|
26
|
+
string: {
|
|
27
|
+
len: string;
|
|
28
|
+
min: string;
|
|
29
|
+
max: string;
|
|
30
|
+
range: string;
|
|
31
|
+
};
|
|
32
|
+
number: {
|
|
33
|
+
len: string;
|
|
34
|
+
min: string;
|
|
35
|
+
max: string;
|
|
36
|
+
range: string;
|
|
37
|
+
};
|
|
38
|
+
array: {
|
|
39
|
+
len: string;
|
|
40
|
+
min: string;
|
|
41
|
+
max: string;
|
|
42
|
+
range: string;
|
|
43
|
+
};
|
|
44
|
+
pattern: {
|
|
45
|
+
mismatch: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
declare const _default: {
|
|
49
|
+
colon: string;
|
|
50
|
+
};
|
|
51
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import type { Meta } from 'rc-field-form/lib/interface';
|
|
3
|
+
import type { InternalNamePath } from './interface';
|
|
4
|
+
import type { ValidateStatus } from './FieldFormItem';
|
|
5
|
+
/**
|
|
6
|
+
* 转换为数组
|
|
7
|
+
*/
|
|
8
|
+
export declare function toArray<T>(candidate?: T | T[] | false): T[];
|
|
9
|
+
/**
|
|
10
|
+
* 获取字段id
|
|
11
|
+
* @param namePath
|
|
12
|
+
* @param formName
|
|
13
|
+
* @returns string
|
|
14
|
+
*/
|
|
15
|
+
export declare function getFieldId(namePath: InternalNamePath, formName?: string): string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* 通过 meta 或传递的 validateStatus 获取合并后的状态
|
|
18
|
+
*/
|
|
19
|
+
export declare function getStatus<DefaultValue>(errors: ReactNode[], warnings: ReactNode[], meta: Meta, defaultValidateStatus: ValidateStatus | DefaultValue, hasFeedback?: boolean, validateStatus?: ValidateStatus): ValidateStatus | DefaultValue;
|
|
20
|
+
export declare function isReactComponent(element: React.ReactElement): boolean;
|
|
21
|
+
export declare function isDOMElement(element: React.ReactElement): boolean;
|
package/Form/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DeepClone } from '@paraview/lib';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-
|
|
4
|
+
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-43c653bb.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
7
7
|
import '../TextField/index.js';
|
|
@@ -28,7 +28,7 @@ import '../_verture/index-bde7aabe.js';
|
|
|
28
28
|
import 'rc-dropdown';
|
|
29
29
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
30
30
|
import 'dayjs';
|
|
31
|
-
import '../_verture/slicedToArray-
|
|
31
|
+
import '../_verture/slicedToArray-61604a6c.js';
|
|
32
32
|
import '../RadioGroup/index.js';
|
|
33
33
|
import '../Radio/index.js';
|
|
34
34
|
import '../Select/index.js';
|
|
@@ -51,12 +51,10 @@ import 'rc-input-number';
|
|
|
51
51
|
import '@para-ui/icons/Up';
|
|
52
52
|
import '../ComboSelect/index.js';
|
|
53
53
|
import '../Table/index.js';
|
|
54
|
-
import '../_verture/typeof-adeedc13.js';
|
|
55
54
|
import '@para-ui/icons/ScreenF';
|
|
56
55
|
import '@para-ui/icons/UpTriangleF';
|
|
57
56
|
import '@para-ui/icons/DownTriangleF';
|
|
58
57
|
import '@para-ui/icons/Panel';
|
|
59
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
60
58
|
import '../_verture/index-0f5ee6f7.js';
|
|
61
59
|
import '../_verture/sortable.esm-76fe46a4.js';
|
|
62
60
|
import '../OperateBtn/index.js';
|
|
@@ -74,8 +72,10 @@ import '@para-ui/icons/Right';
|
|
|
74
72
|
import '@para-ui/icons/DoubleLeft';
|
|
75
73
|
import '@para-ui/icons/DoubleRight';
|
|
76
74
|
import '../ScrollBar/index.js';
|
|
77
|
-
import '../_verture/index-
|
|
78
|
-
import '../_verture/toConsumableArray-
|
|
75
|
+
import '../_verture/index-320d67c4.js';
|
|
76
|
+
import '../_verture/toConsumableArray-599cd94a.js';
|
|
77
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
78
|
+
import '../_verture/typeof-adeedc13.js';
|
|
79
79
|
import '../_verture/index-8ac46bd9.js';
|
|
80
80
|
import '../_verture/typeof-6ec38efd.js';
|
|
81
81
|
import 'rc-tree';
|
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-43c653bb.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-5317fc89.js';
|
|
@@ -27,7 +27,7 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
27
27
|
import 'dayjs';
|
|
28
28
|
import '../Help/index.js';
|
|
29
29
|
import '@para-ui/icons/Help';
|
|
30
|
-
import '../_verture/slicedToArray-
|
|
30
|
+
import '../_verture/slicedToArray-61604a6c.js';
|
|
31
31
|
import '../RadioGroup/index.js';
|
|
32
32
|
import '../Radio/index.js';
|
|
33
33
|
import '../Select/index.js';
|
|
@@ -51,12 +51,10 @@ import 'rc-input-number';
|
|
|
51
51
|
import '@para-ui/icons/Up';
|
|
52
52
|
import '../ComboSelect/index.js';
|
|
53
53
|
import '../Table/index.js';
|
|
54
|
-
import '../_verture/typeof-adeedc13.js';
|
|
55
54
|
import '@para-ui/icons/ScreenF';
|
|
56
55
|
import '@para-ui/icons/UpTriangleF';
|
|
57
56
|
import '@para-ui/icons/DownTriangleF';
|
|
58
57
|
import '@para-ui/icons/Panel';
|
|
59
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
60
58
|
import '../_verture/index-0f5ee6f7.js';
|
|
61
59
|
import '../_verture/sortable.esm-76fe46a4.js';
|
|
62
60
|
import '../OperateBtn/index.js';
|
|
@@ -74,8 +72,10 @@ import '@para-ui/icons/Right';
|
|
|
74
72
|
import '@para-ui/icons/DoubleLeft';
|
|
75
73
|
import '@para-ui/icons/DoubleRight';
|
|
76
74
|
import '../ScrollBar/index.js';
|
|
77
|
-
import '../_verture/index-
|
|
78
|
-
import '../_verture/toConsumableArray-
|
|
75
|
+
import '../_verture/index-320d67c4.js';
|
|
76
|
+
import '../_verture/toConsumableArray-599cd94a.js';
|
|
77
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
78
|
+
import '../_verture/typeof-adeedc13.js';
|
|
79
79
|
import '../_verture/index-8ac46bd9.js';
|
|
80
80
|
import '../_verture/typeof-6ec38efd.js';
|
|
81
81
|
import 'rc-tree';
|
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-6ac2e323.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-6ac2e323.js';
|
|
3
3
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/Image/index.js
CHANGED
|
@@ -2,14 +2,16 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useRef, useEffect, useContext, useMemo } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { _ as _objectSpread2, w as warning, c as clsx, b as _objectWithoutProperties, a as _extends } from '../_verture/index-1856bbeb.js';
|
|
6
6
|
import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
|
|
7
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
7
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
8
8
|
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
9
|
+
import { w as wrapperRaf, P as Portal, K as KeyCode, d as useMergedState } from '../_verture/Portal-502bb85e.js';
|
|
9
10
|
import Dialog from 'rc-dialog';
|
|
10
11
|
import ReactDOM from 'react-dom';
|
|
12
|
+
import { i as isEqual } from '../_verture/isEqual-30b6f859.js';
|
|
11
13
|
import CSSMotion from 'rc-motion';
|
|
12
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
14
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
|
|
13
15
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
14
16
|
import Sort from '@para-ui/icons/Sort';
|
|
15
17
|
import Switch from '@para-ui/icons/Switch';
|
|
@@ -158,58 +160,6 @@ function addEventListenerWrap(target, eventType, cb, option) {
|
|
|
158
160
|
};
|
|
159
161
|
}
|
|
160
162
|
|
|
161
|
-
/**
|
|
162
|
-
* Deeply compares two object literals.
|
|
163
|
-
* @param obj1 object 1
|
|
164
|
-
* @param obj2 object 2
|
|
165
|
-
* @param shallow shallow compare
|
|
166
|
-
* @returns
|
|
167
|
-
*/
|
|
168
|
-
function isEqual(obj1, obj2) {
|
|
169
|
-
var shallow = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
170
|
-
// https://github.com/mapbox/mapbox-gl-js/pull/5979/files#diff-fde7145050c47cc3a306856efd5f9c3016e86e859de9afbd02c879be5067e58f
|
|
171
|
-
var refSet = new Set();
|
|
172
|
-
function deepEqual(a, b) {
|
|
173
|
-
var level = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
174
|
-
var circular = refSet.has(a);
|
|
175
|
-
warningOnce(!circular, 'Warning: There may be circular references');
|
|
176
|
-
if (circular) {
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
if (a === b) {
|
|
180
|
-
return true;
|
|
181
|
-
}
|
|
182
|
-
if (shallow && level > 1) {
|
|
183
|
-
return false;
|
|
184
|
-
}
|
|
185
|
-
refSet.add(a);
|
|
186
|
-
var newLevel = level + 1;
|
|
187
|
-
if (Array.isArray(a)) {
|
|
188
|
-
if (!Array.isArray(b) || a.length !== b.length) {
|
|
189
|
-
return false;
|
|
190
|
-
}
|
|
191
|
-
for (var i = 0; i < a.length; i++) {
|
|
192
|
-
if (!deepEqual(a[i], b[i], newLevel)) {
|
|
193
|
-
return false;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return true;
|
|
197
|
-
}
|
|
198
|
-
if (a && b && _typeof(a) === 'object' && _typeof(b) === 'object') {
|
|
199
|
-
var keys = Object.keys(a);
|
|
200
|
-
if (keys.length !== Object.keys(b).length) {
|
|
201
|
-
return false;
|
|
202
|
-
}
|
|
203
|
-
return keys.every(function (key) {
|
|
204
|
-
return deepEqual(a[key], b[key], newLevel);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
// other
|
|
208
|
-
return false;
|
|
209
|
-
}
|
|
210
|
-
return deepEqual(obj1, obj2);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
163
|
var initialTransform = {
|
|
214
164
|
x: 0,
|
|
215
165
|
y: 0,
|
package/PopMenu/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { Popover } from '../Popover/index.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
9
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
8
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
|
|
9
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
10
10
|
import Right from '@para-ui/icons/Right';
|
|
11
11
|
import AutoTips from '../AutoTips/index.js';
|
|
12
12
|
import { Tooltip } from '../Tooltip/index.js';
|
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 🎉 para-ui/core@4.0.54 发布
|
|
2
|
+
|
|
3
|
+
🎁【Feature】
|
|
4
|
+
- 【FieldForm-表单】新增表单组件
|
|
5
|
+
|
|
6
|
+
## 🎉 para-ui/core@4.0.53 发布
|
|
7
|
+
|
|
8
|
+
🔧【Bugfix】
|
|
9
|
+
- 【表格-Table】修改表格页面缩放抖动问题
|
|
10
|
+
|
|
1
11
|
## 🎉 para-ui/core@4.0.52 发布
|
|
2
12
|
|
|
3
13
|
🔧【Bugfix】
|
|
@@ -132,9 +142,14 @@
|
|
|
132
142
|
【自动按钮-AutoButton】新增自动按钮组件
|
|
133
143
|
【消息角标-Badge】新增偏移量offset参数,sign传null为不显示角标
|
|
134
144
|
|
|
145
|
+
|
|
135
146
|
## 版本: 4.0.30
|
|
136
147
|
para-ui/core@4.0.30 发布
|
|
137
148
|
【范围输入框-RangeInput】新增组件范围输入框
|
|
149
|
+
【穿梭框-Transfer】修复传入data数据不变时,穿梭框数据更新异常问题;支持禁用态
|
|
150
|
+
【文档-codeBox】添加所有组件和icon默认依赖
|
|
151
|
+
【开关-switch】过滤error
|
|
152
|
+
【级联选择器】支持错误态
|
|
138
153
|
|
|
139
154
|
## 版本: 4.0.29
|
|
140
155
|
【展示内容容器-ContentBox】新增展示内容容器-ContentBox
|
package/Result/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import clsx from 'clsx';
|
|
|
3
3
|
import AutoTips from '../AutoTips/index.js';
|
|
4
4
|
import Check from '@para-ui/icons/Check';
|
|
5
5
|
import Close from '@para-ui/icons/Close';
|
|
6
|
-
import
|
|
6
|
+
import Loading from '@para-ui/icons/Loading';
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
8
8
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
9
|
import 'react';
|
|
@@ -20,7 +20,7 @@ styleInject(css_248z);
|
|
|
20
20
|
const iconMapping = {
|
|
21
21
|
success: jsx(Check, {}),
|
|
22
22
|
error: jsx(Close, {}),
|
|
23
|
-
loading: jsx(
|
|
23
|
+
loading: jsx(Loading, {})
|
|
24
24
|
};
|
|
25
25
|
const Result = props => {
|
|
26
26
|
const {
|
package/Selector/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import { useState, useRef, useEffect, Fragment as Fragment$1 } from 'react';
|
|
4
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
4
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
5
5
|
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
6
6
|
import { Radio } from '../Radio/index.js';
|
|
7
7
|
import { Checkbox } from '../Checkbox/index.js';
|
package/SelectorPicker/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import 'rc-dropdown';
|
|
|
24
24
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
25
25
|
import 'dayjs';
|
|
26
26
|
import '@paraview/lib';
|
|
27
|
-
import '../_verture/slicedToArray-
|
|
27
|
+
import '../_verture/slicedToArray-61604a6c.js';
|
|
28
28
|
import '../_verture/index-8ac46bd9.js';
|
|
29
29
|
import '../_verture/typeof-6ec38efd.js';
|
|
30
30
|
import '../Radio/index.js';
|
package/Switch/index.d.ts
CHANGED
package/Switch/index.js
CHANGED
|
@@ -52,9 +52,10 @@ const Switch = props => {
|
|
|
52
52
|
}),
|
|
53
53
|
labelPlacement = 'top',
|
|
54
54
|
descPlacement = 'start',
|
|
55
|
-
supText
|
|
55
|
+
supText,
|
|
56
|
+
error
|
|
56
57
|
} = props,
|
|
57
|
-
restProps = __rest(props, ["size", "loading", "disabled", "className", "label", "required", "desc", "labelTooltip", "descTooltip", "disabledTooltip", "loadingTitle", "labelPlacement", "descPlacement", "supText"]);
|
|
58
|
+
restProps = __rest(props, ["size", "loading", "disabled", "className", "label", "required", "desc", "labelTooltip", "descTooltip", "disabledTooltip", "loadingTitle", "labelPlacement", "descPlacement", "supText", "error"]);
|
|
58
59
|
//cls
|
|
59
60
|
const classes = clsx("".concat($prefixCls, "-switch"), {
|
|
60
61
|
// [`${$prefixCls}-switch-small`]: size === 'small',
|