@unicom-cloud/ui 0.8.60 → 0.8.62
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 +165 -162
- package/Descriptions.js +1 -1
- 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 +1 -1
- 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 +994 -991
- 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/{V6euPXVB.js → -Z968QpN.js} +257 -251
- package/chunk/{IooeSKJJ.js → AqH9yP_J.js} +19 -19
- package/chunk/{cZiP8FvM.js → B0oDiPqE.js} +1 -1
- package/chunk/{B16KHtX-.js → B4-WpgY2.js} +191 -185
- package/chunk/{CuOl4X0X.js → B8SZFOjt.js} +1 -1
- package/chunk/{CbiWdbr_.js → BXWxA-tS.js} +35 -34
- package/chunk/{DpfUGhi4.js → BlNFmhNa.js} +288 -283
- package/chunk/{C1xMmQIZ.js → BmO1y0vr.js} +34 -34
- package/chunk/{Kbr6FzOG.js → BnqeQYIZ.js} +210 -186
- package/chunk/{BPZ-6HKJ.js → Bp3XomF8.js} +1 -2
- package/chunk/BsWphzcT.js +20 -0
- package/chunk/{RMBPs_Ry.js → C4eJ9vCf.js} +4 -3
- package/chunk/{BNHrEI0Y.js → C6fEFlPt.js} +52 -48
- package/chunk/C8o-VGyc.js +376 -0
- package/chunk/{eK7lxdak.js → CDJ1EnJ2.js} +8 -8
- package/chunk/{C5AQWbC4.js → CHyuuVxl.js} +1 -1
- package/chunk/{B2vORJQ8.js → CJnshq6A.js} +13 -13
- package/chunk/CT1lZ7ss.js +116 -0
- package/chunk/{Bdh4XVuf.js → CV1kLw5Z.js} +290 -281
- package/chunk/{DmUhn9ib.js → CazXy0r4.js} +54 -53
- package/chunk/{BBVjSFnw.js → Cqyp4qni.js} +23 -19
- package/chunk/{BJ_7JTqC.js → D3VMG9V1.js} +1 -1
- package/chunk/{D2HkyI6A.js → DGasAUHE.js} +2 -2
- package/chunk/{YIlBPVAs.js → DRQ1v6Ux.js} +1 -1
- package/chunk/{DhBo0pPJ.js → DRp7voqz.js} +119 -118
- package/chunk/{gIbzjQ-X.js → Dtm4BmKB.js} +2 -2
- package/chunk/{BEDYCG-I.js → KchYsivk.js} +18 -18
- package/chunk/{Cbd50gx8.js → Wum88vrW.js} +33 -33
- package/chunk/{BjSHZA0m.js → mfn4EgmQ.js} +1 -1
- package/chunk/{BYhtrDV3.js → nbEvdwT0.js} +152 -148
- package/chunk/{C1D7T29r.js → qpd2axxs.js} +83 -76
- package/chunk/{BVLwPZis.js → tOFzwzpT.js} +31 -30
- package/chunk/{DSGRHf-1.js → yESVS-qX.js} +157 -156
- package/hooks/useMergeValue.js +1 -1
- package/icons.js +4 -6001
- package/index.js +420 -392
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cascader/panel/Search.d.ts +1 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/form/interface.d.ts +1 -1
- package/types/index.d.ts +1 -1
- 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/table/interface.d.ts +1 -0
- 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/lodash.d.ts +14 -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/index.js +220 -191
- package/utils/is.js +68 -67
- 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
|
@@ -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 "./CV1kLw5Z.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 "./BlNFmhNa.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,6 +1,6 @@
|
|
|
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 "./CV1kLw5Z.js";
|
|
4
4
|
import { useWatermark as x } from "../hooks/use-watermark.js";
|
|
5
5
|
import { useMergeProps as k } from "../hooks/useMergeProps.js";
|
|
6
6
|
import { y } from "./BzPkh4Zv.js";
|