bitz-react-admin-ui 2.5.4 → 2.5.6
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/dist/_virtual/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +4 -3
- package/dist/components/BitzTable/ActionBar/Button.d.ts +7 -3
- package/dist/components/BitzTable/ActionBar/Button.mjs +26 -7
- package/dist/components/BitzTable/ActionBar/index.d.ts +2 -0
- package/dist/components/BitzTable/Store/index.mjs +96 -101
- package/dist/components/BitzTable/Store/utils/index.mjs +29 -29
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +36 -36
- package/dist/components/BitzTable/Table/index.mjs +399 -377
- package/dist/components/BitzTableSelect/Select/index.mjs +1 -1
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +90 -91
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +42 -40
- package/dist/components/BitzText/index.d.ts +9 -0
- package/dist/components/BitzText/index.less.mjs +4 -0
- package/dist/components/BitzText/index.mjs +64 -0
- package/dist/components/BitzText/utils.d.ts +4 -0
- package/dist/components/BitzText/utils.mjs +5 -0
- package/dist/components/BitzTooltip/index.d.ts +17 -0
- package/dist/components/BitzTooltip/index.mjs +96 -0
- package/dist/components/BitzTooltip/style.d.ts +5 -0
- package/dist/components/BitzTooltip/style.mjs +50 -0
- package/dist/components/BitzTooltip/utils.d.ts +2 -0
- package/dist/components/BitzTooltip/utils.mjs +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +42 -38
- package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
- package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
- package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +7 -6
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { j as s } from "../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import g, { useRef as m, useState as E, useEffect as w, useMemo as x } from "react";
|
|
3
|
+
import { theme as $ } from "antd";
|
|
4
|
+
import A from "react-dom";
|
|
5
|
+
import { isNotFalsly as k } from "./utils.mjs";
|
|
6
|
+
import D from "../../hooks/useMergedState.mjs";
|
|
7
|
+
import G from "../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs";
|
|
8
|
+
import H from "./style.mjs";
|
|
9
|
+
import I from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
10
|
+
const ee = ({
|
|
11
|
+
wrapper: n,
|
|
12
|
+
defaultOpen: R,
|
|
13
|
+
open: b,
|
|
14
|
+
tip: l,
|
|
15
|
+
children: t,
|
|
16
|
+
placement: P = "top",
|
|
17
|
+
trigger: c = "hover",
|
|
18
|
+
overlayClassName: y,
|
|
19
|
+
overlayStyle: C,
|
|
20
|
+
getContainer: a
|
|
21
|
+
}) => {
|
|
22
|
+
const { token: d } = $.useToken(), { blockClassName: N, blockContentCls: T } = H(), i = m(null), r = m(null), f = m(document.createElement("div")), [j, B] = E(0), [L, M] = E(0), [o, u] = D(R ?? !1, {
|
|
23
|
+
value: b
|
|
24
|
+
});
|
|
25
|
+
w(() => {
|
|
26
|
+
o && k(l) && setTimeout(() => {
|
|
27
|
+
document.body.appendChild(f.current);
|
|
28
|
+
const e = n ?? i.current;
|
|
29
|
+
if (e && r.current) {
|
|
30
|
+
const { top: _, left: F, width: O } = e.getBoundingClientRect(), z = window.pageXOffset || document.documentElement.scrollLeft, V = window.pageYOffset || document.documentElement.scrollTop;
|
|
31
|
+
B(
|
|
32
|
+
F - (r.current.offsetWidth - O) / 2 + z
|
|
33
|
+
), M(_ - r.current.clientHeight - 10 + V);
|
|
34
|
+
}
|
|
35
|
+
}, 0);
|
|
36
|
+
}, [o, l]), G(() => {
|
|
37
|
+
o && u(!1);
|
|
38
|
+
}, i);
|
|
39
|
+
const p = (e) => {
|
|
40
|
+
if (e) {
|
|
41
|
+
if (!k(l))
|
|
42
|
+
return;
|
|
43
|
+
u(!o);
|
|
44
|
+
} else
|
|
45
|
+
u(!1);
|
|
46
|
+
}, h = x(() => {
|
|
47
|
+
let e = {
|
|
48
|
+
show: "onMouseEnter",
|
|
49
|
+
hide: "onMouseLeave"
|
|
50
|
+
};
|
|
51
|
+
return c === "click" ? e = {
|
|
52
|
+
show: "onClick",
|
|
53
|
+
hide: "onBlur"
|
|
54
|
+
} : c === "focus" && (e = {
|
|
55
|
+
show: "onFocus",
|
|
56
|
+
hide: "onBlur"
|
|
57
|
+
}), e;
|
|
58
|
+
}, [c]), S = x(() => typeof t == "string" ? /* @__PURE__ */ s.jsx("span", { children: t }) : t, [t]);
|
|
59
|
+
let v = t;
|
|
60
|
+
return n || (v = g.Children.map(
|
|
61
|
+
S,
|
|
62
|
+
(e) => g.cloneElement(e, {
|
|
63
|
+
[`${h.show}`]: () => p(!0),
|
|
64
|
+
[`${h.hide}`]: () => p(!1),
|
|
65
|
+
ref: i
|
|
66
|
+
})
|
|
67
|
+
)), w(() => () => {
|
|
68
|
+
var e;
|
|
69
|
+
(e = f.current) == null || e.remove();
|
|
70
|
+
}, []), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
71
|
+
v,
|
|
72
|
+
A.createPortal(
|
|
73
|
+
/* @__PURE__ */ s.jsx(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
className: I(N, y),
|
|
77
|
+
ref: r,
|
|
78
|
+
style: {
|
|
79
|
+
left: j,
|
|
80
|
+
top: L,
|
|
81
|
+
zIndex: 1070,
|
|
82
|
+
background: d.colorBgSpotlight,
|
|
83
|
+
color: d.colorTextLightSolid,
|
|
84
|
+
opacity: o ? 1 : 0,
|
|
85
|
+
...C
|
|
86
|
+
},
|
|
87
|
+
children: /* @__PURE__ */ s.jsx("div", { className: T, children: l })
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
a && n ? a(n) : f.current
|
|
91
|
+
)
|
|
92
|
+
] });
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
ee as default
|
|
96
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { theme as p } from "antd";
|
|
2
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/extractStyle.mjs";
|
|
3
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
|
|
4
|
+
import "react";
|
|
5
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/StyleContext.mjs";
|
|
6
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/theme/createTheme.mjs";
|
|
7
|
+
import "../../node_modules/.store/rc-util@5.41.0/node_modules/rc-util/es/warning.mjs";
|
|
8
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.mjs";
|
|
9
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
|
|
10
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
|
|
11
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/hooks/useHMR.mjs";
|
|
12
|
+
import l from "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.mjs";
|
|
13
|
+
import "../../node_modules/.store/@ant-design_cssinjs@1.20.0/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
|
|
14
|
+
import b from "../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
15
|
+
const T = () => {
|
|
16
|
+
const { theme: n, hashId: e, token: i } = p.useToken(), o = "bitzTooltipBlock", r = "bitzTooltipContent", s = (m, a, t) => [
|
|
17
|
+
{
|
|
18
|
+
[`.${m}`]: {
|
|
19
|
+
position: "absolute",
|
|
20
|
+
pointerEvents: "none",
|
|
21
|
+
borderRadius: t.borderRadius,
|
|
22
|
+
fontSize: t.fontSize,
|
|
23
|
+
minWidth: "1em",
|
|
24
|
+
minHeight: 32,
|
|
25
|
+
padding: "6px 8px",
|
|
26
|
+
textAlign: "start",
|
|
27
|
+
wordBreak: "break-word",
|
|
28
|
+
textDecoration: "none",
|
|
29
|
+
boxShadow: t.boxShadowSecondary,
|
|
30
|
+
boxSizing: "border-box",
|
|
31
|
+
transition: "opacity 0.2s",
|
|
32
|
+
[`.${a}`]: {
|
|
33
|
+
position: "relative"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
return l(
|
|
39
|
+
{
|
|
40
|
+
theme: n,
|
|
41
|
+
token: i,
|
|
42
|
+
hashId: e,
|
|
43
|
+
path: [o]
|
|
44
|
+
},
|
|
45
|
+
() => [s(o, r, i)]
|
|
46
|
+
), { blockClassName: b(o, e), blockContentCls: r };
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
T as default
|
|
50
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -56,10 +56,12 @@ export { default as BitzTable2 } from './components/BitzTable2';
|
|
|
56
56
|
export { default as BitzTableOperations } from './components/BitzTableOperations';
|
|
57
57
|
export { default as BitzTableSelect } from './components/BitzTableSelect';
|
|
58
58
|
export { default as BitzTag } from './components/BitzTag';
|
|
59
|
+
export { default as BitzText } from './components/BitzText';
|
|
59
60
|
export { default as BitzTheme } from './components/BitzTheme';
|
|
60
61
|
export { default as BitzTimeline } from './components/BitzTimeline';
|
|
61
62
|
export { default as BitzTimer } from './components/BitzTimer';
|
|
62
63
|
export { default as BitzToast } from './components/BitzToast';
|
|
64
|
+
export { default as BitzTooltip } from './components/BitzTooltip';
|
|
63
65
|
export { default as BitzTree } from './components/BitzTree';
|
|
64
66
|
export { default as BitzUeEditor } from './components/BitzUeEditor';
|
|
65
67
|
export { default as BitzUpload } from './components/BitzUpload';
|
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as r } from "./components/BitzAddressBook/index.mjs";
|
|
2
2
|
import { default as l } from "./components/BitzAddTag/index.mjs";
|
|
3
|
-
import { default as
|
|
3
|
+
import { default as p } from "./components/BitzAppPage/index.mjs";
|
|
4
4
|
import { default as u } from "./components/BitzAppRefresh/index.mjs";
|
|
5
5
|
import { default as m } from "./components/BitzBetterScroll/index.mjs";
|
|
6
|
-
import { default as
|
|
6
|
+
import { default as x } from "./components/BitzButton/index.mjs";
|
|
7
7
|
import { default as n } from "./components/BitzCalendar/index.mjs";
|
|
8
|
-
import { default as
|
|
8
|
+
import { default as c } from "./components/BitzCascader/index.mjs";
|
|
9
9
|
import { default as S } from "./components/BitzCollapse/index.mjs";
|
|
10
10
|
import { default as F } from "./components/BitzConfigProvider/index.mjs";
|
|
11
11
|
import { default as h } from "./components/BitzConfirmModal/index.mjs";
|
|
@@ -25,15 +25,15 @@ import { default as Y } from "./components/BitzFuiCalendar/index.mjs";
|
|
|
25
25
|
import { default as _ } from "./components/BitzFullScreen/index.mjs";
|
|
26
26
|
import { default as tt } from "./components/BitzHighlight/index.mjs";
|
|
27
27
|
import { default as at } from "./components/BitzImage/index.mjs";
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as rt } from "./components/BitzLanguageTabs/index.mjs";
|
|
29
29
|
import { default as lt } from "./components/BitzLazyLoad/index.mjs";
|
|
30
30
|
import "./components/BitzList/index.less.mjs";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as pt } from "./components/BitzList/List.mjs";
|
|
32
32
|
import { default as ut } from "./components/BitzLoadMore/index.mjs";
|
|
33
33
|
import { default as mt } from "./components/BitzLocalStorage/index.mjs";
|
|
34
|
-
import { default as
|
|
34
|
+
import { default as xt } from "./components/BitzMeetingTime/index.mjs";
|
|
35
35
|
import { default as nt } from "./components/BitzMobileLoading/index.mjs";
|
|
36
|
-
import { default as
|
|
36
|
+
import { default as ct } from "./components/BitzModal/index.mjs";
|
|
37
37
|
import { default as St } from "./components/BitzNoData/index.mjs";
|
|
38
38
|
import { default as Ft } from "./components/BitzNoMore/index.mjs";
|
|
39
39
|
import { default as ht } from "./components/BitzOrganizationSelection/index.mjs";
|
|
@@ -54,28 +54,30 @@ import { default as Yt } from "./components/BitzSkeleton/index.mjs";
|
|
|
54
54
|
import { default as _t } from "./components/BitzSwitch/index.mjs";
|
|
55
55
|
import { default as te } from "./components/BitzTabbar/index.mjs";
|
|
56
56
|
import { default as ae } from "./components/BitzTable/index.mjs";
|
|
57
|
-
import { default as
|
|
57
|
+
import { default as re } from "./components/BitzTable2/index.mjs";
|
|
58
58
|
import { default as le } from "./components/BitzTableOperations/index.mjs";
|
|
59
|
-
import { default as
|
|
59
|
+
import { default as pe } from "./components/BitzTableSelect/index.mjs";
|
|
60
60
|
import { default as ue } from "./components/BitzTag/index.mjs";
|
|
61
|
-
import { default as me } from "./components/
|
|
62
|
-
import { default as
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import { default as Se } from "./components/
|
|
66
|
-
import { default as Fe } from "./components/
|
|
67
|
-
import { default as he } from "./components/
|
|
68
|
-
import { default as Le } from "./components/
|
|
69
|
-
import { default as ke } from "./components/
|
|
61
|
+
import { default as me } from "./components/BitzText/index.mjs";
|
|
62
|
+
import { default as xe } from "./components/BitzTheme/index.mjs";
|
|
63
|
+
import { default as ne } from "./components/BitzTimeline/index.mjs";
|
|
64
|
+
import { BitzTimer as ce } from "./components/BitzTimer/index.mjs";
|
|
65
|
+
import { default as Se } from "./components/BitzToast/index.mjs";
|
|
66
|
+
import { default as Fe } from "./components/BitzTooltip/index.mjs";
|
|
67
|
+
import { default as he } from "./components/BitzTree/index.mjs";
|
|
68
|
+
import { default as Le } from "./components/BitzUeEditor/index.mjs";
|
|
69
|
+
import { default as ke } from "./components/BitzUpload/index.mjs";
|
|
70
|
+
import { default as De } from "./components/BitzWebAppDrawer/index.mjs";
|
|
71
|
+
import { default as ye } from "./components/BitzWebAppModal/index.mjs";
|
|
70
72
|
export {
|
|
71
73
|
l as BitzAddTag,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
r as BitzAddressBook,
|
|
75
|
+
p as BitzAppPage,
|
|
74
76
|
u as BitzAppRefresh,
|
|
75
77
|
m as BitzBetterScroll,
|
|
76
|
-
|
|
78
|
+
x as BitzButton,
|
|
77
79
|
n as BitzCalendar,
|
|
78
|
-
|
|
80
|
+
c as BitzCascader,
|
|
79
81
|
S as BitzCollapse,
|
|
80
82
|
F as BitzConfigProvider,
|
|
81
83
|
h as BitzConfirmModal,
|
|
@@ -95,14 +97,14 @@ export {
|
|
|
95
97
|
_ as BitzFullScreen,
|
|
96
98
|
tt as BitzHighlight,
|
|
97
99
|
at as BitzImage,
|
|
98
|
-
|
|
100
|
+
rt as BitzLanguageTabs,
|
|
99
101
|
lt as BitzLazyLoad,
|
|
100
|
-
|
|
102
|
+
pt as BitzList,
|
|
101
103
|
ut as BitzLoadMore,
|
|
102
104
|
mt as BitzLocalStorage,
|
|
103
|
-
|
|
105
|
+
xt as BitzMeetingTime,
|
|
104
106
|
nt as BitzMobileLoading,
|
|
105
|
-
|
|
107
|
+
ct as BitzModal,
|
|
106
108
|
St as BitzNoData,
|
|
107
109
|
Ft as BitzNoMore,
|
|
108
110
|
ht as BitzOrganizationSelection,
|
|
@@ -122,17 +124,19 @@ export {
|
|
|
122
124
|
_t as BitzSwitch,
|
|
123
125
|
te as BitzTabbar,
|
|
124
126
|
ae as BitzTable,
|
|
125
|
-
|
|
127
|
+
re as BitzTable2,
|
|
126
128
|
le as BitzTableOperations,
|
|
127
|
-
|
|
129
|
+
pe as BitzTableSelect,
|
|
128
130
|
ue as BitzTag,
|
|
129
|
-
me as
|
|
130
|
-
|
|
131
|
-
ne as
|
|
132
|
-
|
|
133
|
-
Se as
|
|
134
|
-
Fe as
|
|
135
|
-
he as
|
|
136
|
-
Le as
|
|
137
|
-
ke as
|
|
131
|
+
me as BitzText,
|
|
132
|
+
xe as BitzTheme,
|
|
133
|
+
ne as BitzTimeline,
|
|
134
|
+
ce as BitzTimer,
|
|
135
|
+
Se as BitzToast,
|
|
136
|
+
Fe as BitzTooltip,
|
|
137
|
+
he as BitzTree,
|
|
138
|
+
Le as BitzUeEditor,
|
|
139
|
+
ke as BitzUpload,
|
|
140
|
+
De as BitzWebAppDrawer,
|
|
141
|
+
ye as BitzWebAppModal
|
|
138
142
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var c = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" };
|
|
2
|
+
const t = c;
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import n from "../../../../../../@babel_runtime@7.24.5/node_modules/@babel/runtime/helpers/esm/extends.mjs";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import i from "../../../../../../@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs";
|
|
4
|
+
import p from "../components/AntdIcon.mjs";
|
|
5
|
+
var d = function(t, r) {
|
|
6
|
+
return /* @__PURE__ */ o.createElement(p, n({}, t, {
|
|
7
|
+
ref: r,
|
|
8
|
+
icon: i
|
|
9
|
+
}));
|
|
10
|
+
}, e = /* @__PURE__ */ o.forwardRef(d);
|
|
11
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "CopyOutlined");
|
|
12
|
+
const u = e;
|
|
13
|
+
export {
|
|
14
|
+
u as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import d from "../useLatest/index.mjs";
|
|
2
|
+
import { getTargetElement as m } from "../utils/domTarget.mjs";
|
|
3
|
+
import y from "../utils/getDocumentOrShadow.mjs";
|
|
4
|
+
import A from "../utils/useEffectWithTarget.mjs";
|
|
5
|
+
function w(u, t, r) {
|
|
6
|
+
r === void 0 && (r = "click");
|
|
7
|
+
var c = d(u);
|
|
8
|
+
A(function() {
|
|
9
|
+
var n = function(o) {
|
|
10
|
+
var s = Array.isArray(t) ? t : [t];
|
|
11
|
+
s.some(function(e) {
|
|
12
|
+
var f = m(e);
|
|
13
|
+
return !f || f.contains(o.target);
|
|
14
|
+
}) || c.current(o);
|
|
15
|
+
}, i = y(t), a = Array.isArray(r) ? r : [r];
|
|
16
|
+
return a.forEach(function(o) {
|
|
17
|
+
return i.addEventListener(o, n);
|
|
18
|
+
}), function() {
|
|
19
|
+
a.forEach(function(o) {
|
|
20
|
+
return i.removeEventListener(o, n);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
}, Array.isArray(r) ? r : [r], t);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
w as default
|
|
27
|
+
};
|
package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getTargetElement as o } from "./domTarget.mjs";
|
|
2
|
+
var n = function(t) {
|
|
3
|
+
return t.every(function(e) {
|
|
4
|
+
var r = o(e);
|
|
5
|
+
if (!r)
|
|
6
|
+
return !1;
|
|
7
|
+
if (r.getRootNode() instanceof ShadowRoot)
|
|
8
|
+
return !0;
|
|
9
|
+
});
|
|
10
|
+
}, u = function(t) {
|
|
11
|
+
return t ? t.getRootNode() : document;
|
|
12
|
+
}, a = function(t) {
|
|
13
|
+
if (!t || !document.getRootNode)
|
|
14
|
+
return document;
|
|
15
|
+
var e = Array.isArray(t) ? t : [t];
|
|
16
|
+
return n(e) ? u(o(e[0])) : document;
|
|
17
|
+
};
|
|
18
|
+
const f = a;
|
|
19
|
+
export {
|
|
20
|
+
f as default
|
|
21
|
+
};
|
package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import m from "../../../../../../copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs";
|
|
3
|
+
import v from "../../../../../../rc-util@5.41.0/node_modules/rc-util/es/hooks/useEvent.mjs";
|
|
4
|
+
import "../../../../../../rc-util@5.41.0/node_modules/rc-util/es/hooks/useLayoutEffect.mjs";
|
|
5
|
+
import "../../../../../../react-is@18.3.1/node_modules/react-is/index.mjs";
|
|
6
|
+
import "../../../../../../rc-util@5.41.0/node_modules/rc-util/es/warning.mjs";
|
|
7
|
+
var C = globalThis && globalThis.__awaiter || function(p, o, c, r) {
|
|
8
|
+
function l(i) {
|
|
9
|
+
return i instanceof c ? i : new c(function(e) {
|
|
10
|
+
e(i);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return new (c || (c = Promise))(function(i, e) {
|
|
14
|
+
function f(n) {
|
|
15
|
+
try {
|
|
16
|
+
a(r.next(n));
|
|
17
|
+
} catch (t) {
|
|
18
|
+
e(t);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function s(n) {
|
|
22
|
+
try {
|
|
23
|
+
a(r.throw(n));
|
|
24
|
+
} catch (t) {
|
|
25
|
+
e(t);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function a(n) {
|
|
29
|
+
n.done ? i(n.value) : l(n.value).then(f, s);
|
|
30
|
+
}
|
|
31
|
+
a((r = r.apply(p, o || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const h = (p) => {
|
|
35
|
+
let {
|
|
36
|
+
copyConfig: o,
|
|
37
|
+
children: c
|
|
38
|
+
} = p;
|
|
39
|
+
const [r, l] = u.useState(!1), [i, e] = u.useState(!1), f = u.useRef(null), s = () => {
|
|
40
|
+
f.current && clearTimeout(f.current);
|
|
41
|
+
}, a = {};
|
|
42
|
+
o.format && (a.format = o.format), u.useEffect(() => s, []);
|
|
43
|
+
const n = v((t) => C(void 0, void 0, void 0, function* () {
|
|
44
|
+
var d;
|
|
45
|
+
t == null || t.preventDefault(), t == null || t.stopPropagation(), e(!0);
|
|
46
|
+
try {
|
|
47
|
+
const y = typeof o.text == "function" ? yield o.text() : o.text;
|
|
48
|
+
m(y || String(c) || "", a), e(!1), l(!0), s(), f.current = setTimeout(() => {
|
|
49
|
+
l(!1);
|
|
50
|
+
}, 3e3), (d = o.onCopy) === null || d === void 0 || d.call(o, t);
|
|
51
|
+
} catch (y) {
|
|
52
|
+
throw e(!1), y;
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
return {
|
|
56
|
+
copied: r,
|
|
57
|
+
copyLoading: i,
|
|
58
|
+
onClick: n
|
|
59
|
+
};
|
|
60
|
+
}, k = h;
|
|
61
|
+
export {
|
|
62
|
+
k as default
|
|
63
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as u } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as i } from "../../../../../_virtual/
|
|
2
|
+
import { __module as i } from "../../../../../_virtual/index2.mjs";
|
|
3
3
|
/*!
|
|
4
4
|
Copyright (c) 2018 Jed Watson.
|
|
5
5
|
Licensed under the MIT License (MIT), see
|
package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs as p } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
import { t as m } from "../../../toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs";
|
|
3
|
+
var y = m, u = {
|
|
4
|
+
"text/plain": "Text",
|
|
5
|
+
"text/html": "Url",
|
|
6
|
+
default: "Text"
|
|
7
|
+
}, g = "Copy to clipboard: #{key}, Enter";
|
|
8
|
+
function b(r) {
|
|
9
|
+
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
10
|
+
return r.replace(/#{\s*key\s*}/g, t);
|
|
11
|
+
}
|
|
12
|
+
function w(r, t) {
|
|
13
|
+
var o, i, d, l, c, e, n = !1;
|
|
14
|
+
t || (t = {}), o = t.debug || !1;
|
|
15
|
+
try {
|
|
16
|
+
d = y(), l = document.createRange(), c = document.getSelection(), e = document.createElement("span"), e.textContent = r, e.ariaHidden = "true", e.style.all = "unset", e.style.position = "fixed", e.style.top = 0, e.style.clip = "rect(0, 0, 0, 0)", e.style.whiteSpace = "pre", e.style.webkitUserSelect = "text", e.style.MozUserSelect = "text", e.style.msUserSelect = "text", e.style.userSelect = "text", e.addEventListener("copy", function(a) {
|
|
17
|
+
if (a.stopPropagation(), t.format)
|
|
18
|
+
if (a.preventDefault(), typeof a.clipboardData > "u") {
|
|
19
|
+
o && console.warn("unable to use e.clipboardData"), o && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
20
|
+
var s = u[t.format] || u.default;
|
|
21
|
+
window.clipboardData.setData(s, r);
|
|
22
|
+
} else
|
|
23
|
+
a.clipboardData.clearData(), a.clipboardData.setData(t.format, r);
|
|
24
|
+
t.onCopy && (a.preventDefault(), t.onCopy(a.clipboardData));
|
|
25
|
+
}), document.body.appendChild(e), l.selectNodeContents(e), c.addRange(l);
|
|
26
|
+
var f = document.execCommand("copy");
|
|
27
|
+
if (!f)
|
|
28
|
+
throw new Error("copy command was unsuccessful");
|
|
29
|
+
n = !0;
|
|
30
|
+
} catch (a) {
|
|
31
|
+
o && console.error("unable to copy using execCommand: ", a), o && console.warn("trying IE specific stuff");
|
|
32
|
+
try {
|
|
33
|
+
window.clipboardData.setData(t.format || "text", r), t.onCopy && t.onCopy(window.clipboardData), n = !0;
|
|
34
|
+
} catch (s) {
|
|
35
|
+
o && console.error("unable to copy using clipboardData: ", s), o && console.error("falling back to prompt"), i = b("message" in t ? t.message : g), window.prompt(i, r);
|
|
36
|
+
}
|
|
37
|
+
} finally {
|
|
38
|
+
c && (typeof c.removeRange == "function" ? c.removeRange(l) : c.removeAllRanges()), e && document.body.removeChild(e), d();
|
|
39
|
+
}
|
|
40
|
+
return n;
|
|
41
|
+
}
|
|
42
|
+
var D = w;
|
|
43
|
+
const x = /* @__PURE__ */ p(D);
|
|
44
|
+
export {
|
|
45
|
+
x as default
|
|
46
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getDefaultExportFromCjs as e } from "../../../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
-
import { __module as r } from "../../../../../_virtual/
|
|
2
|
+
import { __module as r } from "../../../../../_virtual/index.mjs";
|
|
3
3
|
import { __require as o } from "../../../react-is@16.13.1/node_modules/react-is/index.mjs";
|
|
4
4
|
import { __require as p } from "./factoryWithTypeCheckers.mjs";
|
|
5
5
|
import { __require as t } from "./factoryWithThrowingShims.mjs";
|
package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var o = function() {
|
|
2
|
+
var e = document.getSelection();
|
|
3
|
+
if (!e.rangeCount)
|
|
4
|
+
return function() {
|
|
5
|
+
};
|
|
6
|
+
for (var t = document.activeElement, a = [], n = 0; n < e.rangeCount; n++)
|
|
7
|
+
a.push(e.getRangeAt(n));
|
|
8
|
+
switch (t.tagName.toUpperCase()) {
|
|
9
|
+
case "INPUT":
|
|
10
|
+
case "TEXTAREA":
|
|
11
|
+
t.blur();
|
|
12
|
+
break;
|
|
13
|
+
default:
|
|
14
|
+
t = null;
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
return e.removeAllRanges(), function() {
|
|
18
|
+
e.type === "Caret" && e.removeAllRanges(), e.rangeCount || a.forEach(function(r) {
|
|
19
|
+
e.addRange(r);
|
|
20
|
+
}), t && t.focus();
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
o as t
|
|
25
|
+
};
|