@para-ui/core 4.0.9 → 4.0.11
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/Descriptions/index.d.ts +2 -0
- package/Descriptions/index.js +7 -2
- package/Form/index.js +1 -1
- package/FormItem/index.js +1 -1
- package/ParauiProvider/index.js +1 -1
- package/README.md +10 -1
- package/Select/index.js +18 -1
- package/Utils/index.d.ts +2 -0
- package/Utils/index.js +9 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/umd/Breadcrumbs.js +7 -7
- package/umd/Button.js +7 -7
- package/umd/ButtonGroup.js +4 -4
- package/umd/Cascader.js +1 -1
- package/umd/ComboSelect.js +5 -5
- package/umd/CopyText.js +7 -7
- package/umd/CycleSelector.js +2 -2
- package/umd/DatePicker.js +4 -4
- package/umd/Descriptions.js +3 -3
- package/umd/Desktop.js +1 -1
- package/umd/DragVerify.js +4 -4
- package/umd/Drawer.js +4 -4
- package/umd/DynamicMultiBox.js +4 -4
- package/umd/Empty.js +1 -1
- package/umd/Form.js +2 -2
- package/umd/FormItem.js +2 -2
- package/umd/FunctionModal.js +7 -7
- package/umd/InputLang.js +4 -4
- package/umd/Modal.js +7 -7
- package/umd/MultiBox.js +5 -5
- package/umd/OperateBtn.js +4 -4
- package/umd/PageHeader.js +4 -4
- package/umd/Pagination.js +7 -7
- package/umd/ParauiProvider.js +1 -1
- package/umd/PopConfirm.js +5 -5
- package/umd/Querying.js +1 -1
- package/umd/QuickReply.js +1 -1
- package/umd/Search.js +1 -1
- package/umd/Select.js +4 -4
- package/umd/SelectInput.js +4 -4
- package/umd/Selector.js +4 -4
- package/umd/SelectorPicker.js +1 -1
- package/umd/SingleBox.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +5 -5
- package/umd/Tabs.js +4 -4
- package/umd/TextEditor.js +2 -2
- package/umd/TextField.js +7 -7
- package/umd/TimePicker.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Transfer.js +8 -8
- package/umd/Tree.js +4 -4
- package/umd/Upload.js +7 -7
- package/umd/Utils.js +1 -1
- /package/_verture/{index-06a05b14.js → index-8c33d82f.js} +0 -0
package/Descriptions/index.d.ts
CHANGED
package/Descriptions/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import clsx from 'clsx';
|
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
9
9
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-eb13cf56.js';
|
|
10
10
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
|
+
import { pixelReplacement } from '../Utils/index.js';
|
|
11
12
|
import '../Help/index.js';
|
|
12
13
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
13
14
|
import '../Tooltip/index.js';
|
|
@@ -44,13 +45,14 @@ var localeJson = {
|
|
|
44
45
|
en
|
|
45
46
|
};
|
|
46
47
|
|
|
47
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/11/9 14:21\n* @description 样式\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-descriptions .paraui-v4-title {\n margin-bottom: 20px;\n}\n.paraui-v4-descriptions .table-box {\n display: inline-flex;\n}\n.paraui-v4-descriptions .table-box > table {\n table-layout: fixed;\n width: 100%;\n}\n.paraui-v4-descriptions .table-box > table > tbody > tr {\n text-align: left;\n}\n.paraui-v4-descriptions .table-box > table > tbody > tr th, .paraui-v4-descriptions .table-box > table > tbody > tr .title {\n color: rgb(92, 101, 115);\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v4-descriptions .table-box > table > tbody > tr td, .paraui-v4-descriptions .table-box > table > tbody > tr .content {\n color: rgb(29, 33, 38);\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v4-descriptions .collapse-btn {\n margin: 0;\n height: 20px;\n line-height: 20px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box {\n border: 1px solid rgb(212, 218, 227);\n overflow: hidden;\n border-radius: 4px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table {\n border-collapse: collapse;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr {\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr:last-child {\n border-bottom: none;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > th {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > th, .paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > td {\n height: 40px;\n border-right: 1px solid rgb(212, 218, 227);\n padding: 0 10px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > th:last-child, .paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > td:last-child {\n border-right: none;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-horizontal .table-box > table > tbody > tr > td > .item-container {\n display: flex;\n padding-bottom: 10px;\n
|
|
48
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/11/9 14:21\n* @description 样式\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-descriptions .paraui-v4-title {\n margin-bottom: 20px;\n}\n.paraui-v4-descriptions .table-box {\n display: inline-flex;\n}\n.paraui-v4-descriptions .table-box > table {\n table-layout: fixed;\n width: 100%;\n}\n.paraui-v4-descriptions .table-box > table > tbody > tr {\n text-align: left;\n}\n.paraui-v4-descriptions .table-box > table > tbody > tr th, .paraui-v4-descriptions .table-box > table > tbody > tr .title {\n color: rgb(92, 101, 115);\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v4-descriptions .table-box > table > tbody > tr td, .paraui-v4-descriptions .table-box > table > tbody > tr .content {\n color: rgb(29, 33, 38);\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v4-descriptions .collapse-btn {\n margin: 0;\n height: 20px;\n line-height: 20px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box {\n border: 1px solid rgb(212, 218, 227);\n overflow: hidden;\n border-radius: 4px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table {\n border-collapse: collapse;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr {\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr:last-child {\n border-bottom: none;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > th {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > th, .paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > td {\n height: 40px;\n border-right: 1px solid rgb(212, 218, 227);\n padding: 0 10px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > th:last-child, .paraui-v4-descriptions.paraui-v4-descriptions-border .table-box > table > tbody > tr > td:last-child {\n border-right: none;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-horizontal .table-box > table > tbody > tr > td > .item-container {\n display: flex;\n padding-bottom: 10px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-horizontal .table-box > table > tbody > tr > td > .item-container > .title {\n display: flex;\n overflow: hidden;\n max-width: 50%;\n margin-right: 10px;\n line-height: 20px;\n}\n.paraui-v4-descriptions.paraui-v4-descriptions-horizontal .table-box > table > tbody > tr > td > .item-container > .content {\n flex: 1;\n overflow: hidden;\n line-height: 20px;\n}";
|
|
48
49
|
styleInject(css_248z);
|
|
49
50
|
|
|
50
51
|
const Descriptions = props => {
|
|
51
52
|
const {
|
|
52
53
|
className,
|
|
53
54
|
style,
|
|
55
|
+
paddingRight = 40,
|
|
54
56
|
layout = 'horizontal',
|
|
55
57
|
border,
|
|
56
58
|
title,
|
|
@@ -118,7 +120,10 @@ const Descriptions = props => {
|
|
|
118
120
|
colSpan: itemChild.column || 1
|
|
119
121
|
}, {
|
|
120
122
|
children: jsxs("div", Object.assign({
|
|
121
|
-
className: 'item-container'
|
|
123
|
+
className: 'item-container',
|
|
124
|
+
style: {
|
|
125
|
+
paddingRight: pixelReplacement(paddingRight)
|
|
126
|
+
}
|
|
122
127
|
}, {
|
|
123
128
|
children: [jsxs("span", Object.assign({
|
|
124
129
|
className: 'title'
|
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-8c33d82f.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-eb13cf56.js';
|
|
7
7
|
import '../TextField/index.js';
|
package/FormItem/index.js
CHANGED
package/ParauiProvider/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const ParauiProvider = props => {
|
|
|
35
35
|
const lang = props.language || GetLanguage();
|
|
36
36
|
const locale = props.locale || {};
|
|
37
37
|
const i18nData = locale[lang] || {};
|
|
38
|
-
changeConfirmLocale === null || changeConfirmLocale === void 0 ? void 0 : changeConfirmLocale(i18nData);
|
|
38
|
+
changeConfirmLocale === null || changeConfirmLocale === void 0 ? void 0 : changeConfirmLocale(i18nData, lang);
|
|
39
39
|
}, [props.language, props.locale]);
|
|
40
40
|
return jsx(GlobalContext.Provider, Object.assign({
|
|
41
41
|
value: Object.assign(Object.assign({}, props), {
|
package/README.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
## 版本: 4.0.11
|
|
2
|
+
para-ui/core@4.0.11 发布
|
|
3
|
+
【描述文本+描述列表-Descriptions】增加右边距参数设置,设置行高保证文字对齐
|
|
4
|
+
【下拉框-Select】修复下拉输入模式,点击input,内容被清空
|
|
5
|
+
|
|
6
|
+
## 版本: 4.0.10
|
|
7
|
+
para-ui/core@4.0.10 发布
|
|
8
|
+
【ParauiProvider】修复confirm国际化问题
|
|
9
|
+
|
|
1
10
|
## 版本: 4.0.9
|
|
2
|
-
para-ui/core@4.0.
|
|
11
|
+
para-ui/core@4.0.9 发布
|
|
3
12
|
【confirmLocale】支持国际化语言传入
|
|
4
13
|
|
|
5
14
|
## 版本: 4.0.8
|
package/Select/index.js
CHANGED
|
@@ -220,6 +220,7 @@ const Select = props => {
|
|
|
220
220
|
clearTimeout(constData.searchTimer);
|
|
221
221
|
clearTimeout(constData.timer);
|
|
222
222
|
clearTimeout(constData.scrollTimer);
|
|
223
|
+
clearTimeout(constData.dropDownTimer);
|
|
223
224
|
};
|
|
224
225
|
}, []);
|
|
225
226
|
// 赋值value
|
|
@@ -780,6 +781,16 @@ const Select = props => {
|
|
|
780
781
|
const str = "".concat(type, "-search-outside");
|
|
781
782
|
if (searchModel === 'outside') {
|
|
782
783
|
return jsx("input", Object.assign({}, searchInputProps, {
|
|
784
|
+
onClick: event => {
|
|
785
|
+
var _a;
|
|
786
|
+
constData.inputOpen = true;
|
|
787
|
+
searchInputProps && ((_a = searchInputProps.onClick) === null || _a === void 0 ? void 0 : _a.call(searchInputProps, event));
|
|
788
|
+
},
|
|
789
|
+
onBlur: event => {
|
|
790
|
+
var _a;
|
|
791
|
+
constData.inputOpen = false;
|
|
792
|
+
searchInputProps && ((_a = searchInputProps.onBlur) === null || _a === void 0 ? void 0 : _a.call(searchInputProps, event));
|
|
793
|
+
},
|
|
783
794
|
className: str,
|
|
784
795
|
value: searchValue,
|
|
785
796
|
onChange: changeSearch,
|
|
@@ -1090,7 +1101,13 @@ const Select = props => {
|
|
|
1090
1101
|
overlayClassName: handleClassPopover(),
|
|
1091
1102
|
getPopupContainer: getPopupContainer,
|
|
1092
1103
|
onVisibleChange: bol => {
|
|
1093
|
-
if (!bol)
|
|
1104
|
+
if (!bol) {
|
|
1105
|
+
clearTimeout(constData.dropDownTimer);
|
|
1106
|
+
constData.dropDownTimer = setTimeout(() => {
|
|
1107
|
+
if (constData.inputOpen) return;
|
|
1108
|
+
setOpen(false);
|
|
1109
|
+
}, 0);
|
|
1110
|
+
}
|
|
1094
1111
|
}
|
|
1095
1112
|
}, {
|
|
1096
1113
|
children: disabledTooltip ? jsx(Tooltip, Object.assign({
|
package/Utils/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ interface DateYYYYMMddHHMM {
|
|
|
7
7
|
date?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const getDateYYYYMMddHHMM: (str: string) => DateYYYYMMddHHMM;
|
|
10
|
+
export declare const pixelReplacement: (str: number | string) => string;
|
|
10
11
|
declare const _default: {
|
|
11
12
|
getDateYYYYMMddHHMM: (str: string) => DateYYYYMMddHHMM;
|
|
13
|
+
pixelReplacement: (str: string | number) => string;
|
|
12
14
|
};
|
|
13
15
|
export default _default;
|
package/Utils/index.js
CHANGED
|
@@ -15,8 +15,15 @@ const getDateYYYYMMddHHMM = str => {
|
|
|
15
15
|
date
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
+
const pixelReplacement = str => {
|
|
19
|
+
if (typeof str === 'number') {
|
|
20
|
+
return str + 'px';
|
|
21
|
+
}
|
|
22
|
+
return str;
|
|
23
|
+
};
|
|
18
24
|
var index = {
|
|
19
|
-
getDateYYYYMMddHHMM
|
|
25
|
+
getDateYYYYMMddHHMM,
|
|
26
|
+
pixelReplacement
|
|
20
27
|
};
|
|
21
28
|
|
|
22
|
-
export { index as default, getDateYYYYMMddHHMM };
|
|
29
|
+
export { index as default, getDateYYYYMMddHHMM, pixelReplacement };
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ 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-
|
|
28
|
+
export { F as FormItem } from './_verture/index-8c33d82f.js';
|
|
29
29
|
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-7380ea41.js';
|
|
30
30
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
31
31
|
export { default as Help } from './Help/index.js';
|
|
@@ -75,7 +75,7 @@ export { Tooltip } from './Tooltip/index.js';
|
|
|
75
75
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
76
76
|
export { T as Tree } from './_verture/index-767e63dd.js';
|
|
77
77
|
export { default as Upload } from './Upload/index.js';
|
|
78
|
-
export { default as Utils, getDateYYYYMMddHHMM } from './Utils/index.js';
|
|
78
|
+
export { default as Utils, getDateYYYYMMddHHMM, pixelReplacement } from './Utils/index.js';
|
|
79
79
|
export { default as locale } from './locale/index.js';
|
|
80
80
|
import 'react/jsx-runtime';
|
|
81
81
|
import 'react';
|
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.11",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"description": "Powered by Para FED",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@monaco-editor/react": "^4.6.0",
|
|
31
31
|
"monaco-editor": "^0.44.0",
|
|
32
|
-
"@para-ui/core": "4.0.
|
|
32
|
+
"@para-ui/core": "4.0.9",
|
|
33
33
|
"@paraview/lib": "^2.0.3",
|
|
34
34
|
"@wangeditor/editor": "^5.1.15",
|
|
35
35
|
"@wangeditor/editor-for-react": "^1.0.5",
|