@unicom-cloud/ui 0.8.64 → 0.8.65
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/Affix.js +2 -2
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +37 -31
- package/Breadcrumb.js +3 -3
- package/Button.js +82 -71
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +5 -5
- package/Comment.js +2 -2
- package/ConfigProvider.js +2 -2
- package/Copy.js +3 -3
- package/DatePicker.js +92 -92
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Drawer.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +2 -2
- package/Form.js +4 -4
- package/Grid.js +3 -3
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +2 -2
- package/Input.js +3 -3
- package/InputNumber.js +3 -3
- package/InputTag.js +1 -1
- package/Layout.js +3 -3
- package/Link.js +2 -2
- package/List.js +30 -30
- package/Mentions.js +4 -4
- package/Menu.js +2 -2
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +2 -2
- package/Radio.js +2 -2
- package/Rate.js +2 -2
- package/ResizeBox.js +155 -154
- package/Result.js +2 -2
- package/Select.js +2 -2
- package/SelectView.js +7 -7
- package/Skeleton.js +2 -2
- package/Slider.js +5 -5
- package/Space.js +2 -2
- package/Spin.js +2 -2
- package/Statistic.js +2 -2
- package/Steps.js +2 -2
- package/Switch.js +3 -3
- package/Table.js +5 -5
- package/Tabs.js +4 -4
- package/Tag.js +2 -2
- package/TimePicker.js +4 -4
- package/Timeline.js +2 -2
- package/Tooltip.js +2 -2
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +2 -2
- package/Trigger.js +43 -42
- package/Typography.js +1 -1
- package/Upload.js +4 -5
- package/VerificationCode.js +1 -1
- package/Version.js +5 -3
- package/Watermark.js +1 -1
- package/chunk/{-IELMT_x.js → 1GQdnTJp.js} +2 -2
- package/chunk/BAWsPQBM.js +11 -0
- package/chunk/{BJSjbYSN.js → BS09tn7B.js} +2 -2
- package/chunk/{oR9TkA35.js → BUCEs557.js} +2 -2
- package/chunk/BqGtwxTi.js +777 -0
- package/chunk/{CtUTlwlQ.js → Bqk6yh16.js} +2 -2
- package/chunk/{DPJEIBKZ.js → BqufsN8i.js} +4 -4
- package/chunk/{CA69nxbj.js → BtlvlGQN.js} +2 -2
- package/chunk/{CAhODOfT.js → CF6p9R93.js} +2 -2
- package/chunk/{D-oHJail.js → CGZ0In1p.js} +178 -175
- package/chunk/{BHnRi7Xh.js → CH1UUxsg.js} +4 -4
- package/chunk/{Yvz-hPQB.js → CIlGCedk.js} +3 -3
- package/chunk/{tW_FgNSv.js → CPcm9Cm5.js} +2 -2
- package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
- package/chunk/{BtIG250j.js → CWgltRVL.js} +40 -40
- package/chunk/{BCxoi4Kf.js → CsbCHnFk.js} +2 -2
- package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
- package/chunk/{QlYCEvCX.js → DG-epQqF.js} +2 -2
- package/chunk/{CxpFYX4B.js → DIx0qmCq.js} +3 -3
- package/chunk/{D01b7bWX.js → DK4KcodH.js} +176 -175
- package/chunk/{CYQ1EE4h.js → DLvMA1OW.js} +2 -2
- package/chunk/{CAiaqaWc.js → DQDkV47j.js} +2 -2
- package/chunk/{BfHNSLva.js → DTjcKyDN.js} +135 -134
- package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
- package/chunk/{CZfGDXaB.js → DXZEpA3t.js} +2 -2
- package/chunk/{CTF5o0OX.js → DjtWv6Wn.js} +1 -1
- package/chunk/{B5GDq8NJ.js → DlLL5JQo.js} +99 -96
- package/chunk/{CBgwLBAC.js → Dnycc1qJ.js} +104 -103
- package/chunk/{B68hRpYG.js → DqFhzTWC.js} +3 -3
- package/chunk/{BwSpYGK-.js → Dv_xRzvR.js} +3 -3
- package/chunk/{DQ561AmR.js → Ek8U5CTN.js} +222 -221
- package/chunk/{BSBJlVZH.js → ewRDIDUz.js} +4 -4
- package/chunk/{pq-36BDW.js → tYXLFPVI.js} +3 -3
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +2 -2
- package/index.js +378 -374
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style/variable.less +820 -0
- package/style.css +1 -1
- package/types/badge/index.d.ts +2 -2
- package/types/button/index.d.ts +3 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/index.d.ts +5 -5
- package/types/select/interface.d.ts +1 -1
- package/types/tabs/Tab.d.ts +1 -1
- package/types/upload/Upload.d.ts +1 -1
- package/types/version/index.d.ts +2 -0
- package/utils/className.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/index.js +41 -41
- package/utils/is.js +37 -37
- package/utils/reactDOM.js +3 -3
- package/utils/scrollIntoView.js +1 -1
- package/chunk/BzPkh4Zv.js +0 -11
- package/chunk/_m8hLSsx.js +0 -776
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as i, jsxs as _, Fragment as Je } from "react/jsx-runtime";
|
|
2
2
|
import W, { useContext as O, useState as Oe, useRef as ge, useEffect as te, forwardRef as Ae, createElement as J } from "react";
|
|
3
|
-
import { d as A } from "./
|
|
3
|
+
import { d as A } from "./DlLL5JQo.js";
|
|
4
4
|
import { useMergeProps as Fe } from "../hooks/useMergeProps.js";
|
|
5
5
|
import { useMergeValue as le } from "../hooks/useMergeValue.js";
|
|
6
|
-
import { y as q } from "./
|
|
6
|
+
import { y as q } from "./BAWsPQBM.js";
|
|
7
7
|
import { pickDataAttributes as _e } from "../utils/pick.js";
|
|
8
8
|
import Le from "@unicom-cloud/icons/IconUiLeft";
|
|
9
9
|
import Te from "@unicom-cloud/icons/IconUiMore";
|
|
@@ -12,8 +12,8 @@ import { useKeyboardEvent as pe } from "../hooks/useKeyboardEvent.js";
|
|
|
12
12
|
import Be from "lodash/isFunction";
|
|
13
13
|
import Ke from "lodash/isPlainObject";
|
|
14
14
|
import ce from "lodash/isUndefined";
|
|
15
|
-
import { I as Ve } from "./
|
|
16
|
-
import { S as fe } from "./
|
|
15
|
+
import { I as Ve } from "./DK4KcodH.js";
|
|
16
|
+
import { S as fe } from "./BqGtwxTi.js";
|
|
17
17
|
var R = /* @__PURE__ */ ((e) => (e[e.previous = 0] = "previous", e[e.next = 1] = "next", e))(R || {});
|
|
18
18
|
function De(e) {
|
|
19
19
|
var M, h, t;
|
|
@@ -5,15 +5,15 @@ import _ from "lodash/isNumber";
|
|
|
5
5
|
import ee from "lodash/isPlainObject";
|
|
6
6
|
import Ie from "lodash/isUndefined";
|
|
7
7
|
import xe, { useContext as re, useMemo as R, useRef as oe, useEffect as G } from "react";
|
|
8
|
-
import { d as Ve } from "./
|
|
8
|
+
import { d as Ve } from "./DlLL5JQo.js";
|
|
9
9
|
import { useInView as Le } from "../hooks/useInView.js";
|
|
10
10
|
import { useKeyboardEvent as ye } from "../hooks/useKeyboardEvent.js";
|
|
11
11
|
import { useMergeProps as Ee } from "../hooks/useMergeProps.js";
|
|
12
12
|
import { useMergeValue as Fe } from "../hooks/useMergeValue.js";
|
|
13
|
-
import { y as h } from "./
|
|
13
|
+
import { y as h } from "./BAWsPQBM.js";
|
|
14
14
|
import Re from "../utils/omit.js";
|
|
15
15
|
import Ge from "@unicom-cloud/icons/IconUiMore";
|
|
16
|
-
import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./
|
|
16
|
+
import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./DqFhzTWC.js";
|
|
17
17
|
function te(v) {
|
|
18
18
|
const { title: w, description: $, actions: t } = v, a = w || $, l = t && t.length;
|
|
19
19
|
return [a || l, a, l];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l, useContext as u, useRef as p, useCallback as d, useEffect as C } from "react";
|
|
3
|
-
import { d as h } from "./
|
|
3
|
+
import { d as h } from "./DlLL5JQo.js";
|
|
4
4
|
import { useWatermark as x } from "../hooks/use-watermark.js";
|
|
5
5
|
import { useMergeProps as k } from "../hooks/useMergeProps.js";
|
|
6
|
-
import { y } from "./
|
|
6
|
+
import { y } from "./BAWsPQBM.js";
|
|
7
7
|
const w = {}, W = [
|
|
8
8
|
"zIndex",
|
|
9
9
|
"width",
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import "lodash/isArguments";
|
|
2
|
-
import p from "lodash/isArray";
|
|
3
|
-
import "lodash/isArrayBuffer";
|
|
4
|
-
import "lodash/isArrayLike";
|
|
5
|
-
import "lodash/isArrayLikeObject";
|
|
6
|
-
import "lodash/isBoolean";
|
|
7
|
-
import "lodash/isBuffer";
|
|
8
|
-
import "lodash/isDate";
|
|
9
|
-
import "lodash/isElement";
|
|
10
|
-
import e from "lodash/isEmpty";
|
|
11
|
-
import "lodash/isEqual";
|
|
12
|
-
import "lodash/isEqualWith";
|
|
13
|
-
import "lodash/isError";
|
|
14
|
-
import "lodash/isFinite";
|
|
15
|
-
import "lodash/isFunction";
|
|
16
|
-
import "lodash/isInteger";
|
|
17
|
-
import "lodash/isLength";
|
|
18
|
-
import "lodash/isMap";
|
|
19
|
-
import "lodash/isMatch";
|
|
20
|
-
import "lodash/isMatchWith";
|
|
21
|
-
import "lodash/isNaN";
|
|
22
|
-
import "lodash/isNative";
|
|
23
|
-
import c from "lodash/isNil";
|
|
24
|
-
import "lodash/isNull";
|
|
25
|
-
import "lodash/isNumber";
|
|
26
|
-
import a from "lodash/isObject";
|
|
27
|
-
import "lodash/isObjectLike";
|
|
28
|
-
import "lodash/isPlainObject";
|
|
29
|
-
import "lodash/isRegExp";
|
|
30
|
-
import "lodash/isSafeInteger";
|
|
31
|
-
import "lodash/isSet";
|
|
32
|
-
import "lodash/isString";
|
|
33
|
-
import "lodash/isSymbol";
|
|
34
|
-
import "lodash/isTypedArray";
|
|
35
|
-
import "lodash/isUndefined";
|
|
36
|
-
import "lodash/isWeakMap";
|
|
37
|
-
import "lodash/isWeakSet";
|
|
38
|
-
function
|
|
1
|
+
import "lodash/isArguments.js";
|
|
2
|
+
import p from "lodash/isArray.js";
|
|
3
|
+
import "lodash/isArrayBuffer.js";
|
|
4
|
+
import "lodash/isArrayLike.js";
|
|
5
|
+
import "lodash/isArrayLikeObject.js";
|
|
6
|
+
import "lodash/isBoolean.js";
|
|
7
|
+
import "lodash/isBuffer.js";
|
|
8
|
+
import "lodash/isDate.js";
|
|
9
|
+
import "lodash/isElement.js";
|
|
10
|
+
import e from "lodash/isEmpty.js";
|
|
11
|
+
import "lodash/isEqual.js";
|
|
12
|
+
import "lodash/isEqualWith.js";
|
|
13
|
+
import "lodash/isError.js";
|
|
14
|
+
import "lodash/isFinite.js";
|
|
15
|
+
import "lodash/isFunction.js";
|
|
16
|
+
import "lodash/isInteger.js";
|
|
17
|
+
import "lodash/isLength.js";
|
|
18
|
+
import "lodash/isMap.js";
|
|
19
|
+
import "lodash/isMatch.js";
|
|
20
|
+
import "lodash/isMatchWith.js";
|
|
21
|
+
import "lodash/isNaN.js";
|
|
22
|
+
import "lodash/isNative.js";
|
|
23
|
+
import c from "lodash/isNil.js";
|
|
24
|
+
import "lodash/isNull.js";
|
|
25
|
+
import "lodash/isNumber.js";
|
|
26
|
+
import a from "lodash/isObject.js";
|
|
27
|
+
import "lodash/isObjectLike.js";
|
|
28
|
+
import "lodash/isPlainObject.js";
|
|
29
|
+
import "lodash/isRegExp.js";
|
|
30
|
+
import "lodash/isSafeInteger.js";
|
|
31
|
+
import "lodash/isSet.js";
|
|
32
|
+
import "lodash/isString.js";
|
|
33
|
+
import "lodash/isSymbol.js";
|
|
34
|
+
import "lodash/isTypedArray.js";
|
|
35
|
+
import "lodash/isUndefined.js";
|
|
36
|
+
import "lodash/isWeakMap.js";
|
|
37
|
+
import "lodash/isWeakSet.js";
|
|
38
|
+
function L(t) {
|
|
39
39
|
return t instanceof Promise;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function M(t) {
|
|
42
42
|
return p(t) && e(t);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function T(t) {
|
|
45
45
|
return a(t) && e(t);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function U(t) {
|
|
48
48
|
return c(t) || t === "";
|
|
49
49
|
}
|
|
50
50
|
function W(t) {
|
|
@@ -78,8 +78,8 @@ function pt(t) {
|
|
|
78
78
|
return l(t);
|
|
79
79
|
}
|
|
80
80
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
T as G,
|
|
82
|
+
U as H,
|
|
83
83
|
pt as J,
|
|
84
84
|
W as K,
|
|
85
85
|
tt as Q,
|
|
@@ -91,6 +91,6 @@ export {
|
|
|
91
91
|
l as m,
|
|
92
92
|
mt as r,
|
|
93
93
|
nt as t,
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
L as v,
|
|
95
|
+
M as z
|
|
96
96
|
};
|
|
@@ -3,14 +3,14 @@ import Ae from "@unicom-cloud/icons/IconUiMenuFold";
|
|
|
3
3
|
import Ue from "@unicom-cloud/icons/IconUiMenuUnfold";
|
|
4
4
|
import He from "lodash/isPlainObject";
|
|
5
5
|
import L, { createContext as Be, useContext as K, forwardRef as X, useRef as J, useEffect as Z, useState as Ce, useMemo as Fe } from "react";
|
|
6
|
-
import { d as Ie } from "./
|
|
6
|
+
import { d as Ie } from "./DlLL5JQo.js";
|
|
7
7
|
import { useForceUpdate as Ve } from "../hooks/useForceUpdate.js";
|
|
8
8
|
import { useId as le } from "../hooks/useId.js";
|
|
9
9
|
import { useKeyboardEvent as We } from "../hooks/useKeyboardEvent.js";
|
|
10
10
|
import { useMergeProps as Ge } from "../hooks/useMergeProps.js";
|
|
11
11
|
import { useMergeValue as re } from "../hooks/useMergeValue.js";
|
|
12
|
-
import { a as ze } from "./
|
|
13
|
-
import { y as H } from "./
|
|
12
|
+
import { a as ze } from "./DQDkV47j.js";
|
|
13
|
+
import { y as H } from "./BAWsPQBM.js";
|
|
14
14
|
import z from "../utils/omit.js";
|
|
15
15
|
import { p as je } from "./CANaGbGR.js";
|
|
16
16
|
import { useIsFirstRender as qe } from "../hooks/useIsFirstRender.js";
|
|
@@ -53,13 +53,13 @@ const Ne = [
|
|
|
53
53
|
const s = Se(l);
|
|
54
54
|
return s.forEach((r, n) => {
|
|
55
55
|
var p, C;
|
|
56
|
-
const c = r.key, u = r.type.menuType,
|
|
56
|
+
const c = r.key, u = r.type.menuType, m = [c, ...o], y = {
|
|
57
57
|
keyPath: [],
|
|
58
58
|
prev: ((p = s[n - 1]) == null ? void 0 : p.key) || null,
|
|
59
59
|
next: ((C = s[n + 1]) == null ? void 0 : C.key) || null
|
|
60
60
|
};
|
|
61
61
|
if (n === 0 || n === s.length - 1) {
|
|
62
|
-
const a =
|
|
62
|
+
const a = m[1], S = n === 0 ? "firstChild" : "lastChild";
|
|
63
63
|
a && (e[a] = {
|
|
64
64
|
...e[a],
|
|
65
65
|
[S]: c
|
|
@@ -67,10 +67,10 @@ const Ne = [
|
|
|
67
67
|
}
|
|
68
68
|
switch (u) {
|
|
69
69
|
case "SubMenu":
|
|
70
|
-
y.keyPath =
|
|
70
|
+
y.keyPath = m, ke(r.props.children, m, e);
|
|
71
71
|
break;
|
|
72
72
|
case "MenuItem":
|
|
73
|
-
y.keyPath =
|
|
73
|
+
y.keyPath = m, y.disabled = r.props.disabled;
|
|
74
74
|
break;
|
|
75
75
|
}
|
|
76
76
|
e[c] = {
|
|
@@ -117,7 +117,7 @@ function rn(l, o) {
|
|
|
117
117
|
disabled: n,
|
|
118
118
|
className: c,
|
|
119
119
|
style: u,
|
|
120
|
-
wrapper:
|
|
120
|
+
wrapper: m = "div",
|
|
121
121
|
onClick: y,
|
|
122
122
|
renderItemInTooltip: p,
|
|
123
123
|
...C
|
|
@@ -132,12 +132,12 @@ function rn(l, o) {
|
|
|
132
132
|
scrollConfig: b,
|
|
133
133
|
tooltipProps: w,
|
|
134
134
|
onClickMenuItem: v
|
|
135
|
-
} = K(B),
|
|
135
|
+
} = K(B), h = J(null), x = qe(), P = S === "vertical" && r > 1, O = E && !t && r === 1, $ = d && ~d.indexOf(e);
|
|
136
136
|
Z(() => {
|
|
137
137
|
const k = $ && g;
|
|
138
|
-
|
|
138
|
+
h.current && k && setTimeout(
|
|
139
139
|
() => {
|
|
140
|
-
|
|
140
|
+
h.current && je(h.current, {
|
|
141
141
|
behavior: "smooth",
|
|
142
142
|
block: "start",
|
|
143
143
|
scrollMode: "if-needed",
|
|
@@ -151,12 +151,12 @@ function rn(l, o) {
|
|
|
151
151
|
const A = (k) => {
|
|
152
152
|
n || (v == null || v(e, k), y == null || y(k));
|
|
153
153
|
}, I = /* @__PURE__ */ F(
|
|
154
|
-
|
|
154
|
+
m,
|
|
155
155
|
{
|
|
156
156
|
tabIndex: n ? -1 : 0,
|
|
157
157
|
role: "menuitem",
|
|
158
158
|
ref: (k) => {
|
|
159
|
-
o = k,
|
|
159
|
+
o = k, h.current = o;
|
|
160
160
|
},
|
|
161
161
|
style: u,
|
|
162
162
|
className: H(
|
|
@@ -221,7 +221,7 @@ const sn = X(rn), ce = sn;
|
|
|
221
221
|
ce.displayName = "MenuItem";
|
|
222
222
|
ce.menuType = "MenuItem";
|
|
223
223
|
function ln(l, o) {
|
|
224
|
-
const { children: e, title: s, level: r, className: n, style: c } = l, { prefixCls: u, levelIndent:
|
|
224
|
+
const { children: e, title: s, level: r, className: n, style: c } = l, { prefixCls: u, levelIndent: m } = K(B), y = r === 1 ? r + 1 : r, p = ne(e, {
|
|
225
225
|
level: y
|
|
226
226
|
});
|
|
227
227
|
return /* @__PURE__ */ F(
|
|
@@ -237,7 +237,7 @@ function ln(l, o) {
|
|
|
237
237
|
{
|
|
238
238
|
level: r,
|
|
239
239
|
prefixCls: u,
|
|
240
|
-
levelIndent:
|
|
240
|
+
levelIndent: m
|
|
241
241
|
}
|
|
242
242
|
),
|
|
243
243
|
/* @__PURE__ */ i("span", { children: s })
|
|
@@ -259,7 +259,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
259
259
|
title: n,
|
|
260
260
|
level: c,
|
|
261
261
|
forwardedRef: u,
|
|
262
|
-
selectable:
|
|
262
|
+
selectable: m,
|
|
263
263
|
...y
|
|
264
264
|
} = l, {
|
|
265
265
|
id: p,
|
|
@@ -270,14 +270,14 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
270
270
|
icons: t,
|
|
271
271
|
onClickSubMenu: f,
|
|
272
272
|
onClickMenuItem: d
|
|
273
|
-
} = K(B), g = `${C}-inline`, b = (S == null ? void 0 : S.indexOf(o)) > -1, w =
|
|
273
|
+
} = K(B), g = `${C}-inline`, b = (S == null ? void 0 : S.indexOf(o)) > -1, w = m && E.indexOf(l._key) > -1 || xe(e, E), [v, h] = Xe(
|
|
274
274
|
b ? { height: "auto" } : se
|
|
275
275
|
), x = (I) => {
|
|
276
|
-
f(o, c, "inline"),
|
|
276
|
+
f(o, c, "inline"), m && d(o, I);
|
|
277
277
|
}, P = le(`${p}-submenu-inline-`), O = ne(e, {
|
|
278
278
|
...en(y, Ne),
|
|
279
279
|
level: c + 1,
|
|
280
|
-
selectable:
|
|
280
|
+
selectable: m
|
|
281
281
|
}), $ = /* @__PURE__ */ F(
|
|
282
282
|
"div",
|
|
283
283
|
{
|
|
@@ -330,13 +330,13 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
330
330
|
classNames: g,
|
|
331
331
|
unmountOnExit: !1,
|
|
332
332
|
onEnter: async (I) => {
|
|
333
|
-
I && (await
|
|
333
|
+
I && (await h(se), await h({ height: I.scrollHeight }));
|
|
334
334
|
},
|
|
335
335
|
onEntered: () => {
|
|
336
|
-
|
|
336
|
+
h({ height: "auto" });
|
|
337
337
|
},
|
|
338
338
|
onExit: async (I) => {
|
|
339
|
-
I && (await
|
|
339
|
+
I && (await h({ height: I.scrollHeight }), await h(se));
|
|
340
340
|
},
|
|
341
341
|
children: A
|
|
342
342
|
}
|
|
@@ -353,7 +353,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
353
353
|
title: n,
|
|
354
354
|
level: c,
|
|
355
355
|
selectable: u,
|
|
356
|
-
forwardedRef:
|
|
356
|
+
forwardedRef: m,
|
|
357
357
|
triggerProps: y,
|
|
358
358
|
...p
|
|
359
359
|
} = l, {
|
|
@@ -367,7 +367,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
367
367
|
triggerProps: g,
|
|
368
368
|
onClickSubMenu: b,
|
|
369
369
|
onClickMenuItem: w
|
|
370
|
-
} = K(B), { rtl: v } = K(Ie),
|
|
370
|
+
} = K(B), { rtl: v } = K(Ie), h = { ...g, ...y }, [x, P] = Ce(!1), O = `${a}-pop`, $ = u && f.indexOf(l._key) > -1, A = S === "horizontal" && !E, I = le(`${C}-submenu-pop-`), k = () => {
|
|
371
371
|
const _ = d && d.popArrowRight ? d.popArrowRight : v ? /* @__PURE__ */ i(nn, {}) : /* @__PURE__ */ i(tn, {}), N = d && d.horizontalArrowDown ? d.horizontalArrowDown : /* @__PURE__ */ i(ve, {});
|
|
372
372
|
return /* @__PURE__ */ i("span", { className: `${a}-icon-suffix`, children: A ? N : _ });
|
|
373
373
|
}, V = xe(e, f) || $, G = v ? ["br", "lt"] : ["bl", "rt"], q = (_) => {
|
|
@@ -400,9 +400,9 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
400
400
|
mouseLeaveDelay: 50,
|
|
401
401
|
className: H(
|
|
402
402
|
`${O}-trigger`,
|
|
403
|
-
|
|
403
|
+
h.className
|
|
404
404
|
),
|
|
405
|
-
...z(
|
|
405
|
+
...z(h, ["className"])
|
|
406
406
|
},
|
|
407
407
|
children: /* @__PURE__ */ F(
|
|
408
408
|
"div",
|
|
@@ -411,7 +411,7 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
411
411
|
"aria-haspopup": !0,
|
|
412
412
|
"aria-expanded": x,
|
|
413
413
|
"aria-controls": I,
|
|
414
|
-
ref:
|
|
414
|
+
ref: m,
|
|
415
415
|
style: s,
|
|
416
416
|
className: H(
|
|
417
417
|
O,
|
|
@@ -446,9 +446,9 @@ const se = { height: 0, visibility: "hidden" }, an = (l) => {
|
|
|
446
446
|
);
|
|
447
447
|
};
|
|
448
448
|
function pn(l, o) {
|
|
449
|
-
const { children: e, popup: s, level: r } = l, { mode: n, collapse: c, inDropdown: u, collectInlineMenuKeys:
|
|
450
|
-
return Z(() => (
|
|
451
|
-
|
|
449
|
+
const { children: e, popup: s, level: r } = l, { mode: n, collapse: c, inDropdown: u, collectInlineMenuKeys: m } = K(B), C = !!(typeof s == "function" ? s(r) : s) || c || u || n !== "vertical" ? un : an;
|
|
450
|
+
return Z(() => (m(l._key), () => {
|
|
451
|
+
m(l._key, !0);
|
|
452
452
|
}), []), /* @__PURE__ */ i(C, { forwardedRef: o, ...l, children: e });
|
|
453
453
|
}
|
|
454
454
|
const dn = X(pn), te = dn;
|
|
@@ -463,7 +463,7 @@ function be(l) {
|
|
|
463
463
|
return isNaN(o) ? 0 : o;
|
|
464
464
|
}
|
|
465
465
|
const mn = (l) => {
|
|
466
|
-
const { children: o, ellipsisText: e = "···", onEllipsisChange: s } = l, { prefixCls: r } = K(B), n = J(null), [c, u] = Ce(null),
|
|
466
|
+
const { children: o, ellipsisText: e = "···", onEllipsisChange: s } = l, { prefixCls: r } = K(B), n = J(null), [c, u] = Ce(null), m = `${r}-overflow-sub-menu`, y = `${r}-overflow-hidden-menu-item`, p = `${r}-overflow-sub-menu-mirror`, C = (t) => {
|
|
467
467
|
if (t !== c) {
|
|
468
468
|
const f = L.Children.toArray(o), d = t === null;
|
|
469
469
|
s == null || s({
|
|
@@ -478,10 +478,10 @@ const mn = (l) => {
|
|
|
478
478
|
const t = n.current, f = Me(t) - fn, d = [].slice.call(t.children);
|
|
479
479
|
let g = 0, b = 0, w = 0;
|
|
480
480
|
for (let v = 0; v < d.length; v++) {
|
|
481
|
-
const
|
|
481
|
+
const h = d[v], x = h.className.split(" "), P = x.indexOf(m) > -1, O = x.indexOf(p) > -1;
|
|
482
482
|
if (P)
|
|
483
483
|
continue;
|
|
484
|
-
const $ = Me(
|
|
484
|
+
const $ = Me(h) + be(ge(h, "marginLeft")) + be(ge(h, "marginRight"));
|
|
485
485
|
if (O) {
|
|
486
486
|
w = $;
|
|
487
487
|
continue;
|
|
@@ -501,7 +501,7 @@ const mn = (l) => {
|
|
|
501
501
|
te,
|
|
502
502
|
{
|
|
503
503
|
title: /* @__PURE__ */ i("span", { children: e }),
|
|
504
|
-
className: f ? p :
|
|
504
|
+
className: f ? p : m,
|
|
505
505
|
children: t
|
|
506
506
|
},
|
|
507
507
|
`pqb-menu-overflow-sub-menu${f ? "-mirror" : ""}`
|
|
@@ -516,12 +516,12 @@ const mn = (l) => {
|
|
|
516
516
|
(v = g == null ? void 0 : g.props) == null ? void 0 : v.className
|
|
517
517
|
)
|
|
518
518
|
})), b === c + 1)) {
|
|
519
|
-
const
|
|
519
|
+
const h = L.Children.toArray(o).slice(c + 1).map(
|
|
520
520
|
(x) => L.cloneElement(x, {
|
|
521
521
|
key: x.props._key
|
|
522
522
|
})
|
|
523
523
|
);
|
|
524
|
-
t = S(
|
|
524
|
+
t = S(h);
|
|
525
525
|
}
|
|
526
526
|
return w;
|
|
527
527
|
}) ?? [];
|
|
@@ -547,7 +547,7 @@ function gn(l, o) {
|
|
|
547
547
|
), {
|
|
548
548
|
style: c,
|
|
549
549
|
children: u,
|
|
550
|
-
className:
|
|
550
|
+
className: m,
|
|
551
551
|
prefixCls: y,
|
|
552
552
|
mode: p,
|
|
553
553
|
theme: C,
|
|
@@ -561,7 +561,7 @@ function gn(l, o) {
|
|
|
561
561
|
ellipsis: b,
|
|
562
562
|
accordion: w,
|
|
563
563
|
autoOpen: v,
|
|
564
|
-
autoScrollIntoView:
|
|
564
|
+
autoScrollIntoView: h,
|
|
565
565
|
scrollConfig: x,
|
|
566
566
|
hasCollapseButton: P,
|
|
567
567
|
defaultOpenKeys: O,
|
|
@@ -642,7 +642,7 @@ function gn(l, o) {
|
|
|
642
642
|
[`${R}-pop-button`]: p === "popButton",
|
|
643
643
|
[`${R}-rtl`]: r
|
|
644
644
|
},
|
|
645
|
-
|
|
645
|
+
m
|
|
646
646
|
),
|
|
647
647
|
children: /* @__PURE__ */ i(
|
|
648
648
|
B.Provider,
|
|
@@ -658,7 +658,7 @@ function gn(l, o) {
|
|
|
658
658
|
icons: a,
|
|
659
659
|
triggerProps: d,
|
|
660
660
|
tooltipProps: g,
|
|
661
|
-
autoScrollIntoView:
|
|
661
|
+
autoScrollIntoView: h,
|
|
662
662
|
scrollConfig: x,
|
|
663
663
|
// pass props directly
|
|
664
664
|
id: oe,
|
|
@@ -2,10 +2,10 @@ import { jsx as i, jsxs as z, Fragment as O } from "react/jsx-runtime";
|
|
|
2
2
|
import j from "lodash/isFunction";
|
|
3
3
|
import w from "lodash/isNil";
|
|
4
4
|
import B, { createContext as H, useContext as G, useRef as L } from "react";
|
|
5
|
-
import { d as A, I as Q } from "./
|
|
5
|
+
import { d as A, I as Q } from "./DlLL5JQo.js";
|
|
6
6
|
import { useMergeProps as D } from "../hooks/useMergeProps.js";
|
|
7
7
|
import { useMergeValue as F } from "../hooks/useMergeValue.js";
|
|
8
|
-
import { y as I } from "./
|
|
8
|
+
import { y as I } from "./BAWsPQBM.js";
|
|
9
9
|
import S from "../utils/omit.js";
|
|
10
10
|
import T from "lodash/isArray";
|
|
11
11
|
import q from "lodash/isPlainObject";
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
function
|
|
1
|
+
import r from "lodash/isString.js";
|
|
2
|
+
function n() {
|
|
3
3
|
return new DOMException("The request is not allowed", "NotAllowedError");
|
|
4
4
|
}
|
|
5
5
|
async function i(t) {
|
|
6
6
|
if (!navigator.clipboard)
|
|
7
|
-
throw
|
|
7
|
+
throw n();
|
|
8
8
|
return navigator.clipboard.writeText(t);
|
|
9
9
|
}
|
|
10
10
|
async function l(t) {
|
|
11
11
|
const e = document.createElement("span");
|
|
12
12
|
e.textContent = t, e.style.whiteSpace = "pre", e.style.webkitUserSelect = "auto", e.style.userSelect = "all", document.body.appendChild(e);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
let
|
|
13
|
+
const o = window.getSelection(), c = window.document.createRange();
|
|
14
|
+
o.removeAllRanges(), c.selectNode(e), o.addRange(c);
|
|
15
|
+
let a = !1;
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
a = window.document.execCommand("copy");
|
|
18
18
|
} finally {
|
|
19
|
-
|
|
19
|
+
o.removeAllRanges(), window.document.body.removeChild(e);
|
|
20
20
|
}
|
|
21
|
-
if (!
|
|
21
|
+
if (!a) throw n();
|
|
22
22
|
}
|
|
23
|
-
async function
|
|
23
|
+
async function w(t) {
|
|
24
24
|
try {
|
|
25
|
-
|
|
25
|
+
r(t) || (t = JSON.stringify(t) ?? t);
|
|
26
26
|
} catch {
|
|
27
27
|
}
|
|
28
28
|
try {
|
|
@@ -30,11 +30,11 @@ async function s(t) {
|
|
|
30
30
|
} catch (e) {
|
|
31
31
|
try {
|
|
32
32
|
await l(t);
|
|
33
|
-
} catch (
|
|
34
|
-
throw
|
|
33
|
+
} catch (o) {
|
|
34
|
+
throw o || e || n();
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
export {
|
|
39
|
-
s
|
|
39
|
+
w as s
|
|
40
40
|
};
|
|
@@ -4,10 +4,10 @@ import B from "@unicom-cloud/icons/IconUiMinus";
|
|
|
4
4
|
import I from "lodash/isFunction";
|
|
5
5
|
import J from "lodash/isNil";
|
|
6
6
|
import G, { createContext as K, useState as j, useContext as R, useCallback as F, useMemo as M, useRef as Q, useEffect as X } from "react";
|
|
7
|
-
import { d as U, I as Y } from "./
|
|
7
|
+
import { d as U, I as Y } from "./DlLL5JQo.js";
|
|
8
8
|
import { useMergeProps as Z } from "../hooks/useMergeProps.js";
|
|
9
9
|
import { useMergeValue as z } from "../hooks/useMergeValue.js";
|
|
10
|
-
import { y as D } from "./
|
|
10
|
+
import { y as D } from "./BAWsPQBM.js";
|
|
11
11
|
import _ from "../utils/omit.js";
|
|
12
12
|
import w from "lodash/isArray";
|
|
13
13
|
import A from "lodash/isPlainObject";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as R, jsxs as b } from "react/jsx-runtime";
|
|
2
2
|
import w, { forwardRef as N, useContext as F, useRef as j, createElement as z } from "react";
|
|
3
|
-
import { d as D } from "./
|
|
3
|
+
import { d as D } from "./DlLL5JQo.js";
|
|
4
4
|
import { useMergeProps as E } from "../hooks/useMergeProps.js";
|
|
5
|
-
import { I as K } from "./
|
|
6
|
-
import { y as u } from "./
|
|
5
|
+
import { I as K } from "./Dv_xRzvR.js";
|
|
6
|
+
import { y as u } from "./BAWsPQBM.js";
|
|
7
7
|
import { useVerificationCode as L } from "../hooks/use-verification-code.js";
|
|
8
8
|
const M = {
|
|
9
9
|
length: 6
|