@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
package/Descriptions.js
CHANGED
|
@@ -3,7 +3,7 @@ import z from "lodash/isArray";
|
|
|
3
3
|
import T from "lodash/isNumber";
|
|
4
4
|
import V from "lodash/isPlainObject";
|
|
5
5
|
import { useContext as q, useState as B, useRef as G, useEffect as J, Fragment as S } from "react";
|
|
6
|
-
import { d as K } from "./chunk/
|
|
6
|
+
import { d as K } from "./chunk/CV1kLw5Z.js";
|
|
7
7
|
import { useMergeProps as Q } from "./hooks/useMergeProps.js";
|
|
8
8
|
import { y as U } from "./chunk/BzPkh4Zv.js";
|
|
9
9
|
import x, { responsiveArray as P } from "./utils/responsiveObserve.js";
|
package/Divider.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as x, useContext as $ } from "react";
|
|
3
|
-
import { d as u } from "./chunk/
|
|
3
|
+
import { d as u } from "./chunk/CV1kLw5Z.js";
|
|
4
4
|
import { useMergeProps as h } from "./hooks/useMergeProps.js";
|
|
5
5
|
import { y as v } from "./chunk/BzPkh4Zv.js";
|
|
6
6
|
const y = {
|
package/Draggable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import S, { useRef as P, useState as u, useEffect as $, useContext as O } from "react";
|
|
3
|
-
import { d as T } from "./chunk/
|
|
3
|
+
import { d as T } from "./chunk/CV1kLw5Z.js";
|
|
4
4
|
import { y as w } from "./chunk/BzPkh4Zv.js";
|
|
5
5
|
function N(m) {
|
|
6
6
|
const {
|
package/Drawer.js
CHANGED
package/Dropdown.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J } from "react/jsx-runtime";
|
|
2
2
|
import $ from "lodash/get";
|
|
3
3
|
import l, { forwardRef as K, useContext as j, useRef as A } from "react";
|
|
4
|
-
import { d as U } from "./chunk/
|
|
4
|
+
import { d as U } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useMergeProps as z } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { useMergeValue as S } from "./hooks/useMergeValue.js";
|
|
7
7
|
import W, { EventsByTriggerNeed as X } from "./Trigger.js";
|
|
@@ -10,7 +10,7 @@ import { supportRef as Y } from "./utils/is.js";
|
|
|
10
10
|
import Z from "./utils/omit.js";
|
|
11
11
|
import ee, { pickDataAttributes as F } from "./utils/pick.js";
|
|
12
12
|
import { findDOMNode as oe } from "./utils/reactDOM.js";
|
|
13
|
-
import
|
|
13
|
+
import G from "@unicom-cloud/icons/IconUiMore";
|
|
14
14
|
import N from "./Button.js";
|
|
15
15
|
const te = {
|
|
16
16
|
position: "br",
|
|
@@ -139,21 +139,21 @@ function re(D, O) {
|
|
|
139
139
|
inDropdown: !0,
|
|
140
140
|
selectable: !1,
|
|
141
141
|
onClickMenuItem: (...y) => {
|
|
142
|
-
var
|
|
142
|
+
var I;
|
|
143
143
|
let P = null;
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
const v = R();
|
|
145
|
+
v.props.onClickMenuItem && (P = v.props.onClickMenuItem(
|
|
146
146
|
...y
|
|
147
147
|
));
|
|
148
148
|
const d = f.current && f.current.getRootElement();
|
|
149
|
-
(
|
|
149
|
+
(I = d == null ? void 0 : d.focus) == null || I.call(d), P instanceof Promise ? P.finally(
|
|
150
150
|
() => E(!1)
|
|
151
151
|
) : P !== !1 && E(!1);
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
return e;
|
|
156
|
-
},
|
|
156
|
+
}, _ = A();
|
|
157
157
|
return /* @__PURE__ */ s(
|
|
158
158
|
W,
|
|
159
159
|
{
|
|
@@ -174,7 +174,7 @@ function re(D, O) {
|
|
|
174
174
|
...ee(p, X),
|
|
175
175
|
...F(p),
|
|
176
176
|
...Z(r, ["onVisibleChange"]),
|
|
177
|
-
getTargetDOMNode: () => oe(
|
|
177
|
+
getTargetDOMNode: () => oe(_.current),
|
|
178
178
|
onVisibleChange: q,
|
|
179
179
|
children: l.isValidElement(n) ? l.cloneElement(n, {
|
|
180
180
|
...typeof c == "boolean" ? { disabled: c } : {},
|
|
@@ -186,7 +186,7 @@ function re(D, O) {
|
|
|
186
186
|
n.props.className
|
|
187
187
|
),
|
|
188
188
|
ref: Y(n) ? (e) => {
|
|
189
|
-
|
|
189
|
+
_.current = e;
|
|
190
190
|
} : void 0
|
|
191
191
|
}) : n
|
|
192
192
|
}
|
package/Empty.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "@unicom-cloud/icons/IconUiEmpty";
|
|
3
3
|
import "react";
|
|
4
|
-
import { E as e } from "./chunk/
|
|
4
|
+
import { E as e } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import "./hooks/useMergeProps.js";
|
|
6
6
|
import "./chunk/BzPkh4Zv.js";
|
|
7
7
|
export {
|
package/Form.js
CHANGED
|
@@ -6,7 +6,7 @@ import { p as Ke } from "./chunk/CANaGbGR.js";
|
|
|
6
6
|
import M from "lodash/isPlainObject";
|
|
7
7
|
import Me from "lodash/merge";
|
|
8
8
|
import H, { createContext as ue, useRef as L, forwardRef as Ve, useContext as O, useEffect as ie, useImperativeHandle as et, Component as tt, isValidElement as fe, useState as ce, useMemo as we, createElement as Ee, cloneElement as Te, useCallback as ee } from "react";
|
|
9
|
-
import { d as xe, a as rt } from "./chunk/
|
|
9
|
+
import { d as xe, a as rt } from "./chunk/CV1kLw5Z.js";
|
|
10
10
|
import { useCreate as st } from "./hooks/useCreate.js";
|
|
11
11
|
import { useMergeProps as it } from "./hooks/useMergeProps.js";
|
|
12
12
|
import { y as G } from "./chunk/BzPkh4Zv.js";
|
|
@@ -19,21 +19,25 @@ import j from "lodash/isFunction";
|
|
|
19
19
|
import nt from "lodash/omit";
|
|
20
20
|
import De from "lodash/setWith";
|
|
21
21
|
import { isExist as $e } from "./utils/is.js";
|
|
22
|
-
import { P as lt } from "./chunk/
|
|
22
|
+
import { P as lt } from "./chunk/BmO1y0vr.js";
|
|
23
23
|
import Ue from "lodash/cloneDeepWith";
|
|
24
|
+
import ot from "lodash/flatten";
|
|
24
25
|
import Oe from "lodash/set";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
26
|
+
import at from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
27
|
+
import ct from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
28
|
+
import ut from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
29
|
+
import dt from "@unicom-cloud/icons/IconUiLoading";
|
|
30
|
+
import ht from "lodash/isBoolean";
|
|
27
31
|
import pe from "lodash/isEqualWith";
|
|
28
|
-
import
|
|
32
|
+
import gt from "lodash/isNil";
|
|
29
33
|
import re from "./utils/warning.js";
|
|
30
34
|
import te from "lodash/isUndefined";
|
|
31
35
|
import je from "./Grid.js";
|
|
32
|
-
import { P as
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { useForceUpdate as
|
|
36
|
-
import
|
|
36
|
+
import { P as mt } from "./chunk/Bp3XomF8.js";
|
|
37
|
+
import Ft from "@unicom-cloud/icons/IconUiQuestionCircleFill";
|
|
38
|
+
import ft from "./Tooltip.js";
|
|
39
|
+
import { useForceUpdate as pt } from "./hooks/useForceUpdate.js";
|
|
40
|
+
import St from "lodash/isString";
|
|
37
41
|
const se = ue({
|
|
38
42
|
layout: "horizontal",
|
|
39
43
|
labelCol: { span: 5, offset: 0 },
|
|
@@ -75,17 +79,17 @@ const se = ue({
|
|
|
75
79
|
validating: "validating"
|
|
76
80
|
};
|
|
77
81
|
var U = /* @__PURE__ */ ((s) => (s.init = "init", s.error = "error", s.success = "success", s.submitting = "submitting", s))(U || {});
|
|
78
|
-
class
|
|
82
|
+
class Vt extends Error {
|
|
79
83
|
constructor(t) {
|
|
80
84
|
super("form validate error, get errors by error.errors");
|
|
81
85
|
u(this, "errors", {});
|
|
82
86
|
this.errors = t;
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
|
-
function
|
|
89
|
+
function bt(s) {
|
|
86
90
|
return Object.defineProperty(
|
|
87
91
|
(...e) => typeof e[e.length - 1] == "function" ? s.apply(this, e) : new Promise((t, r) => (e[e.length] = (i, l) => {
|
|
88
|
-
if (i) return r(new
|
|
92
|
+
if (i) return r(new Vt(i));
|
|
89
93
|
t(l);
|
|
90
94
|
}, e.length++, s.apply(this, e))),
|
|
91
95
|
"name",
|
|
@@ -98,7 +102,7 @@ function K(s) {
|
|
|
98
102
|
return e;
|
|
99
103
|
});
|
|
100
104
|
}
|
|
101
|
-
const
|
|
105
|
+
const vt = (s, e) => Ue(s, (t) => {
|
|
102
106
|
if (j(t))
|
|
103
107
|
return (r) => t(r, e);
|
|
104
108
|
});
|
|
@@ -106,7 +110,9 @@ function N(s, e, t) {
|
|
|
106
110
|
return Oe(s, e, K(t)), s;
|
|
107
111
|
}
|
|
108
112
|
function ke(s, e = "") {
|
|
109
|
-
const t = /* @__PURE__ */ new Set(), r = (i, l = "") => i ? t.has(i) ? [] : (t.add(i),
|
|
113
|
+
const t = /* @__PURE__ */ new Set(), r = (i, l = "") => i ? t.has(i) ? [] : (t.add(i), ot(
|
|
114
|
+
Object.keys(i).map((n) => (M(i[n]) || T(i[n])) && Object.keys(i[n]).length && !H.isValidElement(i[n]) ? r(i[n], `${l + n}.`) : l + n)
|
|
115
|
+
)) : [];
|
|
110
116
|
return r(s, e);
|
|
111
117
|
}
|
|
112
118
|
function ze(s) {
|
|
@@ -145,7 +151,7 @@ function ae(s, e) {
|
|
|
145
151
|
return e.some((r) => Le(t, r));
|
|
146
152
|
}
|
|
147
153
|
const be = "_input";
|
|
148
|
-
class
|
|
154
|
+
class yt {
|
|
149
155
|
constructor() {
|
|
150
156
|
// 表示的 Form 的提交状态而非单个字段的提交状态。
|
|
151
157
|
// 只有在触发表单 reset(原生 reset,而非当前的 resetFields) 时,才会回到 init 状态(目前没有支持 form.reset,所以没有这块逻辑)
|
|
@@ -343,7 +349,7 @@ class vt {
|
|
|
343
349
|
const { onReset: l } = this.callbacks;
|
|
344
350
|
l == null || l(i);
|
|
345
351
|
});
|
|
346
|
-
u(this, "validate",
|
|
352
|
+
u(this, "validate", bt(
|
|
347
353
|
(e, t, r) => {
|
|
348
354
|
const i = this.getRegisteredFields(!0, {
|
|
349
355
|
containFormList: !0
|
|
@@ -481,8 +487,8 @@ class vt {
|
|
|
481
487
|
});
|
|
482
488
|
}
|
|
483
489
|
}
|
|
484
|
-
function
|
|
485
|
-
const s = new
|
|
490
|
+
function Ct() {
|
|
491
|
+
const s = new yt();
|
|
486
492
|
return {
|
|
487
493
|
getFieldsValue: s.getFieldsValue,
|
|
488
494
|
getFieldValue: s.getFieldValue,
|
|
@@ -526,13 +532,13 @@ function yt() {
|
|
|
526
532
|
}
|
|
527
533
|
function Ae(s) {
|
|
528
534
|
const e = L(s);
|
|
529
|
-
return e.current || (s ? e.current = s : e.current =
|
|
535
|
+
return e.current || (s ? e.current = s : e.current = Ct()), [e.current];
|
|
530
536
|
}
|
|
531
537
|
function Fe(s, e) {
|
|
532
538
|
const t = e.replace(/[[.]/g, "_").replace(/\]/g, "");
|
|
533
539
|
return s ? `${s}-${t}` : `${t}`;
|
|
534
540
|
}
|
|
535
|
-
const
|
|
541
|
+
const It = {
|
|
536
542
|
layout: "horizontal",
|
|
537
543
|
labelCol: { span: 5, offset: 0 },
|
|
538
544
|
labelAlign: "right",
|
|
@@ -540,13 +546,13 @@ const Ct = {
|
|
|
540
546
|
requiredSymbol: !0,
|
|
541
547
|
wrapper: "form",
|
|
542
548
|
validateTrigger: "onChange"
|
|
543
|
-
},
|
|
549
|
+
}, wt = (s, e) => {
|
|
544
550
|
var X, B;
|
|
545
551
|
const t = O(xe), r = O(qe), i = L(null), [l] = Ae(
|
|
546
552
|
s.form
|
|
547
553
|
), n = it(
|
|
548
554
|
s,
|
|
549
|
-
|
|
555
|
+
It,
|
|
550
556
|
(X = t.componentConfig) == null ? void 0 : X.Form
|
|
551
557
|
), {
|
|
552
558
|
layout: o,
|
|
@@ -670,7 +676,7 @@ const Ct = {
|
|
|
670
676
|
children: n.children
|
|
671
677
|
}
|
|
672
678
|
) }) });
|
|
673
|
-
}, Be = Ve(
|
|
679
|
+
}, Be = Ve(wt);
|
|
674
680
|
Be.displayName = "Form";
|
|
675
681
|
class z extends tt {
|
|
676
682
|
constructor(t, r) {
|
|
@@ -701,7 +707,7 @@ class z extends tt {
|
|
|
701
707
|
});
|
|
702
708
|
// 切换 touch 状态
|
|
703
709
|
u(this, "toggleTouched", (t) => {
|
|
704
|
-
this.touched =
|
|
710
|
+
this.touched = ht(t) ? t : !this.touched, this.triggerStateCollect();
|
|
705
711
|
});
|
|
706
712
|
u(this, "setWarnings", (t) => {
|
|
707
713
|
this.warnings = t, this.triggerStateCollect();
|
|
@@ -762,7 +768,7 @@ class z extends tt {
|
|
|
762
768
|
case "setFieldValue":
|
|
763
769
|
if (ae(l, i)) {
|
|
764
770
|
this.toggleTouched(!0), r.data && "touched" in r.data && this.toggleTouched(r.data.touched), r.data && "warnings" in r.data && this.setWarnings(
|
|
765
|
-
|
|
771
|
+
gt(r.data.warnings) ? [] : [].concat(r.data.warnings)
|
|
766
772
|
), r.data && "errors" in r.data ? this.setErrors(r.data.errors) : pe($(r.prev, l), $(r.current, l)) || this.setErrors(null), this.updateFormItem();
|
|
767
773
|
return;
|
|
768
774
|
}
|
|
@@ -899,10 +905,10 @@ class z extends tt {
|
|
|
899
905
|
{
|
|
900
906
|
className: `${o}-item-feedback ${o}-item-feedback-${n}`,
|
|
901
907
|
children: [
|
|
902
|
-
n === "warning" && /* @__PURE__ */ f(
|
|
908
|
+
n === "warning" && /* @__PURE__ */ f(ut, {}),
|
|
903
909
|
n === "success" && /* @__PURE__ */ f(at, {}),
|
|
904
910
|
n === "error" && /* @__PURE__ */ f(ct, {}),
|
|
905
|
-
n === "validating" && /* @__PURE__ */ f(
|
|
911
|
+
n === "validating" && /* @__PURE__ */ f(dt, {})
|
|
906
912
|
]
|
|
907
913
|
}
|
|
908
914
|
)
|
|
@@ -913,7 +919,7 @@ u(z, "defaultProps", {
|
|
|
913
919
|
trigger: "onChange",
|
|
914
920
|
triggerPropName: "value"
|
|
915
921
|
}), u(z, "isFormControl", !0), u(z, "contextType", Se);
|
|
916
|
-
function
|
|
922
|
+
function Et(s) {
|
|
917
923
|
return /* @__PURE__ */ f(
|
|
918
924
|
"svg",
|
|
919
925
|
{
|
|
@@ -929,7 +935,7 @@ function wt(s) {
|
|
|
929
935
|
}
|
|
930
936
|
);
|
|
931
937
|
}
|
|
932
|
-
const
|
|
938
|
+
const Tt = ({
|
|
933
939
|
htmlFor: s,
|
|
934
940
|
showColon: e,
|
|
935
941
|
label: t,
|
|
@@ -939,11 +945,11 @@ const Et = ({
|
|
|
939
945
|
prefix: n,
|
|
940
946
|
tooltip: o
|
|
941
947
|
}) => {
|
|
942
|
-
const a = T(l) && l.some((m) => m && m.required), d = M(r) ? r.position : "end", c = (i || a) && !!r && /* @__PURE__ */ f("strong", { className: `${n}-form-item-symbol`, children: /* @__PURE__ */ f(
|
|
948
|
+
const a = T(l) && l.some((m) => m && m.required), d = M(r) ? r.position : "end", c = (i || a) && !!r && /* @__PURE__ */ f("strong", { className: `${n}-form-item-symbol`, children: /* @__PURE__ */ f(Et, {}) }), h = () => {
|
|
943
949
|
if (!o)
|
|
944
950
|
return null;
|
|
945
951
|
const m = `${n}-form-item-tooltip`;
|
|
946
|
-
let F = {}, V = /* @__PURE__ */ f(
|
|
952
|
+
let F = {}, V = /* @__PURE__ */ f(Ft, { className: m });
|
|
947
953
|
if (!M(o) || fe(o))
|
|
948
954
|
F = {
|
|
949
955
|
content: o
|
|
@@ -957,7 +963,7 @@ const Et = ({
|
|
|
957
963
|
)
|
|
958
964
|
}) : g);
|
|
959
965
|
}
|
|
960
|
-
return /* @__PURE__ */ f(
|
|
966
|
+
return /* @__PURE__ */ f(ft, { ...F, children: V });
|
|
961
967
|
};
|
|
962
968
|
return t ? /* @__PURE__ */ J("label", { htmlFor: s && `${s}${be}`, children: [
|
|
963
969
|
d !== "end" && c,
|
|
@@ -970,7 +976,7 @@ const Et = ({
|
|
|
970
976
|
] }),
|
|
971
977
|
e ? e === !0 ? ":" : e : ""
|
|
972
978
|
] }) : null;
|
|
973
|
-
},
|
|
979
|
+
}, $t = je.Row, We = je.Col, kt = ({
|
|
974
980
|
prefixCls: s,
|
|
975
981
|
help: e,
|
|
976
982
|
errors: t,
|
|
@@ -987,7 +993,7 @@ const Et = ({
|
|
|
987
993
|
});
|
|
988
994
|
const n = !te(e) || !!l.length, o = n || !!i.length;
|
|
989
995
|
return o && /* @__PURE__ */ f(
|
|
990
|
-
|
|
996
|
+
mt,
|
|
991
997
|
{
|
|
992
998
|
in: o,
|
|
993
999
|
appear: !0,
|
|
@@ -1008,7 +1014,7 @@ const Et = ({
|
|
|
1008
1014
|
)
|
|
1009
1015
|
}
|
|
1010
1016
|
);
|
|
1011
|
-
},
|
|
1017
|
+
}, Rt = (s, e) => {
|
|
1012
1018
|
var ve, ye, Ce;
|
|
1013
1019
|
const { getPrefixCls: t, prefixCls: r } = O(xe), i = O(Se), l = O(Ge), [n, o] = ce(null), [a, d] = ce(null), c = O(se), h = c.prefixCls || t("form"), m = s.layout || c.layout, F = s.labelAlign || c.labelAlign, V = L(!1), g = (x, I = {}) => {
|
|
1014
1020
|
if (V.current)
|
|
@@ -1027,7 +1033,7 @@ const Et = ({
|
|
|
1027
1033
|
}), []);
|
|
1028
1034
|
const v = {
|
|
1029
1035
|
...c,
|
|
1030
|
-
validateMessages: c.validateMessages &&
|
|
1036
|
+
validateMessages: c.validateMessages && vt(c.validateMessages, {
|
|
1031
1037
|
label: s.label
|
|
1032
1038
|
}),
|
|
1033
1039
|
prefixCls: h,
|
|
@@ -1095,7 +1101,7 @@ const Et = ({
|
|
|
1095
1101
|
...c
|
|
1096
1102
|
};
|
|
1097
1103
|
return s.noStyle || (q.wrapperCol = void 0, q.labelCol = void 0), /* @__PURE__ */ f(se.Provider, { value: q, children: /* @__PURE__ */ f(P.Provider, { value: v, children: s.noStyle ? C() : /* @__PURE__ */ J(
|
|
1098
|
-
|
|
1104
|
+
$t,
|
|
1099
1105
|
{
|
|
1100
1106
|
ref: e,
|
|
1101
1107
|
..._e(le, [
|
|
@@ -1145,7 +1151,7 @@ const Et = ({
|
|
|
1145
1151
|
}
|
|
1146
1152
|
),
|
|
1147
1153
|
children: /* @__PURE__ */ f(
|
|
1148
|
-
|
|
1154
|
+
Tt,
|
|
1149
1155
|
{
|
|
1150
1156
|
tooltip: s.tooltip,
|
|
1151
1157
|
htmlFor: s.field && ((Ce = c == null ? void 0 : c.getFormElementId) == null ? void 0 : Ce.call(c, s.field)),
|
|
@@ -1169,7 +1175,7 @@ const Et = ({
|
|
|
1169
1175
|
children: [
|
|
1170
1176
|
C(),
|
|
1171
1177
|
/* @__PURE__ */ f(
|
|
1172
|
-
|
|
1178
|
+
kt,
|
|
1173
1179
|
{
|
|
1174
1180
|
prefixCls: h,
|
|
1175
1181
|
help: s.help,
|
|
@@ -1184,7 +1190,7 @@ const Et = ({
|
|
|
1184
1190
|
]
|
|
1185
1191
|
}
|
|
1186
1192
|
) }) });
|
|
1187
|
-
}, de = Ve(
|
|
1193
|
+
}, de = Ve(Rt);
|
|
1188
1194
|
de.defaultProps = {
|
|
1189
1195
|
trigger: "onChange",
|
|
1190
1196
|
triggerPropName: "value"
|
|
@@ -1276,7 +1282,7 @@ const Pe = (s, e) => !te(s) && s >= 0 && s < e.length, He = (s) => {
|
|
|
1276
1282
|
);
|
|
1277
1283
|
};
|
|
1278
1284
|
He.displayName = "FormList";
|
|
1279
|
-
const
|
|
1285
|
+
const Wt = (s, e) => {
|
|
1280
1286
|
const t = L({}), r = ee((o, a) => (o && (t.current[o] = a), () => {
|
|
1281
1287
|
delete t.current[o];
|
|
1282
1288
|
}), []), i = ee(
|
|
@@ -1316,10 +1322,10 @@ const Rt = (s, e) => {
|
|
|
1316
1322
|
children: s.children
|
|
1317
1323
|
}
|
|
1318
1324
|
);
|
|
1319
|
-
}, Je = Ve(
|
|
1325
|
+
}, Je = Ve(Wt);
|
|
1320
1326
|
Je.displayName = "FormProvider";
|
|
1321
|
-
const
|
|
1322
|
-
const s = O(se), e = s.store, t = L(!1), r =
|
|
1327
|
+
const Pt = () => {
|
|
1328
|
+
const s = O(se), e = s.store, t = L(!1), r = pt(), i = ee(() => {
|
|
1323
1329
|
var o, a, d;
|
|
1324
1330
|
const { submitStatus: l } = ((d = (a = (o = e == null ? void 0 : e.getInnerMethods) == null ? void 0 : o.call(e, !0)) == null ? void 0 : a.innerGetStoreStatus) == null ? void 0 : d.call(a)) ?? {}, n = l === U.submitting;
|
|
1325
1331
|
n !== t.current && (t.current = n, r());
|
|
@@ -1341,7 +1347,7 @@ const Wt = () => {
|
|
|
1341
1347
|
disabled: s.disabled,
|
|
1342
1348
|
isSubmitting: t.current
|
|
1343
1349
|
};
|
|
1344
|
-
},
|
|
1350
|
+
}, Nt = (s, e) => {
|
|
1345
1351
|
const t = O(se), r = e || t.store, i = L(s);
|
|
1346
1352
|
i.current = s;
|
|
1347
1353
|
const l = ee(() => {
|
|
@@ -1364,10 +1370,10 @@ const Wt = () => {
|
|
|
1364
1370
|
h == null || h();
|
|
1365
1371
|
};
|
|
1366
1372
|
}, []), n;
|
|
1367
|
-
},
|
|
1373
|
+
}, Mt = (s, e) => {
|
|
1368
1374
|
const t = O(se), r = e || t.store, [i, l] = ce(() => {
|
|
1369
1375
|
const a = r == null ? void 0 : r.getFieldsValue([].concat(s));
|
|
1370
|
-
return
|
|
1376
|
+
return St(s) ? $(a, s) : a;
|
|
1371
1377
|
}), n = L(s);
|
|
1372
1378
|
n.current = s;
|
|
1373
1379
|
const o = L(JSON.stringify(i));
|
|
@@ -1396,9 +1402,9 @@ A.Item = de;
|
|
|
1396
1402
|
A.List = He;
|
|
1397
1403
|
A.Control = z;
|
|
1398
1404
|
A.useForm = Ae;
|
|
1399
|
-
A.useFormContext =
|
|
1400
|
-
A.useWatch =
|
|
1401
|
-
A.useFormState =
|
|
1405
|
+
A.useFormContext = Pt;
|
|
1406
|
+
A.useWatch = Mt;
|
|
1407
|
+
A.useFormState = Nt;
|
|
1402
1408
|
export {
|
|
1403
1409
|
z as FormControl,
|
|
1404
1410
|
de as FormItem,
|
|
@@ -1406,7 +1412,7 @@ export {
|
|
|
1406
1412
|
Je as FormProvider,
|
|
1407
1413
|
A as default,
|
|
1408
1414
|
Ae as useForm,
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1415
|
+
Pt as useFormContext,
|
|
1416
|
+
Nt as useFormState,
|
|
1417
|
+
Mt as useWatch
|
|
1412
1418
|
};
|
package/Grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as V, a as A, C as Y, R as Z } from "./chunk/
|
|
1
|
+
import { G as V, a as A, C as Y, R as Z } from "./chunk/B0oDiPqE.js";
|
|
2
2
|
import { jsx as M } from "react/jsx-runtime";
|
|
3
3
|
import X from "lodash/get";
|
|
4
4
|
import y, { useRef as ee, useState as q, useEffect as z, useMemo as b, forwardRef as H, useContext as h } from "react";
|
|
5
|
-
import { d as J } from "./chunk/
|
|
5
|
+
import { d as J } from "./chunk/CV1kLw5Z.js";
|
|
6
6
|
import { useMergeProps as K } from "./hooks/useMergeProps.js";
|
|
7
7
|
import { y as L } from "./chunk/BzPkh4Zv.js";
|
|
8
8
|
import te from "lodash/isPlainObject";
|
package/Icon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import i from "react";
|
|
3
|
-
import { b as g } from "./chunk/
|
|
3
|
+
import { b as g } from "./chunk/CV1kLw5Z.js";
|
|
4
4
|
import { y as x } from "./chunk/BzPkh4Zv.js";
|
|
5
5
|
import { isServerRendering as y } from "./utils/dom.js";
|
|
6
6
|
const I = [];
|
package/IconHover.js
CHANGED
package/Image.js
CHANGED
package/Input.js
CHANGED
package/InputNumber.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
2
|
+
import "@unicom-cloud/icons/IconUiDown";
|
|
3
|
+
import "@unicom-cloud/icons/IconUiMinus";
|
|
4
|
+
import "@unicom-cloud/icons/IconUiPlus";
|
|
5
|
+
import "@unicom-cloud/icons/IconUiUp";
|
|
6
6
|
import "lodash/isNumber";
|
|
7
7
|
import "react";
|
|
8
|
-
import "./chunk/
|
|
8
|
+
import "./chunk/CV1kLw5Z.js";
|
|
9
9
|
import "./hooks/useMergeProps.js";
|
|
10
|
-
import { a as b } from "./chunk/
|
|
10
|
+
import { a as b } from "./chunk/CazXy0r4.js";
|
|
11
11
|
import "./chunk/BzPkh4Zv.js";
|
|
12
12
|
import "./chunk/C2lIz2F9.js";
|
|
13
13
|
import "./utils/omit.js";
|
package/InputTag.js
CHANGED
package/Layout.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import g from "lodash/get";
|
|
3
3
|
import S, { forwardRef as f, useContext as p, useState as w } from "react";
|
|
4
|
-
import { d as u } from "./chunk/
|
|
4
|
+
import { d as u } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useMergeProps as M } from "./hooks/useMergeProps.js";
|
|
6
6
|
import { y as d } from "./chunk/BzPkh4Zv.js";
|
|
7
|
-
import { S as b } from "./chunk/
|
|
7
|
+
import { S as b } from "./chunk/tOFzwzpT.js";
|
|
8
8
|
function j(o, s) {
|
|
9
9
|
const { className: n, children: e, ...r } = o, { getPrefixCls: a } = p(u), t = a("layout-content"), c = d(t, n);
|
|
10
10
|
return /* @__PURE__ */ l("main", { ref: s, ...r, className: c, children: e });
|
package/Link.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as C, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import $ from "@unicom-cloud/icons/IconUiLink";
|
|
3
3
|
import { forwardRef as g, useContext as L } from "react";
|
|
4
|
-
import { d as P } from "./chunk/
|
|
4
|
+
import { d as P } from "./chunk/CV1kLw5Z.js";
|
|
5
5
|
import { useKeyboardEvent as w } from "./hooks/useKeyboardEvent.js";
|
|
6
6
|
import { useMergeProps as K } from "./hooks/useMergeProps.js";
|
|
7
7
|
import { y as N } from "./chunk/BzPkh4Zv.js";
|
|
@@ -9,22 +9,22 @@ const D = {
|
|
|
9
9
|
hoverable: !0
|
|
10
10
|
};
|
|
11
11
|
function E(f, d) {
|
|
12
|
-
const { getPrefixCls: m, componentConfig:
|
|
12
|
+
const { getPrefixCls: m, componentConfig: r, rtl: p } = L(P), o = K(
|
|
13
13
|
f,
|
|
14
14
|
D,
|
|
15
|
-
|
|
15
|
+
r == null ? void 0 : r.Link
|
|
16
16
|
), {
|
|
17
17
|
className: u,
|
|
18
18
|
style: h,
|
|
19
19
|
children: k,
|
|
20
|
-
icon:
|
|
20
|
+
icon: n,
|
|
21
21
|
status: i,
|
|
22
|
-
disabled:
|
|
22
|
+
disabled: s,
|
|
23
23
|
hoverable: x,
|
|
24
24
|
...b
|
|
25
25
|
} = o, v = w({ onKeyDown: o.onKeyDown }), e = m("link"), y = "href" in o ? "a" : "span", a = (t) => {
|
|
26
26
|
var l;
|
|
27
|
-
|
|
27
|
+
s ? (t.preventDefault(), t.stopPropagation()) : (l = o.onClick) == null || l.call(o, t);
|
|
28
28
|
};
|
|
29
29
|
return /* @__PURE__ */ C(
|
|
30
30
|
y,
|
|
@@ -32,16 +32,16 @@ function E(f, d) {
|
|
|
32
32
|
className: N(
|
|
33
33
|
e,
|
|
34
34
|
{
|
|
35
|
-
[`${e}-disabled`]:
|
|
35
|
+
[`${e}-disabled`]: s,
|
|
36
36
|
[`${e}-is-${i}`]: i,
|
|
37
|
-
[`${e}-with-icon`]:
|
|
37
|
+
[`${e}-with-icon`]: n,
|
|
38
38
|
[`${e}-hoverless`]: !x,
|
|
39
39
|
[`${e}-rtl`]: p
|
|
40
40
|
},
|
|
41
41
|
u
|
|
42
42
|
),
|
|
43
43
|
ref: d,
|
|
44
|
-
tabIndex:
|
|
44
|
+
tabIndex: s ? -1 : void 0,
|
|
45
45
|
...b,
|
|
46
46
|
style: h,
|
|
47
47
|
onClick: a,
|
|
@@ -49,14 +49,14 @@ function E(f, d) {
|
|
|
49
49
|
onPressEnter: a
|
|
50
50
|
}),
|
|
51
51
|
children: [
|
|
52
|
-
|
|
52
|
+
n ? /* @__PURE__ */ c("span", { className: `${e}-icon`, children: n === !0 ? /* @__PURE__ */ c($, {}) : n }) : null,
|
|
53
53
|
k
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
|
|
58
|
+
const j = g(E);
|
|
59
|
+
j.displayName = "Link";
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
j as default
|
|
62
62
|
};
|
package/List.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as N, jsx as s, Fragment as At } from "react/jsx-runtime";
|
|
2
2
|
import F, { useContext as K, useRef as R, useState as J, useImperativeHandle as Dt, useCallback as Ht, createElement as Tt } from "react";
|
|
3
3
|
import Vt from "lodash/throttle";
|
|
4
|
-
import { d as Q } from "./chunk/
|
|
5
|
-
import { R as mt, C as dt } from "./chunk/
|
|
4
|
+
import { d as Q } from "./chunk/CV1kLw5Z.js";
|
|
5
|
+
import { R as mt, C as dt } from "./chunk/B0oDiPqE.js";
|
|
6
6
|
import { useMergeProps as ht } from "./hooks/useMergeProps.js";
|
|
7
|
-
import { P as _t } from "./chunk/
|
|
7
|
+
import { P as _t } from "./chunk/DRp7voqz.js";
|
|
8
8
|
import kt from "./Spin.js";
|
|
9
9
|
import { y as M } from "./chunk/BzPkh4Zv.js";
|
|
10
10
|
import Bt from "./utils/omit.js";
|
package/Mentions.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as P, jsx as M } from "react/jsx-runtime";
|
|
2
2
|
import q, { useContext as z, useRef as T, useState as G, useEffect as J } from "react";
|
|
3
|
-
import { d as Q } from "./chunk/
|
|
3
|
+
import { d as Q } from "./chunk/CV1kLw5Z.js";
|
|
4
4
|
import { useMergeProps as X } from "./hooks/useMergeProps.js";
|
|
5
5
|
import { useMergeValue as Y } from "./hooks/useMergeValue.js";
|
|
6
|
-
import { I as Z } from "./chunk/
|
|
7
|
-
import { S as _ } from "./chunk/
|
|
6
|
+
import { I as Z } from "./chunk/CazXy0r4.js";
|
|
7
|
+
import { S as _ } from "./chunk/nbEvdwT0.js";
|
|
8
8
|
import { y as ee } from "./chunk/BzPkh4Zv.js";
|
|
9
9
|
import { d as V, E as S, c as w, A as N } from "./chunk/C2lIz2F9.js";
|
|
10
10
|
function te(i, { split: t }) {
|