@unicom-cloud/ui 0.8.78 → 0.8.80
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 +5 -5
- package/BackTop.js +5 -5
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +4 -4
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -3
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +4 -4
- 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 +9 -5
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +3 -3
- package/Layout.js +2 -2
- package/Link.js +3 -3
- package/List.js +4 -4
- package/Mentions.js +5 -5
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +9 -8
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +3 -3
- package/Pagination.js +1 -1
- 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/Select.js +1 -1
- package/SelectView.js +5 -6
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +18 -20
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +7 -8
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +3 -3
- package/Tooltip.js +3 -3
- package/Transfer.js +4 -4
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +9 -10
- package/Typography.js +1 -1
- package/affix/index.js +17 -17
- package/alert/index.js +13 -13
- package/anchor/Anchor.js +40 -40
- package/anchor/Link.js +14 -14
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +5 -5
- package/avatar/Avatar.js +17 -17
- package/avatar/Group.js +13 -13
- package/back-top/index.js +18 -18
- package/badge/Count.js +13 -13
- package/badge/index.js +21 -21
- package/breadcrumb/Item.js +25 -25
- package/breadcrumb/index.js +12 -12
- package/button/Group.js +6 -6
- package/button/index.js +30 -30
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +13 -13
- package/card/Meta.js +13 -13
- package/card/index.js +29 -29
- package/carousel/Arrow.js +6 -6
- package/carousel/Indicator.js +27 -27
- package/carousel/index.js +24 -24
- package/cascader/Cascader.js +8 -8
- 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/GroupBlock.js +3 -3
- package/checkbox/index.js +2 -2
- package/chunk/{ZrBrCzQX.js → B4WG1mhs.js} +6 -7
- package/chunk/{CjqvxJml.js → BG7YGUsx.js} +32 -32
- package/chunk/BYdIoY50.js +17 -0
- package/chunk/{Cc_-i0o_.js → BZ3igxQN.js} +6 -7
- package/chunk/{uEGHykhe.js → BZ9g7J4R.js} +1 -1
- package/chunk/BsUZRQDT.js +23 -0
- package/chunk/{CBgu99gQ.js → C5X4hOkx.js} +130 -130
- package/chunk/{B0n0iRhF.js → CCKr5jj1.js} +1 -1
- package/chunk/{CNcLypMY.js → CQvM33Vg.js} +190 -189
- package/chunk/CXPOj2uy.js +19 -0
- package/chunk/{DAAff-FT.js → ClM74To2.js} +9 -10
- package/chunk/{RS6OAxzv.js → D-ap9qEk.js} +2 -2
- package/chunk/{Cwm8LL5p.js → D73Vr7fa.js} +7197 -7202
- package/chunk/{tpmioyz1.js → DEiyXzBZ.js} +28 -28
- package/chunk/{CplLA01W.js → DEuVgCzp.js} +45 -52
- package/chunk/{BPQXH_5i.js → DYspELhF.js} +43 -43
- package/chunk/DxYoPlum.js +50 -0
- package/chunk/{BpYX5PN4.js → NPajzdOv.js} +2 -2
- package/chunk/{BBkdXHrJ.js → rT6qmv-Y.js} +1 -1
- package/chunk/{BhBEMwvI.js → uKZyjtff.js} +20 -21
- package/chunk/{BC5fEyWK.js → yLRv5RIK.js} +61 -61
- package/chunk/{C_4I3haT.js → yhU2zeeu.js} +96 -96
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +22 -22
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +4 -4
- package/color-picker/index.js +3 -3
- package/comment/index.js +18 -18
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +2 -2
- package/config-provider/index.js +2 -2
- package/copy/index.js +23 -23
- package/date-picker/Picker.js +41 -41
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +28 -28
- package/divider/index.js +15 -15
- package/draggable/Item.js +11 -11
- package/draggable/index.js +15 -15
- package/drawer/Drawer.js +31 -31
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +22 -22
- package/empty/index.js +2 -2
- package/form/Control.js +46 -46
- package/form/Form.js +12 -12
- package/form/FormItem.js +12 -12
- package/form/FormLabel.js +11 -11
- package/form/context.js +7 -6
- package/form/promisify.js +9 -10
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +38 -38
- package/grid/Row.js +15 -15
- package/grid/grid-item.js +17 -17
- package/grid/grid.js +28 -28
- package/hooks/index.js +6 -6
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useKeyboardEvent.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/usePrefersColorSchemeDark.js +1 -1
- package/hooks/useVerificationCode.js +30 -30
- package/icon/index.js +20 -16
- package/icon-hover/index.js +2 -2
- package/image/Image.js +22 -22
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +11 -11
- package/image/ImagePreviewArrow.js +16 -16
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +7 -7
- package/image/TriggerForToolbar.js +7 -7
- package/image/index.js +1 -1
- package/index.js +539 -572
- package/input/Group.js +10 -10
- package/input/Input.js +213 -214
- package/input/InputElement.js +10 -11
- package/input/Password.js +4 -4
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -8
- package/input/useComposition.js +6 -6
- package/input-number/index.js +3 -3
- package/input-tag/InputTag.js +110 -111
- package/layout/Content.js +4 -4
- package/layout/Footer.js +6 -6
- package/layout/Header.js +8 -8
- package/layout/Sider.js +29 -29
- package/layout/index.js +16 -16
- package/link/index.js +27 -27
- package/list/Item.js +5 -5
- package/list/Meta.js +11 -11
- package/list/index.js +4 -4
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +5 -5
- package/menu/Item.js +11 -11
- package/menu/ItemGroup.js +8 -8
- package/menu/Menu.js +5 -5
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +3 -3
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +7 -7
- package/modal/index.js +1 -1
- package/notice/index.js +9 -8
- package/notification/index.js +3 -3
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +27 -27
- package/package.json +1 -1
- package/page-header/index.js +3 -3
- package/pagination/PageItem.js +7 -7
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +3 -3
- package/pagination/Pagination.js +4 -4
- package/pagination/index.js +1 -1
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +77 -77
- package/popconfirm/index.js +11 -11
- package/popover/index.js +21 -21
- package/progress/CircleProgress.js +14 -14
- package/progress/LineProgess.js +14 -14
- package/progress/StepProgress.js +9 -9
- package/progress/index.js +26 -26
- package/radio/Group.js +4 -4
- package/radio/GroupBlock.js +3 -3
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +16 -16
- package/resize-box/ResizeTrigger.js +27 -28
- package/resize-box/Split.js +21 -21
- package/resize-box/SplitGroup.js +40 -40
- package/resize-box/index.js +23 -23
- package/result/index.js +29 -29
- package/select/Option.js +2 -2
- package/select/Select.js +11 -12
- package/select/index.js +2 -2
- package/select/util.js +5 -5
- package/select-view/Core.js +104 -106
- package/select-view/index.js +22 -23
- package/skeleton/Image.js +14 -14
- package/skeleton/Text.js +16 -16
- package/skeleton/index.js +11 -11
- package/slider/Button.js +4 -4
- package/slider/Dot.js +9 -9
- package/slider/Input.js +20 -20
- package/slider/Tick.js +14 -14
- package/slider/index.js +103 -103
- package/slider/util.js +3 -3
- package/space/index.js +14 -14
- package/speech-synthesis/index.js +26 -28
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +16 -16
- package/statistic/Countdown.js +17 -17
- package/statistic/index.js +40 -40
- package/steps/Step.js +8 -8
- package/steps/index.js +17 -17
- package/switch/index.js +32 -33
- package/table/Table.js +5 -5
- package/table/index.js +1 -1
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +11 -11
- package/tabs/index.js +2 -2
- package/tabs/util.js +1 -1
- package/tag/index.js +16 -16
- package/time-picker/Picker.js +50 -50
- package/time-picker/TimeColumn.js +8 -8
- package/time-picker/TimePicker.js +32 -32
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +15 -15
- package/timeline/Timeline.js +24 -24
- package/tooltip/index.js +23 -23
- package/transfer/Item.js +4 -4
- package/transfer/List.js +4 -4
- package/transfer/index.js +4 -4
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/List.js +2 -2
- package/tree-select/Select.js +8 -9
- package/tree-select/index.js +2 -2
- package/trigger/getPopupStyle.js +18 -19
- package/trigger/index.js +32 -33
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/icon/index.d.ts +3 -1
- package/types/index.d.ts +1 -1
- package/types/menu/context.d.ts +1 -1
- package/typography/Base.js +33 -35
- package/typography/EditContent.js +16 -16
- package/typography/Ellipsis.js +25 -26
- package/typography/Operations.js +1 -1
- package/typography/Paragraph.js +8 -8
- package/typography/Typography.js +7 -7
- package/typography/index.js +1 -1
- package/upload/TriggerNode.js +8 -8
- package/upload/Upload.js +64 -65
- package/upload/Uploader.js +12 -12
- package/upload/request.js +13 -12
- package/upload/request_.js +5 -6
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/caseName.js +4 -3
- package/utils/className.js +4 -3
- package/utils/constant.js +3 -3
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +5 -4
- package/utils/fileToURL.js +4 -3
- package/utils/index.js +262 -299
- package/utils/is.js +78 -115
- package/utils/keyboardCode.js +4 -26
- package/utils/math.js +10 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/saveAs.js +4 -3
- package/utils/screenfull.js +4 -3
- package/utils/scrollIntoView.js +1 -1
- package/utils/setDarkTheme.js +1 -1
- package/utils/tree.js +7 -83
- package/utils/tween.js +1 -1
- package/utils/validate.js +1 -1
- package/verification-code/VerificationCode.js +25 -25
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +8 -8
- package/chunk/ATwvJ8j2.js +0 -6
- package/chunk/BFmckYou.js +0 -25
- package/chunk/Bl7BnD1R.js +0 -119
- package/chunk/Bmvhjhzq.js +0 -24
- package/chunk/BrOW642m.js +0 -130
- package/chunk/C0pRaDCf.js +0 -96
- package/chunk/CBzE-PUr.js +0 -23
- package/chunk/CUFsOxJ2.js +0 -10
- package/chunk/Ce1j9KTi.js +0 -6
- package/chunk/D0Dlbc2g.js +0 -41
- package/chunk/DRTWRsgI.js +0 -34
- package/chunk/DeV0v__J.js +0 -20
- package/chunk/DohlrJ4S.js +0 -50
- package/chunk/XTEsYGuF.js +0 -17
- package/chunk/yl4BU7Sd.js +0 -1068
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as I, Fragment as pe, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as Q, useCallback as W } from "react";
|
|
3
3
|
import X from "../button/index.js";
|
|
4
|
-
import { a as he } from "../chunk/
|
|
5
|
-
import
|
|
4
|
+
import { a as he } from "../chunk/CQvM33Vg.js";
|
|
5
|
+
import xe from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { g as $e, a as Y, d as $, j as Z } from "../chunk/tamGhTJp.js";
|
|
7
|
-
import { padStart as
|
|
7
|
+
import { padStart as d } from "../utils/pad.js";
|
|
8
8
|
import j from "./TimeColumn.js";
|
|
9
9
|
import Oe from "./context.js";
|
|
10
10
|
import { getColumnsFromFormat as D } from "./util.js";
|
|
@@ -32,7 +32,7 @@ function Me(w) {
|
|
|
32
32
|
hideFooter: oe,
|
|
33
33
|
showNowBtn: G = !0,
|
|
34
34
|
scrollSticky: te
|
|
35
|
-
} = w, { getPrefixCls: ie, locale: J } = Q(he), T = ie("timepicker"), { utcOffset: B, timezone: E } = Q(Oe), f = $e(ne, O),
|
|
35
|
+
} = w, { getPrefixCls: ie, locale: J } = Q(he), T = ie("timepicker"), { utcOffset: B, timezone: E } = Q(Oe), f = $e(ne, O), N = f && f.hour() >= 12 ? "pm" : "am", l = ve(w), L = W(
|
|
36
36
|
(n) => {
|
|
37
37
|
const o = v.hour || 1, e = v.minute || 1, P = v.second || 1, s = [];
|
|
38
38
|
if (n === "hour") {
|
|
@@ -49,40 +49,40 @@ function Me(w) {
|
|
|
49
49
|
return s;
|
|
50
50
|
},
|
|
51
51
|
[v.hour, v.minute, v.second, l]
|
|
52
|
-
),
|
|
52
|
+
), g = L("hour"), H = L("minute"), h = L("second");
|
|
53
53
|
let t = f && f.hour();
|
|
54
|
-
t = l && t > 12 ? t - 12 : t, l && t === 0 &&
|
|
54
|
+
t = l && t > 12 ? t - 12 : t, l && t === 0 && N === "am" && (t += 12);
|
|
55
55
|
const y = f && f.minute(), K = f && f.second(), R = W(
|
|
56
56
|
(n) => {
|
|
57
57
|
switch (n) {
|
|
58
58
|
case "hour":
|
|
59
|
-
return typeof p == "function" ?
|
|
60
|
-
|
|
59
|
+
return typeof p == "function" ? d(
|
|
60
|
+
g.find((o) => p().indexOf(o) === -1) || 0,
|
|
61
61
|
2,
|
|
62
62
|
"0"
|
|
63
|
-
) :
|
|
63
|
+
) : d(g[0], 2, "0");
|
|
64
64
|
case "minute":
|
|
65
|
-
return typeof c == "function" ?
|
|
65
|
+
return typeof c == "function" ? d(
|
|
66
66
|
H.find(
|
|
67
67
|
(o) => c(t).indexOf(o) === -1
|
|
68
68
|
) || 0,
|
|
69
69
|
2,
|
|
70
70
|
"0"
|
|
71
|
-
) :
|
|
71
|
+
) : d(H[0], 2, "0");
|
|
72
72
|
case "second":
|
|
73
|
-
return typeof r == "function" ?
|
|
73
|
+
return typeof r == "function" ? d(
|
|
74
74
|
h.find(
|
|
75
75
|
(o) => r(t, y).indexOf(o) === -1
|
|
76
76
|
) || 0,
|
|
77
77
|
2,
|
|
78
78
|
"0"
|
|
79
|
-
) :
|
|
79
|
+
) : d(h[0], 2, "0");
|
|
80
80
|
default:
|
|
81
81
|
return "00";
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
[
|
|
85
|
-
|
|
85
|
+
g,
|
|
86
86
|
H,
|
|
87
87
|
h,
|
|
88
88
|
p,
|
|
@@ -100,31 +100,31 @@ function Me(w) {
|
|
|
100
100
|
"HH:mm:ss"
|
|
101
101
|
);
|
|
102
102
|
let s = P.hour(), i = P.minute(), x = P.second();
|
|
103
|
-
const _ = e ?
|
|
104
|
-
let
|
|
105
|
-
l && (e ?
|
|
103
|
+
const _ = e ? N.toUpperCase() : N;
|
|
104
|
+
let m = "HH:mm:ss", u;
|
|
105
|
+
l && (e ? m = `${m} A` : m = `${m} a`), l && (s = s > 12 ? s - 12 : s), o === "hour" && (typeof c == "function" && c(n).includes(i) && (i = H.find(
|
|
106
106
|
(U) => c(n).indexOf(U) === -1
|
|
107
107
|
) ?? 0), typeof r == "function" && r(n, i).includes(x) && (x = h.find(
|
|
108
108
|
(U) => r(n, i).indexOf(U) === -1
|
|
109
109
|
) ?? 0), u = $(
|
|
110
110
|
`${n}:${i}:${x} ${_}`,
|
|
111
|
-
|
|
111
|
+
m,
|
|
112
112
|
"en"
|
|
113
113
|
)), o === "minute" && (typeof r == "function" && r(s, n).includes(x) && (x = h.find(
|
|
114
114
|
(U) => r(s, n).indexOf(U) === -1
|
|
115
115
|
) ?? 0), u = $(
|
|
116
116
|
`${s}:${n}:${x} ${_}`,
|
|
117
|
-
|
|
117
|
+
m,
|
|
118
118
|
"en"
|
|
119
119
|
)), o === "second" && (u = $(
|
|
120
120
|
`${s}:${i}:${n} ${_}`,
|
|
121
|
-
|
|
121
|
+
m,
|
|
122
122
|
"en"
|
|
123
123
|
)), o === "ampm" && (u = $(
|
|
124
124
|
`${s}:${i}:${x} ${e ? n.toUpperCase() : n}`,
|
|
125
|
-
|
|
125
|
+
m,
|
|
126
126
|
"en"
|
|
127
|
-
)), u = $(u,
|
|
127
|
+
)), u = $(u, m).locale($.locale()), C == null || C(
|
|
128
128
|
Z(u, B, E).format(O),
|
|
129
129
|
Z(u, B, E)
|
|
130
130
|
), M || (b == null || b(u), k && S(u));
|
|
@@ -143,8 +143,8 @@ function Me(w) {
|
|
|
143
143
|
scrollSticky: te
|
|
144
144
|
};
|
|
145
145
|
function ce() {
|
|
146
|
-
const o = (z && typeof p == "function" ?
|
|
147
|
-
label:
|
|
146
|
+
const o = (z && typeof p == "function" ? g.filter((e) => p().indexOf(e) === -1) : g).map((e) => ({
|
|
147
|
+
label: d(`${e}`, 2, "0"),
|
|
148
148
|
value: e,
|
|
149
149
|
selected: t !== void 0 && t === e,
|
|
150
150
|
disabled: typeof p == "function" && p().indexOf(e) !== -1
|
|
@@ -161,7 +161,7 @@ function Me(w) {
|
|
|
161
161
|
}
|
|
162
162
|
function ue() {
|
|
163
163
|
const o = (z && typeof c == "function" ? H.filter((e) => c(t).indexOf(e) === -1) : H).map((e) => ({
|
|
164
|
-
label:
|
|
164
|
+
label: d(`${e}`, 2, "0"),
|
|
165
165
|
value: e,
|
|
166
166
|
selected: t !== void 0 && y === e,
|
|
167
167
|
disabled: typeof c == "function" && c(t).indexOf(e) !== -1
|
|
@@ -176,11 +176,11 @@ function Me(w) {
|
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function me() {
|
|
180
180
|
const o = (z && typeof r == "function" ? h.filter(
|
|
181
181
|
(e) => r(t, y).indexOf(e) === -1
|
|
182
182
|
) : h).map((e) => ({
|
|
183
|
-
label:
|
|
183
|
+
label: d(`${e}`, 2, "0"),
|
|
184
184
|
value: e,
|
|
185
185
|
selected: t !== void 0 && K === e,
|
|
186
186
|
disabled: typeof r == "function" && r(t, y).indexOf(e) !== -1
|
|
@@ -195,18 +195,18 @@ function Me(w) {
|
|
|
195
195
|
}
|
|
196
196
|
);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function de() {
|
|
199
199
|
const n = D(O).list.indexOf("A") !== -1, o = Ce.map((e) => ({
|
|
200
200
|
label: n ? e.toUpperCase() : e,
|
|
201
201
|
value: e,
|
|
202
|
-
selected:
|
|
202
|
+
selected: N === e
|
|
203
203
|
}));
|
|
204
204
|
return /* @__PURE__ */ a(
|
|
205
205
|
j,
|
|
206
206
|
{
|
|
207
207
|
...A,
|
|
208
208
|
list: o,
|
|
209
|
-
value:
|
|
209
|
+
value: N,
|
|
210
210
|
unit: "ampm"
|
|
211
211
|
}
|
|
212
212
|
);
|
|
@@ -216,8 +216,8 @@ function Me(w) {
|
|
|
216
216
|
/* @__PURE__ */ I("div", { className: le, children: [
|
|
217
217
|
(F.indexOf("H") !== -1 || F.indexOf("h") !== -1) && ce(),
|
|
218
218
|
F.indexOf("m") !== -1 && ue(),
|
|
219
|
-
F.indexOf("s") !== -1 &&
|
|
220
|
-
l &&
|
|
219
|
+
F.indexOf("s") !== -1 && me(),
|
|
220
|
+
l && de()
|
|
221
221
|
] }),
|
|
222
222
|
q && /* @__PURE__ */ a("div", { className: `${T}-footer-extra-wrapper`, children: q }),
|
|
223
223
|
!ae && /* @__PURE__ */ I("div", { className: `${T}-footer-btn-wrapper`, children: [
|
package/time-picker/util.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as l, b as i } from "../chunk/uKZyjtff.js";
|
|
2
2
|
import { isDayjs as m } from "dayjs";
|
|
3
3
|
import { d as f, m as c } from "../chunk/tamGhTJp.js";
|
|
4
4
|
function T(o) {
|
|
@@ -12,7 +12,7 @@ function T(o) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
const e = /* @__PURE__ */ new Map();
|
|
15
|
-
function
|
|
15
|
+
function h(o, s, r) {
|
|
16
16
|
e.get(o) && cancelAnimationFrame(e.get(o)), r <= 0 && (o.scrollTop = s), e.set(
|
|
17
17
|
o,
|
|
18
18
|
requestAnimationFrame(() => {
|
|
@@ -28,7 +28,7 @@ function y(o, s, r) {
|
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function y(o) {
|
|
32
32
|
const s = f(), r = s.year(), a = s.month(), t = s.date();
|
|
33
33
|
if (m(o)) {
|
|
34
34
|
let n = o;
|
|
@@ -38,6 +38,6 @@ function h(o) {
|
|
|
38
38
|
}
|
|
39
39
|
export {
|
|
40
40
|
T as getColumnsFromFormat,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
y as getFormatTime,
|
|
42
|
+
h as scrollTo
|
|
43
43
|
};
|
package/timeline/Item.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import S, { useContext as g, useRef as z, useEffect as F } from "react";
|
|
3
|
-
import { a as W } from "../chunk/
|
|
3
|
+
import { a as W } from "../chunk/CQvM33Vg.js";
|
|
4
4
|
import { u as j } from "../chunk/BFTV6myl.js";
|
|
5
|
-
import
|
|
5
|
+
import N from "@unicom-cloud/utils/class-name";
|
|
6
6
|
const D = {
|
|
7
7
|
dotType: "solid",
|
|
8
8
|
lineType: "solid"
|
|
9
9
|
};
|
|
10
|
-
function k(
|
|
10
|
+
function k(v, y) {
|
|
11
11
|
const { getPrefixCls: b, componentConfig: l } = g(W), a = j(
|
|
12
|
-
|
|
12
|
+
v,
|
|
13
13
|
D,
|
|
14
14
|
l == null ? void 0 : l["Timeline.Item"]
|
|
15
15
|
), {
|
|
16
|
-
children:
|
|
16
|
+
children: m,
|
|
17
17
|
className: x,
|
|
18
18
|
style: C,
|
|
19
|
-
label:
|
|
19
|
+
label: n,
|
|
20
20
|
position: T,
|
|
21
21
|
dot: d,
|
|
22
22
|
dotColor: c,
|
|
@@ -36,14 +36,14 @@ function k(y, N) {
|
|
|
36
36
|
F(() => {
|
|
37
37
|
R && P();
|
|
38
38
|
}, [a]);
|
|
39
|
-
const $ =
|
|
39
|
+
const $ = n && /* @__PURE__ */ t("div", { className: `${e}-item-label`, children: n });
|
|
40
40
|
return /* @__PURE__ */ r(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
|
-
ref:
|
|
43
|
+
ref: y,
|
|
44
44
|
role: "listitem",
|
|
45
45
|
...w,
|
|
46
|
-
className:
|
|
46
|
+
className: N(
|
|
47
47
|
`${e}-item`,
|
|
48
48
|
{
|
|
49
49
|
[`${e}-item-${o}-${T}`]: o,
|
|
@@ -67,7 +67,7 @@ function k(y, N) {
|
|
|
67
67
|
/* @__PURE__ */ t("div", { className: `${e}-item-dot-content`, children: d ? /* @__PURE__ */ t("div", { className: `${e}-item-dot-custom`, ref: s, children: d }) : /* @__PURE__ */ t(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
|
-
className:
|
|
70
|
+
className: N(
|
|
71
71
|
`${e}-item-dot`,
|
|
72
72
|
`${e}-item-dot-${f}`
|
|
73
73
|
),
|
|
@@ -76,7 +76,7 @@ function k(y, N) {
|
|
|
76
76
|
) })
|
|
77
77
|
] }),
|
|
78
78
|
/* @__PURE__ */ r("div", { className: `${e}-item-content-wrapper`, children: [
|
|
79
|
-
|
|
79
|
+
m && /* @__PURE__ */ t("div", { className: `${e}-item-content`, children: m }),
|
|
80
80
|
i !== "relative" && $
|
|
81
81
|
] }),
|
|
82
82
|
i === "relative" && $
|
|
@@ -84,9 +84,9 @@ function k(y, N) {
|
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
86
|
}
|
|
87
|
-
const E = S.forwardRef(k),
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
const E = S.forwardRef(k), h = E;
|
|
88
|
+
h.displayName = "TimelineItem";
|
|
89
|
+
h.isTimelineItem = !0;
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
h as default
|
|
92
92
|
};
|
package/timeline/Timeline.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import d, { useContext as R } from "react";
|
|
3
|
-
import { a as w } from "../chunk/
|
|
3
|
+
import { a as w } from "../chunk/CQvM33Vg.js";
|
|
4
4
|
import { u as z } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import j from "../spin/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
const k = (
|
|
6
|
+
import y from "@unicom-cloud/utils/class-name";
|
|
7
|
+
import N from "./Item.js";
|
|
8
|
+
const k = (a, p, n, i) => {
|
|
9
9
|
let t = ["left", "right"];
|
|
10
10
|
i === "horizontal" && (t = ["top", "bottom"]);
|
|
11
|
-
const l =
|
|
11
|
+
const l = n === "alternate" ? a || t[p % 2] : n;
|
|
12
12
|
return t.indexOf(l) > -1 ? l : t[0];
|
|
13
13
|
}, C = {
|
|
14
14
|
mode: "left",
|
|
@@ -16,53 +16,53 @@ const k = (p, a, s, i) => {
|
|
|
16
16
|
pendingDot: /* @__PURE__ */ u(j, { size: 12 }),
|
|
17
17
|
labelPosition: "same"
|
|
18
18
|
};
|
|
19
|
-
function E(
|
|
20
|
-
const { getPrefixCls:
|
|
19
|
+
function E(a, p) {
|
|
20
|
+
const { getPrefixCls: n, componentConfig: i, rtl: t } = R(w);
|
|
21
21
|
t && (C.mode = "right");
|
|
22
22
|
const l = z(
|
|
23
|
-
|
|
23
|
+
a,
|
|
24
24
|
C,
|
|
25
25
|
i == null ? void 0 : i.Timeline
|
|
26
26
|
), {
|
|
27
|
-
className:
|
|
27
|
+
className: h,
|
|
28
28
|
mode: g,
|
|
29
29
|
reverse: T,
|
|
30
|
-
children:
|
|
30
|
+
children: P,
|
|
31
31
|
style: v,
|
|
32
32
|
direction: f,
|
|
33
33
|
pending: m,
|
|
34
34
|
labelPosition: b,
|
|
35
35
|
pendingDot: x,
|
|
36
36
|
...D
|
|
37
|
-
} = l, o =
|
|
37
|
+
} = l, o = n("timeline"), r = d.Children.map(P, (e) => e && e.type && e.type.isTimelineItem ? e : null) || [];
|
|
38
38
|
return m && r.push(
|
|
39
|
-
/* @__PURE__ */ u(
|
|
39
|
+
/* @__PURE__ */ u(N, { lineType: "dashed", dot: x, children: m === !0 ? "" : m })
|
|
40
40
|
), T && r.reverse(), /* @__PURE__ */ u(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
role: "list",
|
|
44
44
|
...D,
|
|
45
|
-
ref:
|
|
45
|
+
ref: p,
|
|
46
46
|
className: y(
|
|
47
47
|
o,
|
|
48
48
|
`${o}-${g}`,
|
|
49
49
|
`${o}-direction-${f}`,
|
|
50
50
|
{ [`${o}-rtl`]: t },
|
|
51
|
-
|
|
51
|
+
h
|
|
52
52
|
),
|
|
53
53
|
style: v,
|
|
54
|
-
children: r.map((e,
|
|
54
|
+
children: r.map((e, s) => {
|
|
55
55
|
if (!e)
|
|
56
56
|
return null;
|
|
57
57
|
const { position: I } = e.props;
|
|
58
58
|
let c = e.props.lineType;
|
|
59
|
-
return m && (T ?
|
|
60
|
-
key:
|
|
59
|
+
return m && (T ? s === 0 && (c = "dashed") : r.length - 2 === s && (c = "dashed")), d.cloneElement(e, {
|
|
60
|
+
key: s,
|
|
61
61
|
className: y(e.props.className, {
|
|
62
|
-
[`${o}-item-last`]: r.length - 1 ===
|
|
62
|
+
[`${o}-item-last`]: r.length - 1 === s
|
|
63
63
|
}),
|
|
64
64
|
labelPosition: b,
|
|
65
|
-
position: k(I,
|
|
65
|
+
position: k(I, s, g, f),
|
|
66
66
|
direction: f,
|
|
67
67
|
lineType: c
|
|
68
68
|
});
|
|
@@ -70,10 +70,10 @@ function E(p, a) {
|
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
const F = d.forwardRef(E),
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
const F = d.forwardRef(E), $ = F;
|
|
74
|
+
$.displayName = "Timeline";
|
|
75
|
+
$.Item = N;
|
|
76
76
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
N as TimelineItem,
|
|
78
|
+
$ as default
|
|
79
79
|
};
|
package/tooltip/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import { c as I } from "../chunk/9TSjT7x_.js";
|
|
3
3
|
import S from "lodash/isFunction";
|
|
4
4
|
import { forwardRef as j, useContext as z, useRef as B, useImperativeHandle as W, useMemo as q } from "react";
|
|
5
|
-
import { a as G } from "../chunk/
|
|
5
|
+
import { a as G } from "../chunk/CQvM33Vg.js";
|
|
6
6
|
import { u as J } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import K, { EventsByTriggerNeed as Q } from "../trigger/index.js";
|
|
8
|
-
import
|
|
9
|
-
import { c as U } from "../chunk/
|
|
8
|
+
import b from "@unicom-cloud/utils/class-name";
|
|
9
|
+
import { c as U } from "../chunk/ClM74To2.js";
|
|
10
10
|
import { a as X, p as Y } from "../chunk/ClqoGc3r.js";
|
|
11
11
|
const Z = {
|
|
12
12
|
position: "top",
|
|
@@ -30,16 +30,16 @@ function eo(h, C) {
|
|
|
30
30
|
Z,
|
|
31
31
|
l == null ? void 0 : l.Tooltip
|
|
32
32
|
), {
|
|
33
|
-
style:
|
|
33
|
+
style: N,
|
|
34
34
|
className: m,
|
|
35
|
-
children:
|
|
36
|
-
trigger:
|
|
35
|
+
children: y,
|
|
36
|
+
trigger: w,
|
|
37
37
|
escToClose: T,
|
|
38
38
|
defaultPopupVisible: V,
|
|
39
39
|
position: f,
|
|
40
40
|
unmountOnExit: v,
|
|
41
|
-
popupVisible:
|
|
42
|
-
prefixCls:
|
|
41
|
+
popupVisible: $,
|
|
42
|
+
prefixCls: D,
|
|
43
43
|
blurToHide: A,
|
|
44
44
|
popupHoverStay: E,
|
|
45
45
|
disabled: H,
|
|
@@ -49,7 +49,7 @@ function eo(h, C) {
|
|
|
49
49
|
getPopupContainer: k,
|
|
50
50
|
content: a,
|
|
51
51
|
mini: M,
|
|
52
|
-
color:
|
|
52
|
+
color: s,
|
|
53
53
|
...d
|
|
54
54
|
} = c, p = B(), L = (o = 0, e) => {
|
|
55
55
|
var r, P;
|
|
@@ -75,23 +75,23 @@ function eo(h, C) {
|
|
|
75
75
|
}),
|
|
76
76
|
[]
|
|
77
77
|
);
|
|
78
|
-
const
|
|
78
|
+
const i = D || x("tooltip"), t = {
|
|
79
79
|
...Y(d, Q),
|
|
80
80
|
...X(d),
|
|
81
81
|
...n,
|
|
82
82
|
className: b(m, n == null ? void 0 : n.className)
|
|
83
83
|
}, g = S(a) ? a() : a;
|
|
84
|
-
"popupVisible" in c ? t.popupVisible =
|
|
85
|
-
backgroundColor:
|
|
84
|
+
"popupVisible" in c ? t.popupVisible = $ : U(g, !0) && (t.popupVisible = !1), (t.showArrow !== !1 || t.arrowProps) && (t.arrowProps = t.arrowProps || {}, s && (t.arrowProps.style = {
|
|
85
|
+
backgroundColor: s,
|
|
86
86
|
...t.arrowProps.style
|
|
87
87
|
}));
|
|
88
|
-
const F = q(() =>
|
|
88
|
+
const F = q(() => s ? new I(s).isLight() ?? !1 : !1, [s]);
|
|
89
89
|
return /* @__PURE__ */ u(
|
|
90
90
|
K,
|
|
91
91
|
{
|
|
92
92
|
style: {
|
|
93
93
|
maxWidth: 350,
|
|
94
|
-
...
|
|
94
|
+
...N
|
|
95
95
|
},
|
|
96
96
|
className: m,
|
|
97
97
|
ref: p,
|
|
@@ -100,22 +100,22 @@ function eo(h, C) {
|
|
|
100
100
|
popup: () => /* @__PURE__ */ u(
|
|
101
101
|
"div",
|
|
102
102
|
{
|
|
103
|
-
style: { backgroundColor:
|
|
103
|
+
style: { backgroundColor: s },
|
|
104
104
|
className: b(
|
|
105
|
-
`${
|
|
106
|
-
`${
|
|
105
|
+
`${i}-content`,
|
|
106
|
+
`${i}-content-${f}`,
|
|
107
107
|
{
|
|
108
|
-
[`${
|
|
109
|
-
[`${
|
|
108
|
+
[`${i}-mini`]: M,
|
|
109
|
+
[`${i}-light-color`]: F
|
|
110
110
|
}
|
|
111
111
|
),
|
|
112
112
|
role: "tooltip",
|
|
113
|
-
children: /* @__PURE__ */ u("div", { className: `${
|
|
113
|
+
children: /* @__PURE__ */ u("div", { className: `${i}-content-inner`, children: g })
|
|
114
114
|
}
|
|
115
115
|
),
|
|
116
116
|
position: f,
|
|
117
117
|
disabled: H,
|
|
118
|
-
trigger:
|
|
118
|
+
trigger: w,
|
|
119
119
|
escToClose: T,
|
|
120
120
|
showArrow: !0,
|
|
121
121
|
popupAlign: oo,
|
|
@@ -124,12 +124,12 @@ function eo(h, C) {
|
|
|
124
124
|
unmountOnExit: v,
|
|
125
125
|
popupHoverStay: E,
|
|
126
126
|
blurToHide: A,
|
|
127
|
-
childrenPrefix: R ||
|
|
127
|
+
childrenPrefix: R || i,
|
|
128
128
|
getPopupContainer: k,
|
|
129
129
|
onVisibleChange: O,
|
|
130
130
|
defaultPopupVisible: V,
|
|
131
131
|
...t,
|
|
132
|
-
children:
|
|
132
|
+
children: y
|
|
133
133
|
}
|
|
134
134
|
);
|
|
135
135
|
}
|
package/transfer/Item.js
CHANGED
|
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import "../chunk/
|
|
7
|
-
import "../chunk/
|
|
8
|
-
import "
|
|
5
|
+
import { $ as d } from "../chunk/D73Vr7fa.js";
|
|
6
|
+
import "../chunk/BYdIoY50.js";
|
|
7
|
+
import "../chunk/CQvM33Vg.js";
|
|
8
|
+
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/transfer/List.js
CHANGED
|
@@ -4,11 +4,11 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import {
|
|
8
|
-
import "../chunk/
|
|
9
|
-
import "../chunk/
|
|
7
|
+
import { a0 as n, a1 as u } from "../chunk/D73Vr7fa.js";
|
|
8
|
+
import "../chunk/CQvM33Vg.js";
|
|
9
|
+
import "../chunk/BYdIoY50.js";
|
|
10
10
|
import "../input/Input.js";
|
|
11
|
-
import "
|
|
11
|
+
import "@unicom-cloud/utils/class-name";
|
|
12
12
|
export {
|
|
13
13
|
n as TransferList,
|
|
14
14
|
u as default
|
package/transfer/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import "../chunk/
|
|
7
|
+
import "../chunk/CQvM33Vg.js";
|
|
8
8
|
import "../chunk/BFTV6myl.js";
|
|
9
|
-
import "../chunk/
|
|
10
|
-
import "
|
|
9
|
+
import "../chunk/CXPOj2uy.js";
|
|
10
|
+
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../chunk/ClqoGc3r.js";
|
|
12
|
-
import { r as x } from "../chunk/
|
|
12
|
+
import { r as x } from "../chunk/D73Vr7fa.js";
|
|
13
13
|
export {
|
|
14
14
|
x as default
|
|
15
15
|
};
|
package/tree/Animation.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "lodash/isNumber";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../chunk/
|
|
5
|
-
import "../chunk/
|
|
4
|
+
import "../chunk/CQvM33Vg.js";
|
|
5
|
+
import "../chunk/NPajzdOv.js";
|
|
6
6
|
import "../virtual-list/VirtualList.js";
|
|
7
7
|
import "./Context.js";
|
|
8
|
-
import {
|
|
8
|
+
import { a2 as d } from "../chunk/D73Vr7fa.js";
|
|
9
9
|
export {
|
|
10
10
|
d as default
|
|
11
11
|
};
|
package/tree/Node.js
CHANGED
|
@@ -5,9 +5,9 @@ import "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import "lodash/isFunction";
|
|
7
7
|
import "react";
|
|
8
|
-
import { N as x } from "../chunk/
|
|
9
|
-
import "../chunk/
|
|
10
|
-
import "
|
|
8
|
+
import { N as x } from "../chunk/D73Vr7fa.js";
|
|
9
|
+
import "../chunk/CQvM33Vg.js";
|
|
10
|
+
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../utils/throttleByRaf.js";
|
|
12
12
|
import "./Context.js";
|
|
13
13
|
export {
|
package/tree/NodeList.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/BsUZRQDT.js";
|
|
4
4
|
import "../virtual-list/VirtualList.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a3 as a } from "../chunk/D73Vr7fa.js";
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
package/tree/Tree.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "
|
|
3
|
+
import "@unicom-cloud/utils/is";
|
|
4
4
|
import "lodash/get";
|
|
5
5
|
import "lodash/has";
|
|
6
6
|
import "lodash/isArray";
|
|
7
7
|
import "lodash/isEqualWith";
|
|
8
8
|
import "lodash/isFunction";
|
|
9
9
|
import "lodash/isUndefined";
|
|
10
|
-
import "../chunk/
|
|
11
|
-
import "
|
|
10
|
+
import "../chunk/CQvM33Vg.js";
|
|
11
|
+
import "@unicom-cloud/utils/class-name";
|
|
12
12
|
import "../chunk/ClqoGc3r.js";
|
|
13
13
|
import "./Context.js";
|
|
14
|
-
import { N as b, s as c } from "../chunk/
|
|
14
|
+
import { N as b, s as c } from "../chunk/D73Vr7fa.js";
|
|
15
15
|
import "./util.js";
|
|
16
16
|
export {
|
|
17
17
|
b as TreeNode,
|
package/tree/index.js
CHANGED
package/tree-select/List.js
CHANGED