@unicom-cloud/ui 0.8.84 → 0.8.86
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/AutoComplete.js +1 -1
- package/Calendar.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/ColorPicker.js +1 -1
- package/Form.js +13 -13
- package/List.js +1 -1
- package/Mentions.js +1 -1
- package/Pagination.js +1 -1
- package/Radio.js +1 -1
- package/Select.js +1 -1
- package/Space.js +2 -2
- package/Table.js +1 -1
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Typography.js +1 -1
- package/auto-complete/index.js +1 -1
- package/calendar/index.js +1 -1
- package/cascader/Cascader.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +1 -1
- package/checkbox/index.js +2 -2
- package/chunk/BP4igg_F.js +213 -0
- package/chunk/{DO3k0z6J.js → DSXeBMp3.js} +11 -9
- package/color-picker/Panel.js +1 -1
- package/color-picker/index.js +1 -1
- package/development/index.js +1 -1
- package/form/Form.js +14 -158
- package/form/FormList.js +3 -2
- package/form/index.js +57 -56
- package/icons/file.js +67 -0
- package/index.js +288 -283
- package/list/index.js +1 -1
- package/mentions/index.js +1 -1
- package/package.json +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/radio/Group.js +1 -1
- package/radio/GroupBlock.js +1 -1
- package/radio/Radio.js +1 -1
- package/radio/index.js +2 -2
- package/select/Option.js +1 -1
- package/select/Select.js +1 -1
- package/select/index.js +2 -2
- package/select/util.js +1 -1
- package/space/index.js +132 -84
- package/space-/index.js +92 -0
- package/space-/interface.js +1 -0
- package/{space → space-}/toArray.js +2 -2
- package/style.css +1 -1
- package/table/Table.js +1 -1
- package/table/index.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +1 -1
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +1 -1
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/index.js +2 -2
- package/trigger/index.js +83 -83
- package/types/common/icons/file/index.d.ts +4 -0
- package/types/common/icons/file/interface.d.ts +20 -0
- package/types/common/space/index.d.ts +7 -0
- package/types/common/space/interface.d.ts +42 -0
- package/types/common/utils/color.d.ts +1 -0
- package/types/common/utils/computeScrollIntoView.d.ts +1 -0
- package/types/common/utils/index.d.ts +40 -0
- package/types/common/utils/is.d.ts +1 -1
- package/types/common/utils/math.d.ts +1 -0
- package/types/common/utils/reactTransitionGroup.d.ts +1 -0
- package/types/common/utils/tree.d.ts +1 -0
- package/types/common/utils/tween.d.ts +1 -0
- package/types/common/utils/uuid.d.ts +1 -0
- package/types/common/utils/validate.d.ts +1 -0
- package/types/pc/cascader/base/node.d.ts +1 -1
- package/types/pc/date-picker/RangePicker.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +5 -5
- package/types/pc/form/hook/useForm.d.ts +5 -0
- package/types/pc/form/index.d.ts +3 -2
- package/types/pc/icons/file/index.d.ts +4 -0
- package/types/pc/icons/file/interface.d.ts +7 -0
- package/types/pc/index.d.ts +3 -0
- package/types/pc/space/index.d.ts +3 -5
- package/types/pc/space/interface.d.ts +10 -28
- package/types/pc/space-/index.d.ts +6 -0
- package/types/pc/space-/interface.d.ts +38 -0
- package/types/pc/space-/toArray.d.ts +3 -0
- package/types/pc/table/interface.d.ts +3 -1
- package/types/pc/table/util.d.ts +1 -1
- package/typography/Ellipsis.js +4 -2
- package/typography/index.js +1 -1
- package/version/index.js +1 -1
- package/form/useForm.js +0 -53
- package/types/pc/form/useForm.d.ts +0 -4
- package/types/pc/space/toArray.d.ts +0 -2
package/table/Table.js
CHANGED
|
@@ -10,7 +10,7 @@ import "../chunk/B44Hj5ad.js";
|
|
|
10
10
|
import "../chunk/B2yFlXke.js";
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/a3hR6zLw.js";
|
|
13
|
-
import { _ as n } from "../chunk/
|
|
13
|
+
import { _ as n } from "../chunk/DSXeBMp3.js";
|
|
14
14
|
import "../spin/index.js";
|
|
15
15
|
import "@unicom-cloud/utils/class-name";
|
|
16
16
|
import "../utils/dom.js";
|
package/table/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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/
|
|
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/DSXeBMp3.js";
|
|
2
2
|
import { defaultComponent as C } from "./constant.js";
|
|
3
3
|
export {
|
|
4
4
|
s as TableSummary,
|
package/transfer/Item.js
CHANGED
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import "@unicom-cloud/icons/IconUiDragDotVertical";
|
|
4
4
|
import "react";
|
|
5
|
-
import { $ as d } from "../chunk/
|
|
5
|
+
import { $ as d } from "../chunk/DSXeBMp3.js";
|
|
6
6
|
import "../chunk/BYdIoY50.js";
|
|
7
7
|
import "../chunk/B44Hj5ad.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
package/transfer/List.js
CHANGED
|
@@ -4,7 +4,7 @@ import "@unicom-cloud/icons/IconUiSearch";
|
|
|
4
4
|
import "lodash/isPlainObject";
|
|
5
5
|
import "react";
|
|
6
6
|
import "../button/index.js";
|
|
7
|
-
import { a0 as n, a1 as u } from "../chunk/
|
|
7
|
+
import { a0 as n, a1 as u } from "../chunk/DSXeBMp3.js";
|
|
8
8
|
import "../chunk/B44Hj5ad.js";
|
|
9
9
|
import "../chunk/BYdIoY50.js";
|
|
10
10
|
import "../input/Input.js";
|
package/transfer/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import "../chunk/BFTV6myl.js";
|
|
|
9
9
|
import "../chunk/CXPOj2uy.js";
|
|
10
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/DSXeBMp3.js";
|
|
13
13
|
export {
|
|
14
14
|
x as default
|
|
15
15
|
};
|
package/tree/Animation.js
CHANGED
package/tree/Node.js
CHANGED
|
@@ -5,7 +5,7 @@ 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/
|
|
8
|
+
import { N as x } from "../chunk/DSXeBMp3.js";
|
|
9
9
|
import "../chunk/B44Hj5ad.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "../utils/throttleByRaf.js";
|
package/tree/NodeList.js
CHANGED
package/tree/Tree.js
CHANGED
|
@@ -11,7 +11,7 @@ import "../chunk/B44Hj5ad.js";
|
|
|
11
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/DSXeBMp3.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
package/tree-select/Select.js
CHANGED
|
@@ -11,7 +11,7 @@ import "../chunk/oopARUrq.js";
|
|
|
11
11
|
import "../chunk/BFTV6myl.js";
|
|
12
12
|
import "../chunk/CXPOj2uy.js";
|
|
13
13
|
import "../select-view/index.js";
|
|
14
|
-
import { v as h, t as j } from "../chunk/
|
|
14
|
+
import { v as h, t as j } from "../chunk/DSXeBMp3.js";
|
|
15
15
|
import "../tree/util.js";
|
|
16
16
|
import "../trigger/index.js";
|
|
17
17
|
import "@unicom-cloud/utils/class-name";
|
package/tree-select/index.js
CHANGED
package/trigger/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as D, jsxs as $e } from "react/jsx-runtime";
|
|
2
2
|
import { c as ut } from "../chunk/BJ9_azwQ.js";
|
|
3
3
|
import ct from "lodash/isArray";
|
|
4
4
|
import S from "lodash/isFunction";
|
|
5
5
|
import { forwardRef as lt, useContext as pt, useRef as R, useState as at, Children as He, useCallback as be, cloneElement as Ie, useImperativeHandle as ft, useLayoutEffect as dt, useEffect as g, Fragment as mt } from "react";
|
|
6
6
|
import { createPortal as gt } from "react-dom";
|
|
7
7
|
import { a as yt } from "../chunk/B44Hj5ad.js";
|
|
8
|
-
import
|
|
8
|
+
import Y from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import { on as oe, off as ne, getScrollElements as Tt, isScrollElement as Ct, contains as Le } from "../utils/dom.js";
|
|
10
10
|
import { s as ht } from "../chunk/ClM74To2.js";
|
|
11
11
|
import { Esc as Be } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
@@ -19,12 +19,12 @@ import { isPlainObject as ie } from "@unicom-cloud/utils/is";
|
|
|
19
19
|
function St(d, I) {
|
|
20
20
|
if (!d)
|
|
21
21
|
return {};
|
|
22
|
-
const { width: y, height: T, left: C, right:
|
|
22
|
+
const { width: y, height: T, left: C, right: K } = Mt(d, I);
|
|
23
23
|
return {
|
|
24
24
|
width: y,
|
|
25
25
|
height: T,
|
|
26
26
|
left: C,
|
|
27
|
-
right:
|
|
27
|
+
right: K
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
const jt = [
|
|
@@ -66,24 +66,24 @@ const vt = {
|
|
|
66
66
|
};
|
|
67
67
|
function Nt(d, I) {
|
|
68
68
|
var Se, Oe;
|
|
69
|
-
const y = pt(yt), { getPrefixCls: T, zIndex: C, rtl:
|
|
69
|
+
const y = pt(yt), { getPrefixCls: T, zIndex: C, rtl: K } = y, i = c(d), {
|
|
70
70
|
children: se,
|
|
71
71
|
style: A,
|
|
72
72
|
className: ke,
|
|
73
73
|
arrowProps: h,
|
|
74
74
|
disabled: O,
|
|
75
75
|
popup: ue,
|
|
76
|
-
classNames:
|
|
76
|
+
classNames: Q,
|
|
77
77
|
duration: Re,
|
|
78
78
|
unmountOnExit: ce,
|
|
79
79
|
alignPoint: Ae,
|
|
80
80
|
autoAlignPopupWidth: Fe,
|
|
81
81
|
position: ze,
|
|
82
|
-
childrenPrefix:
|
|
82
|
+
childrenPrefix: w,
|
|
83
83
|
showArrow: _e,
|
|
84
84
|
popupStyle: le,
|
|
85
|
-
__onExit:
|
|
86
|
-
__onExited:
|
|
85
|
+
__onExit: W,
|
|
86
|
+
__onExited: X
|
|
87
87
|
} = i;
|
|
88
88
|
if (!ue)
|
|
89
89
|
return null;
|
|
@@ -108,24 +108,24 @@ function Nt(d, I) {
|
|
|
108
108
|
// 保存当前节点到弹出容器间的所有滚动元素
|
|
109
109
|
delayTimeoutID: -1,
|
|
110
110
|
updatePositionTimeoutID: -1
|
|
111
|
-
}), [
|
|
111
|
+
}), [U, N] = at({ popupVisible: !1, popupStyle: {} }), j = i.popupVisible, Ye = U.popupVisible, u = j ?? Ye, l = {}, q = {
|
|
112
112
|
onMouseDown() {
|
|
113
113
|
n.current.hasPopupMouseDown = !0, setTimeout(() => {
|
|
114
114
|
n.current.hasPopupMouseDown = !1;
|
|
115
115
|
}, 0);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
-
V() && !O ? (
|
|
118
|
+
V() && !O ? (l.onMouseEnter = qe, l.onMouseLeave = Ee, Z() && (l.onClick = De), Ae && (l.onMouseMove = Ge), We() || (q.onMouseEnter = Je, q.onMouseLeave = Ze)) : (l.onMouseEnter = x("onMouseEnter"), l.onMouseLeave = x("onMouseLeave")), me() && !O ? (l.onContextMenu = et, l.onClick = De) : l.onContextMenu = x("onContextMenu"), de() && !O ? l.onClick = tt : l.onClick = l.onClick || x("onClick"), J() && !O ? (l.onFocus = ot, ge() && (l.onBlur = nt)) : (l.onFocus = x("onFocus"), l.onBlur = x("onBlur")), O ? l.onKeyDown = x("onKeyDown") : l.onKeyDown = Ue;
|
|
119
119
|
const L = z(), B = He.only(ue());
|
|
120
|
-
L.props.className && (
|
|
121
|
-
const $ = T == null ? void 0 : T("trigger"), Ke =
|
|
120
|
+
L.props.className && (l.className = L.props.className), w && u && (l.className = Y(l.className, `${w}-open`)), J() && (l.tabIndex = O ? -1 : 0);
|
|
121
|
+
const $ = T == null ? void 0 : T("trigger"), Ke = Y(
|
|
122
122
|
$,
|
|
123
|
-
|
|
123
|
+
w,
|
|
124
124
|
`${$}-position-${ze}`,
|
|
125
|
-
{ [`${$}-rtl`]:
|
|
125
|
+
{ [`${$}-rtl`]: K },
|
|
126
126
|
ke
|
|
127
127
|
);
|
|
128
|
-
function
|
|
128
|
+
function c(e) {
|
|
129
129
|
const { componentConfig: t } = y ?? {};
|
|
130
130
|
return Et(
|
|
131
131
|
ie(e) ? e : d,
|
|
@@ -141,43 +141,43 @@ function Nt(d, I) {
|
|
|
141
141
|
);
|
|
142
142
|
return n.current.rootElement = e, e;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const G = be(
|
|
145
145
|
Ve(() => {
|
|
146
146
|
b();
|
|
147
147
|
}),
|
|
148
148
|
[u]
|
|
149
149
|
);
|
|
150
150
|
function de() {
|
|
151
|
-
const { trigger: e } =
|
|
151
|
+
const { trigger: e } = c(["trigger"]);
|
|
152
152
|
return [].concat(e).indexOf("click") > -1;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const { trigger: e } =
|
|
154
|
+
function J() {
|
|
155
|
+
const { trigger: e } = c(["trigger"]);
|
|
156
156
|
return [].concat(e).indexOf("focus") > -1;
|
|
157
157
|
}
|
|
158
158
|
function V() {
|
|
159
|
-
const { trigger: e } =
|
|
159
|
+
const { trigger: e } = c(["trigger"]);
|
|
160
160
|
return [].concat(e).indexOf("hover") > -1;
|
|
161
161
|
}
|
|
162
162
|
function me() {
|
|
163
|
-
const { trigger: e } =
|
|
163
|
+
const { trigger: e } = c(["trigger"]);
|
|
164
164
|
return [].concat(e).indexOf("contextMenu") > -1;
|
|
165
165
|
}
|
|
166
166
|
function Qe() {
|
|
167
|
-
return V() &&
|
|
167
|
+
return V() && c(["mouseLeaveToClose"]).mouseLeaveToClose;
|
|
168
168
|
}
|
|
169
169
|
function We() {
|
|
170
|
-
return V() && !
|
|
170
|
+
return V() && !c(["popupHoverStay"]).popupHoverStay;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Z() {
|
|
173
173
|
if (de() || me()) {
|
|
174
|
-
const { clickToClose: e = !0 } =
|
|
174
|
+
const { clickToClose: e = !0 } = c(["clickToClose"]);
|
|
175
175
|
return e;
|
|
176
176
|
}
|
|
177
177
|
return V() && i.clickToClose;
|
|
178
178
|
}
|
|
179
179
|
function ge() {
|
|
180
|
-
return
|
|
180
|
+
return J() && c(["blurToHide"]).blurToHide;
|
|
181
181
|
}
|
|
182
182
|
function Xe() {
|
|
183
183
|
n.current.updatePositionTimeoutID && (n.current.updatePositionTimeoutID.cancel ? n.current.updatePositionTimeoutID.cancel() : (clearTimeout(n.current.updatePositionTimeoutID), n.current.updatePositionTimeoutID = null)), P();
|
|
@@ -187,7 +187,7 @@ function Nt(d, I) {
|
|
|
187
187
|
const t = a.current;
|
|
188
188
|
if (!t)
|
|
189
189
|
return {};
|
|
190
|
-
const { showArrow: o, classNames: r } =
|
|
190
|
+
const { showArrow: o, classNames: r } = c([
|
|
191
191
|
"showArrow",
|
|
192
192
|
"classNames"
|
|
193
193
|
]);
|
|
@@ -220,7 +220,7 @@ function Nt(d, I) {
|
|
|
220
220
|
return {};
|
|
221
221
|
}
|
|
222
222
|
function Te() {
|
|
223
|
-
if (
|
|
223
|
+
if (c(["classNames"]).classNames !== "slideDynamicOrigin")
|
|
224
224
|
return "";
|
|
225
225
|
switch (n.current.realPosition) {
|
|
226
226
|
case "bottom":
|
|
@@ -235,13 +235,13 @@ function Nt(d, I) {
|
|
|
235
235
|
return "";
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function ee() {
|
|
239
239
|
var k;
|
|
240
240
|
if (!v.current)
|
|
241
241
|
return {};
|
|
242
242
|
const e = a.current, t = H();
|
|
243
243
|
if (!(t != null && t.offsetParent) && !((k = t == null ? void 0 : t.getClientRects()) != null && k.length))
|
|
244
|
-
return
|
|
244
|
+
return U.popupStyle;
|
|
245
245
|
const { style: o, arrowStyle: r, realPosition: s } = xt(
|
|
246
246
|
i,
|
|
247
247
|
e,
|
|
@@ -256,8 +256,8 @@ function Nt(d, I) {
|
|
|
256
256
|
...ye(p)
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
const t =
|
|
259
|
+
function E(e) {
|
|
260
|
+
const t = ee();
|
|
261
261
|
N((o) => {
|
|
262
262
|
const r = { ...o };
|
|
263
263
|
return r.popupStyle = t, r;
|
|
@@ -265,7 +265,7 @@ function Nt(d, I) {
|
|
|
265
265
|
e();
|
|
266
266
|
}, 0);
|
|
267
267
|
}
|
|
268
|
-
const F = be(Ve(
|
|
268
|
+
const F = be(Ve(E), [
|
|
269
269
|
u
|
|
270
270
|
]);
|
|
271
271
|
function b(e = 0, t) {
|
|
@@ -275,7 +275,7 @@ function Nt(d, I) {
|
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
277
|
n.current.updatePositionTimeoutID = setTimeout(() => {
|
|
278
|
-
const o =
|
|
278
|
+
const o = ee();
|
|
279
279
|
N((r) => {
|
|
280
280
|
const s = { ...r };
|
|
281
281
|
return s.popupStyle = o, s;
|
|
@@ -286,14 +286,14 @@ function Nt(d, I) {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
function f(e, t = 0, o) {
|
|
289
|
-
const r =
|
|
289
|
+
const r = c(["onVisibleChange", "popupVisible"]);
|
|
290
290
|
e !== u ? Ce(t, () => {
|
|
291
291
|
var s;
|
|
292
292
|
(s = r.onVisibleChange) == null || s.call(r, e), "popupVisible" in r ? o == null || o() : (N((p) => {
|
|
293
293
|
const M = { ...p };
|
|
294
294
|
return M.popupVisible = !!e, M;
|
|
295
295
|
}), setTimeout(e ? () => {
|
|
296
|
-
|
|
296
|
+
E(o);
|
|
297
297
|
} : () => {
|
|
298
298
|
o == null || o();
|
|
299
299
|
}, 0));
|
|
@@ -309,7 +309,7 @@ function Nt(d, I) {
|
|
|
309
309
|
}
|
|
310
310
|
function he(e) {
|
|
311
311
|
var r;
|
|
312
|
-
const t =
|
|
312
|
+
const t = c(["onClickOutside", "clickOutsideToClose"]);
|
|
313
313
|
let o = Le(a.current, e.target);
|
|
314
314
|
o || (o = Le(H(), e.target)), o || (o = !!n.current.hasPopupMouseDown), o || ((r = t.onClickOutside) == null || r.call(t), t.clickOutsideToClose && (ge() || V() || f(!1)));
|
|
315
315
|
}
|
|
@@ -318,18 +318,18 @@ function Nt(d, I) {
|
|
|
318
318
|
m("onKeyDown", e), t === Be.key && je(e);
|
|
319
319
|
}
|
|
320
320
|
function je(e) {
|
|
321
|
-
const { escToClose: t } =
|
|
321
|
+
const { escToClose: t } = c(["escToClose"]);
|
|
322
322
|
t && e && e.key === Be.key && u && f(!1);
|
|
323
323
|
}
|
|
324
324
|
function qe(e) {
|
|
325
|
-
const { mouseEnterDelay: t } =
|
|
325
|
+
const { mouseEnterDelay: t } = c(["mouseEnterDelay"]);
|
|
326
326
|
m("onMouseEnter", e), P(), f(!0, t || 0);
|
|
327
327
|
}
|
|
328
328
|
function Ge(e) {
|
|
329
|
-
m("onMouseMove", e),
|
|
329
|
+
m("onMouseMove", e), te(e), u && F();
|
|
330
330
|
}
|
|
331
331
|
function Ee(e) {
|
|
332
|
-
const { mouseLeaveDelay: t } =
|
|
332
|
+
const { mouseLeaveDelay: t } = c(["mouseLeaveDelay"]);
|
|
333
333
|
P(), m("onMouseLeave", e), Qe() && u && f(!1, t || 0);
|
|
334
334
|
}
|
|
335
335
|
function Je() {
|
|
@@ -338,23 +338,23 @@ function Nt(d, I) {
|
|
|
338
338
|
function Ze(e) {
|
|
339
339
|
Ee(e);
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
341
|
+
function te(e) {
|
|
342
|
+
c(["alignPoint"]).alignPoint && (n.current.mouseLocation = {
|
|
343
343
|
clientX: e.clientX,
|
|
344
344
|
clientY: e.clientY
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
function et(e) {
|
|
348
|
-
e.preventDefault(), m("onContextMenu", e),
|
|
348
|
+
e.preventDefault(), m("onContextMenu", e), te(e), u ? c(["alignPoint"]).alignPoint && F() : f(!0, 0);
|
|
349
349
|
}
|
|
350
350
|
function De(e) {
|
|
351
|
-
u && (n.current.mousedownToHide = !0), m("onClick", e),
|
|
351
|
+
u && (n.current.mousedownToHide = !0), m("onClick", e), Z() && u && f(!u, 0);
|
|
352
352
|
}
|
|
353
353
|
function tt(e) {
|
|
354
|
-
u && (n.current.mousedownToHide = !0), m("onClick", e),
|
|
354
|
+
u && (n.current.mousedownToHide = !0), m("onClick", e), te(e), !(!Z() && u) && f(!u, 0);
|
|
355
355
|
}
|
|
356
356
|
function ot(e) {
|
|
357
|
-
const { focusDelay: t } =
|
|
357
|
+
const { focusDelay: t } = c(["focusDelay"]), o = () => {
|
|
358
358
|
m("onFocus", e);
|
|
359
359
|
};
|
|
360
360
|
P(), n.current.mousedownToHide || (u ? o == null || o() : f(!0, t || 0, o)), n.current.mousedownToHide = !1;
|
|
@@ -363,14 +363,14 @@ function Nt(d, I) {
|
|
|
363
363
|
f(!1, 200, () => m("onBlur", e));
|
|
364
364
|
}
|
|
365
365
|
function we() {
|
|
366
|
-
u &&
|
|
366
|
+
u && c(["autoFixPosition"]).autoFixPosition && b();
|
|
367
367
|
}
|
|
368
368
|
function z() {
|
|
369
369
|
var s;
|
|
370
370
|
const { children: e } = i, t = e, o = t && typeof t != "string" && t.type;
|
|
371
371
|
let r = e;
|
|
372
372
|
if (["string", "number"].indexOf(typeof e) > -1 || He.count(e) > 1)
|
|
373
|
-
r = /* @__PURE__ */
|
|
373
|
+
r = /* @__PURE__ */ D("span", { children: e });
|
|
374
374
|
else if (t && o && (o.__PQB_BUTTON === !0 || o.__PQB_CHECKBOX === !0 || o.__PQB_SWITCH === !0 || o.__PQB_RADIO === !0 || o === "button") && t.props.disabled) {
|
|
375
375
|
const { picked: p, omitted: M } = Ot(t.props.style, [
|
|
376
376
|
"position",
|
|
@@ -382,7 +382,7 @@ function Nt(d, I) {
|
|
|
382
382
|
"display",
|
|
383
383
|
"zIndex"
|
|
384
384
|
]);
|
|
385
|
-
r = /* @__PURE__ */
|
|
385
|
+
r = /* @__PURE__ */ D(
|
|
386
386
|
"span",
|
|
387
387
|
{
|
|
388
388
|
className: (s = t.props) == null ? void 0 : s.className,
|
|
@@ -397,20 +397,20 @@ function Nt(d, I) {
|
|
|
397
397
|
}
|
|
398
398
|
);
|
|
399
399
|
}
|
|
400
|
-
return r || /* @__PURE__ */
|
|
400
|
+
return r || /* @__PURE__ */ D("span", {});
|
|
401
401
|
}
|
|
402
402
|
function m(e, t) {
|
|
403
|
-
const o = z(), r = o && o.props && o.props[e], s =
|
|
403
|
+
const o = z(), r = o && o.props && o.props[e], s = c([e])[e];
|
|
404
404
|
S(r) && r(t), S(s) && s(t);
|
|
405
405
|
}
|
|
406
406
|
function x(e) {
|
|
407
|
-
const t = z(), o = t && t.props && t.props[e], r =
|
|
407
|
+
const t = z(), o = t && t.props && t.props[e], r = c([e])[e];
|
|
408
408
|
return S(r) && S(o) ? (s) => {
|
|
409
409
|
o(s), r(s);
|
|
410
410
|
} : o || r;
|
|
411
411
|
}
|
|
412
412
|
function Pe() {
|
|
413
|
-
const e =
|
|
413
|
+
const e = c(["containerScrollToClose", "updateOnScroll"]);
|
|
414
414
|
e.containerScrollToClose ? f(!1) : e.updateOnScroll && b();
|
|
415
415
|
}
|
|
416
416
|
function rt() {
|
|
@@ -434,17 +434,17 @@ function Nt(d, I) {
|
|
|
434
434
|
return a.current;
|
|
435
435
|
},
|
|
436
436
|
getChild: z,
|
|
437
|
-
getPopupStyle:
|
|
437
|
+
getPopupStyle: ee,
|
|
438
438
|
getTransformTranslate: Te,
|
|
439
439
|
getTransformOrigin: ye,
|
|
440
440
|
updateThrottleByRaf: F,
|
|
441
|
-
update:
|
|
442
|
-
updatePopupStyle:
|
|
441
|
+
update: E,
|
|
442
|
+
updatePopupStyle: E,
|
|
443
443
|
updatePopupPosition: b,
|
|
444
|
-
handleUpdatePosition:
|
|
444
|
+
handleUpdatePosition: G,
|
|
445
445
|
setPopupVisible: f,
|
|
446
446
|
delayToDo: Ce
|
|
447
|
-
})), dt(() => (
|
|
447
|
+
})), dt(() => (E(), () => {
|
|
448
448
|
}), [
|
|
449
449
|
a.current,
|
|
450
450
|
ae.current,
|
|
@@ -485,7 +485,7 @@ function Nt(d, I) {
|
|
|
485
485
|
i.updateOnScroll,
|
|
486
486
|
i.containerScrollToClose
|
|
487
487
|
]), g(() => {
|
|
488
|
-
const { clickOutsideToClose: e, getDocument: t } =
|
|
488
|
+
const { clickOutsideToClose: e, getDocument: t } = c([
|
|
489
489
|
"clickOutsideToClose",
|
|
490
490
|
"getDocument"
|
|
491
491
|
]), o = (t == null ? void 0 : t()) || window.document, r = {
|
|
@@ -494,8 +494,8 @@ function Nt(d, I) {
|
|
|
494
494
|
// 2. 点击label标签,会触发对应input元素的点击事件,导致触发clickOutside,隐藏popup。
|
|
495
495
|
capture: ie(e) ? e.capture : !1
|
|
496
496
|
};
|
|
497
|
-
return u && (oe(o, "mousedown", he, r), oe(window, "resize",
|
|
498
|
-
ne(o, "mousedown", he, r), ne(window, "resize",
|
|
497
|
+
return u && (oe(o, "mousedown", he, r), oe(window, "resize", G)), () => {
|
|
498
|
+
ne(o, "mousedown", he, r), ne(window, "resize", G);
|
|
499
499
|
};
|
|
500
500
|
}, [u]), g(() => ("defaultPopupVisible" in i && N((e) => {
|
|
501
501
|
const t = { ...e };
|
|
@@ -503,48 +503,48 @@ function Nt(d, I) {
|
|
|
503
503
|
}), () => {
|
|
504
504
|
}), []), g(() => ("popupVisible" in i && N((e) => {
|
|
505
505
|
const t = { ...e };
|
|
506
|
-
return t.popupVisible = !!
|
|
506
|
+
return t.popupVisible = !!j, t;
|
|
507
507
|
}), () => {
|
|
508
|
-
}), [
|
|
508
|
+
}), [j]), g(() => () => {
|
|
509
509
|
Xe();
|
|
510
510
|
}, []);
|
|
511
511
|
const it = pe && Ie(L, {
|
|
512
|
-
...
|
|
512
|
+
...l,
|
|
513
513
|
ref: ht(L) ? (e) => {
|
|
514
514
|
n.current.child = e, wt(L, e);
|
|
515
515
|
} : void 0
|
|
516
|
-
}), st = /* @__PURE__ */
|
|
516
|
+
}), st = /* @__PURE__ */ D(
|
|
517
517
|
ut,
|
|
518
518
|
{
|
|
519
519
|
in: !!u,
|
|
520
520
|
timeout: Re,
|
|
521
|
-
classNames:
|
|
521
|
+
classNames: Q,
|
|
522
522
|
unmountOnExit: ce,
|
|
523
523
|
appear: !0,
|
|
524
524
|
mountOnEnter: !0,
|
|
525
525
|
onEnter: () => {
|
|
526
526
|
n.current.triggerDestoried = !1;
|
|
527
527
|
const e = a.current;
|
|
528
|
-
e && (e.style.display = "initial", e.style.pointerEvents = "none",
|
|
528
|
+
e && (e.style.display = "initial", e.style.pointerEvents = "none", Q === "slideDynamicOrigin" && (e.style.transform = Te()), E());
|
|
529
529
|
},
|
|
530
530
|
onEntering: () => {
|
|
531
531
|
const e = a.current;
|
|
532
|
-
e && (
|
|
532
|
+
e && (Q === "slideDynamicOrigin" && (e.style.transform = ""), E());
|
|
533
533
|
},
|
|
534
534
|
onEntered: () => {
|
|
535
535
|
const e = a.current;
|
|
536
|
-
e && (e.style.pointerEvents = "auto",
|
|
536
|
+
e && (e.style.pointerEvents = "auto", E());
|
|
537
537
|
},
|
|
538
538
|
onExit: () => {
|
|
539
539
|
const e = a.current;
|
|
540
|
-
e && (e.style.pointerEvents = "none",
|
|
540
|
+
e && (e.style.pointerEvents = "none", W == null || W(e));
|
|
541
541
|
},
|
|
542
542
|
onExited: () => {
|
|
543
543
|
const e = a.current;
|
|
544
544
|
e && (e.style.display = "none", ce && (n.current.triggerDestoried = !0), N((t) => {
|
|
545
545
|
const o = { ...t };
|
|
546
546
|
return o.popupStyle = {}, o;
|
|
547
|
-
}),
|
|
547
|
+
}), X == null || X(e));
|
|
548
548
|
},
|
|
549
549
|
nodeRef: a,
|
|
550
550
|
children: /* @__PURE__ */ $e(
|
|
@@ -555,16 +555,16 @@ function Nt(d, I) {
|
|
|
555
555
|
...Dt(i),
|
|
556
556
|
style: {
|
|
557
557
|
width: Fe && (A == null ? void 0 : A.width) === void 0 ? (Oe = n.current.childrenDomSize) == null ? void 0 : Oe.width : "",
|
|
558
|
-
...
|
|
558
|
+
...U.popupStyle,
|
|
559
559
|
position: "absolute",
|
|
560
560
|
zIndex: C || "",
|
|
561
561
|
...A
|
|
562
562
|
// display
|
|
563
563
|
},
|
|
564
|
-
...
|
|
564
|
+
...q,
|
|
565
565
|
className: Ke,
|
|
566
566
|
children: [
|
|
567
|
-
ie(le) ? /* @__PURE__ */
|
|
567
|
+
ie(le) ? /* @__PURE__ */ D(
|
|
568
568
|
B.type,
|
|
569
569
|
{
|
|
570
570
|
ref: B.ref,
|
|
@@ -572,22 +572,22 @@ function Nt(d, I) {
|
|
|
572
572
|
style: { ...B.props.style, ...le }
|
|
573
573
|
}
|
|
574
574
|
) : B,
|
|
575
|
-
(_e || h) && /* @__PURE__ */
|
|
575
|
+
(_e || h) && /* @__PURE__ */ D(
|
|
576
576
|
"div",
|
|
577
577
|
{
|
|
578
578
|
ref: ae,
|
|
579
|
-
className:
|
|
580
|
-
[`${
|
|
579
|
+
className: Y(`${$}-arrow-container`, {
|
|
580
|
+
[`${w}-arrow-container`]: w
|
|
581
581
|
}),
|
|
582
|
-
children: /* @__PURE__ */
|
|
582
|
+
children: /* @__PURE__ */ D(
|
|
583
583
|
"div",
|
|
584
584
|
{
|
|
585
585
|
ref: fe,
|
|
586
586
|
...h,
|
|
587
|
-
className:
|
|
587
|
+
className: Y(
|
|
588
588
|
`${$}-arrow`,
|
|
589
589
|
{
|
|
590
|
-
[`${
|
|
590
|
+
[`${w}-arrow`]: w
|
|
591
591
|
},
|
|
592
592
|
h == null ? void 0 : h.className
|
|
593
593
|
),
|
|
@@ -607,7 +607,7 @@ function Nt(d, I) {
|
|
|
607
607
|
if (S(e)) {
|
|
608
608
|
const t = e(H());
|
|
609
609
|
t && (_ = gt(
|
|
610
|
-
/* @__PURE__ */
|
|
610
|
+
/* @__PURE__ */ D("div", { ref: v, className: `${$}-container`, children: st }),
|
|
611
611
|
t
|
|
612
612
|
// popupVisible ? 1 : 0,
|
|
613
613
|
));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @title Empty
|
|
4
|
+
*/
|
|
5
|
+
export interface IconFileProps {
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
className?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* @zh 文件的后缀名字
|
|
10
|
+
*/
|
|
11
|
+
text?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @zh 文字颜色
|
|
14
|
+
*/
|
|
15
|
+
color?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @zh 背景颜色
|
|
18
|
+
*/
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefAttributes } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-dev-runtime';
|
|
3
|
+
import { SpaceProps } from './interface';
|
|
4
|
+
declare const Space: import("react").ForwardRefExoticComponent<SpaceProps & RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SpaceVertical: import("react").ForwardRefExoticComponent<Omit<JSX.IntrinsicAttributes & SpaceProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { SpaceVertical };
|
|
7
|
+
export default Space;
|