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.
Files changed (38) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +4 -3
  4. package/dist/components/BitzTable/ActionBar/Button.d.ts +7 -3
  5. package/dist/components/BitzTable/ActionBar/Button.mjs +26 -7
  6. package/dist/components/BitzTable/ActionBar/index.d.ts +2 -0
  7. package/dist/components/BitzTable/Store/index.mjs +96 -101
  8. package/dist/components/BitzTable/Store/utils/index.mjs +29 -29
  9. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +36 -36
  10. package/dist/components/BitzTable/Table/index.mjs +399 -377
  11. package/dist/components/BitzTableSelect/Select/index.mjs +1 -1
  12. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +90 -91
  13. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +42 -40
  14. package/dist/components/BitzText/index.d.ts +9 -0
  15. package/dist/components/BitzText/index.less.mjs +4 -0
  16. package/dist/components/BitzText/index.mjs +64 -0
  17. package/dist/components/BitzText/utils.d.ts +4 -0
  18. package/dist/components/BitzText/utils.mjs +5 -0
  19. package/dist/components/BitzTooltip/index.d.ts +17 -0
  20. package/dist/components/BitzTooltip/index.mjs +96 -0
  21. package/dist/components/BitzTooltip/style.d.ts +5 -0
  22. package/dist/components/BitzTooltip/style.mjs +50 -0
  23. package/dist/components/BitzTooltip/utils.d.ts +2 -0
  24. package/dist/components/BitzTooltip/utils.mjs +4 -0
  25. package/dist/index.d.ts +2 -0
  26. package/dist/index.mjs +42 -38
  27. package/dist/node_modules/.store/@ant-design_icons-svg@4.4.2/node_modules/@ant-design/icons-svg/es/asn/CopyOutlined.mjs +5 -0
  28. package/dist/node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/CopyOutlined.mjs +15 -0
  29. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useClickAway/index.mjs +27 -0
  30. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/getDocumentOrShadow.mjs +21 -0
  31. package/dist/node_modules/.store/antd@5.17.3/node_modules/antd/es/typography/hooks/useCopyClick.mjs +63 -0
  32. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  33. package/dist/node_modules/.store/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.mjs +46 -0
  34. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  35. package/dist/node_modules/.store/toggle-selection@1.0.6/node_modules/toggle-selection/index.mjs +25 -0
  36. package/dist/style.css +1 -1
  37. package/dist/utils/WithFluent.mjs +7 -6
  38. package/package.json +1 -1
@@ -1,51 +1,51 @@
1
- import { j as o } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
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 R, useRef as i } from "react";
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 h = 56, H = (d) => {
6
- const { hasScrollBar: b, scrollbarSize: x, onResize: y, width: n, datagridref: g, stretchref: a, ...S } = d, [P, p] = E(!1), m = R(() => {
7
- var t, z;
8
- const e = { ...S };
9
- return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !b && ((z = e.style) != null && z.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (x || 0)), e;
10
- }, [d]), c = i(0), u = i(0), s = i(0), l = i(!1), f = R(() => c.current - n + h, [c.current, n]);
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__ */ o.jsx("th", { ...m });
13
- const j = (e) => {
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
- }, L = (e) => {
19
- if (s.current = e.clientX - u.current, n + s.current - c.current <= h || s.current < f) {
20
- l.current = !0;
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 >= f && l.current && (s.current = f, l.current = !1);
24
- const t = a.current;
25
- t.style.left = `${s.current}px`;
26
- }, w = (e) => {
27
- p(!0), s.current = 0;
28
- const r = a.current;
29
- r.style.opacity = 1, r.style.pointerEvents = "auto", u.current = j(g.current).x;
30
- const t = e.clientX - u.current;
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
- }, D = (e, r) => {
33
- l.current = !1, p(!1);
34
- const t = a.current;
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), y(
37
+ }, 200), g(
38
38
  e,
39
39
  {
40
40
  ...r,
41
- minWidth: h,
41
+ minWidth: d,
42
42
  size: {
43
43
  ...r.size,
44
- width: n + s.current - c.current
44
+ width: n + o.current - c.current
45
45
  }
46
46
  }
47
47
  );
48
- }, N = /* @__PURE__ */ o.jsx(
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__ */ o.jsx(
57
+ return /* @__PURE__ */ a.jsx(
58
58
  v,
59
59
  {
60
60
  width: n,
61
61
  height: 0,
62
- handle: N,
62
+ handle: X,
63
63
  className: O("bitzResizable", {
64
- disabledUserSelect: P
64
+ disabledUserSelect: j
65
65
  }),
66
- onResize: L,
67
- onResizeStart: w,
68
- onResizeStop: D,
66
+ onResize: w,
67
+ onResizeStart: D,
68
+ onResizeStop: N,
69
69
  draggableOpts: { enableUserSelectHack: !1 },
70
- children: /* @__PURE__ */ o.jsx("th", { ...m })
70
+ children: /* @__PURE__ */ a.jsx("th", { ...z })
71
71
  }
72
72
  );
73
73
  };
74
74
  export {
75
- H as default
75
+ T as default
76
76
  };