@unicom-cloud/ui 0.8.62 → 0.8.64
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 +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +4 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +1 -1
- package/DatePicker.js +1026 -1016
- package/Descriptions.js +10 -10
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +26 -25
- package/Empty.js +1 -1
- package/Form.js +2 -2
- package/Grid.js +2 -2
- package/Icon.js +2 -1
- package/IconHover.js +1 -1
- package/Image.js +4 -1
- package/Input.js +11 -2
- package/InputNumber.js +2 -2
- package/InputTag.js +1 -1
- package/Layout.js +24 -20
- package/Link.js +1 -1
- package/List.js +4 -3
- package/Mentions.js +3 -3
- package/Menu.js +7 -2
- package/Message.js +4 -3
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +4 -3
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +4 -2
- package/Rate.js +1 -1
- package/ResizeBox.js +66 -64
- package/Result.js +1 -1
- package/Select.js +4 -1
- package/SelectView.js +3 -3
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +50 -46
- package/Spin.js +1 -1
- package/Statistic.js +28 -27
- package/Steps.js +40 -38
- package/Switch.js +2 -2
- package/Table.js +7 -4
- package/Tabs.js +6 -2
- package/Tag.js +1 -1
- package/TimePicker.js +37 -36
- package/Timeline.js +4 -2
- package/Tooltip.js +1 -1
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -1
- package/Trigger.js +2 -2
- package/Typography.js +6 -2
- package/Upload.js +5 -4
- package/VerificationCode.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{CHyuuVxl.js → -IELMT_x.js} +1 -1
- package/chunk/{CV1kLw5Z.js → B5GDq8NJ.js} +8 -6
- package/chunk/{qpd2axxs.js → B68hRpYG.js} +2 -2
- package/chunk/{B8SZFOjt.js → BCxoi4Kf.js} +22 -20
- package/chunk/{DRp7voqz.js → BHnRi7Xh.js} +3 -3
- package/chunk/{C6fEFlPt.js → BJSjbYSN.js} +2 -2
- package/chunk/{BlNFmhNa.js → BSBJlVZH.js} +3 -3
- package/chunk/{yESVS-qX.js → BfHNSLva.js} +3 -3
- package/chunk/{B4-WpgY2.js → BtIG250j.js} +7 -4
- package/chunk/{Dtm4BmKB.js → BwSpYGK-.js} +1 -1
- package/chunk/{KchYsivk.js → CA69nxbj.js} +1 -1
- package/chunk/{D3VMG9V1.js → CAhODOfT.js} +3 -2
- package/chunk/{tOFzwzpT.js → CAiaqaWc.js} +1 -1
- package/chunk/{Wum88vrW.js → CBgwLBAC.js} +40 -38
- package/chunk/{Bp3XomF8.js → CLBavO5c.js} +23 -20
- package/chunk/{CT1lZ7ss.js → CTF5o0OX.js} +1 -1
- package/chunk/{C4eJ9vCf.js → CYQ1EE4h.js} +2 -2
- package/chunk/{DRQ1v6Ux.js → CZfGDXaB.js} +1 -1
- package/chunk/{B0oDiPqE.js → CtUTlwlQ.js} +1 -1
- package/chunk/{DGasAUHE.js → CxpFYX4B.js} +11 -11
- package/chunk/{BnqeQYIZ.js → D-oHJail.js} +59 -55
- package/chunk/{CazXy0r4.js → D01b7bWX.js} +50 -45
- package/chunk/{C8o-VGyc.js → DPJEIBKZ.js} +3 -3
- package/chunk/{-Z968QpN.js → DQ561AmR.js} +3 -3
- package/chunk/{CDJ1EnJ2.js → QlYCEvCX.js} +1 -1
- package/chunk/{AqH9yP_J.js → Yvz-hPQB.js} +2 -2
- package/chunk/{nbEvdwT0.js → _m8hLSsx.js} +4 -2
- package/chunk/{CJnshq6A.js → oR9TkA35.js} +2 -2
- package/chunk/{BXWxA-tS.js → pq-36BDW.js} +5 -3
- package/chunk/{mfn4EgmQ.js → tW_FgNSv.js} +1 -1
- package/index.js +540 -472
- package/locale/zh-CN.js +8 -0
- package/package.json +1 -1
- package/types/calendar/hook/useCellClassName.d.ts +2 -1
- package/types/checkbox/IconCheck.d.ts +2 -1
- package/types/color-picker/hooks/useColorPicker.d.ts +3 -8
- package/types/date-picker/hook/useCellClassName.d.ts +2 -1
- package/types/date-picker/index.d.ts +7 -0
- 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 +25 -25
- 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/locale/interface.d.ts +1 -0
- package/types/locale/zh-CN.d.ts +14 -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/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 +4 -1
- 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/is.d.ts +2 -0
- 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/verification-code/VerificationCode.d.ts +2 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dayjs.js +50 -49
- package/utils/index.js +161 -148
- package/utils/is.js +125 -112
|
@@ -5,21 +5,24 @@ import v from "react-dom";
|
|
|
5
5
|
import { supportRef as U } from "../utils/is.js";
|
|
6
6
|
import { findDOMNode as _, callbackOriginRef as W } from "../utils/reactDOM.js";
|
|
7
7
|
function X(n, e) {
|
|
8
|
-
return n.classList ? !!e && n.classList.contains(e) :
|
|
9
|
-
|
|
8
|
+
return n.classList ? !!e && n.classList.contains(e) : ` ${n.className.baseVal || n.className} `.indexOf(
|
|
9
|
+
` ${e} `
|
|
10
10
|
) !== -1;
|
|
11
11
|
}
|
|
12
12
|
function G(n, e) {
|
|
13
|
-
n.classList ? n.classList.add(e) : X(n, e) || (typeof n.className == "string" ? n.className = n.className
|
|
13
|
+
n.classList ? n.classList.add(e) : X(n, e) || (typeof n.className == "string" ? n.className = `${n.className} ${e}` : n.setAttribute(
|
|
14
14
|
"class",
|
|
15
|
-
|
|
15
|
+
`${n.className && n.className.baseVal || ""} ${e}`
|
|
16
16
|
));
|
|
17
17
|
}
|
|
18
18
|
function V(n, e) {
|
|
19
|
-
return n.replace(new RegExp(
|
|
19
|
+
return n.replace(new RegExp(`(^|\\s)${e}(?:\\s|$)`, "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
20
20
|
}
|
|
21
21
|
function z(n, e) {
|
|
22
|
-
n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className = V(
|
|
22
|
+
n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className = V(
|
|
23
|
+
n.className,
|
|
24
|
+
e
|
|
25
|
+
) : n.setAttribute(
|
|
23
26
|
"class",
|
|
24
27
|
V(
|
|
25
28
|
n.className && n.className.baseVal || "",
|
|
@@ -395,7 +398,7 @@ u.ENTERING = p;
|
|
|
395
398
|
u.ENTERED = h;
|
|
396
399
|
u.EXITING = R;
|
|
397
400
|
const Q = (n, e) => n && e && e.split(" ").forEach((t) => G(n, t)), D = (n, e) => n && e && e.split(" ").forEach((t) => z(n, t));
|
|
398
|
-
class
|
|
401
|
+
class $ extends c.Component {
|
|
399
402
|
constructor() {
|
|
400
403
|
super(...arguments), d(this, "appliedClasses", {
|
|
401
404
|
appear: {},
|
|
@@ -458,10 +461,10 @@ class L extends c.Component {
|
|
|
458
461
|
);
|
|
459
462
|
}
|
|
460
463
|
}
|
|
461
|
-
d(
|
|
464
|
+
d($, "defaultProps", {
|
|
462
465
|
classNames: ""
|
|
463
466
|
});
|
|
464
|
-
|
|
467
|
+
$.propTypes = {
|
|
465
468
|
...u.propTypes,
|
|
466
469
|
/**
|
|
467
470
|
* The animation classNames applied to the component as it appears, enters,
|
|
@@ -586,7 +589,7 @@ L.propTypes = {
|
|
|
586
589
|
*/
|
|
587
590
|
onExited: o.func
|
|
588
591
|
};
|
|
589
|
-
function
|
|
592
|
+
function L(n, e) {
|
|
590
593
|
let t = (i) => e && y(i) ? e(i) : i, s = /* @__PURE__ */ Object.create(null);
|
|
591
594
|
return n && F.map(n, (i) => i).forEach((i) => {
|
|
592
595
|
s[i.key] = t(i);
|
|
@@ -617,7 +620,7 @@ function g(n, e, t) {
|
|
|
617
620
|
return t[e] != null ? t[e] : n.props[e];
|
|
618
621
|
}
|
|
619
622
|
function Z(n, e) {
|
|
620
|
-
return
|
|
623
|
+
return L(n.children, (t) => S(t, {
|
|
621
624
|
onExited: e.bind(null, t),
|
|
622
625
|
in: !0,
|
|
623
626
|
appear: g(t, "appear", n),
|
|
@@ -626,7 +629,7 @@ function Z(n, e) {
|
|
|
626
629
|
}));
|
|
627
630
|
}
|
|
628
631
|
function ee(n, e, t) {
|
|
629
|
-
let s =
|
|
632
|
+
let s = L(n.children), i = Y(e, s);
|
|
630
633
|
return Object.keys(i).forEach((r) => {
|
|
631
634
|
let a = i[r];
|
|
632
635
|
if (!y(a)) return;
|
|
@@ -648,7 +651,7 @@ const te = Object.values || ((n) => Object.keys(n).map((e) => n[e])), ne = {
|
|
|
648
651
|
component: "div",
|
|
649
652
|
childFactory: (n) => n
|
|
650
653
|
};
|
|
651
|
-
class
|
|
654
|
+
class M extends c.Component {
|
|
652
655
|
constructor(e, t) {
|
|
653
656
|
super(e, t);
|
|
654
657
|
const s = this.handleExited.bind(this);
|
|
@@ -674,7 +677,7 @@ class $ extends c.Component {
|
|
|
674
677
|
}
|
|
675
678
|
// node is `undefined` when user provided `nodeRef` prop
|
|
676
679
|
handleExited(e, t) {
|
|
677
|
-
let s =
|
|
680
|
+
let s = L(this.props.children);
|
|
678
681
|
e.key in s || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((i) => {
|
|
679
682
|
let r = { ...i.children };
|
|
680
683
|
return delete r[e.key], { children: r };
|
|
@@ -685,7 +688,7 @@ class $ extends c.Component {
|
|
|
685
688
|
return delete s.appear, delete s.enter, delete s.exit, e === null ? /* @__PURE__ */ m(O.Provider, { value: i, children: r }) : /* @__PURE__ */ m(O.Provider, { value: i, children: /* @__PURE__ */ m(e, { ...s, children: r }) });
|
|
686
689
|
}
|
|
687
690
|
}
|
|
688
|
-
|
|
691
|
+
M.propTypes = {
|
|
689
692
|
/**
|
|
690
693
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
691
694
|
* behavior by providing a `component` prop.
|
|
@@ -738,7 +741,7 @@ $.propTypes = {
|
|
|
738
741
|
*/
|
|
739
742
|
childFactory: o.func
|
|
740
743
|
};
|
|
741
|
-
|
|
744
|
+
M.defaultProps = ne;
|
|
742
745
|
class se extends c.Component {
|
|
743
746
|
constructor() {
|
|
744
747
|
super(...arguments), d(this, "handleEnter", (...e) => this.handleLifecycle("onEnter", 0, e)), d(this, "handleEntering", (...e) => this.handleLifecycle("onEntering", 0, e)), d(this, "handleEntered", (...e) => this.handleLifecycle("onEntered", 0, e)), d(this, "handleExit", (...e) => this.handleLifecycle("onExit", 1, e)), d(this, "handleExiting", (...e) => this.handleLifecycle("onExiting", 1, e)), d(this, "handleExited", (...e) => this.handleLifecycle("onExited", 1, e));
|
|
@@ -752,7 +755,7 @@ class se extends c.Component {
|
|
|
752
755
|
}
|
|
753
756
|
render() {
|
|
754
757
|
const { children: e, in: t, ...s } = this.props, [i, r] = c.Children.toArray(e);
|
|
755
|
-
return delete s.onEnter, delete s.onEntering, delete s.onEntered, delete s.onExit, delete s.onExiting, delete s.onExited, /* @__PURE__ */ m(
|
|
758
|
+
return delete s.onEnter, delete s.onEntering, delete s.onEntered, delete s.onExit, delete s.onExiting, delete s.onExited, /* @__PURE__ */ m(M, { ...s, children: t ? c.cloneElement(i, {
|
|
756
759
|
key: "first",
|
|
757
760
|
onEnter: this.handleEnter,
|
|
758
761
|
onEntering: this.handleEntering,
|
|
@@ -897,13 +900,13 @@ function Ce(n) {
|
|
|
897
900
|
n[a] && (t[a] = (l, ...E) => {
|
|
898
901
|
n[a](s.current, ...E);
|
|
899
902
|
});
|
|
900
|
-
}), /* @__PURE__ */ m(
|
|
903
|
+
}), /* @__PURE__ */ m($, { ...t, nodeRef: i.current ? s : void 0, children: r });
|
|
901
904
|
}
|
|
902
905
|
export {
|
|
903
|
-
|
|
906
|
+
$,
|
|
904
907
|
w as I,
|
|
905
908
|
se as J,
|
|
906
909
|
Ce as P,
|
|
907
|
-
|
|
910
|
+
M as _,
|
|
908
911
|
u as h
|
|
909
912
|
};
|
|
@@ -3,12 +3,12 @@ import U from "@unicom-cloud/icons/IconUiCaretLeft";
|
|
|
3
3
|
import L from "@unicom-cloud/icons/IconUiCaretRight";
|
|
4
4
|
import V from "lodash/isFunction";
|
|
5
5
|
import M, { useContext as K, useRef as A, createContext as B } from "react";
|
|
6
|
-
import { d as T, I as S } from "./
|
|
6
|
+
import { d as T, I as S } from "./B5GDq8NJ.js";
|
|
7
7
|
import { useMergeProps as q } from "../hooks/useMergeProps.js";
|
|
8
8
|
import { useMergeValue as D } from "../hooks/useMergeValue.js";
|
|
9
9
|
import { y as u } from "./BzPkh4Zv.js";
|
|
10
10
|
import G from "../utils/omit.js";
|
|
11
|
-
import { h as J } from "./
|
|
11
|
+
import { h as J } from "./CLBavO5c.js";
|
|
12
12
|
import { useKeyboardEvent as Q } from "../hooks/useKeyboardEvent.js";
|
|
13
13
|
import { off as W, on as X } from "../utils/dom.js";
|
|
14
14
|
function Y(l, g) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as $, jsxs as Q, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as j, useEffect as X, useCallback as V, createContext as Ce, useContext as ie } from "react";
|
|
3
3
|
import se from "../Button.js";
|
|
4
|
-
import { d as He } from "./
|
|
4
|
+
import { d as He } from "./B5GDq8NJ.js";
|
|
5
5
|
import { y as ee } from "./BzPkh4Zv.js";
|
|
6
6
|
import { dayjs as g, methods as Y, getDayjsValue as Oe, getNow as re, toLocal as ce } from "../utils/dayjs.js";
|
|
7
7
|
import { padStart as C } from "../utils/pad.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as z } from "react/jsx-runtime";
|
|
|
2
2
|
import Q from "lodash/isNumber";
|
|
3
3
|
import U from "lodash/isPlainObject";
|
|
4
4
|
import { createContext as L, forwardRef as T, useContext as H, useMemo as W, useState as X, useRef as Y, useEffect as Z } from "react";
|
|
5
|
-
import { d as D } from "./
|
|
5
|
+
import { d as D } from "./B5GDq8NJ.js";
|
|
6
6
|
import { useMergeProps as F } from "../hooks/useMergeProps.js";
|
|
7
7
|
import { y as q } from "./BzPkh4Zv.js";
|
|
8
8
|
import _ from "../utils/omit.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as N, useContext as
|
|
3
|
-
import { d as D } from "./
|
|
1
|
+
import { jsx as R, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import w, { forwardRef as N, useContext as F, useRef as j, createElement as z } from "react";
|
|
3
|
+
import { d as D } from "./B5GDq8NJ.js";
|
|
4
4
|
import { useMergeProps as E } from "../hooks/useMergeProps.js";
|
|
5
|
-
import { I as K } from "./
|
|
5
|
+
import { I as K } from "./BwSpYGK-.js";
|
|
6
6
|
import { y as u } from "./BzPkh4Zv.js";
|
|
7
7
|
import { useVerificationCode as L } from "../hooks/use-verification-code.js";
|
|
8
8
|
const M = {
|
|
@@ -10,19 +10,19 @@ const M = {
|
|
|
10
10
|
};
|
|
11
11
|
function C(y, _) {
|
|
12
12
|
var d;
|
|
13
|
-
const o =
|
|
13
|
+
const o = F(D), e = E(
|
|
14
14
|
y,
|
|
15
15
|
M,
|
|
16
16
|
(d = o.componentConfig) == null ? void 0 : d.VerificationCode
|
|
17
|
-
), { size: l, separator: s, status:
|
|
17
|
+
), { size: l, separator: s, status: c, length: g, masked: h, disabled: v } = e, f = j([]), { value: $, filledValue: P, getInputProps: x } = L({
|
|
18
18
|
defaultValue: e.defaultValue,
|
|
19
19
|
value: e.value,
|
|
20
20
|
length: g,
|
|
21
|
-
getInputRefList: () =>
|
|
21
|
+
getInputRefList: () => f.current,
|
|
22
22
|
onChange: e.onChange,
|
|
23
23
|
onFinish: e.onFinish
|
|
24
24
|
}), i = o.getPrefixCls("verification-code"), n = o.getPrefixCls("input");
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ R(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: u(`${i}`, e.className, {
|
|
@@ -31,7 +31,7 @@ function C(y, _) {
|
|
|
31
31
|
style: e.style,
|
|
32
32
|
children: P.map((V, r) => {
|
|
33
33
|
const { onChange: m, onClick: I, onPaste: O, onKeyDown: k, ...p } = x(r);
|
|
34
|
-
return /* @__PURE__ */ w
|
|
34
|
+
return /* @__PURE__ */ b(w.Fragment, { children: [
|
|
35
35
|
/* @__PURE__ */ z(
|
|
36
36
|
K,
|
|
37
37
|
{
|
|
@@ -39,12 +39,12 @@ function C(y, _) {
|
|
|
39
39
|
readOnly: e.readOnly,
|
|
40
40
|
className: u(n, `${i}-input`, {
|
|
41
41
|
[`${n}-size-${l}`]: l,
|
|
42
|
-
[`${n}-${
|
|
42
|
+
[`${n}-${c}`]: c,
|
|
43
43
|
[`${n}-disabled`]: v,
|
|
44
44
|
[`${n}-rtl`]: o.rtl
|
|
45
45
|
}),
|
|
46
46
|
ref: (t) => {
|
|
47
|
-
|
|
47
|
+
f.current[r] = t == null ? void 0 : t.dom;
|
|
48
48
|
},
|
|
49
49
|
...p,
|
|
50
50
|
key: p.key,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as Z, jsx as l, Fragment as xt } from "react/jsx-runtime";
|
|
2
|
-
import rt, { forwardRef as U, useContext as lt, useRef as X, useState as J, useMemo as nt, useEffect as z, useCallback as
|
|
3
|
-
import { d as ct } from "./
|
|
2
|
+
import rt, { forwardRef as U, useContext as lt, useRef as X, useState as J, useMemo as nt, useEffect as z, useCallback as bt, useImperativeHandle as vt } from "react";
|
|
3
|
+
import { d as ct } from "./B5GDq8NJ.js";
|
|
4
4
|
import { useMergeProps as Tt } from "../hooks/useMergeProps.js";
|
|
5
5
|
import { useMergeValue as gt } from "../hooks/useMergeValue.js";
|
|
6
6
|
/* empty css */
|
|
@@ -13,7 +13,7 @@ import "../hooks/useIntersectionObserver.js";
|
|
|
13
13
|
import "../utils/reactDOM.js";
|
|
14
14
|
import "./DApXtulb.js";
|
|
15
15
|
import "./D_-UD4vO.js";
|
|
16
|
-
import "./
|
|
16
|
+
import "./CTF5o0OX.js";
|
|
17
17
|
import "../utils/dayjs.js";
|
|
18
18
|
import "lodash/camelCase";
|
|
19
19
|
import "lodash/capitalize";
|
|
@@ -39,7 +39,7 @@ import "lodash/startCase.js";
|
|
|
39
39
|
import "lodash/upperFirst.js";
|
|
40
40
|
import { y as _ } from "./BzPkh4Zv.js";
|
|
41
41
|
import Lt from "lodash/isString";
|
|
42
|
-
import "./
|
|
42
|
+
import "./CLBavO5c.js";
|
|
43
43
|
import "lodash/escapeRegExp";
|
|
44
44
|
import Rt from "lodash/isArray";
|
|
45
45
|
import K from "lodash/isPlainObject";
|
|
@@ -48,7 +48,7 @@ import "lodash/isFunction";
|
|
|
48
48
|
import "./BmO1y0vr.js";
|
|
49
49
|
import "../Affix.js";
|
|
50
50
|
import "../Alert.js";
|
|
51
|
-
import "
|
|
51
|
+
import "./-IELMT_x.js";
|
|
52
52
|
import "../AutoComplete.js";
|
|
53
53
|
import "../Avatar.js";
|
|
54
54
|
import "../BackTop.js";
|
|
@@ -58,41 +58,41 @@ import "../Button.js";
|
|
|
58
58
|
import "../Calendar.js";
|
|
59
59
|
import "../Card.js";
|
|
60
60
|
import "../Carousel.js";
|
|
61
|
-
import "./
|
|
62
|
-
import "./
|
|
63
|
-
import "./
|
|
61
|
+
import "./BfHNSLva.js";
|
|
62
|
+
import "./QlYCEvCX.js";
|
|
63
|
+
import "./CYQ1EE4h.js";
|
|
64
64
|
import "../Comment.js";
|
|
65
65
|
import Mt from "../Copy.js";
|
|
66
66
|
import "../DatePicker.js";
|
|
67
67
|
import "../Descriptions.js";
|
|
68
68
|
import "../Divider.js";
|
|
69
|
-
import "./
|
|
69
|
+
import "./oR9TkA35.js";
|
|
70
70
|
import "../Dropdown.js";
|
|
71
71
|
import "../Form.js";
|
|
72
72
|
import "../Grid.js";
|
|
73
73
|
import "../Icon.js";
|
|
74
|
-
import "./
|
|
75
|
-
import { I as Wt } from "./
|
|
76
|
-
import "./
|
|
74
|
+
import "./Yvz-hPQB.js";
|
|
75
|
+
import { I as Wt } from "./D01b7bWX.js";
|
|
76
|
+
import "./DPJEIBKZ.js";
|
|
77
77
|
import "../Layout.js";
|
|
78
78
|
import "../Link.js";
|
|
79
79
|
import "../List.js";
|
|
80
80
|
import "../Mentions.js";
|
|
81
|
-
import "./
|
|
82
|
-
import "./
|
|
81
|
+
import "./BtIG250j.js";
|
|
82
|
+
import "./BJSjbYSN.js";
|
|
83
83
|
import "../PageHeader.js";
|
|
84
|
-
import "./
|
|
84
|
+
import "./BHnRi7Xh.js";
|
|
85
85
|
import "../Popconfirm.js";
|
|
86
86
|
import Bt from "../Popover.js";
|
|
87
87
|
import "../Portal.js";
|
|
88
88
|
import "../Progress.js";
|
|
89
89
|
import "../ColorPicker.js";
|
|
90
90
|
import "../Loading.js";
|
|
91
|
-
import "./
|
|
91
|
+
import "./BCxoi4Kf.js";
|
|
92
92
|
import "../Rate.js";
|
|
93
93
|
import "../ResizeBox.js";
|
|
94
94
|
import "../Result.js";
|
|
95
|
-
import "./
|
|
95
|
+
import "./_m8hLSsx.js";
|
|
96
96
|
import "../Skeleton.js";
|
|
97
97
|
import "../Slider.js";
|
|
98
98
|
import "../Space.js";
|
|
@@ -107,16 +107,16 @@ import "../Steps.js";
|
|
|
107
107
|
import "../SuspenseFallbackTest.js";
|
|
108
108
|
import "../Switch.js";
|
|
109
109
|
import "../Table.js";
|
|
110
|
-
import "./
|
|
110
|
+
import "./pq-36BDW.js";
|
|
111
111
|
import "../Tag.js";
|
|
112
112
|
import "../TimePicker.js";
|
|
113
|
-
import "./
|
|
113
|
+
import "./CAhODOfT.js";
|
|
114
114
|
import ut from "../Tooltip.js";
|
|
115
115
|
import "../Transfer.js";
|
|
116
116
|
import "./Cqyp4qni.js";
|
|
117
117
|
import ft from "lodash/isUndefined";
|
|
118
|
-
import "./
|
|
119
|
-
import "./
|
|
118
|
+
import "./BSBJlVZH.js";
|
|
119
|
+
import "./CBgwLBAC.js";
|
|
120
120
|
import "lodash/isEqual";
|
|
121
121
|
import "react-dom";
|
|
122
122
|
import { useUpdateEffect as Et } from "../hooks/useUpdateEffect.js";
|
|
@@ -126,9 +126,9 @@ import Dt from "../utils/throttleByRafV2.js";
|
|
|
126
126
|
import _t from "@unicom-cloud/icons/IconUiEdit";
|
|
127
127
|
import { useKeyboardEvent as Vt } from "../hooks/useKeyboardEvent.js";
|
|
128
128
|
import { useIsomorphicLayoutEffect as dt } from "../hooks/useIsomorphicLayoutEffect.js";
|
|
129
|
-
import "
|
|
130
|
-
import "./
|
|
131
|
-
import "./
|
|
129
|
+
import "./DQ561AmR.js";
|
|
130
|
+
import "./CxpFYX4B.js";
|
|
131
|
+
import "./tW_FgNSv.js";
|
|
132
132
|
const I = [];
|
|
133
133
|
for (let t = 0; t < 256; ++t)
|
|
134
134
|
I.push((t + 256).toString(16).slice(1));
|
|
@@ -152,14 +152,14 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
152
152
|
disabled: y,
|
|
153
153
|
showTooltip: k,
|
|
154
154
|
children: d,
|
|
155
|
-
expandable:
|
|
155
|
+
expandable: v,
|
|
156
156
|
expandRender: V,
|
|
157
157
|
onExpand: $,
|
|
158
158
|
onEllipsis: i
|
|
159
159
|
} = c, { locale: u } = s, R = kt ? !1 : /^((?!chrome|android).)*safari/i.test((navigator == null ? void 0 : navigator.userAgent) ?? ""), T = X(null), M = X(null), [E, L] = J(""), [j, W] = J(!1), S = X(null), C = X(null), [r, B] = gt(!1, {
|
|
160
160
|
defaultValue: c.defaultExpanded,
|
|
161
161
|
value: c.expanded
|
|
162
|
-
}), [h, G] = J(!1), O = nt(() => K(
|
|
162
|
+
}), [h, G] = J(!1), O = nt(() => K(v) ? !v.single && f === 1 : f === 1, [f, v]), b = nt(() => K(k) ? {
|
|
163
163
|
tooltip: !0,
|
|
164
164
|
tooltipProps: k
|
|
165
165
|
} : {
|
|
@@ -172,7 +172,7 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
172
172
|
e && L(e);
|
|
173
173
|
}
|
|
174
174
|
}, [d, M]);
|
|
175
|
-
const a = s.getPrefixCls("ellipsis"), Q = () => V ? V(r) : /* @__PURE__ */ l("span", { className: `${a}-action-text`, children: r ? u.Typography.fold : u.Typography.unfold }), H = () =>
|
|
175
|
+
const a = s.getPrefixCls("ellipsis"), Q = () => V ? V(r) : /* @__PURE__ */ l("span", { className: `${a}-action-text`, children: r ? u.Typography.fold : u.Typography.unfold }), H = () => v && h ? /* @__PURE__ */ l(
|
|
176
176
|
"div",
|
|
177
177
|
{
|
|
178
178
|
className: _(`${a}-action`, {
|
|
@@ -183,7 +183,7 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
183
183
|
},
|
|
184
184
|
children: Q()
|
|
185
185
|
}
|
|
186
|
-
) : null, A =
|
|
186
|
+
) : null, A = bt(
|
|
187
187
|
yt(() => {
|
|
188
188
|
C.current && S.current && ((O ? C.current.offsetWidth > S.current.offsetWidth : C.current.offsetHeight > S.current.offsetHeight) ? h === !1 && (G(!0), i == null || i(!0)) : h === !0 && (G(!1), i == null || i(!1)));
|
|
189
189
|
}),
|
|
@@ -222,7 +222,7 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
222
222
|
"div",
|
|
223
223
|
{
|
|
224
224
|
className: _(`${a}-content`, `${a}-multiple`),
|
|
225
|
-
title: !
|
|
225
|
+
title: !b.tooltip && h && !r ? E : void 0,
|
|
226
226
|
children: [
|
|
227
227
|
!r && H(),
|
|
228
228
|
/* @__PURE__ */ l(
|
|
@@ -254,14 +254,14 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
254
254
|
MozBoxOrient: "vertical",
|
|
255
255
|
WebkitLineClamp: f
|
|
256
256
|
},
|
|
257
|
-
title: !
|
|
257
|
+
title: !b.tooltip && h && !r ? E : void 0,
|
|
258
258
|
children: [
|
|
259
259
|
!r && H(),
|
|
260
260
|
/* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }),
|
|
261
261
|
r && H()
|
|
262
262
|
]
|
|
263
263
|
}
|
|
264
|
-
), D = () => y ? /* @__PURE__ */ l("div", { className: `${a}-content`, children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) :
|
|
264
|
+
), D = () => y ? /* @__PURE__ */ l("div", { className: `${a}-content`, children: /* @__PURE__ */ l("span", { ref: M, className: `${a}-text`, children: d }) }) : b.tooltip ? /* @__PURE__ */ l(
|
|
265
265
|
ut,
|
|
266
266
|
{
|
|
267
267
|
content: E,
|
|
@@ -273,7 +273,7 @@ const jt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(cr
|
|
|
273
273
|
onVisibleChange: (e) => {
|
|
274
274
|
e ? h && !r && W(!0) : W(!1);
|
|
275
275
|
},
|
|
276
|
-
...
|
|
276
|
+
...b.tooltipProps,
|
|
277
277
|
children: F()
|
|
278
278
|
}
|
|
279
279
|
) : F();
|
|
@@ -295,7 +295,7 @@ function qt(t, o) {
|
|
|
295
295
|
d.current.dom.setSelectionRange(R, R);
|
|
296
296
|
}
|
|
297
297
|
}, []);
|
|
298
|
-
function
|
|
298
|
+
function v() {
|
|
299
299
|
var i;
|
|
300
300
|
N(!1), (i = p.onEnd) == null || i.call(p, k);
|
|
301
301
|
}
|
|
@@ -304,7 +304,7 @@ function qt(t, o) {
|
|
|
304
304
|
(u = p.onChange) == null || u.call(p, i);
|
|
305
305
|
}
|
|
306
306
|
function $() {
|
|
307
|
-
|
|
307
|
+
v();
|
|
308
308
|
}
|
|
309
309
|
return /* @__PURE__ */ l("div", { className: y, style: f, ref: o, children: /* @__PURE__ */ l(
|
|
310
310
|
Wt.TextArea,
|
|
@@ -315,7 +315,7 @@ function qt(t, o) {
|
|
|
315
315
|
value: k,
|
|
316
316
|
autoSize: !0,
|
|
317
317
|
onChange: V,
|
|
318
|
-
onPressEnter:
|
|
318
|
+
onPressEnter: v
|
|
319
319
|
}
|
|
320
320
|
) });
|
|
321
321
|
}
|
|
@@ -332,10 +332,10 @@ function Xt(t) {
|
|
|
332
332
|
onClickExpand: y,
|
|
333
333
|
forceShowExpand: k,
|
|
334
334
|
isEllipsis: d,
|
|
335
|
-
currentContext:
|
|
336
|
-
} = t, V = Vt(), { getPrefixCls: $, locale: i } =
|
|
337
|
-
var
|
|
338
|
-
(
|
|
335
|
+
currentContext: v = {}
|
|
336
|
+
} = t, V = Vt(), { getPrefixCls: $, locale: i } = v, u = $("typography"), R = K(N) ? N : {}, T = K(c) ? c : {}, M = Rt(R.expandNodes) ? R.expandNodes : [(C = i == null ? void 0 : i.Typography) == null ? void 0 : C.fold, (r = i == null ? void 0 : i.Typography) == null ? void 0 : r.unfold], E = (O) => {
|
|
337
|
+
var b;
|
|
338
|
+
(b = T.onStart) == null || b.call(T, st(o), O), f(!0);
|
|
339
339
|
}, L = K(s) ? { ...s } : {};
|
|
340
340
|
L.text === void 0 && (L.text = st(o));
|
|
341
341
|
const j = !!s && /* @__PURE__ */ l(
|
|
@@ -431,7 +431,7 @@ function Ut(t) {
|
|
|
431
431
|
onEllipsis: y,
|
|
432
432
|
suffix: k,
|
|
433
433
|
expandNodes: d,
|
|
434
|
-
expandable:
|
|
434
|
+
expandable: v,
|
|
435
435
|
ellipsisStr: V
|
|
436
436
|
} = t, $ = X(), i = X(), [u, R] = J([0, 0, 0]), [T, M] = J(0), [E, L] = J(
|
|
437
437
|
4
|
|
@@ -445,12 +445,12 @@ function Ut(t) {
|
|
|
445
445
|
return x.forEach((g) => {
|
|
446
446
|
G(g) ? e += String(g).length : e += 1;
|
|
447
447
|
}), e;
|
|
448
|
-
},
|
|
448
|
+
}, b = nt(() => O(B), [B]), a = yt(
|
|
449
449
|
(x) => R(x)
|
|
450
450
|
), Q = (x) => {
|
|
451
451
|
const e = [];
|
|
452
452
|
let g = 0;
|
|
453
|
-
if (x >=
|
|
453
|
+
if (x >= b)
|
|
454
454
|
return B;
|
|
455
455
|
for (const P in B) {
|
|
456
456
|
const n = B[P];
|
|
@@ -470,14 +470,14 @@ function Ut(t) {
|
|
|
470
470
|
!m || f || N ? (L(
|
|
471
471
|
3
|
|
472
472
|
/* MEASURE_END */
|
|
473
|
-
), r(m), R([0,
|
|
473
|
+
), r(m), R([0, b, b])) : (r(!0), L(
|
|
474
474
|
1
|
|
475
475
|
/* BEFORE_MEASURE */
|
|
476
476
|
));
|
|
477
477
|
} else if (E === 1) {
|
|
478
478
|
const P = (e = $ == null ? void 0 : $.current) == null ? void 0 : e.offsetWidth, n = s * c;
|
|
479
479
|
if (P > s * c) {
|
|
480
|
-
const m = Math.max(n / P - 0.1, 0), w = Math.min(n / P + 0.1, 1), q = Math.floor(m *
|
|
480
|
+
const m = Math.max(n / P - 0.1, 0), w = Math.min(n / P + 0.1, 1), q = Math.floor(m * b), Y = Math.ceil(w * b), et = Math.floor(
|
|
481
481
|
(q + Y) / 2
|
|
482
482
|
);
|
|
483
483
|
h.current = et;
|
|
@@ -501,7 +501,7 @@ function Ut(t) {
|
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
dt(() => {
|
|
504
|
-
t.rows && c ? (R([0, Math.floor(
|
|
504
|
+
t.rows && c ? (R([0, Math.floor(b / 2), b]), L(
|
|
505
505
|
0
|
|
506
506
|
/* INIT */
|
|
507
507
|
)) : L(
|
|
@@ -509,13 +509,13 @@ function Ut(t) {
|
|
|
509
509
|
/* NO_NEED_ELLIPSIS */
|
|
510
510
|
);
|
|
511
511
|
}, [
|
|
512
|
-
|
|
512
|
+
b,
|
|
513
513
|
f,
|
|
514
514
|
N,
|
|
515
515
|
c,
|
|
516
516
|
k,
|
|
517
517
|
d,
|
|
518
|
-
|
|
518
|
+
v,
|
|
519
519
|
V,
|
|
520
520
|
t.rows
|
|
521
521
|
]), dt(() => {
|
|
@@ -566,10 +566,10 @@ function zt(t, o) {
|
|
|
566
566
|
underline: f,
|
|
567
567
|
delete: y,
|
|
568
568
|
code: k
|
|
569
|
-
} = t, d = [],
|
|
570
|
-
return s &&
|
|
569
|
+
} = t, d = [], v = [];
|
|
570
|
+
return s && v.push(`${o}-${s}`), N && v.push(`${o}-disabled`), c && d.push("b"), f && d.push("u"), y && d.push("del"), k && d.push("code"), p && d.push("mark"), {
|
|
571
571
|
component: d,
|
|
572
|
-
className:
|
|
572
|
+
className: v
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
575
|
function te(t, o) {
|
|
@@ -582,7 +582,7 @@ function te(t, o) {
|
|
|
582
582
|
ellipsis: y,
|
|
583
583
|
heading: k,
|
|
584
584
|
blockquote: d,
|
|
585
|
-
...
|
|
585
|
+
...v
|
|
586
586
|
} = t, V = lt(ct), { getPrefixCls: $, rtl: i } = V, u = $("typography"), R = X(), { component: T, className: M } = zt(t, u), [E, L] = J(!1), [j, W] = J(0), S = K(f) ? f : {}, C = "editing" in S ? S.editing : E, r = y ? {
|
|
587
587
|
rows: 1,
|
|
588
588
|
ellipsisStr: "...",
|
|
@@ -591,7 +591,7 @@ function te(t, o) {
|
|
|
591
591
|
} : {}, B = r.wrapper || rt.Fragment, [h, G] = gt(!1, {
|
|
592
592
|
defaultValue: r.defaultExpanded,
|
|
593
593
|
value: r.expanded
|
|
594
|
-
}), { simpleEllipsis: O, ellipsisStyle:
|
|
594
|
+
}), { simpleEllipsis: O, ellipsisStyle: b } = Yt(r), a = (n, m) => {
|
|
595
595
|
const w = ft(r.ellipsisStr) ? "..." : r.ellipsisStr, q = !ft(r.suffix) && r.suffix;
|
|
596
596
|
return /* @__PURE__ */ Z(B, { children: [
|
|
597
597
|
n,
|
|
@@ -643,7 +643,7 @@ function te(t, o) {
|
|
|
643
643
|
Et(() => {
|
|
644
644
|
var n;
|
|
645
645
|
(n = r.onEllipsis) == null || n.call(r, H);
|
|
646
|
-
}, [H]),
|
|
646
|
+
}, [H]), vt(o, () => R.current);
|
|
647
647
|
function e(n, m, w, q = {}) {
|
|
648
648
|
let Y = n;
|
|
649
649
|
return m.forEach((et, at) => {
|
|
@@ -672,7 +672,7 @@ function te(t, o) {
|
|
|
672
672
|
N
|
|
673
673
|
),
|
|
674
674
|
...at,
|
|
675
|
-
...Ht(
|
|
675
|
+
...Ht(v, [
|
|
676
676
|
"spacing",
|
|
677
677
|
"type",
|
|
678
678
|
"close",
|
|
@@ -692,7 +692,7 @@ function te(t, o) {
|
|
|
692
692
|
children: O && A !== it.INIT && !h && H ? e(
|
|
693
693
|
// CSS folding style, need to wrap the text separately.
|
|
694
694
|
a(
|
|
695
|
-
/* @__PURE__ */ l("span", { style:
|
|
695
|
+
/* @__PURE__ */ l("span", { style: b, children: p }),
|
|
696
696
|
H
|
|
697
697
|
),
|
|
698
698
|
T.length ? T : ["span"],
|
|
@@ -763,7 +763,11 @@ pt.Text = Ct;
|
|
|
763
763
|
pt.Paragraph = Nt;
|
|
764
764
|
pt.Ellipsis = Gt;
|
|
765
765
|
export {
|
|
766
|
+
Gt as E,
|
|
767
|
+
Nt as P,
|
|
766
768
|
pt as T,
|
|
769
|
+
Ct as a,
|
|
770
|
+
wt as b,
|
|
767
771
|
kn as l,
|
|
768
772
|
Ln as t
|
|
769
773
|
};
|