@para-ui/core 4.0.39 → 4.0.41
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/Cascader/index.js +4 -4
- package/ComboSelect/index.js +7 -7
- package/Drawer/index.js +4 -4
- package/DynamicMultiBox/index.js +7 -7
- package/Form/index.js +7 -7
- package/FormItem/index.js +7 -7
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +1 -1
- package/Modal/index.js +28 -5
- package/Pagination/index.js +2 -2
- package/PopConfirm/index.js +2 -2
- package/Progress/index.js +41 -40
- package/Querying/index.js +4 -4
- package/QuickReply/index.js +1 -1
- package/README.md +11 -0
- package/Select/index.js +2 -2
- package/Selector/index.js +2 -2
- package/SelectorPicker/index.js +4 -4
- package/SingleBox/index.js +2 -2
- package/SortBox/index.js +1 -1
- package/Switch/index.js +2 -2
- package/Table/index.js +423 -488
- package/TextEditor/index.js +3 -3
- package/Timeline/index.js +20 -14
- package/Tree/index.js +4 -4
- package/Upload/index.js +3 -3
- package/_verture/{index-77fff5bd.js → index-5b4ff3b2.js} +1 -1
- package/_verture/{index-63345bd4.js → index-6016a7ed.js} +3 -3
- package/_verture/{index-94e24006.js → index-8ac46bd9.js} +1 -1
- package/index.js +8 -8
- package/package.json +3 -2
- package/umd/Argv.js +2 -2
- package/umd/Cascader.js +1 -1
- package/umd/FunctionModal.js +6 -6
- package/umd/Modal.js +2 -2
- package/umd/Upload.js +2 -2
- /package/_verture/{Portal-edd94cac.js → Portal-f9bedb3a.js} +0 -0
- /package/_verture/{index-c8cb6751.js → index-0f5ee6f7.js} +0 -0
- /package/_verture/{index-182d41ee.js → index-8a431cd6.js} +0 -0
- /package/_verture/{modalContext-205db1f4.js → modalContext-efa83b5c.js} +0 -0
- /package/_verture/{typeof-4646b22c.js → typeof-6ec38efd.js} +0 -0
package/TextEditor/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import '../_verture/index-ca413216.js';
|
|
|
23
23
|
* @date 2022/09/06 18:00
|
|
24
24
|
* @description 存放富文本编辑器的一些默认配置
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
const TOOL_BAR_CONFIG = ['headerSelect', 'blockquote', '|', 'bold', 'underline', 'italic', {
|
|
27
27
|
key: 'group-more-style',
|
|
28
28
|
title: '更多',
|
|
29
29
|
iconSvg: '<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',
|
|
@@ -59,8 +59,8 @@ var zh = {
|
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
var localeJson = {
|
|
62
|
-
zh
|
|
63
|
-
en
|
|
62
|
+
zh,
|
|
63
|
+
en
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-text-editor .w-e-max-length-info {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-text-editor .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item {\n padding-left: 0;\n padding-right: 0;\n display: flex;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button {\n flex: 1;\n display: flex;\n justify-content: flex-start;\n}\n.paraui-v4-text-editor .w-e-bar-item-menus-container .w-e-bar-item > button:hover {\n background: rgb(247, 248, 250);\n border-radius: 2px;\n}\n.paraui-v4-text-editor .w-e-full-screen-container {\n z-index: 1000;\n}\n.paraui-v4-text-editor .text-editor-content {\n border: 1px solid rgb(212, 218, 227);\n border-radius: 4px;\n padding: 1px 0;\n background-color: #fff;\n}\n.paraui-v4-text-editor .text-editor-content > div:nth-child(1) {\n border-bottom: 1px solid rgb(212, 218, 227);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false] {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-text-editor .text-editor-content div[contenteditable=false]:hover {\n border-color: rgb(212, 218, 227);\n cursor: not-allowed;\n}\n.paraui-v4-text-editor .preview-mode > div:nth-child(1) {\n border-bottom: none;\n}";
|
package/Timeline/index.js
CHANGED
|
@@ -2,27 +2,33 @@ import { a as __rest } from '../_verture/tslib.es6-f43aa41d.js';
|
|
|
2
2
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
|
|
6
5
|
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
7
6
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import '../_verture/typeof-adeedc13.js';
|
|
9
7
|
|
|
10
8
|
//TimelineItem
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
const TimelineItem = props => {
|
|
10
|
+
const {
|
|
11
|
+
className,
|
|
12
|
+
color,
|
|
13
|
+
dot,
|
|
14
|
+
pending = false,
|
|
15
|
+
position,
|
|
16
|
+
label,
|
|
17
|
+
children
|
|
18
|
+
} = props,
|
|
20
19
|
restProps = __rest(props, ["className", "color", "dot", "pending", "position", "label", "children"]);
|
|
21
|
-
|
|
20
|
+
const prefixCls = "".concat($rcPrefixCls, "-timeline");
|
|
22
21
|
//item cls
|
|
23
|
-
|
|
22
|
+
const itemClassName = clsx({
|
|
23
|
+
["".concat(prefixCls, "-item")]: true,
|
|
24
|
+
["".concat(prefixCls, "-item-pending")]: pending
|
|
25
|
+
}, className);
|
|
24
26
|
//dot cls
|
|
25
|
-
|
|
27
|
+
const dotClassName = clsx({
|
|
28
|
+
["".concat(prefixCls, "-item-head")]: true,
|
|
29
|
+
["".concat(prefixCls, "-item-head-custom")]: !!dot,
|
|
30
|
+
["".concat(prefixCls, "-item-head-").concat(color)]: color
|
|
31
|
+
});
|
|
26
32
|
return jsxs("li", Object.assign({}, restProps, {
|
|
27
33
|
className: itemClassName
|
|
28
34
|
}, {
|
package/Tree/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
1
|
+
import { T as Tree } from '../_verture/index-5b4ff3b2.js';
|
|
2
|
+
export { T as default } from '../_verture/index-5b4ff3b2.js';
|
|
3
3
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
4
4
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
5
5
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
6
6
|
import '../_verture/typeof-adeedc13.js';
|
|
7
|
-
import '../_verture/index-
|
|
8
|
-
import '../_verture/typeof-
|
|
7
|
+
import '../_verture/index-8ac46bd9.js';
|
|
8
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
9
9
|
import '../_verture/tslib.es6-f43aa41d.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
package/Upload/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import LoadingIcon from '@para-ui/icons/Loading';
|
|
|
8
8
|
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
9
9
|
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
10
10
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
11
|
-
import { r as regenerator } from '../_verture/index-
|
|
11
|
+
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
13
13
|
import CloseIcon from '@para-ui/icons/Close';
|
|
14
14
|
import Delete from '@para-ui/icons/Delete';
|
|
@@ -33,10 +33,10 @@ import TurnRight from '@para-ui/icons/TurnRight';
|
|
|
33
33
|
import TurnLeft from '@para-ui/icons/TurnLeft';
|
|
34
34
|
import { Slider } from '../Slider/index.js';
|
|
35
35
|
import { Modal } from '../Modal/index.js';
|
|
36
|
-
import '../_verture/typeof-
|
|
36
|
+
import '../_verture/typeof-6ec38efd.js';
|
|
37
37
|
import 'rc-tooltip';
|
|
38
38
|
import 'rc-tooltip/lib/placements';
|
|
39
|
-
import '../_verture/Portal-
|
|
39
|
+
import '../_verture/Portal-f9bedb3a.js';
|
|
40
40
|
import 'react-dom';
|
|
41
41
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
42
42
|
import 'rc-dialog';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
2
2
|
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
3
3
|
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
4
|
-
import { r as regenerator } from './index-
|
|
4
|
+
import { r as regenerator } from './index-8ac46bd9.js';
|
|
5
5
|
import { a as __rest, _ as __awaiter } from './tslib.es6-f43aa41d.js';
|
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import React__default, { isValidElement, cloneElement, useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __rest } from './tslib.es6-f43aa41d.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-
|
|
3
|
+
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-f9bedb3a.js';
|
|
4
4
|
import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-c7a8028f.js';
|
|
5
5
|
import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
6
6
|
import { _ as _slicedToArray, a as _arrayWithHoles, b as _unsupportedIterableToArray, c as _nonIterableRest } from './slicedToArray-75fa4188.js';
|
|
@@ -10,7 +10,7 @@ import React__default, { useState as useState$1, useMemo, useCallback, useRef, u
|
|
|
10
10
|
import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
|
|
11
11
|
import CSSMotion from 'rc-motion';
|
|
12
12
|
import clsx$1 from 'clsx';
|
|
13
|
-
import { _ as _typeof$2 } from './typeof-
|
|
13
|
+
import { _ as _typeof$2 } from './typeof-6ec38efd.js';
|
|
14
14
|
import { conductCheck } from 'rc-tree/lib/utils/conductUtil';
|
|
15
15
|
import Right from '@para-ui/icons/Right';
|
|
16
16
|
import Down from '@para-ui/icons/Down';
|
|
@@ -8767,7 +8767,7 @@ const Cascader = /*#__PURE__*/React$4.forwardRef((props, ref) => {
|
|
|
8767
8767
|
const valueOptions = handleValueToOptions(value);
|
|
8768
8768
|
const triggerOptions = valueOptions[0];
|
|
8769
8769
|
if (!triggerOptions) return;
|
|
8770
|
-
setInputLable(triggerOptions.map(o => o.label).join(expandJoin));
|
|
8770
|
+
setInputLable(triggerOptions.map(o => o === null || o === void 0 ? void 0 : o.label).join(expandJoin));
|
|
8771
8771
|
}, [value]);
|
|
8772
8772
|
// =========================== Values ===========================
|
|
8773
8773
|
const getMissingValues = useMissingValues(mergedOptions, mergedFieldNames);
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { Button } from './Button/index.js';
|
|
|
9
9
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
10
10
|
export { Card } from './Card/index.js';
|
|
11
11
|
export { Carousel } from './Carousel/index.js';
|
|
12
|
-
export { C as Cascader } from './_verture/index-
|
|
12
|
+
export { C as Cascader } from './_verture/index-6016a7ed.js';
|
|
13
13
|
export { Checkbox } from './Checkbox/index.js';
|
|
14
14
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
15
15
|
export { Collapse } from './Collapse/index.js';
|
|
@@ -30,8 +30,8 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
|
|
|
30
30
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
31
31
|
export { default as Empty } from './Empty/index.js';
|
|
32
32
|
export { default as Form } from './Form/index.js';
|
|
33
|
-
export { F as FormItem } from './_verture/index-
|
|
34
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
33
|
+
export { F as FormItem } from './_verture/index-8a431cd6.js';
|
|
34
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-efa83b5c.js';
|
|
35
35
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
36
36
|
export { default as Help } from './Help/index.js';
|
|
37
37
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -83,7 +83,7 @@ export { Title } from './Title/index.js';
|
|
|
83
83
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
84
84
|
export { Tooltip } from './Tooltip/index.js';
|
|
85
85
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
86
|
-
export { T as Tree } from './_verture/index-
|
|
86
|
+
export { T as Tree } from './_verture/index-5b4ff3b2.js';
|
|
87
87
|
export { default as Upload } from './Upload/index.js';
|
|
88
88
|
export { default as Utils, getDateYYYYMMddHHMM, isObject, pixelReplacement } from './Utils/index.js';
|
|
89
89
|
export { default as locale } from './locale/index.js';
|
|
@@ -110,13 +110,13 @@ import '@para-ui/icons/LoadingF';
|
|
|
110
110
|
import 'react-slick';
|
|
111
111
|
import '@para-ui/icons/RightCircleF';
|
|
112
112
|
import '@para-ui/icons/LeftCircleF';
|
|
113
|
-
import './_verture/Portal-
|
|
113
|
+
import './_verture/Portal-f9bedb3a.js';
|
|
114
114
|
import './_verture/slicedToArray-75fa4188.js';
|
|
115
115
|
import './_verture/typeof-adeedc13.js';
|
|
116
116
|
import './_verture/toConsumableArray-c7a8028f.js';
|
|
117
117
|
import './_verture/defineProperty-6f62bb2a.js';
|
|
118
118
|
import 'rc-motion';
|
|
119
|
-
import './_verture/typeof-
|
|
119
|
+
import './_verture/typeof-6ec38efd.js';
|
|
120
120
|
import 'rc-tree/lib/utils/conductUtil';
|
|
121
121
|
import '@para-ui/icons/Right';
|
|
122
122
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -152,7 +152,7 @@ import 'rc-dropdown';
|
|
|
152
152
|
import './_verture/usePopupContainer-635f66f4.js';
|
|
153
153
|
import '@para-ui/icons/Panel';
|
|
154
154
|
import '@para-ui/icons/Drag';
|
|
155
|
-
import './_verture/index-
|
|
155
|
+
import './_verture/index-0f5ee6f7.js';
|
|
156
156
|
import './_verture/sortable.esm-76fe46a4.js';
|
|
157
157
|
import '@para-ui/icons/LinkGroup';
|
|
158
158
|
import '@para-ui/icons/UploadFile';
|
|
@@ -179,7 +179,7 @@ import '@para-ui/icons/Plus';
|
|
|
179
179
|
import '@para-ui/icons/EditOutline';
|
|
180
180
|
import '@para-ui/icons/Message';
|
|
181
181
|
import '@para-ui/icons/Set';
|
|
182
|
-
import './_verture/index-
|
|
182
|
+
import './_verture/index-8ac46bd9.js';
|
|
183
183
|
import 'rc-slider';
|
|
184
184
|
import './_verture/tinycolor-ece3542d.js';
|
|
185
185
|
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.41",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"description": "Powered by Para FED",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"lint": "npm run lint:script && npm run lint:style",
|
|
24
24
|
"lint:script-all": "eslint --ext .js,.jsx,.ts,.tsx --fix src",
|
|
25
25
|
"lint:style-all": "stylelint 'src/**/*.{css,scss}' --fix",
|
|
26
|
-
"lint:all": "npm run lint:script-all && npm run lint:style-all"
|
|
26
|
+
"lint:all": "npm run lint:script-all && npm run lint:style-all",
|
|
27
|
+
"prepare": "if [ \"$CI\" != \"true\" ]; then npx husky install; fi"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
30
|
"@monaco-editor/react": "^4.6.0",
|