@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
|
@@ -45,16 +45,13 @@ var getOverlaySize = function getOverlaySize(mode) {
|
|
|
45
45
|
} else if (mode === 'list') {
|
|
46
46
|
//list
|
|
47
47
|
if (clientH <= screenH) {
|
|
48
|
-
return isRemoteLoad ? {
|
|
49
|
-
height: listOverlay
|
|
50
|
-
} : _defineProperty({}, fixHeight, listOverlay);
|
|
48
|
+
return isRemoteLoad ? _defineProperty({}, fixHeight, listOverlay) : _defineProperty({}, fixHeight, listOverlay);
|
|
51
49
|
}
|
|
52
|
-
return isRemoteLoad ? {
|
|
53
|
-
height: largeListOverlayH
|
|
54
|
-
} : _defineProperty({}, fixHeight, largeListOverlayH);
|
|
50
|
+
return isRemoteLoad ? _defineProperty({}, fixHeight, largeListOverlayH) : _defineProperty({}, fixHeight, largeListOverlayH);
|
|
55
51
|
} else {
|
|
56
52
|
//table
|
|
57
53
|
return {
|
|
54
|
+
width: '900px',
|
|
58
55
|
height: "".concat((_a = maxHeight !== null && maxHeight !== void 0 ? maxHeight : height) !== null && _a !== void 0 ? _a : 380, "px")
|
|
59
56
|
};
|
|
60
57
|
}
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { default as AutoBox } from './AutoBox';
|
|
|
2
2
|
export * from './AutoBox';
|
|
3
3
|
export { default as AutoTips } from './AutoTips';
|
|
4
4
|
export * from './AutoTips';
|
|
5
|
+
export { default as Badge } from './Badge';
|
|
6
|
+
export * from './Badge';
|
|
5
7
|
export { default as Breadcrumbs } from './Breadcrumbs';
|
|
6
8
|
export * from './Breadcrumbs';
|
|
7
9
|
export { default as Button } from './Button';
|
package/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
export { AutoBox } from './AutoBox/index.js';
|
|
2
2
|
export { default as AutoTips, AutoTipsMultiline } from './AutoTips/index.js';
|
|
3
|
+
export { Badge } from './Badge/index.js';
|
|
3
4
|
export { Breadcrumbs } from './Breadcrumbs/index.js';
|
|
4
5
|
export { Button } from './Button/index.js';
|
|
5
6
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
6
7
|
export { Carousel } from './Carousel/index.js';
|
|
7
|
-
export { C as Cascader } from './_verture/index-
|
|
8
|
+
export { C as Cascader } from './_verture/index-92e406f4.js';
|
|
8
9
|
export { Checkbox } from './Checkbox/index.js';
|
|
9
10
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
10
11
|
export { Collapse } from './Collapse/index.js';
|
|
11
12
|
export { default as CollapseBox } from './CollapseBox/index.js';
|
|
12
13
|
export { default as CollapseLayout } from './CollapseLayout/index.js';
|
|
13
|
-
export { C as ChromePicker, S as ColorPicker, a as CompactPicker, b as SwatchesPicker } from './_verture/index-
|
|
14
|
+
export { C as ChromePicker, S as ColorPicker, a as CompactPicker, b as SwatchesPicker } from './_verture/index-0f315bca.js';
|
|
14
15
|
export { ComboSelect } from './ComboSelect/index.js';
|
|
15
16
|
export { Container } from './Container/index.js';
|
|
16
17
|
export { default as CopyText } from './CopyText/index.js';
|
|
@@ -22,8 +23,8 @@ export { D as Dropdown } from './_verture/index-e9007d6a.js';
|
|
|
22
23
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
23
24
|
export { default as Empty } from './Empty/index.js';
|
|
24
25
|
export { default as Form } from './Form/index.js';
|
|
25
|
-
export { F as FormItem } from './_verture/index-
|
|
26
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
26
|
+
export { F as FormItem } from './_verture/index-d251967e.js';
|
|
27
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-9299acc9.js';
|
|
27
28
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
28
29
|
export { default as Help } from './Help/index.js';
|
|
29
30
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -68,7 +69,7 @@ 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/index-
|
|
72
|
+
export { T as Tree } from './_verture/index-bc461491.js';
|
|
72
73
|
export { default as Upload } from './Upload/index.js';
|
|
73
74
|
export { default as locale } from './locale/index.js';
|
|
74
75
|
import './_verture/slicedToArray-a8206399.js';
|
|
@@ -80,13 +81,13 @@ import '@paraview/lib';
|
|
|
80
81
|
import './_verture/constant-0d9802f7.js';
|
|
81
82
|
import '@para-ui/icons/More';
|
|
82
83
|
import './_verture/style-inject.es-300983ab.js';
|
|
84
|
+
import './_verture/typeof-adeedc13.js';
|
|
85
|
+
import 'clsx';
|
|
83
86
|
import './_verture/toConsumableArray-8f4c9589.js';
|
|
84
87
|
import '@para-ui/icons/Return';
|
|
85
88
|
import './_verture/useFormatMessage-703f8b20.js';
|
|
86
89
|
import '@para-ui/core/GlobalContext';
|
|
87
|
-
import './_verture/typeof-adeedc13.js';
|
|
88
90
|
import './_verture/tslib.es6-55ed4bd2.js';
|
|
89
|
-
import 'clsx';
|
|
90
91
|
import '@para-ui/icons/LoadingF';
|
|
91
92
|
import '@para-ui/icons/Forbid';
|
|
92
93
|
import '@para-ui/icons/Down';
|
|
@@ -95,7 +96,7 @@ import 'react-slick';
|
|
|
95
96
|
import '@para-ui/icons/RightCircleF';
|
|
96
97
|
import '@para-ui/icons/LeftCircleF';
|
|
97
98
|
import 'rc-motion';
|
|
98
|
-
import './_verture/typeof-
|
|
99
|
+
import './_verture/typeof-c310ee4a.js';
|
|
99
100
|
import 'rc-tree/lib/utils/conductUtil';
|
|
100
101
|
import '@para-ui/icons/Right';
|
|
101
102
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -107,11 +108,10 @@ import './_verture/util-7e1fb1e2.js';
|
|
|
107
108
|
import '@para-ui/icons/DoubleLeft';
|
|
108
109
|
import '@para-ui/icons/DoubleRight';
|
|
109
110
|
import 'react-color';
|
|
110
|
-
import './_verture/index-
|
|
111
|
+
import './_verture/index-232d890b.js';
|
|
111
112
|
import '@para-ui/icons/Search';
|
|
112
113
|
import '@para-ui/icons/Close';
|
|
113
|
-
import '
|
|
114
|
-
import './_verture/utils-f0e81540.js';
|
|
114
|
+
import './_verture/utils-06d86594.js';
|
|
115
115
|
import './_verture/useGlobalProps-1b846a65.js';
|
|
116
116
|
import '@para-ui/icons/Copy';
|
|
117
117
|
import '@para-ui/icons/Check';
|
|
@@ -134,8 +134,9 @@ import '@para-ui/icons/Delete';
|
|
|
134
134
|
import '@para-ui/icons/Drag';
|
|
135
135
|
import './_verture/sortable.esm-49896035.js';
|
|
136
136
|
import '@para-ui/icons/LinkGroup';
|
|
137
|
+
import '@para-ui/icons/UploadFile';
|
|
137
138
|
import './_verture/intl-5c1ec055.js';
|
|
138
|
-
import './_verture/index-
|
|
139
|
+
import './_verture/index-19947788.js';
|
|
139
140
|
import '@para-ui/icons/Help';
|
|
140
141
|
import '@para-ui/icons/Internet';
|
|
141
142
|
import 'rc-input-number';
|
|
@@ -150,6 +151,7 @@ import 'rc-notification';
|
|
|
150
151
|
import 'rc-pagination';
|
|
151
152
|
import 'rc-progress';
|
|
152
153
|
import 'rc-slider';
|
|
154
|
+
import './_verture/tinycolor-ece3542d.js';
|
|
153
155
|
import 'rc-steps';
|
|
154
156
|
import '@para-ui/icons/One';
|
|
155
157
|
import '@para-ui/icons/Two';
|
|
@@ -179,7 +181,6 @@ import '@para-ui/icons/EditFile';
|
|
|
179
181
|
import '@para-ui/icons/PlusCircle';
|
|
180
182
|
import '@para-ui/icons/MoreCircle';
|
|
181
183
|
import 'rc-upload';
|
|
182
|
-
import '@para-ui/icons/UploadFile';
|
|
183
184
|
import '@para-ui/icons/Loading';
|
|
184
185
|
import '@para-ui/icons/Text';
|
|
185
186
|
import '@para-ui/icons/Photo';
|
package/locale/en-US.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ declare const _default: {
|
|
|
5
5
|
Button: {
|
|
6
6
|
moreActions: string;
|
|
7
7
|
};
|
|
8
|
+
Cascader: {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
disableTilte: string;
|
|
11
|
+
};
|
|
8
12
|
ComboSelect: {
|
|
9
13
|
searchPlaceholder: string;
|
|
10
14
|
cancel: string;
|
|
@@ -66,6 +70,15 @@ declare const _default: {
|
|
|
66
70
|
click: string;
|
|
67
71
|
refresh: string;
|
|
68
72
|
};
|
|
73
|
+
FormItem: {
|
|
74
|
+
choseFile: string;
|
|
75
|
+
unEmpty: string;
|
|
76
|
+
maxLength: string;
|
|
77
|
+
minLength: string;
|
|
78
|
+
unRule: string;
|
|
79
|
+
minValue: string;
|
|
80
|
+
maxValue: string;
|
|
81
|
+
};
|
|
69
82
|
Modal: {
|
|
70
83
|
cancel: string;
|
|
71
84
|
ok: string;
|
|
@@ -113,6 +126,9 @@ declare const _default: {
|
|
|
113
126
|
SingleBox: {
|
|
114
127
|
add: string;
|
|
115
128
|
};
|
|
129
|
+
Switch: {
|
|
130
|
+
ing: string;
|
|
131
|
+
};
|
|
116
132
|
Table: {
|
|
117
133
|
empty: string;
|
|
118
134
|
determine: string;
|
|
@@ -126,6 +142,9 @@ declare const _default: {
|
|
|
126
142
|
Tabs: {
|
|
127
143
|
confirmDelete: string;
|
|
128
144
|
};
|
|
145
|
+
TextEditor: {
|
|
146
|
+
pleaseEnter: string;
|
|
147
|
+
};
|
|
129
148
|
Transfer: {
|
|
130
149
|
left: string;
|
|
131
150
|
right: string;
|
package/locale/index.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ declare const _default: {
|
|
|
6
6
|
Button: {
|
|
7
7
|
moreActions: string;
|
|
8
8
|
};
|
|
9
|
+
Cascader: {
|
|
10
|
+
placeholder: string;
|
|
11
|
+
disableTilte: string;
|
|
12
|
+
};
|
|
9
13
|
ComboSelect: {
|
|
10
14
|
searchPlaceholder: string;
|
|
11
15
|
cancel: string;
|
|
@@ -67,6 +71,15 @@ declare const _default: {
|
|
|
67
71
|
click: string;
|
|
68
72
|
refresh: string;
|
|
69
73
|
};
|
|
74
|
+
FormItem: {
|
|
75
|
+
choseFile: string;
|
|
76
|
+
unEmpty: string;
|
|
77
|
+
maxLength: string;
|
|
78
|
+
minLength: string;
|
|
79
|
+
unRule: string;
|
|
80
|
+
minValue: string;
|
|
81
|
+
maxValue: string;
|
|
82
|
+
};
|
|
70
83
|
Modal: {
|
|
71
84
|
cancel: string;
|
|
72
85
|
ok: string;
|
|
@@ -114,6 +127,9 @@ declare const _default: {
|
|
|
114
127
|
SingleBox: {
|
|
115
128
|
add: string;
|
|
116
129
|
};
|
|
130
|
+
Switch: {
|
|
131
|
+
ing: string;
|
|
132
|
+
};
|
|
117
133
|
Table: {
|
|
118
134
|
empty: string;
|
|
119
135
|
determine: string;
|
|
@@ -127,6 +143,9 @@ declare const _default: {
|
|
|
127
143
|
Tabs: {
|
|
128
144
|
confirmDelete: string;
|
|
129
145
|
};
|
|
146
|
+
TextEditor: {
|
|
147
|
+
pleaseEnter: string;
|
|
148
|
+
};
|
|
130
149
|
Transfer: {
|
|
131
150
|
left: string;
|
|
132
151
|
right: string;
|
|
@@ -162,6 +181,10 @@ declare const _default: {
|
|
|
162
181
|
Button: {
|
|
163
182
|
moreActions: string;
|
|
164
183
|
};
|
|
184
|
+
Cascader: {
|
|
185
|
+
placeholder: string;
|
|
186
|
+
disableTilte: string;
|
|
187
|
+
};
|
|
165
188
|
ComboSelect: {
|
|
166
189
|
searchPlaceholder: string;
|
|
167
190
|
cancel: string;
|
|
@@ -223,6 +246,15 @@ declare const _default: {
|
|
|
223
246
|
click: string;
|
|
224
247
|
refresh: string;
|
|
225
248
|
};
|
|
249
|
+
FormItem: {
|
|
250
|
+
choseFile: string;
|
|
251
|
+
unEmpty: string;
|
|
252
|
+
maxLength: string;
|
|
253
|
+
minLength: string;
|
|
254
|
+
unRule: string;
|
|
255
|
+
minValue: string;
|
|
256
|
+
maxValue: string;
|
|
257
|
+
};
|
|
226
258
|
Modal: {
|
|
227
259
|
cancel: string;
|
|
228
260
|
ok: string;
|
|
@@ -270,6 +302,9 @@ declare const _default: {
|
|
|
270
302
|
SingleBox: {
|
|
271
303
|
add: string;
|
|
272
304
|
};
|
|
305
|
+
Switch: {
|
|
306
|
+
ing: string;
|
|
307
|
+
};
|
|
273
308
|
Table: {
|
|
274
309
|
empty: string;
|
|
275
310
|
determine: string;
|
|
@@ -283,6 +318,9 @@ declare const _default: {
|
|
|
283
318
|
Tabs: {
|
|
284
319
|
confirmDelete: string;
|
|
285
320
|
};
|
|
321
|
+
TextEditor: {
|
|
322
|
+
pleaseEnter: string;
|
|
323
|
+
};
|
|
286
324
|
Transfer: {
|
|
287
325
|
left: string;
|
|
288
326
|
right: string;
|
package/locale/index.js
CHANGED
|
@@ -5,6 +5,10 @@ var enUS = {
|
|
|
5
5
|
"Button": {
|
|
6
6
|
"moreActions": "More actions"
|
|
7
7
|
},
|
|
8
|
+
"Cascader": {
|
|
9
|
+
"placeholder": "Please Choose",
|
|
10
|
+
"disableTilte": "Disable"
|
|
11
|
+
},
|
|
8
12
|
"ComboSelect": {
|
|
9
13
|
"searchPlaceholder": "Please enter",
|
|
10
14
|
"cancel": "Cancel",
|
|
@@ -66,6 +70,15 @@ var enUS = {
|
|
|
66
70
|
"click": ",Click to ",
|
|
67
71
|
"refresh": "refresh"
|
|
68
72
|
},
|
|
73
|
+
"FormItem": {
|
|
74
|
+
"choseFile": "Chose File",
|
|
75
|
+
"unEmpty": "{label} Cannot be empty",
|
|
76
|
+
"maxLength": "The maximum length cannot be exceeded{len}",
|
|
77
|
+
"minLength": "The minimum length cannot be exceeded{len}",
|
|
78
|
+
"unRule": "The parameter does not comply with the validation rule {rule}",
|
|
79
|
+
"minValue": "The minimum value is {val}",
|
|
80
|
+
"maxValue": "The maximum value is {val}"
|
|
81
|
+
},
|
|
69
82
|
"Modal": {
|
|
70
83
|
"cancel": "Cancel",
|
|
71
84
|
"ok": "Ok"
|
|
@@ -78,7 +91,7 @@ var enUS = {
|
|
|
78
91
|
},
|
|
79
92
|
"Pagination": {
|
|
80
93
|
"total": "Total {total}",
|
|
81
|
-
"barPage": "
|
|
94
|
+
"barPage": " / page",
|
|
82
95
|
"prevPage": "Prev",
|
|
83
96
|
"nextPage": "Next",
|
|
84
97
|
"jumpTo": "Go to",
|
|
@@ -113,6 +126,9 @@ var enUS = {
|
|
|
113
126
|
"SingleBox": {
|
|
114
127
|
"add": "Newly Added"
|
|
115
128
|
},
|
|
129
|
+
"Switch": {
|
|
130
|
+
"ing": "In Progress"
|
|
131
|
+
},
|
|
116
132
|
"Table": {
|
|
117
133
|
"empty": "Empty",
|
|
118
134
|
"determine": "Ok",
|
|
@@ -126,6 +142,9 @@ var enUS = {
|
|
|
126
142
|
"Tabs": {
|
|
127
143
|
"confirmDelete": "Are you sure delete?"
|
|
128
144
|
},
|
|
145
|
+
"TextEditor": {
|
|
146
|
+
"pleaseEnter": "Please Enter"
|
|
147
|
+
},
|
|
129
148
|
"Transfer": {
|
|
130
149
|
"left": "Left",
|
|
131
150
|
"right": "Right",
|
|
@@ -162,6 +181,10 @@ var zhCN = {
|
|
|
162
181
|
"Button": {
|
|
163
182
|
"moreActions": "更多操作"
|
|
164
183
|
},
|
|
184
|
+
"Cascader": {
|
|
185
|
+
"placeholder": "请选择",
|
|
186
|
+
"disableTilte": "禁用"
|
|
187
|
+
},
|
|
165
188
|
"ComboSelect": {
|
|
166
189
|
"searchPlaceholder": "请输入",
|
|
167
190
|
"cancel": "取消",
|
|
@@ -223,9 +246,18 @@ var zhCN = {
|
|
|
223
246
|
"click": ",点击",
|
|
224
247
|
"refresh": "刷新"
|
|
225
248
|
},
|
|
249
|
+
"FormItem": {
|
|
250
|
+
"choseFile": "选择文件",
|
|
251
|
+
"unEmpty": "{label}不能为空",
|
|
252
|
+
"maxLength": "最大长度不能超过{len}",
|
|
253
|
+
"minLength": "最小长度为{len}",
|
|
254
|
+
"unRule": "参数不符合校验规则{rule}",
|
|
255
|
+
"minValue": "最小值为{val}",
|
|
256
|
+
"maxValue": "最大值为{val}"
|
|
257
|
+
},
|
|
226
258
|
"Modal": {
|
|
227
|
-
"cancel": "
|
|
228
|
-
"ok": "
|
|
259
|
+
"cancel": "取 消",
|
|
260
|
+
"ok": "确 定"
|
|
229
261
|
},
|
|
230
262
|
"MultiBox": {
|
|
231
263
|
"add": "添 加"
|
|
@@ -270,6 +302,9 @@ var zhCN = {
|
|
|
270
302
|
"SingleBox": {
|
|
271
303
|
"add": "新增"
|
|
272
304
|
},
|
|
305
|
+
"Switch": {
|
|
306
|
+
"ing": "正在进行中"
|
|
307
|
+
},
|
|
273
308
|
"Table": {
|
|
274
309
|
"empty": "清空",
|
|
275
310
|
"determine": "确定",
|
|
@@ -283,6 +318,9 @@ var zhCN = {
|
|
|
283
318
|
"Tabs": {
|
|
284
319
|
"confirmDelete": "确定删除吗?"
|
|
285
320
|
},
|
|
321
|
+
"TextEditor": {
|
|
322
|
+
"pleaseEnter": "请输入内容"
|
|
323
|
+
},
|
|
286
324
|
"Transfer": {
|
|
287
325
|
"left": "左侧",
|
|
288
326
|
"right": "右侧",
|
package/locale/zh-CN.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ declare const _default: {
|
|
|
5
5
|
Button: {
|
|
6
6
|
moreActions: string;
|
|
7
7
|
};
|
|
8
|
+
Cascader: {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
disableTilte: string;
|
|
11
|
+
};
|
|
8
12
|
ComboSelect: {
|
|
9
13
|
searchPlaceholder: string;
|
|
10
14
|
cancel: string;
|
|
@@ -66,6 +70,15 @@ declare const _default: {
|
|
|
66
70
|
click: string;
|
|
67
71
|
refresh: string;
|
|
68
72
|
};
|
|
73
|
+
FormItem: {
|
|
74
|
+
choseFile: string;
|
|
75
|
+
unEmpty: string;
|
|
76
|
+
maxLength: string;
|
|
77
|
+
minLength: string;
|
|
78
|
+
unRule: string;
|
|
79
|
+
minValue: string;
|
|
80
|
+
maxValue: string;
|
|
81
|
+
};
|
|
69
82
|
Modal: {
|
|
70
83
|
cancel: string;
|
|
71
84
|
ok: string;
|
|
@@ -113,6 +126,9 @@ declare const _default: {
|
|
|
113
126
|
SingleBox: {
|
|
114
127
|
add: string;
|
|
115
128
|
};
|
|
129
|
+
Switch: {
|
|
130
|
+
ing: string;
|
|
131
|
+
};
|
|
116
132
|
Table: {
|
|
117
133
|
empty: string;
|
|
118
134
|
determine: string;
|
|
@@ -126,6 +142,9 @@ declare const _default: {
|
|
|
126
142
|
Tabs: {
|
|
127
143
|
confirmDelete: string;
|
|
128
144
|
};
|
|
145
|
+
TextEditor: {
|
|
146
|
+
pleaseEnter: string;
|
|
147
|
+
};
|
|
129
148
|
Transfer: {
|
|
130
149
|
left: string;
|
|
131
150
|
right: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@para-ui/core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.0-
|
|
4
|
+
"version": "4.0.0-rc.1",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"description": "Powered by Para FED",
|
|
@@ -16,16 +16,26 @@
|
|
|
16
16
|
"build:umd": "webpack --config=./config/webpack.umd.config.js",
|
|
17
17
|
"npm:publish": "./publish.sh",
|
|
18
18
|
"test": "jest",
|
|
19
|
-
"test:hnj": "jest __tests__/component/
|
|
20
|
-
"coverage": "jest --coverage"
|
|
19
|
+
"test:hnj": "jest __tests__/component/Tree/OperateBar.test.tsx",
|
|
20
|
+
"coverage": "jest --coverage",
|
|
21
|
+
"lint:script": "git diff --name-only --diff-filter=d | grep -E '(.ts$|.tsx$|.jsx$)' | xargs eslint --fix",
|
|
22
|
+
"lint:style": "git diff --name-only --diff-filter=d | grep -E '(.css$|.scss$)' | xargs stylelint --fix",
|
|
23
|
+
"lint": "npm run lint:script && npm run lint:style",
|
|
24
|
+
"lint:script-all": "eslint --ext .js,.jsx,.ts,.tsx --fix src",
|
|
25
|
+
"lint:style-all": "stylelint 'src/**/*.{css,scss}' --fix",
|
|
26
|
+
"lint:all": "npm run lint:script-all && npm run lint:style-all",
|
|
27
|
+
"prepare": "if [ \"$CI\" != \"true\" ]; then npx husky install; fi"
|
|
21
28
|
},
|
|
22
29
|
"dependencies": {
|
|
23
|
-
"@
|
|
30
|
+
"@monaco-editor/react": "^4.6.0",
|
|
31
|
+
"monaco-editor": "^0.44.0",
|
|
32
|
+
"@para-ui/core": "4.0.0-alpha",
|
|
24
33
|
"@paraview/lib": "^2.0.3",
|
|
25
34
|
"@wangeditor/editor": "^5.1.15",
|
|
26
35
|
"@wangeditor/editor-for-react": "^1.0.5",
|
|
27
36
|
"clsx": "1.1.1",
|
|
28
37
|
"dayjs": "^1.11.3",
|
|
38
|
+
"prettier": "^2.6.0",
|
|
29
39
|
"rc-cascader": "^3.8.0",
|
|
30
40
|
"rc-collapse": "3.1.2",
|
|
31
41
|
"rc-cropping": "1.0.1",
|
|
@@ -54,17 +64,20 @@
|
|
|
54
64
|
"react-slick": "0.28.1",
|
|
55
65
|
"react-sortablejs": "6.1.0",
|
|
56
66
|
"react-transition-group": "4.4.2",
|
|
57
|
-
"sortablejs": "^1.15.0"
|
|
67
|
+
"sortablejs": "^1.15.0",
|
|
68
|
+
"sucrase": "^3.34.0"
|
|
58
69
|
},
|
|
59
70
|
"devDependencies": {
|
|
60
|
-
"@
|
|
71
|
+
"@paraview/lint": "^0.1.7",
|
|
61
72
|
"@babel/core": "^7.18.6",
|
|
62
73
|
"@babel/plugin-proposal-decorators": "^7.18.6",
|
|
63
74
|
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
75
|
+
"monaco-editor-webpack-plugin": "^7.1.0",
|
|
64
76
|
"@babel/preset-env": "^7.18.6",
|
|
65
77
|
"@babel/preset-react": "^7.18.6",
|
|
66
78
|
"@babel/preset-typescript": "^7.18.6",
|
|
67
79
|
"@para-snack/core": "^2.1.0",
|
|
80
|
+
"@para-ui/icons": "^4.0.0",
|
|
68
81
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
69
82
|
"@rollup/plugin-babel": "^5.3.1",
|
|
70
83
|
"@rollup/plugin-commonjs": "^22.0.1",
|
|
@@ -74,6 +87,7 @@
|
|
|
74
87
|
"@swc/core": "^1.2.118",
|
|
75
88
|
"@testing-library/jest-dom": "^5.11.4",
|
|
76
89
|
"@testing-library/react": "^11.2.5",
|
|
90
|
+
"@types/babel__standalone": "^7.1.5",
|
|
77
91
|
"@types/jest": "^29.5.1",
|
|
78
92
|
"@types/react": "17.0.44",
|
|
79
93
|
"@types/react-color": "^3.0.6",
|
|
@@ -85,23 +99,33 @@
|
|
|
85
99
|
"@types/react-transition-group": "^4.4.4",
|
|
86
100
|
"@types/sortablejs": "^1.15.0",
|
|
87
101
|
"@types/tinycolor2": "^1.4.4",
|
|
102
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
103
|
+
"@typescript-eslint/parser": "^4.33.0",
|
|
88
104
|
"babel-jest": "^26.6.2",
|
|
89
105
|
"copy-webpack-plugin": "^11.0.0",
|
|
90
106
|
"core-js": "^3.21.1",
|
|
91
107
|
"css-loader": "^3.4.2",
|
|
108
|
+
"eslint": "^7.32.0",
|
|
109
|
+
"eslint-config-prettier": "^8.3.0",
|
|
110
|
+
"eslint-plugin-complexity": "^1.0.2",
|
|
111
|
+
"eslint-plugin-file-progress": "^1.3.0",
|
|
112
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
113
|
+
"eslint-plugin-react": "^7.26.1",
|
|
92
114
|
"file-loader": "^5.1.0",
|
|
93
115
|
"fs-extra": "^8.1.0",
|
|
94
116
|
"html-webpack-plugin": "^5.5.0",
|
|
95
|
-
"husky": "^
|
|
117
|
+
"husky": "^7.0.0",
|
|
96
118
|
"identity-obj-proxy": "^3.0.0",
|
|
97
119
|
"jest": "^26.6.3",
|
|
98
120
|
"jest-fetch-mock": "^3.0.3",
|
|
99
121
|
"jsdom": "^16.0.0",
|
|
122
|
+
"lint-staged": "^11.0.0",
|
|
100
123
|
"matchmedia-polyfill": "^0.3.2",
|
|
101
124
|
"mini-css-extract-plugin": "^2.6.1",
|
|
102
125
|
"minimist": "^1.2.6",
|
|
103
|
-
"postcss": "^8.4.
|
|
126
|
+
"postcss": "^8.4.13",
|
|
104
127
|
"postcss-import": "^14.1.0",
|
|
128
|
+
"prettier": "^2.6.0",
|
|
105
129
|
"rc-select": "14.8.0",
|
|
106
130
|
"rc-trigger": "^5.3.4",
|
|
107
131
|
"react-app-polyfill": "^3.0.0",
|
|
@@ -117,6 +141,12 @@
|
|
|
117
141
|
"sass": "^1.52.1",
|
|
118
142
|
"sass-loader": "^8.0.2",
|
|
119
143
|
"style-loader": "^1.1.3",
|
|
144
|
+
"stylelint": "^14.9.1",
|
|
145
|
+
"stylelint-config-prettier": "^9.0.2",
|
|
146
|
+
"stylelint-config-recess-order": "^4.0.0",
|
|
147
|
+
"stylelint-config-standard": "^25.0.0",
|
|
148
|
+
"stylelint-config-standard-scss": "^3.0.0",
|
|
149
|
+
"stylelint-prettier": "^2.0.0",
|
|
120
150
|
"swc-loader": "^0.1.15",
|
|
121
151
|
"tinycolor2": "^1.6.0",
|
|
122
152
|
"ts-jest": "^26.5.4",
|
|
@@ -181,5 +211,20 @@
|
|
|
181
211
|
"http://10.10.2.48:10000",
|
|
182
212
|
"http://192.168.2.124:20000"
|
|
183
213
|
]
|
|
214
|
+
},
|
|
215
|
+
"lint-staged": {
|
|
216
|
+
"**/*.{jsx,tsx,ts}": [
|
|
217
|
+
"eslint --fix",
|
|
218
|
+
"eslint --max-warnings=0",
|
|
219
|
+
"git add"
|
|
220
|
+
],
|
|
221
|
+
"**/*.{scss,css}": [
|
|
222
|
+
"stylelint --fix",
|
|
223
|
+
"stylelint --max-warnings=0",
|
|
224
|
+
"git add"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"eslintConfig": {
|
|
228
|
+
"extends": "./.eslintrc.js"
|
|
184
229
|
}
|
|
185
230
|
}
|