@unicom-cloud/ui 0.8.66 → 0.8.67
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 +79 -79
- package/Alert.js +46 -46
- package/Anchor.js +1 -1
- package/AutoComplete.js +74 -74
- package/Avatar.js +36 -36
- package/BackTop.js +35 -35
- package/Badge.js +55 -55
- package/Breadcrumb.js +42 -42
- package/Button.js +24 -24
- package/Calendar.js +230 -230
- package/Card.js +18 -18
- package/Carousel.js +165 -165
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +26 -26
- package/Comment.js +18 -18
- package/ConfigProvider.js +2 -2
- package/Copy.js +28 -27
- package/DatePicker.js +872 -871
- package/Descriptions.js +34 -34
- package/Divider.js +19 -19
- package/Draggable.js +27 -26
- package/Drawer.js +1 -1
- package/Dropdown.js +110 -110
- package/Empty.js +3 -3
- package/Form.js +984 -945
- package/Grid.js +34 -34
- package/Icon.js +16 -16
- package/IconHover.js +2 -2
- package/Image.js +2 -2
- package/Input.js +7 -6
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +24 -24
- package/Link.js +30 -30
- package/List.js +95 -95
- package/Mentions.js +85 -84
- package/Menu.js +2 -2
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +14 -3
- package/Notification.js +9 -7
- package/OverflowEllipsis.js +64 -62
- package/PageHeader.js +73 -73
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +60 -60
- package/Popover.js +31 -31
- package/Portal.js +23 -31
- package/Progress.js +22 -22
- package/Radio.js +2 -2
- package/Rate.js +24 -24
- package/ResizeBox.js +274 -271
- package/Result.js +3 -3
- package/Select.js +4 -4
- package/SelectView.js +257 -238
- package/Skeleton.js +46 -46
- package/Slider.js +286 -283
- package/Space.js +28 -28
- package/SpeechSynthesis.js +62 -55
- package/Spin.js +23 -23
- package/Statistic.js +80 -80
- package/Steps.js +67 -67
- package/Switch.js +47 -47
- package/Table.js +1445 -1380
- package/Tabs.js +5 -5
- package/Tag.js +45 -45
- package/TimePicker.js +154 -154
- package/Timeline.js +2 -2
- package/Tooltip.js +80 -79
- package/Transfer.js +103 -102
- package/Tree.js +3 -2
- package/TreeSelect.js +2 -2
- package/Trigger.js +699 -772
- package/Typography.js +756 -6
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{BHgJ5Y3T.js → -UuKKT0Z.js} +29 -29
- package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
- package/chunk/B5gK1Idp.js +19 -0
- package/chunk/B7FlazNB.js +24 -0
- package/chunk/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
- package/chunk/BCftTxEy.js +626 -0
- package/chunk/{CZOP_ZHJ.js → BGny4zSb.js} +60 -60
- package/chunk/BHF15Dog.js +98 -0
- package/chunk/BJQ5UNa-.js +1585 -0
- package/chunk/BP9sYyk9.js +8 -0
- package/chunk/BUdtVdnv.js +38 -0
- package/chunk/BVQlOzTS.js +11 -0
- package/chunk/B__a_gb_.js +519 -0
- package/chunk/BbEYToV1.js +10 -0
- package/chunk/BbdDQAnm.js +15 -0
- package/chunk/BdUcgWdu.js +11 -0
- package/chunk/BfbXSG70.js +26 -0
- package/chunk/BndfNLK4.js +186 -0
- package/chunk/BoMCZV6K.js +1098 -0
- package/chunk/Br0B6y1T.js +18 -0
- package/chunk/BrOW642m.js +130 -0
- package/chunk/BxUs8_Cr.js +9 -0
- package/chunk/{CcV4wQB1.js → C42LIMP9.js} +244 -242
- package/chunk/C4YkFMzC.js +778 -0
- package/chunk/{Bh23P4l7.js → C9Wcraj7.js} +21 -21
- package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
- package/chunk/CJ_o9tZM.js +5 -0
- package/chunk/{DNAigumg.js → CK5m7rLl.js} +36 -36
- package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
- package/chunk/CLiqJm_T.js +10 -0
- package/chunk/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
- package/chunk/{BFipyA67.js → CP0odX99.js} +51 -51
- package/chunk/CPT-OZH2.js +14 -0
- package/chunk/CVSF8p0O.js +698 -0
- package/chunk/C_agcwLN.js +31 -0
- package/chunk/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
- package/chunk/{Bc7t9jkb.js → CaasmWg_.js} +11 -11
- package/chunk/Ce1j9KTi.js +6 -0
- package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
- package/chunk/CkNSv2U7.js +56 -0
- package/chunk/Cp2f70gB.js +9 -0
- package/chunk/CpegYjdC.js +16 -0
- package/chunk/CucI3KZr.js +20 -0
- package/chunk/CwoFBTYz.js +11 -0
- package/chunk/D2KPqPhV.js +17 -0
- package/chunk/D7NyvE5f.js +17 -0
- package/chunk/D8oTPQ2H.js +384 -0
- package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
- package/chunk/{DnvO8A0Z.js → DFrfrmfK.js} +120 -119
- package/chunk/DGTIZ_0O.js +6 -0
- package/chunk/DJfpiZn_.js +25 -0
- package/chunk/DKr2_PYd.js +34 -0
- package/chunk/DNUz6zgo.js +11 -0
- package/chunk/DRtM649q.js +11 -0
- package/chunk/DS_mUWn6.js +41 -0
- package/chunk/DU6bs_19.js +10 -0
- package/chunk/DWdbwz22.js +10 -0
- package/chunk/DcveZuqd.js +6 -0
- package/chunk/DdVFknul.js +24 -0
- package/chunk/DgRfikwe.js +16 -0
- package/chunk/{znkyQ-HR.js → DkyR2EfG.js} +66 -66
- package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
- package/chunk/DnrZEnQ_.js +27 -0
- package/chunk/DsRSHWtX.js +1025 -0
- package/chunk/Dz5BdmXo.js +270 -0
- package/chunk/EANe01DF.js +1030 -0
- package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
- package/chunk/GoNx5R4F.js +873 -0
- package/chunk/HDUQku8d.js +20 -0
- package/chunk/HrAP__Hi.js +25 -0
- package/chunk/JPPo5nY_.js +9 -0
- package/chunk/{Du-bw6qA.js → SLWP34OR.js} +90 -85
- package/chunk/VVKtwaGf.js +278 -0
- package/chunk/WPNpLxSI.js +16 -0
- package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
- package/chunk/fdU3ang6.js +14 -0
- package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
- package/chunk/flvYlqx3.js +22 -0
- package/chunk/kTDayEpF.js +288 -0
- package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
- package/chunk/qFf1w_Jq.js +8 -0
- package/chunk/{CHnFKgbk.js → w-kM1L5W.js} +155 -155
- package/hooks/index.js +53 -49
- package/hooks/useComputedState.js +2 -10
- package/hooks/useCreate.js +2 -7
- package/hooks/useForceUpdate.js +2 -7
- package/hooks/useId.js +2 -10
- package/hooks/useInView.js +2 -30
- package/hooks/useIntersectionObserver.js +2 -23
- package/hooks/useInterval.js +2 -17
- package/hooks/useIsFirstRender.js +2 -9
- package/hooks/useIsomorphicLayoutEffect.js +2 -5
- package/hooks/useKeyboardEvent.js +2 -16
- package/hooks/useMedia.js +2 -15
- package/hooks/useMergeProps.js +2 -18
- package/hooks/useMergeValue.js +2 -19
- package/hooks/useOnlineStatus.js +4 -0
- package/hooks/useOverflowHidden.js +2 -25
- package/hooks/useOverrideRef.js +2 -13
- package/hooks/usePersistCallback.js +2 -13
- package/hooks/usePrefersColorSchemeDark.js +4 -0
- package/hooks/usePrevious.js +2 -9
- package/hooks/useRefs.js +2 -9
- package/hooks/useResizeObserver.js +2 -15
- package/hooks/useStateCallback.js +2 -15
- package/hooks/useStateWithPromise.js +2 -24
- package/hooks/useUpdateEffect.js +2 -9
- package/hooks/useVerificationCode.js +73 -0
- package/hooks/useWatch.js +2 -10
- package/hooks/{use-watermark.js → useWatermark.js} +27 -26
- package/hooks/useWindowSize.js +2 -20
- package/index.js +571 -584
- package/locale/en-US.js +4 -2
- package/locale/interface.js +1 -4
- package/locale/ja-JP.js +3 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +3 -1
- package/locale/zh-HK.js +3 -1
- package/locale/zh-TW.js +3 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -1
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
- package/types/form/Control-old.d.ts +56 -0
- package/types/form/Control.d.ts +6 -54
- package/types/form/FormItem.d.ts +1 -1
- package/types/form/store.d.ts +0 -1
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useComputedState.d.ts +1 -4
- package/types/hooks/useCreate.d.ts +1 -2
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useId.d.ts +1 -2
- package/types/hooks/useInView.d.ts +1 -11
- package/types/hooks/useIntersectionObserver.d.ts +1 -7
- package/types/hooks/useInterval.d.ts +1 -2
- package/types/hooks/useIsFirstRender.d.ts +1 -2
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/hooks/useKeyboardEvent.d.ts +1 -8
- package/types/hooks/useMedia.d.ts +1 -2
- package/types/hooks/useMergeProps.d.ts +1 -5
- package/types/hooks/useMergeValue.d.ts +1 -6
- package/types/hooks/useOnlineStatus.d.ts +1 -0
- package/types/hooks/useOverflowHidden.d.ts +1 -5
- package/types/hooks/useOverrideRef.d.ts +1 -6
- package/types/hooks/usePersistCallback.d.ts +1 -2
- package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
- package/types/hooks/usePrevious.d.ts +1 -3
- package/types/hooks/useRefs.d.ts +1 -2
- package/types/hooks/useResizeObserver.d.ts +1 -6
- package/types/hooks/useStateCallback.d.ts +1 -5
- package/types/hooks/useStateWithPromise.d.ts +1 -2
- package/types/hooks/useUpdateEffect.d.ts +1 -3
- package/types/hooks/useWatch.d.ts +1 -3
- package/types/hooks/useWindowSize.d.ts +1 -5
- package/types/image/interface.d.ts +1 -0
- package/types/index.d.ts +157 -86
- package/types/input/Input.d.ts +1 -1
- package/types/input/Textarea.d.ts +2 -2
- package/types/locale/en-US.d.ts +2 -0
- package/types/locale/interface.d.ts +1 -2
- package/types/locale/ja-JP.d.ts +2 -0
- package/types/locale/zh-CN.d.ts +2 -0
- package/types/locale/zh-HK.d.ts +2 -0
- package/types/locale/zh-TW.d.ts +2 -0
- package/types/menu/context.d.ts +1 -1
- package/types/message/index.d.ts +14 -14
- package/types/message/interface.d.ts +2 -0
- package/types/modal/config.d.ts +0 -1
- package/types/modal/interface.d.ts +0 -1
- package/types/notice/index.d.ts +2 -27
- package/types/notification/index.d.ts +15 -16
- package/types/notification/interface.d.ts +2 -0
- package/types/notification/withNotification.d.ts +2 -0
- package/types/select/util.d.ts +1 -2
- package/types/select-view/interface.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +1 -1
- package/types/table/constant.d.ts +2 -0
- package/types/table/hook/useThResizable.d.ts +7 -0
- package/types/table/index.d.ts +10 -1
- package/types/table/style/index.d.ts +1 -0
- package/types/table/th-resizable/index.d.ts +2 -0
- package/types/table/thead/Column.d.ts +1 -2
- package/types/tree/Tree.d.ts +12 -67
- package/types/tree-select/Select.d.ts +2 -2
- package/types/trigger/index.d.ts +2 -120
- package/types/trigger/interface.d.ts +2 -1
- package/types/utils/CSSTransition.d.ts +2 -3
- package/types/utils/caseName.d.ts +1 -1
- package/types/utils/className.d.ts +1 -1
- package/types/utils/constant.d.ts +2 -2
- package/types/utils/copy.d.ts +1 -1
- package/types/utils/dayjs.d.ts +1 -21
- package/types/utils/dom.d.ts +1 -6
- package/types/utils/fileToURL.d.ts +1 -1
- package/types/utils/fillNBSP.d.ts +1 -1
- package/types/utils/getHighlightText.d.ts +1 -5
- package/types/utils/getHotkeyHandler.d.ts +1 -8
- package/types/utils/getStringLength.d.ts +1 -1
- package/types/utils/include.d.ts +1 -1
- package/types/utils/index.d.ts +3 -4
- package/types/utils/is.d.ts +1 -16
- package/types/utils/keyboardCode.d.ts +3 -0
- package/types/utils/lodash.d.ts +1 -17
- package/types/utils/mergeProps.d.ts +1 -1
- package/types/utils/mergedToString.d.ts +1 -1
- package/types/utils/omit.d.ts +1 -1
- package/types/utils/pad.d.ts +1 -2
- package/types/utils/pick.d.ts +2 -4
- package/types/utils/reactDOM.d.ts +1 -7
- package/types/utils/resizeObserverEffect.d.ts +2 -0
- package/types/utils/saveAs.d.ts +1 -1
- package/types/utils/screenfull.d.ts +2 -0
- package/types/utils/scrollIntoView.d.ts +1 -2
- package/types/utils/style.d.ts +1 -3
- package/types/utils/throttleByRaf.d.ts +1 -5
- package/types/utils/throttleByRaf2.d.ts +1 -0
- package/types/utils/warning.d.ts +1 -2
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +2 -6
- package/utils/className.js +2 -2
- package/utils/constant.js +8 -9
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/dayjs.js +14 -173
- package/utils/dom.js +33 -29
- package/utils/fillNBSP.js +2 -4
- package/utils/getHighlightText.js +2 -38
- package/utils/getHotkeyHandler.js +2 -25
- package/utils/getStringLength.js +2 -7
- package/utils/include.js +2 -7
- package/utils/index.js +237 -240
- package/utils/is.js +116 -156
- package/utils/keyboardCode.js +27 -0
- package/utils/mergeProps.js +2 -9
- package/utils/mergedToString.js +2 -13
- package/utils/omit.js +2 -9
- package/utils/pad.js +12 -12
- package/utils/pick.js +4 -15
- package/utils/reactDOM.js +3 -54
- package/utils/resizeObserverEffect.js +4 -0
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +4 -0
- package/utils/scrollIntoView.js +2 -21
- package/utils/style.js +12 -11
- package/utils/throttleByRaf.js +13 -12
- package/utils/throttleByRaf2.js +5 -0
- package/utils/warning.js +5 -4
- package/NotificationBase.js +0 -53
- package/chunk/-zpSUpGE.js +0 -1501
- package/chunk/BAWsPQBM.js +0 -11
- package/chunk/BIT0j3HT.js +0 -269
- package/chunk/BbLKnaNO.js +0 -871
- package/chunk/Bfhv56O2.js +0 -638
- package/chunk/C2lIz2F9.js +0 -60
- package/chunk/C6QWSzsM.js +0 -376
- package/chunk/CVkHTbic.js +0 -995
- package/chunk/CeGEvXby.js +0 -278
- package/chunk/D3NFxdmG.js +0 -518
- package/chunk/DApXtulb.js +0 -1102
- package/chunk/DPByB1ab.js +0 -698
- package/chunk/DV1Ab_cG.js +0 -284
- package/chunk/dBnNCOIU.js +0 -778
- package/chunk/it8qlDZ3.js +0 -1032
- package/chunk/l0sNRNKZ.js +0 -1
- package/chunk/te_43YrB.js +0 -776
- package/hooks/use-verification-code.js +0 -73
- package/types/notification-base/index.d.ts +0 -15
- package/types/notification-base/style/index.d.ts +0 -2
- package/types/trigger/Portal.d.ts +0 -7
- package/types/utils/keyCode.d.ts +0 -45
- package/types/utils/raf.d.ts +0 -3
- package/types/utils/throttleByRafV2.d.ts +0 -5
- package/utils/keyCode.js +0 -12
- package/utils/raf.js +0 -19
- package/utils/throttleByRafV2.js +0 -16
package/Tabs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as o } from "./chunk/GoNx5R4F.js";
|
|
2
|
+
import { T as t, b as T, T as b } from "./chunk/GoNx5R4F.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
t as TabPane,
|
|
5
|
+
T as TabsContext,
|
|
6
|
+
b as TabsTabPane,
|
|
7
7
|
o as default
|
|
8
8
|
};
|
package/Tag.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as j, Fragment as M } from "react/jsx-runtime";
|
|
2
2
|
import Q from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import b from "lodash/isPlainObject";
|
|
5
|
-
import { forwardRef as X, useContext as Y, useState as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { forwardRef as X, useContext as Y, useState as x } from "react";
|
|
6
|
+
import { a as Z, I as S } from "./chunk/BJQ5UNa-.js";
|
|
7
|
+
import { h as ee } from "./chunk/D2KPqPhV.js";
|
|
8
|
+
import { c as oe } from "./chunk/B5gK1Idp.js";
|
|
9
9
|
import ne from "./Popconfirm.js";
|
|
10
|
-
import {
|
|
11
|
-
import re from "./
|
|
12
|
-
const
|
|
10
|
+
import { m as ie } from "./chunk/JPPo5nY_.js";
|
|
11
|
+
import { c as re } from "./chunk/BdUcgWdu.js";
|
|
12
|
+
const ce = [
|
|
13
13
|
"red",
|
|
14
14
|
"orangered",
|
|
15
15
|
"orange",
|
|
@@ -22,68 +22,68 @@ const te = [
|
|
|
22
22
|
"purple",
|
|
23
23
|
"magenta",
|
|
24
24
|
"gray"
|
|
25
|
-
],
|
|
25
|
+
], te = {
|
|
26
26
|
size: "default"
|
|
27
27
|
};
|
|
28
|
-
function se(
|
|
29
|
-
var
|
|
30
|
-
const { getPrefixCls:
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
function se(y, z) {
|
|
29
|
+
var _;
|
|
30
|
+
const { getPrefixCls: E, componentConfig: m, rtl: H } = Y(Z), L = ee(), r = oe(
|
|
31
|
+
y,
|
|
32
|
+
te,
|
|
33
33
|
m == null ? void 0 : m.Tag
|
|
34
34
|
), {
|
|
35
35
|
className: w,
|
|
36
|
-
style:
|
|
37
|
-
children:
|
|
38
|
-
color:
|
|
36
|
+
style: R,
|
|
37
|
+
children: v,
|
|
38
|
+
color: c,
|
|
39
39
|
closable: e,
|
|
40
40
|
checkable: l,
|
|
41
|
-
defaultChecked:
|
|
41
|
+
defaultChecked: U,
|
|
42
42
|
size: N,
|
|
43
43
|
onClose: f,
|
|
44
44
|
onCheck: p,
|
|
45
|
-
icon:
|
|
45
|
+
icon: I,
|
|
46
46
|
closeIcon: h,
|
|
47
|
-
bordered:
|
|
48
|
-
__closeIconProps:
|
|
49
|
-
...
|
|
50
|
-
} = r, o =
|
|
47
|
+
bordered: V,
|
|
48
|
+
__closeIconProps: q,
|
|
49
|
+
...F
|
|
50
|
+
} = r, o = E("tag"), [K, P] = x(
|
|
51
51
|
"visible" in r ? r.visible : !0
|
|
52
|
-
), [
|
|
53
|
-
"checked" in r ? r.checked :
|
|
54
|
-
), [g, u] =
|
|
52
|
+
), [A, B] = x(
|
|
53
|
+
"checked" in r ? r.checked : U
|
|
54
|
+
), [g, u] = x(), O = "checked" in r ? r.checked : A, D = "visible" in r ? r.visible : K;
|
|
55
55
|
function k(n) {
|
|
56
56
|
const i = f == null ? void 0 : f(n);
|
|
57
57
|
i && i.then ? (u(!0), i.then(() => {
|
|
58
|
-
u(!1),
|
|
58
|
+
u(!1), P(!1);
|
|
59
59
|
}).catch(() => {
|
|
60
60
|
u(!1);
|
|
61
|
-
})) :
|
|
61
|
+
})) : P(!1);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function G() {
|
|
64
64
|
const n = !O;
|
|
65
|
-
"checked" in r ||
|
|
65
|
+
"checked" in r || B(n), p == null || p(n);
|
|
66
66
|
}
|
|
67
|
-
const d =
|
|
67
|
+
const d = c && ce.indexOf(c) !== -1 ? c : "", C = l ? O : !0, J = ie(
|
|
68
68
|
o,
|
|
69
69
|
{
|
|
70
70
|
[`${o}-loading`]: g,
|
|
71
|
-
[`${o}-hide`]: !
|
|
71
|
+
[`${o}-hide`]: !D,
|
|
72
72
|
[`${o}-${d}`]: d,
|
|
73
73
|
[`${o}-checkable`]: l,
|
|
74
74
|
[`${o}-checked`]: C,
|
|
75
75
|
[`${o}-size-${N}`]: N,
|
|
76
|
-
[`${o}-bordered`]:
|
|
77
|
-
[`${o}-custom-color`]: C &&
|
|
76
|
+
[`${o}-bordered`]: V,
|
|
77
|
+
[`${o}-custom-color`]: C && c && !d,
|
|
78
78
|
[`${o}-rtl`]: H
|
|
79
79
|
},
|
|
80
80
|
w
|
|
81
|
-
),
|
|
82
|
-
...
|
|
81
|
+
), t = {
|
|
82
|
+
...R
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
const
|
|
86
|
-
l && (
|
|
84
|
+
c && !d && C && (t.backgroundColor || (t.backgroundColor = c), t.borderColor || (t.borderColor = c));
|
|
85
|
+
const T = re(F, ["visible"]);
|
|
86
|
+
l && (T.onClick = G);
|
|
87
87
|
let $ = /* @__PURE__ */ s(
|
|
88
88
|
S,
|
|
89
89
|
{
|
|
@@ -100,7 +100,7 @@ function se(_, j) {
|
|
|
100
100
|
}
|
|
101
101
|
}),
|
|
102
102
|
"aria-label": "Close",
|
|
103
|
-
...
|
|
103
|
+
...q,
|
|
104
104
|
children: h !== void 0 ? h : /* @__PURE__ */ s(Q, {})
|
|
105
105
|
}
|
|
106
106
|
);
|
|
@@ -108,9 +108,9 @@ function se(_, j) {
|
|
|
108
108
|
ne,
|
|
109
109
|
{
|
|
110
110
|
...e == null ? void 0 : e.popconfirm,
|
|
111
|
-
title: ((
|
|
111
|
+
title: ((_ = e == null ? void 0 : e.popconfirm) == null ? void 0 : _.title) || /* @__PURE__ */ j(M, { children: [
|
|
112
112
|
"确定要关闭 ",
|
|
113
|
-
|
|
113
|
+
v
|
|
114
114
|
] }),
|
|
115
115
|
onCancel: (n) => {
|
|
116
116
|
var i, a;
|
|
@@ -122,9 +122,9 @@ function se(_, j) {
|
|
|
122
122
|
},
|
|
123
123
|
children: $
|
|
124
124
|
}
|
|
125
|
-
)), /* @__PURE__ */
|
|
126
|
-
|
|
127
|
-
/* @__PURE__ */ s("span", { className: `${o}-content`, children:
|
|
125
|
+
)), /* @__PURE__ */ j("div", { ref: z, style: t, className: J, ...T, children: [
|
|
126
|
+
I && /* @__PURE__ */ s("span", { className: `${o}-icon`, children: I }),
|
|
127
|
+
/* @__PURE__ */ s("span", { className: `${o}-content`, children: v }),
|
|
128
128
|
!!e && !g && h !== null && $,
|
|
129
129
|
g && /* @__PURE__ */ s("span", { className: `${o}-loading-icon`, children: /* @__PURE__ */ s(W, {}) })
|
|
130
130
|
] });
|
package/TimePicker.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { isDayjs as
|
|
2
|
+
import De from "@unicom-cloud/icons/IconUiClockCircle";
|
|
3
|
+
import { isDayjs as W } from "dayjs";
|
|
4
4
|
import p from "lodash/isArray";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { a as Fe, I as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { P as me, g as
|
|
16
|
-
import
|
|
17
|
-
function
|
|
5
|
+
import Oe, { useContext as pe, useState as j, useRef as je } from "react";
|
|
6
|
+
import { a as ze } from "./chunk/BJQ5UNa-.js";
|
|
7
|
+
import { c as $e } from "./chunk/B5gK1Idp.js";
|
|
8
|
+
import { n as ce } from "./chunk/DU6bs_19.js";
|
|
9
|
+
import { c as Ee } from "./chunk/BbEYToV1.js";
|
|
10
|
+
import { a as Fe, I as Ae } from "./chunk/VVKtwaGf.js";
|
|
11
|
+
import Ne from "./Trigger.js";
|
|
12
|
+
import { m as Ue } from "./chunk/JPPo5nY_.js";
|
|
13
|
+
import { V as B, v as d, p as X, r as Q, n as Be, o as We, e as _e } from "./chunk/BndfNLK4.js";
|
|
14
|
+
import { r as qe } from "./chunk/D7NyvE5f.js";
|
|
15
|
+
import { P as me, g as Ge, T as de } from "./chunk/BBvWDeuZ.js";
|
|
16
|
+
import { c as Je } from "./chunk/BdUcgWdu.js";
|
|
17
|
+
function Ke(h) {
|
|
18
18
|
return h.format || "HH:mm:ss";
|
|
19
19
|
}
|
|
20
20
|
const fe = {
|
|
@@ -24,190 +24,190 @@ const fe = {
|
|
|
24
24
|
editable: !0,
|
|
25
25
|
order: !0,
|
|
26
26
|
scrollSticky: !0
|
|
27
|
-
},
|
|
28
|
-
var
|
|
29
|
-
const { locale:
|
|
27
|
+
}, Le = { bottom: 4 }, Me = (h) => {
|
|
28
|
+
var ue, se;
|
|
29
|
+
const { locale: a, getPrefixCls: k, componentConfig: l, rtl: T } = pe(ze);
|
|
30
30
|
T && (fe.position = "br");
|
|
31
|
-
const t =
|
|
31
|
+
const t = $e(
|
|
32
32
|
h,
|
|
33
33
|
fe,
|
|
34
34
|
l == null ? void 0 : l.TimePicker
|
|
35
35
|
), {
|
|
36
|
-
allowClear:
|
|
36
|
+
allowClear: z = !0,
|
|
37
37
|
className: f,
|
|
38
|
-
disableConfirm:
|
|
39
|
-
style:
|
|
40
|
-
placeholder:
|
|
41
|
-
getPopupContainer:
|
|
42
|
-
disabled:
|
|
43
|
-
position:
|
|
38
|
+
disableConfirm: _,
|
|
39
|
+
style: b,
|
|
40
|
+
placeholder: S,
|
|
41
|
+
getPopupContainer: $,
|
|
42
|
+
disabled: v,
|
|
43
|
+
position: q,
|
|
44
44
|
isRangePicker: g,
|
|
45
|
-
picker:
|
|
46
|
-
error:
|
|
45
|
+
picker: G,
|
|
46
|
+
error: w,
|
|
47
47
|
status: Y,
|
|
48
|
-
triggerElement:
|
|
49
|
-
triggerProps:
|
|
48
|
+
triggerElement: y,
|
|
49
|
+
triggerProps: R,
|
|
50
50
|
value: P,
|
|
51
|
-
onChange:
|
|
51
|
+
onChange: u,
|
|
52
52
|
icons: Z,
|
|
53
53
|
size: Pe,
|
|
54
54
|
editable: Ve,
|
|
55
55
|
unmountOnExit: he,
|
|
56
|
-
order:
|
|
57
|
-
utcOffset:
|
|
56
|
+
order: ke,
|
|
57
|
+
utcOffset: i,
|
|
58
58
|
timezone: r
|
|
59
|
-
} = t,
|
|
59
|
+
} = t, s = Ke(t), Ie = k("timepicker");
|
|
60
60
|
function Ce() {
|
|
61
61
|
let e;
|
|
62
|
-
return t.value ? e = B(t.value,
|
|
62
|
+
return t.value ? e = B(t.value, s, i, r) : t.defaultValue && (e = B(t.defaultValue, s, i, r)), e;
|
|
63
63
|
}
|
|
64
|
-
const [ee,
|
|
64
|
+
const [ee, ne] = j(!1), [I, te] = j(Ce()), [o, H] = j(), [D, C] = j(), [E, xe] = j(0), V = "value" in t ? B(P, s, i, r) : I, J = "popupVisible" in t ? t.popupVisible : ee, F = ce(i), A = ce(r);
|
|
65
65
|
Ee(() => {
|
|
66
|
-
if (
|
|
67
|
-
const e = p(
|
|
68
|
-
te(
|
|
66
|
+
if (I && (F !== i || r !== A)) {
|
|
67
|
+
const e = p(I) ? I.map((c) => d(c, F, A)) : d(I, F, A), n = p(e) ? e.map((c) => X(c, i, r)) : X(e, i, r);
|
|
68
|
+
te(n);
|
|
69
69
|
}
|
|
70
|
-
}, [
|
|
71
|
-
const
|
|
72
|
-
function
|
|
73
|
-
var
|
|
74
|
-
(c = (
|
|
70
|
+
}, [i, F, r, A]);
|
|
71
|
+
const K = je(null);
|
|
72
|
+
function L(e) {
|
|
73
|
+
var n, c;
|
|
74
|
+
(c = (n = K.current) == null ? void 0 : n.focus) == null || c.call(n, e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
|
|
76
|
+
function M(e) {
|
|
77
|
+
xe(e), setTimeout(() => L(e));
|
|
78
78
|
}
|
|
79
79
|
function Te(e) {
|
|
80
|
-
e ?
|
|
81
|
-
setTimeout(() =>
|
|
82
|
-
}) :
|
|
80
|
+
e ? O(e, () => {
|
|
81
|
+
setTimeout(() => L());
|
|
82
|
+
}) : O(!1);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
84
|
+
function O(e, n) {
|
|
85
|
+
ne(e), C(void 0), n == null || n(), e || H(void 0);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const
|
|
89
|
-
te(
|
|
87
|
+
function N(e) {
|
|
88
|
+
const n = g && ke && p(e) ? Be(e.map((c) => Ge(c))) : e;
|
|
89
|
+
te(n), H(void 0), C(void 0), be(n), _ || O(!1);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
p(e) &&
|
|
93
|
-
e.map((
|
|
94
|
-
e.map((
|
|
95
|
-
)),
|
|
96
|
-
d(e,
|
|
97
|
-
d(e,
|
|
91
|
+
function be(e) {
|
|
92
|
+
p(e) && We(V, e) && (u == null || u(
|
|
93
|
+
e.map((n) => d(n, i, r).format(s)),
|
|
94
|
+
e.map((n) => d(n, i, r))
|
|
95
|
+
)), W(e) && _e(V, e) && (u == null || u(
|
|
96
|
+
d(e, i, r).format(s),
|
|
97
|
+
d(e, i, r)
|
|
98
98
|
));
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
const
|
|
100
|
+
function oe(e) {
|
|
101
|
+
const n = g ? p(o) && o.length ? o : V : o || V;
|
|
102
102
|
return /* @__PURE__ */ m(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
106
|
-
style: e ?
|
|
107
|
-
onClick: () =>
|
|
108
|
-
children:
|
|
105
|
+
className: Ue(`${Ie}-container`, e ? f : ""),
|
|
106
|
+
style: e ? b : {},
|
|
107
|
+
onClick: () => L(),
|
|
108
|
+
children: Oe.cloneElement(G, {
|
|
109
109
|
...t,
|
|
110
|
-
format:
|
|
111
|
-
inputValue:
|
|
110
|
+
format: s,
|
|
111
|
+
inputValue: D,
|
|
112
112
|
setInputValue: C,
|
|
113
|
-
onConfirmValue:
|
|
114
|
-
setValueShow:
|
|
115
|
-
valueShow:
|
|
113
|
+
onConfirmValue: N,
|
|
114
|
+
setValueShow: H,
|
|
115
|
+
valueShow: n,
|
|
116
116
|
value: V,
|
|
117
|
-
popupVisible:
|
|
117
|
+
popupVisible: J,
|
|
118
118
|
focusedInputIndex: E,
|
|
119
|
-
changeFocusedInputIndex:
|
|
119
|
+
changeFocusedInputIndex: M
|
|
120
120
|
})
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
ee ||
|
|
124
|
+
function ie(e) {
|
|
125
|
+
const n = e.target.value;
|
|
126
|
+
ee || ne(!0), C(n), Se(n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
var c,
|
|
130
|
-
const
|
|
128
|
+
function Se(e) {
|
|
129
|
+
var c, ae;
|
|
130
|
+
const n = B(e, s);
|
|
131
131
|
if (g) {
|
|
132
|
-
const
|
|
133
|
-
...p(
|
|
132
|
+
const x = [
|
|
133
|
+
...p(o) ? o : I || []
|
|
134
134
|
];
|
|
135
|
-
if (Q(e,
|
|
136
|
-
|
|
137
|
-
const le =
|
|
138
|
-
(
|
|
135
|
+
if (Q(e, s)) {
|
|
136
|
+
x[E] = n;
|
|
137
|
+
const le = x.map(
|
|
138
|
+
(U) => d(U, i, r)
|
|
139
139
|
);
|
|
140
140
|
(c = t.onSelect) == null || c.call(
|
|
141
141
|
t,
|
|
142
|
-
le.map((
|
|
142
|
+
le.map((U) => U && U.format(s)),
|
|
143
143
|
le
|
|
144
|
-
),
|
|
144
|
+
), H(x), C(void 0);
|
|
145
145
|
}
|
|
146
|
-
} else if (Q(e,
|
|
147
|
-
const
|
|
148
|
-
(
|
|
146
|
+
} else if (Q(e, s)) {
|
|
147
|
+
const x = d(n, i, r);
|
|
148
|
+
(ae = t.onSelect) == null || ae.call(t, x.format(s), x), H(n), C(void 0);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
g ? p(
|
|
151
|
+
function ve() {
|
|
152
|
+
g ? p(o) && o.length ? D && !Q(D, s) ? O(!1) : o[0] === void 0 || o[1] === void 0 ? M(E === 0 ? 1 : 0) : o.length === 2 && N(o) : O(!1) : N(o || V);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
var
|
|
156
|
-
e.stopPropagation(),
|
|
154
|
+
function we(e) {
|
|
155
|
+
var n;
|
|
156
|
+
e.stopPropagation(), N(void 0), u == null || u(void 0, void 0), (n = t.onClear) == null || n.call(t);
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
style:
|
|
158
|
+
const ye = g && p(S) ? S : (ue = a == null ? void 0 : a.TimePicker) == null ? void 0 : ue.placeholders, Re = S || ((se = a == null ? void 0 : a.TimePicker) == null ? void 0 : se.placeholder), He = Z && Z.inputSuffix || /* @__PURE__ */ m(De, {}), re = {
|
|
159
|
+
style: b,
|
|
160
160
|
className: f,
|
|
161
|
-
popupVisible:
|
|
162
|
-
format:
|
|
163
|
-
disabled:
|
|
164
|
-
error:
|
|
161
|
+
popupVisible: J,
|
|
162
|
+
format: s,
|
|
163
|
+
disabled: v,
|
|
164
|
+
error: w,
|
|
165
165
|
status: Y,
|
|
166
166
|
size: Pe,
|
|
167
|
-
onPressEnter:
|
|
168
|
-
onClear:
|
|
169
|
-
suffixIcon:
|
|
167
|
+
onPressEnter: ve,
|
|
168
|
+
onClear: we,
|
|
169
|
+
suffixIcon: He,
|
|
170
170
|
editable: Ve,
|
|
171
|
-
allowClear:
|
|
171
|
+
allowClear: z,
|
|
172
172
|
prefix: t.prefix,
|
|
173
|
-
...
|
|
173
|
+
...qe(t)
|
|
174
174
|
};
|
|
175
|
-
return /* @__PURE__ */ m(me.Provider, { value: { utcOffset:
|
|
176
|
-
|
|
175
|
+
return /* @__PURE__ */ m(me.Provider, { value: { utcOffset: i, timezone: r }, children: y === null ? oe(!0) : /* @__PURE__ */ m(
|
|
176
|
+
Ne,
|
|
177
177
|
{
|
|
178
|
-
popup: () =>
|
|
178
|
+
popup: () => oe(),
|
|
179
179
|
trigger: "click",
|
|
180
180
|
clickToClose: !1,
|
|
181
|
-
position:
|
|
182
|
-
disabled:
|
|
183
|
-
popupAlign:
|
|
184
|
-
getPopupContainer:
|
|
181
|
+
position: q,
|
|
182
|
+
disabled: v,
|
|
183
|
+
popupAlign: Le,
|
|
184
|
+
getPopupContainer: $,
|
|
185
185
|
onVisibleChange: Te,
|
|
186
|
-
popupVisible:
|
|
186
|
+
popupVisible: J,
|
|
187
187
|
classNames: "slideDynamicOrigin",
|
|
188
188
|
unmountOnExit: !!he,
|
|
189
|
-
...
|
|
190
|
-
children:
|
|
189
|
+
...R,
|
|
190
|
+
children: y || (g ? /* @__PURE__ */ m(
|
|
191
191
|
Fe,
|
|
192
192
|
{
|
|
193
193
|
...re,
|
|
194
|
-
ref:
|
|
195
|
-
placeholder:
|
|
196
|
-
value: p(
|
|
197
|
-
onChange:
|
|
198
|
-
inputValue:
|
|
199
|
-
changeFocusedInputIndex:
|
|
194
|
+
ref: K,
|
|
195
|
+
placeholder: ye,
|
|
196
|
+
value: p(o) && o.length ? o : V,
|
|
197
|
+
onChange: ie,
|
|
198
|
+
inputValue: D,
|
|
199
|
+
changeFocusedInputIndex: M,
|
|
200
200
|
focusedInputIndex: E
|
|
201
201
|
}
|
|
202
202
|
) : /* @__PURE__ */ m(
|
|
203
|
-
|
|
203
|
+
Ae,
|
|
204
204
|
{
|
|
205
205
|
...re,
|
|
206
|
-
ref:
|
|
207
|
-
placeholder:
|
|
208
|
-
value:
|
|
209
|
-
inputValue:
|
|
210
|
-
onChange:
|
|
206
|
+
ref: K,
|
|
207
|
+
placeholder: Re,
|
|
208
|
+
value: o || V,
|
|
209
|
+
inputValue: D,
|
|
210
|
+
onChange: ie
|
|
211
211
|
}
|
|
212
212
|
))
|
|
213
213
|
}
|
|
@@ -215,54 +215,54 @@ const fe = {
|
|
|
215
215
|
};
|
|
216
216
|
function Qe(h) {
|
|
217
217
|
const {
|
|
218
|
-
format:
|
|
219
|
-
onSelect:
|
|
218
|
+
format: a = "HH:mm:ss",
|
|
219
|
+
onSelect: k,
|
|
220
220
|
focusedInputIndex: l,
|
|
221
221
|
changeFocusedInputIndex: T,
|
|
222
222
|
popupVisible: t,
|
|
223
|
-
onConfirmValue:
|
|
223
|
+
onConfirmValue: z,
|
|
224
224
|
valueShow: f = [],
|
|
225
|
-
setValueShow:
|
|
226
|
-
disableConfirm:
|
|
227
|
-
...
|
|
228
|
-
} = h, { utcOffset:
|
|
229
|
-
function
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
P.map((
|
|
225
|
+
setValueShow: _,
|
|
226
|
+
disableConfirm: b,
|
|
227
|
+
...S
|
|
228
|
+
} = h, { utcOffset: $, timezone: v } = pe(me);
|
|
229
|
+
function q(Y, y) {
|
|
230
|
+
const R = f.slice(), P = f.map((u) => d(u, $, v));
|
|
231
|
+
R[l] = X(y, $, v), P[l] = y, k == null || k(
|
|
232
|
+
P.map((u) => u.format(a)),
|
|
233
233
|
P
|
|
234
|
-
),
|
|
234
|
+
), _(R), b && p(P) && W(P[0]) && W(P[1]) && z(R);
|
|
235
235
|
}
|
|
236
236
|
function g() {
|
|
237
|
-
f.length && (f[0] === void 0 || f[1] === void 0) ? T(l === 0 ? 1 : 0) :
|
|
237
|
+
f.length && (f[0] === void 0 || f[1] === void 0) ? T(l === 0 ? 1 : 0) : z(f);
|
|
238
238
|
}
|
|
239
|
-
const
|
|
239
|
+
const G = Je(S, [
|
|
240
240
|
"defaultValue",
|
|
241
241
|
"placeholder",
|
|
242
242
|
"value",
|
|
243
243
|
"onChange"
|
|
244
|
-
]),
|
|
244
|
+
]), w = f[l];
|
|
245
245
|
return /* @__PURE__ */ m(
|
|
246
246
|
de,
|
|
247
247
|
{
|
|
248
|
-
onSelect:
|
|
249
|
-
value:
|
|
250
|
-
format:
|
|
248
|
+
onSelect: q,
|
|
249
|
+
value: w,
|
|
250
|
+
format: a,
|
|
251
251
|
isRangePicker: !0,
|
|
252
252
|
onConfirmValue: g,
|
|
253
|
-
confirmBtnDisabled: !
|
|
254
|
-
valueShow:
|
|
253
|
+
confirmBtnDisabled: !W(w),
|
|
254
|
+
valueShow: w,
|
|
255
255
|
popupVisible: t,
|
|
256
|
-
disableConfirm:
|
|
257
|
-
...
|
|
256
|
+
disableConfirm: b,
|
|
257
|
+
...G
|
|
258
258
|
}
|
|
259
259
|
);
|
|
260
260
|
}
|
|
261
|
-
function ge(h,
|
|
261
|
+
function ge(h, a, k) {
|
|
262
262
|
function l(T) {
|
|
263
|
-
return /* @__PURE__ */ m(
|
|
263
|
+
return /* @__PURE__ */ m(Me, { ...T, picker: h, isRangePicker: k === "range" });
|
|
264
264
|
}
|
|
265
|
-
return l.displayName =
|
|
265
|
+
return l.displayName = a, l;
|
|
266
266
|
}
|
|
267
267
|
const Xe = ge(/* @__PURE__ */ m(de, {}), "TimePicker"), Ye = ge(
|
|
268
268
|
/* @__PURE__ */ m(Qe, {}),
|
package/Timeline.js
CHANGED