@unicom-cloud/ui 0.8.64 → 0.8.66
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 +9 -8
- 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 +771 -768
- 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/{B5GDq8NJ.js → -zpSUpGE.js} +100 -97
- package/chunk/BAWsPQBM.js +11 -0
- package/chunk/{oR9TkA35.js → BFipyA67.js} +2 -2
- package/chunk/{CxpFYX4B.js → BHgJ5Y3T.js} +3 -3
- package/chunk/{BwSpYGK-.js → BIT0j3HT.js} +3 -3
- package/chunk/{pq-36BDW.js → BbLKnaNO.js} +3 -3
- package/chunk/{tW_FgNSv.js → Bc7t9jkb.js} +2 -2
- package/chunk/{BJSjbYSN.js → Bfhv56O2.js} +2 -2
- package/chunk/{CAhODOfT.js → Bh23P4l7.js} +2 -2
- package/chunk/{CTF5o0OX.js → BnSVm1YC.js} +1 -1
- package/chunk/{DPJEIBKZ.js → C6QWSzsM.js} +4 -4
- package/chunk/{BHnRi7Xh.js → CHnFKgbk.js} +4 -4
- package/chunk/{CYQ1EE4h.js → CPvvjMwZ.js} +2 -2
- package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
- package/chunk/{BSBJlVZH.js → CVkHTbic.js} +4 -4
- package/chunk/{BCxoi4Kf.js → CZOP_ZHJ.js} +2 -2
- package/chunk/{D01b7bWX.js → CcV4wQB1.js} +176 -175
- package/chunk/{CA69nxbj.js → CeGEvXby.js} +2 -2
- package/chunk/{CAiaqaWc.js → CssIjN1g.js} +2 -2
- package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
- package/chunk/{CtUTlwlQ.js → DNAigumg.js} +2 -2
- package/chunk/{BtIG250j.js → DPByB1ab.js} +40 -40
- package/chunk/{B68hRpYG.js → DQAot004.js} +3 -3
- package/chunk/{CZfGDXaB.js → DTBtQQ2H.js} +2 -2
- package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
- package/chunk/{-IELMT_x.js → DV1Ab_cG.js} +2 -2
- package/chunk/{CBgwLBAC.js → DnvO8A0Z.js} +104 -103
- package/chunk/{Yvz-hPQB.js → Du-bw6qA.js} +3 -3
- package/chunk/dBnNCOIU.js +778 -0
- package/chunk/{DQ561AmR.js → it8qlDZ3.js} +222 -221
- package/chunk/{BfHNSLva.js → jhQQCFMn.js} +135 -134
- package/chunk/{D-oHJail.js → te_43YrB.js} +178 -175
- package/chunk/{QlYCEvCX.js → znkyQ-HR.js} +2 -2
- 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/variables.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
|
@@ -2,8 +2,8 @@ import { jsxs as q, jsx as m } from "react/jsx-runtime";
|
|
|
2
2
|
import oe from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import U from "lodash/isArray";
|
|
4
4
|
import { forwardRef as fe, useContext as te, useRef as b, useState as se, useImperativeHandle as ne } from "react";
|
|
5
|
-
import { d as re, I as me } from "
|
|
6
|
-
import { y as G } from "./
|
|
5
|
+
import { d as re, I as me } from "./-zpSUpGE.js";
|
|
6
|
+
import { y as G } from "./BAWsPQBM.js";
|
|
7
7
|
import { E as ie, T as Ne } from "./C2lIz2F9.js";
|
|
8
8
|
import $e from "../utils/omit.js";
|
|
9
9
|
function ue({
|
|
@@ -4,10 +4,10 @@ import q from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import X from "lodash/isArray";
|
|
5
5
|
import y from "lodash/isNumber";
|
|
6
6
|
import { createContext as Y, forwardRef as Z, useContext as ee, useState as re, useRef as A, useEffect as F, useMemo as te } from "react";
|
|
7
|
-
import { d as ie } from "
|
|
7
|
+
import { d as ie } from "./-zpSUpGE.js";
|
|
8
8
|
import { useMergeValue as se } from "../hooks/useMergeValue.js";
|
|
9
9
|
import oe from "../ResizeBox.js";
|
|
10
|
-
import { y as H } from "./
|
|
10
|
+
import { y as H } from "./BAWsPQBM.js";
|
|
11
11
|
import L, { responsiveMap as ne } from "../utils/responsiveObserve.js";
|
|
12
12
|
const le = Y({
|
|
13
13
|
siderCollapsed: !1,
|
|
@@ -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
|
};
|
|
@@ -2,9 +2,9 @@ import { jsx as z } from "react/jsx-runtime";
|
|
|
2
2
|
import Q from "lodash/isNumber";
|
|
3
3
|
import U from "lodash/isPlainObject";
|
|
4
4
|
import { createContext as L, forwardRef as T, useContext as H, useMemo as W, useState as X, useRef as Y, useEffect as Z } from "react";
|
|
5
|
-
import { d as D } from "
|
|
5
|
+
import { d as D } from "./-zpSUpGE.js";
|
|
6
6
|
import { useMergeProps as F } from "../hooks/useMergeProps.js";
|
|
7
|
-
import { y as q } from "./
|
|
7
|
+
import { y as q } from "./BAWsPQBM.js";
|
|
8
8
|
import _ from "../utils/omit.js";
|
|
9
9
|
import B, { responsiveArray as E } from "../utils/responsiveObserve.js";
|
|
10
10
|
const I = L({}), mt = L({}), yt = L(
|
|
@@ -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 "./-zpSUpGE.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 "./CssIjN1g.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,
|
|
@@ -19,7 +19,7 @@ import Dt from "@unicom-cloud/icons/IconUiRotateLeft";
|
|
|
19
19
|
import Ot from "@unicom-cloud/icons/IconUiRotateRight";
|
|
20
20
|
import Vt from "@unicom-cloud/icons/IconUiZoomIn";
|
|
21
21
|
import Yt from "@unicom-cloud/icons/IconUiZoomOut";
|
|
22
|
-
import { d as qe, a as Ft } from "
|
|
22
|
+
import { d as qe, a as Ft } from "./-zpSUpGE.js";
|
|
23
23
|
import "lodash/isEqualWith";
|
|
24
24
|
import "../utils/is.js";
|
|
25
25
|
import { A as Xt, c as Bt, a as Gt, b as Wt, d as Zt } from "./C2lIz2F9.js";
|
|
@@ -33,8 +33,8 @@ import { findDOMNode as qt } from "../utils/reactDOM.js";
|
|
|
33
33
|
import { useUpdateEffect as Kt } from "../hooks/useUpdateEffect.js";
|
|
34
34
|
import Jt from "../Portal.js";
|
|
35
35
|
import { P as Ge } from "./CLBavO5c.js";
|
|
36
|
-
import { y as Y } from "./
|
|
37
|
-
import { s as Qt } from "./
|
|
36
|
+
import { y as Y } from "./BAWsPQBM.js";
|
|
37
|
+
import { s as Qt } from "./CwhPMMWy.js";
|
|
38
38
|
import en from "@unicom-cloud/icons/IconUiMore";
|
|
39
39
|
import tn from "../Tooltip.js";
|
|
40
40
|
import nn from "../Trigger.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as j, useEffect as X, useCallback as V, createContext as Ce, useContext as ie } from "react";
|
|
3
3
|
import se from "../Button.js";
|
|
4
|
-
import { d as He } from "
|
|
5
|
-
import { y as ee } from "./
|
|
4
|
+
import { d as He } from "./-zpSUpGE.js";
|
|
5
|
+
import { y as ee } from "./BAWsPQBM.js";
|
|
6
6
|
import { dayjs as g, methods as Y, getDayjsValue as Oe, getNow as re, toLocal as ce } from "../utils/dayjs.js";
|
|
7
7
|
import { padStart as C } from "../utils/pad.js";
|
|
8
8
|
import ge from "lodash/debounce";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { z as V, H as b, G as w } from "./
|
|
2
|
-
import c from "lodash/isObject";
|
|
3
|
-
import M from "lodash/isArray";
|
|
4
|
-
import E from "lodash/isEqual";
|
|
5
|
-
import O from "lodash/isBoolean";
|
|
6
|
-
import z from "lodash/isNumber";
|
|
7
|
-
import y from "lodash/isString";
|
|
8
|
-
import S from "lodash/isFunction";
|
|
1
|
+
import { z as V, H as b, G as w } from "./CSC_V_25.js";
|
|
2
|
+
import c from "lodash/isObject.js";
|
|
3
|
+
import M from "lodash/isArray.js";
|
|
4
|
+
import E from "lodash/isEqual.js";
|
|
5
|
+
import O from "lodash/isBoolean.js";
|
|
6
|
+
import z from "lodash/isNumber.js";
|
|
7
|
+
import y from "lodash/isString.js";
|
|
8
|
+
import S from "lodash/isFunction.js";
|
|
9
9
|
var _ = Object.defineProperty, $ = (r, t, e) => t in r ? _(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, o = (r, t, e) => $(r, typeof t != "symbol" ? t + "" : t, e);
|
|
10
10
|
const d = "#{field} is not a #{type} type", k = {
|
|
11
11
|
required: "#{field} is required",
|
|
@@ -128,7 +128,7 @@ class p {
|
|
|
128
128
|
t == null || t(this.error);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
class
|
|
131
|
+
class N extends p {
|
|
132
132
|
constructor(t, e) {
|
|
133
133
|
super(t, {
|
|
134
134
|
...e,
|
|
@@ -187,7 +187,7 @@ class A extends p {
|
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
class
|
|
190
|
+
class R extends p {
|
|
191
191
|
constructor(t, e) {
|
|
192
192
|
super(t, {
|
|
193
193
|
...e,
|
|
@@ -210,7 +210,7 @@ class N extends p {
|
|
|
210
210
|
);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
-
class
|
|
213
|
+
class A extends p {
|
|
214
214
|
constructor(t, e) {
|
|
215
215
|
super(t, {
|
|
216
216
|
...e,
|
|
@@ -398,7 +398,7 @@ class q {
|
|
|
398
398
|
e.validateMessages
|
|
399
399
|
)
|
|
400
400
|
};
|
|
401
|
-
this.string = new P(t, s), this.number = new K(t, s), this.array = new
|
|
401
|
+
this.string = new P(t, s), this.number = new K(t, s), this.array = new N(t, s), this.object = new D(t, s), this.boolean = new R(t, s), this.type = new G(t, s), this.custom = new A(t, s);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
class X {
|
|
@@ -5,11 +5,11 @@ import _ from "lodash/isNumber";
|
|
|
5
5
|
import Pt from "lodash/throttle";
|
|
6
6
|
import Rt, { createContext as Tt, forwardRef as ct, useContext as q, useRef as N, useImperativeHandle as st, useEffect as O, isValidElement as $t, useState as Et, useCallback as D } from "react";
|
|
7
7
|
import bt from "../Affix.js";
|
|
8
|
-
import { d as lt } from "
|
|
8
|
+
import { d as lt } from "./-zpSUpGE.js";
|
|
9
9
|
import { useIsFirstRender as Mt } from "../hooks/useIsFirstRender.js";
|
|
10
10
|
import { useMergeProps as at } from "../hooks/useMergeProps.js";
|
|
11
11
|
import { useStateWithPromise as Ot } from "../hooks/useStateWithPromise.js";
|
|
12
|
-
import { y as ut } from "./
|
|
12
|
+
import { y as ut } from "./BAWsPQBM.js";
|
|
13
13
|
import { on as Ft, off as Ht } from "../utils/dom.js";
|
|
14
14
|
import { isWindow as ft } from "../utils/is.js";
|
|
15
15
|
import It from "lodash/isNull";
|