@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/chunk/DeCsZrXb.js
DELETED
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { jsx as l, jsxs as L, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import W from "@unicom-cloud/icons/IconUiCaretDown";
|
|
3
|
-
import X from "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
|
-
import Z from "@unicom-cloud/icons/IconUiFile";
|
|
5
|
-
import ee from "@unicom-cloud/icons/IconUiLoading";
|
|
6
|
-
import p from "lodash/isFunction";
|
|
7
|
-
import ne, { useContext as _, useRef as j, useEffect as U, useMemo as Y, forwardRef as te, useState as ie, useCallback as S } from "react";
|
|
8
|
-
import { C as ae } from "./BxZ39GzB.js";
|
|
9
|
-
import { a as B, I as re } from "./C9XYyypq.js";
|
|
10
|
-
import { p as O } from "./CUFsOxJ2.js";
|
|
11
|
-
import oe from "../utils/throttleByRaf.js";
|
|
12
|
-
import se from "lodash/isNumber";
|
|
13
|
-
import { P as le } from "./BpYX5PN4.js";
|
|
14
|
-
import ce from "../virtual-list/VirtualList.js";
|
|
15
|
-
import { TreeContext as V } from "../tree/Context.js";
|
|
16
|
-
function de(e) {
|
|
17
|
-
return e.key || e._key;
|
|
18
|
-
}
|
|
19
|
-
const ge = (e) => {
|
|
20
|
-
var w;
|
|
21
|
-
const g = _(V), { getPrefixCls: t } = _(B), C = t("tree-node"), { expandedKeys: N, currentExpandKeys: o } = g.getTreeState(), h = e.expanded, x = j(e.childrenData);
|
|
22
|
-
x.current = e.childrenData, U(() => () => {
|
|
23
|
-
var a;
|
|
24
|
-
(a = g.onExpandEnd) == null || a.call(g, e._key);
|
|
25
|
-
}, []);
|
|
26
|
-
const $ = Y(() => {
|
|
27
|
-
const a = [], d = (u) => {
|
|
28
|
-
u.forEach((f) => {
|
|
29
|
-
const s = g.getFieldInfo(f);
|
|
30
|
-
a.push(s), s.children && s.children.length && d(s.children);
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
return d(x.current || []), a;
|
|
34
|
-
}, [h]), b = Y(() => {
|
|
35
|
-
const a = [];
|
|
36
|
-
if ($.length) {
|
|
37
|
-
const d = new Set(N || []);
|
|
38
|
-
$.forEach((u) => {
|
|
39
|
-
var k;
|
|
40
|
-
let f;
|
|
41
|
-
const s = {
|
|
42
|
-
...g.key2nodeProps[u.key]
|
|
43
|
-
};
|
|
44
|
-
if (h)
|
|
45
|
-
f = s.parentKey === e._key || ((k = s.pathParentKeys) == null ? void 0 : k.every((v) => d.has(v)));
|
|
46
|
-
else if (s.pathParentKeys) {
|
|
47
|
-
const v = s.pathParentKeys.indexOf(e._key);
|
|
48
|
-
f = s.pathParentKeys.slice(v + 1).every((E) => d.has(E));
|
|
49
|
-
}
|
|
50
|
-
f && a.push({
|
|
51
|
-
...s,
|
|
52
|
-
key: u.key
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return g.getNodeProps(a);
|
|
57
|
-
}, [$, e._key, h, N]);
|
|
58
|
-
let m = (w = g.virtualListProps) == null ? void 0 : w.height;
|
|
59
|
-
return m = se(m) ? m : 0, U(() => {
|
|
60
|
-
o.indexOf(e._key) > -1 && b.length === 0 && g.onExpandEnd(e._key);
|
|
61
|
-
}, [b, o]), /* @__PURE__ */ l(
|
|
62
|
-
le,
|
|
63
|
-
{
|
|
64
|
-
in: o.indexOf(e._key) > -1 && b.length > 0,
|
|
65
|
-
unmountOnExit: !0,
|
|
66
|
-
classNames: "tree-slide-expand",
|
|
67
|
-
timeout: {
|
|
68
|
-
enter: 200,
|
|
69
|
-
exit: 0
|
|
70
|
-
},
|
|
71
|
-
onEnter: (a) => {
|
|
72
|
-
if (!a) return;
|
|
73
|
-
const d = a.scrollHeight;
|
|
74
|
-
a.style.height = h ? 0 : `${Math.min(m || d, a.scrollHeight)}px`;
|
|
75
|
-
},
|
|
76
|
-
onEntering: (a) => {
|
|
77
|
-
if (!a) return;
|
|
78
|
-
const d = a.scrollHeight;
|
|
79
|
-
a.style.height = h ? `${Math.min(m || d, d)}px` : 0;
|
|
80
|
-
},
|
|
81
|
-
onEntered: (a) => {
|
|
82
|
-
a && (a.style.height = e.expanded ? "" : 0, g.onExpandEnd(e._key));
|
|
83
|
-
},
|
|
84
|
-
onExit: (a) => {
|
|
85
|
-
a && (a.style.display = "none");
|
|
86
|
-
},
|
|
87
|
-
children: /* @__PURE__ */ l(
|
|
88
|
-
ce,
|
|
89
|
-
{
|
|
90
|
-
itemKey: de,
|
|
91
|
-
className: `${C}-list`,
|
|
92
|
-
isStaticItemHeight: !1,
|
|
93
|
-
...g.virtualListProps,
|
|
94
|
-
data: b,
|
|
95
|
-
"aria-hidden": !0,
|
|
96
|
-
style: { overflow: "hidden" },
|
|
97
|
-
children: (a) => {
|
|
98
|
-
const { key: d, ...u } = a ?? {};
|
|
99
|
-
return /* @__PURE__ */ l(he, { ...u }, d);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
};
|
|
106
|
-
function fe(e, g) {
|
|
107
|
-
const t = _(V), { getPrefixCls: C } = _(B), N = j(), [o, h] = ie({
|
|
108
|
-
isAllowDrop: !0,
|
|
109
|
-
isDragOver: !1,
|
|
110
|
-
dragPosition: 0,
|
|
111
|
-
isDragging: !1
|
|
112
|
-
}), {
|
|
113
|
-
_key: x = "",
|
|
114
|
-
title: $,
|
|
115
|
-
icon: b,
|
|
116
|
-
checkable: m,
|
|
117
|
-
selected: w,
|
|
118
|
-
disabled: a,
|
|
119
|
-
disableCheckbox: d,
|
|
120
|
-
isLeaf: u,
|
|
121
|
-
draggable: f,
|
|
122
|
-
expanded: s,
|
|
123
|
-
showLine: k,
|
|
124
|
-
loading: v,
|
|
125
|
-
selectable: E = !0
|
|
126
|
-
} = e, r = C("tree-node"), z = O(
|
|
127
|
-
r,
|
|
128
|
-
{
|
|
129
|
-
[`${r}-selected`]: w,
|
|
130
|
-
[`${r}-is-leaf`]: u,
|
|
131
|
-
[`${r}-expanded`]: s,
|
|
132
|
-
[`${r}-disabled-selectable`]: !E,
|
|
133
|
-
[`${r}-disabled`]: a,
|
|
134
|
-
[`${r}-draggable`]: f
|
|
135
|
-
},
|
|
136
|
-
e.className
|
|
137
|
-
), D = (() => {
|
|
138
|
-
const n = p(t.icons) ? t.icons(e) : t.icons, i = p(e.icons) ? e.icons(e) : e.icons;
|
|
139
|
-
return { ...n, ...i };
|
|
140
|
-
})(), H = S(
|
|
141
|
-
(n) => {
|
|
142
|
-
var i;
|
|
143
|
-
n !== s && ((i = t.onExpand) == null || i.call(t, n, x));
|
|
144
|
-
},
|
|
145
|
-
[s, t.onExpand]
|
|
146
|
-
), K = S(async () => {
|
|
147
|
-
var c;
|
|
148
|
-
const { isLeaf: n, expanded: i } = e;
|
|
149
|
-
n || (!((c = e.childrenData) != null && c.length) && p(t.loadMore) && !i ? await t.loadMore(e) : H(!i));
|
|
150
|
-
}, [e, H, t.loadMore]), G = () => {
|
|
151
|
-
if (v)
|
|
152
|
-
return "loadingIcon" in D ? D.loadingIcon : /* @__PURE__ */ l(ee, {});
|
|
153
|
-
let n = null, i = !1;
|
|
154
|
-
if (u)
|
|
155
|
-
k && (n = "switcherIcon" in D ? D.switcherIcon : /* @__PURE__ */ l(Z, {}), i = !0);
|
|
156
|
-
else {
|
|
157
|
-
const c = k ? /* @__PURE__ */ l("span", { className: `${r}-${s ? "minus" : "plus"}-icon` }) : /* @__PURE__ */ l(W, {});
|
|
158
|
-
n = "switcherIcon" in D ? D.switcherIcon : c, i = !k;
|
|
159
|
-
}
|
|
160
|
-
if (n)
|
|
161
|
-
return n = /* @__PURE__ */ l(
|
|
162
|
-
"span",
|
|
163
|
-
{
|
|
164
|
-
className: `${r}-switcher-icon`,
|
|
165
|
-
"aria-label": s ? "fold button" : "expand button",
|
|
166
|
-
role: "button",
|
|
167
|
-
tabIndex: 0,
|
|
168
|
-
onClick: K,
|
|
169
|
-
children: n
|
|
170
|
-
}
|
|
171
|
-
), i ? /* @__PURE__ */ l(re, { prefix: r, children: n }) : n;
|
|
172
|
-
}, I = S(
|
|
173
|
-
oe((n) => {
|
|
174
|
-
var F;
|
|
175
|
-
const i = N.current;
|
|
176
|
-
if (!i)
|
|
177
|
-
return;
|
|
178
|
-
const c = i.getBoundingClientRect(), P = window.pageYOffset + c.top, y = n.pageY, R = c.height / 4, M = y - P, T = M < R ? -1 : M < c.height - R ? 0 : 1, J = t.allowDrop(e, T);
|
|
179
|
-
h({
|
|
180
|
-
...o,
|
|
181
|
-
isAllowDrop: J,
|
|
182
|
-
isDragOver: !0,
|
|
183
|
-
dragPosition: T
|
|
184
|
-
}), (F = t.onNodeDragOver) == null || F.call(t, n, e, T);
|
|
185
|
-
}),
|
|
186
|
-
[t.onNodeDragOver]
|
|
187
|
-
);
|
|
188
|
-
function A(n, i) {
|
|
189
|
-
var y;
|
|
190
|
-
const { disableCheckbox: c, disabled: P } = e;
|
|
191
|
-
c || P || (y = t.onCheck) == null || y.call(t, n, x, i);
|
|
192
|
-
}
|
|
193
|
-
return /* @__PURE__ */ L(Q, { children: [
|
|
194
|
-
/* @__PURE__ */ L(
|
|
195
|
-
"div",
|
|
196
|
-
{
|
|
197
|
-
style: e.style,
|
|
198
|
-
className: z,
|
|
199
|
-
ref: g,
|
|
200
|
-
role: "treeitem",
|
|
201
|
-
"aria-disabled": a,
|
|
202
|
-
"aria-expanded": s,
|
|
203
|
-
"aria-level": e._level,
|
|
204
|
-
children: [
|
|
205
|
-
/* @__PURE__ */ l("span", { className: `${r}-indent`, "aria-hidden": !0, children: [...Array(e._level)].map((n, i) => /* @__PURE__ */ l(
|
|
206
|
-
"span",
|
|
207
|
-
{
|
|
208
|
-
className: O(`${r}-indent-block`, {
|
|
209
|
-
[`${r}-indent-block-lineless`]: e._lineless && e._lineless[i]
|
|
210
|
-
})
|
|
211
|
-
},
|
|
212
|
-
i
|
|
213
|
-
)) }),
|
|
214
|
-
/* @__PURE__ */ l(
|
|
215
|
-
"span",
|
|
216
|
-
{
|
|
217
|
-
className: O(`${r}-switcher`, {
|
|
218
|
-
[`${r}-switcher-expanded`]: s
|
|
219
|
-
}),
|
|
220
|
-
children: G()
|
|
221
|
-
}
|
|
222
|
-
),
|
|
223
|
-
m ? /* @__PURE__ */ l(
|
|
224
|
-
ae,
|
|
225
|
-
{
|
|
226
|
-
disabled: d || a,
|
|
227
|
-
value: x,
|
|
228
|
-
indeterminate: e.indeterminated,
|
|
229
|
-
checked: e.checked,
|
|
230
|
-
onChange: A
|
|
231
|
-
}
|
|
232
|
-
) : null,
|
|
233
|
-
/* @__PURE__ */ L(
|
|
234
|
-
"span",
|
|
235
|
-
{
|
|
236
|
-
"aria-grabbed": o.isDragging,
|
|
237
|
-
ref: N,
|
|
238
|
-
className: O(`${r}-title`, {
|
|
239
|
-
[`${r}-title-draggable`]: f,
|
|
240
|
-
[`${r}-title-gap-top`]: o.isDragOver && o.isAllowDrop && o.dragPosition < 0,
|
|
241
|
-
[`${r}-title-gap-bottom`]: o.isDragOver && o.isAllowDrop && o.dragPosition > 0,
|
|
242
|
-
[`${r}-title-highlight`]: !o.isDragging && o.isDragOver && o.isAllowDrop && o.dragPosition === 0,
|
|
243
|
-
[`${r}-title-dragging`]: o.isDragging,
|
|
244
|
-
[`${r}-title-block`]: e.blockNode
|
|
245
|
-
}),
|
|
246
|
-
onClick: (n) => {
|
|
247
|
-
const {
|
|
248
|
-
onSelect: i,
|
|
249
|
-
onSelect_: c,
|
|
250
|
-
// 潘启宝添加
|
|
251
|
-
actionOnClick: P
|
|
252
|
-
} = t;
|
|
253
|
-
if (!e.disabled) {
|
|
254
|
-
const y = [].concat(P);
|
|
255
|
-
E && y.indexOf("select") > -1 && (i == null || i(x, n)), c == null || c(e), y.indexOf("expand") > -1 && K(), m && y.indexOf("check") > -1 && A(!e.checked, n);
|
|
256
|
-
}
|
|
257
|
-
},
|
|
258
|
-
draggable: f,
|
|
259
|
-
onDrop: (n) => {
|
|
260
|
-
var i;
|
|
261
|
-
n.stopPropagation(), n.preventDefault(), (i = t.onNodeDrop) == null || i.call(t, n, e, o.dragPosition), I.cancel(), h({
|
|
262
|
-
...o,
|
|
263
|
-
isDragOver: !1,
|
|
264
|
-
dragPosition: 0
|
|
265
|
-
});
|
|
266
|
-
},
|
|
267
|
-
onDragStart: (n) => {
|
|
268
|
-
var i;
|
|
269
|
-
if (f) {
|
|
270
|
-
n.stopPropagation(), h({ ...o, isDragging: !0 });
|
|
271
|
-
try {
|
|
272
|
-
n.dataTransfer.setData("text/plain", "");
|
|
273
|
-
} catch (c) {
|
|
274
|
-
console.error(c);
|
|
275
|
-
}
|
|
276
|
-
(i = t.onNodeDragStart) == null || i.call(t, n, e);
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
onDragEnd: (n) => {
|
|
280
|
-
var i;
|
|
281
|
-
f && (n.stopPropagation(), I.cancel(), h({ ...o, isDragOver: !1, isDragging: !1 }), (i = t.onNodeDragEnd) == null || i.call(t, n, e));
|
|
282
|
-
},
|
|
283
|
-
onDragOver: (n) => {
|
|
284
|
-
n.preventDefault(), n.stopPropagation(), n.persist(), I(n);
|
|
285
|
-
},
|
|
286
|
-
onDragLeave: (n) => {
|
|
287
|
-
var i;
|
|
288
|
-
f && (n.stopPropagation(), I.cancel(), h({ ...o, isDragOver: !1 }), (i = t.onNodeDragLeave) == null || i.call(t, n, e));
|
|
289
|
-
},
|
|
290
|
-
children: [
|
|
291
|
-
b && /* @__PURE__ */ l("span", { className: `${r}-icon ${r}-custom-icon`, children: b }),
|
|
292
|
-
/* @__PURE__ */ l("span", { className: `${r}-title-text`, children: p(t.renderTitle) ? t.renderTitle(e) : $ }),
|
|
293
|
-
f && /* @__PURE__ */ l("span", { className: `${r}-icon ${r}-drag-icon`, children: "dragIcon" in D ? D.dragIcon : /* @__PURE__ */ l(X, {}) })
|
|
294
|
-
]
|
|
295
|
-
}
|
|
296
|
-
),
|
|
297
|
-
p(t.renderExtra) && t.renderExtra(e)
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
),
|
|
301
|
-
t.animation && /* @__PURE__ */ l(ge, { ...e })
|
|
302
|
-
] });
|
|
303
|
-
}
|
|
304
|
-
const q = te(fe);
|
|
305
|
-
q.displayName = "TreeNode";
|
|
306
|
-
const he = ne.memo(q);
|
|
307
|
-
export {
|
|
308
|
-
he as N,
|
|
309
|
-
ge as T
|
|
310
|
-
};
|
package/chunk/DskaI8QL.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { T as c } from "./CIkPwQlq.js";
|
|
2
|
-
const t = "dark";
|
|
3
|
-
function d(e, s) {
|
|
4
|
-
e.classList.add(s);
|
|
5
|
-
}
|
|
6
|
-
function a(e, s) {
|
|
7
|
-
e.classList.remove(s);
|
|
8
|
-
}
|
|
9
|
-
function i(e) {
|
|
10
|
-
const {
|
|
11
|
-
element: s = window.document.body,
|
|
12
|
-
className: o = c,
|
|
13
|
-
mode: n = t
|
|
14
|
-
} = e ?? {};
|
|
15
|
-
return n === t ? d(s, o) : a(s, o), () => {
|
|
16
|
-
a(s, o);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function r(e) {
|
|
20
|
-
i({ ...e, mode: "light" });
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
r,
|
|
24
|
-
i as s
|
|
25
|
-
};
|
package/chunk/EL5Jmjgr.js
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import _ from "lodash/isFunction";
|
|
3
|
-
import L from "lodash/isNil";
|
|
4
|
-
import Q, { createContext as S, useContext as G, useRef as T } from "react";
|
|
5
|
-
import { a as j, I as q } from "./C9XYyypq.js";
|
|
6
|
-
import { u as A } from "./BFTV6myl.js";
|
|
7
|
-
import { u as D } from "./DeV0v__J.js";
|
|
8
|
-
import { p as F } from "./CUFsOxJ2.js";
|
|
9
|
-
import { o as E } from "./BKKEev13.js";
|
|
10
|
-
import J from "lodash/isArray";
|
|
11
|
-
import K from "lodash/isPlainObject";
|
|
12
|
-
import { pickTriggerPropsFromRest as U } from "../utils/constant.js";
|
|
13
|
-
import { a as W } from "./ClqoGc3r.js";
|
|
14
|
-
const I = {
|
|
15
|
-
type: "radio"
|
|
16
|
-
}, X = {
|
|
17
|
-
type: "radio",
|
|
18
|
-
mode: "outline",
|
|
19
|
-
direction: "horizontal"
|
|
20
|
-
}, y = S(I), de = ({ children: b }) => /* @__PURE__ */ i(y.Provider, { value: I, children: b });
|
|
21
|
-
function M(b) {
|
|
22
|
-
const {
|
|
23
|
-
getPrefixCls: g,
|
|
24
|
-
size: N,
|
|
25
|
-
componentConfig: d,
|
|
26
|
-
rtl: R
|
|
27
|
-
} = G(j), e = A(
|
|
28
|
-
b,
|
|
29
|
-
X,
|
|
30
|
-
d == null ? void 0 : d["Radio.Group"]
|
|
31
|
-
), {
|
|
32
|
-
style: a,
|
|
33
|
-
className: o,
|
|
34
|
-
name: c,
|
|
35
|
-
children: m,
|
|
36
|
-
direction: p,
|
|
37
|
-
type: k,
|
|
38
|
-
mode: $,
|
|
39
|
-
options: v,
|
|
40
|
-
disabled: t
|
|
41
|
-
} = e, [l, P] = D(void 0, {
|
|
42
|
-
defaultValue: e.defaultValue,
|
|
43
|
-
value: e.value
|
|
44
|
-
}), x = e.size || N, n = g("radio"), V = F(
|
|
45
|
-
`${n}-group`,
|
|
46
|
-
{
|
|
47
|
-
[`${n}-group-type-button`]: k !== "radio",
|
|
48
|
-
[`${n}-size-${x}`]: !!x,
|
|
49
|
-
[`${n}-mode-${$}`]: !!$,
|
|
50
|
-
[`${n}-group-disabled`]: t,
|
|
51
|
-
[`${n}-group-direction-vertical`]: p === "vertical",
|
|
52
|
-
[`${n}-group-rtl`]: R
|
|
53
|
-
},
|
|
54
|
-
o
|
|
55
|
-
), u = {
|
|
56
|
-
onChangeValue: (s, f) => {
|
|
57
|
-
const { onChange: h } = e;
|
|
58
|
-
s !== l && ("value" in e || P(s), h == null || h(s, f));
|
|
59
|
-
},
|
|
60
|
-
type: k,
|
|
61
|
-
value: l,
|
|
62
|
-
disabled: t,
|
|
63
|
-
group: !0,
|
|
64
|
-
name: c
|
|
65
|
-
};
|
|
66
|
-
return /* @__PURE__ */ i(y.Provider, { value: u, children: /* @__PURE__ */ i(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: V,
|
|
70
|
-
role: "radiogroup",
|
|
71
|
-
style: a,
|
|
72
|
-
...U(e),
|
|
73
|
-
...W(e),
|
|
74
|
-
children: v && J(v) ? v.map((s, f) => {
|
|
75
|
-
const { value: h, label: O, disabled: w, ...B } = s;
|
|
76
|
-
return K(s) ? /* @__PURE__ */ i(
|
|
77
|
-
C,
|
|
78
|
-
{
|
|
79
|
-
...B,
|
|
80
|
-
disabled: t || w,
|
|
81
|
-
value: h,
|
|
82
|
-
children: O
|
|
83
|
-
},
|
|
84
|
-
h
|
|
85
|
-
) : /* @__PURE__ */ i(C, { value: s, disabled: t, children: s }, f);
|
|
86
|
-
}) : m
|
|
87
|
-
}
|
|
88
|
-
) });
|
|
89
|
-
}
|
|
90
|
-
M.displayName = "RadioGroup";
|
|
91
|
-
function C(b) {
|
|
92
|
-
const g = T(null), { getPrefixCls: N, componentConfig: d, rtl: R } = G(j), e = A(
|
|
93
|
-
b,
|
|
94
|
-
{},
|
|
95
|
-
d == null ? void 0 : d.Radio
|
|
96
|
-
), a = G(y), o = N("radio"), c = { ...e };
|
|
97
|
-
a.group && (c.checked = a.value === e.value, c.disabled = "disabled" in e ? e.disabled : a.disabled);
|
|
98
|
-
const { disabled: m, children: p, value: k, style: $, className: v, ...t } = c, [l, P] = D(!1, {
|
|
99
|
-
value: c.checked,
|
|
100
|
-
defaultValue: c.defaultChecked
|
|
101
|
-
}), x = F(
|
|
102
|
-
`${o}${a.type === "button" ? "-button" : ""}`,
|
|
103
|
-
{
|
|
104
|
-
[`${o}-checked`]: l,
|
|
105
|
-
[`${o}-disabled`]: m,
|
|
106
|
-
[`${o}-rtl`]: R
|
|
107
|
-
},
|
|
108
|
-
v
|
|
109
|
-
), n = (r) => {
|
|
110
|
-
var f;
|
|
111
|
-
const { onChange: u, value: s } = c;
|
|
112
|
-
m || (a.group ? (f = a.onChangeValue) == null || f.call(a, s, r) : !("checked" in e) && !l && P(!0), !l && (u == null || u(!0, r)));
|
|
113
|
-
}, V = Q.useCallback(
|
|
114
|
-
(r) => {
|
|
115
|
-
var u;
|
|
116
|
-
_(e.children) && (r.preventDefault(), g.current && g.current.click()), (u = t.onClick) == null || u.call(t, r);
|
|
117
|
-
},
|
|
118
|
-
[e.children, t.onClick]
|
|
119
|
-
);
|
|
120
|
-
return /* @__PURE__ */ z(
|
|
121
|
-
"label",
|
|
122
|
-
{
|
|
123
|
-
...E(t, ["checked", "onChange"]),
|
|
124
|
-
onClick: V,
|
|
125
|
-
style: $,
|
|
126
|
-
className: x,
|
|
127
|
-
children: [
|
|
128
|
-
/* @__PURE__ */ i(
|
|
129
|
-
"input",
|
|
130
|
-
{
|
|
131
|
-
ref: g,
|
|
132
|
-
disabled: m,
|
|
133
|
-
value: k || "",
|
|
134
|
-
type: "radio",
|
|
135
|
-
...a.name ? { name: a.name } : {},
|
|
136
|
-
checked: l,
|
|
137
|
-
onChange: (r) => {
|
|
138
|
-
r.persist(), n(r);
|
|
139
|
-
},
|
|
140
|
-
onClick: (r) => {
|
|
141
|
-
r.stopPropagation();
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
_(p) ? p({ checked: l }) : a.type === "radio" ? /* @__PURE__ */ z(H, { children: [
|
|
146
|
-
/* @__PURE__ */ i(
|
|
147
|
-
q,
|
|
148
|
-
{
|
|
149
|
-
prefix: o,
|
|
150
|
-
className: `${o}-mask-wrapper`,
|
|
151
|
-
disabled: l || m,
|
|
152
|
-
children: /* @__PURE__ */ i("div", { className: `${o}-mask` })
|
|
153
|
-
}
|
|
154
|
-
),
|
|
155
|
-
!L(p) && /* @__PURE__ */ i("span", { className: `${o}-text`, children: p })
|
|
156
|
-
] }) : a.type === "button" && /* @__PURE__ */ i("span", { className: `${o}-button-inner`, children: p })
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
C.__PQB_RADIO = !0;
|
|
162
|
-
C.displayName = "Radio";
|
|
163
|
-
C.Group = M;
|
|
164
|
-
C.GroupContext = y;
|
|
165
|
-
export {
|
|
166
|
-
de as C,
|
|
167
|
-
M as G,
|
|
168
|
-
C as R,
|
|
169
|
-
y as a
|
|
170
|
-
};
|