@unicom-cloud/ui 0.8.61 → 0.8.63
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 +1 -1
- package/Alert.js +44 -40
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +1 -1
- package/BackTop.js +7 -7
- package/Badge.js +2 -2
- package/Breadcrumb.js +22 -22
- package/Button.js +2 -2
- package/Calendar.js +106 -104
- package/Card.js +1 -1
- package/Carousel.js +34 -33
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +12 -12
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +16 -16
- package/DatePicker.js +1021 -1008
- package/Descriptions.js +10 -10
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +9 -9
- package/Empty.js +2 -2
- package/Form.js +60 -54
- package/Grid.js +2 -2
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +14 -14
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +9 -3
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +32 -32
- package/PageHeader.js +23 -22
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +7 -7
- package/Popover.js +1 -1
- package/Progress.js +14 -14
- package/Radio.js +2 -2
- package/Rate.js +43 -40
- package/ResizeBox.js +97 -96
- package/Result.js +15 -15
- package/Select.js +1 -1
- package/SelectView.js +295 -249
- package/Skeleton.js +1 -1
- package/Slider.js +25 -25
- package/Space.js +32 -32
- package/SpeechSynthesis.js +32 -29
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +11 -11
- package/Switch.js +3 -3
- package/Table.js +9 -9
- package/Tabs.js +1 -1
- package/Tag.js +68 -67
- package/TimePicker.js +17 -17
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +47 -46
- package/Tree.js +2 -2
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/Typography.js +1 -1
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{DhBo0pPJ.js → B5gIo-hD.js} +119 -118
- package/chunk/{eK7lxdak.js → B9w_puFP.js} +8 -8
- package/chunk/{RMBPs_Ry.js → BEB_A9eY.js} +4 -3
- package/chunk/{CuOl4X0X.js → BLLKKgZJ.js} +1 -1
- package/chunk/{cZiP8FvM.js → BcwdVUDs.js} +1 -1
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{DmUhn9ib.js → Bn2-vqTg.js} +54 -53
- package/chunk/{Kbr6FzOG.js → BnLshM9R.js} +210 -186
- package/chunk/{BJ_7JTqC.js → BoDdbbF_.js} +1 -1
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{Bdh4XVuf.js → C5S_amaH.js} +290 -281
- package/chunk/{YIlBPVAs.js → C6Zb_-OE.js} +1 -1
- package/chunk/{CbiWdbr_.js → CAxIyiy6.js} +35 -34
- package/chunk/CD7dGcUa.js +376 -0
- package/chunk/{BPZ-6HKJ.js → CLBavO5c.js} +24 -22
- package/chunk/{B2vORJQ8.js → CZ1wrD_H.js} +13 -13
- package/chunk/{DpfUGhi4.js → CfTcP6nF.js} +288 -283
- package/chunk/{BNHrEI0Y.js → CfZWOhnc.js} +52 -48
- package/chunk/{BjSHZA0m.js → CgDayZDE.js} +1 -1
- package/chunk/{BYhtrDV3.js → Co3idurS.js} +152 -148
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{Cbd50gx8.js → CvlD3aiv.js} +33 -33
- package/chunk/{IooeSKJJ.js → D3dcFbex.js} +19 -19
- package/chunk/{C5AQWbC4.js → DDDuw0Zi.js} +1 -1
- package/chunk/{gIbzjQ-X.js → DXZ8-ha7.js} +2 -2
- package/chunk/{C1D7T29r.js → DbLgopUR.js} +83 -76
- package/chunk/{BVLwPZis.js → DbPYtS7-.js} +31 -30
- package/chunk/{V6euPXVB.js → Dk6hL04k.js} +257 -251
- package/chunk/{BEDYCG-I.js → Dpzgtdt-.js} +18 -18
- package/chunk/{B16KHtX-.js → JpKOcIfl.js} +191 -185
- package/chunk/{D2HkyI6A.js → QFkhCtUr.js} +11 -11
- package/chunk/aqSmxUbY.js +116 -0
- package/chunk/{DSGRHf-1.js → rlfmXePI.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +439 -393
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +8 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
- package/types/config-provider/interface.d.ts +1 -1
- package/types/date-picker/index.d.ts +7 -0
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +3 -3
- package/types/locale/interface.d.ts +1 -0
- package/types/locale/zh-CN.d.ts +14 -0
- package/types/message/index.d.ts +2 -2
- package/types/notification/index.d.ts +2 -2
- package/types/notification-base/index.d.ts +2 -2
- package/types/select/interface.d.ts +1 -0
- package/types/select-view/interface.d.ts +1 -0
- package/types/space/index.d.ts +2 -1
- package/types/tree/Context.d.ts +1 -0
- package/types/tree/Tree.d.ts +1 -1
- package/types/tree/index.d.ts +5 -4
- package/types/tree/interface.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/is.d.ts +2 -0
- package/types/utils/lodash.d.ts +14 -1
- package/types/verification-code/VerificationCode.d.ts +2 -1
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/caseName.js +2 -18
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +50 -49
- package/utils/index.js +227 -185
- package/utils/is.js +125 -111
- package/utils/lodash.js +32 -6
- package/utils/reactDOM.js +1 -1
- package/chunk/-LZOUh53.js +0 -29
- package/chunk/-jdfq71f.js +0 -23
- package/chunk/B0GOLsj_.js +0 -58
- package/chunk/B7Zsp3gO.js +0 -29
- package/chunk/BDjXkzNj.js +0 -23
- package/chunk/BHn4xgbv.js +0 -209
- package/chunk/BLSiP_gg.js +0 -32
- package/chunk/BMJfSSLX.js +0 -23
- package/chunk/B_nfMl0e.js +0 -116
- package/chunk/BcS17Pzy.js +0 -66
- package/chunk/BdiEwtQO.js +0 -41
- package/chunk/Bpug_KxP.js +0 -34
- package/chunk/C1u_ckwU.js +0 -29
- package/chunk/C43Hv2Bl.js +0 -34
- package/chunk/C9vsih_D.js +0 -29
- package/chunk/CAfR2wLq.js +0 -41
- package/chunk/CAfecMDF.js +0 -46
- package/chunk/CKp4rZnD.js +0 -207
- package/chunk/CV2Aqv9q.js +0 -52
- package/chunk/CYdarMv9.js +0 -32
- package/chunk/C_S5Mdvd.js +0 -379
- package/chunk/CmB-TL7C.js +0 -46
- package/chunk/D-ER56Sf.js +0 -29
- package/chunk/D-aYnb6u.js +0 -41
- package/chunk/D3xQFJcO.js +0 -23
- package/chunk/DJcEys80.js +0 -29
- package/chunk/DLIm6rRJ.js +0 -29
- package/chunk/DOWEHtqM.js +0 -41
- package/chunk/DT37l12z.js +0 -40
- package/chunk/DW-B7npC.js +0 -23
- package/chunk/D_MTFBb0.js +0 -38
- package/chunk/Dx_5J4fO.js +0 -29
- package/chunk/Dy487FZ1.js +0 -118
- package/chunk/Uz-rNulO.js +0 -98
- package/chunk/cDZI_t6o.js +0 -52
- package/chunk/sScV-J56.js +0 -206
- package/chunk/wI2I1qb0.js +0 -23
|
@@ -35,29 +35,29 @@ import "lodash/isTypedArray";
|
|
|
35
35
|
import "lodash/isUndefined";
|
|
36
36
|
import "lodash/isWeakMap";
|
|
37
37
|
import "lodash/isWeakSet";
|
|
38
|
-
function
|
|
38
|
+
function M(t) {
|
|
39
39
|
return t instanceof Promise;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function T(t) {
|
|
42
42
|
return p(t) && e(t);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function U(t) {
|
|
45
45
|
return a(t) && e(t);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function V(t) {
|
|
48
48
|
return c(t) || t === "";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function W(t) {
|
|
51
51
|
return Object.prototype.toString.call(t) === "[object File]";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function tt(t) {
|
|
54
54
|
return Object.prototype.toString.call(t) === "[object Blob]";
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function rt(t) {
|
|
57
57
|
return Object.prototype.toString.call(t) === "[object ReadableStream]";
|
|
58
58
|
}
|
|
59
|
-
const s = typeof ReadableStream == "function",
|
|
60
|
-
function
|
|
59
|
+
const s = typeof ReadableStream == "function", ot = typeof ReadableStreamDefaultController == "function", et = typeof ReadableByteStreamController == "function", it = s && new ReadableStream()[Symbol.asyncIterator];
|
|
60
|
+
function nt(t) {
|
|
61
61
|
let r = !0;
|
|
62
62
|
try {
|
|
63
63
|
JSON.parse(t);
|
|
@@ -67,26 +67,30 @@ function it(t) {
|
|
|
67
67
|
return r;
|
|
68
68
|
}
|
|
69
69
|
function mt(t) {
|
|
70
|
-
const r = /^#(?:[0-9a-fA-F]{3}){1,2}$/, o = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, i = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/,
|
|
71
|
-
return r.test(t) || o.test(t) || i.test(t) ||
|
|
70
|
+
const r = /^#(?:[0-9a-fA-F]{3}){1,2}$/, o = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/, i = /^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(1|0|0?\.\d+)\)$/, n = /^hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)$/, m = /^hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*(1|0|0?\.\d+)\)$/;
|
|
71
|
+
return r.test(t) || o.test(t) || i.test(t) || n.test(t) || m.test(t);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function l(t) {
|
|
74
74
|
const r = document.createElement("div");
|
|
75
75
|
return r.style.color = t, r.style.color !== "";
|
|
76
76
|
}
|
|
77
|
+
function pt(t) {
|
|
78
|
+
return l(t);
|
|
79
|
+
}
|
|
77
80
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
U as G,
|
|
82
|
+
V as H,
|
|
83
|
+
pt as J,
|
|
80
84
|
W as K,
|
|
81
85
|
tt as Q,
|
|
82
|
-
L as V,
|
|
83
86
|
rt as X,
|
|
84
87
|
ot as Y,
|
|
85
88
|
et as Z,
|
|
86
89
|
it as _,
|
|
87
90
|
s as f,
|
|
88
|
-
|
|
89
|
-
mt as
|
|
90
|
-
|
|
91
|
-
M as
|
|
91
|
+
l as m,
|
|
92
|
+
mt as r,
|
|
93
|
+
nt as t,
|
|
94
|
+
M as v,
|
|
95
|
+
T as z
|
|
92
96
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as ye, jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { H as Se, z as ve, G as Ve } from "./Cqyp4qni.js";
|
|
3
3
|
import Pe from "lodash/debounce";
|
|
4
4
|
import B from "lodash/isArray";
|
|
5
5
|
import W from "lodash/isFunction";
|
|
6
6
|
import Ke from "lodash/isNil";
|
|
7
7
|
import { forwardRef as ue, useRef as R, useCallback as K, useMemo as Z, useImperativeHandle as de, useContext as fe, useState as te, useEffect as ie } from "react";
|
|
8
|
-
import { d as he } from "./
|
|
8
|
+
import { d as he } from "./C5S_amaH.js";
|
|
9
9
|
import { useId as Ie } from "../hooks/useId.js";
|
|
10
10
|
import { useIsFirstRender as _e } from "../hooks/useIsFirstRender.js";
|
|
11
11
|
import { useMergeProps as Te } from "../hooks/useMergeProps.js";
|
|
12
12
|
import { useMergeValue as oe } from "../hooks/useMergeValue.js";
|
|
13
13
|
import Oe from "../SelectView.js";
|
|
14
|
-
import { T as w, g as xe, a as Le, b as Re } from "./
|
|
14
|
+
import { T as w, g as xe, a as Le, b as Re } from "./CfTcP6nF.js";
|
|
15
15
|
import we from "../Trigger.js";
|
|
16
16
|
import { y as ee } from "./BzPkh4Zv.js";
|
|
17
17
|
import "../utils/is.js";
|
|
@@ -33,7 +33,7 @@ function Fe(t, a) {
|
|
|
33
33
|
treeData: u,
|
|
34
34
|
treeProps: p,
|
|
35
35
|
prefixCls: l,
|
|
36
|
-
treeCheckable:
|
|
36
|
+
treeCheckable: V
|
|
37
37
|
} = t, C = p && p.renderTitle, m = R(), d = K(
|
|
38
38
|
(b, { checkedNodes: o, checked: s, node: g }) => {
|
|
39
39
|
const P = b.map((y) => {
|
|
@@ -121,7 +121,7 @@ function Fe(t, a) {
|
|
|
121
121
|
blockNode: !0,
|
|
122
122
|
filterNode: t.filterNode,
|
|
123
123
|
...p,
|
|
124
|
-
checkable:
|
|
124
|
+
checkable: V,
|
|
125
125
|
multiple: f,
|
|
126
126
|
loadMore: t.loadMore ? O : void 0,
|
|
127
127
|
checkedStrategy: i,
|
|
@@ -152,8 +152,8 @@ const We = ue(Fe), me = {
|
|
|
152
152
|
let h = 0;
|
|
153
153
|
const i = (e, u) => {
|
|
154
154
|
const p = e.length;
|
|
155
|
-
return e.map((l,
|
|
156
|
-
const C = H(l, n.children) || l[n.children], m = H(l, n.key) || l[n.key] || `${(u == null ? void 0 : u._key) || ""}-${
|
|
155
|
+
return e.map((l, V) => {
|
|
156
|
+
const C = H(l, n.children) || l[n.children], m = H(l, n.key) || l[n.key] || `${(u == null ? void 0 : u._key) || ""}-${V}`, d = {
|
|
157
157
|
...l,
|
|
158
158
|
title: H(l, n.title) || l[n.title],
|
|
159
159
|
selectable: H(l, n.selectable) || l[n.selectable],
|
|
@@ -169,7 +169,7 @@ const We = ue(Fe), me = {
|
|
|
169
169
|
_level: u._level || 0,
|
|
170
170
|
_index: h++
|
|
171
171
|
};
|
|
172
|
-
return p ===
|
|
172
|
+
return p === V + 1 && (d.className = ee(
|
|
173
173
|
`${a}-node-is-tail`,
|
|
174
174
|
d.className
|
|
175
175
|
)), f[m] = d, C && C.length && (f[m].children = i(C, {
|
|
@@ -225,7 +225,7 @@ const We = ue(Fe), me = {
|
|
|
225
225
|
const f = R([]), h = () => {
|
|
226
226
|
const l = t.value || t.defaultValue || [];
|
|
227
227
|
if (t.treeCheckable) {
|
|
228
|
-
const
|
|
228
|
+
const V = Me(
|
|
229
229
|
j(l),
|
|
230
230
|
a,
|
|
231
231
|
n,
|
|
@@ -236,7 +236,7 @@ const We = ue(Fe), me = {
|
|
|
236
236
|
f.current
|
|
237
237
|
);
|
|
238
238
|
return z(
|
|
239
|
-
|
|
239
|
+
V,
|
|
240
240
|
a,
|
|
241
241
|
C
|
|
242
242
|
);
|
|
@@ -259,11 +259,11 @@ const We = ue(Fe), me = {
|
|
|
259
259
|
a
|
|
260
260
|
]);
|
|
261
261
|
const p = K(
|
|
262
|
-
(l,
|
|
262
|
+
(l, V) => {
|
|
263
263
|
const { onChange: C, labelInValue: m } = t, d = t.multiple || t.treeCheckable;
|
|
264
264
|
"value" in t || u(l);
|
|
265
265
|
let _;
|
|
266
|
-
d ? _ = l.map((D) => m ? { label: D.label, value: D.value } : D.value) : _ = m ? l[0] : l[0] && l[0].value, C == null || C(_,
|
|
266
|
+
d ? _ = l.map((D) => m ? { label: D.label, value: D.value } : D.value) : _ = m ? l[0] : l[0] && l[0].value, C == null || C(_, V);
|
|
267
267
|
},
|
|
268
268
|
[
|
|
269
269
|
t.onChange,
|
|
@@ -290,7 +290,7 @@ const je = {
|
|
|
290
290
|
t,
|
|
291
291
|
je,
|
|
292
292
|
h == null ? void 0 : h.TreeSelect
|
|
293
|
-
), u = _e(), p = R(), l = R(null),
|
|
293
|
+
), u = _e(), p = R(), l = R(null), V = R(null), C = R([]), [m] = Ue(e), d = Ae(m, e.fieldNames), [_, D] = te(), [O, G] = oe(!1, {
|
|
294
294
|
value: e.popupVisible
|
|
295
295
|
}), [S, J] = oe(
|
|
296
296
|
void 0,
|
|
@@ -314,7 +314,7 @@ const je = {
|
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
316
316
|
if (!k) return m;
|
|
317
|
-
const
|
|
317
|
+
const v = /* @__PURE__ */ new Set();
|
|
318
318
|
Object.keys(d).forEach((x) => {
|
|
319
319
|
const L = d[x];
|
|
320
320
|
let $ = !1;
|
|
@@ -324,8 +324,8 @@ const je = {
|
|
|
324
324
|
const U = L.value || L._key;
|
|
325
325
|
U && U.indexOf(k) > -1 && ($ = !0);
|
|
326
326
|
}
|
|
327
|
-
$ &&
|
|
328
|
-
}), D(
|
|
327
|
+
$ && v.add(L.key);
|
|
328
|
+
}), D(v);
|
|
329
329
|
}, 100)(r),
|
|
330
330
|
[e.onSearch, m, d, e.filterTreeNode]
|
|
331
331
|
), ne = K(() => {
|
|
@@ -339,31 +339,31 @@ const je = {
|
|
|
339
339
|
), ge = (r, c, k) => {
|
|
340
340
|
if (k.stopPropagation(), r.disabled)
|
|
341
341
|
return;
|
|
342
|
-
const
|
|
343
|
-
if (!e.treeCheckable || e.treeCheckStrictly || !d[
|
|
342
|
+
const v = q(r.value) ? r.value.value : r.value;
|
|
343
|
+
if (!e.treeCheckable || e.treeCheckStrictly || !d[v]) {
|
|
344
344
|
const L = s.filter(($, U) => U !== c);
|
|
345
345
|
M(L, {
|
|
346
|
-
trigger: d[
|
|
346
|
+
trigger: d[v] || r,
|
|
347
347
|
checked: !1,
|
|
348
348
|
selected: !1
|
|
349
349
|
});
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
352
|
const x = Re(
|
|
353
|
-
|
|
353
|
+
v,
|
|
354
354
|
!1,
|
|
355
355
|
j(s),
|
|
356
356
|
d,
|
|
357
357
|
C.current
|
|
358
358
|
);
|
|
359
359
|
C.current = x.indeterminateKeys, M(z(x.checkedKeys, d, s), {
|
|
360
|
-
trigger: d[
|
|
360
|
+
trigger: d[v],
|
|
361
361
|
checked: !1,
|
|
362
362
|
selected: !1
|
|
363
363
|
});
|
|
364
364
|
};
|
|
365
365
|
function X(r) {
|
|
366
|
-
return Se(r) ||
|
|
366
|
+
return Se(r) || ve(r) || Ve(r);
|
|
367
367
|
}
|
|
368
368
|
ie(() => {
|
|
369
369
|
S !== void 0 && be(S), S !== F.current && (F.current = S);
|
|
@@ -372,8 +372,8 @@ const je = {
|
|
|
372
372
|
let r = [];
|
|
373
373
|
if (S)
|
|
374
374
|
for (const c in d) {
|
|
375
|
-
const
|
|
376
|
-
|
|
375
|
+
const v = [...d[c].pathParentKeys, c];
|
|
376
|
+
v.some((x) => _ && _.has(x)) && (r = r.concat(v));
|
|
377
377
|
}
|
|
378
378
|
return Array.from(new Set(r));
|
|
379
379
|
}, [S, d, _]);
|
|
@@ -384,14 +384,14 @@ const je = {
|
|
|
384
384
|
}) : u || S && Q("", "optionListHide");
|
|
385
385
|
}, [O]), de(a, () => ({
|
|
386
386
|
focus() {
|
|
387
|
-
|
|
387
|
+
V.current && V.current.focus();
|
|
388
388
|
},
|
|
389
389
|
blur() {
|
|
390
|
-
|
|
390
|
+
V.current && V.current.blur();
|
|
391
391
|
},
|
|
392
392
|
getRootDOMNode: () => {
|
|
393
393
|
var r, c;
|
|
394
|
-
return (c = (r =
|
|
394
|
+
return (c = (r = V.current) == null ? void 0 : r.getRootDOMNode) == null ? void 0 : c.call(r);
|
|
395
395
|
}
|
|
396
396
|
}));
|
|
397
397
|
const pe = K(
|
|
@@ -400,11 +400,11 @@ const je = {
|
|
|
400
400
|
), Ce = K(
|
|
401
401
|
(r) => {
|
|
402
402
|
const { disabled: c, value: k } = r || {};
|
|
403
|
-
let
|
|
404
|
-
return W(e.renderFormat) && (
|
|
403
|
+
let v = r == null ? void 0 : r.label;
|
|
404
|
+
return W(e.renderFormat) && (v = e.renderFormat(
|
|
405
405
|
d[k] || null,
|
|
406
406
|
e.labelInValue ? r : k
|
|
407
|
-
)), { text:
|
|
407
|
+
)), { text: v || k || "", disabled: c };
|
|
408
408
|
},
|
|
409
409
|
[e.renderFormat, e.labelInValue, d]
|
|
410
410
|
), ke = (r) => {
|
|
@@ -427,7 +427,7 @@ const je = {
|
|
|
427
427
|
e.triggerProps && e.triggerProps.className
|
|
428
428
|
),
|
|
429
429
|
popup: () => {
|
|
430
|
-
var
|
|
430
|
+
var v, x, L;
|
|
431
431
|
const c = e.dropdownRender, k = T && X(Y) || X(m) ? e.notFoundContent || (f == null ? void 0 : f("TreeSelect")) : /* @__PURE__ */ E(
|
|
432
432
|
We,
|
|
433
433
|
{
|
|
@@ -450,7 +450,7 @@ const je = {
|
|
|
450
450
|
[`${y}-rtl-popup`]: i
|
|
451
451
|
}),
|
|
452
452
|
style: {
|
|
453
|
-
maxHeight: (
|
|
453
|
+
maxHeight: (v = e.treeProps) != null && v.height || (L = (x = e.treeProps) == null ? void 0 : x.virtualListProps) != null && L.height ? "unset" : "",
|
|
454
454
|
...e.dropdownMenuStyle
|
|
455
455
|
},
|
|
456
456
|
children: W(c) ? c(k) : k
|
|
@@ -474,7 +474,7 @@ const je = {
|
|
|
474
474
|
return Ke(ce) ? /* @__PURE__ */ E(
|
|
475
475
|
Oe,
|
|
476
476
|
{
|
|
477
|
-
ref:
|
|
477
|
+
ref: V,
|
|
478
478
|
rtl: i,
|
|
479
479
|
ariaControls: I,
|
|
480
480
|
...e,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as g, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import Ce from "@unicom-cloud/icons/IconUiImageClose";
|
|
3
|
+
import Pe from "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import _ from "lodash/isNumber";
|
|
5
5
|
import ee from "lodash/isPlainObject";
|
|
6
|
-
import
|
|
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 "./C5S_amaH.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
13
|
import { y as h } from "./BzPkh4Zv.js";
|
|
14
14
|
import Re from "../utils/omit.js";
|
|
15
|
-
import
|
|
16
|
-
import { T as Ue, P as ie, a as je, b as Me, u as Se } from "./
|
|
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 "./DbLgopUR.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];
|
|
@@ -90,12 +90,12 @@ function Oe(v, w) {
|
|
|
90
90
|
lazyload: f,
|
|
91
91
|
...ae
|
|
92
92
|
} = l, ce = ye(), {
|
|
93
|
-
previewGroup:
|
|
93
|
+
previewGroup: P,
|
|
94
94
|
handleVisibleChange: le,
|
|
95
95
|
registerPreviewUrl: de,
|
|
96
96
|
registerPreviewProps: me,
|
|
97
97
|
setCurrentIndex: ue
|
|
98
|
-
} = re(Me), n = R(() => ee(U) ? U : {}, [U]), fe = R(() => ee(f) ? f : {}, [f]), d = R(() => _(S) || _(D) ? (B = _(S) ? S : D, B) : B++, []), O = n.src || s, [T] = te({ title: c, description: L, actions: y }), { isLoading: H, isError: z, isLoaded: p, isBeforeLoad: pe, setStatus:
|
|
98
|
+
} = re(Me), n = R(() => ee(U) ? U : {}, [U]), fe = R(() => ee(f) ? f : {}, [f]), d = R(() => _(S) || _(D) ? (B = _(S) ? S : D, B) : B++, []), O = n.src || s, [T] = te({ title: c, description: L, actions: y }), { isLoading: H, isError: z, isLoaded: p, isBeforeLoad: pe, setStatus: I } = Se("beforeLoad"), F = oe(!1), [J, ge] = Fe(!1, {
|
|
99
99
|
defaultValue: n.defaultVisible,
|
|
100
100
|
value: n.visible
|
|
101
101
|
}), K = R(() => Re(n, [
|
|
@@ -103,7 +103,7 @@ function Oe(v, w) {
|
|
|
103
103
|
"defaultVisible",
|
|
104
104
|
"src",
|
|
105
105
|
"onVisibleChange"
|
|
106
|
-
]), [n]), r = $("image"), he = !
|
|
106
|
+
]), [n]), r = $("image"), he = !Ie(n.visible), ve = h(
|
|
107
107
|
r,
|
|
108
108
|
{
|
|
109
109
|
[`${r}-rtl`]: a,
|
|
@@ -118,13 +118,13 @@ function Oe(v, w) {
|
|
|
118
118
|
x
|
|
119
119
|
), m = oe();
|
|
120
120
|
function we(i) {
|
|
121
|
-
F.current = !0,
|
|
121
|
+
F.current = !0, I("loaded"), A == null || A(i);
|
|
122
122
|
}
|
|
123
123
|
function $e(i) {
|
|
124
|
-
F.current = !0,
|
|
124
|
+
F.current = !0, I("error"), k == null || k(i);
|
|
125
125
|
}
|
|
126
126
|
function Q(i) {
|
|
127
|
-
u &&
|
|
127
|
+
u && P ? (ue(d), le(!0)) : u && W(!0), M == null || M(i);
|
|
128
128
|
}
|
|
129
129
|
function W(i) {
|
|
130
130
|
var Z;
|
|
@@ -136,23 +136,23 @@ function Oe(v, w) {
|
|
|
136
136
|
...fe
|
|
137
137
|
});
|
|
138
138
|
G(() => {
|
|
139
|
-
F.current = !1, s ||
|
|
139
|
+
F.current = !1, s || I("error");
|
|
140
140
|
}, [s]), G(() => {
|
|
141
|
-
m.current && (X ? ((m.current.src || s) && m.current.src !== s && (m.current.src = s), !F.current && !m.current.complete &&
|
|
141
|
+
m.current && (X ? ((m.current.src || s) && m.current.src !== s && (m.current.src = s), !F.current && !m.current.complete && I("loading")) : I("lazyload"));
|
|
142
142
|
}, [s, X]), G(() => {
|
|
143
|
-
if (!
|
|
143
|
+
if (!P) return;
|
|
144
144
|
const i = me(d, K);
|
|
145
145
|
return () => i(d);
|
|
146
|
-
}, [d,
|
|
147
|
-
if (!
|
|
146
|
+
}, [d, P, K]), G(() => {
|
|
147
|
+
if (!P) return;
|
|
148
148
|
const i = de(d, O, u);
|
|
149
149
|
return () => i(d);
|
|
150
|
-
}, [d,
|
|
150
|
+
}, [d, P, O, u]);
|
|
151
151
|
const be = /* @__PURE__ */ g("div", { className: `${r}-error`, children: [
|
|
152
152
|
/* @__PURE__ */ e("div", { className: `${r}-error-icon`, children: /* @__PURE__ */ e(Ce, {}) }),
|
|
153
153
|
j && /* @__PURE__ */ e("div", { className: `${r}-error-alt`, children: j })
|
|
154
154
|
] }), Y = /* @__PURE__ */ e("div", { className: h(`${r}-loader`, se), children: /* @__PURE__ */ g("div", { className: `${r}-loader-spin`, children: [
|
|
155
|
-
/* @__PURE__ */ e(
|
|
155
|
+
/* @__PURE__ */ e(Pe, {}),
|
|
156
156
|
/* @__PURE__ */ e("div", { className: `${r}-loader-spin-text`, children: "Loading" })
|
|
157
157
|
] }) }), Ne = () => {
|
|
158
158
|
if (C === !0) return Y;
|
|
@@ -5,7 +5,7 @@ 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 "./C5S_amaH.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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as z, Fragment as F, jsx as C } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import O from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import tt from "lodash/isFunction";
|
|
4
4
|
import ot, { useRef as N, useState as A, useImperativeHandle as et, useEffect as T } from "react";
|
|
5
5
|
import { useKeyboardEvent as nt } from "../hooks/useKeyboardEvent.js";
|
|
6
|
-
import { I as rt } from "./
|
|
6
|
+
import { I as rt } from "./C5S_amaH.js";
|
|
7
7
|
import { y as V } from "./BzPkh4Zv.js";
|
|
8
8
|
import it from "../utils/fillNBSP.js";
|
|
9
9
|
import "../utils/is.js";
|