@unicom-cloud/ui 0.8.63 → 0.8.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Affix.js +2 -2
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +4 -4
- package/Avatar.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +37 -31
- package/Breadcrumb.js +3 -3
- package/Button.js +82 -71
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +5 -5
- package/Comment.js +2 -2
- package/ConfigProvider.js +2 -2
- package/Copy.js +3 -3
- package/DatePicker.js +92 -92
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Drawer.js +1 -1
- package/Dropdown.js +27 -26
- package/Empty.js +2 -2
- package/Form.js +4 -4
- package/Grid.js +3 -3
- package/Icon.js +3 -2
- package/IconHover.js +2 -2
- package/Image.js +4 -1
- package/Input.js +11 -2
- package/InputNumber.js +3 -3
- package/InputTag.js +1 -1
- package/Layout.js +25 -21
- package/Link.js +2 -2
- package/List.js +31 -30
- package/Mentions.js +4 -4
- package/Menu.js +7 -2
- package/Message.js +4 -3
- package/Modal.js +1 -1
- package/Notice.js +2 -2
- package/Notification.js +4 -3
- 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 +4 -2
- package/Rate.js +2 -2
- package/ResizeBox.js +140 -137
- package/Result.js +2 -2
- package/Select.js +4 -1
- package/SelectView.js +7 -7
- package/Skeleton.js +2 -2
- package/Slider.js +5 -5
- package/Space.js +54 -50
- package/Spin.js +2 -2
- package/Statistic.js +29 -28
- package/Steps.js +41 -39
- package/Switch.js +3 -3
- package/Table.js +8 -5
- package/Tabs.js +6 -2
- package/Tag.js +2 -2
- package/TimePicker.js +38 -37
- package/Timeline.js +4 -2
- package/Tooltip.js +2 -2
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -1
- package/Trigger.js +43 -42
- package/Typography.js +6 -2
- package/Upload.js +3 -3
- package/VerificationCode.js +1 -1
- package/Version.js +5 -3
- package/Watermark.js +1 -1
- package/chunk/{DDDuw0Zi.js → 1GQdnTJp.js} +2 -2
- package/chunk/BAWsPQBM.js +11 -0
- package/chunk/{CfZWOhnc.js → BS09tn7B.js} +2 -2
- package/chunk/{CZ1wrD_H.js → BUCEs557.js} +2 -2
- package/chunk/BqGtwxTi.js +777 -0
- package/chunk/{BcwdVUDs.js → Bqk6yh16.js} +2 -2
- package/chunk/{CD7dGcUa.js → BqufsN8i.js} +4 -4
- package/chunk/{Dpzgtdt-.js → BtlvlGQN.js} +2 -2
- package/chunk/{BoDdbbF_.js → CF6p9R93.js} +4 -3
- package/chunk/{BnLshM9R.js → CGZ0In1p.js} +189 -182
- package/chunk/{B5gIo-hD.js → CH1UUxsg.js} +4 -4
- package/chunk/{D3dcFbex.js → CIlGCedk.js} +3 -3
- package/chunk/{CgDayZDE.js → CPcm9Cm5.js} +2 -2
- package/chunk/{Cqyp4qni.js → CSC_V_25.js} +45 -45
- package/chunk/{JpKOcIfl.js → CWgltRVL.js} +44 -41
- package/chunk/{BLLKKgZJ.js → CsbCHnFk.js} +23 -21
- package/chunk/{Cb_oWoGj.js → CwhPMMWy.js} +14 -14
- package/chunk/{B9w_puFP.js → DG-epQqF.js} +2 -2
- package/chunk/{QFkhCtUr.js → DIx0qmCq.js} +3 -3
- package/chunk/{Bn2-vqTg.js → DK4KcodH.js} +201 -195
- package/chunk/{BEB_A9eY.js → DLvMA1OW.js} +2 -2
- package/chunk/{DbPYtS7-.js → DQDkV47j.js} +2 -2
- package/chunk/{rlfmXePI.js → DTjcKyDN.js} +135 -134
- package/chunk/{BmO1y0vr.js → DUeHQKtx.js} +12 -12
- package/chunk/{C6Zb_-OE.js → DXZEpA3t.js} +2 -2
- package/chunk/{aqSmxUbY.js → DjtWv6Wn.js} +1 -1
- package/chunk/{C5S_amaH.js → DlLL5JQo.js} +106 -101
- package/chunk/{CvlD3aiv.js → Dnycc1qJ.js} +133 -130
- package/chunk/{DbLgopUR.js → DqFhzTWC.js} +3 -3
- package/chunk/{DXZ8-ha7.js → Dv_xRzvR.js} +3 -3
- package/chunk/{Dk6hL04k.js → Ek8U5CTN.js} +222 -221
- package/chunk/{CfTcP6nF.js → ewRDIDUz.js} +4 -4
- package/chunk/{CAxIyiy6.js → tYXLFPVI.js} +6 -4
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +2 -2
- package/index.js +530 -476
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +1 -1
- package/style/variable.less +820 -0
- package/style.css +1 -1
- package/types/badge/index.d.ts +2 -2
- package/types/button/index.d.ts +3 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/config-provider/interface.d.ts +1 -1
- package/types/date-picker/hook/useCellClassName.d.ts +2 -1
- package/types/date-picker/panel/Footer.d.ts +2 -1
- package/types/dropdown/index.d.ts +1 -0
- package/types/form/IconSymbol.d.ts +2 -1
- package/types/form/useForm.d.ts +2 -1
- package/types/icon/addFromIconFontCn.d.ts +2 -1
- package/types/icon/index.d.ts +2 -0
- package/types/image/Image.d.ts +1 -0
- package/types/image/index.d.ts +2 -1
- package/types/image/util/getFixTranslate.d.ts +2 -1
- package/types/image/util/hook/useImageStatus.d.ts +2 -2
- package/types/image/util/hook/useShowFooter.d.ts +2 -2
- package/types/index.d.ts +26 -26
- package/types/input/Input.d.ts +1 -0
- package/types/input/index.d.ts +1 -0
- package/types/input/useComposition.d.ts +2 -1
- package/types/input-number/useSelectionRange.d.ts +2 -1
- package/types/layout/index.d.ts +1 -0
- package/types/list/index.d.ts +1 -0
- package/types/menu/Indent.d.ts +2 -1
- package/types/menu/Menu.d.ts +1 -0
- package/types/menu/index.d.ts +1 -0
- package/types/message/index.d.ts +2 -0
- package/types/notification/index.d.ts +2 -0
- package/types/overflow-ellipsis/OverflowItem.d.ts +2 -2
- package/types/overflow-ellipsis/index.d.ts +2 -2
- package/types/radio/Radio.d.ts +2 -0
- package/types/radio/index.d.ts +2 -1
- package/types/resize-box/ResizeTrigger.d.ts +2 -1
- package/types/resize-box/index.d.ts +1 -0
- package/types/result/403.d.ts +2 -1
- package/types/result/404.d.ts +2 -1
- package/types/result/500.d.ts +2 -1
- package/types/select/Select.d.ts +1 -1
- package/types/select/index.d.ts +1 -0
- package/types/select/interface.d.ts +1 -1
- package/types/skeleton/Image.d.ts +2 -1
- package/types/skeleton/Text.d.ts +2 -1
- package/types/slider/hook/useLegalValue.d.ts +2 -1
- package/types/space/index.d.ts +2 -0
- package/types/space/toArray.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +2 -1
- package/types/spin/DotLoading.d.ts +2 -1
- package/types/statistic/index.d.ts +1 -0
- package/types/steps/index.d.ts +1 -0
- package/types/table/hook/useComponent.d.ts +2 -1
- package/types/table/hook/useExpand.d.ts +2 -1
- package/types/table/hook/useRowSelection.d.ts +2 -1
- package/types/table/hook/useSorter.d.ts +2 -1
- package/types/table/index.d.ts +2 -1
- package/types/table/summary/index.d.ts +3 -0
- package/types/tabs/Tab.d.ts +1 -0
- package/types/tabs/TabContent.d.ts +2 -2
- package/types/tabs/hook/useDomSize.d.ts +2 -1
- package/types/tabs/hook/useHeaderScroll.d.ts +2 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/tabs/tab-header/DropdownIcon.d.ts +2 -1
- package/types/time-picker/TimeColumn.d.ts +2 -2
- package/types/time-picker/index.d.ts +5 -0
- package/types/timeline/Timeline.d.ts +1 -0
- package/types/timeline/index.d.ts +1 -0
- package/types/tree-select/Select.d.ts +5 -0
- package/types/tree-select/hook/useTreeData.d.ts +2 -1
- package/types/tree-select/index.d.ts +2 -1
- package/types/typography/Operations.d.ts +2 -1
- package/types/typography/index.d.ts +1 -0
- package/types/upload/Upload.d.ts +2 -1
- package/types/upload/index.d.ts +2 -3
- package/types/utils/fillNBSP.d.ts +2 -1
- package/types/utils/getHighlightText.d.ts +2 -1
- package/types/utils/getHotkeyHandler.d.ts +2 -1
- package/types/utils/getStringLength.d.ts +2 -1
- package/types/utils/include.d.ts +2 -1
- package/types/utils/mergeProps.d.ts +2 -1
- package/types/utils/mergedToString.d.ts +2 -1
- package/types/utils/omit.d.ts +2 -1
- package/types/utils/pick.d.ts +2 -1
- package/types/utils/throttleByRaf.d.ts +2 -1
- package/types/utils/throttleByRafV2.d.ts +2 -1
- package/types/utils/warning.d.ts +2 -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/Co3idurS.js +0 -774
package/TimePicker.js
CHANGED
|
@@ -3,16 +3,16 @@ import Re from "@unicom-cloud/icons/IconUiClockCircle";
|
|
|
3
3
|
import { isDayjs as L } from "dayjs";
|
|
4
4
|
import p from "lodash/isArray";
|
|
5
5
|
import He, { useContext as pe, useState as z, useRef as ze } from "react";
|
|
6
|
-
import { d as Ae } from "./chunk/
|
|
6
|
+
import { d as Ae } from "./chunk/DlLL5JQo.js";
|
|
7
7
|
import { useMergeProps as Oe } from "./hooks/useMergeProps.js";
|
|
8
8
|
import { usePrevious as ce } from "./hooks/usePrevious.js";
|
|
9
9
|
import { useUpdateEffect as Ee } from "./hooks/useUpdateEffect.js";
|
|
10
|
-
import { a as Fe, I as Ne } from "./chunk/
|
|
10
|
+
import { a as Fe, I as Ne } from "./chunk/BtlvlGQN.js";
|
|
11
11
|
import Ue from "./Trigger.js";
|
|
12
|
-
import { y as $e } from "./chunk/
|
|
12
|
+
import { y as $e } from "./chunk/BAWsPQBM.js";
|
|
13
13
|
import { getDayjsValue as B, toLocal as d, toTimezone as X, isValidTimeString as Q, getSortedDayjsArray as Be, isDayjsArrayChange as Le, isDayjsChange as Me } from "./utils/dayjs.js";
|
|
14
14
|
import { pickDataAttributes as We } from "./utils/pick.js";
|
|
15
|
-
import { P as me, g as _e, T as de } from "./chunk/
|
|
15
|
+
import { P as me, g as _e, T as de } from "./chunk/DXZEpA3t.js";
|
|
16
16
|
import qe from "./utils/omit.js";
|
|
17
17
|
function Ge(h) {
|
|
18
18
|
return h.format || "HH:mm:ss";
|
|
@@ -26,8 +26,8 @@ const fe = {
|
|
|
26
26
|
scrollSticky: !0
|
|
27
27
|
}, Je = { bottom: 4 }, Ke = (h) => {
|
|
28
28
|
var se, ae;
|
|
29
|
-
const { locale: u, getPrefixCls: v, componentConfig: l, rtl:
|
|
30
|
-
|
|
29
|
+
const { locale: u, getPrefixCls: v, componentConfig: l, rtl: T } = pe(Ae);
|
|
30
|
+
T && (fe.position = "br");
|
|
31
31
|
const t = Oe(
|
|
32
32
|
h,
|
|
33
33
|
fe,
|
|
@@ -36,8 +36,8 @@ const fe = {
|
|
|
36
36
|
allowClear: A = !0,
|
|
37
37
|
className: f,
|
|
38
38
|
disableConfirm: M,
|
|
39
|
-
style:
|
|
40
|
-
placeholder:
|
|
39
|
+
style: x,
|
|
40
|
+
placeholder: y,
|
|
41
41
|
getPopupContainer: O,
|
|
42
42
|
disabled: b,
|
|
43
43
|
position: W,
|
|
@@ -56,15 +56,15 @@ const fe = {
|
|
|
56
56
|
order: ve,
|
|
57
57
|
utcOffset: n,
|
|
58
58
|
timezone: r
|
|
59
|
-
} = t, a = Ge(t),
|
|
60
|
-
function
|
|
59
|
+
} = t, a = Ge(t), ke = v("timepicker");
|
|
60
|
+
function Ce() {
|
|
61
61
|
let e;
|
|
62
62
|
return t.value ? e = B(t.value, a, n, r) : t.defaultValue && (e = B(t.defaultValue, a, n, r)), e;
|
|
63
63
|
}
|
|
64
|
-
const [ee, oe] = z(!1), [
|
|
64
|
+
const [ee, oe] = z(!1), [k, te] = z(Ce()), [i, j] = z(), [R, C] = z(), [E, Ie] = z(0), V = "value" in t ? B(P, a, n, r) : k, q = "popupVisible" in t ? t.popupVisible : ee, F = ce(n), N = ce(r);
|
|
65
65
|
Ee(() => {
|
|
66
|
-
if (
|
|
67
|
-
const e = p(
|
|
66
|
+
if (k && (F !== n || r !== N)) {
|
|
67
|
+
const e = p(k) ? k.map((c) => d(c, F, N)) : d(k, F, N), o = p(e) ? e.map((c) => X(c, n, r)) : X(e, n, r);
|
|
68
68
|
te(o);
|
|
69
69
|
}
|
|
70
70
|
}, [n, F, r, N]);
|
|
@@ -76,19 +76,19 @@ const fe = {
|
|
|
76
76
|
function K(e) {
|
|
77
77
|
Ie(e), setTimeout(() => J(e));
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Te(e) {
|
|
80
80
|
e ? H(e, () => {
|
|
81
81
|
setTimeout(() => J());
|
|
82
82
|
}) : H(!1);
|
|
83
83
|
}
|
|
84
84
|
function H(e, o) {
|
|
85
|
-
oe(e),
|
|
85
|
+
oe(e), C(void 0), o == null || o(), e || j(void 0);
|
|
86
86
|
}
|
|
87
87
|
function U(e) {
|
|
88
88
|
const o = g && ve && p(e) ? Be(e.map((c) => _e(c))) : e;
|
|
89
|
-
te(o), j(void 0),
|
|
89
|
+
te(o), j(void 0), C(void 0), xe(o), M || H(!1);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function xe(e) {
|
|
92
92
|
p(e) && Le(V, e) && (s == null || s(
|
|
93
93
|
e.map((o) => d(o, n, r).format(a)),
|
|
94
94
|
e.map((o) => d(o, n, r))
|
|
@@ -102,14 +102,14 @@ const fe = {
|
|
|
102
102
|
return /* @__PURE__ */ m(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
|
-
className: $e(`${
|
|
106
|
-
style: e ?
|
|
105
|
+
className: $e(`${ke}-container`, e ? f : ""),
|
|
106
|
+
style: e ? x : {},
|
|
107
107
|
onClick: () => J(),
|
|
108
108
|
children: He.cloneElement(_, {
|
|
109
109
|
...t,
|
|
110
110
|
format: a,
|
|
111
111
|
inputValue: R,
|
|
112
|
-
setInputValue:
|
|
112
|
+
setInputValue: C,
|
|
113
113
|
onConfirmValue: U,
|
|
114
114
|
setValueShow: j,
|
|
115
115
|
valueShow: o,
|
|
@@ -123,14 +123,14 @@ const fe = {
|
|
|
123
123
|
}
|
|
124
124
|
function ne(e) {
|
|
125
125
|
const o = e.target.value;
|
|
126
|
-
ee || oe(!0),
|
|
126
|
+
ee || oe(!0), C(o), ye(o);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ye(e) {
|
|
129
129
|
var c, ue;
|
|
130
130
|
const o = B(e, a);
|
|
131
131
|
if (g) {
|
|
132
132
|
const I = [
|
|
133
|
-
...p(i) ? i :
|
|
133
|
+
...p(i) ? i : k || []
|
|
134
134
|
];
|
|
135
135
|
if (Q(e, a)) {
|
|
136
136
|
I[E] = o;
|
|
@@ -141,11 +141,11 @@ const fe = {
|
|
|
141
141
|
t,
|
|
142
142
|
le.map(($) => $ && $.format(a)),
|
|
143
143
|
le
|
|
144
|
-
), j(I),
|
|
144
|
+
), j(I), C(void 0);
|
|
145
145
|
}
|
|
146
146
|
} else if (Q(e, a)) {
|
|
147
147
|
const I = d(o, n, r);
|
|
148
|
-
(ue = t.onSelect) == null || ue.call(t, I.format(a), I), j(o),
|
|
148
|
+
(ue = t.onSelect) == null || ue.call(t, I.format(a), I), j(o), C(void 0);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
function be() {
|
|
@@ -155,8 +155,8 @@ const fe = {
|
|
|
155
155
|
var o;
|
|
156
156
|
e.stopPropagation(), U(void 0), s == null || s(void 0, void 0), (o = t.onClear) == null || o.call(t);
|
|
157
157
|
}
|
|
158
|
-
const we = g && p(
|
|
159
|
-
style:
|
|
158
|
+
const we = g && p(y) ? y : (se = u == null ? void 0 : u.TimePicker) == null ? void 0 : se.placeholders, De = y || ((ae = u == null ? void 0 : u.TimePicker) == null ? void 0 : ae.placeholder), je = Z && Z.inputSuffix || /* @__PURE__ */ m(Re, {}), re = {
|
|
159
|
+
style: x,
|
|
160
160
|
className: f,
|
|
161
161
|
popupVisible: q,
|
|
162
162
|
format: a,
|
|
@@ -182,7 +182,7 @@ const fe = {
|
|
|
182
182
|
disabled: b,
|
|
183
183
|
popupAlign: Je,
|
|
184
184
|
getPopupContainer: O,
|
|
185
|
-
onVisibleChange:
|
|
185
|
+
onVisibleChange: Te,
|
|
186
186
|
popupVisible: q,
|
|
187
187
|
classNames: "slideDynamicOrigin",
|
|
188
188
|
unmountOnExit: !!he,
|
|
@@ -218,25 +218,25 @@ function Qe(h) {
|
|
|
218
218
|
format: u = "HH:mm:ss",
|
|
219
219
|
onSelect: v,
|
|
220
220
|
focusedInputIndex: l,
|
|
221
|
-
changeFocusedInputIndex:
|
|
221
|
+
changeFocusedInputIndex: T,
|
|
222
222
|
popupVisible: t,
|
|
223
223
|
onConfirmValue: A,
|
|
224
224
|
valueShow: f = [],
|
|
225
225
|
setValueShow: M,
|
|
226
|
-
disableConfirm:
|
|
227
|
-
...
|
|
226
|
+
disableConfirm: x,
|
|
227
|
+
...y
|
|
228
228
|
} = h, { utcOffset: O, timezone: b } = pe(me);
|
|
229
229
|
function W(Y, w) {
|
|
230
230
|
const D = f.slice(), P = f.map((s) => d(s, O, b));
|
|
231
231
|
D[l] = X(w, O, b), P[l] = w, v == null || v(
|
|
232
232
|
P.map((s) => s.format(u)),
|
|
233
233
|
P
|
|
234
|
-
), M(D),
|
|
234
|
+
), M(D), x && p(P) && L(P[0]) && L(P[1]) && A(D);
|
|
235
235
|
}
|
|
236
236
|
function g() {
|
|
237
|
-
f.length && (f[0] === void 0 || f[1] === void 0) ?
|
|
237
|
+
f.length && (f[0] === void 0 || f[1] === void 0) ? T(l === 0 ? 1 : 0) : A(f);
|
|
238
238
|
}
|
|
239
|
-
const _ = qe(
|
|
239
|
+
const _ = qe(y, [
|
|
240
240
|
"defaultValue",
|
|
241
241
|
"placeholder",
|
|
242
242
|
"value",
|
|
@@ -253,14 +253,14 @@ function Qe(h) {
|
|
|
253
253
|
confirmBtnDisabled: !L(S),
|
|
254
254
|
valueShow: S,
|
|
255
255
|
popupVisible: t,
|
|
256
|
-
disableConfirm:
|
|
256
|
+
disableConfirm: x,
|
|
257
257
|
..._
|
|
258
258
|
}
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
261
|
function ge(h, u, v) {
|
|
262
|
-
function l(
|
|
263
|
-
return /* @__PURE__ */ m(Ke, { ...
|
|
262
|
+
function l(T) {
|
|
263
|
+
return /* @__PURE__ */ m(Ke, { ...T, picker: h, isRangePicker: v === "range" });
|
|
264
264
|
}
|
|
265
265
|
return l.displayName = u, l;
|
|
266
266
|
}
|
|
@@ -271,5 +271,6 @@ const Xe = ge(/* @__PURE__ */ m(de, {}), "TimePicker"), Ye = ge(
|
|
|
271
271
|
);
|
|
272
272
|
Object.assign(Xe, { RangePicker: Ye });
|
|
273
273
|
export {
|
|
274
|
+
Ye as TimeRangePicker,
|
|
274
275
|
Xe as default
|
|
275
276
|
};
|
package/Timeline.js
CHANGED
package/Tooltip.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { d as F, f as I } from "./chunk/
|
|
2
|
+
import { d as F, f as I } from "./chunk/DlLL5JQo.js";
|
|
3
3
|
import S from "lodash/isFunction";
|
|
4
4
|
import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
|
|
5
5
|
import { useMergeProps as G } from "./hooks/useMergeProps.js";
|
|
6
6
|
import J, { EventsByTriggerNeed as K } from "./Trigger.js";
|
|
7
|
-
import { y as P } from "./chunk/
|
|
7
|
+
import { y as P } from "./chunk/BAWsPQBM.js";
|
|
8
8
|
import { isEmptyReactNode as Q } from "./utils/is.js";
|
|
9
9
|
import U, { pickDataAttributes as X } from "./utils/pick.js";
|
|
10
10
|
const Y = {
|
package/Transfer.js
CHANGED
|
@@ -4,16 +4,16 @@ import Ie from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import ne from "lodash/isPlainObject";
|
|
5
5
|
import de, { useRef as le, useState as G, useEffect as oe, useContext as fe, useMemo as ce } from "react";
|
|
6
6
|
import ue from "./Button.js";
|
|
7
|
-
import { I as pe, d as me } from "./chunk/
|
|
7
|
+
import { I as pe, d as me } from "./chunk/DlLL5JQo.js";
|
|
8
8
|
import { useMergeProps as Ke } from "./hooks/useMergeProps.js";
|
|
9
9
|
import { useMergeValue as ie } from "./hooks/useMergeValue.js";
|
|
10
|
-
import { y as se } from "./chunk/
|
|
10
|
+
import { y as se } from "./chunk/BAWsPQBM.js";
|
|
11
11
|
import { pickDataAttributes as xe } from "./utils/pick.js";
|
|
12
12
|
import Ce from "@unicom-cloud/icons/IconUiDelete";
|
|
13
13
|
import $e from "@unicom-cloud/icons/IconUiSearch";
|
|
14
|
-
import { C as ae } from "./chunk/
|
|
14
|
+
import { C as ae } from "./chunk/DG-epQqF.js";
|
|
15
15
|
import { useKeyboardEvent as ge } from "./hooks/useKeyboardEvent.js";
|
|
16
|
-
import { I as ve } from "./chunk/
|
|
16
|
+
import { I as ve } from "./chunk/DK4KcodH.js";
|
|
17
17
|
import Se from "./List.js";
|
|
18
18
|
import Te from "@unicom-cloud/icons/IconUiClose";
|
|
19
19
|
import Ne from "@unicom-cloud/icons/IconUiDragDotVertical";
|
package/Tree.js
CHANGED
package/TreeSelect.js
CHANGED
package/Trigger.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (h, l, t) =>
|
|
1
|
+
var ot = Object.defineProperty;
|
|
2
|
+
var st = (h, l, t) => l in h ? ot(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t;
|
|
3
|
+
var s = (h, l, t) => st(h, typeof l != "symbol" ? l + "" : l, t);
|
|
4
4
|
import { jsx as N, jsxs as X } from "react/jsx-runtime";
|
|
5
|
-
import { $ as
|
|
6
|
-
import
|
|
5
|
+
import { $ as nt } from "./chunk/CLBavO5c.js";
|
|
6
|
+
import rt from "lodash/isArray";
|
|
7
7
|
import lt from "lodash/isEqual";
|
|
8
8
|
import W from "lodash/isFunction";
|
|
9
|
-
import A, { useRef as pt, useEffect as ht, PureComponent as ut, createRef as
|
|
10
|
-
import { d as at } from "./chunk/
|
|
11
|
-
import { y as _ } from "./chunk/
|
|
12
|
-
import { isServerRendering as
|
|
9
|
+
import A, { useRef as pt, useEffect as ht, PureComponent as ut, createRef as q } from "react";
|
|
10
|
+
import { d as at } from "./chunk/DlLL5JQo.js";
|
|
11
|
+
import { y as _ } from "./chunk/BAWsPQBM.js";
|
|
12
|
+
import { isServerRendering as et, on as U, off as Y, getScrollElements as ct, isScrollElement as ft, contains as Q } from "./utils/dom.js";
|
|
13
13
|
import { supportRef as dt } from "./utils/is.js";
|
|
14
14
|
import { d as K } from "./chunk/C2lIz2F9.js";
|
|
15
15
|
import gt from "./utils/mergeProps.js";
|
|
@@ -19,11 +19,12 @@ import { findDOMNode as bt, callbackOriginRef as yt } from "./utils/reactDOM.js"
|
|
|
19
19
|
import j from "./utils/throttleByRaf.js";
|
|
20
20
|
import wt from "react-dom";
|
|
21
21
|
import { useIsFirstRender as Tt } from "./hooks/useIsFirstRender.js";
|
|
22
|
-
import "./chunk/
|
|
23
|
-
import
|
|
24
|
-
|
|
22
|
+
import "./chunk/CSC_V_25.js";
|
|
23
|
+
import Ct from "lodash/isArray.js";
|
|
24
|
+
import J from "lodash/isPlainObject.js";
|
|
25
|
+
const Mt = (h) => {
|
|
25
26
|
const { getContainer: l, children: t } = h, e = pt();
|
|
26
|
-
return (Tt() || e.current === null) && !
|
|
27
|
+
return (Tt() || e.current === null) && !et && (e.current = l()), ht(() => () => {
|
|
27
28
|
const n = e.current;
|
|
28
29
|
n && n.parentNode && (n.parentNode.removeChild(n), e.current = null);
|
|
29
30
|
}, []), e.current ? wt.createPortal(t, e.current) : null;
|
|
@@ -39,8 +40,8 @@ const Ct = (h) => {
|
|
|
39
40
|
bottom: m
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
|
-
function
|
|
43
|
-
if (!t || !h ||
|
|
43
|
+
function vt(h, l, t, e) {
|
|
44
|
+
if (!t || !h || et)
|
|
44
45
|
return { left: 0, width: 0, height: 0, top: 0 };
|
|
45
46
|
const i = (m) => document.documentElement[m] || document.body[m], n = t === document.body ? i("scrollTop") : t.scrollTop, r = t === document.body ? i("scrollLeft") : t.scrollLeft, { left: u, top: y, width: o, height: v } = l, g = t === document.body ? 0 : I(t, e).left, a = t === document.body ? 0 : I(t, e).top, c = y + n - a;
|
|
46
47
|
return {
|
|
@@ -52,7 +53,7 @@ function Mt(h, l, t, e) {
|
|
|
52
53
|
}
|
|
53
54
|
const O = function(h, l, t) {
|
|
54
55
|
return t < h ? h : t > l ? l : t;
|
|
55
|
-
},
|
|
56
|
+
}, Et = (h, l) => {
|
|
56
57
|
let t = 0, e = 0, i = {};
|
|
57
58
|
l ? i = {
|
|
58
59
|
left: 12,
|
|
@@ -62,7 +63,7 @@ const O = function(h, l, t) {
|
|
|
62
63
|
...h
|
|
63
64
|
} : i = { ...h };
|
|
64
65
|
for (const n in i)
|
|
65
|
-
if (
|
|
66
|
+
if (Ct(i[n])) {
|
|
66
67
|
let r = 0;
|
|
67
68
|
["top", "bottom"].indexOf(n) > -1 ? (r = 1, t = i[n][0]) : e = i[n][1], i[n] = i[n][r];
|
|
68
69
|
}
|
|
@@ -71,27 +72,27 @@ const O = function(h, l, t) {
|
|
|
71
72
|
horizontalOffset: t,
|
|
72
73
|
verticalOffset: e
|
|
73
74
|
};
|
|
74
|
-
},
|
|
75
|
+
}, Dt = (h, l, { boundaryDistance: t, position: e }) => l ? {
|
|
75
76
|
left: l.clientX,
|
|
76
77
|
top: l.clientY,
|
|
77
78
|
width: 0,
|
|
78
79
|
height: 0,
|
|
79
80
|
right: l.clientX,
|
|
80
81
|
bottom: l.clientY
|
|
81
|
-
} : I(h, { boundaryDistance: t, position: e }),
|
|
82
|
+
} : I(h, { boundaryDistance: t, position: e }), Ot = (h) => {
|
|
82
83
|
const l = h.offsetWidth, t = h.offsetHeight;
|
|
83
84
|
return {
|
|
84
85
|
width: l,
|
|
85
86
|
height: t
|
|
86
87
|
};
|
|
87
|
-
},
|
|
88
|
+
}, xt = (h) => {
|
|
88
89
|
var r, u;
|
|
89
|
-
const l = h
|
|
90
|
+
const l = h, t = "left" in l ? l.left : "right" in l ? l.right : B, e = "top" in l ? l.top : "bottom" in l ? l.bottom : B, i = (((r = document.documentElement) == null ? void 0 : r.clientHeight) || window.innerHeight) - (e || B), n = (((u = document.documentElement) == null ? void 0 : u.clientWidth) || window.innerWidth) - (t || B);
|
|
90
91
|
return {
|
|
91
92
|
windowHeight: i,
|
|
92
93
|
windowWidth: n
|
|
93
94
|
};
|
|
94
|
-
},
|
|
95
|
+
}, Rt = (h, l, t, e, i) => {
|
|
95
96
|
const {
|
|
96
97
|
autoAlignPopupWidth: n,
|
|
97
98
|
autoAlignPopupMinWidth: r,
|
|
@@ -100,10 +101,10 @@ const O = function(h, l, t) {
|
|
|
100
101
|
} = h;
|
|
101
102
|
if (!t || !l || !e)
|
|
102
103
|
return {};
|
|
103
|
-
const o = {}, v = !h.alignPoint && h.boundaryDistance || {}, g =
|
|
104
|
+
const o = {}, v = !h.alignPoint && h.boundaryDistance || {}, g = Dt(t, u && i, {
|
|
104
105
|
boundaryDistance: v,
|
|
105
106
|
position: h.position
|
|
106
|
-
}), { left: a, top: c, width: f, height: m } =
|
|
107
|
+
}), { left: a, top: c, width: f, height: m } = vt(
|
|
107
108
|
t,
|
|
108
109
|
g,
|
|
109
110
|
e,
|
|
@@ -111,14 +112,14 @@ const O = function(h, l, t) {
|
|
|
111
112
|
boundaryDistance: v,
|
|
112
113
|
position: h.position
|
|
113
114
|
}
|
|
114
|
-
), z =
|
|
115
|
+
), z = Et(h.popupAlign, h.showArrow), V = z.left || 0, H = z.right || 0, k = z.top || 0, F = z.bottom || 0;
|
|
115
116
|
n && (y == null ? void 0 : y.width) === void 0 && (l.style.width = `${t.offsetWidth}px`), r && (l.style.minWidth = `${t.offsetWidth}px`);
|
|
116
|
-
const p =
|
|
117
|
+
const p = Ot(l);
|
|
117
118
|
let M = h.position;
|
|
118
119
|
const T = {}, E = (D) => {
|
|
119
120
|
if (!h.autoFitPosition)
|
|
120
121
|
return;
|
|
121
|
-
const { windowHeight: R, windowWidth: S } =
|
|
122
|
+
const { windowHeight: R, windowWidth: S } = xt(v);
|
|
122
123
|
let L = !1;
|
|
123
124
|
const b = {
|
|
124
125
|
left: a - g.left,
|
|
@@ -157,8 +158,8 @@ const O = function(h, l, t) {
|
|
|
157
158
|
), L = !0) : o.left = b.left + S - p.width), o.left < 0)
|
|
158
159
|
o.left = 0;
|
|
159
160
|
else {
|
|
160
|
-
const
|
|
161
|
-
o.left = Math.min(
|
|
161
|
+
const it = e.scrollWidth - p.width;
|
|
162
|
+
o.left = Math.min(it, o.left);
|
|
162
163
|
}
|
|
163
164
|
return L;
|
|
164
165
|
}, d = z.horizontalOffset || 0, x = z.verticalOffset || 0;
|
|
@@ -222,7 +223,7 @@ function Z(h, l) {
|
|
|
222
223
|
right: n
|
|
223
224
|
};
|
|
224
225
|
}
|
|
225
|
-
const
|
|
226
|
+
const te = [
|
|
226
227
|
"onClick",
|
|
227
228
|
"onMouseEnter",
|
|
228
229
|
"onMouseLeave",
|
|
@@ -232,13 +233,13 @@ const Jt = [
|
|
|
232
233
|
"onContextMenu",
|
|
233
234
|
"onKeyDown"
|
|
234
235
|
];
|
|
235
|
-
function
|
|
236
|
+
function St(h, l) {
|
|
236
237
|
const t = {}, e = { ...h };
|
|
237
238
|
return l.forEach((i) => {
|
|
238
239
|
h && i in h && (t[i] = h[i], delete e[i]);
|
|
239
240
|
}), { picked: t, omitted: e };
|
|
240
241
|
}
|
|
241
|
-
const
|
|
242
|
+
const zt = {
|
|
242
243
|
blurToHide: !0,
|
|
243
244
|
// clickToClose: true,
|
|
244
245
|
classNames: "fadeIn",
|
|
@@ -264,7 +265,7 @@ class tt extends ut {
|
|
|
264
265
|
s(this, "context");
|
|
265
266
|
s(this, "popupContainer");
|
|
266
267
|
s(this, "rootElementRef");
|
|
267
|
-
s(this, "triggerRef",
|
|
268
|
+
s(this, "triggerRef", q());
|
|
268
269
|
// 标志 popup 是否被销毁
|
|
269
270
|
s(this, "triggerRefDestoried");
|
|
270
271
|
s(this, "delayTimer", null);
|
|
@@ -340,9 +341,9 @@ class tt extends ut {
|
|
|
340
341
|
const { componentConfig: e } = this.context ?? {};
|
|
341
342
|
return gt(
|
|
342
343
|
t && J(t) ? t : this.props,
|
|
343
|
-
|
|
344
|
+
zt,
|
|
344
345
|
e == null ? void 0 : e.Trigger,
|
|
345
|
-
t &&
|
|
346
|
+
t && rt(t) ? t : void 0
|
|
346
347
|
);
|
|
347
348
|
});
|
|
348
349
|
s(this, "getRootElement", () => {
|
|
@@ -485,7 +486,7 @@ class tt extends ut {
|
|
|
485
486
|
const t = this.popupContainer, e = this.triggerRef.current, i = this.getRootElement();
|
|
486
487
|
if (!i.offsetParent && !i.getClientRects().length)
|
|
487
488
|
return this.state.popupStyle;
|
|
488
|
-
const n = this.getMergedProps(), { style: r, arrowStyle: u, realPosition: y } =
|
|
489
|
+
const n = this.getMergedProps(), { style: r, arrowStyle: u, realPosition: y } = Rt(
|
|
489
490
|
n,
|
|
490
491
|
e,
|
|
491
492
|
i,
|
|
@@ -574,7 +575,7 @@ class tt extends ut {
|
|
|
574
575
|
"onClickOutside",
|
|
575
576
|
"clickOutsideToClose"
|
|
576
577
|
]), n = this.getPopupElement(), r = this.getRootElement();
|
|
577
|
-
!
|
|
578
|
+
!Q(n, t.target) && !Q(r, t.target) && !this.hasPopupMouseDown && (e == null || e(), i && !this.isBlurToHide() && !this.isHoverTrigger() && this.setPopupVisible(!1));
|
|
578
579
|
});
|
|
579
580
|
s(this, "onKeyDown", (t) => {
|
|
580
581
|
const e = t.key;
|
|
@@ -644,7 +645,7 @@ class tt extends ut {
|
|
|
644
645
|
if (["string", "number"].indexOf(typeof t) > -1 || A.Children.count(t) > 1)
|
|
645
646
|
n = /* @__PURE__ */ N("span", { children: t });
|
|
646
647
|
else if (e && i && (i.__PQB_BUTTON === !0 || i.__PQB_CHECKBOX === !0 || i.__PQB_SWITCH === !0 || i.__PQB_RADIO === !0 || i === "button") && e.props.disabled) {
|
|
647
|
-
const { picked: u, omitted: y } =
|
|
648
|
+
const { picked: u, omitted: y } = St(e.props.style, [
|
|
648
649
|
"position",
|
|
649
650
|
"left",
|
|
650
651
|
"right",
|
|
@@ -703,7 +704,7 @@ class tt extends ut {
|
|
|
703
704
|
} : i || n;
|
|
704
705
|
});
|
|
705
706
|
const i = this.getMergedProps(t), n = "popupVisible" in i ? i.popupVisible : i.defaultPopupVisible;
|
|
706
|
-
this.popupOpen = !!n, this.triggerRef =
|
|
707
|
+
this.popupOpen = !!n, this.triggerRef = q(), this.state = {
|
|
707
708
|
popupVisible: !!n,
|
|
708
709
|
popupStyle: {}
|
|
709
710
|
};
|
|
@@ -788,7 +789,7 @@ class tt extends ut {
|
|
|
788
789
|
this.rootElementRef = P, yt(w, P);
|
|
789
790
|
} : void 0
|
|
790
791
|
}), L = /* @__PURE__ */ N(
|
|
791
|
-
|
|
792
|
+
nt,
|
|
792
793
|
{
|
|
793
794
|
in: !!T,
|
|
794
795
|
timeout: o,
|
|
@@ -869,7 +870,7 @@ class tt extends ut {
|
|
|
869
870
|
}
|
|
870
871
|
)
|
|
871
872
|
}
|
|
872
|
-
), b = T || this.getPopupElement() && !this.triggerRefDestoried ? /* @__PURE__ */ N(
|
|
873
|
+
), b = T || this.getPopupElement() && !this.triggerRefDestoried ? /* @__PURE__ */ N(Mt, { getContainer: this.getContainer, children: L }) : null;
|
|
873
874
|
return k ? /* @__PURE__ */ X(A.Fragment, { children: [
|
|
874
875
|
S,
|
|
875
876
|
b
|
|
@@ -878,6 +879,6 @@ class tt extends ut {
|
|
|
878
879
|
}
|
|
879
880
|
s(tt, "displayName", "Trigger"), s(tt, "contextType", at);
|
|
880
881
|
export {
|
|
881
|
-
|
|
882
|
+
te as EventsByTriggerNeed,
|
|
882
883
|
tt as default
|
|
883
884
|
};
|
package/Typography.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { T as
|
|
1
|
+
import { E as r, P as y, a as s, b as T, T as o } from "./chunk/CGZ0In1p.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as TypographyEllipsis,
|
|
4
|
+
y as TypographyParagraph,
|
|
5
|
+
s as TypographyText,
|
|
6
|
+
T as TypographyTitle,
|
|
7
|
+
o as default
|
|
4
8
|
};
|
package/Upload.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as o } from "./chunk/
|
|
2
|
-
import { S as s, F as t } from "./chunk/
|
|
1
|
+
import { U as o } from "./chunk/Ek8U5CTN.js";
|
|
2
|
+
import { S as s, F as t } from "./chunk/Ek8U5CTN.js";
|
|
3
3
|
export {
|
|
4
|
-
s as
|
|
4
|
+
s as UPLOAD_STATUS,
|
|
5
5
|
t as UploadList,
|
|
6
6
|
o as default
|
|
7
7
|
};
|
package/VerificationCode.js
CHANGED
package/Version.js
CHANGED
package/Watermark.js
CHANGED
|
@@ -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 "./DlLL5JQo.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";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import f from "lodash/isArray.js";
|
|
2
|
+
import l from "lodash/isPlainObject.js";
|
|
3
|
+
import n from "lodash/isString.js";
|
|
4
|
+
import i from "lodash/uniq.js";
|
|
5
|
+
function b(...t) {
|
|
6
|
+
const r = " ", e = t.map((o, p, a) => l(o) ? Object.keys(o).filter((m) => o[m]) : (n(o) || f(o), o)).flat(1 / 0).filter(Boolean).join(r).split(r).filter(Boolean);
|
|
7
|
+
return i(e).join(r);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
b as y
|
|
11
|
+
};
|
|
@@ -3,7 +3,7 @@ import tn from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import we from "lodash/isFunction";
|
|
4
4
|
import on, { forwardRef as Ie, useState as I, useImperativeHandle as rn, useRef as g, useContext as ln, useCallback as S, useEffect as oe } from "react";
|
|
5
5
|
import ye from "../Button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { i as T, a as $e, j as sn, k as an, C as cn, s as un, d as dn, l as y, I as mn } from "./DlLL5JQo.js";
|
|
7
7
|
import "lodash/isEqualWith";
|
|
8
8
|
import { useMergeValue as fn } from "../hooks/useMergeValue.js";
|
|
9
9
|
import "../utils/is.js";
|
|
@@ -18,7 +18,7 @@ import { render as vn, findDOMNode as xn } from "../utils/reactDOM.js";
|
|
|
18
18
|
import { useUpdateEffect as kn } from "../hooks/useUpdateEffect.js";
|
|
19
19
|
import En from "../Portal.js";
|
|
20
20
|
import { P as Te } from "./CLBavO5c.js";
|
|
21
|
-
import { y as Pe } from "./
|
|
21
|
+
import { y as Pe } from "./BAWsPQBM.js";
|
|
22
22
|
import Mn from "../utils/omit.js";
|
|
23
23
|
import wn from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
24
24
|
import yn from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
@@ -3,12 +3,12 @@ import pe from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import fe from "lodash/isFunction";
|
|
4
4
|
import he, { useContext as Ce, useRef as T, useState as d, useCallback as xe, useMemo as ye, useImperativeHandle as ke, useEffect as z } from "react";
|
|
5
5
|
import F from "../Button.js";
|
|
6
|
-
import { d as Ne, I as ge, a as B } from "./
|
|
6
|
+
import { d as Ne, I as ge, a as B } from "./DlLL5JQo.js";
|
|
7
7
|
import { useMergeProps as be } from "../hooks/useMergeProps.js";
|
|
8
8
|
import { useOverflowHidden as we } from "../hooks/useOverflowHidden.js";
|
|
9
9
|
import Ie from "../Portal.js";
|
|
10
10
|
import { P as j } from "./CLBavO5c.js";
|
|
11
|
-
import { y as b } from "./
|
|
11
|
+
import { y as b } from "./BAWsPQBM.js";
|
|
12
12
|
import { isServerRendering as ve, contains as Pe } from "../utils/dom.js";
|
|
13
13
|
import { d as $e } from "./C2lIz2F9.js";
|
|
14
14
|
import Ee from "../utils/omit.js";
|