@para-ui/core 4.0.19 → 4.0.21
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 +5 -5
- 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 +151 -84
- package/ComboSelect/interface.d.ts +3 -0
- package/Container/index.d.ts +1 -1
- package/CopyText/index.js +2 -2
- package/CycleSelector/index.js +4 -4
- package/DatePicker/PickerButton.d.ts +1 -2
- package/DatePicker/PickerTag.d.ts +1 -2
- package/DatePicker/index.js +3 -3
- package/Descriptions/index.js +2 -2
- package/Desktop/index.js +3 -3
- package/DragVerify/index.js +64 -39
- package/Drawer/index.js +2 -2
- package/DynamicMultiBox/formItem.d.ts +1 -2
- package/DynamicMultiBox/index.js +7 -7
- 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 +7 -3
- package/PageHeader/index.js +2 -2
- package/Pagination/index.js +4 -4
- package/ParauiProvider/index.d.ts +2 -2
- package/ParauiProvider/index.js +2 -2
- 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 +5 -5
- package/README.md +10 -0
- package/Search/index.js +2 -2
- package/Select/index.js +3 -3
- package/SelectInput/index.js +4 -4
- package/Selector/index.js +6 -6
- package/SelectorPicker/index.js +3 -3
- package/SingleBox/index.js +3 -3
- package/Switch/index.js +3 -2
- package/Table/index.js +4 -4
- package/Tabs/index.js +2 -2
- package/TextEditor/index.js +2 -2
- package/TextField/index.js +2 -2
- package/TimePicker/index.js +3 -3
- 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 +4 -4
- package/Tree/index.js +5 -5
- package/Tree/utils/treeUtil.d.ts +1 -1
- package/Upload/index.js +3 -4
- package/_verture/defineProperty-6f62bb2a.js +34 -0
- package/_verture/{index-9bef932a.js → index-0f5ee6f7.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-f59b0bc0.js} +228 -119
- package/_verture/{index-cb2c05c7.js → index-fa1ee687.js} +1 -1
- package/_verture/{sortable.esm-49896035.js → sortable.esm-76fe46a4.js} +597 -1029
- package/_verture/{useFormatMessage-eb13cf56.js → useFormatMessage-1fc7c957.js} +1 -1
- package/_verture/{useGlobalProps-1e416658.js → useGlobalProps-4ae1a007.js} +1 -1
- package/index.js +10 -13
- package/package.json +12 -17
- package/umd/AutoBox.js +11 -11
- package/umd/AutoTips.js +11 -11
- package/umd/Badge.js +1 -1
- package/umd/Breadcrumbs.js +11 -11
- package/umd/Button.js +11 -11
- package/umd/ButtonGroup.js +11 -11
- package/umd/Carousel.js +9 -9
- package/umd/Cascader.js +11 -11
- package/umd/Checkbox.js +11 -11
- package/umd/CheckboxGroup.js +11 -11
- package/umd/Collapse.js +10 -10
- package/umd/CollapseBox.js +1 -1
- package/umd/CollapseLayout.js +4 -4
- package/umd/ColorPicker.js +1 -1
- package/umd/ComboSelect.js +11 -11
- package/umd/Container.js +1 -1
- package/umd/CopyText.js +11 -11
- package/umd/CycleSelector.js +11 -11
- package/umd/DatePicker.js +11 -11
- package/umd/Descriptions.js +11 -11
- package/umd/Desktop.js +11 -11
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +11 -11
- package/umd/Dropdown.js +8 -8
- package/umd/DynamicMultiBox.js +14 -14
- package/umd/Empty.js +1 -1
- package/umd/Form.js +11 -11
- package/umd/FormItem.js +11 -11
- package/umd/FunctionModal.js +11 -11
- package/umd/GlobalContext.js +1 -1
- package/umd/Help.js +11 -11
- package/umd/HelperText.js +1 -1
- package/umd/InputLang.js +11 -11
- package/umd/InputNumber.js +11 -11
- package/umd/Label.js +11 -11
- package/umd/Loading.js +4 -4
- package/umd/Menu.js +11 -11
- package/umd/Message.js +4 -4
- package/umd/Modal.js +11 -11
- package/umd/MultiBox.js +11 -11
- package/umd/Notification.js +10 -10
- package/umd/OperateBtn.js +11 -11
- package/umd/PageHeader.js +11 -11
- package/umd/Pagination.js +11 -11
- package/umd/ParauiProvider.js +1 -1
- package/umd/PasswordRules.js +4 -4
- package/umd/PopConfirm.js +11 -11
- package/umd/PopMenu.js +11 -11
- package/umd/Popover.js +11 -11
- package/umd/Progress.js +9 -9
- package/umd/Prompt.js +4 -4
- package/umd/Querying.js +1 -1
- package/umd/QuickReply.js +14 -14
- package/umd/Radio.js +11 -11
- package/umd/RadioGroup.js +11 -11
- package/umd/Search.js +11 -11
- package/umd/Select.js +11 -11
- package/umd/SelectInput.js +11 -11
- package/umd/Selector.js +11 -11
- package/umd/SelectorPicker.js +11 -11
- package/umd/SingleBox.js +11 -11
- package/umd/Slider.js +8 -8
- package/umd/Status.js +4 -4
- package/umd/Stepper.js +11 -11
- package/umd/Switch.js +11 -11
- package/umd/Table.js +11 -11
- package/umd/Tabs.js +11 -11
- package/umd/Tag.js +11 -11
- package/umd/TextEditor.js +24 -24
- package/umd/TextField.js +11 -11
- package/umd/TimePicker.js +11 -11
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +11 -11
- package/umd/ToggleButton.js +11 -11
- package/umd/Tooltip.js +11 -11
- package/umd/Transfer.js +13 -13
- package/umd/Tree.js +11 -11
- package/umd/Upload.js +12 -12
- package/umd/Utils.js +1 -1
- package/_verture/defineProperty-1d116156.js +0 -34
- package/_verture/index-c568f272.js +0 -18
- /package/_verture/{modalContext-3ba6ca8f.js → modalContext-c8cc3107.js} +0 -0
package/Upload/index.js
CHANGED
|
@@ -11,14 +11,15 @@ import clsx from 'clsx';
|
|
|
11
11
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc89.js';
|
|
12
12
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
13
13
|
import Forbid from '@para-ui/icons/Forbid';
|
|
14
|
-
import { u as useFormatMessage } from '../_verture/useFormatMessage-
|
|
14
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
15
15
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
16
16
|
import { Button } from '../Button/index.js';
|
|
17
17
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-a8206399.js';
|
|
18
18
|
import { Slider } from '../Slider/index.js';
|
|
19
19
|
import Cropper from 'react-easy-crop';
|
|
20
20
|
import { Modal } from '../Modal/index.js';
|
|
21
|
-
import '
|
|
21
|
+
import '../_verture/index-ca413216.js';
|
|
22
|
+
import '@paraview/lib';
|
|
22
23
|
import '@para-ui/icons/LoadingF';
|
|
23
24
|
import '../Tooltip/index.js';
|
|
24
25
|
import 'rc-tooltip';
|
|
@@ -28,13 +29,11 @@ import '../_verture/index-389675ab.js';
|
|
|
28
29
|
import 'rc-dropdown';
|
|
29
30
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
30
31
|
import 'dayjs';
|
|
31
|
-
import '@paraview/lib';
|
|
32
32
|
import '../AutoTips/index.js';
|
|
33
33
|
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
34
34
|
import 'rc-slider';
|
|
35
35
|
import 'rc-dialog';
|
|
36
36
|
import '@para-ui/icons/Close';
|
|
37
|
-
import '../_verture/index-c568f272.js';
|
|
38
37
|
import 'react-dom';
|
|
39
38
|
import '@para-ui/icons/CheckCircleF';
|
|
40
39
|
import '@para-ui/icons/WarningCircleF';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
2
|
+
|
|
3
|
+
function toPrimitive(t, r) {
|
|
4
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5
|
+
var e = t[Symbol.toPrimitive];
|
|
6
|
+
if (void 0 !== e) {
|
|
7
|
+
var i = e.call(t, r || "default");
|
|
8
|
+
if ("object" != _typeof(i)) return i;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return ("string" === r ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function toPropertyKey(t) {
|
|
15
|
+
var i = toPrimitive(t, "string");
|
|
16
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function _defineProperty(obj, key, value) {
|
|
20
|
+
key = toPropertyKey(key);
|
|
21
|
+
if (key in obj) {
|
|
22
|
+
Object.defineProperty(obj, key, {
|
|
23
|
+
value: value,
|
|
24
|
+
enumerable: true,
|
|
25
|
+
configurable: true,
|
|
26
|
+
writable: true
|
|
27
|
+
});
|
|
28
|
+
} else {
|
|
29
|
+
obj[key] = value;
|
|
30
|
+
}
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { _defineProperty as _, toPropertyKey as t };
|
|
@@ -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 };
|