@para-ui/core 4.0.84 → 4.0.87

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 CHANGED
@@ -1,16 +1,15 @@
1
- import { C as Cascader } from '../_verture/index-78f0f0e7.js';
2
- export { C as default } from '../_verture/index-78f0f0e7.js';
1
+ import { C as Cascader } from '../_verture/index-99b02582.js';
2
+ export { C as default } from '../_verture/index-99b02582.js';
3
3
  import '../_verture/tslib.es6-55ed4bd2.js';
4
4
  import 'react/jsx-runtime';
5
- import '../_verture/index-1856bbeb.js';
6
- import '../_verture/defineProperty-6f62bb2a.js';
7
- import '../_verture/typeof-adeedc13.js';
5
+ import '../_verture/index-9e4b0e32.js';
6
+ import '../_verture/defineProperty-f0e15205.js';
8
7
  import '../_verture/toConsumableArray-599cd94a.js';
9
8
  import '../_verture/slicedToArray-61604a6c.js';
10
- import '../_verture/Portal-502bb85e.js';
9
+ import '../_verture/Portal-274c5bd8.js';
11
10
  import 'react';
12
11
  import 'react-dom';
13
- import '../_verture/useState-f2419d68.js';
12
+ import '../_verture/useState-05fc6660.js';
14
13
  import '../_verture/typeof-6ec38efd.js';
15
14
  import 'rc-motion';
16
15
  import 'clsx';
@@ -6,7 +6,7 @@ import SearchIcon from '@para-ui/icons/Search';
6
6
  import Close from '@para-ui/icons/Close';
7
7
  import CloseCircleF from '@para-ui/icons/CloseCircleF';
8
8
  import Table from '../Table/index.js';
9
- import { T as Tree } from '../_verture/index-1ef401c5.js';
9
+ import { T as Tree } from '../_verture/index-dfb6ceb9.js';
10
10
  import { B as Button } from '../_verture/index-98ae8a30.js';
11
11
  import { D as Dropdown } from '../_verture/index-bde7aabe.js';
12
12
  import { Popover } from '../Popover/index.js';
@@ -24,7 +24,7 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
24
24
  import { Search } from '../Search/index.js';
25
25
  import LoadingOutlined from '@para-ui/icons/LoadingF';
26
26
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
27
- import '../_verture/typeof-adeedc13.js';
27
+ import '../_verture/defineProperty-f0e15205.js';
28
28
  import '../_verture/slicedToArray-61604a6c.js';
29
29
  import '../Checkbox/index.js';
30
30
  import '../Help/index.js';
@@ -37,7 +37,6 @@ import '@para-ui/icons/UpTriangleF';
37
37
  import '@para-ui/icons/DownTriangleF';
38
38
  import '@para-ui/icons/Panel';
39
39
  import '../Empty/index.js';
40
- import '../_verture/defineProperty-6f62bb2a.js';
41
40
  import '../_verture/index-0f5ee6f7.js';
42
41
  import '../_verture/sortable.esm-76fe46a4.js';
43
42
  import '../Radio/index.js';
@@ -59,6 +58,9 @@ import '@para-ui/icons/DoubleLeft';
59
58
  import '@para-ui/icons/DoubleRight';
60
59
  import '../ScrollBar/index.js';
61
60
  import '../_verture/useResizeObserver-edda059a.js';
61
+ import '../_verture/toConsumableArray-599cd94a.js';
62
+ import '../_verture/index-8ac46bd9.js';
63
+ import '../_verture/typeof-6ec38efd.js';
62
64
  import 'rc-tree';
63
65
  import '@para-ui/icons/Document';
64
66
  import 'react-dom';
@@ -19,9 +19,6 @@ import 'rc-picker/es/generate/dayjs';
19
19
  import '../Tag/index.js';
20
20
  import '../_verture/tslib.es6-55ed4bd2.js';
21
21
  import '@para-ui/icons/EditOutline';
22
- import '../_verture/toConsumableArray-599cd94a.js';
23
- import '../_verture/slicedToArray-61604a6c.js';
24
- import '../_verture/typeof-adeedc13.js';
25
22
  import '../AutoTips/index.js';
26
23
  import '../Tooltip/index.js';
27
24
  import 'rc-tooltip';
@@ -32,7 +29,7 @@ import '../_verture/useResizeObserver-edda059a.js';
32
29
  import '../_verture/tinycolor-ece3542d.js';
33
30
  import '../_verture/useGlobalProps-4ae1a007.js';
34
31
  import '@para-ui/icons/Plus';
35
- import '../_verture/defineProperty-6f62bb2a.js';
32
+ import '../_verture/defineProperty-f0e15205.js';
36
33
  import 'rc-picker';
37
34
  import '@para-ui/icons/CloseCircleF';
38
35
  import '@para-ui/icons/Calendar';
@@ -345,8 +342,7 @@ const CycleSelector = props => {
345
342
  // 入参
346
343
  const handleTimeEnter = (val, format) => {
347
344
  if (!val) return '';
348
- const timeVal = new Date(val).toLocaleString();
349
- return dayjs(timeVal).format(format);
345
+ return dayjs(val).format(format);
350
346
  };
351
347
  // 处理下拉框选择
352
348
  const handleSelectData = () => {
@@ -2,7 +2,7 @@ import dayjsGenerateConfig from 'rc-picker/es/generate/dayjs';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import { B as Button } from '../_verture/index-98ae8a30.js';
4
4
  import { Tag } from '../Tag/index.js';
5
- import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
5
+ import { a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
6
6
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
7
7
  import React__default, { forwardRef, useImperativeHandle } from 'react';
8
8
  import clsx from 'clsx';
@@ -35,9 +35,6 @@ import '@para-ui/icons/WarningCircleF';
35
35
  import '../_verture/usePopupContainer-635f66f4.js';
36
36
  import '@para-ui/icons/Close';
37
37
  import '@para-ui/icons/EditOutline';
38
- import '../_verture/toConsumableArray-599cd94a.js';
39
- import '../_verture/slicedToArray-61604a6c.js';
40
- import '../_verture/typeof-adeedc13.js';
41
38
  import '../_verture/tinycolor-ece3542d.js';
42
39
  import '../_verture/useGlobalProps-4ae1a007.js';
43
40
  import '@para-ui/icons/Plus';
package/Desktop/index.js CHANGED
@@ -49,8 +49,8 @@ var zh = {
49
49
  };
50
50
 
51
51
  var localeJson = {
52
- zh: zh,
53
- en: en
52
+ zh,
53
+ en
54
54
  };
55
55
 
56
56
  var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-desktop {\n width: 100%;\n height: 100%;\n}\n.paraui-v4-desktop .paraui-v4-cp {\n cursor: pointer;\n font-size: 14px;\n font-weight: 700;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-desktop .desktop-title-input {\n max-width: 440px;\n min-width: 200px;\n}\n.paraui-v4-desktop .desktop-title-input-btn {\n margin-left: 10px;\n}\n.paraui-v4-desktop .desktop-title-wrapper {\n display: flex;\n flex: 1;\n width: 100%;\n position: relative;\n}\n.paraui-v4-desktop .desktop-title {\n display: flex;\n height: 20px;\n line-height: 20px;\n font-size: 14px;\n margin: 20px 0;\n}\n.paraui-v4-desktop .desktop-title > .desktop-backlist {\n display: flex;\n align-items: center;\n}\n.paraui-v4-desktop .desktop-title > .desktop-backlist .desktop-back-hotarea {\n width: 38px;\n height: 30px;\n display: flex;\n align-items: center;\n cursor: pointer;\n flex-shrink: 0;\n}\n.paraui-v4-desktop .desktop-title > .desktop-backlist .desktop-back-hotarea svg {\n color: rgb(29, 33, 38);\n}\n.paraui-v4-desktop .desktop-title > .desktop-backlist .desktop-back-hotarea:hover svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-desktop .desktop-title > div {\n width: 100%;\n text-align: center;\n color: rgb(29, 33, 38);\n font-weight: 600;\n font-size: 14px;\n}\n.paraui-v4-desktop .desktop-title > div > span {\n cursor: pointer;\n font-weight: bold;\n}\n.paraui-v4-desktop .pd-lr38 {\n padding: 0 38px;\n}\n.paraui-v4-desktop .desktop-box {\n position: relative;\n width: 100%;\n height: calc(100% - 50px);\n}\n.paraui-v4-desktop .desktop-box .desktop-item {\n position: absolute;\n top: 0;\n left: 0;\n transition: top 0.5s, left 0.5s;\n user-select: none;\n cursor: pointer;\n background-color: white;\n border-radius: 8px;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-name {\n text-align: center;\n position: absolute;\n font-size: 14px;\n z-index: 0;\n width: 100%;\n padding: 0 5px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-dir-body {\n width: 100px;\n margin: 25px auto 10px;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-dir-body svg {\n display: block;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-dir-body img {\n width: 100%;\n height: 100%;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-dir-name {\n margin: 0 auto;\n color: rgb(29, 33, 38);\n font-size: 14px;\n max-width: 180px;\n text-align: center;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-body {\n text-align: center;\n display: flex;\n justify-content: center;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-body svg {\n display: block;\n}\n.paraui-v4-desktop .desktop-box .desktop-item .item-body img {\n height: 70px;\n margin-top: 25px;\n margin-bottom: 10px;\n pointer-events: none;\n}\n.paraui-v4-desktop .desktop-box .item-disable {\n box-shadow: none;\n cursor: not-allowed;\n position: relative;\n}\n.paraui-v4-desktop .desktop-box .item-disable::before {\n display: block;\n content: \"\";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(255, 255, 255, 0.5);\n z-index: 1;\n}\n.paraui-v4-desktop .desktop-box [drag-item=true] {\n z-index: 2;\n transition: none;\n}\n.paraui-v4-desktop .desktop-box [impact=true] {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-desktop .desktop-box [in-dir=true] {\n display: none !important;\n}\n.paraui-v4-desktop .desktop-box .img-box {\n display: inline-block;\n width: 100%;\n text-align: center;\n margin-top: 10px;\n}\n.paraui-v4-desktop .desktop-box .img-box > img {\n width: 100px;\n height: 100px;\n user-drag: none;\n}\n.paraui-v4-desktop .desktop-box .desktop-dir .img-box {\n display: inline-block;\n}\n.paraui-v4-desktop .desktop-box .desktop-dir .img-box > img {\n width: 40px;\n height: 40px;\n margin: 5px 15px;\n}\n.paraui-v4-desktop .menu-list {\n position: absolute;\n box-shadow: 4px 4px 6px #dcdde3;\n background-color: #ffffff;\n font-size: 14px;\n border-radius: 4px;\n z-index: 10;\n display: none;\n transition: background-color 0.2s;\n}\n.paraui-v4-desktop .menu-list .menu-item {\n padding: 5px 15px;\n cursor: pointer;\n}\n.paraui-v4-desktop .menu-list .menu-item:hover {\n background-color: rgb(246, 246, 246);\n}";
@@ -53,7 +53,7 @@ import '@para-ui/icons/Up';
53
53
  import '../MultiBox/index.js';
54
54
  import '@para-ui/icons/Internet';
55
55
  import '../Table/index.js';
56
- import '../_verture/typeof-adeedc13.js';
56
+ import '../_verture/defineProperty-f0e15205.js';
57
57
  import '../_verture/slicedToArray-61604a6c.js';
58
58
  import '../_verture/index-98ae8a30.js';
59
59
  import '@para-ui/icons/CheckCircleF';
@@ -62,7 +62,6 @@ import '@para-ui/icons/WarningCircleF';
62
62
  import '@para-ui/icons/ScreenF';
63
63
  import '@para-ui/icons/UpTriangleF';
64
64
  import '@para-ui/icons/DownTriangleF';
65
- import '../_verture/defineProperty-6f62bb2a.js';
66
65
  import '../Radio/index.js';
67
66
  import '../OperateBtn/index.js';
68
67
  import '@para-ui/icons/More';
@@ -75,7 +74,10 @@ import '@para-ui/icons/DoubleLeft';
75
74
  import '@para-ui/icons/DoubleRight';
76
75
  import '../ScrollBar/index.js';
77
76
  import '../_verture/useResizeObserver-edda059a.js';
78
- import '../_verture/index-1ef401c5.js';
77
+ import '../_verture/index-dfb6ceb9.js';
78
+ import '../_verture/toConsumableArray-599cd94a.js';
79
+ import '../_verture/index-8ac46bd9.js';
80
+ import '../_verture/typeof-6ec38efd.js';
79
81
  import 'rc-tree';
80
82
  import '@para-ui/icons/Document';
81
83
  import 'react-dom';
@@ -87,7 +89,6 @@ import '../_verture/sortable.esm-76fe46a4.js';
87
89
  import 'rc-picker/es/generate/dayjs';
88
90
  import '../Tag/index.js';
89
91
  import '@para-ui/icons/EditOutline';
90
- import '../_verture/toConsumableArray-599cd94a.js';
91
92
  import '../_verture/tinycolor-ece3542d.js';
92
93
  import '@para-ui/icons/Plus';
93
94
  import 'rc-picker';
@@ -1,12 +1,11 @@
1
1
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import * as React$1 from 'react';
3
3
  import React__default, { useRef, useState, useMemo as useMemo$2, useContext, useEffect, createContext, isValidElement, forwardRef, useImperativeHandle, memo, useLayoutEffect, Children, cloneElement } from 'react';
4
- import { _ as _objectSpread2, d as warningOnce, b as _objectWithoutProperties, a as _extends, c as clsx, r as reactIs } from '../_verture/index-1856bbeb.js';
5
- import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
4
+ import { _ as _objectSpread2, d as warningOnce, b as _objectWithoutProperties, a as _extends, c as clsx, r as reactIs } from '../_verture/index-9e4b0e32.js';
5
+ import { _ as _typeof, a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
6
6
  import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
7
- import { d as _toArray, g as _isNativeReflectConstruct, h as _setPrototypeOf, j as _getPrototypeOf, _ as _inherits, a as _createSuper, b as _classCallCheck, k as _assertThisInitialized, c as _createClass, t as toArray$4, e as interopRequireWildcard, i as interopRequireDefault, l as default_1$2, m as _default$2 } from '../_verture/useState-f2419d68.js';
8
- import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
9
- import { i as isEqual } from '../_verture/isEqual-30b6f859.js';
7
+ import { d as _toArray, g as _isNativeReflectConstruct, h as _setPrototypeOf, j as _getPrototypeOf, _ as _inherits, a as _createSuper, b as _classCallCheck, k as _assertThisInitialized, c as _createClass, t as toArray$4, e as interopRequireWildcard, i as interopRequireDefault, l as default_1$2, m as _default$2 } from '../_verture/useState-05fc6660.js';
8
+ import { i as isEqual } from '../_verture/isEqual-38aa74f9.js';
10
9
  import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
11
10
  import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
12
11
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
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-d49daa78.js';
4
+ import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-0fafedf4.js';
5
5
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
6
6
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
7
7
  import '../TextField/index.js';
@@ -56,12 +56,11 @@ import 'rc-input-number';
56
56
  import '@para-ui/icons/Up';
57
57
  import '../ComboSelect/index.js';
58
58
  import '../Table/index.js';
59
- import '../_verture/typeof-adeedc13.js';
59
+ import '../_verture/defineProperty-f0e15205.js';
60
60
  import '@para-ui/icons/ScreenF';
61
61
  import '@para-ui/icons/UpTriangleF';
62
62
  import '@para-ui/icons/DownTriangleF';
63
63
  import '@para-ui/icons/Panel';
64
- import '../_verture/defineProperty-6f62bb2a.js';
65
64
  import '../_verture/index-0f5ee6f7.js';
66
65
  import '../_verture/sortable.esm-76fe46a4.js';
67
66
  import '../OperateBtn/index.js';
@@ -75,7 +74,10 @@ import '@para-ui/icons/Right';
75
74
  import '@para-ui/icons/DoubleLeft';
76
75
  import '@para-ui/icons/DoubleRight';
77
76
  import '../ScrollBar/index.js';
78
- import '../_verture/index-1ef401c5.js';
77
+ import '../_verture/index-dfb6ceb9.js';
78
+ import '../_verture/toConsumableArray-599cd94a.js';
79
+ import '../_verture/index-8ac46bd9.js';
80
+ import '../_verture/typeof-6ec38efd.js';
79
81
  import 'rc-tree';
80
82
  import '@para-ui/icons/Document';
81
83
  import 'react-dom';
package/FormItem/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react/jsx-runtime';
2
2
  import 'react';
3
- export { F as default } from '../_verture/index-d49daa78.js';
3
+ export { F as default } from '../_verture/index-0fafedf4.js';
4
4
  import 'clsx';
5
5
  import '../Label/index.js';
6
6
  import '../_verture/constant-5317fc89.js';
@@ -56,12 +56,11 @@ import 'rc-input-number';
56
56
  import '@para-ui/icons/Up';
57
57
  import '../ComboSelect/index.js';
58
58
  import '../Table/index.js';
59
- import '../_verture/typeof-adeedc13.js';
59
+ import '../_verture/defineProperty-f0e15205.js';
60
60
  import '@para-ui/icons/ScreenF';
61
61
  import '@para-ui/icons/UpTriangleF';
62
62
  import '@para-ui/icons/DownTriangleF';
63
63
  import '@para-ui/icons/Panel';
64
- import '../_verture/defineProperty-6f62bb2a.js';
65
64
  import '../_verture/index-0f5ee6f7.js';
66
65
  import '../_verture/sortable.esm-76fe46a4.js';
67
66
  import '../OperateBtn/index.js';
@@ -75,7 +74,10 @@ import '@para-ui/icons/Right';
75
74
  import '@para-ui/icons/DoubleLeft';
76
75
  import '@para-ui/icons/DoubleRight';
77
76
  import '../ScrollBar/index.js';
78
- import '../_verture/index-1ef401c5.js';
77
+ import '../_verture/index-dfb6ceb9.js';
78
+ import '../_verture/toConsumableArray-599cd94a.js';
79
+ import '../_verture/index-8ac46bd9.js';
80
+ import '../_verture/typeof-6ec38efd.js';
79
81
  import 'rc-tree';
80
82
  import '@para-ui/icons/Document';
81
83
  import 'react-dom';
package/Image/index.js CHANGED
@@ -2,14 +2,13 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import * as React from 'react';
4
4
  import React__default, { useState, useRef, useEffect, useContext, useMemo } from 'react';
5
- import { _ as _objectSpread2, w as warning, c as clsx, b as _objectWithoutProperties, a as _extends } from '../_verture/index-1856bbeb.js';
6
- import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
5
+ import { _ as _objectSpread2, w as warning, c as clsx, b as _objectWithoutProperties, a as _extends } from '../_verture/index-9e4b0e32.js';
6
+ import { a as _defineProperty, _ as _typeof } from '../_verture/defineProperty-f0e15205.js';
7
7
  import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
8
- import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
9
- import { w as wrapperRaf, P as Portal, K as KeyCode, d as useMergedState } from '../_verture/Portal-502bb85e.js';
8
+ import { w as wrapperRaf, P as Portal, K as KeyCode, d as useMergedState } from '../_verture/Portal-274c5bd8.js';
10
9
  import Dialog from 'rc-dialog';
11
10
  import ReactDOM from 'react-dom';
12
- import { i as isEqual } from '../_verture/isEqual-30b6f859.js';
11
+ import { i as isEqual } from '../_verture/isEqual-38aa74f9.js';
13
12
  import CSSMotion from 'rc-motion';
14
13
  import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
15
14
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
package/Menu/index.js CHANGED
@@ -939,12 +939,21 @@ const VerticalMenuList = props => {
939
939
  if (expansion) return null;
940
940
  return listCom.map((item, index) => {
941
941
  const Ele = handMenuEle(item.children);
942
+ // 收缩态只剩图标,label 必须以 aria-label/title 暴露:否则可访问性树里是一排
943
+ // 无名 img,屏幕阅读器与 UI 自动化(getByRole name 定位)都无法识别菜单项。
944
+ // 有子级时 Ele 是 div,裸 div 的 aria-label 不进可访问性树,需要 role="button"
945
+ // (该节点本就挂着 onClick,语义成立);叶子是 a 标签,天然 link role。
946
+ const shrinkLabel = typeof item.label === 'string' ? item.label : undefined;
947
+ const shrinkRole = Ele === 'div' ? 'button' : undefined;
942
948
  return jsx(Ele, Object.assign({
943
949
  className: handShrinkClass(item, index),
944
950
  onMouseEnter: mouseEnterShrinkFunc(item, index),
945
951
  onMouseLeave: mouseLeaveShrinkFunc(),
946
952
  "data-menu-id": item._paraui_menu_id,
947
- onClick: clickShrinkMenu(item)
953
+ onClick: clickShrinkMenu(item),
954
+ role: shrinkRole,
955
+ "aria-label": shrinkLabel,
956
+ title: shrinkLabel
948
957
  }, handHref(item.children, item.path, item.href), {
949
958
  children: jsxs("span", Object.assign({
950
959
  className: 'vertical-menu-list-item-shrink-content'
package/Message/index.js CHANGED
@@ -20,7 +20,11 @@ const iconMapping = {
20
20
  };
21
21
  //获取window
22
22
  const getMsgWindow = () => {
23
- return window === window.top ? window : window.top;
23
+ try {
24
+ return window === window.top ? window : window.top;
25
+ } catch (_a) {
26
+ return window;
27
+ }
24
28
  };
25
29
  //消息内容模板
26
30
  const template = _ref => {
package/Progress/index.js CHANGED
@@ -8,19 +8,19 @@ import Close from '@para-ui/icons/Close';
8
8
  import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-5317fc89.js';
9
9
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
10
 
11
- var Steps = function Steps(props) {
12
- var steps = props.steps,
13
- _props$percent = props.percent,
14
- percent = _props$percent === void 0 ? 0 : _props$percent,
15
- _props$strokeWidth = props.strokeWidth,
16
- strokeWidth = _props$strokeWidth === void 0 ? 8 : _props$strokeWidth,
17
- strokeColor = props.strokeColor,
18
- trailColor = props.trailColor,
19
- children = props.children;
11
+ const Steps = props => {
12
+ const {
13
+ steps,
14
+ percent = 0,
15
+ strokeWidth = 8,
16
+ strokeColor,
17
+ trailColor,
18
+ children
19
+ } = props;
20
20
  /** 计算出应该高亮多少步 **/
21
- var current = typeof percent === 'number' ? Math.round(steps * (percent / 100)) : 1;
22
- var styledSteps = [];
23
- for (var i = 0; i < steps; i += 1) {
21
+ const current = typeof percent === 'number' ? Math.round(steps * (percent / 100)) : 1;
22
+ const styledSteps = [];
23
+ for (let i = 0; i < steps; i += 1) {
24
24
  styledSteps.push(jsx("div", {
25
25
  className: i <= current - 1 ? 'steps-item steps-item-active' : 'steps-item',
26
26
  style: {
@@ -64,11 +64,11 @@ function validProgress(progress) {
64
64
  * @param gradients 渐变的参数
65
65
  * @return {string} 样式值
66
66
  */
67
- var sortGradient = function sortGradient(gradients) {
68
- var tempArr = [];
69
- Object.keys(gradients).forEach(function (key) {
67
+ const sortGradient = gradients => {
68
+ let tempArr = [];
69
+ Object.keys(gradients).forEach(key => {
70
70
  // 拿到百分比的数字
71
- var formattedKey = parseFloat(key.replace(/%/g, ''));
71
+ const formattedKey = parseFloat(key.replace(/%/g, ''));
72
72
  // 进行序列化
73
73
  if (!isNaN(formattedKey)) {
74
74
  tempArr.push({
@@ -78,12 +78,12 @@ var sortGradient = function sortGradient(gradients) {
78
78
  }
79
79
  });
80
80
  // 排序 从小到大
81
- tempArr = tempArr.sort(function (a, b) {
82
- return a.key - b.key;
83
- });
84
- return tempArr.map(function (_ref) {
85
- var key = _ref.key,
86
- value = _ref.value;
81
+ tempArr = tempArr.sort((a, b) => a.key - b.key);
82
+ return tempArr.map(_ref => {
83
+ let {
84
+ key,
85
+ value
86
+ } = _ref;
87
87
  return "".concat(value, " ").concat(key, "%");
88
88
  }).join(', ');
89
89
  };
@@ -105,17 +105,16 @@ var sortGradient = function sortGradient(gradients) {
105
105
  * @param {string} strokeColor 颜色值
106
106
  * @return 返回 backgroundImage 的样式值
107
107
  */
108
- var handleGradient = function handleGradient(strokeColor, directionConfig) {
109
- var _strokeColor$from = strokeColor.from,
110
- from = _strokeColor$from === void 0 ? '#3D66F8' : _strokeColor$from,
111
- _strokeColor$to = strokeColor.to,
112
- to = _strokeColor$to === void 0 ? '#4F93F0' : _strokeColor$to,
113
- _strokeColor$directio = strokeColor.direction,
114
- direction = _strokeColor$directio === void 0 ? directionConfig === 'rtl' ? 'to left' : 'to right' : _strokeColor$directio,
108
+ const handleGradient = (strokeColor, directionConfig) => {
109
+ const {
110
+ from = '#3D66F8',
111
+ to = '#4F93F0',
112
+ direction = directionConfig === 'rtl' ? 'to left' : 'to right'
113
+ } = strokeColor,
115
114
  rest = __rest(strokeColor, ["from", "to", "direction"]);
116
115
  // 剩余参数有值说明除了from to direction 还传了 另外的参数
117
116
  if (Object.keys(rest).length !== 0) {
118
- var sortedGradients = sortGradient(rest);
117
+ const sortedGradients = sortGradient(rest);
119
118
  return {
120
119
  backgroundImage: "linear-gradient(".concat(direction, ", ").concat(sortedGradients, ")")
121
120
  };
@@ -124,23 +123,25 @@ var handleGradient = function handleGradient(strokeColor, directionConfig) {
124
123
  backgroundImage: "linear-gradient(".concat(direction, ", ").concat(from, ", ").concat(to, ")")
125
124
  };
126
125
  };
127
- var Line = function Line(props) {
128
- var directionConfig = props.direction,
129
- percent = props.percent,
130
- strokeWidth = props.strokeWidth,
131
- strokeColor = props.strokeColor,
132
- strokeLinecap = props.strokeLinecap,
133
- trailColor = props.trailColor;
126
+ const Line = props => {
127
+ const {
128
+ direction: directionConfig,
129
+ percent,
130
+ strokeWidth,
131
+ strokeColor,
132
+ strokeLinecap,
133
+ trailColor
134
+ } = props;
134
135
  /** 进度条高亮部分的颜色样式 **/
135
- var backgroundProps = strokeColor && typeof strokeColor !== 'string' ? handleGradient(strokeColor, directionConfig) : {
136
+ const backgroundProps = strokeColor && typeof strokeColor !== 'string' ? handleGradient(strokeColor, directionConfig) : {
136
137
  background: strokeColor
137
138
  };
138
139
  /** 进度条轨道部分的颜色样式 **/
139
- var trailStyle = trailColor ? {
140
+ const trailStyle = trailColor ? {
140
141
  backgroundColor: trailColor
141
142
  } : undefined;
142
143
  /** 进度条百分比的样式 **/
143
- var percentStyle = Object.assign({
144
+ const percentStyle = Object.assign({
144
145
  width: "".concat(validProgress(percent), "%"),
145
146
  height: strokeWidth || 8,
146
147
  borderRadius: strokeLinecap === 'square' ? 0 : ''
package/README.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 🎉 para-ui/core@4.0.86 发布
2
+
3
+ 🔧【Bugfix】
4
+
5
+ - 【全局提示-Message】修复在iframe中跨域访问window.top导致报错的问题
6
+
7
+ ## 🎉 para-ui/core@4.0.85 发布
8
+
9
+ 🔧【Bugfix】
10
+
11
+ - 【开关-CycleSelector】修复toLocaleString转化时间问题
12
+
1
13
  ## 🎉 para-ui/core@4.0.84 发布
2
14
 
3
15
  🔧【Bugfix】
package/Switch/index.js CHANGED
@@ -26,8 +26,8 @@ var zh = {
26
26
  };
27
27
 
28
28
  var localeJson = {
29
- zh,
30
- en
29
+ zh: zh,
30
+ en: en
31
31
  };
32
32
 
33
33
  var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/3 下午5:58\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-switch {\n position: relative;\n display: inline-block;\n width: 32px;\n height: 16px;\n vertical-align: middle;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n}\n.paraui-v4-switch .component-switch {\n border: none;\n cursor: pointer;\n}\n.paraui-v4-switch:before {\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 16px;\n border-radius: 8px;\n background-color: rgb(161, 168, 179);\n content: \"\";\n transition: all 0.2s;\n}\na .paraui-v4-switch:focus {\n outline: 0;\n box-shadow: none;\n}\n.paraui-v4-switch.component-switch-checked:focus {\n box-shadow: none;\n}\n.paraui-v4-switch:focus:hover {\n box-shadow: none;\n}\n.paraui-v4-switch.component-switch-checked:before {\n background-color: rgb(46, 101, 230);\n}\n.paraui-v4-switch-loading *, .paraui-v4-switch.component-switch-disabled * {\n box-shadow: none;\n}\n.paraui-v4-switch-loading .component-switch-inner::before, .paraui-v4-switch.component-switch-disabled .component-switch-inner::before {\n position: absolute;\n top: 0px;\n left: 0;\n width: 100%;\n height: 16px;\n background-color: rgba(255, 255, 255, 0.5);\n content: \"\";\n z-index: 100;\n}\n.paraui-v4-switch .component-switch-inner {\n display: block;\n margin: 0 7px 0 25px;\n font-size: 14px;\n transition: margin 0.2s;\n}\n.paraui-v4-switch.component-switch-checked .component-switch-inner {\n margin: 0 25px 0 7px;\n}\n.paraui-v4-switch .component-switch-handle {\n position: absolute;\n top: 2px;\n left: 2px;\n width: 12px;\n height: 12px;\n transition: all 0.2s ease-in-out;\n}\n.paraui-v4-switch .component-switch-handle::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgb(255, 255, 255);\n border-radius: 9px;\n box-shadow: none;\n transition: all 0.2s ease-in-out;\n content: \"\";\n}\n.paraui-v4-switch.component-switch-checked .component-switch-handle {\n left: calc(100% - 14px);\n}\n.paraui-v4-switch.component-switch-checked .component-switch-handle::before {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-switch:not(.paraui-v4-switch-disabled):active .component-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.paraui-v4-switch:not(.paraui-v4-switch-disabled):active.component-switch-checked .component-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.paraui-v4-switch .component-switch-loading-icon {\n position: relative;\n top: 1px;\n color: rgb(46, 101, 230);\n font-size: 10px;\n vertical-align: top;\n animation: switchLoadingCircle 1s infinite linear;\n}\n.paraui-v4-switch.component-switch-checked .component-switch-loading-icon {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-switch-small {\n min-width: 28px;\n height: 14px;\n line-height: 14px;\n}\n.paraui-v4-switch-small .component-switch-inner {\n margin: 0 5px 0 18px;\n font-size: 14px;\n}\n.paraui-v4-switch-small .component-switch-handle {\n width: 12px;\n height: 12px;\n top: 3px;\n left: 2px;\n}\n.paraui-v4-switch-small .component-switch-loading-icon {\n top: 1.5px;\n font-size: 9px;\n}\n.paraui-v4-switch-small.component-switch-checked .component-switch-inner {\n margin: 0 18px 0 5px;\n}\n.paraui-v4-switch-small.component-switch-checked .component-switch-handle {\n left: calc(100% - 12px - 2px);\n}\n@keyframes switchLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.paraui-v4-switch-disabled::before {\n background-color: rgb(161, 168, 179);\n}\n.paraui-v4-switch-disabled.component-switch-checked::before {\n background-color: rgb(151, 178, 242);\n}\n\n.component-label-box {\n display: flex;\n align-items: center;\n}\n.component-label-box .sup-text {\n color: rgb(92, 101, 115);\n font-size: 14px;\n margin-left: 10px;\n line-height: 16px;\n}\n.component-label-box .sup-text > a {\n text-decoration: none;\n cursor: pointer;\n color: rgb(46, 101, 230);\n}\n.component-label-box .sup-text > a:hover {\n color: rgb(87, 131, 235);\n}\n\n.paraui-v4-switch-label {\n display: inline-flex;\n align-items: flex-end;\n}\n.paraui-v4-switch-label .component-disabled-text {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-switch-label .component-desc-text {\n margin-bottom: 0;\n margin-right: 10px;\n line-height: 16px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-switch-label .component-desc-text .paraui-v4-help {\n line-height: 1;\n}\n.paraui-v4-switch-label .component-desc-text .paraui-v4-help svg {\n top: 0;\n}\n.paraui-v4-switch-label .paraui-v4-label-text-container {\n display: flex;\n flex-direction: column;\n}\n\n.paraui-v4-switch-desc-end {\n flex-direction: row-reverse;\n}\n.paraui-v4-switch-desc-end .component-desc-text {\n margin-right: 0;\n}\n\n.component-switch-disabled > div:nth-child(1)::before {\n transition: all 2s ease-in-out;\n}";
package/Table/index.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __rest, a as __awaiter } from '../_verture/tslib.es6-55ed4bd2.js';
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
3
  import { useRef, useState, useEffect, useMemo, useCallback, Fragment as Fragment$1 } from 'react';
4
4
  import { Get, Post, DeepClone, GetBrowserClass, Cancel, ArrayToObject, UUID } from '@paraview/lib';
5
- import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
5
+ import { _ as _typeof, a as _defineProperty } from '../_verture/defineProperty-f0e15205.js';
6
6
  import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
7
7
  import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
8
8
  import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
@@ -16,7 +16,6 @@ import SolidArrowDown from '@para-ui/icons/DownTriangleF';
16
16
  import Panel from '@para-ui/icons/Panel';
17
17
  import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
18
18
  import Empty from '../Empty/index.js';
19
- import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
20
19
  import { d as dist } from '../_verture/index-0f5ee6f7.js';
21
20
  import { Radio } from '../Radio/index.js';
22
21
  import OperateBtn from '../OperateBtn/index.js';