@unicom-cloud/ui 0.8.75 → 0.8.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Affix.js +1 -1
- package/Alert.js +1 -1
- package/AutoComplete.js +3 -5
- package/BackTop.js +1 -1
- package/Badge.js +1 -1
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +6 -2
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -4
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -3
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +5 -6
- package/Mentions.js +3 -4
- package/Menu.js +1 -1
- package/Message.js +1 -1
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +2 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +5 -4
- package/Rate.js +1 -1
- package/ResizeBox.js +1 -1
- package/Result.js +1 -1
- package/Select.js +5 -6
- package/Skeleton.js +1 -1
- package/Slider.js +1 -1
- package/Space.js +1 -1
- package/SpeechSynthesis.js +4 -3
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +1 -1
- package/Table.js +15 -16
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +2 -2
- package/Transfer.js +3 -4
- package/Tree.js +2 -3
- package/TreeSelect.js +3 -3
- package/Trigger.js +1 -1
- package/Typography.js +3 -3
- package/affix/index.js +86 -82
- package/alert/index.js +1 -1
- package/anchor/Anchor.js +1 -1
- package/anchor/Link.js +1 -1
- package/auto-complete/index.js +13 -147
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +1 -1
- package/badge/index.js +1 -1
- package/breadcrumb/index.js +2 -2
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +12 -318
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +4 -4
- package/cascader/index.js +1 -1
- package/cascader/util.js +8 -8
- package/checkbox/Checkbox.js +7 -4
- package/checkbox/Group.js +5 -5
- package/checkbox/GroupBlock.js +8 -0
- package/checkbox/index.js +7 -2
- package/chunk/{BbqvFW5R.js → 9TSjT7x_.js} +112 -112
- package/chunk/ATwvJ8j2.js +6 -0
- package/chunk/{Dv6USvVF.js → BC5fEyWK.js} +2 -1
- package/chunk/{WVoGhvMI.js → BPQXH_5i.js} +32 -31
- package/chunk/{BPD5iNdA.js → CB4jGw4K.js} +22 -18
- package/chunk/{B8hkFIar.js → CBgu99gQ.js} +1 -1
- package/chunk/CBzE-PUr.js +23 -0
- package/chunk/CNcLypMY.js +723 -0
- package/chunk/{CPlPBkN7.js → C_4I3haT.js} +1 -1
- package/chunk/{0mWCmQHr.js → CjqvxJml.js} +2 -2
- package/chunk/Cwm8LL5p.js +7818 -0
- package/chunk/D0ZWT7db.js +5 -0
- package/chunk/{CWlklVfi.js → tpmioyz1.js} +1 -1
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +2 -2
- package/color-picker/InputRgb.js +2 -2
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +15 -266
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +13 -268
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +4 -6
- package/config-provider/context.js +3 -2
- package/config-provider/index.js +4 -5
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/PickerRange.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +30 -21
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +1 -1
- package/empty/index.js +1 -1
- package/form/Form.js +10 -10
- package/form/FormItem.js +1 -1
- package/form/context.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +1 -1
- package/grid/grid-item.js +1 -1
- package/grid/grid.js +1 -1
- package/hooks/index.js +1 -1
- package/hooks/useWindowSize.js +1 -1
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +2 -2
- package/image/ImagePreview.js +2 -2
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +453 -463
- package/input/Group.js +1 -1
- package/input/Input.js +1 -1
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +1 -1
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +17 -267
- package/mentions/index.js +11 -144
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +1 -1
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +2 -2
- package/modal/index.js +1 -1
- package/notice/index.js +1 -1
- package/notification/index.js +1 -1
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +5 -45
- package/pagination/Pagination.js +11 -243
- package/pagination/index.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/radio/Group.js +5 -5
- package/radio/GroupBlock.js +9 -0
- package/radio/Radio.js +6 -5
- package/radio/index.js +4 -3
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +1 -1
- package/result/index.js +1 -1
- package/select/Option.js +6 -93
- package/select/Select.js +23 -546
- package/select/index.js +3 -3
- package/select/util.js +18 -139
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +1 -1
- package/slider/index.js +1 -1
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +4 -3
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +0 -484
- package/style.css +1 -1
- package/switch/index.js +1 -1
- package/table/Table.js +2 -3
- package/table/index.js +15 -109
- package/tabs/Tab.js +2 -2
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +2 -2
- package/transfer/Item.js +9 -104
- package/transfer/List.js +13 -184
- package/transfer/index.js +13 -180
- package/tree/Animation.js +2 -2
- package/tree/Node.js +3 -4
- package/tree/NodeList.js +6 -80
- package/tree/Tree.js +17 -578
- package/tree/index.js +2 -3
- package/tree-select/List.js +6 -122
- package/tree-select/Select.js +22 -392
- package/tree-select/index.js +3 -3
- package/trigger/index.js +1 -1
- package/types/checkbox/Checkbox.d.ts +5 -2
- package/types/checkbox/GroupBlock.d.ts +7 -0
- package/types/checkbox/index.d.ts +2 -1
- package/types/config-provider/ConfigProvider.d.ts +0 -27
- package/types/config-provider/interface.d.ts +3 -1
- package/types/index.d.ts +2 -2
- package/types/menu/context.d.ts +1 -1
- package/types/radio/GroupBlock.d.ts +7 -0
- package/types/radio/Radio.d.ts +5 -3
- package/types/utils/constant.d.ts +2 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/setDarkTheme.d.ts +2 -3
- package/types/utils/setPrimaryColor.d.ts +2 -0
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +9 -22
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +10 -276
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +1 -1
- package/upload/Uploader.js +43 -44
- package/upload/request.js +1 -1
- package/upload/request_.js +1 -1
- package/utils/caseName.js +1 -1
- package/utils/color.js +1 -1
- package/utils/constant.js +7 -5
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +199 -195
- package/utils/setDarkTheme.js +34 -5
- package/utils/setPrimaryColor.js +26 -0
- package/utils/tinycolor.js +1 -1
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BViFMHr-.js +0 -1820
- package/chunk/BsWphzcT.js +0 -20
- package/chunk/BxZ39GzB.js +0 -209
- package/chunk/C9XYyypq.js +0 -713
- package/chunk/CIkPwQlq.js +0 -6
- package/chunk/DFcz9ZPP.js +0 -1020
- package/chunk/DeCsZrXb.js +0 -310
- package/chunk/DskaI8QL.js +0 -25
- package/chunk/EL5Jmjgr.js +0 -170
package/switch/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import q from "@unicom-cloud/icons/IconUiLoading";
|
|
|
3
3
|
import { h as A } from "../chunk/BJ9_azwQ.js";
|
|
4
4
|
import B from "lodash/isArray";
|
|
5
5
|
import { forwardRef as L, useContext as M, useState as O } from "react";
|
|
6
|
-
import { a as Q } from "../chunk/
|
|
6
|
+
import { a as Q } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as U } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { P as x } from "../chunk/BpYX5PN4.js";
|
|
9
9
|
import { p as W } from "../chunk/CUFsOxJ2.js";
|
package/table/Table.js
CHANGED
|
@@ -6,18 +6,17 @@ import "lodash/isNumber";
|
|
|
6
6
|
import "lodash/isPlainObject";
|
|
7
7
|
import "lodash/throttle";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../chunk/
|
|
9
|
+
import "../chunk/CNcLypMY.js";
|
|
10
10
|
import "../chunk/B2yFlXke.js";
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
13
|
-
import "../
|
|
13
|
+
import { a4 as q } from "../chunk/Cwm8LL5p.js";
|
|
14
14
|
import "../spin/index.js";
|
|
15
15
|
import "../chunk/CUFsOxJ2.js";
|
|
16
16
|
import "../utils/dom.js";
|
|
17
17
|
import "../chunk/ClqoGc3r.js";
|
|
18
18
|
import "../chunk/CIRG541s.js";
|
|
19
19
|
import "./ColGroup.js";
|
|
20
|
-
import { T as q } from "../chunk/BViFMHr-.js";
|
|
21
20
|
import "./util.js";
|
|
22
21
|
export {
|
|
23
22
|
q as default
|
package/table/index.js
CHANGED
|
@@ -1,111 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { defaultComponent as I } from "./constant.js";
|
|
4
|
-
import y, { useRef as g, useContext as w, useCallback as f, useEffect as A, useState as O } from "react";
|
|
5
|
-
import { jsx as T, jsxs as U } from "react/jsx-runtime";
|
|
6
|
-
import j from "lodash/isFunction";
|
|
7
|
-
import { a as E } from "../chunk/C9XYyypq.js";
|
|
8
|
-
import { p as P } from "../chunk/CUFsOxJ2.js";
|
|
9
|
-
import { on as M, off as N } from "../utils/dom.js";
|
|
10
|
-
import { o as q } from "../chunk/BKKEev13.js";
|
|
11
|
-
import $ from "lodash/get";
|
|
12
|
-
function H(u) {
|
|
13
|
-
let { className: r, children: o, column: p, onResize: i, ...d } = u;
|
|
14
|
-
const n = I.header.th, a = g(null), C = g(null), l = g({}), { getPrefixCls: s } = w(E), b = s("table-th-resizable");
|
|
15
|
-
if (!j(i)) return /* @__PURE__ */ T(n, { ref: a, ...d, className: r, children: o });
|
|
16
|
-
const t = f((e) => {
|
|
17
|
-
l.current.boundingClientRect = a.current.getBoundingClientRect(), l.current.pageX = (e == null ? void 0 : e.pageX) ?? 0, S();
|
|
18
|
-
}, []), m = f((e) => {
|
|
19
|
-
x();
|
|
20
|
-
}, []), c = f((e) => {
|
|
21
|
-
let h = l.current.boundingClientRect.width + (((e == null ? void 0 : e.pageX) ?? 0) - l.current.pageX);
|
|
22
|
-
h < 0 || (p.width = h, i == null || i({
|
|
23
|
-
column: p,
|
|
24
|
-
width: h,
|
|
25
|
-
widthOrigin: l.current.boundingClientRect.width
|
|
26
|
-
}));
|
|
27
|
-
}, []), S = f((e) => {
|
|
28
|
-
M(document, "mousemove", c), M(document, "mouseup", m);
|
|
29
|
-
}, []), x = f((e) => {
|
|
30
|
-
N(document, "mousemove", c), N(document, "mouseup", m);
|
|
31
|
-
}, []);
|
|
32
|
-
return r = P(r, b), A(() => (t(), c(), m(), () => {
|
|
33
|
-
x();
|
|
34
|
-
}), []), /* @__PURE__ */ U(n, { ref: a, ...d, className: r, children: [
|
|
35
|
-
o,
|
|
36
|
-
/* @__PURE__ */ T(
|
|
37
|
-
"div",
|
|
38
|
-
{
|
|
39
|
-
ref: C,
|
|
40
|
-
className: `${b}-cursor`,
|
|
41
|
-
onMouseDown: t
|
|
42
|
-
}
|
|
43
|
-
)
|
|
44
|
-
] });
|
|
45
|
-
}
|
|
46
|
-
function se(u = {}) {
|
|
47
|
-
const r = f((n, a) => ({
|
|
48
|
-
column: n,
|
|
49
|
-
onResize(l) {
|
|
50
|
-
const { column: s = {}, width: b } = l ?? {};
|
|
51
|
-
d((t) => {
|
|
52
|
-
const m = t.find((c) => c === s || c.dataIndex === s.dataIndex && c.title == s.title);
|
|
53
|
-
return m ? (m.width = b ?? s.width, o(t)) : t;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}), []), o = f((n) => n.map((a, C, l) => {
|
|
57
|
-
const s = a;
|
|
58
|
-
return C < l.length - 1 && a.resizable !== !1 && !a.fixed && (s.onHeaderCell = r), s;
|
|
59
|
-
}), []), p = f((n) => d(o(n)), []), [i, d] = O(() => {
|
|
60
|
-
const n = u.columns;
|
|
61
|
-
return n ? o(n) : [];
|
|
62
|
-
});
|
|
63
|
-
return A(() => () => {
|
|
64
|
-
}, []), {
|
|
65
|
-
columns: i,
|
|
66
|
-
setColumns: p,
|
|
67
|
-
ThResizable: H
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function v(u) {
|
|
71
|
-
const { children: r, ...o } = u;
|
|
72
|
-
return /* @__PURE__ */ T("td", { ...q(o, ["$$PqbTableSummaryCell"]), children: r });
|
|
73
|
-
}
|
|
74
|
-
v.__PQB_TABLE_SUMMARY_CELL__ = !0;
|
|
75
|
-
function Q(u) {
|
|
76
|
-
const { rtl: r } = w(E), { columns: o, stickyOffsets: p, stickyClassNames: i, prefixCls: d } = w(X), { children: n, ...a } = u, C = y.Children.map(
|
|
77
|
-
n,
|
|
78
|
-
(s) => s.props.colSpan || 1
|
|
79
|
-
), l = y.Children.map(n, (s, b) => {
|
|
80
|
-
var k, L;
|
|
81
|
-
const t = s, m = $(t, "type.__PQB_TABLE_SUMMARY_CELL__") || $(t, "props.$$PqbTableSummaryCell"), c = (k = t == null ? void 0 : t.props) == null ? void 0 : k.style, S = (L = t == null ? void 0 : t.props) == null ? void 0 : L.className, e = C.slice(0, b).reduce((z, B) => z + B, 0), R = o[e].fixed === "left" ? { [r ? "right" : "left"]: p[e] } : o[e].fixed === "right" ? { [r ? "left" : "right"]: p[e] } : {}, h = o[e].fixed === "left" || o[e].fixed === "right" ? i[e] : "";
|
|
82
|
-
return m ? y.cloneElement(t, {
|
|
83
|
-
...t.props,
|
|
84
|
-
className: P(`${d}-td`, h, S),
|
|
85
|
-
style: { ...c, ...R }
|
|
86
|
-
}) : s;
|
|
87
|
-
});
|
|
88
|
-
return /* @__PURE__ */ T("tr", { ...a, children: l });
|
|
89
|
-
}
|
|
90
|
-
function _(u) {
|
|
91
|
-
return u.children;
|
|
92
|
-
}
|
|
93
|
-
_.Row = Q;
|
|
94
|
-
_.Cell = v;
|
|
95
|
-
const Y = D;
|
|
96
|
-
Y.Summary = _;
|
|
1
|
+
import { h as s, i as l, j as o, T as u, u as m, k as t, l as b, m as T, n, o as r, p as f, q as p } from "../chunk/Cwm8LL5p.js";
|
|
2
|
+
import { defaultComponent as C } from "./constant.js";
|
|
97
3
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
4
|
+
s as TableSummary,
|
|
5
|
+
l as TableSummaryCell,
|
|
6
|
+
o as TableSummaryRow,
|
|
7
|
+
u as default,
|
|
8
|
+
C as tableDefaultComponent,
|
|
9
|
+
m as useTableColumns,
|
|
10
|
+
t as useTableComponent,
|
|
11
|
+
b as useTableExpand,
|
|
12
|
+
T as useTableRowSelection,
|
|
13
|
+
n as useTableSorter,
|
|
14
|
+
r as useTableStickyClassNames,
|
|
15
|
+
f as useTableStickyOffsets,
|
|
16
|
+
p as useTableThResizable
|
|
111
17
|
};
|
package/tabs/Tab.js
CHANGED
|
@@ -2,13 +2,13 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "lodash/isFunction";
|
|
3
3
|
import "lodash/isPlainObject";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../chunk/
|
|
5
|
+
import "../chunk/CNcLypMY.js";
|
|
6
6
|
import "../chunk/B4YRLi8r.js";
|
|
7
7
|
import "../chunk/BFTV6myl.js";
|
|
8
8
|
import "../chunk/DeV0v__J.js";
|
|
9
9
|
import "../chunk/CUFsOxJ2.js";
|
|
10
10
|
import "../chunk/BKKEev13.js";
|
|
11
|
-
import { a as d, T as l } from "../chunk/
|
|
11
|
+
import { a as d, T as l } from "../chunk/CjqvxJml.js";
|
|
12
12
|
import { default as u, default as x } from "./TabPane.js";
|
|
13
13
|
export {
|
|
14
14
|
u as TabPane,
|
package/tabs/TabContent.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../chunk/
|
|
3
|
+
import "../chunk/CNcLypMY.js";
|
|
4
4
|
import "../chunk/CUFsOxJ2.js";
|
|
5
|
-
import { b as a } from "../chunk/
|
|
5
|
+
import { b as a } from "../chunk/CjqvxJml.js";
|
|
6
6
|
export {
|
|
7
7
|
a as default
|
|
8
8
|
};
|
package/tabs/TabPane.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import d, { useRef as p, useContext as b } from "react";
|
|
3
|
-
import { a as x } from "../chunk/
|
|
3
|
+
import { a as x } from "../chunk/CNcLypMY.js";
|
|
4
4
|
import { p as C } from "../chunk/CUFsOxJ2.js";
|
|
5
5
|
import { o as P } from "../chunk/BKKEev13.js";
|
|
6
6
|
function R(r, a) {
|
package/tabs/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as e } from "../chunk/
|
|
2
|
-
import { a as s } from "../chunk/
|
|
1
|
+
import { T as e } from "../chunk/CjqvxJml.js";
|
|
2
|
+
import { a as s } from "../chunk/CjqvxJml.js";
|
|
3
3
|
import { default as f, default as T } from "./TabPane.js";
|
|
4
4
|
export {
|
|
5
5
|
f as TabPane,
|
package/tag/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import Q from "@unicom-cloud/icons/IconUiClose";
|
|
|
3
3
|
import W from "@unicom-cloud/icons/IconUiLoading";
|
|
4
4
|
import b from "lodash/isPlainObject";
|
|
5
5
|
import { forwardRef as X, useContext as Y, useState as v } from "react";
|
|
6
|
-
import { a as Z, I as S } from "../chunk/
|
|
6
|
+
import { a as Z, I as S } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as ee } from "../chunk/XTEsYGuF.js";
|
|
8
8
|
import { u as oe } from "../chunk/BFTV6myl.js";
|
|
9
9
|
import ne from "../popconfirm/index.js";
|
package/time-picker/Picker.js
CHANGED
|
@@ -3,7 +3,7 @@ import De from "@unicom-cloud/icons/IconUiClockCircle";
|
|
|
3
3
|
import { isDayjs as Se } from "dayjs";
|
|
4
4
|
import l from "lodash/isArray";
|
|
5
5
|
import Te, { useContext as je, useState as I, useRef as we } from "react";
|
|
6
|
-
import { a as Ae } from "../chunk/
|
|
6
|
+
import { a as Ae } from "../chunk/CNcLypMY.js";
|
|
7
7
|
import { u as Ee } from "../chunk/BFTV6myl.js";
|
|
8
8
|
import { u as Y } from "../chunk/VSe_Wq1g.js";
|
|
9
9
|
import { u as He } from "../chunk/a3hR6zLw.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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/
|
|
4
|
+
import { a as he } from "../chunk/CNcLypMY.js";
|
|
5
5
|
import { p as xe } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
import { g as $e, a as Y, d as $, j as Z } from "../chunk/tamGhTJp.js";
|
|
7
7
|
import { padStart as m } from "../utils/pad.js";
|
package/timeline/Item.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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/CNcLypMY.js";
|
|
4
4
|
import { u as j } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import { p as h } from "../chunk/CUFsOxJ2.js";
|
|
6
6
|
const D = {
|
package/timeline/Timeline.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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/CNcLypMY.js";
|
|
4
4
|
import { u as z } from "../chunk/BFTV6myl.js";
|
|
5
5
|
import j from "../spin/index.js";
|
|
6
6
|
import { p as y } from "../chunk/CUFsOxJ2.js";
|
package/tooltip/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { c as I } from "../chunk/
|
|
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/CNcLypMY.js";
|
|
6
6
|
import { u as J } from "../chunk/BFTV6myl.js";
|
|
7
7
|
import K, { EventsByTriggerNeed as Q } from "../trigger/index.js";
|
|
8
8
|
import { p as b } from "../chunk/CUFsOxJ2.js";
|
package/transfer/Item.js
CHANGED
|
@@ -1,106 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
function te(w) {
|
|
10
|
-
const {
|
|
11
|
-
className: E,
|
|
12
|
-
prefixCls: O,
|
|
13
|
-
render: v,
|
|
14
|
-
item: t,
|
|
15
|
-
selectedKeys: S,
|
|
16
|
-
disabled: K,
|
|
17
|
-
draggable: C,
|
|
18
|
-
droppable: l,
|
|
19
|
-
allowClear: R,
|
|
20
|
-
onItemSelect: j,
|
|
21
|
-
onItemRemove: $,
|
|
22
|
-
onDragStart: d,
|
|
23
|
-
onDragEnd: g,
|
|
24
|
-
onDragLeave: m,
|
|
25
|
-
onDragOver: p,
|
|
26
|
-
onDrop: f
|
|
27
|
-
} = w, U = z(), o = `${O}-view-item`, y = N(null), u = N(null), [a, n] = h("none"), [D, s] = h(!1), [b, I] = h(0), i = K || t.disabled, k = C && !i, Y = S.indexOf(t.key) > -1, x = v ? v(t) : t.value;
|
|
28
|
-
return T(() => () => {
|
|
29
|
-
u.current && clearTimeout(u.current);
|
|
30
|
-
}, []), T(() => {
|
|
31
|
-
a === "dragged" && (u.current = setTimeout(() => n("none"), 1e3));
|
|
32
|
-
}, [a]), /* @__PURE__ */ P(
|
|
33
|
-
"li",
|
|
34
|
-
{
|
|
35
|
-
ref: y,
|
|
36
|
-
className: G(
|
|
37
|
-
o,
|
|
38
|
-
{
|
|
39
|
-
[`${o}-disabled`]: i,
|
|
40
|
-
[`${o}-draggable`]: k,
|
|
41
|
-
[`${o}-gap-top`]: D && b < 0,
|
|
42
|
-
[`${o}-gap-bottom`]: D && b > 0,
|
|
43
|
-
[`${o}-${a}`]: a !== "none"
|
|
44
|
-
},
|
|
45
|
-
E
|
|
46
|
-
),
|
|
47
|
-
draggable: k,
|
|
48
|
-
onDragStart: (e) => {
|
|
49
|
-
e.stopPropagation(), n("dragging"), d == null || d(e, t);
|
|
50
|
-
try {
|
|
51
|
-
e.dataTransfer.setData("text/plain", "");
|
|
52
|
-
} catch (c) {
|
|
53
|
-
console.error(c);
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
onDragEnd: (e) => {
|
|
57
|
-
e.stopPropagation(), s(!1), n("dragged"), g == null || g(e, t);
|
|
58
|
-
},
|
|
59
|
-
onDragOver: (e) => {
|
|
60
|
-
if (l) {
|
|
61
|
-
e.stopPropagation(), e.preventDefault();
|
|
62
|
-
const c = y.current.getBoundingClientRect(), _ = window.pageYOffset + c.top + c.height / 2, B = e.pageY > _ ? 1 : -1;
|
|
63
|
-
s(!0), I(B), p == null || p(e, t);
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
onDragLeave: (e) => {
|
|
67
|
-
l && (e.stopPropagation(), s(!1), m == null || m(e, t));
|
|
68
|
-
},
|
|
69
|
-
onDrop: (e) => {
|
|
70
|
-
l && (e.stopPropagation(), e.preventDefault(), s(!1), I(0), n("none"), f == null || f(e, t, b));
|
|
71
|
-
},
|
|
72
|
-
children: [
|
|
73
|
-
C ? /* @__PURE__ */ r(V, { className: `${o}-icon-drag` }) : null,
|
|
74
|
-
R ? /* @__PURE__ */ P(F, { children: [
|
|
75
|
-
/* @__PURE__ */ r("span", { className: `${o}-content`, children: x }),
|
|
76
|
-
!i && /* @__PURE__ */ r(
|
|
77
|
-
A,
|
|
78
|
-
{
|
|
79
|
-
className: `${o}-icon-remove`,
|
|
80
|
-
onClick: () => $(t.key),
|
|
81
|
-
tabIndex: 0,
|
|
82
|
-
role: "button",
|
|
83
|
-
...U({
|
|
84
|
-
onPressEnter: () => $(t.key)
|
|
85
|
-
}),
|
|
86
|
-
children: /* @__PURE__ */ r(H, {})
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] }) : /* @__PURE__ */ r(
|
|
90
|
-
q,
|
|
91
|
-
{
|
|
92
|
-
className: `${o}-content`,
|
|
93
|
-
checked: Y,
|
|
94
|
-
disabled: i,
|
|
95
|
-
onChange: (e) => j(t.key, e),
|
|
96
|
-
children: x
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
]
|
|
100
|
-
},
|
|
101
|
-
t.key
|
|
102
|
-
);
|
|
103
|
-
}
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@unicom-cloud/icons/IconUiClose";
|
|
3
|
+
import "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
|
+
import "react";
|
|
5
|
+
import { a5 as d } from "../chunk/Cwm8LL5p.js";
|
|
6
|
+
import "../chunk/XTEsYGuF.js";
|
|
7
|
+
import "../chunk/CNcLypMY.js";
|
|
8
|
+
import "../chunk/CUFsOxJ2.js";
|
|
104
9
|
export {
|
|
105
|
-
|
|
10
|
+
d as default
|
|
106
11
|
};
|
package/transfer/List.js
CHANGED
|
@@ -1,186 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { p as ge } from "../chunk/CUFsOxJ2.js";
|
|
13
|
-
import xe from "./Item.js";
|
|
14
|
-
const be = (q, G) => {
|
|
15
|
-
const J = ue(), {
|
|
16
|
-
style: M,
|
|
17
|
-
prefixCls: O,
|
|
18
|
-
className: Q,
|
|
19
|
-
listType: V,
|
|
20
|
-
dataSource: m,
|
|
21
|
-
selectedKeys: l = [],
|
|
22
|
-
validKeys: f,
|
|
23
|
-
selectedDisabledKeys: g,
|
|
24
|
-
title: h = "",
|
|
25
|
-
disabled: i,
|
|
26
|
-
draggable: W,
|
|
27
|
-
allowClear: P,
|
|
28
|
-
showSearch: c,
|
|
29
|
-
showFooter: j,
|
|
30
|
-
searchPlaceholder: X,
|
|
31
|
-
render: Y,
|
|
32
|
-
renderList: x,
|
|
33
|
-
pagination: b,
|
|
34
|
-
handleSelect: k,
|
|
35
|
-
handleRemove: v,
|
|
36
|
-
filterOption: D,
|
|
37
|
-
renderHeaderUnit: Z,
|
|
38
|
-
virtualListProps: _,
|
|
39
|
-
onSearch: y,
|
|
40
|
-
onResetData: ee,
|
|
41
|
-
onDragStart: N,
|
|
42
|
-
onDragEnd: T,
|
|
43
|
-
onDragLeave: R,
|
|
44
|
-
onDragOver: $,
|
|
45
|
-
onDrop: S
|
|
46
|
-
} = q, a = `${O}-view`, { locale: w } = de(he), [p, F] = L(null), [u, te] = L(""), [C, ne] = L(m);
|
|
47
|
-
me(() => {
|
|
48
|
-
ne(
|
|
49
|
-
u ? m.filter((n) => D(u, n)) : m
|
|
50
|
-
);
|
|
51
|
-
}, [m, u, D]);
|
|
52
|
-
const H = (n, s) => k(
|
|
53
|
-
s ? l.concat(n) : l.filter((e) => e !== n)
|
|
54
|
-
), oe = (n, s) => k(
|
|
55
|
-
s ? [...new Set(l.concat(n))] : l.filter(
|
|
56
|
-
(e) => n.indexOf(e) === -1
|
|
57
|
-
)
|
|
58
|
-
), E = (n) => () => v(n), U = /* @__PURE__ */ r(
|
|
59
|
-
Ce,
|
|
60
|
-
{
|
|
61
|
-
size: "small",
|
|
62
|
-
disabled: i,
|
|
63
|
-
placeholder: X,
|
|
64
|
-
suffix: /* @__PURE__ */ r(ce, {}),
|
|
65
|
-
...B(c) ? c : {},
|
|
66
|
-
onChange: (n, s) => {
|
|
67
|
-
var e;
|
|
68
|
-
te(n), y == null || y(n), B(c) && ((e = c.onChange) == null || e.call(c, n, s));
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
), re = () => {
|
|
72
|
-
const n = l.length, s = C.length, e = u ? f.filter(
|
|
73
|
-
(d) => C.find(({ key: ae }) => ae === d)
|
|
74
|
-
) : f, t = e.filter(
|
|
75
|
-
(d) => l.indexOf(d) > -1
|
|
76
|
-
).length, o = {
|
|
77
|
-
disabled: i,
|
|
78
|
-
checked: t > 0 && t === e.length,
|
|
79
|
-
indeterminate: t > 0 && t < e.length,
|
|
80
|
-
onChange: (d) => oe(e, d)
|
|
81
|
-
};
|
|
82
|
-
if (typeof h == "function")
|
|
83
|
-
return h({
|
|
84
|
-
countTotal: s,
|
|
85
|
-
countSelected: n,
|
|
86
|
-
clear: E(e),
|
|
87
|
-
checkbox: /* @__PURE__ */ r(A, { ...o }),
|
|
88
|
-
searchInput: U
|
|
89
|
-
});
|
|
90
|
-
const I = /* @__PURE__ */ r("span", { className: `${a}-header-unit`, children: Z(n, s) });
|
|
91
|
-
return P ? /* @__PURE__ */ K(z, { children: [
|
|
92
|
-
/* @__PURE__ */ r("span", { className: `${a}-header-title`, children: h }),
|
|
93
|
-
I,
|
|
94
|
-
!i && f.length ? /* @__PURE__ */ r(
|
|
95
|
-
pe,
|
|
96
|
-
{
|
|
97
|
-
className: `${a}-icon-clear`,
|
|
98
|
-
onClick: E(e),
|
|
99
|
-
tabIndex: 0,
|
|
100
|
-
role: "button",
|
|
101
|
-
...J({
|
|
102
|
-
onPressEnter: E(e)
|
|
103
|
-
}),
|
|
104
|
-
children: /* @__PURE__ */ r(le, {})
|
|
105
|
-
}
|
|
106
|
-
) : null
|
|
107
|
-
] }) : /* @__PURE__ */ K(z, { children: [
|
|
108
|
-
/* @__PURE__ */ r("span", { className: `${a}-header-title`, children: /* @__PURE__ */ r(A, { ...o, children: h }) }),
|
|
109
|
-
I
|
|
110
|
-
] });
|
|
111
|
-
}, se = () => {
|
|
112
|
-
var s;
|
|
113
|
-
const n = x == null ? void 0 : x({
|
|
114
|
-
listType: V,
|
|
115
|
-
disabled: i,
|
|
116
|
-
selectedKeys: l,
|
|
117
|
-
validKeys: f,
|
|
118
|
-
selectedDisabledKeys: g,
|
|
119
|
-
filteredItems: C,
|
|
120
|
-
onItemRemove: (e) => v([e]),
|
|
121
|
-
onItemSelect: H,
|
|
122
|
-
onItemSelectAll: (e, t) => {
|
|
123
|
-
k(
|
|
124
|
-
t ? e.concat(g) : [...g]
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
return n ? /* @__PURE__ */ r("div", { className: `${a}-custom-list`, children: n }) : /* @__PURE__ */ r(
|
|
129
|
-
Ie,
|
|
130
|
-
{
|
|
131
|
-
bordered: !1,
|
|
132
|
-
paginationInFooter: !0,
|
|
133
|
-
virtualListProps: _,
|
|
134
|
-
wrapperClassName: `${a}-list`,
|
|
135
|
-
dataSource: C,
|
|
136
|
-
pagination: b ? {
|
|
137
|
-
simple: !0,
|
|
138
|
-
size: "mini",
|
|
139
|
-
...typeof b == "object" ? b : {}
|
|
140
|
-
} : void 0,
|
|
141
|
-
footer: j === !0 ? /* @__PURE__ */ r(fe, { size: "mini", disabled: i, onClick: ee, children: (s = w == null ? void 0 : w.Transfer) == null ? void 0 : s.resetText }) : j || null,
|
|
142
|
-
render: (e) => /* @__PURE__ */ r(
|
|
143
|
-
xe,
|
|
144
|
-
{
|
|
145
|
-
prefixCls: O,
|
|
146
|
-
item: e,
|
|
147
|
-
disabled: i,
|
|
148
|
-
draggable: W,
|
|
149
|
-
droppable: !!p,
|
|
150
|
-
allowClear: P,
|
|
151
|
-
render: Y,
|
|
152
|
-
selectedKeys: l,
|
|
153
|
-
onItemSelect: (t, o) => H(t, o),
|
|
154
|
-
onItemRemove: (t) => v([t]),
|
|
155
|
-
onDragStart: (t, o) => {
|
|
156
|
-
F(o), N == null || N(t, o);
|
|
157
|
-
},
|
|
158
|
-
onDragEnd: (t, o) => {
|
|
159
|
-
F(null), T == null || T(t, o);
|
|
160
|
-
},
|
|
161
|
-
onDragLeave: (t, o) => R == null ? void 0 : R(t, o),
|
|
162
|
-
onDragOver: (t, o) => $ == null ? void 0 : $(t, o),
|
|
163
|
-
onDrop: (t, o, I) => {
|
|
164
|
-
p && p.key !== o.key && (S == null || S({
|
|
165
|
-
e: t,
|
|
166
|
-
dropItem: o,
|
|
167
|
-
dropPosition: I,
|
|
168
|
-
dragItem: p
|
|
169
|
-
}));
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
e.key
|
|
173
|
-
)
|
|
174
|
-
}
|
|
175
|
-
);
|
|
176
|
-
};
|
|
177
|
-
return /* @__PURE__ */ K("div", { ref: G, className: ge(a, Q), style: M, children: [
|
|
178
|
-
/* @__PURE__ */ r("div", { className: `${a}-header`, children: re() }),
|
|
179
|
-
c && /* @__PURE__ */ r("div", { className: `${a}-search`, children: U }),
|
|
180
|
-
se()
|
|
181
|
-
] });
|
|
182
|
-
}, Pe = ie.forwardRef(be);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "@unicom-cloud/icons/IconUiDelete";
|
|
3
|
+
import "@unicom-cloud/icons/IconUiSearch";
|
|
4
|
+
import "lodash/isPlainObject";
|
|
5
|
+
import "react";
|
|
6
|
+
import "../button/index.js";
|
|
7
|
+
import { a6 as n, a7 as u } from "../chunk/Cwm8LL5p.js";
|
|
8
|
+
import "../chunk/CNcLypMY.js";
|
|
9
|
+
import "../chunk/XTEsYGuF.js";
|
|
10
|
+
import "../input/Input.js";
|
|
11
|
+
import "../chunk/CUFsOxJ2.js";
|
|
183
12
|
export {
|
|
184
|
-
|
|
185
|
-
|
|
13
|
+
n as TransferList,
|
|
14
|
+
u as default
|
|
186
15
|
};
|