@unicom-cloud/ui 0.8.72 → 0.8.74
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 +3 -3
- package/Alert.js +3 -3
- package/AutoComplete.js +3 -3
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +3 -3
- 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 +2 -2
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -3
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +5 -5
- package/Empty.js +2 -2
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +2 -2
- package/Layout.js +2 -2
- package/Link.js +2 -2
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +5 -5
- package/Notification.js +8 -7
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +3 -3
- package/Popover.js +3 -3
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +3 -3
- package/ResizeBox.js +3 -3
- package/Result.js +2 -2
- package/SelectView.js +5 -4
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +21 -21
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +8 -6
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +4 -4
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/Trigger.js +9 -8
- package/affix/index.js +3 -3
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +62 -59
- package/anchor/Link.js +2 -2
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +3 -3
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/back-top/index.js +11 -11
- package/badge/Count.js +7 -7
- package/badge/index.js +52 -50
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +4 -4
- package/button/Group.js +2 -2
- package/button/index.js +2 -2
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +5 -5
- package/card/Meta.js +4 -4
- package/card/index.js +2 -2
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +6 -6
- package/carousel/index.js +2 -2
- package/cascader/Cascader.js +5 -5
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +4 -4
- package/checkbox/Group.js +4 -4
- package/checkbox/index.js +1 -1
- package/chunk/{6nKl68Er.js → 9we0Q8Kh.js} +4 -4
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{Cf4qn5jY.js → BDZpJpz-.js} +3 -3
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{fFjj2KuF.js → BJ9_azwQ.js} +493 -515
- package/chunk/{BnWo0OJ0.js → Bd9zhOZS.js} +9 -9
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/{CdAuhef7.js → BoUHPeG7.js} +2 -2
- package/chunk/BpYX5PN4.js +27 -0
- package/chunk/{CP7Ac47f.js → Bu8A2l60.js} +4 -4
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{Cgbja_v_.js → Crs3isAx.js} +14 -13
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{y9unmTx_.js → D5UfU6-H.js} +127 -127
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{rp1MtSd0.js → DJ8rDYjb.js} +4 -4
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CAVVFFyZ.js → DdT3C0ih.js} +6 -8
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{IUjEMHU1.js → Dn7KbmZ7.js} +194 -191
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{BDHuWwhT.js → NmSLBKjp.js} +3 -3
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/_L2dKF58.js +647 -0
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +2 -2
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +8 -8
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +17 -17
- package/color-picker/colors.js +20 -9
- package/color-picker/index.js +21 -21
- package/color-picker/utils.js +1 -1
- package/comment/index.js +6 -6
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +16 -16
- package/date-picker/Picker.js +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +3 -3
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +122 -112
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +5 -5
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +3 -3
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +2 -2
- package/grid/Row.js +3 -3
- package/grid/grid-item.js +3 -3
- package/grid/grid.js +9 -9
- package/hooks/index.js +5 -5
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +6 -6
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +10 -10
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +585 -575
- package/input/Group.js +4 -4
- package/input/Input.js +5 -4
- package/input/InputElement.js +4 -4
- package/input/Password.js +3 -3
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -6
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +53 -51
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +4 -4
- package/layout/index.js +2 -2
- package/link/index.js +5 -5
- package/list/Item.js +2 -2
- package/list/Meta.js +4 -4
- package/list/index.js +3 -3
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +3 -3
- package/menu/Item.js +6 -6
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +7 -6
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +9 -8
- package/modal/index.js +1 -1
- package/notice/index.js +5 -5
- package/notification/index.js +8 -7
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +8 -8
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +24 -24
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +3 -3
- package/popover/index.js +3 -3
- package/progress/CircleProgress.js +7 -7
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +7 -7
- package/progress/index.js +8 -8
- package/radio/Group.js +4 -4
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +27 -27
- package/resize-box/ResizeTrigger.js +26 -25
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +3 -3
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +6 -5
- package/select/util.js +12 -12
- package/select-view/Core.js +29 -29
- package/select-view/index.js +3 -2
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +3 -3
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +7 -7
- package/slider/index.js +20 -20
- package/slider/util.js +8 -8
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +21 -21
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +3 -3
- package/statistic/Countdown.js +7 -7
- package/statistic/index.js +20 -20
- package/steps/Step.js +1 -1
- package/steps/index.js +2 -2
- package/style/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +17 -15
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +2 -2
- package/tabs/index.js +2 -2
- package/tag/index.js +6 -6
- package/time-picker/Picker.js +2 -2
- package/time-picker/TimeColumn.js +7 -7
- package/time-picker/TimePicker.js +23 -23
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/tooltip/index.js +4 -4
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +3 -3
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +8 -7
- package/types/badge/interface.d.ts +1 -0
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/drawer/interface.d.ts +10 -0
- package/types/index.d.ts +0 -7
- package/types/modal/Confirm.d.ts +1 -0
- package/types/utils/PqbCSSTransition.d.ts +3 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/computeScrollIntoView.d.ts +1 -0
- package/types/utils/contextHolder.d.ts +1 -0
- package/types/utils/copy.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +1 -0
- package/types/utils/getHighlightText.d.ts +1 -0
- package/types/utils/getHotkeyHandler.d.ts +1 -0
- package/types/utils/getStringLength.d.ts +1 -0
- package/types/utils/include.d.ts +1 -0
- package/types/utils/index.d.ts +29 -25
- package/types/utils/is.d.ts +1 -1
- package/types/utils/keyboardCode.d.ts +1 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +1 -0
- package/types/utils/mergedToString.d.ts +1 -0
- package/types/utils/names.d.ts +497 -81
- package/types/utils/omit.d.ts +1 -0
- package/types/utils/pick.d.ts +1 -1
- package/types/utils/reactTransitionGroup.d.ts +1 -0
- package/types/utils/responsiveObserve.d.ts +1 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoView.d.ts +1 -0
- package/types/utils/tinycolor.d.ts +1 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/version/index.d.ts +1 -1
- package/typography/Base.js +7 -6
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +28 -28
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +28 -28
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +62 -60
- package/upload/Uploader.js +21 -21
- package/upload/request_.js +4 -3
- package/utils/PqbCSSTransition.js +5 -0
- package/utils/caseName.js +3 -2
- package/utils/className.js +3 -2
- package/utils/color.js +4 -0
- package/utils/computeScrollIntoView.js +128 -0
- package/utils/contextHolder.js +3 -2
- package/utils/copy.js +4 -2
- package/utils/fileToURL.js +3 -2
- package/utils/fillNBSP.js +2 -1
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +299 -256
- package/utils/is.js +104 -101
- package/utils/keyboardCode.js +2 -1
- package/utils/math.js +35 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/names.js +332 -81
- package/utils/omit.js +2 -1
- package/utils/pick.js +1 -0
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/reactTransitionGroup.js +10 -0
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +3 -2
- package/utils/screenfull.js +2 -1
- package/utils/scrollIntoView.js +4 -2
- package/utils/tinycolor.js +30 -0
- package/utils/tree.js +87 -0
- package/utils/tween.js +6 -0
- package/utils/uuid.js +5 -0
- package/utils/validate.js +7 -0
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/B4JiMp8I.js +0 -764
- package/chunk/B6X4lnd0.js +0 -116
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/DVfOiRp-.js +0 -629
- package/chunk/DxxOUMSa.js +0 -98
- package/chunk/JPPo5nY_.js +0 -9
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
package/tree-select/Select.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { g as be, y as ye, S as Ce } from "../chunk/C0pRaDCf.js";
|
|
3
3
|
import ke from "lodash/debounce";
|
|
4
|
-
import
|
|
4
|
+
import q from "lodash/isArray";
|
|
5
5
|
import R from "lodash/isFunction";
|
|
6
6
|
import Se from "lodash/isNil";
|
|
7
|
-
import { useContext as ce, useRef as P, useState as
|
|
8
|
-
import { a as se } from "../chunk/
|
|
7
|
+
import { useContext as ce, useRef as P, useState as J, useCallback as T, forwardRef as Ve, useEffect as re, useMemo as ve, useImperativeHandle as Pe } from "react";
|
|
8
|
+
import { a as se } from "../chunk/Crs3isAx.js";
|
|
9
9
|
import { u as Ie } from "../chunk/B4YRLi8r.js";
|
|
10
10
|
import { u as Ke } from "../chunk/oopARUrq.js";
|
|
11
11
|
import { u as Oe } from "../chunk/BFTV6myl.js";
|
|
12
|
-
import { u as ne } from "../chunk/
|
|
12
|
+
import { u as ne } from "../chunk/DeV0v__J.js";
|
|
13
13
|
import Te from "../select-view/index.js";
|
|
14
14
|
import V from "../tree/Tree.js";
|
|
15
15
|
import { getCheckedKeysByInitKeys as _e, getTreeDataFromTreeChildren as He, getAllCheckedKeysByCheck as De } from "../tree/util.js";
|
|
16
16
|
import Re from "../trigger/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import "../chunk/
|
|
17
|
+
import { p as z } from "../chunk/CUFsOxJ2.js";
|
|
18
|
+
import "../chunk/DAAff-FT.js";
|
|
19
19
|
import we from "./List.js";
|
|
20
20
|
import v from "lodash/get";
|
|
21
21
|
import { u as Le } from "../chunk/CQ_WOOmf.js";
|
|
22
|
-
import { u as
|
|
22
|
+
import { u as G } from "../chunk/a3hR6zLw.js";
|
|
23
23
|
import { DefaultFieldNames as ue } from "./interface.js";
|
|
24
24
|
import le from "lodash/isEqualWith";
|
|
25
25
|
import Ne from "lodash/isPlainObject";
|
|
@@ -49,7 +49,7 @@ const ie = (r, u, o) => {
|
|
|
49
49
|
_level: c._level || 0,
|
|
50
50
|
_index: f++
|
|
51
51
|
};
|
|
52
|
-
return p === y + 1 && (s.className =
|
|
52
|
+
return p === y + 1 && (s.className = z(
|
|
53
53
|
`${u}-node-is-tail`,
|
|
54
54
|
s.className
|
|
55
55
|
)), a[m] = s, g && g.length && (a[m].children = i(g, {
|
|
@@ -67,15 +67,15 @@ const ie = (r, u, o) => {
|
|
|
67
67
|
}, f = Le(), i = o("tree"), e = P(
|
|
68
68
|
ie(r, i, a)
|
|
69
69
|
);
|
|
70
|
-
return
|
|
70
|
+
return G(() => {
|
|
71
71
|
e.current = ie(r, i, a), f();
|
|
72
72
|
}, [r]), e.current;
|
|
73
|
-
}, x = (r, u, o) => r == null ? [] : (
|
|
73
|
+
}, x = (r, u, o) => r == null ? [] : (q(r) ? r : [r]).map((f) => {
|
|
74
74
|
let i = Ne(f) ? { ...f } : { value: f, label: void 0 };
|
|
75
75
|
const e = u[i.value];
|
|
76
76
|
if (e)
|
|
77
77
|
i.label = i.label || e.title, i.disabled = e.disabled;
|
|
78
|
-
else if (
|
|
78
|
+
else if (q(o)) {
|
|
79
79
|
const c = o.find((p) => p.value === i.value);
|
|
80
80
|
i = {
|
|
81
81
|
...i,
|
|
@@ -119,10 +119,10 @@ const ie = (r, u, o) => {
|
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
121
|
return x(n, u);
|
|
122
|
-
}, [i, e] =
|
|
122
|
+
}, [i, e] = J(f), c = (n) => {
|
|
123
123
|
a.current = n, e(n);
|
|
124
124
|
};
|
|
125
|
-
|
|
125
|
+
G(() => {
|
|
126
126
|
const n = f();
|
|
127
127
|
"value" in r && (r.labelInValue ? le(
|
|
128
128
|
W(i),
|
|
@@ -153,8 +153,8 @@ const ie = (r, u, o) => {
|
|
|
153
153
|
return [i, p];
|
|
154
154
|
};
|
|
155
155
|
function $e(r) {
|
|
156
|
-
const u = Fe(r) || {}, o = () => r.treeData || He(r.children), [a, f] =
|
|
157
|
-
return
|
|
156
|
+
const u = Fe(r) || {}, o = () => r.treeData || He(r.children), [a, f] = J(o());
|
|
157
|
+
return G(() => {
|
|
158
158
|
(r.treeData !== u.treeData || r.children !== u.children) && f(o());
|
|
159
159
|
}, [r]), [a];
|
|
160
160
|
}
|
|
@@ -167,7 +167,7 @@ const Me = {
|
|
|
167
167
|
r,
|
|
168
168
|
Me,
|
|
169
169
|
f == null ? void 0 : f.TreeSelect
|
|
170
|
-
), c = Ke(), p = P(), n = P(null), y = P(null), g = P([]), [m] = $e(e), s = We(m, e.fieldNames), [I, _] =
|
|
170
|
+
), c = Ke(), p = P(), n = P(null), y = P(null), g = P([]), [m] = $e(e), s = We(m, e.fieldNames), [I, _] = J(), [K, ae] = ne(!1, {
|
|
171
171
|
value: e.popupVisible
|
|
172
172
|
}), [b, fe] = ne(
|
|
173
173
|
void 0,
|
|
@@ -246,7 +246,7 @@ const Me = {
|
|
|
246
246
|
re(() => {
|
|
247
247
|
b !== void 0 && de(b), b !== L.current && (L.current = b);
|
|
248
248
|
}, [b]);
|
|
249
|
-
const
|
|
249
|
+
const B = ve(() => {
|
|
250
250
|
let t = [];
|
|
251
251
|
if (b)
|
|
252
252
|
for (const l in s) {
|
|
@@ -273,8 +273,8 @@ const Me = {
|
|
|
273
273
|
}
|
|
274
274
|
}));
|
|
275
275
|
const he = T(
|
|
276
|
-
(t) => M ?
|
|
277
|
-
[M,
|
|
276
|
+
(t) => M ? B.indexOf(t._key) > -1 : !0,
|
|
277
|
+
[M, B]
|
|
278
278
|
), pe = T(
|
|
279
279
|
(t) => {
|
|
280
280
|
const { disabled: l, value: d } = t || {};
|
|
@@ -300,13 +300,13 @@ const Me = {
|
|
|
300
300
|
popupAlign: Ue,
|
|
301
301
|
unmountOnExit: e.unmountOnExit,
|
|
302
302
|
...e.triggerProps,
|
|
303
|
-
className:
|
|
303
|
+
className: z(
|
|
304
304
|
`${O}-trigger`,
|
|
305
305
|
e.triggerProps && e.triggerProps.className
|
|
306
306
|
),
|
|
307
307
|
popup: () => {
|
|
308
308
|
var h, k, S;
|
|
309
|
-
const l = e.dropdownRender, d = M && j(
|
|
309
|
+
const l = e.dropdownRender, d = M && j(B) || j(m) ? e.notFoundContent || (a == null ? void 0 : a("TreeSelect")) : /* @__PURE__ */ D(
|
|
310
310
|
we,
|
|
311
311
|
{
|
|
312
312
|
prefixCls: O,
|
|
@@ -324,7 +324,7 @@ const Me = {
|
|
|
324
324
|
"div",
|
|
325
325
|
{
|
|
326
326
|
id: X,
|
|
327
|
-
className:
|
|
327
|
+
className: z(`${O}-popup`, {
|
|
328
328
|
[`${O}-rtl-popup`]: i
|
|
329
329
|
}),
|
|
330
330
|
style: {
|
|
@@ -357,7 +357,7 @@ const Me = {
|
|
|
357
357
|
ariaControls: X,
|
|
358
358
|
...e,
|
|
359
359
|
popupVisible: K,
|
|
360
|
-
value: !H &&
|
|
360
|
+
value: !H && q(C) ? C[0] : C,
|
|
361
361
|
inputValue: b,
|
|
362
362
|
isEmptyValue: j(C),
|
|
363
363
|
prefixCls: O,
|
|
@@ -382,7 +382,7 @@ const Me = {
|
|
|
382
382
|
renderView: ee
|
|
383
383
|
}
|
|
384
384
|
) : ee(te);
|
|
385
|
-
},
|
|
385
|
+
}, Be = Ve(je), w = Be;
|
|
386
386
|
w.displayName = "TreeSelect";
|
|
387
387
|
w.Node = V.Node;
|
|
388
388
|
w.SHOW_ALL = V.SHOW_ALL;
|
package/trigger/getPopupStyle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isServerRendering as C } from "../utils/dom.js";
|
|
2
|
-
import "../chunk/
|
|
3
|
-
import "../chunk/
|
|
2
|
+
import "../chunk/DAAff-FT.js";
|
|
3
|
+
import "../chunk/C0pRaDCf.js";
|
|
4
4
|
import X from "lodash/isArray.js";
|
|
5
5
|
const L = 0, v = (n, o) => {
|
|
6
6
|
const { position: i } = o, { width: c, height: p, left: g, right: m, top: M, bottom: N } = n.getBoundingClientRect(), t = o.boundaryDistance || {}, k = "left" in t && t.left || L, r = "top" in t && t.top || L;
|
package/trigger/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as D, jsxs as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { c as ut } from "../chunk/
|
|
2
|
+
import { c as ut } from "../chunk/BJ9_azwQ.js";
|
|
3
3
|
import ct from "lodash/isArray";
|
|
4
4
|
import M from "lodash/isFunction";
|
|
5
5
|
import { forwardRef as lt, useContext as pt, useRef as R, useState as at, Children as He, useCallback as be, cloneElement as Ie, useImperativeHandle as ft, useLayoutEffect as dt, useEffect as g, Fragment as mt } from "react";
|
|
6
6
|
import { createPortal as gt } from "react-dom";
|
|
7
|
-
import { a as yt } from "../chunk/
|
|
8
|
-
import {
|
|
7
|
+
import { a as yt } from "../chunk/Crs3isAx.js";
|
|
8
|
+
import { p as te } from "../chunk/CUFsOxJ2.js";
|
|
9
9
|
import { on as oe, off as ne, getScrollElements as Tt, isScrollElement as Ct, contains as Le } from "../utils/dom.js";
|
|
10
|
-
import { s as ht } from "../chunk/
|
|
10
|
+
import { s as ht } from "../chunk/DAAff-FT.js";
|
|
11
11
|
import { o as Be } from "../chunk/BrOW642m.js";
|
|
12
12
|
import { m as Et } from "../chunk/DH7HTOV_.js";
|
|
13
13
|
import { a as Dt } from "../chunk/ClqoGc3r.js";
|
|
14
|
-
import { c as wt, f as Pt } from "../chunk/
|
|
14
|
+
import { c as wt, f as Pt } from "../chunk/Cc_-i0o_.js";
|
|
15
15
|
import { r as re } from "../chunk/CIRG541s.js";
|
|
16
16
|
import Ve from "../utils/throttleByRaf.js";
|
|
17
17
|
import xt, { getBoundingClientRect as Mt } from "./getPopupStyle.js";
|
|
18
|
+
import "../chunk/C0pRaDCf.js";
|
|
18
19
|
import ie from "lodash/isPlainObject.js";
|
|
19
20
|
function St(d, I) {
|
|
20
21
|
if (!d)
|
|
@@ -27,7 +28,7 @@ function St(d, I) {
|
|
|
27
28
|
right: Y
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
+
const qt = [
|
|
31
32
|
"onClick",
|
|
32
33
|
"onMouseEnter",
|
|
33
34
|
"onMouseLeave",
|
|
@@ -621,6 +622,6 @@ function $t(d, I) {
|
|
|
621
622
|
const Nt = lt($t);
|
|
622
623
|
Nt.displayName = "Trigger";
|
|
623
624
|
export {
|
|
624
|
-
|
|
625
|
+
qt as EventsByTriggerNeed,
|
|
625
626
|
Nt as default
|
|
626
627
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const colors: FlatArray<
|
|
1
|
+
export declare const colors: FlatArray<string[], 0 | 1 | 17 | 18 | 2 | 13 | 8 | 9 | 20 | 16 | 6 | -1 | 3 | 4 | 5 | 7 | 10 | 11 | 12 | 14 | 15 | 19>[];
|
|
2
2
|
export default colors;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
export declare function isTimeArrayChange(prevTime: Dayjs[], nextTime: Dayjs[]): boolean;
|
|
3
|
-
export declare function getAvailableDayjsLength(value: any):
|
|
3
|
+
export declare function getAvailableDayjsLength(value: any): 0 | 1 | 2;
|
|
4
4
|
export declare function isDisabledDate(cellDate: any, disabledDate: any, mode: any): boolean;
|
|
5
5
|
type WeekStartType = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
6
|
export declare function getDefaultWeekStart(dayjsLocale: string): WeekStartType;
|
|
@@ -14,7 +14,17 @@ export interface DrawerProps {
|
|
|
14
14
|
okText?: ReactNode;
|
|
15
15
|
cancelText?: ReactNode;
|
|
16
16
|
okButtonProps?: ButtonProps;
|
|
17
|
+
okButton?: {
|
|
18
|
+
visible?: boolean;
|
|
19
|
+
text?: string;
|
|
20
|
+
props?: ButtonProps;
|
|
21
|
+
};
|
|
17
22
|
cancelButtonProps?: ButtonProps;
|
|
23
|
+
cancelButton?: {
|
|
24
|
+
visible?: boolean;
|
|
25
|
+
text?: string;
|
|
26
|
+
props?: ButtonProps;
|
|
27
|
+
};
|
|
18
28
|
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
19
29
|
width?: string | number;
|
|
20
30
|
height?: string | number;
|
package/types/index.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export * from './hooks';
|
|
2
2
|
export * from './utils';
|
|
3
|
-
export { compute, default as computeScrollIntoView, } from '@unicom-cloud/compute-scroll-into-view';
|
|
4
|
-
export { CSSTransition, ReplaceTransition, SwitchTransition, Transition, TransitionGroup, } from '@unicom-cloud/react-transition-group';
|
|
5
|
-
export { default as scrollIntoView, default as scrollIntoViewIfNeeded, } from '@unicom-cloud/scroll-into-view-if-needed';
|
|
6
|
-
export { compareColorByRange, convertDecimalToHex, convertHexToDecimal, hslToRgb, hsvToRgb, numberInputToObject, parseIntFromHex, rgbaToArgbHex, rgbaToHex, rgbToHex, rgbToHsl, rgbToHsv, rgbToRgb, default as TinyColor, } from '@unicom-cloud/tinycolor';
|
|
7
|
-
export { easing, default as tween } from '@unicom-cloud/tween';
|
|
8
|
-
export { DefaultValidateMessage, Schema, default as validate, } from '@unicom-cloud/validate';
|
|
9
|
-
export { v4 as uuid, v4 as uuidv4 } from 'uuid';
|
|
10
3
|
export { default as Affix } from './affix';
|
|
11
4
|
export { default as Alert } from './alert';
|
|
12
5
|
export { default as Anchor } from './anchor';
|
package/types/modal/Confirm.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export declare const normalizeConfig: (_config: ConfirmProps) => ConfirmProps;
|
|
|
10
10
|
declare function confirm(config: ConfirmProps, renderFunc?: (props: ConfirmProps) => void): {
|
|
11
11
|
close: () => void;
|
|
12
12
|
update: (newConfig: ConfirmProps) => void;
|
|
13
|
+
destroy: () => void;
|
|
13
14
|
};
|
|
14
15
|
export default confirm;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { uiColor as color } from '@unicom-cloud/tinycolor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { compute, default as computeScrollIntoView, default, } from '@unicom-cloud/compute-scroll-into-view';
|
package/types/utils/copy.d.ts
CHANGED
package/types/utils/include.d.ts
CHANGED
package/types/utils/index.d.ts
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './caseName';
|
|
2
|
+
export * from './className';
|
|
3
|
+
export * from './color';
|
|
4
|
+
export * from './computeScrollIntoView';
|
|
3
5
|
export * from './constant';
|
|
6
|
+
export * from './contextHolder';
|
|
7
|
+
export * from './copy';
|
|
4
8
|
export * from './dayjs';
|
|
5
9
|
export * from './dom';
|
|
10
|
+
export * from './fileToURL';
|
|
11
|
+
export * from './fillNBSP';
|
|
12
|
+
export * from './getHighlightText';
|
|
13
|
+
export * from './getHotkeyHandler';
|
|
14
|
+
export * from './getStringLength';
|
|
15
|
+
export * from './include';
|
|
6
16
|
export * from './is';
|
|
7
17
|
export * from './lodash';
|
|
18
|
+
export * from './math';
|
|
19
|
+
export * from './mergedToString';
|
|
20
|
+
export * from './mergeProps';
|
|
8
21
|
export * from './names';
|
|
22
|
+
export * from './omit';
|
|
9
23
|
export * from './pad';
|
|
10
24
|
export * from './pick';
|
|
25
|
+
export * from './PqbCSSTransition';
|
|
11
26
|
export * from './reactDOM';
|
|
27
|
+
export * from './reactTransitionGroup';
|
|
12
28
|
export * from './responsiveObserve';
|
|
29
|
+
export * from './saveAs';
|
|
30
|
+
export * from './screenfull';
|
|
31
|
+
export * from './scrollIntoView';
|
|
13
32
|
export * from './style';
|
|
33
|
+
export * from './throttleByRaf';
|
|
34
|
+
export * from './tinycolor';
|
|
35
|
+
export * from './tree';
|
|
36
|
+
export * from './tween';
|
|
14
37
|
export * from './type';
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
19
|
-
export { default as PqbCSSTransition } from './CSSTransition';
|
|
20
|
-
export { default as fileToURL } from './fileToURL';
|
|
21
|
-
export { default as fillNBSP } from './fillNBSP';
|
|
22
|
-
export { default as getHighlightText } from './getHighlightText';
|
|
23
|
-
export { default as getHotkeyHandler } from './getHotkeyHandler';
|
|
24
|
-
export { default as getStringLength } from './getStringLength';
|
|
25
|
-
export { default as include } from './include';
|
|
26
|
-
export { default as keyboardCode } from './keyboardCode';
|
|
27
|
-
export { default as mergedToString } from './mergedToString';
|
|
28
|
-
export { default as mergeProps } from './mergeProps';
|
|
29
|
-
export { default as omit } from './omit';
|
|
30
|
-
export { default as pick } from './pick';
|
|
31
|
-
export { default as responsiveObserve } from './responsiveObserve';
|
|
32
|
-
export { default as saveAs } from './saveAs';
|
|
33
|
-
export { default as screenfull } from './screenfull';
|
|
34
|
-
export { default as scrollIntoView } from './scrollIntoView';
|
|
35
|
-
export { default as throttleByRaf } from './throttleByRaf';
|
|
36
|
-
export { default as warning } from './warning';
|
|
37
|
-
export declare const getColorWithPercentage: (percentage?: number) => string;
|
|
38
|
+
export * from './uuid';
|
|
39
|
+
export * from './validate';
|
|
40
|
+
export * from './warning';
|
|
41
|
+
export { keyboardCode } from './keyboardCode';
|
package/types/utils/is.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { isArguments, isArray, isArrayBuffer, isArrayLike, isArrayLikeObject, isBlob, isBoolean, isBuffer, isClassComponent, isColor, isColor2, isDate, isDayjs, isDOMElement, isElement, isEmpty, isEmptyArray, isEmptyObject, isEmptyReactNode, isEmptyValue, isEqual, isEqualWith, isError, isExist, isFile, isFinite, isForwardRefReact, isFunction, isInteger, isJSON, isLength, isMap, isMatch, isMatchWith, isNaN, isNative, isNil, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isPlainObject, isPromise, isReact18, isReact19, isReactAsyncMode, isReactComponent, isReactConcurrentMode, isReactContextConsumer, isReactContextProvider, isReactElement, isReactForwardRef, isReactFragment, isReactLazy, isReactMemo, isReactPortal, isReactProfiler, isReactStrictMode, isReactSuspense, isReactValidElementType, isReadableByteStreamControllerSupported, isReadableStream, isReadableStreamDefaultControllerSupported, isReadableStreamSupported, isReadableStreamSymbolAsyncIteratorSupported, isRegExp, isSafeInteger, isSet, isString, isSupportRef, isSymbol, isTypedArray, isUndefined, isValidColor, isWeakMap, isWeakSet, isWindow, supportRef, } from '@unicom-cloud/ui-common/utils/is';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { add, default, div, divide, default as math, minus, multiply, plus, subtract, times, } from '@unicom-cloud/utils/math';
|