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
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as a } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Resizable as v } from "../../../node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs";
|
|
3
|
-
import { useState as E, useMemo as
|
|
3
|
+
import { useState as E, useMemo as b, useRef as l } from "react";
|
|
4
4
|
import O from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
-
const
|
|
6
|
-
const { hasScrollBar:
|
|
7
|
-
var t,
|
|
8
|
-
const e = { ...
|
|
9
|
-
return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !
|
|
10
|
-
}, [
|
|
5
|
+
const d = 56, T = (p) => {
|
|
6
|
+
const { hasScrollBar: x, scrollbarSize: y, onResize: g, width: n, datagridref: S, stretchref: u, ...P } = p, [j, m] = E(!1), z = b(() => {
|
|
7
|
+
var t, R;
|
|
8
|
+
const e = { ...P };
|
|
9
|
+
return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !x && ((R = e.style) != null && R.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (y || 0)), e;
|
|
10
|
+
}, [p]), c = l(0), f = l(0), s = l(0), o = l(0), i = l(!1), h = b(() => c.current - n + d, [c.current, n]);
|
|
11
11
|
if (!n)
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
const
|
|
12
|
+
return /* @__PURE__ */ a.jsx("th", { ...z });
|
|
13
|
+
const L = (e) => {
|
|
14
14
|
let r = e.offsetLeft, t = e.offsetParent;
|
|
15
15
|
for (; t !== null; )
|
|
16
16
|
r += t.offsetLeft, t = t.offsetParent;
|
|
17
17
|
return { x: r };
|
|
18
|
-
},
|
|
19
|
-
if (s.current = e.clientX -
|
|
20
|
-
|
|
18
|
+
}, w = (e) => {
|
|
19
|
+
if (s.current = e.clientX - f.current, n + s.current - c.current <= d || s.current < h) {
|
|
20
|
+
i.current = !0;
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
s.current >=
|
|
24
|
-
const t =
|
|
25
|
-
t.style.left = `${
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
const r =
|
|
29
|
-
r.style.opacity = 1, r.style.pointerEvents = "auto",
|
|
30
|
-
const t = e.clientX -
|
|
23
|
+
s.current >= h && i.current && (s.current = h, i.current = !1);
|
|
24
|
+
const t = u.current;
|
|
25
|
+
o.current = s.current, t.style.left = `${o.current}px`;
|
|
26
|
+
}, D = (e) => {
|
|
27
|
+
m(!0), s.current = 0, o.current = 0;
|
|
28
|
+
const r = u.current;
|
|
29
|
+
r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = L(S.current).x;
|
|
30
|
+
const t = e.clientX - f.current;
|
|
31
31
|
r.style.left = `${t}px`, c.current = t, s.current = t;
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
const t =
|
|
32
|
+
}, N = (e, r) => {
|
|
33
|
+
i.current = !1, m(!1);
|
|
34
|
+
const t = u.current;
|
|
35
35
|
t.style.opacity = 0, t.style.pointerEvents = "none", setTimeout(() => {
|
|
36
36
|
t.style.left = "0px";
|
|
37
|
-
}, 200),
|
|
37
|
+
}, 200), g(
|
|
38
38
|
e,
|
|
39
39
|
{
|
|
40
40
|
...r,
|
|
41
|
-
minWidth:
|
|
41
|
+
minWidth: d,
|
|
42
42
|
size: {
|
|
43
43
|
...r.size,
|
|
44
|
-
width: n +
|
|
44
|
+
width: n + o.current - c.current
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
},
|
|
48
|
+
}, X = /* @__PURE__ */ a.jsx(
|
|
49
49
|
"span",
|
|
50
50
|
{
|
|
51
51
|
className: "bitzResizableHandle",
|
|
@@ -54,23 +54,23 @@ const h = 56, H = (d) => {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
return /* @__PURE__ */ a.jsx(
|
|
58
58
|
v,
|
|
59
59
|
{
|
|
60
60
|
width: n,
|
|
61
61
|
height: 0,
|
|
62
|
-
handle:
|
|
62
|
+
handle: X,
|
|
63
63
|
className: O("bitzResizable", {
|
|
64
|
-
disabledUserSelect:
|
|
64
|
+
disabledUserSelect: j
|
|
65
65
|
}),
|
|
66
|
-
onResize:
|
|
67
|
-
onResizeStart:
|
|
68
|
-
onResizeStop:
|
|
66
|
+
onResize: w,
|
|
67
|
+
onResizeStart: D,
|
|
68
|
+
onResizeStop: N,
|
|
69
69
|
draggableOpts: { enableUserSelectHack: !1 },
|
|
70
|
-
children: /* @__PURE__ */
|
|
70
|
+
children: /* @__PURE__ */ a.jsx("th", { ...z })
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
73
|
};
|
|
74
74
|
export {
|
|
75
|
-
|
|
75
|
+
T as default
|
|
76
76
|
};
|