@para-ui/core 4.0.18 → 4.0.19-aplha2
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/Breadcrumbs/index.js +2 -2
- package/Button/SplitButton.d.ts +1 -1
- package/Button/index.js +2 -2
- package/ButtonGroup/index.js +2 -2
- package/Cascader/OptionList/Column.d.ts +1 -1
- package/Cascader/index.js +4 -4
- package/ColorPicker/chromePicker/index.d.ts +1 -2
- package/ColorPicker/compactPicker/index.d.ts +1 -2
- package/ColorPicker/sketchPicker/index.d.ts +1 -2
- package/ColorPicker/swatchesPicker/index.d.ts +1 -2
- package/ComboSelect/index.js +4 -4
- package/Container/index.d.ts +1 -1
- package/CopyText/index.js +2 -2
- package/CycleSelector/index.js +3 -2
- package/DatePicker/PickerButton.d.ts +1 -2
- package/DatePicker/PickerTag.d.ts +1 -2
- package/DatePicker/index.js +2 -2
- package/Descriptions/index.js +2 -2
- package/Desktop/index.js +3 -3
- package/DragVerify/index.js +3 -2
- package/Drawer/index.js +2 -2
- package/DynamicMultiBox/formItem.d.ts +1 -2
- package/DynamicMultiBox/index.js +4 -4
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/DynamicMultiBox/rowForm.d.ts +1 -1
- package/Empty/images/index.d.ts +2 -3
- package/Empty/index.js +4 -3
- package/Form/index.js +5 -5
- package/FormItem/index.js +5 -5
- package/FunctionModal/index.js +4 -5
- package/FunctionModal/modalContext.d.ts +1 -2
- package/GlobalContext/index.js +3 -39
- package/InputLang/index.js +3 -3
- package/Message/index.d.ts +1 -1
- package/Modal/index.js +3 -4
- package/MultiBox/index.js +3 -3
- package/OperateBtn/index.js +2 -2
- package/PageHeader/index.js +2 -2
- package/Pagination/index.js +4 -4
- package/ParauiProvider/index.d.ts +2 -2
- package/ParauiProvider/index.js +3 -3
- package/PopConfirm/index.js +2 -2
- package/Prompt/index.d.ts +1 -1
- package/Querying/images/index.d.ts +2 -3
- package/Querying/index.js +4 -3
- package/QuickReply/index.js +3 -3
- package/README.md +4 -0
- package/Search/index.js +2 -2
- package/Select/index.js +4 -4
- package/SelectInput/index.js +4 -4
- package/Selector/index.js +328 -5
- package/SelectorPicker/index.js +3 -4
- package/SingleBox/index.js +3 -3
- package/Switch/index.js +3 -2
- package/Table/index.js +3 -3
- package/Tabs/index.js +2 -2
- package/TextEditor/index.js +2 -2
- package/TextField/index.js +2 -2
- package/TimePicker/index.js +2 -2
- package/Timeline/TimelineItem.d.ts +1 -1
- package/ToggleButton/index.js +2 -2
- package/Tooltip/utils.d.ts +1 -1
- package/Transfer/box.d.ts +1 -1
- package/Transfer/index.d.ts +1 -1
- package/Transfer/index.js +3 -3
- package/Tree/index.js +5 -5
- package/Tree/utils/treeUtil.d.ts +1 -1
- package/Upload/index.js +411 -629
- package/_verture/{index-10792f39.js → index-543781c9.js} +1 -1
- package/_verture/{index-02b7a0b7.js → index-c77ccb98.js} +1 -1
- package/_verture/{intl-f2f27722.js → index-ca413216.js} +54 -1
- package/_verture/{index-cc76d8d5.js → index-cb218775.js} +1 -1
- package/_verture/{useFormatMessage-eb13cf56.js → useFormatMessage-1fc7c957.js} +1 -1
- package/_verture/{useGlobalProps-1e416658.js → useGlobalProps-4ae1a007.js} +1 -1
- package/index.js +8 -11
- package/package.json +12 -16
- package/umd/Breadcrumbs.js +7 -7
- package/umd/Button.js +2 -2
- package/umd/ButtonGroup.js +4 -4
- package/umd/Carousel.js +3 -3
- package/umd/Cascader.js +1 -1
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +5 -5
- package/umd/CopyText.js +7 -7
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +2 -2
- package/umd/Descriptions.js +7 -7
- package/umd/Desktop.js +2 -2
- package/umd/DragVerify.js +3 -3
- package/umd/Drawer.js +2 -2
- package/umd/DynamicMultiBox.js +3 -3
- package/umd/Empty.js +1 -1
- package/umd/Form.js +3 -3
- package/umd/FormItem.js +3 -3
- package/umd/FunctionModal.js +7 -7
- package/umd/GlobalContext.js +1 -1
- package/umd/InputLang.js +2 -2
- package/umd/Modal.js +2 -2
- package/umd/MultiBox.js +5 -5
- package/umd/OperateBtn.js +2 -2
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +3 -3
- package/umd/ParauiProvider.js +1 -1
- package/umd/PopConfirm.js +5 -5
- package/umd/Querying.js +1 -1
- package/umd/QuickReply.js +2 -2
- package/umd/Search.js +2 -2
- package/umd/Select.js +3 -3
- package/umd/SelectInput.js +3 -3
- package/umd/Selector.js +2 -2
- package/umd/SelectorPicker.js +4 -4
- package/umd/SingleBox.js +2 -2
- package/umd/Switch.js +2 -2
- package/umd/Table.js +5 -5
- package/umd/Tabs.js +2 -2
- package/umd/TextEditor.js +3 -3
- package/umd/TextField.js +2 -2
- package/umd/TimePicker.js +2 -2
- package/umd/ToggleButton.js +2 -2
- package/umd/Transfer.js +8 -8
- package/umd/Tree.js +4 -4
- package/umd/Upload.js +7 -7
- package/_verture/index-287ae1b3.js +0 -327
- package/_verture/index-c568f272.js +0 -18
- /package/_verture/{modalContext-3ba6ca8f.js → modalContext-c8cc3107.js} +0 -0
|
@@ -11,7 +11,7 @@ import ParaLinkGroup from '@para-ui/icons/LinkGroup';
|
|
|
11
11
|
import AutoTips from '../AutoTips/index.js';
|
|
12
12
|
import { Button } from '../Button/index.js';
|
|
13
13
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
14
|
-
import { u as useFormatMessage } from './useFormatMessage-
|
|
14
|
+
import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
|
|
15
15
|
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
16
16
|
import { InputNumber } from '../InputNumber/index.js';
|
|
17
17
|
import { ComboSelect } from '../ComboSelect/index.js';
|
|
@@ -17,7 +17,7 @@ import Delete from '@para-ui/icons/Delete';
|
|
|
17
17
|
import Forbid from '@para-ui/icons/Forbid';
|
|
18
18
|
import { Tooltip } from '../Tooltip/index.js';
|
|
19
19
|
import { UUID, Request } from '@paraview/lib';
|
|
20
|
-
import { u as useFormatMessage } from './useFormatMessage-
|
|
20
|
+
import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
|
|
21
21
|
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
22
22
|
import MoreOutlinedIcon from '@para-ui/icons/MoreCircle';
|
|
23
23
|
import Empty from '../Empty/index.js';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { GetLanguage } from '@paraview/lib';
|
|
3
|
+
|
|
1
4
|
// 实现 get 方法
|
|
2
5
|
// 支持对象和数组/支持默认值/支持路径/支持字符串模版变量/支持jsx/支持.运算符和[]运算符
|
|
3
6
|
const get = (obj, path, defaultValue) => {
|
|
@@ -66,4 +69,54 @@ const i18nIntl = props => {
|
|
|
66
69
|
return replaceStrTemplateVars(text, params);
|
|
67
70
|
};
|
|
68
71
|
|
|
69
|
-
|
|
72
|
+
var en = {
|
|
73
|
+
cancel: 'Cancel',
|
|
74
|
+
ok: 'Ok'
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
var zh = {
|
|
78
|
+
cancel: '取 消',
|
|
79
|
+
ok: '确 定'
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
var localeJson = {
|
|
83
|
+
zh,
|
|
84
|
+
en,
|
|
85
|
+
'zh-CN': zh,
|
|
86
|
+
'en-US': en
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
//confirm 默认中文
|
|
90
|
+
let confirmRuntimeLocale = Object.assign({}, localeJson['zh']);
|
|
91
|
+
const changeConfirmLocale = (newLocale, lang) => {
|
|
92
|
+
const confirmLocale = newLocale['Confirm'];
|
|
93
|
+
if (confirmLocale) {
|
|
94
|
+
confirmRuntimeLocale = Object.assign(Object.assign({}, confirmRuntimeLocale), confirmLocale);
|
|
95
|
+
} else {
|
|
96
|
+
if (!lang) lang = GetLanguage();
|
|
97
|
+
const curLang = (localeJson === null || localeJson === void 0 ? void 0 : localeJson[lang]) || localeJson['zh'] || {};
|
|
98
|
+
confirmRuntimeLocale = Object.assign({}, curLang);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const getConfirmLocale = () => {
|
|
102
|
+
return confirmRuntimeLocale;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const GlobalContext = /*#__PURE__*/React__default.createContext({
|
|
106
|
+
language: GetLanguage(),
|
|
107
|
+
// 防止不包provider,有国际化组件报错
|
|
108
|
+
intlFormat: (comName, defI18nData) => (ops, params) => {
|
|
109
|
+
const lang = GetLanguage();
|
|
110
|
+
return i18nIntl({
|
|
111
|
+
ops,
|
|
112
|
+
i18nData: {},
|
|
113
|
+
lang,
|
|
114
|
+
params,
|
|
115
|
+
defI18nData
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
// 每个组件的默认props
|
|
119
|
+
componentsProps: {}
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
export { GlobalContext as G, changeConfirmLocale as c, getConfirmLocale as g, i18nIntl as i, localeJson as l };
|
|
@@ -21,7 +21,7 @@ import { Forbid } from '@para-ui/icons';
|
|
|
21
21
|
import { $ as $prefixCls } from './constant-5317fc89.js';
|
|
22
22
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
23
23
|
import AutoTips from '../AutoTips/index.js';
|
|
24
|
-
import { u as useFormatMessage } from './useFormatMessage-
|
|
24
|
+
import { u as useFormatMessage } from './useFormatMessage-1fc7c957.js';
|
|
25
25
|
import { UUID } from '@paraview/lib';
|
|
26
26
|
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
27
27
|
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { Breadcrumbs } from './Breadcrumbs/index.js';
|
|
|
5
5
|
export { Button } from './Button/index.js';
|
|
6
6
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
7
7
|
export { Carousel } from './Carousel/index.js';
|
|
8
|
-
export { C as Cascader } from './_verture/index-
|
|
8
|
+
export { C as Cascader } from './_verture/index-cb218775.js';
|
|
9
9
|
export { Checkbox } from './Checkbox/index.js';
|
|
10
10
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
11
11
|
export { Collapse } from './Collapse/index.js';
|
|
@@ -25,9 +25,9 @@ export { D as Dropdown } from './_verture/index-389675ab.js';
|
|
|
25
25
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
26
26
|
export { default as Empty } from './Empty/index.js';
|
|
27
27
|
export { default as Form } from './Form/index.js';
|
|
28
|
-
export { F as FormItem } from './_verture/index-
|
|
29
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
30
|
-
export {
|
|
28
|
+
export { F as FormItem } from './_verture/index-543781c9.js';
|
|
29
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-c8cc3107.js';
|
|
30
|
+
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
31
31
|
export { default as Help } from './Help/index.js';
|
|
32
32
|
export { default as HelperText } from './HelperText/index.js';
|
|
33
33
|
export { InputLang } from './InputLang/index.js';
|
|
@@ -74,7 +74,7 @@ export { Title } from './Title/index.js';
|
|
|
74
74
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
75
75
|
export { Tooltip } from './Tooltip/index.js';
|
|
76
76
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
77
|
-
export { T as Tree } from './_verture/index-
|
|
77
|
+
export { T as Tree } from './_verture/index-c77ccb98.js';
|
|
78
78
|
export { default as Upload } from './Upload/index.js';
|
|
79
79
|
export { default as Utils, getDateYYYYMMddHHMM, pixelReplacement } from './Utils/index.js';
|
|
80
80
|
export { default as locale } from './locale/index.js';
|
|
@@ -87,8 +87,7 @@ import '@para-ui/icons/More';
|
|
|
87
87
|
import './_verture/style-inject.es-300983ab.js';
|
|
88
88
|
import 'clsx';
|
|
89
89
|
import '@para-ui/icons/Return';
|
|
90
|
-
import './_verture/useFormatMessage-
|
|
91
|
-
import '@para-ui/core/GlobalContext';
|
|
90
|
+
import './_verture/useFormatMessage-1fc7c957.js';
|
|
92
91
|
import './_verture/tslib.es6-55ed4bd2.js';
|
|
93
92
|
import '@para-ui/icons/LoadingF';
|
|
94
93
|
import '@para-ui/icons/Down';
|
|
@@ -117,11 +116,12 @@ import 'react-color';
|
|
|
117
116
|
import '@para-ui/icons/Search';
|
|
118
117
|
import '@para-ui/icons/Close';
|
|
119
118
|
import './_verture/utils-c17b5265.js';
|
|
120
|
-
import './_verture/useGlobalProps-
|
|
119
|
+
import './_verture/useGlobalProps-4ae1a007.js';
|
|
121
120
|
import '@para-ui/icons/Copy';
|
|
122
121
|
import '@para-ui/icons/CheckS';
|
|
123
122
|
import 'dayjs';
|
|
124
123
|
import '@para-ui/icons/WarningCircleF';
|
|
124
|
+
import '@para-ui/core/GlobalContext';
|
|
125
125
|
import 'rc-picker/es/generate/dayjs';
|
|
126
126
|
import 'rc-picker';
|
|
127
127
|
import '@para-ui/icons/Calendar';
|
|
@@ -144,8 +144,6 @@ import './_verture/index-9bef932a.js';
|
|
|
144
144
|
import './_verture/sortable.esm-49896035.js';
|
|
145
145
|
import '@para-ui/icons/LinkGroup';
|
|
146
146
|
import '@para-ui/icons/UploadFile';
|
|
147
|
-
import './_verture/intl-f2f27722.js';
|
|
148
|
-
import './_verture/index-c568f272.js';
|
|
149
147
|
import '@para-ui/icons/Help';
|
|
150
148
|
import '@para-ui/icons/Internet';
|
|
151
149
|
import 'rc-input-number';
|
|
@@ -163,7 +161,6 @@ import '@para-ui/icons/Plus';
|
|
|
163
161
|
import '@para-ui/icons/EditOutline';
|
|
164
162
|
import '@para-ui/icons/Message';
|
|
165
163
|
import '@para-ui/icons/Set';
|
|
166
|
-
import './_verture/index-287ae1b3.js';
|
|
167
164
|
import 'rc-slider';
|
|
168
165
|
import './_verture/tinycolor-ece3542d.js';
|
|
169
166
|
import 'rc-steps';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@para-ui/core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.19-aplha2",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"description": "Powered by Para FED",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@monaco-editor/react": "^4.6.0",
|
|
31
|
-
"monaco-editor": "^0.44.0",
|
|
32
31
|
"@para-ui/core": "4.0.9",
|
|
33
32
|
"@paraview/lib": "^2.0.3",
|
|
34
33
|
"@wangeditor/editor": "^5.1.15",
|
|
35
34
|
"@wangeditor/editor-for-react": "^1.0.5",
|
|
36
35
|
"clsx": "1.1.1",
|
|
37
36
|
"dayjs": "^1.11.3",
|
|
37
|
+
"monaco-editor": "^0.44.0",
|
|
38
38
|
"prettier": "^2.6.0",
|
|
39
39
|
"rc-cascader": "^3.8.0",
|
|
40
40
|
"rc-collapse": "3.1.2",
|
|
@@ -55,13 +55,12 @@
|
|
|
55
55
|
"rc-tooltip": "5.1.1",
|
|
56
56
|
"rc-tree": "4.2.2",
|
|
57
57
|
"rc-upload": "4.3.1",
|
|
58
|
-
"react": "^
|
|
58
|
+
"react": "^17.0.2",
|
|
59
59
|
"react-color": "2.19.3",
|
|
60
|
-
"react-dom": "^
|
|
60
|
+
"react-dom": "^17.0.2",
|
|
61
61
|
"react-easy-crop": "4.1.4",
|
|
62
|
-
"react-intl-hooks": "^1.0.11",
|
|
63
62
|
"react-router-dom": "^5.3.0",
|
|
64
|
-
"react-slick": "0.
|
|
63
|
+
"react-slick": "0.30.2",
|
|
65
64
|
"react-sortablejs": "6.1.0",
|
|
66
65
|
"react-transition-group": "4.4.2",
|
|
67
66
|
"sortablejs": "^1.15.0",
|
|
@@ -88,10 +87,10 @@
|
|
|
88
87
|
"@testing-library/react": "^11.2.5",
|
|
89
88
|
"@types/babel__standalone": "^7.1.5",
|
|
90
89
|
"@types/jest": "^29.5.1",
|
|
91
|
-
"@types/react": "17.0.
|
|
90
|
+
"@types/react": "17.0.80",
|
|
92
91
|
"@types/react-color": "^3.0.6",
|
|
93
92
|
"@types/react-copy-to-clipboard": "^5.0.2",
|
|
94
|
-
"@types/react-dom": "^17.0.
|
|
93
|
+
"@types/react-dom": "^17.0.25",
|
|
95
94
|
"@types/react-router-dom": "^5.1.7",
|
|
96
95
|
"@types/react-slick": "^0.23.8",
|
|
97
96
|
"@types/react-syntax-highlighter": "^13.5.2",
|
|
@@ -144,7 +143,7 @@
|
|
|
144
143
|
"style-loader": "^1.1.3",
|
|
145
144
|
"stylelint": "^14.9.1",
|
|
146
145
|
"stylelint-config-prettier": "^9.0.2",
|
|
147
|
-
"stylelint-config-recess-order": "^
|
|
146
|
+
"stylelint-config-recess-order": "^3.1.0",
|
|
148
147
|
"stylelint-config-standard": "^25.0.0",
|
|
149
148
|
"stylelint-config-standard-scss": "^3.0.0",
|
|
150
149
|
"stylelint-prettier": "^2.0.0",
|
|
@@ -159,12 +158,9 @@
|
|
|
159
158
|
"webpack-dev-server": "^4.6.0",
|
|
160
159
|
"webpack-merge": "^5.8.0"
|
|
161
160
|
},
|
|
162
|
-
"optionalDependencies": {
|
|
163
|
-
"@types/react": "17.0.44"
|
|
164
|
-
},
|
|
165
161
|
"peerDependencies": {
|
|
166
|
-
"@types/react": "
|
|
167
|
-
"@types/react-dom": "
|
|
162
|
+
"@types/react": ">=17",
|
|
163
|
+
"@types/react-dom": ">=17",
|
|
168
164
|
"clsx": "1.1.1",
|
|
169
165
|
"dayjs": "^1.11.3",
|
|
170
166
|
"rc-collapse": "3.1.2",
|
|
@@ -185,8 +181,8 @@
|
|
|
185
181
|
"rc-tooltip": "5.1.1",
|
|
186
182
|
"rc-tree": "4.2.2",
|
|
187
183
|
"rc-upload": "4.3.1",
|
|
188
|
-
"react": "^
|
|
189
|
-
"react-dom": "^
|
|
184
|
+
"react": "^17.0.2",
|
|
185
|
+
"react-dom": "^17.0.2"
|
|
190
186
|
},
|
|
191
187
|
"peerDependenciesMeta": {
|
|
192
188
|
"@types/react": {
|